OwlCyberSecurity - MANAGER
Edit File: bootstrap-colorpicker.min.js
/* Bootstrap Colorpicker - Simple and customizable colorpicker component for Twitter Bootstrap. @package bootstrap-colorpicker @version v3.0.0-wip @license MIT @link https://farbelous.github.io/bootstrap-colorpicker/ @link https://github.com/farbelous/bootstrap-colorpicker.git */ var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(h){var a=0;return function(){return a<h.length?{done:!1,value:h[a++]}:{done:!0}}};$jscomp.arrayIterator=function(h){return{next:$jscomp.arrayIteratorImpl(h)}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1; $jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(h,a,g){h!=Array.prototype&&h!=Object.prototype&&(h[a]=g.value)};$jscomp.getGlobal=function(h){h=["object"==typeof globalThis&&globalThis,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global,h];for(var a=0;a<h.length;++a){var g=h[a];if(g&&g.Math==Math)return g}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this); $jscomp.SYMBOL_PREFIX="jscomp_symbol_";$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.SymbolClass=function(h,a){this.$jscomp$symbol$id_=h;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:a})};$jscomp.SymbolClass.prototype.toString=function(){return this.$jscomp$symbol$id_}; $jscomp.Symbol=function(){function h(g){if(this instanceof h)throw new TypeError("Symbol is not a constructor");return new $jscomp.SymbolClass($jscomp.SYMBOL_PREFIX+(g||"")+"_"+a++,g)}var a=0;return h}(); $jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var h=$jscomp.global.Symbol.iterator;h||(h=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("Symbol.iterator"));"function"!=typeof Array.prototype[h]&&$jscomp.defineProperty(Array.prototype,h,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}});$jscomp.initSymbolIterator=function(){}}; $jscomp.initSymbolAsyncIterator=function(){$jscomp.initSymbol();var h=$jscomp.global.Symbol.asyncIterator;h||(h=$jscomp.global.Symbol.asyncIterator=$jscomp.global.Symbol("Symbol.asyncIterator"));$jscomp.initSymbolAsyncIterator=function(){}};$jscomp.iteratorPrototype=function(h){$jscomp.initSymbolIterator();h={next:h};h[$jscomp.global.Symbol.iterator]=function(){return this};return h}; (function(h,a){"object"===typeof exports&&"object"===typeof module?module.exports=a(require("jQuery")):"function"===typeof define&&define.amd?define("bootstrap-colorpicker",["jQuery"],a):"object"===typeof exports?exports["bootstrap-colorpicker"]=a(require("jQuery")):h["bootstrap-colorpicker"]=a(h.jQuery)})(this,function(h){return function(a){function g(B){if(f[B])return f[B].exports;var n=f[B]={i:B,l:!1,exports:{}};a[B].call(n.exports,n,n.exports,g);n.l=!0;return n.exports}var f={};g.m=a;g.c=f;g.d= function(a,f,d){g.o(a,f)||Object.defineProperty(a,f,{configurable:!1,enumerable:!0,get:d})};g.n=function(a){var f=a&&a.__esModule?function(){return a["default"]}:function(){return a};g.d(f,"a",f);return f};g.o=function(a,f){return Object.prototype.hasOwnProperty.call(a,f)};g.p="";return g(g.s=3)}([function(a,g){a.exports=h},function(a,g,f){Object.defineProperty(g,"__esModule",{value:!0});var h=function(){function d(d,a){for(var p=0;p<a.length;p++){var b=a[p];b.enumerable=b.enumerable||!1;b.configurable= !0;"value"in b&&(b.writable=!0);Object.defineProperty(d,b.key,b)}}return function(a,f,p){f&&d(a.prototype,f);p&&d(a,p);return a}}(),n=(a=f(0))&&a.__esModule?a:{"default":a};a=function(){function a(d){var f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");this.colorpicker=d;this.options=f;if(!this.colorpicker.element||!this.colorpicker.element.length)throw Error("Extension: this.colorpicker.element is not valid"); this.colorpicker.element.on("colorpickerCreate.colorpicker-ext",n["default"].proxy(this.onCreate,this));this.colorpicker.element.on("colorpickerDestroy.colorpicker-ext",n["default"].proxy(this.onDestroy,this));this.colorpicker.element.on("colorpickerUpdate.colorpicker-ext",n["default"].proxy(this.onUpdate,this));this.colorpicker.element.on("colorpickerChange.colorpicker-ext",n["default"].proxy(this.onChange,this));this.colorpicker.element.on("colorpickerInvalid.colorpicker-ext",n["default"].proxy(this.onInvalid, this));this.colorpicker.element.on("colorpickerShow.colorpicker-ext",n["default"].proxy(this.onShow,this));this.colorpicker.element.on("colorpickerHide.colorpicker-ext",n["default"].proxy(this.onHide,this));this.colorpicker.element.on("colorpickerEnable.colorpicker-ext",n["default"].proxy(this.onEnable,this));this.colorpicker.element.on("colorpickerDisable.colorpicker-ext",n["default"].proxy(this.onDisable,this))}h(a,[{key:"resolveColor",value:function(a){return!1}},{key:"onCreate",value:function(a){}}, {key:"onDestroy",value:function(a){this.colorpicker.element.off(".colorpicker-ext")}},{key:"onUpdate",value:function(a){}},{key:"onChange",value:function(a){}},{key:"onInvalid",value:function(a){}},{key:"onHide",value:function(a){}},{key:"onShow",value:function(a){}},{key:"onDisable",value:function(a){}},{key:"onEnable",value:function(a){}}]);return a}();g["default"]=a},function(a,g,f){function h(a,p){if("function"!==typeof p&&null!==p)throw new TypeError("Super expression must either be null or a function, not "+ typeof p);a.prototype=Object.create(p&&p.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});p&&(Object.setPrototypeOf?Object.setPrototypeOf(a,p):a.__proto__=p)}Object.defineProperty(g,"__esModule",{value:!0});$jscomp.initSymbol();$jscomp.initSymbol();$jscomp.initSymbolIterator();var n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(a){return typeof a}:function(a){$jscomp.initSymbol();$jscomp.initSymbol();$jscomp.initSymbol();return a&&"function"=== typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},d=function(){function a(a,b){for(var e=0;e<b.length;e++){var c=b[e];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(a,c.key,c)}}return function(d,b,e){b&&a(d.prototype,b);e&&a(d,e);return d}}();a=f(1);var t={colors:null,namesAsValues:!0};a=function(a){function p(b){var a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof p))throw new TypeError("Cannot call a class as a function"); a=(p.__proto__||Object.getPrototypeOf(p)).call(this,b,Object.assign({},t,a));if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");a=!a||"object"!==typeof a&&"function"!==typeof a?this:a;Array.isArray(a.options.colors)||"object"===n(a.options.colors)||(a.options.colors=null);return a}h(p,a);d(p,[{key:"colors",get:function(){return this.options.colors}}]);d(p,[{key:"getLength",value:function(){return this.options.colors?Array.isArray(this.options.colors)?this.options.colors.length: "object"===n(this.options.colors)?Object.keys(this.options.colors).length:0:0}},{key:"resolveColor",value:function(b){return 0>=this.getLength()?!1:Array.isArray(this.options.colors)?0<=this.options.colors.indexOf(b)?b:0<=this.options.colors.indexOf(b.toUpperCase())?b.toUpperCase():0<=this.options.colors.indexOf(b.toLowerCase())?b.toLowerCase():!1:"object"!==n(this.options.colors)?!1:this.options.namesAsValues?this.getName(b,this.getName("#"+b,this.getValue(b,!1))):this.getValue(b,!1)}},{key:"getName", value:function(b){var a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:!1;if("string"!==typeof b||!this.options.colors)return a;for(var c in this.options.colors)if(this.options.colors.hasOwnProperty(c)&&this.options.colors[c].toLowerCase()===b.toLowerCase())return c;return a}},{key:"getValue",value:function(b){var a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:!1;return"string"===typeof b&&this.options.colors?this.options.colors.hasOwnProperty(b)?this.options.colors[b]:a:a}}]);return p}((a&& a.__esModule?a:{"default":a})["default"]);g["default"]=a},function(a,g,f){$jscomp.initSymbol();$jscomp.initSymbol();$jscomp.initSymbolIterator();var h="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(a){return typeof a}:function(a){$jscomp.initSymbol();$jscomp.initSymbol();$jscomp.initSymbol();return a&&"function"===typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},n=(a=f(4))&&a.__esModule?a:{"default":a},d=(f=f(0))&&f.__esModule?f:{"default":f}; d["default"].colorpicker=n["default"];d["default"].fn.colorpicker=function(a){var f=Array.prototype.slice.call(arguments,1),p=1===this.length,b=null,e=this.each(function(){var c=(0,d["default"])(this),l=c.data("colorpicker"),e="object"===("undefined"===typeof a?"undefined":h(a))?a:{};l||(l=new n["default"](this,e),c.data("colorpicker",l));"string"===typeof a?"colorpicker"===a?b=l:(typeof l[a] === "function")?b=l[a].apply(l,f):(f.length&&(l[a]=f[0]),b=l[a]):b=c});return p?b:e};d["default"].fn.colorpicker.constructor= n["default"]},function(a,g,f){function h(a){return a&&a.__esModule?a:{"default":a}}Object.defineProperty(g,"__esModule",{value:!0});var n=function(){function a(l,a){for(var b=0;b<a.length;b++){var c=a[b];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(l,c.key,c)}}return function(l,b,c){b&&a(l.prototype,b);c&&a(l,c);return l}}();a=f(5);var d=h(a);a=f(1);var t=h(a);a=f(7);var A=h(a);a=f(8);var p=h(a);f=f(0);var b=h(f),e=0;f=function(){function a(l, c){var d=this;if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");this.id=e+=1;this.element=(0,b["default"])(l).addClass("colorpicker-element");this.element.attr("data-colorpicker-id",this.id);this.options=Object.assign({},A["default"],c,this.element.data());this.extensions=[];Array.isArray(this.options.extensions)||(this.options.extensions=[]);this.component=this.options.component;(this.component=!1!==this.component?this.element.find(this.component):!1)&&0===this.component.length&& (this.component=!1);this.container=!0===this.options.container?this.element:this.options.container;this.container=!1!==this.container?(0,b["default"])(this.container):!1;this.currentSlider=null;this.mousePointer={left:0,top:0};this.lastEvent={name:null,e:null};(this.input=this.element.is("input")?this.element:this.options.input?this.element.find(this.options.input):!1)&&0===this.input.length&&(this.input=!1);this.options.debug&&this.options.extensions.push({name:"Debugger"});this.options.extensions.forEach(function(a){d.addExtension(a.name, p["default"][a.name.toLowerCase()],a)});var f=!1!==this.options.color?this.options.color:this.getValue();this.color=f?this.createColor(f):!1;!1===this.options.format&&(this.options.format=this.color.format);this.disabled=!1;f=this.picker=(0,b["default"])(this.options.template);this.options.customClass&&f.addClass(this.options.customClass);this.options.inline?f.addClass("colorpicker-inline colorpicker-visible"):f.addClass("colorpicker-hidden");this.options.horizontal&&f.addClass("colorpicker-horizontal"); (this.options.useAlpha||this.hasColor()&&this.color.hasTransparency())&&!1!==this.options.useAlpha&&(this.options.useAlpha=!0,f.addClass("colorpicker-with-alpha"));"right"===this.options.align&&f.addClass("colorpicker-right");!0===this.options.inline&&f.addClass("colorpicker-no-arrow");f.on("mousedown.colorpicker touchstart.colorpicker",b["default"].proxy(function(a){a.target===a.currentTarget&&a.preventDefault()},this));f.find(".colorpicker-saturation, .colorpicker-hue, .colorpicker-alpha").on("mousedown.colorpicker touchstart.colorpicker", b["default"].proxy(this._mousedown,this));f.appendTo(this.container?this.container:(0,b["default"])("body"));if(this.hasInput()){this.input.on({"keyup.colorpicker":b["default"].proxy(this._keyup,this)});this.input.on({"change.colorpicker":b["default"].proxy(this._change,this)});if(!1===this.component)this.element.on({"focus.colorpicker":b["default"].proxy(this.show,this)});if(!1===this.options.inline)this.element.on({"focusout.colorpicker":b["default"].proxy(this.hide,this)})}if(!1!==this.component)this.component.on({"click.colorpicker":b["default"].proxy(this.show, this)});if(!1===this.hasInput()&&!1===this.component&&!this.element.has(".colorpicker"))this.element.on({"click.colorpicker":b["default"].proxy(this.show,this)});if(this.hasInput()&&!1!==this.component&&"color"===this.input.attr("type"))this.input.on({"click.colorpicker":b["default"].proxy(this.show,this),"focus.colorpicker":b["default"].proxy(this.show,this)});this.update(!1!==this.options.color);(0,b["default"])(b["default"].proxy(function(){this.element.trigger({type:"colorpickerCreate",colorpicker:this, color:this.color})},this))}n(a,[{key:"color",get:function(){return this.element.data("color")},set:function(a){this.element.data("color",a)}}],[{key:"Color",get:function(){return d["default"]}},{key:"Extension",get:function(){return t["default"]}},{key:"Extensions",get:function(){return p["default"]}}]);n(a,[{key:"addExtension",value:function(a,b){var l=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};l=a instanceof t["default"]?a:new b(this,l);this.extensions.push(l);return l}},{key:"destroy", value:function(){this.picker.remove();this.element.removeData("colorpicker","color").off(".colorpicker");this.hasInput()&&this.input.off(".colorpicker");!1!==this.component&&this.component.off(".colorpicker");this.element.removeClass("colorpicker-element");this.element.trigger({type:"colorpickerDestroy",colorpicker:this,color:this.color})}},{key:"hasColor",value:function(){return this.color instanceof d["default"]}},{key:"toInputColorString",value:function(){var a=this.toCssColorString();if(!a)return a; !1===this.options.useHashPrefix&&(a=a.replace(/^#/g,""));return this._resolveColor(a)}},{key:"toCssColorString",value:function(){return this.hasColor()?this.color.toString(this.format):""}},{key:"_reposition",value:function(a){this.lastEvent.name="reposition";this.lastEvent.e=a;if(!1!==this.options.inline||this.options.container)return!1;a=this.component||this.element;var b=a[this.container&&this.container[0]!==window.document.body?"position":"offset"]();"right"===this.options.align&&(b.left-=this.picker.outerWidth()- a.outerWidth());this.picker.css({top:b.top+a.outerHeight(),left:b.left});return!0}},{key:"show",value:function(a){this.lastEvent.name="show";this.lastEvent.e=a;if(this.isVisible()||this.isDisabled())return!1;this.picker.addClass("colorpicker-visible").removeClass("colorpicker-hidden");this._reposition(a);(0,b["default"])(window).on("resize.colorpicker",b["default"].proxy(this._reposition,this));a&&(!this.hasInput()||"color"===this.input.attr("type"))&&a.stopPropagation&&a.preventDefault&&(a.stopPropagation(), a.preventDefault());if((this.component||!this.input)&&!1===this.options.inline)(0,b["default"])(window.document).on({"mousedown.colorpicker":b["default"].proxy(this.hide,this)});this.element.trigger({type:"colorpickerShow",colorpicker:this,color:this.color});return!0}},{key:"hide",value:function(a){this.lastEvent.name="hide";this.lastEvent.e=a;if(this.isHidden()||"undefined"!==typeof a&&a.target&&(0<(0,b["default"])(a.currentTarget).parents(".colorpicker").length||0<(0,b["default"])(a.target).parents(".colorpicker").length))return!1; this.picker.addClass("colorpicker-hidden").removeClass("colorpicker-visible");(0,b["default"])(window).off("resize.colorpicker",this._reposition);(0,b["default"])(window.document).off({"mousedown.colorpicker":this.hide});this.element.trigger({type:"colorpickerHide",colorpicker:this,color:this.color});return!0}},{key:"isVisible",value:function(){return this.picker.hasClass("colorpicker-visible")&&!this.picker.hasClass("colorpicker-hidden")}},{key:"isHidden",value:function(){return this.picker.hasClass("colorpicker-hidden")&& !this.picker.hasClass("colorpicker-visible")}},{key:"_updateInput",value:function(){if(this.hasInput()){var a=this.toInputColorString();a!==this.input.prop("value")&&(this.input.prop("value",a?a:""),this.input.trigger({type:"change",colorpicker:this,color:this.color,value:a}))}}},{key:"_updatePicker",value:function(){if(this.hasColor()){var a=!1===this.options.horizontal,b=a?this.options.sliders:this.options.slidersHorz,c=this.picker.find(".colorpicker-saturation .colorpicker-guide"),e=this.picker.find(".colorpicker-hue .colorpicker-guide"), d=this.picker.find(".colorpicker-alpha .colorpicker-guide"),p=this.color.hsvaRatio;e.length&&e.css(a?"top":"left",(a?b.hue.maxTop:b.hue.maxLeft)*(1-p.h));d.length&&d.css(a?"top":"left",(a?b.alpha.maxTop:b.alpha.maxLeft)*(1-p.a));c.length&&c.css({top:b.saturation.maxTop-p.v*b.saturation.maxTop,left:p.s*b.saturation.maxLeft});this.picker.find(".colorpicker-saturation").css("backgroundColor",this.color.getHueOnlyCopy().toHexString());this.picker.find(".colorpicker-alpha").css("backgroundColor",this.color.toString("hex6"))}}}, {key:"_updateComponent",value:function(){if(this.hasColor()&&!1!==this.component){var a=this.component.find("i").eq(0);0<a.length?a.css({backgroundColor:this.toCssColorString()}):this.component.css({backgroundColor:this.toCssColorString()})}}},{key:"_shouldUpdate",value:function(){return this.hasColor()&&!1!==this.getValue(!1)}},{key:"update",value:function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:!1;if(this._shouldUpdate()||!0===a)this._updateComponent(),!0!==this.options.autoInputFallback&& "keyup"===this.lastEvent.name||this._updateInput(),this._updatePicker(),this.element.trigger({type:"colorpickerUpdate",colorpicker:this,color:this.color})}},{key:"getValue",value:function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null;a="undefined"===typeof a?this.fallbackColor:a;var b=[],c=!1;this.hasInput()&&(b.push(this.input.val()),b.push(this.input.data("color")));b.push(this.element.data("color"));b.map(function(a){a&&!1===c&&(c=a)});c=!1===c?a:c;return c instanceof d["default"]? c.toString(this.format):c}},{key:"setValue",value:function(a){if(!this.hasColor()||!this.color.equals(a)){var b=a?this.createColor(a):!1;if(this.hasColor()||b){var c=this.hasColor()&&!b;this.color=b;this.element.trigger({type:"colorpickerChange",colorpicker:this,color:this.color,value:a});this.update(c)}}}},{key:"createColor",value:function(a){var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:!0,c=new d["default"](this._resolveColor(a),{format:this.format});if(!c.isValid()){var l=c;if(b&& (c=this.fallbackColor instanceof d["default"]&&this.fallbackColor.isValid()?this.fallbackColor:this._resolveColor(this.fallbackColor),c=new d["default"](c,{format:this.format}),!c.isValid()&&b))throw Error("The fallback color is invalid.");c.previous=l;this.element.trigger({type:"colorpickerInvalid",colorpicker:this,color:c,value:a})}!this.isAlphaEnabled()&&c.hasTransparency()&&c.setAlpha(1);if(!this.hasColor())return c;b=c.hsvaRatio;l=this.color.hsvaRatio;0===b.s&&0===b.h&&0!==l.h&&c.setHueRatio(l.h); !this.isAlphaEnabled()&&c.hasTransparency()&&c.setAlpha(1);return c}},{key:"isInvalidColor",value:function(){return!this.hasColor()||!this.color.isValid()||!!this.color.previous}},{key:"isAlphaEnabled",value:function(){return!0===this.options.useAlpha}},{key:"_resolveColor",value:function(a){var c=!1;b["default"].each(this.extensions,function(b,l){!1===c&&(c=l.resolveColor(a))});!1!==c&&(a=c);return a}},{key:"hasInput",value:function(){return!1!==this.input}},{key:"isDisabled",value:function(){return!0=== this.disabled}},{key:"disable",value:function(){this.hasInput()&&this.input.prop("disabled",!0);this.disabled=!0;this.element.trigger({type:"colorpickerDisable",colorpicker:this,color:this.color});return!0}},{key:"enable",value:function(){this.hasInput()&&this.input.prop("disabled",!1);this.disabled=!1;this.element.trigger({type:"colorpickerEnable",colorpicker:this,color:this.color});return!0}},{key:"_mousedown",value:function(a){this.lastEvent.name="mousedown";this.lastEvent.e=a;!a.pageX&&!a.pageY&& a.originalEvent&&a.originalEvent.touches&&(a.pageX=a.originalEvent.touches[0].pageX,a.pageY=a.originalEvent.touches[0].pageY);a.stopPropagation();a.preventDefault();var c=(0,b["default"])(a.target).closest("div"),l=this.options.horizontal?this.options.slidersHorz:this.options.sliders;if(!c.is(".colorpicker")){if(c.is(".colorpicker-saturation"))this.currentSlider=b["default"].extend({},l.saturation);else if(c.is(".colorpicker-hue"))this.currentSlider=b["default"].extend({},l.hue);else if(c.is(".colorpicker-alpha"))this.currentSlider= b["default"].extend({},l.alpha);else return!1;l=c.offset();this.currentSlider.guide=c.find(".colorpicker-guide")[0].style;this.currentSlider.left=a.pageX-l.left;this.currentSlider.top=a.pageY-l.top;this.mousePointer={left:a.pageX,top:a.pageY};(0,b["default"])(window.document).on({"mousemove.colorpicker":b["default"].proxy(this._mousemove,this),"touchmove.colorpicker":b["default"].proxy(this._mousemove,this),"mouseup.colorpicker":b["default"].proxy(this._mouseup,this),"touchend.colorpicker":b["default"].proxy(this._mouseup, this)}).trigger("mousemove")}return!1}},{key:"_mousemove",value:function(a){this.lastEvent.name="mousemove";this.lastEvent.e=a;var c=this.hasColor()?this.color.getCopy():this.createColor(this.fallbackColor);!a.pageX&&!a.pageY&&a.originalEvent&&a.originalEvent.touches&&(a.pageX=a.originalEvent.touches[0].pageX,a.pageY=a.originalEvent.touches[0].pageY);a.stopPropagation();a.preventDefault();var b=Math.max(0,Math.min(this.currentSlider.maxLeft,this.currentSlider.left+((a.pageX||this.mousePointer.left)- this.mousePointer.left)));a=Math.max(0,Math.min(this.currentSlider.maxTop,this.currentSlider.top+((a.pageY||this.mousePointer.top)-this.mousePointer.top)));this.currentSlider.guide.left=b+"px";this.currentSlider.guide.top=a+"px";this.currentSlider.callLeft&&c[this.currentSlider.callLeft].call(c,b/this.currentSlider.maxLeft);this.currentSlider.callTop&&c[this.currentSlider.callTop].call(c,a/this.currentSlider.maxTop);this.setValue(c);return!1}},{key:"_mouseup",value:function(a){this.lastEvent.name= "mouseup";this.lastEvent.e=a;a.stopPropagation();a.preventDefault();(0,b["default"])(window.document).off({"mousemove.colorpicker":this._mousemove,"touchmove.colorpicker":this._mousemove,"mouseup.colorpicker":this._mouseup,"touchend.colorpicker":this._mouseup});return!1}},{key:"_change",value:function(a){this.lastEvent.name="change";this.lastEvent.e=a;a=this.input.val();a!==this.toInputColorString()&&this.setValue(a)}},{key:"_keyup",value:function(a){this.lastEvent.name="keyup";this.lastEvent.e=a; a=this.input.val();a!==this.toInputColorString()&&this.setValue(a)}},{key:"fallbackColor",get:function(){return this.options.fallbackColor?this.options.fallbackColor:this.hasColor()?this.color:"#000"}},{key:"format",get:function(){return this.options.format?this.options.format:this.hasColor()&&this.color.hasTransparency()&&this.color.format.match(/^hex/)?this.options.enableHex8?"hex8":this.isAlphaEnabled()?"rgba":"hex":this.hasColor()?this.color.format:null}}]);return a}();g["default"]=f},function(a, g,f){function h(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}function n(a){return a instanceof String||"string"===typeof a?a.replace(/a$/gi,""):a}Object.defineProperty(g,"__esModule",{value:!0});var d=function l(a,e,c){null===a&&(a=Function.prototype); var b=Object.getOwnPropertyDescriptor(a,e);if(void 0===b){if(a=Object.getPrototypeOf(a),null!==a)return l(a,e,c)}else{if("value"in b)return b.value;e=b.get;return void 0===e?void 0:e.call(c)}},t=function(){function a(a,c){for(var b=0;b<c.length;b++){var e=c[b];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(a,e.key,e)}}return function(b,c,d){c&&a(b.prototype,c);d&&a(b,d);return b}}(),A=(a=f(6))&&a.__esModule?a:{"default":a};a=function(a){function b(a){var c= 1<arguments.length&&void 0!==arguments[1]?arguments[1]:{format:null};if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");c.format&&(c.format=n(c.format));c=(b.__proto__||Object.getPrototypeOf(b)).call(this,a instanceof A["default"]?{r:a._r,g:a._g,b:a._b,a:a._a}:a,c);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");c=!c||"object"!==typeof c&&"function"!==typeof c?this:c;c._originalInput=a;c._hbak=c.hsva.h;c.previous=null;return c} h(b,a);t(b,[{key:"id",get:function(){return this._tc_id}},{key:"format",get:function(){return this._format}},{key:"options",get:function(){return{format:this._format,gradientType:this._gradientType}}},{key:"hsva",get:function(){return this.toHsv()}},{key:"hsvaRatio",get:function(){var a=this.hsva;return{h:a.h/360,s:a.s,v:a.v,a:a.a}}}]);t(b,[{key:"equals",value:function(a){return a instanceof A["default"]?this._r===a._r&&this._g===a._g&&this._b===a._b&&this._a===a._a&&this._roundA===a._roundA&&this._format=== a._format&&this._gradientType===a._gradientType&&this._ok===a._ok:!1}},{key:"importColor",value:function(a){if(!(a instanceof A["default"]))throw Error("Color.importColor: The color argument is not an instance of tinycolor.");this._originalInput=a._originalInput;this._r=a._r;this._g=a._g;this._b=a._b;this._a=a._a;this._roundA=a._roundA;this._format=n(a._format);this._gradientType=a._gradientType;this._ok=a._ok}},{key:"importRgb",value:function(a){if(!a instanceof b)throw Error("Color.importColor: The color argument is not an instance of tinycolor."); this._r=a._r;this._g=a._g;this._b=a._b;this._a=a._a;this._ok=a._ok;this._hbak=a._hbak}},{key:"importHsv",value:function(a){this._hbak=a.h;this.importRgb(new b(a,this.options))}},{key:"getCopy",value:function(){return new b(this.hsva,this.options)}},{key:"getHueOnlyCopy",value:function(){return new b({h:this._hbak?this._hbak:this.hsva.h,s:100,v:100},this.options)}},{key:"getOpaqueCopy",value:function(){return new b(Object.assign({},this.hsva,{a:1}),this.options)}},{key:"setHue",value:function(a){this.importHsv(Object.assign({}, this.hsva,{h:a}))}},{key:"setSaturation",value:function(a){this.importHsv(Object.assign({},this.hsva,{s:a}))}},{key:"setBrightness",value:function(a){this.importHsv(Object.assign({},this.hsva,{v:a}))}},{key:"setHueRatio",value:function(a){0!==a&&this.setHue(360*(1-a))}},{key:"setSaturationRatio",value:function(a){this.setSaturation(a)}},{key:"setBrightnessRatio",value:function(a){this.setBrightness(1-a)}},{key:"setAlphaRatio",value:function(a){this.setAlpha(1-a)}},{key:"isTransparent",value:function(){return 0=== this._a}},{key:"hasTransparency",value:function(){return 1!==this._a}},{key:"toString",value:function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null;a=a?n(a):this.format;return(a=d(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"toString",this).call(this,a))&&a.match(/^#[0-9a-f]{3,8}$/i)&&this.isTransparent()&&0===this._r&&0===this._g&&0===this._b?"transparent":a}}]);return b}(A["default"]);g["default"]=a},function(a,g,f){var h;(function(f){function d(a,b){var m,c; a=a?a:"";b=b||{};if(a instanceof d)return a;if(!(this instanceof d))return new d(a,b);var k=a;var e={r:0,g:0,b:0};var p=1;var l=m=!1;if("string"==typeof k)a:{k=k.replace(K,"").replace(L,"").toLowerCase();var g=!1;if(D[k])k=D[k],g=!0;else if("transparent"==k){k={r:0,g:0,b:0,a:0,format:"name"};break a}k=(c=x.rgb.exec(k))?{r:c[1],g:c[2],b:c[3]}:(c=x.rgba.exec(k))?{r:c[1],g:c[2],b:c[3],a:c[4]}:(c=x.hsl.exec(k))?{h:c[1],s:c[2],l:c[3]}:(c=x.hsla.exec(k))?{h:c[1],s:c[2],l:c[3],a:c[4]}:(c=x.hsv.exec(k))? {h:c[1],s:c[2],v:c[3]}:(c=x.hsva.exec(k))?{h:c[1],s:c[2],v:c[3],a:c[4]}:(c=x.hex8.exec(k))?{r:parseInt(c[1],16),g:parseInt(c[2],16),b:parseInt(c[3],16),a:parseInt(c[4],16)/255,format:g?"name":"hex8"}:(c=x.hex6.exec(k))?{r:parseInt(c[1],16),g:parseInt(c[2],16),b:parseInt(c[3],16),format:g?"name":"hex"}:(c=x.hex4.exec(k))?{r:parseInt(c[1]+""+c[1],16),g:parseInt(c[2]+""+c[2],16),b:parseInt(c[3]+""+c[3],16),a:parseInt(c[4]+""+c[4],16)/255,format:g?"name":"hex8"}:(c=x.hex3.exec(k))?{r:parseInt(c[1]+""+ c[1],16),g:parseInt(c[2]+""+c[2],16),b:parseInt(c[3]+""+c[3],16),format:g?"name":"hex"}:!1}if("object"==typeof k){if(z(k.r)&&z(k.g)&&z(k.b))e=k.g,m=k.b,e={r:255*r(k.r,255),g:255*r(e,255),b:255*r(m,255)},m=!0,l="%"===String(k.r).substr(-1)?"prgb":"rgb";else if(z(k.h)&&z(k.s)&&z(k.v)){e=C(k.s);l=C(k.v);c=k.h;m=e;e=l;c=6*r(c,360);m=r(m,100);e=r(e,100);l=f.floor(c);var h=c-l;c=e*(1-m);g=e*(1-h*m);m=e*(1-(1-h)*m);l%=6;e={r:255*[e,g,c,c,m,e][l],g:255*[m,e,e,g,c,c][l],b:255*[c,c,m,e,e,g][l]};m=!0;l="hsv"}else z(k.h)&& z(k.s)&&z(k.l)&&(e=C(k.s),m=C(k.l),e=n(k.h,e,m),m=!0,l="hsl");k.hasOwnProperty("a")&&(p=k.a)}p=F(p);k=k.format||l;l=u(255,v(e.r,0));c=u(255,v(e.g,0));e=u(255,v(e.b,0));this._originalInput=a;this._r=l;this._g=c;this._b=e;this._a=p;this._roundA=q(100*this._a)/100;this._format=b.format||k;this._gradientType=b.gradientType;1>this._r&&(this._r=q(this._r));1>this._g&&(this._g=q(this._g));1>this._b&&(this._b=q(this._b));this._ok=m;this._tc_id=M++}function g(a,c,b){a=r(a,255);c=r(c,255);b=r(b,255);var m= v(a,c,b),k=u(a,c,b),w=(m+k)/2;if(m==k)var e=k=0;else{var d=m-k;k=.5<w?d/(2-m-k):d/(m+k);switch(m){case a:e=(c-b)/d+(c<b?6:0);break;case c:e=(b-a)/d+2;break;case b:e=(a-c)/d+4}e/=6}return{h:e,s:k,l:w}}function n(a,c,b){function m(a,b,c){0>c&&(c+=1);1<c&&--c;return c<1/6?a+6*(b-a)*c:.5>c?b:c<2/3?a+(b-a)*(2/3-c)*6:a}a=r(a,360);c=r(c,100);b=r(b,100);if(0===c)b=c=a=b;else{var k=.5>b?b*(1+c):b+c-b*c,w=2*b-k;b=m(w,k,a+1/3);c=m(w,k,a);a=m(w,k,a-1/3)}return{r:255*b,g:255*c,b:255*a}}function p(a,c,b){a=r(a, 255);c=r(c,255);b=r(b,255);var m=v(a,c,b),k=u(a,c,b),w=m-k;if(m==k)var e=0;else{switch(m){case a:e=(c-b)/w+(c<b?6:0);break;case c:e=(b-a)/w+2;break;case b:e=(a-c)/w+4}e/=6}return{h:e,s:0===m?0:w/m,v:m}}function b(a,c,b,e){a=[y(q(a).toString(16)),y(q(c).toString(16)),y(q(b).toString(16))];return e&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function e(a,c,b,e){return[y(f.round(255*parseFloat(e)).toString(16)), y(q(a).toString(16)),y(q(c).toString(16)),y(q(b).toString(16))].join("")}function c(a,c){c=0===c?0:c||10;var b=d(a).toHsl();b.s-=c/100;b.s=u(1,v(0,b.s));return d(b)}function l(a,c){c=0===c?0:c||10;var b=d(a).toHsl();b.s+=c/100;b.s=u(1,v(0,b.s));return d(b)}function B(a){return d(a).desaturate(100)}function G(a,c){c=0===c?0:c||10;var b=d(a).toHsl();b.l+=c/100;b.l=u(1,v(0,b.l));return d(b)}function H(a,c){c=0===c?0:c||10;var b=d(a).toRgb();b.r=v(0,u(255,b.r-q(255*-(c/100))));b.g=v(0,u(255,b.g-q(255* -(c/100))));b.b=v(0,u(255,b.b-q(255*-(c/100))));return d(b)}function I(a,c){c=0===c?0:c||10;var b=d(a).toHsl();b.l-=c/100;b.l=u(1,v(0,b.l));return d(b)}function J(a,c){var b=d(a).toHsl(),m=(b.h+c)%360;b.h=0>m?360+m:m;return d(b)}function N(a){a=d(a).toHsl();a.h=(a.h+180)%360;return d(a)}function O(a){var b=d(a).toHsl(),c=b.h;return[d(a),d({h:(c+120)%360,s:b.s,l:b.l}),d({h:(c+240)%360,s:b.s,l:b.l})]}function P(a){var b=d(a).toHsl(),c=b.h;return[d(a),d({h:(c+90)%360,s:b.s,l:b.l}),d({h:(c+180)%360,s:b.s, l:b.l}),d({h:(c+270)%360,s:b.s,l:b.l})]}function Q(a){var b=d(a).toHsl(),c=b.h;return[d(a),d({h:(c+72)%360,s:b.s,l:b.l}),d({h:(c+216)%360,s:b.s,l:b.l})]}function R(a,b,c){b=b||6;c=c||30;var m=d(a).toHsl();c=360/c;a=[d(a)];for(m.h=(m.h-(c*b>>1)+720)%360;--b;)m.h=(m.h+c)%360,a.push(d(m));return a}function S(a,b){b=b||6;var c=d(a).toHsv(),m=c.h,e=c.s;c=c.v;for(var k=[],f=1/b;b--;)k.push(d({h:m,s:e,v:c})),c=(c+f)%1;return k}function F(a){a=parseFloat(a);if(isNaN(a)||0>a||1<a)a=1;return a}function r(a, b){var c=a;"string"==typeof c&&-1!=c.indexOf(".")&&1===parseFloat(c)&&(a="100%");c="string"===typeof a&&-1!=a.indexOf("%");a=u(b,v(0,parseFloat(a)));c&&(a=parseInt(a*b,10)/100);return 1E-6>f.abs(a-b)?1:a%b/parseFloat(b)}function y(a){return 1==a.length?"0"+a:""+a}function C(a){1>=a&&(a=100*a+"%");return a}function z(a){return!!x.CSS_UNIT.exec(a)}var K=/^\s+/,L=/\s+$/,M=0,q=f.round,u=f.min,v=f.max,E=f.random;d.prototype={isDark:function(){return 128>this.getBrightness()},isLight:function(){return!this.isDark()}, isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var a=this.toRgb();return(299*a.r+587*a.g+114*a.b)/1E3},getLuminance:function(){var a=this.toRgb();var b=a.r/255;var c=a.g/255;a=a.b/255;b=.03928>=b?b/12.92:f.pow((b+.055)/1.055,2.4);c=.03928>=c?c/12.92:f.pow((c+.055)/1.055,2.4);a=.03928>=a?a/12.92:f.pow((a+.055)/1.055,2.4);return.2126*b+.7152*c+.0722*a}, setAlpha:function(a){this._a=F(a);this._roundA=q(100*this._a)/100;return this},toHsv:function(){var a=p(this._r,this._g,this._b);return{h:360*a.h,s:a.s,v:a.v,a:this._a}},toHsvString:function(){var a=p(this._r,this._g,this._b),b=q(360*a.h),c=q(100*a.s);a=q(100*a.v);return 1==this._a?"hsv("+b+", "+c+"%, "+a+"%)":"hsva("+b+", "+c+"%, "+a+"%, "+this._roundA+")"},toHsl:function(){var a=g(this._r,this._g,this._b);return{h:360*a.h,s:a.s,l:a.l,a:this._a}},toHslString:function(){var a=g(this._r,this._g,this._b), b=q(360*a.h),c=q(100*a.s);a=q(100*a.l);return 1==this._a?"hsl("+b+", "+c+"%, "+a+"%)":"hsla("+b+", "+c+"%, "+a+"%, "+this._roundA+")"},toHex:function(a){return b(this._r,this._g,this._b,a)},toHexString:function(a){return"#"+this.toHex(a)},toHex8:function(a){var b=this._g,c=this._b,e=this._a;b=[y(q(this._r).toString(16)),y(q(b).toString(16)),y(q(c).toString(16)),y(f.round(255*parseFloat(e)).toString(16))];a=a&&b[0].charAt(0)==b[0].charAt(1)&&b[1].charAt(0)==b[1].charAt(1)&&b[2].charAt(0)==b[2].charAt(1)&& b[3].charAt(0)==b[3].charAt(1)?b[0].charAt(0)+b[1].charAt(0)+b[2].charAt(0)+b[3].charAt(0):b.join("");return a},toHex8String:function(a){return"#"+this.toHex8(a)},toRgb:function(){return{r:q(this._r),g:q(this._g),b:q(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+q(this._r)+", "+q(this._g)+", "+q(this._b)+")":"rgba("+q(this._r)+", "+q(this._g)+", "+q(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:q(100*r(this._r,255))+"%",g:q(100*r(this._g,255))+"%",b:q(100* r(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+q(100*r(this._r,255))+"%, "+q(100*r(this._g,255))+"%, "+q(100*r(this._b,255))+"%)":"rgba("+q(100*r(this._r,255))+"%, "+q(100*r(this._g,255))+"%, "+q(100*r(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":1>this._a?!1:T[b(this._r,this._g,this._b,!0)]||!1},toFilter:function(a){var b="#"+e(this._r,this._g,this._b,this._a),c=b,f=this._gradientType?"GradientType = 1, ":"";a&& (a=d(a),c="#"+e(a._r,a._g,a._b,a._a));return"progid:DXImageTransform.Microsoft.gradient("+f+"startColorstr="+b+",endColorstr="+c+")"},toString:function(a){var b=!!a;a=a||this._format;var c=!1,e=1>this._a&&0<=this._a;if(!b&&e&&("hex"===a||"hex6"===a||"hex3"===a||"hex4"===a||"hex8"===a||"name"===a))return"name"===a&&0===this._a?this.toName():this.toRgbString();"rgb"===a&&(c=this.toRgbString());"prgb"===a&&(c=this.toPercentageRgbString());if("hex"===a||"hex6"===a)c=this.toHexString();"hex3"===a&&(c= this.toHexString(!0));"hex4"===a&&(c=this.toHex8String(!0));"hex8"===a&&(c=this.toHex8String());"name"===a&&(c=this.toName());"hsl"===a&&(c=this.toHslString());"hsv"===a&&(c=this.toHsvString());return c||this.toHexString()},clone:function(){return d(this.toString())},_applyModification:function(a,b){var c=a.apply(null,[this].concat([].slice.call(b)));this._r=c._r;this._g=c._g;this._b=c._b;this.setAlpha(c._a);return this},lighten:function(){return this._applyModification(G,arguments)},brighten:function(){return this._applyModification(H, arguments)},darken:function(){return this._applyModification(I,arguments)},desaturate:function(){return this._applyModification(c,arguments)},saturate:function(){return this._applyModification(l,arguments)},greyscale:function(){return this._applyModification(B,arguments)},spin:function(){return this._applyModification(J,arguments)},_applyCombination:function(a,b){return a.apply(null,[this].concat([].slice.call(b)))},analogous:function(){return this._applyCombination(R,arguments)},complement:function(){return this._applyCombination(N, arguments)},monochromatic:function(){return this._applyCombination(S,arguments)},splitcomplement:function(){return this._applyCombination(Q,arguments)},triad:function(){return this._applyCombination(O,arguments)},tetrad:function(){return this._applyCombination(P,arguments)}};d.fromRatio=function(a,b){if("object"==typeof a){var c={},e;for(e in a)a.hasOwnProperty(e)&&(c[e]="a"===e?a[e]:C(a[e]));a=c}return d(a,b)};d.equals=function(a,b){return a&&b?d(a).toRgbString()==d(b).toRgbString():!1};d.random= function(){return d.fromRatio({r:E(),g:E(),b:E()})};d.mix=function(a,b,c){c=0===c?0:c||50;a=d(a).toRgb();b=d(b).toRgb();c/=100;return d({r:(b.r-a.r)*c+a.r,g:(b.g-a.g)*c+a.g,b:(b.b-a.b)*c+a.b,a:(b.a-a.a)*c+a.a})};d.readability=function(a,b){var c=d(a),e=d(b);return(f.max(c.getLuminance(),e.getLuminance())+.05)/(f.min(c.getLuminance(),e.getLuminance())+.05)};d.isReadable=function(a,b,c){a=d.readability(a,b);b=!1;var e=c||{level:"AA",size:"small"};c=(e.level||"AA").toUpperCase();e=(e.size||"small").toLowerCase(); "AA"!==c&&"AAA"!==c&&(c="AA");"small"!==e&&"large"!==e&&(e="small");switch(c+e){case "AAsmall":case "AAAlarge":b=4.5<=a;break;case "AAlarge":b=3<=a;break;case "AAAsmall":b=7<=a}return b};d.mostReadable=function(a,b,c){var e=null,f=0;c=c||{};var p=c.includeFallbackColors;var l=c.level;var g=c.size;for(var k=0;k<b.length;k++){var h=d.readability(a,b[k]);h>f&&(f=h,e=d(b[k]))}if(d.isReadable(a,e,{level:l,size:g})||!p)return e;c.includeFallbackColors=!1;return d.mostReadable(a,["#fff","#000"],c)};var D= d.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9", darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520", gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789", lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500", orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090", snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},T=d.hexNames=function(a){var b={},c;for(c in a)a.hasOwnProperty(c)&&(b[a[c]]=c);return b}(D),x={CSS_UNIT:/(?:[-\+]?\d*\.\d+%?)|(?:[-\+]?\d+%?)/,rgb:/rgb[\s|\(]+((?:[-\+]?\d*\.\d+%?)|(?:[-\+]?\d+%?))[,|\s]+((?:[-\+]?\d*\.\d+%?)|(?:[-\+]?\d+%?))[,|\s]+((?:[-\+]?\d*\.\d+%?)|(?:[-\+]?\d+%?))\s*\)?/, rgba:/rgba[\s|\(]+((?:[-\+]?\d*\.\d+%?)|(?:[-\+]?\d+%?))[,|\s]+((?:[-\+]?\d*\.\d+%?)|(?:[-\+]?\d+%?))[,|\s]+((?:[-\+]?\d*\.\d+%?)|(?:[-\+]?\d+%?))[,|\s]+((?:[-\+]?\d*\.\d+%?)|(?:[-\+]?\d+%?))\s*\)?/,hsl:/hsl[\s|\(]+((?:[-\+]?\d*\.\d+%?)|(?:[-\+]?\d+%?))[,|\s]+((?:[-\+]?\d*\.\d+%?)|(?:[-\+]?\d+%?))[,|\s]+((?:[-\+]?\d*\.\d+%?)|(?:[-\+]?\d+%?))\s*\)?/,hsla:/hsla[\s|\(]+((?:[-\+]?\d*\.\d+%?)|(?:[-\+]?\d+%?))[,|\s]+((?:[-\+]?\d*\.\d+%?)|(?:[-\+]?\d+%?))[,|\s]+((?:[-\+]?\d*\.\d+%?)|(?:[-\+]?\d+%?))[,|\s]+((?:[-\+]?\d*\.\d+%?)|(?:[-\+]?\d+%?))\s*\)?/, hsv:/hsv[\s|\(]+((?:[-\+]?\d*\.\d+%?)|(?:[-\+]?\d+%?))[,|\s]+((?:[-\+]?\d*\.\d+%?)|(?:[-\+]?\d+%?))[,|\s]+((?:[-\+]?\d*\.\d+%?)|(?:[-\+]?\d+%?))\s*\)?/,hsva:/hsva[\s|\(]+((?:[-\+]?\d*\.\d+%?)|(?:[-\+]?\d+%?))[,|\s]+((?:[-\+]?\d*\.\d+%?)|(?:[-\+]?\d+%?))[,|\s]+((?:[-\+]?\d*\.\d+%?)|(?:[-\+]?\d+%?))[,|\s]+((?:[-\+]?\d*\.\d+%?)|(?:[-\+]?\d+%?))\s*\)?/,hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};"undefined"!==typeof a&&a.exports?a.exports=d:!(h=d,void 0!==h&&(a.exports=h))})(Math)},function(a,g,f){Object.defineProperty(g,"__esModule",{value:!0});g["default"]={debug:!1,color:!1,format:!1,horizontal:!1,inline:!1,input:"input",container:!1,component:".add-on, .input-group-addon",fallbackColor:!1,autoInputFallback:!1,useHashPrefix:!0,useAlpha:!0,enableHex8:!1,sliders:{saturation:{maxLeft:100,maxTop:100,callLeft:"setSaturationRatio", callTop:"setBrightnessRatio"},hue:{maxLeft:0,maxTop:100,callLeft:!1,callTop:"setHueRatio"},alpha:{maxLeft:0,maxTop:100,callLeft:!1,callTop:"setAlphaRatio"}},slidersHorz:{saturation:{maxLeft:100,maxTop:100,callLeft:"setSaturationRatio",callTop:"setBrightnessRatio"},hue:{maxLeft:100,maxTop:0,callLeft:"setHueRatio",callTop:!1},alpha:{maxLeft:100,maxTop:0,callLeft:"setAlphaRatio",callTop:!1}},align:"right",customClass:null,template:'<div class="colorpicker">\n <div class="colorpicker-saturation"><i class="colorpicker-guide"><i /></div>\n <div class="colorpicker-hue"><i class="colorpicker-guide"></i></div>\n <div class="colorpicker-alpha"><i class="colorpicker-guide"></i></div></div>', extensions:[{name:"preview",showText:!1}]}},function(a,g,f){function h(a){return a&&a.__esModule?a:{"default":a}}Object.defineProperty(g,"__esModule",{value:!0});g.Palette=g.Swatches=g.Preview=g.Debugger=void 0;a=f(9);a=h(a);var n=f(10);n=h(n);var d=f(11);d=h(d);f=f(2);f=h(f);g.Debugger=a["default"];g.Preview=n["default"];g.Swatches=d["default"];g.Palette=f["default"];g["default"]={"debugger":a["default"],preview:n["default"],swatches:d["default"],palette:f["default"]}},function(a,g,f){function h(a, d){if("function"!==typeof d&&null!==d)throw new TypeError("Super expression must either be null or a function, not "+typeof d);a.prototype=Object.create(d&&d.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});d&&(Object.setPrototypeOf?Object.setPrototypeOf(a,d):a.__proto__=d)}Object.defineProperty(g,"__esModule",{value:!0});var n=function(){function a(a,b){for(var e=0;e<b.length;e++){var c=b[e];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0); Object.defineProperty(a,c.key,c)}}return function(d,b,e){b&&a(d.prototype,b);e&&a(d,e);return d}}(),d=function c(a,b,e){null===a&&(a=Function.prototype);var d=Object.getOwnPropertyDescriptor(a,b);if(void 0===d){if(a=Object.getPrototypeOf(a),null!==a)return c(a,b,e)}else{if("value"in d)return d.value;b=d.get;return void 0===b?void 0:b.call(e)}};a=(a=f(1))&&a.__esModule?a:{"default":a};var t=(f=f(0))&&f.__esModule?f:{"default":f};f=function(a){function b(a){var c=1<arguments.length&&void 0!==arguments[1]? arguments[1]:{};if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");c=(b.__proto__||Object.getPrototypeOf(b)).call(this,a,c);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");c=!c||"object"!==typeof c&&"function"!==typeof c?this:c;c.eventCounter=0;if(c.colorpicker.hasInput())c.colorpicker.input.on("change.colorpicker-ext",t["default"].proxy(c.onChangeInput,c));return c}h(b,a);n(b,[{key:"log",value:function(a){for(var b,e=arguments.length, d=Array(1<e?e-1:0),f=1;f<e;f++)d[f-1]=arguments[f];this.eventCounter+=1;e="#"+this.eventCounter+": Colorpicker#"+this.colorpicker.id+" ["+a+"]";(b=console).debug.apply(b,[e].concat(d));this.colorpicker.element.trigger({type:"colorpickerDebug",colorpicker:this.colorpicker,color:this.color,debug:{"debugger":this,eventName:a,logArgs:d,logMessage:e}})}},{key:"resolveColor",value:function(a){this.log("resolveColor()",a);return!1}},{key:"onCreate",value:function(a){this.log("colorpickerCreate");return d(b.prototype.__proto__|| Object.getPrototypeOf(b.prototype),"onCreate",this).call(this,a)}},{key:"onDestroy",value:function(a){this.log("colorpickerDestroy");this.eventCounter=0;this.colorpicker.hasInput()&&this.colorpicker.input.off(".colorpicker-ext");return d(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"onDestroy",this).call(this,a)}},{key:"onUpdate",value:function(a){this.log("colorpickerUpdate")}},{key:"onChangeInput",value:function(a){this.log("input:change.colorpicker",a.value,a.color)}},{key:"onChange", value:function(a){this.log("colorpickerChange",a.value,a.color)}},{key:"onInvalid",value:function(a){this.log("colorpickerInvalid",a.value,a.color)}},{key:"onHide",value:function(a){this.log("colorpickerHide");this.eventCounter=0}},{key:"onShow",value:function(a){this.log("colorpickerShow")}},{key:"onDisable",value:function(a){this.log("colorpickerDisable")}},{key:"onEnable",value:function(a){this.log("colorpickerEnable")}}]);return b}(a["default"]);g["default"]=f},function(a,g,f){function h(a,d){if("function"!== typeof d&&null!==d)throw new TypeError("Super expression must either be null or a function, not "+typeof d);a.prototype=Object.create(d&&d.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});d&&(Object.setPrototypeOf?Object.setPrototypeOf(a,d):a.__proto__=d)}Object.defineProperty(g,"__esModule",{value:!0});var n=function(){function a(a,b){for(var e=0;e<b.length;e++){var c=b[e];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(a, c.key,c)}}return function(d,b,e){b&&a(d.prototype,b);e&&a(d,e);return d}}(),d=function c(a,b,e){null===a&&(a=Function.prototype);var d=Object.getOwnPropertyDescriptor(a,b);if(void 0===d){if(a=Object.getPrototypeOf(a),null!==a)return c(a,b,e)}else{if("value"in d)return d.value;b=d.get;return void 0===b?void 0:b.call(e)}};a=(a=f(1))&&a.__esModule?a:{"default":a};var t=(f=f(0))&&f.__esModule?f:{"default":f};f=function(a){function b(a){var c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");c=(b.__proto__||Object.getPrototypeOf(b)).call(this,a,Object.assign({},{template:'<div class="colorpicker-bar colorpicker-preview"><div /></div>',showText:!0,format:a.format},c));if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");c=!c||"object"!==typeof c&&"function"!==typeof c?this:c;c.element=(0,t["default"])(c.options.template);c.elementInner=c.element.find("div");return c}h(b,a);n(b,[{key:"onCreate", value:function(a){d(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"onCreate",this).call(this,a);this.colorpicker.picker.append(this.element)}},{key:"onUpdate",value:function(a){d(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"onUpdate",this).call(this,a);a.color?(this.elementInner.css("backgroundColor",a.color.toRgbString()),this.options.showText&&(this.elementInner.html(a.color.toString(this.options.format||this.colorpicker.format)),a.color.isDark()?this.elementInner.css("color", "white"):this.elementInner.css("color","black"))):this.elementInner.css("backgroundColor",null).css("color",null).html("")}}]);return b}(a["default"]);g["default"]=f},function(a,g,f){function h(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}Object.defineProperty(g, "__esModule",{value:!0});var n=function(){function a(a,d){for(var b=0;b<d.length;b++){var e=d[b];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(a,e.key,e)}}return function(b,d,c){d&&a(b.prototype,d);c&&a(b,c);return b}}(),d=function l(a,d,c){null===a&&(a=Function.prototype);var b=Object.getOwnPropertyDescriptor(a,d);if(void 0===b){if(a=Object.getPrototypeOf(a),null!==a)return l(a,d,c)}else{if("value"in b)return b.value;d=b.get;return void 0===d? void 0:d.call(c)}};a=(a=f(2))&&a.__esModule?a:{"default":a};var t=(f=f(0))&&f.__esModule?f:{"default":f},A={barTemplate:'<div class="colorpicker-bar colorpicker-swatches"></div>',swatchTemplate:'<i class="colorpicker-swatch"></i>'};f=function(a){function b(a){var c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");c=(b.__proto__||Object.getPrototypeOf(b)).call(this,a,Object.assign({},A,c));if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return!c||"object"!==typeof c&&"function"!==typeof c?this:c}h(b,a);n(b,[{key:"isEnabled",value:function(){return 0<this.getLength()}},{key:"onCreate",value:function(a){var c=this;d(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"onCreate",this).call(this,a);if(this.isEnabled()){var e=this.colorpicker,f=(0,t["default"])(this.options.barTemplate),g=!0===this.options.namesAsValues&&!Array.isArray(this.colors);t["default"].each(this.colors,function(a,b){var d=(0,t["default"])(c.options.swatchTemplate).css("background-color", b).attr("data-name",a).attr("data-value",b).attr("title",a+": "+b);d.on("mousedown.colorpicker touchstart.colorpicker",function(a){a.preventDefault();e.setValue(g?(0,t["default"])(this).data("name"):(0,t["default"])(this).data("value"))});f.append(d)});e.picker.append(f)}}}]);return b}(a["default"]);g["default"]=f}])});