import{InternMap as K,range as Dn,bisect as b,tickStep as In,ticks as j,tickIncrement as Rn,ascending as _,quantileSorted as Ln,quantile as On}from"/-/d3-array@v3.2.4-G4hy00bPnjF6FrSYpT32/dist=es2020,mode=imports,min/optimized/d3-array.js";import{interpolate as z,interpolateNumber as Pn,interpolateRound as E,piecewise as jn}from"/-/d3-interpolate@v3.0.1-i9AsUdFHwyaukRBWNe8d/dist=es2020,mode=imports,min/optimized/d3-interpolate.js";import{formatSpecifier as G,precisionFixed as zn,precisionRound as En,precisionPrefix as Fn,formatPrefix as Tn,format as J}from"/-/d3-format@v3.1.0-D5wAD2odDPNNWsKloKgL/dist=es2020,mode=imports,min/optimized/d3-format.js";import{timeSecond as Wn,timeMinute as $n,timeHour as Yn,timeDay as Bn,timeWeek as Qn,timeMonth as Hn,timeYear as Un,timeTickInterval as Cn,timeTicks as Xn,utcSecond as xn,utcMinute as Kn,utcHour as _n,utcDay as Gn,utcWeek as Jn,utcMonth as Vn,utcYear as Zn,utcTickInterval as nt,utcTicks as tt}from"/-/d3-time@v3.1.0-hkusO1LcNQpH1ccXwop7/dist=es2020,mode=imports,min/optimized/d3-time.js";import{timeFormat as rt,utcFormat as et}from"/-/d3-time-format@v4.1.0-f8eZV7eLtGIxvK8uvO3o/dist=es2020,mode=imports,min/optimized/d3-time-format.js";function M(n,r){switch(arguments.length){case 0:break;case 1:this.range(n);break;default:this.range(r).domain(n);break}return this}function N(n,r){switch(arguments.length){case 0:break;case 1:{typeof n=="function"?this.interpolator(n):this.range(n);break}default:{this.domain(n),typeof r=="function"?this.interpolator(r):this.range(r);break}}return this}const F=Symbol("implicit");function T(){var n=new K,r=[],u=[],t=F;function a(e){let i=n.get(e);if(i===void 0){if(t!==F)return t;n.set(e,i=r.push(e)-1)}return u[i%u.length]}return a.domain=function(e){if(!arguments.length)return r.slice();r=[],n=new K;for(const i of e){if(n.has(i))continue;n.set(i,r.push(i)-1)}return a},a.range=function(e){return arguments.length?(u=Array.from(e),a):u.slice()},a.unknown=function(e){return arguments.length?(t=e,a):t},a.copy=function(){return T(r,u).unknown(t)},M.apply(a,arguments),a}function W(){var n=T().unknown(void 0),r=n.domain,u=n.range,t=0,a=1,e,i,c=!1,s=0,o=0,g=.5;delete n.unknown;function f(){var l=r().length,p=ar&&(u=n,n=r,r=u),function(t){return Math.max(n,Math.min(r,t))}}function ot(n,r,u){var t=n[0],a=n[1],e=r[0],i=r[1];return a2?lt:ot,s=o=null,f}function f(l){return l==null||isNaN(l=+l)?e:(s||(s=c(n.map(t),r,u)))(t(i(l)))}return f.invert=function(l){return i(a((o||(o=c(r,n.map(t),Pn)))(l)))},f.domain=function(l){return arguments.length?(n=Array.from(l,R),g()):n.slice()},f.range=function(l){return arguments.length?(r=Array.from(l),g()):r.slice()},f.rangeRound=function(l){return r=Array.from(l),u=E,g()},f.clamp=function(l){return arguments.length?(i=l?!0:y,g()):i!==y},f.interpolate=function(l){return arguments.length?(u=l,g()):u},f.unknown=function(l){return arguments.length?(e=l,f):e},function(l,p){return t=l,a=p,g()}}function Y(){return L()(y,y)}function nn(n,r,u,t){var a=In(n,r,u),e;t=G(t??",f");switch(t.type){case"s":{var i=Math.max(Math.abs(n),Math.abs(r));return t.precision==null&&!isNaN(e=Fn(a,i))&&(t.precision=e),Tn(t,i)}case"":case"e":case"g":case"p":case"r":{t.precision==null&&!isNaN(e=En(a,Math.max(Math.abs(n),Math.abs(r))))&&(t.precision=e-(t.type==="e"));break}case"f":case"%":{t.precision==null&&!isNaN(e=zn(a))&&(t.precision=e-(t.type==="%")*2);break}}return J(t)}function q(n){var r=n.domain;return n.ticks=function(u){var t=r();return j(t[0],t[t.length-1],u??10)},n.tickFormat=function(u,t){var a=r();return nn(a[0],a[a.length-1],u??10,t)},n.nice=function(u){u==null&&(u=10);var t=r(),a=0,e=t.length-1,i=t[a],c=t[e],s,o,g=10;for(c0;){if(o=Rn(i,c,u),o===s)return t[a]=i,t[e]=c,r(t);if(o>0)i=Math.floor(i/o)*o,c=Math.ceil(c/o)*o;else if(o<0)i=Math.ceil(i*o)/o,c=Math.floor(c*o)/o;else break;s=o}return n},n}function tn(){var n=Y();return n.copy=function(){return A(n,tn())},M.apply(n,arguments),q(n)}function rn(n){var r;function u(t){return t==null||isNaN(t=+t)?r:t}return u.invert=u,u.domain=u.range=function(t){return arguments.length?(n=Array.from(t,R),u):n.slice()},u.unknown=function(t){return arguments.length?(r=t,u):r},u.copy=function(){return rn(n).unknown(r)},n=arguments.length?Array.from(n,R):[0,1],q(u)}function en(n,r){n=n.slice();var u=0,t=n.length-1,a=n[u],e=n[t],i;return eMath.pow(n,r)}function mt(n){return n===Math.E?Math.log:n===10&&Math.log10||n===2&&Math.log2||(n=Math.log(n),r=>Math.log(r)/n)}function on(n){return(r,u)=>-n(-r,u)}function B(n){const r=n(un,an),u=r.domain;let t=10,a,e;function i(){return a=mt(t),e=gt(t),u()[0]<0?(a=on(a),e=on(e),n(ct,st)):n(un,an),r}return r.base=function(c){return arguments.length?(t=+c,i()):t},r.domain=function(c){return arguments.length?(u(c),i()):u()},r.ticks=c=>{const s=u();let o=s[0],g=s[s.length-1];const f=g0)for(;l<=p;++l)for(d=1;dg)break;v.push(m)}else for(;l<=p;++l)for(d=t-1;d>=1;--d){if(m=l>0?d/e(-l):d*e(l),mg)break;v.push(m)}v.length*2{if(c==null&&(c=10),s==null&&(s=t===10?"s":","),typeof s!="function"&&(!(t%1)&&(s=G(s)).precision==null&&(s.trim=!0),s=J(s)),c===Infinity)return s;const o=Math.max(1,t*c/r.ticks().length);return g=>{let f=g/e(Math.round(a(g)));return f*tu(en(u(),{floor:c=>e(Math.floor(a(c))),ceil:c=>e(Math.ceil(a(c)))})),r}function ln(){const n=B(L()).domain([1,10]);return n.copy=()=>A(n,ln()).base(n.base()),M.apply(n,arguments),n}function cn(n){return function(r){return Math.sign(r)*Math.log1p(Math.abs(r/n))}}function sn(n){return function(r){return Math.sign(r)*Math.expm1(Math.abs(r))*n}}function Q(n){var r=1,u=n(cn(r),sn(r));return u.constant=function(t){return arguments.length?n(cn(r=+t),sn(r)):r},q(u)}function fn(){var n=Q(L());return n.copy=function(){return A(n,fn()).constant(n.constant())},M.apply(n,arguments)}function gn(n){return function(r){return r<0?-Math.pow(-r,n):Math.pow(r,n)}}function pt(n){return n<0?-Math.sqrt(-n):Math.sqrt(n)}function ht(n){return n<0?-n*n:n*n}function H(n){var r=n(y,y),u=1;function t(){return u===1?n(y,y):u===.5?n(pt,ht):n(gn(u),gn(1/u))}return r.exponent=function(a){return arguments.length?(u=+a,t()):u},q(r)}function U(){var n=H(L());return n.copy=function(){return A(n,U()).exponent(n.exponent())},M.apply(n,arguments),n}function dt(){return U.apply(null,arguments).exponent(.5)}function mn(n){return Math.sign(n)*n*n}function yt(n){return Math.sign(n)*Math.sqrt(Math.abs(n))}function pn(){var n=Y(),r=[0,1],u=!1,t;function a(e){var i=yt(n(e));return isNaN(i)?t:u?Math.round(i):i}return a.invert=function(e){return n.invert(mn(e))},a.domain=function(e){return arguments.length?(n.domain(e),a):n.domain()},a.range=function(e){return arguments.length?(n.range((r=Array.from(e,R)).map(mn)),a):r.slice()},a.rangeRound=function(e){return a.range(e).round(!0)},a.round=function(e){return arguments.length?(u=!!e,a):u},a.clamp=function(e){return arguments.length?(n.clamp(e),a):n.clamp()},a.unknown=function(e){return arguments.length?(t=e,a):t},a.copy=function(){return pn(n.domain(),r).round(u).clamp(n.clamp()).unknown(t)},M.apply(a,arguments),q(a)}function hn(){var n=[],r=[],u=[],t;function a(){var i=0,c=Math.max(1,r.length);for(u=new Array(c-1);++i0?u[c-1]:n[0],c=u?[t[u-1],r]:[t[o-1],t[o]]},i.unknown=function(s){return arguments.length&&(e=s),i},i.thresholds=function(){return t.slice()},i.copy=function(){return dn().domain([n,r]).range(a).unknown(e)},M.apply(q(i),arguments)}function yn(){var n=[.5],r=[0,1],u,t=1;function a(e){return e!=null&&e<=e?r[b(n,e,0,t)]:u}return a.domain=function(e){return arguments.length?(n=Array.from(e),t=Math.min(n.length,r.length-1),a):n.slice()},a.range=function(e){return arguments.length?(r=Array.from(e),t=Math.min(n.length,r.length-1),a):r.slice()},a.invertExtent=function(e){var i=r.indexOf(e);return[n[i-1],n[i]]},a.unknown=function(e){return arguments.length?(u=e,a):u},a.copy=function(){return yn().domain(n).range(r).unknown(u)},M.apply(a,arguments)}function vt(n){return new Date(n)}function Mt(n){return n instanceof Date?+n:+new Date(+n)}function C(n,r,u,t,a,e,i,c,s,o){var g=Y(),f=g.invert,l=g.domain,p=o(".%L"),d=o(":%S"),m=o("%I:%M"),w=o("%I %p"),v=o("%a %d"),D=o("%b %d"),I=o("%B"),bn=o("%Y");function An(h){return(s(h)r(a/(n.length-1)))},u.quantiles=function(t){return Array.from({length:t+1},(a,e)=>On(n,e/t))},u.copy=function(){return kn(r).domain(n)},N.apply(u,arguments)}function P(){var n=0,r=.5,u=1,t=1,a,e,i,c,s,o=y,g,f=!1,l;function p(m){return isNaN(m=+m)?l:(m=.5+((m=+g(m))-e)*(t*m