node-vibrant
Advanced tools
Comparing version 3.1.2 to 3.1.3
@@ -1,1 +0,1 @@ | ||
!function(e){var n={};function o(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.m=e,o.c=n,o.d=function(t,r,e){o.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:e})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(r,t){if(1&t&&(r=o(r)),8&t)return r;if(4&t&&"object"==typeof r&&r&&r.__esModule)return r;var e=Object.create(null);if(o.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:r}),2&t&&"string"!=typeof r)for(var n in r)o.d(e,n,function(t){return r[t]}.bind(null,n));return e},o.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(r,"a",r),r},o.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},o.p="",o(o.s=185)}([function(t,r){var e=Array.isArray;t.exports=e},function(t,r,e){var n=e(43),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},function(t,r){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,r){t.exports=function(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)}},function(t,r,e){var n=e(96),o=e(99);t.exports=function(t,r){var e=o(t,r);return n(e)?e:void 0}},function(t,r,e){var n=e(42),o=e(81),i=e(10);t.exports=function(t){return i(t)?n(t):o(t)}},function(t,r,e){var n=e(7),o=e(77),i=e(78),a=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?o(t):i(t)}},function(t,r,e){var n=e(1).Symbol;t.exports=n},function(t,r){t.exports=function(t,r){return t===r||t!=t&&r!=r}},function(t,n,r){"use strict";function e(t){var r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return null===r?null:[r[1],r[2],r[3]].map(function(t){return parseInt(t,16)})}function o(t,r,e){return r/=255,e/=255,t=.04045<(t/=255)?Math.pow((t+.005)/1.055,2.4):t/12.92,r=.04045<r?Math.pow((r+.005)/1.055,2.4):r/12.92,e=.04045<e?Math.pow((e+.005)/1.055,2.4):e/12.92,[.4124*(t*=100)+.3576*(r*=100)+.1805*(e*=100),.2126*t+.7152*r+.0722*e,.0193*t+.1192*r+.9505*e]}function i(t,r,e){return r/=100,e/=108.883,t=.008856<(t/=95.047)?Math.pow(t,1/3):7.787*t+16/116,[116*(r=.008856<r?Math.pow(r,1/3):7.787*r+16/116)-16,500*(t-r),200*(r-(e=.008856<e?Math.pow(e,1/3):7.787*e+16/116))]}function a(t,r,e){var n=o(t,r,e);return i(n[0],n[1],n[2])}function u(t,r){var e=t[0],n=t[1],o=t[2],i=r[0],a=r[1],u=r[2],s=e-i,c=n-a,f=o-u,h=Math.sqrt(n*n+o*o),l=i-e,p=Math.sqrt(a*a+u*u)-h,v=Math.sqrt(s*s+c*c+f*f),b=Math.sqrt(v)>Math.sqrt(Math.abs(l))+Math.sqrt(Math.abs(p))?Math.sqrt(v*v-l*l-p*p):0;return l/=1,p/=1*(1+.045*h),b/=1*(1+.015*h),Math.sqrt(l*l+p*p+b*b)}function s(t,r){return u(a.apply(void 0,t),a.apply(void 0,r))}Object.defineProperty(n,"__esModule",{value:!0}),n.DELTAE94_DIFF_STATUS={NA:0,PERFECT:1,CLOSE:2,GOOD:10,SIMILAR:50},n.SIGBITS=5,n.RSHIFT=8-n.SIGBITS,n.defer=function(){var e,n,t=new Promise(function(t,r){e=t,n=r});return{resolve:e,reject:n,promise:t}},n.hexToRgb=e,n.rgbToHex=function(t,r,e){return"#"+((1<<24)+(t<<16)+(r<<8)+e).toString(16).slice(1,7)},n.rgbToHsl=function(t,r,e){t/=255,r/=255,e/=255;var n,o,i=Math.max(t,r,e),a=Math.min(t,r,e),u=(i+a)/2;if(i===a)n=o=0;else{var s=i-a;switch(o=.5<u?s/(2-i-a):s/(i+a),i){case t:n=(r-e)/s+(r<e?6:0);break;case r:n=(e-t)/s+2;break;case e:n=(t-r)/s+4}n/=6}return[n,o,u]},n.hslToRgb=function(t,r,e){var n,o,i;function a(t,r,e){return e<0&&(e+=1),1<e&&(e-=1),e<1/6?t+6*(r-t)*e:e<.5?r:e<2/3?t+(r-t)*(2/3-e)*6:t}if(0===r)n=o=i=e;else{var u=e<.5?e*(1+r):e+r-e*r,s=2*e-u;n=a(s,u,t+1/3),o=a(s,u,t),i=a(s,u,t-1/3)}return[255*n,255*o,255*i]},n.rgbToXyz=o,n.xyzToCIELab=i,n.rgbToCIELab=a,n.deltaE94=u,n.rgbDiff=s,n.hexDiff=function(t,r){return s(e(t),e(r))},n.getColorDiffStatus=function(t){return t<n.DELTAE94_DIFF_STATUS.NA?"N/A":t<=n.DELTAE94_DIFF_STATUS.PERFECT?"Perfect":t<=n.DELTAE94_DIFF_STATUS.CLOSE?"Close":t<=n.DELTAE94_DIFF_STATUS.GOOD?"Good":t<n.DELTAE94_DIFF_STATUS.SIMILAR?"Similar":"Wrong"},n.getColorIndex=function(t,r,e){return(t<<2*n.SIGBITS)+(r<<n.SIGBITS)+e}},function(t,r,e){var n=e(47),o=e(23);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},function(t,r,e){var n=e(20);t.exports=function(t){if("string"==typeof t||n(t))return t;var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}},function(t,r,e){var c=e(58),f=e(59);t.exports=function(t,r,e,n){var o=!e;e=e||{};for(var i=-1,a=r.length;++i<a;){var u=r[i],s=n?n(e[u],t[u],u,e,t):void 0;void 0===s&&(s=t[u]),o?f(e,u,s):c(e,u,s)}return e}},function(t,r){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,r,e){var n=e(86),o=e(87),i=e(88),a=e(89),u=e(90);function s(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,t.exports=s},function(t,r,e){var n=e(8);t.exports=function(t,r){for(var e=t.length;e--;)if(n(t[e][0],r))return e;return-1}},function(t,r,e){var n=e(4)(Object,"create");t.exports=n},function(t,r,e){var n=e(108);t.exports=function(t,r){var e=t.__data__;return n(r)?e["string"==typeof r?"string":"hash"]:e.map}},function(t,r,e){var n=e(122),o=e(28),i=e(123),a=e(124),u=e(125),s=e(6),c=e(49),f="[object Map]",h="[object Promise]",l="[object Set]",p="[object WeakMap]",v="[object DataView]",b=c(n),g=c(o),y=c(i),d=c(a),m=c(u),_=s;(n&&_(new n(new ArrayBuffer(1)))!=v||o&&_(new o)!=f||i&&_(i.resolve())!=h||a&&_(new a)!=l||u&&_(new u)!=p)&&(_=function(t){var r=s(t),e="[object Object]"==r?t.constructor:void 0,n=e?c(e):"";if(n)switch(n){case b:return v;case g:return f;case y:return h;case d:return l;case m:return p}return r}),t.exports=_},function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var o=e(9),n=e(69),i=(a.applyFilter=function(t,o){return"function"==typeof o?n(t,function(t){var r=t.r,e=t.g,n=t.b;return o(r,e,n,255)}):t},Object.defineProperty(a.prototype,"r",{get:function(){return this._rgb[0]},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"g",{get:function(){return this._rgb[1]},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"b",{get:function(){return this._rgb[2]},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"rgb",{get:function(){return this._rgb},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"hsl",{get:function(){if(!this._hsl){var t=this._rgb,r=t[0],e=t[1],n=t[2];this._hsl=o.rgbToHsl(r,e,n)}return this._hsl},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"hex",{get:function(){if(!this._hex){var t=this._rgb,r=t[0],e=t[1],n=t[2];this._hex=o.rgbToHex(r,e,n)}return this._hex},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"population",{get:function(){return this._population},enumerable:!0,configurable:!0}),a.prototype.toJSON=function(){return{rgb:this.rgb,population:this.population}},a.prototype.getRgb=function(){return this._rgb},a.prototype.getHsl=function(){return this.hsl},a.prototype.getPopulation=function(){return this._population},a.prototype.getHex=function(){return this.hex},a.prototype.getYiq=function(){if(!this._yiq){var t=this._rgb;this._yiq=(299*t[0]+587*t[1]+114*t[2])/1e3}return this._yiq},Object.defineProperty(a.prototype,"titleTextColor",{get:function(){return this._titleTextColor&&(this._titleTextColor=this.getYiq()<200?"#fff":"#000"),this._titleTextColor},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"bodyTextColor",{get:function(){return this._bodyTextColor&&(this._bodyTextColor=this.getYiq()<150?"#fff":"#000"),this._bodyTextColor},enumerable:!0,configurable:!0}),a.prototype.getTitleTextColor=function(){return this.titleTextColor},a.prototype.getBodyTextColor=function(){return this.bodyTextColor},a);function a(t,r){this._rgb=t,this._population=r}r.Swatch=i},function(t,r,e){var n=e(6),o=e(2);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==n(t)}},function(t,u,s){(function(t){var r=s(1),e=s(79),n=u&&!u.nodeType&&u,o=n&&"object"==typeof t&&t&&!t.nodeType&&t,i=o&&o.exports===n?r.Buffer:void 0,a=(i?i.isBuffer:void 0)||e;t.exports=a}).call(this,s(13)(t))},function(t,r){var n=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var e=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==e||"symbol"!=e&&n.test(t))&&-1<t&&t%1==0&&t<r}},function(t,r){t.exports=function(t){return"number"==typeof t&&-1<t&&t%1==0&&t<=9007199254740991}},function(t,r){t.exports=function(r){return function(t){return r(t)}}},function(t,a,u){(function(t){var r=u(43),e=a&&!a.nodeType&&a,n=e&&"object"==typeof t&&t&&!t.nodeType&&t,o=n&&n.exports===e&&r.process,i=function(){try{var t=n&&n.require&&n.require("util").types;return t||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=i}).call(this,u(13)(t))},function(t,r){var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},function(t,r,e){var n=e(14),o=e(91),i=e(92),a=e(93),u=e(94),s=e(95);function c(t){var r=this.__data__=new n(t);this.size=r.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=u,c.prototype.set=s,t.exports=c},function(t,r,e){var n=e(4)(e(1),"Map");t.exports=n},function(t,r,e){var n=e(100),o=e(107),i=e(109),a=e(110),u=e(111);function s(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,t.exports=s},function(t,r,e){var n=e(41),o=e(55),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,u=a?function(r){return null==r?[]:(r=Object(r),n(a(r),function(t){return i.call(r,t)}))}:o;t.exports=u},function(t,r,e){var n=e(0),o=e(32),i=e(129),a=e(132);t.exports=function(t,r){return n(t)?t:o(t,r)?[t]:i(a(t))}},function(t,r,e){var n=e(0),o=e(20),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,r){if(n(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!o(t))||(a.test(t)||!i.test(t)||null!=r&&t in Object(r))}},function(t,r){t.exports=function(t){return t}},function(t,r,e){var n=e(42),o=e(145),i=e(10);t.exports=function(t){return i(t)?n(t,!0):o(t)}},function(t,r,e){var n=e(52);t.exports=function(t){var r=new t.constructor(t.byteLength);return new n(r).set(new n(t)),r}},function(t,r,e){var n=e(76),o=e(2),i=Object.prototype,a=i.hasOwnProperty,u=i.propertyIsEnumerable,s=n(function(){return arguments}())?n:function(t){return o(t)&&a.call(t,"callee")&&!u.call(t,"callee")};t.exports=s},function(t,r){t.exports=function(t,r){for(var e=-1,n=r.length,o=t.length;++e<n;)t[o+e]=r[e];return t}},function(t,r,e){var o=e(31),i=e(11);t.exports=function(t,r){for(var e=0,n=(r=o(r,t)).length;null!=t&&e<n;)t=t[i(r[e++])];return e&&e==n?t:void 0}},function(t,r,e){var n=e(46)(Object.getPrototypeOf,Object);t.exports=n},function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var o=e(19),n=e(140),i=e(9),a=e(163),u=e(167),s=e(175),c=e(62),f=(h.from=function(t){return new n.default(t)},h.prototype._process=function(t,r){var e=r.quantizer,n=r.generator;return t.scaleDown(r),t.applyFilter(r.combinedFilter).then(function(t){return e(t.data,r)}).then(function(t){return o.Swatch.applyFilter(t,r.combinedFilter)}).then(function(t){return Promise.resolve(n(t))})},h.prototype.palette=function(){return this.swatches()},h.prototype.swatches=function(){return this._palette},h.prototype.getPalette=function(r){var e=this,n=new this.opts.ImageClass,t=n.load(this._src).then(function(t){return e._process(t,e.opts)}).then(function(t){return e._palette=t,n.remove(),t},function(t){throw n.remove(),t});return r&&t.then(function(t){return r(null,t)},function(t){return r(t)}),t},h.Builder=n.default,h.Quantizer=a,h.Generator=u,h.Filter=s,h.Util=i,h.DefaultOpts={colorCount:64,quality:5,generator:u.Default,ImageClass:null,quantizer:a.MMCQ,filters:[s.Default]},h);function h(t,r){this._src=t,this.opts=c({},r,h.DefaultOpts),this.opts.combinedFilter=s.combineFilters(this.opts.filters)}r.default=f},function(t,r){t.exports=function(t,r){for(var e=-1,n=null==t?0:t.length,o=0,i=[];++e<n;){var a=t[e];r(a,e,t)&&(i[o++]=a)}return i}},function(t,r,e){var f=e(75),h=e(36),l=e(0),p=e(21),v=e(22),b=e(45),g=Object.prototype.hasOwnProperty;t.exports=function(t,r){var e=l(t),n=!e&&h(t),o=!e&&!n&&p(t),i=!e&&!n&&!o&&b(t),a=e||n||o||i,u=a?f(t.length,String):[],s=u.length;for(var c in t)!r&&!g.call(t,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||v(c,s))||u.push(c);return u}},function(e,t,r){(function(t){var r="object"==typeof t&&t&&t.Object===Object&&t;e.exports=r}).call(this,r(44))},function(t,r){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,r,e){var n=e(80),o=e(24),i=e(25),a=i&&i.isTypedArray,u=a?o(a):n;t.exports=u},function(t,r){t.exports=function(r,e){return function(t){return r(e(t))}}},function(t,r,e){var n=e(6),o=e(3);t.exports=function(t){if(!o(t))return!1;var r=n(t);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}},function(t,r,e){var n=e(84),o=e(127),i=e(33),a=e(0),u=e(137);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?a(t)?o(t[0],t[1]):n(t):u(t)}},function(t,r){var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,r,e){var a=e(112),u=e(2);t.exports=function t(r,e,n,o,i){return r===e||(null==r||null==e||!u(r)&&!u(e)?r!=r&&e!=e:a(r,e,n,o,t,i))}},function(t,r,e){var g=e(113),y=e(116),d=e(117);t.exports=function(t,r,e,n,o,i){var a=1&e,u=t.length,s=r.length;if(u!=s&&!(a&&u<s))return!1;var c=i.get(t);if(c&&i.get(r))return c==r;var f=-1,h=!0,l=2&e?new g:void 0;for(i.set(t,r),i.set(r,t);++f<u;){var p=t[f],v=r[f];if(n)var b=a?n(v,p,f,r,t,i):n(p,v,f,t,r,i);if(void 0!==b){if(b)continue;h=!1;break}if(l){if(!y(r,function(t,r){if(!d(l,r)&&(p===t||o(p,t,e,n,i)))return l.push(r)})){h=!1;break}}else if(p!==v&&!o(p,v,e,n,i)){h=!1;break}}return i.delete(t),i.delete(r),h}},function(t,r,e){var n=e(1).Uint8Array;t.exports=n},function(t,r,e){var n=e(54),o=e(30),i=e(5);t.exports=function(t){return n(t,i,o)}},function(t,r,e){var o=e(37),i=e(0);t.exports=function(t,r,e){var n=r(t);return i(t)?n:o(n,e(t))}},function(t,r){t.exports=function(){return[]}},function(t,r,e){var n=e(3);t.exports=function(t){return t==t&&!n(t)}},function(t,r){t.exports=function(r,e){return function(t){return null!=t&&(t[r]===e&&(void 0!==e||r in Object(t)))}}},function(t,r,e){var o=e(59),i=e(8),a=Object.prototype.hasOwnProperty;t.exports=function(t,r,e){var n=t[r];a.call(t,r)&&i(n,e)&&(void 0!==e||r in t)||o(t,r,e)}},function(t,r,e){var n=e(60);t.exports=function(t,r,e){"__proto__"==r&&n?n(t,r,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[r]=e}},function(t,r,e){var n=e(4),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},function(t,r,e){var n=e(37),o=e(39),i=e(30),a=e(55),u=Object.getOwnPropertySymbols?function(t){for(var r=[];t;)n(r,i(t)),t=o(t);return r}:a;t.exports=u},function(t,r,e){var n=e(169),h=e(8),l=e(174),p=e(34),v=Object.prototype,b=v.hasOwnProperty,o=n(function(t,r){t=Object(t);var e=-1,n=r.length,o=2<n?r[2]:void 0;for(o&&l(r[0],r[1],o)&&(n=1);++e<n;)for(var i=r[e],a=p(i),u=-1,s=a.length;++u<s;){var c=a[u],f=t[c];(void 0===f||h(f,v[c])&&!b.call(t,c))&&(t[c]=i[c])}return t});t.exports=o},function(t,r){t.exports=function(t,r){for(var e=-1,n=null==t?0:t.length,o=Array(n);++e<n;)o[e]=r(t[e],e,t);return o}},function(t,r,e){var y=e(27),d=e(142),m=e(58),_=e(143),x=e(144),j=e(147),w=e(148),O=e(149),S=e(150),A=e(53),M=e(65),I=e(18),C=e(151),T=e(152),P=e(157),L=e(0),D=e(21),k=e(159),F=e(3),E=e(161),V=e(5),z=1,U=2,q=4,R="[object Arguments]",N="[object Function]",H="[object GeneratorFunction]",B="[object Object]",$={};$[R]=$["[object Array]"]=$["[object ArrayBuffer]"]=$["[object DataView]"]=$["[object Boolean]"]=$["[object Date]"]=$["[object Float32Array]"]=$["[object Float64Array]"]=$["[object Int8Array]"]=$["[object Int16Array]"]=$["[object Int32Array]"]=$["[object Map]"]=$["[object Number]"]=$[B]=$["[object RegExp]"]=$["[object Set]"]=$["[object String]"]=$["[object Symbol]"]=$["[object Uint8Array]"]=$["[object Uint8ClampedArray]"]=$["[object Uint16Array]"]=$["[object Uint32Array]"]=!0,$["[object Error]"]=$[N]=$["[object WeakMap]"]=!1,t.exports=function e(n,o,i,t,r,a){var u,s=o&z,c=o&U,f=o&q;if(i&&(u=r?i(n,t,r,a):i(n)),void 0!==u)return u;if(!F(n))return n;var h=L(n);if(h){if(u=C(n),!s)return w(n,u)}else{var l=I(n),p=l==N||l==H;if(D(n))return j(n,s);if(l==B||l==R||p&&!r){if(u=c||p?{}:P(n),!s)return c?S(n,x(u,n)):O(n,_(u,n))}else{if(!$[l])return r?n:{};u=T(n,l,s)}}var v=(a=a||new y).get(n);if(v)return v;if(a.set(n,u),E(n))return n.forEach(function(t){u.add(e(t,o,i,t,n,a))}),u;if(k(n))return n.forEach(function(t,r){u.set(r,e(t,o,i,r,n,a))}),u;var b=f?c?M:A:c?keysIn:V,g=h?void 0:b(n);return d(g||n,function(t,r){g&&(t=n[r=t]),m(u,r,e(t,o,i,r,n,a))}),u}},function(t,r,e){var n=e(54),o=e(61),i=e(34);t.exports=function(t){return n(t,i,o)}},function(t,r,e){var s=e(170),c=Math.max;t.exports=function(i,a,u){return a=c(void 0===a?i.length-1:a,0),function(){for(var t=arguments,r=-1,e=c(t.length-a,0),n=Array(e);++r<e;)n[r]=t[a+r];r=-1;for(var o=Array(a+1);++r<a;)o[r]=t[r];return o[a]=u(n),s(i,this,o)}}},function(t,r,e){var n=e(171),o=e(173)(n);t.exports=o},function(t,r,e){"use strict";var n=e(40),o=e(177);n.default.DefaultOpts.ImageClass=o.default,t.exports=n.default},function(t,r,e){var n=e(41),o=e(70),i=e(48),a=e(0);t.exports=function(t,r){return(a(t)?n:o)(t,i(r,3))}},function(t,r,e){var i=e(71);t.exports=function(t,n){var o=[];return i(t,function(t,r,e){n(t,r,e)&&o.push(t)}),o}},function(t,r,e){var n=e(72),o=e(83)(n);t.exports=o},function(t,r,e){var n=e(73),o=e(5);t.exports=function(t,r){return t&&n(t,r,o)}},function(t,r,e){var n=e(74)();t.exports=n},function(t,r){t.exports=function(s){return function(t,r,e){for(var n=-1,o=Object(t),i=e(t),a=i.length;a--;){var u=i[s?a:++n];if(!1===r(o[u],u,o))break}return t}}},function(t,r){t.exports=function(t,r){for(var e=-1,n=Array(t);++e<t;)n[e]=r(e);return n}},function(t,r,e){var n=e(6),o=e(2);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},function(t,r,e){var n=e(7),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,u=n?n.toStringTag:void 0;t.exports=function(t){var r=i.call(t,u),e=t[u];try{var n=!(t[u]=void 0)}catch(t){}var o=a.call(t);return n&&(r?t[u]=e:delete t[u]),o}},function(t,r){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},function(t,r){t.exports=function(){return!1}},function(t,r,e){var n=e(6),o=e(23),i=e(2),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!a[n(t)]}},function(t,r,e){var n=e(26),o=e(82),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var r=[];for(var e in Object(t))i.call(t,e)&&"constructor"!=e&&r.push(e);return r}},function(t,r,e){var n=e(46)(Object.keys,Object);t.exports=n},function(t,r,e){var u=e(10);t.exports=function(i,a){return function(t,r){if(null==t)return t;if(!u(t))return i(t,r);for(var e=t.length,n=a?e:-1,o=Object(t);(a?n--:++n<e)&&!1!==r(o[n],n,o););return t}}},function(t,r,e){var n=e(85),o=e(126),i=e(57);t.exports=function(r){var e=o(r);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(t){return t===r||n(t,r,e)}}},function(t,r,e){var p=e(27),v=e(50);t.exports=function(t,r,e,n){var o=e.length,i=o,a=!n;if(null==t)return!i;for(t=Object(t);o--;){var u=e[o];if(a&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++o<i;){var s=(u=e[o])[0],c=t[s],f=u[1];if(a&&u[2]){if(void 0===c&&!(s in t))return!1}else{var h=new p;if(n)var l=n(c,f,s,t,r,h);if(!(void 0===l?v(f,c,3,n,h):l))return!1}}return!0}},function(t,r){t.exports=function(){this.__data__=[],this.size=0}},function(t,r,e){var n=e(15),o=Array.prototype.splice;t.exports=function(t){var r=this.__data__,e=n(r,t);return!(e<0)&&(e==r.length-1?r.pop():o.call(r,e,1),--this.size,!0)}},function(t,r,e){var n=e(15);t.exports=function(t){var r=this.__data__,e=n(r,t);return e<0?void 0:r[e][1]}},function(t,r,e){var n=e(15);t.exports=function(t){return-1<n(this.__data__,t)}},function(t,r,e){var o=e(15);t.exports=function(t,r){var e=this.__data__,n=o(e,t);return n<0?(++this.size,e.push([t,r])):e[n][1]=r,this}},function(t,r,e){var n=e(14);t.exports=function(){this.__data__=new n,this.size=0}},function(t,r){t.exports=function(t){var r=this.__data__,e=r.delete(t);return this.size=r.size,e}},function(t,r){t.exports=function(t){return this.__data__.get(t)}},function(t,r){t.exports=function(t){return this.__data__.has(t)}},function(t,r,e){var o=e(14),i=e(28),a=e(29);t.exports=function(t,r){var e=this.__data__;if(e instanceof o){var n=e.__data__;if(!i||n.length<199)return n.push([t,r]),this.size=++e.size,this;e=this.__data__=new a(n)}return e.set(t,r),this.size=e.size,this}},function(t,r,e){var n=e(47),o=e(97),i=e(3),a=e(49),u=/^\[object .+?Constructor\]$/,s=Function.prototype,c=Object.prototype,f=s.toString,h=c.hasOwnProperty,l=RegExp("^"+f.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(n(t)?l:u).test(a(t))}},function(t,r,e){var n,o=e(98),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!i&&i in t}},function(t,r,e){var n=e(1)["__core-js_shared__"];t.exports=n},function(t,r){t.exports=function(t,r){return null==t?void 0:t[r]}},function(t,r,e){var n=e(101),o=e(14),i=e(28);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},function(t,r,e){var n=e(102),o=e(103),i=e(104),a=e(105),u=e(106);function s(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,t.exports=s},function(t,r,e){var n=e(16);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},function(t,r){t.exports=function(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}},function(t,r,e){var n=e(16),o=Object.prototype.hasOwnProperty;t.exports=function(t){var r=this.__data__;if(n){var e=r[t];return"__lodash_hash_undefined__"===e?void 0:e}return o.call(r,t)?r[t]:void 0}},function(t,r,e){var n=e(16),o=Object.prototype.hasOwnProperty;t.exports=function(t){var r=this.__data__;return n?void 0!==r[t]:o.call(r,t)}},function(t,r,e){var n=e(16);t.exports=function(t,r){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=n&&void 0===r?"__lodash_hash_undefined__":r,this}},function(t,r,e){var n=e(17);t.exports=function(t){var r=n(this,t).delete(t);return this.size-=r?1:0,r}},function(t,r){t.exports=function(t){var r=typeof t;return"string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t}},function(t,r,e){var n=e(17);t.exports=function(t){return n(this,t).get(t)}},function(t,r,e){var n=e(17);t.exports=function(t){return n(this,t).has(t)}},function(t,r,e){var o=e(17);t.exports=function(t,r){var e=o(this,t),n=e.size;return e.set(t,r),this.size+=e.size==n?0:1,this}},function(t,r,e){var b=e(27),g=e(51),y=e(118),d=e(121),m=e(18),_=e(0),x=e(21),j=e(45),w="[object Arguments]",O="[object Array]",S="[object Object]",A=Object.prototype.hasOwnProperty;t.exports=function(t,r,e,n,o,i){var a=_(t),u=_(r),s=a?O:m(t),c=u?O:m(r),f=(s=s==w?S:s)==S,h=(c=c==w?S:c)==S,l=s==c;if(l&&x(t)){if(!x(r))return!1;f=!(a=!0)}if(l&&!f)return i=i||new b,a||j(t)?g(t,r,e,n,o,i):y(t,r,s,e,n,o,i);if(!(1&e)){var p=f&&A.call(t,"__wrapped__"),v=h&&A.call(r,"__wrapped__");if(p||v)return o(p?t.value():t,v?r.value():r,e,n,i=i||new b)}return l&&(i=i||new b,d(t,r,e,n,o,i))}},function(t,r,e){var n=e(29),o=e(114),i=e(115);function a(t){var r=-1,e=null==t?0:t.length;for(this.__data__=new n;++r<e;)this.add(t[r])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,t.exports=a},function(t,r){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},function(t,r){t.exports=function(t){return this.__data__.has(t)}},function(t,r){t.exports=function(t,r){for(var e=-1,n=null==t?0:t.length;++e<n;)if(r(t[e],e,t))return!0;return!1}},function(t,r){t.exports=function(t,r){return t.has(r)}},function(t,r,e){var n=e(7),h=e(52),l=e(8),p=e(51),v=e(119),b=e(120),o=n?n.prototype:void 0,g=o?o.valueOf:void 0;t.exports=function(t,r,e,n,o,i,a){switch(e){case"[object DataView]":if(t.byteLength!=r.byteLength||t.byteOffset!=r.byteOffset)return!1;t=t.buffer,r=r.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=r.byteLength||!i(new h(t),new h(r)));case"[object Boolean]":case"[object Date]":case"[object Number]":return l(+t,+r);case"[object Error]":return t.name==r.name&&t.message==r.message;case"[object RegExp]":case"[object String]":return t==r+"";case"[object Map]":var u=v;case"[object Set]":var s=1&n;if(u=u||b,t.size!=r.size&&!s)return!1;var c=a.get(t);if(c)return c==r;n|=2,a.set(t,r);var f=p(u(t),u(r),n,o,i,a);return a.delete(t),f;case"[object Symbol]":if(g)return g.call(t)==g.call(r)}return!1}},function(t,r){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}},function(t,r){t.exports=function(t){var r=-1,e=Array(t.size);return t.forEach(function(t){e[++r]=t}),e}},function(t,r,e){var m=e(53),_=Object.prototype.hasOwnProperty;t.exports=function(t,r,e,n,o,i){var a=1&e,u=m(t),s=u.length;if(s!=m(r).length&&!a)return!1;for(var c=s;c--;){var f=u[c];if(!(a?f in r:_.call(r,f)))return!1}var h=i.get(t);if(h&&i.get(r))return h==r;var l=!0;i.set(t,r),i.set(r,t);for(var p=a;++c<s;){var v=t[f=u[c]],b=r[f];if(n)var g=a?n(b,v,f,r,t,i):n(v,b,f,t,r,i);if(!(void 0===g?v===b||o(v,b,e,n,i):g)){l=!1;break}p=p||"constructor"==f}if(l&&!p){var y=t.constructor,d=r.constructor;y!=d&&"constructor"in t&&"constructor"in r&&!("function"==typeof y&&y instanceof y&&"function"==typeof d&&d instanceof d)&&(l=!1)}return i.delete(t),i.delete(r),l}},function(t,r,e){var n=e(4)(e(1),"DataView");t.exports=n},function(t,r,e){var n=e(4)(e(1),"Promise");t.exports=n},function(t,r,e){var n=e(4)(e(1),"Set");t.exports=n},function(t,r,e){var n=e(4)(e(1),"WeakMap");t.exports=n},function(t,r,e){var i=e(56),a=e(5);t.exports=function(t){for(var r=a(t),e=r.length;e--;){var n=r[e],o=t[n];r[e]=[n,o,i(o)]}return r}},function(t,r,e){var o=e(50),i=e(128),a=e(134),u=e(32),s=e(56),c=e(57),f=e(11);t.exports=function(e,n){return u(e)&&s(n)?c(f(e),n):function(t){var r=i(t,e);return void 0===r&&r===n?a(t,e):o(n,r,3)}}},function(t,r,e){var o=e(38);t.exports=function(t,r,e){var n=null==t?void 0:o(t,r);return void 0===n?e:n}},function(t,r,e){var n=e(130),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,o=n(function(t){var o=[];return 46===t.charCodeAt(0)&&o.push(""),t.replace(i,function(t,r,e,n){o.push(e?n.replace(a,"$1"):r||t)}),o});t.exports=o},function(t,r,e){var n=e(131);t.exports=function(t){var r=n(t,function(t){return 500===e.size&&e.clear(),t}),e=r.cache;return r}},function(t,r,e){var n=e(29),u="Expected a function";function s(o,i){if("function"!=typeof o||null!=i&&"function"!=typeof i)throw new TypeError(u);var a=function(){var t=arguments,r=i?i.apply(this,t):t[0],e=a.cache;if(e.has(r))return e.get(r);var n=o.apply(this,t);return a.cache=e.set(r,n)||e,n};return a.cache=new(s.Cache||n),a}s.Cache=n,t.exports=s},function(t,r,e){var n=e(133);t.exports=function(t){return null==t?"":n(t)}},function(t,r,e){var n=e(7),o=e(63),i=e(0),a=e(20),u=1/0,s=n?n.prototype:void 0,c=s?s.toString:void 0;t.exports=function t(r){if("string"==typeof r)return r;if(i(r))return o(r,t)+"";if(a(r))return c?c.call(r):"";var e=r+"";return"0"==e&&1/r==-u?"-0":e}},function(t,r,e){var n=e(135),o=e(136);t.exports=function(t,r){return null!=t&&o(t,r,n)}},function(t,r){t.exports=function(t,r){return null!=t&&r in Object(t)}},function(t,r,e){var u=e(31),s=e(36),c=e(0),f=e(22),h=e(23),l=e(11);t.exports=function(t,r,e){for(var n=-1,o=(r=u(r,t)).length,i=!1;++n<o;){var a=l(r[n]);if(!(i=null!=t&&e(t,a)))break;t=t[a]}return i||++n!=o?i:!!(o=null==t?0:t.length)&&h(o)&&f(a,o)&&(c(t)||s(t))}},function(t,r,e){var n=e(138),o=e(139),i=e(32),a=e(11);t.exports=function(t){return i(t)?n(a(t)):o(t)}},function(t,r){t.exports=function(r){return function(t){return null==t?void 0:t[r]}}},function(t,r,e){var n=e(38);t.exports=function(r){return function(t){return n(t,r)}}},function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e(40),o=e(141),i=(a.prototype.maxColorCount=function(t){return this._opts.colorCount=t,this},a.prototype.maxDimension=function(t){return this._opts.maxDimension=t,this},a.prototype.addFilter=function(t){return this._opts.filters.push(t),this},a.prototype.removeFilter=function(t){var r=this._opts.filters.indexOf(t);return 0<r&&this._opts.filters.splice(r),this},a.prototype.clearFilters=function(){return this._opts.filters=[],this},a.prototype.quality=function(t){return this._opts.quality=t,this},a.prototype.useImageClass=function(t){return this._opts.ImageClass=t,this},a.prototype.useGenerator=function(t){return this._opts.generator=t,this},a.prototype.useQuantizer=function(t){return this._opts.quantizer=t,this},a.prototype.build=function(){return new n.default(this._src,this._opts)},a.prototype.getPalette=function(t){return this.build().getPalette(t)},a.prototype.getSwatches=function(t){return this.build().getPalette(t)},a);function a(t,r){void 0===r&&(r={}),this._src=t,this._opts=r,this._opts.filters=o(n.default.DefaultOpts.filters)}r.default=i},function(t,r,e){var n=e(64);t.exports=function(t){return n(t,4)}},function(t,r){t.exports=function(t,r){for(var e=-1,n=null==t?0:t.length;++e<n&&!1!==r(t[e],e,t););return t}},function(t,r,e){var n=e(12),o=e(5);t.exports=function(t,r){return t&&n(r,o(r),t)}},function(t,r,e){var n=e(12),o=e(34);t.exports=function(t,r){return t&&n(r,o(r),t)}},function(t,r,e){var o=e(3),i=e(26),a=e(146),u=Object.prototype.hasOwnProperty;t.exports=function(t){if(!o(t))return a(t);var r=i(t),e=[];for(var n in t)("constructor"!=n||!r&&u.call(t,n))&&e.push(n);return e}},function(t,r){t.exports=function(t){var r=[];if(null!=t)for(var e in Object(t))r.push(e);return r}},function(t,a,u){(function(t){var r=u(1),e=a&&!a.nodeType&&a,n=e&&"object"==typeof t&&t&&!t.nodeType&&t,o=n&&n.exports===e?r.Buffer:void 0,i=o?o.allocUnsafe:void 0;t.exports=function(t,r){if(r)return t.slice();var e=t.length,n=i?i(e):new t.constructor(e);return t.copy(n),n}}).call(this,u(13)(t))},function(t,r){t.exports=function(t,r){var e=-1,n=t.length;for(r=r||Array(n);++e<n;)r[e]=t[e];return r}},function(t,r,e){var n=e(12),o=e(30);t.exports=function(t,r){return n(t,o(t),r)}},function(t,r,e){var n=e(12),o=e(61);t.exports=function(t,r){return n(t,o(t),r)}},function(t,r){var n=Object.prototype.hasOwnProperty;t.exports=function(t){var r=t.length,e=new t.constructor(r);return r&&"string"==typeof t[0]&&n.call(t,"index")&&(e.index=t.index,e.input=t.input),e}},function(t,r,e){var o=e(35),i=e(153),a=e(154),u=e(155),s=e(156);t.exports=function(t,r,e){var n=t.constructor;switch(r){case"[object ArrayBuffer]":return o(t);case"[object Boolean]":case"[object Date]":return new n(+t);case"[object DataView]":return i(t,e);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(t,e);case"[object Map]":return new n;case"[object Number]":case"[object String]":return new n(t);case"[object RegExp]":return a(t);case"[object Set]":return new n;case"[object Symbol]":return u(t)}}},function(t,r,e){var n=e(35);t.exports=function(t,r){var e=r?n(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.byteLength)}},function(t,r){var e=/\w*$/;t.exports=function(t){var r=new t.constructor(t.source,e.exec(t));return r.lastIndex=t.lastIndex,r}},function(t,r,e){var n=e(7),o=n?n.prototype:void 0,i=o?o.valueOf:void 0;t.exports=function(t){return i?Object(i.call(t)):{}}},function(t,r,e){var n=e(35);t.exports=function(t,r){var e=r?n(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}},function(t,r,e){var n=e(158),o=e(39),i=e(26);t.exports=function(t){return"function"!=typeof t.constructor||i(t)?{}:n(o(t))}},function(t,r,e){function n(t){if(!o(t))return{};if(i)return i(t);a.prototype=t;var r=new a;return a.prototype=void 0,r}var o=e(3),i=Object.create;function a(){}t.exports=n},function(t,r,e){var n=e(160),o=e(24),i=e(25),a=i&&i.isMap,u=a?o(a):n;t.exports=u},function(t,r,e){var n=e(18),o=e(2);t.exports=function(t){return o(t)&&"[object Map]"==n(t)}},function(t,r,e){var n=e(162),o=e(24),i=e(25),a=i&&i.isSet,u=a?o(a):n;t.exports=u},function(t,r,e){var n=e(18),o=e(2);t.exports=function(t){return o(t)&&"[object Set]"==n(t)}},function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e(164);r.MMCQ=n.default,r.WebWorker=null},function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a=e(19),u=e(165),s=e(166);function c(t,r){for(var e=t.size();t.size()<r;){var n=t.pop();if(!(n&&0<n.count()))break;var o=n.split(),i=o[0],a=o[1];if(t.push(i),a&&0<a.count()&&t.push(a),t.size()===e)break;e=t.size()}}r.default=function(t,r){if(0===t.length||r.colorCount<2||256<r.colorCount)throw new Error("Wrong MMCQ parameters");var e=u.default.build(t),n=e.hist,o=(Object.keys(n).length,new s.default(function(t,r){return t.count()-r.count()}));o.push(e),c(o,.75*r.colorCount);var i=new s.default(function(t,r){return t.count()*t.volume()-r.count()*r.volume()});return i.contents=o.contents,c(i,r.colorCount-i.size()),function(t){var r=[];for(;t.size();){var e=t.pop(),n=e.avg();n[0],n[1],n[2];r.push(new a.Swatch(n,e.count()))}return r}(i)}},function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var S=e(9),n=(g.build=function(t,r){var e,n,o,i,a,u,s,c,f,h=1<<3*S.SIGBITS,l=new Uint32Array(h);e=o=a=0,n=i=u=Number.MAX_VALUE;for(var p=t.length/4,v=0;v<p;){var b=4*v;v++,s=t[0+b],c=t[1+b],f=t[2+b],0!==t[3+b]&&(s>>=S.RSHIFT,c>>=S.RSHIFT,f>>=S.RSHIFT,l[S.getColorIndex(s,c,f)]+=1,e<s&&(e=s),s<n&&(n=s),o<c&&(o=c),c<i&&(i=c),a<f&&(a=f),f<u&&(u=f))}return new g(n,e,i,o,u,a,l)},g.prototype.invalidate=function(){this._volume=this._count=-1,this._avg=null},g.prototype.volume=function(){if(this._volume<0){var t=this.dimension,r=t.r1,e=t.r2,n=t.g1,o=t.g2,i=t.b1,a=t.b2;this._volume=(e-r+1)*(o-n+1)*(a-i+1)}return this._volume},g.prototype.count=function(){if(this._count<0){for(var t=this.hist,r=this.dimension,e=r.r1,n=r.r2,o=r.g1,i=r.g2,a=r.b1,u=r.b2,s=0,c=e;c<=n;c++)for(var f=o;f<=i;f++)for(var h=a;h<=u;h++)s+=t[S.getColorIndex(c,f,h)];this._count=s}return this._count},g.prototype.clone=function(){var t=this.hist,r=this.dimension;return new g(r.r1,r.r2,r.g1,r.g2,r.b1,r.b2,t)},g.prototype.avg=function(){if(!this._avg){var t=this.hist,r=this.dimension,e=r.r1,n=r.r2,o=r.g1,i=r.g2,a=r.b1,u=r.b2,s=0,c=1<<8-S.SIGBITS,f=void 0,h=void 0,l=void 0;f=h=l=0;for(var p=e;p<=n;p++)for(var v=o;v<=i;v++)for(var b=a;b<=u;b++){var g=t[S.getColorIndex(p,v,b)];s+=g,f+=g*(p+.5)*c,h+=g*(v+.5)*c,l+=g*(b+.5)*c}this._avg=s?[~~(f/s),~~(h/s),~~(l/s)]:[~~(c*(e+n+1)/2),~~(c*(o+i+1)/2),~~(c*(a+u+1)/2)]}return this._avg},g.prototype.contains=function(t){var r=t[0],e=t[1],n=t[2],o=this.dimension,i=o.r1,a=o.r2,u=o.g1,s=o.g2,c=o.b1,f=o.b2;return r>>=S.RSHIFT,e>>=S.RSHIFT,n>>=S.RSHIFT,i<=r&&r<=a&&u<=e&&e<=s&&c<=n&&n<=f},g.prototype.split=function(){var t=this.hist,r=this.dimension,e=r.r1,n=r.r2,o=r.g1,i=r.g2,a=r.b1,u=r.b2,s=this.count();if(!s)return[];if(1===s)return[this.clone()];var c,f,h=n-e+1,l=i-o+1,p=u-a+1,v=Math.max(h,l,p),b=null;c=f=0;var g=null;if(v===h){g="r",b=new Uint32Array(n+1);for(var y=e;y<=n;y++){c=0;for(var d=o;d<=i;d++)for(var m=a;m<=u;m++)c+=t[S.getColorIndex(y,d,m)];f+=c,b[y]=f}}else if(v===l)for(g="g",b=new Uint32Array(i+1),d=o;d<=i;d++){for(c=0,y=e;y<=n;y++)for(m=a;m<=u;m++)c+=t[S.getColorIndex(y,d,m)];f+=c,b[d]=f}else for(g="b",b=new Uint32Array(u+1),m=a;m<=u;m++){for(c=0,y=e;y<=n;y++)for(d=o;d<=i;d++)c+=t[S.getColorIndex(y,d,m)];f+=c,b[m]=f}for(var _=-1,x=new Uint32Array(b.length),j=0;j<b.length;j++){var w=b[j];_<0&&f/2<w&&(_=j),x[j]=f-w}var O=this;return function(t){var r=t+"1",e=t+"2",n=O.dimension[r],o=O.dimension[e],i=O.clone(),a=O.clone(),u=_-n,s=o-_;for(o=u<=s?(o=Math.min(o-1,~~(_+s/2)),Math.max(0,o)):(o=Math.max(n,~~(_-1-u/2)),Math.min(O.dimension[e],o));!b[o];)o++;for(var c=x[o];!c&&b[o-1];)c=x[--o];return i.dimension[e]=o,a.dimension[r]=o+1,[i,a]}(g)},g);function g(t,r,e,n,o,i,a){this._volume=-1,this._count=-1,this.dimension={r1:t,r2:r,g1:e,g2:n,b1:o,b2:i},this.hist=a}r.default=n},function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=(o.prototype._sort=function(){this._sorted||(this.contents.sort(this._comparator),this._sorted=!0)},o.prototype.push=function(t){this.contents.push(t),this._sorted=!1},o.prototype.peek=function(t){return this._sort(),t="number"==typeof t?t:this.contents.length-1,this.contents[t]},o.prototype.pop=function(){return this._sort(),this.contents.pop()},o.prototype.size=function(){return this.contents.length},o.prototype.map=function(t){return this._sort(),this.contents.map(t)},o);function o(t){this._comparator=t,this.contents=[],this._sorted=!1}r.default=n},function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e(168);r.Default=n.default},function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var b=e(19),g=e(9),n=e(62),o={targetDarkLuma:.26,maxDarkLuma:.45,minLightLuma:.55,targetLightLuma:.74,minNormalLuma:.3,targetNormalLuma:.5,maxNormalLuma:.7,targetMutesSaturation:.3,maxMutesSaturation:.4,targetVibrantSaturation:1,minVibrantSaturation:.35,weightSaturation:3,weightLuma:6.5,weightPopulation:.5};function i(i,t,a,u,s,c,f,h,l,p){var v=null,b=0;return t.forEach(function(t){var r=t.getHsl(),e=r[1],n=r[2];if(h<=e&&e<=l&&s<=n&&n<=c&&!function(t,r){return t.Vibrant===r||t.DarkVibrant===r||t.LightVibrant===r||t.Muted===r||t.DarkMuted===r||t.LightMuted===r}(i,t)){var o=function(t,r,e,n,o,i,a){function u(t,r){return 1-Math.abs(t-r)}return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var e=0,n=0,o=0;o<t.length;o+=2){var i=t[o],a=t[o+1];e+=i*a,n+=a}return e/n}(u(t,r),a.weightSaturation,u(e,n),a.weightLuma,o/i,a.weightPopulation)}(e,f,n,u,t.getPopulation(),a,p);(null===v||b<o)&&(v=t,b=o)}}),v}r.default=function(t,r){r=n({},r,o);var e=function(t,r,e){var n={};return n.Vibrant=i(n,t,r,e.targetNormalLuma,e.minNormalLuma,e.maxNormalLuma,e.targetVibrantSaturation,e.minVibrantSaturation,1,e),n.LightVibrant=i(n,t,r,e.targetLightLuma,e.minLightLuma,1,e.targetVibrantSaturation,e.minVibrantSaturation,1,e),n.DarkVibrant=i(n,t,r,e.targetDarkLuma,0,e.maxDarkLuma,e.targetVibrantSaturation,e.minVibrantSaturation,1,e),n.Muted=i(n,t,r,e.targetNormalLuma,e.minNormalLuma,e.maxNormalLuma,e.targetMutesSaturation,0,e.maxMutesSaturation,e),n.LightMuted=i(n,t,r,e.targetLightLuma,e.minLightLuma,1,e.targetMutesSaturation,0,e.maxMutesSaturation,e),n.DarkMuted=i(n,t,r,e.targetDarkLuma,0,e.maxDarkLuma,e.targetMutesSaturation,0,e.maxMutesSaturation,e),n}(t,function(t){var r=0;return t.forEach(function(t){r=Math.max(r,t.getPopulation())}),r}(t),r);return function(t,r,e){if(null===t.Vibrant&&null===t.DarkVibrant&&null===t.LightVibrant){if(null===t.DarkVibrant&&null!==t.DarkMuted){var n=t.DarkMuted.getHsl(),o=n[0],i=n[1],a=n[2];a=e.targetDarkLuma,t.DarkVibrant=new b.Swatch(g.hslToRgb(o,i,a),0)}if(null===t.LightVibrant&&null!==t.LightMuted){var u=t.LightMuted.getHsl();o=u[0],i=u[1],a=u[2];a=e.targetDarkLuma,t.DarkVibrant=new b.Swatch(g.hslToRgb(o,i,a),0)}}if(null===t.Vibrant&&null!==t.DarkVibrant){var s=t.DarkVibrant.getHsl();o=s[0],i=s[1],a=s[2];a=e.targetNormalLuma,t.Vibrant=new b.Swatch(g.hslToRgb(o,i,a),0)}else if(null===t.Vibrant&&null!==t.LightVibrant){var c=t.LightVibrant.getHsl();o=c[0],i=c[1],a=c[2];a=e.targetNormalLuma,t.Vibrant=new b.Swatch(g.hslToRgb(o,i,a),0)}if(null===t.DarkVibrant&&null!==t.Vibrant){var f=t.Vibrant.getHsl();o=f[0],i=f[1],a=f[2];a=e.targetDarkLuma,t.DarkVibrant=new b.Swatch(g.hslToRgb(o,i,a),0)}if(null===t.LightVibrant&&null!==t.Vibrant){var h=t.Vibrant.getHsl();o=h[0],i=h[1],a=h[2];a=e.targetLightLuma,t.LightVibrant=new b.Swatch(g.hslToRgb(o,i,a),0)}if(null===t.Muted&&null!==t.Vibrant){var l=t.Vibrant.getHsl();o=l[0],i=l[1],a=l[2];a=e.targetMutesSaturation,t.Muted=new b.Swatch(g.hslToRgb(o,i,a),0)}if(null===t.DarkMuted&&null!==t.DarkVibrant){var p=t.DarkVibrant.getHsl();o=p[0],i=p[1],a=p[2];a=e.targetMutesSaturation,t.DarkMuted=new b.Swatch(g.hslToRgb(o,i,a),0)}if(null===t.LightMuted&&null!==t.LightVibrant){var v=t.LightVibrant.getHsl();o=v[0],i=v[1],a=v[2];a=e.targetMutesSaturation,t.LightMuted=new b.Swatch(g.hslToRgb(o,i,a),0)}}(e,0,r),e}},function(t,r,e){var n=e(33),o=e(66),i=e(67);t.exports=function(t,r){return i(o(t,r,n),t+"")}},function(t,r){t.exports=function(t,r,e){switch(e.length){case 0:return t.call(r);case 1:return t.call(r,e[0]);case 2:return t.call(r,e[0],e[1]);case 3:return t.call(r,e[0],e[1],e[2])}return t.apply(r,e)}},function(t,r,e){var n=e(172),o=e(60),i=e(33),a=o?function(t,r){return o(t,"toString",{configurable:!0,enumerable:!1,value:n(r),writable:!0})}:i;t.exports=a},function(t,r){t.exports=function(t){return function(){return t}}},function(t,r){var i=Date.now;t.exports=function(e){var n=0,o=0;return function(){var t=i(),r=16-(t-o);if(o=t,0<r){if(800<=++n)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},function(t,r,e){var o=e(8),i=e(10),a=e(22),u=e(3);t.exports=function(t,r,e){if(!u(e))return!1;var n=typeof r;return!!("number"==n?i(e)&&a(r,e.length):"string"==n&&r in e)&&o(e[r],t)}},function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e(176);r.Default=n.default,r.combineFilters=function(i){return Array.isArray(i)&&0!==i.length?function(t,r,e,n){if(0===n)return!1;for(var o=0;o<i.length;o++)if(!i[o](t,r,e,n))return!1;return!0}:null}},function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(t,r,e,n){return 125<=n&&!(250<t&&250<r&&250<e)}},function(t,r,e){"use strict";var n,o=this&&this.__extends||(n=function(t,r){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)r.hasOwnProperty(e)&&(t[e]=r[e])})(t,r)},function(t,r){function e(){this.constructor=t}n(t,r),t.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)});Object.defineProperty(r,"__esModule",{value:!0});var i=e(178),a=e(179);var u,s=(u=i.ImageBase,o(c,u),c.prototype._initCanvas=function(){var t=this.image,r=this._canvas=document.createElement("canvas"),e=this._context=r.getContext("2d");r.className="vibrant-canvas",r.style.display="none",this._width=r.width=t.width,this._height=r.height=t.height,e.drawImage(t,0,0),document.body.appendChild(r)},c.prototype.load=function(t){var n=this,o=null,i=null;if("string"==typeof t)o=document.createElement("img"),function(t){var r=a.parse(t);return null===r.protocol&&null===r.host&&null===r.port}(t)||function(t,r){var e=a.parse(t),n=a.parse(r);return e.protocol===n.protocol&&e.hostname===n.hostname&&e.port===n.port}(window.location.href,t)||(o.crossOrigin="anonymous"),i=o.src=t;else{if(!(t instanceof HTMLImageElement))return Promise.reject(new Error("Cannot load buffer as an image in browser"));i=(o=t).src}return this.image=o,new Promise(function(t,r){function e(){n._initCanvas(),t(n)}o.complete?e():(o.onload=e,o.onerror=function(t){return r(new Error("Fail to load image: "+i))})})},c.prototype.clear=function(){this._context.clearRect(0,0,this._width,this._height)},c.prototype.update=function(t){this._context.putImageData(t,0,0)},c.prototype.getWidth=function(){return this._width},c.prototype.getHeight=function(){return this._height},c.prototype.resize=function(t,r,e){var n=this._canvas,o=this._context,i=this.image;this._width=n.width=t,this._height=n.height=r,o.scale(e,e),o.drawImage(i,0,0)},c.prototype.getPixelCount=function(){return this._width*this._height},c.prototype.getImageData=function(){return this._context.getImageData(0,0,this._width,this._height)},c.prototype.remove=function(){this._canvas&&this._canvas.parentNode&&this._canvas.parentNode.removeChild(this._canvas)},c);function c(){return null!==u&&u.apply(this,arguments)||this}r.default=s},function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=(o.prototype.scaleDown=function(t){var r=this.getWidth(),e=this.getHeight(),n=1;if(0<t.maxDimension){var o=Math.max(r,e);o>t.maxDimension&&(n=t.maxDimension/o)}else n=1/t.quality;n<1&&this.resize(r*n,e*n,n)},o.prototype.applyFilter=function(t){var r=this.getImageData();if("function"==typeof t)for(var e=r.data,n=e.length/4,o=void 0,i=0;i<n;i++)t(e[0+(o=4*i)],e[o+1],e[o+2],e[o+3])||(e[o+3]=0);return Promise.resolve(r)},o);function o(){}r.ImageBase=n},function(t,r,e){"use strict";var D=e(180),k=e(181);function M(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}r.parse=i,r.resolve=function(t,r){return i(t,!1,!0).resolve(r)},r.resolveObject=function(t,r){return t?i(t,!1,!0).resolveObject(r):r},r.format=function(t){k.isString(t)&&(t=i(t));return t instanceof M?t.format():M.prototype.format.call(t)},r.Url=M;var F=/^([a-z0-9.+-]+:)/i,n=/:[0-9]*$/,E=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,o=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),V=["'"].concat(o),z=["%","/","?",";","#"].concat(V),U=["/","?","#"],q=/^[+a-z0-9A-Z_-]{0,63}$/,R=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,N={javascript:!0,"javascript:":!0},H={javascript:!0,"javascript:":!0},B={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},$=e(182);function i(t,r,e){if(t&&k.isObject(t)&&t instanceof M)return t;var n=new M;return n.parse(t,r,e),n}M.prototype.parse=function(t,r,e){if(!k.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var n=t.indexOf("?"),o=-1!==n&&n<t.indexOf("#")?"?":"#",i=t.split(o);i[0]=i[0].replace(/\\/g,"/");var a=t=i.join(o);if(a=a.trim(),!e&&1===t.split("#").length){var u=E.exec(a);if(u)return this.path=a,this.href=a,this.pathname=u[1],u[2]?(this.search=u[2],this.query=r?$.parse(this.search.substr(1)):this.search.substr(1)):r&&(this.search="",this.query={}),this}var s=F.exec(a);if(s){var c=(s=s[0]).toLowerCase();this.protocol=c,a=a.substr(s.length)}if(e||s||a.match(/^\/\/[^@\/]+@[^@\/]+/)){var f="//"===a.substr(0,2);!f||s&&H[s]||(a=a.substr(2),this.slashes=!0)}if(!H[s]&&(f||s&&!B[s])){for(var h,l,p=-1,v=0;v<U.length;v++){-1!==(b=a.indexOf(U[v]))&&(-1===p||b<p)&&(p=b)}-1!==(l=-1===p?a.lastIndexOf("@"):a.lastIndexOf("@",p))&&(h=a.slice(0,l),a=a.slice(l+1),this.auth=decodeURIComponent(h)),p=-1;for(v=0;v<z.length;v++){var b;-1!==(b=a.indexOf(z[v]))&&(-1===p||b<p)&&(p=b)}-1===p&&(p=a.length),this.host=a.slice(0,p),a=a.slice(p),this.parseHost(),this.hostname=this.hostname||"";var g="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!g)for(var y=this.hostname.split(/\./),d=(v=0,y.length);v<d;v++){var m=y[v];if(m&&!m.match(q)){for(var _="",x=0,j=m.length;x<j;x++)127<m.charCodeAt(x)?_+="x":_+=m[x];if(!_.match(q)){var w=y.slice(0,v),O=y.slice(v+1),S=m.match(R);S&&(w.push(S[1]),O.unshift(S[2])),O.length&&(a="/"+O.join(".")+a),this.hostname=w.join(".");break}}}255<this.hostname.length?this.hostname="":this.hostname=this.hostname.toLowerCase(),g||(this.hostname=D.toASCII(this.hostname));var A=this.port?":"+this.port:"",M=this.hostname||"";this.host=M+A,this.href+=this.host,g&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==a[0]&&(a="/"+a))}if(!N[c])for(v=0,d=V.length;v<d;v++){var I=V[v];if(-1!==a.indexOf(I)){var C=encodeURIComponent(I);C===I&&(C=escape(I)),a=a.split(I).join(C)}}var T=a.indexOf("#");-1!==T&&(this.hash=a.substr(T),a=a.slice(0,T));var P=a.indexOf("?");if(-1!==P?(this.search=a.substr(P),this.query=a.substr(P+1),r&&(this.query=$.parse(this.query)),a=a.slice(0,P)):r&&(this.search="",this.query={}),a&&(this.pathname=a),B[c]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){A=this.pathname||"";var L=this.search||"";this.path=A+L}return this.href=this.format(),this},M.prototype.format=function(){var t=this.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var r=this.protocol||"",e=this.pathname||"",n=this.hash||"",o=!1,i="";this.host?o=t+this.host:this.hostname&&(o=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&k.isObject(this.query)&&Object.keys(this.query).length&&(i=$.stringify(this.query));var a=this.search||i&&"?"+i||"";return r&&":"!==r.substr(-1)&&(r+=":"),this.slashes||(!r||B[r])&&!1!==o?(o="//"+(o||""),e&&"/"!==e.charAt(0)&&(e="/"+e)):o=o||"",n&&"#"!==n.charAt(0)&&(n="#"+n),a&&"?"!==a.charAt(0)&&(a="?"+a),r+o+(e=e.replace(/[?#]/g,function(t){return encodeURIComponent(t)}))+(a=a.replace("#","%23"))+n},M.prototype.resolve=function(t){return this.resolveObject(i(t,!1,!0)).format()},M.prototype.resolveObject=function(t){if(k.isString(t)){var r=new M;r.parse(t,!1,!0),t=r}for(var e=new M,n=Object.keys(this),o=0;o<n.length;o++){var i=n[o];e[i]=this[i]}if(e.hash=t.hash,""===t.href)return e.href=e.format(),e;if(t.slashes&&!t.protocol){for(var a=Object.keys(t),u=0;u<a.length;u++){var s=a[u];"protocol"!==s&&(e[s]=t[s])}return B[e.protocol]&&e.hostname&&!e.pathname&&(e.path=e.pathname="/"),e.href=e.format(),e}if(t.protocol&&t.protocol!==e.protocol){if(!B[t.protocol]){for(var c=Object.keys(t),f=0;f<c.length;f++){var h=c[f];e[h]=t[h]}return e.href=e.format(),e}if(e.protocol=t.protocol,t.host||H[t.protocol])e.pathname=t.pathname;else{for(var l=(t.pathname||"").split("/");l.length&&!(t.host=l.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==l[0]&&l.unshift(""),l.length<2&&l.unshift(""),e.pathname=l.join("/")}if(e.search=t.search,e.query=t.query,e.host=t.host||"",e.auth=t.auth,e.hostname=t.hostname||t.host,e.port=t.port,e.pathname||e.search){var p=e.pathname||"",v=e.search||"";e.path=p+v}return e.slashes=e.slashes||t.slashes,e.href=e.format(),e}var b=e.pathname&&"/"===e.pathname.charAt(0),g=t.host||t.pathname&&"/"===t.pathname.charAt(0),y=g||b||e.host&&t.pathname,d=y,m=e.pathname&&e.pathname.split("/")||[],_=(l=t.pathname&&t.pathname.split("/")||[],e.protocol&&!B[e.protocol]);if(_&&(e.hostname="",e.port=null,e.host&&(""===m[0]?m[0]=e.host:m.unshift(e.host)),e.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===l[0]?l[0]=t.host:l.unshift(t.host)),t.host=null),y=y&&(""===l[0]||""===m[0])),g)e.host=t.host||""===t.host?t.host:e.host,e.hostname=t.hostname||""===t.hostname?t.hostname:e.hostname,e.search=t.search,e.query=t.query,m=l;else if(l.length)(m=m||[]).pop(),m=m.concat(l),e.search=t.search,e.query=t.query;else if(!k.isNullOrUndefined(t.search)){if(_)e.hostname=e.host=m.shift(),(S=!!(e.host&&0<e.host.indexOf("@"))&&e.host.split("@"))&&(e.auth=S.shift(),e.host=e.hostname=S.shift());return e.search=t.search,e.query=t.query,k.isNull(e.pathname)&&k.isNull(e.search)||(e.path=(e.pathname?e.pathname:"")+(e.search?e.search:"")),e.href=e.format(),e}if(!m.length)return e.pathname=null,e.search?e.path="/"+e.search:e.path=null,e.href=e.format(),e;for(var x=m.slice(-1)[0],j=(e.host||t.host||1<m.length)&&("."===x||".."===x)||""===x,w=0,O=m.length;0<=O;O--)"."===(x=m[O])?m.splice(O,1):".."===x?(m.splice(O,1),w++):w&&(m.splice(O,1),w--);if(!y&&!d)for(;w--;)m.unshift("..");!y||""===m[0]||m[0]&&"/"===m[0].charAt(0)||m.unshift(""),j&&"/"!==m.join("/").substr(-1)&&m.push("");var S,A=""===m[0]||m[0]&&"/"===m[0].charAt(0);_&&(e.hostname=e.host=A?"":m.length?m.shift():"",(S=!!(e.host&&0<e.host.indexOf("@"))&&e.host.split("@"))&&(e.auth=S.shift(),e.host=e.hostname=S.shift()));return(y=y||e.host&&m.length)&&!A&&m.unshift(""),m.length?e.pathname=m.join("/"):(e.pathname=null,e.path=null),k.isNull(e.pathname)&&k.isNull(e.search)||(e.path=(e.pathname?e.pathname:"")+(e.search?e.search:"")),e.auth=t.auth||e.auth,e.slashes=e.slashes||t.slashes,e.href=e.format(),e},M.prototype.parseHost=function(){var t=this.host,r=n.exec(t);r&&(":"!==(r=r[0])&&(this.port=r.substr(1)),t=t.substr(0,t.length-r.length)),t&&(this.hostname=t)}},function(t,g,P){(function(p,v){var b;/*! https://mths.be/punycode v1.3.2 by @mathias */!function(){g&&g.nodeType,p&&p.nodeType;var t="object"==typeof v&&v;t.global!==t&&t.window!==t&&t.self;var r,y=2147483647,d=36,m=1,_=26,o=38,i=700,x=72,j=128,w="-",e=/^xn--/,n=/[^\x20-\x7E]/,a=/[\x2E\u3002\uFF0E\uFF61]/g,u={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},s=d-m,O=Math.floor,S=String.fromCharCode;function A(t){throw RangeError(u[t])}function c(t,r){for(var e=t.length,n=[];e--;)n[e]=r(t[e]);return n}function f(t,r){var e=t.split("@"),n="";return 1<e.length&&(n=e[0]+"@",t=e[1]),n+c((t=t.replace(a,".")).split("."),r).join(".")}function M(t){for(var r,e,n=[],o=0,i=t.length;o<i;)55296<=(r=t.charCodeAt(o++))&&r<=56319&&o<i?56320==(64512&(e=t.charCodeAt(o++)))?n.push(((1023&r)<<10)+(1023&e)+65536):(n.push(r),o--):n.push(r);return n}function I(t){return c(t,function(t){var r="";return 65535<t&&(r+=S((t-=65536)>>>10&1023|55296),t=56320|1023&t),r+=S(t)}).join("")}function C(t,r){return t+22+75*(t<26)-((0!=r)<<5)}function T(t,r,e){var n=0;for(t=e?O(t/i):t>>1,t+=O(t/r);s*_>>1<t;n+=d)t=O(t/s);return O(n+(s+1)*t/(t+o))}function h(t){var r,e,n,o,i,a,u,s,c,f,h,l=[],p=t.length,v=0,b=j,g=x;for((e=t.lastIndexOf(w))<0&&(e=0),n=0;n<e;++n)128<=t.charCodeAt(n)&&A("not-basic"),l.push(t.charCodeAt(n));for(o=0<e?e+1:0;o<p;){for(i=v,a=1,u=d;p<=o&&A("invalid-input"),h=t.charCodeAt(o++),(d<=(s=h-48<10?h-22:h-65<26?h-65:h-97<26?h-97:d)||s>O((y-v)/a))&&A("overflow"),v+=s*a,!(s<(c=u<=g?m:g+_<=u?_:u-g));u+=d)a>O(y/(f=d-c))&&A("overflow"),a*=f;g=T(v-i,r=l.length+1,0==i),O(v/r)>y-b&&A("overflow"),b+=O(v/r),v%=r,l.splice(v++,0,b)}return I(l)}function l(t){var r,e,n,o,i,a,u,s,c,f,h,l,p,v,b,g=[];for(l=(t=M(t)).length,r=j,i=x,a=e=0;a<l;++a)(h=t[a])<128&&g.push(S(h));for(n=o=g.length,o&&g.push(w);n<l;){for(u=y,a=0;a<l;++a)r<=(h=t[a])&&h<u&&(u=h);for(u-r>O((y-e)/(p=n+1))&&A("overflow"),e+=(u-r)*p,r=u,a=0;a<l;++a)if((h=t[a])<r&&++e>y&&A("overflow"),h==r){for(s=e,c=d;!(s<(f=c<=i?m:i+_<=c?_:c-i));c+=d)b=s-f,v=d-f,g.push(S(C(f+b%v,0))),s=O(b/v);g.push(S(C(s,0))),i=T(e,p,n==o),e=0,++n}++e,++r}return g.join("")}r={version:"1.3.2",ucs2:{decode:M,encode:I},decode:h,encode:l,toASCII:function(t){return f(t,function(t){return n.test(t)?"xn--"+l(t):t})},toUnicode:function(t){return f(t,function(t){return e.test(t)?h(t.slice(4).toLowerCase()):t})}},void 0===(b=function(){return r}.call(g,P,g,p))||(p.exports=b)}()}).call(this,P(13)(t),P(44))},function(t,r,e){"use strict";t.exports={isString:function(t){return"string"==typeof t},isObject:function(t){return"object"==typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},function(t,r,e){"use strict";r.decode=r.parse=e(183),r.encode=r.stringify=e(184)},function(t,r,e){"use strict";t.exports=function(t,r,e,n){r=r||"&",e=e||"=";var o={};if("string"!=typeof t||0===t.length)return o;var i=/\+/g;t=t.split(r);var a=1e3;n&&"number"==typeof n.maxKeys&&(a=n.maxKeys);var u,s,c=t.length;0<a&&a<c&&(c=a);for(var f=0;f<c;++f){var h,l,p,v,b=t[f].replace(i,"%20"),g=b.indexOf(e);l=0<=g?(h=b.substr(0,g),b.substr(g+1)):(h=b,""),p=decodeURIComponent(h),v=decodeURIComponent(l),u=o,s=p,Object.prototype.hasOwnProperty.call(u,s)?y(o[p])?o[p].push(v):o[p]=[o[p],v]:o[p]=v}return o};var y=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},function(t,r,e){"use strict";function i(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}}t.exports=function(e,n,o,t){return n=n||"&",o=o||"=",null===e&&(e=void 0),"object"==typeof e?u(s(e),function(t){var r=encodeURIComponent(i(t))+o;return a(e[t])?u(e[t],function(t){return r+encodeURIComponent(i(t))}).join(n):r+encodeURIComponent(i(e[t]))}).join(n):t?encodeURIComponent(i(t))+o+encodeURIComponent(i(e)):""};var a=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function u(t,r){if(t.map)return t.map(r);for(var e=[],n=0;n<t.length;n++)e.push(r(t[n],n));return e}var s=Object.keys||function(t){var r=[];for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&r.push(e);return r}},function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e(68);("object"==typeof window&&window instanceof Window?window:t.exports).Vibrant=n}]); | ||
!function(e){var n={};function o(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.m=e,o.c=n,o.d=function(t,r,e){o.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:e})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(r,t){if(1&t&&(r=o(r)),8&t)return r;if(4&t&&"object"==typeof r&&r&&r.__esModule)return r;var e=Object.create(null);if(o.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:r}),2&t&&"string"!=typeof r)for(var n in r)o.d(e,n,function(t){return r[t]}.bind(null,n));return e},o.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(r,"a",r),r},o.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},o.p="",o(o.s=185)}([function(t,r){var e=Array.isArray;t.exports=e},function(t,r,e){var n=e(43),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},function(t,r){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,r){t.exports=function(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)}},function(t,r,e){var n=e(96),o=e(99);t.exports=function(t,r){var e=o(t,r);return n(e)?e:void 0}},function(t,r,e){var n=e(42),o=e(81),i=e(10);t.exports=function(t){return i(t)?n(t):o(t)}},function(t,r,e){var n=e(7),o=e(77),i=e(78),a=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?o(t):i(t)}},function(t,r,e){var n=e(1).Symbol;t.exports=n},function(t,r){t.exports=function(t,r){return t===r||t!=t&&r!=r}},function(t,n,r){"use strict";function e(t){var r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return null===r?null:[r[1],r[2],r[3]].map(function(t){return parseInt(t,16)})}function o(t,r,e){return r/=255,e/=255,t=.04045<(t/=255)?Math.pow((t+.005)/1.055,2.4):t/12.92,r=.04045<r?Math.pow((r+.005)/1.055,2.4):r/12.92,e=.04045<e?Math.pow((e+.005)/1.055,2.4):e/12.92,[.4124*(t*=100)+.3576*(r*=100)+.1805*(e*=100),.2126*t+.7152*r+.0722*e,.0193*t+.1192*r+.9505*e]}function i(t,r,e){return r/=100,e/=108.883,t=.008856<(t/=95.047)?Math.pow(t,1/3):7.787*t+16/116,[116*(r=.008856<r?Math.pow(r,1/3):7.787*r+16/116)-16,500*(t-r),200*(r-(e=.008856<e?Math.pow(e,1/3):7.787*e+16/116))]}function a(t,r,e){var n=o(t,r,e);return i(n[0],n[1],n[2])}function u(t,r){var e=t[0],n=t[1],o=t[2],i=r[0],a=r[1],u=r[2],s=e-i,c=n-a,f=o-u,h=Math.sqrt(n*n+o*o),l=i-e,p=Math.sqrt(a*a+u*u)-h,v=Math.sqrt(s*s+c*c+f*f),b=Math.sqrt(v)>Math.sqrt(Math.abs(l))+Math.sqrt(Math.abs(p))?Math.sqrt(v*v-l*l-p*p):0;return l/=1,p/=1*(1+.045*h),b/=1*(1+.015*h),Math.sqrt(l*l+p*p+b*b)}function s(t,r){return u(a.apply(void 0,t),a.apply(void 0,r))}Object.defineProperty(n,"__esModule",{value:!0}),n.DELTAE94_DIFF_STATUS={NA:0,PERFECT:1,CLOSE:2,GOOD:10,SIMILAR:50},n.SIGBITS=5,n.RSHIFT=8-n.SIGBITS,n.defer=function(){var e,n,t=new Promise(function(t,r){e=t,n=r});return{resolve:e,reject:n,promise:t}},n.hexToRgb=e,n.rgbToHex=function(t,r,e){return"#"+((1<<24)+(t<<16)+(r<<8)+e).toString(16).slice(1,7)},n.rgbToHsl=function(t,r,e){t/=255,r/=255,e/=255;var n,o,i=Math.max(t,r,e),a=Math.min(t,r,e),u=(i+a)/2;if(i===a)n=o=0;else{var s=i-a;switch(o=.5<u?s/(2-i-a):s/(i+a),i){case t:n=(r-e)/s+(r<e?6:0);break;case r:n=(e-t)/s+2;break;case e:n=(t-r)/s+4}n/=6}return[n,o,u]},n.hslToRgb=function(t,r,e){var n,o,i;function a(t,r,e){return e<0&&(e+=1),1<e&&(e-=1),e<1/6?t+6*(r-t)*e:e<.5?r:e<2/3?t+(r-t)*(2/3-e)*6:t}if(0===r)n=o=i=e;else{var u=e<.5?e*(1+r):e+r-e*r,s=2*e-u;n=a(s,u,t+1/3),o=a(s,u,t),i=a(s,u,t-1/3)}return[255*n,255*o,255*i]},n.rgbToXyz=o,n.xyzToCIELab=i,n.rgbToCIELab=a,n.deltaE94=u,n.rgbDiff=s,n.hexDiff=function(t,r){return s(e(t),e(r))},n.getColorDiffStatus=function(t){return t<n.DELTAE94_DIFF_STATUS.NA?"N/A":t<=n.DELTAE94_DIFF_STATUS.PERFECT?"Perfect":t<=n.DELTAE94_DIFF_STATUS.CLOSE?"Close":t<=n.DELTAE94_DIFF_STATUS.GOOD?"Good":t<n.DELTAE94_DIFF_STATUS.SIMILAR?"Similar":"Wrong"},n.getColorIndex=function(t,r,e){return(t<<2*n.SIGBITS)+(r<<n.SIGBITS)+e}},function(t,r,e){var n=e(47),o=e(23);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},function(t,r,e){var n=e(20);t.exports=function(t){if("string"==typeof t||n(t))return t;var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}},function(t,r,e){var c=e(58),f=e(59);t.exports=function(t,r,e,n){var o=!e;e=e||{};for(var i=-1,a=r.length;++i<a;){var u=r[i],s=n?n(e[u],t[u],u,e,t):void 0;void 0===s&&(s=t[u]),o?f(e,u,s):c(e,u,s)}return e}},function(t,r){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,r,e){var n=e(86),o=e(87),i=e(88),a=e(89),u=e(90);function s(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,t.exports=s},function(t,r,e){var n=e(8);t.exports=function(t,r){for(var e=t.length;e--;)if(n(t[e][0],r))return e;return-1}},function(t,r,e){var n=e(4)(Object,"create");t.exports=n},function(t,r,e){var n=e(108);t.exports=function(t,r){var e=t.__data__;return n(r)?e["string"==typeof r?"string":"hash"]:e.map}},function(t,r,e){var n=e(122),o=e(28),i=e(123),a=e(124),u=e(125),s=e(6),c=e(49),f="[object Map]",h="[object Promise]",l="[object Set]",p="[object WeakMap]",v="[object DataView]",b=c(n),g=c(o),y=c(i),d=c(a),m=c(u),_=s;(n&&_(new n(new ArrayBuffer(1)))!=v||o&&_(new o)!=f||i&&_(i.resolve())!=h||a&&_(new a)!=l||u&&_(new u)!=p)&&(_=function(t){var r=s(t),e="[object Object]"==r?t.constructor:void 0,n=e?c(e):"";if(n)switch(n){case b:return v;case g:return f;case y:return h;case d:return l;case m:return p}return r}),t.exports=_},function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var o=e(9),n=e(69),i=(a.applyFilter=function(t,o){return"function"==typeof o?n(t,function(t){var r=t.r,e=t.g,n=t.b;return o(r,e,n,255)}):t},Object.defineProperty(a.prototype,"r",{get:function(){return this._rgb[0]},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"g",{get:function(){return this._rgb[1]},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"b",{get:function(){return this._rgb[2]},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"rgb",{get:function(){return this._rgb},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"hsl",{get:function(){if(!this._hsl){var t=this._rgb,r=t[0],e=t[1],n=t[2];this._hsl=o.rgbToHsl(r,e,n)}return this._hsl},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"hex",{get:function(){if(!this._hex){var t=this._rgb,r=t[0],e=t[1],n=t[2];this._hex=o.rgbToHex(r,e,n)}return this._hex},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"population",{get:function(){return this._population},enumerable:!0,configurable:!0}),a.prototype.toJSON=function(){return{rgb:this.rgb,population:this.population}},a.prototype.getRgb=function(){return this._rgb},a.prototype.getHsl=function(){return this.hsl},a.prototype.getPopulation=function(){return this._population},a.prototype.getHex=function(){return this.hex},a.prototype.getYiq=function(){if(!this._yiq){var t=this._rgb;this._yiq=(299*t[0]+587*t[1]+114*t[2])/1e3}return this._yiq},Object.defineProperty(a.prototype,"titleTextColor",{get:function(){return this._titleTextColor||(this._titleTextColor=this.getYiq()<200?"#fff":"#000"),this._titleTextColor},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"bodyTextColor",{get:function(){return this._bodyTextColor||(this._bodyTextColor=this.getYiq()<150?"#fff":"#000"),this._bodyTextColor},enumerable:!0,configurable:!0}),a.prototype.getTitleTextColor=function(){return this.titleTextColor},a.prototype.getBodyTextColor=function(){return this.bodyTextColor},a);function a(t,r){this._rgb=t,this._population=r}r.Swatch=i},function(t,r,e){var n=e(6),o=e(2);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==n(t)}},function(t,u,s){(function(t){var r=s(1),e=s(79),n=u&&!u.nodeType&&u,o=n&&"object"==typeof t&&t&&!t.nodeType&&t,i=o&&o.exports===n?r.Buffer:void 0,a=(i?i.isBuffer:void 0)||e;t.exports=a}).call(this,s(13)(t))},function(t,r){var n=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var e=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==e||"symbol"!=e&&n.test(t))&&-1<t&&t%1==0&&t<r}},function(t,r){t.exports=function(t){return"number"==typeof t&&-1<t&&t%1==0&&t<=9007199254740991}},function(t,r){t.exports=function(r){return function(t){return r(t)}}},function(t,a,u){(function(t){var r=u(43),e=a&&!a.nodeType&&a,n=e&&"object"==typeof t&&t&&!t.nodeType&&t,o=n&&n.exports===e&&r.process,i=function(){try{var t=n&&n.require&&n.require("util").types;return t||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=i}).call(this,u(13)(t))},function(t,r){var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},function(t,r,e){var n=e(14),o=e(91),i=e(92),a=e(93),u=e(94),s=e(95);function c(t){var r=this.__data__=new n(t);this.size=r.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=u,c.prototype.set=s,t.exports=c},function(t,r,e){var n=e(4)(e(1),"Map");t.exports=n},function(t,r,e){var n=e(100),o=e(107),i=e(109),a=e(110),u=e(111);function s(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,t.exports=s},function(t,r,e){var n=e(41),o=e(55),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,u=a?function(r){return null==r?[]:(r=Object(r),n(a(r),function(t){return i.call(r,t)}))}:o;t.exports=u},function(t,r,e){var n=e(0),o=e(32),i=e(129),a=e(132);t.exports=function(t,r){return n(t)?t:o(t,r)?[t]:i(a(t))}},function(t,r,e){var n=e(0),o=e(20),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,r){if(n(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!o(t))||(a.test(t)||!i.test(t)||null!=r&&t in Object(r))}},function(t,r){t.exports=function(t){return t}},function(t,r,e){var n=e(42),o=e(145),i=e(10);t.exports=function(t){return i(t)?n(t,!0):o(t)}},function(t,r,e){var n=e(52);t.exports=function(t){var r=new t.constructor(t.byteLength);return new n(r).set(new n(t)),r}},function(t,r,e){var n=e(76),o=e(2),i=Object.prototype,a=i.hasOwnProperty,u=i.propertyIsEnumerable,s=n(function(){return arguments}())?n:function(t){return o(t)&&a.call(t,"callee")&&!u.call(t,"callee")};t.exports=s},function(t,r){t.exports=function(t,r){for(var e=-1,n=r.length,o=t.length;++e<n;)t[o+e]=r[e];return t}},function(t,r,e){var o=e(31),i=e(11);t.exports=function(t,r){for(var e=0,n=(r=o(r,t)).length;null!=t&&e<n;)t=t[i(r[e++])];return e&&e==n?t:void 0}},function(t,r,e){var n=e(46)(Object.getPrototypeOf,Object);t.exports=n},function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var o=e(19),n=e(140),i=e(9),a=e(163),u=e(167),s=e(175),c=e(62),f=(h.from=function(t){return new n.default(t)},h.prototype._process=function(t,r){var e=r.quantizer,n=r.generator;return t.scaleDown(r),t.applyFilter(r.combinedFilter).then(function(t){return e(t.data,r)}).then(function(t){return o.Swatch.applyFilter(t,r.combinedFilter)}).then(function(t){return Promise.resolve(n(t))})},h.prototype.palette=function(){return this.swatches()},h.prototype.swatches=function(){return this._palette},h.prototype.getPalette=function(r){var e=this,n=new this.opts.ImageClass,t=n.load(this._src).then(function(t){return e._process(t,e.opts)}).then(function(t){return e._palette=t,n.remove(),t},function(t){throw n.remove(),t});return r&&t.then(function(t){return r(null,t)},function(t){return r(t)}),t},h.Builder=n.default,h.Quantizer=a,h.Generator=u,h.Filter=s,h.Util=i,h.DefaultOpts={colorCount:64,quality:5,generator:u.Default,ImageClass:null,quantizer:a.MMCQ,filters:[s.Default]},h);function h(t,r){this._src=t,this.opts=c({},r,h.DefaultOpts),this.opts.combinedFilter=s.combineFilters(this.opts.filters)}r.default=f},function(t,r){t.exports=function(t,r){for(var e=-1,n=null==t?0:t.length,o=0,i=[];++e<n;){var a=t[e];r(a,e,t)&&(i[o++]=a)}return i}},function(t,r,e){var f=e(75),h=e(36),l=e(0),p=e(21),v=e(22),b=e(45),g=Object.prototype.hasOwnProperty;t.exports=function(t,r){var e=l(t),n=!e&&h(t),o=!e&&!n&&p(t),i=!e&&!n&&!o&&b(t),a=e||n||o||i,u=a?f(t.length,String):[],s=u.length;for(var c in t)!r&&!g.call(t,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||v(c,s))||u.push(c);return u}},function(e,t,r){(function(t){var r="object"==typeof t&&t&&t.Object===Object&&t;e.exports=r}).call(this,r(44))},function(t,r){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,r,e){var n=e(80),o=e(24),i=e(25),a=i&&i.isTypedArray,u=a?o(a):n;t.exports=u},function(t,r){t.exports=function(r,e){return function(t){return r(e(t))}}},function(t,r,e){var n=e(6),o=e(3);t.exports=function(t){if(!o(t))return!1;var r=n(t);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}},function(t,r,e){var n=e(84),o=e(127),i=e(33),a=e(0),u=e(137);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?a(t)?o(t[0],t[1]):n(t):u(t)}},function(t,r){var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,r,e){var a=e(112),u=e(2);t.exports=function t(r,e,n,o,i){return r===e||(null==r||null==e||!u(r)&&!u(e)?r!=r&&e!=e:a(r,e,n,o,t,i))}},function(t,r,e){var g=e(113),y=e(116),d=e(117);t.exports=function(t,r,e,n,o,i){var a=1&e,u=t.length,s=r.length;if(u!=s&&!(a&&u<s))return!1;var c=i.get(t);if(c&&i.get(r))return c==r;var f=-1,h=!0,l=2&e?new g:void 0;for(i.set(t,r),i.set(r,t);++f<u;){var p=t[f],v=r[f];if(n)var b=a?n(v,p,f,r,t,i):n(p,v,f,t,r,i);if(void 0!==b){if(b)continue;h=!1;break}if(l){if(!y(r,function(t,r){if(!d(l,r)&&(p===t||o(p,t,e,n,i)))return l.push(r)})){h=!1;break}}else if(p!==v&&!o(p,v,e,n,i)){h=!1;break}}return i.delete(t),i.delete(r),h}},function(t,r,e){var n=e(1).Uint8Array;t.exports=n},function(t,r,e){var n=e(54),o=e(30),i=e(5);t.exports=function(t){return n(t,i,o)}},function(t,r,e){var o=e(37),i=e(0);t.exports=function(t,r,e){var n=r(t);return i(t)?n:o(n,e(t))}},function(t,r){t.exports=function(){return[]}},function(t,r,e){var n=e(3);t.exports=function(t){return t==t&&!n(t)}},function(t,r){t.exports=function(r,e){return function(t){return null!=t&&(t[r]===e&&(void 0!==e||r in Object(t)))}}},function(t,r,e){var o=e(59),i=e(8),a=Object.prototype.hasOwnProperty;t.exports=function(t,r,e){var n=t[r];a.call(t,r)&&i(n,e)&&(void 0!==e||r in t)||o(t,r,e)}},function(t,r,e){var n=e(60);t.exports=function(t,r,e){"__proto__"==r&&n?n(t,r,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[r]=e}},function(t,r,e){var n=e(4),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},function(t,r,e){var n=e(37),o=e(39),i=e(30),a=e(55),u=Object.getOwnPropertySymbols?function(t){for(var r=[];t;)n(r,i(t)),t=o(t);return r}:a;t.exports=u},function(t,r,e){var n=e(169),h=e(8),l=e(174),p=e(34),v=Object.prototype,b=v.hasOwnProperty,o=n(function(t,r){t=Object(t);var e=-1,n=r.length,o=2<n?r[2]:void 0;for(o&&l(r[0],r[1],o)&&(n=1);++e<n;)for(var i=r[e],a=p(i),u=-1,s=a.length;++u<s;){var c=a[u],f=t[c];(void 0===f||h(f,v[c])&&!b.call(t,c))&&(t[c]=i[c])}return t});t.exports=o},function(t,r){t.exports=function(t,r){for(var e=-1,n=null==t?0:t.length,o=Array(n);++e<n;)o[e]=r(t[e],e,t);return o}},function(t,r,e){var y=e(27),d=e(142),m=e(58),_=e(143),x=e(144),j=e(147),w=e(148),O=e(149),S=e(150),A=e(53),M=e(65),I=e(18),C=e(151),T=e(152),P=e(157),L=e(0),D=e(21),k=e(159),F=e(3),E=e(161),V=e(5),z=1,U=2,q=4,R="[object Arguments]",N="[object Function]",H="[object GeneratorFunction]",B="[object Object]",$={};$[R]=$["[object Array]"]=$["[object ArrayBuffer]"]=$["[object DataView]"]=$["[object Boolean]"]=$["[object Date]"]=$["[object Float32Array]"]=$["[object Float64Array]"]=$["[object Int8Array]"]=$["[object Int16Array]"]=$["[object Int32Array]"]=$["[object Map]"]=$["[object Number]"]=$[B]=$["[object RegExp]"]=$["[object Set]"]=$["[object String]"]=$["[object Symbol]"]=$["[object Uint8Array]"]=$["[object Uint8ClampedArray]"]=$["[object Uint16Array]"]=$["[object Uint32Array]"]=!0,$["[object Error]"]=$[N]=$["[object WeakMap]"]=!1,t.exports=function e(n,o,i,t,r,a){var u,s=o&z,c=o&U,f=o&q;if(i&&(u=r?i(n,t,r,a):i(n)),void 0!==u)return u;if(!F(n))return n;var h=L(n);if(h){if(u=C(n),!s)return w(n,u)}else{var l=I(n),p=l==N||l==H;if(D(n))return j(n,s);if(l==B||l==R||p&&!r){if(u=c||p?{}:P(n),!s)return c?S(n,x(u,n)):O(n,_(u,n))}else{if(!$[l])return r?n:{};u=T(n,l,s)}}var v=(a=a||new y).get(n);if(v)return v;if(a.set(n,u),E(n))return n.forEach(function(t){u.add(e(t,o,i,t,n,a))}),u;if(k(n))return n.forEach(function(t,r){u.set(r,e(t,o,i,r,n,a))}),u;var b=f?c?M:A:c?keysIn:V,g=h?void 0:b(n);return d(g||n,function(t,r){g&&(t=n[r=t]),m(u,r,e(t,o,i,r,n,a))}),u}},function(t,r,e){var n=e(54),o=e(61),i=e(34);t.exports=function(t){return n(t,i,o)}},function(t,r,e){var s=e(170),c=Math.max;t.exports=function(i,a,u){return a=c(void 0===a?i.length-1:a,0),function(){for(var t=arguments,r=-1,e=c(t.length-a,0),n=Array(e);++r<e;)n[r]=t[a+r];r=-1;for(var o=Array(a+1);++r<a;)o[r]=t[r];return o[a]=u(n),s(i,this,o)}}},function(t,r,e){var n=e(171),o=e(173)(n);t.exports=o},function(t,r,e){"use strict";var n=e(40),o=e(177);n.default.DefaultOpts.ImageClass=o.default,t.exports=n.default},function(t,r,e){var n=e(41),o=e(70),i=e(48),a=e(0);t.exports=function(t,r){return(a(t)?n:o)(t,i(r,3))}},function(t,r,e){var i=e(71);t.exports=function(t,n){var o=[];return i(t,function(t,r,e){n(t,r,e)&&o.push(t)}),o}},function(t,r,e){var n=e(72),o=e(83)(n);t.exports=o},function(t,r,e){var n=e(73),o=e(5);t.exports=function(t,r){return t&&n(t,r,o)}},function(t,r,e){var n=e(74)();t.exports=n},function(t,r){t.exports=function(s){return function(t,r,e){for(var n=-1,o=Object(t),i=e(t),a=i.length;a--;){var u=i[s?a:++n];if(!1===r(o[u],u,o))break}return t}}},function(t,r){t.exports=function(t,r){for(var e=-1,n=Array(t);++e<t;)n[e]=r(e);return n}},function(t,r,e){var n=e(6),o=e(2);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},function(t,r,e){var n=e(7),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,u=n?n.toStringTag:void 0;t.exports=function(t){var r=i.call(t,u),e=t[u];try{var n=!(t[u]=void 0)}catch(t){}var o=a.call(t);return n&&(r?t[u]=e:delete t[u]),o}},function(t,r){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},function(t,r){t.exports=function(){return!1}},function(t,r,e){var n=e(6),o=e(23),i=e(2),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!a[n(t)]}},function(t,r,e){var n=e(26),o=e(82),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var r=[];for(var e in Object(t))i.call(t,e)&&"constructor"!=e&&r.push(e);return r}},function(t,r,e){var n=e(46)(Object.keys,Object);t.exports=n},function(t,r,e){var u=e(10);t.exports=function(i,a){return function(t,r){if(null==t)return t;if(!u(t))return i(t,r);for(var e=t.length,n=a?e:-1,o=Object(t);(a?n--:++n<e)&&!1!==r(o[n],n,o););return t}}},function(t,r,e){var n=e(85),o=e(126),i=e(57);t.exports=function(r){var e=o(r);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(t){return t===r||n(t,r,e)}}},function(t,r,e){var p=e(27),v=e(50);t.exports=function(t,r,e,n){var o=e.length,i=o,a=!n;if(null==t)return!i;for(t=Object(t);o--;){var u=e[o];if(a&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++o<i;){var s=(u=e[o])[0],c=t[s],f=u[1];if(a&&u[2]){if(void 0===c&&!(s in t))return!1}else{var h=new p;if(n)var l=n(c,f,s,t,r,h);if(!(void 0===l?v(f,c,3,n,h):l))return!1}}return!0}},function(t,r){t.exports=function(){this.__data__=[],this.size=0}},function(t,r,e){var n=e(15),o=Array.prototype.splice;t.exports=function(t){var r=this.__data__,e=n(r,t);return!(e<0)&&(e==r.length-1?r.pop():o.call(r,e,1),--this.size,!0)}},function(t,r,e){var n=e(15);t.exports=function(t){var r=this.__data__,e=n(r,t);return e<0?void 0:r[e][1]}},function(t,r,e){var n=e(15);t.exports=function(t){return-1<n(this.__data__,t)}},function(t,r,e){var o=e(15);t.exports=function(t,r){var e=this.__data__,n=o(e,t);return n<0?(++this.size,e.push([t,r])):e[n][1]=r,this}},function(t,r,e){var n=e(14);t.exports=function(){this.__data__=new n,this.size=0}},function(t,r){t.exports=function(t){var r=this.__data__,e=r.delete(t);return this.size=r.size,e}},function(t,r){t.exports=function(t){return this.__data__.get(t)}},function(t,r){t.exports=function(t){return this.__data__.has(t)}},function(t,r,e){var o=e(14),i=e(28),a=e(29);t.exports=function(t,r){var e=this.__data__;if(e instanceof o){var n=e.__data__;if(!i||n.length<199)return n.push([t,r]),this.size=++e.size,this;e=this.__data__=new a(n)}return e.set(t,r),this.size=e.size,this}},function(t,r,e){var n=e(47),o=e(97),i=e(3),a=e(49),u=/^\[object .+?Constructor\]$/,s=Function.prototype,c=Object.prototype,f=s.toString,h=c.hasOwnProperty,l=RegExp("^"+f.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(n(t)?l:u).test(a(t))}},function(t,r,e){var n,o=e(98),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!i&&i in t}},function(t,r,e){var n=e(1)["__core-js_shared__"];t.exports=n},function(t,r){t.exports=function(t,r){return null==t?void 0:t[r]}},function(t,r,e){var n=e(101),o=e(14),i=e(28);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},function(t,r,e){var n=e(102),o=e(103),i=e(104),a=e(105),u=e(106);function s(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,t.exports=s},function(t,r,e){var n=e(16);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},function(t,r){t.exports=function(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}},function(t,r,e){var n=e(16),o=Object.prototype.hasOwnProperty;t.exports=function(t){var r=this.__data__;if(n){var e=r[t];return"__lodash_hash_undefined__"===e?void 0:e}return o.call(r,t)?r[t]:void 0}},function(t,r,e){var n=e(16),o=Object.prototype.hasOwnProperty;t.exports=function(t){var r=this.__data__;return n?void 0!==r[t]:o.call(r,t)}},function(t,r,e){var n=e(16);t.exports=function(t,r){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=n&&void 0===r?"__lodash_hash_undefined__":r,this}},function(t,r,e){var n=e(17);t.exports=function(t){var r=n(this,t).delete(t);return this.size-=r?1:0,r}},function(t,r){t.exports=function(t){var r=typeof t;return"string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t}},function(t,r,e){var n=e(17);t.exports=function(t){return n(this,t).get(t)}},function(t,r,e){var n=e(17);t.exports=function(t){return n(this,t).has(t)}},function(t,r,e){var o=e(17);t.exports=function(t,r){var e=o(this,t),n=e.size;return e.set(t,r),this.size+=e.size==n?0:1,this}},function(t,r,e){var b=e(27),g=e(51),y=e(118),d=e(121),m=e(18),_=e(0),x=e(21),j=e(45),w="[object Arguments]",O="[object Array]",S="[object Object]",A=Object.prototype.hasOwnProperty;t.exports=function(t,r,e,n,o,i){var a=_(t),u=_(r),s=a?O:m(t),c=u?O:m(r),f=(s=s==w?S:s)==S,h=(c=c==w?S:c)==S,l=s==c;if(l&&x(t)){if(!x(r))return!1;f=!(a=!0)}if(l&&!f)return i=i||new b,a||j(t)?g(t,r,e,n,o,i):y(t,r,s,e,n,o,i);if(!(1&e)){var p=f&&A.call(t,"__wrapped__"),v=h&&A.call(r,"__wrapped__");if(p||v)return o(p?t.value():t,v?r.value():r,e,n,i=i||new b)}return l&&(i=i||new b,d(t,r,e,n,o,i))}},function(t,r,e){var n=e(29),o=e(114),i=e(115);function a(t){var r=-1,e=null==t?0:t.length;for(this.__data__=new n;++r<e;)this.add(t[r])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,t.exports=a},function(t,r){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},function(t,r){t.exports=function(t){return this.__data__.has(t)}},function(t,r){t.exports=function(t,r){for(var e=-1,n=null==t?0:t.length;++e<n;)if(r(t[e],e,t))return!0;return!1}},function(t,r){t.exports=function(t,r){return t.has(r)}},function(t,r,e){var n=e(7),h=e(52),l=e(8),p=e(51),v=e(119),b=e(120),o=n?n.prototype:void 0,g=o?o.valueOf:void 0;t.exports=function(t,r,e,n,o,i,a){switch(e){case"[object DataView]":if(t.byteLength!=r.byteLength||t.byteOffset!=r.byteOffset)return!1;t=t.buffer,r=r.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=r.byteLength||!i(new h(t),new h(r)));case"[object Boolean]":case"[object Date]":case"[object Number]":return l(+t,+r);case"[object Error]":return t.name==r.name&&t.message==r.message;case"[object RegExp]":case"[object String]":return t==r+"";case"[object Map]":var u=v;case"[object Set]":var s=1&n;if(u=u||b,t.size!=r.size&&!s)return!1;var c=a.get(t);if(c)return c==r;n|=2,a.set(t,r);var f=p(u(t),u(r),n,o,i,a);return a.delete(t),f;case"[object Symbol]":if(g)return g.call(t)==g.call(r)}return!1}},function(t,r){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}},function(t,r){t.exports=function(t){var r=-1,e=Array(t.size);return t.forEach(function(t){e[++r]=t}),e}},function(t,r,e){var m=e(53),_=Object.prototype.hasOwnProperty;t.exports=function(t,r,e,n,o,i){var a=1&e,u=m(t),s=u.length;if(s!=m(r).length&&!a)return!1;for(var c=s;c--;){var f=u[c];if(!(a?f in r:_.call(r,f)))return!1}var h=i.get(t);if(h&&i.get(r))return h==r;var l=!0;i.set(t,r),i.set(r,t);for(var p=a;++c<s;){var v=t[f=u[c]],b=r[f];if(n)var g=a?n(b,v,f,r,t,i):n(v,b,f,t,r,i);if(!(void 0===g?v===b||o(v,b,e,n,i):g)){l=!1;break}p=p||"constructor"==f}if(l&&!p){var y=t.constructor,d=r.constructor;y!=d&&"constructor"in t&&"constructor"in r&&!("function"==typeof y&&y instanceof y&&"function"==typeof d&&d instanceof d)&&(l=!1)}return i.delete(t),i.delete(r),l}},function(t,r,e){var n=e(4)(e(1),"DataView");t.exports=n},function(t,r,e){var n=e(4)(e(1),"Promise");t.exports=n},function(t,r,e){var n=e(4)(e(1),"Set");t.exports=n},function(t,r,e){var n=e(4)(e(1),"WeakMap");t.exports=n},function(t,r,e){var i=e(56),a=e(5);t.exports=function(t){for(var r=a(t),e=r.length;e--;){var n=r[e],o=t[n];r[e]=[n,o,i(o)]}return r}},function(t,r,e){var o=e(50),i=e(128),a=e(134),u=e(32),s=e(56),c=e(57),f=e(11);t.exports=function(e,n){return u(e)&&s(n)?c(f(e),n):function(t){var r=i(t,e);return void 0===r&&r===n?a(t,e):o(n,r,3)}}},function(t,r,e){var o=e(38);t.exports=function(t,r,e){var n=null==t?void 0:o(t,r);return void 0===n?e:n}},function(t,r,e){var n=e(130),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,o=n(function(t){var o=[];return 46===t.charCodeAt(0)&&o.push(""),t.replace(i,function(t,r,e,n){o.push(e?n.replace(a,"$1"):r||t)}),o});t.exports=o},function(t,r,e){var n=e(131);t.exports=function(t){var r=n(t,function(t){return 500===e.size&&e.clear(),t}),e=r.cache;return r}},function(t,r,e){var n=e(29),u="Expected a function";function s(o,i){if("function"!=typeof o||null!=i&&"function"!=typeof i)throw new TypeError(u);var a=function(){var t=arguments,r=i?i.apply(this,t):t[0],e=a.cache;if(e.has(r))return e.get(r);var n=o.apply(this,t);return a.cache=e.set(r,n)||e,n};return a.cache=new(s.Cache||n),a}s.Cache=n,t.exports=s},function(t,r,e){var n=e(133);t.exports=function(t){return null==t?"":n(t)}},function(t,r,e){var n=e(7),o=e(63),i=e(0),a=e(20),u=1/0,s=n?n.prototype:void 0,c=s?s.toString:void 0;t.exports=function t(r){if("string"==typeof r)return r;if(i(r))return o(r,t)+"";if(a(r))return c?c.call(r):"";var e=r+"";return"0"==e&&1/r==-u?"-0":e}},function(t,r,e){var n=e(135),o=e(136);t.exports=function(t,r){return null!=t&&o(t,r,n)}},function(t,r){t.exports=function(t,r){return null!=t&&r in Object(t)}},function(t,r,e){var u=e(31),s=e(36),c=e(0),f=e(22),h=e(23),l=e(11);t.exports=function(t,r,e){for(var n=-1,o=(r=u(r,t)).length,i=!1;++n<o;){var a=l(r[n]);if(!(i=null!=t&&e(t,a)))break;t=t[a]}return i||++n!=o?i:!!(o=null==t?0:t.length)&&h(o)&&f(a,o)&&(c(t)||s(t))}},function(t,r,e){var n=e(138),o=e(139),i=e(32),a=e(11);t.exports=function(t){return i(t)?n(a(t)):o(t)}},function(t,r){t.exports=function(r){return function(t){return null==t?void 0:t[r]}}},function(t,r,e){var n=e(38);t.exports=function(r){return function(t){return n(t,r)}}},function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e(40),o=e(141),i=(a.prototype.maxColorCount=function(t){return this._opts.colorCount=t,this},a.prototype.maxDimension=function(t){return this._opts.maxDimension=t,this},a.prototype.addFilter=function(t){return this._opts.filters.push(t),this},a.prototype.removeFilter=function(t){var r=this._opts.filters.indexOf(t);return 0<r&&this._opts.filters.splice(r),this},a.prototype.clearFilters=function(){return this._opts.filters=[],this},a.prototype.quality=function(t){return this._opts.quality=t,this},a.prototype.useImageClass=function(t){return this._opts.ImageClass=t,this},a.prototype.useGenerator=function(t){return this._opts.generator=t,this},a.prototype.useQuantizer=function(t){return this._opts.quantizer=t,this},a.prototype.build=function(){return new n.default(this._src,this._opts)},a.prototype.getPalette=function(t){return this.build().getPalette(t)},a.prototype.getSwatches=function(t){return this.build().getPalette(t)},a);function a(t,r){void 0===r&&(r={}),this._src=t,this._opts=r,this._opts.filters=o(n.default.DefaultOpts.filters)}r.default=i},function(t,r,e){var n=e(64);t.exports=function(t){return n(t,4)}},function(t,r){t.exports=function(t,r){for(var e=-1,n=null==t?0:t.length;++e<n&&!1!==r(t[e],e,t););return t}},function(t,r,e){var n=e(12),o=e(5);t.exports=function(t,r){return t&&n(r,o(r),t)}},function(t,r,e){var n=e(12),o=e(34);t.exports=function(t,r){return t&&n(r,o(r),t)}},function(t,r,e){var o=e(3),i=e(26),a=e(146),u=Object.prototype.hasOwnProperty;t.exports=function(t){if(!o(t))return a(t);var r=i(t),e=[];for(var n in t)("constructor"!=n||!r&&u.call(t,n))&&e.push(n);return e}},function(t,r){t.exports=function(t){var r=[];if(null!=t)for(var e in Object(t))r.push(e);return r}},function(t,a,u){(function(t){var r=u(1),e=a&&!a.nodeType&&a,n=e&&"object"==typeof t&&t&&!t.nodeType&&t,o=n&&n.exports===e?r.Buffer:void 0,i=o?o.allocUnsafe:void 0;t.exports=function(t,r){if(r)return t.slice();var e=t.length,n=i?i(e):new t.constructor(e);return t.copy(n),n}}).call(this,u(13)(t))},function(t,r){t.exports=function(t,r){var e=-1,n=t.length;for(r=r||Array(n);++e<n;)r[e]=t[e];return r}},function(t,r,e){var n=e(12),o=e(30);t.exports=function(t,r){return n(t,o(t),r)}},function(t,r,e){var n=e(12),o=e(61);t.exports=function(t,r){return n(t,o(t),r)}},function(t,r){var n=Object.prototype.hasOwnProperty;t.exports=function(t){var r=t.length,e=new t.constructor(r);return r&&"string"==typeof t[0]&&n.call(t,"index")&&(e.index=t.index,e.input=t.input),e}},function(t,r,e){var o=e(35),i=e(153),a=e(154),u=e(155),s=e(156);t.exports=function(t,r,e){var n=t.constructor;switch(r){case"[object ArrayBuffer]":return o(t);case"[object Boolean]":case"[object Date]":return new n(+t);case"[object DataView]":return i(t,e);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(t,e);case"[object Map]":return new n;case"[object Number]":case"[object String]":return new n(t);case"[object RegExp]":return a(t);case"[object Set]":return new n;case"[object Symbol]":return u(t)}}},function(t,r,e){var n=e(35);t.exports=function(t,r){var e=r?n(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.byteLength)}},function(t,r){var e=/\w*$/;t.exports=function(t){var r=new t.constructor(t.source,e.exec(t));return r.lastIndex=t.lastIndex,r}},function(t,r,e){var n=e(7),o=n?n.prototype:void 0,i=o?o.valueOf:void 0;t.exports=function(t){return i?Object(i.call(t)):{}}},function(t,r,e){var n=e(35);t.exports=function(t,r){var e=r?n(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}},function(t,r,e){var n=e(158),o=e(39),i=e(26);t.exports=function(t){return"function"!=typeof t.constructor||i(t)?{}:n(o(t))}},function(t,r,e){function n(t){if(!o(t))return{};if(i)return i(t);a.prototype=t;var r=new a;return a.prototype=void 0,r}var o=e(3),i=Object.create;function a(){}t.exports=n},function(t,r,e){var n=e(160),o=e(24),i=e(25),a=i&&i.isMap,u=a?o(a):n;t.exports=u},function(t,r,e){var n=e(18),o=e(2);t.exports=function(t){return o(t)&&"[object Map]"==n(t)}},function(t,r,e){var n=e(162),o=e(24),i=e(25),a=i&&i.isSet,u=a?o(a):n;t.exports=u},function(t,r,e){var n=e(18),o=e(2);t.exports=function(t){return o(t)&&"[object Set]"==n(t)}},function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e(164);r.MMCQ=n.default,r.WebWorker=null},function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a=e(19),u=e(165),s=e(166);function c(t,r){for(var e=t.size();t.size()<r;){var n=t.pop();if(!(n&&0<n.count()))break;var o=n.split(),i=o[0],a=o[1];if(t.push(i),a&&0<a.count()&&t.push(a),t.size()===e)break;e=t.size()}}r.default=function(t,r){if(0===t.length||r.colorCount<2||256<r.colorCount)throw new Error("Wrong MMCQ parameters");var e=u.default.build(t),n=e.hist,o=(Object.keys(n).length,new s.default(function(t,r){return t.count()-r.count()}));o.push(e),c(o,.75*r.colorCount);var i=new s.default(function(t,r){return t.count()*t.volume()-r.count()*r.volume()});return i.contents=o.contents,c(i,r.colorCount-i.size()),function(t){var r=[];for(;t.size();){var e=t.pop(),n=e.avg();n[0],n[1],n[2];r.push(new a.Swatch(n,e.count()))}return r}(i)}},function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var S=e(9),n=(g.build=function(t,r){var e,n,o,i,a,u,s,c,f,h=1<<3*S.SIGBITS,l=new Uint32Array(h);e=o=a=0,n=i=u=Number.MAX_VALUE;for(var p=t.length/4,v=0;v<p;){var b=4*v;v++,s=t[0+b],c=t[1+b],f=t[2+b],0!==t[3+b]&&(s>>=S.RSHIFT,c>>=S.RSHIFT,f>>=S.RSHIFT,l[S.getColorIndex(s,c,f)]+=1,e<s&&(e=s),s<n&&(n=s),o<c&&(o=c),c<i&&(i=c),a<f&&(a=f),f<u&&(u=f))}return new g(n,e,i,o,u,a,l)},g.prototype.invalidate=function(){this._volume=this._count=-1,this._avg=null},g.prototype.volume=function(){if(this._volume<0){var t=this.dimension,r=t.r1,e=t.r2,n=t.g1,o=t.g2,i=t.b1,a=t.b2;this._volume=(e-r+1)*(o-n+1)*(a-i+1)}return this._volume},g.prototype.count=function(){if(this._count<0){for(var t=this.hist,r=this.dimension,e=r.r1,n=r.r2,o=r.g1,i=r.g2,a=r.b1,u=r.b2,s=0,c=e;c<=n;c++)for(var f=o;f<=i;f++)for(var h=a;h<=u;h++)s+=t[S.getColorIndex(c,f,h)];this._count=s}return this._count},g.prototype.clone=function(){var t=this.hist,r=this.dimension;return new g(r.r1,r.r2,r.g1,r.g2,r.b1,r.b2,t)},g.prototype.avg=function(){if(!this._avg){var t=this.hist,r=this.dimension,e=r.r1,n=r.r2,o=r.g1,i=r.g2,a=r.b1,u=r.b2,s=0,c=1<<8-S.SIGBITS,f=void 0,h=void 0,l=void 0;f=h=l=0;for(var p=e;p<=n;p++)for(var v=o;v<=i;v++)for(var b=a;b<=u;b++){var g=t[S.getColorIndex(p,v,b)];s+=g,f+=g*(p+.5)*c,h+=g*(v+.5)*c,l+=g*(b+.5)*c}this._avg=s?[~~(f/s),~~(h/s),~~(l/s)]:[~~(c*(e+n+1)/2),~~(c*(o+i+1)/2),~~(c*(a+u+1)/2)]}return this._avg},g.prototype.contains=function(t){var r=t[0],e=t[1],n=t[2],o=this.dimension,i=o.r1,a=o.r2,u=o.g1,s=o.g2,c=o.b1,f=o.b2;return r>>=S.RSHIFT,e>>=S.RSHIFT,n>>=S.RSHIFT,i<=r&&r<=a&&u<=e&&e<=s&&c<=n&&n<=f},g.prototype.split=function(){var t=this.hist,r=this.dimension,e=r.r1,n=r.r2,o=r.g1,i=r.g2,a=r.b1,u=r.b2,s=this.count();if(!s)return[];if(1===s)return[this.clone()];var c,f,h=n-e+1,l=i-o+1,p=u-a+1,v=Math.max(h,l,p),b=null;c=f=0;var g=null;if(v===h){g="r",b=new Uint32Array(n+1);for(var y=e;y<=n;y++){c=0;for(var d=o;d<=i;d++)for(var m=a;m<=u;m++)c+=t[S.getColorIndex(y,d,m)];f+=c,b[y]=f}}else if(v===l)for(g="g",b=new Uint32Array(i+1),d=o;d<=i;d++){for(c=0,y=e;y<=n;y++)for(m=a;m<=u;m++)c+=t[S.getColorIndex(y,d,m)];f+=c,b[d]=f}else for(g="b",b=new Uint32Array(u+1),m=a;m<=u;m++){for(c=0,y=e;y<=n;y++)for(d=o;d<=i;d++)c+=t[S.getColorIndex(y,d,m)];f+=c,b[m]=f}for(var _=-1,x=new Uint32Array(b.length),j=0;j<b.length;j++){var w=b[j];_<0&&f/2<w&&(_=j),x[j]=f-w}var O=this;return function(t){var r=t+"1",e=t+"2",n=O.dimension[r],o=O.dimension[e],i=O.clone(),a=O.clone(),u=_-n,s=o-_;for(o=u<=s?(o=Math.min(o-1,~~(_+s/2)),Math.max(0,o)):(o=Math.max(n,~~(_-1-u/2)),Math.min(O.dimension[e],o));!b[o];)o++;for(var c=x[o];!c&&b[o-1];)c=x[--o];return i.dimension[e]=o,a.dimension[r]=o+1,[i,a]}(g)},g);function g(t,r,e,n,o,i,a){this._volume=-1,this._count=-1,this.dimension={r1:t,r2:r,g1:e,g2:n,b1:o,b2:i},this.hist=a}r.default=n},function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=(o.prototype._sort=function(){this._sorted||(this.contents.sort(this._comparator),this._sorted=!0)},o.prototype.push=function(t){this.contents.push(t),this._sorted=!1},o.prototype.peek=function(t){return this._sort(),t="number"==typeof t?t:this.contents.length-1,this.contents[t]},o.prototype.pop=function(){return this._sort(),this.contents.pop()},o.prototype.size=function(){return this.contents.length},o.prototype.map=function(t){return this._sort(),this.contents.map(t)},o);function o(t){this._comparator=t,this.contents=[],this._sorted=!1}r.default=n},function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e(168);r.Default=n.default},function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var b=e(19),g=e(9),n=e(62),o={targetDarkLuma:.26,maxDarkLuma:.45,minLightLuma:.55,targetLightLuma:.74,minNormalLuma:.3,targetNormalLuma:.5,maxNormalLuma:.7,targetMutesSaturation:.3,maxMutesSaturation:.4,targetVibrantSaturation:1,minVibrantSaturation:.35,weightSaturation:3,weightLuma:6.5,weightPopulation:.5};function i(i,t,a,u,s,c,f,h,l,p){var v=null,b=0;return t.forEach(function(t){var r=t.getHsl(),e=r[1],n=r[2];if(h<=e&&e<=l&&s<=n&&n<=c&&!function(t,r){return t.Vibrant===r||t.DarkVibrant===r||t.LightVibrant===r||t.Muted===r||t.DarkMuted===r||t.LightMuted===r}(i,t)){var o=function(t,r,e,n,o,i,a){function u(t,r){return 1-Math.abs(t-r)}return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var e=0,n=0,o=0;o<t.length;o+=2){var i=t[o],a=t[o+1];e+=i*a,n+=a}return e/n}(u(t,r),a.weightSaturation,u(e,n),a.weightLuma,o/i,a.weightPopulation)}(e,f,n,u,t.getPopulation(),a,p);(null===v||b<o)&&(v=t,b=o)}}),v}r.default=function(t,r){r=n({},r,o);var e=function(t,r,e){var n={};return n.Vibrant=i(n,t,r,e.targetNormalLuma,e.minNormalLuma,e.maxNormalLuma,e.targetVibrantSaturation,e.minVibrantSaturation,1,e),n.LightVibrant=i(n,t,r,e.targetLightLuma,e.minLightLuma,1,e.targetVibrantSaturation,e.minVibrantSaturation,1,e),n.DarkVibrant=i(n,t,r,e.targetDarkLuma,0,e.maxDarkLuma,e.targetVibrantSaturation,e.minVibrantSaturation,1,e),n.Muted=i(n,t,r,e.targetNormalLuma,e.minNormalLuma,e.maxNormalLuma,e.targetMutesSaturation,0,e.maxMutesSaturation,e),n.LightMuted=i(n,t,r,e.targetLightLuma,e.minLightLuma,1,e.targetMutesSaturation,0,e.maxMutesSaturation,e),n.DarkMuted=i(n,t,r,e.targetDarkLuma,0,e.maxDarkLuma,e.targetMutesSaturation,0,e.maxMutesSaturation,e),n}(t,function(t){var r=0;return t.forEach(function(t){r=Math.max(r,t.getPopulation())}),r}(t),r);return function(t,r,e){if(null===t.Vibrant&&null===t.DarkVibrant&&null===t.LightVibrant){if(null===t.DarkVibrant&&null!==t.DarkMuted){var n=t.DarkMuted.getHsl(),o=n[0],i=n[1],a=n[2];a=e.targetDarkLuma,t.DarkVibrant=new b.Swatch(g.hslToRgb(o,i,a),0)}if(null===t.LightVibrant&&null!==t.LightMuted){var u=t.LightMuted.getHsl();o=u[0],i=u[1],a=u[2];a=e.targetDarkLuma,t.DarkVibrant=new b.Swatch(g.hslToRgb(o,i,a),0)}}if(null===t.Vibrant&&null!==t.DarkVibrant){var s=t.DarkVibrant.getHsl();o=s[0],i=s[1],a=s[2];a=e.targetNormalLuma,t.Vibrant=new b.Swatch(g.hslToRgb(o,i,a),0)}else if(null===t.Vibrant&&null!==t.LightVibrant){var c=t.LightVibrant.getHsl();o=c[0],i=c[1],a=c[2];a=e.targetNormalLuma,t.Vibrant=new b.Swatch(g.hslToRgb(o,i,a),0)}if(null===t.DarkVibrant&&null!==t.Vibrant){var f=t.Vibrant.getHsl();o=f[0],i=f[1],a=f[2];a=e.targetDarkLuma,t.DarkVibrant=new b.Swatch(g.hslToRgb(o,i,a),0)}if(null===t.LightVibrant&&null!==t.Vibrant){var h=t.Vibrant.getHsl();o=h[0],i=h[1],a=h[2];a=e.targetLightLuma,t.LightVibrant=new b.Swatch(g.hslToRgb(o,i,a),0)}if(null===t.Muted&&null!==t.Vibrant){var l=t.Vibrant.getHsl();o=l[0],i=l[1],a=l[2];a=e.targetMutesSaturation,t.Muted=new b.Swatch(g.hslToRgb(o,i,a),0)}if(null===t.DarkMuted&&null!==t.DarkVibrant){var p=t.DarkVibrant.getHsl();o=p[0],i=p[1],a=p[2];a=e.targetMutesSaturation,t.DarkMuted=new b.Swatch(g.hslToRgb(o,i,a),0)}if(null===t.LightMuted&&null!==t.LightVibrant){var v=t.LightVibrant.getHsl();o=v[0],i=v[1],a=v[2];a=e.targetMutesSaturation,t.LightMuted=new b.Swatch(g.hslToRgb(o,i,a),0)}}(e,0,r),e}},function(t,r,e){var n=e(33),o=e(66),i=e(67);t.exports=function(t,r){return i(o(t,r,n),t+"")}},function(t,r){t.exports=function(t,r,e){switch(e.length){case 0:return t.call(r);case 1:return t.call(r,e[0]);case 2:return t.call(r,e[0],e[1]);case 3:return t.call(r,e[0],e[1],e[2])}return t.apply(r,e)}},function(t,r,e){var n=e(172),o=e(60),i=e(33),a=o?function(t,r){return o(t,"toString",{configurable:!0,enumerable:!1,value:n(r),writable:!0})}:i;t.exports=a},function(t,r){t.exports=function(t){return function(){return t}}},function(t,r){var i=Date.now;t.exports=function(e){var n=0,o=0;return function(){var t=i(),r=16-(t-o);if(o=t,0<r){if(800<=++n)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},function(t,r,e){var o=e(8),i=e(10),a=e(22),u=e(3);t.exports=function(t,r,e){if(!u(e))return!1;var n=typeof r;return!!("number"==n?i(e)&&a(r,e.length):"string"==n&&r in e)&&o(e[r],t)}},function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e(176);r.Default=n.default,r.combineFilters=function(i){return Array.isArray(i)&&0!==i.length?function(t,r,e,n){if(0===n)return!1;for(var o=0;o<i.length;o++)if(!i[o](t,r,e,n))return!1;return!0}:null}},function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(t,r,e,n){return 125<=n&&!(250<t&&250<r&&250<e)}},function(t,r,e){"use strict";var n,o=this&&this.__extends||(n=function(t,r){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)r.hasOwnProperty(e)&&(t[e]=r[e])})(t,r)},function(t,r){function e(){this.constructor=t}n(t,r),t.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)});Object.defineProperty(r,"__esModule",{value:!0});var i=e(178),a=e(179);var u,s=(u=i.ImageBase,o(c,u),c.prototype._initCanvas=function(){var t=this.image,r=this._canvas=document.createElement("canvas"),e=this._context=r.getContext("2d");r.className="vibrant-canvas",r.style.display="none",this._width=r.width=t.width,this._height=r.height=t.height,e.drawImage(t,0,0),document.body.appendChild(r)},c.prototype.load=function(t){var n=this,o=null,i=null;if("string"==typeof t)o=document.createElement("img"),function(t){var r=a.parse(t);return null===r.protocol&&null===r.host&&null===r.port}(t)||function(t,r){var e=a.parse(t),n=a.parse(r);return e.protocol===n.protocol&&e.hostname===n.hostname&&e.port===n.port}(window.location.href,t)||(o.crossOrigin="anonymous"),i=o.src=t;else{if(!(t instanceof HTMLImageElement))return Promise.reject(new Error("Cannot load buffer as an image in browser"));i=(o=t).src}return this.image=o,new Promise(function(t,r){function e(){n._initCanvas(),t(n)}o.complete?e():(o.onload=e,o.onerror=function(t){return r(new Error("Fail to load image: "+i))})})},c.prototype.clear=function(){this._context.clearRect(0,0,this._width,this._height)},c.prototype.update=function(t){this._context.putImageData(t,0,0)},c.prototype.getWidth=function(){return this._width},c.prototype.getHeight=function(){return this._height},c.prototype.resize=function(t,r,e){var n=this._canvas,o=this._context,i=this.image;this._width=n.width=t,this._height=n.height=r,o.scale(e,e),o.drawImage(i,0,0)},c.prototype.getPixelCount=function(){return this._width*this._height},c.prototype.getImageData=function(){return this._context.getImageData(0,0,this._width,this._height)},c.prototype.remove=function(){this._canvas&&this._canvas.parentNode&&this._canvas.parentNode.removeChild(this._canvas)},c);function c(){return null!==u&&u.apply(this,arguments)||this}r.default=s},function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=(o.prototype.scaleDown=function(t){var r=this.getWidth(),e=this.getHeight(),n=1;if(0<t.maxDimension){var o=Math.max(r,e);o>t.maxDimension&&(n=t.maxDimension/o)}else n=1/t.quality;n<1&&this.resize(r*n,e*n,n)},o.prototype.applyFilter=function(t){var r=this.getImageData();if("function"==typeof t)for(var e=r.data,n=e.length/4,o=void 0,i=0;i<n;i++)t(e[0+(o=4*i)],e[o+1],e[o+2],e[o+3])||(e[o+3]=0);return Promise.resolve(r)},o);function o(){}r.ImageBase=n},function(t,r,e){"use strict";var D=e(180),k=e(181);function M(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}r.parse=i,r.resolve=function(t,r){return i(t,!1,!0).resolve(r)},r.resolveObject=function(t,r){return t?i(t,!1,!0).resolveObject(r):r},r.format=function(t){k.isString(t)&&(t=i(t));return t instanceof M?t.format():M.prototype.format.call(t)},r.Url=M;var F=/^([a-z0-9.+-]+:)/i,n=/:[0-9]*$/,E=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,o=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),V=["'"].concat(o),z=["%","/","?",";","#"].concat(V),U=["/","?","#"],q=/^[+a-z0-9A-Z_-]{0,63}$/,R=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,N={javascript:!0,"javascript:":!0},H={javascript:!0,"javascript:":!0},B={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},$=e(182);function i(t,r,e){if(t&&k.isObject(t)&&t instanceof M)return t;var n=new M;return n.parse(t,r,e),n}M.prototype.parse=function(t,r,e){if(!k.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var n=t.indexOf("?"),o=-1!==n&&n<t.indexOf("#")?"?":"#",i=t.split(o);i[0]=i[0].replace(/\\/g,"/");var a=t=i.join(o);if(a=a.trim(),!e&&1===t.split("#").length){var u=E.exec(a);if(u)return this.path=a,this.href=a,this.pathname=u[1],u[2]?(this.search=u[2],this.query=r?$.parse(this.search.substr(1)):this.search.substr(1)):r&&(this.search="",this.query={}),this}var s=F.exec(a);if(s){var c=(s=s[0]).toLowerCase();this.protocol=c,a=a.substr(s.length)}if(e||s||a.match(/^\/\/[^@\/]+@[^@\/]+/)){var f="//"===a.substr(0,2);!f||s&&H[s]||(a=a.substr(2),this.slashes=!0)}if(!H[s]&&(f||s&&!B[s])){for(var h,l,p=-1,v=0;v<U.length;v++){-1!==(b=a.indexOf(U[v]))&&(-1===p||b<p)&&(p=b)}-1!==(l=-1===p?a.lastIndexOf("@"):a.lastIndexOf("@",p))&&(h=a.slice(0,l),a=a.slice(l+1),this.auth=decodeURIComponent(h)),p=-1;for(v=0;v<z.length;v++){var b;-1!==(b=a.indexOf(z[v]))&&(-1===p||b<p)&&(p=b)}-1===p&&(p=a.length),this.host=a.slice(0,p),a=a.slice(p),this.parseHost(),this.hostname=this.hostname||"";var g="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!g)for(var y=this.hostname.split(/\./),d=(v=0,y.length);v<d;v++){var m=y[v];if(m&&!m.match(q)){for(var _="",x=0,j=m.length;x<j;x++)127<m.charCodeAt(x)?_+="x":_+=m[x];if(!_.match(q)){var w=y.slice(0,v),O=y.slice(v+1),S=m.match(R);S&&(w.push(S[1]),O.unshift(S[2])),O.length&&(a="/"+O.join(".")+a),this.hostname=w.join(".");break}}}255<this.hostname.length?this.hostname="":this.hostname=this.hostname.toLowerCase(),g||(this.hostname=D.toASCII(this.hostname));var A=this.port?":"+this.port:"",M=this.hostname||"";this.host=M+A,this.href+=this.host,g&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==a[0]&&(a="/"+a))}if(!N[c])for(v=0,d=V.length;v<d;v++){var I=V[v];if(-1!==a.indexOf(I)){var C=encodeURIComponent(I);C===I&&(C=escape(I)),a=a.split(I).join(C)}}var T=a.indexOf("#");-1!==T&&(this.hash=a.substr(T),a=a.slice(0,T));var P=a.indexOf("?");if(-1!==P?(this.search=a.substr(P),this.query=a.substr(P+1),r&&(this.query=$.parse(this.query)),a=a.slice(0,P)):r&&(this.search="",this.query={}),a&&(this.pathname=a),B[c]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){A=this.pathname||"";var L=this.search||"";this.path=A+L}return this.href=this.format(),this},M.prototype.format=function(){var t=this.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var r=this.protocol||"",e=this.pathname||"",n=this.hash||"",o=!1,i="";this.host?o=t+this.host:this.hostname&&(o=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&k.isObject(this.query)&&Object.keys(this.query).length&&(i=$.stringify(this.query));var a=this.search||i&&"?"+i||"";return r&&":"!==r.substr(-1)&&(r+=":"),this.slashes||(!r||B[r])&&!1!==o?(o="//"+(o||""),e&&"/"!==e.charAt(0)&&(e="/"+e)):o=o||"",n&&"#"!==n.charAt(0)&&(n="#"+n),a&&"?"!==a.charAt(0)&&(a="?"+a),r+o+(e=e.replace(/[?#]/g,function(t){return encodeURIComponent(t)}))+(a=a.replace("#","%23"))+n},M.prototype.resolve=function(t){return this.resolveObject(i(t,!1,!0)).format()},M.prototype.resolveObject=function(t){if(k.isString(t)){var r=new M;r.parse(t,!1,!0),t=r}for(var e=new M,n=Object.keys(this),o=0;o<n.length;o++){var i=n[o];e[i]=this[i]}if(e.hash=t.hash,""===t.href)return e.href=e.format(),e;if(t.slashes&&!t.protocol){for(var a=Object.keys(t),u=0;u<a.length;u++){var s=a[u];"protocol"!==s&&(e[s]=t[s])}return B[e.protocol]&&e.hostname&&!e.pathname&&(e.path=e.pathname="/"),e.href=e.format(),e}if(t.protocol&&t.protocol!==e.protocol){if(!B[t.protocol]){for(var c=Object.keys(t),f=0;f<c.length;f++){var h=c[f];e[h]=t[h]}return e.href=e.format(),e}if(e.protocol=t.protocol,t.host||H[t.protocol])e.pathname=t.pathname;else{for(var l=(t.pathname||"").split("/");l.length&&!(t.host=l.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==l[0]&&l.unshift(""),l.length<2&&l.unshift(""),e.pathname=l.join("/")}if(e.search=t.search,e.query=t.query,e.host=t.host||"",e.auth=t.auth,e.hostname=t.hostname||t.host,e.port=t.port,e.pathname||e.search){var p=e.pathname||"",v=e.search||"";e.path=p+v}return e.slashes=e.slashes||t.slashes,e.href=e.format(),e}var b=e.pathname&&"/"===e.pathname.charAt(0),g=t.host||t.pathname&&"/"===t.pathname.charAt(0),y=g||b||e.host&&t.pathname,d=y,m=e.pathname&&e.pathname.split("/")||[],_=(l=t.pathname&&t.pathname.split("/")||[],e.protocol&&!B[e.protocol]);if(_&&(e.hostname="",e.port=null,e.host&&(""===m[0]?m[0]=e.host:m.unshift(e.host)),e.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===l[0]?l[0]=t.host:l.unshift(t.host)),t.host=null),y=y&&(""===l[0]||""===m[0])),g)e.host=t.host||""===t.host?t.host:e.host,e.hostname=t.hostname||""===t.hostname?t.hostname:e.hostname,e.search=t.search,e.query=t.query,m=l;else if(l.length)(m=m||[]).pop(),m=m.concat(l),e.search=t.search,e.query=t.query;else if(!k.isNullOrUndefined(t.search)){if(_)e.hostname=e.host=m.shift(),(S=!!(e.host&&0<e.host.indexOf("@"))&&e.host.split("@"))&&(e.auth=S.shift(),e.host=e.hostname=S.shift());return e.search=t.search,e.query=t.query,k.isNull(e.pathname)&&k.isNull(e.search)||(e.path=(e.pathname?e.pathname:"")+(e.search?e.search:"")),e.href=e.format(),e}if(!m.length)return e.pathname=null,e.search?e.path="/"+e.search:e.path=null,e.href=e.format(),e;for(var x=m.slice(-1)[0],j=(e.host||t.host||1<m.length)&&("."===x||".."===x)||""===x,w=0,O=m.length;0<=O;O--)"."===(x=m[O])?m.splice(O,1):".."===x?(m.splice(O,1),w++):w&&(m.splice(O,1),w--);if(!y&&!d)for(;w--;)m.unshift("..");!y||""===m[0]||m[0]&&"/"===m[0].charAt(0)||m.unshift(""),j&&"/"!==m.join("/").substr(-1)&&m.push("");var S,A=""===m[0]||m[0]&&"/"===m[0].charAt(0);_&&(e.hostname=e.host=A?"":m.length?m.shift():"",(S=!!(e.host&&0<e.host.indexOf("@"))&&e.host.split("@"))&&(e.auth=S.shift(),e.host=e.hostname=S.shift()));return(y=y||e.host&&m.length)&&!A&&m.unshift(""),m.length?e.pathname=m.join("/"):(e.pathname=null,e.path=null),k.isNull(e.pathname)&&k.isNull(e.search)||(e.path=(e.pathname?e.pathname:"")+(e.search?e.search:"")),e.auth=t.auth||e.auth,e.slashes=e.slashes||t.slashes,e.href=e.format(),e},M.prototype.parseHost=function(){var t=this.host,r=n.exec(t);r&&(":"!==(r=r[0])&&(this.port=r.substr(1)),t=t.substr(0,t.length-r.length)),t&&(this.hostname=t)}},function(t,g,P){(function(p,v){var b;/*! https://mths.be/punycode v1.3.2 by @mathias */!function(){g&&g.nodeType,p&&p.nodeType;var t="object"==typeof v&&v;t.global!==t&&t.window!==t&&t.self;var r,y=2147483647,d=36,m=1,_=26,o=38,i=700,x=72,j=128,w="-",e=/^xn--/,n=/[^\x20-\x7E]/,a=/[\x2E\u3002\uFF0E\uFF61]/g,u={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},s=d-m,O=Math.floor,S=String.fromCharCode;function A(t){throw RangeError(u[t])}function c(t,r){for(var e=t.length,n=[];e--;)n[e]=r(t[e]);return n}function f(t,r){var e=t.split("@"),n="";return 1<e.length&&(n=e[0]+"@",t=e[1]),n+c((t=t.replace(a,".")).split("."),r).join(".")}function M(t){for(var r,e,n=[],o=0,i=t.length;o<i;)55296<=(r=t.charCodeAt(o++))&&r<=56319&&o<i?56320==(64512&(e=t.charCodeAt(o++)))?n.push(((1023&r)<<10)+(1023&e)+65536):(n.push(r),o--):n.push(r);return n}function I(t){return c(t,function(t){var r="";return 65535<t&&(r+=S((t-=65536)>>>10&1023|55296),t=56320|1023&t),r+=S(t)}).join("")}function C(t,r){return t+22+75*(t<26)-((0!=r)<<5)}function T(t,r,e){var n=0;for(t=e?O(t/i):t>>1,t+=O(t/r);s*_>>1<t;n+=d)t=O(t/s);return O(n+(s+1)*t/(t+o))}function h(t){var r,e,n,o,i,a,u,s,c,f,h,l=[],p=t.length,v=0,b=j,g=x;for((e=t.lastIndexOf(w))<0&&(e=0),n=0;n<e;++n)128<=t.charCodeAt(n)&&A("not-basic"),l.push(t.charCodeAt(n));for(o=0<e?e+1:0;o<p;){for(i=v,a=1,u=d;p<=o&&A("invalid-input"),h=t.charCodeAt(o++),(d<=(s=h-48<10?h-22:h-65<26?h-65:h-97<26?h-97:d)||s>O((y-v)/a))&&A("overflow"),v+=s*a,!(s<(c=u<=g?m:g+_<=u?_:u-g));u+=d)a>O(y/(f=d-c))&&A("overflow"),a*=f;g=T(v-i,r=l.length+1,0==i),O(v/r)>y-b&&A("overflow"),b+=O(v/r),v%=r,l.splice(v++,0,b)}return I(l)}function l(t){var r,e,n,o,i,a,u,s,c,f,h,l,p,v,b,g=[];for(l=(t=M(t)).length,r=j,i=x,a=e=0;a<l;++a)(h=t[a])<128&&g.push(S(h));for(n=o=g.length,o&&g.push(w);n<l;){for(u=y,a=0;a<l;++a)r<=(h=t[a])&&h<u&&(u=h);for(u-r>O((y-e)/(p=n+1))&&A("overflow"),e+=(u-r)*p,r=u,a=0;a<l;++a)if((h=t[a])<r&&++e>y&&A("overflow"),h==r){for(s=e,c=d;!(s<(f=c<=i?m:i+_<=c?_:c-i));c+=d)b=s-f,v=d-f,g.push(S(C(f+b%v,0))),s=O(b/v);g.push(S(C(s,0))),i=T(e,p,n==o),e=0,++n}++e,++r}return g.join("")}r={version:"1.3.2",ucs2:{decode:M,encode:I},decode:h,encode:l,toASCII:function(t){return f(t,function(t){return n.test(t)?"xn--"+l(t):t})},toUnicode:function(t){return f(t,function(t){return e.test(t)?h(t.slice(4).toLowerCase()):t})}},void 0===(b=function(){return r}.call(g,P,g,p))||(p.exports=b)}()}).call(this,P(13)(t),P(44))},function(t,r,e){"use strict";t.exports={isString:function(t){return"string"==typeof t},isObject:function(t){return"object"==typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},function(t,r,e){"use strict";r.decode=r.parse=e(183),r.encode=r.stringify=e(184)},function(t,r,e){"use strict";t.exports=function(t,r,e,n){r=r||"&",e=e||"=";var o={};if("string"!=typeof t||0===t.length)return o;var i=/\+/g;t=t.split(r);var a=1e3;n&&"number"==typeof n.maxKeys&&(a=n.maxKeys);var u,s,c=t.length;0<a&&a<c&&(c=a);for(var f=0;f<c;++f){var h,l,p,v,b=t[f].replace(i,"%20"),g=b.indexOf(e);l=0<=g?(h=b.substr(0,g),b.substr(g+1)):(h=b,""),p=decodeURIComponent(h),v=decodeURIComponent(l),u=o,s=p,Object.prototype.hasOwnProperty.call(u,s)?y(o[p])?o[p].push(v):o[p]=[o[p],v]:o[p]=v}return o};var y=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},function(t,r,e){"use strict";function i(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}}t.exports=function(e,n,o,t){return n=n||"&",o=o||"=",null===e&&(e=void 0),"object"==typeof e?u(s(e),function(t){var r=encodeURIComponent(i(t))+o;return a(e[t])?u(e[t],function(t){return r+encodeURIComponent(i(t))}).join(n):r+encodeURIComponent(i(e[t]))}).join(n):t?encodeURIComponent(i(t))+o+encodeURIComponent(i(e)):""};var a=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function u(t,r){if(t.map)return t.map(r);for(var e=[],n=0;n<t.length;n++)e.push(r(t[n],n));return e}var s=Object.keys||function(t){var r=[];for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&r.push(e);return r}},function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e(68);("object"==typeof window&&window instanceof Window?window:t.exports).Vibrant=n}]); |
@@ -88,3 +88,3 @@ "use strict"; | ||
get: function () { | ||
if (this._titleTextColor) { | ||
if (!this._titleTextColor) { | ||
this._titleTextColor = this.getYiq() < 200 ? '#fff' : '#000'; | ||
@@ -99,3 +99,3 @@ } | ||
get: function () { | ||
if (this._bodyTextColor) { | ||
if (!this._bodyTextColor) { | ||
this._bodyTextColor = this.getYiq() < 150 ? '#fff' : '#000'; | ||
@@ -102,0 +102,0 @@ } |
{ | ||
"name": "node-vibrant", | ||
"version": "3.1.2", | ||
"version": "3.1.3", | ||
"description": "Extract prominent colors from an image. Supports both node and browser environment.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -10,3 +10,3 @@ # node-vibrant | ||
We will not merge new PRs to v3.1 anymore. | ||
We will not merge new PRs to v3.1 related to new featuresets during this time. However, bug fixes and security vulnerability fixes are still highly encouraged. | ||
@@ -13,0 +13,0 @@ ## New WebWorker support in v3.0 |
@@ -5,3 +5,3 @@ import { Filter } from './typing' | ||
export type Vec3 = [number, number, number] | ||
export type Vec3 = [number, number, number] | ||
@@ -76,3 +76,3 @@ export interface Palette { | ||
get titleTextColor() { | ||
if (this._titleTextColor) { | ||
if (!this._titleTextColor) { | ||
this._titleTextColor = this.getYiq() < 200 ? '#fff' : '#000' | ||
@@ -83,3 +83,3 @@ } | ||
get bodyTextColor() { | ||
if (this._bodyTextColor) { | ||
if (!this._bodyTextColor) { | ||
this._bodyTextColor = this.getYiq() < 150 ? '#fff' : '#000' | ||
@@ -86,0 +86,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
2589940
2