(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4546],{58046:function(r,e,t){"use strict";var n=t(60878);function a(){}function f(){}f.resetWarningCache=a,r.exports=function(){function r(r,e,t,a,f,o){if(o!==n){var u=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function e(){return r}r.isRequired=r;var t={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:e,element:r,elementType:r,instanceOf:e,node:r,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:f,resetWarningCache:a};return t.PropTypes=t,t}},92673:function(r,e,t){r.exports=t(58046)()},60878:function(r){"use strict";r.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},253:function(r){/**
 * chroma.js - JavaScript library for color conversions
 *
 * Copyright (c) 2011-2019, Gregor Aisch
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * 1. Redistributions of source code must retain the above copyright notice, this
 * list of conditions and the following disclaimer.
 *
 * 2. Redistributions in binary form must reproduce the above copyright notice,
 * this list of conditions and the following disclaimer in the documentation
 * and/or other materials provided with the distribution.
 *
 * 3. The name Gregor Aisch may not be used to endorse or promote products
 * derived from this software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED. IN NO EVENT SHALL GREGOR AISCH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 *
 * -------------------------------------------------------
 *
 * chroma.js includes colors from colorbrewer2.org, which are released under
 * the following license:
 *
 * Copyright (c) 2002 Cynthia Brewer, Mark Harrower,
 * and The Pennsylvania State University.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
 * either express or implied. See the License for the specific
 * language governing permissions and limitations under the License.
 *
 * ------------------------------------------------------
 *
 * Named colors are taken from X11 Color Names.
 * http://www.w3.org/TR/css3-color/#svg-color
 *
 * @preserve
 */r.exports=function(){"use strict";for(var r=function(r,e,t){return void 0===e&&(e=0),void 0===t&&(t=1),r<e?e:r>t?t:r},e={},t=0,n=["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"];t<n.length;t+=1){var a=n[t];e["[object "+a+"]"]=a.toLowerCase()}var f=function(r){return e[Object.prototype.toString.call(r)]||"object"},o=Math.PI,u={clip_rgb:function(e){e._clipped=!1,e._unclipped=e.slice(0);for(var t=0;t<=3;t++)t<3?((e[t]<0||e[t]>255)&&(e._clipped=!0),e[t]=r(e[t],0,255)):3===t&&(e[t]=r(e[t],0,1));return e},limit:r,type:f,unpack:function(r,e){return(void 0===e&&(e=null),r.length>=3)?Array.prototype.slice.call(r):"object"==f(r[0])&&e?e.split("").filter(function(e){return void 0!==r[0][e]}).map(function(e){return r[0][e]}):r[0]},last:function(r){if(r.length<2)return null;var e=r.length-1;return"string"==f(r[e])?r[e].toLowerCase():null},TWOPI:2*o,PITHIRD:o/3,DEG2RAD:o/180,RAD2DEG:180/o},c={format:{},autodetect:[]},i=u.last,l=u.clip_rgb,h=u.type,s=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];if("object"===h(r[0])&&r[0].constructor&&r[0].constructor===this.constructor)return r[0];var t=i(r),n=!1;if(!t){n=!0,c.sorted||(c.autodetect=c.autodetect.sort(function(r,e){return e.p-r.p}),c.sorted=!0);for(var a=0,f=c.autodetect;a<f.length;a+=1){var o=f[a];if(t=o.test.apply(o,r))break}}if(c.format[t]){var u=c.format[t].apply(null,n?r:r.slice(0,-1));this._rgb=l(u)}else throw Error("unknown format: "+r);3===this._rgb.length&&this._rgb.push(1)};s.prototype.toString=function(){return"function"==h(this.hex)?this.hex():"["+this._rgb.join(",")+"]"};var d=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return new(Function.prototype.bind.apply(d.Color,[null].concat(r)))};d.Color=s,d.version="2.4.2";var b=u.unpack,p=Math.max,g=u.unpack,v=u.unpack,m=u.type,y=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var t=b(r,"rgb"),n=t[0],a=t[1],f=t[2],o=1-p(n/=255,p(a/=255,f/=255)),u=o<1?1/(1-o):0;return[(1-n-o)*u,(1-a-o)*u,(1-f-o)*u,o]};s.prototype.cmyk=function(){return y(this._rgb)},d.cmyk=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return new(Function.prototype.bind.apply(s,[null].concat(r,["cmyk"])))},c.format.cmyk=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var t=(r=g(r,"cmyk"))[0],n=r[1],a=r[2],f=r[3],o=r.length>4?r[4]:1;return 1===f?[0,0,0,o]:[t>=1?0:255*(1-t)*(1-f),n>=1?0:255*(1-n)*(1-f),a>=1?0:255*(1-a)*(1-f),o]},c.autodetect.push({p:2,test:function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];if("array"===m(r=v(r,"cmyk"))&&4===r.length)return"cmyk"}});var k=u.unpack,w=u.last,M=function(r){return Math.round(100*r)/100},_=u.unpack,N=function(){for(var r,e,t=[],n=arguments.length;n--;)t[n]=arguments[n];var a=(t=_(t,"rgba"))[0],f=t[1],o=t[2],u=Math.min(a/=255,f/=255,o/=255),c=Math.max(a,f,o),i=(c+u)/2;return(c===u?(r=0,e=Number.NaN):r=i<.5?(c-u)/(c+u):(c-u)/(2-c-u),a==c?e=(f-o)/(c-u):f==c?e=2+(o-a)/(c-u):o==c&&(e=4+(a-f)/(c-u)),(e*=60)<0&&(e+=360),t.length>3&&void 0!==t[3])?[e,r,i,t[3]]:[e,r,i]},x=u.unpack,E=u.last,O=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var t=k(r,"hsla"),n=w(r)||"lsa";return t[0]=M(t[0]||0),t[1]=M(100*t[1])+"%",t[2]=M(100*t[2])+"%","hsla"===n||t.length>3&&t[3]<1?(t[3]=t.length>3?t[3]:1,n="hsla"):t.length=3,n+"("+t.join(",")+")"},A=Math.round,P=u.unpack,F=Math.round,R=function(){for(var r,e,t,n,a=[],f=arguments.length;f--;)a[f]=arguments[f];var o=(a=P(a,"hsl"))[0],u=a[1],c=a[2];if(0===u)e=t=n=255*c;else{var i=[0,0,0],l=[0,0,0],h=c<.5?c*(1+u):c+u-c*u,s=2*c-h,d=o/360;i[0]=d+1/3,i[1]=d,i[2]=d-1/3;for(var b=0;b<3;b++)i[b]<0&&(i[b]+=1),i[b]>1&&(i[b]-=1),6*i[b]<1?l[b]=s+(h-s)*6*i[b]:2*i[b]<1?l[b]=h:3*i[b]<2?l[b]=s+(h-s)*(2/3-i[b])*6:l[b]=s;e=(r=[F(255*l[0]),F(255*l[1]),F(255*l[2])])[0],t=r[1],n=r[2]}return a.length>3?[e,t,n,a[3]]:[e,t,n,1]},j=/^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/,C=/^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/,L=/^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,q=/^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,G=/^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,I=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,T=Math.round,B=function(r){if(r=r.toLowerCase().trim(),c.format.named)try{return c.format.named(r)}catch(r){}if(e=r.match(j)){for(var e,t=e.slice(1,4),n=0;n<3;n++)t[n]=+t[n];return t[3]=1,t}if(e=r.match(C)){for(var a=e.slice(1,5),f=0;f<4;f++)a[f]=+a[f];return a}if(e=r.match(L)){for(var o=e.slice(1,4),u=0;u<3;u++)o[u]=T(2.55*o[u]);return o[3]=1,o}if(e=r.match(q)){for(var i=e.slice(1,5),l=0;l<3;l++)i[l]=T(2.55*i[l]);return i[3]=+i[3],i}if(e=r.match(G)){var h=e.slice(1,4);h[1]*=.01,h[2]*=.01;var s=R(h);return s[3]=1,s}if(e=r.match(I)){var d=e.slice(1,4);d[1]*=.01,d[2]*=.01;var b=R(d);return b[3]=+e[4],b}};B.test=function(r){return j.test(r)||C.test(r)||L.test(r)||q.test(r)||G.test(r)||I.test(r)};var D=u.type,S=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var t=x(r,"rgba"),n=E(r)||"rgb";return"hsl"==n.substr(0,3)?O(N(t),n):(t[0]=A(t[0]),t[1]=A(t[1]),t[2]=A(t[2]),("rgba"===n||t.length>3&&t[3]<1)&&(t[3]=t.length>3?t[3]:1,n="rgba"),n+"("+t.slice(0,"rgb"===n?3:4).join(",")+")")};s.prototype.css=function(r){return S(this._rgb,r)},d.css=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return new(Function.prototype.bind.apply(s,[null].concat(r,["css"])))},c.format.css=B,c.autodetect.push({p:5,test:function(r){for(var e=[],t=arguments.length-1;t-- >0;)e[t]=arguments[t+1];if(!e.length&&"string"===D(r)&&B.test(r))return"css"}});var Y=u.unpack;c.format.gl=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var t=Y(r,"rgba");return t[0]*=255,t[1]*=255,t[2]*=255,t},d.gl=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return new(Function.prototype.bind.apply(s,[null].concat(r,["gl"])))},s.prototype.gl=function(){var r=this._rgb;return[r[0]/255,r[1]/255,r[2]/255,r[3]]};var $=u.unpack,z=u.unpack,W=Math.floor,U=u.unpack,X=u.type,V=function(){for(var r,e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=$(e,"rgb"),a=n[0],f=n[1],o=n[2],u=Math.min(a,f,o),c=Math.max(a,f,o),i=c-u;return 0===i?r=Number.NaN:(a===c&&(r=(f-o)/i),f===c&&(r=2+(o-a)/i),o===c&&(r=4+(a-f)/i),(r*=60)<0&&(r+=360)),[r,100*i/255,u/(255-i)*100]};s.prototype.hcg=function(){return V(this._rgb)},d.hcg=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return new(Function.prototype.bind.apply(s,[null].concat(r,["hcg"])))},c.format.hcg=function(){for(var r,e,t,n,a,f,o,u,c,i=[],l=arguments.length;l--;)i[l]=arguments[l];var h=(i=z(i,"hcg"))[0],s=i[1],d=i[2];d*=255;var b=255*s;if(0===s)o=u=c=d;else{360===h&&(h=0),h>360&&(h-=360),h<0&&(h+=360);var p=W(h/=60),g=h-p,v=d*(1-s),m=v+b*(1-g),y=v+b*g,k=v+b;switch(p){case 0:o=(r=[k,y,v])[0],u=r[1],c=r[2];break;case 1:o=(e=[m,k,v])[0],u=e[1],c=e[2];break;case 2:o=(t=[v,k,y])[0],u=t[1],c=t[2];break;case 3:o=(n=[v,m,k])[0],u=n[1],c=n[2];break;case 4:o=(a=[y,v,k])[0],u=a[1],c=a[2];break;case 5:o=(f=[k,v,m])[0],u=f[1],c=f[2]}}return[o,u,c,i.length>3?i[3]:1]},c.autodetect.push({p:1,test:function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];if("array"===X(r=U(r,"hcg"))&&3===r.length)return"hcg"}});var Z=u.unpack,H=u.last,K=Math.round,J=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var t=Z(r,"rgba"),n=t[0],a=t[1],f=t[2],o=t[3],u=H(r)||"auto";void 0===o&&(o=1),"auto"===u&&(u=o<1?"rgba":"rgb");var c="000000"+((n=K(n))<<16|(a=K(a))<<8|(f=K(f))).toString(16);c=c.substr(c.length-6);var i="0"+K(255*o).toString(16);switch(i=i.substr(i.length-2),u.toLowerCase()){case"rgba":return"#"+c+i;case"argb":return"#"+i+c;default:return"#"+c}},Q=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,rr=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,re=function(r){if(r.match(Q)){(4===r.length||7===r.length)&&(r=r.substr(1)),3===r.length&&(r=(r=r.split(""))[0]+r[0]+r[1]+r[1]+r[2]+r[2]);var e=parseInt(r,16);return[e>>16,e>>8&255,255&e,1]}if(r.match(rr)){(5===r.length||9===r.length)&&(r=r.substr(1)),4===r.length&&(r=(r=r.split(""))[0]+r[0]+r[1]+r[1]+r[2]+r[2]+r[3]+r[3]);var t=parseInt(r,16);return[t>>24&255,t>>16&255,t>>8&255,Math.round((255&t)/255*100)/100]}throw Error("unknown hex color: "+r)},rt=u.type;s.prototype.hex=function(r){return J(this._rgb,r)},d.hex=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return new(Function.prototype.bind.apply(s,[null].concat(r,["hex"])))},c.format.hex=re,c.autodetect.push({p:4,test:function(r){for(var e=[],t=arguments.length-1;t-- >0;)e[t]=arguments[t+1];if(!e.length&&"string"===rt(r)&&[3,4,5,6,7,8,9].indexOf(r.length)>=0)return"hex"}});var rn=u.unpack,ra=u.TWOPI,rf=Math.min,ro=Math.sqrt,ru=Math.acos,rc=u.unpack,ri=u.limit,rl=u.TWOPI,rh=u.PITHIRD,rs=Math.cos,rd=u.unpack,rb=u.type,rp=function(){for(var r,e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=rn(e,"rgb"),a=n[0],f=n[1],o=n[2],u=rf(a/=255,f/=255,o/=255),c=(a+f+o)/3,i=c>0?1-u/c:0;return 0===i?r=NaN:(r=ru(r=(a-f+(a-o))/2/ro((a-f)*(a-f)+(a-o)*(f-o))),o>f&&(r=ra-r),r/=ra),[360*r,i,c]};s.prototype.hsi=function(){return rp(this._rgb)},d.hsi=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return new(Function.prototype.bind.apply(s,[null].concat(r,["hsi"])))},c.format.hsi=function(){for(var r,e,t,n=[],a=arguments.length;a--;)n[a]=arguments[a];var f=(n=rc(n,"hsi"))[0],o=n[1],u=n[2];return isNaN(f)&&(f=0),isNaN(o)&&(o=0),f>360&&(f-=360),f<0&&(f+=360),(f/=360)<1/3?e=1-((t=(1-o)/3)+(r=(1+o*rs(rl*f)/rs(rh-rl*f))/3)):f<2/3?(f-=1/3,t=1-((r=(1-o)/3)+(e=(1+o*rs(rl*f)/rs(rh-rl*f))/3))):(f-=2/3,r=1-((e=(1-o)/3)+(t=(1+o*rs(rl*f)/rs(rh-rl*f))/3))),[255*(r=ri(u*r*3)),255*(e=ri(u*e*3)),255*(t=ri(u*t*3)),n.length>3?n[3]:1]},c.autodetect.push({p:2,test:function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];if("array"===rb(r=rd(r,"hsi"))&&3===r.length)return"hsi"}});var rg=u.unpack,rv=u.type;s.prototype.hsl=function(){return N(this._rgb)},d.hsl=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return new(Function.prototype.bind.apply(s,[null].concat(r,["hsl"])))},c.format.hsl=R,c.autodetect.push({p:2,test:function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];if("array"===rv(r=rg(r,"hsl"))&&3===r.length)return"hsl"}});var rm=u.unpack,ry=Math.min,rk=Math.max,rw=u.unpack,rM=Math.floor,r_=u.unpack,rN=u.type,rx=function(){for(var r,e,t=[],n=arguments.length;n--;)t[n]=arguments[n];var a=(t=rm(t,"rgb"))[0],f=t[1],o=t[2],u=ry(a,f,o),c=rk(a,f,o),i=c-u;return 0===c?(r=Number.NaN,e=0):(e=i/c,a===c&&(r=(f-o)/i),f===c&&(r=2+(o-a)/i),o===c&&(r=4+(a-f)/i),(r*=60)<0&&(r+=360)),[r,e,c/255]};s.prototype.hsv=function(){return rx(this._rgb)},d.hsv=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return new(Function.prototype.bind.apply(s,[null].concat(r,["hsv"])))},c.format.hsv=function(){for(var r,e,t,n,a,f,o,u,c,i=[],l=arguments.length;l--;)i[l]=arguments[l];var h=(i=rw(i,"hsv"))[0],s=i[1],d=i[2];if(d*=255,0===s)o=u=c=d;else{360===h&&(h=0),h>360&&(h-=360),h<0&&(h+=360);var b=rM(h/=60),p=h-b,g=d*(1-s),v=d*(1-s*p),m=d*(1-s*(1-p));switch(b){case 0:o=(r=[d,m,g])[0],u=r[1],c=r[2];break;case 1:o=(e=[v,d,g])[0],u=e[1],c=e[2];break;case 2:o=(t=[g,d,m])[0],u=t[1],c=t[2];break;case 3:o=(n=[g,v,d])[0],u=n[1],c=n[2];break;case 4:o=(a=[m,g,d])[0],u=a[1],c=a[2];break;case 5:o=(f=[d,g,v])[0],u=f[1],c=f[2]}}return[o,u,c,i.length>3?i[3]:1]},c.autodetect.push({p:2,test:function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];if("array"===rN(r=r_(r,"hsv"))&&3===r.length)return"hsv"}});var rE={Kn:18,Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452},rO=u.unpack,rA=Math.pow,rP=function(r){return(r/=255)<=.04045?r/12.92:rA((r+.055)/1.055,2.4)},rF=function(r){return r>rE.t3?rA(r,1/3):r/rE.t2+rE.t0},rR=function(){for(var r,e,t,n=[],a=arguments.length;a--;)n[a]=arguments[a];var f=rO(n,"rgb"),o=(r=f[0],e=f[1],t=f[2],[rF((.4124564*(r=rP(r))+.3575761*(e=rP(e))+.1804375*(t=rP(t)))/rE.Xn),rF((.2126729*r+.7151522*e+.072175*t)/rE.Yn),rF((.0193339*r+.119192*e+.9503041*t)/rE.Zn)]),u=o[0],c=o[1],i=o[2],l=116*c-16;return[l<0?0:l,500*(u-c),200*(c-i)]},rj=u.unpack,rC=Math.pow,rL=function(r){return 255*(r<=.00304?12.92*r:1.055*rC(r,1/2.4)-.055)},rq=function(r){return r>rE.t1?r*r*r:rE.t2*(r-rE.t0)},rG=function(){for(var r,e,t,n=[],a=arguments.length;a--;)n[a]=arguments[a];var f=(n=rj(n,"lab"))[0],o=n[1],u=n[2];return e=(f+16)/116,r=isNaN(o)?e:e+o/500,t=isNaN(u)?e:e-u/200,e=rE.Yn*rq(e),[rL(3.2404542*(r=rE.Xn*rq(r))-1.5371385*e-.4985314*(t=rE.Zn*rq(t))),rL(-.969266*r+1.8760108*e+.041556*t),rL(.0556434*r-.2040259*e+1.0572252*t),n.length>3?n[3]:1]},rI=u.unpack,rT=u.type;s.prototype.lab=function(){return rR(this._rgb)},d.lab=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return new(Function.prototype.bind.apply(s,[null].concat(r,["lab"])))},c.format.lab=rG,c.autodetect.push({p:2,test:function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];if("array"===rT(r=rI(r,"lab"))&&3===r.length)return"lab"}});var rB=u.unpack,rD=u.RAD2DEG,rS=Math.sqrt,rY=Math.atan2,r$=Math.round,rz=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var t=rB(r,"lab"),n=t[0],a=t[1],f=t[2],o=rS(a*a+f*f),u=(rY(f,a)*rD+360)%360;return 0===r$(1e4*o)&&(u=Number.NaN),[n,o,u]},rW=u.unpack,rU=u.unpack,rX=u.DEG2RAD,rV=Math.sin,rZ=Math.cos,rH=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var t=rU(r,"lch"),n=t[0],a=t[1],f=t[2];return isNaN(f)&&(f=0),[n,rZ(f*=rX)*a,rV(f)*a]},rK=u.unpack,rJ=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var t=rH((r=rK(r,"lch"))[0],r[1],r[2]),n=rG(t[0],t[1],t[2]);return[n[0],n[1],n[2],r.length>3?r[3]:1]},rQ=u.unpack,r0=u.unpack,r1=u.type,r2=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var t=rW(r,"rgb"),n=rR(t[0],t[1],t[2]);return rz(n[0],n[1],n[2])};s.prototype.lch=function(){return r2(this._rgb)},s.prototype.hcl=function(){return r2(this._rgb).reverse()},d.lch=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return new(Function.prototype.bind.apply(s,[null].concat(r,["lch"])))},d.hcl=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return new(Function.prototype.bind.apply(s,[null].concat(r,["hcl"])))},c.format.lch=rJ,c.format.hcl=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var t=rQ(r,"hcl").reverse();return rJ.apply(void 0,t)},["lch","hcl"].forEach(function(r){return c.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if("array"===r1(e=r0(e,r))&&3===e.length)return r}})});var r5={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflower:"#6495ed",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},r3=u.type;s.prototype.name=function(){for(var r=J(this._rgb,"rgb"),e=0,t=Object.keys(r5);e<t.length;e+=1){var n=t[e];if(r5[n]===r)return n.toLowerCase()}return r},c.format.named=function(r){if(r5[r=r.toLowerCase()])return re(r5[r]);throw Error("unknown color name: "+r)},c.autodetect.push({p:5,test:function(r){for(var e=[],t=arguments.length-1;t-- >0;)e[t]=arguments[t+1];if(!e.length&&"string"===r3(r)&&r5[r.toLowerCase()])return"named"}});var r6=u.unpack,r4=u.type,r8=u.type,r9=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var t=r6(r,"rgb");return(t[0]<<16)+(t[1]<<8)+t[2]};s.prototype.num=function(){return r9(this._rgb)},d.num=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return new(Function.prototype.bind.apply(s,[null].concat(r,["num"])))},c.format.num=function(r){if("number"==r4(r)&&r>=0&&r<=16777215)return[r>>16,r>>8&255,255&r,1];throw Error("unknown num color: "+r)},c.autodetect.push({p:5,test:function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];if(1===r.length&&"number"===r8(r[0])&&r[0]>=0&&r[0]<=16777215)return"num"}});var r7=u.unpack,er=u.type,ee=Math.round;s.prototype.rgb=function(r){return(void 0===r&&(r=!0),!1===r)?this._rgb.slice(0,3):this._rgb.slice(0,3).map(ee)},s.prototype.rgba=function(r){return void 0===r&&(r=!0),this._rgb.slice(0,4).map(function(e,t){return t<3?!1===r?e:ee(e):e})},d.rgb=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return new(Function.prototype.bind.apply(s,[null].concat(r,["rgb"])))},c.format.rgb=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var t=r7(r,"rgba");return void 0===t[3]&&(t[3]=1),t},c.autodetect.push({p:3,test:function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];if("array"===er(r=r7(r,"rgba"))&&(3===r.length||4===r.length&&"number"==er(r[3])&&r[3]>=0&&r[3]<=1))return"rgb"}});var et=Math.log,en=function(r){var e,t,n,a=r/100;return a<66?(e=255,t=a<6?0:-155.25485562709179-.44596950469579133*(t=a-2)+104.49216199393888*et(t),n=a<20?0:-254.76935184120902+.8274096064007395*(n=a-10)+115.67994401066147*et(n)):(e=351.97690566805693+.114206453784165*(e=a-55)-40.25366309332127*et(e),t=325.4494125711974+.07943456536662342*(t=a-50)-28.0852963507957*et(t),n=255),[e,t,n,1]},ea=u.unpack,ef=Math.round,eo=function(){for(var r,e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=ea(e,"rgb"),a=n[0],f=n[2],o=1e3,u=4e4;u-o>.4;){var c=en(r=(u+o)*.5);c[2]/c[0]>=f/a?u=r:o=r}return ef(r)};s.prototype.temp=s.prototype.kelvin=s.prototype.temperature=function(){return eo(this._rgb)},d.temp=d.kelvin=d.temperature=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return new(Function.prototype.bind.apply(s,[null].concat(r,["temp"])))},c.format.temp=c.format.kelvin=c.format.temperature=en;var eu=u.unpack,ec=Math.cbrt,ei=Math.pow,el=Math.sign,eh=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var t=eu(r,"rgb"),n=t[0],a=t[1],f=t[2],o=[es(n/255),es(a/255),es(f/255)],u=o[0],c=o[1],i=o[2],l=ec(.4122214708*u+.5363325363*c+.0514459929*i),h=ec(.2119034982*u+.6806995451*c+.1073969566*i),s=ec(.0883024619*u+.2817188376*c+.6299787005*i);return[.2104542553*l+.793617785*h-.0040720468*s,1.9779984951*l-2.428592205*h+.4505937099*s,.0259040371*l+.7827717662*h-.808675766*s]};function es(r){var e=Math.abs(r);return e<.04045?r/12.92:(el(r)||1)*ei((e+.055)/1.055,2.4)}var ed=u.unpack,eb=Math.pow,ep=Math.sign,eg=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var t=(r=ed(r,"lab"))[0],n=r[1],a=r[2],f=eb(t+.3963377774*n+.2158037573*a,3),o=eb(t-.1055613458*n-.0638541728*a,3),u=eb(t-.0894841775*n-1.291485548*a,3);return[255*ev(4.0767416621*f-3.3077115913*o+.2309699292*u),255*ev(-1.2684380046*f+2.6097574011*o-.3413193965*u),255*ev(-.0041960863*f-.7034186147*o+1.707614701*u),r.length>3?r[3]:1]};function ev(r){var e=Math.abs(r);return e>.0031308?(ep(r)||1)*(1.055*eb(e,1/2.4)-.055):12.92*r}var em=u.unpack,ey=u.type;s.prototype.oklab=function(){return eh(this._rgb)},d.oklab=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return new(Function.prototype.bind.apply(s,[null].concat(r,["oklab"])))},c.format.oklab=eg,c.autodetect.push({p:3,test:function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];if("array"===ey(r=em(r,"oklab"))&&3===r.length)return"oklab"}});var ek=u.unpack,ew=u.unpack,eM=u.unpack,e_=u.type,eN=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var t=ek(r,"rgb"),n=eh(t[0],t[1],t[2]);return rz(n[0],n[1],n[2])};s.prototype.oklch=function(){return eN(this._rgb)},d.oklch=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return new(Function.prototype.bind.apply(s,[null].concat(r,["oklch"])))},c.format.oklch=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var t=rH((r=ew(r,"lch"))[0],r[1],r[2]),n=eg(t[0],t[1],t[2]);return[n[0],n[1],n[2],r.length>3?r[3]:1]},c.autodetect.push({p:3,test:function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];if("array"===e_(r=eM(r,"oklch"))&&3===r.length)return"oklch"}});var ex=u.type;s.prototype.alpha=function(r,e){return(void 0===e&&(e=!1),void 0!==r&&"number"===ex(r))?e?(this._rgb[3]=r,this):new s([this._rgb[0],this._rgb[1],this._rgb[2],r],"rgb"):this._rgb[3]},s.prototype.clipped=function(){return this._rgb._clipped||!1},s.prototype.darken=function(r){void 0===r&&(r=1);var e=this.lab();return e[0]-=rE.Kn*r,new s(e,"lab").alpha(this.alpha(),!0)},s.prototype.brighten=function(r){return void 0===r&&(r=1),this.darken(-r)},s.prototype.darker=s.prototype.darken,s.prototype.brighter=s.prototype.brighten,s.prototype.get=function(r){var e=r.split("."),t=e[0],n=e[1],a=this[t]();if(!n)return a;var f=t.indexOf(n)-("ok"===t.substr(0,2)?2:0);if(f>-1)return a[f];throw Error("unknown channel "+n+" in mode "+t)};var eE=u.type,eO=Math.pow;s.prototype.luminance=function(r){if(void 0!==r&&"number"===eE(r)){if(0===r)return new s([0,0,0,this._rgb[3]],"rgb");if(1===r)return new s([255,255,255,this._rgb[3]],"rgb");var e=this.luminance(),t=20,n=function(e,a){var f=e.interpolate(a,.5,"rgb"),o=f.luminance();return!(1e-7>Math.abs(r-o))&&t--?o>r?n(e,f):n(f,a):f},a=(e>r?n(new s([0,0,0]),this):n(this,new s([255,255,255]))).rgb();return new s(a.concat([this._rgb[3]]))}return eA.apply(void 0,this._rgb.slice(0,3))};var eA=function(r,e,t){return .2126*(r=eP(r))+.7152*(e=eP(e))+.0722*(t=eP(t))},eP=function(r){return(r/=255)<=.03928?r/12.92:eO((r+.055)/1.055,2.4)},eF={},eR=u.type,ej=function(r,e,t){void 0===t&&(t=.5);for(var n=[],a=arguments.length-3;a-- >0;)n[a]=arguments[a+3];var f=n[0]||"lrgb";if(eF[f]||n.length||(f=Object.keys(eF)[0]),!eF[f])throw Error("interpolation mode "+f+" is not defined");return"object"!==eR(r)&&(r=new s(r)),"object"!==eR(e)&&(e=new s(e)),eF[f](r,e,t).alpha(r.alpha()+t*(e.alpha()-r.alpha()))};s.prototype.mix=s.prototype.interpolate=function(r,e){void 0===e&&(e=.5);for(var t=[],n=arguments.length-2;n-- >0;)t[n]=arguments[n+2];return ej.apply(void 0,[this,r,e].concat(t))},s.prototype.premultiply=function(r){void 0===r&&(r=!1);var e=this._rgb,t=e[3];return r?(this._rgb=[e[0]*t,e[1]*t,e[2]*t,t],this):new s([e[0]*t,e[1]*t,e[2]*t,t],"rgb")},s.prototype.saturate=function(r){void 0===r&&(r=1);var e=this.lch();return e[1]+=rE.Kn*r,e[1]<0&&(e[1]=0),new s(e,"lch").alpha(this.alpha(),!0)},s.prototype.desaturate=function(r){return void 0===r&&(r=1),this.saturate(-r)};var eC=u.type;s.prototype.set=function(r,e,t){void 0===t&&(t=!1);var n=r.split("."),a=n[0],f=n[1],o=this[a]();if(!f)return o;var u=a.indexOf(f)-("ok"===a.substr(0,2)?2:0);if(u>-1){if("string"==eC(e))switch(e.charAt(0)){case"+":case"-":o[u]+=+e;break;case"*":o[u]*=+e.substr(1);break;case"/":o[u]/=+e.substr(1);break;default:o[u]=+e}else if("number"===eC(e))o[u]=e;else throw Error("unsupported value for Color.set");var c=new s(o,a);return t?(this._rgb=c._rgb,this):c}throw Error("unknown channel "+f+" in mode "+a)},eF.rgb=function(r,e,t){var n=r._rgb,a=e._rgb;return new s(n[0]+t*(a[0]-n[0]),n[1]+t*(a[1]-n[1]),n[2]+t*(a[2]-n[2]),"rgb")};var eL=Math.sqrt,eq=Math.pow;eF.lrgb=function(r,e,t){var n=r._rgb,a=n[0],f=n[1],o=n[2],u=e._rgb,c=u[0],i=u[1],l=u[2];return new s(eL(eq(a,2)*(1-t)+eq(c,2)*t),eL(eq(f,2)*(1-t)+eq(i,2)*t),eL(eq(o,2)*(1-t)+eq(l,2)*t),"rgb")},eF.lab=function(r,e,t){var n=r.lab(),a=e.lab();return new s(n[0]+t*(a[0]-n[0]),n[1]+t*(a[1]-n[1]),n[2]+t*(a[2]-n[2]),"lab")};var eG=function(r,e,t,n){var a,f,o,u,c,i,l,h,d,b,p,g,v,m;return"hsl"===n?(o=r.hsl(),u=e.hsl()):"hsv"===n?(o=r.hsv(),u=e.hsv()):"hcg"===n?(o=r.hcg(),u=e.hcg()):"hsi"===n?(o=r.hsi(),u=e.hsi()):"lch"===n||"hcl"===n?(n="hcl",o=r.hcl(),u=e.hcl()):"oklch"===n&&(o=r.oklch().reverse(),u=e.oklch().reverse()),("h"===n.substr(0,1)||"oklch"===n)&&(c=(a=o)[0],l=a[1],d=a[2],i=(f=u)[0],h=f[1],b=f[2]),isNaN(c)||isNaN(i)?isNaN(c)?isNaN(i)?g=Number.NaN:(g=i,(1==d||0==d)&&"hsv"!=n&&(p=h)):(g=c,(1==b||0==b)&&"hsv"!=n&&(p=l)):(m=i>c&&i-c>180?i-(c+360):i<c&&c-i>180?i+360-c:i-c,g=c+t*m),void 0===p&&(p=l+t*(h-l)),v=d+t*(b-d),"oklch"===n?new s([v,p,g],n):new s([g,p,v],n)},eI=function(r,e,t){return eG(r,e,t,"lch")};eF.lch=eI,eF.hcl=eI,eF.num=function(r,e,t){var n=r.num(),a=e.num();return new s(n+t*(a-n),"num")},eF.hcg=function(r,e,t){return eG(r,e,t,"hcg")},eF.hsi=function(r,e,t){return eG(r,e,t,"hsi")},eF.hsl=function(r,e,t){return eG(r,e,t,"hsl")},eF.hsv=function(r,e,t){return eG(r,e,t,"hsv")},eF.oklab=function(r,e,t){var n=r.oklab(),a=e.oklab();return new s(n[0]+t*(a[0]-n[0]),n[1]+t*(a[1]-n[1]),n[2]+t*(a[2]-n[2]),"oklab")},eF.oklch=function(r,e,t){return eG(r,e,t,"oklch")};var eT=u.clip_rgb,eB=Math.pow,eD=Math.sqrt,eS=Math.PI,eY=Math.cos,e$=Math.sin,ez=Math.atan2,eW=function(r,e){for(var t=r.length,n=[0,0,0,0],a=0;a<r.length;a++){var f=r[a],o=e[a]/t,u=f._rgb;n[0]+=eB(u[0],2)*o,n[1]+=eB(u[1],2)*o,n[2]+=eB(u[2],2)*o,n[3]+=u[3]*o}return n[0]=eD(n[0]),n[1]=eD(n[1]),n[2]=eD(n[2]),n[3]>.9999999&&(n[3]=1),new s(eT(n))},eU=u.type,eX=Math.pow,eV=function(r){var e="rgb",t=d("#ccc"),n=0,a=[0,1],f=[],o=[0,0],u=!1,c=[],i=!1,l=0,h=1,s=!1,b={},p=!0,g=1,v=function(r){if("string"===eU(r=r||["#fff","#000"])&&d.brewer&&d.brewer[r.toLowerCase()]&&(r=d.brewer[r.toLowerCase()]),"array"===eU(r)){1===r.length&&(r=[r[0],r[0]]),r=r.slice(0);for(var e=0;e<r.length;e++)r[e]=d(r[e]);f.length=0;for(var t=0;t<r.length;t++)f.push(t/(r.length-1))}return M(),c=r},m=function(r){if(null!=u){for(var e=u.length-1,t=0;t<e&&r>=u[t];)t++;return t-1}return 0},y=function(r){return r},k=function(r){return r},w=function(r,n){if(null==n&&(n=!1),isNaN(r)||null===r)return t;if(n)i=r;else if(u&&u.length>2){var a,i;i=m(r)/(u.length-2)}else i=h!==l?(r-l)/(h-l):1;i=k(i),n||(i=y(i)),1!==g&&(i=eX(i,g));var s=Math.floor(1e4*(i=Math.min(1,Math.max(0,i=o[0]+i*(1-o[0]-o[1])))));if(p&&b[s])a=b[s];else{if("array"===eU(c))for(var v=0;v<f.length;v++){var w=f[v];if(i<=w||i>=w&&v===f.length-1){a=c[v];break}if(i>w&&i<f[v+1]){i=(i-w)/(f[v+1]-w),a=d.interpolate(c[v],c[v+1],i,e);break}}else"function"===eU(c)&&(a=c(i));p&&(b[s]=a)}return a},M=function(){return b={}};v(r);var _=function(r){var e=d(w(r));return i&&e[i]?e[i]():e};return _.classes=function(r){if(null!=r){if("array"===eU(r))u=r,a=[r[0],r[r.length-1]];else{var e=d.analyze(a);u=0===r?[e.min,e.max]:d.limits(e,"e",r)}return _}return u},_.domain=function(r){if(!arguments.length)return a;l=r[0],h=r[r.length-1],f=[];var e=c.length;if(r.length===e&&l!==h)for(var t=0,n=Array.from(r);t<n.length;t+=1){var o=n[t];f.push((o-l)/(h-l))}else{for(var u=0;u<e;u++)f.push(u/(e-1));if(r.length>2){var i=r.map(function(e,t){return t/(r.length-1)}),s=r.map(function(r){return(r-l)/(h-l)});s.every(function(r,e){return i[e]===r})||(k=function(r){if(r<=0||r>=1)return r;for(var e=0;r>=s[e+1];)e++;var t=(r-s[e])/(s[e+1]-s[e]);return i[e]+t*(i[e+1]-i[e])})}}return a=[l,h],_},_.mode=function(r){return arguments.length?(e=r,M(),_):e},_.range=function(r,e){return v(r),_},_.out=function(r){return i=r,_},_.spread=function(r){return arguments.length?(n=r,_):n},_.correctLightness=function(r){return null==r&&(r=!0),s=r,M(),y=s?function(r){for(var e=w(0,!0).lab()[0],t=w(1,!0).lab()[0],n=e>t,a=w(r,!0).lab()[0],f=e+(t-e)*r,o=a-f,u=0,c=1,i=20;Math.abs(o)>.01&&i-- >0;)n&&(o*=-1),o<0?(u=r,r+=(c-r)*.5):(c=r,r+=(u-r)*.5),o=(a=w(r,!0).lab()[0])-f;return r}:function(r){return r},_},_.padding=function(r){return null!=r?("number"===eU(r)&&(r=[r,r]),o=r,_):o},_.colors=function(e,t){arguments.length<2&&(t="hex");var n=[];if(0==arguments.length)n=c.slice(0);else if(1===e)n=[_(.5)];else if(e>1){var f=a[0],o=a[1]-f;n=(function(r,e,t){for(var n=[],a=r<e,f=t?a?e+1:e-1:e,o=r;a?o<f:o>f;a?o++:o--)n.push(o);return n})(0,e,!1).map(function(r){return _(f+r/(e-1)*o)})}else{r=[];var i=[];if(u&&u.length>2)for(var l=1,h=u.length,s=1<=h;s?l<h:l>h;s?l++:l--)i.push((u[l-1]+u[l])*.5);else i=a;n=i.map(function(r){return _(r)})}return d[t]&&(n=n.map(function(r){return r[t]()})),n},_.cache=function(r){return null!=r?(p=r,_):p},_.gamma=function(r){return null!=r?(g=r,_):g},_.nodata=function(r){return null!=r?(t=d(r),_):t},_},eZ=function(r){for(var e=[1,1],t=1;t<r;t++){for(var n=[1],a=1;a<=e.length;a++)n[a]=(e[a]||0)+e[a-1];e=n}return e},eH=function(r){var e,t,n,a,f,o,u,c,i,l,h;if(2===(r=r.map(function(r){return new s(r)})).length)f=(e=r.map(function(r){return r.lab()}))[0],o=e[1],a=function(r){var e=[0,1,2].map(function(e){return f[e]+r*(o[e]-f[e])});return new s(e,"lab")};else if(3===r.length)f=(t=r.map(function(r){return r.lab()}))[0],o=t[1],u=t[2],a=function(r){var e=[0,1,2].map(function(e){return(1-r)*(1-r)*f[e]+2*(1-r)*r*o[e]+r*r*u[e]});return new s(e,"lab")};else if(4===r.length)f=(n=r.map(function(r){return r.lab()}))[0],o=n[1],u=n[2],c=n[3],a=function(r){var e=[0,1,2].map(function(e){return(1-r)*(1-r)*(1-r)*f[e]+3*(1-r)*(1-r)*r*o[e]+3*(1-r)*r*r*u[e]+r*r*r*c[e]});return new s(e,"lab")};else if(r.length>=5)i=r.map(function(r){return r.lab()}),l=eZ(h=r.length-1),a=function(r){var e=1-r,t=[0,1,2].map(function(t){return i.reduce(function(n,a,f){return n+l[f]*Math.pow(e,h-f)*Math.pow(r,f)*a[t]},0)});return new s(t,"lab")};else throw RangeError("No point in running bezier with only one color.");return a},eK=function(r,e,t){if(!eK[t])throw Error("unknown blend mode "+t);return eK[t](r,e)},eJ=function(r){return function(e,t){var n=d(t).rgb(),a=d(e).rgb();return d.rgb(r(n,a))}},eQ=function(r){return function(e,t){var n=[];return n[0]=r(e[0],t[0]),n[1]=r(e[1],t[1]),n[2]=r(e[2],t[2]),n}};eK.normal=eJ(eQ(function(r){return r})),eK.multiply=eJ(eQ(function(r,e){return r*e/255})),eK.screen=eJ(eQ(function(r,e){return 255*(1-(1-r/255)*(1-e/255))})),eK.overlay=eJ(eQ(function(r,e){return e<128?2*r*e/255:255*(1-2*(1-r/255)*(1-e/255))})),eK.darken=eJ(eQ(function(r,e){return r>e?e:r})),eK.lighten=eJ(eQ(function(r,e){return r>e?r:e})),eK.dodge=eJ(eQ(function(r,e){return 255===r?255:(r=255*(e/255)/(1-r/255))>255?255:r})),eK.burn=eJ(eQ(function(r,e){return 255*(1-(1-e/255)/(r/255))}));for(var e0=u.type,e1=u.clip_rgb,e2=u.TWOPI,e5=Math.pow,e3=Math.sin,e6=Math.cos,e4=Math.floor,e8=Math.random,e9=Math.log,e7=Math.pow,tr=Math.floor,te=Math.abs,tt=function(r,e){void 0===e&&(e=null);var t={min:Number.MAX_VALUE,max:-1*Number.MAX_VALUE,sum:0,values:[],count:0};return"object"===f(r)&&(r=Object.values(r)),r.forEach(function(r){e&&"object"===f(r)&&(r=r[e]),null==r||isNaN(r)||(t.values.push(r),t.sum+=r,r<t.min&&(t.min=r),r>t.max&&(t.max=r),t.count+=1)}),t.domain=[t.min,t.max],t.limits=function(r,e){return tn(t,r,e)},t},tn=function(r,e,t){void 0===e&&(e="equal"),void 0===t&&(t=7),"array"==f(r)&&(r=tt(r));var n=r.min,a=r.max,o=r.values.sort(function(r,e){return r-e});if(1===t)return[n,a];var u=[];if("c"===e.substr(0,1)&&(u.push(n),u.push(a)),"e"===e.substr(0,1)){u.push(n);for(var c=1;c<t;c++)u.push(n+c/t*(a-n));u.push(a)}else if("l"===e.substr(0,1)){if(n<=0)throw Error("Logarithmic scales are only possible for values > 0");var i=Math.LOG10E*e9(n),l=Math.LOG10E*e9(a);u.push(n);for(var h=1;h<t;h++)u.push(e7(10,i+h/t*(l-i)));u.push(a)}else if("q"===e.substr(0,1)){u.push(n);for(var s=1;s<t;s++){var d=(o.length-1)*s/t,b=tr(d);if(b===d)u.push(o[b]);else{var p=d-b;u.push(o[b]*(1-p)+o[b+1]*p)}}u.push(a)}else if("k"===e.substr(0,1)){var g,v=o.length,m=Array(v),y=Array(t),k=!0,w=0,M=null;(M=[]).push(n);for(var _=1;_<t;_++)M.push(n+_/t*(a-n));for(M.push(a);k;){for(var N=0;N<t;N++)y[N]=0;for(var x=0;x<v;x++)for(var E=o[x],O=Number.MAX_VALUE,A=void 0,P=0;P<t;P++){var F=te(M[P]-E);F<O&&(O=F,A=P),y[A]++,m[x]=A}for(var R=Array(t),j=0;j<t;j++)R[j]=null;for(var C=0;C<v;C++)null===R[g=m[C]]?R[g]=o[C]:R[g]+=o[C];for(var L=0;L<t;L++)R[L]*=1/y[L];k=!1;for(var q=0;q<t;q++)if(R[q]!==M[q]){k=!0;break}M=R,++w>200&&(k=!1)}for(var G={},I=0;I<t;I++)G[I]=[];for(var T=0;T<v;T++)G[g=m[T]].push(o[T]);for(var B=[],D=0;D<t;D++)B.push(G[D][0]),B.push(G[D][G[D].length-1]);B=B.sort(function(r,e){return r-e}),u.push(B[0]);for(var S=1;S<B.length;S+=2){var Y=B[S];isNaN(Y)||-1!==u.indexOf(Y)||u.push(Y)}}return u},ta={analyze:tt,limits:tn},tf=Math.sqrt,to=Math.pow,tu=Math.min,tc=Math.max,ti=Math.atan2,tl=Math.abs,th=Math.cos,ts=Math.sin,td=Math.exp,tb=Math.PI,tp={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},tg=0,tv=Object.keys(tp);tg<tv.length;tg+=1){var tm=tv[tg];tp[tm.toLowerCase()]=tp[tm]}return d.average=function(r,e,t){void 0===e&&(e="lrgb"),void 0===t&&(t=null);var n=r.length;t||(t=Array.from(Array(n)).map(function(){return 1}));var a=n/t.reduce(function(r,e){return r+e});if(t.forEach(function(r,e){t[e]*=a}),r=r.map(function(r){return new s(r)}),"lrgb"===e)return eW(r,t);for(var f=r.shift(),o=f.get(e),u=[],c=0,i=0,l=0;l<o.length;l++)if(o[l]=(o[l]||0)*t[0],u.push(isNaN(o[l])?0:t[0]),"h"===e.charAt(l)&&!isNaN(o[l])){var h=o[l]/180*eS;c+=eY(h)*t[0],i+=e$(h)*t[0]}var d=f.alpha()*t[0];r.forEach(function(r,n){var a=r.get(e);d+=r.alpha()*t[n+1];for(var f=0;f<o.length;f++)if(!isNaN(a[f])){if(u[f]+=t[n+1],"h"===e.charAt(f)){var l=a[f]/180*eS;c+=eY(l)*t[n+1],i+=e$(l)*t[n+1]}else o[f]+=a[f]*t[n+1]}});for(var b=0;b<o.length;b++)if("h"===e.charAt(b)){for(var p=ez(i/u[b],c/u[b])/eS*180;p<0;)p+=360;for(;p>=360;)p-=360;o[b]=p}else o[b]=o[b]/u[b];return d/=n,new s(o,e).alpha(d>.99999?1:d,!0)},d.bezier=function(r){var e=eH(r);return e.scale=function(){return eV(e)},e},d.blend=eK,d.cubehelix=function(r,e,t,n,a){void 0===r&&(r=300),void 0===e&&(e=-1.5),void 0===t&&(t=1),void 0===n&&(n=1),void 0===a&&(a=[0,1]);var f,o=0;"array"===e0(a)?f=a[1]-a[0]:(f=0,a=[a,a]);var u=function(u){var c=e2*((r+120)/360+e*u),i=e5(a[0]+f*u,n),l=(0!==o?t[0]+u*o:t)*i*(1-i)/2,h=e6(c),s=e3(c);return d(e1([255*(i+l*(-.14861*h+1.78277*s)),255*(i+l*(-.29227*h-.90649*s)),255*(i+l*(1.97294*h)),1]))};return u.start=function(e){return null==e?r:(r=e,u)},u.rotations=function(r){return null==r?e:(e=r,u)},u.gamma=function(r){return null==r?n:(n=r,u)},u.hue=function(r){return null==r?t:("array"===e0(t=r)?0==(o=t[1]-t[0])&&(t=t[1]):o=0,u)},u.lightness=function(r){return null==r?a:("array"===e0(r)?(a=r,f=r[1]-r[0]):(a=[r,r],f=0),u)},u.scale=function(){return d.scale(u)},u.hue(t),u},d.mix=d.interpolate=ej,d.random=function(){for(var r="#",e=0;e<6;e++)r+="0123456789abcdef".charAt(e4(16*e8()));return new s(r,"hex")},d.scale=eV,d.analyze=ta.analyze,d.contrast=function(r,e){r=new s(r),e=new s(e);var t=r.luminance(),n=e.luminance();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},d.deltaE=function(r,e,t,n,a){void 0===t&&(t=1),void 0===n&&(n=1),void 0===a&&(a=1);var f=function(r){return 360*r/(2*tb)},o=function(r){return 2*tb*r/360};r=new s(r),e=new s(e);var u=Array.from(r.lab()),c=u[0],i=u[1],l=u[2],h=Array.from(e.lab()),d=h[0],b=h[1],p=h[2],g=(c+d)/2,v=(tf(to(i,2)+to(l,2))+tf(to(b,2)+to(p,2)))/2,m=.5*(1-tf(to(v,7)/(to(v,7)+to(25,7)))),y=i*(1+m),k=b*(1+m),w=tf(to(y,2)+to(l,2)),M=tf(to(k,2)+to(p,2)),_=(w+M)/2,N=f(ti(l,y)),x=f(ti(p,k)),E=N>=0?N:N+360,O=x>=0?x:x+360,A=tl(E-O)>180?(E+O+360)/2:(E+O)/2,P=1-.17*th(o(A-30))+.24*th(o(2*A))+.32*th(o(3*A+6))-.2*th(o(4*A-63)),F=O-E;F=180>=tl(F)?F:O<=E?F+360:F-360,F=2*tf(w*M)*ts(o(F)/2);var R=M-w,j=1+.015*to(g-50,2)/tf(20+to(g-50,2)),C=1+.045*_,L=1+.015*_*P,q=30*td(-to((A-275)/25,2)),G=-(2*tf(to(_,7)/(to(_,7)+to(25,7))))*ts(2*o(q));return tc(0,tu(100,tf(to((d-c)/(t*j),2)+to(R/(n*C),2)+to(F/(a*L),2)+G*(R/(n*C))*(F/(a*L)))))},d.distance=function(r,e,t){void 0===t&&(t="lab"),r=new s(r),e=new s(e);var n=r.get(t),a=e.get(t),f=0;for(var o in n){var u=(n[o]||0)-(a[o]||0);f+=u*u}return Math.sqrt(f)},d.limits=ta.limits,d.valid=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];try{return new(Function.prototype.bind.apply(s,[null].concat(r))),!0}catch(r){return!1}},d.scales={cool:function(){return eV([d.hsl(180,1,.9),d.hsl(250,.7,.4)])},hot:function(){return eV(["#000","#f00","#ff0","#fff"]).mode("rgb")}},d.colors=r5,d.brewer=tp,d}()},67493:function(r,e,t){"use strict";function n(r){if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}t.d(e,{Z:function(){return n}})},4680:function(r,e,t){"use strict";function n(r,e){return(n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,e){return r.__proto__=e,r})(r,e)}t.d(e,{Z:function(){return n}})}}]);