fluency-v8-components 1.5.8 → 1.5.9

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 rF;function ft(){return rF.apply(null,arguments)}function Cge(e){rF=e}functi
87
87
  [`+a+"] ";for(o in arguments[0])rr(arguments[0],o)&&(i+=o+": "+arguments[0][o]+", ");i=i.slice(0,-2)}else i=arguments[a];r.push(i)}oF(e+`
88
88
  Arguments: `+Array.prototype.slice.call(r).join("")+`
89
89
  `+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var sF={};function lF(e,t){ft.deprecationHandler!=null&&ft.deprecationHandler(e,t),sF[e]||(oF(t),sF[e]=!0)}ft.suppressDeprecationWarnings=!1,ft.deprecationHandler=null;function lu(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function kge(e){var t,n;for(n in e)rr(e,n)&&(t=e[n],lu(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 V5(e,t){var n=vA({},e),r;for(r in t)rr(t,r)&&(qd(e[r])&&qd(t[r])?(n[r]={},vA(n[r],e[r]),vA(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)rr(e,r)&&!rr(t,r)&&qd(e[r])&&(n[r]=vA({},n[r]));return n}function z5(e){e!=null&&this.set(e)}var q5;Object.keys?q5=Object.keys:q5=function(e){var t,n=[];for(t in e)rr(e,t)&&n.push(t);return n};var Mge={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Ege(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return lu(r)?r.call(t,n):r}function uu(e,t,n){var r=""+Math.abs(e),i=t-r.length,a=e>=0;return(a?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var K5=/(\[[^\[]*\])|(\\)?([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,B1=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,G5={},xh={};function rn(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(xh[e]=i),t&&(xh[t[0]]=function(){return uu(i.apply(this,arguments),t[1],t[2])}),n&&(xh[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function Lge(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Tge(e){var t=e.match(K5),n,r;for(n=0,r=t.length;n<r;n++)xh[t[n]]?t[n]=xh[t[n]]:t[n]=Lge(t[n]);return function(i){var a="",o;for(o=0;o<r;o++)a+=lu(t[o])?t[o].call(i,e):t[o];return a}}function x1(e,t){return e.isValid()?(t=uF(t,e.localeData()),G5[t]=G5[t]||Tge(t),G5[t](e)):e.localeData().invalidDate()}function uF(e,t){var n=5;function r(i){return t.longDateFormat(i)||i}for(B1.lastIndex=0;n>=0&&B1.test(e);)e=e.replace(B1,r),B1.lastIndex=0,n-=1;return e}var Nge={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 Fge(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(K5).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var Oge="Invalid date";function Ige(){return this._invalidDate}var Dge="%d",Uge=/\d{1,2}/;function Pge(e){return this._ordinal.replace("%d",e)}var Hge={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 Yge(e,t,n,r){var i=this._relativeTime[n];return lu(i)?i(e,t,n,r):i.replace(/%d/i,e)}function Rge(e,t){var n=this._relativeTime[e>0?"future":"past"];return lu(n)?n(t):n.replace(/%s/i,t)}var cF={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 bs(e){return typeof e=="string"?cF[e]||cF[e.toLowerCase()]:void 0}function W5(e){var t={},n,r;for(r in e)rr(e,r)&&(n=bs(r),n&&(t[n]=e[r]));return t}var Qge={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 jge(e){var t=[],n;for(n in e)rr(e,n)&&t.push({unit:n,priority:Qge[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}var AF=/\d/,Go=/\d\d/,dF=/\d{3}/,X5=/\d{4}/,C1=/[+-]?\d{6}/,zr=/\d\d?/,fF=/\d\d\d\d?/,hF=/\d\d\d\d\d\d?/,S1=/\d{1,3}/,J5=/\d{1,4}/,k1=/[+-]?\d{1,6}/,Ch=/\d+/,M1=/[+-]?\d+/,Vge=/Z|[+-]\d\d:?\d\d/gi,E1=/Z|[+-]\d\d(?::?\d\d)?/gi,zge=/[+-]?\d+(\.\d{1,3})?/,Vm=/[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,Sh=/^[1-9]\d?/,Z5=/^([1-9]\d|\d)/,L1;L1={};function Ht(e,t,n){L1[e]=lu(t)?t:function(r,i){return r&&n?n:t}}function qge(e,t){return rr(L1,e)?L1[e](t._strict,t._locale):new RegExp(Kge(e))}function Kge(e){return nc(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,i,a){return n||r||i||a}))}function nc(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ws(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function jn(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=ws(t)),n}var $5={};function Sr(e,t){var n,r=t,i;for(typeof e=="string"&&(e=[e]),tc(t)&&(r=function(a,o){o[t]=jn(a)}),i=e.length,n=0;n<i;n++)$5[e[n]]=r}function zm(e,t){Sr(e,function(n,r,i,a){i._w=i._w||{},t(n,i._w,i,a)})}function Gge(e,t,n){t!=null&&rr($5,e)&&$5[e](t,n._a,n,e)}function T1(e){return e%4===0&&e%100!==0||e%400===0}var Pa=0,rc=1,cu=2,Gi=3,ol=4,ic=5,Kd=6,Wge=7,Xge=8;rn("Y",0,0,function(){var e=this.year();return e<=9999?uu(e,4):"+"+e}),rn(0,["YY",2],0,function(){return this.year()%100}),rn(0,["YYYY",4],0,"year"),rn(0,["YYYYY",5],0,"year"),rn(0,["YYYYYY",6,!0],0,"year"),Ht("Y",M1),Ht("YY",zr,Go),Ht("YYYY",J5,X5),Ht("YYYYY",k1,C1),Ht("YYYYYY",k1,C1),Sr(["YYYYY","YYYYYY"],Pa),Sr("YYYY",function(e,t){t[Pa]=e.length===2?ft.parseTwoDigitYear(e):jn(e)}),Sr("YY",function(e,t){t[Pa]=ft.parseTwoDigitYear(e)}),Sr("Y",function(e,t){t[Pa]=parseInt(e,10)});function qm(e){return T1(e)?366:365}ft.parseTwoDigitYear=function(e){return jn(e)+(jn(e)>68?1900:2e3)};var pF=kh("FullYear",!0);function Jge(){return T1(this.year())}function kh(e,t){return function(n){return n!=null?(mF(this,e,n),ft.updateOffset(this,t),this):Km(this,e)}}function Km(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 mF(e,t,n){var r,i,a,o,s;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}a=n,o=e.month(),s=e.date(),s=s===29&&o===1&&!T1(a)?28:s,i?r.setUTCFullYear(a,o,s):r.setFullYear(a,o,s)}}function Zge(e){return e=bs(e),lu(this[e])?this[e]():this}function $ge(e,t){if(typeof e=="object"){e=W5(e);var n=jge(e),r,i=n.length;for(r=0;r<i;r++)this[n[r].unit](e[n[r].unit])}else if(e=bs(e),lu(this[e]))return this[e](t);return this}function e0e(e,t){return(e%t+t)%t}var Bi;Array.prototype.indexOf?Bi=Array.prototype.indexOf:Bi=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function eB(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=e0e(t,12);return e+=(t-n)/12,n===1?T1(e)?29:28:31-n%7%2}rn("M",["MM",2],"Mo",function(){return this.month()+1}),rn("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),rn("MMMM",0,0,function(e){return this.localeData().months(this,e)}),Ht("M",zr,Sh),Ht("MM",zr,Go),Ht("MMM",function(e,t){return t.monthsShortRegex(e)}),Ht("MMMM",function(e,t){return t.monthsRegex(e)}),Sr(["M","MM"],function(e,t){t[rc]=jn(e)-1}),Sr(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);i!=null?t[rc]=i:Nn(n).invalidMonth=e});var t0e="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),gF="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),vF=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,n0e=Vm,r0e=Vm;function i0e(e,t){return e?il(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||vF).test(t)?"format":"standalone"][e.month()]:il(this._months)?this._months:this._months.standalone}function a0e(e,t){return e?il(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[vF.test(t)?"format":"standalone"][e.month()]:il(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function o0e(e,t,n){var r,i,a,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=su([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?t==="MMM"?(i=Bi.call(this._shortMonthsParse,o),i!==-1?i:null):(i=Bi.call(this._longMonthsParse,o),i!==-1?i:null):t==="MMM"?(i=Bi.call(this._shortMonthsParse,o),i!==-1?i:(i=Bi.call(this._longMonthsParse,o),i!==-1?i:null)):(i=Bi.call(this._longMonthsParse,o),i!==-1?i:(i=Bi.call(this._shortMonthsParse,o),i!==-1?i:null))}function s0e(e,t,n){var r,i,a;if(this._monthsParseExact)return o0e.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=su([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),!n&&!this._monthsParse[r]&&(a="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(a.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 yF(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=jn(t);else if(t=e.localeData().monthsParse(t),!tc(t))return e}var n=t,r=e.date();return r=r<29?r:Math.min(r,eB(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function _F(e){return e!=null?(yF(this,e),ft.updateOffset(this,!0),this):Km(this,"Month")}function l0e(){return eB(this.year(),this.month())}function u0e(e){return this._monthsParseExact?(rr(this,"_monthsRegex")||bF.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(rr(this,"_monthsShortRegex")||(this._monthsShortRegex=n0e),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function c0e(e){return this._monthsParseExact?(rr(this,"_monthsRegex")||bF.call(this),e?this._monthsStrictRegex:this._monthsRegex):(rr(this,"_monthsRegex")||(this._monthsRegex=r0e),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function bF(){function e(u,c){return c.length-u.length}var t=[],n=[],r=[],i,a,o,s;for(i=0;i<12;i++)a=su([2e3,i]),o=nc(this.monthsShort(a,"")),s=nc(this.months(a,"")),t.push(o),n.push(s),r.push(s),r.push(o);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 A0e(e,t,n,r,i,a,o){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,i,a,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,a,o),s}function Gm(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 N1(e,t,n){var r=7+t-n,i=(7+Gm(e,0,r).getUTCDay()-t)%7;return-i+r-1}function wF(e,t,n,r,i){var a=(7+n-r)%7,o=N1(e,r,i),s=1+7*(t-1)+a+o,u,c;return s<=0?(u=e-1,c=qm(u)+s):s>qm(e)?(u=e+1,c=s-qm(e)):(u=e,c=s),{year:u,dayOfYear:c}}function Wm(e,t,n){var r=N1(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,a,o;return i<1?(o=e.year()-1,a=i+ac(o,t,n)):i>ac(e.year(),t,n)?(a=i-ac(e.year(),t,n),o=e.year()+1):(o=e.year(),a=i),{week:a,year:o}}function ac(e,t,n){var r=N1(e,t,n),i=N1(e+1,t,n);return(qm(e)-r+i)/7}rn("w",["ww",2],"wo","week"),rn("W",["WW",2],"Wo","isoWeek"),Ht("w",zr,Sh),Ht("ww",zr,Go),Ht("W",zr,Sh),Ht("WW",zr,Go),zm(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=jn(e)});function d0e(e){return Wm(e,this._week.dow,this._week.doy).week}var f0e={dow:0,doy:6};function h0e(){return this._week.dow}function p0e(){return this._week.doy}function m0e(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function g0e(e){var t=Wm(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}rn("d",0,"do","day"),rn("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),rn("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),rn("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),rn("e",0,0,"weekday"),rn("E",0,0,"isoWeekday"),Ht("d",zr),Ht("e",zr),Ht("E",zr),Ht("dd",function(e,t){return t.weekdaysMinRegex(e)}),Ht("ddd",function(e,t){return t.weekdaysShortRegex(e)}),Ht("dddd",function(e,t){return t.weekdaysRegex(e)}),zm(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i!=null?t.d=i:Nn(n).invalidWeekday=e}),zm(["d","e","E"],function(e,t,n,r){t[r]=jn(e)});function v0e(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function y0e(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function tB(e,t){return e.slice(t,7).concat(e.slice(0,t))}var _0e="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),BF="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),b0e="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),w0e=Vm,B0e=Vm,x0e=Vm;function C0e(e,t){var n=il(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?tB(n,this._week.dow):e?n[e.day()]:n}function S0e(e){return e===!0?tB(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function k0e(e){return e===!0?tB(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function M0e(e,t,n){var r,i,a,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=su([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?t==="dddd"?(i=Bi.call(this._weekdaysParse,o),i!==-1?i:null):t==="ddd"?(i=Bi.call(this._shortWeekdaysParse,o),i!==-1?i:null):(i=Bi.call(this._minWeekdaysParse,o),i!==-1?i:null):t==="dddd"?(i=Bi.call(this._weekdaysParse,o),i!==-1||(i=Bi.call(this._shortWeekdaysParse,o),i!==-1)?i:(i=Bi.call(this._minWeekdaysParse,o),i!==-1?i:null)):t==="ddd"?(i=Bi.call(this._shortWeekdaysParse,o),i!==-1||(i=Bi.call(this._weekdaysParse,o),i!==-1)?i:(i=Bi.call(this._minWeekdaysParse,o),i!==-1?i:null)):(i=Bi.call(this._minWeekdaysParse,o),i!==-1||(i=Bi.call(this._weekdaysParse,o),i!==-1)?i:(i=Bi.call(this._shortWeekdaysParse,o),i!==-1?i:null))}function E0e(e,t,n){var r,i,a;if(this._weekdaysParseExact)return M0e.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=su([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.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 L0e(e){if(!this.isValid())return e!=null?this:NaN;var t=Km(this,"Day");return e!=null?(e=v0e(e,this.localeData()),this.add(e-t,"d")):t}function T0e(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 N0e(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=y0e(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function F0e(e){return this._weekdaysParseExact?(rr(this,"_weekdaysRegex")||nB.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(rr(this,"_weekdaysRegex")||(this._weekdaysRegex=w0e),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function O0e(e){return this._weekdaysParseExact?(rr(this,"_weekdaysRegex")||nB.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(rr(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=B0e),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function I0e(e){return this._weekdaysParseExact?(rr(this,"_weekdaysRegex")||nB.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(rr(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=x0e),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function nB(){function e(A,f){return f.length-A.length}var t=[],n=[],r=[],i=[],a,o,s,u,c;for(a=0;a<7;a++)o=su([2e3,1]).day(a),s=nc(this.weekdaysMin(o,"")),u=nc(this.weekdaysShort(o,"")),c=nc(this.weekdays(o,"")),t.push(s),n.push(u),r.push(c),i.push(s),i.push(u),i.push(c);t.sort(e),n.sort(e),r.sort(e),i.sort(e),this._weekdaysRegex=new RegExp("^("+i.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 rB(){return this.hours()%12||12}function D0e(){return this.hours()||24}rn("H",["HH",2],0,"hour"),rn("h",["hh",2],0,rB),rn("k",["kk",2],0,D0e),rn("hmm",0,0,function(){return""+rB.apply(this)+uu(this.minutes(),2)}),rn("hmmss",0,0,function(){return""+rB.apply(this)+uu(this.minutes(),2)+uu(this.seconds(),2)}),rn("Hmm",0,0,function(){return""+this.hours()+uu(this.minutes(),2)}),rn("Hmmss",0,0,function(){return""+this.hours()+uu(this.minutes(),2)+uu(this.seconds(),2)});function xF(e,t){rn(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}xF("a",!0),xF("A",!1);function CF(e,t){return t._meridiemParse}Ht("a",CF),Ht("A",CF),Ht("H",zr,Z5),Ht("h",zr,Sh),Ht("k",zr,Sh),Ht("HH",zr,Go),Ht("hh",zr,Go),Ht("kk",zr,Go),Ht("hmm",fF),Ht("hmmss",hF),Ht("Hmm",fF),Ht("Hmmss",hF),Sr(["H","HH"],Gi),Sr(["k","kk"],function(e,t,n){var r=jn(e);t[Gi]=r===24?0:r}),Sr(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),Sr(["h","hh"],function(e,t,n){t[Gi]=jn(e),Nn(n).bigHour=!0}),Sr("hmm",function(e,t,n){var r=e.length-2;t[Gi]=jn(e.substr(0,r)),t[ol]=jn(e.substr(r)),Nn(n).bigHour=!0}),Sr("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Gi]=jn(e.substr(0,r)),t[ol]=jn(e.substr(r,2)),t[ic]=jn(e.substr(i)),Nn(n).bigHour=!0}),Sr("Hmm",function(e,t,n){var r=e.length-2;t[Gi]=jn(e.substr(0,r)),t[ol]=jn(e.substr(r))}),Sr("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Gi]=jn(e.substr(0,r)),t[ol]=jn(e.substr(r,2)),t[ic]=jn(e.substr(i))});function U0e(e){return(e+"").toLowerCase().charAt(0)==="p"}var P0e=/[ap]\.?m?\.?/i,H0e=kh("Hours",!0);function Y0e(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var SF={calendar:Mge,longDateFormat:Nge,invalidDate:Oge,ordinal:Dge,dayOfMonthOrdinalParse:Uge,relativeTime:Hge,months:t0e,monthsShort:gF,week:f0e,weekdays:_0e,weekdaysMin:b0e,weekdaysShort:BF,meridiemParse:P0e},Jr={},Xm={},Jm;function R0e(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 kF(e){return e&&e.toLowerCase().replace("_","-")}function Q0e(e){for(var t=0,n,r,i,a;t<e.length;){for(a=kF(e[t]).split("-"),n=a.length,r=kF(e[t+1]),r=r?r.split("-"):null;n>0;){if(i=F1(a.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&R0e(a,r)>=n-1)break;n--}t++}return Jm}function j0e(e){return!!(e&&e.match("^[^/\\\\]*$"))}function F1(e){var t=null,n;if(Jr[e]===void 0&&typeof module<"u"&&module&&module.exports&&j0e(e))try{t=Jm._abbr,n=require,n("./locale/"+e),yA(t)}catch{Jr[e]=null}return Jr[e]}function yA(e,t){var n;return e&&(So(t)?n=oc(e):n=iB(e,t),n?Jm=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Jm._abbr}function iB(e,t){if(t!==null){var n,r=SF;if(t.abbr=e,Jr[e]!=null)lF("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=Jr[e]._config;else if(t.parentLocale!=null)if(Jr[t.parentLocale]!=null)r=Jr[t.parentLocale]._config;else if(n=F1(t.parentLocale),n!=null)r=n._config;else return Xm[t.parentLocale]||(Xm[t.parentLocale]=[]),Xm[t.parentLocale].push({name:e,config:t}),null;return Jr[e]=new z5(V5(r,t)),Xm[e]&&Xm[e].forEach(function(i){iB(i.name,i.config)}),yA(e),Jr[e]}else return delete Jr[e],null}function V0e(e,t){if(t!=null){var n,r,i=SF;Jr[e]!=null&&Jr[e].parentLocale!=null?Jr[e].set(V5(Jr[e]._config,t)):(r=F1(e),r!=null&&(i=r._config),t=V5(i,t),r==null&&(t.abbr=e),n=new z5(t),n.parentLocale=Jr[e],Jr[e]=n),yA(e)}else Jr[e]!=null&&(Jr[e].parentLocale!=null?(Jr[e]=Jr[e].parentLocale,e===yA()&&yA(e)):Jr[e]!=null&&delete Jr[e]);return Jr[e]}function oc(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Jm;if(!il(e)){if(t=F1(e),t)return t;e=[e]}return Q0e(e)}function z0e(){return q5(Jr)}function aB(e){var t,n=e._a;return n&&Nn(e).overflow===-2&&(t=n[rc]<0||n[rc]>11?rc:n[cu]<1||n[cu]>eB(n[Pa],n[rc])?cu:n[Gi]<0||n[Gi]>24||n[Gi]===24&&(n[ol]!==0||n[ic]!==0||n[Kd]!==0)?Gi:n[ol]<0||n[ol]>59?ol:n[ic]<0||n[ic]>59?ic:n[Kd]<0||n[Kd]>999?Kd:-1,Nn(e)._overflowDayOfYear&&(t<Pa||t>cu)&&(t=cu),Nn(e)._overflowWeeks&&t===-1&&(t=Wge),Nn(e)._overflowWeekday&&t===-1&&(t=Xge),Nn(e).overflow=t),e}var q0e=/^\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)?)?$/,K0e=/^\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)?)?$/,G0e=/Z|[+-]\d\d(?::?\d\d)?/,O1=[["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]],oB=[["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/]],W0e=/^\/?Date\((-?\d+)/i,X0e=/^(?:(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}))$/,J0e={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function MF(e){var t,n,r=e._i,i=q0e.exec(r)||K0e.exec(r),a,o,s,u,c=O1.length,A=oB.length;if(i){for(Nn(e).iso=!0,t=0,n=c;t<n;t++)if(O1[t][1].exec(i[1])){o=O1[t][0],a=O1[t][2]!==!1;break}if(o==null){e._isValid=!1;return}if(i[3]){for(t=0,n=A;t<n;t++)if(oB[t][1].exec(i[3])){s=(i[2]||" ")+oB[t][0];break}if(s==null){e._isValid=!1;return}}if(!a&&s!=null){e._isValid=!1;return}if(i[4])if(G0e.exec(i[4]))u="Z";else{e._isValid=!1;return}e._f=o+(s||"")+(u||""),lB(e)}else e._isValid=!1}function Z0e(e,t,n,r,i,a){var o=[$0e(e),gF.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return a&&o.push(parseInt(a,10)),o}function $0e(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function eve(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function tve(e,t,n){if(e){var r=BF.indexOf(e),i=new Date(t[0],t[1],t[2]).getDay();if(r!==i)return Nn(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function nve(e,t,n){if(e)return J0e[e];if(t)return 0;var r=parseInt(n,10),i=r%100,a=(r-i)/100;return a*60+i}function EF(e){var t=X0e.exec(eve(e._i)),n;if(t){if(n=Z0e(t[4],t[3],t[2],t[5],t[6],t[7]),!tve(t[1],n,e))return;e._a=n,e._tzm=nve(t[8],t[9],t[10]),e._d=Gm.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),Nn(e).rfc2822=!0}else e._isValid=!1}function rve(e){var t=W0e.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(MF(e),e._isValid===!1)delete e._isValid;else return;if(EF(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:ft.createFromInputFallback(e)}ft.createFromInputFallback=_s("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 Mh(e,t,n){return e??t??n}function ive(e){var t=new Date(ft.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function sB(e){var t,n,r=[],i,a,o;if(!e._d){for(i=ive(e),e._w&&e._a[cu]==null&&e._a[rc]==null&&ave(e),e._dayOfYear!=null&&(o=Mh(e._a[Pa],i[Pa]),(e._dayOfYear>qm(o)||e._dayOfYear===0)&&(Nn(e)._overflowDayOfYear=!0),n=Gm(o,0,e._dayOfYear),e._a[rc]=n.getUTCMonth(),e._a[cu]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=i[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[Gi]===24&&e._a[ol]===0&&e._a[ic]===0&&e._a[Kd]===0&&(e._nextDay=!0,e._a[Gi]=0),e._d=(e._useUTC?Gm:A0e).apply(null,r),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Gi]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==a&&(Nn(e).weekdayMismatch=!0)}}function ave(e){var t,n,r,i,a,o,s,u,c;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(a=1,o=4,n=Mh(t.GG,e._a[Pa],Wm(qr(),1,4).year),r=Mh(t.W,1),i=Mh(t.E,1),(i<1||i>7)&&(u=!0)):(a=e._locale._week.dow,o=e._locale._week.doy,c=Wm(qr(),a,o),n=Mh(t.gg,e._a[Pa],c.year),r=Mh(t.w,c.week),t.d!=null?(i=t.d,(i<0||i>6)&&(u=!0)):t.e!=null?(i=t.e+a,(t.e<0||t.e>6)&&(u=!0)):i=a),r<1||r>ac(n,a,o)?Nn(e)._overflowWeeks=!0:u!=null?Nn(e)._overflowWeekday=!0:(s=wF(n,r,i,a,o),e._a[Pa]=s.year,e._dayOfYear=s.dayOfYear)}ft.ISO_8601=function(){},ft.RFC_2822=function(){};function lB(e){if(e._f===ft.ISO_8601){MF(e);return}if(e._f===ft.RFC_2822){EF(e);return}e._a=[],Nn(e).empty=!0;var t=""+e._i,n,r,i,a,o,s=t.length,u=0,c,A;for(i=uF(e._f,e._locale).match(K5)||[],A=i.length,n=0;n<A;n++)a=i[n],r=(t.match(qge(a,e))||[])[0],r&&(o=t.substr(0,t.indexOf(r)),o.length>0&&Nn(e).unusedInput.push(o),t=t.slice(t.indexOf(r)+r.length),u+=r.length),xh[a]?(r?Nn(e).empty=!1:Nn(e).unusedTokens.push(a),Gge(a,r,e)):e._strict&&!r&&Nn(e).unusedTokens.push(a);Nn(e).charsLeftOver=s-u,t.length>0&&Nn(e).unusedInput.push(t),e._a[Gi]<=12&&Nn(e).bigHour===!0&&e._a[Gi]>0&&(Nn(e).bigHour=void 0),Nn(e).parsedDateParts=e._a.slice(0),Nn(e).meridiem=e._meridiem,e._a[Gi]=ove(e._locale,e._a[Gi],e._meridiem),c=Nn(e).era,c!==null&&(e._a[Pa]=e._locale.erasConvertYear(c,e._a[Pa])),sB(e),aB(e)}function ove(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 sve(e){var t,n,r,i,a,o,s=!1,u=e._f.length;if(u===0){Nn(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;i<u;i++)a=0,o=!1,t=j5({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[i],lB(t),R5(t)&&(o=!0),a+=Nn(t).charsLeftOver,a+=Nn(t).unusedTokens.length*10,Nn(t).score=a,s?a<r&&(r=a,n=t):(r==null||a<r||o)&&(r=a,n=t,o&&(s=!0));vA(e,n||t)}function lve(e){if(!e._d){var t=W5(e._i),n=t.day===void 0?t.date:t.day;e._a=iF([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),sB(e)}}function uve(e){var t=new jm(aB(LF(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function LF(e){var t=e._i,n=e._f;return e._locale=e._locale||oc(e._l),t===null||n===void 0&&t===""?w1({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),al(t)?new jm(aB(t)):(Qm(t)?e._d=t:il(n)?sve(e):n?lB(e):cve(e),R5(e)||(e._d=null),e))}function cve(e){var t=e._i;So(t)?e._d=new Date(ft.now()):Qm(t)?e._d=new Date(t.valueOf()):typeof t=="string"?rve(e):il(t)?(e._a=iF(t.slice(0),function(n){return parseInt(n,10)}),sB(e)):qd(t)?lve(e):tc(t)?e._d=new Date(t):ft.createFromInputFallback(e)}function TF(e,t,n,r,i){var a={};return(t===!0||t===!1)&&(r=t,t=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(qd(e)&&H5(e)||il(e)&&e.length===0)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=i,a._l=n,a._i=e,a._f=t,a._strict=r,uve(a)}function qr(e,t,n,r){return TF(e,t,n,r,!1)}var Ave=_s("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=qr.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:w1()}),dve=_s("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=qr.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:w1()});function NF(e,t){var n,r;if(t.length===1&&il(t[0])&&(t=t[0]),!t.length)return qr();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}function fve(){var e=[].slice.call(arguments,0);return NF("isBefore",e)}function hve(){var e=[].slice.call(arguments,0);return NF("isAfter",e)}var pve=function(){return Date.now?Date.now():+new Date},Zm=["year","quarter","month","week","day","hour","minute","second","millisecond"];function mve(e){var t,n=!1,r,i=Zm.length;for(t in e)if(rr(e,t)&&!(Bi.call(Zm,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<i;++r)if(e[Zm[r]]){if(n)return!1;parseFloat(e[Zm[r]])!==jn(e[Zm[r]])&&(n=!0)}return!0}function gve(){return this._isValid}function vve(){return sl(NaN)}function I1(e){var t=W5(e),n=t.year||0,r=t.quarter||0,i=t.month||0,a=t.week||t.isoWeek||0,o=t.day||0,s=t.hour||0,u=t.minute||0,c=t.second||0,A=t.millisecond||0;this._isValid=mve(t),this._milliseconds=+A+c*1e3+u*6e4+s*1e3*60*60,this._days=+o+a*7,this._months=+i+r*3+n*12,this._data={},this._locale=oc(),this._bubble()}function D1(e){return e instanceof I1}function uB(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function yve(e,t,n){var r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),a=0,o;for(o=0;o<r;o++)jn(e[o])!==jn(t[o])&&a++;return a+i}function FF(e,t){rn(e,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+uu(~~(n/60),2)+t+uu(~~n%60,2)})}FF("Z",":"),FF("ZZ",""),Ht("Z",E1),Ht("ZZ",E1),Sr(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=cB(E1,e)});var _ve=/([\+\-]|\d\d)/gi;function cB(e,t){var n=(t||"").match(e),r,i,a;return n===null?null:(r=n[n.length-1]||[],i=(r+"").match(_ve)||["-",0,0],a=+(i[1]*60)+jn(i[2]),a===0?0:i[0]==="+"?a:-a)}function AB(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(al(e)||Qm(e)?e.valueOf():qr(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),ft.updateOffset(n,!1),n):qr(e).local()}function dB(e){return-Math.round(e._d.getTimezoneOffset())}ft.updateOffset=function(){};function bve(e,t,n){var r=this._offset||0,i;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=cB(E1,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(i=dB(this)),this._offset=e,this._isUTC=!0,i!=null&&this.add(i,"m"),r!==e&&(!t||this._changeInProgress?UF(this,sl(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,ft.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:dB(this)}function wve(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Bve(e){return this.utcOffset(0,e)}function xve(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(dB(this),"m")),this}function Cve(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=cB(Vge,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Sve(e){return this.isValid()?(e=e?qr(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function kve(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Mve(){if(!So(this._isDSTShifted))return this._isDSTShifted;var e={},t;return j5(e,this),e=LF(e),e._a?(t=e._isUTC?su(e._a):qr(e._a),this._isDSTShifted=this.isValid()&&yve(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Eve(){return this.isValid()?!this._isUTC:!1}function Lve(){return this.isValid()?this._isUTC:!1}function OF(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Tve=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Nve=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function sl(e,t){var n=e,r=null,i,a,o;return D1(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:tc(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=Tve.exec(e))?(i=r[1]==="-"?-1:1,n={y:0,d:jn(r[cu])*i,h:jn(r[Gi])*i,m:jn(r[ol])*i,s:jn(r[ic])*i,ms:jn(uB(r[Kd]*1e3))*i}):(r=Nve.exec(e))?(i=r[1]==="-"?-1:1,n={y:Gd(r[2],i),M:Gd(r[3],i),w:Gd(r[4],i),d:Gd(r[5],i),h:Gd(r[6],i),m:Gd(r[7],i),s:Gd(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(o=Fve(qr(n.from),qr(n.to)),n={},n.ms=o.milliseconds,n.M=o.months),a=new I1(n),D1(e)&&rr(e,"_locale")&&(a._locale=e._locale),D1(e)&&rr(e,"_isValid")&&(a._isValid=e._isValid),a}sl.fn=I1.prototype,sl.invalid=vve;function Gd(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function IF(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 Fve(e,t){var n;return e.isValid()&&t.isValid()?(t=AB(t,e),e.isBefore(t)?n=IF(e,t):(n=IF(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function DF(e,t){return function(n,r){var i,a;return r!==null&&!isNaN(+r)&&(lF(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."),a=n,n=r,r=a),i=sl(n,r),UF(this,i,e),this}}function UF(e,t,n,r){var i=t._milliseconds,a=uB(t._days),o=uB(t._months);e.isValid()&&(r=r??!0,o&&yF(e,Km(e,"Month")+o*n),a&&mF(e,"Date",Km(e,"Date")+a*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&ft.updateOffset(e,a||o))}var Ove=DF(1,"add"),Ive=DF(-1,"subtract");function PF(e){return typeof e=="string"||e instanceof String}function Dve(e){return al(e)||Qm(e)||PF(e)||tc(e)||Pve(e)||Uve(e)||e===null||e===void 0}function Uve(e){var t=qd(e)&&!H5(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"],i,a,o=r.length;for(i=0;i<o;i+=1)a=r[i],n=n||rr(e,a);return t&&n}function Pve(e){var t=il(e),n=!1;return t&&(n=e.filter(function(r){return!tc(r)&&PF(e)}).length===0),t&&n}function Hve(e){var t=qd(e)&&!H5(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i,a;for(i=0;i<r.length;i+=1)a=r[i],n=n||rr(e,a);return t&&n}function Yve(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 Rve(e,t){arguments.length===1&&(arguments[0]?Dve(arguments[0])?(e=arguments[0],t=void 0):Hve(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||qr(),r=AB(n,this).startOf("day"),i=ft.calendarFormat(this,r)||"sameElse",a=t&&(lu(t[i])?t[i].call(this,n):t[i]);return this.format(a||this.localeData().calendar(i,this,qr(n)))}function Qve(){return new jm(this)}function jve(e,t){var n=al(e)?e:qr(e);return this.isValid()&&n.isValid()?(t=bs(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function Vve(e,t){var n=al(e)?e:qr(e);return this.isValid()&&n.isValid()?(t=bs(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function zve(e,t,n,r){var i=al(e)?e:qr(e),a=al(t)?t:qr(t);return this.isValid()&&i.isValid()&&a.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(i,n):!this.isBefore(i,n))&&(r[1]===")"?this.isBefore(a,n):!this.isAfter(a,n))):!1}function qve(e,t){var n=al(e)?e:qr(e),r;return this.isValid()&&n.isValid()?(t=bs(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 Kve(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Gve(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Wve(e,t,n){var r,i,a;if(!this.isValid())return NaN;if(r=AB(e,this),!r.isValid())return NaN;switch(i=(r.utcOffset()-this.utcOffset())*6e4,t=bs(t),t){case"year":a=U1(this,r)/12;break;case"month":a=U1(this,r);break;case"quarter":a=U1(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-i)/864e5;break;case"week":a=(this-r-i)/6048e5;break;default:a=this-r}return n?a:ws(a)}function U1(e,t){if(e.date()<t.date())return-U1(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,"months"),i,a;return t-r<0?(i=e.clone().add(n-1,"months"),a=(t-r)/(r-i)):(i=e.clone().add(n+1,"months"),a=(t-r)/(i-r)),-(n+a)||0}ft.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",ft.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Xve(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Jve(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?x1(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):lu(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",x1(n,"Z")):x1(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Zve(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,i,a;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",a=t+'[")]',this.format(n+r+i+a)}function $ve(e){e||(e=this.isUtc()?ft.defaultFormatUtc:ft.defaultFormat);var t=x1(this,e);return this.localeData().postformat(t)}function e1e(e,t){return this.isValid()&&(al(e)&&e.isValid()||qr(e).isValid())?sl({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function t1e(e){return this.from(qr(),e)}function n1e(e,t){return this.isValid()&&(al(e)&&e.isValid()||qr(e).isValid())?sl({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function r1e(e){return this.to(qr(),e)}function HF(e){var t;return e===void 0?this._locale._abbr:(t=oc(e),t!=null&&(this._locale=t),this)}var YF=_s("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 RF(){return this._locale}var P1=1e3,Eh=60*P1,H1=60*Eh,QF=(365*400+97)*24*H1;function Lh(e,t){return(e%t+t)%t}function jF(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-QF:new Date(e,t,n).valueOf()}function VF(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-QF:Date.UTC(e,t,n)}function i1e(e){var t,n;if(e=bs(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?VF:jF,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-=Lh(t+(this._isUTC?0:this.utcOffset()*Eh),H1);break;case"minute":t=this._d.valueOf(),t-=Lh(t,Eh);break;case"second":t=this._d.valueOf(),t-=Lh(t,P1);break}return this._d.setTime(t),ft.updateOffset(this,!0),this}function a1e(e){var t,n;if(e=bs(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?VF:jF,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+=H1-Lh(t+(this._isUTC?0:this.utcOffset()*Eh),H1)-1;break;case"minute":t=this._d.valueOf(),t+=Eh-Lh(t,Eh)-1;break;case"second":t=this._d.valueOf(),t+=P1-Lh(t,P1)-1;break}return this._d.setTime(t),ft.updateOffset(this,!0),this}function o1e(){return this._d.valueOf()-(this._offset||0)*6e4}function s1e(){return Math.floor(this.valueOf()/1e3)}function l1e(){return new Date(this.valueOf())}function u1e(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function c1e(){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 A1e(){return this.isValid()?this.toISOString():null}function d1e(){return R5(this)}function f1e(){return vA({},Nn(this))}function h1e(){return Nn(this).overflow}function p1e(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}rn("N",0,0,"eraAbbr"),rn("NN",0,0,"eraAbbr"),rn("NNN",0,0,"eraAbbr"),rn("NNNN",0,0,"eraName"),rn("NNNNN",0,0,"eraNarrow"),rn("y",["y",1],"yo","eraYear"),rn("y",["yy",2],0,"eraYear"),rn("y",["yyy",3],0,"eraYear"),rn("y",["yyyy",4],0,"eraYear"),Ht("N",fB),Ht("NN",fB),Ht("NNN",fB),Ht("NNNN",S1e),Ht("NNNNN",k1e),Sr(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?Nn(n).era=i:Nn(n).invalidEra=e}),Ht("y",Ch),Ht("yy",Ch),Ht("yyy",Ch),Ht("yyyy",Ch),Ht("yo",M1e),Sr(["y","yy","yyy","yyyy"],Pa),Sr(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Pa]=n._locale.eraYearOrdinalParse(e,i):t[Pa]=parseInt(e,10)});function m1e(e,t){var n,r,i,a=this._eras||oc("en")._eras;for(n=0,r=a.length;n<r;++n){switch(typeof a[n].since){case"string":i=ft(a[n].since).startOf("day"),a[n].since=i.valueOf();break}switch(typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":i=ft(a[n].until).startOf("day").valueOf(),a[n].until=i.valueOf();break}}return a}function g1e(e,t,n){var r,i,a=this.eras(),o,s,u;for(e=e.toUpperCase(),r=0,i=a.length;r<i;++r)if(o=a[r].name.toUpperCase(),s=a[r].abbr.toUpperCase(),u=a[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(s===e)return a[r];break;case"NNNN":if(o===e)return a[r];break;case"NNNNN":if(u===e)return a[r];break}else if([o,s,u].indexOf(e)>=0)return a[r]}function v1e(e,t){var n=e.since<=e.until?1:-1;return t===void 0?ft(e.since).year():ft(e.since).year()+(t-e.offset)*n}function y1e(){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 _1e(){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 b1e(){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 w1e(){var e,t,n,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=i[e].since<=i[e].until?1:-1,r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return(this.year()-ft(i[e].since).year())*n+i[e].offset;return this.year()}function B1e(e){return rr(this,"_erasNameRegex")||hB.call(this),e?this._erasNameRegex:this._erasRegex}function x1e(e){return rr(this,"_erasAbbrRegex")||hB.call(this),e?this._erasAbbrRegex:this._erasRegex}function C1e(e){return rr(this,"_erasNarrowRegex")||hB.call(this),e?this._erasNarrowRegex:this._erasRegex}function fB(e,t){return t.erasAbbrRegex(e)}function S1e(e,t){return t.erasNameRegex(e)}function k1e(e,t){return t.erasNarrowRegex(e)}function M1e(e,t){return t._eraYearOrdinalRegex||Ch}function hB(){var e=[],t=[],n=[],r=[],i,a,o,s,u,c=this.eras();for(i=0,a=c.length;i<a;++i)o=nc(c[i].name),s=nc(c[i].abbr),u=nc(c[i].narrow),t.push(o),e.push(s),n.push(u),r.push(o),r.push(s),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")}rn(0,["gg",2],0,function(){return this.weekYear()%100}),rn(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Y1(e,t){rn(0,[e,e.length],0,t)}Y1("gggg","weekYear"),Y1("ggggg","weekYear"),Y1("GGGG","isoWeekYear"),Y1("GGGGG","isoWeekYear"),Ht("G",M1),Ht("g",M1),Ht("GG",zr,Go),Ht("gg",zr,Go),Ht("GGGG",J5,X5),Ht("gggg",J5,X5),Ht("GGGGG",k1,C1),Ht("ggggg",k1,C1),zm(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=jn(e)}),zm(["gg","GG"],function(e,t,n,r){t[r]=ft.parseTwoDigitYear(e)});function E1e(e){return zF.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function L1e(e){return zF.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function T1e(){return ac(this.year(),1,4)}function N1e(){return ac(this.isoWeekYear(),1,4)}function F1e(){var e=this.localeData()._week;return ac(this.year(),e.dow,e.doy)}function O1e(){var e=this.localeData()._week;return ac(this.weekYear(),e.dow,e.doy)}function zF(e,t,n,r,i){var a;return e==null?Wm(this,r,i).year:(a=ac(e,r,i),t>a&&(t=a),I1e.call(this,e,t,n,r,i))}function I1e(e,t,n,r,i){var a=wF(e,t,n,r,i),o=Gm(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}rn("Q",0,"Qo","quarter"),Ht("Q",AF),Sr("Q",function(e,t){t[rc]=(jn(e)-1)*3});function D1e(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}rn("D",["DD",2],"Do","date"),Ht("D",zr,Sh),Ht("DD",zr,Go),Ht("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),Sr(["D","DD"],cu),Sr("Do",function(e,t){t[cu]=jn(e.match(zr)[0])});var qF=kh("Date",!0);rn("DDD",["DDDD",3],"DDDo","dayOfYear"),Ht("DDD",S1),Ht("DDDD",dF),Sr(["DDD","DDDD"],function(e,t,n){n._dayOfYear=jn(e)});function U1e(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}rn("m",["mm",2],0,"minute"),Ht("m",zr,Z5),Ht("mm",zr,Go),Sr(["m","mm"],ol);var P1e=kh("Minutes",!1);rn("s",["ss",2],0,"second"),Ht("s",zr,Z5),Ht("ss",zr,Go),Sr(["s","ss"],ic);var H1e=kh("Seconds",!1);rn("S",0,0,function(){return~~(this.millisecond()/100)}),rn(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),rn(0,["SSS",3],0,"millisecond"),rn(0,["SSSS",4],0,function(){return this.millisecond()*10}),rn(0,["SSSSS",5],0,function(){return this.millisecond()*100}),rn(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),rn(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),rn(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),rn(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Ht("S",S1,AF),Ht("SS",S1,Go),Ht("SSS",S1,dF);var _A,KF;for(_A="SSSS";_A.length<=9;_A+="S")Ht(_A,Ch);function Y1e(e,t){t[Kd]=jn(("0."+e)*1e3)}for(_A="S";_A.length<=9;_A+="S")Sr(_A,Y1e);KF=kh("Milliseconds",!1),rn("z",0,0,"zoneAbbr"),rn("zz",0,0,"zoneName");function R1e(){return this._isUTC?"UTC":""}function Q1e(){return this._isUTC?"Coordinated Universal Time":""}var yt=jm.prototype;yt.add=Ove,yt.calendar=Rve,yt.clone=Qve,yt.diff=Wve,yt.endOf=a1e,yt.format=$ve,yt.from=e1e,yt.fromNow=t1e,yt.to=n1e,yt.toNow=r1e,yt.get=Zge,yt.invalidAt=h1e,yt.isAfter=jve,yt.isBefore=Vve,yt.isBetween=zve,yt.isSame=qve,yt.isSameOrAfter=Kve,yt.isSameOrBefore=Gve,yt.isValid=d1e,yt.lang=YF,yt.locale=HF,yt.localeData=RF,yt.max=dve,yt.min=Ave,yt.parsingFlags=f1e,yt.set=$ge,yt.startOf=i1e,yt.subtract=Ive,yt.toArray=u1e,yt.toObject=c1e,yt.toDate=l1e,yt.toISOString=Jve,yt.inspect=Zve,typeof Symbol<"u"&&Symbol.for!=null&&(yt[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),yt.toJSON=A1e,yt.toString=Xve,yt.unix=s1e,yt.valueOf=o1e,yt.creationData=p1e,yt.eraName=y1e,yt.eraNarrow=_1e,yt.eraAbbr=b1e,yt.eraYear=w1e,yt.year=pF,yt.isLeapYear=Jge,yt.weekYear=E1e,yt.isoWeekYear=L1e,yt.quarter=yt.quarters=D1e,yt.month=_F,yt.daysInMonth=l0e,yt.week=yt.weeks=m0e,yt.isoWeek=yt.isoWeeks=g0e,yt.weeksInYear=F1e,yt.weeksInWeekYear=O1e,yt.isoWeeksInYear=T1e,yt.isoWeeksInISOWeekYear=N1e,yt.date=qF,yt.day=yt.days=L0e,yt.weekday=T0e,yt.isoWeekday=N0e,yt.dayOfYear=U1e,yt.hour=yt.hours=H0e,yt.minute=yt.minutes=P1e,yt.second=yt.seconds=H1e,yt.millisecond=yt.milliseconds=KF,yt.utcOffset=bve,yt.utc=Bve,yt.local=xve,yt.parseZone=Cve,yt.hasAlignedHourOffset=Sve,yt.isDST=kve,yt.isLocal=Eve,yt.isUtcOffset=Lve,yt.isUtc=OF,yt.isUTC=OF,yt.zoneAbbr=R1e,yt.zoneName=Q1e,yt.dates=_s("dates accessor is deprecated. Use date instead.",qF),yt.months=_s("months accessor is deprecated. Use month instead",_F),yt.years=_s("years accessor is deprecated. Use year instead",pF),yt.zone=_s("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",wve),yt.isDSTShifted=_s("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Mve);function j1e(e){return qr(e*1e3)}function V1e(){return qr.apply(null,arguments).parseZone()}function GF(e){return e}var ir=z5.prototype;ir.calendar=Ege,ir.longDateFormat=Fge,ir.invalidDate=Ige,ir.ordinal=Pge,ir.preparse=GF,ir.postformat=GF,ir.relativeTime=Yge,ir.pastFuture=Rge,ir.set=kge,ir.eras=m1e,ir.erasParse=g1e,ir.erasConvertYear=v1e,ir.erasAbbrRegex=x1e,ir.erasNameRegex=B1e,ir.erasNarrowRegex=C1e,ir.months=i0e,ir.monthsShort=a0e,ir.monthsParse=s0e,ir.monthsRegex=c0e,ir.monthsShortRegex=u0e,ir.week=d0e,ir.firstDayOfYear=p0e,ir.firstDayOfWeek=h0e,ir.weekdays=C0e,ir.weekdaysMin=k0e,ir.weekdaysShort=S0e,ir.weekdaysParse=E0e,ir.weekdaysRegex=F0e,ir.weekdaysShortRegex=O0e,ir.weekdaysMinRegex=I0e,ir.isPM=U0e,ir.meridiem=Y0e;function R1(e,t,n,r){var i=oc(),a=su().set(r,t);return i[n](a,e)}function WF(e,t,n){if(tc(e)&&(t=e,e=void 0),e=e||"",t!=null)return R1(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=R1(e,r,n,"month");return i}function pB(e,t,n,r){typeof e=="boolean"?(tc(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,tc(t)&&(n=t,t=void 0),t=t||"");var i=oc(),a=e?i._week.dow:0,o,s=[];if(n!=null)return R1(t,(n+a)%7,r,"day");for(o=0;o<7;o++)s[o]=R1(t,(o+a)%7,r,"day");return s}function z1e(e,t){return WF(e,t,"months")}function q1e(e,t){return WF(e,t,"monthsShort")}function K1e(e,t,n){return pB(e,t,n,"weekdays")}function G1e(e,t,n){return pB(e,t,n,"weekdaysShort")}function W1e(e,t,n){return pB(e,t,n,"weekdaysMin")}yA("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=jn(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}}),ft.lang=_s("moment.lang is deprecated. Use moment.locale instead.",yA),ft.langData=_s("moment.langData is deprecated. Use moment.localeData instead.",oc);var sc=Math.abs;function X1e(){var e=this._data;return this._milliseconds=sc(this._milliseconds),this._days=sc(this._days),this._months=sc(this._months),e.milliseconds=sc(e.milliseconds),e.seconds=sc(e.seconds),e.minutes=sc(e.minutes),e.hours=sc(e.hours),e.months=sc(e.months),e.years=sc(e.years),this}function XF(e,t,n,r){var i=sl(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function J1e(e,t){return XF(this,e,t,1)}function Z1e(e,t){return XF(this,e,t,-1)}function JF(e){return e<0?Math.floor(e):Math.ceil(e)}function $1e(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,a,o,s,u;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=JF(mB(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=ws(e/1e3),r.seconds=i%60,a=ws(i/60),r.minutes=a%60,o=ws(a/60),r.hours=o%24,t+=ws(o/24),u=ws(ZF(t)),n+=u,t-=JF(mB(u)),s=ws(n/12),n%=12,r.days=t,r.months=n,r.years=s,this}function ZF(e){return e*4800/146097}function mB(e){return e*146097/4800}function eye(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=bs(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+ZF(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(mB(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 lc(e){return function(){return this.as(e)}}var $F=lc("ms"),tye=lc("s"),nye=lc("m"),rye=lc("h"),iye=lc("d"),aye=lc("w"),oye=lc("M"),sye=lc("Q"),lye=lc("y"),uye=$F;function cye(){return sl(this)}function Aye(e){return e=bs(e),this.isValid()?this[e+"s"]():NaN}function Wd(e){return function(){return this.isValid()?this._data[e]:NaN}}var dye=Wd("milliseconds"),fye=Wd("seconds"),hye=Wd("minutes"),pye=Wd("hours"),mye=Wd("days"),gye=Wd("months"),vye=Wd("years");function yye(){return ws(this.days()/7)}var uc=Math.round,Th={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function _ye(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function bye(e,t,n,r){var i=sl(e).abs(),a=uc(i.as("s")),o=uc(i.as("m")),s=uc(i.as("h")),u=uc(i.as("d")),c=uc(i.as("M")),A=uc(i.as("w")),f=uc(i.as("y")),h=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||o<=1&&["m"]||o<n.m&&["mm",o]||s<=1&&["h"]||s<n.h&&["hh",s]||u<=1&&["d"]||u<n.d&&["dd",u];return n.w!=null&&(h=h||A<=1&&["w"]||A<n.w&&["ww",A]),h=h||c<=1&&["M"]||c<n.M&&["MM",c]||f<=1&&["y"]||["yy",f],h[2]=t,h[3]=+e>0,h[4]=r,_ye.apply(null,h)}function wye(e){return e===void 0?uc:typeof e=="function"?(uc=e,!0):!1}function Bye(e,t){return Th[e]===void 0?!1:t===void 0?Th[e]:(Th[e]=t,e==="s"&&(Th.ss=t-1),!0)}function xye(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=Th,i,a;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},Th,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),a=bye(this,!n,r,i),n&&(a=i.pastFuture(+this,a)),i.postformat(a)}var gB=Math.abs;function Nh(e){return(e>0)-(e<0)||+e}function Q1(){if(!this.isValid())return this.localeData().invalidDate();var e=gB(this._milliseconds)/1e3,t=gB(this._days),n=gB(this._months),r,i,a,o,s=this.asSeconds(),u,c,A,f;return s?(r=ws(e/60),i=ws(r/60),e%=60,r%=60,a=ws(n/12),n%=12,o=e?e.toFixed(3).replace(/\.?0+$/,""):"",u=s<0?"-":"",c=Nh(this._months)!==Nh(s)?"-":"",A=Nh(this._days)!==Nh(s)?"-":"",f=Nh(this._milliseconds)!==Nh(s)?"-":"",u+"P"+(a?c+a+"Y":"")+(n?c+n+"M":"")+(t?A+t+"D":"")+(i||r||e?"T":"")+(i?f+i+"H":"")+(r?f+r+"M":"")+(e?f+o+"S":"")):"P0D"}var Jn=I1.prototype;Jn.isValid=gve,Jn.abs=X1e,Jn.add=J1e,Jn.subtract=Z1e,Jn.as=eye,Jn.asMilliseconds=$F,Jn.asSeconds=tye,Jn.asMinutes=nye,Jn.asHours=rye,Jn.asDays=iye,Jn.asWeeks=aye,Jn.asMonths=oye,Jn.asQuarters=sye,Jn.asYears=lye,Jn.valueOf=uye,Jn._bubble=$1e,Jn.clone=cye,Jn.get=Aye,Jn.milliseconds=dye,Jn.seconds=fye,Jn.minutes=hye,Jn.hours=pye,Jn.days=mye,Jn.weeks=yye,Jn.months=gye,Jn.years=vye,Jn.humanize=xye,Jn.toISOString=Q1,Jn.toString=Q1,Jn.toJSON=Q1,Jn.locale=HF,Jn.localeData=RF,Jn.toIsoString=_s("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Q1),Jn.lang=YF,rn("X",0,0,"unix"),rn("x",0,0,"valueOf"),Ht("x",M1),Ht("X",zge),Sr("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)}),Sr("x",function(e,t,n){n._d=new Date(jn(e))});//! moment.js
90
- ft.version="2.30.1",Cge(qr),ft.fn=yt,ft.min=fve,ft.max=hve,ft.now=pve,ft.utc=su,ft.unix=j1e,ft.months=z1e,ft.isDate=Qm,ft.locale=yA,ft.invalid=w1,ft.duration=sl,ft.isMoment=al,ft.weekdays=K1e,ft.parseZone=V1e,ft.localeData=oc,ft.isDuration=D1,ft.monthsShort=q1e,ft.weekdaysMin=W1e,ft.defineLocale=iB,ft.updateLocale=V0e,ft.locales=z0e,ft.weekdaysShort=G1e,ft.normalizeUnits=bs,ft.relativeTimeRounding=wye,ft.relativeTimeThreshold=Bye,ft.calendarFormat=Yve,ft.prototype=yt,ft.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 Cye={class:"col"},Sye={__name:"DatePickerInput",props:{from:Number,to:Number},emits:["selectTime","error"],setup(e,{emit:t}){const n=e,r=t,i=l.ref(u());l.watch(()=>[n.from,n.to],([A,f])=>{const h=Array.isArray(i.value)?i.value:[],d=h.length===2?[...h]:u();let m=!1;c(A)&&(d[0]=s(A),m=!0),c(f)&&(d[1]=s(f),m=!0),m?i.value=d:o()},{immediate:!0}),l.watch(i,(A,f)=>{Array.isArray(A)&&A.length===2&&A[0]&&A[1]&&(A[0]>A[1]?r("error","Time from is greater than time to"):Array.isArray(f)&&f.length===2&&f[0]&&f[1]?(f[0]!==A[0]||f[1]!==A[1])&&r("selectTime",[ft(A[0]).valueOf(),ft(A[1]).valueOf()]):r("selectTime",[ft(A[0]).valueOf(),ft(A[1]).valueOf()]))},{deep:!0});function a(){const A=ft().valueOf();return[{label:"Last Hour",atClick:()=>[ft().subtract(1,"hours").valueOf(),A]},{label:"Last Three Hours",atClick:()=>[ft().subtract(3,"hours").valueOf(),A]},{label:"Last Six Hours",atClick:()=>[ft().subtract(6,"hours").valueOf(),A]},{label:"Last Twelve Hours",atClick:()=>[ft().subtract(12,"hours").valueOf(),A]},{label:"Last Day",atClick:()=>[ft().subtract(1,"days").valueOf(),A]},{label:"Last Three Days",atClick:()=>[ft().subtract(3,"days").valueOf(),A]},{label:"Last Week",atClick:()=>[ft().subtract(7,"days").valueOf(),A]}]}function o(){i.value=u()}function s(A){return ft(A).format("YYYY-MM-DD HH:mm:ss")}function u(){return[s(ft().subtract(1,"hours")),s(ft())]}function c(A){return typeof A=="number"&&!Number.isNaN(A)&&A>0}return(A,f)=>(l.openBlock(),l.createElementBlock("div",Cye,[l.createVNode(l.unref(b1),{shortcuts:a,modelValue:i.value,"onUpdate:modelValue":f[0]||(f[0]=h=>i.value=h)},null,8,["modelValue"])]))}},kye={key:0},Mye={key:1},Eye={key:2},Lye=l.defineComponent({__name:"TriState",props:["state"],emits:["newState"],setup(e,{emit:t}){const n=e,r=t,i=l.ref(n.state);function a(){switch(i.value){case"unchecked":i.value="checked";break;case"checked":i.value="ignored";break;default:i.value="unchecked"}r("newState",i.value)}return(o,s)=>(l.openBlock(),l.createElementBlock("div",{onClick:s[0]||(s[0]=u=>a())},[i.value==="unchecked"?(l.openBlock(),l.createElementBlock("div",kye,[l.createVNode(eu)])):l.createCommentVNode("",!0),i.value==="checked"?(l.openBlock(),l.createElementBlock("div",Mye,[l.createVNode(eu,{checked:!0})])):l.createCommentVNode("",!0),i.value==="ignored"?(l.openBlock(),l.createElementBlock("div",Eye,[l.createVNode(eu,{indeterminate:!0})])):l.createCommentVNode("",!0)]))}}),Tye={class:"text-sm font-light"},Nye={class:"flex justify-between pt-3 pb-1 relative"},Fye={class:"font-light"},Oye={class:"flex"},Iye={class:"flex justify-between py-1"},Dye={class:"flex items-center min-w-0"},Uye={class:"px-2 truncate"},Pye=l.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,i=l.ref(n.parent.show),a=l.ref(!1);function o(){return i.value<n.children.length?"std-blue-text cursor-pointer":"std-disabled-text cursor-not-allowed"}function s(){return i.value===0||n.children.length===0?"std-disabled-text cursor-not-allowed":"std-blue-text cursor-pointer"}function u(){i.value<n.children.length&&(i.value+=5)}function c(){i.value>0&&(i.value-=5)}function A(f,h,d){r("newState",f,h,d)}return(f,h)=>(l.openBlock(),l.createElementBlock("div",Tye,[l.createElementVNode("div",Nye,[l.createElementVNode("div",{class:"text-base font-normal max-w-3/4 truncate",onMouseover:h[0]||(h[0]=d=>a.value=!0),onMouseout:h[1]||(h[1]=d=>a.value=!1)},[l.createTextVNode(l.toDisplayString(e.parent.title)+" ",1),l.createElementVNode("span",Fye,"("+l.toDisplayString(e.children.length)+")",1)],32),l.createElementVNode("div",Oye,[l.createVNode(l.unref(zne),{class:l.normalizeClass(["icon-lg",o()]),onClick:h[2]||(h[2]=d=>u())},null,8,["class"]),l.createVNode(l.unref(Qne),{class:l.normalizeClass(["icon-lg",s()]),onClick:h[3]||(h[3]=d=>c())},null,8,["class"])]),n.tooltip?(l.openBlock(),l.createBlock(Vu,{key:0,tooltip:e.parent.label,showingTooltip:a.value,direction:"top",class:"left-20"},null,8,["tooltip","showingTooltip"])):l.createCommentVNode("",!0)]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.children.slice(0,i.value),d=>(l.openBlock(),l.createElementBlock("div",Iye,[l.createElementVNode("div",Dye,[l.createVNode(Lye,{state:d.state,onNewState:m=>A(e.parent.label,d.label,m)},null,8,["state","onNewState"]),l.createElementVNode("div",Uye,l.toDisplayString(d.label?d.label:"-"),1)]),l.createElementVNode("div",null,l.toDisplayString(d.count),1)]))),256))]))}}),Hye={class:"hidden md:col md:h-full overflow-hidden"},Yye={key:0,class:"flex"},Rye={class:"h-0 flex-1 overflow-y-auto px-1"},Qye={key:0,class:"q-ml-md text-bold"},jye={key:1,class:"flex flex-shrink-0 px-1 py-1"},Vye={class:"relative isolate inline-flex rounded-md shadow-xs"},zye=cr(l.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 y,v,_;const n=e,r=t,i=l.ref((y=n.facetOptions)==null?void 0:y.mustFilters),a=l.ref((v=n.facetOptions)==null?void 0:v.mustNotFilters),o=l.ref((_=n.facetOptions)==null?void 0:_.searchStr),s=l.ref(n.state),u=l.ref(!1),c=l.ref("");function A(b,w){const M=w.find(x=>x.field===b.parent);typeof M<"u"?M.terms.push(b.child):w.push({field:b.parent,terms:[b.child]})}function f(b,w){const M=w.find(x=>x.field===b.parent);if(typeof M<"u"){const x=M.terms.indexOf(b.child);if(x>-1&&(M.terms.splice(x,1),M.terms.length===0)){const L=w.findIndex(N=>N.field===b.parent);w.splice(L,1)}}}function h(b,w,M){M==="checked"?d({parent:b,child:w}):M==="ignored"?m({parent:b,child:w}):p({parent:b,child:w})}function d(b){A(b,i.value)}function m(b){f(b,i.value),A(b,a.value)}function p(b){f(b,a.value)}function g(b,w=""){u.value=b,c.value=w}return(b,w)=>(l.openBlock(),l.createElementBlock("div",Hye,[e.searchBar?(l.openBlock(),l.createElementBlock("div",Yye,[l.createVNode(gN,{class:"w-full",str:o.value,onSearch:w[0]||(w[0]=M=>r("search")),onUpdate:w[1]||(w[1]=M=>r("updateStr",M))},null,8,["str"])])):l.createCommentVNode("",!0),l.createElementVNode("div",Rye,[e.tree.length==0?(l.openBlock(),l.createElementBlock("div",Qye," No Facet data. Please select a search query. ")):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.tree,M=>(l.openBlock(),l.createElementBlock("div",{key:M.id,class:"primary"},[l.createVNode(Pye,{parent:M,children:M.children,clear:s.value,"facet-options":e.facetOptions,tooltip:e.tooltip,onNewState:h},null,8,["parent","children","clear","facet-options","tooltip"]),l.createVNode(Mw)]))),128))]),e.buttons?(l.openBlock(),l.createElementBlock("div",jye,[l.createElementVNode("span",Vye,[l.createElementVNode("button",{type:"button",class:"action-btn std-btn-red rounded-l-md",onClick:w[2]||(w[2]=M=>r("reset")),onMouseover:w[3]||(w[3]=M=>g(!0,"Reset Facet")),onMouseout:w[4]||(w[4]=M=>g(!1))},[l.createVNode(l.unref(Nd),{class:"icon-md","aria-hidden":"true"})],32),l.createElementVNode("button",{type:"button",class:"action-btn std-btn-blue",onClick:w[5]||(w[5]=M=>r("edit")),onMouseover:w[6]||(w[6]=M=>g(!0,"Edit Facet")),onMouseout:w[7]||(w[7]=M=>g(!1))},[l.createVNode(l.unref(H6),{class:"icon-md","aria-hidden":"true"})],32),l.createElementVNode("button",{type:"button",class:"action-btn std-btn-blue",onClick:w[8]||(w[8]=M=>r("save")),onMouseover:w[9]||(w[9]=M=>g(!0,"Save Facet")),onMouseout:w[10]||(w[10]=M=>g(!1))},[l.createVNode(J8,{class:"icon-md","aria-hidden":"true"})],32),l.createElementVNode("button",{type:"button",class:"action-btn std-btn-blue rounded-r-md",onClick:w[11]||(w[11]=M=>r("search")),onMouseover:w[12]||(w[12]=M=>g(!0,"Search")),onMouseout:w[13]||(w[13]=M=>g(!1))},[l.createVNode(l.unref(xw),{class:"icon-md","aria-hidden":"true"})],32),l.createVNode(Vu,{tooltip:c.value,showingTooltip:u.value,direction:"top",style:{transform:"translateY(-40%)"}},null,8,["tooltip","showingTooltip"])])])):l.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-2890730f"]]),qye=[{label:"Hourly",value:"hourly"},{label:"Daily",value:"daily"},{label:"Weekly",value:"weekly"},{label:"Monthly",value:"monthly"}],Kye=[{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}],Gye=Array.from({length:24},(e,t)=>({label:t.toString(),value:t})),Wye=Array.from({length:31},(e,t)=>({label:(t+1).toString(),value:t+1})),Xye=[{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"}],Jye={class:"px-2"},Zye={class:"flex gap-x-3"},$ye={__name:"Schedule",props:{schedule:Object},setup(e){const t=e,n=l.ref(t.schedule),r=l.computed(()=>n.value.interval==="minute"?Array.from({length:60},(i,a)=>{const o=a+1;return{label:o.toString(),value:o}}):n.value.interval==="hourly"||n.value.interval==="daily"?Array.from({length:12},(i,a)=>{const o=a*5;return{label:o.toString(),value:o}}):[]);return(i,a)=>(l.openBlock(),l.createBlock(mm,{sectionName:"Schedule Details"},{default:l.withCtx(()=>[l.createElementVNode("div",Jye,[l.createVNode(qi,{fieldName:"Interval"},{default:l.withCtx(()=>[l.createVNode(dr,{modelValue:n.value.interval,"onUpdate:modelValue":a[0]||(a[0]=o=>n.value.interval=o),options:l.unref(qye)},null,8,["modelValue","options"])]),_:1}),l.createElementVNode("div",Zye,[n.value.interval==="monthly"?(l.openBlock(),l.createBlock(qi,{key:0,fieldName:"Day",class:"w-44"},{default:l.withCtx(()=>[l.createVNode(dr,{modelValue:n.value.day,"onUpdate:modelValue":a[1]||(a[1]=o=>n.value.day=o),options:l.unref(Wye)},null,8,["modelValue","options"])]),_:1})):l.createCommentVNode("",!0),n.value.interval==="weekly"?(l.openBlock(),l.createBlock(qi,{key:1,fieldName:"Weekday",class:"w-44"},{default:l.withCtx(()=>[l.createVNode(dr,{modelValue:n.value.weekday,"onUpdate:modelValue":a[2]||(a[2]=o=>n.value.weekday=o),options:l.unref(Kye)},null,8,["modelValue","options"])]),_:1})):l.createCommentVNode("",!0),n.value.interval!=="minute"&&n.value.interval!=="hourly"?(l.openBlock(),l.createBlock(qi,{key:2,fieldName:"Hour",class:"w-44"},{default:l.withCtx(()=>[l.createVNode(dr,{modelValue:n.value.hour,"onUpdate:modelValue":a[3]||(a[3]=o=>n.value.hour=o),options:l.unref(Gye)},null,8,["modelValue","options"])]),_:1})):l.createCommentVNode("",!0),n.value.interval==="minute"||n.value.interval==="hourly"||n.value.interval==="daily"?(l.openBlock(),l.createBlock(qi,{key:3,fieldName:"Minute",class:"w-44"},{default:l.withCtx(()=>[l.createVNode(dr,{modelValue:n.value.minute,"onUpdate:modelValue":a[4]||(a[4]=o=>n.value.minute=o),options:r.value},null,8,["modelValue","options"])]),_:1})):l.createCommentVNode("",!0)]),n.value.interval!=="minute"&&n.value.interval!=="hourly"?(l.openBlock(),l.createBlock(qi,{key:0,fieldName:"Timezone"},{default:l.withCtx(()=>[l.createVNode(dr,{modelValue:n.value.timezone,"onUpdate:modelValue":a[5]||(a[5]=o=>n.value.timezone=o),options:l.unref(Xye)},null,8,["modelValue","options"])]),_:1})):l.createCommentVNode("",!0)])]),_:1}))}};function e_e(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.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 t_e(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.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 eO=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 $m(e){if(!e)return new Date;if(e.toString().indexOf("/")!==-1)return new Date(e);if(e.toString().indexOf("-")!==-1)return new Date(e);if(e.toString().startsWith("2")){const n=e.substring(0,4),r=e.substring(4,6),i=e.substring(6,8);return new Date(n,r-1,i)}return new Date(e).valueOf()!==e?new Date(e*1e3):new Date(e)}function n_e(e){return ft(e).fromNow()}const r_e={role:"list",class:"space-y-6"},i_e={class:"relative flex gap-x-4"},a_e={class:"relative flex icon-lg flex-none items-center justify-center std-white"},o_e={key:2,class:"h-2 w-2 rounded-full std-white-reverse ring-1 ring-gray-300"},s_e={class:"flex-auto py-0.5 text-xs leading-5"},l_e={class:"font-bold"},u_e=["datetime"],c_e={__name:"Feed",props:{data:Array},setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("ul",r_e,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.data,(r,i)=>(l.openBlock(),l.createElementBlock("li",i_e,[l.createElementVNode("div",{class:l.normalizeClass([i===e.data.length-1?"h-6":"-bottom-6","absolute left-0 top-0 flex w-6 justify-center"])},n[0]||(n[0]=[l.createElementVNode("div",{class:"w-px slider-active"},null,-1)]),2),l.createElementVNode("div",a_e,[r.action==="resolve"?(l.openBlock(),l.createBlock(l.unref(e_e),{key:0,class:"icon-lg icon-green","aria-hidden":"true"})):r.action==="trigger"?(l.openBlock(),l.createBlock(l.unref(t_e),{key:1,class:"icon-lg icon-red","aria-hidden":"true"})):(l.openBlock(),l.createElementBlock("div",o_e))]),l.createElementVNode("p",s_e,[l.createElementVNode("span",l_e,l.toDisplayString(r.source),1),l.createTextVNode(" "+l.toDisplayString(r.action)+" the alert. ",1)]),l.createElementVNode("time",{datetime:r.timestamp,class:"flex-none py-0.5 text-xs leading-5 font-light"},l.toDisplayString(l.unref(n_e)(r.timestamp)),9,u_e)]))),256))]))}},A_e={class:"mb-3 flex items-center justify-between relative"},d_e={class:"min-w-0 flex-1"},f_e={class:"row truncate font-medium"},h_e={class:"text-xs font-light"},p_e={class:"flex mt-0 ml-4"},m_e={__name:"CategoryCard",props:{category:{type:[Object,String],required:!0},description:String},setup(e){return(t,n)=>(l.openBlock(),l.createBlock(gm,null,{default:l.withCtx(()=>[l.createElementVNode("div",A_e,[l.renderSlot(t.$slots,"icon"),l.createElementVNode("div",d_e,[l.createElementVNode("h3",f_e,[l.createTextVNode(l.toDisplayString(e.category.name||e.category)+" ",1),l.renderSlot(t.$slots,"title")]),l.createElementVNode("p",h_e,l.toDisplayString(e.description),1)]),l.createElementVNode("div",p_e,[l.renderSlot(t.$slots,"header")])]),l.renderSlot(t.$slots,"default")]),_:3}))}},g_e={},v_e={class:"min-h-11 pl-3 py-1 sm:flex sm:items-center sm:justify-between content-center std-light dark:std-dark"},y_e={class:"mt-3 flex sm:mt-0"};function __e(e,t){return l.openBlock(),l.createElementBlock("div",v_e,[l.renderSlot(e.$slots,"title"),l.createElementVNode("div",y_e,[l.renderSlot(e.$slots,"buttons")])])}const b_e=cr(g_e,[["render",__e]]),w_e={class:"py-1"},B_e=["onClick"],tO={__name:"Select",props:{options:{type:Array,required:!0},direction:{type:String,default:"left"},optionsSize:{type:String,default:"40"},size:{type:String,default:"xs"},color:String,current:{type:String,default:""},disabled:Boolean,dense:Boolean},emits:["select"],setup(e,{emit:t}){const n=e,r=t;function i(a){return n.current===a||n.current===(a==null?void 0:a.label)}return(a,o)=>(l.openBlock(),l.createBlock(l.unref(kd),{as:"div",class:"relative inline-block text-left"},{default:l.withCtx(()=>[l.createVNode(l.unref(Md),{class:l.normalizeClass([`group inline-flex justify-center text-${e.size} font-medium`,{"std-btn std-btn-red":e.color==="red"},{"std-btn std-btn-green":e.color==="green"},{"std-btn std-btn-blue":e.color==="blue"},{"px-3! py-1!":e.dense}]),disabled:e.disabled},{default:l.withCtx(()=>[l.renderSlot(a.$slots,"btn")]),_:3},8,["class","disabled"]),l.createVNode(l.Transition,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:l.withCtx(()=>[l.createVNode(l.unref(Ed),{class:l.normalizeClass([`std-white input-dropdown w-${e.optionsSize} origin-top-right shadow-lg max-h-96`,e.direction==="right"?"left-0 ":"right-0",{"std-red":e.color==="red"},{"std-green":e.color==="green"},{"std-blue":e.color==="blue"},{"std-white":e.color!=="red"&&e.color!=="blue"&&e.color!=="green"}])},{default:l.withCtx(()=>[l.createElementVNode("div",w_e,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.options,s=>(l.openBlock(),l.createBlock(l.unref($l),{key:s},{default:l.withCtx(({active:u})=>[l.createElementVNode("span",{class:l.normalizeClass([{"outline-hidden":u},{"white-bg-hover dark:dark-bg-hover":e.color!=="red"&&e.color!=="blue"&&e.color!=="green"&&(u||i(s))},{"std-red-hover-light":e.color==="red"&&(u||i(s))},{"std-blue-hover-light":e.color==="blue"&&(u||i(s))},{"std-green-hover-light":e.color==="green"&&(u||i(s))},`group flex w-full items-center rounded-md px-2 py-2 text-${e.size} cursor-pointer`]),onClick:l.withModifiers(c=>r("select",s),["stop"])},l.toDisplayString((s==null?void 0:s.label)||s),11,B_e)]),_:2},1024))),128))])]),_:1},8,["class"])]),_:1})]),_:3}))}},nO={__name:"Sort",props:{options:{type:Array,required:!0},direction:{type:String,default:"left"},current:{type:Object,default:()=>({})},size:{type:String,default:"xs"}},emits:["sort"],setup(e,{emit:t}){const n=e,r=t,i=l.computed(()=>n.size==="xs"?"icon":n.size==="sm"?"icon-md":n.size==="md"?"icon-lg":n.size==="lg"?"icon-xl":"icon");return(a,o)=>(l.openBlock(),l.createBlock(tO,{options:e.options,current:e.current.label,direction:e.direction,size:e.size,onSelect:o[0]||(o[0]=s=>r("sort",s))},{btn:l.withCtx(()=>[l.createVNode(l.unref($8),{class:l.normalizeClass(`${i.value} mr-2`)},null,8,["class"]),o[1]||(o[1]=l.createTextVNode(" Sort By ",-1)),l.createVNode(l.unref(a1),{class:l.normalizeClass(`${i.value} ml-2`)},null,8,["class"])]),_:1},8,["options","current","direction","size"]))}},x_e={class:"row py-0.5 border-b items-center"},C_e={__name:"CheckDropdown",props:{options:{type:Array,required:!0},text:{type:String,default:"Filter"},size:{type:String,default:"sm"},color:String,direction:{type:String,default:"left"},optionsSize:{type:String,default:"40"},disabled:Boolean,dense:Boolean,selectAll:{type:Boolean,default:!0}},emits:[],setup(e,{emit:t}){const n=e,r=l.ref(!!n.selectAll),i=l.computed(()=>n.size==="xs"?"icon":n.size==="sm"?"icon-md":n.size==="md"?"icon-lg":n.size==="lg"?"icon-xl":"icon");function a(){const o=r.value;n.options.forEach(s=>{s.checked=o})}return(o,s)=>(l.openBlock(),l.createBlock(l.unref(gw),{as:"div",class:"relative inline-block text-left"},{default:l.withCtx(()=>[l.createVNode(l.unref(w6),{class:l.normalizeClass([`group inline-flex justify-center text-${e.size} font-medium`,{"std-btn std-btn-red":e.color==="red"},{"std-btn std-btn-green":e.color==="green"},{"std-btn std-btn-blue":e.color==="blue"},{"px-3! py-1!":e.dense}]),disabled:e.disabled},{default:l.withCtx(()=>[l.renderSlot(o.$slots,"btn"),l.createTextVNode(" "+l.toDisplayString(e.text)+" ",1),l.createVNode(l.unref(I6),{class:l.normalizeClass([i.value])},null,8,["class"])]),_:3},8,["class","disabled"]),l.createVNode(l.Transition,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:l.withCtx(()=>[l.createVNode(l.unref(B6),{class:l.normalizeClass(["std-white input-dropdown origin-top-right shadow-lg max-h-96",`w-${e.optionsSize}`,e.direction==="right"?"left-0 ":"right-0",{"std-red":e.color==="red"},{"std-green":e.color==="green"},{"std-blue":e.color==="blue"},{"std-white":e.color!=="red"&&e.color!=="blue"&&e.color!=="green"}])},{default:l.withCtx(()=>[l.createElementVNode("div",null,[l.createElementVNode("span",x_e,[l.createVNode(eu,{modelValue:r.value,"onUpdate:modelValue":[s[0]||(s[0]=u=>r.value=u),a],size:e.size},null,8,["modelValue","size"]),l.createElementVNode("span",{class:l.normalizeClass(`ml-1 text-${e.size}`)},"Select All",2)]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.options,(u,c)=>(l.openBlock(),l.createElementBlock("span",{class:l.normalizeClass(["row py-0.5 items-center",{"border-b":c<e.options.length-1}])},[l.createVNode(eu,{modelValue:u.checked,"onUpdate:modelValue":A=>u.checked=A,disabled:r.value,size:e.size},null,8,["modelValue","onUpdate:modelValue","disabled","size"]),l.createElementVNode("span",{class:l.normalizeClass([`ml-1 text-${e.size}`,{"font-thin":r.value}])},l.toDisplayString(u.label),3)],2))),256))])]),_:1},8,["class"])]),_:1})]),_:3}))}},S_e=["title"],k_e={key:1,class:"text-xs"},M_e={__name:"Flag",props:{country:String,city:String,org:String,squared:{type:Boolean,default:!1}},emits:[],setup(e,{emit:t}){const n=e;return(r,i)=>(l.openBlock(),l.createElementBlock("div",null,[e.country?(l.openBlock(),l.createElementBlock("span",{key:0,class:l.normalizeClass(["fi mr-1",{fis:n.squared},`fi-${n.country.toLowerCase()}`]),title:e.country},null,10,S_e)):l.createCommentVNode("",!0),e.city?(l.openBlock(),l.createElementBlock("span",k_e,l.toDisplayString(e.city)+", "+l.toDisplayString(e.org),1)):l.createCommentVNode("",!0)]))}},E_e={class:"col md:flex-row md:justify-between gap-x-5 my-4"},L_e={class:"col items-center mt-2"},T_e={class:"row"},N_e={class:"text-5xl font-semibold"},F_e={class:"font-light"},O_e={class:"col items-center mt-2"},I_e={class:"row"},D_e={class:"text-5xl font-semibold"},U_e={class:"font-light"},P_e={class:"col items-center mt-2"},H_e={class:"row"},Y_e={class:"text-5xl font-semibold"},R_e={class:"font-light"},Q_e={__name:"ThreeHomePanel",props:{firstPanelValue:[Number,String],firstPanelName:String,secondPanelValue:[Number,String],secondPanelName:String,thirdPanelValue:[Number,String],thirdPanelName:String,shadow:{type:Boolean,default:!1}},setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("div",E_e,[l.createVNode(gm,{class:l.normalizeClass(["md:w-1/3",{"dark:bg-black":e.shadow}])},{default:l.withCtx(()=>[l.createElementVNode("div",L_e,[l.createElementVNode("div",T_e,[l.renderSlot(t.$slots,"firstPanelIcon"),l.createElementVNode("div",N_e,l.toDisplayString(e.firstPanelValue),1)]),l.createElementVNode("div",F_e,l.toDisplayString(e.firstPanelName),1)])]),_:3},8,["class"]),l.createVNode(gm,{class:l.normalizeClass(["md:w-1/3",{"dark:bg-black":e.shadow}])},{default:l.withCtx(()=>[l.createElementVNode("div",O_e,[l.createElementVNode("div",I_e,[l.renderSlot(t.$slots,"secondPanelIcon"),l.createElementVNode("div",D_e,l.toDisplayString(e.secondPanelValue),1)]),l.createElementVNode("div",U_e,l.toDisplayString(e.secondPanelName),1)])]),_:3},8,["class"]),l.createVNode(gm,{class:l.normalizeClass(["md:w-1/3",{"dark:bg-black":e.shadow}])},{default:l.withCtx(()=>[l.createElementVNode("div",P_e,[l.createElementVNode("div",H_e,[l.renderSlot(t.$slots,"thirdPanelIcon"),l.createElementVNode("div",Y_e,l.toDisplayString(e.thirdPanelValue),1)]),l.createElementVNode("div",R_e,l.toDisplayString(e.thirdPanelName),1)])]),_:3},8,["class"])]))}};function bA(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function eg(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function j1(e){let t,n,r;e.length!==2?(t=bA,n=(s,u)=>bA(e(s),u),r=(s,u)=>e(s)-u):(t=e===bA||e===eg?e:j_e,n=e,r=e);function i(s,u,c=0,A=s.length){if(c<A){if(t(u,u)!==0)return A;do{const f=c+A>>>1;n(s[f],u)<0?c=f+1:A=f}while(c<A)}return c}function a(s,u,c=0,A=s.length){if(c<A){if(t(u,u)!==0)return A;do{const f=c+A>>>1;n(s[f],u)<=0?c=f+1:A=f}while(c<A)}return c}function o(s,u,c=0,A=s.length){const f=i(s,u,c,A-1);return f>c&&r(s[f-1],u)>-r(s[f],u)?f-1:f}return{left:i,center:o,right:a}}function j_e(){return 0}function rO(e){return e===null?NaN:+e}function*V_e(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 V1=j1(bA).right;j1(rO).center;function vB(e,t){let n=0;for(let r of e)r!=null&&(r=+r)>=r&&++n;return n}function z_e(e){return e.length|0}function q_e(e){return!(e>0)}function K_e(e){return typeof e!="object"||"length"in e?e:Array.from(e)}function G_e(e){return t=>e(...t)}function W_e(...e){const t=typeof e[e.length-1]=="function"&&G_e(e.pop());e=e.map(K_e);const n=e.map(z_e),r=e.length-1,i=new Array(r+1).fill(0),a=[];if(r<0||n.some(q_e))return a;for(;;){a.push(i.map((s,u)=>e[u][s]));let o=r;for(;++i[o]===n[o];){if(o===0)return t?a.map(t):a;i[o--]=0}}}function iO(e,t){let n=0,r,i=0,a=0;if(t===void 0)for(let o of e)o!=null&&(o=+o)>=o&&(r=o-i,i+=r/++n,a+=r*(o-i));else{let o=-1;for(let s of e)(s=t(s,++o,e))!=null&&(s=+s)>=s&&(r=s-i,i+=r/++n,a+=r*(s-i))}if(n>1)return a/(n-1)}function aO(e,t){const n=iO(e,t);return n&&Math.sqrt(n)}function xi(e,t){let n,r;if(t===void 0)for(const i of e)i!=null&&(n===void 0?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)));else{let i=-1;for(let a of e)(a=t(a,++i,e))!=null&&(n===void 0?a>=a&&(n=r=a):(n>a&&(n=a),r<a&&(r=a)))}return[n,r]}class Xd{constructor(){this._partials=new Float64Array(32),this._n=0}add(t){const n=this._partials;let r=0;for(let i=0;i<this._n&&i<32;i++){const a=n[i],o=t+a,s=Math.abs(t)<Math.abs(a)?t-(o-a):a-(o-t);s&&(n[r++]=s),t=o}return n[r]=t,this._n=r+1,this}valueOf(){const t=this._partials;let n=this._n,r,i,a,o=0;if(n>0){for(o=t[--n];n>0&&(r=o,i=t[--n],o=r+i,a=i-(o-r),!a););n>0&&(a<0&&t[n-1]<0||a>0&&t[n-1]>0)&&(i=a*2,r=o+i,i==r-o&&(o=r))}return o}}class tg extends Map{constructor(t,n=lO){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(yB(this,t))}has(t){return super.has(yB(this,t))}set(t,n){return super.set(oO(this,t),n)}delete(t){return super.delete(sO(this,t))}}class ng extends Set{constructor(t,n=lO){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(yB(this,t))}add(t){return super.add(oO(this,t))}delete(t){return super.delete(sO(this,t))}}function yB({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function oO({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function sO({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function lO(e){return e!==null&&typeof e=="object"?e.valueOf():e}function z1(e){return e}function uO(e,...t){return K1(e,z1,z1,t)}function q1(e,t,...n){return K1(e,z1,t,n)}function X_e(e,t,...n){return K1(e,Array.from,t,n)}function cO(e,...t){return K1(e,z1,J_e,t)}function J_e(e){if(e.length!==1)throw new Error("duplicate key");return e[0]}function K1(e,t,n,r){return function i(a,o){if(o>=r.length)return n(a);const s=new tg,u=r[o++];let c=-1;for(const A of a){const f=u(A,++c,a),h=s.get(f);h?h.push(A):s.set(f,[A])}for(const[A,f]of s)s.set(A,i(f,o));return t(s)}(e,0)}function Z_e(e,t){return Array.from(t,n=>e[n])}function AO(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,(i,a)=>a);return t.length>1?(t=t.map(i=>e.map(i)),r.sort((i,a)=>{for(const o of t){const s=G1(o[i],o[a]);if(s)return s}})):(n=e.map(n),r.sort((i,a)=>G1(n[i],n[a]))),Z_e(e,r)}return e.sort(dO(n))}function dO(e=bA){if(e===bA)return G1;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 G1(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const $_e=Math.sqrt(50),ebe=Math.sqrt(10),tbe=Math.sqrt(2);function W1(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/Math.pow(10,i),o=a>=$_e?10:a>=ebe?5:a>=tbe?2:1;let s,u,c;return i<0?(c=Math.pow(10,-i)/o,s=Math.round(e*c),u=Math.round(t*c),s/c<e&&++s,u/c>t&&--u,c=-c):(c=Math.pow(10,i)*o,s=Math.round(e/c),u=Math.round(t/c),s*c<e&&++s,u*c>t&&--u),u<s&&.5<=n&&n<2?W1(e,t,n*2):[s,u,c]}function Jd(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,a,o]=r?W1(t,e,n):W1(e,t,n);if(!(a>=i))return[];const s=a-i+1,u=new Array(s);if(r)if(o<0)for(let c=0;c<s;++c)u[c]=(a-c)/-o;else for(let c=0;c<s;++c)u[c]=(a-c)*o;else if(o<0)for(let c=0;c<s;++c)u[c]=(i+c)/-o;else for(let c=0;c<s;++c)u[c]=(i+c)*o;return u}function X1(e,t,n){return t=+t,e=+e,n=+n,W1(e,t,n)[2]}function _B(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?X1(t,e,n):X1(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function nbe(e){return Math.max(1,Math.ceil(Math.log(vB(e))/Math.LN2)+1)}function va(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 i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function rbe(e,t){let n,r=-1,i=-1;if(t===void 0)for(const a of e)++i,a!=null&&(n<a||n===void 0&&a>=a)&&(n=a,r=i);else for(let a of e)(a=t(a,++i,e))!=null&&(n<a||n===void 0&&a>=a)&&(n=a,r=i);return r}function Fh(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 i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function ibe(e,t){let n,r=-1,i=-1;if(t===void 0)for(const a of e)++i,a!=null&&(n>a||n===void 0&&a>=a)&&(n=a,r=i);else for(let a of e)(a=t(a,++i,e))!=null&&(n>a||n===void 0&&a>=a)&&(n=a,r=i);return r}function fO(e,t,n=0,r=1/0,i){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(i=i===void 0?G1:dO(i);r>n;){if(r-n>600){const u=r-n+1,c=t-n+1,A=Math.log(u),f=.5*Math.exp(2*A/3),h=.5*Math.sqrt(A*f*(u-f)/u)*(c-u/2<0?-1:1),d=Math.max(n,Math.floor(t-c*f/u+h)),m=Math.min(r,Math.floor(t+(u-c)*f/u+h));fO(e,t,d,m,i)}const a=e[t];let o=n,s=r;for(rg(e,n,t),i(e[r],a)>0&&rg(e,n,r);o<s;){for(rg(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[n],a)===0?rg(e,n,s):(++s,rg(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function rg(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function Oh(e,t,n){if(e=Float64Array.from(V_e(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return Fh(e);if(t>=1)return va(e);var r,i=(r-1)*t,a=Math.floor(i),o=va(fO(e,a).subarray(0,a+1)),s=Fh(e.subarray(a+1));return o+(s-o)*(i-a)}}function abe(e,t,n=rO){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,i=(r-1)*t,a=Math.floor(i),o=+n(e[a],a,e),s=+n(e[a+1],a+1,e);return o+(s-o)*(i-a)}}function obe(e,t,n){const r=vB(e),i=Oh(e,.75)-Oh(e,.25);return r&&i?Math.ceil((n-t)/(2*i*Math.pow(r,-1/3))):1}function hO(e,t,n){const r=vB(e),i=aO(e);return r&&i?Math.ceil((n-t)*Math.cbrt(r)/(3.49*i)):1}function sbe(e,t){let n=0,r=0;if(t===void 0)for(let i of e)i!=null&&(i=+i)>=i&&(++n,r+=i);else{let i=-1;for(let a of e)(a=t(a,++i,e))!=null&&(a=+a)>=a&&(++n,r+=a)}if(n)return r/n}function bB(e,t){return Oh(e,.5,t)}function*lbe(e){for(const t of e)yield*t}function pO(e){return Array.from(lbe(e))}function ube(e,t){const n=new tg;if(t===void 0)for(let a of e)a!=null&&a>=a&&n.set(a,(n.get(a)||0)+1);else{let a=-1;for(let o of e)(o=t(o,++a,e))!=null&&o>=o&&n.set(o,(n.get(o)||0)+1)}let r,i=0;for(const[a,o]of n)o>i&&(i=o,r=a);return r}function cbe(e,t=Abe){const n=[];let r,i=!1;for(const a of e)i&&n.push(t(r,a)),r=a,i=!0;return n}function Abe(e,t){return[e,t]}function wB(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=new Array(i);++r<i;)a[r]=e+r*n;return a}function J1(e,t){let n=0;if(t===void 0)for(let r of e)(r=+r)&&(n+=r);else{let r=-1;for(let i of e)(i=+t(i,++r,e))&&(n+=i)}return n}function Z1(e){if(typeof e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");return Array.from(e).reverse()}function mO(...e){const t=new ng;for(const n of e)for(const r of n)t.add(r);return t}function dbe(e){return e}var $1=1,ey=2,BB=3,ig=4,gO=1e-6;function fbe(e){return"translate("+e+",0)"}function hbe(e){return"translate(0,"+e+")"}function pbe(e){return t=>+e(t)}function mbe(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function gbe(){return!this.__axis}function ty(e,t){var n=[],r=null,i=null,a=6,o=6,s=3,u=typeof window<"u"&&window.devicePixelRatio>1?0:.5,c=e===$1||e===ig?-1:1,A=e===ig||e===ey?"x":"y",f=e===$1||e===BB?fbe:hbe;function h(d){var m=r??(t.ticks?t.ticks.apply(t,n):t.domain()),p=i??(t.tickFormat?t.tickFormat.apply(t,n):dbe),g=Math.max(a,0)+s,y=t.range(),v=+y[0]+u,_=+y[y.length-1]+u,b=(t.bandwidth?mbe:pbe)(t.copy(),u),w=d.selection?d.selection():d,M=w.selectAll(".domain").data([null]),x=w.selectAll(".tick").data(m,t).order(),L=x.exit(),N=x.enter().append("g").attr("class","tick"),H=x.select("line"),S=x.select("text");M=M.merge(M.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),x=x.merge(N),H=H.merge(N.append("line").attr("stroke","currentColor").attr(A+"2",c*a)),S=S.merge(N.append("text").attr("fill","currentColor").attr(A,c*g).attr("dy",e===$1?"0em":e===BB?"0.71em":"0.32em")),d!==w&&(M=M.transition(d),x=x.transition(d),H=H.transition(d),S=S.transition(d),L=L.transition(d).attr("opacity",gO).attr("transform",function(F){return isFinite(F=b(F))?f(F+u):this.getAttribute("transform")}),N.attr("opacity",gO).attr("transform",function(F){var I=this.parentNode.__axis;return f((I&&isFinite(I=I(F))?I:b(F))+u)})),L.remove(),M.attr("d",e===ig||e===ey?o?"M"+c*o+","+v+"H"+u+"V"+_+"H"+c*o:"M"+u+","+v+"V"+_:o?"M"+v+","+c*o+"V"+u+"H"+_+"V"+c*o:"M"+v+","+u+"H"+_),x.attr("opacity",1).attr("transform",function(F){return f(b(F)+u)}),H.attr(A+"2",c*a),S.attr(A,c*g).text(p),w.filter(gbe).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===ey?"start":e===ig?"end":"middle"),w.each(function(){this.__axis=b})}return h.scale=function(d){return arguments.length?(t=d,h):t},h.ticks=function(){return n=Array.from(arguments),h},h.tickArguments=function(d){return arguments.length?(n=d==null?[]:Array.from(d),h):n.slice()},h.tickValues=function(d){return arguments.length?(r=d==null?null:Array.from(d),h):r&&r.slice()},h.tickFormat=function(d){return arguments.length?(i=d,h):i},h.tickSize=function(d){return arguments.length?(a=o=+d,h):a},h.tickSizeInner=function(d){return arguments.length?(a=+d,h):a},h.tickSizeOuter=function(d){return arguments.length?(o=+d,h):o},h.tickPadding=function(d){return arguments.length?(s=+d,h):s},h.offset=function(d){return arguments.length?(u=+d,h):u},h}function vbe(e){return ty($1,e)}function ybe(e){return ty(ey,e)}function ko(e){return ty(BB,e)}function Zd(e){return ty(ig,e)}var _be={value:()=>{}};function xB(){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 ny(n)}function ny(e){this._=e}function bbe(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}ny.prototype=xB.prototype={constructor:ny,on:function(e,t){var n=this._,r=bbe(e+"",n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=wbe(n[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=vO(n[i],e.name,t);else if(t==null)for(i in n)n[i]=vO(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new ny(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[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],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function wbe(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function vO(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=_be,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var CB="http://www.w3.org/1999/xhtml";const Ih={svg:"http://www.w3.org/2000/svg",xhtml:CB,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ry(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),Ih.hasOwnProperty(t)?{space:Ih[t],local:e}:e}function Bbe(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===CB&&t.documentElement.namespaceURI===CB?t.createElement(e):t.createElementNS(n,e)}}function xbe(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function iy(e){var t=ry(e);return(t.local?xbe:Bbe)(t)}function Cbe(){}function SB(e){return e==null?Cbe:function(){return this.querySelector(e)}}function Sbe(e){typeof e!="function"&&(e=SB(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=new Array(o),u,c,A=0;A<o;++A)(u=a[A])&&(c=e.call(u,u.__data__,A,a))&&("__data__"in u&&(c.__data__=u.__data__),s[A]=c);return new so(r,this._parents)}function yO(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function kbe(){return[]}function _O(e){return e==null?kbe:function(){return this.querySelectorAll(e)}}function Mbe(e){return function(){return yO(e.apply(this,arguments))}}function Ebe(e){typeof e=="function"?e=Mbe(e):e=_O(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,u,c=0;c<s;++c)(u=o[c])&&(r.push(e.call(u,u.__data__,c,o)),i.push(u));return new so(r,i)}function bO(e){return function(){return this.matches(e)}}function wO(e){return function(t){return t.matches(e)}}var Lbe=Array.prototype.find;function Tbe(e){return function(){return Lbe.call(this.children,e)}}function Nbe(){return this.firstElementChild}function Fbe(e){return this.select(e==null?Nbe:Tbe(typeof e=="function"?e:wO(e)))}var Obe=Array.prototype.filter;function Ibe(){return Array.from(this.children)}function Dbe(e){return function(){return Obe.call(this.children,e)}}function Ube(e){return this.selectAll(e==null?Ibe:Dbe(typeof e=="function"?e:wO(e)))}function Pbe(e){typeof e!="function"&&(e=bO(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],u,c=0;c<o;++c)(u=a[c])&&e.call(u,u.__data__,c,a)&&s.push(u);return new so(r,this._parents)}function BO(e){return new Array(e.length)}function Hbe(){return new so(this._enter||this._groups.map(BO),this._parents)}function ay(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}ay.prototype={constructor:ay,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 Ybe(e){return function(){return e}}function Rbe(e,t,n,r,i,a){for(var o=0,s,u=t.length,c=a.length;o<c;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new ay(e,a[o]);for(;o<u;++o)(s=t[o])&&(i[o]=s)}function Qbe(e,t,n,r,i,a,o){var s,u,c=new Map,A=t.length,f=a.length,h=new Array(A),d;for(s=0;s<A;++s)(u=t[s])&&(h[s]=d=o.call(u,u.__data__,s,t)+"",c.has(d)?i[s]=u:c.set(d,u));for(s=0;s<f;++s)d=o.call(e,a[s],s,a)+"",(u=c.get(d))?(r[s]=u,u.__data__=a[s],c.delete(d)):n[s]=new ay(e,a[s]);for(s=0;s<A;++s)(u=t[s])&&c.get(h[s])===u&&(i[s]=u)}function jbe(e){return e.__data__}function Vbe(e,t){if(!arguments.length)return Array.from(this,jbe);var n=t?Qbe:Rbe,r=this._parents,i=this._groups;typeof e!="function"&&(e=Ybe(e));for(var a=i.length,o=new Array(a),s=new Array(a),u=new Array(a),c=0;c<a;++c){var A=r[c],f=i[c],h=f.length,d=zbe(e.call(A,A&&A.__data__,c,r)),m=d.length,p=s[c]=new Array(m),g=o[c]=new Array(m),y=u[c]=new Array(h);n(A,f,p,g,y,d,t);for(var v=0,_=0,b,w;v<m;++v)if(b=p[v]){for(v>=_&&(_=v+1);!(w=g[_])&&++_<m;);b._next=w||null}}return o=new so(o,r),o._enter=s,o._exit=u,o}function zbe(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function qbe(){return new so(this._exit||this._groups.map(BO),this._parents)}function Kbe(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function Gbe(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=new Array(i),u=0;u<o;++u)for(var c=n[u],A=r[u],f=c.length,h=s[u]=new Array(f),d,m=0;m<f;++m)(d=c[m]||A[m])&&(h[m]=d);for(;u<i;++u)s[u]=n[u];return new so(s,this._parents)}function Wbe(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function Xbe(e){e||(e=Jbe);function t(f,h){return f&&h?e(f.__data__,h.__data__):!f-!h}for(var n=this._groups,r=n.length,i=new Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,u=i[a]=new Array(s),c,A=0;A<s;++A)(c=o[A])&&(u[A]=c);u.sort(t)}return new so(i,this._parents).order()}function Jbe(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Zbe(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function $be(){return Array.from(this)}function e2e(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function t2e(){let e=0;for(const t of this)++e;return e}function n2e(){return!this.node()}function r2e(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function i2e(e){return function(){this.removeAttribute(e)}}function a2e(e){return function(){this.removeAttributeNS(e.space,e.local)}}function o2e(e,t){return function(){this.setAttribute(e,t)}}function s2e(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function l2e(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function u2e(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 c2e(e,t){var n=ry(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?a2e:i2e:typeof t=="function"?n.local?u2e:l2e:n.local?s2e:o2e)(n,t))}function xO(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function A2e(e){return function(){this.style.removeProperty(e)}}function d2e(e,t,n){return function(){this.style.setProperty(e,t,n)}}function f2e(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function h2e(e,t,n){return arguments.length>1?this.each((t==null?A2e:typeof t=="function"?f2e:d2e)(e,t,n??"")):Dh(this.node(),e)}function Dh(e,t){return e.style.getPropertyValue(t)||xO(e).getComputedStyle(e,null).getPropertyValue(t)}function p2e(e){return function(){delete this[e]}}function m2e(e,t){return function(){this[e]=t}}function g2e(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function v2e(e,t){return arguments.length>1?this.each((t==null?p2e:typeof t=="function"?g2e:m2e)(e,t)):this.node()[e]}function CO(e){return e.trim().split(/^|\s+/)}function kB(e){return e.classList||new SO(e)}function SO(e){this._node=e,this._names=CO(e.getAttribute("class")||"")}SO.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 kO(e,t){for(var n=kB(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function MO(e,t){for(var n=kB(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function y2e(e){return function(){kO(this,e)}}function _2e(e){return function(){MO(this,e)}}function b2e(e,t){return function(){(t.apply(this,arguments)?kO:MO)(this,e)}}function w2e(e,t){var n=CO(e+"");if(arguments.length<2){for(var r=kB(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t=="function"?b2e:t?y2e:_2e)(n,t))}function B2e(){this.textContent=""}function x2e(e){return function(){this.textContent=e}}function C2e(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function S2e(e){return arguments.length?this.each(e==null?B2e:(typeof e=="function"?C2e:x2e)(e)):this.node().textContent}function k2e(){this.innerHTML=""}function M2e(e){return function(){this.innerHTML=e}}function E2e(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function L2e(e){return arguments.length?this.each(e==null?k2e:(typeof e=="function"?E2e:M2e)(e)):this.node().innerHTML}function T2e(){this.nextSibling&&this.parentNode.appendChild(this)}function N2e(){return this.each(T2e)}function F2e(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function O2e(){return this.each(F2e)}function I2e(e){var t=typeof e=="function"?e:iy(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function D2e(){return null}function U2e(e,t){var n=typeof e=="function"?e:iy(e),r=t==null?D2e:typeof t=="function"?t:SB(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function P2e(){var e=this.parentNode;e&&e.removeChild(this)}function H2e(){return this.each(P2e)}function Y2e(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function R2e(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Q2e(e){return this.select(e?R2e:Y2e)}function j2e(e){return arguments.length?this.property("__data__",e):this.node().__data__}function V2e(e){return function(t){e.call(this,t,this.__data__)}}function z2e(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 q2e(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function K2e(e,t,n){return function(){var r=this.__on,i,a=V2e(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function G2e(e,t,n){var r=z2e(e+""),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var u=0,c=s.length,A;u<c;++u)for(i=0,A=s[u];i<a;++i)if((o=r[i]).type===A.type&&o.name===A.name)return A.value}return}for(s=t?K2e:q2e,i=0;i<a;++i)this.each(s(r[i],t,n));return this}function EO(e,t,n){var r=xO(e),i=r.CustomEvent;typeof i=="function"?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function W2e(e,t){return function(){return EO(this,e,t)}}function X2e(e,t){return function(){return EO(this,e,t.apply(this,arguments))}}function J2e(e,t){return this.each((typeof t=="function"?X2e:W2e)(e,t))}function*Z2e(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var MB=[null];function so(e,t){this._groups=e,this._parents=t}function ag(){return new so([[document.documentElement]],MB)}function $2e(){return this}so.prototype=ag.prototype={constructor:so,select:Sbe,selectAll:Ebe,selectChild:Fbe,selectChildren:Ube,filter:Pbe,data:Vbe,enter:Hbe,exit:qbe,join:Kbe,merge:Gbe,selection:$2e,order:Wbe,sort:Xbe,call:Zbe,nodes:$be,node:e2e,size:t2e,empty:n2e,each:r2e,attr:c2e,style:h2e,property:v2e,classed:w2e,text:S2e,html:L2e,raise:N2e,lower:O2e,append:I2e,insert:U2e,remove:H2e,clone:Q2e,datum:j2e,on:G2e,dispatch:J2e,[Symbol.iterator]:Z2e};function zt(e){return typeof e=="string"?new so([[document.querySelector(e)]],[document.documentElement]):new so([[e]],MB)}function ewe(e){let t;for(;t=e.sourceEvent;)e=t;return e}function EB(e,t){if(e=ewe(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 i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}function Un(e){return typeof e=="string"?new so([document.querySelectorAll(e)],[document.documentElement]):new so([yO(e)],MB)}const LB={capture:!0,passive:!1};function TB(e){e.preventDefault(),e.stopImmediatePropagation()}function twe(e){var t=e.document.documentElement,n=zt(e).on("dragstart.drag",TB,LB);"onselectstart"in t?n.on("selectstart.drag",TB,LB):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function nwe(e,t){var n=e.document.documentElement,r=zt(e).on("dragstart.drag",null);t&&(r.on("click.drag",TB,LB),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 Uh(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function og(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function wA(){}var $d=.7,Ph=1/$d,Hh="\\s*([+-]?\\d+)\\s*",sg="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Au="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",rwe=/^#([0-9a-f]{3,8})$/,iwe=new RegExp(`^rgb\\(${Hh},${Hh},${Hh}\\)$`),awe=new RegExp(`^rgb\\(${Au},${Au},${Au}\\)$`),owe=new RegExp(`^rgba\\(${Hh},${Hh},${Hh},${sg}\\)$`),swe=new RegExp(`^rgba\\(${Au},${Au},${Au},${sg}\\)$`),lwe=new RegExp(`^hsl\\(${sg},${Au},${Au}\\)$`),uwe=new RegExp(`^hsla\\(${sg},${Au},${Au},${sg}\\)$`),LO={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};Uh(wA,ef,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:TO,formatHex:TO,formatHex8:cwe,formatHsl:Awe,formatRgb:NO,toString:NO});function TO(){return this.rgb().formatHex()}function cwe(){return this.rgb().formatHex8()}function Awe(){return UO(this).formatHsl()}function NO(){return this.rgb().formatRgb()}function ef(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=rwe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?FO(t):n===3?new la(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?oy(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?oy(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=iwe.exec(e))?new la(t[1],t[2],t[3],1):(t=awe.exec(e))?new la(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=owe.exec(e))?oy(t[1],t[2],t[3],t[4]):(t=swe.exec(e))?oy(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=lwe.exec(e))?DO(t[1],t[2]/100,t[3]/100,1):(t=uwe.exec(e))?DO(t[1],t[2]/100,t[3]/100,t[4]):LO.hasOwnProperty(e)?FO(LO[e]):e==="transparent"?new la(NaN,NaN,NaN,0):null}function FO(e){return new la(e>>16&255,e>>8&255,e&255,1)}function oy(e,t,n,r){return r<=0&&(e=t=n=NaN),new la(e,t,n,r)}function NB(e){return e instanceof wA||(e=ef(e)),e?(e=e.rgb(),new la(e.r,e.g,e.b,e.opacity)):new la}function BA(e,t,n,r){return arguments.length===1?NB(e):new la(e,t,n,r??1)}function la(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Uh(la,BA,og(wA,{brighter(e){return e=e==null?Ph:Math.pow(Ph,e),new la(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?$d:Math.pow($d,e),new la(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new la(tf(this.r),tf(this.g),tf(this.b),sy(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:OO,formatHex:OO,formatHex8:dwe,formatRgb:IO,toString:IO}));function OO(){return`#${nf(this.r)}${nf(this.g)}${nf(this.b)}`}function dwe(){return`#${nf(this.r)}${nf(this.g)}${nf(this.b)}${nf((isNaN(this.opacity)?1:this.opacity)*255)}`}function IO(){const e=sy(this.opacity);return`${e===1?"rgb(":"rgba("}${tf(this.r)}, ${tf(this.g)}, ${tf(this.b)}${e===1?")":`, ${e})`}`}function sy(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function tf(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function nf(e){return e=tf(e),(e<16?"0":"")+e.toString(16)}function DO(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ll(e,t,n,r)}function UO(e){if(e instanceof ll)return new ll(e.h,e.s,e.l,e.opacity);if(e instanceof wA||(e=ef(e)),!e)return new ll;if(e instanceof ll)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,u=(a+i)/2;return s?(t===a?o=(n-r)/s+(n<r)*6:n===a?o=(r-t)/s+2:o=(t-n)/s+4,s/=u<.5?a+i:2-a-i,o*=60):s=u>0&&u<1?0:o,new ll(o,s,u,e.opacity)}function FB(e,t,n,r){return arguments.length===1?UO(e):new ll(e,t,n,r??1)}function ll(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Uh(ll,FB,og(wA,{brighter(e){return e=e==null?Ph:Math.pow(Ph,e),new ll(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?$d:Math.pow($d,e),new ll(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,i=2*n-r;return new la(OB(e>=240?e-240:e+120,i,r),OB(e,i,r),OB(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new ll(PO(this.h),ly(this.s),ly(this.l),sy(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=sy(this.opacity);return`${e===1?"hsl(":"hsla("}${PO(this.h)}, ${ly(this.s)*100}%, ${ly(this.l)*100}%${e===1?")":`, ${e})`}`}}));function PO(e){return e=(e||0)%360,e<0?e+360:e}function ly(e){return Math.max(0,Math.min(1,e||0))}function OB(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 HO=Math.PI/180,YO=180/Math.PI,uy=18,RO=.96422,QO=1,jO=.82521,VO=4/29,Yh=6/29,zO=3*Yh*Yh,fwe=Yh*Yh*Yh;function qO(e){if(e instanceof du)return new du(e.l,e.a,e.b,e.opacity);if(e instanceof cc)return KO(e);e instanceof la||(e=NB(e));var t=HB(e.r),n=HB(e.g),r=HB(e.b),i=DB((.2225045*t+.7168786*n+.0606169*r)/QO),a,o;return t===n&&n===r?a=o=i:(a=DB((.4360747*t+.3850649*n+.1430804*r)/RO),o=DB((.0139322*t+.0971045*n+.7141733*r)/jO)),new du(116*i-16,500*(a-i),200*(i-o),e.opacity)}function IB(e,t,n,r){return arguments.length===1?qO(e):new du(e,t,n,r??1)}function du(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}Uh(du,IB,og(wA,{brighter(e){return new du(this.l+uy*(e??1),this.a,this.b,this.opacity)},darker(e){return new du(this.l-uy*(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=RO*UB(t),e=QO*UB(e),n=jO*UB(n),new la(PB(3.1338561*t-1.6168667*e-.4906146*n),PB(-.9787684*t+1.9161415*e+.033454*n),PB(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}}));function DB(e){return e>fwe?Math.pow(e,1/3):e/zO+VO}function UB(e){return e>Yh?e*e*e:zO*(e-VO)}function PB(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function HB(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function hwe(e){if(e instanceof cc)return new cc(e.h,e.c,e.l,e.opacity);if(e instanceof du||(e=qO(e)),e.a===0&&e.b===0)return new cc(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*YO;return new cc(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function YB(e,t,n,r){return arguments.length===1?hwe(e):new cc(e,t,n,r??1)}function cc(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function KO(e){if(isNaN(e.h))return new du(e.l,0,0,e.opacity);var t=e.h*HO;return new du(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Uh(cc,YB,og(wA,{brighter(e){return new cc(this.h,this.c,this.l+uy*(e??1),this.opacity)},darker(e){return new cc(this.h,this.c,this.l-uy*(e??1),this.opacity)},rgb(){return KO(this).rgb()}}));var GO=-.14861,RB=1.78277,QB=-.29227,cy=-.90649,lg=1.97294,WO=lg*cy,XO=lg*RB,JO=RB*QB-cy*GO;function pwe(e){if(e instanceof rf)return new rf(e.h,e.s,e.l,e.opacity);e instanceof la||(e=NB(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(JO*r+WO*t-XO*n)/(JO+WO-XO),a=r-i,o=(lg*(n-i)-QB*a)/cy,s=Math.sqrt(o*o+a*a)/(lg*i*(1-i)),u=s?Math.atan2(o,a)*YO-120:NaN;return new rf(u<0?u+360:u,s,i,e.opacity)}function fu(e,t,n,r){return arguments.length===1?pwe(e):new rf(e,t,n,r??1)}function rf(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Uh(rf,fu,og(wA,{brighter(e){return e=e==null?Ph:Math.pow(Ph,e),new rf(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?$d:Math.pow($d,e),new rf(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*HO,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new la(255*(t+n*(GO*r+RB*i)),255*(t+n*(QB*r+cy*i)),255*(t+n*(lg*r)),this.opacity)}}));function mwe(e,t,n,r,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*n+(1+3*e+3*a-3*o)*r+o*i)/6}function gwe(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),i=e[r],a=e[r+1],o=r>0?e[r-1]:2*i-a,s=r<t-1?e[r+2]:2*a-i;return mwe((n-r/t)*t,o,i,a,s)}}const Ay=e=>()=>e;function ZO(e,t){return function(n){return e+n*t}}function vwe(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 jB(e,t){var n=t-e;return n?ZO(e,n>180||n<-180?n-360*Math.round(n/360):n):Ay(isNaN(e)?t:e)}function ywe(e){return(e=+e)==1?Ha:function(t,n){return n-t?vwe(t,n,e):Ay(isNaN(t)?n:t)}}function Ha(e,t){var n=t-e;return n?ZO(e,n):Ay(isNaN(e)?t:e)}const af=function e(t){var n=ywe(t);function r(i,a){var o=n((i=BA(i)).r,(a=BA(a)).r),s=n(i.g,a.g),u=n(i.b,a.b),c=Ha(i.opacity,a.opacity);return function(A){return i.r=o(A),i.g=s(A),i.b=u(A),i.opacity=c(A),i+""}}return r.gamma=e,r}(1);function _we(e){return function(t){var n=t.length,r=new Array(n),i=new Array(n),a=new Array(n),o,s;for(o=0;o<n;++o)s=BA(t[o]),r[o]=s.r||0,i[o]=s.g||0,a[o]=s.b||0;return r=e(r),i=e(i),a=e(a),s.opacity=1,function(u){return s.r=r(u),s.g=i(u),s.b=a(u),s+""}}}var bwe=_we(gwe);function wwe(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function Bwe(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function xwe(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),a=new Array(n),o;for(o=0;o<r;++o)i[o]=hu(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(s){for(o=0;o<r;++o)a[o]=i[o](s);return a}}function Cwe(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Ya(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Swe(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=hu(e[i],t[i]):r[i]=t[i];return function(a){for(i in n)r[i]=n[i](a);return r}}var VB=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,zB=new RegExp(VB.source,"g");function kwe(e){return function(){return e}}function Mwe(e){return function(t){return e(t)+""}}function $O(e,t){var n=VB.lastIndex=zB.lastIndex=0,r,i,a,o=-1,s=[],u=[];for(e=e+"",t=t+"";(r=VB.exec(e))&&(i=zB.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,u.push({i:o,x:Ya(r,i)})),n=zB.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?u[0]?Mwe(u[0].x):kwe(t):(t=u.length,function(c){for(var A=0,f;A<t;++A)s[(f=u[A]).i]=f.x(c);return s.join("")})}function hu(e,t){var n=typeof t,r;return t==null||n==="boolean"?Ay(t):(n==="number"?Ya:n==="string"?(r=ef(t))?(t=r,af):$O:t instanceof ef?af:t instanceof Date?Cwe:Bwe(t)?wwe:Array.isArray(t)?xwe:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Swe:Ya)(e,t)}function dy(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var e7=180/Math.PI,qB={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function t7(e,t,n,r,i,a){var o,s,u;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(u=e*n+t*r)&&(n-=e*u,r-=t*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),e*r<t*n&&(e=-e,t=-t,u=-u,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*e7,skewX:Math.atan(u)*e7,scaleX:o,scaleY:s}}var fy;function Ewe(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?qB:t7(t.a,t.b,t.c,t.d,t.e,t.f)}function Lwe(e){return e==null||(fy||(fy=document.createElementNS("http://www.w3.org/2000/svg","g")),fy.setAttribute("transform",e),!(e=fy.transform.baseVal.consolidate()))?qB:(e=e.matrix,t7(e.a,e.b,e.c,e.d,e.e,e.f))}function n7(e,t,n,r){function i(c){return c.length?c.pop()+" ":""}function a(c,A,f,h,d,m){if(c!==f||A!==h){var p=d.push("translate(",null,t,null,n);m.push({i:p-4,x:Ya(c,f)},{i:p-2,x:Ya(A,h)})}else(f||h)&&d.push("translate("+f+t+h+n)}function o(c,A,f,h){c!==A?(c-A>180?A+=360:A-c>180&&(c+=360),h.push({i:f.push(i(f)+"rotate(",null,r)-2,x:Ya(c,A)})):A&&f.push(i(f)+"rotate("+A+r)}function s(c,A,f,h){c!==A?h.push({i:f.push(i(f)+"skewX(",null,r)-2,x:Ya(c,A)}):A&&f.push(i(f)+"skewX("+A+r)}function u(c,A,f,h,d,m){if(c!==f||A!==h){var p=d.push(i(d)+"scale(",null,",",null,")");m.push({i:p-4,x:Ya(c,f)},{i:p-2,x:Ya(A,h)})}else(f!==1||h!==1)&&d.push(i(d)+"scale("+f+","+h+")")}return function(c,A){var f=[],h=[];return c=e(c),A=e(A),a(c.translateX,c.translateY,A.translateX,A.translateY,f,h),o(c.rotate,A.rotate,f,h),s(c.skewX,A.skewX,f,h),u(c.scaleX,c.scaleY,A.scaleX,A.scaleY,f,h),c=A=null,function(d){for(var m=-1,p=h.length,g;++m<p;)f[(g=h[m]).i]=g.x(d);return f.join("")}}}var Twe=n7(Ewe,"px, ","px)","deg)"),Nwe=n7(Lwe,", ",")",")");function Fwe(e){return function(t,n){var r=e((t=FB(t)).h,(n=FB(n)).h),i=Ha(t.s,n.s),a=Ha(t.l,n.l),o=Ha(t.opacity,n.opacity);return function(s){return t.h=r(s),t.s=i(s),t.l=a(s),t.opacity=o(s),t+""}}}const Owe=Fwe(jB);function Iwe(e,t){var n=Ha((e=IB(e)).l,(t=IB(t)).l),r=Ha(e.a,t.a),i=Ha(e.b,t.b),a=Ha(e.opacity,t.opacity);return function(o){return e.l=n(o),e.a=r(o),e.b=i(o),e.opacity=a(o),e+""}}function Dwe(e){return function(t,n){var r=e((t=YB(t)).h,(n=YB(n)).h),i=Ha(t.c,n.c),a=Ha(t.l,n.l),o=Ha(t.opacity,n.opacity);return function(s){return t.h=r(s),t.c=i(s),t.l=a(s),t.opacity=o(s),t+""}}}const Uwe=Dwe(jB);function r7(e){return function t(n){n=+n;function r(i,a){var o=e((i=fu(i)).h,(a=fu(a)).h),s=Ha(i.s,a.s),u=Ha(i.l,a.l),c=Ha(i.opacity,a.opacity);return function(A){return i.h=o(A),i.s=s(A),i.l=u(Math.pow(A,n)),i.opacity=c(A),i+""}}return r.gamma=t,r}(1)}r7(jB);var KB=r7(Ha);function hy(e,t){t===void 0&&(t=e,e=hu);for(var n=0,r=t.length-1,i=t[0],a=new Array(r<0?0:r);n<r;)a[n]=e(i,i=t[++n]);return function(o){var s=Math.max(0,Math.min(r-1,Math.floor(o*=r)));return a[s](o-s)}}function ul(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e(r/(t-1));return n}var Rh=0,ug=0,cg=0,i7=1e3,py,Ag,my=0,of=0,gy=0,dg=typeof performance=="object"&&performance.now?performance:Date,a7=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function GB(){return of||(a7(Pwe),of=dg.now()+gy)}function Pwe(){of=0}function vy(){this._call=this._time=this._next=null}vy.prototype=o7.prototype={constructor:vy,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?GB():+n)+(t==null?0:+t),!this._next&&Ag!==this&&(Ag?Ag._next=this:py=this,Ag=this),this._call=e,this._time=n,WB()},stop:function(){this._call&&(this._call=null,this._time=1/0,WB())}};function o7(e,t,n){var r=new vy;return r.restart(e,t,n),r}function Hwe(){GB(),++Rh;for(var e=py,t;e;)(t=of-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Rh}function s7(){of=(my=dg.now())+gy,Rh=ug=0;try{Hwe()}finally{Rh=0,Rwe(),of=0}}function Ywe(){var e=dg.now(),t=e-my;t>i7&&(gy-=t,my=e)}function Rwe(){for(var e,t=py,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:py=n);Ag=e,WB(r)}function WB(e){if(!Rh){ug&&(ug=clearTimeout(ug));var t=e-of;t>24?(e<1/0&&(ug=setTimeout(s7,e-dg.now()-gy)),cg&&(cg=clearInterval(cg))):(cg||(my=dg.now(),cg=setInterval(Ywe,i7)),Rh=1,a7(s7))}}function l7(e,t,n){var r=new vy;return t=t==null?0:+t,r.restart(i=>{r.stop(),e(i+t)},t,n),r}var Qwe=xB("start","end","cancel","interrupt"),jwe=[],u7=0,c7=1,XB=2,yy=3,A7=4,JB=5,_y=6;function by(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;Vwe(e,n,{name:t,index:r,group:i,on:Qwe,tween:jwe,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:u7})}function ZB(e,t){var n=cl(e,t);if(n.state>u7)throw new Error("too late; already scheduled");return n}function pu(e,t){var n=cl(e,t);if(n.state>yy)throw new Error("too late; already running");return n}function cl(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function Vwe(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=o7(a,0,n.time);function a(c){n.state=c7,n.timer.restart(o,n.delay,n.time),n.delay<=c&&o(c-n.delay)}function o(c){var A,f,h,d;if(n.state!==c7)return u();for(A in r)if(d=r[A],d.name===n.name){if(d.state===yy)return l7(o);d.state===A7?(d.state=_y,d.timer.stop(),d.on.call("interrupt",e,e.__data__,d.index,d.group),delete r[A]):+A<t&&(d.state=_y,d.timer.stop(),d.on.call("cancel",e,e.__data__,d.index,d.group),delete r[A])}if(l7(function(){n.state===yy&&(n.state=A7,n.timer.restart(s,n.delay,n.time),s(c))}),n.state=XB,n.on.call("start",e,e.__data__,n.index,n.group),n.state===XB){for(n.state=yy,i=new Array(h=n.tween.length),A=0,f=-1;A<h;++A)(d=n.tween[A].value.call(e,e.__data__,n.index,n.group))&&(i[++f]=d);i.length=f+1}}function s(c){for(var A=c<n.duration?n.ease.call(null,c/n.duration):(n.timer.restart(u),n.state=JB,1),f=-1,h=i.length;++f<h;)i[f].call(e,A);n.state===JB&&(n.on.call("end",e,e.__data__,n.index,n.group),u())}function u(){n.state=_y,n.timer.stop(),delete r[t];for(var c in r)return;delete e.__transition}}function $B(e,t){var n=e.__transition,r,i,a=!0,o;if(n){t=t==null?null:t+"";for(o in n){if((r=n[o]).name!==t){a=!1;continue}i=r.state>XB&&r.state<JB,r.state=_y,r.timer.stop(),r.on.call(i?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}function zwe(e){return this.each(function(){$B(this,e)})}function qwe(e,t){var n,r;return function(){var i=pu(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function Kwe(e,t,n){var r,i;if(typeof n!="function")throw new Error;return function(){var a=pu(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},u=0,c=i.length;u<c;++u)if(i[u].name===t){i[u]=s;break}u===c&&i.push(s)}a.tween=i}}function Gwe(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=cl(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?qwe:Kwe)(n,e,t))}function ex(e,t,n){var r=e._id;return e.each(function(){var i=pu(this,r);(i.value||(i.value={}))[t]=n.apply(this,arguments)}),function(i){return cl(i,r).value[t]}}function d7(e,t){var n;return(typeof t=="number"?Ya:t instanceof ef?af:(n=ef(t))?(t=n,af):$O)(e,t)}function Wwe(e){return function(){this.removeAttribute(e)}}function Xwe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Jwe(e,t,n){var r,i=n+"",a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function Zwe(e,t,n){var r,i=n+"",a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function $we(e,t,n){var r,i,a;return function(){var o,s=n(this),u;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),u=s+"",o===u?null:o===r&&u===i?a:(i=u,a=t(r=o,s)))}}function e5e(e,t,n){var r,i,a;return function(){var o,s=n(this),u;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),u=s+"",o===u?null:o===r&&u===i?a:(i=u,a=t(r=o,s)))}}function t5e(e,t){var n=ry(e),r=n==="transform"?Nwe:d7;return this.attrTween(e,typeof t=="function"?(n.local?e5e:$we)(n,r,ex(this,"attr."+e,t)):t==null?(n.local?Xwe:Wwe)(n):(n.local?Zwe:Jwe)(n,r,t))}function n5e(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function r5e(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function i5e(e,t){var n,r;function i(){var a=t.apply(this,arguments);return a!==r&&(n=(r=a)&&r5e(e,a)),n}return i._value=t,i}function a5e(e,t){var n,r;function i(){var a=t.apply(this,arguments);return a!==r&&(n=(r=a)&&n5e(e,a)),n}return i._value=t,i}function o5e(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=ry(e);return this.tween(n,(r.local?i5e:a5e)(r,t))}function s5e(e,t){return function(){ZB(this,e).delay=+t.apply(this,arguments)}}function l5e(e,t){return t=+t,function(){ZB(this,e).delay=t}}function u5e(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?s5e:l5e)(t,e)):cl(this.node(),t).delay}function c5e(e,t){return function(){pu(this,e).duration=+t.apply(this,arguments)}}function A5e(e,t){return t=+t,function(){pu(this,e).duration=t}}function d5e(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?c5e:A5e)(t,e)):cl(this.node(),t).duration}function f5e(e,t){if(typeof t!="function")throw new Error;return function(){pu(this,e).ease=t}}function h5e(e){var t=this._id;return arguments.length?this.each(f5e(t,e)):cl(this.node(),t).ease}function p5e(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;pu(this,e).ease=n}}function m5e(e){if(typeof e!="function")throw new Error;return this.each(p5e(this._id,e))}function g5e(e){typeof e!="function"&&(e=bO(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],u,c=0;c<o;++c)(u=a[c])&&e.call(u,u.__data__,c,a)&&s.push(u);return new Ac(r,this._parents,this._name,this._id)}function v5e(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=new Array(r),s=0;s<a;++s)for(var u=t[s],c=n[s],A=u.length,f=o[s]=new Array(A),h,d=0;d<A;++d)(h=u[d]||c[d])&&(f[d]=h);for(;s<r;++s)o[s]=t[s];return new Ac(o,this._parents,this._name,this._id)}function y5e(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 _5e(e,t,n){var r,i,a=y5e(t)?ZB:pu;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function b5e(e,t){var n=this._id;return arguments.length<2?cl(this.node(),n).on.on(e):this.each(_5e(n,e,t))}function w5e(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function B5e(){return this.on("end.remove",w5e(this._id))}function x5e(e){var t=this._name,n=this._id;typeof e!="function"&&(e=SB(e));for(var r=this._groups,i=r.length,a=new Array(i),o=0;o<i;++o)for(var s=r[o],u=s.length,c=a[o]=new Array(u),A,f,h=0;h<u;++h)(A=s[h])&&(f=e.call(A,A.__data__,h,s))&&("__data__"in A&&(f.__data__=A.__data__),c[h]=f,by(c[h],t,n,h,c,cl(A,n)));return new Ac(a,this._parents,t,n)}function C5e(e){var t=this._name,n=this._id;typeof e!="function"&&(e=_O(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var u=r[s],c=u.length,A,f=0;f<c;++f)if(A=u[f]){for(var h=e.call(A,A.__data__,f,u),d,m=cl(A,n),p=0,g=h.length;p<g;++p)(d=h[p])&&by(d,t,n,p,h,m);a.push(h),o.push(A)}return new Ac(a,o,t,n)}var S5e=ag.prototype.constructor;function k5e(){return new S5e(this._groups,this._parents)}function M5e(e,t){var n,r,i;return function(){var a=Dh(this,e),o=(this.style.removeProperty(e),Dh(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function f7(e){return function(){this.style.removeProperty(e)}}function E5e(e,t,n){var r,i=n+"",a;return function(){var o=Dh(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function L5e(e,t,n){var r,i,a;return function(){var o=Dh(this,e),s=n(this),u=s+"";return s==null&&(u=s=(this.style.removeProperty(e),Dh(this,e))),o===u?null:o===r&&u===i?a:(i=u,a=t(r=o,s))}}function T5e(e,t){var n,r,i,a="style."+t,o="end."+a,s;return function(){var u=pu(this,e),c=u.on,A=u.value[a]==null?s||(s=f7(t)):void 0;(c!==n||i!==A)&&(r=(n=c).copy()).on(o,i=A),u.on=r}}function N5e(e,t,n){var r=(e+="")=="transform"?Twe:d7;return t==null?this.styleTween(e,M5e(e,r)).on("end.style."+e,f7(e)):typeof t=="function"?this.styleTween(e,L5e(e,r,ex(this,"style."+e,t))).each(T5e(this._id,e)):this.styleTween(e,E5e(e,r,t),n).on("end.style."+e,null)}function F5e(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function O5e(e,t,n){var r,i;function a(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&F5e(e,o,n)),r}return a._value=t,a}function I5e(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,O5e(e,t,n??""))}function D5e(e){return function(){this.textContent=e}}function U5e(e){return function(){var t=e(this);this.textContent=t??""}}function P5e(e){return this.tween("text",typeof e=="function"?U5e(ex(this,"text",e)):D5e(e==null?"":e+""))}function H5e(e){return function(t){this.textContent=e.call(this,t)}}function Y5e(e){var t,n;function r(){var i=e.apply(this,arguments);return i!==n&&(t=(n=i)&&H5e(i)),t}return r._value=e,r}function R5e(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,Y5e(e))}function Q5e(){for(var e=this._name,t=this._id,n=h7(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,u,c=0;c<s;++c)if(u=o[c]){var A=cl(u,t);by(u,e,n,c,o,{time:A.time+A.delay+A.duration,delay:0,duration:A.duration,ease:A.ease})}return new Ac(r,this._parents,e,n)}function j5e(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},u={value:function(){--i===0&&a()}};n.each(function(){var c=pu(this,r),A=c.on;A!==e&&(t=(e=A).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(u)),c.on=t}),i===0&&a()})}var V5e=0;function Ac(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function h7(){return++V5e}var dc=ag.prototype;Ac.prototype={constructor:Ac,select:x5e,selectAll:C5e,selectChild:dc.selectChild,selectChildren:dc.selectChildren,filter:g5e,merge:v5e,selection:k5e,transition:Q5e,call:dc.call,nodes:dc.nodes,node:dc.node,size:dc.size,empty:dc.empty,each:dc.each,on:b5e,attr:t5e,attrTween:o5e,style:N5e,styleTween:I5e,text:P5e,textTween:R5e,remove:B5e,tween:Gwe,delay:u5e,duration:d5e,ease:h5e,easeVarying:m5e,end:j5e,[Symbol.iterator]:dc[Symbol.iterator]};const z5e=e=>+e;function q5e(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var K5e={time:null,delay:0,duration:250,ease:q5e};function G5e(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 W5e(e){var t,n;e instanceof Ac?(t=e._id,e=e._name):(t=h7(),(n=K5e).time=GB(),e=e==null?null:e+"");for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,u,c=0;c<s;++c)(u=o[c])&&by(u,e,t,c,o,n||G5e(u,t));return new Ac(r,this._parents,e,t)}ag.prototype.interrupt=zwe,ag.prototype.transition=W5e;const tx=e=>()=>e;function X5e(e,{sourceEvent:t,target:n,selection:r,mode:i,dispatch:a}){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:i,enumerable:!0,configurable:!0},_:{value:a}})}function J5e(e){e.stopImmediatePropagation()}function nx(e){e.preventDefault(),e.stopImmediatePropagation()}var p7={name:"drag"},rx={name:"space"},Qh={name:"handle"},jh={name:"center"};const{abs:m7,max:Ra,min:Qa}=Math;function g7(e){return[+e[0],+e[1]]}function v7(e){return[g7(e[0]),g7(e[1])]}var wy={name:"x",handles:["w","e"].map(ax),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]]}},ix={},fc={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"},y7={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},_7={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},Z5e={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},$5e={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function ax(e){return{type:e}}function eBe(e){return!e.ctrlKey&&!e.button}function tBe(){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 nBe(){return navigator.maxTouchPoints||"ontouchstart"in this}function ox(e){for(;!e.__brush;)if(!(e=e.parentNode))return;return e.__brush}function rBe(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}function iBe(){return aBe(wy)}function aBe(e){var t=tBe,n=eBe,r=nBe,i=!0,a=xB("start","brush","end"),o=6,s;function u(g){var y=g.property("__brush",p).selectAll(".overlay").data([ax("overlay")]);y.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",fc.overlay).merge(y).each(function(){var _=ox(this).extent;zt(this).attr("x",_[0][0]).attr("y",_[0][1]).attr("width",_[1][0]-_[0][0]).attr("height",_[1][1]-_[0][1])}),g.selectAll(".selection").data([ax("selection")]).enter().append("rect").attr("class","selection").attr("cursor",fc.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var v=g.selectAll(".handle").data(e.handles,function(_){return _.type});v.exit().remove(),v.enter().append("rect").attr("class",function(_){return"handle handle--"+_.type}).attr("cursor",function(_){return fc[_.type]}),g.each(c).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",h).filter(r).on("touchstart.brush",h).on("touchmove.brush",d).on("touchend.brush touchcancel.brush",m).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}u.move=function(g,y,v){g.tween?g.on("start.brush",function(_){A(this,arguments).beforestart().start(_)}).on("interrupt.brush end.brush",function(_){A(this,arguments).end(_)}).tween("brush",function(){var _=this,b=_.__brush,w=A(_,arguments),M=b.selection,x=e.input(typeof y=="function"?y.apply(this,arguments):y,b.extent),L=hu(M,x);function N(H){b.selection=H===1&&x===null?null:L(H),c.call(_),w.brush()}return M!==null&&x!==null?N:N(1)}):g.each(function(){var _=this,b=arguments,w=_.__brush,M=e.input(typeof y=="function"?y.apply(_,b):y,w.extent),x=A(_,b).beforestart();$B(_),w.selection=M===null?null:M,c.call(_),x.start(v).brush(v).end(v)})},u.clear=function(g,y){u.move(g,null,y)};function c(){var g=zt(this),y=ox(this).selection;y?(g.selectAll(".selection").style("display",null).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]),g.selectAll(".handle").style("display",null).attr("x",function(v){return v.type[v.type.length-1]==="e"?y[1][0]-o/2:y[0][0]-o/2}).attr("y",function(v){return v.type[0]==="s"?y[1][1]-o/2:y[0][1]-o/2}).attr("width",function(v){return v.type==="n"||v.type==="s"?y[1][0]-y[0][0]+o:o}).attr("height",function(v){return v.type==="e"||v.type==="w"?y[1][1]-y[0][1]+o:o})):g.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function A(g,y,v){var _=g.__brush.emitter;return _&&(!v||!_.clean)?_:new f(g,y,v)}function f(g,y,v){this.that=g,this.args=y,this.state=g.__brush,this.active=0,this.clean=v}f.prototype={beforestart:function(){return++this.active===1&&(this.state.emitter=this,this.starting=!0),this},start:function(g,y){return this.starting?(this.starting=!1,this.emit("start",g,y)):this.emit("brush",g),this},brush:function(g,y){return this.emit("brush",g,y),this},end:function(g,y){return--this.active===0&&(delete this.state.emitter,this.emit("end",g,y)),this},emit:function(g,y,v){var _=zt(this.that).datum();a.call(g,this.that,new X5e(g,{sourceEvent:y,target:u,selection:e.output(this.state.selection),mode:v,dispatch:a}),_)}};function h(g){if(s&&!g.touches||!n.apply(this,arguments))return;var y=this,v=g.target.__data__.type,_=(i&&g.metaKey?v="overlay":v)==="selection"?p7:i&&g.altKey?jh:Qh,b=e===ix?null:Z5e[v],w=e===wy?null:$5e[v],M=ox(y),x=M.extent,L=M.selection,N=x[0][0],H,S,F=x[0][1],I,E,P=x[1][0],K,q,z=x[1][1],J,ie,X=0,D=0,W,ee=b&&w&&i&&g.shiftKey,ne,he,pe=Array.from(g.touches||[g],$=>{const Z=$.identifier;return $=EB($,y),$.point0=$.slice(),$.identifier=Z,$});$B(y);var ve=A(y,arguments,!0).beforestart();if(v==="overlay"){L&&(W=!0);const $=[pe[0],pe[1]||pe[0]];M.selection=L=[[H=e===ix?N:Qa($[0][0],$[1][0]),I=e===wy?F:Qa($[0][1],$[1][1])],[K=e===ix?P:Ra($[0][0],$[1][0]),J=e===wy?z:Ra($[0][1],$[1][1])]],pe.length>1&&Pe(g)}else H=L[0][0],I=L[0][1],K=L[1][0],J=L[1][1];S=H,E=I,q=K,ie=J;var ue=zt(y).attr("pointer-events","none"),_e=ue.selectAll(".overlay").attr("cursor",fc[v]);if(g.touches)ve.moved=Me,ve.ended=Q;else{var Le=zt(g.view).on("mousemove.brush",Me,!0).on("mouseup.brush",Q,!0);i&&Le.on("keydown.brush",te,!0).on("keyup.brush",ce,!0),twe(g.view)}c.call(y),ve.start(g,_.name);function Me($){for(const Z of $.changedTouches||[$])for(const ae of pe)ae.identifier===Z.identifier&&(ae.cur=EB(Z,y));if(ee&&!ne&&!he&&pe.length===1){const Z=pe[0];m7(Z.cur[0]-Z[0])>m7(Z.cur[1]-Z[1])?he=!0:ne=!0}for(const Z of pe)Z.cur&&(Z[0]=Z.cur[0],Z[1]=Z.cur[1]);W=!0,nx($),Pe($)}function Pe($){const Z=pe[0],ae=Z.point0;var Be;switch(X=Z[0]-ae[0],D=Z[1]-ae[1],_){case rx:case p7:{b&&(X=Ra(N-H,Qa(P-K,X)),S=H+X,q=K+X),w&&(D=Ra(F-I,Qa(z-J,D)),E=I+D,ie=J+D);break}case Qh:{pe[1]?(b&&(S=Ra(N,Qa(P,pe[0][0])),q=Ra(N,Qa(P,pe[1][0])),b=1),w&&(E=Ra(F,Qa(z,pe[0][1])),ie=Ra(F,Qa(z,pe[1][1])),w=1)):(b<0?(X=Ra(N-H,Qa(P-H,X)),S=H+X,q=K):b>0&&(X=Ra(N-K,Qa(P-K,X)),S=H,q=K+X),w<0?(D=Ra(F-I,Qa(z-I,D)),E=I+D,ie=J):w>0&&(D=Ra(F-J,Qa(z-J,D)),E=I,ie=J+D));break}case jh:{b&&(S=Ra(N,Qa(P,H-X*b)),q=Ra(N,Qa(P,K+X*b))),w&&(E=Ra(F,Qa(z,I-D*w)),ie=Ra(F,Qa(z,J+D*w)));break}}q<S&&(b*=-1,Be=H,H=K,K=Be,Be=S,S=q,q=Be,v in y7&&_e.attr("cursor",fc[v=y7[v]])),ie<E&&(w*=-1,Be=I,I=J,J=Be,Be=E,E=ie,ie=Be,v in _7&&_e.attr("cursor",fc[v=_7[v]])),M.selection&&(L=M.selection),ne&&(S=L[0][0],q=L[1][0]),he&&(E=L[0][1],ie=L[1][1]),(L[0][0]!==S||L[0][1]!==E||L[1][0]!==q||L[1][1]!==ie)&&(M.selection=[[S,E],[q,ie]],c.call(y),ve.brush($,_.name))}function Q($){if(J5e($),$.touches){if($.touches.length)return;s&&clearTimeout(s),s=setTimeout(function(){s=null},500)}else nwe($.view,W),Le.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);ue.attr("pointer-events","all"),_e.attr("cursor",fc.overlay),M.selection&&(L=M.selection),rBe(L)&&(M.selection=null,c.call(y)),ve.end($,_.name)}function te($){switch($.keyCode){case 16:{ee=b&&w;break}case 18:{_===Qh&&(b&&(K=q-X*b,H=S+X*b),w&&(J=ie-D*w,I=E+D*w),_=jh,Pe($));break}case 32:{(_===Qh||_===jh)&&(b<0?K=q-X:b>0&&(H=S-X),w<0?J=ie-D:w>0&&(I=E-D),_=rx,_e.attr("cursor",fc.selection),Pe($));break}default:return}nx($)}function ce($){switch($.keyCode){case 16:{ee&&(ne=he=ee=!1,Pe($));break}case 18:{_===jh&&(b<0?K=q:b>0&&(H=S),w<0?J=ie:w>0&&(I=E),_=Qh,Pe($));break}case 32:{_===rx&&($.altKey?(b&&(K=q-X*b,H=S+X*b),w&&(J=ie-D*w,I=E+D*w),_=jh):(b<0?K=q:b>0&&(H=S),w<0?J=ie:w>0&&(I=E),_=Qh),_e.attr("cursor",fc[v]),Pe($));break}default:return}nx($)}}function d(g){A(this,arguments).moved(g)}function m(g){A(this,arguments).ended(g)}function p(){var g=this.__brush||{selection:null};return g.extent=v7(t.apply(this,arguments)),g.dim=e,g}return u.extent=function(g){return arguments.length?(t=typeof g=="function"?g:tx(v7(g)),u):t},u.filter=function(g){return arguments.length?(n=typeof g=="function"?g:tx(!!g),u):n},u.touchable=function(g){return arguments.length?(r=typeof g=="function"?g:tx(!!g),u):r},u.handleSize=function(g){return arguments.length?(o=+g,u):o},u.keyModifiers=function(g){return arguments.length?(i=!!g,u):i},u.on=function(){var g=a.on.apply(a,arguments);return g===a?u:g},u}const sx=Math.PI,lx=2*sx,sf=1e-6,oBe=lx-sf;function b7(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function sBe(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return b7;const n=10**t;return function(r){this._+=r[0];for(let i=1,a=r.length;i<a;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class w7{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?b7:sBe(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,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,a,o){this._append`C${+t},${+n},${+r},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,n,r,i,a){if(t=+t,n=+n,r=+r,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,s=this._y1,u=r-t,c=i-n,A=o-t,f=s-n,h=A*A+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(h>sf)if(!(Math.abs(f*u-c*A)>sf)||!a)this._append`L${this._x1=t},${this._y1=n}`;else{let d=r-o,m=i-s,p=u*u+c*c,g=d*d+m*m,y=Math.sqrt(p),v=Math.sqrt(h),_=a*Math.tan((sx-Math.acos((p+h-g)/(2*y*v)))/2),b=_/v,w=_/y;Math.abs(b-1)>sf&&this._append`L${t+b*A},${n+b*f}`,this._append`A${a},${a},0,0,${+(f*d>A*m)},${this._x1=t+w*u},${this._y1=n+w*c}`}}arc(t,n,r,i,a,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),u=r*Math.sin(i),c=t+s,A=n+u,f=1^o,h=o?i-a:a-i;this._x1===null?this._append`M${c},${A}`:(Math.abs(this._x1-c)>sf||Math.abs(this._y1-A)>sf)&&this._append`L${c},${A}`,r&&(h<0&&(h=h%lx+lx),h>oBe?this._append`A${r},${r},0,1,${f},${t-s},${n-u}A${r},${r},0,1,${f},${this._x1=c},${this._y1=A}`:h>sf&&this._append`A${r},${r},0,${+(h>=sx)},${f},${this._x1=t+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function lf(e=3){return new w7(+e)}function lBe(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function By(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 Vh(e){return e=By(Math.abs(e)),e?e[1]:NaN}function uBe(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],u=0;i>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),a.push(n.substring(i-=s,i+s)),!((u+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function cBe(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var ABe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function fg(e){if(!(t=ABe.exec(e)))throw new Error("invalid format: "+e);var t;return new ux({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]})}fg.prototype=ux.prototype;function ux(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+""}ux.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 dBe(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var B7;function fBe(e,t){var n=By(e,t);if(!n)return e+"";var r=n[0],i=n[1],a=i-(B7=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+By(e,Math.max(0,t+a-1))[0]}function x7(e,t){var n=By(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const C7={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:lBe,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)=>x7(e*100,t),r:x7,s:fBe,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function S7(e){return e}var k7=Array.prototype.map,M7=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function hBe(e){var t=e.grouping===void 0||e.thousands===void 0?S7:uBe(k7.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?S7:cBe(k7.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function c(f){f=fg(f);var h=f.fill,d=f.align,m=f.sign,p=f.symbol,g=f.zero,y=f.width,v=f.comma,_=f.precision,b=f.trim,w=f.type;w==="n"?(v=!0,w="g"):C7[w]||(_===void 0&&(_=12),b=!0,w="g"),(g||h==="0"&&d==="=")&&(g=!0,h="0",d="=");var M=p==="$"?n:p==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",x=p==="$"?r:/[%p]/.test(w)?o:"",L=C7[w],N=/[defgprs%]/.test(w);_=_===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function H(S){var F=M,I=x,E,P,K;if(w==="c")I=L(S)+I,S="";else{S=+S;var q=S<0||1/S<0;if(S=isNaN(S)?u:L(Math.abs(S),_),b&&(S=dBe(S)),q&&+S==0&&m!=="+"&&(q=!1),F=(q?m==="("?m:s:m==="-"||m==="("?"":m)+F,I=(w==="s"?M7[8+B7/3]:"")+I+(q&&m==="("?")":""),N){for(E=-1,P=S.length;++E<P;)if(K=S.charCodeAt(E),48>K||K>57){I=(K===46?i+S.slice(E+1):S.slice(E))+I,S=S.slice(0,E);break}}}v&&!g&&(S=t(S,1/0));var z=F.length+S.length+I.length,J=z<y?new Array(y-z+1).join(h):"";switch(v&&g&&(S=t(J+S,J.length?y-I.length:1/0),J=""),d){case"<":S=F+S+I+J;break;case"=":S=F+J+S+I;break;case"^":S=J.slice(0,z=J.length>>1)+F+S+I+J.slice(z);break;default:S=J+F+S+I;break}return a(S)}return H.toString=function(){return f+""},H}function A(f,h){var d=c((f=fg(f),f.type="f",f)),m=Math.max(-8,Math.min(8,Math.floor(Vh(h)/3)))*3,p=Math.pow(10,-m),g=M7[8+m/3];return function(y){return d(p*y)+g}}return{format:c,formatPrefix:A}}var xy,Bs,E7;pBe({thousands:",",grouping:[3],currency:["$",""]});function pBe(e){return xy=hBe(e),Bs=xy.format,E7=xy.formatPrefix,xy}function mBe(e){return Math.max(0,-Vh(Math.abs(e)))}function gBe(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Vh(t)/3)))*3-Vh(Math.abs(e)))}function vBe(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Vh(t)-Vh(e))+1}var Fn=1e-6,L7=1e-12,Yn=Math.PI,Ai=Yn/2,T7=Yn/4,Wo=Yn*2,lo=180/Yn,di=Yn/180,yr=Math.abs,zh=Math.atan,hc=Math.atan2,Pn=Math.cos,N7=Math.exp,Cy=Math.log,cx=Math.pow,Sn=Math.sin,xs=Math.sign||function(e){return e>0?1:e<0?-1:0},Mo=Math.sqrt,Ax=Math.tan;function F7(e){return e>1?0:e<-1?Yn:Math.acos(e)}function Cs(e){return e>1?Ai:e<-1?-Ai:Math.asin(e)}function Ss(){}function Sy(e,t){e&&I7.hasOwnProperty(e.type)&&I7[e.type](e,t)}var O7={Feature:function(e,t){Sy(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r<i;)Sy(n[r].geometry,t)}},I7={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,i=n.length;++r<i;)e=n[r],t.point(e[0],e[1],e[2])},LineString:function(e,t){dx(e.coordinates,t,0)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)dx(n[r],t,0)},Polygon:function(e,t){D7(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)D7(n[r],t)},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,i=n.length;++r<i;)Sy(n[r],t)}};function dx(e,t,n){var r=-1,i=e.length-n,a;for(t.lineStart();++r<i;)a=e[r],t.point(a[0],a[1],a[2]);t.lineEnd()}function D7(e,t){var n=-1,r=e.length;for(t.polygonStart();++n<r;)dx(e[n],t,1);t.polygonEnd()}function uf(e,t){e&&O7.hasOwnProperty(e.type)?O7[e.type](e,t):Sy(e,t)}function fx(e){return[hc(e[1],e[0]),Cs(e[2])]}function qh(e){var t=e[0],n=e[1],r=Pn(n);return[r*Pn(t),r*Sn(t),Sn(n)]}function ky(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function My(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 hx(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function Ey(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function px(e){var t=Mo(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}function mx(e,t){function n(r,i){return r=e(r,i),t(r[0],r[1])}return e.invert&&t.invert&&(n.invert=function(r,i){return r=t.invert(r,i),r&&e.invert(r[0],r[1])}),n}function gx(e,t){return yr(e)>Yn&&(e-=Math.round(e/Wo)*Wo),[e,t]}gx.invert=gx;function U7(e,t,n){return(e%=Wo)?t||n?mx(H7(e),Y7(t,n)):H7(e):t||n?Y7(t,n):gx}function P7(e){return function(t,n){return t+=e,yr(t)>Yn&&(t-=Math.round(t/Wo)*Wo),[t,n]}}function H7(e){var t=P7(e);return t.invert=P7(-e),t}function Y7(e,t){var n=Pn(e),r=Sn(e),i=Pn(t),a=Sn(t);function o(s,u){var c=Pn(u),A=Pn(s)*c,f=Sn(s)*c,h=Sn(u),d=h*n+A*r;return[hc(f*i-d*a,A*n-h*r),Cs(d*i+f*a)]}return o.invert=function(s,u){var c=Pn(u),A=Pn(s)*c,f=Sn(s)*c,h=Sn(u),d=h*i-f*a;return[hc(f*i+h*a,A*n+d*r),Cs(d*n-A*r)]},o}function yBe(e){e=U7(e[0]*di,e[1]*di,e.length>2?e[2]*di:0);function t(n){return n=e(n[0]*di,n[1]*di),n[0]*=lo,n[1]*=lo,n}return t.invert=function(n){return n=e.invert(n[0]*di,n[1]*di),n[0]*=lo,n[1]*=lo,n},t}function _Be(e,t,n,r,i,a){if(n){var o=Pn(t),s=Sn(t),u=r*n;i==null?(i=t+r*Wo,a=t-u/2):(i=R7(o,i),a=R7(o,a),(r>0?i<a:i>a)&&(i+=r*Wo));for(var c,A=i;r>0?A>a:A<a;A-=u)c=fx([o,-s*Pn(A),-s*Sn(A)]),e.point(c[0],c[1])}}function R7(e,t){t=qh(t),t[0]-=e,px(t);var n=F7(-t[1]);return((-t[2]<0?-n:n)+Wo-Fn)%Wo}function Q7(){var e=[],t;return{point:function(n,r,i){t.push([n,r,i])},lineStart:function(){e.push(t=[])},lineEnd:Ss,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function Ly(e,t){return yr(e[0]-t[0])<Fn&&yr(e[1]-t[1])<Fn}function Ty(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 j7(e,t,n,r,i){var a=[],o=[],s,u;if(e.forEach(function(m){if(!((p=m.length-1)<=0)){var p,g=m[0],y=m[p],v;if(Ly(g,y)){if(!g[2]&&!y[2]){for(i.lineStart(),s=0;s<p;++s)i.point((g=m[s])[0],g[1]);i.lineEnd();return}y[0]+=2*Fn}a.push(v=new Ty(g,m,null,!0)),o.push(v.o=new Ty(g,null,v,!1)),a.push(v=new Ty(y,m,null,!1)),o.push(v.o=new Ty(y,null,v,!0))}}),!!a.length){for(o.sort(t),V7(a),V7(o),s=0,u=o.length;s<u;++s)o[s].e=n=!n;for(var c=a[0],A,f;;){for(var h=c,d=!0;h.v;)if((h=h.n)===c)return;A=h.z,i.lineStart();do{if(h.v=h.o.v=!0,h.e){if(d)for(s=0,u=A.length;s<u;++s)i.point((f=A[s])[0],f[1]);else r(h.x,h.n.x,1,i);h=h.n}else{if(d)for(A=h.p.z,s=A.length-1;s>=0;--s)i.point((f=A[s])[0],f[1]);else r(h.x,h.p.x,-1,i);h=h.p}h=h.o,A=h.z,d=!d}while(!h.v);i.lineEnd()}}}function V7(e){if(t=e.length){for(var t,n=0,r=e[0],i;++n<t;)r.n=i=e[n],i.p=r,r=i;r.n=i=e[0],i.p=r}}function vx(e){return yr(e[0])<=Yn?e[0]:xs(e[0])*((yr(e[0])+Yn)%Wo-Yn)}function bBe(e,t){var n=vx(t),r=t[1],i=Sn(r),a=[Sn(n),-Pn(n),0],o=0,s=0,u=new Xd;i===1?r=Ai+Fn:i===-1&&(r=-Ai-Fn);for(var c=0,A=e.length;c<A;++c)if(h=(f=e[c]).length)for(var f,h,d=f[h-1],m=vx(d),p=d[1]/2+T7,g=Sn(p),y=Pn(p),v=0;v<h;++v,m=b,g=M,y=x,d=_){var _=f[v],b=vx(_),w=_[1]/2+T7,M=Sn(w),x=Pn(w),L=b-m,N=L>=0?1:-1,H=N*L,S=H>Yn,F=g*M;if(u.add(hc(F*N*Sn(H),y*x+F*Pn(H))),o+=S?L+N*Wo:L,S^m>=n^b>=n){var I=My(qh(d),qh(_));px(I);var E=My(a,I);px(E);var P=(S^L>=0?-1:1)*Cs(E[2]);(r>P||r===P&&(I[0]||I[1]))&&(s+=S^L>=0?1:-1)}}return(o<-Fn||o<Fn&&u<-L7)^s&1}function z7(e,t,n,r){return function(i){var a=t(i),o=Q7(),s=t(o),u=!1,c,A,f,h={point:d,lineStart:p,lineEnd:g,polygonStart:function(){h.point=y,h.lineStart=v,h.lineEnd=_,A=[],c=[]},polygonEnd:function(){h.point=d,h.lineStart=p,h.lineEnd=g,A=pO(A);var b=bBe(c,r);A.length?(u||(i.polygonStart(),u=!0),j7(A,BBe,b,n,i)):b&&(u||(i.polygonStart(),u=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),u&&(i.polygonEnd(),u=!1),A=c=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function d(b,w){e(b,w)&&i.point(b,w)}function m(b,w){a.point(b,w)}function p(){h.point=m,a.lineStart()}function g(){h.point=d,a.lineEnd()}function y(b,w){f.push([b,w]),s.point(b,w)}function v(){s.lineStart(),f=[]}function _(){y(f[0][0],f[0][1]),s.lineEnd();var b=s.clean(),w=o.result(),M,x=w.length,L,N,H;if(f.pop(),c.push(f),f=null,!!x){if(b&1){if(N=w[0],(L=N.length-1)>0){for(u||(i.polygonStart(),u=!0),i.lineStart(),M=0;M<L;++M)i.point((H=N[M])[0],H[1]);i.lineEnd()}return}x>1&&b&2&&w.push(w.pop().concat(w.shift())),A.push(w.filter(wBe))}}return h}}function wBe(e){return e.length>1}function BBe(e,t){return((e=e.x)[0]<0?e[1]-Ai-Fn:Ai-e[1])-((t=t.x)[0]<0?t[1]-Ai-Fn:Ai-t[1])}const q7=z7(function(){return!0},xBe,SBe,[-Yn,-Ai]);function xBe(e){var t=NaN,n=NaN,r=NaN,i;return{lineStart:function(){e.lineStart(),i=1},point:function(a,o){var s=a>0?Yn:-Yn,u=yr(a-t);yr(u-Yn)<Fn?(e.point(t,n=(n+o)/2>0?Ai:-Ai),e.point(r,n),e.lineEnd(),e.lineStart(),e.point(s,n),e.point(a,n),i=0):r!==s&&u>=Yn&&(yr(t-r)<Fn&&(t-=r*Fn),yr(a-s)<Fn&&(a-=s*Fn),n=CBe(t,n,a,o),e.point(r,n),e.lineEnd(),e.lineStart(),e.point(s,n),i=0),e.point(t=a,n=o),r=s},lineEnd:function(){e.lineEnd(),t=n=NaN},clean:function(){return 2-i}}}function CBe(e,t,n,r){var i,a,o=Sn(e-n);return yr(o)>Fn?zh((Sn(t)*(a=Pn(r))*Sn(n)-Sn(r)*(i=Pn(t))*Sn(e))/(i*a*o)):(t+r)/2}function SBe(e,t,n,r){var i;if(e==null)i=n*Ai,r.point(-Yn,i),r.point(0,i),r.point(Yn,i),r.point(Yn,0),r.point(Yn,-i),r.point(0,-i),r.point(-Yn,-i),r.point(-Yn,0),r.point(-Yn,i);else if(yr(e[0]-t[0])>Fn){var a=e[0]<t[0]?Yn:-Yn;i=n*a/2,r.point(-a,i),r.point(0,i),r.point(a,i)}else r.point(t[0],t[1])}function kBe(e){var t=Pn(e),n=2*di,r=t>0,i=yr(t)>Fn;function a(A,f,h,d){_Be(d,e,n,h,A,f)}function o(A,f){return Pn(A)*Pn(f)>t}function s(A){var f,h,d,m,p;return{lineStart:function(){m=d=!1,p=1},point:function(g,y){var v=[g,y],_,b=o(g,y),w=r?b?0:c(g,y):b?c(g+(g<0?Yn:-Yn),y):0;if(!f&&(m=d=b)&&A.lineStart(),b!==d&&(_=u(f,v),(!_||Ly(f,_)||Ly(v,_))&&(v[2]=1)),b!==d)p=0,b?(A.lineStart(),_=u(v,f),A.point(_[0],_[1])):(_=u(f,v),A.point(_[0],_[1],2),A.lineEnd()),f=_;else if(i&&f&&r^b){var M;!(w&h)&&(M=u(v,f,!0))&&(p=0,r?(A.lineStart(),A.point(M[0][0],M[0][1]),A.point(M[1][0],M[1][1]),A.lineEnd()):(A.point(M[1][0],M[1][1]),A.lineEnd(),A.lineStart(),A.point(M[0][0],M[0][1],3)))}b&&(!f||!Ly(f,v))&&A.point(v[0],v[1]),f=v,d=b,h=w},lineEnd:function(){d&&A.lineEnd(),f=null},clean:function(){return p|(m&&d)<<1}}}function u(A,f,h){var d=qh(A),m=qh(f),p=[1,0,0],g=My(d,m),y=ky(g,g),v=g[0],_=y-v*v;if(!_)return!h&&A;var b=t*y/_,w=-t*v/_,M=My(p,g),x=Ey(p,b),L=Ey(g,w);hx(x,L);var N=M,H=ky(x,N),S=ky(N,N),F=H*H-S*(ky(x,x)-1);if(!(F<0)){var I=Mo(F),E=Ey(N,(-H-I)/S);if(hx(E,x),E=fx(E),!h)return E;var P=A[0],K=f[0],q=A[1],z=f[1],J;K<P&&(J=P,P=K,K=J);var ie=K-P,X=yr(ie-Yn)<Fn,D=X||ie<Fn;if(!X&&z<q&&(J=q,q=z,z=J),D?X?q+z>0^E[1]<(yr(E[0]-P)<Fn?q:z):q<=E[1]&&E[1]<=z:ie>Yn^(P<=E[0]&&E[0]<=K)){var W=Ey(N,(-H+I)/S);return hx(W,x),[E,fx(W)]}}}function c(A,f){var h=r?e:Yn-e,d=0;return A<-h?d|=1:A>h&&(d|=2),f<-h?d|=4:f>h&&(d|=8),d}return z7(o,s,a,r?[0,-e]:[-Yn,e-Yn])}function MBe(e,t,n,r,i,a){var o=e[0],s=e[1],u=t[0],c=t[1],A=0,f=1,h=u-o,d=c-s,m;if(m=n-o,!(!h&&m>0)){if(m/=h,h<0){if(m<A)return;m<f&&(f=m)}else if(h>0){if(m>f)return;m>A&&(A=m)}if(m=i-o,!(!h&&m<0)){if(m/=h,h<0){if(m>f)return;m>A&&(A=m)}else if(h>0){if(m<A)return;m<f&&(f=m)}if(m=r-s,!(!d&&m>0)){if(m/=d,d<0){if(m<A)return;m<f&&(f=m)}else if(d>0){if(m>f)return;m>A&&(A=m)}if(m=a-s,!(!d&&m<0)){if(m/=d,d<0){if(m>f)return;m>A&&(A=m)}else if(d>0){if(m<A)return;m<f&&(f=m)}return A>0&&(e[0]=o+A*h,e[1]=s+A*d),f<1&&(t[0]=o+f*h,t[1]=s+f*d),!0}}}}}var hg=1e9,Ny=-hg;function K7(e,t,n,r){function i(c,A){return e<=c&&c<=n&&t<=A&&A<=r}function a(c,A,f,h){var d=0,m=0;if(c==null||(d=o(c,f))!==(m=o(A,f))||u(c,A)<0^f>0)do h.point(d===0||d===3?e:n,d>1?r:t);while((d=(d+f+4)%4)!==m);else h.point(A[0],A[1])}function o(c,A){return yr(c[0]-e)<Fn?A>0?0:3:yr(c[0]-n)<Fn?A>0?2:1:yr(c[1]-t)<Fn?A>0?1:0:A>0?3:2}function s(c,A){return u(c.x,A.x)}function u(c,A){var f=o(c,1),h=o(A,1);return f!==h?f-h:f===0?A[1]-c[1]:f===1?c[0]-A[0]:f===2?c[1]-A[1]:A[0]-c[0]}return function(c){var A=c,f=Q7(),h,d,m,p,g,y,v,_,b,w,M,x={point:L,lineStart:F,lineEnd:I,polygonStart:H,polygonEnd:S};function L(P,K){i(P,K)&&A.point(P,K)}function N(){for(var P=0,K=0,q=d.length;K<q;++K)for(var z=d[K],J=1,ie=z.length,X=z[0],D,W,ee=X[0],ne=X[1];J<ie;++J)D=ee,W=ne,X=z[J],ee=X[0],ne=X[1],W<=r?ne>r&&(ee-D)*(r-W)>(ne-W)*(e-D)&&++P:ne<=r&&(ee-D)*(r-W)<(ne-W)*(e-D)&&--P;return P}function H(){A=f,h=[],d=[],M=!0}function S(){var P=N(),K=M&&P,q=(h=pO(h)).length;(K||q)&&(c.polygonStart(),K&&(c.lineStart(),a(null,null,1,c),c.lineEnd()),q&&j7(h,s,P,a,c),c.polygonEnd()),A=c,h=d=m=null}function F(){x.point=E,d&&d.push(m=[]),w=!0,b=!1,v=_=NaN}function I(){h&&(E(p,g),y&&b&&f.rejoin(),h.push(f.result())),x.point=L,b&&A.lineEnd()}function E(P,K){var q=i(P,K);if(d&&m.push([P,K]),w)p=P,g=K,y=q,w=!1,q&&(A.lineStart(),A.point(P,K));else if(q&&b)A.point(P,K);else{var z=[v=Math.max(Ny,Math.min(hg,v)),_=Math.max(Ny,Math.min(hg,_))],J=[P=Math.max(Ny,Math.min(hg,P)),K=Math.max(Ny,Math.min(hg,K))];MBe(z,J,e,t,n,r)?(b||(A.lineStart(),A.point(z[0],z[1])),A.point(J[0],J[1]),q||A.lineEnd(),M=!1):q&&(A.lineStart(),A.point(P,K),M=!1)}v=P,_=K,b=q}return x}}const yx=e=>e;var _x=new Xd,bx=new Xd,G7,W7,wx,Bx,pc={point:Ss,lineStart:Ss,lineEnd:Ss,polygonStart:function(){pc.lineStart=EBe,pc.lineEnd=TBe},polygonEnd:function(){pc.lineStart=pc.lineEnd=pc.point=Ss,_x.add(yr(bx)),bx=new Xd},result:function(){var e=_x/2;return _x=new Xd,e}};function EBe(){pc.point=LBe}function LBe(e,t){pc.point=X7,G7=wx=e,W7=Bx=t}function X7(e,t){bx.add(Bx*e-wx*t),wx=e,Bx=t}function TBe(){X7(G7,W7)}var Kh=1/0,Fy=Kh,pg=-Kh,Oy=pg,Iy={point:NBe,lineStart:Ss,lineEnd:Ss,polygonStart:Ss,polygonEnd:Ss,result:function(){var e=[[Kh,Fy],[pg,Oy]];return pg=Oy=-(Fy=Kh=1/0),e}};function NBe(e,t){e<Kh&&(Kh=e),e>pg&&(pg=e),t<Fy&&(Fy=t),t>Oy&&(Oy=t)}var xx=0,Cx=0,mg=0,Dy=0,Uy=0,Gh=0,Sx=0,kx=0,gg=0,J7,Z7,mu,gu,ks={point:cf,lineStart:$7,lineEnd:eI,polygonStart:function(){ks.lineStart=IBe,ks.lineEnd=DBe},polygonEnd:function(){ks.point=cf,ks.lineStart=$7,ks.lineEnd=eI},result:function(){var e=gg?[Sx/gg,kx/gg]:Gh?[Dy/Gh,Uy/Gh]:mg?[xx/mg,Cx/mg]:[NaN,NaN];return xx=Cx=mg=Dy=Uy=Gh=Sx=kx=gg=0,e}};function cf(e,t){xx+=e,Cx+=t,++mg}function $7(){ks.point=FBe}function FBe(e,t){ks.point=OBe,cf(mu=e,gu=t)}function OBe(e,t){var n=e-mu,r=t-gu,i=Mo(n*n+r*r);Dy+=i*(mu+e)/2,Uy+=i*(gu+t)/2,Gh+=i,cf(mu=e,gu=t)}function eI(){ks.point=cf}function IBe(){ks.point=UBe}function DBe(){tI(J7,Z7)}function UBe(e,t){ks.point=tI,cf(J7=mu=e,Z7=gu=t)}function tI(e,t){var n=e-mu,r=t-gu,i=Mo(n*n+r*r);Dy+=i*(mu+e)/2,Uy+=i*(gu+t)/2,Gh+=i,i=gu*e-mu*t,Sx+=i*(mu+e),kx+=i*(gu+t),gg+=i*3,cf(mu=e,gu=t)}function nI(e){this._context=e}nI.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,Wo);break}}},result:Ss};var Mx=new Xd,Ex,rI,iI,vg,yg,_g={point:Ss,lineStart:function(){_g.point=PBe},lineEnd:function(){Ex&&aI(rI,iI),_g.point=Ss},polygonStart:function(){Ex=!0},polygonEnd:function(){Ex=null},result:function(){var e=+Mx;return Mx=new Xd,e}};function PBe(e,t){_g.point=aI,rI=vg=e,iI=yg=t}function aI(e,t){vg-=e,yg-=t,Mx.add(Mo(vg*vg+yg*yg)),vg=e,yg=t}let oI,Py,sI,lI;class uI{constructor(t){this._append=t==null?cI:HBe(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!==sI||this._append!==Py){const r=this._radius,i=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`,sI=r,Py=this._append,lI=this._,this._=i}this._+=lI;break}}}result(){const t=this._;return this._="",t.length?t:null}}function cI(e){let t=1;this._+=e[0];for(const n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function HBe(e){const t=Math.floor(e);if(!(t>=0))throw new RangeError(`invalid digits: ${e}`);if(t>15)return cI;if(t!==oI){const n=10**t;oI=t,Py=function(i){let a=1;this._+=i[0];for(const o=i.length;a<o;++a)this._+=Math.round(arguments[a]*n)/n+i[a]}}return Py}function Lx(e,t){let n=3,r=4.5,i,a;function o(s){return s&&(typeof r=="function"&&a.pointRadius(+r.apply(this,arguments)),uf(s,i(a))),a.result()}return o.area=function(s){return uf(s,i(pc)),pc.result()},o.measure=function(s){return uf(s,i(_g)),_g.result()},o.bounds=function(s){return uf(s,i(Iy)),Iy.result()},o.centroid=function(s){return uf(s,i(ks)),ks.result()},o.projection=function(s){return arguments.length?(i=s==null?(e=null,yx):(e=s).stream,o):e},o.context=function(s){return arguments.length?(a=s==null?(t=null,new uI(n)):new nI(t=s),typeof r!="function"&&a.pointRadius(r),o):t},o.pointRadius=function(s){return arguments.length?(r=typeof s=="function"?s:(a.pointRadius(+s),+s),o):r},o.digits=function(s){if(!arguments.length)return n;if(s==null)n=null;else{const u=Math.floor(s);if(!(u>=0))throw new RangeError(`invalid digits: ${s}`);n=u}return t===null&&(a=new uI(n)),o},o.projection(e).digits(n).context(t)}function Hy(e){return{stream:Yy(e)}}function Yy(e){return function(t){var n=new Tx;for(var r in e)n[r]=e[r];return n.stream=t,n}}function Tx(){}Tx.prototype={constructor:Tx,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 Nx(e,t,n){var r=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),r!=null&&e.clipExtent(null),uf(n,e.stream(Iy)),t(Iy.result()),r!=null&&e.clipExtent(r),e}function Fx(e,t,n){return Nx(e,function(r){var i=t[1][0]-t[0][0],a=t[1][1]-t[0][1],o=Math.min(i/(r[1][0]-r[0][0]),a/(r[1][1]-r[0][1])),s=+t[0][0]+(i-o*(r[1][0]+r[0][0]))/2,u=+t[0][1]+(a-o*(r[1][1]+r[0][1]))/2;e.scale(150*o).translate([s,u])},n)}function AI(e,t,n){return Fx(e,[[0,0],t],n)}function dI(e,t,n){return Nx(e,function(r){var i=+t,a=i/(r[1][0]-r[0][0]),o=(i-a*(r[1][0]+r[0][0]))/2,s=-a*r[0][1];e.scale(150*a).translate([o,s])},n)}function fI(e,t,n){return Nx(e,function(r){var i=+t,a=i/(r[1][1]-r[0][1]),o=-a*r[0][0],s=(i-a*(r[1][1]+r[0][1]))/2;e.scale(150*a).translate([o,s])},n)}var hI=16,YBe=Pn(30*di);function pI(e,t){return+t?QBe(e,t):RBe(e)}function RBe(e){return Yy({point:function(t,n){t=e(t,n),this.stream.point(t[0],t[1])}})}function QBe(e,t){function n(r,i,a,o,s,u,c,A,f,h,d,m,p,g){var y=c-r,v=A-i,_=y*y+v*v;if(_>4*t&&p--){var b=o+h,w=s+d,M=u+m,x=Mo(b*b+w*w+M*M),L=Cs(M/=x),N=yr(yr(M)-1)<Fn||yr(a-f)<Fn?(a+f)/2:hc(w,b),H=e(N,L),S=H[0],F=H[1],I=S-r,E=F-i,P=v*I-y*E;(P*P/_>t||yr((y*I+v*E)/_-.5)>.3||o*h+s*d+u*m<YBe)&&(n(r,i,a,o,s,u,S,F,N,b/=x,w/=x,M,p,g),g.point(S,F),n(S,F,N,b,w,M,c,A,f,h,d,m,p,g))}}return function(r){var i,a,o,s,u,c,A,f,h,d,m,p,g={point:y,lineStart:v,lineEnd:b,polygonStart:function(){r.polygonStart(),g.lineStart=w},polygonEnd:function(){r.polygonEnd(),g.lineStart=v}};function y(L,N){L=e(L,N),r.point(L[0],L[1])}function v(){f=NaN,g.point=_,r.lineStart()}function _(L,N){var H=qh([L,N]),S=e(L,N);n(f,h,A,d,m,p,f=S[0],h=S[1],A=L,d=H[0],m=H[1],p=H[2],hI,r),r.point(f,h)}function b(){g.point=y,r.lineEnd()}function w(){v(),g.point=M,g.lineEnd=x}function M(L,N){_(i=L,N),a=f,o=h,s=d,u=m,c=p,g.point=_}function x(){n(f,h,A,d,m,p,a,o,i,s,u,c,hI,r),g.lineEnd=b,b()}return g}}var jBe=Yy({point:function(e,t){this.stream.point(e*di,t*di)}});function VBe(e){return Yy({point:function(t,n){var r=e(t,n);return this.stream.point(r[0],r[1])}})}function zBe(e,t,n,r,i){function a(o,s){return o*=r,s*=i,[t+e*o,n-e*s]}return a.invert=function(o,s){return[(o-t)/e*r,(n-s)/e*i]},a}function mI(e,t,n,r,i,a){if(!a)return zBe(e,t,n,r,i);var o=Pn(a),s=Sn(a),u=o*e,c=s*e,A=o/e,f=s/e,h=(s*n-o*t)/e,d=(s*t+o*n)/e;function m(p,g){return p*=r,g*=i,[u*p-c*g+t,n-c*p-u*g]}return m.invert=function(p,g){return[r*(A*p-f*g+h),i*(d-f*p-A*g)]},m}function xA(e){return gI(function(){return e})()}function gI(e){var t,n=150,r=480,i=250,a=0,o=0,s=0,u=0,c=0,A,f=0,h=1,d=1,m=null,p=q7,g=null,y,v,_,b=yx,w=.5,M,x,L,N,H;function S(P){return L(P[0]*di,P[1]*di)}function F(P){return P=L.invert(P[0],P[1]),P&&[P[0]*lo,P[1]*lo]}S.stream=function(P){return N&&H===P?N:N=jBe(VBe(A)(p(M(b(H=P)))))},S.preclip=function(P){return arguments.length?(p=P,m=void 0,E()):p},S.postclip=function(P){return arguments.length?(b=P,g=y=v=_=null,E()):b},S.clipAngle=function(P){return arguments.length?(p=+P?kBe(m=P*di):(m=null,q7),E()):m*lo},S.clipExtent=function(P){return arguments.length?(b=P==null?(g=y=v=_=null,yx):K7(g=+P[0][0],y=+P[0][1],v=+P[1][0],_=+P[1][1]),E()):g==null?null:[[g,y],[v,_]]},S.scale=function(P){return arguments.length?(n=+P,I()):n},S.translate=function(P){return arguments.length?(r=+P[0],i=+P[1],I()):[r,i]},S.center=function(P){return arguments.length?(a=P[0]%360*di,o=P[1]%360*di,I()):[a*lo,o*lo]},S.rotate=function(P){return arguments.length?(s=P[0]%360*di,u=P[1]%360*di,c=P.length>2?P[2]%360*di:0,I()):[s*lo,u*lo,c*lo]},S.angle=function(P){return arguments.length?(f=P%360*di,I()):f*lo},S.reflectX=function(P){return arguments.length?(h=P?-1:1,I()):h<0},S.reflectY=function(P){return arguments.length?(d=P?-1:1,I()):d<0},S.precision=function(P){return arguments.length?(M=pI(x,w=P*P),E()):Mo(w)},S.fitExtent=function(P,K){return Fx(S,P,K)},S.fitSize=function(P,K){return AI(S,P,K)},S.fitWidth=function(P,K){return dI(S,P,K)},S.fitHeight=function(P,K){return fI(S,P,K)};function I(){var P=mI(n,0,0,h,d,f).apply(null,t(a,o)),K=mI(n,r-P[0],i-P[1],h,d,f);return A=U7(s,u,c),x=mx(t,K),L=mx(A,x),M=pI(x,w),E()}function E(){return N=H=null,S}return function(){return t=e.apply(this,arguments),S.invert=t.invert&&F,I()}}function Ox(e){var t=0,n=Yn/3,r=gI(e),i=r(t,n);return i.parallels=function(a){return arguments.length?r(t=a[0]*di,n=a[1]*di):[t*lo,n*lo]},i}function qBe(e){var t=Pn(e);function n(r,i){return[r*t,Sn(i)/t]}return n.invert=function(r,i){return[r/t,Cs(i*t)]},n}function KBe(e,t){var n=Sn(e),r=(n+Sn(t))/2;if(yr(r)<Fn)return qBe(e);var i=1+n*(2*r-n),a=Mo(i)/r;function o(s,u){var c=Mo(i-2*r*Sn(u))/r;return[c*Sn(s*=r),a-c*Pn(s)]}return o.invert=function(s,u){var c=a-u,A=hc(s,yr(c))*xs(c);return c*r<0&&(A-=Yn*xs(s)*xs(c)),[A/r,Cs((i-(s*s+c*c)*r*r)/(2*r))]},o}function Ry(){return Ox(KBe).scale(155.424).center([0,33.6442])}function vI(){return Ry().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function GBe(e){var t=e.length;return{point:function(n,r){for(var i=-1;++i<t;)e[i].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 WBe(){var e,t,n=vI(),r,i=Ry().rotate([154,0]).center([-2,58.5]).parallels([55,65]),a,o=Ry().rotate([157,0]).center([-3,19.9]).parallels([8,18]),s,u,c={point:function(h,d){u=[h,d]}};function A(h){var d=h[0],m=h[1];return u=null,r.point(d,m),u||(a.point(d,m),u)||(s.point(d,m),u)}A.invert=function(h){var d=n.scale(),m=n.translate(),p=(h[0]-m[0])/d,g=(h[1]-m[1])/d;return(g>=.12&&g<.234&&p>=-.425&&p<-.214?i:g>=.166&&g<.234&&p>=-.214&&p<-.115?o:n).invert(h)},A.stream=function(h){return e&&t===h?e:e=GBe([n.stream(t=h),i.stream(h),o.stream(h)])},A.precision=function(h){return arguments.length?(n.precision(h),i.precision(h),o.precision(h),f()):n.precision()},A.scale=function(h){return arguments.length?(n.scale(h),i.scale(h*.35),o.scale(h),A.translate(n.translate())):n.scale()},A.translate=function(h){if(!arguments.length)return n.translate();var d=n.scale(),m=+h[0],p=+h[1];return r=n.translate(h).clipExtent([[m-.455*d,p-.238*d],[m+.455*d,p+.238*d]]).stream(c),a=i.translate([m-.307*d,p+.201*d]).clipExtent([[m-.425*d+Fn,p+.12*d+Fn],[m-.214*d-Fn,p+.234*d-Fn]]).stream(c),s=o.translate([m-.205*d,p+.212*d]).clipExtent([[m-.214*d+Fn,p+.166*d+Fn],[m-.115*d-Fn,p+.234*d-Fn]]).stream(c),f()},A.fitExtent=function(h,d){return Fx(A,h,d)},A.fitSize=function(h,d){return AI(A,h,d)},A.fitWidth=function(h,d){return dI(A,h,d)},A.fitHeight=function(h,d){return fI(A,h,d)};function f(){return e=t=null,A}return A.scale(1070)}function yI(e){return function(t,n){var r=Pn(t),i=Pn(n),a=e(r*i);return a===1/0?[2,0]:[a*i*Sn(t),a*Sn(n)]}}function bg(e){return function(t,n){var r=Mo(t*t+n*n),i=e(r),a=Sn(i),o=Pn(i);return[hc(t*a,r*o),Cs(r&&n*a/r)]}}var _I=yI(function(e){return Mo(2/(1+e))});_I.invert=bg(function(e){return 2*Cs(e/2)});function XBe(){return xA(_I).scale(124.75).clipAngle(180-.001)}var bI=yI(function(e){return(e=F7(e))&&e/Sn(e)});bI.invert=bg(function(e){return e});function JBe(){return xA(bI).scale(79.4188).clipAngle(180-.001)}function Qy(e,t){return[e,Cy(Ax((Ai+t)/2))]}Qy.invert=function(e,t){return[e,2*zh(N7(t))-Ai]};function ZBe(){return wI(Qy).scale(961/Wo)}function wI(e){var t=xA(e),n=t.center,r=t.scale,i=t.translate,a=t.clipExtent,o=null,s,u,c;t.scale=function(f){return arguments.length?(r(f),A()):r()},t.translate=function(f){return arguments.length?(i(f),A()):i()},t.center=function(f){return arguments.length?(n(f),A()):n()},t.clipExtent=function(f){return arguments.length?(f==null?o=s=u=c=null:(o=+f[0][0],s=+f[0][1],u=+f[1][0],c=+f[1][1]),A()):o==null?null:[[o,s],[u,c]]};function A(){var f=Yn*r(),h=t(yBe(t.rotate()).invert([0,0]));return a(o==null?[[h[0]-f,h[1]-f],[h[0]+f,h[1]+f]]:e===Qy?[[Math.max(h[0]-f,o),s],[Math.min(h[0]+f,u),c]]:[[o,Math.max(h[1]-f,s)],[u,Math.min(h[1]+f,c)]])}return A()}function jy(e){return Ax((Ai+e)/2)}function $Be(e,t){var n=Pn(e),r=e===t?Sn(e):Cy(n/Pn(t))/Cy(jy(t)/jy(e)),i=n*cx(jy(e),r)/r;if(!r)return Qy;function a(o,s){i>0?s<-Ai+Fn&&(s=-Ai+Fn):s>Ai-Fn&&(s=Ai-Fn);var u=i/cx(jy(s),r);return[u*Sn(r*o),i-u*Pn(r*o)]}return a.invert=function(o,s){var u=i-s,c=xs(r)*Mo(o*o+u*u),A=hc(o,yr(u))*xs(u);return u*r<0&&(A-=Yn*xs(o)*xs(u)),[A/r,2*zh(cx(i/c,1/r))-Ai]},a}function exe(){return Ox($Be).scale(109.5).parallels([30,30])}function Vy(e,t){return[e,t]}Vy.invert=Vy;function txe(){return xA(Vy).scale(152.63)}function nxe(e,t){var n=Pn(e),r=e===t?Sn(e):(n-Pn(t))/(t-e),i=n/r+e;if(yr(r)<Fn)return Vy;function a(o,s){var u=i-s,c=r*o;return[u*Sn(c),i-u*Pn(c)]}return a.invert=function(o,s){var u=i-s,c=hc(o,yr(u))*xs(u);return u*r<0&&(c-=Yn*xs(o)*xs(u)),[c/r,i-xs(r)*Mo(o*o+u*u)]},a}function rxe(){return Ox(nxe).scale(131.154).center([0,13.9389])}var wg=1.340264,Bg=-.081106,xg=893e-6,Cg=.003796,zy=Mo(3)/2,ixe=12;function BI(e,t){var n=Cs(zy*Sn(t)),r=n*n,i=r*r*r;return[e*Pn(n)/(zy*(wg+3*Bg*r+i*(7*xg+9*Cg*r))),n*(wg+Bg*r+i*(xg+Cg*r))]}BI.invert=function(e,t){for(var n=t,r=n*n,i=r*r*r,a=0,o,s,u;a<ixe&&(s=n*(wg+Bg*r+i*(xg+Cg*r))-t,u=wg+3*Bg*r+i*(7*xg+9*Cg*r),n-=o=s/u,r=n*n,i=r*r*r,!(yr(o)<L7));++a);return[zy*e*(wg+3*Bg*r+i*(7*xg+9*Cg*r))/Pn(n),Cs(Sn(n)/zy)]};function axe(){return xA(BI).scale(177.158)}function xI(e,t){var n=Pn(t),r=Pn(e)*n;return[n*Sn(e)/r,Sn(t)/r]}xI.invert=bg(zh);function oxe(){return xA(xI).scale(144.049).clipAngle(60)}function CI(e,t){return[Pn(t)*Sn(e),Sn(t)]}CI.invert=bg(Cs);function sxe(){return xA(CI).scale(249.5).clipAngle(90+Fn)}function SI(e,t){var n=Pn(t),r=1+Pn(e)*n;return[n*Sn(e)/r,Sn(t)/r]}SI.invert=bg(function(e){return 2*zh(e)});function lxe(){return xA(SI).scale(250).clipAngle(142)}function kI(e,t){return[Cy(Ax((Ai+t)/2)),-e]}kI.invert=function(e,t){return[-t,2*zh(N7(e))-Ai]};function uxe(){var e=wI(kI),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 vu(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Sg(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 Ix=Symbol("implicit");function Dx(){var e=new tg,t=[],n=[],r=Ix;function i(a){let o=e.get(a);if(o===void 0){if(r!==Ix)return r;e.set(a,o=t.push(a)-1)}return n[o%n.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new tg;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(n=Array.from(a),i):n.slice()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return Dx(t,n).unknown(r)},vu.apply(i,arguments),i}function CA(){var e=Dx().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,s=!1,u=0,c=0,A=.5;delete e.unknown;function f(){var h=t().length,d=i<r,m=d?i:r,p=d?r:i;a=(p-m)/Math.max(1,h-u+c*2),s&&(a=Math.floor(a)),m+=(p-m-a*(h-u))*A,o=a*(1-u),s&&(m=Math.round(m),o=Math.round(o));var g=wB(h).map(function(y){return m+a*y});return n(d?g.reverse():g)}return e.domain=function(h){return arguments.length?(t(h),f()):t()},e.range=function(h){return arguments.length?([r,i]=h,r=+r,i=+i,f()):[r,i]},e.rangeRound=function(h){return[r,i]=h,r=+r,i=+i,s=!0,f()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(h){return arguments.length?(s=!!h,f()):s},e.padding=function(h){return arguments.length?(u=Math.min(1,c=+h),f()):u},e.paddingInner=function(h){return arguments.length?(u=Math.min(1,h),f()):u},e.paddingOuter=function(h){return arguments.length?(c=+h,f()):c},e.align=function(h){return arguments.length?(A=Math.max(0,Math.min(1,h)),f()):A},e.copy=function(){return CA(t(),[r,i]).round(s).paddingInner(u).paddingOuter(c).align(A)},vu.apply(f(),arguments)}function MI(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return MI(t())},e}function cxe(){return MI(CA.apply(null,arguments).paddingInner(1))}function Axe(e){return function(){return e}}function Ux(e){return+e}var EI=[0,1];function Eo(e){return e}function Px(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Axe(isNaN(t)?NaN:.5)}function dxe(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function fxe(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=Px(i,r),a=n(o,a)):(r=Px(r,i),a=n(a,o)),function(s){return a(r(s))}}function hxe(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),a=new Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=Px(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(s){var u=V1(e,s,1,r)-1;return a[u](i[u](s))}}function kg(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function qy(){var e=EI,t=EI,n=hu,r,i,a,o=Eo,s,u,c;function A(){var h=Math.min(e.length,t.length);return o!==Eo&&(o=dxe(e[0],e[h-1])),s=h>2?hxe:fxe,u=c=null,f}function f(h){return h==null||isNaN(h=+h)?a:(u||(u=s(e.map(r),t,n)))(r(o(h)))}return f.invert=function(h){return o(i((c||(c=s(t,e.map(r),Ya)))(h)))},f.domain=function(h){return arguments.length?(e=Array.from(h,Ux),A()):e.slice()},f.range=function(h){return arguments.length?(t=Array.from(h),A()):t.slice()},f.rangeRound=function(h){return t=Array.from(h),n=dy,A()},f.clamp=function(h){return arguments.length?(o=h?!0:Eo,A()):o!==Eo},f.interpolate=function(h){return arguments.length?(n=h,A()):n},f.unknown=function(h){return arguments.length?(a=h,f):a},function(h,d){return r=h,i=d,A()}}function LI(){return qy()(Eo,Eo)}function pxe(e,t,n,r){var i=_B(e,t,n),a;switch(r=fg(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=gBe(i,o))&&(r.precision=a),E7(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=vBe(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=mBe(i))&&(r.precision=a-(r.type==="%")*2);break}}return Bs(r)}function Wh(e){var t=e.domain;return e.ticks=function(n){var r=t();return Jd(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return pxe(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],u,c,A=10;for(s<o&&(c=o,o=s,s=c,c=i,i=a,a=c);A-- >0;){if(c=X1(o,s,n),c===u)return r[i]=o,r[a]=s,t(r);if(c>0)o=Math.floor(o/c)*c,s=Math.ceil(s/c)*c;else if(c<0)o=Math.ceil(o*c)/c,s=Math.floor(s*c)/c;else break;u=c}return e},e}function Ms(){var e=LI();return e.copy=function(){return kg(e,Ms())},vu.apply(e,arguments),Wh(e)}function TI(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,Ux),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return TI(e).unknown(t)},e=arguments.length?Array.from(e,Ux):[0,1],Wh(n)}function NI(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a<i&&(o=n,n=r,r=o,o=i,i=a,a=o),e[n]=t.floor(i),e[r]=t.ceil(a),e}function FI(e){return Math.log(e)}function OI(e){return Math.exp(e)}function mxe(e){return-Math.log(-e)}function gxe(e){return-Math.exp(-e)}function vxe(e){return isFinite(e)?+("1e"+e):e<0?0:e}function yxe(e){return e===10?vxe:e===Math.E?Math.exp:t=>Math.pow(e,t)}function _xe(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 II(e){return(t,n)=>-e(-t,n)}function DI(e){const t=e(FI,OI),n=t.domain;let r=10,i,a;function o(){return i=_xe(r),a=yxe(r),n()[0]<0?(i=II(i),a=II(a),e(mxe,gxe)):e(FI,OI),t}return t.base=function(s){return arguments.length?(r=+s,o()):r},t.domain=function(s){return arguments.length?(n(s),o()):n()},t.ticks=s=>{const u=n();let c=u[0],A=u[u.length-1];const f=A<c;f&&([c,A]=[A,c]);let h=i(c),d=i(A),m,p;const g=s==null?10:+s;let y=[];if(!(r%1)&&d-h<g){if(h=Math.floor(h),d=Math.ceil(d),c>0){for(;h<=d;++h)for(m=1;m<r;++m)if(p=h<0?m/a(-h):m*a(h),!(p<c)){if(p>A)break;y.push(p)}}else for(;h<=d;++h)for(m=r-1;m>=1;--m)if(p=h>0?m/a(-h):m*a(h),!(p<c)){if(p>A)break;y.push(p)}y.length*2<g&&(y=Jd(c,A,g))}else y=Jd(h,d,Math.min(d-h,g)).map(a);return f?y.reverse():y},t.tickFormat=(s,u)=>{if(s==null&&(s=10),u==null&&(u=r===10?"s":","),typeof u!="function"&&(!(r%1)&&(u=fg(u)).precision==null&&(u.trim=!0),u=Bs(u)),s===1/0)return u;const c=Math.max(1,r*s/t.ticks().length);return A=>{let f=A/a(Math.round(i(A)));return f*r<r-.5&&(f*=r),f<=c?u(A):""}},t.nice=()=>n(NI(n(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function UI(){const e=DI(qy()).domain([1,10]);return e.copy=()=>kg(e,UI()).base(e.base()),vu.apply(e,arguments),e}function PI(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function HI(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function YI(e){var t=1,n=e(PI(t),HI(t));return n.constant=function(r){return arguments.length?e(PI(t=+r),HI(t)):t},Wh(n)}function RI(){var e=YI(qy());return e.copy=function(){return kg(e,RI()).constant(e.constant())},vu.apply(e,arguments)}function QI(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function bxe(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function wxe(e){return e<0?-e*e:e*e}function jI(e){var t=e(Eo,Eo),n=1;function r(){return n===1?e(Eo,Eo):n===.5?e(bxe,wxe):e(QI(n),QI(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},Wh(t)}function VI(){var e=jI(qy());return e.copy=function(){return kg(e,VI()).exponent(e.exponent())},vu.apply(e,arguments),e}function zI(){var e=[],t=[],n=[],r;function i(){var o=0,s=Math.max(1,t.length);for(n=new Array(s-1);++o<s;)n[o-1]=abe(e,o/s);return a}function a(o){return o==null||isNaN(o=+o)?r:t[V1(n,o)]}return a.invertExtent=function(o){var s=t.indexOf(o);return s<0?[NaN,NaN]:[s>0?n[s-1]:e[0],s<n.length?n[s]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let s of o)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(bA),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(r=o,a):r},a.quantiles=function(){return n.slice()},a.copy=function(){return zI().domain(e).range(t).unknown(r)},vu.apply(a,arguments)}function qI(){var e=[.5],t=[0,1],n,r=1;function i(a){return a!=null&&a<=a?t[V1(e,a,0,r)]:n}return i.domain=function(a){return arguments.length?(e=Array.from(a),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return qI().domain(e).range(t).unknown(n)},vu.apply(i,arguments)}const Hx=new Date,Yx=new Date;function Wi(e,t,n,r){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,s)=>{const u=[];if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return u;let c;do u.push(c=new Date(+a)),t(a,s),e(a);while(c<a&&a<o);return u},i.filter=a=>Wi(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),n&&(i.count=(a,o)=>(Hx.setTime(+a),Yx.setTime(+o),e(Hx),e(Yx),Math.floor(n(Hx,Yx))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?o=>r(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const Ky=Wi(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Ky.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Wi(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Ky),Ky.range;const mc=1e3,Es=mc*60,gc=Es*60,vc=gc*24,Rx=vc*7,KI=vc*30,Qx=vc*365,Al=Wi(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*mc)},(e,t)=>(t-e)/mc,e=>e.getUTCSeconds());Al.range;const Mg=Wi(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*mc)},(e,t)=>{e.setTime(+e+t*Es)},(e,t)=>(t-e)/Es,e=>e.getMinutes());Mg.range;const Eg=Wi(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Es)},(e,t)=>(t-e)/Es,e=>e.getUTCMinutes());Eg.range;const Lg=Wi(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*mc-e.getMinutes()*Es)},(e,t)=>{e.setTime(+e+t*gc)},(e,t)=>(t-e)/gc,e=>e.getHours());Lg.range;const Tg=Wi(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*gc)},(e,t)=>(t-e)/gc,e=>e.getUTCHours());Tg.range;const Af=Wi(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Es)/vc,e=>e.getDate()-1);Af.range;const Gy=Wi(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/vc,e=>e.getUTCDate()-1);Gy.range;const Wy=Wi(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/vc,e=>Math.floor(e/vc));Wy.range;function df(e){return Wi(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())*Es)/Rx)}const Xh=df(0),Ng=df(1),GI=df(2),WI=df(3),ff=df(4),XI=df(5),JI=df(6);Xh.range,Ng.range,GI.range,WI.range,ff.range,XI.range,JI.range;function hf(e){return Wi(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)/Rx)}const Jh=hf(0),Fg=hf(1),ZI=hf(2),$I=hf(3),pf=hf(4),eD=hf(5),tD=hf(6);Jh.range,Fg.range,ZI.range,$I.range,pf.range,eD.range,tD.range;const Og=Wi(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());Og.range;const Ig=Wi(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());Ig.range;const dl=Wi(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());dl.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Wi(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)}),dl.range;const fl=Wi(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());fl.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Wi(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)}),fl.range;function nD(e,t,n,r,i,a){const o=[[Al,1,mc],[Al,5,5*mc],[Al,15,15*mc],[Al,30,30*mc],[a,1,Es],[a,5,5*Es],[a,15,15*Es],[a,30,30*Es],[i,1,gc],[i,3,3*gc],[i,6,6*gc],[i,12,12*gc],[r,1,vc],[r,2,2*vc],[n,1,Rx],[t,1,KI],[t,3,3*KI],[e,1,Qx]];function s(c,A,f){const h=A<c;h&&([c,A]=[A,c]);const d=f&&typeof f.range=="function"?f:u(c,A,f),m=d?d.range(c,+A+1):[];return h?m.reverse():m}function u(c,A,f){const h=Math.abs(A-c)/f,d=j1(([,,g])=>g).right(o,h);if(d===o.length)return e.every(_B(c/Qx,A/Qx,f));if(d===0)return Ky.every(Math.max(_B(c,A,f),1));const[m,p]=o[h/o[d-1][2]<o[d][2]/h?d-1:d];return m.every(p)}return[s,u]}const[Bxe,rD]=nD(fl,Ig,Jh,Wy,Tg,Eg),[xxe,Cxe]=nD(dl,Og,Xh,Af,Lg,Mg);function jx(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 Vx(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 Dg(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Sxe(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,u=e.shortMonths,c=Ug(i),A=Pg(i),f=Ug(a),h=Pg(a),d=Ug(o),m=Pg(o),p=Ug(s),g=Pg(s),y=Ug(u),v=Pg(u),_={a:q,A:z,b:J,B:ie,c:null,d:uD,e:uD,f:Wxe,g:aCe,G:sCe,H:qxe,I:Kxe,j:Gxe,L:cD,m:Xxe,M:Jxe,p:X,q:D,Q:mD,s:gD,S:Zxe,u:$xe,U:eCe,V:tCe,w:nCe,W:rCe,x:null,X:null,y:iCe,Y:oCe,Z:lCe,"%":pD},b={a:W,A:ee,b:ne,B:he,c:null,d:dD,e:dD,f:dCe,g:wCe,G:xCe,H:uCe,I:cCe,j:ACe,L:fD,m:fCe,M:hCe,p:pe,q:ve,Q:mD,s:gD,S:pCe,u:mCe,U:gCe,V:vCe,w:yCe,W:_Ce,x:null,X:null,y:bCe,Y:BCe,Z:CCe,"%":pD},w={a:H,A:S,b:F,B:I,c:E,d:sD,e:sD,f:Qxe,g:oD,G:aD,H:lD,I:lD,j:Pxe,L:Rxe,m:Uxe,M:Hxe,p:N,q:Dxe,Q:Vxe,s:zxe,S:Yxe,u:Txe,U:Nxe,V:Fxe,w:Lxe,W:Oxe,x:P,X:K,y:oD,Y:aD,Z:Ixe,"%":jxe};_.x=M(n,_),_.X=M(r,_),_.c=M(t,_),b.x=M(n,b),b.X=M(r,b),b.c=M(t,b);function M(ue,_e){return function(Le){var Me=[],Pe=-1,Q=0,te=ue.length,ce,$,Z;for(Le instanceof Date||(Le=new Date(+Le));++Pe<te;)ue.charCodeAt(Pe)===37&&(Me.push(ue.slice(Q,Pe)),($=iD[ce=ue.charAt(++Pe)])!=null?ce=ue.charAt(++Pe):$=ce==="e"?" ":"0",(Z=_e[ce])&&(ce=Z(Le,$)),Me.push(ce),Q=Pe+1);return Me.push(ue.slice(Q,Pe)),Me.join("")}}function x(ue,_e){return function(Le){var Me=Dg(1900,void 0,1),Pe=L(Me,ue,Le+="",0),Q,te;if(Pe!=Le.length)return null;if("Q"in Me)return new Date(Me.Q);if("s"in Me)return new Date(Me.s*1e3+("L"in Me?Me.L:0));if(_e&&!("Z"in Me)&&(Me.Z=0),"p"in Me&&(Me.H=Me.H%12+Me.p*12),Me.m===void 0&&(Me.m="q"in Me?Me.q:0),"V"in Me){if(Me.V<1||Me.V>53)return null;"w"in Me||(Me.w=1),"Z"in Me?(Q=Vx(Dg(Me.y,0,1)),te=Q.getUTCDay(),Q=te>4||te===0?Fg.ceil(Q):Fg(Q),Q=Gy.offset(Q,(Me.V-1)*7),Me.y=Q.getUTCFullYear(),Me.m=Q.getUTCMonth(),Me.d=Q.getUTCDate()+(Me.w+6)%7):(Q=jx(Dg(Me.y,0,1)),te=Q.getDay(),Q=te>4||te===0?Ng.ceil(Q):Ng(Q),Q=Af.offset(Q,(Me.V-1)*7),Me.y=Q.getFullYear(),Me.m=Q.getMonth(),Me.d=Q.getDate()+(Me.w+6)%7)}else("W"in Me||"U"in Me)&&("w"in Me||(Me.w="u"in Me?Me.u%7:"W"in Me?1:0),te="Z"in Me?Vx(Dg(Me.y,0,1)).getUTCDay():jx(Dg(Me.y,0,1)).getDay(),Me.m=0,Me.d="W"in Me?(Me.w+6)%7+Me.W*7-(te+5)%7:Me.w+Me.U*7-(te+6)%7);return"Z"in Me?(Me.H+=Me.Z/100|0,Me.M+=Me.Z%100,Vx(Me)):jx(Me)}}function L(ue,_e,Le,Me){for(var Pe=0,Q=_e.length,te=Le.length,ce,$;Pe<Q;){if(Me>=te)return-1;if(ce=_e.charCodeAt(Pe++),ce===37){if(ce=_e.charAt(Pe++),$=w[ce in iD?_e.charAt(Pe++):ce],!$||(Me=$(ue,Le,Me))<0)return-1}else if(ce!=Le.charCodeAt(Me++))return-1}return Me}function N(ue,_e,Le){var Me=c.exec(_e.slice(Le));return Me?(ue.p=A.get(Me[0].toLowerCase()),Le+Me[0].length):-1}function H(ue,_e,Le){var Me=d.exec(_e.slice(Le));return Me?(ue.w=m.get(Me[0].toLowerCase()),Le+Me[0].length):-1}function S(ue,_e,Le){var Me=f.exec(_e.slice(Le));return Me?(ue.w=h.get(Me[0].toLowerCase()),Le+Me[0].length):-1}function F(ue,_e,Le){var Me=y.exec(_e.slice(Le));return Me?(ue.m=v.get(Me[0].toLowerCase()),Le+Me[0].length):-1}function I(ue,_e,Le){var Me=p.exec(_e.slice(Le));return Me?(ue.m=g.get(Me[0].toLowerCase()),Le+Me[0].length):-1}function E(ue,_e,Le){return L(ue,t,_e,Le)}function P(ue,_e,Le){return L(ue,n,_e,Le)}function K(ue,_e,Le){return L(ue,r,_e,Le)}function q(ue){return o[ue.getDay()]}function z(ue){return a[ue.getDay()]}function J(ue){return u[ue.getMonth()]}function ie(ue){return s[ue.getMonth()]}function X(ue){return i[+(ue.getHours()>=12)]}function D(ue){return 1+~~(ue.getMonth()/3)}function W(ue){return o[ue.getUTCDay()]}function ee(ue){return a[ue.getUTCDay()]}function ne(ue){return u[ue.getUTCMonth()]}function he(ue){return s[ue.getUTCMonth()]}function pe(ue){return i[+(ue.getUTCHours()>=12)]}function ve(ue){return 1+~~(ue.getUTCMonth()/3)}return{format:function(ue){var _e=M(ue+="",_);return _e.toString=function(){return ue},_e},parse:function(ue){var _e=x(ue+="",!1);return _e.toString=function(){return ue},_e},utcFormat:function(ue){var _e=M(ue+="",b);return _e.toString=function(){return ue},_e},utcParse:function(ue){var _e=x(ue+="",!0);return _e.toString=function(){return ue},_e}}}var iD={"-":"",_:" ",0:"0"},ua=/^\s*\d+/,kxe=/^%/,Mxe=/[\\^$*+?|[\]().{}]/g;function ar(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(t)+i:i)}function Exe(e){return e.replace(Mxe,"\\$&")}function Ug(e){return new RegExp("^(?:"+e.map(Exe).join("|")+")","i")}function Pg(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function Lxe(e,t,n){var r=ua.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Txe(e,t,n){var r=ua.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Nxe(e,t,n){var r=ua.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Fxe(e,t,n){var r=ua.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Oxe(e,t,n){var r=ua.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function aD(e,t,n){var r=ua.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function oD(e,t,n){var r=ua.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Ixe(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 Dxe(e,t,n){var r=ua.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Uxe(e,t,n){var r=ua.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function sD(e,t,n){var r=ua.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Pxe(e,t,n){var r=ua.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function lD(e,t,n){var r=ua.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Hxe(e,t,n){var r=ua.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Yxe(e,t,n){var r=ua.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Rxe(e,t,n){var r=ua.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Qxe(e,t,n){var r=ua.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function jxe(e,t,n){var r=kxe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Vxe(e,t,n){var r=ua.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function zxe(e,t,n){var r=ua.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function uD(e,t){return ar(e.getDate(),t,2)}function qxe(e,t){return ar(e.getHours(),t,2)}function Kxe(e,t){return ar(e.getHours()%12||12,t,2)}function Gxe(e,t){return ar(1+Af.count(dl(e),e),t,3)}function cD(e,t){return ar(e.getMilliseconds(),t,3)}function Wxe(e,t){return cD(e,t)+"000"}function Xxe(e,t){return ar(e.getMonth()+1,t,2)}function Jxe(e,t){return ar(e.getMinutes(),t,2)}function Zxe(e,t){return ar(e.getSeconds(),t,2)}function $xe(e){var t=e.getDay();return t===0?7:t}function eCe(e,t){return ar(Xh.count(dl(e)-1,e),t,2)}function AD(e){var t=e.getDay();return t>=4||t===0?ff(e):ff.ceil(e)}function tCe(e,t){return e=AD(e),ar(ff.count(dl(e),e)+(dl(e).getDay()===4),t,2)}function nCe(e){return e.getDay()}function rCe(e,t){return ar(Ng.count(dl(e)-1,e),t,2)}function iCe(e,t){return ar(e.getFullYear()%100,t,2)}function aCe(e,t){return e=AD(e),ar(e.getFullYear()%100,t,2)}function oCe(e,t){return ar(e.getFullYear()%1e4,t,4)}function sCe(e,t){var n=e.getDay();return e=n>=4||n===0?ff(e):ff.ceil(e),ar(e.getFullYear()%1e4,t,4)}function lCe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ar(t/60|0,"0",2)+ar(t%60,"0",2)}function dD(e,t){return ar(e.getUTCDate(),t,2)}function uCe(e,t){return ar(e.getUTCHours(),t,2)}function cCe(e,t){return ar(e.getUTCHours()%12||12,t,2)}function ACe(e,t){return ar(1+Gy.count(fl(e),e),t,3)}function fD(e,t){return ar(e.getUTCMilliseconds(),t,3)}function dCe(e,t){return fD(e,t)+"000"}function fCe(e,t){return ar(e.getUTCMonth()+1,t,2)}function hCe(e,t){return ar(e.getUTCMinutes(),t,2)}function pCe(e,t){return ar(e.getUTCSeconds(),t,2)}function mCe(e){var t=e.getUTCDay();return t===0?7:t}function gCe(e,t){return ar(Jh.count(fl(e)-1,e),t,2)}function hD(e){var t=e.getUTCDay();return t>=4||t===0?pf(e):pf.ceil(e)}function vCe(e,t){return e=hD(e),ar(pf.count(fl(e),e)+(fl(e).getUTCDay()===4),t,2)}function yCe(e){return e.getUTCDay()}function _Ce(e,t){return ar(Fg.count(fl(e)-1,e),t,2)}function bCe(e,t){return ar(e.getUTCFullYear()%100,t,2)}function wCe(e,t){return e=hD(e),ar(e.getUTCFullYear()%100,t,2)}function BCe(e,t){return ar(e.getUTCFullYear()%1e4,t,4)}function xCe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?pf(e):pf.ceil(e),ar(e.getUTCFullYear()%1e4,t,4)}function CCe(){return"+0000"}function pD(){return"%"}function mD(e){return+e}function gD(e){return Math.floor(+e/1e3)}var Zh,zx,Hg;SCe({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 SCe(e){return Zh=Sxe(e),zx=Zh.format,Zh.parse,Hg=Zh.utcFormat,Zh.utcParse,Zh}function kCe(e){return new Date(e)}function MCe(e){return e instanceof Date?+e:+new Date(+e)}function qx(e,t,n,r,i,a,o,s,u,c){var A=LI(),f=A.invert,h=A.domain,d=c(".%L"),m=c(":%S"),p=c("%I:%M"),g=c("%I %p"),y=c("%a %d"),v=c("%b %d"),_=c("%B"),b=c("%Y");function w(M){return(u(M)<M?d:s(M)<M?m:o(M)<M?p:a(M)<M?g:r(M)<M?i(M)<M?y:v:n(M)<M?_:b)(M)}return A.invert=function(M){return new Date(f(M))},A.domain=function(M){return arguments.length?h(Array.from(M,MCe)):h().map(kCe)},A.ticks=function(M){var x=h();return e(x[0],x[x.length-1],M??10)},A.tickFormat=function(M,x){return x==null?w:c(x)},A.nice=function(M){var x=h();return(!M||typeof M.range!="function")&&(M=t(x[0],x[x.length-1],M??10)),M?h(NI(x,M)):A},A.copy=function(){return kg(A,qx(e,t,n,r,i,a,o,s,u,c))},A}function vD(){return vu.apply(qx(xxe,Cxe,dl,Og,Xh,Af,Lg,Mg,Al,zx).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function SA(){return vu.apply(qx(Bxe,rD,fl,Ig,Jh,Gy,Tg,Eg,Al,Hg).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function ECe(){var e=0,t=1,n,r,i,a,o=Eo,s=!1,u;function c(f){return f==null||isNaN(f=+f)?u:o(i===0?.5:(f=(a(f)-n)*i,s?Math.max(0,Math.min(1,f)):f))}c.domain=function(f){return arguments.length?([e,t]=f,n=a(e=+e),r=a(t=+t),i=n===r?0:1/(r-n),c):[e,t]},c.clamp=function(f){return arguments.length?(s=!!f,c):s},c.interpolator=function(f){return arguments.length?(o=f,c):o};function A(f){return function(h){var d,m;return arguments.length?([d,m]=h,o=f(d,m),c):[o(0),o(1)]}}return c.range=A(hu),c.rangeRound=A(dy),c.unknown=function(f){return arguments.length?(u=f,c):u},function(f){return a=f,n=f(e),r=f(t),i=n===r?0:1/(r-n),c}}function Yg(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function yu(){var e=Wh(ECe()(Eo));return e.copy=function(){return Yg(e,yu())},Sg.apply(e,arguments)}function Xy(){var e=0,t=.5,n=1,r=1,i,a,o,s,u,c=Eo,A,f=!1,h;function d(p){return isNaN(p=+p)?h:(p=.5+((p=+A(p))-a)*(r*p<r*a?s:u),c(f?Math.max(0,Math.min(1,p)):p))}d.domain=function(p){return arguments.length?([e,t,n]=p,i=A(e=+e),a=A(t=+t),o=A(n=+n),s=i===a?0:.5/(a-i),u=a===o?0:.5/(o-a),r=a<i?-1:1,d):[e,t,n]},d.clamp=function(p){return arguments.length?(f=!!p,d):f},d.interpolator=function(p){return arguments.length?(c=p,d):c};function m(p){return function(g){var y,v,_;return arguments.length?([y,v,_]=g,c=hy(p,[y,v,_]),d):[c(0),c(.5),c(1)]}}return d.range=m(hu),d.rangeRound=m(dy),d.unknown=function(p){return arguments.length?(h=p,d):h},function(p){return A=p,i=p(e),a=p(t),o=p(n),s=i===a?0:.5/(a-i),u=a===o?0:.5/(o-a),r=a<i?-1:1,d}}function yD(){var e=Wh(Xy()(Eo));return e.copy=function(){return Yg(e,yD())},Sg.apply(e,arguments)}function _D(){var e=DI(Xy()).domain([.1,1,10]);return e.copy=function(){return Yg(e,_D()).base(e.base())},Sg.apply(e,arguments)}function bD(){var e=YI(Xy());return e.copy=function(){return Yg(e,bD()).constant(e.constant())},Sg.apply(e,arguments)}function wD(){var e=jI(Xy());return e.copy=function(){return Yg(e,wD()).exponent(e.exponent())},Sg.apply(e,arguments)}function kn(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 LCe=kn("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),TCe=kn("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),NCe=kn("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),FCe=kn("4269d0efb118ff725c6cc5b03ca951ff8ab7a463f297bbf59c6b4e9498a0"),OCe=kn("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),ICe=kn("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),DCe=kn("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),UCe=kn("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),PCe=kn("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),HCe=kn("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),YCe=kn("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),Nr=e=>bwe(e[e.length-1]);var BD=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(kn);const xD=Nr(BD);var CD=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(kn);const SD=Nr(CD);var kD=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(kn);const MD=Nr(kD);var ED=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(kn);const LD=Nr(ED);var Kx=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(kn);const Jy=Nr(Kx);var TD=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(kn);const ND=Nr(TD);var Gx=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(kn);const Zy=Nr(Gx);var FD=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(kn);const OD=Nr(FD);var ID=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(kn);const DD=Nr(ID);var UD=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(kn);const PD=Nr(UD);var HD=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(kn);const YD=Nr(HD);var RD=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(kn);const QD=Nr(RD);var jD=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(kn);const VD=Nr(jD);var zD=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(kn);const qD=Nr(zD);var KD=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(kn);const GD=Nr(KD);var WD=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(kn);const XD=Nr(WD);var JD=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(kn);const ZD=Nr(JD);var $D=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(kn);const eU=Nr($D);var tU=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(kn);const nU=Nr(tU);var rU=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(kn);const iU=Nr(rU);var aU=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(kn);const oU=Nr(aU);var sU=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(kn);const $y=Nr(sU);var lU=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(kn);const e_=Nr(lU);var uU=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(kn);const Rg=Nr(uU);var cU=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(kn);const AU=Nr(cU);var dU=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(kn);const Wx=Nr(dU);var fU=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(kn);const Xx=Nr(fU);function hU(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 pU=KB(fu(300,.5,0),fu(-240,.5,1));var mU=KB(fu(-100,.75,.35),fu(80,1.5,.8)),gU=KB(fu(260,.75,.35),fu(80,1.5,.8)),t_=fu();function vU(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return t_.h=360*e-100,t_.s=1.5-1.5*t,t_.l=.8-.9*t,t_+""}var n_=BA(),RCe=Math.PI/3,QCe=Math.PI*2/3;function yU(e){var t;return e=(.5-e)*Math.PI,n_.r=255*(t=Math.sin(e))*t,n_.g=255*(t=Math.sin(e+RCe))*t,n_.b=255*(t=Math.sin(e+QCe))*t,n_+""}function _U(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 r_(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const bU=r_(kn("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var wU=r_(kn("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),BU=r_(kn("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),xU=r_(kn("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function Hn(e){return function(){return e}}const CU=Math.abs,ja=Math.atan2,yc=Math.cos,jCe=Math.max,$h=Math.min,Lo=Math.sin,Kr=Math.sqrt,Va=1e-12,kA=Math.PI,i_=kA/2,MA=2*kA;function VCe(e){return e>1?0:e<-1?kA:Math.acos(e)}function SU(e){return e>=1?i_:e<=-1?-i_:Math.asin(e)}function a_(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 w7(t)}function zCe(e){return e.innerRadius}function qCe(e){return e.outerRadius}function KCe(e){return e.startAngle}function GCe(e){return e.endAngle}function WCe(e){return e&&e.padAngle}function XCe(e,t,n,r,i,a,o,s){var u=n-e,c=r-t,A=o-i,f=s-a,h=f*u-A*c;if(!(h*h<Va))return h=(A*(t-a)-f*(e-i))/h,[e+h*u,t+h*c]}function o_(e,t,n,r,i,a,o){var s=e-n,u=t-r,c=(o?a:-a)/Kr(s*s+u*u),A=c*u,f=-c*s,h=e+A,d=t+f,m=n+A,p=r+f,g=(h+m)/2,y=(d+p)/2,v=m-h,_=p-d,b=v*v+_*_,w=i-a,M=h*p-m*d,x=(_<0?-1:1)*Kr(jCe(0,w*w*b-M*M)),L=(M*_-v*x)/b,N=(-M*v-_*x)/b,H=(M*_+v*x)/b,S=(-M*v+_*x)/b,F=L-g,I=N-y,E=H-g,P=S-y;return F*F+I*I>E*E+P*P&&(L=H,N=S),{cx:L,cy:N,x01:-A,y01:-f,x11:L*(i/w-1),y11:N*(i/w-1)}}function Jx(){var e=zCe,t=qCe,n=Hn(0),r=null,i=KCe,a=GCe,o=WCe,s=null,u=a_(c);function c(){var A,f,h=+e.apply(this,arguments),d=+t.apply(this,arguments),m=i.apply(this,arguments)-i_,p=a.apply(this,arguments)-i_,g=CU(p-m),y=p>m;if(s||(s=A=u()),d<h&&(f=d,d=h,h=f),!(d>Va))s.moveTo(0,0);else if(g>MA-Va)s.moveTo(d*yc(m),d*Lo(m)),s.arc(0,0,d,m,p,!y),h>Va&&(s.moveTo(h*yc(p),h*Lo(p)),s.arc(0,0,h,p,m,y));else{var v=m,_=p,b=m,w=p,M=g,x=g,L=o.apply(this,arguments)/2,N=L>Va&&(r?+r.apply(this,arguments):Kr(h*h+d*d)),H=$h(CU(d-h)/2,+n.apply(this,arguments)),S=H,F=H,I,E;if(N>Va){var P=SU(N/h*Lo(L)),K=SU(N/d*Lo(L));(M-=P*2)>Va?(P*=y?1:-1,b+=P,w-=P):(M=0,b=w=(m+p)/2),(x-=K*2)>Va?(K*=y?1:-1,v+=K,_-=K):(x=0,v=_=(m+p)/2)}var q=d*yc(v),z=d*Lo(v),J=h*yc(w),ie=h*Lo(w);if(H>Va){var X=d*yc(_),D=d*Lo(_),W=h*yc(b),ee=h*Lo(b),ne;if(g<kA)if(ne=XCe(q,z,W,ee,X,D,J,ie)){var he=q-ne[0],pe=z-ne[1],ve=X-ne[0],ue=D-ne[1],_e=1/Lo(VCe((he*ve+pe*ue)/(Kr(he*he+pe*pe)*Kr(ve*ve+ue*ue)))/2),Le=Kr(ne[0]*ne[0]+ne[1]*ne[1]);S=$h(H,(h-Le)/(_e-1)),F=$h(H,(d-Le)/(_e+1))}else S=F=0}x>Va?F>Va?(I=o_(W,ee,q,z,d,F,y),E=o_(X,D,J,ie,d,F,y),s.moveTo(I.cx+I.x01,I.cy+I.y01),F<H?s.arc(I.cx,I.cy,F,ja(I.y01,I.x01),ja(E.y01,E.x01),!y):(s.arc(I.cx,I.cy,F,ja(I.y01,I.x01),ja(I.y11,I.x11),!y),s.arc(0,0,d,ja(I.cy+I.y11,I.cx+I.x11),ja(E.cy+E.y11,E.cx+E.x11),!y),s.arc(E.cx,E.cy,F,ja(E.y11,E.x11),ja(E.y01,E.x01),!y))):(s.moveTo(q,z),s.arc(0,0,d,v,_,!y)):s.moveTo(q,z),!(h>Va)||!(M>Va)?s.lineTo(J,ie):S>Va?(I=o_(J,ie,X,D,h,-S,y),E=o_(q,z,W,ee,h,-S,y),s.lineTo(I.cx+I.x01,I.cy+I.y01),S<H?s.arc(I.cx,I.cy,S,ja(I.y01,I.x01),ja(E.y01,E.x01),!y):(s.arc(I.cx,I.cy,S,ja(I.y01,I.x01),ja(I.y11,I.x11),!y),s.arc(0,0,h,ja(I.cy+I.y11,I.cx+I.x11),ja(E.cy+E.y11,E.cx+E.x11),y),s.arc(E.cx,E.cy,S,ja(E.y11,E.x11),ja(E.y01,E.x01),!y))):s.arc(0,0,h,w,b,y)}if(s.closePath(),A)return s=null,A+""||null}return c.centroid=function(){var A=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,f=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-kA/2;return[yc(f)*A,Lo(f)*A]},c.innerRadius=function(A){return arguments.length?(e=typeof A=="function"?A:Hn(+A),c):e},c.outerRadius=function(A){return arguments.length?(t=typeof A=="function"?A:Hn(+A),c):t},c.cornerRadius=function(A){return arguments.length?(n=typeof A=="function"?A:Hn(+A),c):n},c.padRadius=function(A){return arguments.length?(r=A==null?null:typeof A=="function"?A:Hn(+A),c):r},c.startAngle=function(A){return arguments.length?(i=typeof A=="function"?A:Hn(+A),c):i},c.endAngle=function(A){return arguments.length?(a=typeof A=="function"?A:Hn(+A),c):a},c.padAngle=function(A){return arguments.length?(o=typeof A=="function"?A:Hn(+A),c):o},c.context=function(A){return arguments.length?(s=A??null,c):s},c}var JCe=Array.prototype.slice;function s_(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function kU(e){this._context=e}kU.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 Qg(e){return new kU(e)}function Zx(e){return e[0]}function $x(e){return e[1]}function jg(e,t){var n=Hn(!0),r=null,i=Qg,a=null,o=a_(s);e=typeof e=="function"?e:e===void 0?Zx:Hn(e),t=typeof t=="function"?t:t===void 0?$x:Hn(t);function s(u){var c,A=(u=s_(u)).length,f,h=!1,d;for(r==null&&(a=i(d=o())),c=0;c<=A;++c)!(c<A&&n(f=u[c],c,u))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+e(f,c,u),+t(f,c,u));if(d)return a=null,d+""||null}return s.x=function(u){return arguments.length?(e=typeof u=="function"?u:Hn(+u),s):e},s.y=function(u){return arguments.length?(t=typeof u=="function"?u:Hn(+u),s):t},s.defined=function(u){return arguments.length?(n=typeof u=="function"?u:Hn(!!u),s):n},s.curve=function(u){return arguments.length?(i=u,r!=null&&(a=i(r)),s):i},s.context=function(u){return arguments.length?(u==null?r=a=null:a=i(r=u),s):r},s}function ZCe(e,t,n){var r=null,i=Hn(!0),a=null,o=Qg,s=null,u=a_(c);e=typeof e=="function"?e:e===void 0?Zx:Hn(+e),t=typeof t=="function"?t:Hn(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?$x:Hn(+n);function c(f){var h,d,m,p=(f=s_(f)).length,g,y=!1,v,_=new Array(p),b=new Array(p);for(a==null&&(s=o(v=u())),h=0;h<=p;++h){if(!(h<p&&i(g=f[h],h,f))===y)if(y=!y)d=h,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),m=h-1;m>=d;--m)s.point(_[m],b[m]);s.lineEnd(),s.areaEnd()}y&&(_[h]=+e(g,h,f),b[h]=+t(g,h,f),s.point(r?+r(g,h,f):_[h],n?+n(g,h,f):b[h]))}if(v)return s=null,v+""||null}function A(){return jg().defined(i).curve(o).context(a)}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:Hn(+f),r=null,c):e},c.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Hn(+f),c):e},c.x1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Hn(+f),c):r},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:Hn(+f),n=null,c):t},c.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Hn(+f),c):t},c.y1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Hn(+f),c):n},c.lineX0=c.lineY0=function(){return A().x(e).y(t)},c.lineY1=function(){return A().x(e).y(n)},c.lineX1=function(){return A().x(r).y(t)},c.defined=function(f){return arguments.length?(i=typeof f=="function"?f:Hn(!!f),c):i},c.curve=function(f){return arguments.length?(o=f,a!=null&&(s=o(a)),c):o},c.context=function(f){return arguments.length?(f==null?a=s=null:s=o(a=f),c):a},c}function $Ce(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function eSe(e){return e}function tSe(){var e=eSe,t=$Ce,n=null,r=Hn(0),i=Hn(MA),a=Hn(0);function o(s){var u,c=(s=s_(s)).length,A,f,h=0,d=new Array(c),m=new Array(c),p=+r.apply(this,arguments),g=Math.min(MA,Math.max(-MA,i.apply(this,arguments)-p)),y,v=Math.min(Math.abs(g)/c,a.apply(this,arguments)),_=v*(g<0?-1:1),b;for(u=0;u<c;++u)(b=m[d[u]=u]=+e(s[u],u,s))>0&&(h+=b);for(t!=null?d.sort(function(w,M){return t(m[w],m[M])}):n!=null&&d.sort(function(w,M){return n(s[w],s[M])}),u=0,f=h?(g-c*_)/h:0;u<c;++u,p=y)A=d[u],b=m[A],y=p+(b>0?b*f:0)+_,m[A]={data:s[A],index:u,value:b,startAngle:p,endAngle:y,padAngle:v};return m}return o.value=function(s){return arguments.length?(e=typeof s=="function"?s:Hn(+s),o):e},o.sortValues=function(s){return arguments.length?(t=s,n=null,o):t},o.sort=function(s){return arguments.length?(n=s,t=null,o):n},o.startAngle=function(s){return arguments.length?(r=typeof s=="function"?s:Hn(+s),o):r},o.endAngle=function(s){return arguments.length?(i=typeof s=="function"?s:Hn(+s),o):i},o.padAngle=function(s){return arguments.length?(a=typeof s=="function"?s:Hn(+s),o):a},o}class MU{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 EU(e){return new MU(e,!0)}function nSe(e){return new MU(e,!1)}function rSe(e){return e.source}function iSe(e){return e.target}function aSe(e){let t=rSe,n=iSe,r=Zx,i=$x,a=null,o=null,s=a_(u);function u(){let c;const A=JCe.call(arguments),f=t.apply(this,A),h=n.apply(this,A);if(a==null&&(o=e(c=s())),o.lineStart(),A[0]=f,o.point(+r.apply(this,A),+i.apply(this,A)),A[0]=h,o.point(+r.apply(this,A),+i.apply(this,A)),o.lineEnd(),c)return o=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:Hn(+c),u):r},u.y=function(c){return arguments.length?(i=typeof c=="function"?c:Hn(+c),u):i},u.context=function(c){return arguments.length?(c==null?a=o=null:o=e(a=c),u):a},u}function oSe(){return aSe(EU)}const sSe=Kr(3),LU={draw(e,t){const n=Kr(t+$h(t/28,.75))*.59436,r=n/2,i=r*sSe;e.moveTo(0,n),e.lineTo(0,-n),e.moveTo(-i,-r),e.lineTo(i,r),e.moveTo(-i,r),e.lineTo(i,-r)}},Vg={draw(e,t){const n=Kr(t/kA);e.moveTo(n,0),e.arc(0,0,n,0,MA)}},TU={draw(e,t){const n=Kr(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()}},NU=Kr(1/3),lSe=NU*2,FU={draw(e,t){const n=Kr(t/lSe),r=n*NU;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},OU={draw(e,t){const n=Kr(t)*.62625;e.moveTo(0,-n),e.lineTo(n,0),e.lineTo(0,n),e.lineTo(-n,0),e.closePath()}},IU={draw(e,t){const n=Kr(t-$h(t/7,2))*.87559;e.moveTo(-n,0),e.lineTo(n,0),e.moveTo(0,n),e.lineTo(0,-n)}},DU={draw(e,t){const n=Kr(t),r=-n/2;e.rect(r,r,n,n)}},UU={draw(e,t){const n=Kr(t)*.4431;e.moveTo(n,n),e.lineTo(n,-n),e.lineTo(-n,-n),e.lineTo(-n,n),e.closePath()}},uSe=.8908130915292852,PU=Lo(kA/10)/Lo(7*kA/10),cSe=Lo(MA/10)*PU,ASe=-yc(MA/10)*PU,HU={draw(e,t){const n=Kr(t*uSe),r=cSe*n,i=ASe*n;e.moveTo(0,-n),e.lineTo(r,i);for(let a=1;a<5;++a){const o=MA*a/5,s=yc(o),u=Lo(o);e.lineTo(u*n,-s*n),e.lineTo(s*r-u*i,u*r+s*i)}e.closePath()}},eC=Kr(3),YU={draw(e,t){const n=-Kr(t/(eC*3));e.moveTo(0,n*2),e.lineTo(-eC*n,-n),e.lineTo(eC*n,-n),e.closePath()}},dSe=Kr(3),RU={draw(e,t){const n=Kr(t)*.6824,r=n/2,i=n*dSe/2;e.moveTo(0,-n),e.lineTo(i,r),e.lineTo(-i,r),e.closePath()}},Ls=-.5,Ts=Kr(3)/2,tC=1/Kr(12),fSe=(tC/2+1)*3,QU={draw(e,t){const n=Kr(t/fSe),r=n/2,i=n*tC,a=r,o=n*tC+n,s=-a,u=o;e.moveTo(r,i),e.lineTo(a,o),e.lineTo(s,u),e.lineTo(Ls*r-Ts*i,Ts*r+Ls*i),e.lineTo(Ls*a-Ts*o,Ts*a+Ls*o),e.lineTo(Ls*s-Ts*u,Ts*s+Ls*u),e.lineTo(Ls*r+Ts*i,Ls*i-Ts*r),e.lineTo(Ls*a+Ts*o,Ls*o-Ts*a),e.lineTo(Ls*s+Ts*u,Ls*u-Ts*s),e.closePath()}},jU={draw(e,t){const n=Kr(t-$h(t/6,1.7))*.6189;e.moveTo(-n,-n),e.lineTo(n,n),e.moveTo(-n,n),e.lineTo(n,-n)}},hSe=[Vg,TU,FU,DU,HU,YU,QU],pSe=[Vg,IU,jU,RU,LU,UU,OU];function EA(){}function l_(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 u_(e){this._context=e}u_.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:l_(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:l_(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function mSe(e){return new u_(e)}function VU(e){this._context=e}VU.prototype={areaStart:EA,areaEnd:EA,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:l_(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function gSe(e){return new VU(e)}function zU(e){this._context=e}zU.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:l_(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function vSe(e){return new zU(e)}function qU(e,t){this._basis=new u_(e),this._beta=t}qU.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],i=t[0],a=e[n]-r,o=t[n]-i,s=-1,u;++s<=n;)u=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+u*a),this._beta*t[s]+(1-this._beta)*(i+u*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const ySe=function e(t){function n(r){return t===1?new u_(r):new qU(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function c_(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 nC(e,t){this._context=e,this._k=(1-t)/6}nC.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:c_(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:c_(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 _Se=function e(t){function n(r){return new nC(r,t)}return n.tension=function(r){return e(+r)},n}(0);function rC(e,t){this._context=e,this._k=(1-t)/6}rC.prototype={areaStart:EA,areaEnd:EA,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:c_(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 bSe=function e(t){function n(r){return new rC(r,t)}return n.tension=function(r){return e(+r)},n}(0);function iC(e,t){this._context=e,this._k=(1-t)/6}iC.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:c_(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 wSe=function e(t){function n(r){return new iC(r,t)}return n.tension=function(r){return e(+r)},n}(0);function aC(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>Va){var s=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*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>Va){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,A=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*c+e._x1*e._l23_2a-t*e._l12_2a)/A,o=(o*c+e._y1*e._l23_2a-n*e._l12_2a)/A}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function KU(e,t){this._context=e,this._alpha=t}KU.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:aC(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 BSe=function e(t){function n(r){return t?new KU(r,t):new nC(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function GU(e,t){this._context=e,this._alpha=t}GU.prototype={areaStart:EA,areaEnd:EA,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:aC(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 xSe=function e(t){function n(r){return t?new GU(r,t):new rC(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function WU(e,t){this._context=e,this._alpha=t}WU.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:aC(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 CSe=function e(t){function n(r){return t?new WU(r,t):new iC(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function XU(e){this._context=e}XU.prototype={areaStart:EA,areaEnd:EA,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 SSe(e){return new XU(e)}function JU(e){return e<0?-1:1}function ZU(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(JU(a)+JU(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function $U(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function oC(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function A_(e){this._context=e}A_.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:oC(this,this._t0,$U(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,oC(this,$U(this,n=ZU(this,e,t)),n);break;default:oC(this,this._t0,n=ZU(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function eP(e){this._context=new tP(e)}(eP.prototype=Object.create(A_.prototype)).point=function(e,t){A_.prototype.point.call(this,t,e)};function tP(e){this._context=e}tP.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,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function kSe(e){return new A_(e)}function MSe(e){return new eP(e)}function nP(e){this._context=e}nP.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=rP(e),i=rP(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o]);(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 rP(e){var t,n=e.length-1,r,i=new Array(n),a=new Array(n),o=new Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function ESe(e){return new nP(e)}function d_(e,t){this._context=e,this._t=t}d_.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 LSe(e){return new d_(e,.5)}function TSe(e){return new d_(e,0)}function NSe(e){return new d_(e,1)}function iP(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,s=a.length;n<o;++n)for(i=a,a=e[t[n]],r=0;r<s;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function aP(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function FSe(e,t){return e[t]}function OSe(e){const t=[];return t.key=e,t}function oP(){var e=Hn([]),t=aP,n=iP,r=FSe;function i(a){var o=Array.from(e.apply(this,arguments),OSe),s,u=o.length,c=-1,A;for(const f of a)for(s=0,++c;s<u;++s)(o[s][c]=[0,+r(f,o[s].key,c,a)]).data=f;for(s=0,A=s_(t(o));s<u;++s)o[A[s]].index=s;return n(o,A),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:Hn(Array.from(a)),i):e},i.value=function(a){return arguments.length?(r=typeof a=="function"?a:Hn(+a),i):r},i.order=function(a){return arguments.length?(t=a==null?aP:typeof a=="function"?a:Hn(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(n=a??iP,i):n},i}function zg(e,t,n){this.k=e,this.x=t,this.y=n}zg.prototype={constructor:zg,scale:function(e){return e===1?this:new zg(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new zg(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+")"}},zg.prototype;const fi={light:{canvas:"#ececee",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"}},LA={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:yu($y),input:yu(e_),output:yu(e_),drop:yu(Xx),abort:yu(Rg),compressed:yu(Rg),error:yu(Wx),ignored:yu(Rg),buffer:yu($y)}},sC={light:{ingressdata:"#007D11",egresstootherregion:"#ef9b20",egresstointernet:"#27aeef"},dark:{ingressdata:"#03FC1C",egresstootherregion:"#ef9b20",egresstointernet:"#27aeef"}},Gn=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf","#1c9099","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],f_={light:{Average:"#ff7f0e",Upper_Bound:"#2ca02c",Lower_Bound:"#e377c2",Alert:"#27aeef"},dark:{Average:"#ff7f0e",Upper_Bound:"#2ca02c",Lower_Bound:"#e377c2",Alert:"#27aeef"}},ISe={green:["#3FA83F","#93CE07","#43B446","#73B142","#259940","#00695C","#3ec995"],compute15:DSe("#b50101","#7f7f7f",15)};function sP(e){return e<0?"00":e<16?"0"+e.toString(16):e.toString(16)}function lC(e,t,n,r){return e>t?sP(Math.floor((t-e)*(n/r))+e):sP(Math.floor((e-t)*(1-n/r))+t)}function DSe(e,t,n){e=e.replace("#",""),t=t.replace("#","");const r=parseInt(e.substring(0,2),16),i=parseInt(e.substring(2,4),16),a=parseInt(e.substring(4,6),16),o=parseInt(t.substring(0,2),16),s=parseInt(t.substring(2,4),16),u=parseInt(t.substring(4,6),16),c=[];for(let A=0;A<=n;A++){let f="#";const h=lC(r,o,A,n),d=lC(i,s,A,n),m=lC(a,u,A,n);f=f+h+d+m,c.push(f)}return c}function USe(e,t){const n=ISe[e];return n[t%n.length]}function PSe(e,t){let n=0;for(let r=0;r<t.length;r++)n+=t.charCodeAt(r);return USe(e,n)}const mf=e=>`$${e.toFixed(2)}`,Zr=e=>{const t=["","K","M","G","T","P"];let n=0;const r=e>=0;let i=Math.abs(e);if(i<1e3)return i;for(;i>=1e3&&n<t.length-1;)i/=1e3,++n;return r?`${i.toFixed(1)} ${t[n]}`:`-${i.toFixed(1)} ${t[n]}`},$r=e=>{const t=["","Ki","Mi","Gi","Ti","Pi"];let n=0;const r=e>=0;let i=Math.abs(e);if(i<1024)return i===1e3?1e3:i.toPrecision(3);for(;i>=1024&&n<t.length-1;)i/=1024,++n;return r?`${i.toFixed(1)} ${t[n]}`:`-${i.toFixed(1)} ${t[n]}`},lP=e=>e>6e4?e>36e5?e>864e5?Math.floor(e/864e5)+" days":Math.floor(e/36e5)+" hrs":Math.floor(e/6e4)+" mins":e+" ms",uP=e=>{const t=["s","mins","hrs","days"];let n=e,r="";if(n>=86400){const i=Math.floor(n/86400);n%=86400,r+=`${i} ${t[3]} `}if(n>=3600){const i=Math.floor(n/3600);n%=3600,r+=`${i} ${t[2]} `}if(n>=60){const i=Math.floor(n/60);n%=60,r+=`${i} ${t[1]} `}return`${r}${n} ${t[0]}`},HSe={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=zt("#"+this.id).append("svg").attr("width",this.width).attr("height",this.height)},createChart(e){let t=[];e.series.forEach((h,d)=>{t.push({...h,index:d})});const n=this.width,r=this.height,i=20,a=15,o=30,s=50,u=[],c=(h,d)=>{const m=new Date(d.slots).toUTCString(),p=this.unit==="Bytes (B)"?$r(d.values)+"B":this.unit==="Percent (%)"?d.values.toFixed(2)+"%":Zr(d.values),g=d.action?`${d.action}<br>Time: ${m}<br>Value: ${p}`:`Alert<br>Time: ${m}<br>Value: ${p}`;h.target.r.baseVal.value=5,zt("#"+this.id+"tooltip").html(g).style("opacity",1).style("left",h.layerX+"px").style("top",h.layerY+"px")},A=(h,d)=>{h.target.r.baseVal.value=3,zt("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")};(()=>{const h=t.filter(_=>!u.includes(_.index)),d=this.getAxisLargest(h),m=SA(xi(d[0]),[s,n-a]),p=Ms([0,d[1]],[r-o,i]),g=this.svg.append("g").attr("class",this.id+"xaxis").attr("transform",`translate(0,${r-o})`).call(ko(m).ticks(n/80).tickSizeOuter(0));if(this.svg.append("g").attr("class",this.id+"yaxis").attr("transform",`translate(${s},0)`).call(Zd(p).ticks(r/40).tickFormat(_=>this.unit==="Bytes (B)"?$r(_):Zr(_))).call(_=>_.select(".domain").remove()).call(_=>_.selectAll(".tick line").clone().attr("x2",n-s-a).attr("stroke-opacity",.1)).call(_=>_.append("text").attr("x",-s).attr("y",10).attr("fill","currentColor").attr("text-anchor","start").text(this.unit)),this.pannable){let b=function(){_=null},_;const w=(x,L)=>{const N=x.selection;if(N)m.domain([m.invert(N[0]),m.invert(N[1])]),this.svg.select("."+this.id+"brush").call(M.move,null);else{if(!_)return _=setTimeout(b,500);m.domain(xi(e.slots))}g.transition().duration(1e3).call(ko(m)),this.svg.selectAll("."+this.id+"line").attr("d",function(H){return y(H.values.map((S,F)=>({slots:e.slots[F],values:S})))}),this.svg.selectAll("."+this.id+"points").attr("cx",H=>m(H.slots))},M=iBe().extent([[0,0],[n,r]]).on("end",w);this.svg.append("g").attr("class",x=>this.id+"brush").call(M),this.svg.on("dblclick",function(){m.domain(xi(d[0],function(x){return x})),g.transition().call(ko(m)),this.svg.selectAll("."+this.id+"line").attr("d",function(x){return y(x.values.map((L,N)=>({slots:e.slots[N],values:L})))}),this.svg.selectAll("."+this.id+"points").attr("cx",x=>m(x.slots))})}const y=jg().x((_,b)=>m(_.slots)).y((_,b)=>p(_.values));this.svg.selectAll(".line").data(h).enter().append("path").attr("class",_=>this.id+_.index+"line "+this.id+"line").attr("fill","none").attr("z-index",1).style("stroke",_=>f_[this.theme][_.action]||Gn[_.index%Gn.length]).style("stroke-dasharray","3, 3").attr("stroke-width",1).attr("d",function(_){return y(_.values.map((b,w)=>({slots:e.slots[w],values:b})))}),this.svg.selectAll(".line").data([e]).enter().append("path").attr("class",this.id+"line").attr("fill","none").attr("z-index",1).style("stroke",f_[this.theme].Alert).attr("stroke-width",1.5).attr("d",function(_){return y(_.slots.map((b,w)=>({slots:b,values:_.values[w]})))});const v=e.slots.map((_,b)=>({slots:_,values:e.values[b],isAlert:e.metric.bools[b]}));this.svg.selectAll(".point").data(v).enter().append("circle").attr("class",(_,b)=>this.id+b+"points "+this.id+"points").attr("fill",Gn[3]).attr("display",_=>_.isAlert?"":"none").attr("r",3).attr("cx",_=>m(_.slots)).attr("cy",_=>p(_.values)).on("mouseover",c).on("mouseout",A)})(),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=zt("#"+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",h=>this.id+h.index+"dots").attr("class","show").attr("cx",10).attr("cy",(h,d)=>r/(t.length+2)+d*25).attr("r",5).style("fill",h=>f_[this.theme][h.action]||Gn[h.index%Gn.length]),this.legend.selectAll("legendLabels").data([...t,{action:"Alert",index:t.length}]).enter().append("text").attr("class",h=>this.id+h.index+"labels").attr("x",20).attr("y",(h,d)=>r/(t.length+2)+d*25).style("fill",h=>f_[this.theme][h.action]||Gn[h.index%Gn.length]).text(h=>h.action==="Alert"?e.action:h.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,i)=>{const a=Math.max(...r.values);a>n&&(n=a)}),[t,n]}}},YSe=["id"],RSe=["id"],QSe=["id"];function jSe(e,t,n,r,i,a){return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",{id:n.id,class:"float-left"},[l.createElementVNode("div",{id:n.id+"tooltip",role:"tooltip",class:"tooltip"},null,8,RSe)],8,YSe),l.createElementVNode("div",{class:"overflow-auto",style:l.normalizeStyle(`height: ${n.height}px; overflow: auto`)},[l.createElementVNode("div",{id:n.id+"legend"},null,8,QSe)],4)],64)}const uC=cr(HSe,[["render",jSe]]),VSe={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=zt("#"+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,i=17,a=18,o=(A,f)=>{Un("."+this.id+"run").attr("opacity","0.5"),zt("."+this.id+f.taskID).attr("opacity","1");const h=ft(f.launchTime).format("YYYY-MM-DD HH:mm:ss"),d=ft(f.completeTime).format("YYYY-MM-DD HH:mm:ss"),m=ft(f.completeTime).diff(ft(f.launchTime)),p=`Task: ${f.taskID}<br>Status: ${f.status}<br>Launch Time: ${h}<br>Complete Time: ${d}<br>Duration: ${lP(m)}`;zt("#"+this.id+"tooltip").html(p).style("opacity",1).style("left",A[this.tooltipOffset+"X"]+10+"px").style("top",A[this.tooltipOffset+"Y"]+"px")},s=(A,f)=>{Un("."+this.id+"run").attr("opacity","1"),zt("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")},u=this.runs.map(A=>ft(A.launchTime).valueOf());u.length===1&&(u.push(ft(u[0]).add(2,"minute").valueOf()),u.push(ft(u[0]).subtract(2,"minute").valueOf()));const c=vD(xi(u),[a,e-r]);this.svg.append("g").attr("class",this.id+"xaxis").attr("transform",`translate(0,${t-i})`).call(ko(c).ticks(e/80).tickSize(3).tickSizeOuter(0)),this.svg.selectAll(".rect").data(this.runs).enter().append("rect").attr("class",A=>this.id+`run ${this.id}${A.taskID}`).attr("style","cursor: pointer;").attr("z-index",1).attr("x",A=>c(ft(A.launchTime).valueOf())).attr("y",n).attr("width",A=>{const f=c(ft(A.completeTime).valueOf())-c(ft(A.launchTime).valueOf());return f>3.5?f:3.5}).attr("height",A=>t-i-n).attr("fill",A=>{const f=A.status==="completed"?"input":A.status==="aborted"?"error":"ignored";return LA[this.theme][f]}).attr("opacity",0).on("click",(A,f)=>{this.$emit("viewRun",f)}).on("mouseover",o).on("mouseout",s).transition().delay((A,f)=>1e3-f/this.runs.length*1200).duration(200).attr("opacity",1)}}},zSe=["id"],qSe=["id"];function KSe(e,t,n,r,i,a){return l.openBlock(),l.createElementBlock("div",{id:n.id},[l.createElementVNode("div",{id:n.id+"tooltip",role:"tooltip",class:"tooltip"},null,8,qSe)],8,zSe)}const GSe=cr(VSe,[["render",KSe]]),WSe={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=zt("#"+this.id).append("svg").attr("width",this.width).attr("height",this.height)},createChart(e){let t=[];e.forEach((g,y)=>{g.index=y,g.values=g.values.map(_=>isNaN(_)?0:_);const v=g.values.reduce((_,b)=>_+b,0);g.total=isNaN(v)?0:v,this.hideZeros?v>0&&t.push(g):t.push(g)}),t=t.sort((g,y)=>y.total-g.total),e=e.sort((g,y)=>y.total-g.total);const n=this.width,r=this.height,i=20,a=15,o=30,s=50,u=[],c=(g,y)=>{const v=this.isTime?new Date(y.slots).toUTCString():y.slots,_=this.unit==="Bytes (B)"||this.unit==="B"?$r(y.values)+"B":this.unit==="Percent (%)"?y.values.toFixed(2)+"%":this.unit==="$"?"$"+y.values.toFixed(2):Zr(y.values),b=y.action?`${y.action}<br>${this.isTime?"Time":this.slotName}: ${v}<br>${this.valueName}: ${_}`:`${this.isTime?"Time":this.slotName}: ${v}<br>${this.valueName}: ${_}`;g.target.r.baseVal.value=5,zt("#"+this.id+"tooltip").html(b).style("opacity",1).style("left",g[this.tooltipOffset+"X"]+10+"px").style("top",g[this.tooltipOffset+"Y"]+"px")},A=(g,y)=>{g.target.r.baseVal.value=3,zt("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")},f=(g,y)=>{const v=y.index;g.target.classList.contains("show")&&(Un("."+this.id+"line").attr("stroke-width",1),Un("."+this.id+v+"line").attr("stroke-width",2.5),Un("."+this.id+"points").attr("r",1),Un("."+this.id+v+"points").attr("r",3),Un("#"+this.id+v+"dots").attr("r",6),Un("."+this.id+v+"labels").attr("font-weight",1e3))},h=(g,y)=>{const v=y.index;Un("."+this.id+"line").attr("stroke-width",1.5),Un("."+this.id+"points").attr("r",2.5),Un("#"+this.id+v+"dots").attr("r",5),Un("."+this.id+v+"labels").attr("font-weight",500)},d=(g,y)=>{const v=y.index;g.target.classList.contains("show")?(u.push(v),g.target.classList.remove("show"),g.target.classList.add("hide"),Un("#"+this.id+v+"dots").attr("opacity","0.5")):(u.splice(u.indexOf(v),1),g.target.classList.remove("hide"),g.target.classList.add("show"),Un("#"+this.id+v+"dots").attr("opacity","1")),Un("."+this.id+"line").remove(),Un("."+this.id+"points").remove(),zt("."+this.id+"xaxis").remove(),zt("."+this.id+"yaxis").remove(),m()},m=()=>{var L;const g=t.filter(N=>!u.includes(N.index)),y=this.getAxisLargest(g),v=this.isTime?SA(xi(y[0]),[s,n-a]):CA(y[0],[s,n-a]),_=Ms([0,y[1]],[r-o,i]);this.svg.append("g").attr("class",this.id+"xaxis").attr("transform",`translate(0,${r-o})`).call(this.isTime?ko(v).ticks(n/80).tickSizeOuter(0):ko(v).ticks(n/20).tickSizeOuter(0).tickFormat(N=>{if(!this.isTime)return fA(N,(n-a)/y[0].length*8)})),this.svg.append("g").attr("class",this.id+"yaxis").attr("transform",`translate(${s},0)`).call(Zd(_).ticks(r/40).tickFormat(N=>this.unit==="Bytes (B)"||this.unit==="B"?$r(N):Zr(N))).call(N=>N.select(".domain").remove()).call(N=>N.selectAll(".tick line").clone().attr("x2",n-s-a).attr("stroke-opacity",.1)).call(N=>N.append("text").attr("x",-s).attr("y",10).attr("fill","currentColor").attr("text-anchor","start").text(this.unit));const b=jg().x((N,H)=>v(N.slots)).y((N,H)=>_(N.values)),w=this.svg.selectAll(".line").data(g).enter().append("path").attr("class",N=>this.id+N.index+"line "+this.id+"line").attr("fill","none").attr("z-index",1).attr("stroke",N=>LA[this.theme][N.action]||Gn[N.index%Gn.length]).attr("stroke-width",1.5).attr("d",function(N){return b(N.slots.map((H,S)=>({slots:H,values:N.values[S]})))}),M=((L=w.node())==null?void 0:L.getTotalLength())||0,x=1200;w.attr("stroke-dasharray",M+" "+M).attr("stroke-dashoffset",M).transition().duration(x).ease(z5e).attr("stroke-dashoffset",0);for(const N of g){const H=N.slots.map((S,F)=>({index:N.index,action:N.action,slots:S,values:N.values[F]}));this.svg.selectAll(".point").data(H).enter().append("circle").attr("class",S=>this.id+S.index+"points "+this.id+"points").attr("fill",S=>LA[this.theme][N.action]||Gn[S.index%Gn.length]).attr("r",2.5).attr("cx",S=>v(S.slots)).attr("cy",S=>_(S.values)).attr("opacity",0).on("mouseover",c).on("mouseout",A).transition().delay((S,F)=>F/H.length*x).duration(250).attr("opacity",1)}};m(),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 p=Math.max(...e.map(g=>Qhe(g.action||"(no name)")),0);this.legend=zt("#"+this.id+"legend").append("svg").attr("width",p/7+30).attr("height",Math.max(25*e.length,this.height)),this.legend.selectAll("legendDots").data(e).enter().append("circle").attr("id",g=>this.id+g.index+"dots").attr("class","show").attr("cx",10).attr("cy",(g,y)=>r/(e.length+1)+y*25+4).attr("r",5).style("fill",g=>LA[this.theme][g.action]||Gn[g.index%Gn.length]).on("mouseover",f).on("mouseout",h).on("click",d),this.legend.selectAll("legendLabels").data(e).enter().append("text").attr("class",g=>this.id+g.index+"labels").attr("x",20).attr("y",(g,y)=>r/(e.length+1)+y*25+5).style("fill",g=>LA[this.theme][g.action]||Gn[g.index%Gn.length]).text(g=>g.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,i)=>{r.slots.forEach(o=>{t.includes(o)||t.push(o)});const a=Math.max(...r.values);a>n&&(n=a)}),[t,n]}}},XSe=["id"],JSe=["id"],ZSe=["id"];function $Se(e,t,n,r,i,a){return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",{id:n.id,class:"float-left"},[l.createElementVNode("div",{id:n.id+"tooltip",role:"tooltip",class:"tooltip"},null,8,JSe)],8,XSe),n.useLegend?(l.openBlock(),l.createElementBlock("div",{key:0,style:l.normalizeStyle(`height: ${n.height}px; overflow: auto`)},[l.createElementVNode("div",{id:n.id+"legend"},null,8,ZSe)],4)):l.createCommentVNode("",!0)],64)}const qg=cr(WSe,[["render",$Se]]),e4e={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=zt("#"+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,i=15,a=30,o=50;let s=this.unit==="Percent (%)"?100:0;e.values.forEach(d=>{d>s&&(s=d)});const u=SA(xi(e.slots),[o,t-i]),c=this.title?[n-a,r+30]:[n-a,r],A=Ms([0,s],c),f=(d,m)=>{const p=new Date(m.slots).toUTCString(),g=this.unit==="Bytes (B)"||this.unit==="B"?$r(m.values)+"B":this.unit==="Percent (%)"?m.values.toFixed(2)+"%":this.unit==="Cost ($)"?mf(m.values):Zr(m.values),y=zt("#"+this.id+"tooltip").html(`${this.data.name}<br>${p}<br>${this.valueName}: ${g}`).style("opacity",1).style("top",d.layerY+"px");if(d.layerX>t*3/4){const v=y.node().getBoundingClientRect().width;y.style("left",d.layerX-v+"px")}else y.style("left",d.layerX+"px")},h=(d,m)=>{zt("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")};if(this.svg.append("g").attr("transform",`translate(0,${n-a})`).call(ko(u).ticks(t/80).tickSizeOuter(0)),this.svg.append("g").attr("transform",`translate(${o},0)`).call(Zd(A).ticks(n/40).tickFormat(d=>this.unit==="Bytes (B)"||this.unit==="B"?$r(d):this.unit==="Cost ($)"?mf(d):Zr(d))).call(d=>d.select(".domain").remove()).call(d=>d.selectAll(".tick line").clone().attr("x2",t-o-i).attr("stroke-opacity",.1)).call(d=>d.append("text").attr("x",-o).attr("y",this.title?40:10).attr("fill","currentColor").attr("text-anchor","start").text(this.unit)).call(d=>d.append("text").attr("x",-o).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 d=e.slots.map((m,p)=>({slots:m,values:e.values[p]}));this.svg.selectAll(".rect").data(d).enter().append("rect").attr("class",m=>this.id+"bar").attr("z-index",1).attr("x",m=>u(m.slots)-2).attr("y",m=>A(m.values)).attr("width",10).attr("height",m=>n-a-A(m.values)).attr("fill",Gn[0]).on("mouseover",f).on("mouseout",h)}else this.svg.append("text").attr("x",t/2).attr("y",n/2).attr("text-anchor","middle").text("No data available")}}},t4e=["id"],n4e=["id"];function r4e(e,t,n,r,i,a){return l.openBlock(),l.createElementBlock("div",{id:n.id},[l.createElementVNode("div",{id:n.id+"tooltip",role:"tooltip",class:"tooltip"},null,8,n4e)],8,t4e)}const i4e=cr(e4e,[["render",r4e]]),a4e={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=zt("#"+this.id).append("svg").attr("viewBox",`0 0 ${this.width} ${this.title?this.height+40:this.height}`):this.svg=zt("#"+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,i=5,a=5,o=10,s=e.fields.reduce((A,f,h)=>(A[h]=f||"(no name)",A),{}),u=(A,f)=>{const h=this.unit==="Bytes (B)"||this.unit==="B"?$r(f.values)+"B":this.unit==="Percent (%)"?f.values.toFixed(2)+"%":Zr(f.values);A.target.style.opacity=.4,zt("#"+this.id+"tooltip").html(`${f.field?f.field:"(no name)"}<br>${this.valueName}: ${h}`).style("opacity",1).style("left",A[this.tooltipOffset+"X"]+10+"px").style("top",A[this.tooltipOffset+"Y"]+"px")},c=(A,f)=>{A.target.style.opacity=0,zt("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")};if(e.fields&&e.fields.length>0){let A=this.unit==="Percent (%)"?100:0;e.values.forEach(p=>{p>A&&(A=p)}),A===0&&(A=1);const f=Ms([0,A],[o,t-i-o]),h=this.title?[n-a,r+30]:[n-a,r],d=CA().range(h).domain(e.fields.map((p,g)=>g)).padding(.2),m=e.fields.map((p,g)=>({field:p,values:e.values[g]||0}));this.svg.selectAll(".rect").data(m).enter().append("rect").attr("class",p=>this.id+"bar").attr("z-index",1).attr("x",p=>f(0)).attr("y",(p,g)=>d(g)).attr("width",p=>0).attr("height",d.bandwidth()).attr("fill",(p,g)=>Gn[g%Gn.length]).style("opacity",.8),this.svg.selectAll("rect").transition().duration(500).attr("x",p=>f(0)).attr("width",p=>f(p.values)-o).delay((p,g)=>g*50),this.svg.selectAll(".rect").data(m).enter().append("rect").attr("class",p=>this.id+"barEmpty").attr("z-index",1).attr("x",p=>f(0)).attr("y",(p,g)=>d(g)).attr("width",this.width-o).attr("height",d.bandwidth()).attr("fill",(p,g)=>Gn[g%Gn.length]).style("opacity",0).on("mouseover",u).on("mouseout",c),this.svg.append("g").attr("transform",`translate(0,${r})`).call(vbe(f).ticks(5).tickFormat(p=>this.unit==="Bytes (B)"||this.unit==="B"?$r(p):this.unit==="Cost ($)"?mf(p):Zr(p))),this.svg.append("g").attr("transform",`translate(${o},0)`).call(ybe(d).tickSize(0).tickFormat(p=>s[p])).call(p=>p.select(".domain").remove()).call(p=>p.append("text").attr("x",-o).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")}}},o4e=["id"],s4e=["id"];function l4e(e,t,n,r,i,a){return l.openBlock(),l.createElementBlock("div",{id:n.id},[l.createElementVNode("div",{id:n.id+"tooltip",role:"tooltip",class:"tooltip"},null,8,s4e)],8,o4e)}const cP=cr(a4e,[["render",l4e]]),u4e={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},theme:{handler(){this.svg&&this.updateTheme()},immediate:!1}},mounted(){this.initializeChart(),this.createChart(this.data)},methods:{initializeChart(){this.resizable?this.svg=zt("#"+this.id).append("svg").attr("viewBox",`0 0 ${this.width} ${this.height}`):this.svg=zt("#"+this.id).append("svg").attr("width",this.width).attr("height",this.height);const e=this.data.color?this.data.color:fi[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",fi[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,i=this.hideAxis?2:15,a=this.hideAxis?2:30,o=this.hideAxis?2:50,s=t>300?3:2,u=t>300?5:3,c=e.color?e.color:fi[this.theme][this.change];let A=this.unit==="Percent (%)"?100:0;e.values.forEach(w=>{w>A&&(A=w)});const f=SA(xi(e.slots),[o,t-i]),h=Ms([0,A],[n-a,r]),d=(w,M)=>{const x=new Date(M.slots).toUTCString(),L=this.unit==="Bytes (B)"?$r(M.values)+"B":this.unit==="Percent (%)"?M.values.toFixed(2)+"%":Zr(M.values);w.target.r.baseVal.value=u,zt("#"+this.id+"tooltip").html(`Time: ${x}<br>${this.valueName}: ${L}`).style("opacity",1).style("left",w[this.tooltipOffset+"X"]+15+"px").style("top",w[this.tooltipOffset+"Y"]+"px")},m=(w,M)=>{w.target.r.baseVal.value=s,zt("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")},p=jg().x((w,M)=>f(w.slots)).y((w,M)=>h(w.values)),g=ZCe().x((w,M)=>f(w.slots)).y0(n-a).y1((w,M)=>h(w.values)),y=this.svg,v=this;y.selectAll("g").data([e]).join(w=>_(w),w=>_(w),w=>b(w));function _(w){w.append("g").call(M=>{M.append("g").call(x=>{x.append("g").attr("id",v.id+"xaxis").attr("transform",`translate(0,${n-a})`).call(ko(f).ticks(v.hideAxis?0:t/80).tickSizeOuter(0)),x.append("g").attr("id",v.id+"yaxis").attr("transform",`translate(${o},0)`).call(Zd(h).ticks(v.hideAxis?0:n/40).tickFormat(L=>v.unit==="Bytes (B)"?$r(L):Zr(L))).call(L=>v.hideAxis?L.select(".domain").attr("stroke-width",.5):L.select(".domain").remove()).call(L=>L.selectAll(".tick line").clone().attr("x2",t-o-i).attr("stroke-opacity",.1)).call(L=>L.append("text").attr("x",-o).attr("y",10).attr("fill","currentColor").attr("text-anchor","start").text(v.hideAxis?"":v.unit))})}).call(M=>{M.append("g").call(x=>{if(x.append("path").attr("class",L=>v.id+"line").attr("z-index",1).attr("stroke",c).attr("stroke-width",1.5).attr("d",function(L){const N=L.slots.map((H,S)=>({slots:H,values:e.values[S]}));return p(N)}).attr("class","area").attr("d",function(L){const N=L.slots.map((H,S)=>({slots:H,values:e.values[S]}));return g(N)}).attr("fill","url(#gradientFill"+v.id+")"),!v.hideTooltip){const L=v.data.slots.map((N,H)=>({slots:N,values:v.data.values[H]}));x.append("g").call(N=>L.forEach(H=>{N.append("circle").attr("class",S=>v.id+"points").attr("stroke",c).attr("r",s).attr("cx",S=>f(H.slots)).attr("cy",S=>h(H.values)).on("mouseover",S=>d(S,H)).on("mouseout",S=>m(S))}))}})})}function b(w){w.call(M=>M.style("opacity",0).remove())}},updateTheme(){if(!this.svg)return;const e=this.data.color?this.data.color:fi[this.theme][this.change],t=this.svg.select("#gradientFill"+this.id);if(t.node()){const n=t.selectAll("stop");zt(n.nodes()[0]).style("stop-color",fi[this.theme].canvas),zt(n.nodes()[1]).style("stop-color",e)}}}},c4e=["id"],A4e=["id"];function d4e(e,t,n,r,i,a){return l.openBlock(),l.createElementBlock("div",{id:n.id},[l.createElementVNode("div",{id:n.id+"tooltip",role:"tooltip",class:"tooltip"},null,8,A4e)],8,c4e)}const AP=cr(u4e,[["render",d4e]]),f4e={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=zt("#"+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,i=15,a=30,o=50,s=[],u=Object.keys(this.names),c=(g,y)=>{const v=this.isTime?new Date(y.data[0]).toUTCString():y.data[0],_=y[1]-y[0],b=this.names[y.key]||y.key,w=this.unit==="Bytes (B)"?$r(_)+"B":this.unit==="Percent (%)"?_.toFixed(2)+"%":this.unit==="Cost ($)"?"$"+_.toFixed(2):Zr(_);g.target.style.opacity=.7,zt("#"+this.id+"tooltip").html(`${b}<br>${this.isTime?"Time":this.slotName}: ${v}<br>${this.valueName}: ${w}`).style("opacity",1).style("left",g[this.tooltipOffset+"X"]+10+"px").style("top",g[this.tooltipOffset+"Y"]+"px")},A=(g,y)=>{g.target.style.opacity=1,zt("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")},f=(g,y)=>{const v=u.indexOf(y.key);Un("."+this.id+"bar").style("opacity",.7),Un("."+this.id+v+"bar").style("opacity",1),Un("#"+this.id+v+"dots").attr("r",6),Un("."+this.id+v+"labels").attr("font-weight",1e3)},h=(g,y)=>{const v=u.indexOf(y.key);Un("."+this.id+"bar").style("opacity",1),Un("#"+this.id+v+"dots").attr("r",5),Un("."+this.id+v+"labels").attr("font-weight",500)},d=(g,y)=>{const v=u.indexOf(y.key);zt("."+this.id+"xaxis").remove(),zt("."+this.id+"yaxis").remove(),Un("#"+this.id+" rect").remove(),g.target.classList.contains("show")?(s.push(y.key),g.target.classList.remove("show"),g.target.classList.add("hide"),Un("#"+this.id+v+"dots").attr("opacity","0.5")):(s.splice(s.indexOf(y.key),1),g.target.classList.remove("hide"),g.target.classList.add("show"),Un("#"+this.id+v+"dots").attr("opacity","1")),m()},m=()=>{const g=e.series.filter(w=>!s.includes(w.name)),y=oP().keys(mO(g.map(w=>w.name))).value((w,M)=>w[1].get(M)===void 0?0:w[1].get(M).value)(cO(g,w=>w.slot,w=>w.name)),v=this.isTime?SA(xi(e.slots),[o,t-i]):CA(e.slots,[o,t-i]),_=this.title?[n-a,r+30]:[n-a,r],b=Ms([0,va(y,w=>va(w,M=>M[1]))],_);return this.svg.append("g").attr("transform",`translate(0,${n-a})`).attr("class",this.id+"xaxis").call(this.isTime?ko(v).ticks(t/80).tickSizeOuter(0):ko(v).ticks(t/20).tickSizeOuter(0).tickFormat(w=>{if(!this.isTime)return fA(w,(t-i)/e.slots.length*8)})),this.svg.append("g").attr("transform",`translate(${o},0)`).attr("class",this.id+"yaxis").call(Zd(b).ticks(n/40).tickFormat(w=>this.unit==="Bytes (B)"?$r(w):this.unit==="Cost ($)"?mf(w):Zr(w))).call(w=>w.select(".domain").remove()).call(w=>w.selectAll(".tick line").clone().attr("x2",t-o-i).attr("stroke-opacity",.1)).call(w=>w.append("text").attr("x",-o).attr("y",this.title?40:10).attr("fill","currentColor").attr("text-anchor","start").text(this.unit)),this.svg.append("g").selectAll().data(y).join("g").attr("fill",w=>sC[this.theme][w.key]||Gn[u.indexOf(w.key)%Gn.length]).selectAll("rect").data(w=>w.map(M=>(M.key=w.key,M))).join("rect").attr("class",w=>{const M=u.indexOf(w.key);return`${this.id}${M}bar ${this.id}bar`}).attr("x",w=>v(w.data[0])).attr("y",w=>b(w[1])).attr("height",w=>b(w[0])-b(w[1])).attr("width",this.isTime?15:Math.max(v.step()-5,15)).on("mouseover",c).on("mouseout",A),y},p=m();this.svg.append("g").call(g=>g.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=zt("#"+this.id+"legend").append("svg").attr("width",Math.max(this.width,p.length*125)).attr("height",20),this.legend.selectAll("legendDots").data(p).enter().append("circle").attr("id",g=>this.id+u.indexOf(g.key)+"dots").attr("class","show").attr("cx",(g,y)=>t/(p.length+1)+y*120-10).attr("cy",15).attr("r",5).attr("fill",(g,y)=>sC[this.theme][g.key]||Gn[y%Gn.length]).on("mouseover",f).on("mouseout",h).on("click",d),this.legend.selectAll("legendLabels").data(p).enter().append("text").attr("class",g=>this.id+u.indexOf(g.key)+"labels").attr("x",(g,y)=>t/(p.length+1)+y*120).attr("y",15).attr("fill",(g,y)=>sC[this.theme][g.key]||Gn[y%Gn.length]).text((g,y)=>fA(this.names[g[0].key],700)).attr("font-weight",500).attr("text-anchor","left").attr("font-size","11px").style("alignment-baseline","middle")}}},h4e=["id"],p4e=["id"],m4e=["id"];function g4e(e,t,n,r,i,a){return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",{id:n.id},[l.createElementVNode("div",{id:n.id+"tooltip",role:"tooltip",class:"tooltip"},null,8,p4e)],8,h4e),l.createElementVNode("div",{class:"overflow-auto",style:l.normalizeStyle(`width: ${n.width}px; overflow: auto`)},[l.createElementVNode("div",{id:n.id+"legend"},null,8,m4e)],4)],64)}const Kg=cr(f4e,[["render",g4e]]),v4e={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=zt("#"+this.id).append("svg").attr("width",this.width).attr("height",this.height)},createChart(e){const t=this.width,n=this.height,r=20,i=15,a=30,o=50,s={},u={};e.forEach(_=>{s[_.action]=_.action,u[_.instance]=_.instance});const c=[],A=Object.keys(s),f=Object.keys(u),h=[];e.forEach(_=>{_.slots.forEach((b,w)=>{h.push({slot:b,action:_.action,instance:_.instance,value:_.values[w]})})});const d=(_,b)=>{const w=this.isTime?new Date(b.data[0]).toUTCString():b.data[0],M=b[1]-b[0],x=b.key.split(":")[0],L=this.names[b.key.split(":")[1]]||b.key.split(":")[1],N=this.unit==="Bytes (B)"?$r(M)+"B":this.unit==="Percent (%)"?M.toFixed(2)+"%":this.unit==="Cost ($)"?"$"+M.toFixed(2):Zr(M);_.target.style.opacity=.7,zt("#"+this.id+"tooltip").html(`${x}<br>Instance: ${L}<br>${this.isTime?"Time":this.slotName}: ${w}<br>${this.valueName}: ${N}`).style("opacity",1).style("left",_[this.tooltipOffset+"X"]+10+"px").style("top",_[this.tooltipOffset+"Y"]+"px")},m=(_,b)=>{_.target.style.opacity=1,zt("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")},p=(_,b)=>{const w=A.indexOf(b);Un("."+this.id+"bar").style("opacity",.7),Un("."+this.id+w+"bar").style("opacity",1),Un("#"+this.id+w+"dots").attr("r",6),Un("."+this.id+w+"labels").attr("font-weight",1e3)},g=(_,b)=>{const w=A.indexOf(b);Un("."+this.id+"bar").style("opacity",1),Un("#"+this.id+w+"dots").attr("r",5),Un("."+this.id+w+"labels").attr("font-weight",500)},y=(_,b)=>{const w=A.indexOf(b);zt("."+this.id+"xaxis").remove(),zt("."+this.id+"yaxis").remove(),Un("#"+this.id+" rect").remove(),_.target.classList.contains("show")?(c.push(b),_.target.classList.remove("show"),_.target.classList.add("hide"),Un("#"+this.id+w+"dots").attr("opacity","0.5")):(c.splice(c.indexOf(b),1),_.target.classList.remove("hide"),_.target.classList.add("show"),Un("#"+this.id+w+"dots").attr("opacity","1")),v()},v=()=>{const _=h.filter(I=>!c.includes(I.action)),b=_.map(I=>I.slot).filter((I,E,P)=>P.indexOf(I)===E),w=va(b),M=Fh(b),x=(w-M)/20,L=!w||!M?null:w+x,N=this.isTime?SA(xi([...b,L]),[o,t-i]):CA(b,[o,t-i]),H=va(_,I=>I.value),S=[n-a,r];for(const I of A)if(!c.includes(I)){const E=A.indexOf(I),P=h.filter(z=>z.action===I),K=oP().keys(mO(P.map(z=>z.action+":"+z.instance))).value((z,J)=>z[1].get(J)===void 0?0:z[1].get(J).value)(cO(P,z=>z.slot,z=>z.action+":"+z.instance)),q=Ms([0,H],S);this.svg.append("g").selectAll().data(K).join("g").attr("fill",z=>LA.scale[z.key.split(":")[0]](.5*f.indexOf(z.key.split(":")[1])/f.length+.5)||Gn[A.indexOf(z.key.split(":")[0])%Gn.length]).selectAll("rect").data(z=>z.map(J=>(J.key=z.key,J))).join("rect").attr("class",z=>`${this.id}${E}bar ${this.id}bar`).attr("x",z=>N(z.data[0])+30*E/A.length).attr("y",z=>n-a).attr("width",Math.min((t-o-i)/b.length,25)/A.length).attr("height",0).attr("stroke","black").attr("stroke-width","0.5").on("mouseover",d).on("mouseout",m).transition().duration(1e3).attr("y",z=>q(z[1])).attr("height",z=>q(z[0])-q(z[1]))}const F=Ms([0,H],S);this.svg.append("g").attr("transform",`translate(0,${n-a})`).attr("class",this.id+"xaxis").call(this.isTime?ko(N).ticks(t/80).tickSizeOuter(0):ko(N).ticks(t/20).tickSizeOuter(0).tickFormat(I=>{if(!this.isTime)return fA(I,(t-i)/b.length*8)})),this.svg.append("g").attr("transform",`translate(${o},0)`).attr("class",this.id+"yaxis").call(Zd(F).ticks(n/40).tickFormat(I=>this.unit==="Bytes (B)"?$r(I):this.unit==="Cost ($)"?mf(I):Zr(I))).call(I=>I.select(".domain").remove()).call(I=>I.selectAll(".tick line").clone().attr("x2",t-o-i).attr("stroke-opacity",.1)).call(I=>I.append("text").attr("x",-o).attr("y",10).attr("fill","currentColor").attr("text-anchor","start").text(this.unit))};v(),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=zt("#"+this.id+"legend").append("svg").attr("width",Math.max(this.width,A.length*100)).attr("height",30),this.legend.selectAll("legendDots").data(A).enter().append("circle").attr("id",_=>this.id+A.indexOf(_)+"dots").attr("class","show").attr("cx",(_,b)=>t/(A.length+1)+b*100-10).attr("cy",5).attr("r",5).attr("fill",(_,b)=>LA[this.theme][_]||Gn[b%Gn.length]).on("mouseover",p).on("mouseout",g).on("click",y),this.legend.selectAll("legendLabels").data(A).enter().append("text").attr("class",_=>this.id+A.indexOf(_)+"labels").attr("x",(_,b)=>t/(A.length+1)+b*100).attr("y",5).attr("fill",(_,b)=>LA[this.theme][_]||Gn[b%Gn.length]).text((_,b)=>fA(_,700)).attr("font-weight",500).attr("text-anchor","left").attr("font-size","11px").style("alignment-baseline","middle")}}},y4e=["id"],_4e=["id"],b4e=["id"];function w4e(e,t,n,r,i,a){return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",{id:n.id},[l.createElementVNode("div",{id:n.id+"tooltip",role:"tooltip",class:"tooltip"},null,8,_4e)],8,y4e),l.createElementVNode("div",{class:"overflow-auto",style:l.normalizeStyle(`width: ${n.width}px; overflow: auto`)},[l.createElementVNode("div",{id:n.id+"legend"},null,8,b4e)],4)],64)}const B4e=cr(v4e,[["render",w4e]]),x4e={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=zt("#"+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,i={};this.data.forEach((b,w)=>{i[b.field]=w});const a=tSe().value(b=>b.values),o=Jx().innerRadius(0).outerRadius(r),s=Jx().innerRadius(r*.9).outerRadius(r*.9),u=(b,w)=>{const M=!b.target.id||b.target.id.endsWith("dots")?t/2:b[this.tooltipOffset+"Y"],x=!b.target.id||b.target.id.endsWith("dots")?0:b[this.tooltipOffset+"X"],L=i[w.data.field],N=this.unit==="Bytes (B)"||this.unit==="B"?$r(w.data.values)+"B":this.unit==="Percent (%)"?w.data.values.toFixed(2)+"%":Zr(w.data.values);Un("."+this.id+"pie").style("opacity",.4),zt("#"+this.id+L+"pie").style("opacity",1),Un("."+this.id+"labels").style("opacity",.4),zt("#"+this.id+L+"labels").style("opacity",1),zt("#"+this.id+L+"polyline").style("opacity",1),zt("#"+this.id+"tooltip").html(`${w.data.field}<br>${this.valueName}: ${N} (${((w.endAngle-w.startAngle)/(2*Math.PI)*100).toFixed(2)}%)`).style("opacity",1).style("left",x+10+"px").style("top",M+"px")},c=()=>{Un("."+this.id+"pie").style("opacity",.8),Un("."+this.id+"labels").style("opacity",1),zt("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")},A=a(this.data),f=A.reduce((b,w)=>b+w.data.values,0),h=e/t,d=h>2?h>2.5?1500:900:600,p=(b=>{const w=r<100?12:14;return b.map((M,x)=>{if(x===0)return M;if(!f){const H=b[x-1].pos[1]-M.pos[1]+w;return M.pos[1]+=H,M}const L=(b[x-1].startAngle+b[x-1].endAngle)/2,N=(M.startAngle+M.endAngle)/2;if(L<Math.PI&&N>Math.PI)return M;if(L>Math.PI&&N<Math.PI)return M;if(N>Math.PI){const H=b[x-1].pos[1]-M.pos[1]+w;H>0&&(M.pos[1]+=H)}else{const H=M.pos[1]-b[x-1].pos[1]+w;H>0&&(M.pos[1]-=H)}return M})})(A.map(b=>f?{...b,pos:s.centroid(b)}:{...b,pos:s.centroid({startAngle:2*Math.PI,endAngle:2*Math.PI})}).sort((b,w)=>w.startAngle-b.startAngle)),g=this.svg,y=this;g.selectAll("g").data(p).join(b=>v(b),b=>v(b),b=>_(b));function v(b){const w=b.append("g"),M=b.append("g");w.append("path").attr("class",y.id+"pie").attr("id",x=>y.id+i[x.data.field]+"pie").attr("transform",`translate(${e/2},${t/2+10})`).attr("d",x=>(f||(x.endAngle=Math.PI*A.length),o(x))).attr("fill",(x,L)=>f?Gn[L%Gn.length]:Gn[0]).style("opacity",.8).style("fill-opacity",0).on("mouseover",u).on("mouseout",c).transition().duration(800).attrTween("d",function(x){const L=hu(y._current,x);return y._current=L(1),N=>o(L(N))}).style("fill-opacity",1),M.append("polyline").attr("class",y.id+"labels").attr("id",x=>y.id+i[x.data.field]+"polyline").attr("points",x=>{const L=x.pos,H=(x.startAngle+x.endAngle)/2<Math.PI?r*1.1:-r*1.1;if(!f){const S=-r*1.1;return[o.centroid({startAngle:0,endAngle:0}),s.centroid({startAngle:0,endAngle:0}),[S,L[1]]]}return[o.centroid(x),s.centroid(x),[H,L[1]]]}).attr("fill","none").style("stroke",y.theme==="dark"?"white":"black").attr("transform",`translate(${e/2},${t/2})`).style("opacity",0).transition().duration(800).style("opacity",1),M.append("text").attr("class",y.id+"labels").attr("id",x=>y.id+i[x.data.field]+"labels").attr("transform",x=>{const L=x.pos;return`translate(${((x.startAngle+x.endAngle)/2<Math.PI?r*1.15:-r*1.15)+e/2},${L[1]+t/2})`}).attr("text-anchor",x=>(x.startAngle+x.endAngle)/2<Math.PI?"start":"end").attr("font-size",r<100?"9px":"11px").style("fill",y.theme==="dark"?"white":"black").text(x=>x.data.field===0?0:x.data.field?fA(x.data.field,d):"(no name)").on("mouseover",u).on("mouseout",c).style("opacity",0).transition().duration(1200).style("opacity",1)}function _(b){b.call(w=>w.style("opacity",0).remove())}}}},C4e=["id"],S4e=["id"],k4e=["id"];function M4e(e,t,n,r,i,a){return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",{id:n.id,class:"float-left"},[l.createElementVNode("div",{id:n.id+"tooltip",role:"tooltip",class:"tooltip"},null,8,S4e)],8,C4e),l.createElementVNode("div",{class:"overflow-auto",style:l.normalizeStyle(`width: ${n.width}px; overflow: auto`)},[l.createElementVNode("div",{id:n.id+"legend"},null,8,k4e)],4)],64)}const dP=cr(x4e,[["render",M4e]]),E4e={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}},watch:{theme:{handler(){this.svg&&this.createChart()},immediate:!0}},mounted(){this.initializeChart(),this.createChart()},methods:{initializeChart(){this.svg=zt("#"+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,i=Jx().innerRadius(n*.7).outerRadius(n).startAngle(0);this.svg.append("path").datum({endAngle:2*Math.PI}).attr("d",i).attr("fill",fi[this.theme].canvas).attr("transform",`translate(${e/2},${t/2})`),this.svg.append("path").datum({endAngle:0}).attr("d",i).attr("fill",fi[this.theme].secondary).attr("transform",`translate(${e/2},${t/2})`).transition().duration(1e3).call(a=>a.attrTween("d",o=>{const s=hu(0,r*2*Math.PI);return u=>(o.endAngle=s(u),i(o))})),this.svg.append("text").attr("text-anchor","middle").attr("dy","0.35em").style("font-size","35px").text("0%").style("fill",fi[this.theme].text).attr("transform",`translate(${e/2},${t/2})`).transition().duration(1e3).tween("text",function(){const a=hu(0,r*100);return function(o){this.textContent=`${Math.round(a(o))}%`}})}}},L4e=["id"];function T4e(e,t,n,r,i,a){return l.openBlock(),l.createElementBlock("div",{id:n.id,class:"float-left"},null,8,L4e)}const N4e=cr(E4e,[["render",T4e]]);function TA(e){return e!=null&&!Number.isNaN(e)}function gf(e,t){return+TA(t)-+TA(e)||bA(e,t)}function cC(e,t){return+TA(t)-+TA(e)||eg(e,t)}function AC(e){return e!=null&&`${e}`!=""}function fP(e){return isFinite(e)?e:NaN}function h_(e){return e>0&&isFinite(e)?e:NaN}function dC(e){return e<0&&isFinite(e)?e:NaN}function F4e(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(),i=e.getUTCSeconds(),a=e.getUTCMilliseconds();return`${O4e(e.getUTCFullYear())}-${_c(e.getUTCMonth()+1,2)}-${_c(e.getUTCDate(),2)}${n||r||i||a?`T${_c(n,2)}:${_c(r,2)}${i||a?`:${_c(i,2)}${a?`.${_c(a,3)}`:""}`:""}Z`:""}`}function O4e(e){return e<0?`-${_c(-e,6)}`:e>9999?`+${_c(e,6)}`:_c(e,4)}function _c(e,t){return`${e}`.padStart(t,"0")}const I4e=/^(?:[-+]\d{2})?\d{4}(?:-\d{2}(?:-\d{2})?)?(?:T\d{2}:\d{2}(?::\d{2}(?:\.\d{3})?)?(?:Z|[-+]\d{2}:?\d{2})?)?$/;function hP(e,t){return I4e.test(e+="")?new Date(e):typeof t=="function"?t(e):t}function ep(e){if(e==null)return;const t=e[0],n=e[e.length-1];return eg(t,n)}const tp=1e3,NA=tp*60,FA=NA*60,_u=FA*24,bu=_u*7,vf=_u*30,OA=_u*365,fC=[["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",tp],["5 seconds",5*tp],["15 seconds",15*tp],["30 seconds",30*tp],["minute",NA],["5 minutes",5*NA],["15 minutes",15*NA],["30 minutes",30*NA],["hour",FA],["3 hours",3*FA],["6 hours",6*FA],["12 hours",12*FA],["day",_u],["2 days",2*_u],["week",bu],["2 weeks",2*bu],["month",vf],["3 months",3*vf],["6 months",6*vf],["year",OA],["2 years",2*OA],["5 years",5*OA],["10 years",10*OA],["20 years",20*OA],["50 years",50*OA],["100 years",100*OA]],hC=new Map([["second",tp],["minute",NA],["hour",FA],["day",_u],["monday",bu],["tuesday",bu],["wednesday",bu],["thursday",bu],["friday",bu],["saturday",bu],["sunday",bu],["week",bu],["month",vf],["year",OA]]),pP=new Map([["second",Al],["minute",Mg],["hour",Lg],["day",Af],["monday",Ng],["tuesday",GI],["wednesday",WI],["thursday",ff],["friday",XI],["saturday",JI],["sunday",Xh],["week",Xh],["month",Og],["year",dl]]),pC=new Map([["second",Al],["minute",Eg],["hour",Tg],["day",Wy],["monday",Fg],["tuesday",ZI],["wednesday",$I],["thursday",pf],["friday",eD],["saturday",tD],["sunday",Jh],["week",Jh],["month",Ig],["year",fl]]),Gg=Symbol("intervalDuration"),p_=Symbol("intervalType");for(const[e,t]of pP)t[Gg]=hC.get(e),t[p_]="time";for(const[e,t]of pC)t[Gg]=hC.get(e),t[p_]="utc";const Wg=[["year",fl,"utc"],["month",Ig,"utc"],["day",Wy,"utc",6*vf],["hour",Tg,"utc",3*_u],["minute",Eg,"utc",6*FA],["second",Al,"utc",30*NA]],m_=[["year",dl,"time"],["month",Og,"time"],["day",Af,"time",6*vf],["hour",Lg,"time",3*_u],["minute",Mg,"time",6*FA],["second",Al,"time",30*NA]],D4e=[Wg[0],m_[0],Wg[1],m_[1],Wg[2],m_[2],...Wg.slice(3)];function mP(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 i=pC.get(t);if(!i)throw new Error(`unknown interval: ${e}`);if(n>1&&!i.every)throw new Error(`non-periodic interval: ${t}`);return[t,n]}function gP(e){return vP(mP(e),"time")}function mC(e){return vP(mP(e),"utc")}function vP([e,t],n){let r=(n==="time"?pP:pC).get(e);return t>1&&(r=r.every(t),r[Gg]=hC.get(e)*t,r[p_]=n),r}function yP(e,t){if(!(t>1))return;const n=e[Gg];if(!fC.some(([,i])=>i===n)||n%_u===0&&_u<n&&n<vf)return;const[r]=fC[j1(([,i])=>Math.log(i)).center(fC,Math.log(n*t))];return(e[p_]==="time"?gP:mC)(r)}function _P(e,t,n){const r=t==="time"?zx:Hg;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 i=U4e(n);switch(e){case"millisecond":return np(r(".%L"),r(":%M:%S"),i);case"second":return np(r(":%S"),r("%-I:%M"),i);case"minute":return np(r("%-I:%M"),r("%p"),i);case"hour":return np(r("%-I %p"),r("%b %-d"),i);case"day":return np(r("%-d"),r("%b"),i);case"month":return np(r("%b"),r("%Y"),i);case"year":return r("%Y")}throw new Error("unable to format time ticks")}function U4e(e){return e==="left"||e==="right"?(t,n)=>`
90
+ ft.version="2.30.1",Cge(qr),ft.fn=yt,ft.min=fve,ft.max=hve,ft.now=pve,ft.utc=su,ft.unix=j1e,ft.months=z1e,ft.isDate=Qm,ft.locale=yA,ft.invalid=w1,ft.duration=sl,ft.isMoment=al,ft.weekdays=K1e,ft.parseZone=V1e,ft.localeData=oc,ft.isDuration=D1,ft.monthsShort=q1e,ft.weekdaysMin=W1e,ft.defineLocale=iB,ft.updateLocale=V0e,ft.locales=z0e,ft.weekdaysShort=G1e,ft.normalizeUnits=bs,ft.relativeTimeRounding=wye,ft.relativeTimeThreshold=Bye,ft.calendarFormat=Yve,ft.prototype=yt,ft.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 Cye={class:"col"},Sye={__name:"DatePickerInput",props:{from:Number,to:Number},emits:["selectTime","error"],setup(e,{emit:t}){const n=e,r=t,i=l.ref(u());l.watch(()=>[n.from,n.to],([A,f])=>{const h=Array.isArray(i.value)?i.value:[],d=h.length===2?[...h]:u();let m=!1;c(A)&&(d[0]=s(A),m=!0),c(f)&&(d[1]=s(f),m=!0),m?i.value=d:o()},{immediate:!0}),l.watch(i,(A,f)=>{Array.isArray(A)&&A.length===2&&A[0]&&A[1]&&(A[0]>A[1]?r("error","Time from is greater than time to"):Array.isArray(f)&&f.length===2&&f[0]&&f[1]?(f[0]!==A[0]||f[1]!==A[1])&&r("selectTime",[ft(A[0]).valueOf(),ft(A[1]).valueOf()]):r("selectTime",[ft(A[0]).valueOf(),ft(A[1]).valueOf()]))},{deep:!0});function a(){const A=ft().valueOf();return[{label:"Last Hour",atClick:()=>[ft().subtract(1,"hours").valueOf(),A]},{label:"Last Three Hours",atClick:()=>[ft().subtract(3,"hours").valueOf(),A]},{label:"Last Six Hours",atClick:()=>[ft().subtract(6,"hours").valueOf(),A]},{label:"Last Twelve Hours",atClick:()=>[ft().subtract(12,"hours").valueOf(),A]},{label:"Last Day",atClick:()=>[ft().subtract(1,"days").valueOf(),A]},{label:"Last Three Days",atClick:()=>[ft().subtract(3,"days").valueOf(),A]},{label:"Last Week",atClick:()=>[ft().subtract(7,"days").valueOf(),A]}]}function o(){i.value=u()}function s(A){return ft(A).format("YYYY-MM-DD HH:mm:ss")}function u(){return[s(ft().subtract(1,"hours")),s(ft())]}function c(A){return typeof A=="number"&&!Number.isNaN(A)&&A>0}return(A,f)=>(l.openBlock(),l.createElementBlock("div",Cye,[l.createVNode(l.unref(b1),{shortcuts:a,modelValue:i.value,"onUpdate:modelValue":f[0]||(f[0]=h=>i.value=h)},null,8,["modelValue"])]))}},kye={key:0},Mye={key:1},Eye={key:2},Lye=l.defineComponent({__name:"TriState",props:["state"],emits:["newState"],setup(e,{emit:t}){const n=e,r=t,i=l.ref(n.state);function a(){switch(i.value){case"unchecked":i.value="checked";break;case"checked":i.value="ignored";break;default:i.value="unchecked"}r("newState",i.value)}return(o,s)=>(l.openBlock(),l.createElementBlock("div",{onClick:s[0]||(s[0]=u=>a())},[i.value==="unchecked"?(l.openBlock(),l.createElementBlock("div",kye,[l.createVNode(eu)])):l.createCommentVNode("",!0),i.value==="checked"?(l.openBlock(),l.createElementBlock("div",Mye,[l.createVNode(eu,{checked:!0})])):l.createCommentVNode("",!0),i.value==="ignored"?(l.openBlock(),l.createElementBlock("div",Eye,[l.createVNode(eu,{indeterminate:!0})])):l.createCommentVNode("",!0)]))}}),Tye={class:"text-sm font-light"},Nye={class:"flex justify-between pt-3 pb-1 relative"},Fye={class:"font-light"},Oye={class:"flex"},Iye={class:"flex justify-between py-1"},Dye={class:"flex items-center min-w-0"},Uye={class:"px-2 truncate"},Pye=l.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,i=l.ref(n.parent.show),a=l.ref(!1);function o(){return i.value<n.children.length?"std-blue-text cursor-pointer":"std-disabled-text cursor-not-allowed"}function s(){return i.value===0||n.children.length===0?"std-disabled-text cursor-not-allowed":"std-blue-text cursor-pointer"}function u(){i.value<n.children.length&&(i.value+=5)}function c(){i.value>0&&(i.value-=5)}function A(f,h,d){r("newState",f,h,d)}return(f,h)=>(l.openBlock(),l.createElementBlock("div",Tye,[l.createElementVNode("div",Nye,[l.createElementVNode("div",{class:"text-base font-normal max-w-3/4 truncate",onMouseover:h[0]||(h[0]=d=>a.value=!0),onMouseout:h[1]||(h[1]=d=>a.value=!1)},[l.createTextVNode(l.toDisplayString(e.parent.title)+" ",1),l.createElementVNode("span",Fye,"("+l.toDisplayString(e.children.length)+")",1)],32),l.createElementVNode("div",Oye,[l.createVNode(l.unref(zne),{class:l.normalizeClass(["icon-lg",o()]),onClick:h[2]||(h[2]=d=>u())},null,8,["class"]),l.createVNode(l.unref(Qne),{class:l.normalizeClass(["icon-lg",s()]),onClick:h[3]||(h[3]=d=>c())},null,8,["class"])]),n.tooltip?(l.openBlock(),l.createBlock(Vu,{key:0,tooltip:e.parent.label,showingTooltip:a.value,direction:"top",class:"left-20"},null,8,["tooltip","showingTooltip"])):l.createCommentVNode("",!0)]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.children.slice(0,i.value),d=>(l.openBlock(),l.createElementBlock("div",Iye,[l.createElementVNode("div",Dye,[l.createVNode(Lye,{state:d.state,onNewState:m=>A(e.parent.label,d.label,m)},null,8,["state","onNewState"]),l.createElementVNode("div",Uye,l.toDisplayString(d.label?d.label:"-"),1)]),l.createElementVNode("div",null,l.toDisplayString(d.count),1)]))),256))]))}}),Hye={class:"hidden md:col md:h-full overflow-hidden"},Yye={key:0,class:"flex"},Rye={class:"h-0 flex-1 overflow-y-auto px-1"},Qye={key:0,class:"q-ml-md text-bold"},jye={key:1,class:"flex flex-shrink-0 px-1 py-1"},Vye={class:"relative isolate inline-flex rounded-md shadow-xs"},zye=cr(l.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 y,v,_;const n=e,r=t,i=l.ref((y=n.facetOptions)==null?void 0:y.mustFilters),a=l.ref((v=n.facetOptions)==null?void 0:v.mustNotFilters),o=l.ref((_=n.facetOptions)==null?void 0:_.searchStr),s=l.ref(n.state),u=l.ref(!1),c=l.ref("");function A(b,w){const M=w.find(x=>x.field===b.parent);typeof M<"u"?M.terms.push(b.child):w.push({field:b.parent,terms:[b.child]})}function f(b,w){const M=w.find(x=>x.field===b.parent);if(typeof M<"u"){const x=M.terms.indexOf(b.child);if(x>-1&&(M.terms.splice(x,1),M.terms.length===0)){const L=w.findIndex(N=>N.field===b.parent);w.splice(L,1)}}}function h(b,w,M){M==="checked"?d({parent:b,child:w}):M==="ignored"?m({parent:b,child:w}):p({parent:b,child:w})}function d(b){A(b,i.value)}function m(b){f(b,i.value),A(b,a.value)}function p(b){f(b,a.value)}function g(b,w=""){u.value=b,c.value=w}return(b,w)=>(l.openBlock(),l.createElementBlock("div",Hye,[e.searchBar?(l.openBlock(),l.createElementBlock("div",Yye,[l.createVNode(gN,{class:"w-full",str:o.value,onSearch:w[0]||(w[0]=M=>r("search")),onUpdate:w[1]||(w[1]=M=>r("updateStr",M))},null,8,["str"])])):l.createCommentVNode("",!0),l.createElementVNode("div",Rye,[e.tree.length==0?(l.openBlock(),l.createElementBlock("div",Qye," No Facet data. Please select a search query. ")):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.tree,M=>(l.openBlock(),l.createElementBlock("div",{key:M.id,class:"primary"},[l.createVNode(Pye,{parent:M,children:M.children,clear:s.value,"facet-options":e.facetOptions,tooltip:e.tooltip,onNewState:h},null,8,["parent","children","clear","facet-options","tooltip"]),l.createVNode(Mw)]))),128))]),e.buttons?(l.openBlock(),l.createElementBlock("div",jye,[l.createElementVNode("span",Vye,[l.createElementVNode("button",{type:"button",class:"action-btn std-btn-red rounded-l-md",onClick:w[2]||(w[2]=M=>r("reset")),onMouseover:w[3]||(w[3]=M=>g(!0,"Reset Facet")),onMouseout:w[4]||(w[4]=M=>g(!1))},[l.createVNode(l.unref(Nd),{class:"icon-md","aria-hidden":"true"})],32),l.createElementVNode("button",{type:"button",class:"action-btn std-btn-blue",onClick:w[5]||(w[5]=M=>r("edit")),onMouseover:w[6]||(w[6]=M=>g(!0,"Edit Facet")),onMouseout:w[7]||(w[7]=M=>g(!1))},[l.createVNode(l.unref(H6),{class:"icon-md","aria-hidden":"true"})],32),l.createElementVNode("button",{type:"button",class:"action-btn std-btn-blue",onClick:w[8]||(w[8]=M=>r("save")),onMouseover:w[9]||(w[9]=M=>g(!0,"Save Facet")),onMouseout:w[10]||(w[10]=M=>g(!1))},[l.createVNode(J8,{class:"icon-md","aria-hidden":"true"})],32),l.createElementVNode("button",{type:"button",class:"action-btn std-btn-blue rounded-r-md",onClick:w[11]||(w[11]=M=>r("search")),onMouseover:w[12]||(w[12]=M=>g(!0,"Search")),onMouseout:w[13]||(w[13]=M=>g(!1))},[l.createVNode(l.unref(xw),{class:"icon-md","aria-hidden":"true"})],32),l.createVNode(Vu,{tooltip:c.value,showingTooltip:u.value,direction:"top",style:{transform:"translateY(-40%)"}},null,8,["tooltip","showingTooltip"])])])):l.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-2890730f"]]),qye=[{label:"Hourly",value:"hourly"},{label:"Daily",value:"daily"},{label:"Weekly",value:"weekly"},{label:"Monthly",value:"monthly"}],Kye=[{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}],Gye=Array.from({length:24},(e,t)=>({label:t.toString(),value:t})),Wye=Array.from({length:31},(e,t)=>({label:(t+1).toString(),value:t+1})),Xye=[{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"}],Jye={class:"px-2"},Zye={class:"flex gap-x-3"},$ye={__name:"Schedule",props:{schedule:Object},setup(e){const t=e,n=l.ref(t.schedule),r=l.computed(()=>n.value.interval==="minute"?Array.from({length:60},(i,a)=>{const o=a+1;return{label:o.toString(),value:o}}):n.value.interval==="hourly"||n.value.interval==="daily"?Array.from({length:12},(i,a)=>{const o=a*5;return{label:o.toString(),value:o}}):[]);return(i,a)=>(l.openBlock(),l.createBlock(mm,{sectionName:"Schedule Details"},{default:l.withCtx(()=>[l.createElementVNode("div",Jye,[l.createVNode(qi,{fieldName:"Interval"},{default:l.withCtx(()=>[l.createVNode(dr,{modelValue:n.value.interval,"onUpdate:modelValue":a[0]||(a[0]=o=>n.value.interval=o),options:l.unref(qye)},null,8,["modelValue","options"])]),_:1}),l.createElementVNode("div",Zye,[n.value.interval==="monthly"?(l.openBlock(),l.createBlock(qi,{key:0,fieldName:"Day",class:"w-44"},{default:l.withCtx(()=>[l.createVNode(dr,{modelValue:n.value.day,"onUpdate:modelValue":a[1]||(a[1]=o=>n.value.day=o),options:l.unref(Wye)},null,8,["modelValue","options"])]),_:1})):l.createCommentVNode("",!0),n.value.interval==="weekly"?(l.openBlock(),l.createBlock(qi,{key:1,fieldName:"Weekday",class:"w-44"},{default:l.withCtx(()=>[l.createVNode(dr,{modelValue:n.value.weekday,"onUpdate:modelValue":a[2]||(a[2]=o=>n.value.weekday=o),options:l.unref(Kye)},null,8,["modelValue","options"])]),_:1})):l.createCommentVNode("",!0),n.value.interval!=="minute"&&n.value.interval!=="hourly"?(l.openBlock(),l.createBlock(qi,{key:2,fieldName:"Hour",class:"w-44"},{default:l.withCtx(()=>[l.createVNode(dr,{modelValue:n.value.hour,"onUpdate:modelValue":a[3]||(a[3]=o=>n.value.hour=o),options:l.unref(Gye)},null,8,["modelValue","options"])]),_:1})):l.createCommentVNode("",!0),n.value.interval==="minute"||n.value.interval==="hourly"||n.value.interval==="daily"?(l.openBlock(),l.createBlock(qi,{key:3,fieldName:"Minute",class:"w-44"},{default:l.withCtx(()=>[l.createVNode(dr,{modelValue:n.value.minute,"onUpdate:modelValue":a[4]||(a[4]=o=>n.value.minute=o),options:r.value},null,8,["modelValue","options"])]),_:1})):l.createCommentVNode("",!0)]),n.value.interval!=="minute"&&n.value.interval!=="hourly"?(l.openBlock(),l.createBlock(qi,{key:0,fieldName:"Timezone"},{default:l.withCtx(()=>[l.createVNode(dr,{modelValue:n.value.timezone,"onUpdate:modelValue":a[5]||(a[5]=o=>n.value.timezone=o),options:l.unref(Xye)},null,8,["modelValue","options"])]),_:1})):l.createCommentVNode("",!0)])]),_:1}))}};function e_e(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.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 t_e(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.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 eO=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 $m(e){if(!e)return new Date;if(e.toString().indexOf("/")!==-1)return new Date(e);if(e.toString().indexOf("-")!==-1)return new Date(e);if(e.toString().startsWith("2")){const n=e.substring(0,4),r=e.substring(4,6),i=e.substring(6,8);return new Date(n,r-1,i)}return new Date(e).valueOf()!==e?new Date(e*1e3):new Date(e)}function n_e(e){return ft(e).fromNow()}const r_e={role:"list",class:"space-y-6"},i_e={class:"relative flex gap-x-4"},a_e={class:"relative flex icon-lg flex-none items-center justify-center std-white"},o_e={key:2,class:"h-2 w-2 rounded-full std-white-reverse ring-1 ring-gray-300"},s_e={class:"flex-auto py-0.5 text-xs leading-5"},l_e={class:"font-bold"},u_e=["datetime"],c_e={__name:"Feed",props:{data:Array},setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("ul",r_e,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.data,(r,i)=>(l.openBlock(),l.createElementBlock("li",i_e,[l.createElementVNode("div",{class:l.normalizeClass([i===e.data.length-1?"h-6":"-bottom-6","absolute left-0 top-0 flex w-6 justify-center"])},n[0]||(n[0]=[l.createElementVNode("div",{class:"w-px slider-active"},null,-1)]),2),l.createElementVNode("div",a_e,[r.action==="resolve"?(l.openBlock(),l.createBlock(l.unref(e_e),{key:0,class:"icon-lg icon-green","aria-hidden":"true"})):r.action==="trigger"?(l.openBlock(),l.createBlock(l.unref(t_e),{key:1,class:"icon-lg icon-red","aria-hidden":"true"})):(l.openBlock(),l.createElementBlock("div",o_e))]),l.createElementVNode("p",s_e,[l.createElementVNode("span",l_e,l.toDisplayString(r.source),1),l.createTextVNode(" "+l.toDisplayString(r.action)+" the alert. ",1)]),l.createElementVNode("time",{datetime:r.timestamp,class:"flex-none py-0.5 text-xs leading-5 font-light"},l.toDisplayString(l.unref(n_e)(r.timestamp)),9,u_e)]))),256))]))}},A_e={class:"mb-3 flex items-center justify-between relative"},d_e={class:"min-w-0 flex-1"},f_e={class:"row truncate font-medium"},h_e={class:"text-xs font-light"},p_e={class:"flex mt-0 ml-4"},m_e={__name:"CategoryCard",props:{category:{type:[Object,String],required:!0},description:String},setup(e){return(t,n)=>(l.openBlock(),l.createBlock(gm,null,{default:l.withCtx(()=>[l.createElementVNode("div",A_e,[l.renderSlot(t.$slots,"icon"),l.createElementVNode("div",d_e,[l.createElementVNode("h3",f_e,[l.createTextVNode(l.toDisplayString(e.category.name||e.category)+" ",1),l.renderSlot(t.$slots,"title")]),l.createElementVNode("p",h_e,l.toDisplayString(e.description),1)]),l.createElementVNode("div",p_e,[l.renderSlot(t.$slots,"header")])]),l.renderSlot(t.$slots,"default")]),_:3}))}},g_e={},v_e={class:"min-h-11 pl-3 py-1 sm:flex sm:items-center sm:justify-between content-center std-light dark:std-dark"},y_e={class:"mt-3 flex sm:mt-0"};function __e(e,t){return l.openBlock(),l.createElementBlock("div",v_e,[l.renderSlot(e.$slots,"title"),l.createElementVNode("div",y_e,[l.renderSlot(e.$slots,"buttons")])])}const b_e=cr(g_e,[["render",__e]]),w_e={class:"py-1"},B_e=["onClick"],tO={__name:"Select",props:{options:{type:Array,required:!0},direction:{type:String,default:"left"},optionsSize:{type:String,default:"40"},size:{type:String,default:"xs"},color:String,current:{type:String,default:""},disabled:Boolean,dense:Boolean},emits:["select"],setup(e,{emit:t}){const n=e,r=t;function i(a){return n.current===a||n.current===(a==null?void 0:a.label)}return(a,o)=>(l.openBlock(),l.createBlock(l.unref(kd),{as:"div",class:"relative inline-block text-left"},{default:l.withCtx(()=>[l.createVNode(l.unref(Md),{class:l.normalizeClass([`group inline-flex justify-center text-${e.size} font-medium`,{"std-btn std-btn-red":e.color==="red"},{"std-btn std-btn-green":e.color==="green"},{"std-btn std-btn-blue":e.color==="blue"},{"px-3! py-1!":e.dense}]),disabled:e.disabled},{default:l.withCtx(()=>[l.renderSlot(a.$slots,"btn")]),_:3},8,["class","disabled"]),l.createVNode(l.Transition,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:l.withCtx(()=>[l.createVNode(l.unref(Ed),{class:l.normalizeClass([`std-white input-dropdown w-${e.optionsSize} origin-top-right shadow-lg max-h-96`,e.direction==="right"?"left-0 ":"right-0",{"std-red":e.color==="red"},{"std-green":e.color==="green"},{"std-blue":e.color==="blue"},{"std-white":e.color!=="red"&&e.color!=="blue"&&e.color!=="green"}])},{default:l.withCtx(()=>[l.createElementVNode("div",w_e,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.options,s=>(l.openBlock(),l.createBlock(l.unref($l),{key:s},{default:l.withCtx(({active:u})=>[l.createElementVNode("span",{class:l.normalizeClass([{"outline-hidden":u},{"white-bg-hover dark:dark-bg-hover":e.color!=="red"&&e.color!=="blue"&&e.color!=="green"&&(u||i(s))},{"std-red-hover-light":e.color==="red"&&(u||i(s))},{"std-blue-hover-light":e.color==="blue"&&(u||i(s))},{"std-green-hover-light":e.color==="green"&&(u||i(s))},`group flex w-full items-center rounded-md px-2 py-2 text-${e.size} cursor-pointer`]),onClick:l.withModifiers(c=>r("select",s),["stop"])},l.toDisplayString((s==null?void 0:s.label)||s),11,B_e)]),_:2},1024))),128))])]),_:1},8,["class"])]),_:1})]),_:3}))}},nO={__name:"Sort",props:{options:{type:Array,required:!0},direction:{type:String,default:"left"},current:{type:Object,default:()=>({})},size:{type:String,default:"xs"}},emits:["sort"],setup(e,{emit:t}){const n=e,r=t,i=l.computed(()=>n.size==="xs"?"icon":n.size==="sm"?"icon-md":n.size==="md"?"icon-lg":n.size==="lg"?"icon-xl":"icon");return(a,o)=>(l.openBlock(),l.createBlock(tO,{options:e.options,current:e.current.label,direction:e.direction,size:e.size,onSelect:o[0]||(o[0]=s=>r("sort",s))},{btn:l.withCtx(()=>[l.createVNode(l.unref($8),{class:l.normalizeClass(`${i.value} mr-2`)},null,8,["class"]),o[1]||(o[1]=l.createTextVNode(" Sort By ",-1)),l.createVNode(l.unref(a1),{class:l.normalizeClass(`${i.value} ml-2`)},null,8,["class"])]),_:1},8,["options","current","direction","size"]))}},x_e={class:"row py-0.5 border-b items-center"},C_e={__name:"CheckDropdown",props:{options:{type:Array,required:!0},text:{type:String,default:"Filter"},size:{type:String,default:"sm"},color:String,direction:{type:String,default:"left"},optionsSize:{type:String,default:"40"},disabled:Boolean,dense:Boolean,selectAll:{type:Boolean,default:!0}},emits:[],setup(e,{emit:t}){const n=e,r=l.ref(!!n.selectAll),i=l.computed(()=>n.size==="xs"?"icon":n.size==="sm"?"icon-md":n.size==="md"?"icon-lg":n.size==="lg"?"icon-xl":"icon");function a(){const o=r.value;n.options.forEach(s=>{s.checked=o})}return(o,s)=>(l.openBlock(),l.createBlock(l.unref(gw),{as:"div",class:"relative inline-block text-left"},{default:l.withCtx(()=>[l.createVNode(l.unref(w6),{class:l.normalizeClass([`group inline-flex justify-center text-${e.size} font-medium`,{"std-btn std-btn-red":e.color==="red"},{"std-btn std-btn-green":e.color==="green"},{"std-btn std-btn-blue":e.color==="blue"},{"px-3! py-1!":e.dense}]),disabled:e.disabled},{default:l.withCtx(()=>[l.renderSlot(o.$slots,"btn"),l.createTextVNode(" "+l.toDisplayString(e.text)+" ",1),l.createVNode(l.unref(I6),{class:l.normalizeClass([i.value])},null,8,["class"])]),_:3},8,["class","disabled"]),l.createVNode(l.Transition,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:l.withCtx(()=>[l.createVNode(l.unref(B6),{class:l.normalizeClass(["std-white input-dropdown origin-top-right shadow-lg max-h-96",`w-${e.optionsSize}`,e.direction==="right"?"left-0 ":"right-0",{"std-red":e.color==="red"},{"std-green":e.color==="green"},{"std-blue":e.color==="blue"},{"std-white":e.color!=="red"&&e.color!=="blue"&&e.color!=="green"}])},{default:l.withCtx(()=>[l.createElementVNode("div",null,[l.createElementVNode("span",x_e,[l.createVNode(eu,{modelValue:r.value,"onUpdate:modelValue":[s[0]||(s[0]=u=>r.value=u),a],size:e.size},null,8,["modelValue","size"]),l.createElementVNode("span",{class:l.normalizeClass(`ml-1 text-${e.size}`)},"Select All",2)]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.options,(u,c)=>(l.openBlock(),l.createElementBlock("span",{class:l.normalizeClass(["row py-0.5 items-center",{"border-b":c<e.options.length-1}])},[l.createVNode(eu,{modelValue:u.checked,"onUpdate:modelValue":A=>u.checked=A,disabled:r.value,size:e.size},null,8,["modelValue","onUpdate:modelValue","disabled","size"]),l.createElementVNode("span",{class:l.normalizeClass([`ml-1 text-${e.size}`,{"font-thin":r.value}])},l.toDisplayString(u.label),3)],2))),256))])]),_:1},8,["class"])]),_:1})]),_:3}))}},S_e=["title"],k_e={key:1,class:"text-xs"},M_e={__name:"Flag",props:{country:String,city:String,org:String,squared:{type:Boolean,default:!1}},emits:[],setup(e,{emit:t}){const n=e;return(r,i)=>(l.openBlock(),l.createElementBlock("div",null,[e.country?(l.openBlock(),l.createElementBlock("span",{key:0,class:l.normalizeClass(["fi mr-1",{fis:n.squared},`fi-${n.country.toLowerCase()}`]),title:e.country},null,10,S_e)):l.createCommentVNode("",!0),e.city?(l.openBlock(),l.createElementBlock("span",k_e,l.toDisplayString(e.city)+", "+l.toDisplayString(e.org),1)):l.createCommentVNode("",!0)]))}},E_e={class:"col md:flex-row md:justify-between gap-x-5 my-4"},L_e={class:"col items-center mt-2"},T_e={class:"row"},N_e={class:"text-5xl font-semibold"},F_e={class:"font-light"},O_e={class:"col items-center mt-2"},I_e={class:"row"},D_e={class:"text-5xl font-semibold"},U_e={class:"font-light"},P_e={class:"col items-center mt-2"},H_e={class:"row"},Y_e={class:"text-5xl font-semibold"},R_e={class:"font-light"},Q_e={__name:"ThreeHomePanel",props:{firstPanelValue:[Number,String],firstPanelName:String,secondPanelValue:[Number,String],secondPanelName:String,thirdPanelValue:[Number,String],thirdPanelName:String,shadow:{type:Boolean,default:!1}},emits:["panel"],setup(e,{emit:t}){const n=t;return(r,i)=>(l.openBlock(),l.createElementBlock("div",E_e,[l.createVNode(gm,{class:l.normalizeClass(["md:w-1/3",{"dark:bg-black":e.shadow}]),onClick:i[0]||(i[0]=a=>n("panel",1))},{default:l.withCtx(()=>[l.createElementVNode("div",L_e,[l.createElementVNode("div",T_e,[l.renderSlot(r.$slots,"firstPanelIcon"),l.createElementVNode("div",N_e,l.toDisplayString(e.firstPanelValue),1)]),l.createElementVNode("div",F_e,l.toDisplayString(e.firstPanelName),1)])]),_:3},8,["class"]),l.createVNode(gm,{class:l.normalizeClass(["md:w-1/3",{"dark:bg-black":e.shadow}]),onClick:i[1]||(i[1]=a=>n("panel",2))},{default:l.withCtx(()=>[l.createElementVNode("div",O_e,[l.createElementVNode("div",I_e,[l.renderSlot(r.$slots,"secondPanelIcon"),l.createElementVNode("div",D_e,l.toDisplayString(e.secondPanelValue),1)]),l.createElementVNode("div",U_e,l.toDisplayString(e.secondPanelName),1)])]),_:3},8,["class"]),l.createVNode(gm,{class:l.normalizeClass(["md:w-1/3",{"dark:bg-black":e.shadow}]),onClick:i[2]||(i[2]=a=>n("panel",3))},{default:l.withCtx(()=>[l.createElementVNode("div",P_e,[l.createElementVNode("div",H_e,[l.renderSlot(r.$slots,"thirdPanelIcon"),l.createElementVNode("div",Y_e,l.toDisplayString(e.thirdPanelValue),1)]),l.createElementVNode("div",R_e,l.toDisplayString(e.thirdPanelName),1)])]),_:3},8,["class"])]))}};function bA(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function eg(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function j1(e){let t,n,r;e.length!==2?(t=bA,n=(s,u)=>bA(e(s),u),r=(s,u)=>e(s)-u):(t=e===bA||e===eg?e:j_e,n=e,r=e);function i(s,u,c=0,A=s.length){if(c<A){if(t(u,u)!==0)return A;do{const f=c+A>>>1;n(s[f],u)<0?c=f+1:A=f}while(c<A)}return c}function a(s,u,c=0,A=s.length){if(c<A){if(t(u,u)!==0)return A;do{const f=c+A>>>1;n(s[f],u)<=0?c=f+1:A=f}while(c<A)}return c}function o(s,u,c=0,A=s.length){const f=i(s,u,c,A-1);return f>c&&r(s[f-1],u)>-r(s[f],u)?f-1:f}return{left:i,center:o,right:a}}function j_e(){return 0}function rO(e){return e===null?NaN:+e}function*V_e(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 V1=j1(bA).right;j1(rO).center;function vB(e,t){let n=0;for(let r of e)r!=null&&(r=+r)>=r&&++n;return n}function z_e(e){return e.length|0}function q_e(e){return!(e>0)}function K_e(e){return typeof e!="object"||"length"in e?e:Array.from(e)}function G_e(e){return t=>e(...t)}function W_e(...e){const t=typeof e[e.length-1]=="function"&&G_e(e.pop());e=e.map(K_e);const n=e.map(z_e),r=e.length-1,i=new Array(r+1).fill(0),a=[];if(r<0||n.some(q_e))return a;for(;;){a.push(i.map((s,u)=>e[u][s]));let o=r;for(;++i[o]===n[o];){if(o===0)return t?a.map(t):a;i[o--]=0}}}function iO(e,t){let n=0,r,i=0,a=0;if(t===void 0)for(let o of e)o!=null&&(o=+o)>=o&&(r=o-i,i+=r/++n,a+=r*(o-i));else{let o=-1;for(let s of e)(s=t(s,++o,e))!=null&&(s=+s)>=s&&(r=s-i,i+=r/++n,a+=r*(s-i))}if(n>1)return a/(n-1)}function aO(e,t){const n=iO(e,t);return n&&Math.sqrt(n)}function xi(e,t){let n,r;if(t===void 0)for(const i of e)i!=null&&(n===void 0?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)));else{let i=-1;for(let a of e)(a=t(a,++i,e))!=null&&(n===void 0?a>=a&&(n=r=a):(n>a&&(n=a),r<a&&(r=a)))}return[n,r]}class Xd{constructor(){this._partials=new Float64Array(32),this._n=0}add(t){const n=this._partials;let r=0;for(let i=0;i<this._n&&i<32;i++){const a=n[i],o=t+a,s=Math.abs(t)<Math.abs(a)?t-(o-a):a-(o-t);s&&(n[r++]=s),t=o}return n[r]=t,this._n=r+1,this}valueOf(){const t=this._partials;let n=this._n,r,i,a,o=0;if(n>0){for(o=t[--n];n>0&&(r=o,i=t[--n],o=r+i,a=i-(o-r),!a););n>0&&(a<0&&t[n-1]<0||a>0&&t[n-1]>0)&&(i=a*2,r=o+i,i==r-o&&(o=r))}return o}}class tg extends Map{constructor(t,n=lO){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(yB(this,t))}has(t){return super.has(yB(this,t))}set(t,n){return super.set(oO(this,t),n)}delete(t){return super.delete(sO(this,t))}}class ng extends Set{constructor(t,n=lO){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(yB(this,t))}add(t){return super.add(oO(this,t))}delete(t){return super.delete(sO(this,t))}}function yB({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function oO({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function sO({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function lO(e){return e!==null&&typeof e=="object"?e.valueOf():e}function z1(e){return e}function uO(e,...t){return K1(e,z1,z1,t)}function q1(e,t,...n){return K1(e,z1,t,n)}function X_e(e,t,...n){return K1(e,Array.from,t,n)}function cO(e,...t){return K1(e,z1,J_e,t)}function J_e(e){if(e.length!==1)throw new Error("duplicate key");return e[0]}function K1(e,t,n,r){return function i(a,o){if(o>=r.length)return n(a);const s=new tg,u=r[o++];let c=-1;for(const A of a){const f=u(A,++c,a),h=s.get(f);h?h.push(A):s.set(f,[A])}for(const[A,f]of s)s.set(A,i(f,o));return t(s)}(e,0)}function Z_e(e,t){return Array.from(t,n=>e[n])}function AO(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,(i,a)=>a);return t.length>1?(t=t.map(i=>e.map(i)),r.sort((i,a)=>{for(const o of t){const s=G1(o[i],o[a]);if(s)return s}})):(n=e.map(n),r.sort((i,a)=>G1(n[i],n[a]))),Z_e(e,r)}return e.sort(dO(n))}function dO(e=bA){if(e===bA)return G1;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 G1(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const $_e=Math.sqrt(50),ebe=Math.sqrt(10),tbe=Math.sqrt(2);function W1(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/Math.pow(10,i),o=a>=$_e?10:a>=ebe?5:a>=tbe?2:1;let s,u,c;return i<0?(c=Math.pow(10,-i)/o,s=Math.round(e*c),u=Math.round(t*c),s/c<e&&++s,u/c>t&&--u,c=-c):(c=Math.pow(10,i)*o,s=Math.round(e/c),u=Math.round(t/c),s*c<e&&++s,u*c>t&&--u),u<s&&.5<=n&&n<2?W1(e,t,n*2):[s,u,c]}function Jd(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,a,o]=r?W1(t,e,n):W1(e,t,n);if(!(a>=i))return[];const s=a-i+1,u=new Array(s);if(r)if(o<0)for(let c=0;c<s;++c)u[c]=(a-c)/-o;else for(let c=0;c<s;++c)u[c]=(a-c)*o;else if(o<0)for(let c=0;c<s;++c)u[c]=(i+c)/-o;else for(let c=0;c<s;++c)u[c]=(i+c)*o;return u}function X1(e,t,n){return t=+t,e=+e,n=+n,W1(e,t,n)[2]}function _B(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?X1(t,e,n):X1(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function nbe(e){return Math.max(1,Math.ceil(Math.log(vB(e))/Math.LN2)+1)}function va(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 i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function rbe(e,t){let n,r=-1,i=-1;if(t===void 0)for(const a of e)++i,a!=null&&(n<a||n===void 0&&a>=a)&&(n=a,r=i);else for(let a of e)(a=t(a,++i,e))!=null&&(n<a||n===void 0&&a>=a)&&(n=a,r=i);return r}function Fh(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 i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function ibe(e,t){let n,r=-1,i=-1;if(t===void 0)for(const a of e)++i,a!=null&&(n>a||n===void 0&&a>=a)&&(n=a,r=i);else for(let a of e)(a=t(a,++i,e))!=null&&(n>a||n===void 0&&a>=a)&&(n=a,r=i);return r}function fO(e,t,n=0,r=1/0,i){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(i=i===void 0?G1:dO(i);r>n;){if(r-n>600){const u=r-n+1,c=t-n+1,A=Math.log(u),f=.5*Math.exp(2*A/3),h=.5*Math.sqrt(A*f*(u-f)/u)*(c-u/2<0?-1:1),d=Math.max(n,Math.floor(t-c*f/u+h)),m=Math.min(r,Math.floor(t+(u-c)*f/u+h));fO(e,t,d,m,i)}const a=e[t];let o=n,s=r;for(rg(e,n,t),i(e[r],a)>0&&rg(e,n,r);o<s;){for(rg(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[n],a)===0?rg(e,n,s):(++s,rg(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function rg(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function Oh(e,t,n){if(e=Float64Array.from(V_e(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return Fh(e);if(t>=1)return va(e);var r,i=(r-1)*t,a=Math.floor(i),o=va(fO(e,a).subarray(0,a+1)),s=Fh(e.subarray(a+1));return o+(s-o)*(i-a)}}function abe(e,t,n=rO){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,i=(r-1)*t,a=Math.floor(i),o=+n(e[a],a,e),s=+n(e[a+1],a+1,e);return o+(s-o)*(i-a)}}function obe(e,t,n){const r=vB(e),i=Oh(e,.75)-Oh(e,.25);return r&&i?Math.ceil((n-t)/(2*i*Math.pow(r,-1/3))):1}function hO(e,t,n){const r=vB(e),i=aO(e);return r&&i?Math.ceil((n-t)*Math.cbrt(r)/(3.49*i)):1}function sbe(e,t){let n=0,r=0;if(t===void 0)for(let i of e)i!=null&&(i=+i)>=i&&(++n,r+=i);else{let i=-1;for(let a of e)(a=t(a,++i,e))!=null&&(a=+a)>=a&&(++n,r+=a)}if(n)return r/n}function bB(e,t){return Oh(e,.5,t)}function*lbe(e){for(const t of e)yield*t}function pO(e){return Array.from(lbe(e))}function ube(e,t){const n=new tg;if(t===void 0)for(let a of e)a!=null&&a>=a&&n.set(a,(n.get(a)||0)+1);else{let a=-1;for(let o of e)(o=t(o,++a,e))!=null&&o>=o&&n.set(o,(n.get(o)||0)+1)}let r,i=0;for(const[a,o]of n)o>i&&(i=o,r=a);return r}function cbe(e,t=Abe){const n=[];let r,i=!1;for(const a of e)i&&n.push(t(r,a)),r=a,i=!0;return n}function Abe(e,t){return[e,t]}function wB(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=new Array(i);++r<i;)a[r]=e+r*n;return a}function J1(e,t){let n=0;if(t===void 0)for(let r of e)(r=+r)&&(n+=r);else{let r=-1;for(let i of e)(i=+t(i,++r,e))&&(n+=i)}return n}function Z1(e){if(typeof e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");return Array.from(e).reverse()}function mO(...e){const t=new ng;for(const n of e)for(const r of n)t.add(r);return t}function dbe(e){return e}var $1=1,ey=2,BB=3,ig=4,gO=1e-6;function fbe(e){return"translate("+e+",0)"}function hbe(e){return"translate(0,"+e+")"}function pbe(e){return t=>+e(t)}function mbe(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function gbe(){return!this.__axis}function ty(e,t){var n=[],r=null,i=null,a=6,o=6,s=3,u=typeof window<"u"&&window.devicePixelRatio>1?0:.5,c=e===$1||e===ig?-1:1,A=e===ig||e===ey?"x":"y",f=e===$1||e===BB?fbe:hbe;function h(d){var m=r??(t.ticks?t.ticks.apply(t,n):t.domain()),p=i??(t.tickFormat?t.tickFormat.apply(t,n):dbe),g=Math.max(a,0)+s,y=t.range(),v=+y[0]+u,_=+y[y.length-1]+u,b=(t.bandwidth?mbe:pbe)(t.copy(),u),w=d.selection?d.selection():d,M=w.selectAll(".domain").data([null]),x=w.selectAll(".tick").data(m,t).order(),L=x.exit(),N=x.enter().append("g").attr("class","tick"),H=x.select("line"),S=x.select("text");M=M.merge(M.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),x=x.merge(N),H=H.merge(N.append("line").attr("stroke","currentColor").attr(A+"2",c*a)),S=S.merge(N.append("text").attr("fill","currentColor").attr(A,c*g).attr("dy",e===$1?"0em":e===BB?"0.71em":"0.32em")),d!==w&&(M=M.transition(d),x=x.transition(d),H=H.transition(d),S=S.transition(d),L=L.transition(d).attr("opacity",gO).attr("transform",function(F){return isFinite(F=b(F))?f(F+u):this.getAttribute("transform")}),N.attr("opacity",gO).attr("transform",function(F){var I=this.parentNode.__axis;return f((I&&isFinite(I=I(F))?I:b(F))+u)})),L.remove(),M.attr("d",e===ig||e===ey?o?"M"+c*o+","+v+"H"+u+"V"+_+"H"+c*o:"M"+u+","+v+"V"+_:o?"M"+v+","+c*o+"V"+u+"H"+_+"V"+c*o:"M"+v+","+u+"H"+_),x.attr("opacity",1).attr("transform",function(F){return f(b(F)+u)}),H.attr(A+"2",c*a),S.attr(A,c*g).text(p),w.filter(gbe).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===ey?"start":e===ig?"end":"middle"),w.each(function(){this.__axis=b})}return h.scale=function(d){return arguments.length?(t=d,h):t},h.ticks=function(){return n=Array.from(arguments),h},h.tickArguments=function(d){return arguments.length?(n=d==null?[]:Array.from(d),h):n.slice()},h.tickValues=function(d){return arguments.length?(r=d==null?null:Array.from(d),h):r&&r.slice()},h.tickFormat=function(d){return arguments.length?(i=d,h):i},h.tickSize=function(d){return arguments.length?(a=o=+d,h):a},h.tickSizeInner=function(d){return arguments.length?(a=+d,h):a},h.tickSizeOuter=function(d){return arguments.length?(o=+d,h):o},h.tickPadding=function(d){return arguments.length?(s=+d,h):s},h.offset=function(d){return arguments.length?(u=+d,h):u},h}function vbe(e){return ty($1,e)}function ybe(e){return ty(ey,e)}function ko(e){return ty(BB,e)}function Zd(e){return ty(ig,e)}var _be={value:()=>{}};function xB(){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 ny(n)}function ny(e){this._=e}function bbe(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}ny.prototype=xB.prototype={constructor:ny,on:function(e,t){var n=this._,r=bbe(e+"",n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=wbe(n[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=vO(n[i],e.name,t);else if(t==null)for(i in n)n[i]=vO(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new ny(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[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],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function wbe(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function vO(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=_be,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var CB="http://www.w3.org/1999/xhtml";const Ih={svg:"http://www.w3.org/2000/svg",xhtml:CB,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ry(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),Ih.hasOwnProperty(t)?{space:Ih[t],local:e}:e}function Bbe(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===CB&&t.documentElement.namespaceURI===CB?t.createElement(e):t.createElementNS(n,e)}}function xbe(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function iy(e){var t=ry(e);return(t.local?xbe:Bbe)(t)}function Cbe(){}function SB(e){return e==null?Cbe:function(){return this.querySelector(e)}}function Sbe(e){typeof e!="function"&&(e=SB(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=new Array(o),u,c,A=0;A<o;++A)(u=a[A])&&(c=e.call(u,u.__data__,A,a))&&("__data__"in u&&(c.__data__=u.__data__),s[A]=c);return new so(r,this._parents)}function yO(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function kbe(){return[]}function _O(e){return e==null?kbe:function(){return this.querySelectorAll(e)}}function Mbe(e){return function(){return yO(e.apply(this,arguments))}}function Ebe(e){typeof e=="function"?e=Mbe(e):e=_O(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,u,c=0;c<s;++c)(u=o[c])&&(r.push(e.call(u,u.__data__,c,o)),i.push(u));return new so(r,i)}function bO(e){return function(){return this.matches(e)}}function wO(e){return function(t){return t.matches(e)}}var Lbe=Array.prototype.find;function Tbe(e){return function(){return Lbe.call(this.children,e)}}function Nbe(){return this.firstElementChild}function Fbe(e){return this.select(e==null?Nbe:Tbe(typeof e=="function"?e:wO(e)))}var Obe=Array.prototype.filter;function Ibe(){return Array.from(this.children)}function Dbe(e){return function(){return Obe.call(this.children,e)}}function Ube(e){return this.selectAll(e==null?Ibe:Dbe(typeof e=="function"?e:wO(e)))}function Pbe(e){typeof e!="function"&&(e=bO(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],u,c=0;c<o;++c)(u=a[c])&&e.call(u,u.__data__,c,a)&&s.push(u);return new so(r,this._parents)}function BO(e){return new Array(e.length)}function Hbe(){return new so(this._enter||this._groups.map(BO),this._parents)}function ay(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}ay.prototype={constructor:ay,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 Ybe(e){return function(){return e}}function Rbe(e,t,n,r,i,a){for(var o=0,s,u=t.length,c=a.length;o<c;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new ay(e,a[o]);for(;o<u;++o)(s=t[o])&&(i[o]=s)}function Qbe(e,t,n,r,i,a,o){var s,u,c=new Map,A=t.length,f=a.length,h=new Array(A),d;for(s=0;s<A;++s)(u=t[s])&&(h[s]=d=o.call(u,u.__data__,s,t)+"",c.has(d)?i[s]=u:c.set(d,u));for(s=0;s<f;++s)d=o.call(e,a[s],s,a)+"",(u=c.get(d))?(r[s]=u,u.__data__=a[s],c.delete(d)):n[s]=new ay(e,a[s]);for(s=0;s<A;++s)(u=t[s])&&c.get(h[s])===u&&(i[s]=u)}function jbe(e){return e.__data__}function Vbe(e,t){if(!arguments.length)return Array.from(this,jbe);var n=t?Qbe:Rbe,r=this._parents,i=this._groups;typeof e!="function"&&(e=Ybe(e));for(var a=i.length,o=new Array(a),s=new Array(a),u=new Array(a),c=0;c<a;++c){var A=r[c],f=i[c],h=f.length,d=zbe(e.call(A,A&&A.__data__,c,r)),m=d.length,p=s[c]=new Array(m),g=o[c]=new Array(m),y=u[c]=new Array(h);n(A,f,p,g,y,d,t);for(var v=0,_=0,b,w;v<m;++v)if(b=p[v]){for(v>=_&&(_=v+1);!(w=g[_])&&++_<m;);b._next=w||null}}return o=new so(o,r),o._enter=s,o._exit=u,o}function zbe(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function qbe(){return new so(this._exit||this._groups.map(BO),this._parents)}function Kbe(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function Gbe(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=new Array(i),u=0;u<o;++u)for(var c=n[u],A=r[u],f=c.length,h=s[u]=new Array(f),d,m=0;m<f;++m)(d=c[m]||A[m])&&(h[m]=d);for(;u<i;++u)s[u]=n[u];return new so(s,this._parents)}function Wbe(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function Xbe(e){e||(e=Jbe);function t(f,h){return f&&h?e(f.__data__,h.__data__):!f-!h}for(var n=this._groups,r=n.length,i=new Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,u=i[a]=new Array(s),c,A=0;A<s;++A)(c=o[A])&&(u[A]=c);u.sort(t)}return new so(i,this._parents).order()}function Jbe(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Zbe(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function $be(){return Array.from(this)}function e2e(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function t2e(){let e=0;for(const t of this)++e;return e}function n2e(){return!this.node()}function r2e(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function i2e(e){return function(){this.removeAttribute(e)}}function a2e(e){return function(){this.removeAttributeNS(e.space,e.local)}}function o2e(e,t){return function(){this.setAttribute(e,t)}}function s2e(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function l2e(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function u2e(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 c2e(e,t){var n=ry(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?a2e:i2e:typeof t=="function"?n.local?u2e:l2e:n.local?s2e:o2e)(n,t))}function xO(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function A2e(e){return function(){this.style.removeProperty(e)}}function d2e(e,t,n){return function(){this.style.setProperty(e,t,n)}}function f2e(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function h2e(e,t,n){return arguments.length>1?this.each((t==null?A2e:typeof t=="function"?f2e:d2e)(e,t,n??"")):Dh(this.node(),e)}function Dh(e,t){return e.style.getPropertyValue(t)||xO(e).getComputedStyle(e,null).getPropertyValue(t)}function p2e(e){return function(){delete this[e]}}function m2e(e,t){return function(){this[e]=t}}function g2e(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function v2e(e,t){return arguments.length>1?this.each((t==null?p2e:typeof t=="function"?g2e:m2e)(e,t)):this.node()[e]}function CO(e){return e.trim().split(/^|\s+/)}function kB(e){return e.classList||new SO(e)}function SO(e){this._node=e,this._names=CO(e.getAttribute("class")||"")}SO.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 kO(e,t){for(var n=kB(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function MO(e,t){for(var n=kB(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function y2e(e){return function(){kO(this,e)}}function _2e(e){return function(){MO(this,e)}}function b2e(e,t){return function(){(t.apply(this,arguments)?kO:MO)(this,e)}}function w2e(e,t){var n=CO(e+"");if(arguments.length<2){for(var r=kB(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t=="function"?b2e:t?y2e:_2e)(n,t))}function B2e(){this.textContent=""}function x2e(e){return function(){this.textContent=e}}function C2e(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function S2e(e){return arguments.length?this.each(e==null?B2e:(typeof e=="function"?C2e:x2e)(e)):this.node().textContent}function k2e(){this.innerHTML=""}function M2e(e){return function(){this.innerHTML=e}}function E2e(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function L2e(e){return arguments.length?this.each(e==null?k2e:(typeof e=="function"?E2e:M2e)(e)):this.node().innerHTML}function T2e(){this.nextSibling&&this.parentNode.appendChild(this)}function N2e(){return this.each(T2e)}function F2e(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function O2e(){return this.each(F2e)}function I2e(e){var t=typeof e=="function"?e:iy(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function D2e(){return null}function U2e(e,t){var n=typeof e=="function"?e:iy(e),r=t==null?D2e:typeof t=="function"?t:SB(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function P2e(){var e=this.parentNode;e&&e.removeChild(this)}function H2e(){return this.each(P2e)}function Y2e(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function R2e(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Q2e(e){return this.select(e?R2e:Y2e)}function j2e(e){return arguments.length?this.property("__data__",e):this.node().__data__}function V2e(e){return function(t){e.call(this,t,this.__data__)}}function z2e(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 q2e(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function K2e(e,t,n){return function(){var r=this.__on,i,a=V2e(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function G2e(e,t,n){var r=z2e(e+""),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var u=0,c=s.length,A;u<c;++u)for(i=0,A=s[u];i<a;++i)if((o=r[i]).type===A.type&&o.name===A.name)return A.value}return}for(s=t?K2e:q2e,i=0;i<a;++i)this.each(s(r[i],t,n));return this}function EO(e,t,n){var r=xO(e),i=r.CustomEvent;typeof i=="function"?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function W2e(e,t){return function(){return EO(this,e,t)}}function X2e(e,t){return function(){return EO(this,e,t.apply(this,arguments))}}function J2e(e,t){return this.each((typeof t=="function"?X2e:W2e)(e,t))}function*Z2e(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var MB=[null];function so(e,t){this._groups=e,this._parents=t}function ag(){return new so([[document.documentElement]],MB)}function $2e(){return this}so.prototype=ag.prototype={constructor:so,select:Sbe,selectAll:Ebe,selectChild:Fbe,selectChildren:Ube,filter:Pbe,data:Vbe,enter:Hbe,exit:qbe,join:Kbe,merge:Gbe,selection:$2e,order:Wbe,sort:Xbe,call:Zbe,nodes:$be,node:e2e,size:t2e,empty:n2e,each:r2e,attr:c2e,style:h2e,property:v2e,classed:w2e,text:S2e,html:L2e,raise:N2e,lower:O2e,append:I2e,insert:U2e,remove:H2e,clone:Q2e,datum:j2e,on:G2e,dispatch:J2e,[Symbol.iterator]:Z2e};function zt(e){return typeof e=="string"?new so([[document.querySelector(e)]],[document.documentElement]):new so([[e]],MB)}function ewe(e){let t;for(;t=e.sourceEvent;)e=t;return e}function EB(e,t){if(e=ewe(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 i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}function Un(e){return typeof e=="string"?new so([document.querySelectorAll(e)],[document.documentElement]):new so([yO(e)],MB)}const LB={capture:!0,passive:!1};function TB(e){e.preventDefault(),e.stopImmediatePropagation()}function twe(e){var t=e.document.documentElement,n=zt(e).on("dragstart.drag",TB,LB);"onselectstart"in t?n.on("selectstart.drag",TB,LB):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function nwe(e,t){var n=e.document.documentElement,r=zt(e).on("dragstart.drag",null);t&&(r.on("click.drag",TB,LB),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 Uh(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function og(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function wA(){}var $d=.7,Ph=1/$d,Hh="\\s*([+-]?\\d+)\\s*",sg="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Au="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",rwe=/^#([0-9a-f]{3,8})$/,iwe=new RegExp(`^rgb\\(${Hh},${Hh},${Hh}\\)$`),awe=new RegExp(`^rgb\\(${Au},${Au},${Au}\\)$`),owe=new RegExp(`^rgba\\(${Hh},${Hh},${Hh},${sg}\\)$`),swe=new RegExp(`^rgba\\(${Au},${Au},${Au},${sg}\\)$`),lwe=new RegExp(`^hsl\\(${sg},${Au},${Au}\\)$`),uwe=new RegExp(`^hsla\\(${sg},${Au},${Au},${sg}\\)$`),LO={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};Uh(wA,ef,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:TO,formatHex:TO,formatHex8:cwe,formatHsl:Awe,formatRgb:NO,toString:NO});function TO(){return this.rgb().formatHex()}function cwe(){return this.rgb().formatHex8()}function Awe(){return UO(this).formatHsl()}function NO(){return this.rgb().formatRgb()}function ef(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=rwe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?FO(t):n===3?new la(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?oy(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?oy(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=iwe.exec(e))?new la(t[1],t[2],t[3],1):(t=awe.exec(e))?new la(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=owe.exec(e))?oy(t[1],t[2],t[3],t[4]):(t=swe.exec(e))?oy(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=lwe.exec(e))?DO(t[1],t[2]/100,t[3]/100,1):(t=uwe.exec(e))?DO(t[1],t[2]/100,t[3]/100,t[4]):LO.hasOwnProperty(e)?FO(LO[e]):e==="transparent"?new la(NaN,NaN,NaN,0):null}function FO(e){return new la(e>>16&255,e>>8&255,e&255,1)}function oy(e,t,n,r){return r<=0&&(e=t=n=NaN),new la(e,t,n,r)}function NB(e){return e instanceof wA||(e=ef(e)),e?(e=e.rgb(),new la(e.r,e.g,e.b,e.opacity)):new la}function BA(e,t,n,r){return arguments.length===1?NB(e):new la(e,t,n,r??1)}function la(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Uh(la,BA,og(wA,{brighter(e){return e=e==null?Ph:Math.pow(Ph,e),new la(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?$d:Math.pow($d,e),new la(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new la(tf(this.r),tf(this.g),tf(this.b),sy(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:OO,formatHex:OO,formatHex8:dwe,formatRgb:IO,toString:IO}));function OO(){return`#${nf(this.r)}${nf(this.g)}${nf(this.b)}`}function dwe(){return`#${nf(this.r)}${nf(this.g)}${nf(this.b)}${nf((isNaN(this.opacity)?1:this.opacity)*255)}`}function IO(){const e=sy(this.opacity);return`${e===1?"rgb(":"rgba("}${tf(this.r)}, ${tf(this.g)}, ${tf(this.b)}${e===1?")":`, ${e})`}`}function sy(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function tf(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function nf(e){return e=tf(e),(e<16?"0":"")+e.toString(16)}function DO(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ll(e,t,n,r)}function UO(e){if(e instanceof ll)return new ll(e.h,e.s,e.l,e.opacity);if(e instanceof wA||(e=ef(e)),!e)return new ll;if(e instanceof ll)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,u=(a+i)/2;return s?(t===a?o=(n-r)/s+(n<r)*6:n===a?o=(r-t)/s+2:o=(t-n)/s+4,s/=u<.5?a+i:2-a-i,o*=60):s=u>0&&u<1?0:o,new ll(o,s,u,e.opacity)}function FB(e,t,n,r){return arguments.length===1?UO(e):new ll(e,t,n,r??1)}function ll(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Uh(ll,FB,og(wA,{brighter(e){return e=e==null?Ph:Math.pow(Ph,e),new ll(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?$d:Math.pow($d,e),new ll(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,i=2*n-r;return new la(OB(e>=240?e-240:e+120,i,r),OB(e,i,r),OB(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new ll(PO(this.h),ly(this.s),ly(this.l),sy(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=sy(this.opacity);return`${e===1?"hsl(":"hsla("}${PO(this.h)}, ${ly(this.s)*100}%, ${ly(this.l)*100}%${e===1?")":`, ${e})`}`}}));function PO(e){return e=(e||0)%360,e<0?e+360:e}function ly(e){return Math.max(0,Math.min(1,e||0))}function OB(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 HO=Math.PI/180,YO=180/Math.PI,uy=18,RO=.96422,QO=1,jO=.82521,VO=4/29,Yh=6/29,zO=3*Yh*Yh,fwe=Yh*Yh*Yh;function qO(e){if(e instanceof du)return new du(e.l,e.a,e.b,e.opacity);if(e instanceof cc)return KO(e);e instanceof la||(e=NB(e));var t=HB(e.r),n=HB(e.g),r=HB(e.b),i=DB((.2225045*t+.7168786*n+.0606169*r)/QO),a,o;return t===n&&n===r?a=o=i:(a=DB((.4360747*t+.3850649*n+.1430804*r)/RO),o=DB((.0139322*t+.0971045*n+.7141733*r)/jO)),new du(116*i-16,500*(a-i),200*(i-o),e.opacity)}function IB(e,t,n,r){return arguments.length===1?qO(e):new du(e,t,n,r??1)}function du(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}Uh(du,IB,og(wA,{brighter(e){return new du(this.l+uy*(e??1),this.a,this.b,this.opacity)},darker(e){return new du(this.l-uy*(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=RO*UB(t),e=QO*UB(e),n=jO*UB(n),new la(PB(3.1338561*t-1.6168667*e-.4906146*n),PB(-.9787684*t+1.9161415*e+.033454*n),PB(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}}));function DB(e){return e>fwe?Math.pow(e,1/3):e/zO+VO}function UB(e){return e>Yh?e*e*e:zO*(e-VO)}function PB(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function HB(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function hwe(e){if(e instanceof cc)return new cc(e.h,e.c,e.l,e.opacity);if(e instanceof du||(e=qO(e)),e.a===0&&e.b===0)return new cc(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*YO;return new cc(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function YB(e,t,n,r){return arguments.length===1?hwe(e):new cc(e,t,n,r??1)}function cc(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function KO(e){if(isNaN(e.h))return new du(e.l,0,0,e.opacity);var t=e.h*HO;return new du(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Uh(cc,YB,og(wA,{brighter(e){return new cc(this.h,this.c,this.l+uy*(e??1),this.opacity)},darker(e){return new cc(this.h,this.c,this.l-uy*(e??1),this.opacity)},rgb(){return KO(this).rgb()}}));var GO=-.14861,RB=1.78277,QB=-.29227,cy=-.90649,lg=1.97294,WO=lg*cy,XO=lg*RB,JO=RB*QB-cy*GO;function pwe(e){if(e instanceof rf)return new rf(e.h,e.s,e.l,e.opacity);e instanceof la||(e=NB(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(JO*r+WO*t-XO*n)/(JO+WO-XO),a=r-i,o=(lg*(n-i)-QB*a)/cy,s=Math.sqrt(o*o+a*a)/(lg*i*(1-i)),u=s?Math.atan2(o,a)*YO-120:NaN;return new rf(u<0?u+360:u,s,i,e.opacity)}function fu(e,t,n,r){return arguments.length===1?pwe(e):new rf(e,t,n,r??1)}function rf(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Uh(rf,fu,og(wA,{brighter(e){return e=e==null?Ph:Math.pow(Ph,e),new rf(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?$d:Math.pow($d,e),new rf(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*HO,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new la(255*(t+n*(GO*r+RB*i)),255*(t+n*(QB*r+cy*i)),255*(t+n*(lg*r)),this.opacity)}}));function mwe(e,t,n,r,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*n+(1+3*e+3*a-3*o)*r+o*i)/6}function gwe(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),i=e[r],a=e[r+1],o=r>0?e[r-1]:2*i-a,s=r<t-1?e[r+2]:2*a-i;return mwe((n-r/t)*t,o,i,a,s)}}const Ay=e=>()=>e;function ZO(e,t){return function(n){return e+n*t}}function vwe(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 jB(e,t){var n=t-e;return n?ZO(e,n>180||n<-180?n-360*Math.round(n/360):n):Ay(isNaN(e)?t:e)}function ywe(e){return(e=+e)==1?Ha:function(t,n){return n-t?vwe(t,n,e):Ay(isNaN(t)?n:t)}}function Ha(e,t){var n=t-e;return n?ZO(e,n):Ay(isNaN(e)?t:e)}const af=function e(t){var n=ywe(t);function r(i,a){var o=n((i=BA(i)).r,(a=BA(a)).r),s=n(i.g,a.g),u=n(i.b,a.b),c=Ha(i.opacity,a.opacity);return function(A){return i.r=o(A),i.g=s(A),i.b=u(A),i.opacity=c(A),i+""}}return r.gamma=e,r}(1);function _we(e){return function(t){var n=t.length,r=new Array(n),i=new Array(n),a=new Array(n),o,s;for(o=0;o<n;++o)s=BA(t[o]),r[o]=s.r||0,i[o]=s.g||0,a[o]=s.b||0;return r=e(r),i=e(i),a=e(a),s.opacity=1,function(u){return s.r=r(u),s.g=i(u),s.b=a(u),s+""}}}var bwe=_we(gwe);function wwe(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function Bwe(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function xwe(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),a=new Array(n),o;for(o=0;o<r;++o)i[o]=hu(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(s){for(o=0;o<r;++o)a[o]=i[o](s);return a}}function Cwe(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Ya(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Swe(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=hu(e[i],t[i]):r[i]=t[i];return function(a){for(i in n)r[i]=n[i](a);return r}}var VB=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,zB=new RegExp(VB.source,"g");function kwe(e){return function(){return e}}function Mwe(e){return function(t){return e(t)+""}}function $O(e,t){var n=VB.lastIndex=zB.lastIndex=0,r,i,a,o=-1,s=[],u=[];for(e=e+"",t=t+"";(r=VB.exec(e))&&(i=zB.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,u.push({i:o,x:Ya(r,i)})),n=zB.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?u[0]?Mwe(u[0].x):kwe(t):(t=u.length,function(c){for(var A=0,f;A<t;++A)s[(f=u[A]).i]=f.x(c);return s.join("")})}function hu(e,t){var n=typeof t,r;return t==null||n==="boolean"?Ay(t):(n==="number"?Ya:n==="string"?(r=ef(t))?(t=r,af):$O:t instanceof ef?af:t instanceof Date?Cwe:Bwe(t)?wwe:Array.isArray(t)?xwe:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Swe:Ya)(e,t)}function dy(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var e7=180/Math.PI,qB={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function t7(e,t,n,r,i,a){var o,s,u;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(u=e*n+t*r)&&(n-=e*u,r-=t*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),e*r<t*n&&(e=-e,t=-t,u=-u,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*e7,skewX:Math.atan(u)*e7,scaleX:o,scaleY:s}}var fy;function Ewe(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?qB:t7(t.a,t.b,t.c,t.d,t.e,t.f)}function Lwe(e){return e==null||(fy||(fy=document.createElementNS("http://www.w3.org/2000/svg","g")),fy.setAttribute("transform",e),!(e=fy.transform.baseVal.consolidate()))?qB:(e=e.matrix,t7(e.a,e.b,e.c,e.d,e.e,e.f))}function n7(e,t,n,r){function i(c){return c.length?c.pop()+" ":""}function a(c,A,f,h,d,m){if(c!==f||A!==h){var p=d.push("translate(",null,t,null,n);m.push({i:p-4,x:Ya(c,f)},{i:p-2,x:Ya(A,h)})}else(f||h)&&d.push("translate("+f+t+h+n)}function o(c,A,f,h){c!==A?(c-A>180?A+=360:A-c>180&&(c+=360),h.push({i:f.push(i(f)+"rotate(",null,r)-2,x:Ya(c,A)})):A&&f.push(i(f)+"rotate("+A+r)}function s(c,A,f,h){c!==A?h.push({i:f.push(i(f)+"skewX(",null,r)-2,x:Ya(c,A)}):A&&f.push(i(f)+"skewX("+A+r)}function u(c,A,f,h,d,m){if(c!==f||A!==h){var p=d.push(i(d)+"scale(",null,",",null,")");m.push({i:p-4,x:Ya(c,f)},{i:p-2,x:Ya(A,h)})}else(f!==1||h!==1)&&d.push(i(d)+"scale("+f+","+h+")")}return function(c,A){var f=[],h=[];return c=e(c),A=e(A),a(c.translateX,c.translateY,A.translateX,A.translateY,f,h),o(c.rotate,A.rotate,f,h),s(c.skewX,A.skewX,f,h),u(c.scaleX,c.scaleY,A.scaleX,A.scaleY,f,h),c=A=null,function(d){for(var m=-1,p=h.length,g;++m<p;)f[(g=h[m]).i]=g.x(d);return f.join("")}}}var Twe=n7(Ewe,"px, ","px)","deg)"),Nwe=n7(Lwe,", ",")",")");function Fwe(e){return function(t,n){var r=e((t=FB(t)).h,(n=FB(n)).h),i=Ha(t.s,n.s),a=Ha(t.l,n.l),o=Ha(t.opacity,n.opacity);return function(s){return t.h=r(s),t.s=i(s),t.l=a(s),t.opacity=o(s),t+""}}}const Owe=Fwe(jB);function Iwe(e,t){var n=Ha((e=IB(e)).l,(t=IB(t)).l),r=Ha(e.a,t.a),i=Ha(e.b,t.b),a=Ha(e.opacity,t.opacity);return function(o){return e.l=n(o),e.a=r(o),e.b=i(o),e.opacity=a(o),e+""}}function Dwe(e){return function(t,n){var r=e((t=YB(t)).h,(n=YB(n)).h),i=Ha(t.c,n.c),a=Ha(t.l,n.l),o=Ha(t.opacity,n.opacity);return function(s){return t.h=r(s),t.c=i(s),t.l=a(s),t.opacity=o(s),t+""}}}const Uwe=Dwe(jB);function r7(e){return function t(n){n=+n;function r(i,a){var o=e((i=fu(i)).h,(a=fu(a)).h),s=Ha(i.s,a.s),u=Ha(i.l,a.l),c=Ha(i.opacity,a.opacity);return function(A){return i.h=o(A),i.s=s(A),i.l=u(Math.pow(A,n)),i.opacity=c(A),i+""}}return r.gamma=t,r}(1)}r7(jB);var KB=r7(Ha);function hy(e,t){t===void 0&&(t=e,e=hu);for(var n=0,r=t.length-1,i=t[0],a=new Array(r<0?0:r);n<r;)a[n]=e(i,i=t[++n]);return function(o){var s=Math.max(0,Math.min(r-1,Math.floor(o*=r)));return a[s](o-s)}}function ul(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e(r/(t-1));return n}var Rh=0,ug=0,cg=0,i7=1e3,py,Ag,my=0,of=0,gy=0,dg=typeof performance=="object"&&performance.now?performance:Date,a7=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function GB(){return of||(a7(Pwe),of=dg.now()+gy)}function Pwe(){of=0}function vy(){this._call=this._time=this._next=null}vy.prototype=o7.prototype={constructor:vy,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?GB():+n)+(t==null?0:+t),!this._next&&Ag!==this&&(Ag?Ag._next=this:py=this,Ag=this),this._call=e,this._time=n,WB()},stop:function(){this._call&&(this._call=null,this._time=1/0,WB())}};function o7(e,t,n){var r=new vy;return r.restart(e,t,n),r}function Hwe(){GB(),++Rh;for(var e=py,t;e;)(t=of-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Rh}function s7(){of=(my=dg.now())+gy,Rh=ug=0;try{Hwe()}finally{Rh=0,Rwe(),of=0}}function Ywe(){var e=dg.now(),t=e-my;t>i7&&(gy-=t,my=e)}function Rwe(){for(var e,t=py,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:py=n);Ag=e,WB(r)}function WB(e){if(!Rh){ug&&(ug=clearTimeout(ug));var t=e-of;t>24?(e<1/0&&(ug=setTimeout(s7,e-dg.now()-gy)),cg&&(cg=clearInterval(cg))):(cg||(my=dg.now(),cg=setInterval(Ywe,i7)),Rh=1,a7(s7))}}function l7(e,t,n){var r=new vy;return t=t==null?0:+t,r.restart(i=>{r.stop(),e(i+t)},t,n),r}var Qwe=xB("start","end","cancel","interrupt"),jwe=[],u7=0,c7=1,XB=2,yy=3,A7=4,JB=5,_y=6;function by(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;Vwe(e,n,{name:t,index:r,group:i,on:Qwe,tween:jwe,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:u7})}function ZB(e,t){var n=cl(e,t);if(n.state>u7)throw new Error("too late; already scheduled");return n}function pu(e,t){var n=cl(e,t);if(n.state>yy)throw new Error("too late; already running");return n}function cl(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function Vwe(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=o7(a,0,n.time);function a(c){n.state=c7,n.timer.restart(o,n.delay,n.time),n.delay<=c&&o(c-n.delay)}function o(c){var A,f,h,d;if(n.state!==c7)return u();for(A in r)if(d=r[A],d.name===n.name){if(d.state===yy)return l7(o);d.state===A7?(d.state=_y,d.timer.stop(),d.on.call("interrupt",e,e.__data__,d.index,d.group),delete r[A]):+A<t&&(d.state=_y,d.timer.stop(),d.on.call("cancel",e,e.__data__,d.index,d.group),delete r[A])}if(l7(function(){n.state===yy&&(n.state=A7,n.timer.restart(s,n.delay,n.time),s(c))}),n.state=XB,n.on.call("start",e,e.__data__,n.index,n.group),n.state===XB){for(n.state=yy,i=new Array(h=n.tween.length),A=0,f=-1;A<h;++A)(d=n.tween[A].value.call(e,e.__data__,n.index,n.group))&&(i[++f]=d);i.length=f+1}}function s(c){for(var A=c<n.duration?n.ease.call(null,c/n.duration):(n.timer.restart(u),n.state=JB,1),f=-1,h=i.length;++f<h;)i[f].call(e,A);n.state===JB&&(n.on.call("end",e,e.__data__,n.index,n.group),u())}function u(){n.state=_y,n.timer.stop(),delete r[t];for(var c in r)return;delete e.__transition}}function $B(e,t){var n=e.__transition,r,i,a=!0,o;if(n){t=t==null?null:t+"";for(o in n){if((r=n[o]).name!==t){a=!1;continue}i=r.state>XB&&r.state<JB,r.state=_y,r.timer.stop(),r.on.call(i?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}function zwe(e){return this.each(function(){$B(this,e)})}function qwe(e,t){var n,r;return function(){var i=pu(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function Kwe(e,t,n){var r,i;if(typeof n!="function")throw new Error;return function(){var a=pu(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},u=0,c=i.length;u<c;++u)if(i[u].name===t){i[u]=s;break}u===c&&i.push(s)}a.tween=i}}function Gwe(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=cl(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?qwe:Kwe)(n,e,t))}function ex(e,t,n){var r=e._id;return e.each(function(){var i=pu(this,r);(i.value||(i.value={}))[t]=n.apply(this,arguments)}),function(i){return cl(i,r).value[t]}}function d7(e,t){var n;return(typeof t=="number"?Ya:t instanceof ef?af:(n=ef(t))?(t=n,af):$O)(e,t)}function Wwe(e){return function(){this.removeAttribute(e)}}function Xwe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Jwe(e,t,n){var r,i=n+"",a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function Zwe(e,t,n){var r,i=n+"",a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function $we(e,t,n){var r,i,a;return function(){var o,s=n(this),u;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),u=s+"",o===u?null:o===r&&u===i?a:(i=u,a=t(r=o,s)))}}function e5e(e,t,n){var r,i,a;return function(){var o,s=n(this),u;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),u=s+"",o===u?null:o===r&&u===i?a:(i=u,a=t(r=o,s)))}}function t5e(e,t){var n=ry(e),r=n==="transform"?Nwe:d7;return this.attrTween(e,typeof t=="function"?(n.local?e5e:$we)(n,r,ex(this,"attr."+e,t)):t==null?(n.local?Xwe:Wwe)(n):(n.local?Zwe:Jwe)(n,r,t))}function n5e(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function r5e(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function i5e(e,t){var n,r;function i(){var a=t.apply(this,arguments);return a!==r&&(n=(r=a)&&r5e(e,a)),n}return i._value=t,i}function a5e(e,t){var n,r;function i(){var a=t.apply(this,arguments);return a!==r&&(n=(r=a)&&n5e(e,a)),n}return i._value=t,i}function o5e(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=ry(e);return this.tween(n,(r.local?i5e:a5e)(r,t))}function s5e(e,t){return function(){ZB(this,e).delay=+t.apply(this,arguments)}}function l5e(e,t){return t=+t,function(){ZB(this,e).delay=t}}function u5e(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?s5e:l5e)(t,e)):cl(this.node(),t).delay}function c5e(e,t){return function(){pu(this,e).duration=+t.apply(this,arguments)}}function A5e(e,t){return t=+t,function(){pu(this,e).duration=t}}function d5e(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?c5e:A5e)(t,e)):cl(this.node(),t).duration}function f5e(e,t){if(typeof t!="function")throw new Error;return function(){pu(this,e).ease=t}}function h5e(e){var t=this._id;return arguments.length?this.each(f5e(t,e)):cl(this.node(),t).ease}function p5e(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;pu(this,e).ease=n}}function m5e(e){if(typeof e!="function")throw new Error;return this.each(p5e(this._id,e))}function g5e(e){typeof e!="function"&&(e=bO(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],u,c=0;c<o;++c)(u=a[c])&&e.call(u,u.__data__,c,a)&&s.push(u);return new Ac(r,this._parents,this._name,this._id)}function v5e(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=new Array(r),s=0;s<a;++s)for(var u=t[s],c=n[s],A=u.length,f=o[s]=new Array(A),h,d=0;d<A;++d)(h=u[d]||c[d])&&(f[d]=h);for(;s<r;++s)o[s]=t[s];return new Ac(o,this._parents,this._name,this._id)}function y5e(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 _5e(e,t,n){var r,i,a=y5e(t)?ZB:pu;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function b5e(e,t){var n=this._id;return arguments.length<2?cl(this.node(),n).on.on(e):this.each(_5e(n,e,t))}function w5e(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function B5e(){return this.on("end.remove",w5e(this._id))}function x5e(e){var t=this._name,n=this._id;typeof e!="function"&&(e=SB(e));for(var r=this._groups,i=r.length,a=new Array(i),o=0;o<i;++o)for(var s=r[o],u=s.length,c=a[o]=new Array(u),A,f,h=0;h<u;++h)(A=s[h])&&(f=e.call(A,A.__data__,h,s))&&("__data__"in A&&(f.__data__=A.__data__),c[h]=f,by(c[h],t,n,h,c,cl(A,n)));return new Ac(a,this._parents,t,n)}function C5e(e){var t=this._name,n=this._id;typeof e!="function"&&(e=_O(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var u=r[s],c=u.length,A,f=0;f<c;++f)if(A=u[f]){for(var h=e.call(A,A.__data__,f,u),d,m=cl(A,n),p=0,g=h.length;p<g;++p)(d=h[p])&&by(d,t,n,p,h,m);a.push(h),o.push(A)}return new Ac(a,o,t,n)}var S5e=ag.prototype.constructor;function k5e(){return new S5e(this._groups,this._parents)}function M5e(e,t){var n,r,i;return function(){var a=Dh(this,e),o=(this.style.removeProperty(e),Dh(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function f7(e){return function(){this.style.removeProperty(e)}}function E5e(e,t,n){var r,i=n+"",a;return function(){var o=Dh(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function L5e(e,t,n){var r,i,a;return function(){var o=Dh(this,e),s=n(this),u=s+"";return s==null&&(u=s=(this.style.removeProperty(e),Dh(this,e))),o===u?null:o===r&&u===i?a:(i=u,a=t(r=o,s))}}function T5e(e,t){var n,r,i,a="style."+t,o="end."+a,s;return function(){var u=pu(this,e),c=u.on,A=u.value[a]==null?s||(s=f7(t)):void 0;(c!==n||i!==A)&&(r=(n=c).copy()).on(o,i=A),u.on=r}}function N5e(e,t,n){var r=(e+="")=="transform"?Twe:d7;return t==null?this.styleTween(e,M5e(e,r)).on("end.style."+e,f7(e)):typeof t=="function"?this.styleTween(e,L5e(e,r,ex(this,"style."+e,t))).each(T5e(this._id,e)):this.styleTween(e,E5e(e,r,t),n).on("end.style."+e,null)}function F5e(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function O5e(e,t,n){var r,i;function a(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&F5e(e,o,n)),r}return a._value=t,a}function I5e(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,O5e(e,t,n??""))}function D5e(e){return function(){this.textContent=e}}function U5e(e){return function(){var t=e(this);this.textContent=t??""}}function P5e(e){return this.tween("text",typeof e=="function"?U5e(ex(this,"text",e)):D5e(e==null?"":e+""))}function H5e(e){return function(t){this.textContent=e.call(this,t)}}function Y5e(e){var t,n;function r(){var i=e.apply(this,arguments);return i!==n&&(t=(n=i)&&H5e(i)),t}return r._value=e,r}function R5e(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,Y5e(e))}function Q5e(){for(var e=this._name,t=this._id,n=h7(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,u,c=0;c<s;++c)if(u=o[c]){var A=cl(u,t);by(u,e,n,c,o,{time:A.time+A.delay+A.duration,delay:0,duration:A.duration,ease:A.ease})}return new Ac(r,this._parents,e,n)}function j5e(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},u={value:function(){--i===0&&a()}};n.each(function(){var c=pu(this,r),A=c.on;A!==e&&(t=(e=A).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(u)),c.on=t}),i===0&&a()})}var V5e=0;function Ac(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function h7(){return++V5e}var dc=ag.prototype;Ac.prototype={constructor:Ac,select:x5e,selectAll:C5e,selectChild:dc.selectChild,selectChildren:dc.selectChildren,filter:g5e,merge:v5e,selection:k5e,transition:Q5e,call:dc.call,nodes:dc.nodes,node:dc.node,size:dc.size,empty:dc.empty,each:dc.each,on:b5e,attr:t5e,attrTween:o5e,style:N5e,styleTween:I5e,text:P5e,textTween:R5e,remove:B5e,tween:Gwe,delay:u5e,duration:d5e,ease:h5e,easeVarying:m5e,end:j5e,[Symbol.iterator]:dc[Symbol.iterator]};const z5e=e=>+e;function q5e(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var K5e={time:null,delay:0,duration:250,ease:q5e};function G5e(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 W5e(e){var t,n;e instanceof Ac?(t=e._id,e=e._name):(t=h7(),(n=K5e).time=GB(),e=e==null?null:e+"");for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,u,c=0;c<s;++c)(u=o[c])&&by(u,e,t,c,o,n||G5e(u,t));return new Ac(r,this._parents,e,t)}ag.prototype.interrupt=zwe,ag.prototype.transition=W5e;const tx=e=>()=>e;function X5e(e,{sourceEvent:t,target:n,selection:r,mode:i,dispatch:a}){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:i,enumerable:!0,configurable:!0},_:{value:a}})}function J5e(e){e.stopImmediatePropagation()}function nx(e){e.preventDefault(),e.stopImmediatePropagation()}var p7={name:"drag"},rx={name:"space"},Qh={name:"handle"},jh={name:"center"};const{abs:m7,max:Ra,min:Qa}=Math;function g7(e){return[+e[0],+e[1]]}function v7(e){return[g7(e[0]),g7(e[1])]}var wy={name:"x",handles:["w","e"].map(ax),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]]}},ix={},fc={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"},y7={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},_7={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},Z5e={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},$5e={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function ax(e){return{type:e}}function eBe(e){return!e.ctrlKey&&!e.button}function tBe(){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 nBe(){return navigator.maxTouchPoints||"ontouchstart"in this}function ox(e){for(;!e.__brush;)if(!(e=e.parentNode))return;return e.__brush}function rBe(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}function iBe(){return aBe(wy)}function aBe(e){var t=tBe,n=eBe,r=nBe,i=!0,a=xB("start","brush","end"),o=6,s;function u(g){var y=g.property("__brush",p).selectAll(".overlay").data([ax("overlay")]);y.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",fc.overlay).merge(y).each(function(){var _=ox(this).extent;zt(this).attr("x",_[0][0]).attr("y",_[0][1]).attr("width",_[1][0]-_[0][0]).attr("height",_[1][1]-_[0][1])}),g.selectAll(".selection").data([ax("selection")]).enter().append("rect").attr("class","selection").attr("cursor",fc.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var v=g.selectAll(".handle").data(e.handles,function(_){return _.type});v.exit().remove(),v.enter().append("rect").attr("class",function(_){return"handle handle--"+_.type}).attr("cursor",function(_){return fc[_.type]}),g.each(c).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",h).filter(r).on("touchstart.brush",h).on("touchmove.brush",d).on("touchend.brush touchcancel.brush",m).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}u.move=function(g,y,v){g.tween?g.on("start.brush",function(_){A(this,arguments).beforestart().start(_)}).on("interrupt.brush end.brush",function(_){A(this,arguments).end(_)}).tween("brush",function(){var _=this,b=_.__brush,w=A(_,arguments),M=b.selection,x=e.input(typeof y=="function"?y.apply(this,arguments):y,b.extent),L=hu(M,x);function N(H){b.selection=H===1&&x===null?null:L(H),c.call(_),w.brush()}return M!==null&&x!==null?N:N(1)}):g.each(function(){var _=this,b=arguments,w=_.__brush,M=e.input(typeof y=="function"?y.apply(_,b):y,w.extent),x=A(_,b).beforestart();$B(_),w.selection=M===null?null:M,c.call(_),x.start(v).brush(v).end(v)})},u.clear=function(g,y){u.move(g,null,y)};function c(){var g=zt(this),y=ox(this).selection;y?(g.selectAll(".selection").style("display",null).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]),g.selectAll(".handle").style("display",null).attr("x",function(v){return v.type[v.type.length-1]==="e"?y[1][0]-o/2:y[0][0]-o/2}).attr("y",function(v){return v.type[0]==="s"?y[1][1]-o/2:y[0][1]-o/2}).attr("width",function(v){return v.type==="n"||v.type==="s"?y[1][0]-y[0][0]+o:o}).attr("height",function(v){return v.type==="e"||v.type==="w"?y[1][1]-y[0][1]+o:o})):g.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function A(g,y,v){var _=g.__brush.emitter;return _&&(!v||!_.clean)?_:new f(g,y,v)}function f(g,y,v){this.that=g,this.args=y,this.state=g.__brush,this.active=0,this.clean=v}f.prototype={beforestart:function(){return++this.active===1&&(this.state.emitter=this,this.starting=!0),this},start:function(g,y){return this.starting?(this.starting=!1,this.emit("start",g,y)):this.emit("brush",g),this},brush:function(g,y){return this.emit("brush",g,y),this},end:function(g,y){return--this.active===0&&(delete this.state.emitter,this.emit("end",g,y)),this},emit:function(g,y,v){var _=zt(this.that).datum();a.call(g,this.that,new X5e(g,{sourceEvent:y,target:u,selection:e.output(this.state.selection),mode:v,dispatch:a}),_)}};function h(g){if(s&&!g.touches||!n.apply(this,arguments))return;var y=this,v=g.target.__data__.type,_=(i&&g.metaKey?v="overlay":v)==="selection"?p7:i&&g.altKey?jh:Qh,b=e===ix?null:Z5e[v],w=e===wy?null:$5e[v],M=ox(y),x=M.extent,L=M.selection,N=x[0][0],H,S,F=x[0][1],I,E,P=x[1][0],K,q,z=x[1][1],J,ie,X=0,D=0,W,ee=b&&w&&i&&g.shiftKey,ne,he,pe=Array.from(g.touches||[g],$=>{const Z=$.identifier;return $=EB($,y),$.point0=$.slice(),$.identifier=Z,$});$B(y);var ve=A(y,arguments,!0).beforestart();if(v==="overlay"){L&&(W=!0);const $=[pe[0],pe[1]||pe[0]];M.selection=L=[[H=e===ix?N:Qa($[0][0],$[1][0]),I=e===wy?F:Qa($[0][1],$[1][1])],[K=e===ix?P:Ra($[0][0],$[1][0]),J=e===wy?z:Ra($[0][1],$[1][1])]],pe.length>1&&Pe(g)}else H=L[0][0],I=L[0][1],K=L[1][0],J=L[1][1];S=H,E=I,q=K,ie=J;var ue=zt(y).attr("pointer-events","none"),_e=ue.selectAll(".overlay").attr("cursor",fc[v]);if(g.touches)ve.moved=Me,ve.ended=Q;else{var Le=zt(g.view).on("mousemove.brush",Me,!0).on("mouseup.brush",Q,!0);i&&Le.on("keydown.brush",te,!0).on("keyup.brush",ce,!0),twe(g.view)}c.call(y),ve.start(g,_.name);function Me($){for(const Z of $.changedTouches||[$])for(const ae of pe)ae.identifier===Z.identifier&&(ae.cur=EB(Z,y));if(ee&&!ne&&!he&&pe.length===1){const Z=pe[0];m7(Z.cur[0]-Z[0])>m7(Z.cur[1]-Z[1])?he=!0:ne=!0}for(const Z of pe)Z.cur&&(Z[0]=Z.cur[0],Z[1]=Z.cur[1]);W=!0,nx($),Pe($)}function Pe($){const Z=pe[0],ae=Z.point0;var Be;switch(X=Z[0]-ae[0],D=Z[1]-ae[1],_){case rx:case p7:{b&&(X=Ra(N-H,Qa(P-K,X)),S=H+X,q=K+X),w&&(D=Ra(F-I,Qa(z-J,D)),E=I+D,ie=J+D);break}case Qh:{pe[1]?(b&&(S=Ra(N,Qa(P,pe[0][0])),q=Ra(N,Qa(P,pe[1][0])),b=1),w&&(E=Ra(F,Qa(z,pe[0][1])),ie=Ra(F,Qa(z,pe[1][1])),w=1)):(b<0?(X=Ra(N-H,Qa(P-H,X)),S=H+X,q=K):b>0&&(X=Ra(N-K,Qa(P-K,X)),S=H,q=K+X),w<0?(D=Ra(F-I,Qa(z-I,D)),E=I+D,ie=J):w>0&&(D=Ra(F-J,Qa(z-J,D)),E=I,ie=J+D));break}case jh:{b&&(S=Ra(N,Qa(P,H-X*b)),q=Ra(N,Qa(P,K+X*b))),w&&(E=Ra(F,Qa(z,I-D*w)),ie=Ra(F,Qa(z,J+D*w)));break}}q<S&&(b*=-1,Be=H,H=K,K=Be,Be=S,S=q,q=Be,v in y7&&_e.attr("cursor",fc[v=y7[v]])),ie<E&&(w*=-1,Be=I,I=J,J=Be,Be=E,E=ie,ie=Be,v in _7&&_e.attr("cursor",fc[v=_7[v]])),M.selection&&(L=M.selection),ne&&(S=L[0][0],q=L[1][0]),he&&(E=L[0][1],ie=L[1][1]),(L[0][0]!==S||L[0][1]!==E||L[1][0]!==q||L[1][1]!==ie)&&(M.selection=[[S,E],[q,ie]],c.call(y),ve.brush($,_.name))}function Q($){if(J5e($),$.touches){if($.touches.length)return;s&&clearTimeout(s),s=setTimeout(function(){s=null},500)}else nwe($.view,W),Le.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);ue.attr("pointer-events","all"),_e.attr("cursor",fc.overlay),M.selection&&(L=M.selection),rBe(L)&&(M.selection=null,c.call(y)),ve.end($,_.name)}function te($){switch($.keyCode){case 16:{ee=b&&w;break}case 18:{_===Qh&&(b&&(K=q-X*b,H=S+X*b),w&&(J=ie-D*w,I=E+D*w),_=jh,Pe($));break}case 32:{(_===Qh||_===jh)&&(b<0?K=q-X:b>0&&(H=S-X),w<0?J=ie-D:w>0&&(I=E-D),_=rx,_e.attr("cursor",fc.selection),Pe($));break}default:return}nx($)}function ce($){switch($.keyCode){case 16:{ee&&(ne=he=ee=!1,Pe($));break}case 18:{_===jh&&(b<0?K=q:b>0&&(H=S),w<0?J=ie:w>0&&(I=E),_=Qh,Pe($));break}case 32:{_===rx&&($.altKey?(b&&(K=q-X*b,H=S+X*b),w&&(J=ie-D*w,I=E+D*w),_=jh):(b<0?K=q:b>0&&(H=S),w<0?J=ie:w>0&&(I=E),_=Qh),_e.attr("cursor",fc[v]),Pe($));break}default:return}nx($)}}function d(g){A(this,arguments).moved(g)}function m(g){A(this,arguments).ended(g)}function p(){var g=this.__brush||{selection:null};return g.extent=v7(t.apply(this,arguments)),g.dim=e,g}return u.extent=function(g){return arguments.length?(t=typeof g=="function"?g:tx(v7(g)),u):t},u.filter=function(g){return arguments.length?(n=typeof g=="function"?g:tx(!!g),u):n},u.touchable=function(g){return arguments.length?(r=typeof g=="function"?g:tx(!!g),u):r},u.handleSize=function(g){return arguments.length?(o=+g,u):o},u.keyModifiers=function(g){return arguments.length?(i=!!g,u):i},u.on=function(){var g=a.on.apply(a,arguments);return g===a?u:g},u}const sx=Math.PI,lx=2*sx,sf=1e-6,oBe=lx-sf;function b7(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function sBe(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return b7;const n=10**t;return function(r){this._+=r[0];for(let i=1,a=r.length;i<a;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class w7{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?b7:sBe(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,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,a,o){this._append`C${+t},${+n},${+r},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,n,r,i,a){if(t=+t,n=+n,r=+r,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,s=this._y1,u=r-t,c=i-n,A=o-t,f=s-n,h=A*A+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(h>sf)if(!(Math.abs(f*u-c*A)>sf)||!a)this._append`L${this._x1=t},${this._y1=n}`;else{let d=r-o,m=i-s,p=u*u+c*c,g=d*d+m*m,y=Math.sqrt(p),v=Math.sqrt(h),_=a*Math.tan((sx-Math.acos((p+h-g)/(2*y*v)))/2),b=_/v,w=_/y;Math.abs(b-1)>sf&&this._append`L${t+b*A},${n+b*f}`,this._append`A${a},${a},0,0,${+(f*d>A*m)},${this._x1=t+w*u},${this._y1=n+w*c}`}}arc(t,n,r,i,a,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),u=r*Math.sin(i),c=t+s,A=n+u,f=1^o,h=o?i-a:a-i;this._x1===null?this._append`M${c},${A}`:(Math.abs(this._x1-c)>sf||Math.abs(this._y1-A)>sf)&&this._append`L${c},${A}`,r&&(h<0&&(h=h%lx+lx),h>oBe?this._append`A${r},${r},0,1,${f},${t-s},${n-u}A${r},${r},0,1,${f},${this._x1=c},${this._y1=A}`:h>sf&&this._append`A${r},${r},0,${+(h>=sx)},${f},${this._x1=t+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function lf(e=3){return new w7(+e)}function lBe(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function By(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 Vh(e){return e=By(Math.abs(e)),e?e[1]:NaN}function uBe(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],u=0;i>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),a.push(n.substring(i-=s,i+s)),!((u+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function cBe(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var ABe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function fg(e){if(!(t=ABe.exec(e)))throw new Error("invalid format: "+e);var t;return new ux({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]})}fg.prototype=ux.prototype;function ux(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+""}ux.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 dBe(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var B7;function fBe(e,t){var n=By(e,t);if(!n)return e+"";var r=n[0],i=n[1],a=i-(B7=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+By(e,Math.max(0,t+a-1))[0]}function x7(e,t){var n=By(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const C7={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:lBe,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)=>x7(e*100,t),r:x7,s:fBe,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function S7(e){return e}var k7=Array.prototype.map,M7=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function hBe(e){var t=e.grouping===void 0||e.thousands===void 0?S7:uBe(k7.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?S7:cBe(k7.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function c(f){f=fg(f);var h=f.fill,d=f.align,m=f.sign,p=f.symbol,g=f.zero,y=f.width,v=f.comma,_=f.precision,b=f.trim,w=f.type;w==="n"?(v=!0,w="g"):C7[w]||(_===void 0&&(_=12),b=!0,w="g"),(g||h==="0"&&d==="=")&&(g=!0,h="0",d="=");var M=p==="$"?n:p==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",x=p==="$"?r:/[%p]/.test(w)?o:"",L=C7[w],N=/[defgprs%]/.test(w);_=_===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function H(S){var F=M,I=x,E,P,K;if(w==="c")I=L(S)+I,S="";else{S=+S;var q=S<0||1/S<0;if(S=isNaN(S)?u:L(Math.abs(S),_),b&&(S=dBe(S)),q&&+S==0&&m!=="+"&&(q=!1),F=(q?m==="("?m:s:m==="-"||m==="("?"":m)+F,I=(w==="s"?M7[8+B7/3]:"")+I+(q&&m==="("?")":""),N){for(E=-1,P=S.length;++E<P;)if(K=S.charCodeAt(E),48>K||K>57){I=(K===46?i+S.slice(E+1):S.slice(E))+I,S=S.slice(0,E);break}}}v&&!g&&(S=t(S,1/0));var z=F.length+S.length+I.length,J=z<y?new Array(y-z+1).join(h):"";switch(v&&g&&(S=t(J+S,J.length?y-I.length:1/0),J=""),d){case"<":S=F+S+I+J;break;case"=":S=F+J+S+I;break;case"^":S=J.slice(0,z=J.length>>1)+F+S+I+J.slice(z);break;default:S=J+F+S+I;break}return a(S)}return H.toString=function(){return f+""},H}function A(f,h){var d=c((f=fg(f),f.type="f",f)),m=Math.max(-8,Math.min(8,Math.floor(Vh(h)/3)))*3,p=Math.pow(10,-m),g=M7[8+m/3];return function(y){return d(p*y)+g}}return{format:c,formatPrefix:A}}var xy,Bs,E7;pBe({thousands:",",grouping:[3],currency:["$",""]});function pBe(e){return xy=hBe(e),Bs=xy.format,E7=xy.formatPrefix,xy}function mBe(e){return Math.max(0,-Vh(Math.abs(e)))}function gBe(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Vh(t)/3)))*3-Vh(Math.abs(e)))}function vBe(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Vh(t)-Vh(e))+1}var Fn=1e-6,L7=1e-12,Yn=Math.PI,Ai=Yn/2,T7=Yn/4,Wo=Yn*2,lo=180/Yn,di=Yn/180,yr=Math.abs,zh=Math.atan,hc=Math.atan2,Pn=Math.cos,N7=Math.exp,Cy=Math.log,cx=Math.pow,Sn=Math.sin,xs=Math.sign||function(e){return e>0?1:e<0?-1:0},Mo=Math.sqrt,Ax=Math.tan;function F7(e){return e>1?0:e<-1?Yn:Math.acos(e)}function Cs(e){return e>1?Ai:e<-1?-Ai:Math.asin(e)}function Ss(){}function Sy(e,t){e&&I7.hasOwnProperty(e.type)&&I7[e.type](e,t)}var O7={Feature:function(e,t){Sy(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r<i;)Sy(n[r].geometry,t)}},I7={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,i=n.length;++r<i;)e=n[r],t.point(e[0],e[1],e[2])},LineString:function(e,t){dx(e.coordinates,t,0)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)dx(n[r],t,0)},Polygon:function(e,t){D7(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)D7(n[r],t)},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,i=n.length;++r<i;)Sy(n[r],t)}};function dx(e,t,n){var r=-1,i=e.length-n,a;for(t.lineStart();++r<i;)a=e[r],t.point(a[0],a[1],a[2]);t.lineEnd()}function D7(e,t){var n=-1,r=e.length;for(t.polygonStart();++n<r;)dx(e[n],t,1);t.polygonEnd()}function uf(e,t){e&&O7.hasOwnProperty(e.type)?O7[e.type](e,t):Sy(e,t)}function fx(e){return[hc(e[1],e[0]),Cs(e[2])]}function qh(e){var t=e[0],n=e[1],r=Pn(n);return[r*Pn(t),r*Sn(t),Sn(n)]}function ky(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function My(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 hx(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function Ey(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function px(e){var t=Mo(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}function mx(e,t){function n(r,i){return r=e(r,i),t(r[0],r[1])}return e.invert&&t.invert&&(n.invert=function(r,i){return r=t.invert(r,i),r&&e.invert(r[0],r[1])}),n}function gx(e,t){return yr(e)>Yn&&(e-=Math.round(e/Wo)*Wo),[e,t]}gx.invert=gx;function U7(e,t,n){return(e%=Wo)?t||n?mx(H7(e),Y7(t,n)):H7(e):t||n?Y7(t,n):gx}function P7(e){return function(t,n){return t+=e,yr(t)>Yn&&(t-=Math.round(t/Wo)*Wo),[t,n]}}function H7(e){var t=P7(e);return t.invert=P7(-e),t}function Y7(e,t){var n=Pn(e),r=Sn(e),i=Pn(t),a=Sn(t);function o(s,u){var c=Pn(u),A=Pn(s)*c,f=Sn(s)*c,h=Sn(u),d=h*n+A*r;return[hc(f*i-d*a,A*n-h*r),Cs(d*i+f*a)]}return o.invert=function(s,u){var c=Pn(u),A=Pn(s)*c,f=Sn(s)*c,h=Sn(u),d=h*i-f*a;return[hc(f*i+h*a,A*n+d*r),Cs(d*n-A*r)]},o}function yBe(e){e=U7(e[0]*di,e[1]*di,e.length>2?e[2]*di:0);function t(n){return n=e(n[0]*di,n[1]*di),n[0]*=lo,n[1]*=lo,n}return t.invert=function(n){return n=e.invert(n[0]*di,n[1]*di),n[0]*=lo,n[1]*=lo,n},t}function _Be(e,t,n,r,i,a){if(n){var o=Pn(t),s=Sn(t),u=r*n;i==null?(i=t+r*Wo,a=t-u/2):(i=R7(o,i),a=R7(o,a),(r>0?i<a:i>a)&&(i+=r*Wo));for(var c,A=i;r>0?A>a:A<a;A-=u)c=fx([o,-s*Pn(A),-s*Sn(A)]),e.point(c[0],c[1])}}function R7(e,t){t=qh(t),t[0]-=e,px(t);var n=F7(-t[1]);return((-t[2]<0?-n:n)+Wo-Fn)%Wo}function Q7(){var e=[],t;return{point:function(n,r,i){t.push([n,r,i])},lineStart:function(){e.push(t=[])},lineEnd:Ss,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function Ly(e,t){return yr(e[0]-t[0])<Fn&&yr(e[1]-t[1])<Fn}function Ty(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 j7(e,t,n,r,i){var a=[],o=[],s,u;if(e.forEach(function(m){if(!((p=m.length-1)<=0)){var p,g=m[0],y=m[p],v;if(Ly(g,y)){if(!g[2]&&!y[2]){for(i.lineStart(),s=0;s<p;++s)i.point((g=m[s])[0],g[1]);i.lineEnd();return}y[0]+=2*Fn}a.push(v=new Ty(g,m,null,!0)),o.push(v.o=new Ty(g,null,v,!1)),a.push(v=new Ty(y,m,null,!1)),o.push(v.o=new Ty(y,null,v,!0))}}),!!a.length){for(o.sort(t),V7(a),V7(o),s=0,u=o.length;s<u;++s)o[s].e=n=!n;for(var c=a[0],A,f;;){for(var h=c,d=!0;h.v;)if((h=h.n)===c)return;A=h.z,i.lineStart();do{if(h.v=h.o.v=!0,h.e){if(d)for(s=0,u=A.length;s<u;++s)i.point((f=A[s])[0],f[1]);else r(h.x,h.n.x,1,i);h=h.n}else{if(d)for(A=h.p.z,s=A.length-1;s>=0;--s)i.point((f=A[s])[0],f[1]);else r(h.x,h.p.x,-1,i);h=h.p}h=h.o,A=h.z,d=!d}while(!h.v);i.lineEnd()}}}function V7(e){if(t=e.length){for(var t,n=0,r=e[0],i;++n<t;)r.n=i=e[n],i.p=r,r=i;r.n=i=e[0],i.p=r}}function vx(e){return yr(e[0])<=Yn?e[0]:xs(e[0])*((yr(e[0])+Yn)%Wo-Yn)}function bBe(e,t){var n=vx(t),r=t[1],i=Sn(r),a=[Sn(n),-Pn(n),0],o=0,s=0,u=new Xd;i===1?r=Ai+Fn:i===-1&&(r=-Ai-Fn);for(var c=0,A=e.length;c<A;++c)if(h=(f=e[c]).length)for(var f,h,d=f[h-1],m=vx(d),p=d[1]/2+T7,g=Sn(p),y=Pn(p),v=0;v<h;++v,m=b,g=M,y=x,d=_){var _=f[v],b=vx(_),w=_[1]/2+T7,M=Sn(w),x=Pn(w),L=b-m,N=L>=0?1:-1,H=N*L,S=H>Yn,F=g*M;if(u.add(hc(F*N*Sn(H),y*x+F*Pn(H))),o+=S?L+N*Wo:L,S^m>=n^b>=n){var I=My(qh(d),qh(_));px(I);var E=My(a,I);px(E);var P=(S^L>=0?-1:1)*Cs(E[2]);(r>P||r===P&&(I[0]||I[1]))&&(s+=S^L>=0?1:-1)}}return(o<-Fn||o<Fn&&u<-L7)^s&1}function z7(e,t,n,r){return function(i){var a=t(i),o=Q7(),s=t(o),u=!1,c,A,f,h={point:d,lineStart:p,lineEnd:g,polygonStart:function(){h.point=y,h.lineStart=v,h.lineEnd=_,A=[],c=[]},polygonEnd:function(){h.point=d,h.lineStart=p,h.lineEnd=g,A=pO(A);var b=bBe(c,r);A.length?(u||(i.polygonStart(),u=!0),j7(A,BBe,b,n,i)):b&&(u||(i.polygonStart(),u=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),u&&(i.polygonEnd(),u=!1),A=c=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function d(b,w){e(b,w)&&i.point(b,w)}function m(b,w){a.point(b,w)}function p(){h.point=m,a.lineStart()}function g(){h.point=d,a.lineEnd()}function y(b,w){f.push([b,w]),s.point(b,w)}function v(){s.lineStart(),f=[]}function _(){y(f[0][0],f[0][1]),s.lineEnd();var b=s.clean(),w=o.result(),M,x=w.length,L,N,H;if(f.pop(),c.push(f),f=null,!!x){if(b&1){if(N=w[0],(L=N.length-1)>0){for(u||(i.polygonStart(),u=!0),i.lineStart(),M=0;M<L;++M)i.point((H=N[M])[0],H[1]);i.lineEnd()}return}x>1&&b&2&&w.push(w.pop().concat(w.shift())),A.push(w.filter(wBe))}}return h}}function wBe(e){return e.length>1}function BBe(e,t){return((e=e.x)[0]<0?e[1]-Ai-Fn:Ai-e[1])-((t=t.x)[0]<0?t[1]-Ai-Fn:Ai-t[1])}const q7=z7(function(){return!0},xBe,SBe,[-Yn,-Ai]);function xBe(e){var t=NaN,n=NaN,r=NaN,i;return{lineStart:function(){e.lineStart(),i=1},point:function(a,o){var s=a>0?Yn:-Yn,u=yr(a-t);yr(u-Yn)<Fn?(e.point(t,n=(n+o)/2>0?Ai:-Ai),e.point(r,n),e.lineEnd(),e.lineStart(),e.point(s,n),e.point(a,n),i=0):r!==s&&u>=Yn&&(yr(t-r)<Fn&&(t-=r*Fn),yr(a-s)<Fn&&(a-=s*Fn),n=CBe(t,n,a,o),e.point(r,n),e.lineEnd(),e.lineStart(),e.point(s,n),i=0),e.point(t=a,n=o),r=s},lineEnd:function(){e.lineEnd(),t=n=NaN},clean:function(){return 2-i}}}function CBe(e,t,n,r){var i,a,o=Sn(e-n);return yr(o)>Fn?zh((Sn(t)*(a=Pn(r))*Sn(n)-Sn(r)*(i=Pn(t))*Sn(e))/(i*a*o)):(t+r)/2}function SBe(e,t,n,r){var i;if(e==null)i=n*Ai,r.point(-Yn,i),r.point(0,i),r.point(Yn,i),r.point(Yn,0),r.point(Yn,-i),r.point(0,-i),r.point(-Yn,-i),r.point(-Yn,0),r.point(-Yn,i);else if(yr(e[0]-t[0])>Fn){var a=e[0]<t[0]?Yn:-Yn;i=n*a/2,r.point(-a,i),r.point(0,i),r.point(a,i)}else r.point(t[0],t[1])}function kBe(e){var t=Pn(e),n=2*di,r=t>0,i=yr(t)>Fn;function a(A,f,h,d){_Be(d,e,n,h,A,f)}function o(A,f){return Pn(A)*Pn(f)>t}function s(A){var f,h,d,m,p;return{lineStart:function(){m=d=!1,p=1},point:function(g,y){var v=[g,y],_,b=o(g,y),w=r?b?0:c(g,y):b?c(g+(g<0?Yn:-Yn),y):0;if(!f&&(m=d=b)&&A.lineStart(),b!==d&&(_=u(f,v),(!_||Ly(f,_)||Ly(v,_))&&(v[2]=1)),b!==d)p=0,b?(A.lineStart(),_=u(v,f),A.point(_[0],_[1])):(_=u(f,v),A.point(_[0],_[1],2),A.lineEnd()),f=_;else if(i&&f&&r^b){var M;!(w&h)&&(M=u(v,f,!0))&&(p=0,r?(A.lineStart(),A.point(M[0][0],M[0][1]),A.point(M[1][0],M[1][1]),A.lineEnd()):(A.point(M[1][0],M[1][1]),A.lineEnd(),A.lineStart(),A.point(M[0][0],M[0][1],3)))}b&&(!f||!Ly(f,v))&&A.point(v[0],v[1]),f=v,d=b,h=w},lineEnd:function(){d&&A.lineEnd(),f=null},clean:function(){return p|(m&&d)<<1}}}function u(A,f,h){var d=qh(A),m=qh(f),p=[1,0,0],g=My(d,m),y=ky(g,g),v=g[0],_=y-v*v;if(!_)return!h&&A;var b=t*y/_,w=-t*v/_,M=My(p,g),x=Ey(p,b),L=Ey(g,w);hx(x,L);var N=M,H=ky(x,N),S=ky(N,N),F=H*H-S*(ky(x,x)-1);if(!(F<0)){var I=Mo(F),E=Ey(N,(-H-I)/S);if(hx(E,x),E=fx(E),!h)return E;var P=A[0],K=f[0],q=A[1],z=f[1],J;K<P&&(J=P,P=K,K=J);var ie=K-P,X=yr(ie-Yn)<Fn,D=X||ie<Fn;if(!X&&z<q&&(J=q,q=z,z=J),D?X?q+z>0^E[1]<(yr(E[0]-P)<Fn?q:z):q<=E[1]&&E[1]<=z:ie>Yn^(P<=E[0]&&E[0]<=K)){var W=Ey(N,(-H+I)/S);return hx(W,x),[E,fx(W)]}}}function c(A,f){var h=r?e:Yn-e,d=0;return A<-h?d|=1:A>h&&(d|=2),f<-h?d|=4:f>h&&(d|=8),d}return z7(o,s,a,r?[0,-e]:[-Yn,e-Yn])}function MBe(e,t,n,r,i,a){var o=e[0],s=e[1],u=t[0],c=t[1],A=0,f=1,h=u-o,d=c-s,m;if(m=n-o,!(!h&&m>0)){if(m/=h,h<0){if(m<A)return;m<f&&(f=m)}else if(h>0){if(m>f)return;m>A&&(A=m)}if(m=i-o,!(!h&&m<0)){if(m/=h,h<0){if(m>f)return;m>A&&(A=m)}else if(h>0){if(m<A)return;m<f&&(f=m)}if(m=r-s,!(!d&&m>0)){if(m/=d,d<0){if(m<A)return;m<f&&(f=m)}else if(d>0){if(m>f)return;m>A&&(A=m)}if(m=a-s,!(!d&&m<0)){if(m/=d,d<0){if(m>f)return;m>A&&(A=m)}else if(d>0){if(m<A)return;m<f&&(f=m)}return A>0&&(e[0]=o+A*h,e[1]=s+A*d),f<1&&(t[0]=o+f*h,t[1]=s+f*d),!0}}}}}var hg=1e9,Ny=-hg;function K7(e,t,n,r){function i(c,A){return e<=c&&c<=n&&t<=A&&A<=r}function a(c,A,f,h){var d=0,m=0;if(c==null||(d=o(c,f))!==(m=o(A,f))||u(c,A)<0^f>0)do h.point(d===0||d===3?e:n,d>1?r:t);while((d=(d+f+4)%4)!==m);else h.point(A[0],A[1])}function o(c,A){return yr(c[0]-e)<Fn?A>0?0:3:yr(c[0]-n)<Fn?A>0?2:1:yr(c[1]-t)<Fn?A>0?1:0:A>0?3:2}function s(c,A){return u(c.x,A.x)}function u(c,A){var f=o(c,1),h=o(A,1);return f!==h?f-h:f===0?A[1]-c[1]:f===1?c[0]-A[0]:f===2?c[1]-A[1]:A[0]-c[0]}return function(c){var A=c,f=Q7(),h,d,m,p,g,y,v,_,b,w,M,x={point:L,lineStart:F,lineEnd:I,polygonStart:H,polygonEnd:S};function L(P,K){i(P,K)&&A.point(P,K)}function N(){for(var P=0,K=0,q=d.length;K<q;++K)for(var z=d[K],J=1,ie=z.length,X=z[0],D,W,ee=X[0],ne=X[1];J<ie;++J)D=ee,W=ne,X=z[J],ee=X[0],ne=X[1],W<=r?ne>r&&(ee-D)*(r-W)>(ne-W)*(e-D)&&++P:ne<=r&&(ee-D)*(r-W)<(ne-W)*(e-D)&&--P;return P}function H(){A=f,h=[],d=[],M=!0}function S(){var P=N(),K=M&&P,q=(h=pO(h)).length;(K||q)&&(c.polygonStart(),K&&(c.lineStart(),a(null,null,1,c),c.lineEnd()),q&&j7(h,s,P,a,c),c.polygonEnd()),A=c,h=d=m=null}function F(){x.point=E,d&&d.push(m=[]),w=!0,b=!1,v=_=NaN}function I(){h&&(E(p,g),y&&b&&f.rejoin(),h.push(f.result())),x.point=L,b&&A.lineEnd()}function E(P,K){var q=i(P,K);if(d&&m.push([P,K]),w)p=P,g=K,y=q,w=!1,q&&(A.lineStart(),A.point(P,K));else if(q&&b)A.point(P,K);else{var z=[v=Math.max(Ny,Math.min(hg,v)),_=Math.max(Ny,Math.min(hg,_))],J=[P=Math.max(Ny,Math.min(hg,P)),K=Math.max(Ny,Math.min(hg,K))];MBe(z,J,e,t,n,r)?(b||(A.lineStart(),A.point(z[0],z[1])),A.point(J[0],J[1]),q||A.lineEnd(),M=!1):q&&(A.lineStart(),A.point(P,K),M=!1)}v=P,_=K,b=q}return x}}const yx=e=>e;var _x=new Xd,bx=new Xd,G7,W7,wx,Bx,pc={point:Ss,lineStart:Ss,lineEnd:Ss,polygonStart:function(){pc.lineStart=EBe,pc.lineEnd=TBe},polygonEnd:function(){pc.lineStart=pc.lineEnd=pc.point=Ss,_x.add(yr(bx)),bx=new Xd},result:function(){var e=_x/2;return _x=new Xd,e}};function EBe(){pc.point=LBe}function LBe(e,t){pc.point=X7,G7=wx=e,W7=Bx=t}function X7(e,t){bx.add(Bx*e-wx*t),wx=e,Bx=t}function TBe(){X7(G7,W7)}var Kh=1/0,Fy=Kh,pg=-Kh,Oy=pg,Iy={point:NBe,lineStart:Ss,lineEnd:Ss,polygonStart:Ss,polygonEnd:Ss,result:function(){var e=[[Kh,Fy],[pg,Oy]];return pg=Oy=-(Fy=Kh=1/0),e}};function NBe(e,t){e<Kh&&(Kh=e),e>pg&&(pg=e),t<Fy&&(Fy=t),t>Oy&&(Oy=t)}var xx=0,Cx=0,mg=0,Dy=0,Uy=0,Gh=0,Sx=0,kx=0,gg=0,J7,Z7,mu,gu,ks={point:cf,lineStart:$7,lineEnd:eI,polygonStart:function(){ks.lineStart=IBe,ks.lineEnd=DBe},polygonEnd:function(){ks.point=cf,ks.lineStart=$7,ks.lineEnd=eI},result:function(){var e=gg?[Sx/gg,kx/gg]:Gh?[Dy/Gh,Uy/Gh]:mg?[xx/mg,Cx/mg]:[NaN,NaN];return xx=Cx=mg=Dy=Uy=Gh=Sx=kx=gg=0,e}};function cf(e,t){xx+=e,Cx+=t,++mg}function $7(){ks.point=FBe}function FBe(e,t){ks.point=OBe,cf(mu=e,gu=t)}function OBe(e,t){var n=e-mu,r=t-gu,i=Mo(n*n+r*r);Dy+=i*(mu+e)/2,Uy+=i*(gu+t)/2,Gh+=i,cf(mu=e,gu=t)}function eI(){ks.point=cf}function IBe(){ks.point=UBe}function DBe(){tI(J7,Z7)}function UBe(e,t){ks.point=tI,cf(J7=mu=e,Z7=gu=t)}function tI(e,t){var n=e-mu,r=t-gu,i=Mo(n*n+r*r);Dy+=i*(mu+e)/2,Uy+=i*(gu+t)/2,Gh+=i,i=gu*e-mu*t,Sx+=i*(mu+e),kx+=i*(gu+t),gg+=i*3,cf(mu=e,gu=t)}function nI(e){this._context=e}nI.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,Wo);break}}},result:Ss};var Mx=new Xd,Ex,rI,iI,vg,yg,_g={point:Ss,lineStart:function(){_g.point=PBe},lineEnd:function(){Ex&&aI(rI,iI),_g.point=Ss},polygonStart:function(){Ex=!0},polygonEnd:function(){Ex=null},result:function(){var e=+Mx;return Mx=new Xd,e}};function PBe(e,t){_g.point=aI,rI=vg=e,iI=yg=t}function aI(e,t){vg-=e,yg-=t,Mx.add(Mo(vg*vg+yg*yg)),vg=e,yg=t}let oI,Py,sI,lI;class uI{constructor(t){this._append=t==null?cI:HBe(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!==sI||this._append!==Py){const r=this._radius,i=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`,sI=r,Py=this._append,lI=this._,this._=i}this._+=lI;break}}}result(){const t=this._;return this._="",t.length?t:null}}function cI(e){let t=1;this._+=e[0];for(const n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function HBe(e){const t=Math.floor(e);if(!(t>=0))throw new RangeError(`invalid digits: ${e}`);if(t>15)return cI;if(t!==oI){const n=10**t;oI=t,Py=function(i){let a=1;this._+=i[0];for(const o=i.length;a<o;++a)this._+=Math.round(arguments[a]*n)/n+i[a]}}return Py}function Lx(e,t){let n=3,r=4.5,i,a;function o(s){return s&&(typeof r=="function"&&a.pointRadius(+r.apply(this,arguments)),uf(s,i(a))),a.result()}return o.area=function(s){return uf(s,i(pc)),pc.result()},o.measure=function(s){return uf(s,i(_g)),_g.result()},o.bounds=function(s){return uf(s,i(Iy)),Iy.result()},o.centroid=function(s){return uf(s,i(ks)),ks.result()},o.projection=function(s){return arguments.length?(i=s==null?(e=null,yx):(e=s).stream,o):e},o.context=function(s){return arguments.length?(a=s==null?(t=null,new uI(n)):new nI(t=s),typeof r!="function"&&a.pointRadius(r),o):t},o.pointRadius=function(s){return arguments.length?(r=typeof s=="function"?s:(a.pointRadius(+s),+s),o):r},o.digits=function(s){if(!arguments.length)return n;if(s==null)n=null;else{const u=Math.floor(s);if(!(u>=0))throw new RangeError(`invalid digits: ${s}`);n=u}return t===null&&(a=new uI(n)),o},o.projection(e).digits(n).context(t)}function Hy(e){return{stream:Yy(e)}}function Yy(e){return function(t){var n=new Tx;for(var r in e)n[r]=e[r];return n.stream=t,n}}function Tx(){}Tx.prototype={constructor:Tx,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 Nx(e,t,n){var r=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),r!=null&&e.clipExtent(null),uf(n,e.stream(Iy)),t(Iy.result()),r!=null&&e.clipExtent(r),e}function Fx(e,t,n){return Nx(e,function(r){var i=t[1][0]-t[0][0],a=t[1][1]-t[0][1],o=Math.min(i/(r[1][0]-r[0][0]),a/(r[1][1]-r[0][1])),s=+t[0][0]+(i-o*(r[1][0]+r[0][0]))/2,u=+t[0][1]+(a-o*(r[1][1]+r[0][1]))/2;e.scale(150*o).translate([s,u])},n)}function AI(e,t,n){return Fx(e,[[0,0],t],n)}function dI(e,t,n){return Nx(e,function(r){var i=+t,a=i/(r[1][0]-r[0][0]),o=(i-a*(r[1][0]+r[0][0]))/2,s=-a*r[0][1];e.scale(150*a).translate([o,s])},n)}function fI(e,t,n){return Nx(e,function(r){var i=+t,a=i/(r[1][1]-r[0][1]),o=-a*r[0][0],s=(i-a*(r[1][1]+r[0][1]))/2;e.scale(150*a).translate([o,s])},n)}var hI=16,YBe=Pn(30*di);function pI(e,t){return+t?QBe(e,t):RBe(e)}function RBe(e){return Yy({point:function(t,n){t=e(t,n),this.stream.point(t[0],t[1])}})}function QBe(e,t){function n(r,i,a,o,s,u,c,A,f,h,d,m,p,g){var y=c-r,v=A-i,_=y*y+v*v;if(_>4*t&&p--){var b=o+h,w=s+d,M=u+m,x=Mo(b*b+w*w+M*M),L=Cs(M/=x),N=yr(yr(M)-1)<Fn||yr(a-f)<Fn?(a+f)/2:hc(w,b),H=e(N,L),S=H[0],F=H[1],I=S-r,E=F-i,P=v*I-y*E;(P*P/_>t||yr((y*I+v*E)/_-.5)>.3||o*h+s*d+u*m<YBe)&&(n(r,i,a,o,s,u,S,F,N,b/=x,w/=x,M,p,g),g.point(S,F),n(S,F,N,b,w,M,c,A,f,h,d,m,p,g))}}return function(r){var i,a,o,s,u,c,A,f,h,d,m,p,g={point:y,lineStart:v,lineEnd:b,polygonStart:function(){r.polygonStart(),g.lineStart=w},polygonEnd:function(){r.polygonEnd(),g.lineStart=v}};function y(L,N){L=e(L,N),r.point(L[0],L[1])}function v(){f=NaN,g.point=_,r.lineStart()}function _(L,N){var H=qh([L,N]),S=e(L,N);n(f,h,A,d,m,p,f=S[0],h=S[1],A=L,d=H[0],m=H[1],p=H[2],hI,r),r.point(f,h)}function b(){g.point=y,r.lineEnd()}function w(){v(),g.point=M,g.lineEnd=x}function M(L,N){_(i=L,N),a=f,o=h,s=d,u=m,c=p,g.point=_}function x(){n(f,h,A,d,m,p,a,o,i,s,u,c,hI,r),g.lineEnd=b,b()}return g}}var jBe=Yy({point:function(e,t){this.stream.point(e*di,t*di)}});function VBe(e){return Yy({point:function(t,n){var r=e(t,n);return this.stream.point(r[0],r[1])}})}function zBe(e,t,n,r,i){function a(o,s){return o*=r,s*=i,[t+e*o,n-e*s]}return a.invert=function(o,s){return[(o-t)/e*r,(n-s)/e*i]},a}function mI(e,t,n,r,i,a){if(!a)return zBe(e,t,n,r,i);var o=Pn(a),s=Sn(a),u=o*e,c=s*e,A=o/e,f=s/e,h=(s*n-o*t)/e,d=(s*t+o*n)/e;function m(p,g){return p*=r,g*=i,[u*p-c*g+t,n-c*p-u*g]}return m.invert=function(p,g){return[r*(A*p-f*g+h),i*(d-f*p-A*g)]},m}function xA(e){return gI(function(){return e})()}function gI(e){var t,n=150,r=480,i=250,a=0,o=0,s=0,u=0,c=0,A,f=0,h=1,d=1,m=null,p=q7,g=null,y,v,_,b=yx,w=.5,M,x,L,N,H;function S(P){return L(P[0]*di,P[1]*di)}function F(P){return P=L.invert(P[0],P[1]),P&&[P[0]*lo,P[1]*lo]}S.stream=function(P){return N&&H===P?N:N=jBe(VBe(A)(p(M(b(H=P)))))},S.preclip=function(P){return arguments.length?(p=P,m=void 0,E()):p},S.postclip=function(P){return arguments.length?(b=P,g=y=v=_=null,E()):b},S.clipAngle=function(P){return arguments.length?(p=+P?kBe(m=P*di):(m=null,q7),E()):m*lo},S.clipExtent=function(P){return arguments.length?(b=P==null?(g=y=v=_=null,yx):K7(g=+P[0][0],y=+P[0][1],v=+P[1][0],_=+P[1][1]),E()):g==null?null:[[g,y],[v,_]]},S.scale=function(P){return arguments.length?(n=+P,I()):n},S.translate=function(P){return arguments.length?(r=+P[0],i=+P[1],I()):[r,i]},S.center=function(P){return arguments.length?(a=P[0]%360*di,o=P[1]%360*di,I()):[a*lo,o*lo]},S.rotate=function(P){return arguments.length?(s=P[0]%360*di,u=P[1]%360*di,c=P.length>2?P[2]%360*di:0,I()):[s*lo,u*lo,c*lo]},S.angle=function(P){return arguments.length?(f=P%360*di,I()):f*lo},S.reflectX=function(P){return arguments.length?(h=P?-1:1,I()):h<0},S.reflectY=function(P){return arguments.length?(d=P?-1:1,I()):d<0},S.precision=function(P){return arguments.length?(M=pI(x,w=P*P),E()):Mo(w)},S.fitExtent=function(P,K){return Fx(S,P,K)},S.fitSize=function(P,K){return AI(S,P,K)},S.fitWidth=function(P,K){return dI(S,P,K)},S.fitHeight=function(P,K){return fI(S,P,K)};function I(){var P=mI(n,0,0,h,d,f).apply(null,t(a,o)),K=mI(n,r-P[0],i-P[1],h,d,f);return A=U7(s,u,c),x=mx(t,K),L=mx(A,x),M=pI(x,w),E()}function E(){return N=H=null,S}return function(){return t=e.apply(this,arguments),S.invert=t.invert&&F,I()}}function Ox(e){var t=0,n=Yn/3,r=gI(e),i=r(t,n);return i.parallels=function(a){return arguments.length?r(t=a[0]*di,n=a[1]*di):[t*lo,n*lo]},i}function qBe(e){var t=Pn(e);function n(r,i){return[r*t,Sn(i)/t]}return n.invert=function(r,i){return[r/t,Cs(i*t)]},n}function KBe(e,t){var n=Sn(e),r=(n+Sn(t))/2;if(yr(r)<Fn)return qBe(e);var i=1+n*(2*r-n),a=Mo(i)/r;function o(s,u){var c=Mo(i-2*r*Sn(u))/r;return[c*Sn(s*=r),a-c*Pn(s)]}return o.invert=function(s,u){var c=a-u,A=hc(s,yr(c))*xs(c);return c*r<0&&(A-=Yn*xs(s)*xs(c)),[A/r,Cs((i-(s*s+c*c)*r*r)/(2*r))]},o}function Ry(){return Ox(KBe).scale(155.424).center([0,33.6442])}function vI(){return Ry().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function GBe(e){var t=e.length;return{point:function(n,r){for(var i=-1;++i<t;)e[i].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 WBe(){var e,t,n=vI(),r,i=Ry().rotate([154,0]).center([-2,58.5]).parallels([55,65]),a,o=Ry().rotate([157,0]).center([-3,19.9]).parallels([8,18]),s,u,c={point:function(h,d){u=[h,d]}};function A(h){var d=h[0],m=h[1];return u=null,r.point(d,m),u||(a.point(d,m),u)||(s.point(d,m),u)}A.invert=function(h){var d=n.scale(),m=n.translate(),p=(h[0]-m[0])/d,g=(h[1]-m[1])/d;return(g>=.12&&g<.234&&p>=-.425&&p<-.214?i:g>=.166&&g<.234&&p>=-.214&&p<-.115?o:n).invert(h)},A.stream=function(h){return e&&t===h?e:e=GBe([n.stream(t=h),i.stream(h),o.stream(h)])},A.precision=function(h){return arguments.length?(n.precision(h),i.precision(h),o.precision(h),f()):n.precision()},A.scale=function(h){return arguments.length?(n.scale(h),i.scale(h*.35),o.scale(h),A.translate(n.translate())):n.scale()},A.translate=function(h){if(!arguments.length)return n.translate();var d=n.scale(),m=+h[0],p=+h[1];return r=n.translate(h).clipExtent([[m-.455*d,p-.238*d],[m+.455*d,p+.238*d]]).stream(c),a=i.translate([m-.307*d,p+.201*d]).clipExtent([[m-.425*d+Fn,p+.12*d+Fn],[m-.214*d-Fn,p+.234*d-Fn]]).stream(c),s=o.translate([m-.205*d,p+.212*d]).clipExtent([[m-.214*d+Fn,p+.166*d+Fn],[m-.115*d-Fn,p+.234*d-Fn]]).stream(c),f()},A.fitExtent=function(h,d){return Fx(A,h,d)},A.fitSize=function(h,d){return AI(A,h,d)},A.fitWidth=function(h,d){return dI(A,h,d)},A.fitHeight=function(h,d){return fI(A,h,d)};function f(){return e=t=null,A}return A.scale(1070)}function yI(e){return function(t,n){var r=Pn(t),i=Pn(n),a=e(r*i);return a===1/0?[2,0]:[a*i*Sn(t),a*Sn(n)]}}function bg(e){return function(t,n){var r=Mo(t*t+n*n),i=e(r),a=Sn(i),o=Pn(i);return[hc(t*a,r*o),Cs(r&&n*a/r)]}}var _I=yI(function(e){return Mo(2/(1+e))});_I.invert=bg(function(e){return 2*Cs(e/2)});function XBe(){return xA(_I).scale(124.75).clipAngle(180-.001)}var bI=yI(function(e){return(e=F7(e))&&e/Sn(e)});bI.invert=bg(function(e){return e});function JBe(){return xA(bI).scale(79.4188).clipAngle(180-.001)}function Qy(e,t){return[e,Cy(Ax((Ai+t)/2))]}Qy.invert=function(e,t){return[e,2*zh(N7(t))-Ai]};function ZBe(){return wI(Qy).scale(961/Wo)}function wI(e){var t=xA(e),n=t.center,r=t.scale,i=t.translate,a=t.clipExtent,o=null,s,u,c;t.scale=function(f){return arguments.length?(r(f),A()):r()},t.translate=function(f){return arguments.length?(i(f),A()):i()},t.center=function(f){return arguments.length?(n(f),A()):n()},t.clipExtent=function(f){return arguments.length?(f==null?o=s=u=c=null:(o=+f[0][0],s=+f[0][1],u=+f[1][0],c=+f[1][1]),A()):o==null?null:[[o,s],[u,c]]};function A(){var f=Yn*r(),h=t(yBe(t.rotate()).invert([0,0]));return a(o==null?[[h[0]-f,h[1]-f],[h[0]+f,h[1]+f]]:e===Qy?[[Math.max(h[0]-f,o),s],[Math.min(h[0]+f,u),c]]:[[o,Math.max(h[1]-f,s)],[u,Math.min(h[1]+f,c)]])}return A()}function jy(e){return Ax((Ai+e)/2)}function $Be(e,t){var n=Pn(e),r=e===t?Sn(e):Cy(n/Pn(t))/Cy(jy(t)/jy(e)),i=n*cx(jy(e),r)/r;if(!r)return Qy;function a(o,s){i>0?s<-Ai+Fn&&(s=-Ai+Fn):s>Ai-Fn&&(s=Ai-Fn);var u=i/cx(jy(s),r);return[u*Sn(r*o),i-u*Pn(r*o)]}return a.invert=function(o,s){var u=i-s,c=xs(r)*Mo(o*o+u*u),A=hc(o,yr(u))*xs(u);return u*r<0&&(A-=Yn*xs(o)*xs(u)),[A/r,2*zh(cx(i/c,1/r))-Ai]},a}function exe(){return Ox($Be).scale(109.5).parallels([30,30])}function Vy(e,t){return[e,t]}Vy.invert=Vy;function txe(){return xA(Vy).scale(152.63)}function nxe(e,t){var n=Pn(e),r=e===t?Sn(e):(n-Pn(t))/(t-e),i=n/r+e;if(yr(r)<Fn)return Vy;function a(o,s){var u=i-s,c=r*o;return[u*Sn(c),i-u*Pn(c)]}return a.invert=function(o,s){var u=i-s,c=hc(o,yr(u))*xs(u);return u*r<0&&(c-=Yn*xs(o)*xs(u)),[c/r,i-xs(r)*Mo(o*o+u*u)]},a}function rxe(){return Ox(nxe).scale(131.154).center([0,13.9389])}var wg=1.340264,Bg=-.081106,xg=893e-6,Cg=.003796,zy=Mo(3)/2,ixe=12;function BI(e,t){var n=Cs(zy*Sn(t)),r=n*n,i=r*r*r;return[e*Pn(n)/(zy*(wg+3*Bg*r+i*(7*xg+9*Cg*r))),n*(wg+Bg*r+i*(xg+Cg*r))]}BI.invert=function(e,t){for(var n=t,r=n*n,i=r*r*r,a=0,o,s,u;a<ixe&&(s=n*(wg+Bg*r+i*(xg+Cg*r))-t,u=wg+3*Bg*r+i*(7*xg+9*Cg*r),n-=o=s/u,r=n*n,i=r*r*r,!(yr(o)<L7));++a);return[zy*e*(wg+3*Bg*r+i*(7*xg+9*Cg*r))/Pn(n),Cs(Sn(n)/zy)]};function axe(){return xA(BI).scale(177.158)}function xI(e,t){var n=Pn(t),r=Pn(e)*n;return[n*Sn(e)/r,Sn(t)/r]}xI.invert=bg(zh);function oxe(){return xA(xI).scale(144.049).clipAngle(60)}function CI(e,t){return[Pn(t)*Sn(e),Sn(t)]}CI.invert=bg(Cs);function sxe(){return xA(CI).scale(249.5).clipAngle(90+Fn)}function SI(e,t){var n=Pn(t),r=1+Pn(e)*n;return[n*Sn(e)/r,Sn(t)/r]}SI.invert=bg(function(e){return 2*zh(e)});function lxe(){return xA(SI).scale(250).clipAngle(142)}function kI(e,t){return[Cy(Ax((Ai+t)/2)),-e]}kI.invert=function(e,t){return[-t,2*zh(N7(e))-Ai]};function uxe(){var e=wI(kI),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 vu(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Sg(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 Ix=Symbol("implicit");function Dx(){var e=new tg,t=[],n=[],r=Ix;function i(a){let o=e.get(a);if(o===void 0){if(r!==Ix)return r;e.set(a,o=t.push(a)-1)}return n[o%n.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new tg;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(n=Array.from(a),i):n.slice()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return Dx(t,n).unknown(r)},vu.apply(i,arguments),i}function CA(){var e=Dx().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,s=!1,u=0,c=0,A=.5;delete e.unknown;function f(){var h=t().length,d=i<r,m=d?i:r,p=d?r:i;a=(p-m)/Math.max(1,h-u+c*2),s&&(a=Math.floor(a)),m+=(p-m-a*(h-u))*A,o=a*(1-u),s&&(m=Math.round(m),o=Math.round(o));var g=wB(h).map(function(y){return m+a*y});return n(d?g.reverse():g)}return e.domain=function(h){return arguments.length?(t(h),f()):t()},e.range=function(h){return arguments.length?([r,i]=h,r=+r,i=+i,f()):[r,i]},e.rangeRound=function(h){return[r,i]=h,r=+r,i=+i,s=!0,f()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(h){return arguments.length?(s=!!h,f()):s},e.padding=function(h){return arguments.length?(u=Math.min(1,c=+h),f()):u},e.paddingInner=function(h){return arguments.length?(u=Math.min(1,h),f()):u},e.paddingOuter=function(h){return arguments.length?(c=+h,f()):c},e.align=function(h){return arguments.length?(A=Math.max(0,Math.min(1,h)),f()):A},e.copy=function(){return CA(t(),[r,i]).round(s).paddingInner(u).paddingOuter(c).align(A)},vu.apply(f(),arguments)}function MI(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return MI(t())},e}function cxe(){return MI(CA.apply(null,arguments).paddingInner(1))}function Axe(e){return function(){return e}}function Ux(e){return+e}var EI=[0,1];function Eo(e){return e}function Px(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Axe(isNaN(t)?NaN:.5)}function dxe(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function fxe(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=Px(i,r),a=n(o,a)):(r=Px(r,i),a=n(a,o)),function(s){return a(r(s))}}function hxe(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),a=new Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=Px(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(s){var u=V1(e,s,1,r)-1;return a[u](i[u](s))}}function kg(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function qy(){var e=EI,t=EI,n=hu,r,i,a,o=Eo,s,u,c;function A(){var h=Math.min(e.length,t.length);return o!==Eo&&(o=dxe(e[0],e[h-1])),s=h>2?hxe:fxe,u=c=null,f}function f(h){return h==null||isNaN(h=+h)?a:(u||(u=s(e.map(r),t,n)))(r(o(h)))}return f.invert=function(h){return o(i((c||(c=s(t,e.map(r),Ya)))(h)))},f.domain=function(h){return arguments.length?(e=Array.from(h,Ux),A()):e.slice()},f.range=function(h){return arguments.length?(t=Array.from(h),A()):t.slice()},f.rangeRound=function(h){return t=Array.from(h),n=dy,A()},f.clamp=function(h){return arguments.length?(o=h?!0:Eo,A()):o!==Eo},f.interpolate=function(h){return arguments.length?(n=h,A()):n},f.unknown=function(h){return arguments.length?(a=h,f):a},function(h,d){return r=h,i=d,A()}}function LI(){return qy()(Eo,Eo)}function pxe(e,t,n,r){var i=_B(e,t,n),a;switch(r=fg(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=gBe(i,o))&&(r.precision=a),E7(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=vBe(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=mBe(i))&&(r.precision=a-(r.type==="%")*2);break}}return Bs(r)}function Wh(e){var t=e.domain;return e.ticks=function(n){var r=t();return Jd(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return pxe(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],u,c,A=10;for(s<o&&(c=o,o=s,s=c,c=i,i=a,a=c);A-- >0;){if(c=X1(o,s,n),c===u)return r[i]=o,r[a]=s,t(r);if(c>0)o=Math.floor(o/c)*c,s=Math.ceil(s/c)*c;else if(c<0)o=Math.ceil(o*c)/c,s=Math.floor(s*c)/c;else break;u=c}return e},e}function Ms(){var e=LI();return e.copy=function(){return kg(e,Ms())},vu.apply(e,arguments),Wh(e)}function TI(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,Ux),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return TI(e).unknown(t)},e=arguments.length?Array.from(e,Ux):[0,1],Wh(n)}function NI(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a<i&&(o=n,n=r,r=o,o=i,i=a,a=o),e[n]=t.floor(i),e[r]=t.ceil(a),e}function FI(e){return Math.log(e)}function OI(e){return Math.exp(e)}function mxe(e){return-Math.log(-e)}function gxe(e){return-Math.exp(-e)}function vxe(e){return isFinite(e)?+("1e"+e):e<0?0:e}function yxe(e){return e===10?vxe:e===Math.E?Math.exp:t=>Math.pow(e,t)}function _xe(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 II(e){return(t,n)=>-e(-t,n)}function DI(e){const t=e(FI,OI),n=t.domain;let r=10,i,a;function o(){return i=_xe(r),a=yxe(r),n()[0]<0?(i=II(i),a=II(a),e(mxe,gxe)):e(FI,OI),t}return t.base=function(s){return arguments.length?(r=+s,o()):r},t.domain=function(s){return arguments.length?(n(s),o()):n()},t.ticks=s=>{const u=n();let c=u[0],A=u[u.length-1];const f=A<c;f&&([c,A]=[A,c]);let h=i(c),d=i(A),m,p;const g=s==null?10:+s;let y=[];if(!(r%1)&&d-h<g){if(h=Math.floor(h),d=Math.ceil(d),c>0){for(;h<=d;++h)for(m=1;m<r;++m)if(p=h<0?m/a(-h):m*a(h),!(p<c)){if(p>A)break;y.push(p)}}else for(;h<=d;++h)for(m=r-1;m>=1;--m)if(p=h>0?m/a(-h):m*a(h),!(p<c)){if(p>A)break;y.push(p)}y.length*2<g&&(y=Jd(c,A,g))}else y=Jd(h,d,Math.min(d-h,g)).map(a);return f?y.reverse():y},t.tickFormat=(s,u)=>{if(s==null&&(s=10),u==null&&(u=r===10?"s":","),typeof u!="function"&&(!(r%1)&&(u=fg(u)).precision==null&&(u.trim=!0),u=Bs(u)),s===1/0)return u;const c=Math.max(1,r*s/t.ticks().length);return A=>{let f=A/a(Math.round(i(A)));return f*r<r-.5&&(f*=r),f<=c?u(A):""}},t.nice=()=>n(NI(n(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function UI(){const e=DI(qy()).domain([1,10]);return e.copy=()=>kg(e,UI()).base(e.base()),vu.apply(e,arguments),e}function PI(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function HI(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function YI(e){var t=1,n=e(PI(t),HI(t));return n.constant=function(r){return arguments.length?e(PI(t=+r),HI(t)):t},Wh(n)}function RI(){var e=YI(qy());return e.copy=function(){return kg(e,RI()).constant(e.constant())},vu.apply(e,arguments)}function QI(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function bxe(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function wxe(e){return e<0?-e*e:e*e}function jI(e){var t=e(Eo,Eo),n=1;function r(){return n===1?e(Eo,Eo):n===.5?e(bxe,wxe):e(QI(n),QI(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},Wh(t)}function VI(){var e=jI(qy());return e.copy=function(){return kg(e,VI()).exponent(e.exponent())},vu.apply(e,arguments),e}function zI(){var e=[],t=[],n=[],r;function i(){var o=0,s=Math.max(1,t.length);for(n=new Array(s-1);++o<s;)n[o-1]=abe(e,o/s);return a}function a(o){return o==null||isNaN(o=+o)?r:t[V1(n,o)]}return a.invertExtent=function(o){var s=t.indexOf(o);return s<0?[NaN,NaN]:[s>0?n[s-1]:e[0],s<n.length?n[s]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let s of o)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(bA),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(r=o,a):r},a.quantiles=function(){return n.slice()},a.copy=function(){return zI().domain(e).range(t).unknown(r)},vu.apply(a,arguments)}function qI(){var e=[.5],t=[0,1],n,r=1;function i(a){return a!=null&&a<=a?t[V1(e,a,0,r)]:n}return i.domain=function(a){return arguments.length?(e=Array.from(a),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return qI().domain(e).range(t).unknown(n)},vu.apply(i,arguments)}const Hx=new Date,Yx=new Date;function Wi(e,t,n,r){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,s)=>{const u=[];if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return u;let c;do u.push(c=new Date(+a)),t(a,s),e(a);while(c<a&&a<o);return u},i.filter=a=>Wi(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),n&&(i.count=(a,o)=>(Hx.setTime(+a),Yx.setTime(+o),e(Hx),e(Yx),Math.floor(n(Hx,Yx))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?o=>r(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const Ky=Wi(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Ky.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Wi(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Ky),Ky.range;const mc=1e3,Es=mc*60,gc=Es*60,vc=gc*24,Rx=vc*7,KI=vc*30,Qx=vc*365,Al=Wi(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*mc)},(e,t)=>(t-e)/mc,e=>e.getUTCSeconds());Al.range;const Mg=Wi(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*mc)},(e,t)=>{e.setTime(+e+t*Es)},(e,t)=>(t-e)/Es,e=>e.getMinutes());Mg.range;const Eg=Wi(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Es)},(e,t)=>(t-e)/Es,e=>e.getUTCMinutes());Eg.range;const Lg=Wi(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*mc-e.getMinutes()*Es)},(e,t)=>{e.setTime(+e+t*gc)},(e,t)=>(t-e)/gc,e=>e.getHours());Lg.range;const Tg=Wi(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*gc)},(e,t)=>(t-e)/gc,e=>e.getUTCHours());Tg.range;const Af=Wi(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Es)/vc,e=>e.getDate()-1);Af.range;const Gy=Wi(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/vc,e=>e.getUTCDate()-1);Gy.range;const Wy=Wi(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/vc,e=>Math.floor(e/vc));Wy.range;function df(e){return Wi(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())*Es)/Rx)}const Xh=df(0),Ng=df(1),GI=df(2),WI=df(3),ff=df(4),XI=df(5),JI=df(6);Xh.range,Ng.range,GI.range,WI.range,ff.range,XI.range,JI.range;function hf(e){return Wi(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)/Rx)}const Jh=hf(0),Fg=hf(1),ZI=hf(2),$I=hf(3),pf=hf(4),eD=hf(5),tD=hf(6);Jh.range,Fg.range,ZI.range,$I.range,pf.range,eD.range,tD.range;const Og=Wi(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());Og.range;const Ig=Wi(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());Ig.range;const dl=Wi(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());dl.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Wi(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)}),dl.range;const fl=Wi(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());fl.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Wi(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)}),fl.range;function nD(e,t,n,r,i,a){const o=[[Al,1,mc],[Al,5,5*mc],[Al,15,15*mc],[Al,30,30*mc],[a,1,Es],[a,5,5*Es],[a,15,15*Es],[a,30,30*Es],[i,1,gc],[i,3,3*gc],[i,6,6*gc],[i,12,12*gc],[r,1,vc],[r,2,2*vc],[n,1,Rx],[t,1,KI],[t,3,3*KI],[e,1,Qx]];function s(c,A,f){const h=A<c;h&&([c,A]=[A,c]);const d=f&&typeof f.range=="function"?f:u(c,A,f),m=d?d.range(c,+A+1):[];return h?m.reverse():m}function u(c,A,f){const h=Math.abs(A-c)/f,d=j1(([,,g])=>g).right(o,h);if(d===o.length)return e.every(_B(c/Qx,A/Qx,f));if(d===0)return Ky.every(Math.max(_B(c,A,f),1));const[m,p]=o[h/o[d-1][2]<o[d][2]/h?d-1:d];return m.every(p)}return[s,u]}const[Bxe,rD]=nD(fl,Ig,Jh,Wy,Tg,Eg),[xxe,Cxe]=nD(dl,Og,Xh,Af,Lg,Mg);function jx(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 Vx(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 Dg(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Sxe(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,u=e.shortMonths,c=Ug(i),A=Pg(i),f=Ug(a),h=Pg(a),d=Ug(o),m=Pg(o),p=Ug(s),g=Pg(s),y=Ug(u),v=Pg(u),_={a:q,A:z,b:J,B:ie,c:null,d:uD,e:uD,f:Wxe,g:aCe,G:sCe,H:qxe,I:Kxe,j:Gxe,L:cD,m:Xxe,M:Jxe,p:X,q:D,Q:mD,s:gD,S:Zxe,u:$xe,U:eCe,V:tCe,w:nCe,W:rCe,x:null,X:null,y:iCe,Y:oCe,Z:lCe,"%":pD},b={a:W,A:ee,b:ne,B:he,c:null,d:dD,e:dD,f:dCe,g:wCe,G:xCe,H:uCe,I:cCe,j:ACe,L:fD,m:fCe,M:hCe,p:pe,q:ve,Q:mD,s:gD,S:pCe,u:mCe,U:gCe,V:vCe,w:yCe,W:_Ce,x:null,X:null,y:bCe,Y:BCe,Z:CCe,"%":pD},w={a:H,A:S,b:F,B:I,c:E,d:sD,e:sD,f:Qxe,g:oD,G:aD,H:lD,I:lD,j:Pxe,L:Rxe,m:Uxe,M:Hxe,p:N,q:Dxe,Q:Vxe,s:zxe,S:Yxe,u:Txe,U:Nxe,V:Fxe,w:Lxe,W:Oxe,x:P,X:K,y:oD,Y:aD,Z:Ixe,"%":jxe};_.x=M(n,_),_.X=M(r,_),_.c=M(t,_),b.x=M(n,b),b.X=M(r,b),b.c=M(t,b);function M(ue,_e){return function(Le){var Me=[],Pe=-1,Q=0,te=ue.length,ce,$,Z;for(Le instanceof Date||(Le=new Date(+Le));++Pe<te;)ue.charCodeAt(Pe)===37&&(Me.push(ue.slice(Q,Pe)),($=iD[ce=ue.charAt(++Pe)])!=null?ce=ue.charAt(++Pe):$=ce==="e"?" ":"0",(Z=_e[ce])&&(ce=Z(Le,$)),Me.push(ce),Q=Pe+1);return Me.push(ue.slice(Q,Pe)),Me.join("")}}function x(ue,_e){return function(Le){var Me=Dg(1900,void 0,1),Pe=L(Me,ue,Le+="",0),Q,te;if(Pe!=Le.length)return null;if("Q"in Me)return new Date(Me.Q);if("s"in Me)return new Date(Me.s*1e3+("L"in Me?Me.L:0));if(_e&&!("Z"in Me)&&(Me.Z=0),"p"in Me&&(Me.H=Me.H%12+Me.p*12),Me.m===void 0&&(Me.m="q"in Me?Me.q:0),"V"in Me){if(Me.V<1||Me.V>53)return null;"w"in Me||(Me.w=1),"Z"in Me?(Q=Vx(Dg(Me.y,0,1)),te=Q.getUTCDay(),Q=te>4||te===0?Fg.ceil(Q):Fg(Q),Q=Gy.offset(Q,(Me.V-1)*7),Me.y=Q.getUTCFullYear(),Me.m=Q.getUTCMonth(),Me.d=Q.getUTCDate()+(Me.w+6)%7):(Q=jx(Dg(Me.y,0,1)),te=Q.getDay(),Q=te>4||te===0?Ng.ceil(Q):Ng(Q),Q=Af.offset(Q,(Me.V-1)*7),Me.y=Q.getFullYear(),Me.m=Q.getMonth(),Me.d=Q.getDate()+(Me.w+6)%7)}else("W"in Me||"U"in Me)&&("w"in Me||(Me.w="u"in Me?Me.u%7:"W"in Me?1:0),te="Z"in Me?Vx(Dg(Me.y,0,1)).getUTCDay():jx(Dg(Me.y,0,1)).getDay(),Me.m=0,Me.d="W"in Me?(Me.w+6)%7+Me.W*7-(te+5)%7:Me.w+Me.U*7-(te+6)%7);return"Z"in Me?(Me.H+=Me.Z/100|0,Me.M+=Me.Z%100,Vx(Me)):jx(Me)}}function L(ue,_e,Le,Me){for(var Pe=0,Q=_e.length,te=Le.length,ce,$;Pe<Q;){if(Me>=te)return-1;if(ce=_e.charCodeAt(Pe++),ce===37){if(ce=_e.charAt(Pe++),$=w[ce in iD?_e.charAt(Pe++):ce],!$||(Me=$(ue,Le,Me))<0)return-1}else if(ce!=Le.charCodeAt(Me++))return-1}return Me}function N(ue,_e,Le){var Me=c.exec(_e.slice(Le));return Me?(ue.p=A.get(Me[0].toLowerCase()),Le+Me[0].length):-1}function H(ue,_e,Le){var Me=d.exec(_e.slice(Le));return Me?(ue.w=m.get(Me[0].toLowerCase()),Le+Me[0].length):-1}function S(ue,_e,Le){var Me=f.exec(_e.slice(Le));return Me?(ue.w=h.get(Me[0].toLowerCase()),Le+Me[0].length):-1}function F(ue,_e,Le){var Me=y.exec(_e.slice(Le));return Me?(ue.m=v.get(Me[0].toLowerCase()),Le+Me[0].length):-1}function I(ue,_e,Le){var Me=p.exec(_e.slice(Le));return Me?(ue.m=g.get(Me[0].toLowerCase()),Le+Me[0].length):-1}function E(ue,_e,Le){return L(ue,t,_e,Le)}function P(ue,_e,Le){return L(ue,n,_e,Le)}function K(ue,_e,Le){return L(ue,r,_e,Le)}function q(ue){return o[ue.getDay()]}function z(ue){return a[ue.getDay()]}function J(ue){return u[ue.getMonth()]}function ie(ue){return s[ue.getMonth()]}function X(ue){return i[+(ue.getHours()>=12)]}function D(ue){return 1+~~(ue.getMonth()/3)}function W(ue){return o[ue.getUTCDay()]}function ee(ue){return a[ue.getUTCDay()]}function ne(ue){return u[ue.getUTCMonth()]}function he(ue){return s[ue.getUTCMonth()]}function pe(ue){return i[+(ue.getUTCHours()>=12)]}function ve(ue){return 1+~~(ue.getUTCMonth()/3)}return{format:function(ue){var _e=M(ue+="",_);return _e.toString=function(){return ue},_e},parse:function(ue){var _e=x(ue+="",!1);return _e.toString=function(){return ue},_e},utcFormat:function(ue){var _e=M(ue+="",b);return _e.toString=function(){return ue},_e},utcParse:function(ue){var _e=x(ue+="",!0);return _e.toString=function(){return ue},_e}}}var iD={"-":"",_:" ",0:"0"},ua=/^\s*\d+/,kxe=/^%/,Mxe=/[\\^$*+?|[\]().{}]/g;function ar(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(t)+i:i)}function Exe(e){return e.replace(Mxe,"\\$&")}function Ug(e){return new RegExp("^(?:"+e.map(Exe).join("|")+")","i")}function Pg(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function Lxe(e,t,n){var r=ua.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Txe(e,t,n){var r=ua.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Nxe(e,t,n){var r=ua.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Fxe(e,t,n){var r=ua.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Oxe(e,t,n){var r=ua.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function aD(e,t,n){var r=ua.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function oD(e,t,n){var r=ua.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Ixe(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 Dxe(e,t,n){var r=ua.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Uxe(e,t,n){var r=ua.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function sD(e,t,n){var r=ua.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Pxe(e,t,n){var r=ua.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function lD(e,t,n){var r=ua.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Hxe(e,t,n){var r=ua.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Yxe(e,t,n){var r=ua.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Rxe(e,t,n){var r=ua.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Qxe(e,t,n){var r=ua.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function jxe(e,t,n){var r=kxe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Vxe(e,t,n){var r=ua.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function zxe(e,t,n){var r=ua.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function uD(e,t){return ar(e.getDate(),t,2)}function qxe(e,t){return ar(e.getHours(),t,2)}function Kxe(e,t){return ar(e.getHours()%12||12,t,2)}function Gxe(e,t){return ar(1+Af.count(dl(e),e),t,3)}function cD(e,t){return ar(e.getMilliseconds(),t,3)}function Wxe(e,t){return cD(e,t)+"000"}function Xxe(e,t){return ar(e.getMonth()+1,t,2)}function Jxe(e,t){return ar(e.getMinutes(),t,2)}function Zxe(e,t){return ar(e.getSeconds(),t,2)}function $xe(e){var t=e.getDay();return t===0?7:t}function eCe(e,t){return ar(Xh.count(dl(e)-1,e),t,2)}function AD(e){var t=e.getDay();return t>=4||t===0?ff(e):ff.ceil(e)}function tCe(e,t){return e=AD(e),ar(ff.count(dl(e),e)+(dl(e).getDay()===4),t,2)}function nCe(e){return e.getDay()}function rCe(e,t){return ar(Ng.count(dl(e)-1,e),t,2)}function iCe(e,t){return ar(e.getFullYear()%100,t,2)}function aCe(e,t){return e=AD(e),ar(e.getFullYear()%100,t,2)}function oCe(e,t){return ar(e.getFullYear()%1e4,t,4)}function sCe(e,t){var n=e.getDay();return e=n>=4||n===0?ff(e):ff.ceil(e),ar(e.getFullYear()%1e4,t,4)}function lCe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ar(t/60|0,"0",2)+ar(t%60,"0",2)}function dD(e,t){return ar(e.getUTCDate(),t,2)}function uCe(e,t){return ar(e.getUTCHours(),t,2)}function cCe(e,t){return ar(e.getUTCHours()%12||12,t,2)}function ACe(e,t){return ar(1+Gy.count(fl(e),e),t,3)}function fD(e,t){return ar(e.getUTCMilliseconds(),t,3)}function dCe(e,t){return fD(e,t)+"000"}function fCe(e,t){return ar(e.getUTCMonth()+1,t,2)}function hCe(e,t){return ar(e.getUTCMinutes(),t,2)}function pCe(e,t){return ar(e.getUTCSeconds(),t,2)}function mCe(e){var t=e.getUTCDay();return t===0?7:t}function gCe(e,t){return ar(Jh.count(fl(e)-1,e),t,2)}function hD(e){var t=e.getUTCDay();return t>=4||t===0?pf(e):pf.ceil(e)}function vCe(e,t){return e=hD(e),ar(pf.count(fl(e),e)+(fl(e).getUTCDay()===4),t,2)}function yCe(e){return e.getUTCDay()}function _Ce(e,t){return ar(Fg.count(fl(e)-1,e),t,2)}function bCe(e,t){return ar(e.getUTCFullYear()%100,t,2)}function wCe(e,t){return e=hD(e),ar(e.getUTCFullYear()%100,t,2)}function BCe(e,t){return ar(e.getUTCFullYear()%1e4,t,4)}function xCe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?pf(e):pf.ceil(e),ar(e.getUTCFullYear()%1e4,t,4)}function CCe(){return"+0000"}function pD(){return"%"}function mD(e){return+e}function gD(e){return Math.floor(+e/1e3)}var Zh,zx,Hg;SCe({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 SCe(e){return Zh=Sxe(e),zx=Zh.format,Zh.parse,Hg=Zh.utcFormat,Zh.utcParse,Zh}function kCe(e){return new Date(e)}function MCe(e){return e instanceof Date?+e:+new Date(+e)}function qx(e,t,n,r,i,a,o,s,u,c){var A=LI(),f=A.invert,h=A.domain,d=c(".%L"),m=c(":%S"),p=c("%I:%M"),g=c("%I %p"),y=c("%a %d"),v=c("%b %d"),_=c("%B"),b=c("%Y");function w(M){return(u(M)<M?d:s(M)<M?m:o(M)<M?p:a(M)<M?g:r(M)<M?i(M)<M?y:v:n(M)<M?_:b)(M)}return A.invert=function(M){return new Date(f(M))},A.domain=function(M){return arguments.length?h(Array.from(M,MCe)):h().map(kCe)},A.ticks=function(M){var x=h();return e(x[0],x[x.length-1],M??10)},A.tickFormat=function(M,x){return x==null?w:c(x)},A.nice=function(M){var x=h();return(!M||typeof M.range!="function")&&(M=t(x[0],x[x.length-1],M??10)),M?h(NI(x,M)):A},A.copy=function(){return kg(A,qx(e,t,n,r,i,a,o,s,u,c))},A}function vD(){return vu.apply(qx(xxe,Cxe,dl,Og,Xh,Af,Lg,Mg,Al,zx).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function SA(){return vu.apply(qx(Bxe,rD,fl,Ig,Jh,Gy,Tg,Eg,Al,Hg).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function ECe(){var e=0,t=1,n,r,i,a,o=Eo,s=!1,u;function c(f){return f==null||isNaN(f=+f)?u:o(i===0?.5:(f=(a(f)-n)*i,s?Math.max(0,Math.min(1,f)):f))}c.domain=function(f){return arguments.length?([e,t]=f,n=a(e=+e),r=a(t=+t),i=n===r?0:1/(r-n),c):[e,t]},c.clamp=function(f){return arguments.length?(s=!!f,c):s},c.interpolator=function(f){return arguments.length?(o=f,c):o};function A(f){return function(h){var d,m;return arguments.length?([d,m]=h,o=f(d,m),c):[o(0),o(1)]}}return c.range=A(hu),c.rangeRound=A(dy),c.unknown=function(f){return arguments.length?(u=f,c):u},function(f){return a=f,n=f(e),r=f(t),i=n===r?0:1/(r-n),c}}function Yg(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function yu(){var e=Wh(ECe()(Eo));return e.copy=function(){return Yg(e,yu())},Sg.apply(e,arguments)}function Xy(){var e=0,t=.5,n=1,r=1,i,a,o,s,u,c=Eo,A,f=!1,h;function d(p){return isNaN(p=+p)?h:(p=.5+((p=+A(p))-a)*(r*p<r*a?s:u),c(f?Math.max(0,Math.min(1,p)):p))}d.domain=function(p){return arguments.length?([e,t,n]=p,i=A(e=+e),a=A(t=+t),o=A(n=+n),s=i===a?0:.5/(a-i),u=a===o?0:.5/(o-a),r=a<i?-1:1,d):[e,t,n]},d.clamp=function(p){return arguments.length?(f=!!p,d):f},d.interpolator=function(p){return arguments.length?(c=p,d):c};function m(p){return function(g){var y,v,_;return arguments.length?([y,v,_]=g,c=hy(p,[y,v,_]),d):[c(0),c(.5),c(1)]}}return d.range=m(hu),d.rangeRound=m(dy),d.unknown=function(p){return arguments.length?(h=p,d):h},function(p){return A=p,i=p(e),a=p(t),o=p(n),s=i===a?0:.5/(a-i),u=a===o?0:.5/(o-a),r=a<i?-1:1,d}}function yD(){var e=Wh(Xy()(Eo));return e.copy=function(){return Yg(e,yD())},Sg.apply(e,arguments)}function _D(){var e=DI(Xy()).domain([.1,1,10]);return e.copy=function(){return Yg(e,_D()).base(e.base())},Sg.apply(e,arguments)}function bD(){var e=YI(Xy());return e.copy=function(){return Yg(e,bD()).constant(e.constant())},Sg.apply(e,arguments)}function wD(){var e=jI(Xy());return e.copy=function(){return Yg(e,wD()).exponent(e.exponent())},Sg.apply(e,arguments)}function kn(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 LCe=kn("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),TCe=kn("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),NCe=kn("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),FCe=kn("4269d0efb118ff725c6cc5b03ca951ff8ab7a463f297bbf59c6b4e9498a0"),OCe=kn("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),ICe=kn("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),DCe=kn("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),UCe=kn("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),PCe=kn("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),HCe=kn("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),YCe=kn("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),Nr=e=>bwe(e[e.length-1]);var BD=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(kn);const xD=Nr(BD);var CD=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(kn);const SD=Nr(CD);var kD=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(kn);const MD=Nr(kD);var ED=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(kn);const LD=Nr(ED);var Kx=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(kn);const Jy=Nr(Kx);var TD=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(kn);const ND=Nr(TD);var Gx=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(kn);const Zy=Nr(Gx);var FD=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(kn);const OD=Nr(FD);var ID=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(kn);const DD=Nr(ID);var UD=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(kn);const PD=Nr(UD);var HD=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(kn);const YD=Nr(HD);var RD=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(kn);const QD=Nr(RD);var jD=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(kn);const VD=Nr(jD);var zD=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(kn);const qD=Nr(zD);var KD=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(kn);const GD=Nr(KD);var WD=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(kn);const XD=Nr(WD);var JD=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(kn);const ZD=Nr(JD);var $D=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(kn);const eU=Nr($D);var tU=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(kn);const nU=Nr(tU);var rU=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(kn);const iU=Nr(rU);var aU=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(kn);const oU=Nr(aU);var sU=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(kn);const $y=Nr(sU);var lU=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(kn);const e_=Nr(lU);var uU=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(kn);const Rg=Nr(uU);var cU=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(kn);const AU=Nr(cU);var dU=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(kn);const Wx=Nr(dU);var fU=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(kn);const Xx=Nr(fU);function hU(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 pU=KB(fu(300,.5,0),fu(-240,.5,1));var mU=KB(fu(-100,.75,.35),fu(80,1.5,.8)),gU=KB(fu(260,.75,.35),fu(80,1.5,.8)),t_=fu();function vU(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return t_.h=360*e-100,t_.s=1.5-1.5*t,t_.l=.8-.9*t,t_+""}var n_=BA(),RCe=Math.PI/3,QCe=Math.PI*2/3;function yU(e){var t;return e=(.5-e)*Math.PI,n_.r=255*(t=Math.sin(e))*t,n_.g=255*(t=Math.sin(e+RCe))*t,n_.b=255*(t=Math.sin(e+QCe))*t,n_+""}function _U(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 r_(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const bU=r_(kn("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var wU=r_(kn("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),BU=r_(kn("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),xU=r_(kn("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function Hn(e){return function(){return e}}const CU=Math.abs,ja=Math.atan2,yc=Math.cos,jCe=Math.max,$h=Math.min,Lo=Math.sin,Kr=Math.sqrt,Va=1e-12,kA=Math.PI,i_=kA/2,MA=2*kA;function VCe(e){return e>1?0:e<-1?kA:Math.acos(e)}function SU(e){return e>=1?i_:e<=-1?-i_:Math.asin(e)}function a_(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 w7(t)}function zCe(e){return e.innerRadius}function qCe(e){return e.outerRadius}function KCe(e){return e.startAngle}function GCe(e){return e.endAngle}function WCe(e){return e&&e.padAngle}function XCe(e,t,n,r,i,a,o,s){var u=n-e,c=r-t,A=o-i,f=s-a,h=f*u-A*c;if(!(h*h<Va))return h=(A*(t-a)-f*(e-i))/h,[e+h*u,t+h*c]}function o_(e,t,n,r,i,a,o){var s=e-n,u=t-r,c=(o?a:-a)/Kr(s*s+u*u),A=c*u,f=-c*s,h=e+A,d=t+f,m=n+A,p=r+f,g=(h+m)/2,y=(d+p)/2,v=m-h,_=p-d,b=v*v+_*_,w=i-a,M=h*p-m*d,x=(_<0?-1:1)*Kr(jCe(0,w*w*b-M*M)),L=(M*_-v*x)/b,N=(-M*v-_*x)/b,H=(M*_+v*x)/b,S=(-M*v+_*x)/b,F=L-g,I=N-y,E=H-g,P=S-y;return F*F+I*I>E*E+P*P&&(L=H,N=S),{cx:L,cy:N,x01:-A,y01:-f,x11:L*(i/w-1),y11:N*(i/w-1)}}function Jx(){var e=zCe,t=qCe,n=Hn(0),r=null,i=KCe,a=GCe,o=WCe,s=null,u=a_(c);function c(){var A,f,h=+e.apply(this,arguments),d=+t.apply(this,arguments),m=i.apply(this,arguments)-i_,p=a.apply(this,arguments)-i_,g=CU(p-m),y=p>m;if(s||(s=A=u()),d<h&&(f=d,d=h,h=f),!(d>Va))s.moveTo(0,0);else if(g>MA-Va)s.moveTo(d*yc(m),d*Lo(m)),s.arc(0,0,d,m,p,!y),h>Va&&(s.moveTo(h*yc(p),h*Lo(p)),s.arc(0,0,h,p,m,y));else{var v=m,_=p,b=m,w=p,M=g,x=g,L=o.apply(this,arguments)/2,N=L>Va&&(r?+r.apply(this,arguments):Kr(h*h+d*d)),H=$h(CU(d-h)/2,+n.apply(this,arguments)),S=H,F=H,I,E;if(N>Va){var P=SU(N/h*Lo(L)),K=SU(N/d*Lo(L));(M-=P*2)>Va?(P*=y?1:-1,b+=P,w-=P):(M=0,b=w=(m+p)/2),(x-=K*2)>Va?(K*=y?1:-1,v+=K,_-=K):(x=0,v=_=(m+p)/2)}var q=d*yc(v),z=d*Lo(v),J=h*yc(w),ie=h*Lo(w);if(H>Va){var X=d*yc(_),D=d*Lo(_),W=h*yc(b),ee=h*Lo(b),ne;if(g<kA)if(ne=XCe(q,z,W,ee,X,D,J,ie)){var he=q-ne[0],pe=z-ne[1],ve=X-ne[0],ue=D-ne[1],_e=1/Lo(VCe((he*ve+pe*ue)/(Kr(he*he+pe*pe)*Kr(ve*ve+ue*ue)))/2),Le=Kr(ne[0]*ne[0]+ne[1]*ne[1]);S=$h(H,(h-Le)/(_e-1)),F=$h(H,(d-Le)/(_e+1))}else S=F=0}x>Va?F>Va?(I=o_(W,ee,q,z,d,F,y),E=o_(X,D,J,ie,d,F,y),s.moveTo(I.cx+I.x01,I.cy+I.y01),F<H?s.arc(I.cx,I.cy,F,ja(I.y01,I.x01),ja(E.y01,E.x01),!y):(s.arc(I.cx,I.cy,F,ja(I.y01,I.x01),ja(I.y11,I.x11),!y),s.arc(0,0,d,ja(I.cy+I.y11,I.cx+I.x11),ja(E.cy+E.y11,E.cx+E.x11),!y),s.arc(E.cx,E.cy,F,ja(E.y11,E.x11),ja(E.y01,E.x01),!y))):(s.moveTo(q,z),s.arc(0,0,d,v,_,!y)):s.moveTo(q,z),!(h>Va)||!(M>Va)?s.lineTo(J,ie):S>Va?(I=o_(J,ie,X,D,h,-S,y),E=o_(q,z,W,ee,h,-S,y),s.lineTo(I.cx+I.x01,I.cy+I.y01),S<H?s.arc(I.cx,I.cy,S,ja(I.y01,I.x01),ja(E.y01,E.x01),!y):(s.arc(I.cx,I.cy,S,ja(I.y01,I.x01),ja(I.y11,I.x11),!y),s.arc(0,0,h,ja(I.cy+I.y11,I.cx+I.x11),ja(E.cy+E.y11,E.cx+E.x11),y),s.arc(E.cx,E.cy,S,ja(E.y11,E.x11),ja(E.y01,E.x01),!y))):s.arc(0,0,h,w,b,y)}if(s.closePath(),A)return s=null,A+""||null}return c.centroid=function(){var A=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,f=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-kA/2;return[yc(f)*A,Lo(f)*A]},c.innerRadius=function(A){return arguments.length?(e=typeof A=="function"?A:Hn(+A),c):e},c.outerRadius=function(A){return arguments.length?(t=typeof A=="function"?A:Hn(+A),c):t},c.cornerRadius=function(A){return arguments.length?(n=typeof A=="function"?A:Hn(+A),c):n},c.padRadius=function(A){return arguments.length?(r=A==null?null:typeof A=="function"?A:Hn(+A),c):r},c.startAngle=function(A){return arguments.length?(i=typeof A=="function"?A:Hn(+A),c):i},c.endAngle=function(A){return arguments.length?(a=typeof A=="function"?A:Hn(+A),c):a},c.padAngle=function(A){return arguments.length?(o=typeof A=="function"?A:Hn(+A),c):o},c.context=function(A){return arguments.length?(s=A??null,c):s},c}var JCe=Array.prototype.slice;function s_(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function kU(e){this._context=e}kU.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 Qg(e){return new kU(e)}function Zx(e){return e[0]}function $x(e){return e[1]}function jg(e,t){var n=Hn(!0),r=null,i=Qg,a=null,o=a_(s);e=typeof e=="function"?e:e===void 0?Zx:Hn(e),t=typeof t=="function"?t:t===void 0?$x:Hn(t);function s(u){var c,A=(u=s_(u)).length,f,h=!1,d;for(r==null&&(a=i(d=o())),c=0;c<=A;++c)!(c<A&&n(f=u[c],c,u))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+e(f,c,u),+t(f,c,u));if(d)return a=null,d+""||null}return s.x=function(u){return arguments.length?(e=typeof u=="function"?u:Hn(+u),s):e},s.y=function(u){return arguments.length?(t=typeof u=="function"?u:Hn(+u),s):t},s.defined=function(u){return arguments.length?(n=typeof u=="function"?u:Hn(!!u),s):n},s.curve=function(u){return arguments.length?(i=u,r!=null&&(a=i(r)),s):i},s.context=function(u){return arguments.length?(u==null?r=a=null:a=i(r=u),s):r},s}function ZCe(e,t,n){var r=null,i=Hn(!0),a=null,o=Qg,s=null,u=a_(c);e=typeof e=="function"?e:e===void 0?Zx:Hn(+e),t=typeof t=="function"?t:Hn(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?$x:Hn(+n);function c(f){var h,d,m,p=(f=s_(f)).length,g,y=!1,v,_=new Array(p),b=new Array(p);for(a==null&&(s=o(v=u())),h=0;h<=p;++h){if(!(h<p&&i(g=f[h],h,f))===y)if(y=!y)d=h,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),m=h-1;m>=d;--m)s.point(_[m],b[m]);s.lineEnd(),s.areaEnd()}y&&(_[h]=+e(g,h,f),b[h]=+t(g,h,f),s.point(r?+r(g,h,f):_[h],n?+n(g,h,f):b[h]))}if(v)return s=null,v+""||null}function A(){return jg().defined(i).curve(o).context(a)}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:Hn(+f),r=null,c):e},c.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Hn(+f),c):e},c.x1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Hn(+f),c):r},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:Hn(+f),n=null,c):t},c.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Hn(+f),c):t},c.y1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Hn(+f),c):n},c.lineX0=c.lineY0=function(){return A().x(e).y(t)},c.lineY1=function(){return A().x(e).y(n)},c.lineX1=function(){return A().x(r).y(t)},c.defined=function(f){return arguments.length?(i=typeof f=="function"?f:Hn(!!f),c):i},c.curve=function(f){return arguments.length?(o=f,a!=null&&(s=o(a)),c):o},c.context=function(f){return arguments.length?(f==null?a=s=null:s=o(a=f),c):a},c}function $Ce(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function eSe(e){return e}function tSe(){var e=eSe,t=$Ce,n=null,r=Hn(0),i=Hn(MA),a=Hn(0);function o(s){var u,c=(s=s_(s)).length,A,f,h=0,d=new Array(c),m=new Array(c),p=+r.apply(this,arguments),g=Math.min(MA,Math.max(-MA,i.apply(this,arguments)-p)),y,v=Math.min(Math.abs(g)/c,a.apply(this,arguments)),_=v*(g<0?-1:1),b;for(u=0;u<c;++u)(b=m[d[u]=u]=+e(s[u],u,s))>0&&(h+=b);for(t!=null?d.sort(function(w,M){return t(m[w],m[M])}):n!=null&&d.sort(function(w,M){return n(s[w],s[M])}),u=0,f=h?(g-c*_)/h:0;u<c;++u,p=y)A=d[u],b=m[A],y=p+(b>0?b*f:0)+_,m[A]={data:s[A],index:u,value:b,startAngle:p,endAngle:y,padAngle:v};return m}return o.value=function(s){return arguments.length?(e=typeof s=="function"?s:Hn(+s),o):e},o.sortValues=function(s){return arguments.length?(t=s,n=null,o):t},o.sort=function(s){return arguments.length?(n=s,t=null,o):n},o.startAngle=function(s){return arguments.length?(r=typeof s=="function"?s:Hn(+s),o):r},o.endAngle=function(s){return arguments.length?(i=typeof s=="function"?s:Hn(+s),o):i},o.padAngle=function(s){return arguments.length?(a=typeof s=="function"?s:Hn(+s),o):a},o}class MU{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 EU(e){return new MU(e,!0)}function nSe(e){return new MU(e,!1)}function rSe(e){return e.source}function iSe(e){return e.target}function aSe(e){let t=rSe,n=iSe,r=Zx,i=$x,a=null,o=null,s=a_(u);function u(){let c;const A=JCe.call(arguments),f=t.apply(this,A),h=n.apply(this,A);if(a==null&&(o=e(c=s())),o.lineStart(),A[0]=f,o.point(+r.apply(this,A),+i.apply(this,A)),A[0]=h,o.point(+r.apply(this,A),+i.apply(this,A)),o.lineEnd(),c)return o=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:Hn(+c),u):r},u.y=function(c){return arguments.length?(i=typeof c=="function"?c:Hn(+c),u):i},u.context=function(c){return arguments.length?(c==null?a=o=null:o=e(a=c),u):a},u}function oSe(){return aSe(EU)}const sSe=Kr(3),LU={draw(e,t){const n=Kr(t+$h(t/28,.75))*.59436,r=n/2,i=r*sSe;e.moveTo(0,n),e.lineTo(0,-n),e.moveTo(-i,-r),e.lineTo(i,r),e.moveTo(-i,r),e.lineTo(i,-r)}},Vg={draw(e,t){const n=Kr(t/kA);e.moveTo(n,0),e.arc(0,0,n,0,MA)}},TU={draw(e,t){const n=Kr(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()}},NU=Kr(1/3),lSe=NU*2,FU={draw(e,t){const n=Kr(t/lSe),r=n*NU;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},OU={draw(e,t){const n=Kr(t)*.62625;e.moveTo(0,-n),e.lineTo(n,0),e.lineTo(0,n),e.lineTo(-n,0),e.closePath()}},IU={draw(e,t){const n=Kr(t-$h(t/7,2))*.87559;e.moveTo(-n,0),e.lineTo(n,0),e.moveTo(0,n),e.lineTo(0,-n)}},DU={draw(e,t){const n=Kr(t),r=-n/2;e.rect(r,r,n,n)}},UU={draw(e,t){const n=Kr(t)*.4431;e.moveTo(n,n),e.lineTo(n,-n),e.lineTo(-n,-n),e.lineTo(-n,n),e.closePath()}},uSe=.8908130915292852,PU=Lo(kA/10)/Lo(7*kA/10),cSe=Lo(MA/10)*PU,ASe=-yc(MA/10)*PU,HU={draw(e,t){const n=Kr(t*uSe),r=cSe*n,i=ASe*n;e.moveTo(0,-n),e.lineTo(r,i);for(let a=1;a<5;++a){const o=MA*a/5,s=yc(o),u=Lo(o);e.lineTo(u*n,-s*n),e.lineTo(s*r-u*i,u*r+s*i)}e.closePath()}},eC=Kr(3),YU={draw(e,t){const n=-Kr(t/(eC*3));e.moveTo(0,n*2),e.lineTo(-eC*n,-n),e.lineTo(eC*n,-n),e.closePath()}},dSe=Kr(3),RU={draw(e,t){const n=Kr(t)*.6824,r=n/2,i=n*dSe/2;e.moveTo(0,-n),e.lineTo(i,r),e.lineTo(-i,r),e.closePath()}},Ls=-.5,Ts=Kr(3)/2,tC=1/Kr(12),fSe=(tC/2+1)*3,QU={draw(e,t){const n=Kr(t/fSe),r=n/2,i=n*tC,a=r,o=n*tC+n,s=-a,u=o;e.moveTo(r,i),e.lineTo(a,o),e.lineTo(s,u),e.lineTo(Ls*r-Ts*i,Ts*r+Ls*i),e.lineTo(Ls*a-Ts*o,Ts*a+Ls*o),e.lineTo(Ls*s-Ts*u,Ts*s+Ls*u),e.lineTo(Ls*r+Ts*i,Ls*i-Ts*r),e.lineTo(Ls*a+Ts*o,Ls*o-Ts*a),e.lineTo(Ls*s+Ts*u,Ls*u-Ts*s),e.closePath()}},jU={draw(e,t){const n=Kr(t-$h(t/6,1.7))*.6189;e.moveTo(-n,-n),e.lineTo(n,n),e.moveTo(-n,n),e.lineTo(n,-n)}},hSe=[Vg,TU,FU,DU,HU,YU,QU],pSe=[Vg,IU,jU,RU,LU,UU,OU];function EA(){}function l_(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 u_(e){this._context=e}u_.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:l_(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:l_(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function mSe(e){return new u_(e)}function VU(e){this._context=e}VU.prototype={areaStart:EA,areaEnd:EA,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:l_(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function gSe(e){return new VU(e)}function zU(e){this._context=e}zU.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:l_(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function vSe(e){return new zU(e)}function qU(e,t){this._basis=new u_(e),this._beta=t}qU.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],i=t[0],a=e[n]-r,o=t[n]-i,s=-1,u;++s<=n;)u=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+u*a),this._beta*t[s]+(1-this._beta)*(i+u*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const ySe=function e(t){function n(r){return t===1?new u_(r):new qU(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function c_(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 nC(e,t){this._context=e,this._k=(1-t)/6}nC.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:c_(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:c_(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 _Se=function e(t){function n(r){return new nC(r,t)}return n.tension=function(r){return e(+r)},n}(0);function rC(e,t){this._context=e,this._k=(1-t)/6}rC.prototype={areaStart:EA,areaEnd:EA,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:c_(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 bSe=function e(t){function n(r){return new rC(r,t)}return n.tension=function(r){return e(+r)},n}(0);function iC(e,t){this._context=e,this._k=(1-t)/6}iC.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:c_(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 wSe=function e(t){function n(r){return new iC(r,t)}return n.tension=function(r){return e(+r)},n}(0);function aC(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>Va){var s=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*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>Va){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,A=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*c+e._x1*e._l23_2a-t*e._l12_2a)/A,o=(o*c+e._y1*e._l23_2a-n*e._l12_2a)/A}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function KU(e,t){this._context=e,this._alpha=t}KU.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:aC(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 BSe=function e(t){function n(r){return t?new KU(r,t):new nC(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function GU(e,t){this._context=e,this._alpha=t}GU.prototype={areaStart:EA,areaEnd:EA,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:aC(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 xSe=function e(t){function n(r){return t?new GU(r,t):new rC(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function WU(e,t){this._context=e,this._alpha=t}WU.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:aC(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 CSe=function e(t){function n(r){return t?new WU(r,t):new iC(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function XU(e){this._context=e}XU.prototype={areaStart:EA,areaEnd:EA,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 SSe(e){return new XU(e)}function JU(e){return e<0?-1:1}function ZU(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(JU(a)+JU(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function $U(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function oC(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function A_(e){this._context=e}A_.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:oC(this,this._t0,$U(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,oC(this,$U(this,n=ZU(this,e,t)),n);break;default:oC(this,this._t0,n=ZU(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function eP(e){this._context=new tP(e)}(eP.prototype=Object.create(A_.prototype)).point=function(e,t){A_.prototype.point.call(this,t,e)};function tP(e){this._context=e}tP.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,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function kSe(e){return new A_(e)}function MSe(e){return new eP(e)}function nP(e){this._context=e}nP.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=rP(e),i=rP(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o]);(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 rP(e){var t,n=e.length-1,r,i=new Array(n),a=new Array(n),o=new Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function ESe(e){return new nP(e)}function d_(e,t){this._context=e,this._t=t}d_.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 LSe(e){return new d_(e,.5)}function TSe(e){return new d_(e,0)}function NSe(e){return new d_(e,1)}function iP(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,s=a.length;n<o;++n)for(i=a,a=e[t[n]],r=0;r<s;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function aP(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function FSe(e,t){return e[t]}function OSe(e){const t=[];return t.key=e,t}function oP(){var e=Hn([]),t=aP,n=iP,r=FSe;function i(a){var o=Array.from(e.apply(this,arguments),OSe),s,u=o.length,c=-1,A;for(const f of a)for(s=0,++c;s<u;++s)(o[s][c]=[0,+r(f,o[s].key,c,a)]).data=f;for(s=0,A=s_(t(o));s<u;++s)o[A[s]].index=s;return n(o,A),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:Hn(Array.from(a)),i):e},i.value=function(a){return arguments.length?(r=typeof a=="function"?a:Hn(+a),i):r},i.order=function(a){return arguments.length?(t=a==null?aP:typeof a=="function"?a:Hn(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(n=a??iP,i):n},i}function zg(e,t,n){this.k=e,this.x=t,this.y=n}zg.prototype={constructor:zg,scale:function(e){return e===1?this:new zg(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new zg(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+")"}},zg.prototype;const fi={light:{canvas:"#ececee",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"}},LA={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:yu($y),input:yu(e_),output:yu(e_),drop:yu(Xx),abort:yu(Rg),compressed:yu(Rg),error:yu(Wx),ignored:yu(Rg),buffer:yu($y)}},sC={light:{ingressdata:"#007D11",egresstootherregion:"#ef9b20",egresstointernet:"#27aeef"},dark:{ingressdata:"#03FC1C",egresstootherregion:"#ef9b20",egresstointernet:"#27aeef"}},Gn=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf","#1c9099","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],f_={light:{Average:"#ff7f0e",Upper_Bound:"#2ca02c",Lower_Bound:"#e377c2",Alert:"#27aeef"},dark:{Average:"#ff7f0e",Upper_Bound:"#2ca02c",Lower_Bound:"#e377c2",Alert:"#27aeef"}},ISe={green:["#3FA83F","#93CE07","#43B446","#73B142","#259940","#00695C","#3ec995"],compute15:DSe("#b50101","#7f7f7f",15)};function sP(e){return e<0?"00":e<16?"0"+e.toString(16):e.toString(16)}function lC(e,t,n,r){return e>t?sP(Math.floor((t-e)*(n/r))+e):sP(Math.floor((e-t)*(1-n/r))+t)}function DSe(e,t,n){e=e.replace("#",""),t=t.replace("#","");const r=parseInt(e.substring(0,2),16),i=parseInt(e.substring(2,4),16),a=parseInt(e.substring(4,6),16),o=parseInt(t.substring(0,2),16),s=parseInt(t.substring(2,4),16),u=parseInt(t.substring(4,6),16),c=[];for(let A=0;A<=n;A++){let f="#";const h=lC(r,o,A,n),d=lC(i,s,A,n),m=lC(a,u,A,n);f=f+h+d+m,c.push(f)}return c}function USe(e,t){const n=ISe[e];return n[t%n.length]}function PSe(e,t){let n=0;for(let r=0;r<t.length;r++)n+=t.charCodeAt(r);return USe(e,n)}const mf=e=>`$${e.toFixed(2)}`,Zr=e=>{const t=["","K","M","G","T","P"];let n=0;const r=e>=0;let i=Math.abs(e);if(i<1e3)return i;for(;i>=1e3&&n<t.length-1;)i/=1e3,++n;return r?`${i.toFixed(1)} ${t[n]}`:`-${i.toFixed(1)} ${t[n]}`},$r=e=>{const t=["","Ki","Mi","Gi","Ti","Pi"];let n=0;const r=e>=0;let i=Math.abs(e);if(i<1024)return i===1e3?1e3:i.toPrecision(3);for(;i>=1024&&n<t.length-1;)i/=1024,++n;return r?`${i.toFixed(1)} ${t[n]}`:`-${i.toFixed(1)} ${t[n]}`},lP=e=>e>6e4?e>36e5?e>864e5?Math.floor(e/864e5)+" days":Math.floor(e/36e5)+" hrs":Math.floor(e/6e4)+" mins":e+" ms",uP=e=>{const t=["s","mins","hrs","days"];let n=e,r="";if(n>=86400){const i=Math.floor(n/86400);n%=86400,r+=`${i} ${t[3]} `}if(n>=3600){const i=Math.floor(n/3600);n%=3600,r+=`${i} ${t[2]} `}if(n>=60){const i=Math.floor(n/60);n%=60,r+=`${i} ${t[1]} `}return`${r}${n} ${t[0]}`},HSe={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=zt("#"+this.id).append("svg").attr("width",this.width).attr("height",this.height)},createChart(e){let t=[];e.series.forEach((h,d)=>{t.push({...h,index:d})});const n=this.width,r=this.height,i=20,a=15,o=30,s=50,u=[],c=(h,d)=>{const m=new Date(d.slots).toUTCString(),p=this.unit==="Bytes (B)"?$r(d.values)+"B":this.unit==="Percent (%)"?d.values.toFixed(2)+"%":Zr(d.values),g=d.action?`${d.action}<br>Time: ${m}<br>Value: ${p}`:`Alert<br>Time: ${m}<br>Value: ${p}`;h.target.r.baseVal.value=5,zt("#"+this.id+"tooltip").html(g).style("opacity",1).style("left",h.layerX+"px").style("top",h.layerY+"px")},A=(h,d)=>{h.target.r.baseVal.value=3,zt("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")};(()=>{const h=t.filter(_=>!u.includes(_.index)),d=this.getAxisLargest(h),m=SA(xi(d[0]),[s,n-a]),p=Ms([0,d[1]],[r-o,i]),g=this.svg.append("g").attr("class",this.id+"xaxis").attr("transform",`translate(0,${r-o})`).call(ko(m).ticks(n/80).tickSizeOuter(0));if(this.svg.append("g").attr("class",this.id+"yaxis").attr("transform",`translate(${s},0)`).call(Zd(p).ticks(r/40).tickFormat(_=>this.unit==="Bytes (B)"?$r(_):Zr(_))).call(_=>_.select(".domain").remove()).call(_=>_.selectAll(".tick line").clone().attr("x2",n-s-a).attr("stroke-opacity",.1)).call(_=>_.append("text").attr("x",-s).attr("y",10).attr("fill","currentColor").attr("text-anchor","start").text(this.unit)),this.pannable){let b=function(){_=null},_;const w=(x,L)=>{const N=x.selection;if(N)m.domain([m.invert(N[0]),m.invert(N[1])]),this.svg.select("."+this.id+"brush").call(M.move,null);else{if(!_)return _=setTimeout(b,500);m.domain(xi(e.slots))}g.transition().duration(1e3).call(ko(m)),this.svg.selectAll("."+this.id+"line").attr("d",function(H){return y(H.values.map((S,F)=>({slots:e.slots[F],values:S})))}),this.svg.selectAll("."+this.id+"points").attr("cx",H=>m(H.slots))},M=iBe().extent([[0,0],[n,r]]).on("end",w);this.svg.append("g").attr("class",x=>this.id+"brush").call(M),this.svg.on("dblclick",function(){m.domain(xi(d[0],function(x){return x})),g.transition().call(ko(m)),this.svg.selectAll("."+this.id+"line").attr("d",function(x){return y(x.values.map((L,N)=>({slots:e.slots[N],values:L})))}),this.svg.selectAll("."+this.id+"points").attr("cx",x=>m(x.slots))})}const y=jg().x((_,b)=>m(_.slots)).y((_,b)=>p(_.values));this.svg.selectAll(".line").data(h).enter().append("path").attr("class",_=>this.id+_.index+"line "+this.id+"line").attr("fill","none").attr("z-index",1).style("stroke",_=>f_[this.theme][_.action]||Gn[_.index%Gn.length]).style("stroke-dasharray","3, 3").attr("stroke-width",1).attr("d",function(_){return y(_.values.map((b,w)=>({slots:e.slots[w],values:b})))}),this.svg.selectAll(".line").data([e]).enter().append("path").attr("class",this.id+"line").attr("fill","none").attr("z-index",1).style("stroke",f_[this.theme].Alert).attr("stroke-width",1.5).attr("d",function(_){return y(_.slots.map((b,w)=>({slots:b,values:_.values[w]})))});const v=e.slots.map((_,b)=>({slots:_,values:e.values[b],isAlert:e.metric.bools[b]}));this.svg.selectAll(".point").data(v).enter().append("circle").attr("class",(_,b)=>this.id+b+"points "+this.id+"points").attr("fill",Gn[3]).attr("display",_=>_.isAlert?"":"none").attr("r",3).attr("cx",_=>m(_.slots)).attr("cy",_=>p(_.values)).on("mouseover",c).on("mouseout",A)})(),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=zt("#"+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",h=>this.id+h.index+"dots").attr("class","show").attr("cx",10).attr("cy",(h,d)=>r/(t.length+2)+d*25).attr("r",5).style("fill",h=>f_[this.theme][h.action]||Gn[h.index%Gn.length]),this.legend.selectAll("legendLabels").data([...t,{action:"Alert",index:t.length}]).enter().append("text").attr("class",h=>this.id+h.index+"labels").attr("x",20).attr("y",(h,d)=>r/(t.length+2)+d*25).style("fill",h=>f_[this.theme][h.action]||Gn[h.index%Gn.length]).text(h=>h.action==="Alert"?e.action:h.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,i)=>{const a=Math.max(...r.values);a>n&&(n=a)}),[t,n]}}},YSe=["id"],RSe=["id"],QSe=["id"];function jSe(e,t,n,r,i,a){return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",{id:n.id,class:"float-left"},[l.createElementVNode("div",{id:n.id+"tooltip",role:"tooltip",class:"tooltip"},null,8,RSe)],8,YSe),l.createElementVNode("div",{class:"overflow-auto",style:l.normalizeStyle(`height: ${n.height}px; overflow: auto`)},[l.createElementVNode("div",{id:n.id+"legend"},null,8,QSe)],4)],64)}const uC=cr(HSe,[["render",jSe]]),VSe={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=zt("#"+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,i=17,a=18,o=(A,f)=>{Un("."+this.id+"run").attr("opacity","0.5"),zt("."+this.id+f.taskID).attr("opacity","1");const h=ft(f.launchTime).format("YYYY-MM-DD HH:mm:ss"),d=ft(f.completeTime).format("YYYY-MM-DD HH:mm:ss"),m=ft(f.completeTime).diff(ft(f.launchTime)),p=`Task: ${f.taskID}<br>Status: ${f.status}<br>Launch Time: ${h}<br>Complete Time: ${d}<br>Duration: ${lP(m)}`;zt("#"+this.id+"tooltip").html(p).style("opacity",1).style("left",A[this.tooltipOffset+"X"]+10+"px").style("top",A[this.tooltipOffset+"Y"]+"px")},s=(A,f)=>{Un("."+this.id+"run").attr("opacity","1"),zt("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")},u=this.runs.map(A=>ft(A.launchTime).valueOf());u.length===1&&(u.push(ft(u[0]).add(2,"minute").valueOf()),u.push(ft(u[0]).subtract(2,"minute").valueOf()));const c=vD(xi(u),[a,e-r]);this.svg.append("g").attr("class",this.id+"xaxis").attr("transform",`translate(0,${t-i})`).call(ko(c).ticks(e/80).tickSize(3).tickSizeOuter(0)),this.svg.selectAll(".rect").data(this.runs).enter().append("rect").attr("class",A=>this.id+`run ${this.id}${A.taskID}`).attr("style","cursor: pointer;").attr("z-index",1).attr("x",A=>c(ft(A.launchTime).valueOf())).attr("y",n).attr("width",A=>{const f=c(ft(A.completeTime).valueOf())-c(ft(A.launchTime).valueOf());return f>3.5?f:3.5}).attr("height",A=>t-i-n).attr("fill",A=>{const f=A.status==="completed"?"input":A.status==="aborted"?"error":"ignored";return LA[this.theme][f]}).attr("opacity",0).on("click",(A,f)=>{this.$emit("viewRun",f)}).on("mouseover",o).on("mouseout",s).transition().delay((A,f)=>1e3-f/this.runs.length*1200).duration(200).attr("opacity",1)}}},zSe=["id"],qSe=["id"];function KSe(e,t,n,r,i,a){return l.openBlock(),l.createElementBlock("div",{id:n.id},[l.createElementVNode("div",{id:n.id+"tooltip",role:"tooltip",class:"tooltip"},null,8,qSe)],8,zSe)}const GSe=cr(VSe,[["render",KSe]]),WSe={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=zt("#"+this.id).append("svg").attr("width",this.width).attr("height",this.height)},createChart(e){let t=[];e.forEach((g,y)=>{g.index=y,g.values=g.values.map(_=>isNaN(_)?0:_);const v=g.values.reduce((_,b)=>_+b,0);g.total=isNaN(v)?0:v,this.hideZeros?v>0&&t.push(g):t.push(g)}),t=t.sort((g,y)=>y.total-g.total),e=e.sort((g,y)=>y.total-g.total);const n=this.width,r=this.height,i=20,a=15,o=30,s=50,u=[],c=(g,y)=>{const v=this.isTime?new Date(y.slots).toUTCString():y.slots,_=this.unit==="Bytes (B)"||this.unit==="B"?$r(y.values)+"B":this.unit==="Percent (%)"?y.values.toFixed(2)+"%":this.unit==="$"?"$"+y.values.toFixed(2):Zr(y.values),b=y.action?`${y.action}<br>${this.isTime?"Time":this.slotName}: ${v}<br>${this.valueName}: ${_}`:`${this.isTime?"Time":this.slotName}: ${v}<br>${this.valueName}: ${_}`;g.target.r.baseVal.value=5,zt("#"+this.id+"tooltip").html(b).style("opacity",1).style("left",g[this.tooltipOffset+"X"]+10+"px").style("top",g[this.tooltipOffset+"Y"]+"px")},A=(g,y)=>{g.target.r.baseVal.value=3,zt("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")},f=(g,y)=>{const v=y.index;g.target.classList.contains("show")&&(Un("."+this.id+"line").attr("stroke-width",1),Un("."+this.id+v+"line").attr("stroke-width",2.5),Un("."+this.id+"points").attr("r",1),Un("."+this.id+v+"points").attr("r",3),Un("#"+this.id+v+"dots").attr("r",6),Un("."+this.id+v+"labels").attr("font-weight",1e3))},h=(g,y)=>{const v=y.index;Un("."+this.id+"line").attr("stroke-width",1.5),Un("."+this.id+"points").attr("r",2.5),Un("#"+this.id+v+"dots").attr("r",5),Un("."+this.id+v+"labels").attr("font-weight",500)},d=(g,y)=>{const v=y.index;g.target.classList.contains("show")?(u.push(v),g.target.classList.remove("show"),g.target.classList.add("hide"),Un("#"+this.id+v+"dots").attr("opacity","0.5")):(u.splice(u.indexOf(v),1),g.target.classList.remove("hide"),g.target.classList.add("show"),Un("#"+this.id+v+"dots").attr("opacity","1")),Un("."+this.id+"line").remove(),Un("."+this.id+"points").remove(),zt("."+this.id+"xaxis").remove(),zt("."+this.id+"yaxis").remove(),m()},m=()=>{var L;const g=t.filter(N=>!u.includes(N.index)),y=this.getAxisLargest(g),v=this.isTime?SA(xi(y[0]),[s,n-a]):CA(y[0],[s,n-a]),_=Ms([0,y[1]],[r-o,i]);this.svg.append("g").attr("class",this.id+"xaxis").attr("transform",`translate(0,${r-o})`).call(this.isTime?ko(v).ticks(n/80).tickSizeOuter(0):ko(v).ticks(n/20).tickSizeOuter(0).tickFormat(N=>{if(!this.isTime)return fA(N,(n-a)/y[0].length*8)})),this.svg.append("g").attr("class",this.id+"yaxis").attr("transform",`translate(${s},0)`).call(Zd(_).ticks(r/40).tickFormat(N=>this.unit==="Bytes (B)"||this.unit==="B"?$r(N):Zr(N))).call(N=>N.select(".domain").remove()).call(N=>N.selectAll(".tick line").clone().attr("x2",n-s-a).attr("stroke-opacity",.1)).call(N=>N.append("text").attr("x",-s).attr("y",10).attr("fill","currentColor").attr("text-anchor","start").text(this.unit));const b=jg().x((N,H)=>v(N.slots)).y((N,H)=>_(N.values)),w=this.svg.selectAll(".line").data(g).enter().append("path").attr("class",N=>this.id+N.index+"line "+this.id+"line").attr("fill","none").attr("z-index",1).attr("stroke",N=>LA[this.theme][N.action]||Gn[N.index%Gn.length]).attr("stroke-width",1.5).attr("d",function(N){return b(N.slots.map((H,S)=>({slots:H,values:N.values[S]})))}),M=((L=w.node())==null?void 0:L.getTotalLength())||0,x=1200;w.attr("stroke-dasharray",M+" "+M).attr("stroke-dashoffset",M).transition().duration(x).ease(z5e).attr("stroke-dashoffset",0);for(const N of g){const H=N.slots.map((S,F)=>({index:N.index,action:N.action,slots:S,values:N.values[F]}));this.svg.selectAll(".point").data(H).enter().append("circle").attr("class",S=>this.id+S.index+"points "+this.id+"points").attr("fill",S=>LA[this.theme][N.action]||Gn[S.index%Gn.length]).attr("r",2.5).attr("cx",S=>v(S.slots)).attr("cy",S=>_(S.values)).attr("opacity",0).on("mouseover",c).on("mouseout",A).transition().delay((S,F)=>F/H.length*x).duration(250).attr("opacity",1)}};m(),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 p=Math.max(...e.map(g=>Qhe(g.action||"(no name)")),0);this.legend=zt("#"+this.id+"legend").append("svg").attr("width",p/7+30).attr("height",Math.max(25*e.length,this.height)),this.legend.selectAll("legendDots").data(e).enter().append("circle").attr("id",g=>this.id+g.index+"dots").attr("class","show").attr("cx",10).attr("cy",(g,y)=>r/(e.length+1)+y*25+4).attr("r",5).style("fill",g=>LA[this.theme][g.action]||Gn[g.index%Gn.length]).on("mouseover",f).on("mouseout",h).on("click",d),this.legend.selectAll("legendLabels").data(e).enter().append("text").attr("class",g=>this.id+g.index+"labels").attr("x",20).attr("y",(g,y)=>r/(e.length+1)+y*25+5).style("fill",g=>LA[this.theme][g.action]||Gn[g.index%Gn.length]).text(g=>g.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,i)=>{r.slots.forEach(o=>{t.includes(o)||t.push(o)});const a=Math.max(...r.values);a>n&&(n=a)}),[t,n]}}},XSe=["id"],JSe=["id"],ZSe=["id"];function $Se(e,t,n,r,i,a){return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",{id:n.id,class:"float-left"},[l.createElementVNode("div",{id:n.id+"tooltip",role:"tooltip",class:"tooltip"},null,8,JSe)],8,XSe),n.useLegend?(l.openBlock(),l.createElementBlock("div",{key:0,style:l.normalizeStyle(`height: ${n.height}px; overflow: auto`)},[l.createElementVNode("div",{id:n.id+"legend"},null,8,ZSe)],4)):l.createCommentVNode("",!0)],64)}const qg=cr(WSe,[["render",$Se]]),e4e={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=zt("#"+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,i=15,a=30,o=50;let s=this.unit==="Percent (%)"?100:0;e.values.forEach(d=>{d>s&&(s=d)});const u=SA(xi(e.slots),[o,t-i]),c=this.title?[n-a,r+30]:[n-a,r],A=Ms([0,s],c),f=(d,m)=>{const p=new Date(m.slots).toUTCString(),g=this.unit==="Bytes (B)"||this.unit==="B"?$r(m.values)+"B":this.unit==="Percent (%)"?m.values.toFixed(2)+"%":this.unit==="Cost ($)"?mf(m.values):Zr(m.values),y=zt("#"+this.id+"tooltip").html(`${this.data.name}<br>${p}<br>${this.valueName}: ${g}`).style("opacity",1).style("top",d.layerY+"px");if(d.layerX>t*3/4){const v=y.node().getBoundingClientRect().width;y.style("left",d.layerX-v+"px")}else y.style("left",d.layerX+"px")},h=(d,m)=>{zt("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")};if(this.svg.append("g").attr("transform",`translate(0,${n-a})`).call(ko(u).ticks(t/80).tickSizeOuter(0)),this.svg.append("g").attr("transform",`translate(${o},0)`).call(Zd(A).ticks(n/40).tickFormat(d=>this.unit==="Bytes (B)"||this.unit==="B"?$r(d):this.unit==="Cost ($)"?mf(d):Zr(d))).call(d=>d.select(".domain").remove()).call(d=>d.selectAll(".tick line").clone().attr("x2",t-o-i).attr("stroke-opacity",.1)).call(d=>d.append("text").attr("x",-o).attr("y",this.title?40:10).attr("fill","currentColor").attr("text-anchor","start").text(this.unit)).call(d=>d.append("text").attr("x",-o).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 d=e.slots.map((m,p)=>({slots:m,values:e.values[p]}));this.svg.selectAll(".rect").data(d).enter().append("rect").attr("class",m=>this.id+"bar").attr("z-index",1).attr("x",m=>u(m.slots)-2).attr("y",m=>A(m.values)).attr("width",10).attr("height",m=>n-a-A(m.values)).attr("fill",Gn[0]).on("mouseover",f).on("mouseout",h)}else this.svg.append("text").attr("x",t/2).attr("y",n/2).attr("text-anchor","middle").text("No data available")}}},t4e=["id"],n4e=["id"];function r4e(e,t,n,r,i,a){return l.openBlock(),l.createElementBlock("div",{id:n.id},[l.createElementVNode("div",{id:n.id+"tooltip",role:"tooltip",class:"tooltip"},null,8,n4e)],8,t4e)}const i4e=cr(e4e,[["render",r4e]]),a4e={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=zt("#"+this.id).append("svg").attr("viewBox",`0 0 ${this.width} ${this.title?this.height+40:this.height}`):this.svg=zt("#"+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,i=5,a=5,o=10,s=e.fields.reduce((A,f,h)=>(A[h]=f||"(no name)",A),{}),u=(A,f)=>{const h=this.unit==="Bytes (B)"||this.unit==="B"?$r(f.values)+"B":this.unit==="Percent (%)"?f.values.toFixed(2)+"%":Zr(f.values);A.target.style.opacity=.4,zt("#"+this.id+"tooltip").html(`${f.field?f.field:"(no name)"}<br>${this.valueName}: ${h}`).style("opacity",1).style("left",A[this.tooltipOffset+"X"]+10+"px").style("top",A[this.tooltipOffset+"Y"]+"px")},c=(A,f)=>{A.target.style.opacity=0,zt("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")};if(e.fields&&e.fields.length>0){let A=this.unit==="Percent (%)"?100:0;e.values.forEach(p=>{p>A&&(A=p)}),A===0&&(A=1);const f=Ms([0,A],[o,t-i-o]),h=this.title?[n-a,r+30]:[n-a,r],d=CA().range(h).domain(e.fields.map((p,g)=>g)).padding(.2),m=e.fields.map((p,g)=>({field:p,values:e.values[g]||0}));this.svg.selectAll(".rect").data(m).enter().append("rect").attr("class",p=>this.id+"bar").attr("z-index",1).attr("x",p=>f(0)).attr("y",(p,g)=>d(g)).attr("width",p=>0).attr("height",d.bandwidth()).attr("fill",(p,g)=>Gn[g%Gn.length]).style("opacity",.8),this.svg.selectAll("rect").transition().duration(500).attr("x",p=>f(0)).attr("width",p=>f(p.values)-o).delay((p,g)=>g*50),this.svg.selectAll(".rect").data(m).enter().append("rect").attr("class",p=>this.id+"barEmpty").attr("z-index",1).attr("x",p=>f(0)).attr("y",(p,g)=>d(g)).attr("width",this.width-o).attr("height",d.bandwidth()).attr("fill",(p,g)=>Gn[g%Gn.length]).style("opacity",0).on("mouseover",u).on("mouseout",c),this.svg.append("g").attr("transform",`translate(0,${r})`).call(vbe(f).ticks(5).tickFormat(p=>this.unit==="Bytes (B)"||this.unit==="B"?$r(p):this.unit==="Cost ($)"?mf(p):Zr(p))),this.svg.append("g").attr("transform",`translate(${o},0)`).call(ybe(d).tickSize(0).tickFormat(p=>s[p])).call(p=>p.select(".domain").remove()).call(p=>p.append("text").attr("x",-o).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")}}},o4e=["id"],s4e=["id"];function l4e(e,t,n,r,i,a){return l.openBlock(),l.createElementBlock("div",{id:n.id},[l.createElementVNode("div",{id:n.id+"tooltip",role:"tooltip",class:"tooltip"},null,8,s4e)],8,o4e)}const cP=cr(a4e,[["render",l4e]]),u4e={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},theme:{handler(){this.svg&&this.updateTheme()},immediate:!1}},mounted(){this.initializeChart(),this.createChart(this.data)},methods:{initializeChart(){this.resizable?this.svg=zt("#"+this.id).append("svg").attr("viewBox",`0 0 ${this.width} ${this.height}`):this.svg=zt("#"+this.id).append("svg").attr("width",this.width).attr("height",this.height);const e=this.data.color?this.data.color:fi[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",fi[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,i=this.hideAxis?2:15,a=this.hideAxis?2:30,o=this.hideAxis?2:50,s=t>300?3:2,u=t>300?5:3,c=e.color?e.color:fi[this.theme][this.change];let A=this.unit==="Percent (%)"?100:0;e.values.forEach(w=>{w>A&&(A=w)});const f=SA(xi(e.slots),[o,t-i]),h=Ms([0,A],[n-a,r]),d=(w,M)=>{const x=new Date(M.slots).toUTCString(),L=this.unit==="Bytes (B)"?$r(M.values)+"B":this.unit==="Percent (%)"?M.values.toFixed(2)+"%":Zr(M.values);w.target.r.baseVal.value=u,zt("#"+this.id+"tooltip").html(`Time: ${x}<br>${this.valueName}: ${L}`).style("opacity",1).style("left",w[this.tooltipOffset+"X"]+15+"px").style("top",w[this.tooltipOffset+"Y"]+"px")},m=(w,M)=>{w.target.r.baseVal.value=s,zt("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")},p=jg().x((w,M)=>f(w.slots)).y((w,M)=>h(w.values)),g=ZCe().x((w,M)=>f(w.slots)).y0(n-a).y1((w,M)=>h(w.values)),y=this.svg,v=this;y.selectAll("g").data([e]).join(w=>_(w),w=>_(w),w=>b(w));function _(w){w.append("g").call(M=>{M.append("g").call(x=>{x.append("g").attr("id",v.id+"xaxis").attr("transform",`translate(0,${n-a})`).call(ko(f).ticks(v.hideAxis?0:t/80).tickSizeOuter(0)),x.append("g").attr("id",v.id+"yaxis").attr("transform",`translate(${o},0)`).call(Zd(h).ticks(v.hideAxis?0:n/40).tickFormat(L=>v.unit==="Bytes (B)"?$r(L):Zr(L))).call(L=>v.hideAxis?L.select(".domain").attr("stroke-width",.5):L.select(".domain").remove()).call(L=>L.selectAll(".tick line").clone().attr("x2",t-o-i).attr("stroke-opacity",.1)).call(L=>L.append("text").attr("x",-o).attr("y",10).attr("fill","currentColor").attr("text-anchor","start").text(v.hideAxis?"":v.unit))})}).call(M=>{M.append("g").call(x=>{if(x.append("path").attr("class",L=>v.id+"line").attr("z-index",1).attr("stroke",c).attr("stroke-width",1.5).attr("d",function(L){const N=L.slots.map((H,S)=>({slots:H,values:e.values[S]}));return p(N)}).attr("class","area").attr("d",function(L){const N=L.slots.map((H,S)=>({slots:H,values:e.values[S]}));return g(N)}).attr("fill","url(#gradientFill"+v.id+")"),!v.hideTooltip){const L=v.data.slots.map((N,H)=>({slots:N,values:v.data.values[H]}));x.append("g").call(N=>L.forEach(H=>{N.append("circle").attr("class",S=>v.id+"points").attr("stroke",c).attr("r",s).attr("cx",S=>f(H.slots)).attr("cy",S=>h(H.values)).on("mouseover",S=>d(S,H)).on("mouseout",S=>m(S))}))}})})}function b(w){w.call(M=>M.style("opacity",0).remove())}},updateTheme(){if(!this.svg)return;const e=this.data.color?this.data.color:fi[this.theme][this.change],t=this.svg.select("#gradientFill"+this.id);if(t.node()){const n=t.selectAll("stop");zt(n.nodes()[0]).style("stop-color",fi[this.theme].canvas),zt(n.nodes()[1]).style("stop-color",e)}}}},c4e=["id"],A4e=["id"];function d4e(e,t,n,r,i,a){return l.openBlock(),l.createElementBlock("div",{id:n.id},[l.createElementVNode("div",{id:n.id+"tooltip",role:"tooltip",class:"tooltip"},null,8,A4e)],8,c4e)}const AP=cr(u4e,[["render",d4e]]),f4e={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=zt("#"+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,i=15,a=30,o=50,s=[],u=Object.keys(this.names),c=(g,y)=>{const v=this.isTime?new Date(y.data[0]).toUTCString():y.data[0],_=y[1]-y[0],b=this.names[y.key]||y.key,w=this.unit==="Bytes (B)"?$r(_)+"B":this.unit==="Percent (%)"?_.toFixed(2)+"%":this.unit==="Cost ($)"?"$"+_.toFixed(2):Zr(_);g.target.style.opacity=.7,zt("#"+this.id+"tooltip").html(`${b}<br>${this.isTime?"Time":this.slotName}: ${v}<br>${this.valueName}: ${w}`).style("opacity",1).style("left",g[this.tooltipOffset+"X"]+10+"px").style("top",g[this.tooltipOffset+"Y"]+"px")},A=(g,y)=>{g.target.style.opacity=1,zt("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")},f=(g,y)=>{const v=u.indexOf(y.key);Un("."+this.id+"bar").style("opacity",.7),Un("."+this.id+v+"bar").style("opacity",1),Un("#"+this.id+v+"dots").attr("r",6),Un("."+this.id+v+"labels").attr("font-weight",1e3)},h=(g,y)=>{const v=u.indexOf(y.key);Un("."+this.id+"bar").style("opacity",1),Un("#"+this.id+v+"dots").attr("r",5),Un("."+this.id+v+"labels").attr("font-weight",500)},d=(g,y)=>{const v=u.indexOf(y.key);zt("."+this.id+"xaxis").remove(),zt("."+this.id+"yaxis").remove(),Un("#"+this.id+" rect").remove(),g.target.classList.contains("show")?(s.push(y.key),g.target.classList.remove("show"),g.target.classList.add("hide"),Un("#"+this.id+v+"dots").attr("opacity","0.5")):(s.splice(s.indexOf(y.key),1),g.target.classList.remove("hide"),g.target.classList.add("show"),Un("#"+this.id+v+"dots").attr("opacity","1")),m()},m=()=>{const g=e.series.filter(w=>!s.includes(w.name)),y=oP().keys(mO(g.map(w=>w.name))).value((w,M)=>w[1].get(M)===void 0?0:w[1].get(M).value)(cO(g,w=>w.slot,w=>w.name)),v=this.isTime?SA(xi(e.slots),[o,t-i]):CA(e.slots,[o,t-i]),_=this.title?[n-a,r+30]:[n-a,r],b=Ms([0,va(y,w=>va(w,M=>M[1]))],_);return this.svg.append("g").attr("transform",`translate(0,${n-a})`).attr("class",this.id+"xaxis").call(this.isTime?ko(v).ticks(t/80).tickSizeOuter(0):ko(v).ticks(t/20).tickSizeOuter(0).tickFormat(w=>{if(!this.isTime)return fA(w,(t-i)/e.slots.length*8)})),this.svg.append("g").attr("transform",`translate(${o},0)`).attr("class",this.id+"yaxis").call(Zd(b).ticks(n/40).tickFormat(w=>this.unit==="Bytes (B)"?$r(w):this.unit==="Cost ($)"?mf(w):Zr(w))).call(w=>w.select(".domain").remove()).call(w=>w.selectAll(".tick line").clone().attr("x2",t-o-i).attr("stroke-opacity",.1)).call(w=>w.append("text").attr("x",-o).attr("y",this.title?40:10).attr("fill","currentColor").attr("text-anchor","start").text(this.unit)),this.svg.append("g").selectAll().data(y).join("g").attr("fill",w=>sC[this.theme][w.key]||Gn[u.indexOf(w.key)%Gn.length]).selectAll("rect").data(w=>w.map(M=>(M.key=w.key,M))).join("rect").attr("class",w=>{const M=u.indexOf(w.key);return`${this.id}${M}bar ${this.id}bar`}).attr("x",w=>v(w.data[0])).attr("y",w=>b(w[1])).attr("height",w=>b(w[0])-b(w[1])).attr("width",this.isTime?15:Math.max(v.step()-5,15)).on("mouseover",c).on("mouseout",A),y},p=m();this.svg.append("g").call(g=>g.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=zt("#"+this.id+"legend").append("svg").attr("width",Math.max(this.width,p.length*125)).attr("height",20),this.legend.selectAll("legendDots").data(p).enter().append("circle").attr("id",g=>this.id+u.indexOf(g.key)+"dots").attr("class","show").attr("cx",(g,y)=>t/(p.length+1)+y*120-10).attr("cy",15).attr("r",5).attr("fill",(g,y)=>sC[this.theme][g.key]||Gn[y%Gn.length]).on("mouseover",f).on("mouseout",h).on("click",d),this.legend.selectAll("legendLabels").data(p).enter().append("text").attr("class",g=>this.id+u.indexOf(g.key)+"labels").attr("x",(g,y)=>t/(p.length+1)+y*120).attr("y",15).attr("fill",(g,y)=>sC[this.theme][g.key]||Gn[y%Gn.length]).text((g,y)=>fA(this.names[g[0].key],700)).attr("font-weight",500).attr("text-anchor","left").attr("font-size","11px").style("alignment-baseline","middle")}}},h4e=["id"],p4e=["id"],m4e=["id"];function g4e(e,t,n,r,i,a){return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",{id:n.id},[l.createElementVNode("div",{id:n.id+"tooltip",role:"tooltip",class:"tooltip"},null,8,p4e)],8,h4e),l.createElementVNode("div",{class:"overflow-auto",style:l.normalizeStyle(`width: ${n.width}px; overflow: auto`)},[l.createElementVNode("div",{id:n.id+"legend"},null,8,m4e)],4)],64)}const Kg=cr(f4e,[["render",g4e]]),v4e={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=zt("#"+this.id).append("svg").attr("width",this.width).attr("height",this.height)},createChart(e){const t=this.width,n=this.height,r=20,i=15,a=30,o=50,s={},u={};e.forEach(_=>{s[_.action]=_.action,u[_.instance]=_.instance});const c=[],A=Object.keys(s),f=Object.keys(u),h=[];e.forEach(_=>{_.slots.forEach((b,w)=>{h.push({slot:b,action:_.action,instance:_.instance,value:_.values[w]})})});const d=(_,b)=>{const w=this.isTime?new Date(b.data[0]).toUTCString():b.data[0],M=b[1]-b[0],x=b.key.split(":")[0],L=this.names[b.key.split(":")[1]]||b.key.split(":")[1],N=this.unit==="Bytes (B)"?$r(M)+"B":this.unit==="Percent (%)"?M.toFixed(2)+"%":this.unit==="Cost ($)"?"$"+M.toFixed(2):Zr(M);_.target.style.opacity=.7,zt("#"+this.id+"tooltip").html(`${x}<br>Instance: ${L}<br>${this.isTime?"Time":this.slotName}: ${w}<br>${this.valueName}: ${N}`).style("opacity",1).style("left",_[this.tooltipOffset+"X"]+10+"px").style("top",_[this.tooltipOffset+"Y"]+"px")},m=(_,b)=>{_.target.style.opacity=1,zt("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")},p=(_,b)=>{const w=A.indexOf(b);Un("."+this.id+"bar").style("opacity",.7),Un("."+this.id+w+"bar").style("opacity",1),Un("#"+this.id+w+"dots").attr("r",6),Un("."+this.id+w+"labels").attr("font-weight",1e3)},g=(_,b)=>{const w=A.indexOf(b);Un("."+this.id+"bar").style("opacity",1),Un("#"+this.id+w+"dots").attr("r",5),Un("."+this.id+w+"labels").attr("font-weight",500)},y=(_,b)=>{const w=A.indexOf(b);zt("."+this.id+"xaxis").remove(),zt("."+this.id+"yaxis").remove(),Un("#"+this.id+" rect").remove(),_.target.classList.contains("show")?(c.push(b),_.target.classList.remove("show"),_.target.classList.add("hide"),Un("#"+this.id+w+"dots").attr("opacity","0.5")):(c.splice(c.indexOf(b),1),_.target.classList.remove("hide"),_.target.classList.add("show"),Un("#"+this.id+w+"dots").attr("opacity","1")),v()},v=()=>{const _=h.filter(I=>!c.includes(I.action)),b=_.map(I=>I.slot).filter((I,E,P)=>P.indexOf(I)===E),w=va(b),M=Fh(b),x=(w-M)/20,L=!w||!M?null:w+x,N=this.isTime?SA(xi([...b,L]),[o,t-i]):CA(b,[o,t-i]),H=va(_,I=>I.value),S=[n-a,r];for(const I of A)if(!c.includes(I)){const E=A.indexOf(I),P=h.filter(z=>z.action===I),K=oP().keys(mO(P.map(z=>z.action+":"+z.instance))).value((z,J)=>z[1].get(J)===void 0?0:z[1].get(J).value)(cO(P,z=>z.slot,z=>z.action+":"+z.instance)),q=Ms([0,H],S);this.svg.append("g").selectAll().data(K).join("g").attr("fill",z=>LA.scale[z.key.split(":")[0]](.5*f.indexOf(z.key.split(":")[1])/f.length+.5)||Gn[A.indexOf(z.key.split(":")[0])%Gn.length]).selectAll("rect").data(z=>z.map(J=>(J.key=z.key,J))).join("rect").attr("class",z=>`${this.id}${E}bar ${this.id}bar`).attr("x",z=>N(z.data[0])+30*E/A.length).attr("y",z=>n-a).attr("width",Math.min((t-o-i)/b.length,25)/A.length).attr("height",0).attr("stroke","black").attr("stroke-width","0.5").on("mouseover",d).on("mouseout",m).transition().duration(1e3).attr("y",z=>q(z[1])).attr("height",z=>q(z[0])-q(z[1]))}const F=Ms([0,H],S);this.svg.append("g").attr("transform",`translate(0,${n-a})`).attr("class",this.id+"xaxis").call(this.isTime?ko(N).ticks(t/80).tickSizeOuter(0):ko(N).ticks(t/20).tickSizeOuter(0).tickFormat(I=>{if(!this.isTime)return fA(I,(t-i)/b.length*8)})),this.svg.append("g").attr("transform",`translate(${o},0)`).attr("class",this.id+"yaxis").call(Zd(F).ticks(n/40).tickFormat(I=>this.unit==="Bytes (B)"?$r(I):this.unit==="Cost ($)"?mf(I):Zr(I))).call(I=>I.select(".domain").remove()).call(I=>I.selectAll(".tick line").clone().attr("x2",t-o-i).attr("stroke-opacity",.1)).call(I=>I.append("text").attr("x",-o).attr("y",10).attr("fill","currentColor").attr("text-anchor","start").text(this.unit))};v(),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=zt("#"+this.id+"legend").append("svg").attr("width",Math.max(this.width,A.length*100)).attr("height",30),this.legend.selectAll("legendDots").data(A).enter().append("circle").attr("id",_=>this.id+A.indexOf(_)+"dots").attr("class","show").attr("cx",(_,b)=>t/(A.length+1)+b*100-10).attr("cy",5).attr("r",5).attr("fill",(_,b)=>LA[this.theme][_]||Gn[b%Gn.length]).on("mouseover",p).on("mouseout",g).on("click",y),this.legend.selectAll("legendLabels").data(A).enter().append("text").attr("class",_=>this.id+A.indexOf(_)+"labels").attr("x",(_,b)=>t/(A.length+1)+b*100).attr("y",5).attr("fill",(_,b)=>LA[this.theme][_]||Gn[b%Gn.length]).text((_,b)=>fA(_,700)).attr("font-weight",500).attr("text-anchor","left").attr("font-size","11px").style("alignment-baseline","middle")}}},y4e=["id"],_4e=["id"],b4e=["id"];function w4e(e,t,n,r,i,a){return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",{id:n.id},[l.createElementVNode("div",{id:n.id+"tooltip",role:"tooltip",class:"tooltip"},null,8,_4e)],8,y4e),l.createElementVNode("div",{class:"overflow-auto",style:l.normalizeStyle(`width: ${n.width}px; overflow: auto`)},[l.createElementVNode("div",{id:n.id+"legend"},null,8,b4e)],4)],64)}const B4e=cr(v4e,[["render",w4e]]),x4e={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=zt("#"+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,i={};this.data.forEach((b,w)=>{i[b.field]=w});const a=tSe().value(b=>b.values),o=Jx().innerRadius(0).outerRadius(r),s=Jx().innerRadius(r*.9).outerRadius(r*.9),u=(b,w)=>{const M=!b.target.id||b.target.id.endsWith("dots")?t/2:b[this.tooltipOffset+"Y"],x=!b.target.id||b.target.id.endsWith("dots")?0:b[this.tooltipOffset+"X"],L=i[w.data.field],N=this.unit==="Bytes (B)"||this.unit==="B"?$r(w.data.values)+"B":this.unit==="Percent (%)"?w.data.values.toFixed(2)+"%":Zr(w.data.values);Un("."+this.id+"pie").style("opacity",.4),zt("#"+this.id+L+"pie").style("opacity",1),Un("."+this.id+"labels").style("opacity",.4),zt("#"+this.id+L+"labels").style("opacity",1),zt("#"+this.id+L+"polyline").style("opacity",1),zt("#"+this.id+"tooltip").html(`${w.data.field}<br>${this.valueName}: ${N} (${((w.endAngle-w.startAngle)/(2*Math.PI)*100).toFixed(2)}%)`).style("opacity",1).style("left",x+10+"px").style("top",M+"px")},c=()=>{Un("."+this.id+"pie").style("opacity",.8),Un("."+this.id+"labels").style("opacity",1),zt("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")},A=a(this.data),f=A.reduce((b,w)=>b+w.data.values,0),h=e/t,d=h>2?h>2.5?1500:900:600,p=(b=>{const w=r<100?12:14;return b.map((M,x)=>{if(x===0)return M;if(!f){const H=b[x-1].pos[1]-M.pos[1]+w;return M.pos[1]+=H,M}const L=(b[x-1].startAngle+b[x-1].endAngle)/2,N=(M.startAngle+M.endAngle)/2;if(L<Math.PI&&N>Math.PI)return M;if(L>Math.PI&&N<Math.PI)return M;if(N>Math.PI){const H=b[x-1].pos[1]-M.pos[1]+w;H>0&&(M.pos[1]+=H)}else{const H=M.pos[1]-b[x-1].pos[1]+w;H>0&&(M.pos[1]-=H)}return M})})(A.map(b=>f?{...b,pos:s.centroid(b)}:{...b,pos:s.centroid({startAngle:2*Math.PI,endAngle:2*Math.PI})}).sort((b,w)=>w.startAngle-b.startAngle)),g=this.svg,y=this;g.selectAll("g").data(p).join(b=>v(b),b=>v(b),b=>_(b));function v(b){const w=b.append("g"),M=b.append("g");w.append("path").attr("class",y.id+"pie").attr("id",x=>y.id+i[x.data.field]+"pie").attr("transform",`translate(${e/2},${t/2+10})`).attr("d",x=>(f||(x.endAngle=Math.PI*A.length),o(x))).attr("fill",(x,L)=>f?Gn[L%Gn.length]:Gn[0]).style("opacity",.8).style("fill-opacity",0).on("mouseover",u).on("mouseout",c).transition().duration(800).attrTween("d",function(x){const L=hu(y._current,x);return y._current=L(1),N=>o(L(N))}).style("fill-opacity",1),M.append("polyline").attr("class",y.id+"labels").attr("id",x=>y.id+i[x.data.field]+"polyline").attr("points",x=>{const L=x.pos,H=(x.startAngle+x.endAngle)/2<Math.PI?r*1.1:-r*1.1;if(!f){const S=-r*1.1;return[o.centroid({startAngle:0,endAngle:0}),s.centroid({startAngle:0,endAngle:0}),[S,L[1]]]}return[o.centroid(x),s.centroid(x),[H,L[1]]]}).attr("fill","none").style("stroke",y.theme==="dark"?"white":"black").attr("transform",`translate(${e/2},${t/2})`).style("opacity",0).transition().duration(800).style("opacity",1),M.append("text").attr("class",y.id+"labels").attr("id",x=>y.id+i[x.data.field]+"labels").attr("transform",x=>{const L=x.pos;return`translate(${((x.startAngle+x.endAngle)/2<Math.PI?r*1.15:-r*1.15)+e/2},${L[1]+t/2})`}).attr("text-anchor",x=>(x.startAngle+x.endAngle)/2<Math.PI?"start":"end").attr("font-size",r<100?"9px":"11px").style("fill",y.theme==="dark"?"white":"black").text(x=>x.data.field===0?0:x.data.field?fA(x.data.field,d):"(no name)").on("mouseover",u).on("mouseout",c).style("opacity",0).transition().duration(1200).style("opacity",1)}function _(b){b.call(w=>w.style("opacity",0).remove())}}}},C4e=["id"],S4e=["id"],k4e=["id"];function M4e(e,t,n,r,i,a){return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",{id:n.id,class:"float-left"},[l.createElementVNode("div",{id:n.id+"tooltip",role:"tooltip",class:"tooltip"},null,8,S4e)],8,C4e),l.createElementVNode("div",{class:"overflow-auto",style:l.normalizeStyle(`width: ${n.width}px; overflow: auto`)},[l.createElementVNode("div",{id:n.id+"legend"},null,8,k4e)],4)],64)}const dP=cr(x4e,[["render",M4e]]),E4e={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}},watch:{theme:{handler(){this.svg&&this.createChart()},immediate:!0}},mounted(){this.initializeChart(),this.createChart()},methods:{initializeChart(){this.svg=zt("#"+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,i=Jx().innerRadius(n*.7).outerRadius(n).startAngle(0);this.svg.append("path").datum({endAngle:2*Math.PI}).attr("d",i).attr("fill",fi[this.theme].canvas).attr("transform",`translate(${e/2},${t/2})`),this.svg.append("path").datum({endAngle:0}).attr("d",i).attr("fill",fi[this.theme].secondary).attr("transform",`translate(${e/2},${t/2})`).transition().duration(1e3).call(a=>a.attrTween("d",o=>{const s=hu(0,r*2*Math.PI);return u=>(o.endAngle=s(u),i(o))})),this.svg.append("text").attr("text-anchor","middle").attr("dy","0.35em").style("font-size","35px").text("0%").style("fill",fi[this.theme].text).attr("transform",`translate(${e/2},${t/2})`).transition().duration(1e3).tween("text",function(){const a=hu(0,r*100);return function(o){this.textContent=`${Math.round(a(o))}%`}})}}},L4e=["id"];function T4e(e,t,n,r,i,a){return l.openBlock(),l.createElementBlock("div",{id:n.id,class:"float-left"},null,8,L4e)}const N4e=cr(E4e,[["render",T4e]]);function TA(e){return e!=null&&!Number.isNaN(e)}function gf(e,t){return+TA(t)-+TA(e)||bA(e,t)}function cC(e,t){return+TA(t)-+TA(e)||eg(e,t)}function AC(e){return e!=null&&`${e}`!=""}function fP(e){return isFinite(e)?e:NaN}function h_(e){return e>0&&isFinite(e)?e:NaN}function dC(e){return e<0&&isFinite(e)?e:NaN}function F4e(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(),i=e.getUTCSeconds(),a=e.getUTCMilliseconds();return`${O4e(e.getUTCFullYear())}-${_c(e.getUTCMonth()+1,2)}-${_c(e.getUTCDate(),2)}${n||r||i||a?`T${_c(n,2)}:${_c(r,2)}${i||a?`:${_c(i,2)}${a?`.${_c(a,3)}`:""}`:""}Z`:""}`}function O4e(e){return e<0?`-${_c(-e,6)}`:e>9999?`+${_c(e,6)}`:_c(e,4)}function _c(e,t){return`${e}`.padStart(t,"0")}const I4e=/^(?:[-+]\d{2})?\d{4}(?:-\d{2}(?:-\d{2})?)?(?:T\d{2}:\d{2}(?::\d{2}(?:\.\d{3})?)?(?:Z|[-+]\d{2}:?\d{2})?)?$/;function hP(e,t){return I4e.test(e+="")?new Date(e):typeof t=="function"?t(e):t}function ep(e){if(e==null)return;const t=e[0],n=e[e.length-1];return eg(t,n)}const tp=1e3,NA=tp*60,FA=NA*60,_u=FA*24,bu=_u*7,vf=_u*30,OA=_u*365,fC=[["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",tp],["5 seconds",5*tp],["15 seconds",15*tp],["30 seconds",30*tp],["minute",NA],["5 minutes",5*NA],["15 minutes",15*NA],["30 minutes",30*NA],["hour",FA],["3 hours",3*FA],["6 hours",6*FA],["12 hours",12*FA],["day",_u],["2 days",2*_u],["week",bu],["2 weeks",2*bu],["month",vf],["3 months",3*vf],["6 months",6*vf],["year",OA],["2 years",2*OA],["5 years",5*OA],["10 years",10*OA],["20 years",20*OA],["50 years",50*OA],["100 years",100*OA]],hC=new Map([["second",tp],["minute",NA],["hour",FA],["day",_u],["monday",bu],["tuesday",bu],["wednesday",bu],["thursday",bu],["friday",bu],["saturday",bu],["sunday",bu],["week",bu],["month",vf],["year",OA]]),pP=new Map([["second",Al],["minute",Mg],["hour",Lg],["day",Af],["monday",Ng],["tuesday",GI],["wednesday",WI],["thursday",ff],["friday",XI],["saturday",JI],["sunday",Xh],["week",Xh],["month",Og],["year",dl]]),pC=new Map([["second",Al],["minute",Eg],["hour",Tg],["day",Wy],["monday",Fg],["tuesday",ZI],["wednesday",$I],["thursday",pf],["friday",eD],["saturday",tD],["sunday",Jh],["week",Jh],["month",Ig],["year",fl]]),Gg=Symbol("intervalDuration"),p_=Symbol("intervalType");for(const[e,t]of pP)t[Gg]=hC.get(e),t[p_]="time";for(const[e,t]of pC)t[Gg]=hC.get(e),t[p_]="utc";const Wg=[["year",fl,"utc"],["month",Ig,"utc"],["day",Wy,"utc",6*vf],["hour",Tg,"utc",3*_u],["minute",Eg,"utc",6*FA],["second",Al,"utc",30*NA]],m_=[["year",dl,"time"],["month",Og,"time"],["day",Af,"time",6*vf],["hour",Lg,"time",3*_u],["minute",Mg,"time",6*FA],["second",Al,"time",30*NA]],D4e=[Wg[0],m_[0],Wg[1],m_[1],Wg[2],m_[2],...Wg.slice(3)];function mP(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 i=pC.get(t);if(!i)throw new Error(`unknown interval: ${e}`);if(n>1&&!i.every)throw new Error(`non-periodic interval: ${t}`);return[t,n]}function gP(e){return vP(mP(e),"time")}function mC(e){return vP(mP(e),"utc")}function vP([e,t],n){let r=(n==="time"?pP:pC).get(e);return t>1&&(r=r.every(t),r[Gg]=hC.get(e)*t,r[p_]=n),r}function yP(e,t){if(!(t>1))return;const n=e[Gg];if(!fC.some(([,i])=>i===n)||n%_u===0&&_u<n&&n<vf)return;const[r]=fC[j1(([,i])=>Math.log(i)).center(fC,Math.log(n*t))];return(e[p_]==="time"?gP:mC)(r)}function _P(e,t,n){const r=t==="time"?zx:Hg;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 i=U4e(n);switch(e){case"millisecond":return np(r(".%L"),r(":%M:%S"),i);case"second":return np(r(":%S"),r("%-I:%M"),i);case"minute":return np(r("%-I:%M"),r("%p"),i);case"hour":return np(r("%-I %p"),r("%b %-d"),i);case"day":return np(r("%-d"),r("%b"),i);case"month":return np(r("%b"),r("%Y"),i);case"year":return r("%Y")}throw new Error("unable to format time ticks")}function U4e(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}