!function(t){t.fn.matchHeight=function(h){if("remove"===h){var i=this;return this.css("height",""),t.each(t.fn.matchHeight._groups,function(t,h){h.elements=h.elements.not(i)}),this}return 1>=this.length?this:(h="undefined"!=typeof h?h:!0,t.fn.matchHeight._groups.push({elements:this,byRow:h}),t.fn.matchHeight._apply(this,h),this)},t.fn.matchHeight._apply=function(h,i){var a=t(h),o=[a];return i&&(a.css({display:"block","padding-top":"0","padding-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px"}),o=e(a),a.css({display:"","padding-top":"","padding-bottom":"","border-top-width":"","border-bottom-width":"",height:""})),t.each(o,function(h,i){var e=t(i),a=0;e.each(function(){var h=t(this);h.css({display:"block",height:""}),h.outerHeight(!1)>a&&(a=h.outerHeight(!1)),h.css({display:""})}),e.each(function(){var h=t(this),i=0;"border-box"!==h.css("box-sizing")&&(i+=n(h.css("border-top-width"))+n(h.css("border-bottom-width")),i+=n(h.css("padding-top"))+n(h.css("padding-bottom"))),h.css("height",a-i)})}),this},t.fn.matchHeight._applyDataApi=function(){var h={};t("[data-match-height], [data-mh]").each(function(){var i=t(this),e=i.attr("data-match-height");h[e]=e in h?h[e].add(i):i}),t.each(h,function(){this.matchHeight(!0)})},t.fn.matchHeight._groups=[],t.fn.matchHeight._throttle=80;var h=-1,i=-1;t.fn.matchHeight._update=function(e){if(e&&"resize"===e.type){if(e=t(window).width(),e===h)return;h=e}-1===i&&(i=setTimeout(function(){t.each(t.fn.matchHeight._groups,function(){t.fn.matchHeight._apply(this.elements,this.byRow)}),i=-1},t.fn.matchHeight._throttle))},t(t.fn.matchHeight._applyDataApi),t(window).bind("load resize orientationchange",t.fn.matchHeight._update);var e=function(h){var i=null,e=[];return t(h).each(function(){var h=t(this),a=h.offset().top-n(h.css("margin-top")),o=0=Math.floor(Math.abs(i-a))?e[e.length-1]=o.add(h):e.push(h),i=a}),e},n=function(t){return parseFloat(t)||0}}(jQuery);