!function(t){var e=-1,a=-1,i=function(t){return parseFloat(t)||0},o=function(e){var a=null,o=[];return t(e).each(function(){var e=t(this),n=e.offset().top-i(e.css("margin-top")),r=0=Math.floor(Math.abs(a-n))?o[o.length-1]=r.add(e):o.push(e),a=n}),o},n=function(e){var a={byRow:!0,property:"height",target:null,remove:!1};return"object"==typeof e?t.extend(a,e):("boolean"==typeof e?a.byRow=e:"remove"===e&&(a.remove=!0),a)},r=t.fn.matchHeight=function(e){if(e=n(e),e.remove){var a=this;return this.css(e.property,""),t.each(r._groups,function(t,e){e.elements=e.elements.not(a)}),this}return 1>=this.length&&!e.target?this:(r._groups.push({elements:this,options:e}),r._apply(this,e),this)};r._groups=[],r._throttle=80,r._maintainScroll=!1,r._beforeUpdate=null,r._afterUpdate=null,r._apply=function(e,a){var s=n(a),h=t(e),c=[h],l=t(window).scrollTop(),p=t("html").outerHeight(!0),u=h.parents().filter(":hidden");return u.each(function(){var e=t(this);e.data("style-cache",e.attr("style"))}),u.css("display","block"),s.byRow&&!s.target&&(h.each(function(){var e=t(this),a=e.css("display");"inline-block"!==a&&"inline-flex"!==a&&(a="block"),e.data("style-cache",e.attr("style")),e.css({display:a,"padding-top":"0","padding-bottom":"0","margin-top":"0","margin-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px"})}),c=o(h),h.each(function(){var e=t(this);e.attr("style",e.data("style-cache")||"")})),t.each(c,function(e,a){var o=t(a),n=0;if(s.target)n=s.target.outerHeight(!1);else{if(s.byRow&&1>=o.length)return void o.css(s.property,"");o.each(function(){var e=t(this),a=e.css("display");"inline-block"!==a&&"inline-flex"!==a&&(a="block"),a={display:a},a[s.property]="",e.css(a),e.outerHeight(!1)>n&&(n=e.outerHeight(!1)),e.css("display","")})}o.each(function(){var e=t(this),a=0;s.target&&e.is(s.target)||("border-box"!==e.css("box-sizing")&&(a+=i(e.css("border-top-width"))+i(e.css("border-bottom-width")),a+=i(e.css("padding-top"))+i(e.css("padding-bottom"))),e.css(s.property,n-a+"px"))})}),u.each(function(){var e=t(this);e.attr("style",e.data("style-cache")||null)}),r._maintainScroll&&t(window).scrollTop(l/p*t("html").outerHeight(!0)),this},r._applyDataApi=function(){var e={};t("[data-match-height], [data-mh]").each(function(){var a=t(this),i=a.attr("data-mh")||a.attr("data-match-height");e[i]=i in e?e[i].add(a):a}),t.each(e,function(){this.matchHeight(!0)})};var s=function(e){r._beforeUpdate&&r._beforeUpdate(e,r._groups),t.each(r._groups,function(){r._apply(this.elements,this.options)}),r._afterUpdate&&r._afterUpdate(e,r._groups)};r._update=function(i,o){if(o&&"resize"===o.type){var n=t(window).width();if(n===e)return;e=n}i?-1===a&&(a=setTimeout(function(){s(o),a=-1},r._throttle)):s(o)},t(r._applyDataApi),t(window).bind("load",function(t){r._update(!1,t)}),t(window).bind("resize orientationchange",function(t){r._update(!0,t)})}(jQuery);