var VM=VM||{};VM.Category={$catList:null,init:function(){VM.$body.find(".toggle").removeClass("hidden").click(this.onToggle);var n=$("#advs-form");n.length&&(n.hasClass("nocollapse")?$("[aria-controls='advs-form']").find(".caret").addClass("opened"):n.addClass("hidden"))},onToggle:function(n){var t,i,r;n.preventDefault();t=$(this);t.hasClass("caret")&&(t=t.closest(".toggle"));window.setTimeout(function(){t.addClass("ga-off")},100);i=$("#"+t.attr("aria-controls"));$(".toggle .opened").length>0&&(t.addClass("clicked"),$(".toggle .caret.opened").each(function(){var n=$(this).closest(".toggle"),t,i;n.hasClass("clicked")||(t=$(this),i=$("#"+n.attr("aria-controls")),t.removeClass("opened"),n.attr("aria-expanded","false"),i.addClass("hidden").removeClass("hidden-mobile"))}),t.removeClass("clicked"));i.length&&(r=t.find(".caret"),i.css("display")==="none"?(i.removeClass("hidden").removeClass("hidden-mobile"),r.addClass("opened"),t.attr("aria-expanded","true")):(i.addClass("hidden").removeClass("hidden-mobile"),r.removeClass("opened"),t.attr("aria-expanded","false")),i.hasClass("nowoc")||i.toggleClass("woc"))}};$(function(){VM.Category.init();window.onclick=function(n){var t=$(n.target);t.hasClass("toggle")||t.parent().hasClass("toggle")||$(".woc").addClass("hidden").removeClass("woc").each(function(){$("[aria-controls='"+this.id+"']").find(".caret").removeClass("opened")})}})