1 2/* info: https://www.whistlingwoods.net/wp-content/plugins/add-to-any/addtoany.min.js */ 3"function"==typeof jQuery&&jQuery(document).ready(function(a){a("body").on("post-load",function(){window.a2a&&a2a.init_all()})}); 4 5 6 7/* info: https://www.whistlingwoods.net/wp-content/plugins/handl-utm-grabber/js/js.cookie.js */ 8/*! js-cookie v3.0.5 | MIT */ 9;(function(global,factory){typeof exports==='object'&&typeof module!=='undefined'?module.exports=factory():typeof define==='function'&&define.amd?define(factory):(global=typeof globalThis!=='undefined'?globalThis:global||self,(function(){var current=global.Cookies;var exports=global.Cookies=factory();exports.noConflict=function(){global.Cookies=current;return exports}})())})(this,(function(){'use strict';function assign(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){target[key]=source[key]}} 10return target} 11var defaultConverter={read:function(value){if(value[0]==='"'){value=value.slice(1,-1)} 12return value.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(value){return encodeURIComponent(value).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function init(converter,defaultAttributes){function set(name,value,attributes){if(typeof document==='undefined'){return} 13attributes=assign({},defaultAttributes,attributes);if(typeof attributes.expires==='number'){attributes.expires=new Date(Date.now()+attributes.expires*864e5)} 14if(attributes.expires){attributes.expires=attributes.expires.toUTCString()} 15name=encodeURIComponent(name).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var stringifiedAttributes='';for(var attributeName in attributes){if(!attributes[attributeName]){continue} 16stringifiedAttributes+='; '+attributeName;if(attributes[attributeName]===!0){continue} 17stringifiedAttributes+='='+attributes[attributeName].split(';')[0]} 18return(document.cookie=name+'='+converter.write(value,name)+stringifiedAttributes)} 19function get(name){if(typeof document==='undefined'||(arguments.length&&!name)){return} 20var cookies=document.cookie?document.cookie.split('; '):[];var jar={};for(var i=0;i<cookies.length;i++){var parts=cookies[i].split('=');var value=parts.slice(1).join('=');try{var found=decodeURIComponent(parts[0]);jar[found]=converter.read(value,found);if(name===found){break}}catch(e){}} 21return name?jar[name]:jar} 22return Object.create({set,get,remove:function(name,attributes){set(name,'',assign({},attributes,{expires:-1}))},withAttributes:function(attributes){return init(this.converter,assign({},this.attributes,attributes))},withConverter:function(converter){return init(assign({},this.converter,converter),this.attributes)}},{attributes:{value:Object.freeze(defaultAttributes)},converter:{value:Object.freeze(converter)}})} 23var api=init(defaultConverter,{path:'/'});return api})); 24 25 26 27/* info: https://www.whistlingwoods.net/wp-content/plugins/handl-utm-grabber/js/handl-utm-grabber.js */ 28var qvars=getUrlVars() 29var handlConsentGranted=typeof handl_utm_cookie_duration==='undefined'||handl_utm_cookie_duration[1]==='1' 30jQuery(function($){if(handlConsentGranted){RunHandL()}});function RunHandL(){handlConsentGranted=!0 31setHandLParams() 32RunFieldFiller() 33HandLAppendTrackedLinks() 34HandLBindNinjaFormsFiller()} 35var handlNfFillerBound=!1 36function HandLBindNinjaFormsFiller(){if(handlNfFillerBound)return 37handlNfFillerBound=!0 38jQuery(document).on('nfFormReady',function(){if(typeof nfForms==='undefined')return 39nfForms.forEach(function(form){form.fields.map(function(item){if(item.default){var matches=String(item.default).match(/^{(\w+):(\w+)/) 40if(matches&&matches.length==3&&matches[1]==='handl'){var c=Cookies.get(matches[2]) 41jQuery('#nf-field-'+item.id).val(c===undefined?'':decodeURIComponent(c).replace(/[%]/g,' '))}}})})})} 42function setHandLParams(){var cookieOptions={expires:parseInt(handl_utm_cookie_duration[0])} 43Cookies.set('handl_url',document.location.href,cookieOptions) 44Cookies.set('handl_ref',document.referrer,cookieOptions) 45if(Cookies.get('handl_landing_page')===undefined){Cookies.set('handl_landing_page',document.location.href,cookieOptions)} 46if(Cookies.get('handl_original_ref')===undefined){Cookies.set('handl_original_ref',document.referrer,cookieOptions)}} 47function HandLAppendTrackedLinks(){jQuery('.utm-out').each(function(){if(this.tagName.toLowerCase()!=='a'||!this.href){return}
48var urlParams=getSearchParams(this.href);var sanitizedParams={};for(var key in urlParams){if(handl_utm.hasOwnProperty(key)){sanitizedParams[key]=encodeURIComponent(urlParams[key])}} 49var sanitizedHandlUtm={};for(var key in handl_utm){sanitizedHandlUtm[key]=encodeURIComponent(handl_utm[key])} 50var merged=jQuery.extend({},sanitizedHandlUtm,sanitizedParams);this.href=this.href.split('?')[0];if(!jQuery.isEmptyObject(merged)){this.href+="?"+jQuery.param(merged)}})} 51function HandLOnMarketingConsentChange(changedConsentCategory){for(var key in changedConsentCategory){if(changedConsentCategory.hasOwnProperty(key)){if(key==='marketing'&&changedConsentCategory[key]==='allow'){console.log('Consent: Marketing consent granted, running HandL');RunHandL()}else if(key==='marketing'&&changedConsentCategory[key]==='deny'){console.log('Consent: Marketing consent withdrawn, removing HandL cookies');RemoveHandLCookies()}}}} 52document.addEventListener('wp_listen_for_consent_change',function(e){HandLOnMarketingConsentChange(e.detail)});document.addEventListener('handl_consent_change',function(e){HandLOnMarketingConsentChange(e.detail)});function RemoveHandLCookies(){console.log('Removing HandL cookies');var params=typeof handl_utm_all_params!=='undefined'?Object.values(handl_utm_all_params):[] 53var host=location.hostname.toLowerCase().replace(/^www\./,'') 54params.forEach(function(param){Cookies.remove(param,{path:'/'}) 55Cookies.remove(param,{path:'/',domain:'.'+host}) 56Cookies.remove(param,{path:'/',domain:host})}) 57handlConsentGranted=!1} 58function RunFieldFiller(){jQuery.each(['utm_source','utm_medium','utm_term','utm_content','utm_campaign','gclid','handl_landing_page','handl_original_ref','handl_ip','handl_ref','handl_url','email','username'],function(i,v){var cookie_field=GetQVars(v,qvars) 59if(cookie_field!='') 60Cookies.set(v,cookie_field,{expires:30});var curval=Cookies.get(v) 61if(curval!=undefined){curval=decodeURIComponent(curval).replace(/[%]/g,' ') 62if(['utm_source','utm_medium','utm_term','utm_content','utm_campaign','gclid'].indexOf(v)!==-1){handl_utm[v]=curval} 63if(v=='username'){curval=curval.replace(/\+/g,' ')}}else{if(['email','username'].indexOf(v)!==-1){return} 64curval=''} 65{jQuery('input[name=\"'+v+'\"]').val(curval) 66jQuery('input#'+v).val(curval) 67jQuery('input.'+v).val(curval) 68jQuery('input#form-field-'+v).val(curval) 69jQuery('#'+v).find('input').val(curval) 70jQuery('.'+v).find('input').val(curval) 71jQuery("[data-original_id='"+v+"']").val(curval) 72jQuery("[data-name='"+v+"']").val(curval) 73jQuery("[data-name='"+v.replace(/_/g,'')+"']").val(curval) 74jQuery("[placeholder='"+v+"']").val(curval) 75if(v.length>4&&['email','username'].indexOf(v)==-1){jQuery("[name*="+v+"]").val(curval) 76jQuery("[id*="+v+"]").val(curval) 77jQuery("[class*="+v+"]").val(curval)}}})} 78function getSearchParams(url,k){var p={};var a=document.createElement('a');a.href=url;a.search.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(s,k,v){p[k]=v}) 79return k?p[k]:p} 80function GetQVars(v,qvars){if(qvars[v]!=undefined){return qvars[v]} 81return''} 82function getUrlVars(){var vars={};var parts=window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(m,key,value){vars[key]=value});return vars} 83jQuery(document).on('elementor/popup/show',function(){setTimeout(function(){if(handlConsentGranted){RunFieldFiller()}},1000)}); 84 85
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.