!function(a){jQuery.fn.multiselect.Constructor.prototype.selectAll=(function(){var b=jQuery.fn.multiselect.Constructor.prototype.selectAll;return function(){var c=Array.prototype.slice.call(arguments);c[0]=(this.options.enableCollapsibleOptGroups&&this.options.multiple)?false:c[0];b.apply(this,c)}}());jQuery.fn.multiselect.Constructor.prototype.deselectAll=(function(){var b=jQuery.fn.multiselect.Constructor.prototype.deselectAll;return function(){var c=Array.prototype.slice.call(arguments);c[0]=(this.options.enableCollapsibleOptGroups&&this.options.multiple)?false:c[0];b.apply(this,c)}}());jQuery.fn.multiselect.Constructor.prototype.createOptgroup=(function(){var b=jQuery.fn.multiselect.Constructor.prototype.createOptgroup;return function(){var d=Array.prototype.slice.call(arguments);var e=d[0];if(this.options.enableCollapsibleOptGroups&&this.options.multiple){var g=a(e).attr("label");var c=a(e).attr("value");var f=a('<li class="multiselect-item multiselect-group"><a href="javascript:void(0);"><input type="checkbox" value="'+c+'"/><b> '+g+'<b class="caret"></b></b></a></li>');if(this.options.enableClickableOptGroups){f.addClass("multiselect-group-clickable")}this.$ul.append(f);if(a(e).is(":disabled")){f.addClass("disabled")}a("option",e).each(a.proxy(function(i,h){this.createOptionValue(h)},this))}else{b.apply(this,arguments)}}}());jQuery.fn.multiselect.Constructor.prototype.buildDropdownOptions=(function(){var b=jQuery.fn.multiselect.Constructor.prototype.buildDropdownOptions;return function(){b.apply(this,arguments);if(this.options.enableCollapsibleOptGroups&&this.options.multiple){a("li.multiselect-group input",this.$ul).off();a("li.multiselect-group",this.$ul).siblings().not("li.multiselect-group, li.multiselect-all",this.$ul).each(function(){$(this).toggleClass("hidden",true)});a("li.multiselect-group",this.$ul).on("click",a.proxy(function(c){c.stopPropagation()},this));a("li.multiselect-group > a > b",this.$ul).on("click",a.proxy(function(d){d.stopPropagation();var f=a(d.target).closest("li");var e=f.nextUntil("li.multiselect-group");var c=true;e.each(function(){c=c&&a(this).hasClass("hidden")});e.toggleClass("hidden",!c)},this));a("li.multiselect-group > a > input",this.$ul).on("change",a.proxy(function(d){d.stopPropagation();var g=a(d.target).closest("li");var f=g.nextUntil("li.multiselect-group");var c=true;var e=f.find("input");e.each(function(){c=c&&a(this).prop("checked")});e.prop("checked",!c).trigger("change")},this));a("li.multiselect-all",this.$ul).css("background","#f3f3f3").css("border-bottom","1px solid #eaeaea");a("li.multiselect-group > a, li.multiselect-all > a > label.checkbox",this.$ul).css("padding","3px 20px 3px 35px");a("li.multiselect-group > a > input",this.$ul).css("margin","4px 0px 5px -20px")}}}())}(window.jQuery);