"use strict";!function(t){t.fn.famultibutton=function(e){function w(){i=!0,o.bg.css("color",C.onBackgroundColor),o.fg.css("color",C.onColor),n.addClass("active"),o.trigger("setOn")}function I(){i=!1,o.bg.css("color",C.offBackgroundColor),o.fg.css("color",C.offColor),n.removeClass("active"),o.trigger("setOff")}function T(t){o.fg.css("color",t)}function k(t){o.bg.css("color",t)}function x(t){o.fg.removeClass(o.fi),o.fi=t,o.fg.addClass(o.fi)}function O(t){o.bg.removeClass(o.bi),o.bi=t,o.bg.addClass(o.bi)}function P(){t("
").animate({width:100},{duration:700,easing:"swing",step:function(t,e){var n=(t-e.start)/(e.end-e.start);o.bg.css("color",S(C.onBackgroundColor,C.offBackgroundColor,n)),o.fg.css("color",S(C.onColor,C.offColor,n))},complete:function(){i===!0&&w()}})}function y(t){var e=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);return e&&4===e.length?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):t}function S(t,e,o){t=y(t).replace(/^\s*#|\s*$/g,""),e=y(e).replace(/^\s*#|\s*$/g,""),3==t.length&&(t=t.replace(/(.)/g,"$1$1")),3==e.length&&(e=e.replace(/(.)/g,"$1$1"));var n=parseInt(t.substr(0,2),16),i=parseInt(t.substr(2,2),16),a=parseInt(t.substr(4,2),16),r=parseInt(e.substr(0,2),16),s=parseInt(e.substr(2,2),16),f=parseInt(e.substr(4,2),16),l=r-n,u=s-i,c=f-a;return l=(l*o+n).toString(16).split(".")[0],u=(u*o+i).toString(16).split(".")[0],c=(c*o+a).toString(16).split(".")[0],1==l.length&&(l="0"+l),1==u.length&&(u="0"+u),1==c.length&&(c="0"+c),"#"+l+u+c}function B(e){var i=o.find("canvas#progress");if(e>0){0===i.length&&(i=t("