// source --> https://www.lewisburgborough.org/wp-content/plugins/say-what/assets/build/frontend.js?ver=fd31684c45e4d85aeb4e 
(()=>{"use strict";window.wp.hooks;const t={gettext:(e,a,n)=>t.handle(e,a,a,void 0,void 0,n),gettext_with_context:(e,a,n,o)=>t.handle(e,a,a,void 0,n,o),ngettext:(e,a,n,o,i)=>t.handle(e,a,n,o,void 0,i),ngettext_with_context:(e,a,n,o,i,d)=>t.handle(e,a,n,o,i,d),has_translation(e,a,n,o){const i=t.handle(a,a,a,void 0,n,o)!==a;return e||i},handle(t,e,a,n,o,i){void 0===i&&(i=""),void 0===o&&(o="");let d=i+"|"+a+"|"+o;return void 0!==n&&1!==n||(d=i+"|"+e+"|"+o),void 0!==window.say_what_data.replacements[d]?window.say_what_data.replacements[d]:t}};wp.hooks.addFilter("i18n.gettext","say-what",t.gettext,99),wp.hooks.addFilter("i18n.ngettext","say-what",t.ngettext,99),wp.hooks.addFilter("i18n.gettext_with_context","say-what",t.gettext_with_context,99),wp.hooks.addFilter("i18n.ngettext_with_context","say-what",t.ngettext_with_context,99),wp.hooks.addFilter("i18n.has_translation","say-what",t.has_translation,99)})();
// source --> https://www.lewisburgborough.org/wp-content/themes/enfold/js/avia-js.js?ver=7.1.4 
/**
 * Contains plain js basic and helpers classes
 *
 * @since 5.6
 */

/**
 * Global namespace
 *
 * @since 5.6
 */
var aviaJS = aviaJS || {};

(function()
{
	"use strict";

	if( ! aviaJS.aviaJSHelpers )
	{
		class aviaJSHelpers
		{
			constructor()
			{
				this.wpHooks();
			}

			//	based on _.js debounce()
			debounce( callback, wait, immediate )
			{
				var timeout;

				return function()
				{
					var context = this,
						args = arguments;

					var later = function()
					{
						timeout = null;
						if( ! immediate )
						{
							callback.apply(context, args);
						}
					};

					var callNow = immediate && ! timeout;

					clearTimeout( timeout );
					timeout = setTimeout( later, wait );
					if( callNow )
					{
						callback.apply( context, args );
					}
				};
			}

			wpHooks()
			{
				//	to avoid checking for wp.hooks calling filters or actions we create dummy functions here
				if( window['wp'] && wp.hooks )
				{
					return;
				}

				if( ! window['wp'] )
				{
					window['wp'] = { hooks: {} };
				}
				else
				{
					window['wp'].hooks = {};
				}

				let obj = window['wp'].hooks;

				obj.applyFilters = this.wpHooks_applyFilters;
				obj.doAction = this.wpHooks_applyFilters;
				obj.hasFilter = this.wpHooks_hasFilters;
				obj.hasAction = this.wpHooks_hasFilters;
			}

			wpHooks_applyFilters( handle, value )
			{
				return value;
			}

			wpHooks_hasFilters( handle, namespace )
			{
				return false;
			}
		}

		aviaJS.aviaJSHelpers = new aviaJSHelpers();
	}

	if( ! aviaJS.aviaPlugins )
	{
		class aviaPlugins
		{
			plugins = [];
			defaultPlugin = {
				classFactory:	null,
				selector:		''
			};

			constructor()
			{
				this.plugins = [];
			}

			register( classFactory, selector )
			{
				if( 'function' != typeof classFactory )
				{
					return false;
				}

				let newPlugin = Object.assign( {}, this.defaultPlugin );

				if( 'string' != typeof selector )
				{
					selector = 'body';
				}

				newPlugin.classFactory = classFactory;
				newPlugin.selector = selector;

				this.plugins.push( newPlugin );

				this.check_bind();
			}

			check_bind()
			{
				if( document.readyState === 'complete' )
				{
					// The page is already fully loaded
					this.bind_plugins();
				}
				else
				{
					document.addEventListener( 'readystatechange', this.bind_plugins.bind( this ) );
				}
			}

			bind_plugins( e )
			{
				if( document.readyState !== 'complete' )
				{
					return;
				}

				let plugins = this.plugins;
				this.plugins = [];

				for( let plugin of plugins )
				{
					let elements = document.querySelectorAll( plugin.selector );

					for( let element of elements )
					{
						plugin.classFactory( element );
					}
				}
			}
		}

		aviaJS.aviaPlugins = new aviaPlugins();
	}

})();
// source --> https://www.lewisburgborough.org/wp-content/themes/enfold/js/avia-compat.js?ver=7.1.4 
/*
	this prevents dom flickering for elements hidden with js, needs to be outside of dom.ready event.also adds several extra classes for better browser support
	this is a separate file that needs to be loaded at the top of the page. other js functions are loaded before the closing body tag to make the site render faster
*/
"use strict";

var avia_is_mobile = false;
if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) && 'ontouchstart' in document.documentElement)
{
	avia_is_mobile = true;
	document.documentElement.className += ' avia_mobile ';
}
else
{
	document.documentElement.className += ' avia_desktop ';
}

document.documentElement.className += ' js_active ';

(function()
{
	//set transform property
	var prefix = [ '-webkit-', '-moz-', '-ms-', '' ],
		transform = '',
		transform2d = false,
		transform3d = false;

	for( var i in prefix )
	{
		// http://artsy.github.io/blog/2012/10/18/so-you-want-to-do-a-css3-3d-transform/
		if( prefix[i] + 'transform' in document.documentElement.style )
		{
			transform2d = true;
			transform = prefix[i] + 'transform';
		}

		if( prefix[i] + 'perspective' in document.documentElement.style )
		{
			transform3d = true;
		}
	}

	if( transform2d )
	{
		document.documentElement.className += ' avia_transform ';
	}

	if( transform3d )
	{
		document.documentElement.className += ' avia_transform3d ';
	}

	//set parallax position to prevent jump at pageload
	if( typeof document.getElementsByClassName == 'function' && typeof document.documentElement.getBoundingClientRect == "function" && avia_is_mobile == false )
	{
		if( transform && window.innerHeight > 0 )
		{
			setTimeout( function()
			{
				var y = 0,
					offsets = {},
					transY = 0,
					parallax = document.getElementsByClassName( "av-parallax" ),
					winTop = window.pageYOffset || document.documentElement.scrollTop;

				for( y = 0; y < parallax.length; y++ )
				{
					parallax[y].style.top = "0px";
					offsets	= parallax[y].getBoundingClientRect();
					transY	= Math.ceil( (window.innerHeight + winTop - offsets.top) * 0.3 );
					parallax[y].style[transform] = "translate(0px, " + transY + "px)";
					parallax[y].style.top = "auto";
					parallax[y].className += ' enabled-parallax ';
				}
			}, 50);
		}
	}
})();
// source --> https://www.lewisburgborough.org/wp-content/plugins/the-events-calendar/common/build/js/tribe-common.js?ver=9c44e11f3503a33e9540 
String.prototype.className=function(){return"string"!=typeof this&&!this instanceof String||"function"!=typeof this.replace?this:this.replace(".","")},String.prototype.varName=function(){return"string"!=typeof this&&!this instanceof String||"function"!=typeof this.replace?this:this.replace("-","_")},function(){const t=new URL(window.location.href).hash;if(!t||!t.match("#(tribe|tec)"))return;let e=!0;const n=new MutationObserver((function(){e=!0}));n.observe(window.document,{attributes:!0,childList:!0,characterData:!0,subtree:!0});const i=function(){if(e)e=!1,setTimeout(i,250);else{n.takeRecords(),n.disconnect();const e=document.getElementById(t.substring(1));e&&e.scrollIntoView()}};i()}(),window.tribe=window.tribe||{},window.tec=window.tec||{},window.tec=window.tec||{},window.tec.common=window.tec.common||{},window.tec.common.tribeCommon={};
// source --> https://www.lewisburgborough.org/wp-content/plugins/the-events-calendar/build/js/views/breakpoints.js?ver=4208de2df2852e0b91ec 
tribe.events=tribe.events||{},tribe.events.views=tribe.events.views||{},tribe.events.views.breakpoints={},function(e,t){"use strict";const n=e(document);t.selectors={container:'[data-js="tribe-events-view"]',dataScript:'[data-js="tribe-events-view-data"]',breakpointClassPrefix:"tribe-common--breakpoint-"},t.breakpoints={},t.setContainerClasses=function(e,n){Object.keys(n.breakpoints).forEach((function(i){const s=t.selectors.breakpointClassPrefix+i;t.breakpoints[i]=n.breakpoints[i],e.outerWidth()<n.breakpoints[i]?e.removeClass(s):e.addClass(s)}))},t.handleResize=function(e){t.setContainerClasses(e.data.container,e.data.data)},t.unbindEvents=function(e){e.off("resize.tribeEvents",t.handleResize).off("beforeAjaxSuccess.tribeEvents",t.deinit)},t.bindEvents=function(e,n){e.on("resize.tribeEvents",{container:e,data:n},t.handleResize).on("beforeAjaxSuccess.tribeEvents",{container:e},t.deinit)},t.deinit=function(e,n,i){t.unbindEvents(e.data.container)},t.initTasks=function(n,i){n instanceof jQuery||(n=e(n)),t.bindEvents(n,i),t.setContainerClasses(n,i),n.data("tribeEventsBreakpoints",{initialized:!0})},t.init=function(n,i,s,a){s instanceof jQuery||(s=e(s));const o=s.data("tribeEventsBreakpoints");o&&o.initialized||t.initTasks(s,a)},t.setup=function(n){const i=e(n);if(!i.is(t.selectors.container))return;const s=i.find(t.selectors.dataScript);let a={};s.length&&(a=JSON.parse(s.text().trim())),t.initTasks(i,a)},t.ready=function(){n.on("afterSetup.tribeEvents",t.selectors.container,t.init)},e(t.ready)}(jQuery,tribe.events.views.breakpoints),window.tec=window.tec||{},window.tec.events=window.tec.events||{},window.tec.events.views=window.tec.events.views||{},window.tec.events.views.breakpoints={};