(()=>{var r={4158:(r,e,t)=>{var n=t(5525),a=t(2768),o={defaults:t(4684),extend:t(3346)};function f(r,e){return"function"==typeof e?e(r):r.properties[e]}function u(r){return function(e){var t={},n=f(e,r._options.valueProperty);if(!isNaN(n))for(var a=1;a<r._limits.length;a++)if(n<(a===r._limits.length-1?r._limits[a]+1:r._limits[a])){t.fillColor=r._colors[a-1];break}switch(typeof r._userStyle){case"function":return o.extend(r._userStyle(),t);case"object":return o.extend(r._userStyle,t);default:return t}}}n.GeoJSONChoropleth=n.GeoJSON.extend({initialize:function(r,e,t){var f=this;e=e||{},o.defaults(e,{valueProperty:"value",scale:["white","red"],steps:5,mode:"q",channelMode:"rgb",padding:!1,correctLightness:!1,bezierInterpolate:!1}),f._options=e,f._userStyle=e.style;var c=e.colors;if(!c){e.bezierInterpolate?c=a.bezier(e.scale).scale():(c=a.scale(e.scale),c="rgb"!==e.channelMode?c.mode(e.channelMode):c,c=e.correctLightness?c.correctLightness():c);var i=e.steps;Array.isArray(i)&&(i=i.length),c=e.padding?c.padding(e.padding).colors(i):c.colors(i)}if(f._colors=c,f._limits=null,!$.isEmptyObject(t)){var l={},s=null,d=null,h=null;t.formatOptions&&(l=t.formatOptions,delete t.formatOptions),t.title&&(s=t.title,delete t.title),t.highlightStyle&&(d=t.highlightStyle,delete t.highlightStyle),t.resetStyle&&(h=t.resetStyle,delete t.resetStyle),o.defaults(l,{locale:"en-US",options:{style:"decimal",maximumFractionDigits:2}}),f._legend=n.control(t),f._legend.formatOptions=l,f._legend.title=s,f._legend.highlightStyle=d,f._legend.resetStyle=h}n.GeoJSON.prototype.initialize.call(f,null,o.extend(f._options,{style:u(this)})),r&&f.setGeoJSON(r)},onAdd:function(r){var e=this;n.LayerGroup.prototype.onAdd.call(e,r),e._legend&&(e._legend.onAdd?e._legend.addTo(r):e._legend._map=r)},onRemove:function(r){var e=this;e._legend&&e._legend.remove(r),n.LayerGroup.prototype.onRemove.call(e,r)},setGeoJSON:function(r){var e=this,t=(n.Util.isArray(r)?r:r.features).map((function(r){return f(r,e._options.valueProperty)}));if(Array.isArray(e._options.steps)?e._limits=e._options.steps:e._limits=a.limits(t,e._options.mode,e._options.steps),n.GeoJSON.prototype.addData.call(e,r),e._legend){var o=e._legend.title,u=e._legend.formatOptions.locale,c=e._legend.formatOptions.options,i=e._legend.highlightStyle,l=e._legend.resetStyle;e._legend.onAdd=function(r){var t=n.DomUtil.create("div","info legend");if(o){var a=document.createElement("div");a.style={},a.style["font-weight"]="bold",a.appendChild(document.createTextNode(o)),t.appendChild(a)}for(var s=0;s<e._limits.length-1;s++){var d,h,p,b,g;d=e._limits[s],h=s===e._limits.length-2?e._limits[s+1]+1:e._limits[s+1],(p=document.createElement("span")).classList.add("legendItem"),p.id=n.stamp(p),p.dataset.from=d,p.dataset.to=h,(b=document.createElement("i")).style.background=e._colors[s],b.style.border="solid 0.5px #666",textSpan=document.createElement("span"),g=document.createTextNode(d.toLocaleString(u,c)+" - "+h.toLocaleString(u,c)),textSpan.appendChild(g),p.appendChild(b),p.appendChild(textSpan),t.appendChild(p),t.appendChild(document.createElement("br")),$.isEmptyObject(i)||(e.eachLayer((function(r){var t=f(r.feature,e._options.valueProperty);t>=d&&t<h&&(r._legendItemId=p.id,r._highlightLegendItem||(r._highlightLegendItem=!0,r.on({mouseover:function(r){document.getElementById(r.target._legendItemId).style["font-weight"]="bold"},mouseout:function(r){document.getElementById(r.target._legendItemId).style["font-weight"]="normal"}})))})),p.addEventListener("mouseover",(function(r){var t=r.currentTarget;t.dataset.from,t.dataset.to;t.style["font-weight"]="bold",e.eachLayer((function(r){f(r.feature,e._options.valueProperty);t.id===r._legendItemId&&(r.setStyle(i),i.bringToFront&&r.bringToFront())}))})),p.addEventListener("mouseout",(function(r){var t=r.currentTarget;t.dataset.from,t.dataset.to;t.style["font-weight"]="normal",e.eachLayer((function(r){f(r.feature,e._options.valueProperty);t.id===r._legendItemId&&($.isEmptyObject(l)?e.resetStyle(r):r.setStyle(l),i.sendToBack&&r.bringToBack())}))})))}return t},e._legend._map&&e._legend.addTo(e._legend._map)}}}),n.choropleth=r.exports=function(r,e,t){return new n.GeoJSONChoropleth(r,e,t)}},1873:(r,e,t)=>{var n=t(9325).Symbol;r.exports=n},1033:r=>{r.exports=function(r,e,t){switch(t.length){case 0:return r.call(e);case 1:return r.call(e,t[0]);case 2:return r.call(e,t[0],t[1]);case 3:return r.call(e,t[0],t[1],t[2])}return r.apply(e,t)}},695:(r,e,t)=>{var n=t(8096),a=t(2428),o=t(6449),f=t(3656),u=t(361),c=t(7167),i=Object.prototype.hasOwnProperty;r.exports=function(r,e){var t=o(r),l=!t&&a(r),s=!t&&!l&&f(r),d=!t&&!l&&!s&&c(r),h=t||l||s||d,p=h?n(r.length,String):[],b=p.length;for(var g in r)!e&&!i.call(r,g)||h&&("length"==g||s&&("offset"==g||"parent"==g)||d&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||u(g,b))||p.push(g);return p}},6547:(r,e,t)=>{var n=t(3360),a=t(5288),o=Object.prototype.hasOwnProperty;r.exports=function(r,e,t){var f=r[e];o.call(r,e)&&a(f,t)&&(void 0!==t||e in r)||n(r,e,t)}},3360:(r,e,t)=>{var n=t(3243);r.exports=function(r,e,t){"__proto__"==e&&n?n(r,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):r[e]=t}},2552:(r,e,t)=>{var n=t(1873),a=t(659),o=t(9350),f=n?n.toStringTag:void 0;r.exports=function(r){return null==r?void 0===r?"[object Undefined]":"[object Null]":f&&f in Object(r)?a(r):o(r)}},7534:(r,e,t)=>{var n=t(2552),a=t(346);r.exports=function(r){return a(r)&&"[object Arguments]"==n(r)}},5083:(r,e,t)=>{var n=t(1882),a=t(7296),o=t(3805),f=t(7473),u=/^\[object .+?Constructor\]$/,c=Function.prototype,i=Object.prototype,l=c.toString,s=i.hasOwnProperty,d=RegExp("^"+l.call(s).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");r.exports=function(r){return!(!o(r)||a(r))&&(n(r)?d:u).test(f(r))}},4901:(r,e,t)=>{var n=t(2552),a=t(294),o=t(346),f={};f["[object Float32Array]"]=f["[object Float64Array]"]=f["[object Int8Array]"]=f["[object Int16Array]"]=f["[object Int32Array]"]=f["[object Uint8Array]"]=f["[object Uint8ClampedArray]"]=f["[object Uint16Array]"]=f["[object Uint32Array]"]=!0,f["[object Arguments]"]=f["[object Array]"]=f["[object ArrayBuffer]"]=f["[object Boolean]"]=f["[object DataView]"]=f["[object Date]"]=f["[object Error]"]=f["[object Function]"]=f["[object Map]"]=f["[object Number]"]=f["[object Object]"]=f["[object RegExp]"]=f["[object Set]"]=f["[object String]"]=f["[object WeakMap]"]=!1,r.exports=function(r){return o(r)&&a(r.length)&&!!f[n(r)]}},2903:(r,e,t)=>{var n=t(3805),a=t(5527),o=t(181),f=Object.prototype.hasOwnProperty;r.exports=function(r){if(!n(r))return o(r);var e=a(r),t=[];for(var u in r)("constructor"!=u||!e&&f.call(r,u))&&t.push(u);return t}},9302:(r,e,t)=>{var n=t(3488),a=t(6757),o=t(2865);r.exports=function(r,e){return o(a(r,e,n),r+"")}},9570:(r,e,t)=>{var n=t(7334),a=t(3243),o=t(3488),f=a?function(r,e){return a(r,"toString",{configurable:!0,enumerable:!1,value:n(e),writable:!0})}:o;r.exports=f},8096:r=>{r.exports=function(r,e){for(var t=-1,n=Array(r);++t<r;)n[t]=e(t);return n}},7301:r=>{r.exports=function(r){return function(e){return r(e)}}},1791:(r,e,t)=>{var n=t(6547),a=t(3360);r.exports=function(r,e,t,o){var f=!t;t||(t={});for(var u=-1,c=e.length;++u<c;){var i=e[u],l=o?o(t[i],r[i],i,t,r):void 0;void 0===l&&(l=r[i]),f?a(t,i,l):n(t,i,l)}return t}},5481:(r,e,t)=>{var n=t(9325)["__core-js_shared__"];r.exports=n},999:(r,e,t)=>{var n=t(9302),a=t(6800);r.exports=function(r){return n((function(e,t){var n=-1,o=t.length,f=o>1?t[o-1]:void 0,u=o>2?t[2]:void 0;for(f=r.length>3&&"function"==typeof f?(o--,f):void 0,u&&a(t[0],t[1],u)&&(f=o<3?void 0:f,o=1),e=Object(e);++n<o;){var c=t[n];c&&r(e,c,n,f)}return e}))}},3243:(r,e,t)=>{var n=t(6110),a=function(){try{var r=n(Object,"defineProperty");return r({},"",{}),r}catch(r){}}();r.exports=a},4840:(r,e,t)=>{var n="object"==typeof t.g&&t.g&&t.g.Object===Object&&t.g;r.exports=n},6110:(r,e,t)=>{var n=t(5083),a=t(392);r.exports=function(r,e){var t=a(r,e);return n(t)?t:void 0}},659:(r,e,t)=>{var n=t(1873),a=Object.prototype,o=a.hasOwnProperty,f=a.toString,u=n?n.toStringTag:void 0;r.exports=function(r){var e=o.call(r,u),t=r[u];try{r[u]=void 0;var n=!0}catch(r){}var a=f.call(r);return n&&(e?r[u]=t:delete r[u]),a}},392:r=>{r.exports=function(r,e){return null==r?void 0:r[e]}},361:r=>{var e=/^(?:0|[1-9]\d*)$/;r.exports=function(r,t){var n=typeof r;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&e.test(r))&&r>-1&&r%1==0&&r<t}},6800:(r,e,t)=>{var n=t(5288),a=t(4894),o=t(361),f=t(3805);r.exports=function(r,e,t){if(!f(t))return!1;var u=typeof e;return!!("number"==u?a(t)&&o(e,t.length):"string"==u&&e in t)&&n(t[e],r)}},7296:(r,e,t)=>{var n,a=t(5481),o=(n=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";r.exports=function(r){return!!o&&o in r}},5527:r=>{var e=Object.prototype;r.exports=function(r){var t=r&&r.constructor;return r===("function"==typeof t&&t.prototype||e)}},181:r=>{r.exports=function(r){var e=[];if(null!=r)for(var t in Object(r))e.push(t);return e}},6009:(r,e,t)=>{r=t.nmd(r);var n=t(4840),a=e&&!e.nodeType&&e,o=a&&r&&!r.nodeType&&r,f=o&&o.exports===a&&n.process,u=function(){try{var r=o&&o.require&&o.require("util").types;return r||f&&f.binding&&f.binding("util")}catch(r){}}();r.exports=u},9350:r=>{var e=Object.prototype.toString;r.exports=function(r){return e.call(r)}},6757:(r,e,t)=>{var n=t(1033),a=Math.max;r.exports=function(r,e,t){return e=a(void 0===e?r.length-1:e,0),function(){for(var o=arguments,f=-1,u=a(o.length-e,0),c=Array(u);++f<u;)c[f]=o[e+f];f=-1;for(var i=Array(e+1);++f<e;)i[f]=o[f];return i[e]=t(c),n(r,this,i)}}},9325:(r,e,t)=>{var n=t(4840),a="object"==typeof self&&self&&self.Object===Object&&self,o=n||a||Function("return this")();r.exports=o},2865:(r,e,t)=>{var n=t(9570),a=t(1811)(n);r.exports=a},1811:r=>{var e=Date.now;r.exports=function(r){var t=0,n=0;return function(){var a=e(),o=16-(a-n);if(n=a,o>0){if(++t>=800)return arguments[0]}else t=0;return r.apply(void 0,arguments)}}},7473:r=>{var e=Function.prototype.toString;r.exports=function(r){if(null!=r){try{return e.call(r)}catch(r){}try{return r+""}catch(r){}}return""}},4664:(r,e,t)=>{var n=t(1791),a=t(999),o=t(7241),f=a((function(r,e){n(e,o(e),r)}));r.exports=f},7334:r=>{r.exports=function(r){return function(){return r}}},4684:(r,e,t)=>{var n=t(9302),a=t(5288),o=t(6800),f=t(7241),u=Object.prototype,c=u.hasOwnProperty,i=n((function(r,e){r=Object(r);var t=-1,n=e.length,i=n>2?e[2]:void 0;for(i&&o(e[0],e[1],i)&&(n=1);++t<n;)for(var l=e[t],s=f(l),d=-1,h=s.length;++d<h;){var p=s[d],b=r[p];(void 0===b||a(b,u[p])&&!c.call(r,p))&&(r[p]=l[p])}return r}));r.exports=i},5288:r=>{r.exports=function(r,e){return r===e||r!=r&&e!=e}},3346:(r,e,t)=>{r.exports=t(4664)},3488:r=>{r.exports=function(r){return r}},2428:(r,e,t)=>{var n=t(7534),a=t(346),o=Object.prototype,f=o.hasOwnProperty,u=o.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(r){return a(r)&&f.call(r,"callee")&&!u.call(r,"callee")};r.exports=c},6449:r=>{var e=Array.isArray;r.exports=e},4894:(r,e,t)=>{var n=t(1882),a=t(294);r.exports=function(r){return null!=r&&a(r.length)&&!n(r)}},3656:(r,e,t)=>{r=t.nmd(r);var n=t(9325),a=t(9935),o=e&&!e.nodeType&&e,f=o&&r&&!r.nodeType&&r,u=f&&f.exports===o?n.Buffer:void 0,c=(u?u.isBuffer:void 0)||a;r.exports=c},1882:(r,e,t)=>{var n=t(2552),a=t(3805);r.exports=function(r){if(!a(r))return!1;var e=n(r);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},294:r=>{r.exports=function(r){return"number"==typeof r&&r>-1&&r%1==0&&r<=9007199254740991}},3805:r=>{r.exports=function(r){var e=typeof r;return null!=r&&("object"==e||"function"==e)}},346:r=>{r.exports=function(r){return null!=r&&"object"==typeof r}},7167:(r,e,t)=>{var n=t(4901),a=t(7301),o=t(6009),f=o&&o.isTypedArray,u=f?a(f):n;r.exports=u},7241:(r,e,t)=>{var n=t(695),a=t(2903),o=t(4894);r.exports=function(r){return o(r)?n(r,!0):a(r)}},9935:r=>{r.exports=function(){return!1}},5525:r=>{"use strict";r.exports=L},2768: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=r,t=function(r){r._clipped=!1,r._unclipped=r.slice(0);for(var t=0;t<=3;t++)t<3?((r[t]<0||r[t]>255)&&(r._clipped=!0),r[t]=e(r[t],0,255)):3===t&&(r[t]=e(r[t],0,1));return r},n={},a=0,o=["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"];a<o.length;a+=1){var f=o[a];n["[object "+f+"]"]=f.toLowerCase()}var u=function(r){return n[Object.prototype.toString.call(r)]||"object"},c=u,i=function(r,e){return void 0===e&&(e=null),r.length>=3?Array.prototype.slice.call(r):"object"==c(r[0])&&e?e.split("").filter((function(e){return void 0!==r[0][e]})).map((function(e){return r[0][e]})):r[0]},l=u,s=function(r){if(r.length<2)return null;var e=r.length-1;return"string"==l(r[e])?r[e].toLowerCase():null},d=Math.PI,h={clip_rgb:t,limit:r,type:u,unpack:i,last:s,PI:d,TWOPI:2*d,PITHIRD:d/3,DEG2RAD:d/180,RAD2DEG:180/d},p={format:{},autodetect:[]},b=h.last,g=h.clip_rgb,v=h.type,y=p,m=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var t=this;if("object"===v(r[0])&&r[0].constructor&&r[0].constructor===this.constructor)return r[0];var n=b(r),a=!1;if(!n){a=!0,y.sorted||(y.autodetect=y.autodetect.sort((function(r,e){return e.p-r.p})),y.sorted=!0);for(var o=0,f=y.autodetect;o<f.length;o+=1){var u=f[o];if(n=u.test.apply(u,r))break}}if(!y.format[n])throw new Error("unknown format: "+r);var c=y.format[n].apply(null,a?r:r.slice(0,-1));t._rgb=g(c),3===t._rgb.length&&t._rgb.push(1)};m.prototype.toString=function(){return"function"==v(this.hex)?this.hex():"["+this._rgb.join(",")+"]"};var w=m,k=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return new(Function.prototype.bind.apply(k.Color,[null].concat(r)))};k.Color=w,k.version="2.4.2";var _=k,x=h.unpack,M=Math.max,j=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var t=x(r,"rgb"),n=t[0],a=t[1],o=t[2],f=1-M(n/=255,M(a/=255,o/=255)),u=f<1?1/(1-f):0;return[(1-n-f)*u,(1-a-f)*u,(1-o-f)*u,f]},N=j,O=h.unpack,A=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var t=(r=O(r,"cmyk"))[0],n=r[1],a=r[2],o=r[3],f=r.length>4?r[4]:1;return 1===o?[0,0,0,f]:[t>=1?0:255*(1-t)*(1-o),n>=1?0:255*(1-n)*(1-o),a>=1?0:255*(1-a)*(1-o),f]},S=A,E=_,P=w,F=p,I=h.unpack,L=h.type,G=N;P.prototype.cmyk=function(){return G(this._rgb)},E.cmyk=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return new(Function.prototype.bind.apply(P,[null].concat(r,["cmyk"])))},F.format.cmyk=S,F.autodetect.push({p:2,test:function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];if(r=I(r,"cmyk"),"array"===L(r)&&4===r.length)return"cmyk"}});var T=h.unpack,C=h.last,R=function(r){return Math.round(100*r)/100},B=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var t=T(r,"hsla"),n=C(r)||"lsa";return t[0]=R(t[0]||0),t[1]=R(100*t[1])+"%",t[2]=R(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(",")+")"},q=B,D=h.unpack,$=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var t=(r=D(r,"rgba"))[0],n=r[1],a=r[2];t/=255,n/=255,a/=255;var o,f,u=Math.min(t,n,a),c=Math.max(t,n,a),i=(c+u)/2;return c===u?(o=0,f=Number.NaN):o=i<.5?(c-u)/(c+u):(c-u)/(2-c-u),t==c?f=(n-a)/(c-u):n==c?f=2+(a-t)/(c-u):a==c&&(f=4+(t-n)/(c-u)),(f*=60)<0&&(f+=360),r.length>3&&void 0!==r[3]?[f,o,i,r[3]]:[f,o,i]},z=$,U=h.unpack,Y=h.last,J=q,X=z,V=Math.round,W=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var t=U(r,"rgba"),n=Y(r)||"rgb";return"hsl"==n.substr(0,3)?J(X(t),n):(t[0]=V(t[0]),t[1]=V(t[1]),t[2]=V(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(",")+")")},K=W,Z=h.unpack,H=Math.round,Q=function(){for(var r,e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,a,o,f=(e=Z(e,"hsl"))[0],u=e[1],c=e[2];if(0===u)n=a=o=255*c;else{var i=[0,0,0],l=[0,0,0],s=c<.5?c*(1+u):c+u-c*u,d=2*c-s,h=f/360;i[0]=h+1/3,i[1]=h,i[2]=h-1/3;for(var p=0;p<3;p++)i[p]<0&&(i[p]+=1),i[p]>1&&(i[p]-=1),6*i[p]<1?l[p]=d+6*(s-d)*i[p]:2*i[p]<1?l[p]=s:3*i[p]<2?l[p]=d+(s-d)*(2/3-i[p])*6:l[p]=d;n=(r=[H(255*l[0]),H(255*l[1]),H(255*l[2])])[0],a=r[1],o=r[2]}return e.length>3?[n,a,o,e[3]]:[n,a,o,1]},rr=Q,er=rr,tr=p,nr=/^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/,ar=/^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/,or=/^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,fr=/^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,ur=/^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,cr=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,ir=Math.round,lr=function(r){var e;if(r=r.toLowerCase().trim(),tr.format.named)try{return tr.format.named(r)}catch(r){}if(e=r.match(nr)){for(var t=e.slice(1,4),n=0;n<3;n++)t[n]=+t[n];return t[3]=1,t}if(e=r.match(ar)){for(var a=e.slice(1,5),o=0;o<4;o++)a[o]=+a[o];return a}if(e=r.match(or)){for(var f=e.slice(1,4),u=0;u<3;u++)f[u]=ir(2.55*f[u]);return f[3]=1,f}if(e=r.match(fr)){for(var c=e.slice(1,5),i=0;i<3;i++)c[i]=ir(2.55*c[i]);return c[3]=+c[3],c}if(e=r.match(ur)){var l=e.slice(1,4);l[1]*=.01,l[2]*=.01;var s=er(l);return s[3]=1,s}if(e=r.match(cr)){var d=e.slice(1,4);d[1]*=.01,d[2]*=.01;var h=er(d);return h[3]=+e[4],h}};lr.test=function(r){return nr.test(r)||ar.test(r)||or.test(r)||fr.test(r)||ur.test(r)||cr.test(r)};var sr=lr,dr=_,hr=w,pr=p,br=h.type,gr=K,vr=sr;hr.prototype.css=function(r){return gr(this._rgb,r)},dr.css=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return new(Function.prototype.bind.apply(hr,[null].concat(r,["css"])))},pr.format.css=vr,pr.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"===br(r)&&vr.test(r))return"css"}});var yr=w,mr=_,wr=p,kr=h.unpack;wr.format.gl=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var t=kr(r,"rgba");return t[0]*=255,t[1]*=255,t[2]*=255,t},mr.gl=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return new(Function.prototype.bind.apply(yr,[null].concat(r,["gl"])))},yr.prototype.gl=function(){var r=this._rgb;return[r[0]/255,r[1]/255,r[2]/255,r[3]]};var _r=h.unpack,xr=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var t,n=_r(r,"rgb"),a=n[0],o=n[1],f=n[2],u=Math.min(a,o,f),c=Math.max(a,o,f),i=c-u,l=100*i/255,s=u/(255-i)*100;return 0===i?t=Number.NaN:(a===c&&(t=(o-f)/i),o===c&&(t=2+(f-a)/i),f===c&&(t=4+(a-o)/i),(t*=60)<0&&(t+=360)),[t,l,s]},Mr=xr,jr=h.unpack,Nr=Math.floor,Or=function(){for(var r,e,t,n,a,o,f=[],u=arguments.length;u--;)f[u]=arguments[u];var c,i,l,s=(f=jr(f,"hcg"))[0],d=f[1],h=f[2];h*=255;var p=255*d;if(0===d)c=i=l=h;else{360===s&&(s=0),s>360&&(s-=360),s<0&&(s+=360);var b=Nr(s/=60),g=s-b,v=h*(1-d),y=v+p*(1-g),m=v+p*g,w=v+p;switch(b){case 0:c=(r=[w,m,v])[0],i=r[1],l=r[2];break;case 1:c=(e=[y,w,v])[0],i=e[1],l=e[2];break;case 2:c=(t=[v,w,m])[0],i=t[1],l=t[2];break;case 3:c=(n=[v,y,w])[0],i=n[1],l=n[2];break;case 4:c=(a=[m,v,w])[0],i=a[1],l=a[2];break;case 5:c=(o=[w,v,y])[0],i=o[1],l=o[2]}}return[c,i,l,f.length>3?f[3]:1]},Ar=Or,Sr=h.unpack,Er=h.type,Pr=_,Fr=w,Ir=p,Lr=Mr;Fr.prototype.hcg=function(){return Lr(this._rgb)},Pr.hcg=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return new(Function.prototype.bind.apply(Fr,[null].concat(r,["hcg"])))},Ir.format.hcg=Ar,Ir.autodetect.push({p:1,test:function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];if(r=Sr(r,"hcg"),"array"===Er(r)&&3===r.length)return"hcg"}});var Gr=h.unpack,Tr=h.last,Cr=Math.round,Rr=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var t=Gr(r,"rgba"),n=t[0],a=t[1],o=t[2],f=t[3],u=Tr(r)||"auto";void 0===f&&(f=1),"auto"===u&&(u=f<1?"rgba":"rgb");var c="000000"+((n=Cr(n))<<16|(a=Cr(a))<<8|(o=Cr(o))).toString(16);c=c.substr(c.length-6);var i="0"+Cr(255*f).toString(16);switch(i=i.substr(i.length-2),u.toLowerCase()){case"rgba":return"#"+c+i;case"argb":return"#"+i+c;default:return"#"+c}},Br=Rr,qr=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,Dr=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,$r=function(r){if(r.match(qr)){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(Dr)){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 new Error("unknown hex color: "+r)},zr=_,Ur=w,Yr=h.type,Jr=p,Xr=Br;Ur.prototype.hex=function(r){return Xr(this._rgb,r)},zr.hex=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return new(Function.prototype.bind.apply(Ur,[null].concat(r,["hex"])))},Jr.format.hex=$r,Jr.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"===Yr(r)&&[3,4,5,6,7,8,9].indexOf(r.length)>=0)return"hex"}});var Vr=h.unpack,Wr=h.TWOPI,Kr=Math.min,Zr=Math.sqrt,Hr=Math.acos,Qr=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var t,n=Vr(r,"rgb"),a=n[0],o=n[1],f=n[2],u=Kr(a/=255,o/=255,f/=255),c=(a+o+f)/3,i=c>0?1-u/c:0;return 0===i?t=NaN:(t=(a-o+(a-f))/2,t/=Zr((a-o)*(a-o)+(a-f)*(o-f)),t=Hr(t),f>o&&(t=Wr-t),t/=Wr),[360*t,i,c]},re=Qr,ee=h.unpack,te=h.limit,ne=h.TWOPI,ae=h.PITHIRD,oe=Math.cos,fe=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var t,n,a,o=(r=ee(r,"hsi"))[0],f=r[1],u=r[2];return isNaN(o)&&(o=0),isNaN(f)&&(f=0),o>360&&(o-=360),o<0&&(o+=360),(o/=360)<1/3?n=1-((a=(1-f)/3)+(t=(1+f*oe(ne*o)/oe(ae-ne*o))/3)):o<2/3?a=1-((t=(1-f)/3)+(n=(1+f*oe(ne*(o-=1/3))/oe(ae-ne*o))/3)):t=1-((n=(1-f)/3)+(a=(1+f*oe(ne*(o-=2/3))/oe(ae-ne*o))/3)),[255*(t=te(u*t*3)),255*(n=te(u*n*3)),255*(a=te(u*a*3)),r.length>3?r[3]:1]},ue=fe,ce=h.unpack,ie=h.type,le=_,se=w,de=p,he=re;se.prototype.hsi=function(){return he(this._rgb)},le.hsi=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return new(Function.prototype.bind.apply(se,[null].concat(r,["hsi"])))},de.format.hsi=ue,de.autodetect.push({p:2,test:function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];if(r=ce(r,"hsi"),"array"===ie(r)&&3===r.length)return"hsi"}});var pe=h.unpack,be=h.type,ge=_,ve=w,ye=p,me=z;ve.prototype.hsl=function(){return me(this._rgb)},ge.hsl=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return new(Function.prototype.bind.apply(ve,[null].concat(r,["hsl"])))},ye.format.hsl=rr,ye.autodetect.push({p:2,test:function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];if(r=pe(r,"hsl"),"array"===be(r)&&3===r.length)return"hsl"}});var we=h.unpack,ke=Math.min,_e=Math.max,xe=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var t,n,a,o=(r=we(r,"rgb"))[0],f=r[1],u=r[2],c=ke(o,f,u),i=_e(o,f,u),l=i-c;return a=i/255,0===i?(t=Number.NaN,n=0):(n=l/i,o===i&&(t=(f-u)/l),f===i&&(t=2+(u-o)/l),u===i&&(t=4+(o-f)/l),(t*=60)<0&&(t+=360)),[t,n,a]},Me=xe,je=h.unpack,Ne=Math.floor,Oe=function(){for(var r,e,t,n,a,o,f=[],u=arguments.length;u--;)f[u]=arguments[u];var c,i,l,s=(f=je(f,"hsv"))[0],d=f[1],h=f[2];if(h*=255,0===d)c=i=l=h;else{360===s&&(s=0),s>360&&(s-=360),s<0&&(s+=360);var p=Ne(s/=60),b=s-p,g=h*(1-d),v=h*(1-d*b),y=h*(1-d*(1-b));switch(p){case 0:c=(r=[h,y,g])[0],i=r[1],l=r[2];break;case 1:c=(e=[v,h,g])[0],i=e[1],l=e[2];break;case 2:c=(t=[g,h,y])[0],i=t[1],l=t[2];break;case 3:c=(n=[g,v,h])[0],i=n[1],l=n[2];break;case 4:c=(a=[y,g,h])[0],i=a[1],l=a[2];break;case 5:c=(o=[h,g,v])[0],i=o[1],l=o[2]}}return[c,i,l,f.length>3?f[3]:1]},Ae=Oe,Se=h.unpack,Ee=h.type,Pe=_,Fe=w,Ie=p,Le=Me;Fe.prototype.hsv=function(){return Le(this._rgb)},Pe.hsv=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return new(Function.prototype.bind.apply(Fe,[null].concat(r,["hsv"])))},Ie.format.hsv=Ae,Ie.autodetect.push({p:2,test:function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];if(r=Se(r,"hsv"),"array"===Ee(r)&&3===r.length)return"hsv"}});var Ge={Kn:18,Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452},Te=Ge,Ce=h.unpack,Re=Math.pow,Be=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var t=Ce(r,"rgb"),n=t[0],a=t[1],o=t[2],f=$e(n,a,o),u=f[0],c=f[1],i=116*c-16;return[i<0?0:i,500*(u-c),200*(c-f[2])]},qe=function(r){return(r/=255)<=.04045?r/12.92:Re((r+.055)/1.055,2.4)},De=function(r){return r>Te.t3?Re(r,1/3):r/Te.t2+Te.t0},$e=function(r,e,t){return r=qe(r),e=qe(e),t=qe(t),[De((.4124564*r+.3575761*e+.1804375*t)/Te.Xn),De((.2126729*r+.7151522*e+.072175*t)/Te.Yn),De((.0193339*r+.119192*e+.9503041*t)/Te.Zn)]},ze=Be,Ue=Ge,Ye=h.unpack,Je=Math.pow,Xe=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var t,n,a,o=(r=Ye(r,"lab"))[0],f=r[1],u=r[2];return n=(o+16)/116,t=isNaN(f)?n:n+f/500,a=isNaN(u)?n:n-u/200,n=Ue.Yn*We(n),t=Ue.Xn*We(t),a=Ue.Zn*We(a),[Ve(3.2404542*t-1.5371385*n-.4985314*a),Ve(-.969266*t+1.8760108*n+.041556*a),Ve(.0556434*t-.2040259*n+1.0572252*a),r.length>3?r[3]:1]},Ve=function(r){return 255*(r<=.00304?12.92*r:1.055*Je(r,1/2.4)-.055)},We=function(r){return r>Ue.t1?r*r*r:Ue.t2*(r-Ue.t0)},Ke=Xe,Ze=h.unpack,He=h.type,Qe=_,rt=w,et=p,tt=ze;rt.prototype.lab=function(){return tt(this._rgb)},Qe.lab=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return new(Function.prototype.bind.apply(rt,[null].concat(r,["lab"])))},et.format.lab=Ke,et.autodetect.push({p:2,test:function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];if(r=Ze(r,"lab"),"array"===He(r)&&3===r.length)return"lab"}});var nt=h.unpack,at=h.RAD2DEG,ot=Math.sqrt,ft=Math.atan2,ut=Math.round,ct=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var t=nt(r,"lab"),n=t[0],a=t[1],o=t[2],f=ot(a*a+o*o),u=(ft(o,a)*at+360)%360;return 0===ut(1e4*f)&&(u=Number.NaN),[n,f,u]},it=ct,lt=h.unpack,st=ze,dt=it,ht=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var t=lt(r,"rgb"),n=t[0],a=t[1],o=t[2],f=st(n,a,o),u=f[0],c=f[1],i=f[2];return dt(u,c,i)},pt=ht,bt=h.unpack,gt=h.DEG2RAD,vt=Math.sin,yt=Math.cos,mt=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var t=bt(r,"lch"),n=t[0],a=t[1],o=t[2];return isNaN(o)&&(o=0),[n,yt(o*=gt)*a,vt(o)*a]},wt=mt,kt=h.unpack,_t=wt,xt=Ke,Mt=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var t=(r=kt(r,"lch"))[0],n=r[1],a=r[2],o=_t(t,n,a),f=o[0],u=o[1],c=o[2],i=xt(f,u,c);return[i[0],i[1],i[2],r.length>3?r[3]:1]},jt=Mt,Nt=h.unpack,Ot=jt,At=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var t=Nt(r,"hcl").reverse();return Ot.apply(void 0,t)},St=At,Et=h.unpack,Pt=h.type,Ft=_,It=w,Lt=p,Gt=pt;It.prototype.lch=function(){return Gt(this._rgb)},It.prototype.hcl=function(){return Gt(this._rgb).reverse()},Ft.lch=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return new(Function.prototype.bind.apply(It,[null].concat(r,["lch"])))},Ft.hcl=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return new(Function.prototype.bind.apply(It,[null].concat(r,["hcl"])))},Lt.format.lch=jt,Lt.format.hcl=St,["lch","hcl"].forEach((function(r){return Lt.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=Et(e,r),"array"===Pt(e)&&3===e.length)return r}})}));var Tt={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"},Ct=w,Rt=p,Bt=h.type,qt=Tt,Dt=$r,$t=Br;Ct.prototype.name=function(){for(var r=$t(this._rgb,"rgb"),e=0,t=Object.keys(qt);e<t.length;e+=1){var n=t[e];if(qt[n]===r)return n.toLowerCase()}return r},Rt.format.named=function(r){if(r=r.toLowerCase(),qt[r])return Dt(qt[r]);throw new Error("unknown color name: "+r)},Rt.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"===Bt(r)&&qt[r.toLowerCase()])return"named"}});var zt=h.unpack,Ut=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var t=zt(r,"rgb");return(t[0]<<16)+(t[1]<<8)+t[2]},Yt=Ut,Jt=h.type,Xt=function(r){if("number"==Jt(r)&&r>=0&&r<=16777215)return[r>>16,r>>8&255,255&r,1];throw new Error("unknown num color: "+r)},Vt=_,Wt=w,Kt=p,Zt=h.type,Ht=Yt;Wt.prototype.num=function(){return Ht(this._rgb)},Vt.num=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return new(Function.prototype.bind.apply(Wt,[null].concat(r,["num"])))},Kt.format.num=Xt,Kt.autodetect.push({p:5,test:function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];if(1===r.length&&"number"===Zt(r[0])&&r[0]>=0&&r[0]<=16777215)return"num"}});var Qt=_,rn=w,en=p,tn=h.unpack,nn=h.type,an=Math.round;rn.prototype.rgb=function(r){return void 0===r&&(r=!0),!1===r?this._rgb.slice(0,3):this._rgb.slice(0,3).map(an)},rn.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:an(e):e}))},Qt.rgb=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return new(Function.prototype.bind.apply(rn,[null].concat(r,["rgb"])))},en.format.rgb=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var t=tn(r,"rgba");return void 0===t[3]&&(t[3]=1),t},en.autodetect.push({p:3,test:function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];if(r=tn(r,"rgba"),"array"===nn(r)&&(3===r.length||4===r.length&&"number"==nn(r[3])&&r[3]>=0&&r[3]<=1))return"rgb"}});var on=Math.log,fn=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*on(t),n=a<20?0:.8274096064007395*(n=a-10)-254.76935184120902+115.67994401066147*on(n)):(e=351.97690566805693+.114206453784165*(e=a-55)-40.25366309332127*on(e),t=325.4494125711974+.07943456536662342*(t=a-50)-28.0852963507957*on(t),n=255),[e,t,n,1]},un=fn,cn=h.unpack,ln=Math.round,sn=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];for(var t,n=cn(r,"rgb"),a=n[0],o=n[2],f=1e3,u=4e4,c=.4;u-f>c;){var i=un(t=.5*(u+f));i[2]/i[0]>=o/a?u=t:f=t}return ln(t)},dn=_,hn=w,pn=p,bn=sn;hn.prototype.temp=hn.prototype.kelvin=hn.prototype.temperature=function(){return bn(this._rgb)},dn.temp=dn.kelvin=dn.temperature=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return new(Function.prototype.bind.apply(hn,[null].concat(r,["temp"])))},pn.format.temp=pn.format.kelvin=pn.format.temperature=fn;var gn=h.unpack,vn=Math.cbrt,yn=Math.pow,mn=Math.sign,wn=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var t=gn(r,"rgb"),n=t[0],a=t[1],o=t[2],f=[_n(n/255),_n(a/255),_n(o/255)],u=f[0],c=f[1],i=f[2],l=vn(.4122214708*u+.5363325363*c+.0514459929*i),s=vn(.2119034982*u+.6806995451*c+.1073969566*i),d=vn(.0883024619*u+.2817188376*c+.6299787005*i);return[.2104542553*l+.793617785*s-.0040720468*d,1.9779984951*l-2.428592205*s+.4505937099*d,.0259040371*l+.7827717662*s-.808675766*d]},kn=wn;function _n(r){var e=Math.abs(r);return e<.04045?r/12.92:(mn(r)||1)*yn((e+.055)/1.055,2.4)}var xn=h.unpack,Mn=Math.pow,jn=Math.sign,Nn=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var t=(r=xn(r,"lab"))[0],n=r[1],a=r[2],o=Mn(t+.3963377774*n+.2158037573*a,3),f=Mn(t-.1055613458*n-.0638541728*a,3),u=Mn(t-.0894841775*n-1.291485548*a,3);return[255*An(4.0767416621*o-3.3077115913*f+.2309699292*u),255*An(-1.2684380046*o+2.6097574011*f-.3413193965*u),255*An(-.0041960863*o-.7034186147*f+1.707614701*u),r.length>3?r[3]:1]},On=Nn;function An(r){var e=Math.abs(r);return e>.0031308?(jn(r)||1)*(1.055*Mn(e,1/2.4)-.055):12.92*r}var Sn=h.unpack,En=h.type,Pn=_,Fn=w,In=p,Ln=kn;Fn.prototype.oklab=function(){return Ln(this._rgb)},Pn.oklab=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return new(Function.prototype.bind.apply(Fn,[null].concat(r,["oklab"])))},In.format.oklab=On,In.autodetect.push({p:3,test:function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];if(r=Sn(r,"oklab"),"array"===En(r)&&3===r.length)return"oklab"}});var Gn=h.unpack,Tn=kn,Cn=it,Rn=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var t=Gn(r,"rgb"),n=t[0],a=t[1],o=t[2],f=Tn(n,a,o),u=f[0],c=f[1],i=f[2];return Cn(u,c,i)},Bn=Rn,qn=h.unpack,Dn=wt,$n=On,zn=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var t=(r=qn(r,"lch"))[0],n=r[1],a=r[2],o=Dn(t,n,a),f=o[0],u=o[1],c=o[2],i=$n(f,u,c);return[i[0],i[1],i[2],r.length>3?r[3]:1]},Un=zn,Yn=h.unpack,Jn=h.type,Xn=_,Vn=w,Wn=p,Kn=Bn;Vn.prototype.oklch=function(){return Kn(this._rgb)},Xn.oklch=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];return new(Function.prototype.bind.apply(Vn,[null].concat(r,["oklch"])))},Wn.format.oklch=Un,Wn.autodetect.push({p:3,test:function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];if(r=Yn(r,"oklch"),"array"===Jn(r)&&3===r.length)return"oklch"}});var Zn=w,Hn=h.type;Zn.prototype.alpha=function(r,e){return void 0===e&&(e=!1),void 0!==r&&"number"===Hn(r)?e?(this._rgb[3]=r,this):new Zn([this._rgb[0],this._rgb[1],this._rgb[2],r],"rgb"):this._rgb[3]},w.prototype.clipped=function(){return this._rgb._clipped||!1};var Qn=w,ra=Ge;Qn.prototype.darken=function(r){void 0===r&&(r=1);var e=this,t=e.lab();return t[0]-=ra.Kn*r,new Qn(t,"lab").alpha(e.alpha(),!0)},Qn.prototype.brighten=function(r){return void 0===r&&(r=1),this.darken(-r)},Qn.prototype.darker=Qn.prototype.darken,Qn.prototype.brighter=Qn.prototype.brighten,w.prototype.get=function(r){var e=r.split("."),t=e[0],n=e[1],a=this[t]();if(n){var o=t.indexOf(n)-("ok"===t.substr(0,2)?2:0);if(o>-1)return a[o];throw new Error("unknown channel "+n+" in mode "+t)}return a};var ea=w,ta=h.type,na=Math.pow,aa=1e-7,oa=20;ea.prototype.luminance=function(r){if(void 0!==r&&"number"===ta(r)){if(0===r)return new ea([0,0,0,this._rgb[3]],"rgb");if(1===r)return new ea([255,255,255,this._rgb[3]],"rgb");var e=this.luminance(),t="rgb",n=oa,a=function(e,o){var f=e.interpolate(o,.5,t),u=f.luminance();return Math.abs(r-u)<aa||!n--?f:u>r?a(e,f):a(f,o)},o=(e>r?a(new ea([0,0,0]),this):a(this,new ea([255,255,255]))).rgb();return new ea(o.concat([this._rgb[3]]))}return fa.apply(void 0,this._rgb.slice(0,3))};var fa=function(r,e,t){return.2126*(r=ua(r))+.7152*(e=ua(e))+.0722*(t=ua(t))},ua=function(r){return(r/=255)<=.03928?r/12.92:na((r+.055)/1.055,2.4)},ca={},ia=w,la=h.type,sa=ca,da=function(r,e,t){void 0===t&&(t=.5);for(var n=[],a=arguments.length-3;a-- >0;)n[a]=arguments[a+3];var o=n[0]||"lrgb";if(sa[o]||n.length||(o=Object.keys(sa)[0]),!sa[o])throw new Error("interpolation mode "+o+" is not defined");return"object"!==la(r)&&(r=new ia(r)),"object"!==la(e)&&(e=new ia(e)),sa[o](r,e,t).alpha(r.alpha()+t*(e.alpha()-r.alpha()))},ha=w,pa=da;ha.prototype.mix=ha.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 pa.apply(void 0,[this,r,e].concat(t))};var ba=w;ba.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 ba([e[0]*t,e[1]*t,e[2]*t,t],"rgb")};var ga=w,va=Ge;ga.prototype.saturate=function(r){void 0===r&&(r=1);var e=this,t=e.lch();return t[1]+=va.Kn*r,t[1]<0&&(t[1]=0),new ga(t,"lch").alpha(e.alpha(),!0)},ga.prototype.desaturate=function(r){return void 0===r&&(r=1),this.saturate(-r)};var ya=w,ma=h.type;ya.prototype.set=function(r,e,t){void 0===t&&(t=!1);var n=r.split("."),a=n[0],o=n[1],f=this[a]();if(o){var u=a.indexOf(o)-("ok"===a.substr(0,2)?2:0);if(u>-1){if("string"==ma(e))switch(e.charAt(0)){case"+":case"-":f[u]+=+e;break;case"*":f[u]*=+e.substr(1);break;case"/":f[u]/=+e.substr(1);break;default:f[u]=+e}else{if("number"!==ma(e))throw new Error("unsupported value for Color.set");f[u]=e}var c=new ya(f,a);return t?(this._rgb=c._rgb,this):c}throw new Error("unknown channel "+o+" in mode "+a)}return f};var wa=w,ka=function(r,e,t){var n=r._rgb,a=e._rgb;return new wa(n[0]+t*(a[0]-n[0]),n[1]+t*(a[1]-n[1]),n[2]+t*(a[2]-n[2]),"rgb")};ca.rgb=ka;var _a=w,xa=Math.sqrt,Ma=Math.pow,ja=function(r,e,t){var n=r._rgb,a=n[0],o=n[1],f=n[2],u=e._rgb,c=u[0],i=u[1],l=u[2];return new _a(xa(Ma(a,2)*(1-t)+Ma(c,2)*t),xa(Ma(o,2)*(1-t)+Ma(i,2)*t),xa(Ma(f,2)*(1-t)+Ma(l,2)*t),"rgb")};ca.lrgb=ja;var Na=w,Oa=function(r,e,t){var n=r.lab(),a=e.lab();return new Na(n[0]+t*(a[0]-n[0]),n[1]+t*(a[1]-n[1]),n[2]+t*(a[2]-n[2]),"lab")};ca.lab=Oa;var Aa=w,Sa=function(r,e,t,n){var a,o,f,u,c,i,l,s,d,h,p,b,g;return"hsl"===n?(f=r.hsl(),u=e.hsl()):"hsv"===n?(f=r.hsv(),u=e.hsv()):"hcg"===n?(f=r.hcg(),u=e.hcg()):"hsi"===n?(f=r.hsi(),u=e.hsi()):"lch"===n||"hcl"===n?(n="hcl",f=r.hcl(),u=e.hcl()):"oklch"===n&&(f=r.oklch().reverse(),u=e.oklch().reverse()),"h"!==n.substr(0,1)&&"oklch"!==n||(c=(a=f)[0],l=a[1],d=a[2],i=(o=u)[0],s=o[1],h=o[2]),isNaN(c)||isNaN(i)?isNaN(c)?isNaN(i)?b=Number.NaN:(b=i,1!=d&&0!=d||"hsv"==n||(p=s)):(b=c,1!=h&&0!=h||"hsv"==n||(p=l)):b=c+t*(i>c&&i-c>180?i-(c+360):i<c&&c-i>180?i+360-c:i-c),void 0===p&&(p=l+t*(s-l)),g=d+t*(h-d),new Aa("oklch"===n?[g,p,b]:[b,p,g],n)},Ea=Sa,Pa=function(r,e,t){return Ea(r,e,t,"lch")};ca.lch=Pa,ca.hcl=Pa;var Fa=w,Ia=function(r,e,t){var n=r.num(),a=e.num();return new Fa(n+t*(a-n),"num")};ca.num=Ia;var La=Sa,Ga=function(r,e,t){return La(r,e,t,"hcg")};ca.hcg=Ga;var Ta=Sa,Ca=function(r,e,t){return Ta(r,e,t,"hsi")};ca.hsi=Ca;var Ra=Sa,Ba=function(r,e,t){return Ra(r,e,t,"hsl")};ca.hsl=Ba;var qa=Sa,Da=function(r,e,t){return qa(r,e,t,"hsv")};ca.hsv=Da;var $a=w,za=function(r,e,t){var n=r.oklab(),a=e.oklab();return new $a(n[0]+t*(a[0]-n[0]),n[1]+t*(a[1]-n[1]),n[2]+t*(a[2]-n[2]),"oklab")};ca.oklab=za;var Ua=Sa,Ya=function(r,e,t){return Ua(r,e,t,"oklch")};ca.oklch=Ya;var Ja=w,Xa=h.clip_rgb,Va=Math.pow,Wa=Math.sqrt,Ka=Math.PI,Za=Math.cos,Ha=Math.sin,Qa=Math.atan2,ro=function(r,e,t){void 0===e&&(e="lrgb"),void 0===t&&(t=null);var n=r.length;t||(t=Array.from(new 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 Ja(r)})),"lrgb"===e)return eo(r,t);for(var o=r.shift(),f=o.get(e),u=[],c=0,i=0,l=0;l<f.length;l++)if(f[l]=(f[l]||0)*t[0],u.push(isNaN(f[l])?0:t[0]),"h"===e.charAt(l)&&!isNaN(f[l])){var s=f[l]/180*Ka;c+=Za(s)*t[0],i+=Ha(s)*t[0]}var d=o.alpha()*t[0];r.forEach((function(r,n){var a=r.get(e);d+=r.alpha()*t[n+1];for(var o=0;o<f.length;o++)if(!isNaN(a[o]))if(u[o]+=t[n+1],"h"===e.charAt(o)){var l=a[o]/180*Ka;c+=Za(l)*t[n+1],i+=Ha(l)*t[n+1]}else f[o]+=a[o]*t[n+1]}));for(var h=0;h<f.length;h++)if("h"===e.charAt(h)){for(var p=Qa(i/u[h],c/u[h])/Ka*180;p<0;)p+=360;for(;p>=360;)p-=360;f[h]=p}else f[h]=f[h]/u[h];return d/=n,new Ja(f,e).alpha(d>.99999?1:d,!0)},eo=function(r,e){for(var t=r.length,n=[0,0,0,0],a=0;a<r.length;a++){var o=r[a],f=e[a]/t,u=o._rgb;n[0]+=Va(u[0],2)*f,n[1]+=Va(u[1],2)*f,n[2]+=Va(u[2],2)*f,n[3]+=u[3]*f}return n[0]=Wa(n[0]),n[1]=Wa(n[1]),n[2]=Wa(n[2]),n[3]>.9999999&&(n[3]=1),new Ja(Xa(n))},to=_,no=h.type,ao=Math.pow,oo=function(r){var e="rgb",t=to("#ccc"),n=0,a=[0,1],o=[],f=[0,0],u=!1,c=[],i=!1,l=0,s=1,d=!1,h={},p=!0,b=1,g=function(r){if((r=r||["#fff","#000"])&&"string"===no(r)&&to.brewer&&to.brewer[r.toLowerCase()]&&(r=to.brewer[r.toLowerCase()]),"array"===no(r)){1===r.length&&(r=[r[0],r[0]]),r=r.slice(0);for(var e=0;e<r.length;e++)r[e]=to(r[e]);o.length=0;for(var t=0;t<r.length;t++)o.push(t/(r.length-1))}return k(),c=r},v=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},m=function(r){return r},w=function(r,n){var a,i;if(null==n&&(n=!1),isNaN(r)||null===r)return t;i=n?r:u&&u.length>2?v(r)/(u.length-2):s!==l?(r-l)/(s-l):1,i=m(i),n||(i=y(i)),1!==b&&(i=ao(i,b)),i=f[0]+i*(1-f[0]-f[1]),i=Math.min(1,Math.max(0,i));var d=Math.floor(1e4*i);if(p&&h[d])a=h[d];else{if("array"===no(c))for(var g=0;g<o.length;g++){var w=o[g];if(i<=w){a=c[g];break}if(i>=w&&g===o.length-1){a=c[g];break}if(i>w&&i<o[g+1]){i=(i-w)/(o[g+1]-w),a=to.interpolate(c[g],c[g+1],i,e);break}}else"function"===no(c)&&(a=c(i));p&&(h[d]=a)}return a},k=function(){return h={}};g(r);var _=function(r){var e=to(w(r));return i&&e[i]?e[i]():e};return _.classes=function(r){if(null!=r){if("array"===no(r))u=r,a=[r[0],r[r.length-1]];else{var e=to.analyze(a);u=0===r?[e.min,e.max]:to.limits(e,"e",r)}return _}return u},_.domain=function(r){if(!arguments.length)return a;l=r[0],s=r[r.length-1],o=[];var e=c.length;if(r.length===e&&l!==s)for(var t=0,n=Array.from(r);t<n.length;t+=1){var f=n[t];o.push((f-l)/(s-l))}else{for(var u=0;u<e;u++)o.push(u/(e-1));if(r.length>2){var i=r.map((function(e,t){return t/(r.length-1)})),d=r.map((function(r){return(r-l)/(s-l)}));d.every((function(r,e){return i[e]===r}))||(m=function(r){if(r<=0||r>=1)return r;for(var e=0;r>=d[e+1];)e++;var t=(r-d[e])/(d[e+1]-d[e]);return i[e]+t*(i[e+1]-i[e])})}}return a=[l,s],_},_.mode=function(r){return arguments.length?(e=r,k(),_):e},_.range=function(r,e){return g(r),_},_.out=function(r){return i=r,_},_.spread=function(r){return arguments.length?(n=r,_):n},_.correctLightness=function(r){return null==r&&(r=!0),d=r,k(),y=d?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],o=e+(t-e)*r,f=a-o,u=0,c=1,i=20;Math.abs(f)>.01&&i-- >0;)n&&(f*=-1),f<0?(u=r,r+=.5*(c-r)):(c=r,r+=.5*(u-r)),a=w(r,!0).lab()[0],f=a-o;return r}:function(r){return r},_},_.padding=function(r){return null!=r?("number"===no(r)&&(r=[r,r]),f=r,_):f},_.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 o=a[0],f=a[1]-o;n=fo(0,e,!1).map((function(r){return _(o+r/(e-1)*f)}))}else{r=[];var i=[];if(u&&u.length>2)for(var l=1,s=u.length,d=1<=s;d?l<s:l>s;d?l++:l--)i.push(.5*(u[l-1]+u[l]));else i=a;n=i.map((function(r){return _(r)}))}return to[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?(b=r,_):b},_.nodata=function(r){return null!=r?(t=to(r),_):t},_};function fo(r,e,t){for(var n=[],a=r<e,o=t?a?e+1:e-1:e,f=r;a?f<o:f>o;a?f++:f--)n.push(f);return n}var uo=w,co=oo,io=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},lo=function(r){var e,t,n,a,o,f,u;if(2===(r=r.map((function(r){return new uo(r)}))).length)e=r.map((function(r){return r.lab()})),o=e[0],f=e[1],a=function(r){var e=[0,1,2].map((function(e){return o[e]+r*(f[e]-o[e])}));return new uo(e,"lab")};else if(3===r.length)t=r.map((function(r){return r.lab()})),o=t[0],f=t[1],u=t[2],a=function(r){var e=[0,1,2].map((function(e){return(1-r)*(1-r)*o[e]+2*(1-r)*r*f[e]+r*r*u[e]}));return new uo(e,"lab")};else if(4===r.length){var c;n=r.map((function(r){return r.lab()})),o=n[0],f=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)*o[e]+3*(1-r)*(1-r)*r*f[e]+3*(1-r)*r*r*u[e]+r*r*r*c[e]}));return new uo(e,"lab")}}else{if(!(r.length>=5))throw new RangeError("No point in running bezier with only one color.");var i,l,s;i=r.map((function(r){return r.lab()})),s=r.length-1,l=io(s),a=function(r){var e=1-r,t=[0,1,2].map((function(t){return i.reduce((function(n,a,o){return n+l[o]*Math.pow(e,s-o)*Math.pow(r,o)*a[t]}),0)}));return new uo(t,"lab")}}return a},so=function(r){var e=lo(r);return e.scale=function(){return co(e)},e},ho=_,po=function(r,e,t){if(!po[t])throw new Error("unknown blend mode "+t);return po[t](r,e)},bo=function(r){return function(e,t){var n=ho(t).rgb(),a=ho(e).rgb();return ho.rgb(r(n,a))}},go=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}},vo=function(r){return r},yo=function(r,e){return r*e/255},mo=function(r,e){return r>e?e:r},wo=function(r,e){return r>e?r:e},ko=function(r,e){return 255*(1-(1-r/255)*(1-e/255))},_o=function(r,e){return e<128?2*r*e/255:255*(1-2*(1-r/255)*(1-e/255))},xo=function(r,e){return 255*(1-(1-e/255)/(r/255))},Mo=function(r,e){return 255===r||(r=e/255*255/(1-r/255))>255?255:r};po.normal=bo(go(vo)),po.multiply=bo(go(yo)),po.screen=bo(go(ko)),po.overlay=bo(go(_o)),po.darken=bo(go(mo)),po.lighten=bo(go(wo)),po.dodge=bo(go(Mo)),po.burn=bo(go(xo));for(var jo=po,No=h.type,Oo=h.clip_rgb,Ao=h.TWOPI,So=Math.pow,Eo=Math.sin,Po=Math.cos,Fo=_,Io=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 o,f=0;"array"===No(a)?o=a[1]-a[0]:(o=0,a=[a,a]);var u=function(u){var c=Ao*((r+120)/360+e*u),i=So(a[0]+o*u,n),l=(0!==f?t[0]+u*f:t)*i*(1-i)/2,s=Po(c),d=Eo(c);return Fo(Oo([255*(i+l*(-.14861*s+1.78277*d)),255*(i+l*(-.29227*s-.90649*d)),255*(i+l*(1.97294*s)),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"===No(t=r)?0==(f=t[1]-t[0])&&(t=t[1]):f=0,u)},u.lightness=function(r){return null==r?a:("array"===No(r)?(a=r,o=r[1]-r[0]):(a=[r,r],o=0),u)},u.scale=function(){return Fo.scale(u)},u.hue(t),u},Lo=w,Go="0123456789abcdef",To=Math.floor,Co=Math.random,Ro=function(){for(var r="#",e=0;e<6;e++)r+=Go.charAt(To(16*Co()));return new Lo(r,"hex")},Bo=u,qo=Math.log,Do=Math.pow,$o=Math.floor,zo=Math.abs,Uo=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"===Bo(r)&&(r=Object.values(r)),r.forEach((function(r){e&&"object"===Bo(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 Yo(t,r,e)},t},Yo=function(r,e,t){void 0===e&&(e="equal"),void 0===t&&(t=7),"array"==Bo(r)&&(r=Uo(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 f=[];if("c"===e.substr(0,1)&&(f.push(n),f.push(a)),"e"===e.substr(0,1)){f.push(n);for(var u=1;u<t;u++)f.push(n+u/t*(a-n));f.push(a)}else if("l"===e.substr(0,1)){if(n<=0)throw new Error("Logarithmic scales are only possible for values > 0");var c=Math.LOG10E*qo(n),i=Math.LOG10E*qo(a);f.push(n);for(var l=1;l<t;l++)f.push(Do(10,c+l/t*(i-c)));f.push(a)}else if("q"===e.substr(0,1)){f.push(n);for(var s=1;s<t;s++){var d=(o.length-1)*s/t,h=$o(d);if(h===d)f.push(o[h]);else{var p=d-h;f.push(o[h]*(1-p)+o[h+1]*p)}}f.push(a)}else if("k"===e.substr(0,1)){var b,g=o.length,v=new Array(g),y=new Array(t),m=!0,w=0,k=null;(k=[]).push(n);for(var _=1;_<t;_++)k.push(n+_/t*(a-n));for(k.push(a);m;){for(var x=0;x<t;x++)y[x]=0;for(var M=0;M<g;M++)for(var j=o[M],N=Number.MAX_VALUE,O=void 0,A=0;A<t;A++){var S=zo(k[A]-j);S<N&&(N=S,O=A),y[O]++,v[M]=O}for(var E=new Array(t),P=0;P<t;P++)E[P]=null;for(var F=0;F<g;F++)null===E[b=v[F]]?E[b]=o[F]:E[b]+=o[F];for(var I=0;I<t;I++)E[I]*=1/y[I];m=!1;for(var L=0;L<t;L++)if(E[L]!==k[L]){m=!0;break}k=E,++w>200&&(m=!1)}for(var G={},T=0;T<t;T++)G[T]=[];for(var C=0;C<g;C++)G[b=v[C]].push(o[C]);for(var R=[],B=0;B<t;B++)R.push(G[B][0]),R.push(G[B][G[B].length-1]);R=R.sort((function(r,e){return r-e})),f.push(R[0]);for(var q=1;q<R.length;q+=2){var D=R[q];isNaN(D)||-1!==f.indexOf(D)||f.push(D)}}return f},Jo={analyze:Uo,limits:Yo},Xo=w,Vo=function(r,e){r=new Xo(r),e=new Xo(e);var t=r.luminance(),n=e.luminance();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},Wo=w,Ko=Math.sqrt,Zo=Math.pow,Ho=Math.min,Qo=Math.max,rf=Math.atan2,ef=Math.abs,tf=Math.cos,nf=Math.sin,af=Math.exp,of=Math.PI,ff=function(r,e,t,n,a){void 0===t&&(t=1),void 0===n&&(n=1),void 0===a&&(a=1);var o=function(r){return 360*r/(2*of)},f=function(r){return 2*of*r/360};r=new Wo(r),e=new Wo(e);var u=Array.from(r.lab()),c=u[0],i=u[1],l=u[2],s=Array.from(e.lab()),d=s[0],h=s[1],p=s[2],b=(c+d)/2,g=(Ko(Zo(i,2)+Zo(l,2))+Ko(Zo(h,2)+Zo(p,2)))/2,v=.5*(1-Ko(Zo(g,7)/(Zo(g,7)+Zo(25,7)))),y=i*(1+v),m=h*(1+v),w=Ko(Zo(y,2)+Zo(l,2)),k=Ko(Zo(m,2)+Zo(p,2)),_=(w+k)/2,x=o(rf(l,y)),M=o(rf(p,m)),j=x>=0?x:x+360,N=M>=0?M:M+360,O=ef(j-N)>180?(j+N+360)/2:(j+N)/2,A=1-.17*tf(f(O-30))+.24*tf(f(2*O))+.32*tf(f(3*O+6))-.2*tf(f(4*O-63)),S=N-j;S=ef(S)<=180?S:N<=j?S+360:S-360,S=2*Ko(w*k)*nf(f(S)/2);var E=d-c,P=k-w,F=1+.015*Zo(b-50,2)/Ko(20+Zo(b-50,2)),I=1+.045*_,L=1+.015*_*A,G=30*af(-Zo((O-275)/25,2)),T=-2*Ko(Zo(_,7)/(Zo(_,7)+Zo(25,7)))*nf(2*f(G)),C=Ko(Zo(E/(t*F),2)+Zo(P/(n*I),2)+Zo(S/(a*L),2)+T*(P/(n*I))*(S/(a*L)));return Qo(0,Ho(100,C))},uf=w,cf=function(r,e,t){void 0===t&&(t="lab"),r=new uf(r),e=new uf(e);var n=r.get(t),a=e.get(t),o=0;for(var f in n){var u=(n[f]||0)-(a[f]||0);o+=u*u}return Math.sqrt(o)},lf=w,sf=function(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];try{return new(Function.prototype.bind.apply(lf,[null].concat(r))),!0}catch(r){return!1}},df=_,hf=oo,pf={cool:function(){return hf([df.hsl(180,1,.9),df.hsl(250,.7,.4)])},hot:function(){return hf(["#000","#f00","#ff0","#fff"]).mode("rgb")}},bf={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"]},gf=0,vf=Object.keys(bf);gf<vf.length;gf+=1){var yf=vf[gf];bf[yf.toLowerCase()]=bf[yf]}var mf=bf,wf=_;return wf.average=ro,wf.bezier=so,wf.blend=jo,wf.cubehelix=Io,wf.mix=wf.interpolate=da,wf.random=Ro,wf.scale=oo,wf.analyze=Jo.analyze,wf.contrast=Vo,wf.deltaE=ff,wf.distance=cf,wf.limits=Jo.limits,wf.valid=sf,wf.scales=pf,wf.colors=Tt,wf.brewer=mf,wf}()}},e={};function t(n){var a=e[n];if(void 0!==a)return a.exports;var o=e[n]={id:n,loaded:!1,exports:{}};return r[n].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(r){if("object"==typeof window)return window}}(),t.nmd=r=>(r.paths=[],r.children||(r.children=[]),r);t(4158)})();