!function(t){var e="autoHeight";t.mmenu.addons[e]={setup:function(){if(this.opts.offCanvas){switch(this.opts.offCanvas.position){case"left":case"right":return}var i=this,h=this.opts[e];this.conf[e];if(a=t.mmenu.glbl,"boolean"==typeof h&&h&&(h={height:"auto"}),"object"!=typeof h&&(h={}),h=this.opts[e]=t.extend(!0,{},t.mmenu.defaults[e],h),"auto"==h.height){this.$menu.addClass(s.autoheight);var o=function(t){var e=parseInt(this.$pnls.css("top"),10)||0;_bot=parseInt(this.$pnls.css("bottom"),10)||0,this.$menu.addClass(s.measureheight),t=t||this.$pnls.children("."+s.current),t.is("."+s.vertical)&&(t=t.parents("."+s.panel).not("."+s.vertical).first()),this.$menu.height(t.outerHeight()+e+_bot).removeClass(s.measureheight)};this.bind("update",o),this.bind("openPanel",o),this.bind("closePanel",o),this.bind("open",o),a.$wndw.off(n.resize+"-autoheight").on(n.resize+"-autoheight",function(t){o.call(i)})}}},add:function(){s=t.mmenu._c,i=t.mmenu._d,n=t.mmenu._e,s.add("autoheight measureheight"),n.add("resize")},clickAnchor:function(t,e){}},t.mmenu.defaults[e]={height:"default"};var s,i,n,a}(jQuery);