!function(e,i,t){function l(i,t){this.element=e(i),this.settings=e.extend({},o,t),this._defaults=o,this._name=n,this.init()}var n="metisMenu",o={toggle:!0,doubleTapToGo:!1};l.prototype={init:function(){var i=this.element,l=this.settings.toggle,o=this;this.isIE()<=9?(i.find("li.active").has("ul").children("ul").collapse("show"),i.find("li").not(".active").has("ul").children("ul").collapse("hide")):(i.find("li.active").has("ul").children("ul").addClass("collapse in"),i.find("li").not(".active").has("ul").children("ul").addClass("collapse")),o.settings.doubleTapToGo&&i.find("li.active").has("ul").children("a").addClass("doubleTapToGo"),i.find("li").has("ul").children("a").on("click."+n,(function(i){return i.preventDefault(),o.settings.doubleTapToGo&&o.doubleTapToGo(e(this))&&"#"!==e(this).attr("href")&&""!==e(this).attr("href")?(i.stopPropagation(),void(t.location=e(this).attr("href"))):(e(this).parent("li").toggleClass("active").children("ul").collapse("toggle"),void(l&&e(this).parent("li").siblings().removeClass("active").children("ul.in").collapse("hide")))}))},isIE:function(){for(var e=3,i=t.createElement("div"),l=i.getElementsByTagName("i");i.innerHTML="\x3c!--[if gt IE "+ ++e+"]><i></i><![endif]--\x3e",l[0];)return e>4?e:void 0},doubleTapToGo:function(e){var i=this.element;return e.hasClass("doubleTapToGo")?(e.removeClass("doubleTapToGo"),!0):e.parent().children("ul").length?(i.find(".doubleTapToGo").removeClass("doubleTapToGo"),e.addClass("doubleTapToGo"),!1):void 0},remove:function(){this.element.off("."+n),this.element.removeData(n)}},e.fn[n]=function(i){return this.each((function(){var t=e(this);t.data(n)&&t.data(n).remove(),t.data(n,new l(this,i))})),this}}(jQuery,window,document),$((function(){$("#side-menu").metisMenu()}));
//# sourceMappingURL=58df3db6acccdf1ff0d54de9d47b4f78.js.map
