react-colorscales
Version:
A React component for picking colorscales based on Chroma.js
1 lines • 3.26 MB
JavaScript
!function(e){function n(t){if(i[t])return i[t].exports;var c=i[t]={i:t,l:!1,exports:{}};return e[t].call(c.exports,c,c.exports,n),c.l=!0,c.exports}var i={};n.m=e,n.c=i,n.d=function(e,i,t){n.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:t})},n.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(i,"a",i),i},n.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},n.p="/",n(n.s=200)}([function(e,n,i){"use strict";function t(e){return function n(i,t){switch(arguments.length){case 0:return n;case 1:return Object(s.a)(i)?n:Object(c.a)(function(n){return e(i,n)});default:return Object(s.a)(i)&&Object(s.a)(t)?n:Object(s.a)(i)?Object(c.a)(function(n){return e(n,t)}):Object(s.a)(t)?Object(c.a)(function(n){return e(i,n)}):e(i,t)}}}n.a=t;var c=i(1),s=i(65)},function(e,n,i){"use strict";function t(e){return function n(i){return 0===arguments.length||Object(c.a)(i)?n:e.apply(this,arguments)}}n.a=t;var c=i(65)},function(e,n,i){"use strict";function t(e){return function n(i,t,a){switch(arguments.length){case 0:return n;case 1:return Object(r.a)(i)?n:Object(s.a)(function(n,t){return e(i,n,t)});case 2:return Object(r.a)(i)&&Object(r.a)(t)?n:Object(r.a)(i)?Object(s.a)(function(n,i){return e(n,t,i)}):Object(r.a)(t)?Object(s.a)(function(n,t){return e(i,n,t)}):Object(c.a)(function(n){return e(i,t,n)});default:return Object(r.a)(i)&&Object(r.a)(t)&&Object(r.a)(a)?n:Object(r.a)(i)&&Object(r.a)(t)?Object(s.a)(function(n,i){return e(n,i,a)}):Object(r.a)(i)&&Object(r.a)(a)?Object(s.a)(function(n,i){return e(n,t,i)}):Object(r.a)(t)&&Object(r.a)(a)?Object(s.a)(function(n,t){return e(i,n,t)}):Object(r.a)(i)?Object(c.a)(function(n){return e(n,t,a)}):Object(r.a)(t)?Object(c.a)(function(n){return e(i,n,a)}):Object(r.a)(a)?Object(c.a)(function(n){return e(i,t,n)}):e(i,t,a)}}}n.a=t;var c=i(1),s=i(0),r=i(65)},function(e,n,i){"use strict";e.exports=i(208)},function(e,n,i){"use strict";function t(e,n,i){return function(){if(0===arguments.length)return i();var t=Array.prototype.slice.call(arguments,0),r=t.pop();if(!Object(c.a)(r)){for(var a=0;a<e.length;){if("function"===typeof r[e[a]])return r[e[a]].apply(r,t);a+=1}if(Object(s.a)(r)){return n.apply(null,t)(r)}}return i.apply(this,arguments)}}n.a=t;var c=i(28),s=i(99)},function(e,n,i){"use strict";n.a={init:function(){return this.xf["@@transducer/init"]()},result:function(e){return this.xf["@@transducer/result"](e)}}},function(e,n,i){"use strict";var t=i(22),c=i(1),s=i(0),r=i(67),a=Object(s.a)(function(e,n){return 1===e?Object(c.a)(n):Object(t.a)(e,Object(r.a)(e,[],n))});n.a=a},function(e,n,i){e.exports=i(260)()},function(e,n,i){"use strict";n.__esModule=!0;var t=i(226),c=function(e){return e&&e.__esModule?e:{default:e}}(t);n.default=c.default||function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var t in i)Object.prototype.hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e}},function(e,n,i){"use strict";function t(e,n){return Object.prototype.hasOwnProperty.call(n,e)}n.a=t},function(e,n,i){"use strict";var t=i(0),c=i(4),s=i(68),r=i(15),a=i(331),o=i(6),h=i(23),u=Object(t.a)(Object(c.a)(["fantasy-land/map","map"],a.a,function(e,n){switch(Object.prototype.toString.call(n)){case"[object Function]":return Object(o.a)(n.length,function(){return e.call(this,n.apply(this,arguments))});case"[object Object]":return Object(r.a)(function(i,t){return i[t]=e(n[t]),i},{},Object(h.a)(n));default:return Object(s.a)(e,n)}}));n.a=u},function(e,n){var i=e.exports={version:"2.5.1"};"number"==typeof __e&&(__e=i)},function(e,n,i){"use strict";n.__esModule=!0,n.default=function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}},function(e,n,i){"use strict";n.__esModule=!0;var t=i(46),c=function(e){return e&&e.__esModule?e:{default:e}}(t);n.default=function(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!==("undefined"===typeof n?"undefined":(0,c.default)(n))&&"function"!==typeof n?e:n}},function(e,n,i){"use strict";function t(e){return e&&e.__esModule?e:{default:e}}n.__esModule=!0;var c=i(253),s=t(c),r=i(257),a=t(r),o=i(46),h=t(o);n.default=function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+("undefined"===typeof n?"undefined":(0,h.default)(n)));e.prototype=(0,a.default)(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(s.default?(0,s.default)(e,n):e.__proto__=n)}},function(e,n,i){"use strict";function t(e,n,i){for(var t=0,c=i.length;t<c;){if((n=e["@@transducer/step"](n,i[t]))&&n["@@transducer/reduced"]){n=n["@@transducer/value"];break}t+=1}return e["@@transducer/result"](n)}function c(e,n,i){for(var t=i.next();!t.done;){if((n=e["@@transducer/step"](n,t.value))&&n["@@transducer/reduced"]){n=n["@@transducer/value"];break}t=i.next()}return e["@@transducer/result"](n)}function s(e,n,i,t){return e["@@transducer/result"](i[t](Object(h.a)(e["@@transducer/step"],e),n))}function r(e,n,i){if("function"===typeof e&&(e=Object(o.a)(e)),Object(a.a)(i))return t(e,n,i);if("function"===typeof i["fantasy-land/reduce"])return s(e,n,i,"fantasy-land/reduce");if(null!=i[u])return c(e,n,i[u]());if("function"===typeof i.next)return c(e,n,i);if("function"===typeof i.reduce)return s(e,n,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}n.a=r;var a=i(69),o=i(145),h=i(146),u="undefined"!==typeof Symbol?Symbol.iterator:"@@iterator"},function(e,n,i){"use strict";var t=i(0),c=i(354),s=Object(t.a)(function(e,n){return Object(c.a)(e,n,[],[])});n.a=s},function(e,n,i){"use strict";n.__esModule=!0;var t=i(134),c=function(e){return e&&e.__esModule?e:{default:e}}(t);n.default=function(){function e(e,n){for(var i=0;i<n.length;i++){var t=n[i];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),(0,c.default)(e,t.key,t)}}return function(n,i,t){return i&&e(n.prototype,i),t&&e(n,t),n}}()},function(e,n,i){"use strict";function t(e,n){e=e||[],n=n||[];var i,t=e.length,c=n.length,s=[];for(i=0;i<t;)s[s.length]=e[i],i+=1;for(i=0;i<c;)s[s.length]=n[i],i+=1;return s}n.a=t},function(e,n,i){"use strict";var t=i(50),c=i(2),s=Object(c.a)(Object(t.a)("slice",function(e,n,i){return Array.prototype.slice.call(i,e,n)}));n.a=s},function(e,n,i){"use strict";function t(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}t(),e.exports=i(209)},function(e,n,i){var t=i(88)("wks"),c=i(60),s=i(26).Symbol,r="function"==typeof s;(e.exports=function(e){return t[e]||(t[e]=r&&s[e]||(r?s:c)("Symbol."+e))}).store=t},function(e,n,i){"use strict";function t(e,n){switch(e){case 0:return function(){return n.apply(this,arguments)};case 1:return function(e){return n.apply(this,arguments)};case 2:return function(e,i){return n.apply(this,arguments)};case 3:return function(e,i,t){return n.apply(this,arguments)};case 4:return function(e,i,t,c){return n.apply(this,arguments)};case 5:return function(e,i,t,c,s){return n.apply(this,arguments)};case 6:return function(e,i,t,c,s,r){return n.apply(this,arguments)};case 7:return function(e,i,t,c,s,r,a){return n.apply(this,arguments)};case 8:return function(e,i,t,c,s,r,a,o){return n.apply(this,arguments)};case 9:return function(e,i,t,c,s,r,a,o,h){return n.apply(this,arguments)};case 10:return function(e,i,t,c,s,r,a,o,h,u){return n.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}n.a=t},function(e,n,i){"use strict";var t=i(1),c=i(9),s=i(147),r=!{toString:null}.propertyIsEnumerable("toString"),a=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],o=function(){return arguments.propertyIsEnumerable("length")}(),h=function(e,n){for(var i=0;i<e.length;){if(e[i]===n)return!0;i+=1}return!1},u="function"!==typeof Object.keys||o?function(e){if(Object(e)!==e)return[];var n,i,t=[],u=o&&Object(s.a)(e);for(n in e)!Object(c.a)(n,e)||u&&"length"===n||(t[t.length]=n);if(r)for(i=a.length-1;i>=0;)n=a[i],Object(c.a)(n,e)&&!h(t,n)&&(t[t.length]=n),i-=1;return t}:function(e){return Object(e)!==e?[]:Object.keys(e)},l=Object(t.a)(u);n.a=l},function(e,n,i){"use strict";var t=i(2),c=i(15),s=Object(t.a)(c.a);n.a=s},function(e,n,i){var t=i(26),c=i(11),s=i(82),r=i(34),a=function(e,n,i){var o,h,u,l=e&a.F,f=e&a.G,p=e&a.S,d=e&a.P,b=e&a.B,g=e&a.W,v=f?c:c[n]||(c[n]={}),m=v.prototype,y=f?t:p?t[n]:(t[n]||{}).prototype;f&&(i=n);for(o in i)(h=!l&&y&&void 0!==y[o])&&o in v||(u=h?y[o]:i[o],v[o]=f&&"function"!=typeof y[o]?i[o]:b&&h?s(u,t):g&&y[o]==u?function(e){var n=function(n,i,t){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,i)}return new e(n,i,t)}return e.apply(this,arguments)};return n.prototype=e.prototype,n}(u):d&&"function"==typeof u?s(Function.call,u):u,d&&((v.virtual||(v.virtual={}))[o]=u,e&a.R&&m&&!m[o]&&r(m,o,u)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,e.exports=a},function(e,n){var i=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},function(e,n,i){var t=i(35),c=i(122),s=i(83),r=Object.defineProperty;n.f=i(30)?Object.defineProperty:function(e,n,i){if(t(e),n=s(n,!0),t(i),c)try{return r(e,n,i)}catch(e){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(e[n]=i.value),e}},function(e,n,i){"use strict";n.a=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)}},function(e,n,i){"use strict";function t(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}n.a=t},function(e,n,i){e.exports=!i(36)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,n){var i={}.hasOwnProperty;e.exports=function(e,n){return i.call(e,n)}},function(e,n,i){var t=i(125),c=i(85);e.exports=function(e){return t(c(e))}},function(e,n,i){"use strict";function t(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var c=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var n={},i=0;i<10;i++)n["_"+String.fromCharCode(i)]=i;if("0123456789"!==Object.getOwnPropertyNames(n).map(function(e){return n[e]}).join(""))return!1;var t={};return"abcdefghijklmnopqrst".split("").forEach(function(e){t[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},t)).join("")}catch(e){return!1}}()?Object.assign:function(e,n){for(var i,a,o=t(e),h=1;h<arguments.length;h++){i=Object(arguments[h]);for(var u in i)s.call(i,u)&&(o[u]=i[u]);if(c){a=c(i);for(var l=0;l<a.length;l++)r.call(i,a[l])&&(o[a[l]]=i[a[l]])}}return o}},function(e,n,i){var t=i(27),c=i(44);e.exports=i(30)?function(e,n,i){return t.f(e,n,c(1,i))}:function(e,n,i){return e[n]=i,e}},function(e,n,i){var t=i(43);e.exports=function(e){if(!t(e))throw TypeError(e+" is not an object!");return e}},function(e,n){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,n,i){"use strict";function t(e,n){return e+n}function c(e,n,i){var t=i;{if("object"!==("undefined"===typeof n?"undefined":T(n)))return"undefined"!==typeof t?("number"===typeof t&&(t+="px"),void(e.style[n]=t)):P(e,n);for(var s in n)n.hasOwnProperty(s)&&c(e,s,n[s])}}function s(e){var n=void 0,i=void 0,t=void 0,c=e.ownerDocument,s=c.body,r=c&&c.documentElement;return n=e.getBoundingClientRect(),i=n.left,t=n.top,i-=r.clientLeft||s.clientLeft||0,t-=r.clientTop||s.clientTop||0,{left:i,top:t}}function r(e,n){var i=e["page"+(n?"Y":"X")+"Offset"],t="scroll"+(n?"Top":"Left");if("number"!==typeof i){var c=e.document;i=c.documentElement[t],"number"!==typeof i&&(i=c.body[t])}return i}function a(e){return r(e)}function o(e){return r(e,!0)}function h(e){var n=s(e),i=e.ownerDocument,t=i.defaultView||i.parentWindow;return n.left+=a(t),n.top+=o(t),n}function u(e){return null!==e&&void 0!==e&&e==e.window}function l(e){return u(e)?e.document:9===e.nodeType?e:e.ownerDocument}function f(e,n,i){var t=i,c="",s=l(e);return t=t||s.defaultView.getComputedStyle(e,null),t&&(c=t.getPropertyValue(n)||t[n]),c}function p(e,n){var i=e[N]&&e[N][n];if(S.test(i)&&!A.test(n)){var t=e.style,c=t[L],s=e[M][L];e[M][L]=e[N][L],t[L]="fontSize"===n?"1em":i||0,i=t.pixelLeft+D,t[L]=c,e[M][L]=s}return""===i?"auto":i}function d(e,n){return"left"===e?n.useCssRight?"right":e:n.useCssBottom?"bottom":e}function b(e){return"left"===e?"right":"right"===e?"left":"top"===e?"bottom":"bottom"===e?"top":void 0}function g(e,n,i){"static"===c(e,"position")&&(e.style.position="relative");var s=-999,r=-999,a=d("left",i),o=d("top",i),u=b(a),l=b(o);"left"!==a&&(s=999),"top"!==o&&(r=999);var f="",p=h(e);("left"in n||"top"in n)&&(f=Object(k.c)(e)||"",Object(k.e)(e,"none")),"left"in n&&(e.style[u]="",e.style[a]=s+"px"),"top"in n&&(e.style[l]="",e.style[o]=r+"px");var g=h(e),v={};for(var m in n)if(n.hasOwnProperty(m)){var y=d(m,i),O="left"===m?s:r,w=p[m]-g[m];v[y]=y===m?O+w:O-w}c(e,v),t(e.offsetTop,e.offsetLeft),("left"in n||"top"in n)&&Object(k.e)(e,f);var C={};for(var E in n)if(n.hasOwnProperty(E)){var x=d(E,i),j=n[E]-p[E];C[x]=E===x?v[x]+j:v[x]-j}c(e,C)}function v(e,n){var i=h(e),t=Object(k.b)(e),c={x:t.x,y:t.y};"left"in n&&(c.x=t.x+n.left-i.left),"top"in n&&(c.y=t.y+n.top-i.top),Object(k.d)(e,c)}function m(e,n,i){i.useCssRight||i.useCssBottom?g(e,n,i):i.useCssTransform&&Object(k.a)()in document.body.style?v(e,n,i):g(e,n,i)}function y(e,n){for(var i=0;i<e.length;i++)n(e[i])}function O(e){return"border-box"===P(e,"boxSizing")}function w(e,n,i){var t={},c=e.style,s=void 0;for(s in n)n.hasOwnProperty(s)&&(t[s]=c[s],c[s]=n[s]);i.call(e);for(s in n)n.hasOwnProperty(s)&&(c[s]=t[s])}function C(e,n,i){var t=0,c=void 0,s=void 0,r=void 0;for(s=0;s<n.length;s++)if(c=n[s])for(r=0;r<i.length;r++){var a=void 0;a="border"===c?""+c+i[r]+"Width":c+i[r],t+=parseFloat(P(e,a))||0}return t}function E(e,n,i){var t=i;if(u(e))return"width"===n?B.viewportWidth(e):B.viewportHeight(e);if(9===e.nodeType)return"width"===n?B.docWidth(e):B.docHeight(e);var c="width"===n?["Left","Right"]:["Top","Bottom"],s="width"===n?e.getBoundingClientRect().width:e.getBoundingClientRect().height,r=P(e),a=O(e,r),o=0;(null===s||void 0===s||s<=0)&&(s=void 0,o=P(e,n),(null===o||void 0===o||Number(o)<0)&&(o=e.style[n]||0),o=parseFloat(o)||0),void 0===t&&(t=a?U:F);var h=void 0!==s||a,l=s||o;return t===F?h?l-C(e,["border","padding"],c,r):o:h?t===U?l:l+(t===I?-C(e,["border"],c,r):C(e,["margin"],c,r)):o+C(e,R.slice(t),c,r)}function x(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];var t=void 0,c=n[0];return 0!==c.offsetWidth?t=E.apply(void 0,n):w(c,H,function(){t=E.apply(void 0,n)}),t}function j(e,n){for(var i in n)n.hasOwnProperty(i)&&(e[i]=n[i]);return e}var k=i(274),T="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,P=void 0,S=new RegExp("^("+_+")(?!px)[a-z%]+$","i"),A=/^(top|right|bottom|left)$/,N="currentStyle",M="runtimeStyle",L="left",D="px";"undefined"!==typeof window&&(P=window.getComputedStyle?f:p);var R=["margin","border","padding"],F=-1,I=2,U=1,B={};y(["Width","Height"],function(e){B["doc"+e]=function(n){var i=n.document;return Math.max(i.documentElement["scroll"+e],i.body["scroll"+e],B["viewport"+e](i))},B["viewport"+e]=function(n){var i="client"+e,t=n.document,c=t.body,s=t.documentElement,r=s[i];return"CSS1Compat"===t.compatMode&&r||c&&c[i]||r}});var H={position:"absolute",visibility:"hidden",display:"block"};y(["width","height"],function(e){var n=e.charAt(0).toUpperCase()+e.slice(1);B["outer"+n]=function(n,i){return n&&x(n,e,i?0:U)};var i="width"===e?["Left","Right"]:["Top","Bottom"];B[e]=function(n,t){var s=t;if(void 0===s)return n&&x(n,e,F);if(n){var r=P(n);return O(n)&&(s+=C(n,["padding","border"],i,r)),c(n,e,s)}}});var W={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var n=e.ownerDocument||e;return n.defaultView||n.parentWindow},getDocument:l,offset:function(e,n,i){if("undefined"===typeof n)return h(e);m(e,n,i||{})},isWindow:u,each:y,css:c,clone:function(e){var n=void 0,i={};for(n in e)e.hasOwnProperty(n)&&(i[n]=e[n]);if(e.overflow)for(n in e)e.hasOwnProperty(n)&&(i.overflow[n]=e.overflow[n]);return i},mix:j,getWindowScrollLeft:function(e){return a(e)},getWindowScrollTop:function(e){return o(e)},merge:function(){for(var e={},n=arguments.length,i=Array(n),t=0;t<n;t++)i[t]=arguments[t];for(var c=0;c<i.length;c++)W.mix(e,i[c]);return e},viewportWidth:0,viewportHeight:0};j(W,B),n.a=W},function(e,n,i){"use strict";n.__esModule=!0;var t=i(134),c=function(e){return e&&e.__esModule?e:{default:e}}(t);n.default=function(e,n,i){return n in e?(0,c.default)(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e}},function(e,n,i){"use strict";var t=i(1),c=Object(t.a)(function(e){return function(){return e}});n.a=c},function(e,n,i){"use strict";var t=i(0),c=Object(t.a)(function(e,n){return n>e?n:e});n.a=c},function(e,n,i){"use strict";var t=i(0),c=Object(t.a)(function(e,n){for(var i=n,t=0;t<e.length;){if(null==i)return;i=i[e[t]],t+=1}return i});n.a=c},function(e,n,i){"use strict";function t(e,n){return Object(c.a)(n,e,0)>=0}n.a=t;var c=i(163)},function(e,n){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},function(e,n){e.exports=function(e,n){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:n}}},function(e,n,i){"use strict";n.__esModule=!0,n.default=function(e,n){var i={};for(var t in e)n.indexOf(t)>=0||Object.prototype.hasOwnProperty.call(e,t)&&(i[t]=e[t]);return i}},function(e,n,i){"use strict";function t(e){return e&&e.__esModule?e:{default:e}}n.__esModule=!0;var c=i(233),s=t(c),r=i(243),a=t(r),o="function"===typeof a.default&&"symbol"===typeof s.default?function(e){return typeof e}:function(e){return e&&"function"===typeof a.default&&e.constructor===a.default&&e!==a.default.prototype?"symbol":typeof e};n.default="function"===typeof a.default&&"symbol"===o(s.default)?function(e){return"undefined"===typeof e?"undefined":o(e)}:function(e){return e&&"function"===typeof a.default&&e.constructor===a.default&&e!==a.default.prototype?"symbol":"undefined"===typeof e?"undefined":o(e)}},function(e,n){e.exports={}},function(e,n,i){"use strict";var t=i(0),c=i(10),s=i(100),r=Object(t.a)(function(e,n){return Object(c.a)(Object(s.a)(e),n)});n.a=r},function(e,n,i){"use strict";function t(e){return"[object String]"===Object.prototype.toString.call(e)}n.a=t},function(e,n,i){"use strict";function t(e,n){return function(){var i=arguments.length;if(0===i)return n();var t=arguments[i-1];return Object(c.a)(t)||"function"!==typeof t[e]?n.apply(this,arguments):t[e].apply(t,Array.prototype.slice.call(arguments,0,i-1))}}n.a=t;var c=i(28)},function(e,n,i){"use strict";var t=i(1),c=i(353),s=Object(t.a)(function(e){return Object(c.a)(e,[])});n.a=s},function(e,n,i){"use strict";var t=i(0),c=i(49),s=Object(t.a)(function(e,n){var i=e<0?n.length+e:e;return Object(c.a)(n)?n.charAt(i):n[i]});n.a=s},function(e,n,i){"use strict";var t=i(0),c=i(72),s=i(6),r=i(51),a=Object(t.a)(function(e,n){return Object(s.a)(e+1,function(){var i=arguments[e];if(null!=i&&Object(c.a)(i[n]))return i[n].apply(i,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Object(r.a)(i)+' does not have a method named "'+n+'"')})});n.a=a},function(e,n,i){"use strict";function t(e,n,i,t,s,r,a,o){if(c(n),!e){var h;if(void 0===n)h=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[i,t,s,r,a,o],l=0;h=new Error(n.replace(/%s/g,function(){return u[l++]})),h.name="Invariant Violation"}throw h.framesToPop=1,h}}var c=function(e){};e.exports=t},function(e,n,i){"use strict";function t(e){return function(){return e}}var c=function(){};c.thatReturns=t,c.thatReturnsFalse=t(!1),c.thatReturnsTrue=t(!0),c.thatReturnsNull=t(null),c.thatReturnsThis=function(){return this},c.thatReturnsArgument=function(e){return e},e.exports=c},function(e,n){function i(e,n){var i=e[1]||"",c=e[3];if(!c)return i;if(n&&"function"===typeof btoa){var s=t(c);return[i].concat(c.sources.map(function(e){return"/*# sourceURL="+c.sourceRoot+e+" */"})).concat([s]).join("\n")}return[i].join("\n")}function t(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var n=[];return n.toString=function(){return this.map(function(n){var t=i(n,e);return n[2]?"@media "+n[2]+"{"+t+"}":t}).join("")},n.i=function(e,i){"string"===typeof e&&(e=[[null,e,""]]);for(var t={},c=0;c<this.length;c++){var s=this[c][0];"number"===typeof s&&(t[s]=!0)}for(c=0;c<e.length;c++){var r=e[c];"number"===typeof r[0]&&t[r[0]]||(i&&!r[2]?r[2]=i:i&&(r[2]="("+r[2]+") and ("+i+")"),n.push(r))}},n}},function(e,n,i){function t(e,n){for(var i=0;i<e.length;i++){var t=e[i],c=d[t.id];if(c){c.refs++;for(var s=0;s<c.parts.length;s++)c.parts[s](t.parts[s]);for(;s<t.parts.length;s++)c.parts.push(u(t.parts[s],n))}else{for(var r=[],s=0;s<t.parts.length;s++)r.push(u(t.parts[s],n));d[t.id]={id:t.id,refs:1,parts:r}}}}function c(e,n){for(var i=[],t={},c=0;c<e.length;c++){var s=e[c],r=n.base?s[0]+n.base:s[0],a=s[1],o=s[2],h=s[3],u={css:a,media:o,sourceMap:h};t[r]?t[r].parts.push(u):i.push(t[r]={id:r,parts:[u]})}return i}function s(e,n){var i=g(e.insertInto);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var t=y[y.length-1];if("top"===e.insertAt)t?t.nextSibling?i.insertBefore(n,t.nextSibling):i.appendChild(n):i.insertBefore(n,i.firstChild),y.push(n);else if("bottom"===e.insertAt)i.appendChild(n);else{if("object"!==typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var c=g(e.insertInto+" "+e.insertAt.before);i.insertBefore(n,c)}}function r(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var n=y.indexOf(e);n>=0&&y.splice(n,1)}function a(e){var n=document.createElement("style");return e.attrs.type="text/css",h(n,e.attrs),s(e,n),n}function o(e){var n=document.createElement("link");return e.attrs.type="text/css",e.attrs.rel="stylesheet",h(n,e.attrs),s(e,n),n}function h(e,n){Object.keys(n).forEach(function(i){e.setAttribute(i,n[i])})}function u(e,n){var i,t,c,s;if(n.transform&&e.css){if(!(s=n.transform(e.css)))return function(){};e.css=s}if(n.singleton){var h=m++;i=v||(v=a(n)),t=l.bind(null,i,h,!1),c=l.bind(null,i,h,!0)}else e.sourceMap&&"function"===typeof URL&&"function"===typeof URL.createObjectURL&&"function"===typeof URL.revokeObjectURL&&"function"===typeof Blob&&"function"===typeof btoa?(i=o(n),t=p.bind(null,i,n),c=function(){r(i),i.href&&URL.revokeObjectURL(i.href)}):(i=a(n),t=f.bind(null,i),c=function(){r(i)});return t(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap)return;t(e=n)}else c()}}function l(e,n,i,t){var c=i?"":t.css;if(e.styleSheet)e.styleSheet.cssText=w(n,c);else{var s=document.createTextNode(c),r=e.childNodes;r[n]&&e.removeChild(r[n]),r.length?e.insertBefore(s,r[n]):e.appendChild(s)}}function f(e,n){var i=n.css,t=n.media;if(t&&e.setAttribute("media",t),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}function p(e,n,i){var t=i.css,c=i.sourceMap,s=void 0===n.convertToAbsoluteUrls&&c;(n.convertToAbsoluteUrls||s)&&(t=O(t)),c&&(t+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(c))))+" */");var r=new Blob([t],{type:"text/css"}),a=e.href;e.href=URL.createObjectURL(r),a&&URL.revokeObjectURL(a)}var d={},b=function(e){var n;return function(){return"undefined"===typeof n&&(n=e.apply(this,arguments)),n}}(function(){return window&&document&&document.all&&!window.atob}),g=function(e){var n={};return function(i){if("undefined"===typeof n[i]){var t=e.call(this,i);if(t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}n[i]=t}return n[i]}}(function(e){return document.querySelector(e)}),v=null,m=0,y=[],O=i(220);e.exports=function(e,n){if("undefined"!==typeof DEBUG&&DEBUG&&"object"!==typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");n=n||{},n.attrs="object"===typeof n.attrs?n.attrs:{},n.singleton||(n.singleton=b()),n.insertInto||(n.insertInto="head"),n.insertAt||(n.insertAt="bottom");var i=c(e,n);return t(i,n),function(e){for(var s=[],r=0;r<i.length;r++){var a=i[r],o=d[a.id];o.refs--,s.push(o)}if(e){t(c(e,n),n)}for(var r=0;r<s.length;r++){var o=s[r];if(0===o.refs){for(var h=0;h<o.parts.length;h++)o.parts[h]();delete d[o.id]}}}};var w=function(){var e=[];return function(n,i){return e[n]=i,e.filter(Boolean).join("\n")}}()},function(e,n,i){(function(e){var i,t;(function(){var c,s,r,a,o,h,u,l,f,p,d,b,g,v,m,y,O,w,C,E,x,j,k,T,_,P,S,A,N,M,L,D,R,F,I,U,B,H,W,V,z,K,G,Y,q,X,Q,$,Z,J,ee,ne,ie,te,ce,se,re,ae,oe,he,ue,le,fe,pe,de,be,ge,ve,ye,Oe,we,Ce,Ee,xe,je,ke,Te,_e,Pe,Se=[].slice;je=function(){var e,n,i,t,c;for(e={},c="Boolean Number String Function Array Date RegExp Undefined Null".split(" "),t=0,n=c.length;t<n;t++)i=c[t],e["[object "+i+"]"]=i.toLowerCase();return function(n){var i;return i=Object.prototype.toString.call(n),e[i]||"object"}}(),q=function(e,n,i){return null==n&&(n=0),null==i&&(i=1),e<n&&(e=n),e>i&&(e=i),e},ke=function(e){return e.length>=3?[].slice.call(e):e[0]},E=function(e){var n,i;for(e._clipped=!1,e._unclipped=e.slice(0),n=i=0;i<3;n=++i)n<3?((e[n]<0||e[n]>255)&&(e._clipped=!0),e[n]<0&&(e[n]=0),e[n]>255&&(e[n]=255)):3===n&&(e[n]<0&&(e[n]=0),e[n]>1&&(e[n]=1));return e._clipped||delete e._unclipped,e},a=Math.PI,Oe=Math.round,j=Math.cos,S=Math.floor,te=Math.pow,X=Math.log,Ce=Math.sin,Ee=Math.sqrt,g=Math.atan2,Z=Math.max,b=Math.abs,u=2*a,o=a/3,s=a/180,h=180/a,C=function(){return arguments[0]instanceof c?arguments[0]:function(e,n,i){i.prototype=e.prototype;var t=new i,c=e.apply(t,n);return Object(c)===c?c:t}(c,arguments,function(){})},d=[],"undefined"!==typeof e&&null!==e&&null!=e.exports&&(e.exports=C),i=[],void 0!==(t=function(){return C}.apply(n,i))&&(e.exports=t),C.version="1.3.4",p={},l=[],f=!1,c=function(){function e(){var e,n,i,t,c,s,r,a,o;for(s=this,n=[],a=0,t=arguments.length;a<t;a++)null!=(e=arguments[a])&&n.push(e);if(r=n[n.length-1],null!=p[r])s._rgb=E(p[r](ke(n.slice(0,-1))));else{for(f||(l=l.sort(function(e,n){return n.p-e.p}),f=!0),o=0,c=l.length;o<c&&(i=l[o],!(r=i.test.apply(i,n)));o++);r&&(s._rgb=E(p[r].apply(p,n)))}null==s._rgb&&console.warn("unknown format: "+n),null==s._rgb&&(s._rgb=[0,0,0]),3===s._rgb.length&&s._rgb.push(1)}return e.prototype.toString=function(){return this.hex()},e.prototype.clone=function(){return C(me._rgb)},e}(),C._input=p,C.brewer=O={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"]},function(){var e,n;n=[];for(e in O)n.push(O[e.toLowerCase()]=O[e])}(),Te={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"},C.colors=Te,V=function(){var e,n,i,t,c,s,a,o,h;return n=ke(arguments),c=n[0],e=n[1],i=n[2],o=(c+16)/116,a=isNaN(e)?o:o+e/500,h=isNaN(i)?o:o-i/200,o=r.Yn*z(o),a=r.Xn*z(a),h=r.Zn*z(h),s=Pe(3.2404542*a-1.5371385*o-.4985314*h),t=Pe(-.969266*a+1.8760108*o+.041556*h),i=Pe(.0556434*a-.2040259*o+1.0572252*h),[s,t,i,n.length>3?n[3]:1]},Pe=function(e){return 255*(e<=.00304?12.92*e:1.055*te(e,1/2.4)-.055)},z=function(e){return e>r.t1?e*e*e:r.t2*(e-r.t0)},r={Kn:18,Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452},le=function(){var e,n,i,t,c,s,r,a;return t=ke(arguments),i=t[0],n=t[1],e=t[2],c=ge(i,n,e),s=c[0],r=c[1],a=c[2],[116*r-16,500*(s-r),200*(r-a)]},ve=function(e){return(e/=255)<=.04045?e/12.92:te((e+.055)/1.055,2.4)},_e=function(e){return e>r.t3?te(e,1/3):e/r.t2+r.t0},ge=function(){var e,n,i,t,c,s,a;return t=ke(arguments),i=t[0],n=t[1],e=t[2],i=ve(i),n=ve(n),e=ve(e),c=_e((.4124564*i+.3575761*n+.1804375*e)/r.Xn),s=_e((.2126729*i+.7151522*n+.072175*e)/r.Yn),a=_e((.0193339*i+.119192*n+.9503041*e)/r.Zn),[c,s,a]},C.lab=function(){return function(e,n,i){i.prototype=e.prototype;var t=new i,c=e.apply(t,n);return Object(c)===c?c:t}(c,Se.call(arguments).concat(["lab"]),function(){})},p.lab=V,c.prototype.lab=function(){return le(this._rgb)},v=function(e){var n,i,t,c,s,r,a,o,h,u,l;return e=function(){var n,i,t;for(t=[],i=0,n=e.length;i<n;i++)c=e[i],t.push(C(c));return t}(),2===e.length?(h=function(){var n,i,t;for(t=[],i=0,n=e.length;i<n;i++)c=e[i],t.push(c.lab());return t}(),s=h[0],r=h[1],n=function(e){var n,i;return i=function(){var i,t;for(t=[],n=i=0;i<=2;n=++i)t.push(s[n]+e*(r[n]-s[n]));return t}(),C.lab.apply(C,i)}):3===e.length?(u=function(){var n,i,t;for(t=[],i=0,n=e.length;i<n;i++)c=e[i],t.push(c.lab());return t}(),s=u[0],r=u[1],a=u[2],n=function(e){var n,i;return i=function(){var i,t;for(t=[],n=i=0;i<=2;n=++i)t.push((1-e)*(1-e)*s[n]+2*(1-e)*e*r[n]+e*e*a[n]);return t}(),C.lab.apply(C,i)}):4===e.length?(l=function(){var n,i,t;for(t=[],i=0,n=e.length;i<n;i++)c=e[i],t.push(c.lab());return t}(),s=l[0],r=l[1],a=l[2],o=l[3],n=function(e){var n,i;return i=function(){var i,t;for(t=[],n=i=0;i<=2;n=++i)t.push((1-e)*(1-e)*(1-e)*s[n]+3*(1-e)*(1-e)*e*r[n]+3*(1-e)*e*e*a[n]+e*e*e*o[n]);return t}(),C.lab.apply(C,i)}):5===e.length&&(i=v(e.slice(0,3)),t=v(e.slice(2,5)),n=function(e){return e<.5?i(2*e):t(2*(e-.5))}),n},C.bezier=function(e){var n;return n=v(e),n.scale=function(){return C.scale(n)},n},C.cubehelix=function(e,n,i,t,c){var s,r,a;return null==e&&(e=300),null==n&&(n=-1.5),null==i&&(i=1),null==t&&(t=1),null==c&&(c=[0,1]),s=0,"array"===je(c)?r=c[1]-c[0]:(r=0,c=[c,c]),a=function(a){var o,h,l,f,p,d,b,g,v;return o=u*((e+120)/360+n*a),b=te(c[0]+r*a,t),d=0!==s?i[0]+a*s:i,h=d*b*(1-b)/2,f=j(o),v=Ce(o),g=b+h*(-.14861*f+1.78277*v),p=b+h*(-.29227*f-.90649*v),l=b+h*(1.97294*f),C(E([255*g,255*p,255*l]))},a.start=function(n){return null==n?e:(e=n,a)},a.rotations=function(e){return null==e?n:(n=e,a)},a.gamma=function(e){return null==e?t:(t=e,a)},a.hue=function(e){return null==e?i:(i=e,"array"===je(i)?0===(s=i[1]-i[0])&&(i=i[1]):s=0,a)},a.lightness=function(e){return null==e?c:("array"===je(e)?(c=e,r=e[1]-e[0]):(c=[e,e],r=0),a)},a.scale=function(){return C.scale(a)},a.hue(i),a},C.random=function(){var e,n,i;for(n="0123456789abcdef",e="#",i=0;i<6;++i)e+=n.charAt(S(16*Math.random()));return new c(e)},C.average=function(e,n){var i,t,c,s,r,o,h,u,l,f,p,d,b;null==n&&(n="rgb"),l=e.length,e=e.map(function(e){return C(e)}),h=e.splice(0,1)[0],d=h.get(n),s=[],r=0,o=0;for(u in d)d[u]=d[u]||0,s.push(isNaN(d[u])?0:1),"h"!==n.charAt(u)||isNaN(d[u])||(i=d[u]/180*a,r+=j(i),o+=Ce(i));for(t=h.alpha(),p=0,f=e.length;p<f;p++){c=e[p],b=c.get(n),t+=c.alpha();for(u in d)isNaN(b[u])||(d[u]+=b[u],s[u]+=1,"h"===n.charAt(u)&&(i=d[u]/180*a,r+=j(i),o+=Ce(i)))}for(u in d)if(d[u]=d[u]/s[u],"h"===n.charAt(u)){for(i=g(o/s[u],r/s[u])/a*180;i<0;)i+=360;for(;i>=360;)i-=360;d[u]=i}return C(d,n).alpha(t/l)},p.rgb=function(){var e,n,i,t;n=ke(arguments),i=[];for(e in n)t=n[e],i.push(t);return i},C.rgb=function(){return function(e,n,i){i.prototype=e.prototype;var t=new i,c=e.apply(t,n);return Object(c)===c?c:t}(c,Se.call(arguments).concat(["rgb"]),function(){})},c.prototype.rgb=function(e){return null==e&&(e=!0),e?this._rgb.map(Math.round).slice(0,3):this._rgb.slice(0,3)},c.prototype.rgba=function(e){return null==e&&(e=!0),e?[Math.round(this._rgb[0]),Math.round(this._rgb[1]),Math.round(this._rgb[2]),this._rgb[3]]:this._rgb.slice(0)},l.push({p:3,test:function(e){var n;return n=ke(arguments),"array"===je(n)&&3===n.length?"rgb":4===n.length&&"number"===je(n[3])&&n[3]>=0&&n[3]<=1?"rgb":void 0}}),N=function(e){var n,i,t,c,s,r;if(e.match(/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/))return 4!==e.length&&7!==e.length||(e=e.substr(1)),3===e.length&&(e=e.split(""),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),r=parseInt(e,16),c=r>>16,t=r>>8&255,i=255&r,[c,t,i,1];if(e.match(/^#?([A-Fa-f0-9]{8})$/))return 9===e.length&&(e=e.substr(1)),r=parseInt(e,16),c=r>>24&255,t=r>>16&255,i=r>>8&255,n=Oe((255&r)/255*100)/100,[c,t,i,n];if(null!=p.css&&(s=p.css(e)))return s;throw"unknown color: "+e},ae=function(e,n){var i,t,c,s,r,a,o;return null==n&&(n="rgb"),r=e[0],c=e[1],t=e[2],i=e[3],r=Math.round(r),c=Math.round(c),t=Math.round(t),o=r<<16|c<<8|t,a="000000"+o.toString(16),a=a.substr(a.length-6),s="0"+Oe(255*i).toString(16),s=s.substr(s.length-2),"#"+function(){switch(n.toLowerCase()){case"rgba":return a+s;case"argb":return s+a;default:return a}}()},p.hex=function(e){return N(e)},C.hex=function(){return function(e,n,i){i.prototype=e.prototype;var t=new i,c=e.apply(t,n);return Object(c)===c?c:t}(c,Se.call(arguments).concat(["hex"]),function(){})},c.prototype.hex=function(e){return null==e&&(e="rgb"),ae(this._rgb,e)},l.push({p:4,test:function(e){if(1===arguments.length&&"string"===je(e))return"hex"}}),D=function(){var e,n,i,t,c,s,r,a,o,h,u,l,f,p;if(e=ke(arguments),c=e[0],u=e[1],r=e[2],0===u)o=t=n=255*r;else{for(p=[0,0,0],i=[0,0,0],f=r<.5?r*(1+u):r+u-r*u,l=2*r-f,c/=360,p[0]=c+1/3,p[1]=c,p[2]=c-1/3,s=a=0;a<=2;s=++a)p[s]<0&&(p[s]+=1),p[s]>1&&(p[s]-=1),6*p[s]<1?i[s]=l+6*(f-l)*p[s]:2*p[s]<1?i[s]=f:3*p[s]<2?i[s]=l+(f-l)*(2/3-p[s])*6:i[s]=l;h=[Oe(255*i[0]),Oe(255*i[1]),Oe(255*i[2])],o=h[0],t=h[1],n=h[2]}return e.length>3?[o,t,n,e[3]]:[o,t,n]},he=function(e,n,i){var t,c,s,r,a;return void 0!==e&&e.length>=3&&(r=e,e=r[0],n=r[1],i=r[2]),e/=255,n/=255,i/=255,s=Math.min(e,n,i),Z=Math.max(e,n,i),c=(Z+s)/2,Z===s?(a=0,t=Number.NaN):a=c<.5?(Z-s)/(Z+s):(Z-s)/(2-Z-s),e===Z?t=(n-i)/(Z-s):n===Z?t=2+(i-e)/(Z-s):i===Z&&(t=4+(e-n)/(Z-s)),t*=60,t<0&&(t+=360),[t,a,c]},C.hsl=function(){return function(e,n,i){i.prototype=e.prototype;var t=new i,c=e.apply(t,n);return Object(c)===c?c:t}(c,Se.call(arguments).concat(["hsl"]),function(){})},p.hsl=D,c.prototype.hsl=function(){return he(this._rgb)},R=function(){var e,n,i,t,c,s,r,a,o,h,u,l,f,p,d,b,g,v;if(e=ke(arguments),c=e[0],b=e[1],v=e[2],v*=255,0===b)o=t=n=v;else switch(360===c&&(c=0),c>360&&(c-=360),c<0&&(c+=360),c/=60,s=S(c),i=c-s,r=v*(1-b),a=v*(1-b*i),g=v*(1-b*(1-i)),s){case 0:h=[v,g,r],o=h[0],t=h[1],n=h[2];break;case 1:u=[a,v,r],o=u[0],t=u[1],n=u[2];break;case 2:l=[r,v,g],o=l[0],t=l[1],n=l[2];break;case 3:f=[r,a,v],o=f[0],t=f[1],n=f[2];break;case 4:p=[g,r,v],o=p[0],t=p[1],n=p[2];break;case 5:d=[v,r,a],o=d[0],t=d[1],n=d[2]}return[o,t,n,e.length>3?e[3]:1]},ue=function(){var e,n,i,t,c,s,r,a,o;return r=ke(arguments),s=r[0],i=r[1],e=r[2],c=Math.min(s,i,e),Z=Math.max(s,i,e),n=Z-c,o=Z/255,0===Z?(t=Number.NaN,a=0):(a=n/Z,s===Z&&(t=(i-e)/n),i===Z&&(t=2+(e-s)/n),e===Z&&(t=4+(s-i)/n),(t*=60)<0&&(t+=360)),[t,a,o]},C.hsv=function(){return function(e,n,i){i.prototype=e.prototype;var t=new i,c=e.apply(t,n);return Object(c)===c?c:t}(c,Se.call(arguments).concat(["hsv"]),function(){})},p.hsv=R,c.prototype.hsv=function(){return ue(this._rgb)},ne=function(e){var n,i,t;return"number"===je(e)&&e>=0&&e<=16777215?(t=e>>16,i=e>>8&255,n=255&e,[t,i,n,1]):(console.warn("unknown num color: "+e),[0,0,0,1])},de=function(){var e,n,i,t;return t=ke(arguments),i=t[0],n=t[1],e=t[2],(i<<16)+(n<<8)+e},C.num=function(e){return new c(e,"num")},c.prototype.num=function(e){return null==e&&(e="rgb"),de(this._rgb,e)},p.num=ne,l.push({p:1,test:function(e){if(1===arguments.length&&"number"===je(e)&&e>=0&&e<=16777215)return"num"}}),A=function(){var e,n,i,t,c,s,r,a,o,h,u,l,f,p,d,b,g,v,m,y;if(i=ke(arguments),a=i[0],c=i[1],n=i[2],c/=100,r=r/100*255,e=255*c,0===c)l=r=t=n;else switch(360===a&&(a=0),a>360&&(a-=360),a<0&&(a+=360),a/=60,o=S(a),s=a-o,h=n*(1-c),u=h+e*(1-s),m=h+e*s,y=h+e,o){case 0:f=[y,m,h],l=f[0],r=f[1],t=f[2];break;case 1:p=[u,y,h],l=p[0],r=p[1],t=p[2];break;case 2:d=[h,y,m],l=d[0],r=d[1],t=d[2];break;case 3:b=[h,u,y],l=b[0],r=b[1],t=b[2];break;case 4:g=[m,h,y],l=g[0],r=g[1],t=g[2];break;case 5:v=[y,h,u],l=v[0],r=v[1],t=v[2]}return[l,r,t,i.length>3?i[3]:1]},re=function(){var e,n,i,t,c,s,r,a,o;return o=ke(arguments),a=o[0],c=o[1],n=o[2],r=Math.min(a,c,n),Z=Math.max(a,c,n),t=Z-r,i=100*t/255,e=r/(255-t)*100,0===t?s=Number.NaN:(a===Z&&(s=(c-n)/t),c===Z&&(s=2+(n-a)/t),n===Z&&(s=4+(a-c)/t),(s*=60)<0&&(s+=360)),[s,i,e]},C.hcg=function(){return function(e,n,i){i.prototype=e.prototype;var t=new i,c=e.apply(t,n);return Object(c)===c?c:t}(c,Se.call(arguments).concat(["hcg"]),function(){})},p.hcg=A,c.prototype.hcg=function(){return re(this._rgb)},k=function(e){var n,i,t,c,s,r,a,o;if(e=e.toLowerCase(),null!=C.colors&&C.colors[e])return N(C.colors[e]);if(s=e.match(/rgb\(\s*(\-?\d+),\s*(\-?\d+)\s*,\s*(\-?\d+)\s*\)/)){for(a=s.slice(1,4),c=r=0;r<=2;c=++r)a[c]=+a[c];a[3]=1}else if(s=e.match(/rgba\(\s*(\-?\d+),\s*(\-?\d+)\s*,\s*(\-?\d+)\s*,\s*([01]|[01]?\.\d+)\)/))for(a=s.slice(1,5),c=o=0;o<=3;c=++o)a[c]=+a[c];else if(s=e.match(/rgb\(\s*(\-?\d+(?:\.\d+)?)%,\s*(\-?\d+(?:\.\d+)?)%\s*,\s*(\-?\d+(?:\.\d+)?)%\s*\)/)){for(a=s.slice(1,4),c=n=0;n<=2;c=++n)a[c]=Oe(2.55*a[c]);a[3]=1}else if(s=e.match(/rgba\(\s*(\-?\d+(?:\.\d+)?)%,\s*(\-?\d+(?:\.\d+)?)%\s*,\s*(\-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)/)){for(a=s.slice(1,5),c=i=0;i<=2;c=++i)a[c]=Oe(2.55*a[c]);a[3]=+a[3]}else(s=e.match(/hsl\(\s*(\-?\d+(?:\.\d+)?),\s*(\-?\d+(?:\.\d+)?)%\s*,\s*(\-?\d+(?:\.\d+)?)%\s*\)/))?(t=s.slice(1,4),t[1]*=.01,t[2]*=.01,a=D(t),a[3]=1):(s=e.match(/hsla\(\s*(\-?\d+(?:\.\d+)?),\s*(\-?\d+(?:\.\d+)?)%\s*,\s*(\-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)/))&&(t=s.slice(1,4),t[1]*=.01,t[2]*=.01,a=D(t),a[3]=+s[4]);return a},se=function(e){var n;return n=e[3]<1?"rgba":"rgb","rgb"===n?n+"("+e.slice(0,3).map(Oe).join(",")+")":"rgba"===n?n+"("+e.slice(0,3).map(Oe).join(",")+","+e[3]+")":void 0},ye=function(e){return Oe(100*e)/100},L=function(e,n){var i;return i=n<1?"hsla":"hsl",e[0]=ye(e[0]||0),e[1]=ye(100*e[1])+"%",e[2]=ye(100*e[2])+"%","hsla"===i&&(e[3]=n),i+"("+e.join(",")+")"},p.css=function(e){return k(e)},C.css=function(){return function(e,n,i){i.prototype=e.prototype;var t=new i,c=e.apply(t,n);return Object(c)===c?c:t}(c,Se.call(arguments).concat(["css"]),function(){})},c.prototype.css=function(e){return null==e&&(e="rgb"),"rgb"===e.slice(0,3)?se(this._rgb):"hsl"===e.slice(0,3)?L(this.hsl(),this.alpha()):void 0},p.named=function(e){return N(Te[e])},l.push({p:5,test:function(e){if(1===arguments.length&&null!=Te[e])return"named"}}),c.prototype.name=function(e){var n,i;arguments.length&&(Te[e]&&(this._rgb=N(Te[e])),this._rgb[3]=1),n=this.hex();for(i in Te)if(n===Te[i])return i;return n},K=function(){var e,n,i,t;return t=ke(arguments),i=t[0],e=t[1],n=t[2],n*=s,[i,j(n)*e,Ce(n)*e]},G=function(){var e,n,i,t,c,s,r,a,o,h,u;return i=ke(arguments),a=i[0],c=i[1],r=i[2],h=K(a,c,r),e=h[0],n=h[1],t=h[2],u=V(e,n,t),o=u[0],s=u[1],t=u[2],[o,s,t,i.length>3?i[3]:1]},W=function(){var e,n,i,t,c,s;return s=ke(arguments),c=s[0],e=s[1],n=s[2],i=Ee(e*e+n*n),t=(g(n,e)*h+360)%360,0===Oe(1e4*i)&&(t=Number.NaN),[c,i,t]},fe=function(){var e,n,i,t,c,s,r;return s=ke(arguments),c=s[0],i=s[1],n=s[2],r=le(c,i,n),t=r[0],e=r[1],n=r[2],W(t,e,n)},C.lch=function(){var e;return e=ke(arguments),new c(e,"lch")},C.hcl=function(){var e;return e=ke(arguments),new c(e,"hcl")},p.lch=G,p.hcl=function(){var e,n,i,t;return t=ke(arguments),n=t[0],e=t[1],i=t[2],G([i,e,n])},c.prototype.lch=function(){return fe(this._rgb)},c.prototype.hcl=function(){return fe(this._rgb).reverse()},ce=function(e){var n,i,t,c,s,r,a,o,h;return null==e&&(e="rgb"),o=ke(arguments),a=o[0],c=o[1],n=o[2],a/=255,c/=255,n/=255,s=1-Math.max(a,Math.max(c,n)),t=s<1?1/(1-s):0,i=(1-a-s)*t,r=(1-c-s)*t,h=(1-n-s)*t,[i,r,h,s]},x=function(){var e,n,i,t,c,s,r,a,o;return n=ke(arguments),t=n[0],r=n[1],o=n[2],s=n[3],e=n.length>4?n[4]:1,1===s?[0,0,0,e]:(a=t>=1?0:255*(1-t)*(1-s),c=r>=1?0:255*(1-r)*(1-s),i=o>=1?0:255*(1-o)*(1-s),[a,c,i,e])},p.cmyk=function(){return x(ke(arguments))},C.cmyk=function(){return function(e,n,i){i.prototype=e.prototype;var t=new i,c=e.apply(t,n);return Object(c)===c?c:t}(c,Se.call(arguments).concat(["cmyk"]),function(){})},c.prototype.cmyk=function(){return ce(this._rgb)},p.gl=function(){var e,n,i,t,c;for(t=function(){var e,i;e=ke(arguments),i=[];for(n in e)c=e[n],i.push(c);return i}.apply(this,arguments),e=i=0;i<=2;e=++i)t[e]*=255;return t},C.gl=function(){return function(e,n,i){i.prototype=e.prototype;var t=new i,c=e.apply(t,n);return Object(c)===c?c:t}(c,Se.call(arguments).concat(["gl"]),function(){})},c.prototype.gl=function(){var e;return e=this._rgb,[e[0]/255,e[1]/255,e[2]/255,e[3]]},pe=function(e,n,i){var t;return t=ke(arguments),e=t[0],n=t[1],i=t[2],e=Q(e),n=Q(n),i=Q(i),.2126*e+.7152*n+.0722*i},Q=function(e){return e/=255,e<=.03928?e/12.92:te((e+.055)/1.055,2.4)},d=[],F=function(e,n,i,t){var c,s,r,a;for(null==i&&(i=.5),null==t&&(t="rgb"),"object"!==je(e)&&(e=C(e)),"object"!==je(n)&&(n=C(n)),r=0,s=d.length;r<s;r++)if(c=d[r],t===c[0]){a=c[1](e,n,i,t);break}if(null==a)throw"color mode "+t+" is not supported";return a.alpha(e.alpha()+i*(n.alpha()-e.alpha()))},C.interpolate=F,c.prototype.interpolate=function(e,n,i){return F(this,e,n,i)},C.mix=F,c.prototype.mix=c.prototype.interpolate,H=function(e,n,i,t){var s,r;return s=e._rgb,r=n._rgb,new c(s[0]+i*(r[0]-s[0]),s[1]+i*(r[1]-s[1]),s[2]+i*(r[2]-s[2]),t)},d.push(["rgb",H]),c.prototype.luminance=function(e,n){var i,t,c,s;return null==n&&(n="rgb"),arguments.length?(0===e?this._rgb=[0,0,0,this._rgb[3]]:1===e?this._rgb=[255,255,255,this._rgb[3]]:(t=1e-7,c=20,s=function(i,r){var a,o;return o=i.interpolate(r,.5,n),a=o.luminance(),Math.abs(e-a)<t||!c--?o:a>e?s(i,o):s(o,r)},i=pe(this._rgb),this._rgb=(i>e?s(C("black"),this):s(this,C("white"))).rgba()),this):pe(this._rgb)},xe=function(e){var n,i,t,c;return c=e/100,c<66?(t=255,i=-155.25485562709179-.44596950469579133*(i=c-2)+104.49216199393888*X(i),n=c<20?0:.8274096064007395*(n=c-10)-254.76935184120902+115.67994401066147*X(n)):(t=351.97690566805693+.114206453784165*(t=c-55)-40.25366309332127*X(t),i=325.4494125711974+.07943456536662342*(i=c-50)-28.0852963507957*X(i),n=255),[t,i,n]},be=function(){var e,n,i,t,c,s,r,a;for(s=ke(arguments),c=s[0],s[1],e=s[2],t=1e3,i=4e4,n=.4;i-t>n;)a=.5*(i+t),r=xe(a),r[2]/r[0]>=e/c?i=a:t=a;return Oe(a)},C.temperature=C.kelvin=function(){return function(e,n,i){i.prototype=e.prototype;var t=new i,c=e.apply(t,n);return Object(c)===c?c:t}(c,Se.call(arguments).concat(["temperature"]),function(){})},p.temperature=p.kelvin=p.K=xe,c.prototype.temperature=function(){return be(this._rgb)},c.prototype.kelvin=c.prototype.temperature,C.contrast=function(e,n){var i,t,s,r;return"string"!==(s=je(e))&&"number"!==s||(e=new c(e)),"string"!==(r=je(n))&&"number"!==r||(n=new c(n)),i=e.luminance(),t=n.luminance(),i>t?(i+.05)/(t+.05):(t+.05)/(i+.05)},C.distance=function(e,n,i){var t,s,r,a,o,h,u;null==i&&(i="lab"),"string"!==(o=je(e))&&"number"!==o||(e