1(function(){'use strict';var UTM_PARAMS=['utm_source','utm_medium','utm_campaign','utm_content','utm_term'];var STORAGE_KEY='gfghlpro_utm_params';var FIELD_PREFIX='gfghlpro_';var EXPIRY_TIME_MS=5*60*1000;function getStoredUTM(){try{var stored=JSON.parse(localStorage.getItem(STORAGE_KEY));if(!stored)return{};if(stored._timestamp){var now=new Date().getTime();if(now-stored._timestamp>EXPIRY_TIME_MS){localStorage.removeItem(STORAGE_KEY);return{}}} 2return stored}catch(e){return{}}} 3function captureUTMFromURL(){if(!window.URLSearchParams){return} 4var urlParams=new URLSearchParams(window.location.search);var stored=getStoredUTM();var hasNew=!1;var hasData=!1;UTM_PARAMS.forEach(function(param){var val=urlParams.get(param);if(val&&val.length>0){stored[param]=val.trim();hasNew=!0} 5if(stored[param]){hasData=!0}});if(hasNew||hasData){stored._timestamp=new Date().getTime();try{localStorage.setItem(STORAGE_KEY,JSON.stringify(stored))}catch(e){}}} 6function injectIntoForm(form){var utmData=getStoredUTM();UTM_PARAMS.forEach(function(param){var fieldName=FIELD_PREFIX+param;var existing=form.querySelector('input[name="'+fieldName+'"]');if(!existing){var input=document.createElement('input');input.type='hidden';input.name=fieldName;input.id=fieldName+'_'+(form.id||'');input.value=utmData[param]||'';form.appendChild(input)}else{existing.value=utmData[param]||''}})} 7function injectUTMIntoAllForms(){var forms=document.querySelectorAll('form[id^="gform_"]');forms.forEach(function(form){injectIntoForm(form)})} 8captureUTMFromURL();if(document.readyState==='loading'){document.addEventListener('DOMContentLoaded',injectUTMIntoAllForms)}else{injectUTMIntoAllForms()} 9document.addEventListener('gform_post_render',injectUTMIntoAllForms);document.addEventListener('gform_pre_submit',function(e){if(e.target&&e.target.id&&e.target.id.indexOf('gform_')===0){injectIntoForm(e.target)}})})()
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.