Socket
Socket
Sign inDemoInstall

simple-color-picker

Package Overview
Dependencies
10
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.0 to 0.1.1

src/index.d.ts

4

example/example-build.js

@@ -1,2 +0,2 @@

(function t(e,r,n){function i(a,s){if(!r[a]){if(!e[a]){var u=typeof require=="function"&&require;if(!s&&u)return u(a,!0);if(o)return o(a,!0);var f=new Error("Cannot find module '"+a+"'");throw f.code="MODULE_NOT_FOUND",f}var h=r[a]={exports:{}};e[a][0].call(h.exports,function(t){var r=e[a][1][t];return i(r?r:t)},h,h.exports,t,e,r,n)}return r[a].exports}var o=typeof require=="function"&&require;for(var a=0;a<n.length;a++)i(n[a]);return i})({1:[function(t,e,r){"use strict";r.toByteArray=s;r.fromByteArray=h;var n=[];var i=[];var o=typeof Uint8Array!=="undefined"?Uint8Array:Array;function a(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var e=0,r=t.length;e<r;++e){n[e]=t[e];i[t.charCodeAt(e)]=e}i["-".charCodeAt(0)]=62;i["_".charCodeAt(0)]=63}a();function s(t){var e,r,n,a,s,u;var f=t.length;if(f%4>0){throw new Error("Invalid string. Length must be a multiple of 4")}s=t[f-2]==="="?2:t[f-1]==="="?1:0;u=new o(f*3/4-s);n=s>0?f-4:f;var h=0;for(e=0,r=0;e<n;e+=4,r+=3){a=i[t.charCodeAt(e)]<<18|i[t.charCodeAt(e+1)]<<12|i[t.charCodeAt(e+2)]<<6|i[t.charCodeAt(e+3)];u[h++]=a>>16&255;u[h++]=a>>8&255;u[h++]=a&255}if(s===2){a=i[t.charCodeAt(e)]<<2|i[t.charCodeAt(e+1)]>>4;u[h++]=a&255}else if(s===1){a=i[t.charCodeAt(e)]<<10|i[t.charCodeAt(e+1)]<<4|i[t.charCodeAt(e+2)]>>2;u[h++]=a>>8&255;u[h++]=a&255}return u}function u(t){return n[t>>18&63]+n[t>>12&63]+n[t>>6&63]+n[t&63]}function f(t,e,r){var n;var i=[];for(var o=e;o<r;o+=3){n=(t[o]<<16)+(t[o+1]<<8)+t[o+2];i.push(u(n))}return i.join("")}function h(t){var e;var r=t.length;var i=r%3;var o="";var a=[];var s=16383;for(var u=0,h=r-i;u<h;u+=s){a.push(f(t,u,u+s>h?h:u+s))}if(i===1){e=t[r-1];o+=n[e>>2];o+=n[e<<4&63];o+="=="}else if(i===2){e=(t[r-2]<<8)+t[r-1];o+=n[e>>10];o+=n[e>>4&63];o+=n[e<<2&63];o+="="}a.push(o);return a.join("")}},{}],2:[function(t,e,r){(function(e){"use strict";var n=t("base64-js");var i=t("ieee754");var o=t("isarray");r.Buffer=f;r.SlowBuffer=_;r.INSPECT_MAX_BYTES=50;f.poolSize=8192;var a={};f.TYPED_ARRAY_SUPPORT=e.TYPED_ARRAY_SUPPORT!==undefined?e.TYPED_ARRAY_SUPPORT:s();function s(){try{var t=new Uint8Array(1);t.foo=function(){return 42};return t.foo()===42&&typeof t.subarray==="function"&&t.subarray(1,1).byteLength===0}catch(e){return false}}function u(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function f(t){if(!(this instanceof f)){if(arguments.length>1)return new f(t,arguments[1]);return new f(t)}if(!f.TYPED_ARRAY_SUPPORT){this.length=0;this.parent=undefined}if(typeof t==="number"){return h(this,t)}if(typeof t==="string"){return l(this,t,arguments.length>1?arguments[1]:"utf8")}return c(this,t)}f._augment=function(t){t.__proto__=f.prototype;return t};function h(t,e){t=w(t,e<0?0:m(e)|0);if(!f.TYPED_ARRAY_SUPPORT){for(var r=0;r<e;r++){t[r]=0}}return t}function l(t,e,r){if(typeof r!=="string"||r==="")r="utf8";var n=A(e,r)|0;t=w(t,n);t.write(e,r);return t}function c(t,e){if(f.isBuffer(e))return p(t,e);if(o(e))return d(t,e);if(e==null){throw new TypeError("must start with number, buffer, array or string")}if(typeof ArrayBuffer!=="undefined"){if(e.buffer instanceof ArrayBuffer){return v(t,e)}if(e instanceof ArrayBuffer){return g(t,e)}}if(e.length)return y(t,e);return b(t,e)}function p(t,e){var r=m(e.length)|0;t=w(t,r);e.copy(t,0,0,r);return t}function d(t,e){var r=m(e.length)|0;t=w(t,r);for(var n=0;n<r;n+=1){t[n]=e[n]&255}return t}function v(t,e){var r=m(e.length)|0;t=w(t,r);for(var n=0;n<r;n+=1){t[n]=e[n]&255}return t}function g(t,e){e.byteLength;if(f.TYPED_ARRAY_SUPPORT){t=new Uint8Array(e);t.__proto__=f.prototype}else{t=v(t,new Uint8Array(e))}return t}function y(t,e){var r=m(e.length)|0;t=w(t,r);for(var n=0;n<r;n+=1){t[n]=e[n]&255}return t}function b(t,e){var r;var n=0;if(e.type==="Buffer"&&o(e.data)){r=e.data;n=m(r.length)|0}t=w(t,n);for(var i=0;i<n;i+=1){t[i]=r[i]&255}return t}if(f.TYPED_ARRAY_SUPPORT){f.prototype.__proto__=Uint8Array.prototype;f.__proto__=Uint8Array;if(typeof Symbol!=="undefined"&&Symbol.species&&f[Symbol.species]===f){Object.defineProperty(f,Symbol.species,{value:null,configurable:true})}}else{f.prototype.length=undefined;f.prototype.parent=undefined}function w(t,e){if(f.TYPED_ARRAY_SUPPORT){t=new Uint8Array(e);t.__proto__=f.prototype}else{t.length=e}var r=e!==0&&e<=f.poolSize>>>1;if(r)t.parent=a;return t}function m(t){if(t>=u()){throw new RangeError("Attempt to allocate Buffer larger than maximum "+"size: 0x"+u().toString(16)+" bytes")}return t|0}function _(t,e){if(!(this instanceof _))return new _(t,e);var r=new f(t,e);delete r.parent;return r}f.isBuffer=function tt(t){return!!(t!=null&&t._isBuffer)};f.compare=function et(t,e){if(!f.isBuffer(t)||!f.isBuffer(e)){throw new TypeError("Arguments must be Buffers")}if(t===e)return 0;var r=t.length;var n=e.length;for(var i=0,o=Math.min(r,n);i<o;++i){if(t[i]!==e[i]){r=t[i];n=e[i];break}}if(r<n)return-1;if(n<r)return 1;return 0};f.isEncoding=function rt(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return true;default:return false}};f.concat=function nt(t,e){if(!o(t))throw new TypeError("list argument must be an Array of Buffers.");if(t.length===0){return new f(0)}var r;if(e===undefined){e=0;for(r=0;r<t.length;r++){e+=t[r].length}}var n=new f(e);var i=0;for(r=0;r<t.length;r++){var a=t[r];a.copy(n,i);i+=a.length}return n};function A(t,e){if(typeof t!=="string")t=""+t;var r=t.length;if(r===0)return 0;var n=false;for(;;){switch(e){case"ascii":case"binary":case"raw":case"raws":return r;case"utf8":case"utf-8":return Z(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return K(t).length;default:if(n)return Z(t).length;e=(""+e).toLowerCase();n=true}}}f.byteLength=A;function S(t,e,r){var n=false;e=e|0;r=r===undefined||r===Infinity?this.length:r|0;if(!t)t="utf8";if(e<0)e=0;if(r>this.length)r=this.length;if(r<=e)return"";while(true){switch(t){case"hex":return j(this,e,r);case"utf8":case"utf-8":return T(this,e,r);case"ascii":return C(this,e,r);case"binary":return L(this,e,r);case"base64":return U(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase();n=true}}}f.prototype._isBuffer=true;f.prototype.toString=function it(){var t=this.length|0;if(t===0)return"";if(arguments.length===0)return T(this,0,t);return S.apply(this,arguments)};f.prototype.equals=function ot(t){if(!f.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(this===t)return true;return f.compare(this,t)===0};f.prototype.inspect=function at(){var t="";var e=r.INSPECT_MAX_BYTES;if(this.length>0){t=this.toString("hex",0,e).match(/.{2}/g).join(" ");if(this.length>e)t+=" ... "}return"<Buffer "+t+">"};f.prototype.compare=function st(t){if(!f.isBuffer(t))throw new TypeError("Argument must be a Buffer");return f.compare(this,t)};f.prototype.indexOf=function ut(t,e){if(e>2147483647)e=2147483647;else if(e<-2147483648)e=-2147483648;e>>=0;if(this.length===0)return-1;if(e>=this.length)return-1;if(e<0)e=Math.max(this.length+e,0);if(typeof t==="string"){if(t.length===0)return-1;return String.prototype.indexOf.call(this,t,e)}if(f.isBuffer(t)){return r(this,t,e)}if(typeof t==="number"){if(f.TYPED_ARRAY_SUPPORT&&Uint8Array.prototype.indexOf==="function"){return Uint8Array.prototype.indexOf.call(this,t,e)}return r(this,[t],e)}function r(t,e,r){var n=-1;for(var i=0;r+i<t.length;i++){if(t[r+i]===e[n===-1?0:i-n]){if(n===-1)n=i;if(i-n+1===e.length)return r+n}else{n=-1}}return-1}throw new TypeError("val must be string, number or Buffer")};function x(t,e,r,n){r=Number(r)||0;var i=t.length-r;if(!n){n=i}else{n=Number(n);if(n>i){n=i}}var o=e.length;if(o%2!==0)throw new Error("Invalid hex string");if(n>o/2){n=o/2}for(var a=0;a<n;a++){var s=parseInt(e.substr(a*2,2),16);if(isNaN(s))throw new Error("Invalid hex string");t[r+a]=s}return a}function E(t,e,r,n){return Q(Z(e,t.length-r),t,r,n)}function R(t,e,r,n){return Q(V(e),t,r,n)}function k(t,e,r,n){return R(t,e,r,n)}function M(t,e,r,n){return Q(K(e),t,r,n)}function P(t,e,r,n){return Q(J(e,t.length-r),t,r,n)}f.prototype.write=function ft(t,e,r,n){if(e===undefined){n="utf8";r=this.length;e=0}else if(r===undefined&&typeof e==="string"){n=e;r=this.length;e=0}else if(isFinite(e)){e=e|0;if(isFinite(r)){r=r|0;if(n===undefined)n="utf8"}else{n=r;r=undefined}}else{var i=n;n=e;e=r|0;r=i}var o=this.length-e;if(r===undefined||r>o)r=o;if(t.length>0&&(r<0||e<0)||e>this.length){throw new RangeError("attempt to write outside buffer bounds")}if(!n)n="utf8";var a=false;for(;;){switch(n){case"hex":return x(this,t,e,r);case"utf8":case"utf-8":return E(this,t,e,r);case"ascii":return R(this,t,e,r);case"binary":return k(this,t,e,r);case"base64":return M(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,e,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase();a=true}}};f.prototype.toJSON=function ht(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function U(t,e,r){if(e===0&&r===t.length){return n.fromByteArray(t)}else{return n.fromByteArray(t.slice(e,r))}}function T(t,e,r){r=Math.min(t.length,r);var n=[];var i=e;while(i<r){var o=t[i];var a=null;var s=o>239?4:o>223?3:o>191?2:1;if(i+s<=r){var u,f,h,l;switch(s){case 1:if(o<128){a=o}break;case 2:u=t[i+1];if((u&192)===128){l=(o&31)<<6|u&63;if(l>127){a=l}}break;case 3:u=t[i+1];f=t[i+2];if((u&192)===128&&(f&192)===128){l=(o&15)<<12|(u&63)<<6|f&63;if(l>2047&&(l<55296||l>57343)){a=l}}break;case 4:u=t[i+1];f=t[i+2];h=t[i+3];if((u&192)===128&&(f&192)===128&&(h&192)===128){l=(o&15)<<18|(u&63)<<12|(f&63)<<6|h&63;if(l>65535&&l<1114112){a=l}}}}if(a===null){a=65533;s=1}else if(a>65535){a-=65536;n.push(a>>>10&1023|55296);a=56320|a&1023}n.push(a);i+=s}return O(n)}var H=4096;function O(t){var e=t.length;if(e<=H){return String.fromCharCode.apply(String,t)}var r="";var n=0;while(n<e){r+=String.fromCharCode.apply(String,t.slice(n,n+=H))}return r}function C(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;i++){n+=String.fromCharCode(t[i]&127)}return n}function L(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;i++){n+=String.fromCharCode(t[i])}return n}function j(t,e,r){var n=t.length;if(!e||e<0)e=0;if(!r||r<0||r>n)r=n;var i="";for(var o=e;o<r;o++){i+=G(t[o])}return i}function B(t,e,r){var n=t.slice(e,r);var i="";for(var o=0;o<n.length;o+=2){i+=String.fromCharCode(n[o]+n[o+1]*256)}return i}f.prototype.slice=function lt(t,e){var r=this.length;t=~~t;e=e===undefined?r:~~e;if(t<0){t+=r;if(t<0)t=0}else if(t>r){t=r}if(e<0){e+=r;if(e<0)e=0}else if(e>r){e=r}if(e<t)e=t;var n;if(f.TYPED_ARRAY_SUPPORT){n=this.subarray(t,e);n.__proto__=f.prototype}else{var i=e-t;n=new f(i,undefined);for(var o=0;o<i;o++){n[o]=this[o+t]}}if(n.length)n.parent=this.parent||this;return n};function $(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}f.prototype.readUIntLE=function ct(t,e,r){t=t|0;e=e|0;if(!r)$(t,e,this.length);var n=this[t];var i=1;var o=0;while(++o<e&&(i*=256)){n+=this[t+o]*i}return n};f.prototype.readUIntBE=function pt(t,e,r){t=t|0;e=e|0;if(!r){$(t,e,this.length)}var n=this[t+--e];var i=1;while(e>0&&(i*=256)){n+=this[t+--e]*i}return n};f.prototype.readUInt8=function dt(t,e){if(!e)$(t,1,this.length);return this[t]};f.prototype.readUInt16LE=function vt(t,e){if(!e)$(t,2,this.length);return this[t]|this[t+1]<<8};f.prototype.readUInt16BE=function gt(t,e){if(!e)$(t,2,this.length);return this[t]<<8|this[t+1]};f.prototype.readUInt32LE=function yt(t,e){if(!e)$(t,4,this.length);return(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};f.prototype.readUInt32BE=function bt(t,e){if(!e)$(t,4,this.length);return this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};f.prototype.readIntLE=function wt(t,e,r){t=t|0;e=e|0;if(!r)$(t,e,this.length);var n=this[t];var i=1;var o=0;while(++o<e&&(i*=256)){n+=this[t+o]*i}i*=128;if(n>=i)n-=Math.pow(2,8*e);return n};f.prototype.readIntBE=function mt(t,e,r){t=t|0;e=e|0;if(!r)$(t,e,this.length);var n=e;var i=1;var o=this[t+--n];while(n>0&&(i*=256)){o+=this[t+--n]*i}i*=128;if(o>=i)o-=Math.pow(2,8*e);return o};f.prototype.readInt8=function _t(t,e){if(!e)$(t,1,this.length);if(!(this[t]&128))return this[t];return(255-this[t]+1)*-1};f.prototype.readInt16LE=function At(t,e){if(!e)$(t,2,this.length);var r=this[t]|this[t+1]<<8;return r&32768?r|4294901760:r};f.prototype.readInt16BE=function St(t,e){if(!e)$(t,2,this.length);var r=this[t+1]|this[t]<<8;return r&32768?r|4294901760:r};f.prototype.readInt32LE=function xt(t,e){if(!e)$(t,4,this.length);return this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};f.prototype.readInt32BE=function Et(t,e){if(!e)$(t,4,this.length);return this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};f.prototype.readFloatLE=function Rt(t,e){if(!e)$(t,4,this.length);return i.read(this,t,true,23,4)};f.prototype.readFloatBE=function kt(t,e){if(!e)$(t,4,this.length);return i.read(this,t,false,23,4)};f.prototype.readDoubleLE=function Mt(t,e){if(!e)$(t,8,this.length);return i.read(this,t,true,52,8)};f.prototype.readDoubleBE=function Pt(t,e){if(!e)$(t,8,this.length);return i.read(this,t,false,52,8)};function Y(t,e,r,n,i,o){if(!f.isBuffer(t))throw new TypeError("buffer must be a Buffer instance");if(e>i||e<o)throw new RangeError("value is out of bounds");if(r+n>t.length)throw new RangeError("index out of range")}f.prototype.writeUIntLE=function Ut(t,e,r,n){t=+t;e=e|0;r=r|0;if(!n)Y(this,t,e,r,Math.pow(2,8*r),0);var i=1;var o=0;this[e]=t&255;while(++o<r&&(i*=256)){this[e+o]=t/i&255}return e+r};f.prototype.writeUIntBE=function Tt(t,e,r,n){t=+t;e=e|0;r=r|0;if(!n)Y(this,t,e,r,Math.pow(2,8*r),0);var i=r-1;var o=1;this[e+i]=t&255;while(--i>=0&&(o*=256)){this[e+i]=t/o&255}return e+r};f.prototype.writeUInt8=function Ht(t,e,r){t=+t;e=e|0;if(!r)Y(this,t,e,1,255,0);if(!f.TYPED_ARRAY_SUPPORT)t=Math.floor(t);this[e]=t&255;return e+1};function I(t,e,r,n){if(e<0)e=65535+e+1;for(var i=0,o=Math.min(t.length-r,2);i<o;i++){t[r+i]=(e&255<<8*(n?i:1-i))>>>(n?i:1-i)*8}}f.prototype.writeUInt16LE=function Ot(t,e,r){t=+t;e=e|0;if(!r)Y(this,t,e,2,65535,0);if(f.TYPED_ARRAY_SUPPORT){this[e]=t&255;this[e+1]=t>>>8}else{I(this,t,e,true)}return e+2};f.prototype.writeUInt16BE=function Ct(t,e,r){t=+t;e=e|0;if(!r)Y(this,t,e,2,65535,0);if(f.TYPED_ARRAY_SUPPORT){this[e]=t>>>8;this[e+1]=t&255}else{I(this,t,e,false)}return e+2};function D(t,e,r,n){if(e<0)e=4294967295+e+1;for(var i=0,o=Math.min(t.length-r,4);i<o;i++){t[r+i]=e>>>(n?i:3-i)*8&255}}f.prototype.writeUInt32LE=function Lt(t,e,r){t=+t;e=e|0;if(!r)Y(this,t,e,4,4294967295,0);if(f.TYPED_ARRAY_SUPPORT){this[e+3]=t>>>24;this[e+2]=t>>>16;this[e+1]=t>>>8;this[e]=t&255}else{D(this,t,e,true)}return e+4};f.prototype.writeUInt32BE=function jt(t,e,r){t=+t;e=e|0;if(!r)Y(this,t,e,4,4294967295,0);if(f.TYPED_ARRAY_SUPPORT){this[e]=t>>>24;this[e+1]=t>>>16;this[e+2]=t>>>8;this[e+3]=t&255}else{D(this,t,e,false)}return e+4};f.prototype.writeIntLE=function Bt(t,e,r,n){t=+t;e=e|0;if(!n){var i=Math.pow(2,8*r-1);Y(this,t,e,r,i-1,-i)}var o=0;var a=1;var s=t<0?1:0;this[e]=t&255;while(++o<r&&(a*=256)){this[e+o]=(t/a>>0)-s&255}return e+r};f.prototype.writeIntBE=function $t(t,e,r,n){t=+t;e=e|0;if(!n){var i=Math.pow(2,8*r-1);Y(this,t,e,r,i-1,-i)}var o=r-1;var a=1;var s=t<0?1:0;this[e+o]=t&255;while(--o>=0&&(a*=256)){this[e+o]=(t/a>>0)-s&255}return e+r};f.prototype.writeInt8=function Yt(t,e,r){t=+t;e=e|0;if(!r)Y(this,t,e,1,127,-128);if(!f.TYPED_ARRAY_SUPPORT)t=Math.floor(t);if(t<0)t=255+t+1;this[e]=t&255;return e+1};f.prototype.writeInt16LE=function It(t,e,r){t=+t;e=e|0;if(!r)Y(this,t,e,2,32767,-32768);if(f.TYPED_ARRAY_SUPPORT){this[e]=t&255;this[e+1]=t>>>8}else{I(this,t,e,true)}return e+2};f.prototype.writeInt16BE=function Dt(t,e,r){t=+t;e=e|0;if(!r)Y(this,t,e,2,32767,-32768);if(f.TYPED_ARRAY_SUPPORT){this[e]=t>>>8;this[e+1]=t&255}else{I(this,t,e,false)}return e+2};f.prototype.writeInt32LE=function Ft(t,e,r){t=+t;e=e|0;if(!r)Y(this,t,e,4,2147483647,-2147483648);if(f.TYPED_ARRAY_SUPPORT){this[e]=t&255;this[e+1]=t>>>8;this[e+2]=t>>>16;this[e+3]=t>>>24}else{D(this,t,e,true)}return e+4};f.prototype.writeInt32BE=function Nt(t,e,r){t=+t;e=e|0;if(!r)Y(this,t,e,4,2147483647,-2147483648);if(t<0)t=4294967295+t+1;if(f.TYPED_ARRAY_SUPPORT){this[e]=t>>>24;this[e+1]=t>>>16;this[e+2]=t>>>8;this[e+3]=t&255}else{D(this,t,e,false)}return e+4};function F(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("index out of range");if(r<0)throw new RangeError("index out of range")}function N(t,e,r,n,o){if(!o){F(t,e,r,4,3.4028234663852886e38,-3.4028234663852886e38)}i.write(t,e,r,n,23,4);return r+4}f.prototype.writeFloatLE=function qt(t,e,r){return N(this,t,e,true,r)};f.prototype.writeFloatBE=function zt(t,e,r){return N(this,t,e,false,r)};function q(t,e,r,n,o){if(!o){F(t,e,r,8,1.7976931348623157e308,-1.7976931348623157e308)}i.write(t,e,r,n,52,8);return r+8}f.prototype.writeDoubleLE=function Xt(t,e,r){return q(this,t,e,true,r)};f.prototype.writeDoubleBE=function Wt(t,e,r){return q(this,t,e,false,r)};f.prototype.copy=function Gt(t,e,r,n){if(!r)r=0;if(!n&&n!==0)n=this.length;if(e>=t.length)e=t.length;if(!e)e=0;if(n>0&&n<r)n=r;if(n===r)return 0;if(t.length===0||this.length===0)return 0;if(e<0){throw new RangeError("targetStart out of bounds")}if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");if(n>this.length)n=this.length;if(t.length-e<n-r){n=t.length-e+r}var i=n-r;var o;if(this===t&&r<e&&e<n){for(o=i-1;o>=0;o--){t[o+e]=this[o+r]}}else if(i<1e3||!f.TYPED_ARRAY_SUPPORT){for(o=0;o<i;o++){t[o+e]=this[o+r]}}else{Uint8Array.prototype.set.call(t,this.subarray(r,r+i),e)}return i};f.prototype.fill=function Zt(t,e,r){if(!t)t=0;if(!e)e=0;if(!r)r=this.length;if(r<e)throw new RangeError("end < start");if(r===e)return;if(this.length===0)return;if(e<0||e>=this.length)throw new RangeError("start out of bounds");if(r<0||r>this.length)throw new RangeError("end out of bounds");var n;if(typeof t==="number"){for(n=e;n<r;n++){this[n]=t}}else{var i=Z(t.toString());var o=i.length;for(n=e;n<r;n++){this[n]=i[n%o]}}return this};var z=/[^+\/0-9A-Za-z-_]/g;function X(t){t=W(t).replace(z,"");if(t.length<2)return"";while(t.length%4!==0){t=t+"="}return t}function W(t){if(t.trim)return t.trim();return t.replace(/^\s+|\s+$/g,"")}function G(t){if(t<16)return"0"+t.toString(16);return t.toString(16)}function Z(t,e){e=e||Infinity;var r;var n=t.length;var i=null;var o=[];for(var a=0;a<n;a++){r=t.charCodeAt(a);if(r>55295&&r<57344){if(!i){if(r>56319){if((e-=3)>-1)o.push(239,191,189);continue}else if(a+1===n){if((e-=3)>-1)o.push(239,191,189);continue}i=r;continue}if(r<56320){if((e-=3)>-1)o.push(239,191,189);i=r;continue}r=(i-55296<<10|r-56320)+65536}else if(i){if((e-=3)>-1)o.push(239,191,189)}i=null;if(r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else{throw new Error("Invalid code point")}}return o}function V(t){var e=[];for(var r=0;r<t.length;r++){e.push(t.charCodeAt(r)&255)}return e}function J(t,e){var r,n,i;var o=[];for(var a=0;a<t.length;a++){if((e-=2)<0)break;r=t.charCodeAt(a);n=r>>8;i=r%256;o.push(i);o.push(n)}return o}function K(t){return n.toByteArray(X(t))}function Q(t,e,r,n){for(var i=0;i<n;i++){if(i+r>=e.length||i>=t.length)break;e[i+r]=t[i]}return i}}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"base64-js":1,ieee754:4,isarray:3}],3:[function(t,e,r){var n={}.toString;e.exports=Array.isArray||function(t){return n.call(t)=="[object Array]"}},{}],4:[function(t,e,r){r.read=function(t,e,r,n,i){var o,a;var s=i*8-n-1;var u=(1<<s)-1;var f=u>>1;var h=-7;var l=r?i-1:0;var c=r?-1:1;var p=t[e+l];l+=c;o=p&(1<<-h)-1;p>>=-h;h+=s;for(;h>0;o=o*256+t[e+l],l+=c,h-=8){}a=o&(1<<-h)-1;o>>=-h;h+=n;for(;h>0;a=a*256+t[e+l],l+=c,h-=8){}if(o===0){o=1-f}else if(o===u){return a?NaN:(p?-1:1)*Infinity}else{a=a+Math.pow(2,n);o=o-f}return(p?-1:1)*a*Math.pow(2,o-n)};r.write=function(t,e,r,n,i,o){var a,s,u;var f=o*8-i-1;var h=(1<<f)-1;var l=h>>1;var c=i===23?Math.pow(2,-24)-Math.pow(2,-77):0;var p=n?0:o-1;var d=n?1:-1;var v=e<0||e===0&&1/e<0?1:0;e=Math.abs(e);if(isNaN(e)||e===Infinity){s=isNaN(e)?1:0;a=h}else{a=Math.floor(Math.log(e)/Math.LN2);if(e*(u=Math.pow(2,-a))<1){a--;u*=2}if(a+l>=1){e+=c/u}else{e+=c*Math.pow(2,1-l)}if(e*u>=2){a++;u/=2}if(a+l>=h){s=0;a=h}else if(a+l>=1){s=(e*u-1)*Math.pow(2,i);a=a+l}else{s=e*Math.pow(2,l-1)*Math.pow(2,i);a=0}}for(;i>=8;t[r+p]=s&255,p+=d,s/=256,i-=8){}a=a<<i|s;f+=i;for(;f>0;t[r+p]=a&255,p+=d,a/=256,f-=8){}t[r+p-d]|=v*128}},{}],5:[function(t,e,r){"use strict";var n=t("../index.js");var i=new n({el:document.body,color:"#123456",background:"#656565"});i.onChange(function(t){document.body.style.background=t;document.querySelector("h1 a").style.color=i.color.isDark()?"#FFFFFF":"#000000"})},{"../index.js":6}],6:[function(t,e,r){"use strict";var n=t("lodash.bindall");var i=t("component-emitter");var o=t("is-number");var a=t("tinycolor2");var s=t("dom-transform");var u=t("./src/utils/maths/clamp");function f(t){t=t||{};this.color=null;this.width=0;this.height=0;this.hue=0;this.choosing=false;this.position={x:0,y:0};this.huePosition=0;this.saturationWidth=0;this.maxHue=0;this.inputIsNumber=false;n(this,"_onSaturationMouseMove","_onSaturationMouseDown","_onSaturationMouseUp","_onHueMouseDown","_onHueMouseUp","_onHueMouseMove");this.$el=document.createElement("div");this.$el.className="Scp";this.$el.innerHTML=['<div class="Scp-saturation">','<div class="Scp-brightness"></div>','<div class="Scp-sbSelector"></div>',"</div>",'<div class="Scp-hue">','<div class="Scp-hSelector"></div>',"</div>"].join("\n");this.$saturation=this.$el.querySelector(".Scp-saturation");this.$hue=this.$el.querySelector(".Scp-hue");this.$sbSelector=this.$el.querySelector(".Scp-sbSelector");this.$hSelector=this.$el.querySelector(".Scp-hSelector");this.$saturation.addEventListener("mousedown",this._onSaturationMouseDown);this.$saturation.addEventListener("touchstart",this._onSaturationMouseDown);this.$hue.addEventListener("mousedown",this._onHueMouseDown);this.$hue.addEventListener("touchstart",this._onHueMouseDown);if(t.el){this.appendTo(t.el)}if(t.background){this.setBackgroundColor(t.background)}this.setSize(t.width||175,t.height||150);this.setColor(t.color);return this}i(f.prototype);f.prototype.appendTo=function(t){t.appendChild(this.$el);return this};f.prototype.remove=function(){this.$saturation.removeEventListener("mousedown",this._onSaturationMouseDown);this.$saturation.removeEventListener("touchstart",this._onSaturationMouseDown);this.$hue.removeEventListener("mousedown",this._onHueMouseDown);this.$hue.removeEventListener("touchstart",this._onHueMouseDown);this._onSaturationMouseUp();this._onHueMouseUp();this.off();if(this.$el.parentNode){this.$el.parentNode.removeChild(this.$el)}};f.prototype.setColor=function(t){if(o(t)){this.inputIsNumber=true;t="#"+("00000"+(t|0).toString(16)).substr(-6)}else{this.inputIsNumber=false}this.color=a(t);var e=this.color.toHsv();if(!isNaN(e.h)){this.hue=e.h}this._moveSelectorTo(this.saturationWidth*e.s,(1-e.v)*this.height);this._moveHueTo((1-this.hue/360)*this.height);this._updateHue();return this};f.prototype.setSize=function(t,e){this.width=t;this.height=e;this.$el.style.width=this.width+"px";this.$el.style.height=this.height+"px";this.saturationWidth=this.width-25;this.maxHue=this.height-2;return this};f.prototype.setBackgroundColor=function(t){if(o(t)){t="#"+("00000"+(t|0).toString(16)).substr(-6)}this.$el.style.padding="5px";this.$el.style.background=a(t).toHexString()};f.prototype.setNoBackground=function(){this.$el.style.padding="0px";this.$el.style.background="none"};f.prototype.onChange=function(t){this.on("update",t);this.emit("update",this.getHexString());return this};f.prototype.getColor=function(){if(this.inputIsNumber){return this.getHexNumber()}return this.color.toString()};f.prototype.getHexString=function(){return this.color.toHexString().toUpperCase()};f.prototype.getHexNumber=function(){return parseInt(this.color.toHex(),16)};f.prototype.getRGB=function(){return this.color.toRgb()};f.prototype.getHSV=function(){return this.color.toHsv()};f.prototype.isDark=function(){return this.color.isDark()};f.prototype.isLight=function(){return this.color.isLight()};f.prototype._moveSelectorTo=function(t,e){this.position.x=u(t,0,this.saturationWidth);this.position.y=u(e,0,this.height);s(this.$sbSelector,{x:this.position.x,y:this.position.y})};f.prototype._updateColorFromPosition=function(){this.color=a({h:this.hue,s:this.position.x/this.saturationWidth,v:1-this.position.y/this.height});this._updateColor()};f.prototype._moveHueTo=function(t){this.huePosition=u(t,0,this.maxHue);s(this.$hSelector,{y:this.huePosition})};f.prototype._updateHueFromPosition=function(){var t=this.color.toHsv();this.hue=360*(1-this.huePosition/this.maxHue);this.color=a({h:this.hue,s:t.s,v:t.v});this._updateHue()};f.prototype._updateHue=function(){var t=a({h:this.hue,s:1,v:1});this.$saturation.style.background="linear-gradient(to right, #fff, "+t.toHexString()+")";this._updateColor()};f.prototype._updateColor=function(){this.$sbSelector.style.background=this.color.toHexString();this.$sbSelector.style.borderColor=this.color.isDark()?"#fff":"#000";this.emit("update",this.color.toHexString())};f.prototype._onSaturationMouseDown=function(t){this.choosing=true;var e=this.$saturation.getBoundingClientRect();var r=t.type.indexOf("touch")===0?t.touches[0].clientX:t.clientX;var n=t.type.indexOf("touch")===0?t.touches[0].clientY:t.clientY;this._moveSelectorTo(r-e.left,n-e.top);this._updateColorFromPosition();window.addEventListener("mouseup",this._onSaturationMouseUp);window.addEventListener("touchend",this._onSaturationMouseUp);window.addEventListener("mousemove",this._onSaturationMouseMove);window.addEventListener("touchmove",this._onSaturationMouseMove);t.preventDefault()};f.prototype._onSaturationMouseMove=function(t){var e=this.$saturation.getBoundingClientRect();var r=t.type.indexOf("touch")===0?t.touches[0].clientX:t.clientX;var n=t.type.indexOf("touch")===0?t.touches[0].clientY:t.clientY;this._moveSelectorTo(r-e.left,n-e.top);this._updateColorFromPosition()};f.prototype._onSaturationMouseUp=function(){this.choosing=false;window.removeEventListener("mouseup",this._onSaturationMouseUp);window.removeEventListener("touchend",this._onSaturationMouseUp);window.removeEventListener("mousemove",this._onSaturationMouseMove);window.removeEventListener("touchmove",this._onSaturationMouseMove)};f.prototype._onHueMouseDown=function(t){this.choosing=true;var e=this.$hue.getBoundingClientRect();var r=t.type.indexOf("touch")===0?t.touches[0].clientY:t.clientY;this._moveHueTo(r-e.top);this._updateHueFromPosition();window.addEventListener("mouseup",this._onHueMouseUp);window.addEventListener("touchend",this._onHueMouseUp);window.addEventListener("mousemove",this._onHueMouseMove);window.addEventListener("touchmove",this._onHueMouseMove);t.preventDefault()};f.prototype._onHueMouseMove=function(t){var e=this.$hue.getBoundingClientRect();var r=t.type.indexOf("touch")===0?t.touches[0].clientY:t.clientY;this._moveHueTo(r-e.top);this._updateHueFromPosition()};f.prototype._onHueMouseUp=function(){this.choosing=false;window.removeEventListener("mouseup",this._onHueMouseUp);window.removeEventListener("touchend",this._onHueMouseUp);window.removeEventListener("mousemove",this._onHueMouseMove);window.removeEventListener("touchmove",this._onHueMouseMove)};e.exports=f},{"./src/utils/maths/clamp":23,"component-emitter":7,"dom-transform":8,"is-number":13,"lodash.bindall":18,tinycolor2:21}],7:[function(t,e,r){e.exports=n;function n(t){if(t)return i(t)}function i(t){for(var e in n.prototype){t[e]=n.prototype[e]}return t}n.prototype.on=n.prototype.addEventListener=function(t,e){this._callbacks=this._callbacks||{};(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e);return this};n.prototype.once=function(t,e){function r(){this.off(t,r);e.apply(this,arguments)}r.fn=e;this.on(t,r);return this};n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(t,e){this._callbacks=this._callbacks||{};if(0==arguments.length){this._callbacks={};return this}var r=this._callbacks["$"+t];if(!r)return this;if(1==arguments.length){delete this._callbacks["$"+t];return this}var n;for(var i=0;i<r.length;i++){n=r[i];if(n===e||n.fn===e){r.splice(i,1);break}}return this};n.prototype.emit=function(t){this._callbacks=this._callbacks||{};var e=[].slice.call(arguments,1),r=this._callbacks["$"+t];if(r){r=r.slice(0);for(var n=0,i=r.length;n<i;++n){r[n].apply(this,e)}}return this};n.prototype.listeners=function(t){this._callbacks=this._callbacks||{};return this._callbacks["$"+t]||[]};n.prototype.hasListeners=function(t){return!!this.listeners(t).length}},{}],8:[function(t,e,r){"use strict";var n=t("prefix");var i=t("is-array");var o=t("./lib/properties");var a=t("./lib/default-unit");var s=Object.prototype.hasOwnProperty;var u=n("transform");var f={x:"translateX",y:"translateY",z:"translateZ",origin:"transformOrigin"};r=e.exports=h;function h(t,e){var r=[];var f;var h;var l;d(e);for(f in e){if(!s.call(e,f))continue;h=e[f];if(s.call(o.transform,f)){l=o.transform[f];if(i(h)){h=h.join(l.separator)}r.push(f+"("+a(h,l.defaultUnit,l.separator)+")");continue}if(s.call(o,f)){l=o[f];if(i(h)){h=h.join(l.separator)}t.style[n(f)]=a(h,l.defaultUnit,l.separator);continue}console.warn("dom-transform: this property (`"+f+"`) is not supported.")}t.style[u]=r.join(" ")}r.get=l;function l(t,e){var r=t.style;if(typeof e==="string"){if(s.call(o.transform,e)){return r[u]}return r[n(e)]}if(!e){e=v()}var i={};e.forEach(function(t){i[t]=r[n(t)]});return i}r.reset=c;function c(t,e){var r=t.style;if(typeof e==="string"){r[n(e)]=null;return}if(!e){e=v()}e.forEach(function(t){r[n(t)]=null})}r.isSupported=p;function p(){return u.length>0}function d(t){var e;for(e in t){if(s.call(f,e)){t[f[e]]=t[e];delete t[e]}}}function v(){return Object.keys(o).map(function(t){return t})}},{"./lib/default-unit":9,"./lib/properties":10,"is-array":11,prefix:20}],9:[function(t,e,r){"use strict";var n=t("trim");var i=/^-?\d+(\.\d+)?$/;e.exports=function(t,e,r){r=r||",";if(typeof t==="number"){return""+t+e}var o=new RegExp(r,"g");var a=t.split(o.test(t)?r:" ");return a.map(function(t){t=n(t);if(i.test(t)){t+=e}return t}).join(r)}},{trim:22}],10:[function(t,e,r){"use strict";e.exports={transform:{translate:{defaultUnit:"px"},translate3d:{defaultUnit:"px"},translateX:{defaultUnit:"px"},translateY:{defaultUnit:"px"},translateZ:{defaultUnit:"px"},scale:{defaultUnit:""},scale3d:{defaultUnit:""},scaleX:{defaultUnit:""},scaleY:{defaultUnit:""},scaleZ:{defaultUnit:""},rotate:{defaultUnit:"deg"},rotate3d:{defaultUnit:""},rotateX:{defaultUnit:"deg"},rotateY:{defaultUnit:"deg"},rotateZ:{defaultUnit:"deg"},skew:{defaultUnit:"deg"},skewX:{defaultUnit:"deg"},skewY:{defaultUnit:"deg"},perspective:{defaultUnit:"px"},matrix:{defaultUnit:""},matrix3d:{defaultUnit:""}},transformOrigin:{defaultUnit:"px",separator:" "}}},{}],11:[function(t,e,r){var n=Array.isArray;var i=Object.prototype.toString;e.exports=n||function(t){return!!t&&"[object Array]"==i.call(t)}},{}],12:[function(t,e,r){e.exports=function(t){return!!(t!=null&&(t._isBuffer||t.constructor&&typeof t.constructor.isBuffer==="function"&&t.constructor.isBuffer(t)))}},{}],13:[function(t,e,r){"use strict";var n=t("kind-of");e.exports=function i(t){var e=n(t);if(e!=="number"&&e!=="string"){return false}var r=+t;return r-r+1>=0&&t!==""}},{"kind-of":14}],14:[function(t,e,r){(function(r){var n=t("is-buffer");var i=Object.prototype.toString;e.exports=function o(t){if(typeof t==="undefined"){return"undefined"}if(t===null){return"null";
}if(t===true||t===false||t instanceof Boolean){return"boolean"}if(typeof t==="string"||t instanceof String){return"string"}if(typeof t==="number"||t instanceof Number){return"number"}if(typeof t==="function"||t instanceof Function){return"function"}if(typeof Array.isArray!=="undefined"&&Array.isArray(t)){return"array"}if(t instanceof RegExp){return"regexp"}if(t instanceof Date){return"date"}var e=i.call(t);if(e==="[object RegExp]"){return"regexp"}if(e==="[object Date]"){return"date"}if(e==="[object Arguments]"){return"arguments"}if(typeof r!=="undefined"&&n(t)){return"buffer"}if(e==="[object Set]"){return"set"}if(e==="[object WeakSet]"){return"weakset"}if(e==="[object Map]"){return"map"}if(e==="[object WeakMap]"){return"weakmap"}if(e==="[object Symbol]"){return"symbol"}if(e==="[object Int8Array]"){return"int8array"}if(e==="[object Uint8Array]"){return"uint8array"}if(e==="[object Uint8ClampedArray]"){return"uint8clampedarray"}if(e==="[object Int16Array]"){return"int16array"}if(e==="[object Uint16Array]"){return"uint16array"}if(e==="[object Int32Array]"){return"int32array"}if(e==="[object Uint32Array]"){return"uint32array"}if(e==="[object Float32Array]"){return"float32array"}if(e==="[object Float64Array]"){return"float64array"}return"object"}}).call(this,t("buffer").Buffer)},{buffer:2,"is-buffer":12}],15:[function(t,e,r){var n=9007199254740991;var i="[object Arguments]",o="[object Function]",a="[object GeneratorFunction]";function s(t,e){var r=-1,n=e.length,i=t.length;while(++r<n){t[i+r]=e[r]}return t}var u=Object.prototype;var f=u.hasOwnProperty;var h=u.toString;var l=u.propertyIsEnumerable;function c(t,e,r,n){n||(n=[]);var i=-1,o=t.length;while(++i<o){var a=t[i];if(e>0&&b(a)&&(r||g(a)||v(a))){if(e>1){c(a,e-1,r,n)}else{s(n,a)}}else if(!r){n[n.length]=a}}return n}function p(t){return function(e){return e==null?undefined:e[t]}}var d=p("length");function v(t){return b(t)&&f.call(t,"callee")&&(!l.call(t,"callee")||h.call(t)==i)}var g=Array.isArray;function y(t){return t!=null&&m(d(t))&&!w(t)}function b(t){return A(t)&&y(t)}function w(t){var e=_(t)?h.call(t):"";return e==o||e==a}function m(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=n}function _(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function A(t){return!!t&&typeof t=="object"}e.exports=c},{}],16:[function(t,e,r){(function(t){var n="Expected a function";var i="__lodash_placeholder__";var o=1,a=2,s=4,u=8,f=16,h=32,l=64,c=128,p=512;var d=1/0,v=9007199254740991,g=1.7976931348623157e308,y=0/0;var b="[object Function]",w="[object GeneratorFunction]",m="[object Symbol]";var _=/^\s+|\s+$/g;var A=/^[-+]0x[0-9a-f]+$/i;var S=/^0b[01]+$/i;var x=/^0o[0-7]+$/i;var E=/^(?:0|[1-9]\d*)$/;var R={"function":true,object:true};var k=parseInt;var M=R[typeof r]&&r&&!r.nodeType?r:undefined;var P=R[typeof e]&&e&&!e.nodeType?e:undefined;var U=j(M&&P&&typeof t=="object"&&t);var T=j(R[typeof self]&&self);var H=j(R[typeof window]&&window);var O=j(R[typeof this]&&this);var C=U||H!==(O&&O.window)&&H||T||O||Function("return this")();function L(t,e,r){var n=r.length;switch(n){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}function j(t){return t&&t.Object===Object?t:null}function B(t,e){var r=t.length,n=0;while(r--){if(t[r]===e){n++}}return n}function $(t,e){t=typeof t=="number"||E.test(t)?+t:-1;e=e==null?v:e;return t>-1&&t%1==0&&t<e}function Y(t,e){var r=-1,n=t.length,o=0,a=[];while(++r<n){var s=t[r];if(s===e||s===i){t[r]=i;a[o++]=r}}return a}var I=Object.prototype;var D=I.toString;var F=Object.create;var N=Math.max,q=Math.min;function z(t){return ot(t)?F(t):{}}function X(t,e,r,n){var i=-1,o=t.length,a=r.length,s=-1,u=e.length,f=N(o-a,0),h=Array(u+f),l=!n;while(++s<u){h[s]=e[s]}while(++i<a){if(l||i<o){h[r[i]]=t[i]}}while(f--){h[s++]=t[i++]}return h}function W(t,e,r,n){var i=-1,o=t.length,a=-1,s=r.length,u=-1,f=e.length,h=N(o-s,0),l=Array(h+f),c=!n;while(++i<h){l[i]=t[i]}var p=i;while(++u<f){l[p+u]=e[u]}while(++a<s){if(c||i<o){l[p+r[a]]=t[i++]}}return l}function G(t,e){var r=-1,n=t.length;e||(e=Array(n));while(++r<n){e[r]=t[r]}return e}function Z(t,e,r){var n=e&o,i=V(t);function a(){var e=this&&this!==C&&this instanceof a?i:t;return e.apply(n?r:this,arguments)}return a}function V(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var r=z(t.prototype),n=t.apply(r,e);return ot(n)?n:r}}function J(t,e,r){var n=V(t);function i(){var o=arguments.length,a=Array(o),s=o,u=rt(i);while(s--){a[s]=arguments[s]}var f=o<3&&a[0]!==u&&a[o-1]!==u?[]:Y(a,u);o-=f.length;if(o<r){return tt(t,e,K,i.placeholder,undefined,a,f,undefined,undefined,r-o)}var h=this&&this!==C&&this instanceof i?n:t;return L(h,this,a)}return i}function K(t,e,r,n,i,s,h,l,d,v){var g=e&c,y=e&o,b=e&a,w=e&(u|f),m=e&p,_=b?undefined:V(t);function A(){var o=arguments.length,a=o,u=Array(o);while(a--){u[a]=arguments[a]}if(w){var f=rt(A),c=B(u,f)}if(n){u=X(u,n,i,w)}if(s){u=W(u,s,h,w)}o-=c;if(w&&o<v){var p=Y(u,f);return tt(t,e,K,A.placeholder,r,u,p,l,d,v-o)}var S=y?r:this,x=b?S[t]:t;o=u.length;if(l){u=nt(u,l)}else if(m&&o>1){u.reverse()}if(g&&d<o){u.length=d}if(this&&this!==C&&this instanceof A){x=_||V(x)}return x.apply(S,u)}return A}function Q(t,e,r,n){var i=e&o,a=V(t);function s(){var e=-1,o=arguments.length,u=-1,f=n.length,h=Array(f+o),l=this&&this!==C&&this instanceof s?a:t;while(++u<f){h[u]=n[u]}while(o--){h[u++]=arguments[++e]}return L(l,i?r:this,h)}return s}function tt(t,e,r,n,i,f,c,p,d,v){var g=e&u,y=p?G(p):undefined,b=g?c:undefined,w=g?undefined:c,m=g?f:undefined,_=g?undefined:f;e|=g?h:l;e&=~(g?l:h);if(!(e&s)){e&=~(o|a)}var A=r(t,e,i,m,b,_,w,y,d,v);A.placeholder=n;return A}function et(t,e,r,i,s,c,p,d){var v=e&a;if(!v&&typeof t!="function"){throw new TypeError(n)}var g=i?i.length:0;if(!g){e&=~(h|l);i=s=undefined}p=p===undefined?p:N(ut(p),0);d=d===undefined?d:ut(d);g-=s?s.length:0;if(e&l){var y=i,b=s;i=s=undefined}var w=[t,e,r,i,s,y,b,c,p,d];t=w[0];e=w[1];r=w[2];i=w[3];s=w[4];d=w[9]=w[9]==null?v?0:t.length:N(w[9]-g,0);if(!d&&e&(u|f)){e&=~(u|f)}if(!e||e==o){var m=Z(t,e,r)}else if(e==u||e==f){m=J(t,e,d)}else if((e==h||e==(o|h))&&!s.length){m=Q(t,e,r,i)}else{m=K.apply(undefined,w)}return m}function rt(t){var e=t;return e.placeholder}function nt(t,e){var r=t.length,n=q(e.length,r),i=G(t);while(n--){var o=e[n];t[n]=$(o,r)?i[o]:undefined}return t}function it(t){var e=ot(t)?D.call(t):"";return e==b||e==w}function ot(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function at(t){return!!t&&typeof t=="object"}function st(t){return typeof t=="symbol"||at(t)&&D.call(t)==m}function ut(t){if(!t){return t===0?t:0}t=ft(t);if(t===d||t===-d){var e=t<0?-1:1;return e*g}var r=t%1;return t===t?r?t-r:t:0}function ft(t){if(typeof t=="number"){return t}if(st(t)){return y}if(ot(t)){var e=it(t.valueOf)?t.valueOf():t;t=ot(e)?e+"":e}if(typeof t!="string"){return t===0?t:+t}t=t.replace(_,"");var r=S.test(t);return r||x.test(t)?k(t.slice(2),r?2:8):A.test(t)?y:+t}e.exports=et}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{}],17:[function(t,e,r){var n=t("lodash._createwrapper"),i=t("lodash.rest");var o="__lodash_placeholder__";var a=1,s=32;function u(t,e){var r=-1,n=t.length,i=0,a=[];while(++r<n){var s=t[r];if(s===e||s===o){t[r]=o;a[i++]=r}}return a}function f(t){var e=t;return e.placeholder}var h=i(function(t,e,r){var i=a;if(r.length){var o=u(r,f(h));i|=s}return n(t,i,e,r,o)});h.placeholder={};e.exports=h},{"lodash._createwrapper":16,"lodash.rest":19}],18:[function(t,e,r){var n=t("lodash._baseflatten"),i=t("lodash.bind"),o=t("lodash.rest");function a(t,e){var r=-1,n=t.length;while(++r<n){if(e(t[r],r,t)===false){break}}return t}var s=o(function(t,e){a(n(e,1),function(e){t[e]=i(t[e],t)});return t});e.exports=s},{"lodash._baseflatten":15,"lodash.bind":17,"lodash.rest":19}],19:[function(t,e,r){var n="Expected a function";var i=1/0,o=1.7976931348623157e308,a=0/0;var s="[object Function]",u="[object GeneratorFunction]",f="[object Symbol]";var h=/^\s+|\s+$/g;var l=/^[-+]0x[0-9a-f]+$/i;var c=/^0b[01]+$/i;var p=/^0o[0-7]+$/i;var d=parseInt;function v(t,e,r){var n=r.length;switch(n){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}var g=Object.prototype;var y=g.toString;var b=Math.max;function w(t,e){if(typeof t!="function"){throw new TypeError(n)}e=b(e===undefined?t.length-1:x(e),0);return function(){var r=arguments,n=-1,i=b(r.length-e,0),o=Array(i);while(++n<i){o[n]=r[e+n]}switch(e){case 0:return t.call(this,o);case 1:return t.call(this,r[0],o);case 2:return t.call(this,r[0],r[1],o)}var a=Array(e+1);n=-1;while(++n<e){a[n]=r[n]}a[e]=o;return v(t,this,a)}}function m(t){var e=_(t)?y.call(t):"";return e==s||e==u}function _(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function A(t){return!!t&&typeof t=="object"}function S(t){return typeof t=="symbol"||A(t)&&y.call(t)==f}function x(t){if(!t){return t===0?t:0}t=E(t);if(t===i||t===-i){var e=t<0?-1:1;return e*o}var r=t%1;return t===t?r?t-r:t:0}function E(t){if(typeof t=="number"){return t}if(S(t)){return a}if(_(t)){var e=m(t.valueOf)?t.valueOf():t;t=_(e)?e+"":e}if(typeof t!="string"){return t===0?t:+t}t=t.replace(h,"");var r=c.test(t);return r||p.test(t)?d(t.slice(2),r?2:8):l.test(t)?a:+t}e.exports=w},{}],20:[function(t,e,r){function n(t){return t}e.exports=n;e.exports.dash=n;e.exports.dash=n},{}],21:[function(t,e,r){(function(){var t=/^\s+/,r=/\s+$/,n=0,i=Math,o=i.round,a=i.min,s=i.max,u=i.random;function f(t,e){t=t?t:"";e=e||{};if(t instanceof f){return t}if(!(this instanceof f)){return new f(t,e)}var r=h(t);this._originalInput=t,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=o(100*this._a)/100,this._format=e.format||r.format;this._gradientType=e.gradientType;if(this._r<1){this._r=o(this._r)}if(this._g<1){this._g=o(this._g)}if(this._b<1){this._b=o(this._b)}this._ok=r.ok;this._tc_id=n++}f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb();var e,r,n,i,o,a;e=t.r/255;r=t.g/255;n=t.b/255;if(e<=.03928){i=e/12.92}else{i=Math.pow((e+.055)/1.055,2.4)}if(r<=.03928){o=r/12.92}else{o=Math.pow((r+.055)/1.055,2.4)}if(n<=.03928){a=n/12.92}else{a=Math.pow((n+.055)/1.055,2.4)}return.2126*i+.7152*o+.0722*a},setAlpha:function(t){this._a=C(t);this._roundA=o(100*this._a)/100;return this},toHsv:function(){var t=d(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=d(this._r,this._g,this._b);var e=o(t.h*360),r=o(t.s*100),n=o(t.v*100);return this._a==1?"hsv("+e+", "+r+"%, "+n+"%)":"hsva("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var t=c(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=c(this._r,this._g,this._b);var e=o(t.h*360),r=o(t.s*100),n=o(t.l*100);return this._a==1?"hsl("+e+", "+r+"%, "+n+"%)":"hsla("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(t){return g(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(){return y(this._r,this._g,this._b,this._a)},toHex8String:function(){return"#"+this.toHex8()},toRgb:function(){return{r:o(this._r),g:o(this._g),b:o(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+o(this._r)+", "+o(this._g)+", "+o(this._b)+")":"rgba("+o(this._r)+", "+o(this._g)+", "+o(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:o(L(this._r,255)*100)+"%",g:o(L(this._g,255)*100)+"%",b:o(L(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+o(L(this._r,255)*100)+"%, "+o(L(this._g,255)*100)+"%, "+o(L(this._b,255)*100)+"%)":"rgba("+o(L(this._r,255)*100)+"%, "+o(L(this._g,255)*100)+"%, "+o(L(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){if(this._a===0){return"transparent"}if(this._a<1){return false}return H[g(this._r,this._g,this._b,true)]||false},toFilter:function(t){var e="#"+y(this._r,this._g,this._b,this._a);var r=e;var n=this._gradientType?"GradientType = 1, ":"";if(t){var i=f(t);r=i.toHex8String()}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+e+",endColorstr="+r+")"},toString:function(t){var e=!!t;t=t||this._format;var r=false;var n=this._a<1&&this._a>=0;var i=!e&&n&&(t==="hex"||t==="hex6"||t==="hex3"||t==="name");if(i){if(t==="name"&&this._a===0){return this.toName()}return this.toRgbString()}if(t==="rgb"){r=this.toRgbString()}if(t==="prgb"){r=this.toPercentageRgbString()}if(t==="hex"||t==="hex6"){r=this.toHexString()}if(t==="hex3"){r=this.toHexString(true)}if(t==="hex8"){r=this.toHex8String()}if(t==="name"){r=this.toName()}if(t==="hsl"){r=this.toHslString()}if(t==="hsv"){r=this.toHsvString()}return r||this.toHexString()},clone:function(){return f(this.toString())},_applyModification:function(t,e){var r=t.apply(null,[this].concat([].slice.call(e)));this._r=r._r;this._g=r._g;this._b=r._b;this.setAlpha(r._a);return this},lighten:function(){return this._applyModification(_,arguments)},brighten:function(){return this._applyModification(A,arguments)},darken:function(){return this._applyModification(S,arguments)},desaturate:function(){return this._applyModification(b,arguments)},saturate:function(){return this._applyModification(w,arguments)},greyscale:function(){return this._applyModification(m,arguments)},spin:function(){return this._applyModification(x,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(P,arguments)},complement:function(){return this._applyCombination(E,arguments)},monochromatic:function(){return this._applyCombination(U,arguments)},splitcomplement:function(){return this._applyCombination(M,arguments)},triad:function(){return this._applyCombination(R,arguments)},tetrad:function(){return this._applyCombination(k,arguments)}};f.fromRatio=function(t,e){if(typeof t=="object"){var r={};for(var n in t){if(t.hasOwnProperty(n)){if(n==="a"){r[n]=t[n]}else{r[n]=D(t[n])}}}t=r}return f(t,e)};function h(t){var e={r:0,g:0,b:0};var r=1;var n=false;var i=false;if(typeof t=="string"){t=z(t)}if(typeof t=="object"){if(t.hasOwnProperty("r")&&t.hasOwnProperty("g")&&t.hasOwnProperty("b")){e=l(t.r,t.g,t.b);n=true;i=String(t.r).substr(-1)==="%"?"prgb":"rgb"}else if(t.hasOwnProperty("h")&&t.hasOwnProperty("s")&&t.hasOwnProperty("v")){t.s=D(t.s);t.v=D(t.v);e=v(t.h,t.s,t.v);n=true;i="hsv"}else if(t.hasOwnProperty("h")&&t.hasOwnProperty("s")&&t.hasOwnProperty("l")){t.s=D(t.s);t.l=D(t.l);e=p(t.h,t.s,t.l);n=true;i="hsl"}if(t.hasOwnProperty("a")){r=t.a}}r=C(r);return{ok:n,format:t.format||i,r:a(255,s(e.r,0)),g:a(255,s(e.g,0)),b:a(255,s(e.b,0)),a:r}}function l(t,e,r){return{r:L(t,255)*255,g:L(e,255)*255,b:L(r,255)*255}}function c(t,e,r){t=L(t,255);e=L(e,255);r=L(r,255);var n=s(t,e,r),i=a(t,e,r);var o,u,f=(n+i)/2;if(n==i){o=u=0}else{var h=n-i;u=f>.5?h/(2-n-i):h/(n+i);switch(n){case t:o=(e-r)/h+(e<r?6:0);break;case e:o=(r-t)/h+2;break;case r:o=(t-e)/h+4;break}o/=6}return{h:o,s:u,l:f}}function p(t,e,r){var n,i,o;t=L(t,360);e=L(e,100);r=L(r,100);function a(t,e,r){if(r<0)r+=1;if(r>1)r-=1;if(r<1/6)return t+(e-t)*6*r;if(r<1/2)return e;if(r<2/3)return t+(e-t)*(2/3-r)*6;return t}if(e===0){n=i=o=r}else{var s=r<.5?r*(1+e):r+e-r*e;var u=2*r-s;n=a(u,s,t+1/3);i=a(u,s,t);o=a(u,s,t-1/3)}return{r:n*255,g:i*255,b:o*255}}function d(t,e,r){t=L(t,255);e=L(e,255);r=L(r,255);var n=s(t,e,r),i=a(t,e,r);var o,u,f=n;var h=n-i;u=n===0?0:h/n;if(n==i){o=0}else{switch(n){case t:o=(e-r)/h+(e<r?6:0);break;case e:o=(r-t)/h+2;break;case r:o=(t-e)/h+4;break}o/=6}return{h:o,s:u,v:f}}function v(t,e,r){t=L(t,360)*6;e=L(e,100);r=L(r,100);var n=i.floor(t),o=t-n,a=r*(1-e),s=r*(1-o*e),u=r*(1-(1-o)*e),f=n%6,h=[r,s,a,a,u,r][f],l=[u,r,r,s,a,a][f],c=[a,a,u,r,r,s][f];return{r:h*255,g:l*255,b:c*255}}function g(t,e,r,n){var i=[I(o(t).toString(16)),I(o(e).toString(16)),I(o(r).toString(16))];if(n&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)){return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)}return i.join("")}function y(t,e,r,n){var i=[I(F(n)),I(o(t).toString(16)),I(o(e).toString(16)),I(o(r).toString(16))];return i.join("")}f.equals=function(t,e){if(!t||!e){return false}return f(t).toRgbString()==f(e).toRgbString()};f.random=function(){return f.fromRatio({r:u(),g:u(),b:u()})};function b(t,e){e=e===0?0:e||10;var r=f(t).toHsl();r.s-=e/100;r.s=j(r.s);return f(r)}function w(t,e){e=e===0?0:e||10;var r=f(t).toHsl();r.s+=e/100;r.s=j(r.s);return f(r)}function m(t){return f(t).desaturate(100)}function _(t,e){e=e===0?0:e||10;var r=f(t).toHsl();r.l+=e/100;r.l=j(r.l);return f(r)}function A(t,e){e=e===0?0:e||10;var r=f(t).toRgb();r.r=s(0,a(255,r.r-o(255*-(e/100))));r.g=s(0,a(255,r.g-o(255*-(e/100))));r.b=s(0,a(255,r.b-o(255*-(e/100))));return f(r)}function S(t,e){e=e===0?0:e||10;var r=f(t).toHsl();r.l-=e/100;r.l=j(r.l);return f(r)}function x(t,e){var r=f(t).toHsl();var n=(o(r.h)+e)%360;r.h=n<0?360+n:n;return f(r)}function E(t){var e=f(t).toHsl();e.h=(e.h+180)%360;return f(e)}function R(t){var e=f(t).toHsl();var r=e.h;return[f(t),f({h:(r+120)%360,s:e.s,l:e.l}),f({h:(r+240)%360,s:e.s,l:e.l})]}function k(t){var e=f(t).toHsl();var r=e.h;return[f(t),f({h:(r+90)%360,s:e.s,l:e.l}),f({h:(r+180)%360,s:e.s,l:e.l}),f({h:(r+270)%360,s:e.s,l:e.l})]}function M(t){var e=f(t).toHsl();var r=e.h;return[f(t),f({h:(r+72)%360,s:e.s,l:e.l}),f({h:(r+216)%360,s:e.s,l:e.l})]}function P(t,e,r){e=e||6;r=r||30;var n=f(t).toHsl();var i=360/r;var o=[f(t)];for(n.h=(n.h-(i*e>>1)+720)%360;--e;){n.h=(n.h+i)%360;o.push(f(n))}return o}function U(t,e){e=e||6;var r=f(t).toHsv();var n=r.h,i=r.s,o=r.v;var a=[];var s=1/e;while(e--){a.push(f({h:n,s:i,v:o}));o=(o+s)%1}return a}f.mix=function(t,e,r){r=r===0?0:r||50;var n=f(t).toRgb();var i=f(e).toRgb();var o=r/100;var a=o*2-1;var s=i.a-n.a;var u;if(a*s==-1){u=a}else{u=(a+s)/(1+a*s)}u=(u+1)/2;var h=1-u;var l={r:i.r*u+n.r*h,g:i.g*u+n.g*h,b:i.b*u+n.b*h,a:i.a*o+n.a*(1-o)};return f(l)};f.readability=function(t,e){var r=f(t);var n=f(e);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)};f.isReadable=function(t,e,r){var n=f.readability(t,e);var i,o;o=false;i=X(r);switch(i.level+i.size){case"AAsmall":case"AAAlarge":o=n>=4.5;break;case"AAlarge":o=n>=3;break;case"AAAsmall":o=n>=7;break}return o};f.mostReadable=function(t,e,r){var n=null;var i=0;var o;var a,s,u;r=r||{};a=r.includeFallbackColors;s=r.level;u=r.size;for(var h=0;h<e.length;h++){o=f.readability(t,e[h]);if(o>i){i=o;n=f(e[h])}}if(f.isReadable(t,n,{level:s,size:u})||!a){return n}else{r.includeFallbackColors=false;return f.mostReadable(t,["#fff","#000"],r)}};var T=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",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:"f0f",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",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",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",rebeccapurple:"663399",red:"f00",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:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var H=f.hexNames=O(T);function O(t){var e={};for(var r in t){if(t.hasOwnProperty(r)){e[t[r]]=r}}return e}function C(t){t=parseFloat(t);if(isNaN(t)||t<0||t>1){t=1}return t}function L(t,e){if($(t)){t="100%"}var r=Y(t);t=a(e,s(0,parseFloat(t)));if(r){t=parseInt(t*e,10)/100}if(i.abs(t-e)<1e-6){return 1}return t%e/parseFloat(e)}function j(t){return a(1,s(0,t))}function B(t){return parseInt(t,16)}function $(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function Y(t){return typeof t==="string"&&t.indexOf("%")!=-1}function I(t){return t.length==1?"0"+t:""+t}function D(t){if(t<=1){t=t*100+"%"}return t}function F(t){return Math.round(parseFloat(t)*255).toString(16)}function N(t){return B(t)/255}var q=function(){var t="[-\\+]?\\d+%?";var e="[-\\+]?\\d*\\.\\d+%?";var r="(?:"+e+")|(?:"+t+")";var n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";var i="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function z(e){e=e.replace(t,"").replace(r,"").toLowerCase();var n=false;if(T[e]){e=T[e];n=true}else if(e=="transparent"){return{r:0,g:0,b:0,a:0,format:"name"}}var i;if(i=q.rgb.exec(e)){return{r:i[1],g:i[2],b:i[3]}}if(i=q.rgba.exec(e)){return{r:i[1],g:i[2],b:i[3],a:i[4]}}if(i=q.hsl.exec(e)){return{h:i[1],s:i[2],l:i[3]}}if(i=q.hsla.exec(e)){return{h:i[1],s:i[2],l:i[3],a:i[4]}}if(i=q.hsv.exec(e)){return{h:i[1],s:i[2],v:i[3]}}if(i=q.hsva.exec(e)){return{h:i[1],s:i[2],v:i[3],a:i[4]}}if(i=q.hex8.exec(e)){return{a:N(i[1]),r:B(i[2]),g:B(i[3]),b:B(i[4]),format:n?"name":"hex8"}}if(i=q.hex6.exec(e)){return{r:B(i[1]),g:B(i[2]),b:B(i[3]),format:n?"name":"hex"}}if(i=q.hex3.exec(e)){return{r:B(i[1]+""+i[1]),g:B(i[2]+""+i[2]),b:B(i[3]+""+i[3]),format:n?"name":"hex"}}return false}function X(t){var e,r;t=t||{level:"AA",size:"small"};e=(t.level||"AA").toUpperCase();r=(t.size||"small").toLowerCase();if(e!=="AA"&&e!=="AAA"){e="AA"}if(r!=="small"&&r!=="large"){r="small"}return{level:e,size:r}}if(typeof e!=="undefined"&&e.exports){e.exports=f}else if(typeof define==="function"&&define.amd){define(function(){return f})}else{window.tinycolor=f}})()},{}],22:[function(t,e,r){r=e.exports=n;function n(t){return t.replace(/^\s*|\s*$/g,"")}r.left=function(t){return t.replace(/^\s*/,"")};r.right=function(t){return t.replace(/\s*$/,"")}},{}],23:[function(t,e,r){"use strict";e.exports=function n(t,e,r){return Math.min(Math.max(t,e),r)}},{}]},{},[5]);
(function t(e,r,n){function i(s,a){if(!r[s]){if(!e[s]){var f=typeof require=="function"&&require;if(!a&&f)return f(s,!0);if(o)return o(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var h=r[s]={exports:{}};e[s][0].call(h.exports,function(t){var r=e[s][1][t];return i(r?r:t)},h,h.exports,t,e,r,n)}return r[s].exports}var o=typeof require=="function"&&require;for(var s=0;s<n.length;s++)i(n[s]);return i})({1:[function(t,e,r){"use strict";var n=t("../src/index.js");var i=new n({el:document.body,color:"#123456",background:"#656565"});i.onChange(function(t){document.body.style.background=t;document.querySelector("h1 a").style.color=i.color.isDark()?"#FFFFFF":"#000000"})},{"../src/index.js":17}],2:[function(t,e,r){"use strict";r.toByteArray=a;r.fromByteArray=h;var n=[];var i=[];var o=typeof Uint8Array!=="undefined"?Uint8Array:Array;function s(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var e=0,r=t.length;e<r;++e){n[e]=t[e];i[t.charCodeAt(e)]=e}i["-".charCodeAt(0)]=62;i["_".charCodeAt(0)]=63}s();function a(t){var e,r,n,s,a,f;var u=t.length;if(u%4>0){throw new Error("Invalid string. Length must be a multiple of 4")}a=t[u-2]==="="?2:t[u-1]==="="?1:0;f=new o(u*3/4-a);n=a>0?u-4:u;var h=0;for(e=0,r=0;e<n;e+=4,r+=3){s=i[t.charCodeAt(e)]<<18|i[t.charCodeAt(e+1)]<<12|i[t.charCodeAt(e+2)]<<6|i[t.charCodeAt(e+3)];f[h++]=s>>16&255;f[h++]=s>>8&255;f[h++]=s&255}if(a===2){s=i[t.charCodeAt(e)]<<2|i[t.charCodeAt(e+1)]>>4;f[h++]=s&255}else if(a===1){s=i[t.charCodeAt(e)]<<10|i[t.charCodeAt(e+1)]<<4|i[t.charCodeAt(e+2)]>>2;f[h++]=s>>8&255;f[h++]=s&255}return f}function f(t){return n[t>>18&63]+n[t>>12&63]+n[t>>6&63]+n[t&63]}function u(t,e,r){var n;var i=[];for(var o=e;o<r;o+=3){n=(t[o]<<16)+(t[o+1]<<8)+t[o+2];i.push(f(n))}return i.join("")}function h(t){var e;var r=t.length;var i=r%3;var o="";var s=[];var a=16383;for(var f=0,h=r-i;f<h;f+=a){s.push(u(t,f,f+a>h?h:f+a))}if(i===1){e=t[r-1];o+=n[e>>2];o+=n[e<<4&63];o+="=="}else if(i===2){e=(t[r-2]<<8)+t[r-1];o+=n[e>>10];o+=n[e>>4&63];o+=n[e<<2&63];o+="="}s.push(o);return s.join("")}},{}],3:[function(t,e,r){(function(e){"use strict";var n=t("base64-js");var i=t("ieee754");var o=t("isarray");r.Buffer=u;r.SlowBuffer=m;r.INSPECT_MAX_BYTES=50;u.TYPED_ARRAY_SUPPORT=e.TYPED_ARRAY_SUPPORT!==undefined?e.TYPED_ARRAY_SUPPORT:s();r.kMaxLength=a();function s(){try{var t=new Uint8Array(1);t.foo=function(){return 42};return t.foo()===42&&typeof t.subarray==="function"&&t.subarray(1,1).byteLength===0}catch(e){return false}}function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function f(t,e){if(a()<e){throw new RangeError("Invalid typed array length")}if(u.TYPED_ARRAY_SUPPORT){t=new Uint8Array(e);t.__proto__=u.prototype}else{if(t===null){t=new u(e)}t.length=e}return t}function u(t,e,r){if(!u.TYPED_ARRAY_SUPPORT&&!(this instanceof u)){return new u(t,e,r)}if(typeof t==="number"){if(typeof e==="string"){throw new Error("If encoding is specified then the first argument must be a string")}return p(this,t)}return h(this,t,e,r)}u.poolSize=8192;u._augment=function(t){t.__proto__=u.prototype;return t};function h(t,e,r,n){if(typeof e==="number"){throw new TypeError('"value" argument must not be a number')}if(typeof ArrayBuffer!=="undefined"&&e instanceof ArrayBuffer){return v(t,e,r,n)}if(typeof e==="string"){return d(t,e,r)}return y(t,e)}u.from=function(t,e,r){return h(null,t,e,r)};if(u.TYPED_ARRAY_SUPPORT){u.prototype.__proto__=Uint8Array.prototype;u.__proto__=Uint8Array;if(typeof Symbol!=="undefined"&&Symbol.species&&u[Symbol.species]===u){Object.defineProperty(u,Symbol.species,{value:null,configurable:true})}}function l(t){if(typeof t!=="number"){throw new TypeError('"size" argument must be a number')}}function c(t,e,r,n){l(e);if(e<=0){return f(t,e)}if(r!==undefined){return typeof n==="string"?f(t,e).fill(r,n):f(t,e).fill(r)}return f(t,e)}u.alloc=function(t,e,r){return c(null,t,e,r)};function p(t,e){l(e);t=f(t,e<0?0:b(e)|0);if(!u.TYPED_ARRAY_SUPPORT){for(var r=0;r<e;r++){t[r]=0}}return t}u.allocUnsafe=function(t){return p(null,t)};u.allocUnsafeSlow=function(t){return p(null,t)};function d(t,e,r){if(typeof r!=="string"||r===""){r="utf8"}if(!u.isEncoding(r)){throw new TypeError('"encoding" must be a valid string encoding')}var n=w(e,r)|0;t=f(t,n);t.write(e,r);return t}function g(t,e){var r=b(e.length)|0;t=f(t,r);for(var n=0;n<r;n+=1){t[n]=e[n]&255}return t}function v(t,e,r,n){e.byteLength;if(r<0||e.byteLength<r){throw new RangeError("'offset' is out of bounds")}if(e.byteLength<r+(n||0)){throw new RangeError("'length' is out of bounds")}if(n===undefined){e=new Uint8Array(e,r)}else{e=new Uint8Array(e,r,n)}if(u.TYPED_ARRAY_SUPPORT){t=e;t.__proto__=u.prototype}else{t=g(t,e)}return t}function y(t,e){if(u.isBuffer(e)){var r=b(e.length)|0;t=f(t,r);if(t.length===0){return t}e.copy(t,0,0,r);return t}if(e){if(typeof ArrayBuffer!=="undefined"&&e.buffer instanceof ArrayBuffer||"length"in e){if(typeof e.length!=="number"||tt(e.length)){return f(t,0)}return g(t,e)}if(e.type==="Buffer"&&o(e.data)){return g(t,e.data)}}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function b(t){if(t>=a()){throw new RangeError("Attempt to allocate Buffer larger than maximum "+"size: 0x"+a().toString(16)+" bytes")}return t|0}function m(t){if(+t!=t){t=0}return u.alloc(+t)}u.isBuffer=function et(t){return!!(t!=null&&t._isBuffer)};u.compare=function rt(t,e){if(!u.isBuffer(t)||!u.isBuffer(e)){throw new TypeError("Arguments must be Buffers")}if(t===e)return 0;var r=t.length;var n=e.length;for(var i=0,o=Math.min(r,n);i<o;++i){if(t[i]!==e[i]){r=t[i];n=e[i];break}}if(r<n)return-1;if(n<r)return 1;return 0};u.isEncoding=function nt(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return true;default:return false}};u.concat=function it(t,e){if(!o(t)){throw new TypeError('"list" argument must be an Array of Buffers')}if(t.length===0){return u.alloc(0)}var r;if(e===undefined){e=0;for(r=0;r<t.length;r++){e+=t[r].length}}var n=u.allocUnsafe(e);var i=0;for(r=0;r<t.length;r++){var s=t[r];if(!u.isBuffer(s)){throw new TypeError('"list" argument must be an Array of Buffers')}s.copy(n,i);i+=s.length}return n};function w(t,e){if(u.isBuffer(t)){return t.length}if(typeof ArrayBuffer!=="undefined"&&typeof ArrayBuffer.isView==="function"&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer)){return t.byteLength}if(typeof t!=="string"){t=""+t}var r=t.length;if(r===0)return 0;var n=false;for(;;){switch(e){case"ascii":case"binary":case"raw":case"raws":return r;case"utf8":case"utf-8":case undefined:return V(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return K(t).length;default:if(n)return V(t).length;e=(""+e).toLowerCase();n=true}}}u.byteLength=w;function _(t,e,r){var n=false;if(e===undefined||e<0){e=0}if(e>this.length){return""}if(r===undefined||r>this.length){r=this.length}if(r<=0){return""}r>>>=0;e>>>=0;if(r<=e){return""}if(!t)t="utf8";while(true){switch(t){case"hex":return I(this,e,r);case"utf8":case"utf-8":return T(this,e,r);case"ascii":return L(this,e,r);case"binary":return C(this,e,r);case"base64":return P(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase();n=true}}}u.prototype._isBuffer=true;function A(t,e,r){var n=t[e];t[e]=t[r];t[r]=n}u.prototype.swap16=function ot(){var t=this.length;if(t%2!==0){throw new RangeError("Buffer size must be a multiple of 16-bits")}for(var e=0;e<t;e+=2){A(this,e,e+1)}return this};u.prototype.swap32=function st(){var t=this.length;if(t%4!==0){throw new RangeError("Buffer size must be a multiple of 32-bits")}for(var e=0;e<t;e+=4){A(this,e,e+3);A(this,e+1,e+2)}return this};u.prototype.toString=function at(){var t=this.length|0;if(t===0)return"";if(arguments.length===0)return T(this,0,t);return _.apply(this,arguments)};u.prototype.equals=function ft(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(this===t)return true;return u.compare(this,t)===0};u.prototype.inspect=function ut(){var t="";var e=r.INSPECT_MAX_BYTES;if(this.length>0){t=this.toString("hex",0,e).match(/.{2}/g).join(" ");if(this.length>e)t+=" ... "}return"<Buffer "+t+">"};u.prototype.compare=function ht(t,e,r,n,i){if(!u.isBuffer(t)){throw new TypeError("Argument must be a Buffer")}if(e===undefined){e=0}if(r===undefined){r=t?t.length:0}if(n===undefined){n=0}if(i===undefined){i=this.length}if(e<0||r>t.length||n<0||i>this.length){throw new RangeError("out of range index")}if(n>=i&&e>=r){return 0}if(n>=i){return-1}if(e>=r){return 1}e>>>=0;r>>>=0;n>>>=0;i>>>=0;if(this===t)return 0;var o=i-n;var s=r-e;var a=Math.min(o,s);var f=this.slice(n,i);var h=t.slice(e,r);for(var l=0;l<a;++l){if(f[l]!==h[l]){o=f[l];s=h[l];break}}if(o<s)return-1;if(s<o)return 1;return 0};function S(t,e,r,n){var i=1;var o=t.length;var s=e.length;if(n!==undefined){n=String(n).toLowerCase();if(n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le"){if(t.length<2||e.length<2){return-1}i=2;o/=2;s/=2;r/=2}}function a(t,e){if(i===1){return t[e]}else{return t.readUInt16BE(e*i)}}var f=-1;for(var u=0;r+u<o;u++){if(a(t,r+u)===a(e,f===-1?0:u-f)){if(f===-1)f=u;if(u-f+1===s)return(r+f)*i}else{if(f!==-1)u-=u-f;f=-1}}return-1}u.prototype.indexOf=function lt(t,e,r){if(typeof e==="string"){r=e;e=0}else if(e>2147483647){e=2147483647}else if(e<-2147483648){e=-2147483648}e>>=0;if(this.length===0)return-1;if(e>=this.length)return-1;if(e<0)e=Math.max(this.length+e,0);if(typeof t==="string"){t=u.from(t,r)}if(u.isBuffer(t)){if(t.length===0){return-1}return S(this,t,e,r)}if(typeof t==="number"){if(u.TYPED_ARRAY_SUPPORT&&Uint8Array.prototype.indexOf==="function"){return Uint8Array.prototype.indexOf.call(this,t,e)}return S(this,[t],e,r)}throw new TypeError("val must be string, number or Buffer")};u.prototype.includes=function ct(t,e,r){return this.indexOf(t,e,r)!==-1};function E(t,e,r,n){r=Number(r)||0;var i=t.length-r;if(!n){n=i}else{n=Number(n);if(n>i){n=i}}var o=e.length;if(o%2!==0)throw new Error("Invalid hex string");if(n>o/2){n=o/2}for(var s=0;s<n;s++){var a=parseInt(e.substr(s*2,2),16);if(isNaN(a))return s;t[r+s]=a}return s}function x(t,e,r,n){return Q(V(e,t.length-r),t,r,n)}function R(t,e,r,n){return Q(G(e),t,r,n)}function M(t,e,r,n){return R(t,e,r,n)}function U(t,e,r,n){return Q(K(e),t,r,n)}function k(t,e,r,n){return Q(J(e,t.length-r),t,r,n)}u.prototype.write=function pt(t,e,r,n){if(e===undefined){n="utf8";r=this.length;e=0}else if(r===undefined&&typeof e==="string"){n=e;r=this.length;e=0}else if(isFinite(e)){e=e|0;if(isFinite(r)){r=r|0;if(n===undefined)n="utf8"}else{n=r;r=undefined}}else{throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported")}var i=this.length-e;if(r===undefined||r>i)r=i;if(t.length>0&&(r<0||e<0)||e>this.length){throw new RangeError("Attempt to write outside buffer bounds")}if(!n)n="utf8";var o=false;for(;;){switch(n){case"hex":return E(this,t,e,r);case"utf8":case"utf-8":return x(this,t,e,r);case"ascii":return R(this,t,e,r);case"binary":return M(this,t,e,r);case"base64":return U(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase();o=true}}};u.prototype.toJSON=function dt(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function P(t,e,r){if(e===0&&r===t.length){return n.fromByteArray(t)}else{return n.fromByteArray(t.slice(e,r))}}function T(t,e,r){r=Math.min(t.length,r);var n=[];var i=e;while(i<r){var o=t[i];var s=null;var a=o>239?4:o>223?3:o>191?2:1;if(i+a<=r){var f,u,h,l;switch(a){case 1:if(o<128){s=o}break;case 2:f=t[i+1];if((f&192)===128){l=(o&31)<<6|f&63;if(l>127){s=l}}break;case 3:f=t[i+1];u=t[i+2];if((f&192)===128&&(u&192)===128){l=(o&15)<<12|(f&63)<<6|u&63;if(l>2047&&(l<55296||l>57343)){s=l}}break;case 4:f=t[i+1];u=t[i+2];h=t[i+3];if((f&192)===128&&(u&192)===128&&(h&192)===128){l=(o&15)<<18|(f&63)<<12|(u&63)<<6|h&63;if(l>65535&&l<1114112){s=l}}}}if(s===null){s=65533;a=1}else if(s>65535){s-=65536;n.push(s>>>10&1023|55296);s=56320|s&1023}n.push(s);i+=a}return B(n)}var H=4096;function B(t){var e=t.length;if(e<=H){return String.fromCharCode.apply(String,t)}var r="";var n=0;while(n<e){r+=String.fromCharCode.apply(String,t.slice(n,n+=H))}return r}function L(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;i++){n+=String.fromCharCode(t[i]&127)}return n}function C(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;i++){n+=String.fromCharCode(t[i])}return n}function I(t,e,r){var n=t.length;if(!e||e<0)e=0;if(!r||r<0||r>n)r=n;var i="";for(var o=e;o<r;o++){i+=Z(t[o])}return i}function O(t,e,r){var n=t.slice(e,r);var i="";for(var o=0;o<n.length;o+=2){i+=String.fromCharCode(n[o]+n[o+1]*256)}return i}u.prototype.slice=function gt(t,e){var r=this.length;t=~~t;e=e===undefined?r:~~e;if(t<0){t+=r;if(t<0)t=0}else if(t>r){t=r}if(e<0){e+=r;if(e<0)e=0}else if(e>r){e=r}if(e<t)e=t;var n;if(u.TYPED_ARRAY_SUPPORT){n=this.subarray(t,e);n.__proto__=u.prototype}else{var i=e-t;n=new u(i,undefined);for(var o=0;o<i;o++){n[o]=this[o+t]}}return n};function D(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUIntLE=function vt(t,e,r){t=t|0;e=e|0;if(!r)D(t,e,this.length);var n=this[t];var i=1;var o=0;while(++o<e&&(i*=256)){n+=this[t+o]*i}return n};u.prototype.readUIntBE=function yt(t,e,r){t=t|0;e=e|0;if(!r){D(t,e,this.length)}var n=this[t+--e];var i=1;while(e>0&&(i*=256)){n+=this[t+--e]*i}return n};u.prototype.readUInt8=function bt(t,e){if(!e)D(t,1,this.length);return this[t]};u.prototype.readUInt16LE=function mt(t,e){if(!e)D(t,2,this.length);return this[t]|this[t+1]<<8};u.prototype.readUInt16BE=function wt(t,e){if(!e)D(t,2,this.length);return this[t]<<8|this[t+1]};u.prototype.readUInt32LE=function _t(t,e){if(!e)D(t,4,this.length);return(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};u.prototype.readUInt32BE=function At(t,e){if(!e)D(t,4,this.length);return this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};u.prototype.readIntLE=function St(t,e,r){t=t|0;e=e|0;if(!r)D(t,e,this.length);var n=this[t];var i=1;var o=0;while(++o<e&&(i*=256)){n+=this[t+o]*i}i*=128;if(n>=i)n-=Math.pow(2,8*e);return n};u.prototype.readIntBE=function Et(t,e,r){t=t|0;e=e|0;if(!r)D(t,e,this.length);var n=e;var i=1;var o=this[t+--n];while(n>0&&(i*=256)){o+=this[t+--n]*i}i*=128;if(o>=i)o-=Math.pow(2,8*e);return o};u.prototype.readInt8=function xt(t,e){if(!e)D(t,1,this.length);if(!(this[t]&128))return this[t];return(255-this[t]+1)*-1};u.prototype.readInt16LE=function Rt(t,e){if(!e)D(t,2,this.length);var r=this[t]|this[t+1]<<8;return r&32768?r|4294901760:r};u.prototype.readInt16BE=function Mt(t,e){if(!e)D(t,2,this.length);var r=this[t+1]|this[t]<<8;return r&32768?r|4294901760:r};u.prototype.readInt32LE=function Ut(t,e){if(!e)D(t,4,this.length);return this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};u.prototype.readInt32BE=function kt(t,e){if(!e)D(t,4,this.length);return this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};u.prototype.readFloatLE=function Pt(t,e){if(!e)D(t,4,this.length);return i.read(this,t,true,23,4)};u.prototype.readFloatBE=function Tt(t,e){if(!e)D(t,4,this.length);return i.read(this,t,false,23,4)};u.prototype.readDoubleLE=function Ht(t,e){if(!e)D(t,8,this.length);return i.read(this,t,true,52,8)};u.prototype.readDoubleBE=function Bt(t,e){if(!e)D(t,8,this.length);return i.read(this,t,false,52,8)};function Y(t,e,r,n,i,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}u.prototype.writeUIntLE=function Lt(t,e,r,n){t=+t;e=e|0;r=r|0;if(!n){var i=Math.pow(2,8*r)-1;Y(this,t,e,r,i,0)}var o=1;var s=0;this[e]=t&255;while(++s<r&&(o*=256)){this[e+s]=t/o&255}return e+r};u.prototype.writeUIntBE=function Ct(t,e,r,n){t=+t;e=e|0;r=r|0;if(!n){var i=Math.pow(2,8*r)-1;Y(this,t,e,r,i,0)}var o=r-1;var s=1;this[e+o]=t&255;while(--o>=0&&(s*=256)){this[e+o]=t/s&255}return e+r};u.prototype.writeUInt8=function It(t,e,r){t=+t;e=e|0;if(!r)Y(this,t,e,1,255,0);if(!u.TYPED_ARRAY_SUPPORT)t=Math.floor(t);this[e]=t&255;return e+1};function $(t,e,r,n){if(e<0)e=65535+e+1;for(var i=0,o=Math.min(t.length-r,2);i<o;i++){t[r+i]=(e&255<<8*(n?i:1-i))>>>(n?i:1-i)*8}}u.prototype.writeUInt16LE=function Ot(t,e,r){t=+t;e=e|0;if(!r)Y(this,t,e,2,65535,0);if(u.TYPED_ARRAY_SUPPORT){this[e]=t&255;this[e+1]=t>>>8}else{$(this,t,e,true)}return e+2};u.prototype.writeUInt16BE=function Dt(t,e,r){t=+t;e=e|0;if(!r)Y(this,t,e,2,65535,0);if(u.TYPED_ARRAY_SUPPORT){this[e]=t>>>8;this[e+1]=t&255}else{$(this,t,e,false)}return e+2};function j(t,e,r,n){if(e<0)e=4294967295+e+1;for(var i=0,o=Math.min(t.length-r,4);i<o;i++){t[r+i]=e>>>(n?i:3-i)*8&255}}u.prototype.writeUInt32LE=function Yt(t,e,r){t=+t;e=e|0;if(!r)Y(this,t,e,4,4294967295,0);if(u.TYPED_ARRAY_SUPPORT){this[e+3]=t>>>24;this[e+2]=t>>>16;this[e+1]=t>>>8;this[e]=t&255}else{j(this,t,e,true)}return e+4};u.prototype.writeUInt32BE=function $t(t,e,r){t=+t;e=e|0;if(!r)Y(this,t,e,4,4294967295,0);if(u.TYPED_ARRAY_SUPPORT){this[e]=t>>>24;this[e+1]=t>>>16;this[e+2]=t>>>8;this[e+3]=t&255}else{j(this,t,e,false)}return e+4};u.prototype.writeIntLE=function jt(t,e,r,n){t=+t;e=e|0;if(!n){var i=Math.pow(2,8*r-1);Y(this,t,e,r,i-1,-i)}var o=0;var s=1;var a=0;this[e]=t&255;while(++o<r&&(s*=256)){if(t<0&&a===0&&this[e+o-1]!==0){a=1}this[e+o]=(t/s>>0)-a&255}return e+r};u.prototype.writeIntBE=function Ft(t,e,r,n){t=+t;e=e|0;if(!n){var i=Math.pow(2,8*r-1);Y(this,t,e,r,i-1,-i)}var o=r-1;var s=1;var a=0;this[e+o]=t&255;while(--o>=0&&(s*=256)){if(t<0&&a===0&&this[e+o+1]!==0){a=1}this[e+o]=(t/s>>0)-a&255}return e+r};u.prototype.writeInt8=function Nt(t,e,r){t=+t;e=e|0;if(!r)Y(this,t,e,1,127,-128);if(!u.TYPED_ARRAY_SUPPORT)t=Math.floor(t);if(t<0)t=255+t+1;this[e]=t&255;return e+1};u.prototype.writeInt16LE=function qt(t,e,r){t=+t;e=e|0;if(!r)Y(this,t,e,2,32767,-32768);if(u.TYPED_ARRAY_SUPPORT){this[e]=t&255;this[e+1]=t>>>8}else{$(this,t,e,true)}return e+2};u.prototype.writeInt16BE=function zt(t,e,r){t=+t;e=e|0;if(!r)Y(this,t,e,2,32767,-32768);if(u.TYPED_ARRAY_SUPPORT){this[e]=t>>>8;this[e+1]=t&255}else{$(this,t,e,false)}return e+2};u.prototype.writeInt32LE=function Xt(t,e,r){t=+t;e=e|0;if(!r)Y(this,t,e,4,2147483647,-2147483648);if(u.TYPED_ARRAY_SUPPORT){this[e]=t&255;this[e+1]=t>>>8;this[e+2]=t>>>16;this[e+3]=t>>>24}else{j(this,t,e,true)}return e+4};u.prototype.writeInt32BE=function Wt(t,e,r){t=+t;e=e|0;if(!r)Y(this,t,e,4,2147483647,-2147483648);if(t<0)t=4294967295+t+1;if(u.TYPED_ARRAY_SUPPORT){this[e]=t>>>24;this[e+1]=t>>>16;this[e+2]=t>>>8;this[e+3]=t&255}else{j(this,t,e,false)}return e+4};function F(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function N(t,e,r,n,o){if(!o){F(t,e,r,4,3.4028234663852886e38,-3.4028234663852886e38)}i.write(t,e,r,n,23,4);return r+4}u.prototype.writeFloatLE=function Zt(t,e,r){return N(this,t,e,true,r)};u.prototype.writeFloatBE=function Vt(t,e,r){return N(this,t,e,false,r)};function q(t,e,r,n,o){if(!o){F(t,e,r,8,1.7976931348623157e308,-1.7976931348623157e308)}i.write(t,e,r,n,52,8);return r+8}u.prototype.writeDoubleLE=function Gt(t,e,r){return q(this,t,e,true,r)};u.prototype.writeDoubleBE=function Jt(t,e,r){return q(this,t,e,false,r)};u.prototype.copy=function Kt(t,e,r,n){if(!r)r=0;if(!n&&n!==0)n=this.length;if(e>=t.length)e=t.length;if(!e)e=0;if(n>0&&n<r)n=r;if(n===r)return 0;if(t.length===0||this.length===0)return 0;if(e<0){throw new RangeError("targetStart out of bounds")}if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");if(n>this.length)n=this.length;if(t.length-e<n-r){n=t.length-e+r}var i=n-r;var o;if(this===t&&r<e&&e<n){for(o=i-1;o>=0;o--){t[o+e]=this[o+r]}}else if(i<1e3||!u.TYPED_ARRAY_SUPPORT){for(o=0;o<i;o++){t[o+e]=this[o+r]}}else{Uint8Array.prototype.set.call(t,this.subarray(r,r+i),e)}return i};u.prototype.fill=function Qt(t,e,r,n){if(typeof t==="string"){if(typeof e==="string"){n=e;e=0;r=this.length}else if(typeof r==="string"){n=r;r=this.length}if(t.length===1){var i=t.charCodeAt(0);if(i<256){t=i}}if(n!==undefined&&typeof n!=="string"){throw new TypeError("encoding must be a string")}if(typeof n==="string"&&!u.isEncoding(n)){throw new TypeError("Unknown encoding: "+n)}}else if(typeof t==="number"){t=t&255}if(e<0||this.length<e||this.length<r){throw new RangeError("Out of range index")}if(r<=e){return this}e=e>>>0;r=r===undefined?this.length:r>>>0;if(!t)t=0;var o;if(typeof t==="number"){for(o=e;o<r;o++){this[o]=t}}else{var s=u.isBuffer(t)?t:V(new u(t,n).toString());var a=s.length;for(o=0;o<r-e;o++){this[o+e]=s[o%a]}}return this};var z=/[^+\/0-9A-Za-z-_]/g;function X(t){t=W(t).replace(z,"");if(t.length<2)return"";while(t.length%4!==0){t=t+"="}return t}function W(t){if(t.trim)return t.trim();return t.replace(/^\s+|\s+$/g,"")}function Z(t){if(t<16)return"0"+t.toString(16);return t.toString(16)}function V(t,e){e=e||Infinity;var r;var n=t.length;var i=null;var o=[];for(var s=0;s<n;s++){r=t.charCodeAt(s);if(r>55295&&r<57344){if(!i){if(r>56319){if((e-=3)>-1)o.push(239,191,189);continue}else if(s+1===n){if((e-=3)>-1)o.push(239,191,189);continue}i=r;continue}if(r<56320){if((e-=3)>-1)o.push(239,191,189);i=r;continue}r=(i-55296<<10|r-56320)+65536}else if(i){if((e-=3)>-1)o.push(239,191,189)}i=null;if(r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else{throw new Error("Invalid code point")}}return o}function G(t){var e=[];for(var r=0;r<t.length;r++){e.push(t.charCodeAt(r)&255)}return e}function J(t,e){var r,n,i;var o=[];for(var s=0;s<t.length;s++){if((e-=2)<0)break;r=t.charCodeAt(s);n=r>>8;i=r%256;o.push(i);o.push(n)}return o}function K(t){return n.toByteArray(X(t))}function Q(t,e,r,n){for(var i=0;i<n;i++){if(i+r>=e.length||i>=t.length)break;e[i+r]=t[i]}return i}function tt(t){return t!==t}}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"base64-js":2,ieee754:8,isarray:12}],4:[function(t,e,r){if(typeof e!=="undefined"){e.exports=n}function n(t){if(t)return i(t)}function i(t){for(var e in n.prototype){t[e]=n.prototype[e]}return t}n.prototype.on=n.prototype.addEventListener=function(t,e){this._callbacks=this._callbacks||{};(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e);return this};n.prototype.once=function(t,e){function r(){this.off(t,r);e.apply(this,arguments)}r.fn=e;this.on(t,r);return this};n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(t,e){this._callbacks=this._callbacks||{};if(0==arguments.length){this._callbacks={};return this}var r=this._callbacks["$"+t];if(!r)return this;if(1==arguments.length){delete this._callbacks["$"+t];return this}var n;for(var i=0;i<r.length;i++){n=r[i];if(n===e||n.fn===e){r.splice(i,1);break}}return this};n.prototype.emit=function(t){this._callbacks=this._callbacks||{};var e=[].slice.call(arguments,1),r=this._callbacks["$"+t];if(r){r=r.slice(0);for(var n=0,i=r.length;n<i;++n){r[n].apply(this,e)}}return this};n.prototype.listeners=function(t){this._callbacks=this._callbacks||{};return this._callbacks["$"+t]||[]};n.prototype.hasListeners=function(t){return!!this.listeners(t).length}},{}],5:[function(t,e,r){"use strict";var n=t("prefix");var i=t("is-array");var o=t("./lib/properties");var s=t("./lib/default-unit");var a=Object.prototype.hasOwnProperty;var f=n("transform");var u={x:"translateX",y:"translateY",z:"translateZ",origin:"transformOrigin"};r=e.exports=h;function h(t,e){var r=[];var u;var h;var l;d(e);for(u in e){if(!a.call(e,u))continue;h=e[u];if(a.call(o.transform,u)){l=o.transform[u];if(i(h)){h=h.join(l.separator)}r.push(u+"("+s(h,l.defaultUnit,l.separator)+")");continue}if(a.call(o,u)){l=o[u];if(i(h)){h=h.join(l.separator)}t.style[n(u)]=s(h,l.defaultUnit,l.separator);continue}console.warn("dom-transform: this property (`"+u+"`) is not supported.")}t.style[f]=r.join(" ")}r.get=l;function l(t,e){var r=t.style;if(typeof e==="string"){if(a.call(o.transform,e)){return r[f]}return r[n(e)]}if(!e){e=g()}var i={};e.forEach(function(t){i[t]=r[n(t)]});return i}r.reset=c;function c(t,e){var r=t.style;if(typeof e==="string"){r[n(e)]=null;return}if(!e){e=g()}e.forEach(function(t){r[n(t)]=null})}r.isSupported=p;function p(){return f.length>0}function d(t){var e;for(e in t){if(a.call(u,e)){t[u[e]]=t[e];delete t[e]}}}function g(){return Object.keys(o).map(function(t){return t})}},{"./lib/default-unit":6,"./lib/properties":7,"is-array":9,prefix:14}],6:[function(t,e,r){"use strict";var n=t("trim");var i=/^-?\d+(\.\d+)?$/;e.exports=function(t,e,r){r=r||",";if(typeof t==="number"){return""+t+e}var o=new RegExp(r,"g");var s=t.split(o.test(t)?r:" ");return s.map(function(t){t=n(t);if(i.test(t)){t+=e}return t}).join(r)}},{trim:16}],7:[function(t,e,r){"use strict";e.exports={transform:{translate:{defaultUnit:"px"},translate3d:{defaultUnit:"px"},translateX:{defaultUnit:"px"},translateY:{defaultUnit:"px"},translateZ:{defaultUnit:"px"},scale:{defaultUnit:""},scale3d:{defaultUnit:""},scaleX:{defaultUnit:""},scaleY:{defaultUnit:""},scaleZ:{defaultUnit:""},rotate:{defaultUnit:"deg"},rotate3d:{defaultUnit:""},rotateX:{defaultUnit:"deg"},rotateY:{defaultUnit:"deg"},rotateZ:{defaultUnit:"deg"},skew:{defaultUnit:"deg"},skewX:{defaultUnit:"deg"},skewY:{defaultUnit:"deg"},perspective:{defaultUnit:"px"},matrix:{defaultUnit:""},matrix3d:{defaultUnit:""}},transformOrigin:{defaultUnit:"px",separator:" "}}},{}],8:[function(t,e,r){r.read=function(t,e,r,n,i){var o,s;var a=i*8-n-1;var f=(1<<a)-1;var u=f>>1;var h=-7;var l=r?i-1:0;var c=r?-1:1;var p=t[e+l];l+=c;o=p&(1<<-h)-1;p>>=-h;h+=a;for(;h>0;o=o*256+t[e+l],l+=c,h-=8){}s=o&(1<<-h)-1;o>>=-h;h+=n;for(;h>0;s=s*256+t[e+l],l+=c,h-=8){}if(o===0){o=1-u}else if(o===f){return s?NaN:(p?-1:1)*Infinity}else{s=s+Math.pow(2,n);o=o-u}return(p?-1:1)*s*Math.pow(2,o-n)};r.write=function(t,e,r,n,i,o){var s,a,f;var u=o*8-i-1;var h=(1<<u)-1;var l=h>>1;var c=i===23?Math.pow(2,-24)-Math.pow(2,-77):0;var p=n?0:o-1;var d=n?1:-1;var g=e<0||e===0&&1/e<0?1:0;e=Math.abs(e);if(isNaN(e)||e===Infinity){a=isNaN(e)?1:0;s=h}else{s=Math.floor(Math.log(e)/Math.LN2);if(e*(f=Math.pow(2,-s))<1){s--;f*=2}if(s+l>=1){e+=c/f}else{e+=c*Math.pow(2,1-l)}if(e*f>=2){s++;f/=2}if(s+l>=h){a=0;s=h}else if(s+l>=1){a=(e*f-1)*Math.pow(2,i);s=s+l}else{a=e*Math.pow(2,l-1)*Math.pow(2,i);s=0}}for(;i>=8;t[r+p]=a&255,p+=d,a/=256,i-=8){}s=s<<i|a;u+=i;for(;u>0;t[r+p]=s&255,p+=d,s/=256,u-=8){}t[r+p-d]|=g*128}},{}],9:[function(t,e,r){var n=Array.isArray;var i=Object.prototype.toString;e.exports=n||function(t){return!!t&&"[object Array]"==i.call(t)}},{}],10:[function(t,e,r){e.exports=function(t){return!!(t!=null&&(t._isBuffer||t.constructor&&typeof t.constructor.isBuffer==="function"&&t.constructor.isBuffer(t)))}},{}],11:[function(t,e,r){"use strict";var n=t("kind-of");e.exports=function i(t){var e=n(t);if(e!=="number"&&e!=="string"){return false}var r=+t;return r-r+1>=0&&t!==""}},{"kind-of":13}],12:[function(t,e,r){var n={}.toString;e.exports=Array.isArray||function(t){return n.call(t)=="[object Array]"}},{}],13:[function(t,e,r){(function(r){var n=t("is-buffer");var i=Object.prototype.toString;e.exports=function o(t){if(typeof t==="undefined"){return"undefined"}if(t===null){return"null"}if(t===true||t===false||t instanceof Boolean){return"boolean"}if(typeof t==="string"||t instanceof String){return"string"}if(typeof t==="number"||t instanceof Number){return"number"}if(typeof t==="function"||t instanceof Function){return"function"}if(typeof Array.isArray!=="undefined"&&Array.isArray(t)){return"array"}if(t instanceof RegExp){return"regexp"}if(t instanceof Date){return"date"}var e=i.call(t);if(e==="[object RegExp]"){return"regexp"}if(e==="[object Date]"){return"date"}if(e==="[object Arguments]"){return"arguments"}if(typeof r!=="undefined"&&n(t)){return"buffer"}if(e==="[object Set]"){return"set"}if(e==="[object WeakSet]"){return"weakset"}if(e==="[object Map]"){return"map"}if(e==="[object WeakMap]"){return"weakmap"}if(e==="[object Symbol]"){return"symbol"}if(e==="[object Int8Array]"){return"int8array"}if(e==="[object Uint8Array]"){return"uint8array"}if(e==="[object Uint8ClampedArray]"){return"uint8clampedarray"}if(e==="[object Int16Array]"){return"int16array"}if(e==="[object Uint16Array]"){return"uint16array"}if(e==="[object Int32Array]"){return"int32array"}if(e==="[object Uint32Array]"){return"uint32array"}if(e==="[object Float32Array]"){return"float32array"}if(e==="[object Float64Array]"){return"float64array"}return"object"}}).call(this,t("buffer").Buffer)},{buffer:3,"is-buffer":10}],14:[function(t,e,r){function n(t){return t}e.exports=n;e.exports.dash=n;e.exports.dash=n},{}],15:[function(t,e,r){(function(){var t=/^\s+/,r=/\s+$/,n=0,i=Math,o=i.round,s=i.min,a=i.max,f=i.random;function u(t,e){t=t?t:"";e=e||{};if(t instanceof u){return t}if(!(this instanceof u)){return new u(t,e)}var r=h(t);this._originalInput=t,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=o(100*this._a)/100,this._format=e.format||r.format;this._gradientType=e.gradientType;if(this._r<1){this._r=o(this._r)}if(this._g<1){this._g=o(this._g)}if(this._b<1){this._b=o(this._b)}this._ok=r.ok;this._tc_id=n++}u.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb();var e,r,n,i,o,s;e=t.r/255;r=t.g/255;n=t.b/255;if(e<=.03928){i=e/12.92}else{i=Math.pow((e+.055)/1.055,2.4)}if(r<=.03928){o=r/12.92}else{o=Math.pow((r+.055)/1.055,2.4)}if(n<=.03928){s=n/12.92}else{s=Math.pow((n+.055)/1.055,2.4)}return.2126*i+.7152*o+.0722*s},setAlpha:function(t){this._a=L(t);this._roundA=o(100*this._a)/100;return this},toHsv:function(){var t=d(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=d(this._r,this._g,this._b);var e=o(t.h*360),r=o(t.s*100),n=o(t.v*100);return this._a==1?"hsv("+e+", "+r+"%, "+n+"%)":"hsva("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var t=c(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=c(this._r,this._g,this._b);var e=o(t.h*360),r=o(t.s*100),n=o(t.l*100);return this._a==1?"hsl("+e+", "+r+"%, "+n+"%)":"hsla("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(t){return v(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(){return y(this._r,this._g,this._b,this._a)},toHex8String:function(){return"#"+this.toHex8()},toRgb:function(){return{r:o(this._r),g:o(this._g),b:o(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+o(this._r)+", "+o(this._g)+", "+o(this._b)+")":"rgba("+o(this._r)+", "+o(this._g)+", "+o(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:o(C(this._r,255)*100)+"%",g:o(C(this._g,255)*100)+"%",b:o(C(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+o(C(this._r,255)*100)+"%, "+o(C(this._g,255)*100)+"%, "+o(C(this._b,255)*100)+"%)":"rgba("+o(C(this._r,255)*100)+"%, "+o(C(this._g,255)*100)+"%, "+o(C(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){if(this._a===0){return"transparent"}if(this._a<1){return false;
}return H[v(this._r,this._g,this._b,true)]||false},toFilter:function(t){var e="#"+y(this._r,this._g,this._b,this._a);var r=e;var n=this._gradientType?"GradientType = 1, ":"";if(t){var i=u(t);r=i.toHex8String()}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+e+",endColorstr="+r+")"},toString:function(t){var e=!!t;t=t||this._format;var r=false;var n=this._a<1&&this._a>=0;var i=!e&&n&&(t==="hex"||t==="hex6"||t==="hex3"||t==="name");if(i){if(t==="name"&&this._a===0){return this.toName()}return this.toRgbString()}if(t==="rgb"){r=this.toRgbString()}if(t==="prgb"){r=this.toPercentageRgbString()}if(t==="hex"||t==="hex6"){r=this.toHexString()}if(t==="hex3"){r=this.toHexString(true)}if(t==="hex8"){r=this.toHex8String()}if(t==="name"){r=this.toName()}if(t==="hsl"){r=this.toHslString()}if(t==="hsv"){r=this.toHsvString()}return r||this.toHexString()},clone:function(){return u(this.toString())},_applyModification:function(t,e){var r=t.apply(null,[this].concat([].slice.call(e)));this._r=r._r;this._g=r._g;this._b=r._b;this.setAlpha(r._a);return this},lighten:function(){return this._applyModification(_,arguments)},brighten:function(){return this._applyModification(A,arguments)},darken:function(){return this._applyModification(S,arguments)},desaturate:function(){return this._applyModification(b,arguments)},saturate:function(){return this._applyModification(m,arguments)},greyscale:function(){return this._applyModification(w,arguments)},spin:function(){return this._applyModification(E,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(k,arguments)},complement:function(){return this._applyCombination(x,arguments)},monochromatic:function(){return this._applyCombination(P,arguments)},splitcomplement:function(){return this._applyCombination(U,arguments)},triad:function(){return this._applyCombination(R,arguments)},tetrad:function(){return this._applyCombination(M,arguments)}};u.fromRatio=function(t,e){if(typeof t=="object"){var r={};for(var n in t){if(t.hasOwnProperty(n)){if(n==="a"){r[n]=t[n]}else{r[n]=j(t[n])}}}t=r}return u(t,e)};function h(t){var e={r:0,g:0,b:0};var r=1;var n=false;var i=false;if(typeof t=="string"){t=z(t)}if(typeof t=="object"){if(t.hasOwnProperty("r")&&t.hasOwnProperty("g")&&t.hasOwnProperty("b")){e=l(t.r,t.g,t.b);n=true;i=String(t.r).substr(-1)==="%"?"prgb":"rgb"}else if(t.hasOwnProperty("h")&&t.hasOwnProperty("s")&&t.hasOwnProperty("v")){t.s=j(t.s);t.v=j(t.v);e=g(t.h,t.s,t.v);n=true;i="hsv"}else if(t.hasOwnProperty("h")&&t.hasOwnProperty("s")&&t.hasOwnProperty("l")){t.s=j(t.s);t.l=j(t.l);e=p(t.h,t.s,t.l);n=true;i="hsl"}if(t.hasOwnProperty("a")){r=t.a}}r=L(r);return{ok:n,format:t.format||i,r:s(255,a(e.r,0)),g:s(255,a(e.g,0)),b:s(255,a(e.b,0)),a:r}}function l(t,e,r){return{r:C(t,255)*255,g:C(e,255)*255,b:C(r,255)*255}}function c(t,e,r){t=C(t,255);e=C(e,255);r=C(r,255);var n=a(t,e,r),i=s(t,e,r);var o,f,u=(n+i)/2;if(n==i){o=f=0}else{var h=n-i;f=u>.5?h/(2-n-i):h/(n+i);switch(n){case t:o=(e-r)/h+(e<r?6:0);break;case e:o=(r-t)/h+2;break;case r:o=(t-e)/h+4;break}o/=6}return{h:o,s:f,l:u}}function p(t,e,r){var n,i,o;t=C(t,360);e=C(e,100);r=C(r,100);function s(t,e,r){if(r<0)r+=1;if(r>1)r-=1;if(r<1/6)return t+(e-t)*6*r;if(r<1/2)return e;if(r<2/3)return t+(e-t)*(2/3-r)*6;return t}if(e===0){n=i=o=r}else{var a=r<.5?r*(1+e):r+e-r*e;var f=2*r-a;n=s(f,a,t+1/3);i=s(f,a,t);o=s(f,a,t-1/3)}return{r:n*255,g:i*255,b:o*255}}function d(t,e,r){t=C(t,255);e=C(e,255);r=C(r,255);var n=a(t,e,r),i=s(t,e,r);var o,f,u=n;var h=n-i;f=n===0?0:h/n;if(n==i){o=0}else{switch(n){case t:o=(e-r)/h+(e<r?6:0);break;case e:o=(r-t)/h+2;break;case r:o=(t-e)/h+4;break}o/=6}return{h:o,s:f,v:u}}function g(t,e,r){t=C(t,360)*6;e=C(e,100);r=C(r,100);var n=i.floor(t),o=t-n,s=r*(1-e),a=r*(1-o*e),f=r*(1-(1-o)*e),u=n%6,h=[r,a,s,s,f,r][u],l=[f,r,r,a,s,s][u],c=[s,s,f,r,r,a][u];return{r:h*255,g:l*255,b:c*255}}function v(t,e,r,n){var i=[$(o(t).toString(16)),$(o(e).toString(16)),$(o(r).toString(16))];if(n&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)){return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)}return i.join("")}function y(t,e,r,n){var i=[$(F(n)),$(o(t).toString(16)),$(o(e).toString(16)),$(o(r).toString(16))];return i.join("")}u.equals=function(t,e){if(!t||!e){return false}return u(t).toRgbString()==u(e).toRgbString()};u.random=function(){return u.fromRatio({r:f(),g:f(),b:f()})};function b(t,e){e=e===0?0:e||10;var r=u(t).toHsl();r.s-=e/100;r.s=I(r.s);return u(r)}function m(t,e){e=e===0?0:e||10;var r=u(t).toHsl();r.s+=e/100;r.s=I(r.s);return u(r)}function w(t){return u(t).desaturate(100)}function _(t,e){e=e===0?0:e||10;var r=u(t).toHsl();r.l+=e/100;r.l=I(r.l);return u(r)}function A(t,e){e=e===0?0:e||10;var r=u(t).toRgb();r.r=a(0,s(255,r.r-o(255*-(e/100))));r.g=a(0,s(255,r.g-o(255*-(e/100))));r.b=a(0,s(255,r.b-o(255*-(e/100))));return u(r)}function S(t,e){e=e===0?0:e||10;var r=u(t).toHsl();r.l-=e/100;r.l=I(r.l);return u(r)}function E(t,e){var r=u(t).toHsl();var n=(o(r.h)+e)%360;r.h=n<0?360+n:n;return u(r)}function x(t){var e=u(t).toHsl();e.h=(e.h+180)%360;return u(e)}function R(t){var e=u(t).toHsl();var r=e.h;return[u(t),u({h:(r+120)%360,s:e.s,l:e.l}),u({h:(r+240)%360,s:e.s,l:e.l})]}function M(t){var e=u(t).toHsl();var r=e.h;return[u(t),u({h:(r+90)%360,s:e.s,l:e.l}),u({h:(r+180)%360,s:e.s,l:e.l}),u({h:(r+270)%360,s:e.s,l:e.l})]}function U(t){var e=u(t).toHsl();var r=e.h;return[u(t),u({h:(r+72)%360,s:e.s,l:e.l}),u({h:(r+216)%360,s:e.s,l:e.l})]}function k(t,e,r){e=e||6;r=r||30;var n=u(t).toHsl();var i=360/r;var o=[u(t)];for(n.h=(n.h-(i*e>>1)+720)%360;--e;){n.h=(n.h+i)%360;o.push(u(n))}return o}function P(t,e){e=e||6;var r=u(t).toHsv();var n=r.h,i=r.s,o=r.v;var s=[];var a=1/e;while(e--){s.push(u({h:n,s:i,v:o}));o=(o+a)%1}return s}u.mix=function(t,e,r){r=r===0?0:r||50;var n=u(t).toRgb();var i=u(e).toRgb();var o=r/100;var s=o*2-1;var a=i.a-n.a;var f;if(s*a==-1){f=s}else{f=(s+a)/(1+s*a)}f=(f+1)/2;var h=1-f;var l={r:i.r*f+n.r*h,g:i.g*f+n.g*h,b:i.b*f+n.b*h,a:i.a*o+n.a*(1-o)};return u(l)};u.readability=function(t,e){var r=u(t);var n=u(e);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)};u.isReadable=function(t,e,r){var n=u.readability(t,e);var i,o;o=false;i=X(r);switch(i.level+i.size){case"AAsmall":case"AAAlarge":o=n>=4.5;break;case"AAlarge":o=n>=3;break;case"AAAsmall":o=n>=7;break}return o};u.mostReadable=function(t,e,r){var n=null;var i=0;var o;var s,a,f;r=r||{};s=r.includeFallbackColors;a=r.level;f=r.size;for(var h=0;h<e.length;h++){o=u.readability(t,e[h]);if(o>i){i=o;n=u(e[h])}}if(u.isReadable(t,n,{level:a,size:f})||!s){return n}else{r.includeFallbackColors=false;return u.mostReadable(t,["#fff","#000"],r)}};var T=u.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",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:"f0f",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",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",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",rebeccapurple:"663399",red:"f00",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:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var H=u.hexNames=B(T);function B(t){var e={};for(var r in t){if(t.hasOwnProperty(r)){e[t[r]]=r}}return e}function L(t){t=parseFloat(t);if(isNaN(t)||t<0||t>1){t=1}return t}function C(t,e){if(D(t)){t="100%"}var r=Y(t);t=s(e,a(0,parseFloat(t)));if(r){t=parseInt(t*e,10)/100}if(i.abs(t-e)<1e-6){return 1}return t%e/parseFloat(e)}function I(t){return s(1,a(0,t))}function O(t){return parseInt(t,16)}function D(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function Y(t){return typeof t==="string"&&t.indexOf("%")!=-1}function $(t){return t.length==1?"0"+t:""+t}function j(t){if(t<=1){t=t*100+"%"}return t}function F(t){return Math.round(parseFloat(t)*255).toString(16)}function N(t){return O(t)/255}var q=function(){var t="[-\\+]?\\d+%?";var e="[-\\+]?\\d*\\.\\d+%?";var r="(?:"+e+")|(?:"+t+")";var n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";var i="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function z(e){e=e.replace(t,"").replace(r,"").toLowerCase();var n=false;if(T[e]){e=T[e];n=true}else if(e=="transparent"){return{r:0,g:0,b:0,a:0,format:"name"}}var i;if(i=q.rgb.exec(e)){return{r:i[1],g:i[2],b:i[3]}}if(i=q.rgba.exec(e)){return{r:i[1],g:i[2],b:i[3],a:i[4]}}if(i=q.hsl.exec(e)){return{h:i[1],s:i[2],l:i[3]}}if(i=q.hsla.exec(e)){return{h:i[1],s:i[2],l:i[3],a:i[4]}}if(i=q.hsv.exec(e)){return{h:i[1],s:i[2],v:i[3]}}if(i=q.hsva.exec(e)){return{h:i[1],s:i[2],v:i[3],a:i[4]}}if(i=q.hex8.exec(e)){return{a:N(i[1]),r:O(i[2]),g:O(i[3]),b:O(i[4]),format:n?"name":"hex8"}}if(i=q.hex6.exec(e)){return{r:O(i[1]),g:O(i[2]),b:O(i[3]),format:n?"name":"hex"}}if(i=q.hex3.exec(e)){return{r:O(i[1]+""+i[1]),g:O(i[2]+""+i[2]),b:O(i[3]+""+i[3]),format:n?"name":"hex"}}return false}function X(t){var e,r;t=t||{level:"AA",size:"small"};e=(t.level||"AA").toUpperCase();r=(t.size||"small").toLowerCase();if(e!=="AA"&&e!=="AAA"){e="AA"}if(r!=="small"&&r!=="large"){r="small"}return{level:e,size:r}}if(typeof e!=="undefined"&&e.exports){e.exports=u}else if(typeof define==="function"&&define.amd){define(function(){return u})}else{window.tinycolor=u}})()},{}],16:[function(t,e,r){r=e.exports=n;function n(t){return t.replace(/^\s*|\s*$/g,"")}r.left=function(t){return t.replace(/^\s*/,"")};r.right=function(t){return t.replace(/\s*$/,"")}},{}],17:[function(t,e,r){"use strict";var n=t("component-emitter");var i=t("is-number");var o=t("tinycolor2");var s=t("dom-transform");function a(t){t=t||{};this.color=null;this.width=0;this.widthUnits="px";this.height=0;this.heightUnits="px";this.hue=0;this.choosing=false;this.position={x:0,y:0};this.huePosition=0;this.saturationWidth=0;this.maxHue=0;this.inputIsNumber=false;this._onSaturationMouseDown=this._onSaturationMouseDown.bind(this);this._onSaturationMouseMove=this._onSaturationMouseMove.bind(this);this._onSaturationMouseUp=this._onSaturationMouseUp.bind(this);this._onHueMouseDown=this._onHueMouseDown.bind(this);this._onHueMouseMove=this._onHueMouseMove.bind(this);this._onHueMouseUp=this._onHueMouseUp.bind(this);this.$el=document.createElement("div");this.$el.className="Scp";this.$el.innerHTML=['<div class="Scp-saturation">','<div class="Scp-brightness"></div>','<div class="Scp-sbSelector"></div>',"</div>",'<div class="Scp-hue">','<div class="Scp-hSelector"></div>',"</div>"].join("");this.$saturation=this.$el.querySelector(".Scp-saturation");this.$hue=this.$el.querySelector(".Scp-hue");this.$sbSelector=this.$el.querySelector(".Scp-sbSelector");this.$hSelector=this.$el.querySelector(".Scp-hSelector");this.$saturation.addEventListener("mousedown",this._onSaturationMouseDown);this.$saturation.addEventListener("touchstart",this._onSaturationMouseDown);this.$hue.addEventListener("mousedown",this._onHueMouseDown);this.$hue.addEventListener("touchstart",this._onHueMouseDown);if(t.el){this.appendTo(t.el)}if(t.background){this.setBackgroundColor(t.background)}if(t.widthUnits){this.widthUnits=t.widthUnits}if(t.heightUnits){this.heightUnits=t.heightUnits}this.setSize(t.width||175,t.height||150);this.setColor(t.color);return this}n(a.prototype);a.prototype.appendTo=function(t){domElement.appendChild(this.$el);return this};a.prototype.remove=function(){this._onSaturationMouseUp();this._onHueMouseUp();this.$saturation.removeEventListener("mousedown",this._onSaturationMouseDown);this.$saturation.removeEventListener("touchstart",this._onSaturationMouseDown);this.$hue.removeEventListener("mousedown",this._onHueMouseDown);this.$hue.removeEventListener("touchstart",this._onHueMouseDown);if(this.$el.parentNode){this.$el.parentNode.removeChild(this.$el)}};a.prototype.setColor=function(t){if(i(t)){this.inputIsNumber=true;t="#"+("00000"+(t|0).toString(16)).substr(-6)}else{this.inputIsNumber=false}this.color=o(t);var e=this.color.toHsv();if(!isNaN(e.h)){this.hue=e.h}this._moveSelectorTo(this.saturationWidth*e.s,(1-e.v)*this.height);this._moveHueTo((1-this.hue/360)*this.height);this._updateHue();return this};a.prototype.setSize=function(t,e){this.width=t;this.height=e;this.$el.style.width=this.width+this.widthUnits;this.$el.style.height=this.height+this.heightUnits;this.saturationWidth=this.width-25;this.maxHue=this.height-2;return this};a.prototype.setBackgroundColor=function(t){if(i(t)){t="#"+("00000"+(t|0).toString(16)).substr(-6)}this.$el.style.padding="5px";this.$el.style.background=o(t).toHexString();return this};a.prototype.setNoBackground=function(){this.$el.style.padding="0px";this.$el.style.background="none"};a.prototype.onChange=function(t){this.on("update",t);this.emit("update",this.getHexString());return this};a.prototype.getColor=function(){if(this.inputIsNumber){return this.getHexNumber()}return this.color.toString()};a.prototype.getHexString=function(){return this.color.toHexString().toUpperCase()};a.prototype.getHexNumber=function(){return parseInt(this.color.toHex(),16)};a.prototype.getRGB=function(){return this.color.toRgb()};a.prototype.getHSV=function(){return this.color.toHsv()};a.prototype.isDark=function(){return this.color.isDark()};a.prototype.isLight=function(){return this.color.isLight()};a.prototype._moveSelectorTo=function(t,e){this.position.x=f(t,0,this.saturationWidth);this.position.y=f(e,0,this.height);s(this.$sbSelector,{x:this.position.x,y:this.position.y})};a.prototype._updateColorFromPosition=function(){this.color=o({h:this.hue,s:this.position.x/this.saturationWidth,v:1-this.position.y/this.height});this._updateColor()};a.prototype._moveHueTo=function(t){this.huePosition=f(t,0,this.maxHue);s(this.$hSelector,{y:this.huePosition})};a.prototype._updateHueFromPosition=function(){var t=this.color.toHsv();this.hue=360*(1-this.huePosition/this.maxHue);this.color=o({h:this.hue,s:t.s,v:t.v});this._updateHue()};a.prototype._updateHue=function(){var t=o({h:this.hue,s:1,v:1});this.$saturation.style.background="linear-gradient(to right, #fff, "+t.toHexString()+")";this._updateColor()};a.prototype._updateColor=function(){this.$sbSelector.style.background=this.color.toHexString();this.$sbSelector.style.borderColor=this.color.isDark()?"#fff":"#000";this.emit("update",this.color.toHexString())};a.prototype._onSaturationMouseDown=function(t){this.choosing=true;var e=this.$saturation.getBoundingClientRect();var r=u(t).x;var n=u(t).y;this._moveSelectorTo(r-e.left,n-e.top);this._updateColorFromPosition();window.addEventListener("mouseup",this._onSaturationMouseUp);window.addEventListener("touchend",this._onSaturationMouseUp);window.addEventListener("mousemove",this._onSaturationMouseMove);window.addEventListener("touchmove",this._onSaturationMouseMove);t.preventDefault()};a.prototype._onSaturationMouseMove=function(t){var e=this.$saturation.getBoundingClientRect();var r=u(t).x;var n=u(t).y;this._moveSelectorTo(r-e.left,n-e.top);this._updateColorFromPosition()};a.prototype._onSaturationMouseUp=function(){this.choosing=false;window.removeEventListener("mouseup",this._onSaturationMouseUp);window.removeEventListener("touchend",this._onSaturationMouseUp);window.removeEventListener("mousemove",this._onSaturationMouseMove);window.removeEventListener("touchmove",this._onSaturationMouseMove)};a.prototype._onHueMouseDown=function(t){this.choosing=true;var e=this.$hue.getBoundingClientRect();var r=u(t).y;this._moveHueTo(r-e.top);this._updateHueFromPosition();window.addEventListener("mouseup",this._onHueMouseUp);window.addEventListener("touchend",this._onHueMouseUp);window.addEventListener("mousemove",this._onHueMouseMove);window.addEventListener("touchmove",this._onHueMouseMove);t.preventDefault()};a.prototype._onHueMouseMove=function(t){var e=this.$hue.getBoundingClientRect();var r=u(t).y;this._moveHueTo(r-e.top);this._updateHueFromPosition()};a.prototype._onHueMouseUp=function(){this.choosing=false;window.removeEventListener("mouseup",this._onHueMouseUp);window.removeEventListener("touchend",this._onHueMouseUp);window.removeEventListener("mousemove",this._onHueMouseMove);window.removeEventListener("touchmove",this._onHueMouseMove)};function f(t,e,r){return Math.min(Math.max(t,e),r)}function u(t){t=t.type.indexOf("touch")===0?t.touches[0]:t;return{x:t.clientX,y:t.clientY}}e.exports=a},{"component-emitter":4,"dom-transform":5,"is-number":11,tinycolor2:15}]},{},[1]);
'use strict';
var ColorPicker = require('../index.js');
var ColorPicker = require('../src/index.js');

@@ -5,0 +5,0 @@ /* --------------------------

{
"name": "simple-color-picker",
"version": "0.1.0",
"version": "0.1.1",
"description": "Simple Color picker in common.js.",

@@ -23,4 +23,4 @@ "author": "Guillaume Gouessan <guillaume.gouessan@gmail.com>",

],
"main": "index.js",
"typings": "index.d.ts",
"main": "src/index.js",
"typings": "src/index.d.ts",
"scripts": {

@@ -30,4 +30,4 @@ "start": "npm run example & npm run css:watch",

"example:build": "browserify example/example.js | uglifyjs -nm > example/example-build.js",
"css": "stylus -u autoprefixer-stylus src/css -o ./",
"css:watch": "stylus -u autoprefixer-stylus src/css -w -o ./",
"css": "stylus -u autoprefixer-stylus src/css -o ./src/",
"css:watch": "stylus -u autoprefixer-stylus src/css -w -o ./src/",
"test": "browserify test/test.js | tap-closer | smokestack | faucet",

@@ -37,24 +37,22 @@ "test:nc": "browserify test/test.js | smokestack | faucet"

"devDependencies": {
"autoprefixer-stylus": "^0.9.2",
"browserify": "^13.0.0",
"browserify-css": "^0.9.1",
"budo": "^8.1.0",
"autoprefixer-stylus": "^0.9.4",
"browserify": "^13.0.1",
"budo": "^8.3.0",
"faucet": "0.0.1",
"garnish": "^5.2.0",
"jsdom": "^8.3.0",
"jsdom": "^9.4.1",
"raf": "^3.2.0",
"smokestack": "^3.4.1",
"stylus": "^0.54.2",
"stylus": "^0.54.5",
"tap-closer": "^1.0.0",
"tape": "^4.5.1",
"uglify-js": "^2.6.2",
"tape": "^4.6.0",
"uglify-js": "^2.7.0",
"watchify": "^3.7.0"
},
"dependencies": {
"component-emitter": "^1.2.0",
"dom-transform": "^2.0.0",
"component-emitter": "^1.2.1",
"dom-transform": "^2.1.0",
"is-number": "^2.1.0",
"lodash.bindall": "^4.1.1",
"tinycolor2": "^1.3.0"
}
}
'use strict';
var test = require('tape');
var SimpleColorPicker = require('..');
var SimpleColorPicker = require('../src');

@@ -38,2 +38,18 @@ /* ======================================================================

test('SimpleColorPicker: Options units', function(t) {
t.plan(4);
var colorPicker = new SimpleColorPicker({
width: 30,
widthUnits: 'vw',
height: 10,
heightUnits: 'vh'
});
t.equal(colorPicker.width, 30, 'width option');
t.equal(colorPicker.height, 10, 'height option');
t.equal(colorPicker.$el.style.width, '30vw', 'width option style');
t.equal(colorPicker.$el.style.height, '10vh', 'height option style');
});
test('SimpleColorPicker: Options color', function(t) {

@@ -213,2 +229,2 @@ t.plan(2);

t.notOk(c.isDark(), 'should not be dark');
});
});

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc