!function(){var e={7678:function(e){e.exports=function(e){var t,n,o,r,i,c,u,d,s=window.pageXOffset||document.documentElement.scrollLeft,l=(t=e,n=document.body,o=document.documentElement,r=t.getBoundingClientRect(),i=o.clientHeight,c=Math.max(n.scrollHeight,n.offsetHeight,o.clientHeight,o.scrollHeight,o.offsetHeight),u=r.bottom-i/2-r.height/2,d=c-i,Math.min(u+window.pageYOffset,d));window.scrollTo(s,l)}}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,n),i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e,t,o,r,i,c,u=n(7678),d=n.n(u),s=window.mc4wp_submitted_form,l=window.mc4wp.forms;if(s){var a=document.getElementById(s.element_id);e=l.getByElement(a),t=s.event,o=s.errors,r=s.data,i=Date.now(),c=document.body.clientHeight,o&&e.setData(r),window.scrollY<=10&&s.auto_scroll&&d()(e.element),window.addEventListener("load",(function(){l.trigger("submitted",[e]),o?l.trigger("error",[e,o]):(l.trigger("success",[e,r]),l.trigger(t,[e,r]),"updated_subscriber"===t&&l.trigger("subscribed",[e,r,!0]));var n=Date.now()-i;s.auto_scroll&&n>1e3&&n<2e3&&document.body.clientHeight!==c&&d()(e.element)}))}}()}();