!function(){"use strict";var t={8292:function(t,e,n){n.d(e,{a:function(){return a}});var a=function(){function t(){this.containerIds=new Set,window.dataLayer=window.dataLayer||[],this.dataLayer=window.dataLayer}return t.getInstance=function(){return t.instance||(t.instance=new t),t.instance},t.prototype.loadContainer=function(t){this.containerIds.has(t)||(0===this.containerIds.size&&this.loadScript(t),this.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js","gtm.container":t}),this.containerIds.add(t))},t.prototype.loadScript=function(t){var e=document.createElement("script");e.async=!0,e.src="https://www.googletagmanager.com/gtm.js?id=".concat(t);var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(e,n)},t.prototype.observeNewForms=function(){var t=this;new MutationObserver((function(e){e.forEach((function(e){e.addedNodes.forEach((function(e){if(e instanceof HTMLFormElement){var n=e.dataset.gtmId;n&&t.loadContainer(n)}}))}))})).observe(document.body,{childList:!0,subtree:!0})},t}()}},e={};function n(a){var o=e[a];if(void 0!==o)return o.exports;var r=e[a]={exports:{}};return t[a](r,r.exports,n),r.exports}n.d=function(t,e){for(var a in e)n.o(e,a)&&!n.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:e[a]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var a,o=n(8292);a=o.a.getInstance(),document.querySelectorAll("form[data-gtm-id]").forEach((function(t){var e=t.dataset.gtmId;e&&a.loadContainer(e)})),document.addEventListener("freeform-ajax-success",(function(t){var e=t.form;if(e.dataset.gtmEvent){var n=e.dataset.gtmEvent,a=t.response,o=e.freeform._dispatchEvent("freeform-gtm-data-layer-push",{payload:{},response:a}),r=a.finished,s=a.multipage,i=a.success,c=a.submissionId,d=a.submissionToken,u={event:n,form:{handle:e.dataset.handle,finished:r,multipage:s,success:i},submission:{id:c,token:d}};u=Object.assign(u,o.payload),window.dataLayer.push(u)}})),a.observeNewForms()}();