!function(e){var r={};function t(a){if(r[a])return r[a].exports;var n=r[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,t),n.l=!0,n.exports}t.m=e,t.c=r,t.d=function(e,r,a){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:a})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(t.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)t.d(a,n,function(r){return e[r]}.bind(null,n));return a},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=1)}([function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.default={"alice blue":[240,248,255],"antique white":[250,235,215],"antique white 1":[255,239,219],"antique white 2":[238,223,204],"antique white 3":[205,192,176],"antique white 4":[139,131,120],aquamarine:[127,255,212],"aquamarine 2":[118,238,198],"aquamarine 4":[69,139,116],azure:[240,255,255],"azure 2":[224,238,238],"azure 3":[193,205,205],"azure 4":[131,139,139],beige:[245,245,220],bisque:[255,228,196],"bisque 2":[238,213,183],"bisque 3":[205,183,158],"bisque 4":[139,125,107],black:[0,0,0],"blanched almond":[255,235,205],blue:[0,0,255],"blue 2":[0,0,238],"blue 4":[0,0,139],"blue violet":[138,43,226],brown:[165,42,42],"brown 1":[255,64,64],"brown 2":[238,59,59],"brown 3":[205,51,51],"brown 4":[139,35,35],burlywood:[222,184,135],"burlywood 1":[255,211,155],"burlywood 2":[238,197,145],"burlywood 3":[205,170,125],"burlywood 4":[139,115,85],"cadet blue":[95,158,160],"cadet blue 1":[152,245,255],"cadet blue 2":[142,229,238],"cadet blue 3":[122,197,205],"cadet blue 4":[83,134,139],chartreuse:[127,255,0],"chartreuse 2":[118,238,0],"chartreuse 3":[102,205,0],"chartreuse 4":[69,139,0],chocolate:[210,105,30],"chocolate 1":[255,127,36],"chocolate 2":[238,118,33],"chocolate 3":[205,102,29],coral:[255,127,80],"coral 1":[255,114,86],"coral 2":[238,106,80],"coral 3":[205,91,69],"coral 4":[139,62,47],"cornflower blue":[100,149,237],"corn silk":[255,248,220],"corn silk 2":[238,232,205],"corn silk 3":[205,200,177],"corn silk 4":[139,136,120],cyan:[0,255,255],"cyan 2":[0,238,238],"cyan 3":[0,205,205],"cyan 4":[0,139,139],"dark golden rod":[184,134,11],"dark golden rod 1":[255,185,15],"dark golden rod 2":[238,173,14],"dark golden rod 3":[205,149,12],"dark golden rod 4":[139,101,8],"dark green":[0,100,0],"dark khaki":[189,183,107],"dark olive green":[85,107,47],"dark olive green 1":[202,255,112],"dark olive green 2":[188,238,104],"dark olive green 3":[162,205,90],"dark olive green 4":[110,139,61],"dark orange":[255,140,0],"dark orange 1":[255,127,0],"dark orange 2":[238,118,0],"dark orange 3":[205,102,0],"dark orange 4":[139,69,0],"dark orchid":[153,50,204],"dark orchid 1":[191,62,255],"dark orchid 2":[178,58,238],"dark orchid 3":[154,50,205],"dark orchid 4":[104,34,139],"dark salmon":[233,150,122],"dark sea green":[143,188,143],"dark sea green 1":[193,255,193],"dark sea green 2":[180,238,180],"dark sea green 3":[155,205,155],"dark sea green 4":[105,139,105],"dark slate blue":[72,61,139],"dark slate gray":[47,79,79],"dark slate gray 1":[151,255,255],"dark slate gray 2":[141,238,238],"dark slate gray 3":[121,205,205],"dark slate gray 4":[82,139,139],"dark turquoise":[0,206,209],"dark violet":[148,0,211],"deep pink":[255,20,147],"deep pink 2":[238,18,137],"deep pink 3":[205,16,118],"deep pink 4":[139,10,80],"deep sky blue":[0,191,255],"deep sky blue 2":[0,178,238],"deep sky blue 3":[0,154,205],"deep sky blue 4":[0,104,139],"dim gray":[105,105,105],"dodger blue":[30,144,255],"dodger blue 2":[28,134,238],"dodger blue 3":[24,116,205],"dodger blue 4":[16,78,139],"fire brick":[178,34,34],"fire brick 1":[255,48,48],"fire brick 2":[238,44,44],"fire brick 3":[205,38,38],"fire brick 4":[139,26,26],"floral white":[255,250,240],"forest green":[34,139,34],gainsboro:[220,220,220],"ghost white":[248,248,255],gold:[255,215,0],"gold 2":[238,201,0],"gold 3":[205,173,0],"gold 4":[139,117,0],"golden rod":[218,165,32],"golden rod 1":[255,193,37],"golden rod 2":[238,180,34],"golden rod 3":[205,155,29],"golden rod 4":[139,105,20],gray:[190,190,190],"gray 1":[3,3,3],"gray 2":[5,5,5],"gray 3":[8,8,8],"gray 4":[10,10,10],"gray 5":[13,13,13],"gray 6":[15,15,15],"gray 7":[18,18,18],"gray 8":[20,20,20],"gray 9":[23,23,23],"gray 10":[26,26,26],"gray 11":[28,28,28],"gray 12":[31,31,31],"gray 13":[33,33,33],"gray 14":[36,36,36],"gray 15":[38,38,38],"gray 16":[41,41,41],"gray 17":[43,43,43],"gray 18":[46,46,46],"gray 19":[48,48,48],"gray 20":[51,51,51],"gray 21":[54,54,54],"gray 22":[56,56,56],"gray 23":[59,59,59],"gray 24":[61,61,61],"gray 25":[64,64,64],"gray 26":[66,66,66],"gray 27":[69,69,69],"gray 28":[71,71,71],"gray 29":[74,74,74],"gray 30":[77,77,77],"gray 31":[79,79,79],"gray 32":[82,82,82],"gray 33":[84,84,84],"gray 34":[87,87,87],"gray 35":[89,89,89],"gray 36":[92,92,92],"gray 37":[94,94,94],"gray 38":[97,97,97],"gray 39":[99,99,99],"gray 40":[102,102,102],"gray 41":[105,105,105],"gray 42":[107,107,107],"gray 43":[110,110,110],"gray 44":[112,112,112],"gray 45":[115,115,115],"gray 46":[117,117,117],"gray 47":[120,120,120],"gray 48":[122,122,122],"gray 49":[125,125,125],"gray 50":[127,127,127],"gray 51":[130,130,130],"gray 52":[133,133,133],"gray 53":[135,135,135],"gray 54":[138,138,138],"gray 55":[140,140,140],"gray 56":[143,143,143],"gray 57":[145,145,145],"gray 58":[148,148,148],"gray 59":[150,150,150],"gray 60":[153,153,153],"gray 61":[156,156,156],"gray 62":[158,158,158],"gray 63":[161,161,161],"gray 64":[163,163,163],"gray 65":[166,166,166],"gray 66":[168,168,168],"gray 67":[171,171,171],"gray 68":[173,173,173],"gray 69":[176,176,176],"gray 70":[179,179,179],"gray 71":[181,181,181],"gray 72":[184,184,184],"gray 73":[186,186,186],"gray 74":[189,189,189],"gray 75":[191,191,191],"gray 76":[194,194,194],"gray 77":[196,196,196],"gray 78":[199,199,199],"gray 79":[201,201,201],"gray 80":[204,204,204],"gray 81":[207,207,207],"gray 82":[209,209,209],"gray 83":[212,212,212],"gray 84":[214,214,214],"gray 85":[217,217,217],"gray 86":[219,219,219],"gray 87":[222,222,222],"gray 88":[224,224,224],"gray 89":[227,227,227],"gray 90":[229,229,229],"gray 91":[232,232,232],"gray 92":[235,235,235],"gray 93":[237,237,237],"gray 94":[240,240,240],"gray 95":[242,242,242],"gray 97":[247,247,247],"gray 98":[250,250,250],"gray 99":[252,252,252],green:[0,255,0],"green 2":[0,238,0],"green 3":[0,205,0],"green 4":[0,139,0],"green yellow":[173,255,47],honeydew:[240,255,240],"honeydew 2":[224,238,224],"honeydew 3":[193,205,193],"honeydew 4":[131,139,131],"hot pink":[255,105,180],"hot pink 1":[255,110,180],"hot pink 2":[238,106,167],"hot pink 3":[205,96,144],"hot pink 4":[139,58,98],"indian red":[205,92,92],"indian red 1":[255,106,106],"indian red 2":[238,99,99],"indian red 3":[205,85,85],"indian red 4":[139,58,58],ivory:[255,255,240],"ivory 2":[238,238,224],"ivory 3":[205,205,193],"ivory 4":[139,139,131],khaki:[240,230,140],"khaki 1":[255,246,143],"khaki 2":[238,230,133],"khaki 3":[205,198,115],"khaki 4":[139,134,78],lavender:[230,230,250],"lavender blush":[255,240,245],"lavender blush 2":[238,224,229],"lavender blush 3":[205,193,197],"lavender blush 4":[139,131,134],"lawn green":[124,252,0],"lemon chiffon":[255,250,205],"lemon chiffon 2":[238,233,191],"lemon chiffon 3":[205,201,165],"lemon chiffon 4":[139,137,112],light:[238,221,130],"light blue":[173,216,230],"light blue 1":[191,239,255],"light blue 2":[178,223,238],"light blue 3":[154,192,205],"light blue 4":[104,131,139],"light coral":[240,128,128],"light cyan":[224,255,255],"light cyan 2":[209,238,238],"light cyan 3":[180,205,205],"light cyan 4":[122,139,139],"light golden rod":[255,236,139],"light golden rod 2":[238,220,130],"light golden rod 3":[205,190,112],"light golden rod 4":[139,129,76],"light golden rod yellow":[250,250,210],"light gray":[211,211,211],"light pink":[255,182,193],"light pink 1":[255,174,185],"light pink 2":[238,162,173],"light pink 3":[205,140,149],"light pink 4":[139,95,101],"light salmon":[255,160,122],"light salmon 2":[238,149,114],"light salmon 3":[205,129,98],"light salmon 4":[139,87,66],"light sea green":[32,178,170],"light sky blue":[135,206,250],"light sky blue 1":[176,226,255],"light sky blue 2":[164,211,238],"light sky blue 3":[141,182,205],"light sky blue 4":[96,123,139],"light slate blue":[132,112,255],"light slate gray":[119,136,153],"light steel blue":[176,196,222],"light steel blue 1":[202,225,255],"light steel blue 2":[188,210,238],"light steel blue 3":[162,181,205],"light steel blue 4":[110,123,139],"light yellow":[255,255,224],"light yellow 2":[238,238,209],"light yellow 3":[205,205,180],"light yellow 4":[139,139,122],"lime green":[50,205,50],linen:[250,240,230],magenta:[255,0,255],"magenta 2":[238,0,238],"magenta 3":[205,0,205],"magenta 4":[139,0,139],maroon:[176,48,96],"maroon 1":[255,52,179],"maroon 2":[238,48,167],"maroon 3":[205,41,144],"maroon 4":[139,28,98],medium:[102,205,170],"medium aquamarine":[102,205,170],"medium blue":[0,0,205],"medium orchid":[186,85,211],"medium orchid 1":[224,102,255],"medium orchid 2":[209,95,238],"medium orchid 3":[180,82,205],"medium orchid 4":[122,55,139],"medium purple":[147,112,219],"medium purple 1":[171,130,255],"medium purple 2":[159,121,238],"medium purple 3":[137,104,205],"medium purple 4":[93,71,139],"medium sea green":[60,179,113],"medium slate blue":[123,104,238],"medium spring green":[0,250,154],"medium turquoise":[72,209,204],"medium violet red":[199,21,133],"midnight blue":[25,25,112],"mint cream":[245,255,250],"misty rose":[255,228,225],"misty rose 2":[238,213,210],"misty rose 3":[205,183,181],"misty rose 4":[139,125,123],moccasin:[255,228,181],"navajo white":[255,222,173],"navajo white 2":[238,207,161],"navajo white 3":[205,179,139],"navajo white 4":[139,121,94],"navy blue":[0,0,128],"old lace":[253,245,230],"olive drab":[107,142,35],"olive drab 1":[192,255,62],"olive drab 2":[179,238,58],"olive drab 4":[105,139,34],orange:[255,165,0],"orange 2":[238,154,0],"orange 3":[205,133,0],"orange 4":[139,90,0],"orange red":[255,69,0],"orange red 2":[238,64,0],"orange red 3":[205,55,0],"orange red 4":[139,37,0],orchid:[218,112,214],"orchid 1":[255,131,250],"orchid 2":[238,122,233],"orchid 3":[205,105,201],"orchid 4":[139,71,137],pale:[219,112,147],"pale golden rod":[238,232,170],"pale green":[152,251,152],"pale green 1":[154,255,154],"pale green 2":[144,238,144],"pale green 3":[124,205,124],"pale green 4":[84,139,84],"pale turquoise":[175,238,238],"pale turquoise 1":[187,255,255],"pale turquoise 2":[174,238,238],"pale turquoise 3":[150,205,205],"pale turquoise 4":[102,139,139],"pale violet red":[219,112,147],"pale violet red 1":[255,130,171],"pale violet red 2":[238,121,159],"pale violet red 3":[205,104,137],"pale violet red 4":[139,71,93],"papaya whip":[255,239,213],"peach puff":[255,218,185],"peach puff 2":[238,203,173],"peach puff 3":[205,175,149],"peach puff 4":[139,119,101],pink:[255,192,203],"pink 1":[255,181,197],"pink 2":[238,169,184],"pink 3":[205,145,158],"pink 4":[139,99,108],plum:[221,160,221],"plum 1":[255,187,255],"plum 2":[238,174,238],"plum 3":[205,150,205],"plum 4":[139,102,139],"powder blue":[176,224,230],purple:[160,32,240],"purple 1":[155,48,255],"purple 2":[145,44,238],"purple 3":[125,38,205],"purple 4":[85,26,139],"rebecca purple":[102,51,153],red:[255,0,0],"red 2":[238,0,0],"red 3":[205,0,0],"red 4":[139,0,0],"rosy brown":[188,143,143],"rosy brown 1":[255,193,193],"rosy brown 2":[238,180,180],"rosy brown 3":[205,155,155],"rosy brown 4":[139,105,105],"royal blue":[65,105,225],"royal blue 1":[72,118,255],"royal blue 2":[67,110,238],"royal blue 3":[58,95,205],"royal blue 4":[39,64,139],"saddle brown":[139,69,19],salmon:[250,128,114],"salmon 1":[255,140,105],"salmon 2":[238,130,98],"salmon 3":[205,112,84],"salmon 4":[139,76,57],"sandy brown":[244,164,96],"sea green":[84,255,159],"sea green 2":[78,238,148],"sea green 3":[67,205,128],"sea green 4":[46,139,87],seashell:[255,245,238],"seashell 2":[238,229,222],"seashell 3":[205,197,191],"seashell 4":[139,134,130],sienna:[160,82,45],"sienna 1":[255,130,71],"sienna 2":[238,121,66],"sienna 3":[205,104,57],"sienna 4":[139,71,38],"sky blue":[135,206,235],"sky blue 1":[135,206,255],"sky blue 2":[126,192,238],"sky blue 3":[108,166,205],"sky blue 4":[74,112,139],"slate blue":[106,90,205],"slate blue 1":[131,111,255],"slate blue 2":[122,103,238],"slate blue 3":[105,89,205],"slate blue 4":[71,60,139],"slate gray":[112,128,144],"slate gray 1":[198,226,255],"slate gray 2":[185,211,238],"slate gray 3":[159,182,205],"slate gray 4":[108,123,139],snow:[255,250,250],"snow 2":[238,233,233],"snow 3":[205,201,201],"snow 4":[139,137,137],"spring green":[0,255,127],"spring green 2":[0,238,118],"spring green 3":[0,205,102],"spring green 4":[0,139,69],"steel blue":[70,130,180],"steel blue 1":[99,184,255],"steel blue 2":[92,172,238],"steel blue 3":[79,148,205],"steel blue 4":[54,100,139],tan:[210,180,140],"tan 1":[255,165,79],"tan 2":[238,154,73],"tan 3":[205,133,63],"tan 4":[139,90,43],thistle:[216,191,216],"thistle 1":[255,225,255],"thistle 2":[238,210,238],"thistle 3":[205,181,205],"thistle 4":[139,123,139],tomato:[255,99,71],"tomato 2":[238,92,66],"tomato 3":[205,79,57],"tomato 4":[139,54,38],transparent:[0,0,0,0],turquoise:[64,224,208],"turquoise 1":[0,245,255],"turquoise 2":[0,229,238],"turquoise 3":[0,197,205],"turquoise 4":[0,134,139],violet:[238,130,238],"violet red":[208,32,144],"violet red 1":[255,62,150],"violet red 2":[238,58,140],"violet red 3":[205,50,120],"violet red 4":[139,34,82],wheat:[245,222,179],"wheat 1":[255,231,186],"wheat 2":[238,216,174],"wheat 3":[205,186,150],"wheat 4":[139,126,102],white:[255,255,255],"white smoke":[245,245,245],yellow:[255,255,0],"yellow 2":[238,238,0],"yellow 3":[205,205,0],"yellow 4":[139,139,0],"yellow green":[154,205,50]}},function(e,r,t){const a=t(2);void 0!==typeof window&&(window.Color=a)},function(e,r,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},n=t(3),i=a(t(0)),o=function(){function e(r,t,a,i){if(0===arguments.length)this.rgb=[0,0,0],this.a=0;else if("number"==typeof arguments[0])if(3===arguments.length&&n.isRGBArray([r,t,a]))this.rgb=[r,t,a],this.a=1;else{if(4!==arguments.length||!n.isRGBAArray([r,t,a,i]))throw Error("invalid color");this.rgb=[r,t,a],this.a=i}else if("string"==typeof arguments[0]){var o=n.parseColorString(arguments[0]);if(!o)throw Error("invalid color");this.rgb=o.slice(0,3),2===arguments.length&&n.isAlphaValue(arguments[1])?this.a=arguments[1]:4===o.length?this.a=o[3]:this.a=1}else{if("object"!=typeof arguments[0])throw new Error("invalid color");var l=arguments[0];if(l.length>0){if(3!==l.length||!n.isRGBArray(l))throw Error("invalid color");if(this.rgb=l.slice(0,3),2===arguments.length){if(!n.isAlphaValue(arguments[1]))throw new Error("invalid alpha value");this.a=arguments[1]}else this.a=1}else if(l instanceof e)if(l.hsl&&(this.hsl={h:l.hsl.h,s:l.hsl.s,l:l.hsl.l}),l.rgb&&(this.rgb=l.rgb.slice()),2===arguments.length){if(!n.isAlphaValue(arguments[1]))throw new Error("invalid alpha value");this.a=arguments[1]}else this.a=l.a;else{if(!n.isHSL(l))throw Error("invalid color");if(this.hsl={h:l.h,s:l.s,l:l.l},2===arguments.length){if(!n.isAlphaValue(arguments[1]))throw new Error("invalid alpha value");this.a=arguments[1]}else this.a=1}}}return e.prototype._getRGB=function(){return this.rgb||(this.rgb=n.hsl2rgb(this.hsl)),this.rgb},e.prototype.getRGB=function(){return this._getRGB().slice()},e.prototype.getHex=function(){return n.rgb2hex(this._getRGB())},e.prototype._getHSL=function(){return this.hsl||(this.hsl=n.rgb2hsl(this.rgb)),this.hsl},e.prototype.getHSL=function(){var e=this._getHSL();return{h:e.h,s:e.s,l:e.l}},e.prototype.alpha=function(r){if(n.isAlphaValue(r))return this.hsl?new e(this.getHSL(),r):new e(this.getRGB(),r);throw new Error("invalid alpha value")},e.prototype.getRed=function(){return this._getRGB()[0]},e.prototype.red=function(r){if(n.isColorValue(r)){var t=this._getRGB();return new e([r,t[1],t[2]],this.a)}throw new Error("invalid red")},e.prototype.getGreen=function(){return this._getRGB()[1]},e.prototype.green=function(r){if(n.isColorValue(r)){var t=this._getRGB();return new e([t[0],r,t[2]],this.a)}throw new Error("invalid green")},e.prototype.getBlue=function(){return this._getRGB()[2]},e.prototype.blue=function(r){if(n.isColorValue(r)){var t=this._getRGB();return new e([t[0],t[1],r],this.a)}throw new Error("invalid blue")},e.prototype.getAlpha=function(){return this.a},e.prototype.getSaturation=function(){return this._getHSL().s},e.prototype.getHue=function(){return this._getHSL().h},e.prototype.hue=function(r){if(n.isAlphaValue(r)){var t=this._getHSL();return new e({h:r,s:t.s,l:t.l},this.a)}throw new Error("invalid hue")},e.prototype.shiftHue=function(r){var t=this._getHSL(),a=t.h+r;a>1&&(a-=n=Math.floor(a));if(a<-1){var n=Math.floor(a);a+=Math.abs(n)}return a<0&&(a+=1),new e({h:a,s:t.s,l:t.l},this.a)},e.prototype.saturation=function(r){if(n.isAlphaValue(r)){var t=this._getHSL();return new e({h:t.h,s:r,l:t.l},this.a)}throw new Error("invalid saturation")},e.prototype.saturate=function(e){if(e>=-1&&e<=1){var r=this.getSaturation();return(r+=e)>1&&(r=1),r<0&&(r=0),this.saturation(r)}throw new Error("invalid saturate")},e.prototype.desaturate=function(e){return this.saturate(-e)},e.prototype.getLightness=function(){return this._getHSL().l},e.prototype.lightness=function(r){if(n.isAlphaValue(r)){var t=this._getHSL();return new e({h:t.h,s:t.s,l:r},this.a)}},e.prototype.lighten=function(r){if(r>=-1&&r<=1){var t=this._getHSL(),a=t.l+r;return a>1&&(a=1),a<0&&(a=0),new e({h:t.h,s:t.s,l:a},this.a)}throw new Error("invalid lighten")},e.prototype.darken=function(e){return this.lighten(-e)},e.prototype.combine=function(r,t){if(n.isAlphaValue(t)){var a=void 0;return a=r instanceof e?r:new e(r),new e(n.combine(this._getRGB(),a._getRGB(),t),this.a)}throw new Error("invalid combine percentage")},e.prototype.invert=function(){return new e(n.invert(this._getRGB()),this.a)},e.prototype.tint=function(r,t){var a;return a=r instanceof e?r:new e(r),void 0===t&&(t=.5),new e({h:n.tint(this.getHue(),a.getHue(),t),s:this.hsl.s,l:this.hsl.l},this.a)},e.prototype.toString=function(){if(0===this.a)return"transparent";if(this.a<1){var e=this._getRGB();return"rgba("+e[0]+","+e[1]+","+e[2]+","+this.a+")"}return this.getHex()},e.getNames=function(){return i.default},e}();e.exports=o},function(e,r,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.tint=r.invert=r.combine=r.rgb2hsl=r.hsl2rgb=r.rgb2hex=r.isHSL=r.getColorName=r.parseColorString=r.isHex6=r.isHex3=r.isRGBAArray=r.isRGBArray=r.isAlphaValue=r.isColorValue=void 0;var n=a(t(0));function i(e){return e>=0&&e<=255}function o(e){return e>=0&&e<=1}function l(e){return/^#[0-9a-fA-F]{3}/.test(e)}function s(e){return/^#[0-9a-fA-F]{6}/.test(e)}function u(e){var r=e.toLowerCase();if(r in n.default)return n.default[r];if(/ 1$/.test(r)){var t=r.replace(/ 1$/,"");if(t in n.default)return n.default[t]}}function g(e){var r=e.toString(16);return 1===r.length?"0"+r:r}function h(e,r,t){return t<0&&(t+=1),t>1&&(t-=1),255*(6*t<1?e+6*(r-e)*t:2*t<1?r:3*t<2?e+(r-e)*(2/3-t)*6:e)}r.isColorValue=i,r.isAlphaValue=o,r.isRGBArray=function(e){if(3===e.length){for(var r=0;r<3;r++)if(!i(e[r]))return!1;return!0}return!1},r.isRGBAArray=function(e){if(4===e.length){for(var r=0;r<3;r++)if(!i(e[r]))return!1;return o(e[3])}return!1},r.isHex3=l,r.isHex6=s,r.parseColorString=function(e){var r,t=e;if(s(t))return[parseInt(t.substring(1,3),16),parseInt(t.substring(3,5),16),parseInt(t.substring(5,7),16)];if(l(t))return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)];if(r=t.match(/rgb\( ?(\d+), ?(\d+), ?(\d+) ?\)/)){var a=parseInt(r[1],10),n=parseInt(r[2],10),g=parseInt(r[3],10);if(i(a)&&i(n)&&i(g))return[a,n,g]}if(r=t.match(/rgba\( ?(\d+), ?(\d+), ?(\d+), ?(\d+.?\d*) ?\)/)){a=parseInt(r[1],10),n=parseInt(r[2],10),g=parseInt(r[3],10);var h=parseFloat(r[4]);if(i(a)&&i(n)&&i(g)&&o(h))return[a,n,g,h]}var d=u(t);return d||void 0},r.getColorName=u,r.isHSL=function(e){return"object"==typeof e&&"h"in e&&o(e.h)&&"s"in e&&o(e.s)&&"l"in e&&o(e.l)&&!("a"in e)},r.rgb2hex=function(e){var r=g(Math.round(e[0])),t=g(Math.round(e[1])),a=g(Math.round(e[2]));return r[0]===r[1]&&t[0]===t[1]&&a[0]===a[1]?"#"+r[0]+t[0]+a[0]:"#"+r+t+a},r.hsl2rgb=function(e){var r,t,a,n=e.h,i=e.s,o=e.l;if(0===i)r=t=a=255*o;else{var l,s=void 0;r=h(l=2*o-(s=o<.5?o*(1+i):o+i-o*i),s,n+1/3),t=h(l,s,n),a=h(l,s,n-1/3)}return[r=Math.round(r),t=Math.round(t),a=Math.round(a)]},r.rgb2hsl=function(e){var r=e[0]/255,t=e[1]/255,a=e[2]/255,n=Math.max(r,t,a),i=Math.min(r,t,a),o=(n+i)/2,l=0,s=0;if(n===i)l=0,s=0;else{var u=n-i;l=o>.5?u/(2-n-i):u/(n+i),n===r&&(s=(t-a)/u+(t<a?6:0)),n===t&&(s=2+(a-r)/u),n===a&&(s=4+(r-t)/u),(s/=6)<0&&(s+=1)}return{h:s,s:l,l:o}},r.combine=function(e,r,t){t="number"==typeof t?t:.5;var a=Math.round((r[0]-e[0])*t),n=Math.round((r[1]-e[1])*t),i=Math.round((r[2]-e[2])*t),o=[e[0]+a,e[1]+n,e[2]+i];return 4===e.length&&(o[3]=e[3]),o},r.invert=function(e){for(var r=e.slice(),t=0;t<3;t++)r[t]=255-r[t];return r},r.tint=function(e,r,t){var a=e+(r-e)*t;return a<0&&(a+=1),a>1&&(a-=1),a}}]);