text: 'use strict';var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(e,w,x){if(e==Array.prototype||e==Object.prototype)return e;e[w]=x.value;return e};
  $jscomp.getGlobal=function(e){e=["object"==typeof globalThis&&globalThis,e,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var w=0;w<e.length;++w){var x=e[w];if(x&&x.Math==Math)return x}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};
  $jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(e,w){var x=$jscomp.propertyToPolyfillSymbol[w];if(null==x)return e[w];x=e[x];return void 0!==x?x:e[w]};$jscomp.polyfill=function(e,w,x,E){w&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(e,w,x,E):$jscomp.polyfillUnisolated(e,w,x,E))};
  $jscomp.polyfillUnisolated=function(e,w,x,E){x=$jscomp.global;e=e.split(".");for(E=0;E<e.length-1;E++){var C=e[E];if(!(C in x))return;x=x[C]}e=e[e.length-1];E=x[e];w=w(E);w!=E&&null!=w&&$jscomp.defineProperty(x,e,{configurable:!0,writable:!0,value:w})};
  $jscomp.polyfillIsolated=function(e,w,x,E){var C=e.split(".");e=1===C.length;E=C[0];E=!e&&E in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var va=0;va<C.length-1;va++){var fa=C[va];if(!(fa in E))return;E=E[fa]}C=C[C.length-1];x=$jscomp.IS_SYMBOL_NATIVE&&"es6"===x?E[C]:null;w=w(x);null!=w&&(e?$jscomp.defineProperty($jscomp.polyfills,C,{configurable:!0,writable:!0,value:w}):w!==x&&($jscomp.propertyToPolyfillSymbol[C]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(C):$jscomp.POLYFILL_PREFIX+
  C,C=$jscomp.propertyToPolyfillSymbol[C],$jscomp.defineProperty(E,C,{configurable:!0,writable:!0,value:w})))};$jscomp.polyfill("Array.prototype.flat",function(e){return e?e:function(w){w=void 0===w?1:w;for(var x=[],E=0;E<this.length;E++){var C=this[E];Array.isArray(C)&&0<w?(C=Array.prototype.flat.call(C,w-1),x.push.apply(x,C)):x.push(C)}return x}},"es9","es5");
  (function(e){"function"===typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports&&"object"==typeof module?module.exports=e(require("jquery")):e(jQuery)})(function(e,w){function x(l,r,z,D){for(var y=[],H=0;H<l.length;H++){var G=l[H];if(G){var I=tinycolor(G),R=.5>I.toHsl().l?"sp-thumb-el sp-thumb-dark":"sp-thumb-el sp-thumb-light";R+=tinycolor.equals(r,G)?" sp-thumb-active":"";G=I.toString(D.preferredFormat||"rgb");var U=Pa?"background-color:"+I.toRgbString():"filter:"+I.toFilter();
  y.push('<span title="'+G+'" data-color="'+I.toRgbString()+'" class="'+R+'"><span class="sp-thumb-inner" style="'+U+';"></span></span>')}else y.push(e("<div />").append(e('<span data-color="" style="background-color:transparent;" class="sp-clear-display"></span>').attr("title",D.noColorSelectedText)).html())}return"<div class='sp-cf "+z+"'>"+y.join("")+"</div>"}function E(l,r){l=e.extend({},Qa,l);l.callbacks={move:wa(l.move,r),change:wa(l.change,r),show:wa(l.show,r),hide:wa(l.hide,r),beforeShow:wa(l.beforeShow,
  r)};return l}function C(l,r){function z(){h.showPaletteOnly&&(h.showPalette=!0);Ka.text(h.showPaletteOnly?h.togglePaletteMoreText:h.togglePaletteLessText);if(h.palette){A=h.palette.slice(0);ha=e.isArray(A[0])?A:[A];Ba={};for(var g=0;g<ha.length;g++)for(var m=0;m<ha[g].length;m++){var n=tinycolor(ha[g][m]).toRgbString();Ba[n]=!0}}u.toggleClass("sp-flat",X);u.toggleClass("sp-input-disabled",!h.showInput);u.toggleClass("sp-alpha-enabled",h.showAlpha);u.toggleClass("sp-clear-enabled",ma);u.toggleClass("sp-buttons-disabled",
  !h.showButtons);u.toggleClass("sp-palette-buttons-disabled",!h.togglePaletteOnly);u.toggleClass("sp-palette-disabled",!h.showPalette);u.toggleClass("sp-palette-only",h.showPaletteOnly);u.toggleClass("sp-initial-disabled",!h.showInitial);u.addClass(h.className).addClass(h.containerClassName);S()}function D(){if(q&&window.localStorage){try{var g=window.localStorage[q].split(",#");1<g.length&&(delete window.localStorage[q],e.each(g,function(m,n){y(n)}))}catch(m){}try{Y=window.localStorage[q].split(";")}catch(m){}}}
  function y(g){if(ia){g=tinycolor(g).toRgbString();if(!Ba[g]&&-1===e.inArray(g,Y))for(Y.push(g);Y.length>Wa;)Y.shift();if(q&&window.localStorage)try{window.localStorage[q]=Y.join(";")}catch(m){}}}function H(){var g=[];if(h.showPalette)for(var m=0;m<Y.length;m++){var n=tinycolor(Y[m]).toRgbString();Ba[n]||g.push(Y[m])}return g.reverse().slice(0,h.maxSelectionSize)}function G(){var g=M(),m=e.map(ha,function(n,L){return x(n,g,"sp-palette-row sp-palette-row-"+L,h)});D();Y&&m.push(x(H(),g,"sp-palette-row sp-palette-row-selection",
  h));Ra.html(m.join(""))}function I(){if(h.showInitial){var g=na,m=M();Sa.html(x([g,m],m,"sp-palette-row-initial",h))}}function R(){(0>=V||0>=Z||0>=a)&&S();k=!0;u.addClass("sp-dragging");ja=null;J.trigger("dragstart.spectrum",[M()])}function U(){k=!1;u.removeClass("sp-dragging");J.trigger("dragstop.spectrum",[M()])}function ka(){var g=aa.val();null!==g&&""!==g||!ma?(g=tinycolor(g),g.isValid()?(T(g),ba(),N()):aa.addClass("sp-validation-error")):(T(null),ba(),N())}function oa(){ca?O():pa()}function pa(){var g=
  e.Event("beforeShow.spectrum");if(ca)S();else if(J.trigger(g,[M()]),!1!==K.beforeShow(M())&&!g.isDefaultPrevented()){for(g=0;g<qa.length;g++)qa[g]&&qa[g].hide();ca=!0;e(xa).on("keydown.spectrum",W);e(xa).on("click.spectrum",F);e(window).on("resize.spectrum",Q);ra.addClass("sp-active");u.removeClass("sp-hidden");S();da();na=M();I();K.show(na);J.trigger("show.spectrum",[na])}}function W(g){27===g.keyCode&&O()}function F(g){2==g.button||k||(Xa||T(na,!0),N(!0),O())}function O(){ca&&!X&&(ca=!1,e(xa).off("keydown.spectrum",
  W),e(xa).off("click.spectrum",F),e(window).off("resize.spectrum",Q),ra.removeClass("sp-active"),u.addClass("sp-hidden"),K.hide(M()),J.trigger("hide.spectrum",[M()]))}function T(g,m){if(tinycolor.equals(g,M()))da();else{if(!g&&ma)la=!0;else{la=!1;var n=tinycolor(g);g=n.toHsv();f=g.h%360/360;p=g.s;v=g.v;t=g.a}da();n&&n.isValid()&&!m&&(sa=h.preferredFormat||n.getFormat())}}function M(g){g=g||{};return ma&&la?null:tinycolor.fromRatio({h:f,s:p,v,a:Math.round(1E3*t)/1E3},{format:g.format||sa})}function ba(){da();
  K.move(M());J.trigger("move.spectrum",[M()])}function da(){aa.removeClass("sp-validation-error");B();var g=tinycolor.fromRatio({h:f,s:1,v:1});Ca.css("background-color",g.toHexString());g=sa;!(1>t)||0===t&&"name"===g||"hex"!==g&&"hex3"!==g&&"hex6"!==g&&"name"!==g||(g="rgb");var m=M({format:g}),n="";ta.removeClass("sp-clear-display");ta.css("background-color","transparent");if(!m&&ma)ta.addClass("sp-clear-display");else{n=m.toHexString();var L=m.toRgbString();Pa||1===m.alpha?ta.css("background-color",
  L):(ta.css("background-color","transparent"),ta.css("filter",m.toFilter()));if(h.showAlpha){L=m.toRgb();L.a=0;L=tinycolor(L).toRgbString();var ea="linear-gradient(left, "+L+", "+n+")";ua?ya.css("filter",tinycolor(L).toFilter({gradientType:1},n)):(ya.css("background","-webkit-"+ea),ya.css("background","-moz-"+ea),ya.css("background","-ms-"+ea),ya.css("background","linear-gradient(to right, "+L+", "+n+")"))}n=m.toString(g)}h.showInput&&aa.val(n);h.showPalette&&G();I()}function B(){var g=p,m=v;ma&&la?
  (Da.hide(),Ea.hide(),Fa.hide()):(Da.show(),Ea.show(),Fa.show(),g*=Z,m=V-m*V,g=Math.max(-P,Math.min(Z-P,g-P)),m=Math.max(-P,Math.min(V-P,m-P)),Fa.css({top:m+"px",left:g+"px"}),Da.css({left:t*b-c/2+"px"}),Ea.css({top:f*a-d+"px"}))}function N(g){var m=M(),n="",L=!tinycolor.equals(m,na);m&&(n=m.toString(sa),y(m));Ga&&J.val(n);g&&L&&(K.change(m),J.trigger("change",[m]))}function S(){ca&&(Z=Ca.width(),V=Ca.height(),P=Fa.height(),La.width(),a=La.height(),d=Ea.height(),b=Ta.width(),c=Da.width(),X||(u.css("position",
  "absolute"),h.offset?u.offset(h.offset):u.offset(va(u,za))),B(),h.showPalette&&G(),J.trigger("reflow.spectrum"))}function Ha(){O();Ma=!0;J.attr("disabled",!0);za.addClass("sp-disabled")}var h=E(r,l),X=h.flat,ia=h.showSelectionPalette,q=h.localStorageKey;r=h.theme;var K=h.callbacks,Q=Ya(S,10),ca=!1,k=!1,Z=0,V=0,P=0,a=0,b=0,c=0,d=0,f=0,p=0,v=0,t=1,A=[],ha=[],Ba={},Y=h.selectionPalette.slice(0),Wa=h.maxSelectionSize,ja=null,xa=l.ownerDocument,J=e(l),Ma=!1,u=e(Za,xa).addClass(r),$a=u.find(".sp-picker-container"),
  Ca=u.find(".sp-color"),Fa=u.find(".sp-dragger"),La=u.find(".sp-hue"),Ea=u.find(".sp-slider"),ya=u.find(".sp-alpha-inner"),Ta=u.find(".sp-alpha"),Da=u.find(".sp-alpha-handle"),aa=u.find(".sp-input"),Ra=u.find(".sp-palette"),Sa=u.find(".sp-initial"),Ua=u.find(".sp-cancel"),Na=u.find(".sp-clear"),Va=u.find(".sp-choose"),Ka=u.find(".sp-palette-toggle"),Ga=J.is("input");l=Ga&&"color"===J.attr("type")&&e.fn.spectrum.inputTypeColorSupport();var Oa=Ga&&!X,ra=Oa?e("<div class='sp-replacer'><div class='sp-preview'><div class='sp-preview-inner'></div></div><div class='sp-dd'>&#9660;</div></div>").addClass(r).addClass(h.className).addClass(h.replacerClassName):
  e([]),za=Oa?ra:J,ta=ra.find(".sp-preview-inner"),Aa=h.color||Ga&&J.val(),na=!1,sa=h.preferredFormat,Xa=!h.showButtons||h.clickoutFiresChange,la=!Aa,ma=h.allowEmpty&&!l;(function(){function g(n){n.data&&n.data.ignore?(T(e(n.target).closest(".sp-thumb-el").data("color")),ba()):(T(e(n.target).closest(".sp-thumb-el").data("color")),ba(),h.hideAfterPaletteSelect?(N(!0),O()):N());return!1}ua&&u.find("*:not(input)").attr("unselectable","on");z();Oa&&J.after(ra).hide();ma||Na.hide();if(X)J.after(u).hide();
  else{var m="parent"===h.appendTo?J.parent():e(h.appendTo);1!==m.length&&(m=e("body"));m.append(u)}D();za.on("click.spectrum touchstart.spectrum",function(n){Ma||oa();n.stopPropagation();e(n.target).is("input")||n.preventDefault()});(J.is(":disabled")||!0===h.disabled)&&Ha();u.click(ab);aa.change(ka);aa.on("paste",function(){setTimeout(ka,1)});aa.keydown(function(n){13==n.keyCode&&ka()});Ua.text(h.cancelText);Ua.on("click.spectrum",function(n){n.stopPropagation();n.preventDefault();T(na,!0);N(!0);
  O()});Na.attr("title",h.clearText);Na.on("click.spectrum",function(n){n.stopPropagation();n.preventDefault();la=!0;ba();X&&N(!0)});Va.text(h.chooseText);Va.on("click.spectrum",function(n){n.stopPropagation();n.preventDefault();ua&&aa.is(":focus")&&aa.trigger("change");aa.hasClass("sp-validation-error")||(N(!0),O())});Ka.text(h.showPaletteOnly?h.togglePaletteMoreText:h.togglePaletteLessText);Ka.on("click.spectrum",function(n){n.stopPropagation();n.preventDefault();h.showPaletteOnly=!h.showPaletteOnly;
  h.showPaletteOnly||X||u.css("left","-="+($a.outerWidth(!0)+5));z()});Ia(Ta,function(n,L,ea){t=n/b;la=!1;ea.shiftKey&&(t=Math.round(10*t)/10);ba()},R,U);Ia(La,function(n,L){f=parseFloat(L/a);la=!1;h.showAlpha||(t=1);ba()},R,U);Ia(Ca,function(n,L,ea){ea.shiftKey?ja||(ja=Math.abs(n-p*Z)>Math.abs(L-(V-v*V))?"x":"y"):ja=null;ea=!ja||"y"===ja;ja&&"x"!==ja||(p=parseFloat(n/Z));ea&&(v=parseFloat((V-L)/V));la=!1;h.showAlpha||(t=1);ba()},R,U);Aa?(T(Aa),da(),sa=h.preferredFormat||tinycolor(Aa).format,y(Aa)):
  da();X&&pa();m=ua?"mousedown.spectrum":"click.spectrum touchstart.spectrum";Ra.on(m,".sp-thumb-el",g);Sa.on(m,".sp-thumb-el:nth-child(1)",{ignore:!0},g)})();var Ja={show:pa,hide:O,toggle:oa,reflow:S,option:function(g,m){if(g===w)return e.extend({},h);if(m===w)return h[g];h[g]=m;"preferredFormat"===g&&(sa=h.preferredFormat);z()},enable:function(){Ma=!1;J.attr("disabled",!1);za.removeClass("sp-disabled")},disable:Ha,offset:function(g){h.offset=g;S()},set:function(g){T(g);N()},get:M,destroy:function(){J.show();
  za.off("click.spectrum touchstart.spectrum");u.remove();ra.remove();qa[Ja.id]=null},container:u};Ja.id=qa.push(Ja)-1;return Ja}function va(l,r){var z=l.outerWidth(),D=l.outerHeight(),y=r.outerHeight(),H=l[0].ownerDocument,G=H.documentElement;l=G.clientWidth+e(H).scrollLeft();H=G.clientHeight+e(H).scrollTop();r=r.offset();G=r.left;var I=r.top;I+=y;G-=Math.min(G,G+z>l&&l>z?Math.abs(G+z-l):0);I-=Math.min(I,I+D>H&&H>D?Math.abs(D+y-0):0);return{top:I,bottom:r.bottom,left:G,right:r.right,width:r.width,
  height:r.height}}function fa(){}function ab(l){l.stopPropagation()}function wa(l,r){var z=Array.prototype.slice,D=z.call(arguments,2);return function(){return l.apply(r,D.concat(z.call(arguments)))}}function Ia(l,r,z,D){function y(F){F.stopPropagation&&F.stopPropagation();F.preventDefault&&F.preventDefault();F.returnValue=!1}function H(F){if(R){if(ua&&9>I.documentMode&&!F.button)return G();var O=F.originalEvent&&F.originalEvent.touches&&F.originalEvent.touches[0],T=Math.max(0,Math.min((O&&O.pageX||
  F.pageX)-U.left,oa));O=Math.max(0,Math.min((O&&O.pageY||F.pageY)-U.top,ka));pa&&y(F);r.apply(l,[T,O,F])}}function G(){R&&(e(I).off(W),e(I.body).removeClass("sp-dragging"),setTimeout(function(){D.apply(l,arguments)},0));R=!1}r=r||function(){};z=z||function(){};D=D||function(){};var I=document,R=!1,U={},ka=0,oa=0,pa="ontouchstart"in window,W={};W.selectstart=y;W.dragstart=y;W["touchmove mousemove"]=H;W["touchend mouseup"]=G;e(l).on("touchstart mousedown",function(F){(F.which?3==F.which:2==F.button)||
  R||!1===z.apply(l,arguments)||(R=!0,ka=e(l).height(),oa=e(l).width(),U=e(l).offset(),e(I).on(W),e(I.body).addClass("sp-dragging"),H(F),y(F))})}function Ya(l,r,z){var D;return function(){var y=this,H=arguments,G=function(){D=null;l.apply(y,H)};z&&clearTimeout(D);if(z||!D)D=setTimeout(G,r)}}var Qa={beforeShow:fa,move:fa,change:fa,show:fa,hide:fa,color:!1,flat:!1,showInput:!1,allowEmpty:!1,showButtons:!0,clickoutFiresChange:!0,showInitial:!1,showPalette:!1,showPaletteOnly:!1,hideAfterPaletteSelect:!1,
  togglePaletteOnly:!1,showSelectionPalette:!0,localStorageKey:!1,appendTo:"body",maxSelectionSize:7,cancelText:"cancel",chooseText:"choose",togglePaletteMoreText:"more",togglePaletteLessText:"less",clearText:"Clear Color Selection",noColorSelectedText:"No Color Selected",preferredFormat:!1,className:"",containerClassName:"",replacerClassName:"",showAlpha:!1,theme:"sp-light",palette:["#ffffff #000000 #ff0000 #ff8000 #ffff00 #008000 #0000ff #4b0082 #9400d3".split(" ")],selectionPalette:[],disabled:!1,
  offset:null},qa=[],ua=!!/msie/i.exec(window.navigator.userAgent),Pa=function(){var l=document.createElement("div").style;l.cssText="background-color:rgba(0,0,0,.5)";return!!~(""+l.backgroundColor).indexOf("rgba")||!!~(""+l.backgroundColor).indexOf("hsla")}(),Za=function(){var l="";if(ua)for(var r=1;6>=r;r++)l+="<div class='sp-"+r+"'></div>";return["<div class='sp-container sp-hidden'><div class='sp-palette-container'><div class='sp-palette sp-thumb sp-cf'></div><div class='sp-palette-button-container sp-cf'><button type='button' class='sp-palette-toggle'></button></div></div><div class='sp-picker-container'><div class='sp-top sp-cf'><div class='sp-fill'></div><div class='sp-top-inner'><div class='sp-color'><div class='sp-sat'><div class='sp-val'><div class='sp-dragger'></div></div></div></div><div class='sp-clear sp-clear-display'></div><div class='sp-hue'><div class='sp-slider'></div>",
  l,"</div></div><div class='sp-alpha'><div class='sp-alpha-inner'><div class='sp-alpha-handle'></div></div></div></div><div class='sp-input-container sp-cf'><input class='sp-input' type='text' spellcheck='false'  /></div><div class='sp-initial sp-thumb sp-cf'></div><div class='sp-button-container sp-cf'><a class='sp-cancel' href='#'></a><button type='button' class='sp-choose'></button></div></div></div>"].join("")}();e.fn.spectrum=function(l,r){if("string"==typeof l){var z=this,D=Array.prototype.slice.call(arguments,
  1);this.each(function(){var y=qa[e(this).data("spectrum.id")];if(y){var H=y[l];if(!H)throw Error("Spectrum: no such method: '"+l+"'");"get"==l?z=y.get():"container"==l?z=y.container:"option"==l?z=y.option.apply(y,D):"destroy"==l?(y.destroy(),e(this).removeData("spectrum.id")):H.apply(y,D)}});return z}return this.spectrum("destroy").each(function(){var y=e.extend({},e(this).data(),l);y=C(this,y);e(this).data("spectrum.id",y.id)})};e.fn.spectrum.load=!0;e.fn.spectrum.loadOpts={};e.fn.spectrum.draggable=
  Ia;e.fn.spectrum.defaults=Qa;e.fn.spectrum.inputTypeColorSupport=function r(){if("undefined"===typeof r._cachedResult){var z=e("<input type='color'/>")[0];r._cachedResult="color"===z.type&&""!==z.value}return r._cachedResult};e.spectrum={};e.spectrum.localization={};e.spectrum.palettes={};e.fn.spectrum.processNativeColorInputs=function(){var r=e("input[type=color]");r.length&&!e.fn.spectrum.inputTypeColorSupport()&&r.spectrum({preferredFormat:"hex6"})};(function(){function r(a,b,c){a=B(a,255);b=B(b,
  255);c=B(c,255);var d=Q(a,b,c),f=K(a,b,c),p=(d+f)/2;if(d==f)var v=f=0;else{var t=d-f;f=.5<p?t/(2-d-f):t/(d+f);switch(d){case a:v=(b-c)/t+(b<c?6:0);break;case b:v=(c-a)/t+2;break;case c:v=(a-b)/t+4}v/=6}return{h:v,s:f,l:p}}function z(a,b,c){function d(v,t,A){0>A&&(A+=1);1<A&&--A;return A<1/6?v+6*(t-v)*A:.5>A?t:A<2/3?v+(t-v)*(2/3-A)*6:v}a=B(a,360);b=B(b,100);c=B(c,100);if(0===b)c=b=a=c;else{var f=.5>c?c*(1+b):c+b-c*b,p=2*c-f;c=d(p,f,a+1/3);b=d(p,f,a);a=d(p,f,a-1/3)}return{r:255*c,g:255*b,b:255*a}}function D(a,
  b,c){a=B(a,255);b=B(b,255);c=B(c,255);var d=Q(a,b,c),f=K(a,b,c),p=d-f;if(d==f)var v=0;else{switch(d){case a:v=(b-c)/p+(b<c?6:0);break;case b:v=(c-a)/p+2;break;case c:v=(a-b)/p+4}v/=6}return{h:v,s:0===d?0:p/d,v:d}}function y(a,b,c,d){a=[N(q(a).toString(16)),N(q(b).toString(16)),N(q(c).toString(16))];return d&&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 H(a,b,c,d){return[N(Math.round(255*
  parseFloat(d)).toString(16)),N(q(a).toString(16)),N(q(b).toString(16)),N(q(c).toString(16))].join("")}function G(a,b){b=0===b?0:b||10;a=k(a).toHsl();a.s-=b/100;a.s=K(1,Q(0,a.s));return k(a)}function I(a,b){b=0===b?0:b||10;a=k(a).toHsl();a.s+=b/100;a.s=K(1,Q(0,a.s));return k(a)}function R(a){return k(a).desaturate(100)}function U(a,b){b=0===b?0:b||10;a=k(a).toHsl();a.l+=b/100;a.l=K(1,Q(0,a.l));return k(a)}function ka(a,b){b=0===b?0:b||10;a=k(a).toRgb();a.r=Q(0,K(255,a.r-q(255*-(b/100))));a.g=Q(0,K(255,
  a.g-q(255*-(b/100))));a.b=Q(0,K(255,a.b-q(255*-(b/100))));return k(a)}function oa(a,b){b=0===b?0:b||10;a=k(a).toHsl();a.l-=b/100;a.l=K(1,Q(0,a.l));return k(a)}function pa(a,b){a=k(a).toHsl();b=(q(a.h)+b)%360;a.h=0>b?360+b:b;return k(a)}function W(a){a=k(a).toHsl();a.h=(a.h+180)%360;return k(a)}function F(a){var b=k(a).toHsl(),c=b.h;return[k(a),k({h:(c+120)%360,s:b.s,l:b.l}),k({h:(c+240)%360,s:b.s,l:b.l})]}function O(a){var b=k(a).toHsl(),c=b.h;return[k(a),k({h:(c+90)%360,s:b.s,l:b.l}),k({h:(c+180)%
  360,s:b.s,l:b.l}),k({h:(c+270)%360,s:b.s,l:b.l})]}function T(a){var b=k(a).toHsl(),c=b.h;return[k(a),k({h:(c+72)%360,s:b.s,l:b.l}),k({h:(c+216)%360,s:b.s,l:b.l})]}function M(a,b,c){b=b||6;c=c||30;var d=k(a).toHsl();c=360/c;a=[k(a)];for(d.h=(d.h-(c*b>>1)+720)%360;--b;)d.h=(d.h+c)%360,a.push(k(d));return a}function ba(a,b){b=b||6;var c=k(a).toHsv();a=c.h;var d=c.s;c=c.v;for(var f=[],p=1/b;b--;)f.push(k({h:a,s:d,v:c})),c=(c+p)%1;return f}function da(a){a=parseFloat(a);if(isNaN(a)||0>a||1<a)a=1;return a}
  function B(a,b){var c=a;"string"==typeof c&&-1!=c.indexOf(".")&&1===parseFloat(c)&&(a="100%");c="string"===typeof a&&-1!=a.indexOf("%");a=K(b,Q(0,parseFloat(a)));c&&(a=parseInt(a*b,10)/100);return 1E-6>ia.abs(a-b)?1:a%b/parseFloat(b)}function N(a){return 1==a.length?"0"+a:""+a}function S(a){1>=a&&(a=100*a+"%");return a}var Ha=/^[\s,#]+/,h=/\s+$/,X=0,ia=Math,q=ia.round,K=ia.min,Q=ia.max,ca=ia.random,k=function(a,b){var c,d;a=a?a:"";b=b||{};if(a instanceof k)return a;if(!(this instanceof k))return new k(a,
  b);var f=a;var p={r:0,g:0,b:0};var v=1;var t=c=!1;if("string"==typeof f)a:{f=f.replace(Ha,"").replace(h,"").toLowerCase();var A=!1;if(Z[f])f=Z[f],A=!0;else if("transparent"==f){f={r:0,g:0,b:0,a:0,format:"name"};break a}f=(d=P.rgb.exec(f))?{r:d[1],g:d[2],b:d[3]}:(d=P.rgba.exec(f))?{r:d[1],g:d[2],b:d[3],a:d[4]}:(d=P.hsl.exec(f))?{h:d[1],s:d[2],l:d[3]}:(d=P.hsla.exec(f))?{h:d[1],s:d[2],l:d[3],a:d[4]}:(d=P.hsv.exec(f))?{h:d[1],s:d[2],v:d[3]}:(d=P.hsva.exec(f))?{h:d[1],s:d[2],v:d[3],a:d[4]}:(d=P.hex8.exec(f))?
  {a:parseInt(d[1],16)/255,r:parseInt(d[2],16),g:parseInt(d[3],16),b:parseInt(d[4],16),format:A?"name":"hex8"}:(d=P.hex6.exec(f))?{r:parseInt(d[1],16),g:parseInt(d[2],16),b:parseInt(d[3],16),format:A?"name":"hex"}:(d=P.hex3.exec(f))?{r:parseInt(d[1]+""+d[1],16),g:parseInt(d[2]+""+d[2],16),b:parseInt(d[3]+""+d[3],16),format:A?"name":"hex"}:!1}if("object"==typeof f){if(f.hasOwnProperty("r")&&f.hasOwnProperty("g")&&f.hasOwnProperty("b"))p=f.g,c=f.b,p={r:255*B(f.r,255),g:255*B(p,255),b:255*B(c,255)},c=
  !0,t="%"===String(f.r).substr(-1)?"prgb":"rgb";else if(f.hasOwnProperty("h")&&f.hasOwnProperty("s")&&f.hasOwnProperty("v")){f.s=S(f.s);f.v=S(f.v);t=f.h;A=f.s;p=f.v;t=6*B(t,360);A=B(A,100);p=B(p,100);c=ia.floor(t);var ha=t-c;t=p*(1-A);d=p*(1-ha*A);A=p*(1-(1-ha)*A);c%=6;p={r:255*[p,d,t,t,A,p][c],g:255*[A,p,p,d,t,t][c],b:255*[t,t,A,p,p,d][c]};c=!0;t="hsv"}else f.hasOwnProperty("h")&&f.hasOwnProperty("s")&&f.hasOwnProperty("l")&&(f.s=S(f.s),f.l=S(f.l),p=z(f.h,f.s,f.l),c=!0,t="hsl");f.hasOwnProperty("a")&&
  (v=f.a)}v=da(v);f=f.format||t;t=K(255,Q(p.r,0));d=K(255,Q(p.g,0));p=K(255,Q(p.b,0));this._originalInput=a;this._r=t;this._g=d;this._b=p;this._a=v;this._roundA=q(1E3*this._a)/1E3;this._format=b.format||f;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=c;this._tc_id=X++};k.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},setAlpha:function(a){this._a=da(a);this._roundA=q(1E3*this._a)/1E3;return this},toHsv:function(){var a=D(this._r,this._g,this._b);return{h:360*a.h,s:a.s,v:a.v,a:this._a}},toHsvString:function(){var a=D(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=r(this._r,this._g,this._b);return{h:360*a.h,s:a.s,l:a.l,a:this._a}},toHslString:function(){var a=r(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 y(this._r,this._g,this._b,a)},toHexString:function(a){return"#"+this.toHex(a)},toHex8:function(){return H(this._r,this._g,this._b,
  this._a)},toHex8String:function(){return"#"+this.toHex8()},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*B(this._r,255))+"%",g:q(100*B(this._g,255))+"%",b:q(100*B(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+q(100*B(this._r,
  255))+"%, "+q(100*B(this._g,255))+"%, "+q(100*B(this._b,255))+"%)":"rgba("+q(100*B(this._r,255))+"%, "+q(100*B(this._g,255))+"%, "+q(100*B(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":1>this._a?!1:V[y(this._r,this._g,this._b,!0)]||!1},toFilter:function(a){var b="#"+H(this._r,this._g,this._b,this._a),c=b,d=this._gradientType?"GradientType = 1, ":"";a&&(c=k(a).toHex8String());return"progid:DXImageTransform.Microsoft.gradient("+d+"startColorstr="+b+",endColorstr="+
  c+")"},toString:function(a){var b=!!a;a=a||this._format;var c=!1,d=1>this._a&&0<=this._a;if(!b&&d&&("hex"===a||"hex6"===a||"hex3"===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));"hex8"===a&&(c=this.toHex8String());"name"===a&&(c=this.toName());"hsl"===a&&(c=this.toHslString());"hsv"===a&&(c=this.toHsvString());
  return c||this.toHexString()},_applyModification:function(a,b){a=a.apply(null,[this].concat([].slice.call(b)));this._r=a._r;this._g=a._g;this._b=a._b;this.setAlpha(a._a);return this},lighten:function(){return this._applyModification(U,arguments)},brighten:function(){return this._applyModification(ka,arguments)},darken:function(){return this._applyModification(oa,arguments)},desaturate:function(){return this._applyModification(G,arguments)},saturate:function(){return this._applyModification(I,arguments)},
  greyscale:function(){return this._applyModification(R,arguments)},spin:function(){return this._applyModification(pa,arguments)},_applyCombination:function(a,b){return a.apply(null,[this].concat([].slice.call(b)))},analogous:function(){return this._applyCombination(M,arguments)},complement:function(){return this._applyCombination(W,arguments)},monochromatic:function(){return this._applyCombination(ba,arguments)},splitcomplement:function(){return this._applyCombination(T,arguments)},triad:function(){return this._applyCombination(F,
  arguments)},tetrad:function(){return this._applyCombination(O,arguments)}};k.fromRatio=function(a,b){if("object"==typeof a){var c={},d;for(d in a)a.hasOwnProperty(d)&&(c[d]="a"===d?a[d]:S(a[d]));a=c}return k(a,b)};k.equals=function(a,b){return a&&b?k(a).toRgbString()==k(b).toRgbString():!1};k.random=function(){return k.fromRatio({r:ca(),g:ca(),b:ca()})};k.mix=function(a,b,c){c=0===c?0:c||50;a=k(a).toRgb();b=k(b).toRgb();c/=100;var d=2*c-1,f=b.a-a.a;d=((-1==d*f?d:(d+f)/(1+d*f))+1)/2;f=1-d;return k({r:b.r*
  d+a.r*f,g:b.g*d+a.g*f,b:b.b*d+a.b*f,a:b.a*c+a.a*(1-c)})};k.readability=function(a,b){var c=k(a),d=k(b);b=c.toRgb();a=d.toRgb();c=c.getBrightness();d=d.getBrightness();return{brightness:Math.abs(c-d),color:Math.max(b.r,a.r)-Math.min(b.r,a.r)+Math.max(b.g,a.g)-Math.min(b.g,a.g)+Math.max(b.b,a.b)-Math.min(b.b,a.b)}};k.isReadable=function(a,b){a=k.readability(a,b);return 125<a.brightness&&500<a.color};k.mostReadable=function(a,b){for(var c=null,d=0,f=!1,p=0;p<b.length;p++){var v=k.readability(a,b[p]),
  t=125<v.brightness&&500<v.color;v=v.brightness/125*3+v.color/500;if(t&&!f||t&&f&&v>d||!t&&!f&&v>d)f=t,d=v,c=k(b[p])}return c};var Z=k.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"},V=k.hexNames=function(a){var b={},c;for(c in a)a.hasOwnProperty(c)&&(b[a[c]]=c);return b}(Z),P={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})$/,hex8:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};
  window.tinycolor=k})();e(function(){e.fn.spectrum.load&&e.fn.spectrum.processNativeColorInputs()})});
  