PageSourceSearch

https://fccmelrose.org/_static/??-eJylU9tOwzAM/SHSbBNi2wPiJ3hHaeK1…4vwP7ZUBKOMGacn+ubi48U9b/fHzWGzOz7tu096yXfp

js fccmelrose.org collected 2026-10-02 13:34:56 UTC 167,959 bytes, 1,778 lines download raw bytes

1/* global wpcom_reblog */
2
3var jetpackLikesWidgetBatch = [];
4var jetpackLikesMasterReady = false;
5
6// Due to performance problems on pages with a large number of widget iframes that need to be loaded,
7// we are limiting the processing at any instant to unloaded widgets that are currently in viewport,
8// plus this constant that will allow processing of widgets above and bellow the current fold.
9// This aim of it is to improve the UX and hide the transition from unloaded to loaded state from users.
10var jetpackLikesLookAhead = 2000; // pixels
11
12// Keeps track of loaded comment likes widget so we can unload them when they are scrolled out of view.
13var jetpackCommentLikesLoadedWidgets = [];
14
15var jetpackLikesDocReadyPromise = new Promise( resolve => {
16	if ( document.readyState !== 'loading' ) {
17		resolve();
18	} else {
19		window.addEventListener( 'DOMContentLoaded', () => resolve() );
20	}
21} );
22
23function JetpackLikesPostMessage( message, target ) {
24	if ( typeof message === 'string' ) {
25		try {
26			message = JSON.parse( message );
27		} catch ( e ) {
28			return;
29		}
30	}
31
32	if ( target && typeof target.postMessage === 'function' ) {
33		try {
34			target.postMessage(
35				JSON.stringify( {
36					type: 'likesMessage',
37					data: message,
38				} ),
39				'*'
40			);
41		} catch ( e ) {
42			return;
43		}
44	}
45}
46
47function JetpackLikesBatchHandler() {
48	const requests = [];
49	document.querySelectorAll( 'div.jetpack-likes-widget-unloaded' ).forEach( widget => {
50		if ( jetpackLikesWidgetBatch.indexOf( widget.id ) > -1 ) {
51			return;
52		}
53
54		if ( ! jetpackIsScrolledIntoView( widget ) ) {
55			return;
56		}
57
58		jetpackLikesWidgetBatch.push( widget.id );
59
60		var regex = /like-(post|comment)-wrapper-(\d+)-(\d+)-(\w+)/,
61			match = regex.exec( widget.id ),
62			info;
63
64		if ( ! match || match.length !== 5 ) {
65			return;
66		}
67
68		info = {
69			blog_id: match[ 2 ],
70			width: widget.width,
71		};
72
73		if ( 'post' === match[ 1 ] ) {
74			info.post_id = match[ 3 ];
75		} else if ( 'comment' === match[ 1 ] ) {
76			info.comment_id = match[ 3 ];
77		}
78
79		info.obj_id = match[ 4 ];
80
81		requests.push( info );
82	} );
83
84	if ( requests.length > 0 ) {
85		JetpackLikesPostMessage(
86			{ event: 'initialBatch', requests: requests },
87			window.frames[ 'likes-master' ]
88		);
89	}
90}
91
92function JetpackLikesMessageListener( event ) {
93	let message = event && event.data;
94	if ( typeof message === 'string' ) {
95		try {
96			message = JSON.parse( message );
97		} catch ( err ) {
98			return;
99		}
100	}
101
102	const type = message && message.type;
103	const data = message && message.data;
104
105	if ( type !== 'likesMessage' || typeof data.event === 'undefined' ) {
106		return;
107	}
108
109	// We only allow messages from one origin
110	const allowedOrigin = 'https://widgets.wp.com';
111	if ( allowedOrigin !== event.origin ) {
112		return;
113	}
114
115	switch ( data.event ) {
116		case 'masterReady':
117			jetpackLikesDocReadyPromise.then( () => {
118				jetpackLikesMasterReady = true;
119
120				const stylesData = {
121					event: 'injectStyles',
122				};
123				const sdTextColor = document.querySelector( '.sd-text-color' );
124				const sdLinkColor = document.querySelector( '.sd-link-color' );
125				const sdTextColorStyles = ( sdTextColor && getComputedStyle( sdTextColor ) ) || {};
126				const sdLinkColorStyles = ( sdLinkColor && getComputedStyle( sdLinkColor ) ) || {};
127
128				// enable reblogs if they are enabled for the page
129				if ( document.body.classList.contains( 'jetpack-reblog-enabled' ) ) {
130					JetpackLikesPostMessage( { event: 'reblogsEnabled' }, window.frames[ 'likes-master' ] );
131				}
132
133				stylesData.textStyles = {
134					color: sdTextColorStyles[ 'color' ],
135					fontFamily: sdTextColorStyles[ 'font-family' ],
136					fontSize: sdTextColorStyles[ 'font-size' ],
137					direction: sdTextColorStyles[ 'direction' ],
138					fontWeight: sdTextColorStyles[ 'font-weight' ],
139					fontStyle: sdTextColorStyles[ 'font-style' ],
140					textDecoration: sdTextColorStyles[ 'text-decoration' ],
141				};
142
143				stylesData.linkStyles = {
144					color: sdLinkColorStyles[ 'color' ],
145					fontFamily: sdLinkColorStyles[ 'font-family' ],
146					fontSize: sdLinkColorStyles[ 'font-size' ],
147					textDecoration: sdLinkColorStyles[ 'text-decoration' ],
148					fontWeight: sdLinkColorStyles[ 'font-weight' ],
149					fontStyle: sdLinkColorStyles[ 'font-style' ],
150				};
151
152				JetpackLikesPostMessage( stylesData, window.frames[ 'likes-master' ] );
153
154				JetpackLikesBatchHandler();
155			} );
156
157			break;
158
159		// We're keeping this for planned future follow ups.
160		// @see: https://github.com/Automattic/jetpack/pull/42361#discussion_r1995338815
161		case 'showLikeWidget':
162			break;
163
164		// We're keeping this for planned future follow ups.
165		// @see: https://github.com/Automattic/jetpack/pull/42361#discussion_r1995338815
166		case 'showCommentLikeWidget':
167			break;
168
169		case 'killCommentLikes':
170			// If kill switch for comment likes is enabled remove all widgets wrappers and `Loading...` placeholders.
171			document
172				.querySelectorAll( '.jetpack-comment-likes-widget-wrapper' )
173				.forEach( wrapper => wrapper.remove() );
174			break;
175
176		case 'clickReblogFlair':
177			if ( wpcom_reblog && typeof wpcom_reblog.toggle_reblog_box_flair === 'function' ) {
178				wpcom_reblog.toggle_reblog_box_flair( data.obj_id, data.post_id );
179			}
180			break;
181
182		case 'hideOtherGravatars': {
183			hideLikersPopover();
184			break;
185		}
186
187		case 'showOtherGravatars': {
188			const container = document.querySelector( '#likes-other-gravatars' );
189
190			if ( ! container ) {
191				break;
192			}
193
194			const list = container.querySelector( 'ul' );
195
196			container.style.display = 'none';
197			list.innerHTML = '';
198
199			container
200				.querySelectorAll( '.likes-text span' )
201				.forEach( item => ( item.textContent = data.totalLikesLabel ) );
202
203			( data.likers || [] ).forEach( async ( liker, index ) => {
204				if ( liker.profile_URL.substr( 0, 4 ) !== 'http' ) {
205					// We only display gravatars with http or https schema
206					return;
207				}
208
209				const element = document.createElement( 'li' );
210				list.append( element );
211
212				element.innerHTML = `
213				<a href="${ encodeURI( liker.profile_URL ) }" rel="nofollow" target="_parent" class="wpl-liker">
214					<img src="${ encodeURI( liker.avatar_URL ) }"
215						alt=""
216						style="width: 28px; height: 28px;" />
217					<span></span>
218				</a>
219				`;
220
221
222				// Add some extra attributes through native methods, to ensure strings are sanitized.
223				element.classList.add( liker.css_class );
224				element.querySelector( 'img' ).alt = data.avatarAltTitle.replace( '%s', liker.name );
225				element.querySelector( 'span' ).innerText = liker.name;
226
227				if ( index === data.likers.length - 1 ) {
228					element.addEventListener( 'keydown', ( e ) => {
229						if ( e.key === 'Tab' && ! e.shiftKey ) {
230							e.preventDefault();
231							hideLikersPopover();
232
233							JetpackLikesPostMessage(
234								{ event: 'focusLikesCount', parent: data.parent },
235								window.frames[ 'likes-master' ]
236							);
237						}
238					} );
239				}
240			} );
241
242			const positionPopup = function() {
243				const containerStyle = getComputedStyle(container);
244				const isRtl = containerStyle.direction === 'rtl';
245
246				const el = document.querySelector( `*[name='${ data.parent }']` );
247				const rect = el.getBoundingClientRect();
248				const win = el.ownerDocument.defaultView;
249
250				const offset = {
251					top: rect.top + win.pageYOffset,
252					left: rect.left + win.pageXOffset,
253				};
254
255				// don't display yet or we get skewed window.innerWidth later
256				container.style.display = 'none';
257
258				let containerLeft = 0;
259				container.style.top = offset.top + data.position.top - 1 + 'px';
260
261				if ( isRtl ) {
262					const visibleAvatarsCount = data && data.likers ? Math.min( data.likers.length, 5 ) : 0;
263					// 24px is the width of the avatar + 4px is the padding between avatars
264					containerLeft = offset.left + data.position.left + 24 * visibleAvatarsCount + 4;
265					container.style.transform = 'translateX(-100%)';
266				} else {
267					containerLeft = offset.left + data.position.left;
268				}
269				container.style.left = containerLeft + 'px';
270
271				// Container width - padding
272				const initContainerWidth = data.width - 20;
273				const rowLength = Math.floor( initContainerWidth / 37 );
274				// # of rows + (avatar + avatar padding) + text above + container padding
275				let height = Math.ceil( data.likers.length / rowLength ) * 37 + 17 + 22;
276				if ( height > 204 ) {
277					height = 204;
278				}
279
280				// If the popup is overflows viewport width, we should show it on the next line
281				// Push it offscreen to calculated rendered width
282				const windowWidth = win.innerWidth;
283				container.style.left = '-9999px';
284				container.style.display = 'block';
285
286				// If the popup exceeds the viewport width,
287				// flip the position of the popup.
288				const containerWidth = container.offsetWidth;
289				const containerRight = containerLeft + containerWidth;
290
291				if ( containerRight > windowWidth && ! isRtl) {
292					containerLeft = rect.left + rect.width - containerWidth;
293				} else if ( containerLeft - containerWidth < 0 && isRtl ) {
294					container.style.transform = 'none';
295					containerLeft = rect.left;
296				}
297				// Set the container left
298				container.style.left = containerLeft + 'px';
299
300				container.setAttribute( 'aria-hidden', 'false' );
301			}
302
303			positionPopup();
304			container.focus();
305
306			const debounce = function( func, wait ) {
307				var timeout;
308				return function() {
309					var context = this;
310					var args = arguments;
311					clearTimeout( timeout );
312					timeout = setTimeout( function() {
313						func.apply( context, args );
314					}, wait );
315				};
316			};
317
318			const debouncedPositionPopup = debounce( positionPopup, 100 );
319
320			// Keep a reference of this function in the element itself
321			// so that we can destroy it later
322			container.__resizeHandler = debouncedPositionPopup;
323
324			// When window is resized, resize the popup.
325			window.addEventListener( "resize", debouncedPositionPopup );
326		}
327	}
328}
329
330window.addEventListener( 'message', JetpackLikesMessageListener );
331
332function hideLikersPopover() {
333	const container = document.querySelector( '#likes-other-gravatars' );
334
335	if ( container ) {
336		container.style.display = 'none';
337		container.setAttribute( 'aria-hidden', 'true' );
338
339		// Remove the resize event listener and cleanup.
340		const resizeHandler = container.__resizeHandler;
341		if ( resizeHandler ) {
342			window.removeEventListener( "resize", resizeHandler );
343			delete container.__resizeHandler;
344		}
345	}
346}
347
348document.addEventListener( 'click', hideLikersPopover );
349
350function JetpackLikesWidgetQueueHandler() {
351	var wrapperID;
352
353	if ( ! jetpackLikesMasterReady ) {
354		setTimeout( JetpackLikesWidgetQueueHandler, 500 );
355		return;
356	}
357
358	// Restore widgets to initial unloaded state when they are scrolled out of view.
359	jetpackUnloadScrolledOutWidgets();
360
361	var unloadedWidgetsInView = jetpackGetUnloadedWidgetsInView();
362
363	if ( unloadedWidgetsInView.length > 0 ) {
364		// Grab any unloaded widgets for a batch request
365		JetpackLikesBatchHandler();
366	}
367
368	for ( var i = 0, length = unloadedWidgetsInView.length; i <= length - 1; i++ ) {
369		wrapperID = unloadedWidgetsInView[ i ].id;
370
371		if ( ! wrapperID ) {
372			continue;
373		}
374
375		jetpackLoadLikeWidgetIframe( wrapperID );
376	}
377}
378
379function jetpackLoadLikeWidgetIframe( wrapperID ) {
380	if ( typeof wrapperID === 'undefined' ) {
381		return;
382	}
383
384	const wrapper = document.querySelector( '#' + wrapperID );
385	wrapper.querySelectorAll( 'iframe' ).forEach( iFrame => iFrame.remove() );
386
387	const placeholder = wrapper.querySelector( '.likes-widget-placeholder' );
388
389	// Post like iframe
390	if ( placeholder && placeholder.classList.contains( 'post-likes-widget-placeholder' ) ) {
391		const postLikesFrame = document.createElement( 'iframe' );
392
393		postLikesFrame.classList.add( 'post-likes-widget', 'jetpack-likes-widget' );
394		postLikesFrame.name = wrapper.dataset.name;
395		postLikesFrame.src = wrapper.dataset.src;
396		postLikesFrame.height = '55px';
397		postLikesFrame.width = '100%';
398		postLikesFrame.frameBorder = '0';
399		postLikesFrame.scrolling = 'no';
400		postLikesFrame.title = wrapper.dataset.title;
401
402		placeholder.after( postLikesFrame );
403	}
404
405	// Comment like iframe
406	if ( placeholder.classList.contains( 'comment-likes-widget-placeholder' ) ) {
407		const commentLikesFrame = document.createElement( 'iframe' );
408
409		commentLikesFrame.class = 'comment-likes-widget-frame jetpack-likes-widget-frame';
410		commentLikesFrame.name = wrapper.dataset.name;
411		commentLikesFrame.src = wrapper.dataset.src;
412		commentLikesFrame.height = '18px';
413		commentLikesFrame.width = '100%';
414		commentLikesFrame.frameBorder = '0';
415		commentLikesFrame.scrolling = 'no';
416
417		wrapper.querySelector( '.comment-like-feedback' ).after( commentLikesFrame );
418
419		jetpackCommentLikesLoadedWidgets.push( commentLikesFrame );
420	}
421
422	wrapper.classList.remove( 'jetpack-likes-widget-unloaded' );
423	wrapper.classList.add( 'jetpack-likes-widget-loading' );
424
425	wrapper.querySelector( 'iframe' ).addEventListener( 'load', e => {
426		JetpackLikesPostMessage(
427			{ event: 'loadLikeWidget', name: e.target.name, width: e.target.width },
428			window.frames[ 'likes-master' ]
429		);
430
431		wrapper.classList.remove( 'jetpack-likes-widget-loading' );
432		wrapper.classList.add( 'jetpack-likes-widget-loaded' );
433	} );
434}
435
436function jetpackGetUnloadedWidgetsInView() {
437	const unloadedWidgets = document.querySelectorAll( 'div.jetpack-likes-widget-unloaded' );
438
439	return [ ...unloadedWidgets ].filter( item => jetpackIsScrolledIntoView( item ) );
440}
441
442function jetpackIsScrolledIntoView( element ) {
443	const top = element.getBoundingClientRect().top;
444	const bottom = element.getBoundingClientRect().bottom;
445
446	// Allow some slack above and bellow the fold with jetpackLikesLookAhead,
447	// with the aim of hiding the transition from unloaded to loaded widget from users.
448	return top + jetpackLikesLookAhead >= 0 && bottom <= window.innerHeight + jetpackLikesLookAhead;
449}
450
451function jetpackUnloadScrolledOutWidgets() {
452	for ( let i = jetpackCommentLikesLoadedWidgets.length - 1; i >= 0; i-- ) {
453		const currentWidgetIframe = jetpackCommentLikesLoadedWidgets[ i ];
454
455		if ( ! jetpackIsScrolledIntoView( currentWidgetIframe ) ) {
456			const widgetWrapper =
457				currentWidgetIframe &&
458				currentWidgetIframe.parentElement &&
459				currentWidgetIframe.parentElement.parentElement;
460
461			// Restore parent class to 'unloaded' so this widget can be picked up by queue manager again if needed.
462			widgetWrapper.classList.remove( 'jetpack-likes-widget-loaded' );
463			widgetWrapper.classList.remove( 'jetpack-likes-widget-loading' );
464			widgetWrapper.classList.add( 'jetpack-likes-widget-unloaded' );
465
466			// Bring back the loading placeholder into view.
467			widgetWrapper
468				.querySelectorAll( '.comment-likes-widget-placeholder' )
469				.forEach( item => ( item.style.display = 'block' ) );
470
471			// Remove it from the list of loaded widgets.
472			jetpackCommentLikesLoadedWidgets.splice( i, 1 );
473
474			// Remove comment like widget iFrame.
475			currentWidgetIframe.remove();
476		}
477	}
478}
479
480var jetpackWidgetsDelayedExec = function ( after, fn ) {
481	var timer;
482	return function () {
483		clearTimeout( timer );
484		timer = setTimeout( fn, after );
485	};
486};
487
488var jetpackOnScrollStopped = jetpackWidgetsDelayedExec( 250, JetpackLikesWidgetQueueHandler );
489
490// Load initial batch of widgets, prior to any scrolling events.
491JetpackLikesWidgetQueueHandler();
492
493// Add event listener to execute queue handler after scroll.
494window.addEventListener( 'scroll', jetpackOnScrollStopped, true );
495;
496/**
497 * Comment Likes - JavaScript
498 *
499 * This handles liking and unliking comments, as well as viewing who has
500 * liked a particular comment.
501 *
502 * @dependency  Swipe (dynamically loaded when needed)
503 *
504 * @package     Comment_Likes
505 * @subpackage  JavaScript
506 */
507(function () {
508	function init() {
509		let extWin;
510		let extWinCheck;
511		let commentLikeEvent;
512
513		// Only run once.
514		if (window.comment_likes_loaded) {
515			return;
516		}
517		window.comment_likes_loaded = true;
518
519		// Client-side cache of who liked a particular comment to avoid
520		// having to hit the server multiple times for the same data.
521		const commentLikeCache = {};
522
523		let swipeLibPromise;
524
525		// Load the Swipe library, if it's not already loaded.
526		function swipeLibLoader() {
527			if (!swipeLibPromise) {
528				swipeLibPromise = new Promise((resolve, reject) => {
529					if (window.Swipe) {
530						resolve(window.Swipe);
531					} else {
532						const swipeScript = document.createElement('script');
533						swipeScript.src = comment_like_text.swipeUrl;
534						swipeScript.async = true;
535						document.body.appendChild(swipeScript);
536						swipeScript.addEventListener('load', () => resolve(window.Swipe));
537						swipeScript.addEventListener('error', error => reject(error));
538					}
539				});
540			}
541			return swipeLibPromise;
542		}
543
544		/**
545		 * Parse the comment ID from a comment like link.
546		 */
547		function getCommentId(link) {
548			const commentId =
549				link && link.getAttribute('href') && link.getAttribute('href').split('like_comment=');
550			return commentId[1].split('&_wpnonce=')[0];
551		}
552
553		/**
554		 * Handle an ajax action on the comment like link.
555		 */
556		function handleLinkAction(link, action, commentId, callback) {
557			const nonce =
558				link && link.getAttribute('href') && link.getAttribute('href').split('_wpnonce=')[1];
559
560			fetch('/wp-admin/admin-ajax.php', {
561				method: 'POST',
562				body: new URLSearchParams({
563					action: action,
564					_wpnonce: nonce,
565					like_comment: commentId,
566					blog_id: Number(link.dataset.blog),
567				}),
568				headers: {
569					'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
570					'X-Requested-With': 'XMLHttpRequest',
571					Accept: 'application/json',
572					'cache-control': 'no-cache',
573					pragma: 'no-cache',
574				},
575			})
576				.then(response => response.json())
577				.then(callback);
578		}
579
580		function startPolling() {
581			// Append cookie polling login iframe to this window to wait for user to finish logging in (or cancel)
582			const loginIframe = document.createElement('iframe');
583			loginIframe.id = 'wp-login-polling-iframe';
584			loginIframe.src = 'https://wordpress.com/public.api/connect/?iframe=true';
585			document.body.appendChild(loginIframe);
586			loginIframe.style.display = 'none';
587		}
588
589		function stopPolling() {
590			const iframe = document.querySelector('#wp-login-polling-iframe');
591			if (iframe) {
592				iframe.remove();
593			}
594		}
595
596		function hide(el) {
597			if (el && el.style) {
598				el.style.display = 'none';
599			}
600		}
601
602		function show(el) {
603			if (el && el.style) {
604				el.style.removeProperty('display');
605			}
606		}
607
608		// Overlay used for displaying comment like info.
609		class Overlay {
610			constructor() {
611				// Overlay element.
612				this.el = document.createElement('div');
613				this.el.classList.add('comment-likes-overlay');
614				document.body.appendChild(this.el);
615				hide(this.el);
616
617				this.el.addEventListener('mouseenter', () => {
618					// Don't hide the overlay if the user is mousing over it.
619					overlay.cancelHide();
620				});
621
622				this.el.addEventListener('mouseleave', () => overlay.requestHide());
623
624				// Inner contents of overlay.
625				this.innerEl = null;
626
627				// Instance of the Swipe library.
628				this.swipe = null;
629
630				// Timeout used for hiding the overlay.
631				this.hideTimeout = null;
632			}
633
634			// Initialise the overlay for use, removing any old content.
635			clear() {
636				// Unload any previous instance of Swipe (to avoid leaking a global
637				// event handler). This is done before clearing the contents of the
638				// overlay because Swipe expects the slides to still be present.
639				if (this.swipe) {
640					this.swipe.kill();
641					this.swipe = null;
642				}
643				this.el.innerHTML = '';
644				this.innerEl = document.createElement('div');
645				this.innerEl.classList.add('inner');
646				this.el.appendChild(this.innerEl);
647			}
648
649			/**
650			 * Construct a list (<ul>) of user (gravatar, name) details.
651			 *
652			 * @param  data     liker data returned from the server
653			 * @param  klass    CSS class to apply to the <ul> element
654			 * @param  start    index of user to start at
655			 * @param  length   number of users to include in the list
656			 *
657			 * @return          A container element with the list
658			 */
659			getUserBits(data, klass, start, length) {
660				start = start || 0;
661				let last = start + (length || data.length);
662				last = last > data.length ? data.length : last;
663				const container = document.createElement('div');
664				container.classList.add('liker-list');
665				let html = `<ul class="${klass || ''}">`;
666				for (let i = start; i < last; ++i) {
667					const user = data[i];
668					html += `
669						<li>
670							<a rel="nofollow" title="${user.display_name_esc}" href="${user.profile_url_esc}">
671								<img src="${user.avatar_url_esc}" alt="${user.display_name_esc}" />
672								<span class="user-name">${user.display_name_esc}</span>
673							</a>
674						</li>
675					`;
676				}
677				html += '</ul>';
678				container.innerHTML = html;
679				return container;
680			}
681
682			/**
683			 * Render the display of who has liked this comment. The type of
684			 * display depends on how many people have liked the comment.
685			 * If more than 10 people have liked the comment, this function
686			 * renders navigation controls and sets up the Swipe library for
687			 * changing between pages.
688			 *
689			 * @param link  the element over which the user is hovering
690			 * @param data  the results retrieved from the server
691			 */
692			showLikes(link, data) {
693				this.clear();
694
695				link.dataset.likeCount = data.length;
696				if (data.length === 0) {
697					// No likers after all.
698					hide(this.el);
699					return;
700				}
701
702				this.innerEl.style.padding = '12px';
703
704				if (data.length < 6) {
705					// Only one column needed.
706					this.innerEl.style.maxWidth = '200px';
707					this.innerEl.innerHTML = '';
708					this.innerEl.appendChild(this.getUserBits(data, 'single'));
709					this.setPosition(link);
710				} else if (data.length < 11) {
711					// Two columns, but only one page.
712					this.innerEl.innerHTML = '';
713					this.innerEl.appendChild(this.getUserBits(data, 'double'));
714					this.setPosition(link);
715				} else {
716					// Multiple pages.
717					this.renderLikesWithPagination(data, link);
718				}
719			}
720
721			/**
722			 * Render multiple pages of likes with pagination controls.
723			 * This function is intended to be called by `showLikes` above.
724			 *
725			 * @param data  the results retrieved from the server
726			 */
727			renderLikesWithPagination(data, link) {
728				swipeLibLoader().then(() => {
729					const page_count = Math.ceil(data.length / 10);
730					// Swipe requires two nested containers.
731					const swipe = document.createElement('div');
732					swipe.classList.add('swipe');
733					this.innerEl.appendChild(swipe);
734
735					const wrap = document.createElement('div');
736					wrap.classList.add('swipe-wrap');
737					swipe.appendChild(wrap);
738
739					for (let i = 0; i < page_count; ++i) {
740						wrap.appendChild(this.getUserBits(data, 'double', i * 10, 10));
741					}
742
743					/**
744					 * Navigation controls.
745					 * This is based on the Newdash controls found in
746					 *    reader/recommendations-templates.php
747					 */
748					const nav = document.createElement('nav');
749					nav.classList.add('slider-nav');
750
751					let navContents = `
752						<a href="#" class="prev">
753							<span class="noticon noticon-previous" title="Previous" alt="<"></span>
754						</a>
755						<span class="position">
756					`;
757					for (let i = 0; i < page_count; ++i) {
758						navContents += `<em data-page="${i}" class="${i === 0 ? 'on' : ''}">&bull;</em>`;
759					}
760					navContents += `
761						</span>
762						<a href="#" class="next">
763							<span class="noticon noticon-next" title="Next" alt=">"></span>
764						</a>
765					`;
766					this.innerEl.appendChild(nav);
767					nav.innerHTML = navContents;
768
769					/** Set up Swipe. **/
770					// Swipe cannot be set up successfully unless its container
771					// is visible, so we show it now.
772					show(this.el);
773					this.setPosition(link);
774
775					this.swipe = new Swipe(swipe, {
776						callback: function (pos) {
777							// Update the pagination indicators.
778							//
779							// If there are exactly two pages, Swipe has a weird
780							// special case where it duplicates both pages and
781							// can return index 2 and 3 even though those aren't
782							// real pages (see swipe.js, line 47). To deal with
783							// this, we use the expression `pos % page_count`.
784							pos = pos % page_count;
785							nav.querySelectorAll('em').forEach(em => {
786								const page = Number(em.dataset.page);
787								em.setAttribute('class', pos === page ? 'on' : '');
788							});
789						},
790					});
791
792					nav.querySelectorAll('em').forEach(em => {
793						em.addEventListener('click', e => {
794							// Go to the page corresponding to the indicator clicked.
795							this.swipe.slide(Number(em.dataset.page));
796							e.preventDefault();
797						});
798					});
799					// Previous and next buttons.
800					nav.querySelector('.prev').addEventListener('click', e => {
801						this.swipe.prev();
802						e.preventDefault();
803					});
804					nav.querySelector('.next').addEventListener('click', e => {
805						this.swipe.next();
806						e.preventDefault();
807					});
808				});
809			}
810
811			/**
812			 * Open the overlay and show a loading message.
813			 */
814			showLoadingMessage(link) {
815				this.clear();
816				this.innerEl.textContent = comment_like_text.loading;
817				this.setPosition(link);
818			}
819
820			/**
821			 * Position the overlay near the current comment.
822			 *
823			 * @param link  element near which to position the overlay
824			 */
825			setPosition(link) {
826				// Prepare a down arrow icon for the bottom of the overlay.
827				const icon = document.createElement('span');
828				this.el.appendChild(icon);
829				icon.classList.add('icon', 'noticon', 'noticon-downarrow');
830				icon.style.textShadow = '0px 1px 1px rgb(223, 223, 223)';
831
832				const rect = link.getBoundingClientRect();
833				const win = document.defaultView;
834				const offset = {
835					top: rect.top + win.scrollY,
836					left: rect.left + win.scrollX,
837				};
838
839				// Take measurements with the element fully visible.
840				show(this.el);
841				let left = offset.left - (this.el.offsetWidth - link.offsetWidth) / 2;
842				left = left < 5 ? 5 : left;
843				let top = offset.top - this.el.offsetHeight + 5;
844				hide(this.el);
845
846				const adminBar = document.querySelector('#wpadminbar');
847
848				// Check if the overlay would appear off the screen.
849				if (top < win.scrollY + ((adminBar && adminBar.offsetHeight) || 0)) {
850					// We'll display the overlay beneath the link instead.
851					top = offset.top + link.offsetHeight;
852					// Instead of using the down arrow icon, use an up arrow.
853					icon.remove();
854					this.el.prepend(icon);
855					icon.classList.remove('noticon-downarrow');
856					icon.classList.add('noticon-uparrow');
857					icon.style.textShadow = '0px -1px 1px rgb(223, 223, 223)';
858					icon.style.verticalAlign = 'bottom';
859				}
860
861				this.el.style.left = `${left}px`;
862				this.el.style.top = `${top}px`;
863				show(this.el);
864
865				// The height of the arrow icon differs slightly between browsers,
866				// so we compute the margin here to make sure it isn't disjointed
867				// from the overlay.
868				icon.style.marginTop = `${icon.scrollHeight - 26}px`;
869				icon.style.marginBottom = `${20 - icon.scrollHeight}px`;
870
871				// Position the arrow to be horizontally centred on the link.
872				icon.style.paddingLeft = `${
873					offset.left - left + (link.offsetWidth - icon.scrollWidth) / 2
874				}px`;
875			}
876
877			/**
878			 * Return whether the overlay is visible.
879			 */
880			isVisible() {
881				return this.el.style.getPropertyValue('display') !== 'none';
882			}
883
884			/**
885			 * Request that the overlay be hidden after a short delay.
886			 */
887			requestHide() {
888				if (this.hideTimeout !== null) {
889					return;
890				}
891				this.hideTimeout = setTimeout(() => {
892					hide(this.el);
893					this.clear();
894				}, 300);
895			}
896
897			/**
898			 * Cancel a request to hide the overlay.
899			 */
900			cancelHide() {
901				if (this.hideTimeout !== null) {
902					clearTimeout(this.hideTimeout);
903					this.hideTimeout = null;
904				}
905			}
906		}
907
908		// Overlay used for displaying comment like info.
909		const overlay = new Overlay();
910
911		// The most recent comment for which the user has requested to see
912		// who liked it.
913		var relevantComment;
914
915		// Precache after this timeout.
916		var precacheTimeout = null;
917
918		/**
919		 * Fetch the like data for a particular comment.
920		 */
921		function fetchLikeData(link, commentId) {
922			commentLikeCache[commentId] = null;
923
924			const container = link && link.parentElement && link.parentElement.parentElement;
925			const star = container.querySelector('a.comment-like-link');
926			star &&
927				handleLinkAction(star, 'view_comment_likes', commentId, data => {
928					// Populate the cache.
929					commentLikeCache[commentId] = data;
930
931					// Only show the overlay if the user is interested.
932					if (overlay.isVisible() && relevantComment === commentId) {
933						overlay.showLikes(link, data);
934					}
935				});
936		}
937
938		function readCookie(c) {
939			const nameEQ = c + '=';
940			const cookieStrings = document.cookie.split(';');
941
942			for (let i = 0; i < cookieStrings.length; i++) {
943				let cookieString = cookieStrings[i];
944				while (cookieString.charAt(0) === ' ') {
945					cookieString = cookieString.substring(1, cookieString.length);
946				}
947				if (cookieString.indexOf(nameEQ) === 0) {
948					const chunk = cookieString.substring(nameEQ.length, cookieString.length);
949					const pairs = chunk.split('&');
950					const cookieData = {};
951					for (let num = pairs.length - 1; num >= 0; num--) {
952						const pair = pairs[num].split('=');
953						cookieData[pair[0]] = decodeURIComponent(pair[1]);
954					}
955					return cookieData;
956				}
957			}
958			return null;
959		}
960
961		function getServiceData() {
962			const data = readCookie('wpc_wpc');
963			if (data === null || typeof data.access_token === 'undefined' || !data.access_token) {
964				return false;
965			}
966			return data;
967		}
968
969		function readMessage(msg) {
970			const event = msg.data;
971
972			if (typeof event.event === 'undefined') {
973				return;
974			}
975
976			if (event.event === 'login' && event.success) {
977				extWinCheck = setInterval(function () {
978					if (!extWin || extWin.closed) {
979						clearInterval(extWinCheck);
980						if (getServiceData()) {
981							// Load page in an iframe to get the current comment nonce
982							const nonceIframe = document.createElement('iframe');
983							nonceIframe.id = 'wp-login-comment-nonce-iframe';
984							nonceIframe.style.display = 'none';
985							nonceIframe.src = commentLikeEvent + '';
986							document.body.appendChild(nonceIframe);
987
988							const commentLikeId = (commentLikeEvent + '')
989								.split('like_comment=')[1]
990								.split('&_wpnonce=')[0];
991							let c;
992
993							// Set a 5 second timeout to redirect to the comment page without doing the Like as a fallback
994							const commentLikeTimeout = setTimeout(() => {
995								window.location = commentLikeEvent;
996							}, 5000);
997
998							// Check for a new nonced redirect and use that if available before timing out
999							const commentLikeCheck = setInterval(() => {
1000								const iframe = document.querySelector('#wp-login-comment-nonce-iframe');
1001								if (iframe) {
1002									c = iframe.querySelector(`#comment-like-${commentLikeId} .comment-like-link`);
1003								}
1004								if (c && typeof c.href !== 'undefined') {
1005									clearTimeout(commentLikeTimeout);
1006									clearInterval(commentLikeCheck);
1007									window.location = c.href;
1008								}
1009							}, 100);
1010						}
1011					}
1012				}, 100);
1013
1014				if (extWin) {
1015					if (!extWin.closed) {
1016						extWin.close();
1017					}
1018					extWin = false;
1019				}
1020
1021				stopPolling();
1022			}
1023		}
1024
1025		if (typeof window.postMessage !== 'undefined') {
1026			window.addEventListener('message', e => {
1027				let message = e && e.data;
1028				if (typeof message === 'string') {
1029					try {
1030						message = JSON.parse(message);
1031					} catch (err) {
1032						return;
1033					}
1034				}
1035
1036				const type = message && message.type;
1037				if (type === 'loginMessage') {
1038					readMessage(message);
1039				}
1040			});
1041		}
1042
1043		document.body.addEventListener('click', e => {
1044			let target = e.target;
1045
1046			// Don't do anything when clicking on the "X people" link.
1047			if (target.matches('p.comment-likes a.view-likers')) {
1048				e.preventDefault();
1049				return;
1050			}
1051
1052			// Retrieve the surrounding paragraph to the star, if it hasn't been liked.
1053			const notLikedPar = target.closest('p.comment-not-liked');
1054
1055			// Return if not clicking on star or surrounding paragraph.
1056			if (!target.matches('a.comment-like-link') && !notLikedPar) {
1057				return;
1058			}
1059
1060			// When a comment hasn't been liked, make the text clickable, too.
1061			if (notLikedPar) {
1062				target = notLikedPar.querySelector('a.comment-like-link');
1063				if (!target) {
1064					return;
1065				}
1066			}
1067
1068			if (target.classList.contains('needs-login')) {
1069				e.preventDefault();
1070				commentLikeEvent = target;
1071				if (extWin) {
1072					if (!extWin.closed) {
1073						extWin.close();
1074					}
1075					extWin = false;
1076				}
1077
1078				stopPolling();
1079
1080				const url = 'https://wordpress.com/public.api/connect/?action=request&service=wordpress';
1081				extWin = window.open(
1082					url,
1083					'likeconn',
1084					'status=0,toolbar=0,location=1,menubar=0,directories=0,resizable=1,scrollbars=1,height=560,width=500'
1085				);
1086
1087				startPolling();
1088
1089				return false;
1090			}
1091
1092			// Record that the user likes or does not like this comment.
1093			const commentId = getCommentId(target);
1094			target.classList.add('loading');
1095
1096			let commentEl = document.querySelector(`p#comment-like-${commentId}`);
1097			// Determine whether to like or unlike based on whether the comment is
1098			// currently liked.
1099			const action =
1100				commentEl && commentEl.dataset.liked === 'comment-liked'
1101					? 'unlike_comment'
1102					: 'like_comment';
1103			handleLinkAction(target, action, commentId, data => {
1104				// Invalidate the like cache for this comment.
1105				delete commentLikeCache[commentId];
1106
1107				const countEl = document.querySelector(`#comment-like-count-${data.context}`);
1108				if (countEl) {
1109					countEl.innerHTML = data.display;
1110				}
1111
1112				commentEl = document.querySelector(`p#comment-like-${data.context}`);
1113				if (action === 'like_comment') {
1114					commentEl.classList.remove('comment-not-liked');
1115					commentEl.classList.add('comment-liked');
1116					commentEl.dataset.liked = 'comment-liked';
1117				} else {
1118					commentEl.classList.remove('comment-liked');
1119					commentEl.classList.add('comment-not-liked');
1120					commentEl.dataset.liked = 'comment-not-liked';
1121				}
1122
1123				// Prefetch new data for this comment (if there are likers left).
1124				const parent = target.closest('.comment-likes');
1125				const link = parent && parent.querySelector('a.view-likers');
1126				if (link) {
1127					fetchLikeData(link, commentId);
1128				}
1129
1130				target.classList.remove('loading');
1131			});
1132			e.preventDefault();
1133			e.stopPropagation();
1134		});
1135
1136		document.body.addEventListener(
1137			'mouseenter',
1138			function (e) {
1139				if (!e.target.matches('p.comment-likes a.view-likers')) {
1140					return;
1141				}
1142				// Show the user a list of who has liked this comment.
1143
1144				const link = e.target;
1145				if (Number(link.dataset.likeCount || 0) === 0) {
1146					// No one has liked this comment.
1147					return;
1148				}
1149
1150				// Don't hide the overlay.
1151				overlay.cancelHide();
1152
1153				// Get the comment ID.
1154				const container = link.parentElement && link.parentElement.parentElement;
1155				const star = container && container.querySelector('a.comment-like-link');
1156				const commentId = star && getCommentId(star);
1157				relevantComment = commentId;
1158
1159				// Check if the list of likes for this comment is already in
1160				// the cache.
1161				if (commentId in commentLikeCache) {
1162					const entry = commentLikeCache[commentId];
1163					// Only display the likes if the ajax request is
1164					// actually done.
1165					if (entry !== null) {
1166						overlay.showLikes(link, entry);
1167					} else {
1168						// Make sure the overlay is visible (in case
1169						// the user moved the mouse away while loading
1170						// but then came back before it finished
1171						// loading).
1172						overlay.showLoadingMessage(link);
1173					}
1174					return;
1175				}
1176
1177				// Position the "Loading..." overlay.
1178				overlay.showLoadingMessage(link);
1179
1180				// Fetch the data.
1181				fetchLikeData(link, commentId);
1182			},
1183			true
1184		);
1185
1186		document.body.addEventListener(
1187			'mouseleave',
1188			e => {
1189				if (!e.target.matches('p.comment-likes a.view-likers')) {
1190					return;
1191				}
1192				// User has moved cursor away - hide the overlay.
1193				overlay.requestHide();
1194			},
1195			true
1196		);
1197
1198		document.body.addEventListener(
1199			'mouseenter',
1200			e => {
1201				if (!e.target.matches('.comment') || !e.target.querySelector('a.comment-like-link')) {
1202					return;
1203				}
1204				// User is moving over a comment - precache the comment like data.
1205				if (precacheTimeout !== null) {
1206					clearTimeout(precacheTimeout);
1207					precacheTimeout = null;
1208				}
1209
1210				const star = e.target.querySelector('a.comment-like-link');
1211				const parent = star.closest('.comment-likes');
1212				const link = parent && parent.querySelector('a.view-likers');
1213				if (!link || Number(link.dataset.likeCount || 0) === 0) {
1214					// No likes.
1215					return;
1216				}
1217				const commentId = getCommentId(star);
1218				if (commentId in commentLikeCache) {
1219					// Already in cache.
1220					return;
1221				}
1222
1223				precacheTimeout = setTimeout(() => {
1224					precacheTimeout = null;
1225					if (commentId in commentLikeCache) {
1226						// Was cached in the interim.
1227						return;
1228					}
1229					fetchLikeData(link, commentId);
1230				}, 1000);
1231			},
1232			true
1233		);
1234	}
1235
1236	if (document.readyState !== 'loading') {
1237		init();
1238	} else {
1239		document.addEventListener('DOMContentLoaded', init);
1240	}
1241})();
1242;
1243!function(e){var o={};function n(t){if(o[t])return o[t].exports;var r=o[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=o,n.d=function(e,o,t){n.o(e,o)||Object.defineProperty(e,o,{enumerable:!0,get:t})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,o){if(1&o&&(e=n(e)),8&o)return e;if(4&o&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(n.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&o&&"string"!=typeof e)for(var r in e)n.d(t,r,function(o){return e[o]}.bind(null,r));return t},n.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(o,"a",o),o},n.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},n.p="",n(n.s=273)}({273:function(e,o){!function(){"use strict";let e,o;function n(e){return new Promise((o,n)=>{const t=document.createElement("script");t.onload=()=>o(),t.onerror=e=>n(e),t.src=e,document.body.appendChild(t)})}function t(){if(e)return e;const o=window.wpcom_coblocks_js;return e=n(o.coblocks_lightbox_js),e}function r(){if(o)return o;window.wpcomJQueryUsageLoggerDisabled=!0;const e=window.wpcom_coblocks_js,t=window.jQuery?Promise.resolve():n(e.jquery_core_js).then(()=>n(e.jquery_migrate_js)),r=t.then(()=>window.imagesLoaded?Promise.resolve():n(e.imagesloaded_js)),c=t.then(()=>window.Masonry?Promise.resolve():n(e.masonry_js)),u=Promise.all([t,r,c]).then(()=>n(e.coblocks_masonry_js));return o=u,o}function c(){document.querySelector(".wp-block-coblocks-gallery-masonry")&&r(),document.querySelector(".has-lightbox")&&t(),document.body.classList.contains("block-editor-page")&&(r(),t())}"loading"!==document.readyState?c():document.addEventListener("DOMContentLoaded",c)}()}});;
1244( function( $ ) {
1245/**
1246 * Test if an iOS device.
1247 */
1248
1249	function checkiOS() {
1250		return /iPad|iPhone|iPod/.test(navigator.userAgent) && ! window.MSStream;
1251	}
1252
1253	/*
1254	* Test if background-attachment: fixed is supported.
1255	* @link http://stackoverflow.com/questions/14115080/detect-support-for-background-attachment-fixed
1256	*/
1257	function supportsFixedBackground() {
1258		var el = document.createElement('div'),
1259		isSupported;
1260
1261		try {
1262			if ( ! ( 'backgroundAttachment' in el.style ) || checkiOS() ) {
1263				return false;
1264			}
1265			el.style.backgroundAttachment = 'fixed';
1266			isSupported = ( 'fixed' === el.style.backgroundAttachment );
1267			return isSupported;
1268		}
1269
1270		catch (e) {
1271			return false;
1272		}
1273	}
1274
1275	$( document ).ready( function() {
1276		if ( false === supportsFixedBackground() ) {
1277			$( 'body' ).addClass( 'no-background-fixed' );
1278		}
1279	} );
1280
1281} )( jQuery );;
1282/*!
1283Waypoints - 3.1.1
1284Copyright © 2011-2015 Caleb Troughton
1285Licensed under the MIT license.
1286https://github.com/imakewebthings/waypoints/blog/master/licenses.txt
1287*/
1288!function(){"use strict";function t(o){if(!o)throw new Error("No options passed to Waypoint constructor");if(!o.element)throw new Error("No element option passed to Waypoint constructor");if(!o.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+e,this.options=t.Adapter.extend({},t.defaults,o),this.element=this.options.element,this.adapter=new t.Adapter(this.element),this.callback=o.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=t.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=t.Context.findOrCreateByElement(this.options.context),t.offsetAliases[this.options.offset]&&(this.options.offset=t.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),i[this.key]=this,e+=1}var e=0,i={};t.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},t.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},t.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete i[this.key]},t.prototype.disable=function(){return this.enabled=!1,this},t.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},t.prototype.next=function(){return this.group.next(this)},t.prototype.previous=function(){return this.group.previous(this)},t.invokeAll=function(t){var e=[];for(var o in i)e.push(i[o]);for(var n=0,r=e.length;r>n;n++)e[n][t]()},t.destroyAll=function(){t.invokeAll("destroy")},t.disableAll=function(){t.invokeAll("disable")},t.enableAll=function(){t.invokeAll("enable")},t.refreshAll=function(){t.Context.refreshAll()}
vendor: 5,060 bytes, line 1288
1288,t.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},t.viewportWidth=function(){return document.documentElement.clientWidth},t.adapters=[],t.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},t.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=t}(),function(){"use strict";function t(t){window.setTimeout(t,1e3/60)}function e(t){this.element=t,this.Adapter=n.Adapter,this.adapter=new this.Adapter(t),this.key="waypoint-context-"+i,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,o[t.waypointContextKey]=this,i+=1,this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}var i=0,o={},n=window.Waypoint,r=window.onload;e.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.waypoints[e][t.key]=t,this.refresh()},e.prototype.checkEmpty=function(){var t=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical);t&&e&&(this.adapter.off(".waypoints"),delete o[this.key])},e.prototype.createThrottledResizeHandler=function(){function t(){e.handleResize(),e.didResize=!1}var e=this;this.adapter.on("resize.waypoints",function(){e.didResize||(e.didResize=!0,n.requestAnimationFrame(t))})},e.prototype.createThrottledScrollHandler=function(){function t(){e.handleScroll(),e.didScroll=!1}var e=this;this.adapter.on("scroll.waypoints",function(){(!e.didScroll||n.isTouch)&&(e.didScroll=!0,n.requestAnimationFrame(t))})},e.prototype.handleResize=function(){n.Context.refreshAll()},e.prototype.handleScroll=function(){var t={},e={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var i in e){var o=e[i],n=o.newScroll>o.oldScroll,r=n?o.forward:o.backward;for(var s in this.waypoints[i]){var a=this.waypoints[i][s],l=o.oldScroll<a.triggerPoint,h=o.newScroll>=a.triggerPoint,p=l&&h,u=!l&&!h;(p||u)&&(a.queueTrigger(r),t[a.group.id]=a.group)}}for(var c in t)t[c].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},e.prototype.innerHeight=function(){return this.element==this.element.window?n.viewportHeight():this.adapter.innerHeight()},e.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},e.prototype.innerWidth=function(){return this.element==this.element.window?n.viewportWidth():this.adapter.innerWidth()},e.prototype.destroy=function(){var t=[];for(var e in this.waypoints)for(var i in this.waypoints[e])t.push(this.waypoints[e][i]);for(var o=0,n=t.length;n>o;o++)t[o].destroy()},e.prototype.refresh=function(){var t,e=this.element==this.element.window,i=this.adapter.offset(),o={};this.handleScroll(),t={horizontal:{contextOffset:e?0:i.left,contextScroll:e?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:e?0:i.top,contextScroll:e?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}};for(var n in t){var r=t[n];for(var s in this.waypoints[n]){var a,l,h,p,u,c=this.waypoints[n][s],d=c.options.offset,f=c.triggerPoint,w=0,y=null==f;c.element!==c.element.window&&(w=c.adapter.offset()[r.offsetProp]),"function"==typeof d?d=d.apply(c):"string"==typeof d&&(d=parseFloat(d),c.options.offset.indexOf("%")>-1&&(d=Math.ceil(r.contextDimension*d/100))),a=r.contextScroll-r.contextOffset,c.triggerPoint=w+a-d,l=f<r.oldScroll,h=c.triggerPoint>=r.oldScroll,p=l&&h,u=!l&&!h,!y&&p?(c.queueTrigger(r.backward),o[c.group.id]=c.group):!y&&u?(c.queueTrigger(r.forward),o[c.group.id]=c.group):y&&r.oldScroll>=c.triggerPoint&&(c.queueTrigger(r.forward),o[c.group.id]=c.group)}}for(var g in o)o[g].flushTriggers();return this},e.findOrCreateByElement=function(t){return e.findByElement(t)||new e(t)},e.refreshAll=function(){for(var t in o)o[t].refresh()},e.findByElement=function(t){return o[t.waypointContextKey]},window.onload=function(){r&&r(),e.refreshAll()},n.requestAnimationFrame=function(e){var i=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||t;i.call(window,e)},n.Context=e}(),function(){"use strict";function t(t,e){return t.triggerPoint-e.triggerPoint}function e(t,e){return e.triggerPoint-t.triggerPoint}function i(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),o[this.axis][this.name]=this}var o={vertical:{},horizontal:{}},n=window.Waypoint;i.prototype.add=function(t){this.waypoints.push(t)},i.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],r
1288ight:[]}},i.prototype.flushTriggers=function(){for(var i in this.triggerQueues){var o=this.triggerQueues[i],n="up"===i||"left"===i;o.sort(n?e:t);for(var r=0,s=o.length;s>r;r+=1){var a=o[r];(a.options.continuous||r===o.length-1)&&a.trigger([i])}}this.clearTriggerQueues()},i.prototype.next=function(e){this.waypoints.sort(t);var i=n.Adapter.inArray(e,this.waypoints),o=i===this.waypoints.length-1;return o?null:this.waypoints[i+1]},i.prototype.previous=function(e){this.waypoints.sort(t);var i=n.Adapter.inArray(e,this.waypoints);return i?this.waypoints[i-1]:null},i.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},i.prototype.remove=function(t){var e=n.Adapter.inArray(t,this.waypoints);e>-1&&this.waypoints.splice(e,1)},i.prototype.first=function(){return this.waypoints[0]},i.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},i.findOrCreate=function(t){return o[t.axis][t.name]||new i(t)},n.Group=i}(),function(){"use strict";function t(t){this.$element=e(t)}var e=window.jQuery,i=window.Waypoint;e.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(e,i){t.prototype[i]=function(){var t=Array.prototype.slice.call(arguments);return this.$element[i].apply(this.$element,t)}}),e.each(["extend","inArray","isEmptyObject"],function(i,o){t[o]=e[o]}),i.adapters.push({name:"jquery",Adapter:t}),i.Adapter=t}(),function(){"use strict";function t(t){return function(){var i=[],o=arguments[0];return t.isFunction(arguments[0])&&(o=t.extend({},arguments[1]),o.handler=arguments[0]),this.each(function(){var n=t.extend({},o,{element:this});"string"==typeof n.context&&(n.context=t(this).closest(n.context)[0]),i.push(new e(n))}),i}}var e=window.Waypoint;window.jQuery&&(window.jQuery.fn.waypoint=t(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=t(window.Zepto))}();;
1289/**
1290 * navigation.js
1291 *
1292 * Handles toggling the navigation menu for small screens and enables tab
1293 * support for dropdown menus.
1294 */
1295( function( $ ) {
1296	var container, moreMenu, menu, button, links, subMenus;
1297
1298	container = document.getElementById( 'site-navigation' );
1299	if ( ! container ) {
1300		return;
1301	}
1302
1303	// Here, we're going to look for the priority plus menu item to determine if we're on a small screen
1304	moreMenu = document.getElementById( 'more-menu' );
1305	if ( ! moreMenu ) {
1306		return;
1307	}
1308
1309	menu = container.getElementsByTagName( 'ul' )[0];
1310
1311	// If menu is empty, return early.
1312	if ( 'undefined' === typeof menu ) {
1313		return;
1314	}
1315
1316	menu.setAttribute( 'aria-expanded', 'false' );
1317	if ( -1 === menu.className.indexOf( 'nav-menu' ) ) {
1318		menu.className += ' nav-menu';
1319	}
1320
1321	// Get all the link elements within the menu.
1322	links    = menu.getElementsByTagName( 'a' );
1323	subMenus = menu.getElementsByTagName( 'ul' );
1324
1325	/**
1326	 * Toggles `focus` class to allow submenu access on tablets.
1327	 */
1328	( function( container ) {
1329		var toggleNav, i,
1330			parentLink = container.querySelectorAll( '.menu-item-has-children > a, .page_item_has_children > a' );
1331
1332		toggleNav = function( e ) {
1333			var menuItem = this.parentNode, i;
1334
1335			if ( ! menuItem.classList.contains( 'focus' ) ) {
1336				e.preventDefault();
1337				for ( i = 0; i < menuItem.parentNode.children.length; ++i ) {
1338					if ( menuItem === menuItem.parentNode.children[i] ) {
1339						continue;
1340					}
1341					menuItem.parentNode.children[i].classList.remove( 'focus' );
1342				}
1343				menuItem.classList.add( 'focus' );
1344			} else {
1345				menuItem.classList.remove( 'focus' );
1346			}
1347		};
1348
1349		for ( i = 0; i < parentLink.length; ++i ) {
1350			parentLink[i].addEventListener( ( 'ontouchstart' in window ? 'touchstart' : 'click' ), toggleNav, false );
1351		}
1352	}( container ) );
1353
1354} )( jQuery );
1355;
1356( function() {
1357	var is_webkit = navigator.userAgent.toLowerCase().indexOf( 'webkit' ) > -1,
1358	    is_opera  = navigator.userAgent.toLowerCase().indexOf( 'opera' ) > -1,
1359	    is_ie     = navigator.userAgent.toLowerCase().indexOf( 'msie' ) > -1;
1360
1361	if ( ( is_webkit || is_opera || is_ie ) && document.getElementById && window.addEventListener ) {
1362		window.addEventListener( 'hashchange', function() {
1363			var id = location.hash.substring( 1 ),
1364				element;
1365
1366			if ( ! ( /^[A-z0-9_-]+$/.test( id ) ) ) {
1367				return;
1368			}
1369
1370			element = document.getElementById( id );
1371
1372			if ( element ) {
1373				if ( ! ( /^(?:a|select|input|button|textarea)$/i.test( element.tagName ) ) ) {
1374					element.tabIndex = -1;
1375				}
1376
1377				element.focus();
1378			}
1379		}, false );
1380	}
1381})();
1382;
1383/**
1384 * Header enhancements for more intelligent dynamic headers.
1385 *
1386 * This sets the masthead to the height of an uploaded image and applies sticky navigation.
1387 */
1388
1389( function( $ ) {
1390
1391	// Fit header into the available space
1392	function fitHeader() {
1393		var windowWidth = $( window ).width();
1394		var headerHeight = $( '#pique-header-image' ).height();
1395		var navHeight = $( '#primary-menu' ).height();
1396		var brandingHeight = $( '.site-branding' ).height();
1397
1398		// Make sure we're not on the homepage, since that handles stuff differently
1399		if ( ! $( 'body' ).hasClass( 'pique-frontpage' )) {
1400			if ( 0 < $( '#pique-header-image' ).length ) {
1401				// Add the height of our header image and the height of our nav
1402				$( '#masthead' ).css( 'height', headerHeight + navHeight );
1403			} else {
1404				// Give enough room for our branding
1405				console.log('no header');
1406				$( '#masthead' ).css( 'height', brandingHeight + navHeight + 40 );
1407			}
1408		}
1409	};
1410
1411	// Priority+ navigation, whee!
1412	function priorityNav() {
1413		// Make sure we have a menu and that the more-more item is present
1414		if ( 0 < $( '#site-navigation' ).length && 0 < $( '#more-menu' ).length ) {
1415			var navWidth = 0;
1416			var firstMoreElement = $( '#more-menu li' ).first();
1417
1418			// Calculate the width of our "more" containing element
1419			var moreWidth = $( '#more-menu' ).outerWidth( true );
1420
1421			// Calculate the current width of our navigation
1422			$( '#site-navigation .menu > li' ).each( function() {
1423				navWidth += $( this ).outerWidth( true );
1424			});
1425
1426			// Calculate our available space
1427			var availableSpace = $( '#site-navigation' ).outerWidth( true ) - moreWidth;
1428
1429			// If our nav is wider than our available space, we're going to move items
1430			if (navWidth > availableSpace) {
1431				var lastItem = $( '#site-navigation .menu > li:not(#more-menu)' ).last();
1432				lastItem.attr( 'data-width', lastItem.outerWidth( true ) );
1433				lastItem.prependTo( $( '#more-menu .sub-menu' ).eq( 0 ) );
1434				priorityNav(); // Rerun this function!
1435
1436				// But if we have the extra space, we should add the items back to our menu
1437			} else if (navWidth + firstMoreElement.data( 'width' ) < availableSpace) {
1438				// Check to be sure there's enough space for our extra element
1439				firstMoreElement.insertBefore( $( '#site-navigation .menu > li' ).last() );
1440				priorityNav();
1441			}
1442
1443			// Hide our more-menu entirely if there's nothing in it
1444			if ($( '#more-menu li' ).length > 0) {
1445				$( '#more-menu' ).addClass( 'visible' );
1446			} else {
1447				$( '#more-menu' ).removeClass( 'visible' );
1448			}
1449		} // check for body class
1450	}; // function priorityNav
1451
1452	// Okay, now we want to stick-ify our menu when we reach it
1453	function stickyNav() {
1454		var nav_container = $( '#site-navigation-wrapper' );
1455		var nav = $( '#site-navigation' );
1456
1457		nav_container.waypoint( {
1458			handler: function(direction) {
1459				nav.toggleClass( 'sticky', direction == 'down' );
1460
1461				// Ensure we don't have an awkward jump when the menu sticks
1462				if ('down' === direction) {
1463					nav_container.css( { 'height':nav.outerHeight() } );
1464				} else {
1465					nav_container.css( { 'height':'auto' } );
1466				}
1467			}
1468		});
1469	};
1470
1471	// Run our functions once the window has loaded fully
1472	$( window ).on( 'load', function() {
1473		priorityNav();
1474		fitHeader();
1475		stickyNav();
1476	});
1477
1478	// Annnnnd also every time the window resizes
1479	var isResizing = false;
1480	$( window ).on('resize', function() {
1481		if (isResizing) {
1482			return;
1483		}
1484
1485		isResizing = true;
1486		setTimeout(function() {
1487			priorityNav();
1488			fitHeader();
1489			isResizing = false;
1490		}, 150);
1491	});
1492
1493} )( jQuery );
1494;
1495/**
1496 * Copyright (c) 2007-2015 Ariel Flesler - aflesler<a>gmail<d>com | http://flesler.blogspot.com
1497 * Licensed under MIT
1498 * @author Ariel Flesler
1499 * @version 2.1.2
1500 */
1501;(function(f){"use strict";"function"===typeof define&&define.amd?define(["jquery"],f):"undefined"!==typeof module&&module.exports?module.exports=f(require("jquery")):f(jQuery)})(function($){"use strict";function n(a){return!a.nodeName||-1!==$.inArray(a.nodeName.toLowerCase(),["iframe","#document","html","body"])}function h(a){return $.isFunction(a)||$.isPlainObject(a)?a:{top:a,left:a}}var p=$.scrollTo=function(a,d,b){return $(window).scrollTo(a,d,b)};p.defaults={axis:"xy",duration:0,limit:!0};$.fn.scrollTo=function(a,d,b){"object"=== typeof d&&(b=d,d=0);"function"===typeof b&&(b={onAfter:b});"max"===a&&(a=9E9);b=$.extend({},p.defaults,b);d=d||b.duration;var u=b.queue&&1<b.axis.length;u&&(d/=2);b.offset=h(b.offset);b.over=h(b.over);return this.each(function(){function k(a){var k=$.extend({},b,{queue:!0,duration:d,complete:a&&function(){a.call(q,e,b)}});r.animate(f,k)}if(null!==a){var l=n(this),q=l?this.contentWindow||window:this,r=$(q),e=a,f={},t;switch(typeof e){case "number":case "string":if(/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(e)){e= h(e);break}e=l?$(e):$(e,q);case "object":if(e.length===0)return;if(e.is||e.style)t=(e=$(e)).offset()}var v=$.isFunction(b.offset)&&b.offset(q,e)||b.offset;$.each(b.axis.split(""),function(a,c){var d="x"===c?"Left":"Top",m=d.toLowerCase(),g="scroll"+d,h=r[g](),n=p.max(q,c);t?(f[g]=t[m]+(l?0:h-r.offset()[m]),b.margin&&(f[g]-=parseInt(e.css("margin"+d),10)||0,f[g]-=parseInt(e.css("border"+d+"Width"),10)||0),f[g]+=v[m]||0,b.over[m]&&(f[g]+=e["x"===c?"width":"height"]()*b.over[m])):(d=e[m],f[g]=d.slice&& "%"===d.slice(-1)?parseFloat(d)/100*n:d);b.limit&&/^\d+$/.test(f[g])&&(f[g]=0>=f[g]?0:Math.min(f[g],n));!a&&1<b.axis.length&&(h===f[g]?f={}:u&&(k(b.onAfterFirst),f={}))});k(b.onAfter)}})};p.max=function(a,d){var b="x"===d?"Width":"Height",h="scroll"+b;if(!n(a))return a[h]-$(a)[b.toLowerCase()]();var b="client"+b,k=a.ownerDocument||a.document,l=k.documentElement,k=k.body;return Math.max(l[h],k[h])-Math.min(l[b],k[b])};$.Tween.propHooks.scrollLeft=$.Tween.propHooks.scrollTop={get:function(a){return $(a.elem)[a.prop]()}, set:function(a){var d=this.get(a);if(a.options.interrupt&&a._last&&a._last!==d)return $(a.elem).stop();var b=Math.round(a.now);d!==b&&($(a.elem)[a.prop](b),a._last=this.get(a))}};return p});;
1502( function( $ ) {
1503
1504	/*
1505	* Since we've absolutely positioned the header (so it sits on top of the background
1506	* set for our hero panel), we're going to need to adjust the margin of our hero's
1507	* entry-content so it fits correctly in the available space.
1508	*/
1509	function adjustHero() {
1510		var piqueHeaderHeight = $( '#masthead' ).height();
1511		var piqueHeroContent = $( '#pique-hero' ).find( '.pique-panel-content' );
1512		$( piqueHeroContent ).css( 'padding-top', piqueHeaderHeight );
1513	}
1514
1515	// Normalize a URL for comparison: strip protocol, trailing slash, and lowercase.
1516	function normalizeUrl( url ) {
1517		if ( ! url ) {
1518			return '';
1519		}
1520		return url.replace( /^https?:/i, '' ).replace( /\/+$/, '' ).toLowerCase();
1521	}
1522
1523	/*
1524	* Tag each menu link that points to a panel page with a `data-pique-anchor`
1525	* attribute referencing the in-page panel ID. This lets us match the active
1526	* panel to a menu item even when the menu uses page permalinks rather than
1527	* hash anchors.
1528	*/
1529	function tagPanelLinks( $sections, $navLinks ) {
1530		$sections.each( function() {
1531			var panelUrl = $( this ).attr( 'data-panel-url' );
1532			if ( ! panelUrl ) {
1533				return;
1534			}
1535			var anchor = '#' + this.id;
1536			var normalized = normalizeUrl( panelUrl );
1537			$navLinks.each( function() {
1538				if ( normalizeUrl( this.href ) === normalized ) {
1539					$( this ).attr( 'data-pique-anchor', anchor );
1540				}
1541			} );
1542		} );
1543	}
1544
1545	/*
1546	* We're going to use the Waypoints and ScrollTo libraries to build a dynamic menu.
1547	* This will animate a scroll effect to and from panels in the page as well as
1548	* highlighting the current panel in the nav menu.
1549	*/
1550	function dynamicNav() {
1551		var $sections = $( '.pique-panel' );
1552		var $navLinks = $( '#site-navigation li a' );
1553		var $primaryMenu = $( '#primary-menu' );
1554		var $adminBar = $( '#wpadminbar' );
1555
1556		tagPanelLinks( $sections, $navLinks );
1557
1558		// Find the menu link that targets a given panel, by either hash href or tagged anchor.
1559		function findActiveLink( panelID ) {
1560			var anchor = '#' + panelID;
1561			return $navLinks.filter( function() {
1562				return $( this ).attr( 'href' ) === anchor || $( this ).attr( 'data-pique-anchor' ) === anchor;
1563			} ).parent( 'li' );
1564		}
1565
1566		// Use the Waypoints plugin to indicate our current nav item
1567		$sections.waypoint( {
1568			handler: function( direction ) {
1569				var activePanel = this;
1570				var panelID = activePanel.element.id;
1571
1572				// If we're scrolling up, set the previous panel as our current panel.
1573				// This just means that, when we hit to top of a panel (bottom of a new panel)
1574				// we'll highlight the correct panel. Wheee!
1575				if ( 'up' === direction ) {
1576					var previousIndex = $sections.index( activePanel.element ) - 1;
1577					if ( previousIndex >= 0 ) {
1578						panelID = $sections.eq( previousIndex ).attr( 'id' );
1579					}
1580				}
1581
1582				// Remove any existing classes
1583				$navLinks.parents( 'li' ).removeClass( 'current_page_item' );
1584
1585				// Don't show any highlight for our parent nav
1586				if ( 'pique-hero' === panelID ) {
1587					return;
1588				}
1589
1590				// Highlight the currently active panel by adding a CSS class
1591				findActiveLink( panelID ).addClass( 'current_page_item' );
1592
1593			},
1594			offset: '110px'
1595		});
1596
1597		// Use scrollTo library to smoothly scroll between panels.
1598		// Note that the admin bar lenght is only taken into consideration on screen size > 480px, when it becomes fixed.
1599		// Also, we take into account he height of the primary menu after 768px.
1600		$navLinks.click( function( event ) {
1601			var $link = $( this );
1602			var target = $link.attr( 'data-pique-anchor' ) || $link.attr( 'href' );
1603
1604			// Only intercept clicks that target an in-page panel.
1605			if ( ! target || target.charAt( 0 ) !== '#' || target.length < 2 ) {
1606				return;
1607			}
1608			if ( ! document.getElementById( target.slice( 1 ) ) ) {
1609				return;
1610			}
1611
1612			event.preventDefault();
1613
1614			// Highlight the clicked item ourselves — the scroll can land just short
1615			// of the waypoint trigger, so we can't rely on a crossing to fire here.
1616			// Apply it immediately for instant feedback, and again after the
1617			// animation, because waypoints crossed mid-flight re-highlight in between.
1618			var highlightTarget = function() {
1619				$navLinks.parents( 'li' ).removeClass( 'current_page_item' );
1620				if ( 'pique-hero' !== target.slice( 1 ) ) {
1621					$link.parent( 'li' ).addClass( 'current_page_item' );
1622				}
1623			};
1624			highlightTarget();
1625
1626			var yCoord = ( 1 === $adminBar.length && $( window ).outerWidth() > 480 ) ? $adminBar.outerHeight() : 0;
1627			var offset = $( window ).outerWidth() > 768 ? $primaryMenu.outerHeight() : 0;
1628			$.scrollTo( target, {
1629				duration: 400,
1630				offset: { 'top': -1 * ( yCoord + offset ) },
1631				onAfter: highlightTarget
1632			} );
1633		});
1634	}
1635
1636	// Run our functions on document load
1637	$( window ).on( 'load', function() {
1638		adjustHero();
1639		dynamicNav();
1640	});
1641
1642	// Annnnnd re-run the hero adjustment every time the window resizes
1643	var isResizing = false;
1644	$( window ).on('resize', function() {
1645		if (isResizing) {
1646			return;
1647		}
1648
1649		isResizing = true;
1650		setTimeout(function() {
1651			adjustHero();
1652			isResizing = false;
1653		}, 150);
1654	});
1655
1656} )( jQuery );
1657;
1658!function(){"use strict";var e,t={noop:function(){}
1658,texturize:function(e){return(e=(e=(e=(e+="").replace(/'/g,"&#8217;").replace(/&#039;/g,"&#8217;")).replace(/"/g,"&#8221;").replace(/&#034;/g,"&#8221;").replace(/&quot;/g,"&#8221;").replace(/[\u201D]/g,"&#8221;")).replace(/([\w]+)=&#[\d]+;(.+?)&#[\d]+;/g,'$1="$2"')).trim()},applyReplacements:function(e,t){if(e)return t?e.replace(/{(\d+)}/g,function(e,r){return void 0!==t[r]?t[r]:e}):e},getBackgroundImage:function(e){var t=document.createElement("canvas"),r=t.getContext&&t.getContext("2d");if(e){r.filter="blur(20px) ",r.drawImage(e,0,0);var o=t.toDataURL("image/png");return t=null,o}}},r=function(){function e(e,t){return Element.prototype.matches?e.matches(t):Element.prototype.msMatchesSelector?e.msMatchesSelector(t):void 0}function r(e,t,r,o){if(!e)return o();e.jpCarouselCancelFade&&e.jpCarouselCancelFade(),e.classList.remove("jp-carousel-fade"),e.style.removeProperty("display"),e.style.opacity=t,e.style.pointerEvents="none",e.offsetWidth,e.classList.add("jp-carousel-fade"),e.style.opacity=r;var a=1e3*parseFloat(getComputedStyle(e).transitionDuration)||0,n=setTimeout(function(){e.jpCarouselCancelFade=null,e.style.removeProperty("pointer-events"),o()},a+50);e.jpCarouselCancelFade=function(){clearTimeout(n),e.jpCarouselCancelFade=null}}return{closest:function(t,r){if(t.closest)return t.closest(r);var o=t;do{if(e(o,r))return o;o=o.parentElement||o.parentNode}while(null!==o&&1===o.nodeType);return null},matches:e,hide:function(e){e&&(e.style.display="none")},show:function(e){e&&(e.style.display="block")},fadeIn:function(e,o){r(e,0,1,o=o||t.noop)},fadeOut:function(e,o){o=o||t.noop,r(e,1,0,function(){e&&(e.style.display="none"),o()})},scrollToElement:function(e,t,r){if(!e||!t)return r?r():void 0;var o=t.querySelector(".jp-carousel-info-extra");o&&(o.style.minHeight=window.innerHeight-64+"px");var a=!0,n=Date.now(),i=t.scrollTop,l=Math.max(0,e.offsetTop-Math.max(0,window.innerHeight-function(e){var t=e.querySelector(".jp-carousel-info-footer"),r=e.querySelector(".jp-carousel-info-extra"),o=e.querySelector(".jp-carousel-info-content-wrapper");if(t&&r&&o){var a=window.getComputedStyle(r),n=parseInt(a.paddingTop,10)+parseInt(a.paddingBottom,10);return n=isNaN(n)?0:n,o.offsetHeight+t.offsetHeight+n}return 0}(t)))-t.scrollTop;function s(){a=!1}l=Math.min(l,t.scrollHeight-window.innerHeight),t.addEventListener("wheel",s),function e(){var c,u=Date.now(),d=(c=(u-n)/300)<.5?2*c*c:1-Math.pow(-2*c+2,2)/2,m=(d=d>1?1:d)*l;if(t.scrollTop=i+m,u<=n+300&&a)return requestAnimationFrame(e);r&&r(),o&&(o.style.minHeight=""),a=!1,t.removeEventListener("wheel",s)}()},getJSONAttribute:function(e,t){if(e&&e.hasAttribute(t))try{return JSON.parse(e.getAttribute(t))}catch{return}},convertToPlainText:function(e){var t=document.createElement("div");return t.textContent=e,t.innerHTML},stripHTML:function(e){var t=document.createElement("div");return t.innerHTML=e.replace(/<[^>]*>?/gm,""),t.textContent},emitEvent:function(e,t,r){var o;try{o=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:r||null})}catch{(o=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,r||null)}e.dispatchEvent(o)},isTouch:function(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch},prefersReducedMotion:function(){return!!window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches}}}();function o(){var o,a,n,i,l={},s={},c="",u=!1,d="div.gallery, div.tiled-gallery, ul.wp-block-gallery, ul.blocks-gallery-grid, figure.wp-block-gallery.has-nested-images, div.wp-block-jetpack-tiled-gallery, a.single-image-gallery",m=".gallery-item, .tiled-gallery-item, .blocks-gallery-item,  .tiled-gallery__item",p=m+", .wp-block-image",g={},h="undefined"!=typeof wpcom&&wpcom.carousel&&wpcom.carousel.stat?wpcom.carousel.stat:t.noop,f="undefined"!=typeof wpcom&&wpcom.carousel&&wpcom.carousel.pageview?wpcom.carousel.pageview:t.noop;function v(t){if(!u)switch(t.which){case 38:t.preventDefault(),g.overlay.scrollTop-=100;break;case 40:t.preventDefault(),g.overlay.scrollTop+=100;break;case 39:t.preventDefault(),e.slideNext();break;case 37:case 8:t.preventDefault(),e.slidePrev();break;case 27:t.preventDefault(),k()}}function y(){u=!0}function w(){u=!1}function S(e){e.role="button",e.tabIndex=0,e.ariaLabel=jetpackCarouselStrings.image_label}function j(){g.overlay||(g.overlay=document.querySelector(".jp-carousel-overlay"),g.container=g.overlay.querySelector(".jp-carousel-wrap"),g.gallery=g.container.querySelector(".jp-carousel"),g.info=g.overlay.querySelector(".jp-carousel-info"),g.caption=g.
1658info.querySelector(".jp-carousel-caption"),g.commentField=g.overlay.querySelector("#jp-carousel-comment-form-comment-field"),g.emailField=g.overlay.querySelector("#jp-carousel-comment-form-email-field"),g.authorField=g.overlay.querySelector("#jp-carousel-comment-form-author-field"),g.urlField=g.overlay.querySelector("#jp-carousel-comment-form-url-field"),window.innerWidth<=760&&Math.round(window.innerWidth/760*110)<40&&r.isTouch(),[g.commentField,g.emailField,g.authorField,g.urlField].forEach(function(e){e&&(e.addEventListener("focus",y),e.addEventListener("blur",w))}),g.overlay.addEventListener("click",function(e){var t,o,a=e.target,n=!!r.closest(a,".jp-carousel-close-hint"),i=!!window.matchMedia("(max-device-width: 760px)").matches;a===g.overlay?i||k():n?k():a.classList.contains("jp-carousel-image-download")?h("download_original_click"):a.classList.contains("jp-carousel-comment-login")?(t=g.currentSlide,o=t?t.attrs.attachmentId:"0",window.location.href=jetpackCarouselStrings.login_url+"%23jp-carousel-"+o):r.closest(a,"#jp-carousel-comment-form-container")?function(e){var t=e.target,o=r.getJSONAttribute(g.container,"data-carousel-extra")||{},a=g.currentSlide.attrs.attachmentId,n=document.querySelector("#jp-carousel-comment-form-submit-and-info-wrapper"),i=document.querySelector("#jp-carousel-comment-form-spinner"),s=document.querySelector("#jp-carousel-comment-form-button-submit"),c=document.querySelector("#jp-carousel-comment-form");if(g.commentField&&g.commentField.getAttribute("id")===t.getAttribute("id"))y(),r.show(n);else if(r.matches(t,'input[type="submit"]')){e.preventDefault(),e.stopPropagation(),r.show(i),c.classList.add("jp-carousel-is-disabled");var u={action:"post_attachment_comment",nonce:jetpackCarouselStrings.nonce,blog_id:o.blog_id,id:a,comment:g.commentField.value};if(!u.comment.length)return void b(jetpackCarouselStrings.no_comment_text,!1);if(1!==Number(jetpackCarouselStrings.is_logged_in)&&(u.email=g.emailField.value,u.author=g.authorField.value,u.url=g.urlField.value,1===Number(jetpackCarouselStrings.require_name_email))){if(!u.email.length||!u.email.match("@"))return void b(jetpackCarouselStrings.no_comment_email,!1);if(!u.author.length)return void b(jetpackCarouselStrings.no_comment_author,!1)}var d=new XMLHttpRequest;d.open("POST",jetpackCarouselStrings.ajaxurl,!0),d.setRequestHeader("X-Requested-With","XMLHttpRequest"),d.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),d.onreadystatechange=function(){if(this.readyState===XMLHttpRequest.DONE&&this.status>=200&&this.status<300){var e;try{e=JSON.parse(this.response)}catch{return void b(jetpackCarouselStrings.comment_post_error,!1)}if("approved"===e.comment_status){b(jetpackCarouselStrings.comment_approved,!0);var t=function(e){for(var t=0;t<g.slides.length;t++)if(g.slides[t].attrs.attachmentId===e)return g.slides[t];return null}(a);t&&(t.attrs.commentsCount=(parseInt(t.attrs.commentsCount,10)||0)+1)}else"unapproved"===e.comment_status?b(jetpackCarouselStrings.comment_unapproved,!0):b(jetpackCarouselStrings.comment_post_error,!1);W(),delete l[a],_(a,void 0,!0),s.value=jetpackCarouselStrings.post_comment,r.hide(i),c.classList.remove("jp-carousel-is-disabled")}else b(jetpackCarouselStrings.comment_post_error,!1)};var m=[];for(var p in u)if(p){var h=encodeURIComponent(p)+"="+encodeURIComponent(u[p]);m.push(h.replace(/%20/g,"+"))}var f=m.join("&");d.send(f)}}(e):(r.closest(a,".jp-carousel-photo-icons-container")||a.classList.contains("jp-carousel-photo-title"))&&function(e){e.preventDefault();var t=e.target,o=g.info.querySelector(".jp-carousel-info-extra"),a=g.info.querySelector(".jp-carousel-image-meta"),n=g.info.querySelector(".jp-carousel-comments-wrapper"),i=g.info.querySelector(".jp-carousel-icon-info"),s=g.info.querySelector(".jp-carousel-icon-comments");function c(){s&&s.classList.remove("jp-carousel-selected"),i.classList.toggle("jp-carousel-selected"),n&&n.classList.remove("jp-carousel-show"),a&&(a.classList.toggle("jp-carousel-show"),a.classList.contains("jp-carousel-show")?o.classList.add("jp-carousel-show"):o.classList.remove("jp-carousel-show"))}function u(){if(i&&i.classList.remove("jp-carousel-selected"),s.classList.toggle("jp-carousel-selected"),a&&a.classList.remove("jp-carousel-show"),n)if(n.classList.toggle("jp-carousel-show"),n.classList.contains("jp-carousel-show")){o.classList.add("jp-carousel-show");var e=g.currentSlide;if(e){var t=l[e.attrs.attachmentId];t?t.hasMore&&T(e.attrs.attachmentId,t.nextOffset):_(e.attrs.attachmentId)}}else o.classList.remove("jp-carousel-show")}(r.closest(t,".jp-carousel-icon-info")||t.classList.contains("jp-carousel-photo-title"))&&(a&&a.classList.contains("jp-carousel-show")?r.scrollToElement(g.overlay,g.overlay,c):(c(),r.scrollToElement(g.info,g.overlay))),r.closest(t,".jp-carousel-icon-comments")&&(n&&n.classList.contains("jp-carousel-show")?r.scrollToElement(g.overlay,g.overlay,u):(u(),r.scrollToElement(g.info,g.overlay)))}(e)}),window.addEventListener("keydown",v),g.overlay.addEventListener("jp_carousel.afterOpen",function(){w(),g.slides.length<=1||(g.slides.length<=5?r.show(g.info.querySelector(".jp-swiper-pagination")):r.show(g.info.querySelector(".jp-carousel-pagination")))}),g.overlay.addEventListener("jp_carousel.beforeClose",function(){y(),document.documentElement.style.removeProperty("height"),e&&e.enable(),r.hide(g.info.querySelector(".jp-swiper-pagination")),r.hide(g.info.querySelector(".jp-carousel-pagination"))}),g.overlay.addEventListener("jp_carousel.afterClose",function(){window.history.pushState?history.pushState("",document.title,window.location.pathname+window.location.search):window.location.href="",c="",g.isOpen=!1}),g.overlay.addEventListener("touchstart",function(e){e.touches.length>1&&e.preventDefault()}))}function b(e,t){var o=g.overlay.querySelector("#jp-carousel-comment-post-results"),a="jp-carousel-comment-post-"+(t?"success":"error");o.innerHTML='<span class="'+a+'">'+e+"</span>",r.hide(g.overlay.querySelector("#jp-carousel-comment-form-spinner")),g.overlay.querySelector("#jp-carousel-comment-form").classList.remove("jp-carousel-is-disabled"),r.show(o)}function L(){var e=document.querySelectorAll("a img[data-attachment-id]");Array.prototype.forEach.call(e,function(e){var t=e.parentElement,o=t.parentElement;if(!o.classList.contains("gallery-icon")&&!r.closest(o,m)&&t.hasAttribute("href")){var a=!1;t.getAttribute("href").split("?")[0]===e.getAttribute("data-orig-file").split("?")[0]&&1===Number(jetpackCarouselStrings.single_image_gallery_media_file)&&(a=!0),t.getAttribute("href")===e.getAttribute("data-permalink")&&(a=!0),a&&(S(e),t.classList.add("single-image-gallery"),t.setAttribute("data-carousel-extra",JSON.stringify({blog_id:Number(jetpackCarouselStrings.blog_id)})))}})}function x(t,r){g.isOpen?(C(r),e.slideTo(r+1)):z(t,{startIndex:r})}function C(e){(!e||e<0||e>g.slides.length)&&(e=0),g.currentSlide=g.slides[e];var a,n,i=g.currentSlide,s=i.attrs.attachmentId;M(g.slides[e]),function(e){var t=[],r=g.slides.length;if(r>1){var o=e>0?e-1:r-1;t.push(o);var a=e<r-1?e+1:0;t.push(a)}t.forEach(function(e){var t=g.slides[e];t&&(M(t),1!==Number(jetpackCarouselStrings.display_background_image)||t.backgroundImage||F(t))})}(e),1!==Number(jetpackCarouselStrings.display_background_image)||g.slides[e].backgroundImage||F(g.slides[e]),r.hide(g.caption),function(e){var t,o,a,n,i,l,s;if(n=g.overlay.querySelector(".jp-carousel-photo-caption"),i=g.overlay.querySelector(".jp-carousel-caption"),l=g.overlay.querySelector(".jp-carousel-photo-title"),s=g.overlay.querySelector(".jp-carousel-photo-description"),r.hide(n),r.hide(i),r.hide(l),r.hide(s),t=A(e.caption)||"",o=A(e.title)||"",a=A(e.desc)||"",(t||o||a)&&(t&&(n.innerHTML=t,i.innerHTML=t,r.show(n),r.show(i)),r.stripHTML(t)===r.stripHTML(o)&&(o=""),r.stripHTML(t)===r.stripHTML(a)&&(a=""),r.stripHTML(o)===r.stripHTML(a)&&(a=""),a&&(s.innerHTML=a,r.show(s),o||t||(n.textContent=r.stripHTML(a),r.show(n))),o)){var c=r.stripHTML(o);l.textContent=c,t||(n.textContent=c,i.textContent=c,r.show(n)),r.show(l)}}
1658({caption:i.attrs.caption,title:i.attrs.title,desc:i.attrs.desc}),function(e){if(!e||1!==Number(jetpackCarouselStrings.display_exif))return!1;var t=g.info.querySelector(".jp-carousel-image-meta");if(!t)return!1;var r="";for(var o in e){var a=e[o],n=jetpackCarouselStrings.meta_data||[];if(0!==parseFloat(a)&&a.length&&-1!==n.indexOf(o)){switch(o){case"focal_length":a+="mm";break;case"shutter_speed":a=E(a);break;case"aperture":a="f/"+a}r+="<li><h5>"+jetpackCarouselStrings[o]+"</h5>"+a+"</li>"}}var i=t.querySelector("ul.jp-carousel-image-exif");if(""!==r){if(!i){(i=document.createElement("ul")).className="jp-carousel-image-exif";var l=t.querySelector(".jp-carousel-title-and-caption");l&&l.nextSibling?t.insertBefore(i,l.nextSibling):t.insertBefore(i,t.firstChild)}i.innerHTML=r,i.style.removeProperty("display")}else i&&i.parentNode.removeChild(i)}(g.slides[e].attrs.imageMeta),function(e){if(!e)return!1;var r,o=[e.attrs.origWidth,e.attrs.origHeight],a=document.createElement("a");a.href=e.attrs.src.replace(/\?.+$/,""),r=null!==a.hostname.match(/^i[\d]{1}\.wp\.com$/i)?a.href:e.attrs.origFile.replace(/\?.+$/,"");var n=g.info.querySelector(".jp-carousel-download-text"),i=g.info.querySelector(".jp-carousel-image-download");n.innerHTML=t.applyReplacements(jetpackCarouselStrings.download_original,o),i.setAttribute("href",r),i.style.removeProperty("display")}(i),1===Number(jetpackCarouselStrings.display_comments)&&(a=g.slides[e].attrs.commentsOpened,n=g.info.querySelector("#jp-carousel-comment-form-container"),1===parseInt(a,10)?r.fadeIn(n):r.fadeOut(n),function(e){var t=e.attrs.attachmentId,a=g.info.querySelector(".jp-carousel-comments"),n=l[t];if(clearInterval(o),r.hide(g.info.querySelector("#jp-carousel-comments-loading")),n)return a.innerHTML=n.html,H(n.count),r.show(a),void(n.hasMore&&I()&&T(t,n.nextOffset));a.innerHTML="",r.hide(a),H(parseInt(e.attrs.commentsCount,10)||0),I()&&_(t)}(i),r.hide(g.info.querySelector("#jp-carousel-comment-post-results")));var u=g.info.querySelector(".jp-carousel-pagination");if(u&&g.slides.length>5){var d=e+1;u.innerHTML="<span>"+d+" / "+g.slides.length+"</span>"}jetpackCarouselStrings.stats&&g.isOpen&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?"+jetpackCarouselStrings.stats+"&post="+encodeURIComponent(s)+"&rand="+Math.random()),g.isOpen&&f(s),c="#jp-carousel-"+s,window.location.hash=c}function k(){document.body.style.overflow=a,document.documentElement.style.overflow=n,W(),y(),r.emitEvent(g.overlay,"jp_carousel.beforeClose"),window.scrollTo(window.scrollX||window.pageXOffset||0,i||0),g.isOpen=!1,e.destroy(),g.slides=[],l={},s={},g.currentSlide=void 0,g.gallery.innerHTML="",r.fadeOut(g.overlay,function(){r.emitEvent(g.overlay,"jp_carousel.afterClose")})}function q(e){if("object"!=typeof e&&(e={}),void 0===e.origFile)return"";if(void 0===e.origWidth||void 0===e.maxWidth)return e.origFile;if(!e.largeFile)return e.origFile;var t=document.createElement("a");t.href=e.largeFile;var r=/^i[0-2]\.wp\.com$/i.test(t.hostname),o=function(e,t,r){var o,a=r?e.replace(/.*=([\d]+%2C[\d]+).*$/,"$1"):e.replace(/.*-([\d]+x[\d]+)\..+$/,"$1");return"9999"===(o=a!==e?r?a.split("%2C"):a.split("x"):[t,0])[0]&&(o[0]="0"),"9999"===o[1]&&(o[1]="0"),o}(e.largeFile,e.origWidth,r),a=parseInt(o[0],10),n=parseInt(o[1],10);e.origMaxWidth=e.maxWidth,e.origMaxHeight=e.maxHeight,void 0!==window.devicePixelRatio&&window.devicePixelRatio>1&&(e.maxWidth=e.maxWidth*window.devicePixelRatio,e.maxHeight=e.maxHeight*window.devicePixelRatio);var i=e.zoomHeadroom||1;if(i>1&&(e.maxWidth=e.maxWidth*i,e.maxHeight=e.maxHeight*i),a>=e.maxWidth||n>=e.maxHeight)return e.largeFile;if(r){if(-1===e.largeFile.lastIndexOf("?"))return e.largeFile;var l=function(e){var t;try{t=new URL(e)}catch(t){return e}var r=["quality","ssl","filter","brightness","contrast","colorize","smooth"],o=Array.from(t.searchParams.entries());return t.search="",o.forEach(([e,o])=>{r.includes(e)&&t.searchParams.append(e,o)}),t}(e.largeFile);return(e.origWidth>e.maxWidth||e.origHeight>e.maxHeight)&&(e.origMaxWidth=e.maxWidth,e.origMaxHeight=e.maxHeight,l.searchParams.set("fit",e.origMaxWidth+","+e.origMaxHeight)),l.toString()}return e.origFile}function E(e){return e>=1?Math.round(10*e)/10+"s":"1/"+Math.round(1/e)+"s"}
1658function A(e){return!e.match(" ")&&e.match("_")?"":e}function I(){var e=g.info.querySelector(".jp-carousel-comments-wrapper");return!!e&&e.classList.contains("jp-carousel-show")}function H(e){var t=g.info.querySelector(".jp-carousel-icon-comments .jp-carousel-has-comments-indicator");t&&(e>0?(t.innerText=e,t.classList.add("jp-carousel-show")):t.classList.remove("jp-carousel-show"))}function T(e,t){clearInterval(o),o=setInterval(function(){g.container.scrollTop+150>window.innerHeight&&(clearInterval(o),_(e,t))},300)}function _(e,t,a){var n=void 0===t;if(clearInterval(o),e&&g.currentSlide&&g.currentSlide.attrs.attachmentId===e&&(!s[e]||a)){(!t||t<1)&&(t=0);var i=g.info.querySelector(".jp-carousel-comments"),c=g.info.querySelector("#jp-carousel-comments-loading");r.show(c),n&&(r.hide(i),i.innerHTML="");var u=new XMLHttpRequest;s[e]=u;var d=function(){return s[e]===u},m=jetpackCarouselStrings.ajaxurl+"?action=get_attachment_comments&nonce="+jetpackCarouselStrings.nonce+"&id="+e+"&offset="+t;u.open("GET",m),u.setRequestHeader("X-Requested-With","XMLHttpRequest");var p=function(){r.fadeIn(i),r.fadeOut(c)};u.onload=function(){if(d()&&(delete s[e],g.currentSlide&&g.currentSlide.attrs.attachmentId===e)){var o,a=u.status>=200&&u.status<300;try{o=JSON.parse(u.responseText)}catch{}if(a&&o&&Array.isArray(o)){n&&(i.innerHTML="");for(var m=0;m<o.length;m++){var h=o[m];if(!i.querySelector("#jp-carousel-comment-"+h.id)){var f=document.createElement("div");f.classList.add("jp-carousel-comment"),f.setAttribute("id","jp-carousel-comment-"+h.id),f.innerHTML='<div class="comment-gravatar">'+h.gravatar_markup+'</div><div class="comment-content"><div class="comment-author">'+h.author_markup+'</div><div class="comment-date">'+h.date_gmt+"</div>"+h.content+"</div>",i.appendChild(f)}}var v=o.length>=10,y=t+10;v&&T(e,y);var w=i.querySelectorAll(".jp-carousel-comment").length,S=Math.max(parseInt(g.currentSlide.attrs.commentsCount,10)||0,w);o.length>0&&(r.show(i),H(S)),l[e]={html:i.innerHTML,count:S,hasMore:v,nextOffset:y},r.hide(c)}else p()}},u.onerror=function(){d()&&(delete s[e],g.currentSlide&&g.currentSlide.attrs.attachmentId===e&&p())},u.send()}}function M(e){var t=e.attrs,r=e.el.querySelector("img");if(!r.hasAttribute("data-loaded"))if(r.setAttribute("itemprop","image"),r.setAttribute("data-loaded",1),t.previewImage&&t.previewImage!==t.src){r.src=t.previewImage,r.style.filter="blur(8px)";var o=new window.Image;o.addEventListener("load",function(){r.hasAttribute("data-zoom-loaded")||(r.src=t.src),r.style.filter=""},{once:!0}),o.addEventListener("error",function(){r.style.filter=""},{once:!0}),o.src=t.src}else r.src=t.src}function F(e){var t=e.attrs.originalElement;if(t)if(t.complete&&0!==t.naturalHeight)O(e,t);else{var r=function(){t.removeEventListener("error",o),O(e,t)},o=function(){t.removeEventListener("load",r)};t.addEventListener("load",r,{once:!0}),t.addEventListener("error",o,{once:!0})}}function O(e,r){var o=t.getBackgroundImage(r);o&&(e.backgroundImage=o,e.el.style.backgroundImage="url("+o+")",e.el.style.backgroundSize="cover",e.el.style.backgroundPosition="center")}function W(){g.commentField&&(g.commentField.value="")}function N(e,o){g.slides=[];var a={width:window.innerWidth,height:window.innerHeight-64};0!==o&&null!==e[o].getAttribute("data-gallery-src")&&((new Image).src=e[o].getAttribute("data-gallery-src")),Array.prototype.forEach.call(e,function(e,o){var n=r.closest(e,"a"),i=e.getAttribute("data-orig-file")||e.getAttribute("src-orig"),l=e.getAttribute("data-attachment-id")||e.getAttribute("data-id")||"0",s=document.querySelector('img[data-attachment-id="'+l+'"] + figcaption');s=s?s.innerHTML:e.getAttribute("data-image-caption");var c={originalElement:e,attachmentId:l,commentsOpened:e.getAttribute("data-comments-opened")||"0",commentsCount:e.getAttribute("data-comments-count")||"0",imageMeta:r.getJSONAttribute(e,"data-image-meta")||{},title:e.getAttribute("data-image-title")||"",desc:e.getAttribute("data-image-description")||"",largeFile:e.getAttribute("data-large-file")||"",origFile:i||"",thumbSize:{width:e.naturalWidth,height:e.naturalHeight},caption:s||"",permalink:n&&n.getAttribute("href"),src:i||e.getAttribute("src")||""},u=r.closest(e,".tiled-gallery-item"),d=u&&u.querySelector(".tiled-gallery-caption"),m=d&&d.innerHTML;m&&(c.caption=m);var p=function(e){var t=e.getAttribute("data-orig-size")||"";if(t){var r=t.split(",");return{width:parseInt(r[0],10),height:parseInt(r[1],10)}}return{width:e.getAttribute("data-original-width")||e.getAttribute("width")||void 0,height:e.getAttribute("data-original-height")||e.getAttribute("height")||void 0}}(e);if(c.origWidth=p.width||c.thumbSize.width,c.origHeight=p.height||c.thumbSize.height,"undefined"!=typeof wpcom&&wpcom.carousel&&wpcom.carousel.generateImgSrc)c.src=wpcom.carousel.generateImgSrc(e,a);else{var h=function(e){return{origFile:c.src,origWidth:c.origWidth,origHeight:c.origHeight,maxWidth:a.width,maxHeight:a.height,largeFile:c.largeFile,zoomHeadroom:e}};c.zoomSrc=q(h(2)),c.src=q(h(1))}if(e.setAttribute("data-gallery-src",c.src),"0"!==c.attachmentId){c.title=t.texturize(c.title),c.desc=t.texturize(c.desc),c.caption=t.texturize(c.caption);var f=new Image,v=document.createElement("div");v.classList.add("swiper-slide"),v.setAttribute("itemprop","associatedMedia"),v.setAttribute("itemscope",""),v.setAttribute("itemtype","https://schema.org/ImageObject");var y=document.createElement("div");y.classList.add("swiper-zoom-container"),g.gallery.appendChild(v),v.appendChild(y),y.appendChild(f),v.setAttribute("data-attachment-id",c.attachmentId),v.setAttribute("data-permalink",c.permalink),v.setAttribute("data-orig-file",c.origFile),c.previewImage=e.currentSrc||e.getAttribute("src")||"";var w={el:v,attrs:c,index:o};g.slides.push(w)}})}function z(e,t){if(!window.JetpackSwiper){var o=document.querySelector("#jp-carousel-loading-overlay");r.show(o);var a=document.createElement("script");return a.id="jetpack-carousel-swiper-js",a.src=window.jetpackSwiperLibraryPath.url,a.async=!0,a.onload=function(){r.hide(o),R(e,t)},a.onerror=function(){r.hide(o)},void document.head.appendChild(a)}R(e,t)}function R(t,o){var c,u={imgSelector:".gallery-item [data-attachment-id], .tiled-gallery-item [data-attachment-id], img[data-attachment-id], img[data-id]",startIndex:0},d=r.getJSONAttribute(t,"data-carousel-extra");if(!d)return;const m=t.querySelectorAll(u.imgSelector);if(m.length&&(j(),!g.isOpen)){for(var p in g.isOpen=!0,a=getComputedStyle(document.body).overflow,document.body.style.overflow="hidden",n=getComputedStyle(document.documentElement).overflow,document.documentElement.style.overflow="hidden",i=window.scrollY||window.pageYOffset||0,g.container.setAttribute("data-carousel-extra",JSON.stringify(d)),h(["open","view_image"]),o||{})u[p]=o[p];-1===u.startIndex&&(u.startIndex=0),r.emitEvent(g.overlay,"jp_carousel.beforeOpen"),g.gallery.innerHTML="",l={},s={},g.overlay.style.opacity=1,g.overlay.style.display="block",N(m,u.startIndex),(e=new window.JetpackSwiper(".jp-carousel-swiper-container",{centeredSlides:!0,speed:r.prefersReducedMotion()?0:250,zoom:!0,loop:g.slides.length>1,enabled:g.slides.length>1,pagination:{el:".jp-swiper-pagination",clickable:!0},navigation:{nextEl:".jp-swiper-button-next",prevEl:".jp-swiper-button-prev"},initialSlide:u.startIndex,on:{init:function(){C(u.startIndex)}},preventClicks:!1,preventClicksPropagation:!1,preventInteractionOnTransition:!r.isTouch(),threshold:5})).on("slideChange",function(e){g.isOpen&&(C(e.realIndex),g.overlay.classList.remove("jp-carousel-hide-control
1658s"))}),e.on("zoomChange",function(e,t){t>1&&(function(e){if(e&&e.attrs.zoomSrc&&e.attrs.zoomSrc!==e.attrs.src){var t=e.el.querySelector("img");t&&!t.hasAttribute("data-zoom-loaded")&&(t.setAttribute("data-zoom-loaded",1),t.src=e.attrs.zoomSrc)}}(g.currentSlide),g.overlay.classList.add("jp-carousel-hide-controls")),1===t&&g.overlay.classList.remove("jp-carousel-hide-controls")}),e.on("doubleTap",function(e){if(clearTimeout(c),1===e.zoom.scale)var t=setTimeout(function(){g.overlay.classList.remove("jp-carousel-hide-controls"),clearTimeout(t)},150)}),e.on("tap",function(){e.zoom.scale>1&&(c=setTimeout(function(){g.overlay.classList.toggle("jp-carousel-hide-controls")},150))}),r.fadeIn(g.overlay,function(){r.emitEvent(g.overlay,"jp_carousel.afterOpen")})}}function P(e){if("click"!==e.type){if("keydown"===e.type){const t=document.activeElement.parentElement,r=t&&t.classList.contains("tiled-gallery__item");" "!==e.key&&"Enter"!==e.key||!r||$(e)}}else $(e)}function D(e){return(e||"").split("?")[0].replace(/\/$/,"")}function J(e){"A"===e.tagName&&(e=e.querySelector("img")||e);var t=e.parentElement,o=t?t.parentElement:null,a=null;if(o&&o.classList.contains("wp-block-image")?a=t.getAttribute("href"):t&&t.classList.contains("wp-block-image")&&t.querySelector(":scope > a")&&(a=t.querySelector(":scope > a").getAttribute("href")),a){var n=D(a),i=D(e.getAttribute("data-orig-file")),l=D(e.getAttribute("data-permalink"));if(n!==i&&n!==l)return!1}return!(t&&t.classList.contains("gallery-caption")||r.matches(t,"figcaption"))}function $(e){if(window.CSS&&window.CSS.supports&&window.CSS.supports("display","grid")){var t,o=e.target,a=r.closest(o,d);if(a){if(!(t=a)||!t.getAttribute("data-carousel-extra"))return;if(!J(o))return;document.documentElement.style.height="auto",e.preventDefault(),e.stopPropagation();var n=r.closest(o,p),i=Array.prototype.indexOf.call(a.querySelectorAll(p),n);z(a,{startIndex:i})}}}document.body.addEventListener("click",P),document.body.addEventListener("keydown",P),document.querySelectorAll(m+"img").forEach(function(e){J(e)&&S(e)}),1===Number(jetpackCarouselStrings.single_image_gallery)&&(L(),document.body.addEventListener("is.post-load",function(){L()})),window.addEventListener("hashchange",function(){var e=/jp-carousel-(\d+)/;if(window.location.hash&&e.test(window.location.hash)){if(window.location.hash!==c||!g.isOpen)if(window.location.hash&&g.gallery&&!g.isOpen&&history.back)history.back();else{c=window.location.hash;for(var t=window.location.hash.match(e),r=parseInt(t[1],10),o=document.querySelectorAll(d),a=0;a<o.length;a++){for(var n,i=o[a],l=i.querySelectorAll("img"),s=0;s<l.length;s++)if(parseInt(l[s].getAttribute("data-attachment-id"),10)===r||parseInt(l[s].getAttribute("data-id"),10)===r){n=s;break}if(void 0!==n){x(i,n);break}}}}else g.isOpen&&k()}),window.location.hash&&r.emitEvent(window,"hashchange")}"loading"!==document.readyState?o():document.addEventListener("DOMContentLoaded",o)}();;
1659/*! For license information please see dependencies.min.js.LICENSE.txt */
1660(()=>{var e={8395(){!function(e,t,n,s){"use strict";var i,a,r,o=(i=t.createElement("dummy").style,a="Webkit Moz O ms Khtml".split(" "),r={},function(e){if(void 0===r[e]){var t=e.charAt(0).toUpperCase()+e.substr(1),n=(e+" "+a.join(t+" ")+t).split(" ");for(var o in r[e]=null,n)if(i[n[o]]!==s){r[e]=n[o];break}}return r[e]});function c(e){if(e){var t=1+e.substr(1).search(/[A-Z]/);return"-"+e.substr(0,t).toLowerCase()+"-"+e.substr(t).toLowerCase()}}function l(e){return e?e+",":""}function u(e){return e.length>0?e:null}var f={stepSelector:".step",containerClass:"",canvasClass:"",areaClass:"",notSupportedClass:"not-supported",fullscreen:!0,animation:{transformOrigin:"top left",transitionProperty:l(c(o("transform")))+l(c(o("perspective")))+"opacity",transitionDuration:"1s",transitionDelay:"500ms",transitionTimingFunction:"ease-in-out",transformStyle:"preserve-3d"},transitionDuration:1500},p={beforeChange:1,beforeInitStep:1,initStep:1,beforeInit:1,afterInit:1,beforeDeinit:1,afterDeinit:1,applyStep:1,unapplyStep:1,setInactive:1,beforeActive:1,setActive:1,selectInitialStep:1,selectPrev:1,selectNext:1,selectHome:1,selectEnd:1,idle:1,applyTarget:1};for(var d in p)f[d]=[];function h(i){i=e.extend(!0,{},i||{});var a={},r=null;for(r in p)a[r]=e.isFunction(i[r])?[i[r]]:i[r],i[r]=[];var o=e.extend(!0,{},f,i);for(r in p)a[r]&&Array.prototype.push.apply(o[r],a[r]);var c=e(this),l=null,d=null,h={container:"",area:""},y=null,g=null,x=!1,b=null,w=!1;function S(t,n){var s=v(t),i={oldStyle:e(t).attr("style")||""},a={data:s,stepData:i};C.call(this,"beforeInitStep",e(t),a),i.delegate=s.delegate,C.call(this,"initStep",e(t),a),e(t).data("stepData",i),e(t).attr("id")||e(t).attr("id","step-"+(n+1)),C.call(this,"applyStep",e(t),a)}function I(t){var n=e(t).data("stepData");e(t).attr("style",n.oldStyle),C.call(this,"unapplyStep",e(t),{stepData:n})}function j(){x&&C.call(this,"setInactive",x,{stepData:e(x).data("stepData"),reason:"deinit"}),g.jmpressClass&&e(c).removeClass(g.jmpressClass),C.call(this,"beforeDeinit",e(this),{}),e(o.stepSelector,c).each(function(e){I.call(c,this)}),l.attr("style",h.container),o.fullscreen&&e("html").attr("style",""),d.attr("style",h.area),e(y).children().each(function(){c.append(e(this))}
1660),o.fullscreen?y.remove():(y.remove(),d.remove()),C.call(this,"afterDeinit",e(this),{}),e(c).data("jmpressmethods",!1)}function C(t,n,s){s.settings=o,s.current=g,s.container=l,s.parents=n?e(n).parentsUntil(c).not(c).filter(o.stepSelector):null,s.current=g,s.jmpress=this;var i={};return e.each(o[t],function(e,t){i.value=t.call(c,n,s)||i.value}),i.value}function D(t,n){var i;if(e.isPlainObject(t)&&(i=t.substep,t=t.step),"string"==typeof t&&(t=c.find(t).first()),!t||!e(t).data("stepData"))return!1;T.call(this);var a=e(t).data("stepData"),r=!1;if(C.call(this,"beforeChange",t,{stepData:a,reason:n,cancel:function(){r=!0}}),r)return s;var l={},f=t;e(t).data("stepData").delegate&&((f=u(e(t).parentsUntil(c).filter(o.stepSelector).filter(a.delegate))||u(e(t).near(a.delegate))||u(e(t).near(a.delegate,!0))||u(e(a.delegate,c)))?a=f.data("stepData"):f=t),w&&C.call(this,"setInactive",w,{stepData:e(w).data("stepData"),delegatedFrom:x,reason:n,target:l,nextStep:f,nextSubstep:i,nextStepData:a});var p={stepData:a,delegatedFrom:t,reason:n,target:l,substep:i,prevStep:w,prevSubstep:b,prevStepData:w&&e(w).data("stepData")};return C.call(this,"beforeActive",f,p),C.call(this,"setActive",f,p),g.jmpressClass&&e(c).removeClass(g.jmpressClass),e(c).addClass(g.jmpressClass="step-"+e(f).attr("id")),g.jmpressDelegatedClass&&e(c).removeClass(g.jmpressDelegatedClass),e(c).addClass(g.jmpressDelegatedClass="delegating-step-"+e(t).attr("id")),C.call(this,"applyTarget",f,e.extend({canvas:y,area:d,beforeActive:w},p)),x=t,b=p.substep,w=f,g.idleTimeout&&clearTimeout(g.idleTimeout),g.idleTimeout=setTimeout(function(){C.call(this,"idle",f,p)},Math.max(1,o.transitionDuration-100)),f}function T(){!function t(){if("BODY"===e(l)[0].tagName)try{n.scrollTo(0,0)}catch(e){}function s(){0===e(l).scrollTop()&&0===e(l).scrollLeft()||t()}e(l).scrollTop(0),e(l).scrollLeft(0),setTimeout(s,1),setTimeout(s,10),setTimeout(s,100),setTimeout(s,200),setTimeout(s,400)}()}if(c.data("jmpressmethods",{select:D,reselect:function(e){return D({step:x,substep:b},e)},scrollFix:T,goTo:function(e){return D.call(this,e,"jump")},next:function(){return D.call(this,C.call(this,"selectNext",x,{stepData:e(x).data("stepData"),substep:b}),"next")},prev:function(){return D.call(this,C.call(this,"selectPrev",x,{stepData:e(x).data("stepData"),substep:b}),"prev")},home:function(){return D.call(this,C.call(this,"selectHome",x,{stepData:e(x).data("stepData")}),"home")},end:function(){return D.call(this,C.call(this,"selectEnd",x,{stepData:e(x).data("stepData")}),"end")},canvas:function(t){return m(y,t||{}),e(y)},container:function(){return l},settings:function(){return o},active:function(){return w&&e(w)},current:function(){return g},fire:function(t,n,s){if(p[t])return C.call(this,t,n,s);e.error("callback "+t+" is not registered.")},init:function(t){S.call(this,e(t),g.nextIdNumber++)},deinit:function(t){t?I.call(this,e(t)):j.call(this)},reapply:function(t){C.call(this,"unapplyStep",e(t),{stepData:t.data("stepData")}),C.call(this,"applyStep",e(t),{stepData:t.data("stepData")})}}),!1!=(-1===(B=navigator.userAgent.toLowerCase()).search(/(iphone)|(ipod)|(android)/)||-1!==B.search(/(chrome)/))){var B;o.notSupportedClass&&c.removeClass(o.notSupportedClass);var O=e(o.stepSelector,c);l=c,d=e("<div />"),y=e("<div />"),e(c).children().filter(O).each(function(){y.append(e(this))}),o.fullscreen&&(l=e("body"),e("html").css({overflow:"hidden"}),d=c),h.area=d.attr("style")||"",h.container=l.attr("style")||"",o.fullscreen?(l.css({height:"100%"}),c.append(y)):(l.css({position:"relative"}),d.append(y),c.append(d)),e(l).addClass(o.containerClass),e(d).addClass(o.areaClass),e(y).addClass(o.canvasClass),t.documentElement.style.height="100%",l.css({overflow:"hidden"});var P={position:"absolute",transitionDuration:"0s"};P=e.extend({},o.animation,P),m(d,P),m(d,{top:"50%",left:"50%",perspective:"1000px"}),m(y,P),g={},C.call(this,"beforeInit",null,{}),O.each(function(e){S.call(c,this,e)}),g.nextIdNumber=O.length,C.call(this,"afterInit",null,{}),D.call(this,C.call(this,"selectInitialStep","init",{})),o.initClass&&e(O).removeClass(o.initClass)}else o.notSupportedClass&&c.addClass(o.notSupportedClass)}function m(t,n){var s,i,a={};for(s in n)n.hasOwnProperty(s)&&null!==(i=o(s))&&(a[i]=n[s]);return e(t).css(a),t}function v(t){if(e(t)[0].dataset)return e.extend({},e(t)[0].dataset);var n={},s=e(t)[0].attributes;return e.each(s,function(e,t){"data-"===t.nodeName.substr(0,5)&&(n[function(e){e=e.split("-");for(var t=1;t<e.length;t++)e[t]=e[t].substr(0,1).toUpperCase()+e[t].substr(1);return e.join("")}(t.nodeName.substr(5))]=t.nodeValue)}),n}var y={init:h,initialized:function(){return!!e(this).data("jmpressmethods")},deinit:function(){},css:m,pfx:o,defaults:function(){return f}
1660,register:function(t,n){e.isFunction(n)?y[t]?e.error("function "+t+" is already registered."):y[t]=n:p[t]?e.error("callback "+t+" is already registered."):(p[t]=1,f[t]=[])},dataset:v};e.fn.jmpress=function(t){function n(){var n=e(this).data("jmpressmethods");if(n&&n[t])return n[t].apply(this,Array.prototype.slice.call(arguments,1));if(y[t])return y[t].apply(this,Array.prototype.slice.call(arguments,1));if(p[t]&&n){var s=n.settings(),i=Array.prototype.slice.call(arguments,1)[0];e.isFunction(i)&&(s[t]=s[t]||[],s[t].push(i))}else{if("object"==typeof t||!t)return h.apply(this,arguments);e.error("Method "+t+" does not exist on jQuery.jmpress")}return this}var s,i=arguments;return e(this).each(function(e,t){s=n.apply(t,i)}),s},e.extend({jmpress:function(t){if(y[t])return y[t].apply(this,Array.prototype.slice.call(arguments,1));if(p[t]){var n=Array.prototype.slice.call(arguments,1)[0];e.isFunction(n)?f[t].push(n):e.error("Second parameter should be a function: $.jmpress( callbackName, callbackFunction )")}else e.error("Method "+t+" does not exist on jQuery.jmpress")}})}(jQuery,document,window),function(e){"use strict";function t(t,n,s,i){var a;return t.each(function(t,r){return(!i||!(a=n(r,s,i)))&&(e(r).is(s)?(a=r,!1):!(!i&&(a=n(r,s,i)))&&void 0)}),a}function n(s,i,a){var r=e(s).children();return a&&(r=e(r.get().reverse())),t(r,n,i,a)}function s(s,i,a){return t(e(s)[a?"prevAll":"nextAll"](),n,i,a)}e.fn.near=function(t,i){var a=[];return e(this).each(function(r,o){var c=!i&&n(o,t,i)||s(o,t,i)||function(t,n,i){var a,r=e(t).parents();return r=e(r.get()),e.each(r.get(),function(t,r){return i&&e(r).is(n)?(a=r,!1):!(a=s(r,n,i))&&void 0}),a}(o,t,i);c&&a.push(c)}),e(a)}}(jQuery,document,window),function(e){"use strict";function t(e){return Math.round(1e4*e)/1e4+""}var n={3:{transform:function(n,s){var i="translate(-50%,-50%)";e.each(s,function(e,n){var s,a=["X","Y","Z"];if("translate"===n[0])i+=" translate3d("+t(n[1]||0)+"px,"+t(n[2]||0)+"px,"+t(n[3]||0)+"px)";else if("rotate"===n[0]){var r=n[4]?[1,2,3]:[3,2,1];for(s=0;s<3;s++)i+=" rotate"+a[r[s]-1]+"("+t(n[r[s]]||0)+"deg)"}else if("scale"===n[0])for(s=0;s<3;s++)i+=" scale"+a[s]+"("+t(n[s+1]||1)+")"}),e.jmpress("css",n,e.extend({},{transform:i}))}},2:{transform:function(n,s){var i="translate(-50%,-50%)";e.each(s,function(e,n){var s=["X","Y"];if("translate"===n[0])i+=" translate("+t(n[1]||0)+"px,"+t(n[2]||0)+"px)";else if("rotate"===n[0])i+=" rotate("+t(n[3]||0)+"deg)";else if("scale"===n[0])for(var a=0;a<2;a++)i+=" scale"+s[a]+"("+t(n[a+1]||1)+")"}),e.jmpress("css",n,e.extend({},{transform:i}))}},1:{transform:function(t,n){var s={top:0,left:0};e.each(n,function(e,t){"translate"===t[0]&&(s.left=Math.round(t[1]||0)+"px",s.top=Math.round(t[2]||0)+"px")}),t.animate(s,1e3)}}},s=e.jmpress("pfx","perspective")?n[3]:e.jmpress("pfx","transform")?n[2]:n[1];e.jmpress("defaults").reasonableAnimation={},e.jmpress("initStep",function(t,n){var s=n.data,i=n.stepData,a=parseFloat;e.extend(i,{x:a(s.x)||0,y:a(s.y)||0,z:a(s.z)||0,r:a(s.r)||0,phi:a(s.phi)||0,rotate:a(s.rotate)||0,rotateX:a(s.rotateX)||0,rotateY:a(s.rotateY)||0,rotateZ:a(s.rotateZ)||0,revertRotate:!1,scale:a(s.scale)||1,scaleX:a(s.scaleX)||!1,scaleY:a(s.scaleY)||!1,scaleZ:a(s.scaleZ)||1})}),e.jmpress("afterInit",function(t,n){var s=n.settings.stepSelector,i=n.current;i.perspectiveScale=1,i.maxNestedDepth=0;for(var a=e(n.jmpress).find(s).children(s);a.length;)i.maxNestedDepth++,a=a.children(s)}),e.jmpress("applyStep",function(t,n){e.jmpress("css",e(t),{position:"absolute",transformStyle:"preserve-3d"}),n.parents.length>0&&e.jmpress("css",e(t),{top:"50%",left:"50%"});var i=n.stepData,a=[["translate",i.x||i.r*Math.sin(i.phi*Math.PI/180),i.y||-i.r*Math.cos(i.phi*Math.PI/180),i.z],["rotate",i.rotateX,i.rotateY,i.rotateZ||i.rotate,!0],["scale",i.scaleX||i.scale,i.scaleY||i.scale,i.scaleZ||i.scale]];s.transform(t,a)}),e.jmpress("setActive",function(t,n){var s=n.target,i=n.stepData,a=s.transform=[];s.perspectiveScale=1;for(var r=n.current.maxNestedDepth;r>(n.parents.length||0);r--)a.push(["scale"],["rotate"],["translate"]);a.push(["scale",1/(i.scaleX||i.scale),1/(i.scaleY||i.scale),1/i.scaleZ]),a.push(["rotate",-i.rotateX,-i.rotateY,-(i.rotateZ||i.rotate)]),a.push(["translate",-(i.x||i.r*Math.sin(i.phi*Math.PI/180)
1660),-(i.y||-i.r*Math.cos(i.phi*Math.PI/180)),-i.z]),s.perspectiveScale*=i.scaleX||i.scale,e.each(n.parents,function(t,n){var i=e(n).data("stepData");a.push(["scale",1/(i.scaleX||i.scale),1/(i.scaleY||i.scale),1/i.scaleZ]),a.push(["rotate",-i.rotateX,-i.rotateY,-(i.rotateZ||i.rotate)]),a.push(["translate",-(i.x||i.r*Math.sin(i.phi*Math.PI/180)),-(i.y||-i.r*Math.cos(i.phi*Math.PI/180)),-i.z]),s.perspectiveScale*=i.scaleX||i.scale}),e.each(a,function(e,t){function s(s){void 0===n.current["rotate"+s+"-"+e]&&(n.current["rotate"+s+"-"+e]=t[s]||0);var i=n.current["rotate"+s+"-"+e],a=i%360,r=(t[s]||0)%360;a<0&&(a+=360),r<0&&(r+=360);var o=r-a;o<-180?o+=360:o>180&&(o-=360),n.current["rotate"+s+"-"+e]=t[s]=i+o}"rotate"===t[0]&&(s(1),s(2),s(3))})}),e.jmpress("applyTarget",function(t,n){var i,a=n.target,r=(n.stepData,n.settings),o=1.3*a.perspectiveScale<n.current.perspectiveScale,c=a.perspectiveScale>1.3*n.current.perspectiveScale,l=-1;e.each(a.transform,function(e,t){if(!(t.length<=1||"rotate"===t[0]&&t[1]%360==0&&t[2]%360==0&&t[3]%360==0))return"scale"===t[0]&&void(l=e)}),l!==n.current.oldLastScale&&(o=c=!1,n.current.oldLastScale=l);var u=[];if(-1!==l)for(;l>=0;)"scale"===a.transform[l][0]&&(u.push(a.transform[l]),a.transform[l]=["scale"]),l--;var f=r.animation;r.reasonableAnimation[n.reason]&&(f=e.extend({},f,r.reasonableAnimation[n.reason])),i={perspective:Math.round(1e3*a.perspectiveScale)+"px"},i=e.extend({},f,i),o||(i.transitionDelay="0s"),n.beforeActive||(i.transitionDuration="0s",i.transitionDelay="0s"),e.jmpress("css",n.area,i),s.transform(n.area,u),i=e.extend({},f),c||(i.transitionDelay="0s"),n.beforeActive||(i.transitionDuration="0s",i.transitionDelay="0s"),n.current.perspectiveScale=a.perspectiveScale,e.jmpress("css",n.canvas,i),s.transform(n.canvas,a.transform)})}(jQuery,document,window),function(e){"use strict";var t=e.jmpress,n="activeClass",s="nestedActiveClass",i=t("defaults");i[s]="nested-active",i[n]="active",t("setInactive",function(t,i){var a=i.settings,r=a[n],o=a[s];r&&e(t).removeClass(r),o&&e.each(i.parents,function(t,n){e(n).removeClass(o)})}),t("setActive",function(t,i){var a=i.settings,r=a[n],o=a[s];r&&e(t).addClass(r),o&&e.each(i.parents,function(t,n){e(n).addClass(o)})})}(jQuery,document,window),function(e){"use strict";var t=e.jmpress;function n(t,n){return e(this).find(n.settings.stepSelector).first()}function s(t,n,s,i){if(!n)return!1;var a=s.settings.stepSelector;n=e(n);do{var r=n.near(a,i);if(0!==r.length&&0!==r.closest(t).length||(r=e(t).find(a)[i?"last":"first"]()),!r.length)return!1;n=r}while(n.data("stepData").exclude);return n}t("initStep",function(e,t){t.stepData.exclude=t.data.exclude&&-1===["false","no"].indexOf(t.data.exclude)}),t("selectInitialStep",n),t("selectHome",n),t("selectEnd",function(t,n){return e(this).find(n.settings.stepSelector).last()}),t("selectPrev",function(e,t){return s(this,e,t,!0)}),t("selectNext",function(e,t){return s(this,e,t)})}(jQuery,document,window),function(e){"use strict";e.jmpress("selectInitialStep",function(e,t){return t.settings.start})}(jQuery,document,window),function(e){"use strict";var t=e.jmpress;function n(t,n,s){for(var i=0;i<n.length-1;i++){var a=n[i],r=n[i+1];e(t).jmpress("initialized")?e(a,t).data("stepData")[s]=r:e(a,t).attr("data-"+s,r)}}function s(t,n,s,i){var a=n.stepData;if(a[s]){var r=e(t).near(a[s],i);if(r&&r.length)return r;if((r=e(a[s],this)[i?"last":"first"]())&&r.length)return r}}t("register","route",function(e,t,s){"string"==typeof e&&(e=[e,e]),n(this,e,s?"prev":"next"),t||n(this,e.reverse(),s?"next":"prev")}),t("initStep",function(e,t){for(var n in{next:1,prev:1})t.stepData[n]=t.data[n]}),t("selectNext",function(e,t){return s.call(this,e,t,"next")}),t("selectPrev",function(e,t){return s.call(this,e,t,"prev",!0)})}(jQuery,document,window),function(e){"use strict";var t=e.jmpress,n="ajax:afterStepLoaded",s="ajax:loadStep";t("register",s),t("register",n),t("defaults").ajaxLoadedClass="loaded",t("initStep",function(t,n){n.stepData.src=e(t).attr("href")||n.data.src||!1,n.stepData.srcLoaded=!1}),t(s,function(t,s){var i=s.stepData,a=i&&i.src,r=s.settings;a&&(e(t).addClass(r.ajaxLoadedClass),i.srcLoaded=!0,e(t).load(a,function(i,a,r){e(s.jmpress).jmpress("fire",n,t,e.extend({},s,{response:i,status:a,xhr:r}))}))}),t("idle",function(t,n){if(t){var i=n.settings,a=e(this);n.stepData;e(t).add(e(t).near(i.stepSelector)).add(e(t).near(i.stepSelector,!0)).add(a.jmpress("fire","selectPrev",t,{stepData:e(t).data("stepData")})).add(a.jmpress("fire","selectNext",t,{stepData:e(t).data("stepData")})).each(function(){var t=this,n=e(t).data("stepData");n.src&&!n.srcLoaded&&a.jmpress("fire",s,t,{stepData:e(t).data("stepData")})})}}),t("setActive",function(t,n){var i=e(t).data("stepData");i.src&&!i.srcLoaded&&e(this).jmpress("fire",s,t,{stepData:e(t).data("stepData")})})}(jQuery,document,window),function(e,t,n){"use strict";var s=e.jmpress,i="a[href^=#]";function a(t){try{var s=e("#"+n.location.hash.replace(/^#\/?/,""));return s.length>0&&s.is(t.stepSelector)?s:void 0}catch(e){}}
1660function r(e){var t="#/"+e;n.history&&n.history.pushState?n.location.hash!==t&&n.history.pushState({},"",t):n.location.hash!==t&&(n.location.hash=t)}s("defaults").hash={use:!0,update:!0,bindChange:!0},s("selectInitialStep",function(t,s){var o=s.settings,c=o.hash,l=s.current,u=e(this);if(s.current.hashNamespace=".jmpress-"+Math.round(1e5*Math.random(),0),c.use)return c.bindChange&&(e(n).bind("hashchange"+l.hashNamespace,function(e){var t=a(o);u.jmpress("initialized")&&u.jmpress("scrollFix"),t&&t.length&&(t.attr("id")!==u.jmpress("active").attr("id")&&u.jmpress("select",t),r(t.attr("id"))),e.preventDefault()}),e(i).on("click"+l.hashNamespace,function(t){var n=e(this).attr("href");try{e(n).is(o.stepSelector)&&(u.jmpress("select",n),t.preventDefault(),t.stopPropagation())}catch(e){}})),a(o)}),s("afterDeinit",function(t,s){e(i).off(s.current.hashNamespace),e(n).unbind(s.current.hashNamespace)}),s("setActive",function(t,n){var s=n.settings,i=n.current;s.hash.use&&s.hash.update&&(clearTimeout(i.hashtimeout),i.hashtimeout=setTimeout(function(){r(e(n.delegatedFrom).attr("id"))},s.transitionDuration+200))})}(jQuery,document,window),function(e,t){"use strict";var n=e.jmpress,s="next",i="prev";function a(e){e.preventDefault(),e.stopPropagation()}n("defaults").keyboard={use:!0,keys:{33:i,37:i,38:i,9:s+":"+i,32:s,34:s,39:s,40:s,36:"home",35:"end"},ignore:{INPUT:[32,37,38,39,40],TEXTAREA:[32,37,38,39,40],SELECT:[38,40]},tabSelector:"a[href]:visible, :input:visible"},n("afterInit",function(n,s){var i=s.settings,r=i.keyboard,o=r.ignore,c=s.current,l=e(this);i.fullscreen||l.attr("tabindex",0),c.keyboardNamespace=".jmpress-"+Math.round(1e5*Math.random(),0),e(i.fullscreen?t:l).bind("keypress"+c.keyboardNamespace,function(e){for(var t in o)if(e.target.nodeName===t&&-1!==o[t].indexOf(e.which))return;(e.which>=37&&e.which<=40||32===e.which)&&a(e)}),e(i.fullscreen?t:l).bind("keydown"+c.keyboardNamespace,function(t){var n=e(t.target);if((i.fullscreen||n.closest(l).length)&&r.use){for(var s in o)if(n[0].nodeName===s&&-1!==o[s].indexOf(t.which))return;var c,u=!1;if(9===t.which){if(n.closest(l.jmpress("active")).length?(c=n.near(r.tabSelector,t.shiftKey),e(c).closest(i.stepSelector).is(l.jmpress("active"))||(c=void 0)):t.shiftKey?u=!0:c=l.jmpress("active").find("a[href], :input").filter(":visible").first(),c&&c.length>0)return c.focus(),l.jmpress("scrollFix"),void a(t);t.shiftKey&&(u=!0)}var f=r.keys[t.which];"string"==typeof f?(-1!==f.indexOf(":")&&(f=f.split(":"),f=t.shiftKey?f[1]:f[0]),l.jmpress(f),a(t)):e.isFunction(f)?f.call(l,t):f&&(l.jmpress.apply(l,f),a(t)),u&&((c=l.jmpress("active").find("a[href], :input").filter(":visible").last()).focus(),l.jmpress("scrollFix"))}})}),n("afterDeinit",function(n,s){e(t).unbind(s.current.keyboardNamespace)})}(jQuery,document,window),function(e,t,n){"use strict";var s,i=(s=navigator.userAgent.toLowerCase(),(/(chrome)[ \/]([\w.]+)/.exec(s)||/(webkit)[ \/]([\w.]+)/.exec(s)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(s)||/(msie) ([\w.]+)/.exec(s)||s.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(s)||[])[1]||""),a=e.jmpress("defaults");a.viewPort={width:!1,height:!1,maxScale:0,minScale:0,zoomable:0,zoomBindMove:!0,zoomBindWheel:!0};var r=a.keyboard.keys;function o(e,t){return Math.max(Math.min(e,t),-t)}function c(t,n,s){var i=e(this).jmpress("current"),a=e(this).jmpress("settings"),r=e(this).jmpress("active").data("stepData"),c=e(this).jmpress("container");if(!(0===i.userZoom&&s<0)){var l=r.viewPortZoomable||a.viewPort.zoomable;if(!(i.userZoom===l&&s>0)){i.userZoom+=s;var u=e(c).innerWidth()/2,f=e(c).innerHeight()/2;t=t?t-u:t,n=n?n-f:n,i.userTranslateX=o(i.userTranslateX-s*t/i.zoomOriginWindowScale/l,u*i.userZoom*i.userZoom/l),i.userTranslateY=o(i.userTranslateY-s*n/i.zoomOriginWindowScale/l,f*i.userZoom*i.userZoom/l),e(this).jmpress("reselect","zoom")}}}r["mozilla"===i?107:187]="zoomIn",r["mozilla"===i?109:189]="zoomOut",a.reasonableAnimation.resize={transitionDuration:"0s",transitionDelay:"0ms"},a.reasonableAnimation.zoom={transitionDuration:"0s",transitionDelay:"0ms"},e.jmpress("initStep",function(e,t){for(var n in{viewPortHeight:1,viewPortWidth:1,viewPortMinScale:1,viewPortMaxScale:1,viewPortZoomable:1})t.stepData[n]=t.data[n]&&parseFloat(t.data[n])}),e.jmpress("afterInit",function(s,i){var a=this;i.current.viewPortNamespace=".jmpress-"+Math.round(1e5*Math.random(),0),e(n).bind("resize"+i.current.viewPortNamespace,function(t){e(a).jmpress("reselect","resize")}),i.current.userZoom=0,i.current.userTranslateX=0,i.current.userTranslateY=0,i.settings.viewPort.zoomBindWheel&&e(i.settings.fullscreen?t:this).bind("mousewheel"+i.current.viewPortNamespace+" DOMMouseScroll"+i.current.viewPortNamespace,function(t,n){var s=(n=n||t.originalEvent.wheelDelta||-t.originalEvent.detail)/Math.abs(n);return s<0?e(i.jmpress).jmpress("zoomOut",t.originalEvent.x,t.originalEvent.y):s>0&&e(i.jmpress).jmpress("zoomIn",t.originalEvent.x,t.originalEvent.y),!1}),i.settings.viewPort.zoomBindMove&&e(i.settings.fullscreen?t:this).bind("mousedown"+i.current.viewPortNamespace,function(e){i.current.userZoom&&(i.current.userTranslating={x:e.clientX,y:e.clientY},e.preventDefault(),e.stopImmediatePropagation())}).bind("mousemove"+i.current.viewPortNamespace,function(t){var n=i.current.userTranslating;n&&(e(a).jmpress("zoomTranslate",t.clientX-n.x,t.clientY-n.y),n.x=t.clientX,n.y=t.clientY,t.preventDefault(),t.stopImmediatePropagation())}).bind("mouseup"+i.current.viewPortNamespace,function(e){i.current.userTranslating&&(i.current.userTranslating=void 0,e.preventDefault(),e.stopImmediatePropagation())})}),e.jmpress("register","zoomIn",function(e,t){c.call(this,e||0,t||0,1)}),e.jmpress("register","zoomOut",function(e,t){c.call(this,e||0,t||0,-1)}),e.jmpress("register","zoomTranslate",function(t,n){var s=e(this).jmpress("current"),i=e(this).jmpress("settings"),a=e(this).jmpress("active").data("stepData"),r=e(this).jmpress("container"),c=a.viewPortZoomable||i.viewPort.zoomable,l=e(r).innerWidth(),u=e(r).innerHeight();s.userTranslateX=o(s.userTranslateX+t/s.zoomOriginWindowScale,l*s.userZoom*s.userZoom/c),s.userTranslateY=o(s.userTranslateY+n/s.zoomOriginWindowScale,u*s.userZoom*s.userZoom/c),e(this).jmpress("reselect","zoom")}),e.jmpress("afterDeinit",function(s,i){e(i.settings.fullscreen?t:this).unbind(i.current.viewPortNamespace),e(n).unbind(i.current.viewPortNamespace)}),e.jmpress("setActive",function(t,n){var s=n.settings.viewPort,i=n.stepData.viewPortHeight||s.height,a=n.stepData.viewPortWidth||s.width,r=n.stepData.viewPortMaxScale||s.maxScale,o=n.stepData.viewPortMinScale||s.minScale,c=i&&e(n.container).innerHeight()/i,l=a&&e(n.container).innerWidth()/a,u=(l||c)&&Math.min(l||c,c||l);if(u){u=u||1,r&&(u=Math.min(u,r)),o&&(u=Math.max(u,o));var f=n.stepData.viewPortZoomable||n.settings.viewPort.zoomable;if(f){var p=1/u-1/r;u=1/(1/u-(p/=f)*n.current.userZoom)}n.target.transform.reverse(),n.current.userTranslateX&&n.current.userTranslateY?n.target.transform.push(["translate",n.current.userTranslateX,n.current.userTranslateY,0]):n.target.transform.push(["translate"]),n.target.transform.push(["scale",u,u,1]),n.target.transform.reverse(),n.target.perspectiveScale/=u}n.current.zoomOriginWindowScale=u}),e.jmpress("setInactive",function(t,n){n.nextStep&&t&&e(n.nextStep).attr("id")===e(t).attr("id")||(n.current.userZoom=0,n.current.userTranslateX=0,n.current.userTranslateY=0)})}(jQuery,document,window),function(e){"use strict";var t=e.jmpress;t("defaults").mouse={clickSelects:!0},t("afterInit",function(t,n){var s=n.settings,i=s.stepSelector,a=n.current,r=e(this);a.clickableStepsNamespace=".jmpress-"+Math.round(1e5*Math.random(),0),r.bind("click"+a.clickableStepsNamespace,function(t){if(s.mouse.clickSelects&&
1660!a.userZoom){var n=e(t.target).closest(i);n.is(r.jmpress("active"))||n.length&&(r.jmpress("select",n[0],"click"),t.preventDefault(),t.stopPropagation())}})}),t("afterDeinit",function(t,n){e(this).unbind(n.current.clickableStepsNamespace)})}(jQuery,document,window),function(e,t){"use strict";var n=e.jmpress;n("afterInit",function(n,s){var i=s.settings,a=s.current,r=s.jmpress;a.mobileNamespace=".jmpress-"+Math.round(1e5*Math.random(),0);var o,c=[0,0];e(i.fullscreen?t:r).bind("touchstart"+a.mobileNamespace,function(e){o=e.originalEvent.touches[0],c=[o.pageX,o.pageY]}).bind("touchmove"+a.mobileNamespace,function(e){return o=e.originalEvent.touches[0],e.preventDefault(),!1}).bind("touchend"+a.mobileNamespace,function(t){var n=[o.pageX,o.pageY],s=[n[0]-c[0],n[1]-c[1]];if(Math.max(Math.abs(s[0]),Math.abs(s[1]))>50)return s=Math.abs(s[0])>Math.abs(s[1])?s[0]:s[1],e(r).jmpress(s>0?"prev":"next"),t.preventDefault(),!1})}),n("afterDeinit",function(n,s){var i=s.settings,a=s.current,r=s.jmpress;e(i.fullscreen?t:r).unbind(a.mobileNamespace)})}(jQuery,document,window),function(e){"use strict";var t=e.jmpress,n="_template_",s="_applied_template_",i={};function a(t,n,s){for(var i in n){var r=i;s&&(r=s+r.substr(0,1).toUpperCase()+r.substr(1)),e.isPlainObject(n[i])?a(t,n[i],r):void 0===t[r]&&(t[r]=n[i])}}function r(t,s){e.isArray(s)?s.length<t.length?e.error("more nested steps than children in template"):t.each(function(t,i){var r=(i=e(i)).data(n)||{};a(r,s[t]),i.data(n,r)}):e.isFunction(s)&&t.each(function(i,r){var o=(r=e(r)).data(n)||{};a(o,s(i,r,t)),r.data(n,o)})}function o(e,t,n,s){n.children&&r(t.children(s.settings.stepSelector),n.children);!function(e,t){a(e,t)}(e,n)}t("beforeInitStep",function(t,a){t=e(t);var r=a.data,c=r.template,l=t.data(s),u=t.data(n);c&&e.each(c.split(" "),function(e,n){var s=i[n];o(r,t,s,a)}),l&&o(r,t,l,a),u&&(o(r,t,u,a),t.data(n,null),u.template&&e.each(u.template.split(" "),function(e,n){var s=i[n];o(r,t,s,a)}))}),t("beforeInit",function(n,s){var a=t("dataset",this).template,o=s.settings.stepSelector;if(a){var c=i[a];r(e(this).find(o).filter(function(){return!e(this).parent().is(o)}),c.children)}}),t("register","template",function(t,n){i[t]?i[t]=e.extend(!0,{},i[t],n):i[t]=e.extend(!0,{},n)}),t("register","apply",function(t,n){if(n)if(e.isArray(n))r(e(t),n);else{var o;o="string"==typeof n?i[n]:e.extend(!0,{},n),e(t).each(function(t,n){var i=(n=e(n)).data(s)||{};a(i,o),n.data(s,i)})}else{var c=e(this).jmpress("settings").stepSelector;r(e(this).find(c).filter(function(){return!e(this).parent().is(c)}),t)}})}(jQuery,document,window),function(e){"use strict";e.jmpress("setActive",function(t,n){n.prevStep!==t&&e(t).triggerHandler("enterStep")}),e.jmpress("setInactive",function(t,n){n.nextStep!==t&&e(t).triggerHandler("leaveStep")})}(jQuery,document,window),function(e,t,n,s){"use strict";function i(t,n,s,i){i=i||t.length-1;for(var a=s=s||0;a<i+1;a++)if(e(t[a].element).is(n))return a}function a(t,n,s){e.each(n._on,function(e,n){t.push({substep:n.substep,delay:n.delay+s}),a(t,n.substep,n.delay+s)})}e.jmpress("defaults").customAnimationDataAttribute="jmpress",e.jmpress("afterInit",function(e,t){t.current.animationTimeouts=[],t.current.animationCleanupWaiting=[]}),e.jmpress("applyStep",function(t,n){var r={},o=[];if(e(t).find("[data-"+n.settings.customAnimationDataAttribute+"]").each(function(s,i){e(i).closest(n.settings.stepSelector).is(t)&&o.push({element:i})}),0!==o.length){e.each(o,function(t,s){s.info=function(t){for(var n=t.split(" "),s=n[0],i={willClass:"will-"+s,doClass:"do-"+s,hasClass:"has-"+s},a="",r=1;r<n.length;r++){var o=n[r];switch(a){case"":"after"===o?a="after":e.warn("unknown keyword in '"+t+"'. '"+o+"' unknown.");break;case"after":if(o.match(/^[1-9][0-9]*m?s?/)){var c=parseFloat(o);-1!==o.indexOf("ms")?c*=1:-1!==o.indexOf("s")?c*=1e3:-1!==o.indexOf("m")&&(c*=6e4),i.delay=c}else i.after=Array.prototype.slice.call(n,r).join(" "),r=n.length}}return i}(e(s.element).data(n.settings.customAnimationDataAttribute)),e(s.element).addClass(s.info.willClass),s._on=[],s._after=null});var c={_after:s,_on:[],info:{}};if(e.each(o,function(e,t){var n=t.info.after;if(n)if("step"===n)n=c;else if("prev"===n)n=o[e-1];else{var a=i(o,n,0,e-1);a===s&&(a=i(o,n)),n=a===s||a===e?o[e-1]:o[a]}else n=o[e-1];if(n){if(!t.info.delay){if(!n._after)return void(n._after=t);n=n._after}n._on.push({substep:t,delay:t.info.delay||0})}}),c._after===s&&0===c._on.length){var l=i(o,n.stepData.startSubstep)||0;c._after=o[l]}var u=[];do{var f=[{substep:c,delay:0}];a(f,c,0),u.push(f),c=null,e.each(f,p)}while(c);r.list=u,e(t).data("substepsData",r)}function p(e,t){if(t.substep._after)return c=t.substep._after,!1}}),e.jmpress("unapplyStep",function(t,n){var s=e(t).data("substepsData");s&&e.each(s.list,function(t,n){e.each(n,function(t,n){n.substep.info.willClass&&e(n.substep.element).removeClass(n.substep.info.willClass),n.substep.info.hasClass&&e(n.substep.element).removeClass(n.substep.info.hasClass),n.substep.info.doClass&&e(n.substep.element).removeClass(n.substep.info.doClass)})})}),e.jmpress("setActive",function(t,n){var i=e(t).data("substepsData");if(i){n.substep===s&&(n.substep="prev"===n.reason?i.list.length-1:0);var a=n.substep;e.each(n.current.animationTimeouts,function(e,t){clearTimeout(t)}),n.current.animationTimeouts=[],e.each(i.list,function(t,s){var i=t<a,r=t<=a;e.each(s,function(t,s){s.substep.info.hasClass&&e(s.substep.element)[(i?"add":"remove")+"Class"](s.substep.info.hasClass),r&&!i&&s.delay&&"prev"!==n.reason?s.substep.info.doClass&&(e(s.substep.element).removeClass(s.substep.info.doClass),n.current.animationTimeouts.push(setTimeout(function(){e(s.substep.element).addClass(s.substep.info.doClass)},s.delay))):s.substep.info.doClass&&e(s.substep.element)[(r?"add":"remove")+"Class"](s.substep.info.doClass)})})}}),e.jmpress("setInactive",function(t,n){if(n.nextStep!==t){e.each(n.current.animationCleanupWaiting,function(t,n){!function(t){e.each(t.list,function(t,n){e.each(n,function(t,n){n.substep.info.hasClass&&e(n.substep.element).removeClass(n.substep.info.hasClass),n.substep.info.doClass&&e(n.substep.element).removeClass(n.substep.info.doClass)})})}(n)}),n.current.animationCleanupWaiting=[];var s=e(t).data("substepsData");s&&n.current.animationCleanupWaiting.push(s)}}),e.jmpress("selectNext",function(t,n){if(n.substep!==s){var i=e(t).data("substepsData");
1660if(i)return n.substep<i.list.length-1?{step:t,substep:n.substep+1}:void 0}}),e.jmpress("selectPrev",function(t,n){if(n.substep!==s&&e(t).data("substepsData"))return n.substep>0?{step:t,substep:n.substep-1}:void 0})}(jQuery,document,window)},5896(e,t,n){var s,i,a;i=[n(428)],s=function(e,t){"use strict";var n="3.0.3";function s(t){e.fn.cycle.debug&&i(t)}function i(){window.console&&console.log&&console.log("[cycle] "+Array.prototype.join.call(arguments," "))}function a(t,n,s){var i=e(t).data("cycle.opts");if(i){var a=!!t.cyclePause;a&&i.paused?i.paused(t,i,n,s):!a&&i.resumed&&i.resumed(t,i,n,s)}}function r(n,s,r){if(n.cycleStop===t&&(n.cycleStop=0),s!==t&&null!==s||(s={}),s.constructor==String){switch(s){case"destroy":case"stop":var o=e(n).data("cycle.opts");return!!o&&(n.cycleStop++,n.cycleTimeout&&clearTimeout(n.cycleTimeout),n.cycleTimeout=0,o.elements&&e(o.elements).stop(),e(n).removeData("cycle.opts"),"destroy"==s&&c(n,o),!1);case"toggle":return n.cyclePause=1===n.cyclePause?0:1,u(n.cyclePause,r,n),a(n),!1;case"pause":return n.cyclePause=1,a(n),!1;case"resume":return n.cyclePause=0,u(!1,r,n),a(n),!1;case"prev":case"next":return(o=e(n).data("cycle.opts"))?("string"==typeof r&&(o.oneTimeFx=r),e.fn.cycle[s](o),!1):(i('options not found, "prev/next" ignored'),!1);default:s={fx:s}}return s}if(s.constructor==Number){var l=s;return(s=e(n).data("cycle.opts"))?l<0||l>=s.elements.length?(i("invalid slide index: "+l),!1):(s.nextSlide=l,n.cycleTimeout&&(clearTimeout(n.cycleTimeout),n.cycleTimeout=0),"string"==typeof r&&(s.oneTimeFx=r),d(s.elements,s,1,l>=s.currSlide),!1):(i("options not found, can not advance slide"),!1)}return s;function u(t,n,s){if(!t&&!0===n){var a=e(s).data("cycle.opts");if(!a)return i("options not found, can not resume"),!1;s.cycleTimeout&&(clearTimeout(s.cycleTimeout),s.cycleTimeout=0),d(a.elements,a,1,!a.backwards)}}}function o(t,n){if(!e.support.opacity&&n.cleartype&&t.style.filter)try{t.style.removeAttribute("filter")}catch(e){}}function c(t,n){n.next&&e(n.next).unbind(n.prevNextEvent),n.prev&&e(n.prev).unbind(n.prevNextEvent),(n.pager||n.pagerAnchorBuilder)&&e.each(n.pagerAnchors||[],function(){this.unbind().remove()}),n.pagerAnchors=null,e(t).unbind("mouseenter.cycle mouseleave.cycle"),n.destroy&&n.destroy(n)}function l(n,s,r,c,l){var h,g=e.extend({},e.fn.cycle.defaults,c||{},e.metadata?n.metadata():e.meta?n.data():{}),x=e.isFunction(n.data)?n.data(g.metaAttr):null;x&&(g=e.extend(g,x)),g.autostop&&(g.countdown=g.autostopCount||r.length);var b=n[0];if(n.data("cycle.opts",g),g.$cont=n,g.stopCount=b.cycleStop,g.elements=r,g.before=g.before?[g.before]:[],g.after=g.after?[g.after]:[],!e.support.opacity&&g.cleartype&&g.after.push(function(){o(this,g)}),g.continuous&&g.after.push(function(){d(r,g,0,!g.backwards)}),u(g),e.support.opacity||!g.cleartype||g.cleartypeNoBg||y(s),"static"==n.css("position")&&n.css("position","relative"),g.width&&n.width(g.width),g.height&&"auto"!=g.height&&n.height(g.height),g.startingSlide!==t?(g.startingSlide=parseInt(g.startingSlide,10),g.startingSlide>=r.length||g.startSlide<0?g.startingSlide=0:h=!0):g.backwards?g.startingSlide=r.length-1:g.startingSlide=0,g.random){g.randomMap=[];for(var w=0;w<r.length;w++)g.randomMap.push(w);if(g.randomMap.sort(function(e,t){return Math.random()-.5}),h)for(var S=0;S<r.length;S++)g.startingSlide==g.randomMap[S]&&(g.randomIndex=S);else g.randomIndex=1,g.startingSlide=g.randomMap[1]}else g.startingSlide>=r.length&&(g.startingSlide=0);g.currSlide=g.startingSlide||0;var I=g.startingSlide;if(s.css({position:"absolute",top:0,left:0}).hide().each(function(t){var n;n=g.backwards?I?t<=I?r.length+(t-I):I-t:r.length-t:I?t>=I?r.length-(t-I):I-t:r.length-t,e(this).css("z-index",n)}),e(r[I]).css("opacity",1).show(),o(r[I],g),g.fit&&(g.aspect?s.each(function(){var t=e(this),n=!0===g.aspect?t.width()/t.height():g.aspect;g.width&&t.width()!=g.width&&(t.width(g.width),t.height(g.width/n)),g.height&&t.height()<g.height&&(t.height(g.height),t.width(g.height*n))}):(g.width&&s.width(g.width),g.height&&"auto"!=g.height&&s.height(g.height))),!g.center||g.fit&&!g.aspect||s.each(function(){var t=e(this);t.css({"margin-left":g.width?(g.width-t.width())/2+"px":0,"margin-top":g.height?(g.height-t.height())/2+"px":0})}),!g.center||g.fit||g.slideResize||s.each(function(){var t=e(this);t.css({"margin-left":g.width?(g.width-t.width())/2+"px":0,"margin-top":g.height?(g.height-t.height())/2+"px":0})}),(g.containerResize||g.containerResizeHeight)&&n.innerHeight()<1){for(var j=0,C=0,D=0;D<r.length;D++){var T=e(r[D]),B=T[0],O=T.outerWidth(),P=T.outerHeight();O||(O=B.offsetWidth||B.width||T.attr("width")),P||(P=B.offsetHeight||B.height||T.attr("height")),j=O>j?O:j,C=P>C?P:C}g.containerResize&&j>0&&C>0&&n.css({width:j+"px",height:C+"px"}),g.containerResizeHeight&&C>0&&n.css({height:C+"px"})}var A=!1;if(g.pause&&n.bind("mouseenter.cycle",function(){A=!0,this.cyclePause++,a(b,!0)}).bind("mouseleave.cycle",function(){A&&this.cyclePause--,a(b,!0)}),!1===f(g))return!1;var k=!1;if(c.requeueAttempts=c.requeueAttempts||0,s.each(function(){var t=e(this);if(this.cycleH=g.fit&&g.height?g.height:t.height()||this.offsetHeight||this.height||t.attr("height")||0,this.cycleW=g.fit&&g.width?g.width:t.width()||this.offsetWidth||this.width||t.attr("width")||0,t.is("img")&&0===this.cycleH&&0===this.cycleW&&!this.complete){if(l.s&&g.requeueOnImageNotLoaded&&++c.requeueAttempts<100)return i(c.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH),setTimeout(function(){e(l.s,l.c).cycle(c)},g.requeueTimeout),k=!0,!1;i("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}return!0}),k)return!1;if(g.cssBefore=g.cssBefore||{},g.cssAfter=g.cssAfter||{},g.cssFirst=g.cssFirst||{},g.animIn=g.animIn||{},g.animOut=g.animOut||{},s.not(":eq("+I+")").css(g.cssBefore),e(s[I]).css(g.cssFirst),g.timeout){g.timeout=parseInt(g.timeout,10),g.speed.constructor==String&&(g.speed=e.fx.speeds[g.speed]||parseInt(g.speed,10)),g.sync||(g.speed=g.speed/2);for(var M="none"==g.fx?0:"shuffle"==g.fx?500:250;g.timeout-g.speed<M;)g.timeout+=g.speed}if(g.easing&&(g.easeIn=g.easeOut=g.easing),g.speedIn||(g.speedIn=g.speed),g.speedOut||(g.speedOut=g.speed),g.slideCount=r.length,g.currSlide=g.lastSlide=I,g.random?(++g.randomIndex==r.length&&(g.randomIndex=0),g.nextSlide=g.randomMap[g.randomIndex]):g.backwards?g.nextSlide=0===g.startingSlide?r.length-1:g.startingSlide-1:g.nextSlide=g.startingSlide>=r.length-1?0:g.startingSlide+1,!g.multiFx){var F=e.fn.cycle.transitions[g.fx];if(e.isFunction(F))F(n,s,g);else if("custom"!=g.fx&&!g.multiFx)return i("unknown transition: "+g.fx,"; slideshow terminating"),!1}var z=s[I];
vendor: 4,353 bytes, line 1660
1660return g.skipInitializationCallbacks||(g.before.length&&g.before[0].apply(z,[z,z,g,!0]),g.after.length&&g.after[0].apply(z,[z,z,g,!0])),g.next&&e(g.next).bind(g.prevNextEvent,function(){return m(g,1)}),g.prev&&e(g.prev).bind(g.prevNextEvent,function(){return m(g,0)}),(g.pager||g.pagerAnchorBuilder)&&v(r,g),p(g,r),g}function u(t){t.original={before:[],after:[]},t.original.cssBefore=e.extend({},t.cssBefore),t.original.cssAfter=e.extend({},t.cssAfter),t.original.animIn=e.extend({},t.animIn),t.original.animOut=e.extend({},t.animOut),e.each(t.before,function(){t.original.before.push(this)}),e.each(t.after,function(){t.original.after.push(this)})}function f(t){var n,a,r=e.fn.cycle.transitions;if(t.fx.indexOf(",")>0){for(t.multiFx=!0,t.fxs=t.fx.replace(/\s*/g,"").split(","),n=0;n<t.fxs.length;n++){var o=t.fxs[n];(a=r[o])&&r.hasOwnProperty(o)&&e.isFunction(a)||(i("discarding unknown transition: ",o),t.fxs.splice(n,1),n--)}if(!t.fxs.length)return i("No valid transitions named; slideshow terminating."),!1}else if("all"==t.fx)for(var c in t.multiFx=!0,t.fxs=[],r)r.hasOwnProperty(c)&&(a=r[c],r.hasOwnProperty(c)&&e.isFunction(a)&&t.fxs.push(c));if(t.multiFx&&t.randomizeEffects){var l=Math.floor(20*Math.random())+30;for(n=0;n<l;n++){var u=Math.floor(Math.random()*t.fxs.length);t.fxs.push(t.fxs.splice(u,1)[0])}s("randomized fx sequence: ",t.fxs)}return!0}function p(t,n){t.addSlide=function(s,i){var a=e(s),r=a[0];t.autostopCount||t.countdown++,n[i?"unshift":"push"](r),t.els&&t.els[i?"unshift":"push"](r),t.slideCount=n.length,t.random&&(t.randomMap.push(t.slideCount-1),t.randomMap.sort(function(e,t){return Math.random()-.5})),a.css("position","absolute"),a[i?"prependTo":"appendTo"](t.$cont),i&&(t.currSlide++,t.nextSlide++),e.support.opacity||!t.cleartype||t.cleartypeNoBg||y(a),t.fit&&t.width&&a.width(t.width),t.fit&&t.height&&"auto"!=t.height&&a.height(t.height),r.cycleH=t.fit&&t.height?t.height:a.height(),r.cycleW=t.fit&&t.width?t.width:a.width(),a.css(t.cssBefore),(t.pager||t.pagerAnchorBuilder)&&e.fn.cycle.createPagerAnchor(n.length-1,r,e(t.pager),n,t),e.isFunction(t.onAddSlide)?t.onAddSlide(a):a.hide()}}function d(n,i,a,r){var o=i.$cont[0],c=n[i.currSlide],l=n[i.nextSlide];if(a&&i.busy&&i.manualTrump&&(s("manualTrump in go(), stopping active transition"),e(n).stop(!0,!0),i.busy=0,clearTimeout(o.cycleTimeout)),i.busy)s("transition active, ignoring new tx request");else if(o.cycleStop==i.stopCount&&(0!==o.cycleTimeout||a))if(a||o.cyclePause||i.bounce||!(i.autostop&&--i.countdown<=0||i.nowrap&&!i.random&&i.nextSlide<i.currSlide)){var u,f=!1;if(!a&&o.cyclePause||i.nextSlide==i.currSlide)v();else{f=!0;var p=i.fx;c.cycleH=c.cycleH||e(c).height(),c.cycleW=c.cycleW||e(c).width(),l.cycleH=l.cycleH||e(l).height(),l.cycleW=l.cycleW||e(l).width(),i.multiFx&&(r&&(i.lastFx===t||++i.lastFx>=i.fxs.length)?i.lastFx=0:!r&&(i.lastFx===t||--i.lastFx<0)&&(i.lastFx=i.fxs.length-1),p=i.fxs[i.lastFx]),i.oneTimeFx&&(p=i.oneTimeFx,i.oneTimeFx=null),e.fn.cycle.resetState(i,p),i.before.length&&e.each(i.before,function(e,t){o.cycleStop==i.stopCount&&t.apply(l,[c,l,i,r])});var m=function(){i.busy=0,e.each(i.after,function(e,t){o.cycleStop==i.stopCount&&t.apply(l,[c,l,i,r])}),o.cycleStop||v()};s("tx firing("+p+"); currSlide: "+i.currSlide+"; nextSlide: "+i.nextSlide),i.busy=1,i.fxFn?i.fxFn(c,l,i,m,r,a&&i.fastOnEvent):e.isFunction(e.fn.cycle[i.fx])?e.fn.cycle[i.fx](c,l,i,m,r,a&&i.fastOnEvent):e.fn.cycle.custom(c,l,i,m,r,a&&i.fastOnEvent)}(f||i.nextSlide==i.currSlide)&&(i.lastSlide=i.currSlide,i.random?(i.currSlide=i.nextSlide,++i.randomIndex==n.length&&(i.randomIndex=0,i.randomMap.sort(function(e,t){return Math.random()-.5})),i.nextSlide=i.randomMap[i.randomIndex],i.nextSlide==i.currSlide&&(i.nextSlide=i.currSlide==i.slideCount-1?0:i.currSlide+1)):i.backwards?(u=i.nextSlide-1<0)&&i.bounce?(i.backwards=!i.backwards,i.nextSlide=1,i.currSlide=0):(i.nextSlide=u?n.length-1:i.nextSlide-1,i.currSlide=u?0:i.nextSlide+1):(u=i.nextSlide+1==n.length)&&i.bounce?(i.backwards=!i.backwards,i.nextSlide=n.length-2,i.currSlide=n.length-1):(i.nextSlide=u?0:i.nextSlide+1,i.currSlide=u?n.length-1:i.nextSlide-1)),f&&i.pager&&i.updateActivePagerLink(i.pager,i.currSlide,i.activePagerClass)}else i.end&&i.end(i);function v(){var e=0;i.timeout,i.timeout&&!i.continuous?(e=h(n[i.currSlide],n[i.nextSlide],i,r),"shuffle"==i.fx&&(e-=i.speedOut)):i.
vendor: 5,170 bytes, line 1660
1660continuous&&o.cyclePause&&(e=10),e>0&&(o.cycleTimeout=setTimeout(function(){d(n,i,0,!i.backwards)},e))}}function h(e,t,n,i){if(n.timeoutFn){for(var a=n.timeoutFn.call(e,e,t,n,i);"none"!=n.fx&&a-n.speed<250;)a+=n.speed;if(s("calculated timeout: "+a+"; speed: "+n.speed),!1!==a)return a}return n.timeout}function m(t,n){var s=n?1:-1,i=t.elements,a=t.$cont[0],r=a.cycleTimeout;if(r&&(clearTimeout(r),a.cycleTimeout=0),t.random&&s<0)t.randomIndex--,-2==--t.randomIndex?t.randomIndex=i.length-2:-1==t.randomIndex&&(t.randomIndex=i.length-1),t.nextSlide=t.randomMap[t.randomIndex];else if(t.random)t.nextSlide=t.randomMap[t.randomIndex];else if(t.nextSlide=t.currSlide+s,t.nextSlide<0){if(t.nowrap)return!1;t.nextSlide=i.length-1}else if(t.nextSlide>=i.length){if(t.nowrap)return!1;t.nextSlide=0}var o=t.onPrevNextEvent||t.prevNextClick;return e.isFunction(o)&&o(s>0,t.nextSlide,i[t.nextSlide]),d(i,t,1,n),!1}function v(t,n){var s=e(n.pager);e.each(t,function(i,a){e.fn.cycle.createPagerAnchor(i,a,s,t,n)}),n.updateActivePagerLink(n.pager,n.startingSlide,n.activePagerClass)}function y(t){function n(e){return(e=parseInt(e,10).toString(16)).length<2?"0"+e:e}function i(t){for(;t&&"html"!=t.nodeName.toLowerCase();t=t.parentNode){var s=e.css(t,"background-color");if(s&&s.indexOf("rgb")>=0){var i=s.match(/\d+/g);return"#"+n(i[0])+n(i[1])+n(i[2])}if(s&&"transparent"!=s)return s}return"#ffffff"}s("applying clearType background-color hack"),t.each(function(){e(this).css("background-color",i(this))})}e.expr[":"].paused=function(e){return e.cyclePause},e.fn.cycle=function(t,n){var a={s:this.selector,c:this.context};return 0===this.length&&"stop"!=t?!e.isReady&&a.s?(i("DOM not ready, queuing slideshow"),e(function(){e(a.s,a.c).cycle(t,n)}),this):(i("terminating; zero elements found by selector"+(e.isReady?"":" (DOM not ready)")),this):this.each(function(){var o=r(this,t,n);if(!1!==o){o.updateActivePagerLink=o.updateActivePagerLink||e.fn.cycle.updateActivePagerLink,this.cycleTimeout&&clearTimeout(this.cycleTimeout),this.cycleTimeout=this.cyclePause=0,this.cycleStop=0;var c=e(this),u=o.slideExpr?e(o.slideExpr,this):c.children(),f=u.get();if(f.length<2)i("terminating; too few slides: "+f.length);else{var p=l(c,u,f,o,a);if(!1!==p){var m=p.continuous?10:h(f[p.currSlide],f[p.nextSlide],p,!p.backwards);m&&((m+=p.delay||0)<10&&(m=10),s("first timeout: "+m),this.cycleTimeout=setTimeout(function(){d(f,p,0,!o.backwards)},m))}}}})},e.fn.cycle.resetState=function(t,n){n=n||t.fx,t.before=[],t.after=[],t.cssBefore=e.extend({},t.original.cssBefore),t.cssAfter=e.extend({},t.original.cssAfter),t.animIn=e.extend({},t.original.animIn),t.animOut=e.extend({},t.original.animOut),t.fxFn=null,e.each(t.original.before,function(){t.before.push(this)}),e.each(t.original.after,function(){t.after.push(this)});var s=e.fn.cycle.transitions[n];e.isFunction(s)&&s(t.$cont,e(t.elements),t)},e.fn.cycle.updateActivePagerLink=function(t,n,s){e(t).each(function(){e(this).children().removeClass(s).eq(n).addClass(s)})},e.fn.cycle.next=function(e){m(e,1)},e.fn.cycle.prev=function(e){m(e,0)},e.fn.cycle.createPagerAnchor=function(t,n,i,r,o){var c;if(e.isFunction(o.pagerAnchorBuilder)?(c=o.pagerAnchorBuilder(t,n),s("pagerAnchorBuilder("+t+", el) returned: "+c)):c='<a href="#">'+(t+1)+"</a>",c){var l=e(c);if(0===l.parents("body").length){var u=[];i.length>1?(i.each(function(){var t=l.clone(!0);e(this).append(t),u.push(t[0])}),l=e(u)):l.appendTo(i)}o.pagerAnchors=o.pagerAnchors||[],o.pagerAnchors.push(l);var f=function(n){n.preventDefault(),o.nextSlide=t;var s=o.$cont[0],i=s.cycleTimeout;i&&(clearTimeout(i),s.cycleTimeout=0);var a=o.onPagerEvent||o.pagerClick;e.isFunction(a)&&a(o.nextSlide,r[o.nextSlide]),d(r,o,1,o.currSlide<t)};/mouseenter|mouseover/i.test(o.pagerEvent)?l.hover(f,function(){}):l.bind(o.pagerEvent,f),/^click/.test(o.pagerEvent)||o.allowPagerClickBubble||l.bind("click.cycle",function(){return!1});var p=o.$cont[0],h=!1;o.pauseOnPagerHover&&l.hover(function(){h=!0,p.cyclePause++,a(p,!0,!0)},function(){h&&p.cyclePause--,a(p,!0,!0)})}},e.fn.cycle.hopsFromLast=function(e,t){var n=e.lastSlide,s=e.currSlide;return t?s>n?s-n:e.slideCount-n:s<n?n-s:n+e.slideCount-s},e.fn.cycle.commonReset=function(t,n,s,i,a,r){e(s.elements).not(t).hide(),void 0===s.cssBefore.opacity&&(s.cssBefore.opacity=1),s.cssBefore.display="block",s.slideResize&&!1!==i&&n.cycleW>0&&(s.cssBefore.width=n.cycleW),s.slideResize&&!1!==a&&n.cycleH>0&&(s.cssBefore.height=n.cycleH),s.cssAfter=s.cssAfter||{},s.cssAfter.display="none",e(t).css("zIndex",s.slideCount+(!0===r?1:0)),e(n).css("zIndex",s.slideCount+(!0===r?0:1))},e.fn.cycle.custom=function(t,n,s,i,a,r){var o=e(t),c=e(n),l=s.speedIn,u=s.speedOut,f=s.easeIn,p=s.easeOut,d=s.animInDelay,h=s.animOutDelay;c.css(s.cssBefore),r&&(l=u="number"==typeof r?r:1,f=p=null);var m=function(){c.delay(d).animate(s.animIn,l,f,function(){i()})};o.delay(h).animate(s.animOut,u,p,function(){o.css(s.cssAfter),s.sync||m()}),s.sync&&m()},e.fn.cycle.transitions={fade:function(t,n,s){n.not(":eq("+s.currSlide+")").css("opacity",0),s.before.push(function(t,n,s){e.fn.cycle.commonReset(t,n,s),s.cssBefore.opacity=0}),s.animIn={opacity:1},s.animOut={opacity:0}
1660,s.cssBefore={top:0,left:0}}},e.fn.cycle.ver=function(){return n},e.fn.cycle.defaults={activePagerClass:"activeSlide",after:null,allowPagerClickBubble:!1,animIn:null,animInDelay:0,animOut:null,animOutDelay:0,aspect:!1,autostop:0,autostopCount:0,backwards:!1,before:null,center:null,cleartype:!e.support.opacity,cleartypeNoBg:!1,containerResize:1,containerResizeHeight:0,continuous:0,cssAfter:null,cssBefore:null,delay:0,easeIn:null,easeOut:null,easing:null,end:null,fastOnEvent:0,fit:0,fx:"fade",fxFn:null,height:"auto",manualTrump:!0,metaAttr:"cycle",next:null,nowrap:0,onPagerEvent:null,onPrevNextEvent:null,pager:null,pagerAnchorBuilder:null,pagerEvent:"click.cycle",pause:0,pauseOnPagerHover:0,prev:null,prevNextEvent:"click.cycle",random:0,randomizeEffects:1,requeueOnImageNotLoaded:!0,requeueTimeout:250,rev:0,shuffle:null,skipInitializationCallbacks:!1,slideExpr:null,slideResize:1,speed:1e3,speedIn:null,speedOut:null,startingSlide:t,sync:1,timeout:4e3,timeoutFn:null,updateActivePagerLink:null,width:null},e.fn.cycle.transitions.none=function(t,n,s){s.fxFn=function(t,n,s,i){e(n).show(),e(t).hide(),i()}},e.fn.cycle.transitions.fadeout=function(t,n,s){n.not(":eq("+s.currSlide+")").css({display:"block",opacity:1}),s.before.push(function(t,n,s,i,a,r){e(t).css("zIndex",s.slideCount+(!0!==r?1:0)),e(n).css("zIndex",s.slideCount+(!0!==r?0:1))}),s.animIn.opacity=1,s.animOut.opacity=0,s.cssBefore.opacity=1,s.cssBefore.display="block",s.cssAfter.zIndex=0},e.fn.cycle.transitions.scrollUp=function(t,n,s){t.css("overflow","hidden"),s.before.push(e.fn.cycle.commonReset);var i=t.height();s.cssBefore.top=i,s.cssBefore.left=0,s.cssFirst.top=0,s.animIn.top=0,s.animOut.top=-i},e.fn.cycle.transitions.scrollDown=function(t,n,s){t.css("overflow","hidden"),s.before.push(e.fn.cycle.commonReset);var i=t.height();s.cssFirst.top=0,s.cssBefore.top=-i,s.cssBefore.left=0,s.animIn.top=0,s.animOut.top=i},e.fn.cycle.transitions.scrollLeft=function(t,n,s){t.css("overflow","hidden"),s.before.push(e.fn.cycle.commonReset);var i=t.width();s.cssFirst.left=0,s.cssBefore.left=i,s.cssBefore.top=0,s.animIn.left=0,s.animOut.left=0-i},e.fn.cycle.transitions.scrollRight=function(t,n,s){t.css("overflow","hidden"),s.before.push(e.fn.cycle.commonReset);var i=t.width();s.cssFirst.left=0,s.cssBefore.left=-i,s.cssBefore.top=0,s.animIn.left=0,s.animOut.left=i},e.fn.cycle.transitions.scrollHorz=function(t,n,s){t.css("overflow","hidden").width(),s.before.push(function(t,n,s,i){s.rev&&(i=!i),e.fn.cycle.commonReset(t,n,s),s.cssBefore.left=i?n.cycleW-1:1-n.cycleW,s.animOut.left=i?-t.cycleW:t.cycleW}),s.cssFirst.left=0,s.cssBefore.top=0,s.animIn.left=0,s.animOut.top=0},e.fn.cycle.transitions.scrollVert=function(t,n,s){t.css("overflow","hidden"),s.before.push(function(t,n,s,i){s.rev&&(i=!i),e.fn.cycle.commonReset(t,n,s),s.cssBefore.top=i?1-n.cycleH:n.cycleH-1,s.animOut.top=i?t.cycleH:-t.cycleH}),s.cssFirst.top=0,s.cssBefore.left=0,s.animIn.top=0,s.animOut.left=0},e.fn.cycle.transitions.slideX=function(t,n,s){s.before.push(function(t,n,s){e(s.elements).not(t).hide(),e.fn.cycle.commonReset(t,n,s,!1,!0),s.animIn.width=n.cycleW}),s.cssBefore.left=0,s.cssBefore.top=0,s.cssBefore.width=0,s.animIn.width="show",s.animOut.width=0},e.fn.cycle.transitions.slideY=function(t,n,s){s.before.push(function(t,n,s){e(s.elements).not(t).hide(),e.fn.cycle.commonReset(t,n,s,!0,!1),s.animIn.height=n.cycleH}),s.cssBefore.left=0,s.cssBefore.top=0,s.cssBefore.height=0,s.animIn.height="show",s.animOut.height=0},e.fn.cycle.transitions.shuffle=function(t,n,s){var i,a=t.css("overflow","visible").width();for(n.css({left:0,top:0}),s.before.push(function(t,n,s){e.fn.cycle.commonReset(t,n,s,!0,!0,!0)}),s.speedAdjusted||(s.speed=s.speed/2,s.speedAdjusted=!0),s.random=0,s.shuffle=s.shuffle||{left:-a,top:15},s.els=[],i=0;i<n.length;i++)s.els.push(n[i]);for(i=0;i<s.currSlide;i++)s.els.push(s.els.shift());s.fxFn=function(t,n,s,i,a){s.rev&&(a=!a);var r=e(a?t:n);e(n).css(s.cssBefore);var o=s.slideCount;r.animate(s.shuffle,s.speedIn,s.easeIn,function(){for(var n=e.fn.cycle.hopsFromLast(s,a),c=0;c<n;c++)a?s.els.push(s.els.shift()):s.els.unshift(s.els.pop());if(a)for(var l=0,u=s.els.length;l<u;l++)e(s.els[l]).css("z-index",u-l+o);else{var f=e(t).css("z-index");r.css("z-index",parseInt(f,10)+1+o)}r.animate({left:0,top:0},s.speedOut,s.easeOut,function(){e(a?this:t).hide(),i&&i()})})},e.extend(s.cssBefore,{display:"block",opacity:1,top:0,left:0})},e.fn.cycle.transitions.turnUp=function(t,n,s){s.before.push(function(t,n,s){e.fn.cycle.commonReset(t,n,s,!0,!1),s.cssBefore.top=n.cycleH,s.animIn.height=n.cycleH,s.animOut.width=n.cycleW}),s.cssFirst.top=0,s.cssBefore.left=0,s.cssBefore.height=0,s.animIn.top=0,s.animOut.height=0},e.fn.cycle.transitions.turnDown=function(t,n,s){s.before.push(function(t,n,s){e.fn.cycle.commonReset(t,n,s,!0,!1),s.animIn.height=n.cycleH,s.animOut.top=t.cycleH}),s.cssFirst.top=0,s.cssBefore.left=0,s.cssBefore.top=0,s.cssBefore.height=0,s.animOut.height=0},e.fn.cycle.transitions.turnLeft=function(t,n,s){s.before.push(function(t,n,s){e.fn.cycle.commonReset(t,n,s,!1,!0),s.cssBefore.left=n.cycleW,s.animIn.width=n.cycleW}),s.cssBefore.top=0,s.cssBefore.width=0,s.animIn.left=0,s.animOut.width=0},e.fn.cycle.transitions.turnRight=function(t,n,s){s.before.push(function(t,n,s){e.fn.cycle.commonReset(t,n,s,!1,!0),s.animIn.width=n.cycleW,s.animOut.left=t.cycleW}),e.extend(s.cssBefore,{top:0,left:0,width:0}),s.animIn.left=0,s.animOut.width=0},e.fn.cycle.transitions.zoom=function(t,n,s){s.before.push(function(t,n,s){e.fn.cycle.commonReset(t,n,s,!1,!1,
1660!0),s.cssBefore.top=n.cycleH/2,s.cssBefore.left=n.cycleW/2,e.extend(s.animIn,{top:0,left:0,width:n.cycleW,height:n.cycleH}),e.extend(s.animOut,{width:0,height:0,top:t.cycleH/2,left:t.cycleW/2})}),s.cssFirst.top=0,s.cssFirst.left=0,s.cssBefore.width=0,s.cssBefore.height=0},e.fn.cycle.transitions.fadeZoom=function(t,n,s){s.before.push(function(t,n,s){e.fn.cycle.commonReset(t,n,s,!1,!1),s.cssBefore.left=n.cycleW/2,s.cssBefore.top=n.cycleH/2,e.extend(s.animIn,{top:0,left:0,width:n.cycleW,height:n.cycleH})}),s.cssBefore.width=0,s.cssBefore.height=0,s.animOut.opacity=0},e.fn.cycle.transitions.blindX=function(t,n,s){var i=t.css("overflow","hidden").width();s.before.push(function(t,n,s){e.fn.cycle.commonReset(t,n,s),s.animIn.width=n.cycleW,s.animOut.left=t.cycleW}),s.cssBefore.left=i,s.cssBefore.top=0,s.animIn.left=0,s.animOut.left=i},e.fn.cycle.transitions.blindY=function(t,n,s){var i=t.css("overflow","hidden").height();s.before.push(function(t,n,s){e.fn.cycle.commonReset(t,n,s),s.animIn.height=n.cycleH,s.animOut.top=t.cycleH}),s.cssBefore.top=i,s.cssBefore.left=0,s.animIn.top=0,s.animOut.top=i},e.fn.cycle.transitions.blindZ=function(t,n,s){var i=t.css("overflow","hidden").height(),a=t.width();s.before.push(function(t,n,s){e.fn.cycle.commonReset(t,n,s),s.animIn.height=n.cycleH,s.animOut.top=t.cycleH}),s.cssBefore.top=i,s.cssBefore.left=a,s.animIn.top=0,s.animIn.left=0,s.animOut.top=i,s.animOut.left=a},e.fn.cycle.transitions.growX=function(t,n,s){s.before.push(function(t,n,s){e.fn.cycle.commonReset(t,n,s,!1,!0),s.cssBefore.left=this.cycleW/2,s.animIn.left=0,s.animIn.width=this.cycleW,s.animOut.left=0}),s.cssBefore.top=0,s.cssBefore.width=0},e.fn.cycle.transitions.growY=function(t,n,s){s.before.push(function(t,n,s){e.fn.cycle.commonReset(t,n,s,!0,!1),s.cssBefore.top=this.cycleH/2,s.animIn.top=0,s.animIn.height=this.cycleH,s.animOut.top=0}),s.cssBefore.height=0,s.cssBefore.left=0},e.fn.cycle.transitions.curtainX=function(t,n,s){s.before.push(function(t,n,s){e.fn.cycle.commonReset(t,n,s,!1,!0,!0),s.cssBefore.left=n.cycleW/2,s.animIn.left=0,s.animIn.width=this.cycleW,s.animOut.left=t.cycleW/2,s.animOut.width=0}),s.cssBefore.top=0,s.cssBefore.width=0},e.fn.cycle.transitions.curtainY=function(t,n,s){s.before.push(function(t,n,s){e.fn.cycle.commonReset(t,n,s,!0,!1,!0),s.cssBefore.top=n.cycleH/2,s.animIn.top=0,s.animIn.height=n.cycleH,s.animOut.top=t.cycleH/2,s.animOut.height=0}),s.cssBefore.height=0,s.cssBefore.left=0},e.fn.cycle.transitions.cover=function(t,n,s){var i=s.direction||"left",a=t.css("overflow","hidden").width(),r=t.height();s.before.push(function(t,n,s){e.fn.cycle.commonReset(t,n,s),s.cssAfter.display="","right"==i?s.cssBefore.left=-a:"up"==i?s.cssBefore.top=r:"down"==i?s.cssBefore.top=-r:s.cssBefore.left=a}),s.animIn.left=0,s.animIn.top=0,s.cssBefore.top=0,s.cssBefore.left=0},e.fn.cycle.transitions.uncover=function(t,n,s){var i=s.direction||"left",a=t.css("overflow","hidden").width(),r=t.height();s.before.push(function(t,n,s){e.fn.cycle.commonReset(t,n,s,!0,!0,!0),"right"==i?s.animOut.left=a:"up"==i?s.animOut.top=-r:"down"==i?s.animOut.top=r:s.animOut.left=-a}),s.animIn.left=0,s.animIn.top=0,s.cssBefore.top=0,s.cssBefore.left=0},e.fn.cycle.transitions.toss=function(t,n,s){var i=t.css("overflow","visible").width(),a=t.height();s.before.push(function(t,n,s){e.fn.cycle.commonReset(t,n,s,!0,!0,!0),s.animOut.left||s.animOut.top?s.animOut.opacity=0:e.extend(s.animOut,{left:2*i,top:-a/2,opacity:0})}),s.cssBefore.left=0,s.cssBefore.top=0,s.animIn.left=0},e.fn.cycle.transitions.wipe=function(t,n,s){var i,a=t.css("overflow","hidden").width(),r=t.height();if(s.cssBefore=s.cssBefore||{},s.clip)if(/l2r/.test(s.clip))i="rect(0px 0px "+r+"px 0px)";else if(/r2l/.test(s.clip))i="rect(0px "+a+"px "+r+"px "+a+"px)";else if(/t2b/.test(s.clip))i="rect(0px "+a+"px 0px 0px)";else if(/b2t/.test(s.clip))i="rect("+r+"px "+a+"px "+r+"px 0px)";else if(/zoom/.test(s.clip)){var o=parseInt(r/2,10),c=parseInt(a/2,10);i="rect("+o+"px "+c+"px "+o+"px "+c+"px)"}s.cssBefore.clip=s.cssBefore.clip||i||"rect(0px 0px 0px 0px)";var l=s.cssBefore.clip.match(/(\d+)/g),u=parseInt(l[0],10),f=parseInt(l[1],10),p=parseInt(l[2],10),d=parseInt(l[3],10);s.before.push(function(t,n,s){if(t!=n){var i=e(t),o=e(n);e.fn.cycle.commonReset(t,n,s,!0,!0,!1),s.cssAfter.display="block";var c=1,l=parseInt(s.speedIn/13,10)-1;!function e(){var t=u?u-parseInt(c*(u/l),10):0,n=d?d-parseInt(c*(d/l),10):0,s=p<r?p+parseInt(c*((r-p)/l||1),10):r,h=f<a?f+parseInt(c*((a-f)/l||1),10):a;o.css({clip:"rect("+t+"px "+h+"px "+s+"px "+n+"px)"}),c++<=l?setTimeout(e,13):i.css("display","none")}()}}),e.extend(s.cssBefore,{display:"block",opacity:1,top:0,left:0}),s.animIn={left:0},s.animOut={left:0}}},void 0===(a="function"==typeof s?s.apply(t,i):s)||(e.exports=a)},8240(){!function(e){function t(e,t){t&&e.append(t.jquery?t.clone():t)}function n(t,n,s){var i,a,r,o=n.clone(s.formValues);s.formValues&&(i=o,a="select, textarea",r=n.find(a),i.find(a).each(function(t,n){e(n).val(r.eq(t).val())})),s.removeScripts&&o.find("script").remove(),s.printContainer?o.appendTo(t):o.each(function(){e(this).children().appendTo(t)})}var s;e.fn.printThis=function(i){s=e.extend({},e.fn.printThis.defaults,i);var a=this instanceof jQuery?this:e(this),r="printThis-"+(new Date).getTime();if(window.location.hostname!==document.domain&&navigator.userAgent.match(/msie/i)){var o='javascript:document.write("<head><script>document.domain=\\"'+document.domain+'\\";<\/script></head><body></body>")',c=document.createElement("iframe");c.name="printIframe",c.id=r,c.className="MSIE",document.body.appendChild(c),c.src=o}else{e("<iframe id='"+r+"' name='printIframe' />").appendTo("body")}var l=e("#"+r);s.debug||l.css({position:"absolute",width:"0px",height:"0px",left:"-600px",top:"-600px"}),"function"==typeof s.beforePrint&&s.beforePrint(),setTimeout(function(){s.doctype
1660String&&function(e,t){var n,s;(s=(n=(n=e.get(0)).contentWindow||n.contentDocument||n).document||n.contentDocument||n).open(),s.write(t),s.close()}(l,s.doctypeString);var i,r=l.contents(),o=r.find("head"),c=r.find("body"),u=e("base");i=!0===s.base&&u.length>0?u.attr("href"):"string"==typeof s.base?s.base:document.location.protocol+"//"+document.location.host,o.append('<base href="'+i+'">'),s.importCSS&&e("link[rel=stylesheet]").each(function(){var t=e(this).attr("href");if(t){var n=e(this).attr("media")||"all";o.append("<link type='text/css' rel='stylesheet' href='"+t+"' media='"+n+"'>")}}),s.importStyle&&e("style").each(function(){o.append(this.outerHTML)}),s.pageTitle&&o.append("<title>"+s.pageTitle+"</title>"),s.loadCSS&&(e.isArray(s.loadCSS)?jQuery.each(s.loadCSS,function(e,t){o.append("<link type='text/css' rel='stylesheet' href='"+this+"'>")}):o.append("<link type='text/css' rel='stylesheet' href='"+s.loadCSS+"'>"));var f=e("html")[0];r.find("html").prop("style",f.style.cssText);var p=s.copyTagClasses;if(p&&(-1!==(p=!0===p?"bh":p).indexOf("b")&&c.addClass(e("body")[0].className),-1!==p.indexOf("h")&&r.find("html").addClass(f.className)),(p=s.copyTagStyles)&&(-1!==(p=!0===p?"bh":p).indexOf("b")&&c.attr("style",e("body")[0].style.cssText),-1!==p.indexOf("h")&&r.find("html").attr("style",f.style.cssText)),t(c,s.header),s.canvas){var d=0;a.find("canvas").addBack("canvas").each(function(){e(this).attr("data-printthis",d++)})}if(n(c,a,s),s.canvas&&c.find("canvas").each(function(){var t=e(this).data("printthis"),n=e('[data-printthis="'+t+'"]');this.getContext("2d").drawImage(n[0],0,0),e.isFunction(e.fn.removeAttr)?n.removeAttr("data-printthis"):e.each(n,function(e,t){t.removeAttribute("data-printthis")})}),s.removeInline){var h=s.removeInlineSelector||"*";e.isFunction(e.removeAttr)?c.find(h).removeAttr("style"):c.find(h).attr("style","")}t(c,s.footer),function(e,t){var n=e.get(0);n=n.contentWindow||n.contentDocument||n,"function"==typeof t&&("matchMedia"in n?n.matchMedia("print").addListener(function(e){e.matches&&t()}):n.onbeforeprint=t)}(l,s.beforePrintEvent),setTimeout(function(){l.hasClass("MSIE")?(window.frames.printIframe.focus(),o.append("<script>  window.print(); <\/script>")):document.queryCommandSupported("print")?l[0].contentWindow.document.execCommand("print",!1,null):(l[0].contentWindow.focus(),l[0].contentWindow.print()),s.debug||setTimeout(function(){l.remove()},1e3),"function"==typeof s.afterPrint&&s.afterPrint()},s.printDelay)},333)},e.fn.printThis.defaults={debug:!1,importCSS:!0,importStyle:!0,printContainer:!0,loadCSS:"",pageTitle:"",removeInline:!1,removeInlineSelector:"*",printDelay:1e3,header:null,footer:null,base:!1,formValues:!0,canvas:!0,doctypeString:"<!DOCTYPE html>",removeScripts:!1,copyTagClasses:!0,copyTagStyles:!0,beforePrintEvent:null,beforePrint:null,afterPrint:null}}(jQuery)},428(e){"use strict";e.exports=window.jQuery}};const t={};function n(s){const i=t[s];if(void 0!==i)return i.exports;const a=t[s]={exports:{}};return e[s](a,a.exports,n),a.exports}n.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var s in t)n.o(t,s)&&!n.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},n.o=(e,t)=>Object.hasOwn(e,t),(()=>{"use strict";n(5896),n(8240),n(8395)})()})();;
1661(()=>{function e(e,t,i){this.element=e,this.images=[],this.controls={},this.transition=t||"fade",this.autostart=i}e.prototype.showLoadingImage=function(e){if(e){this.loadingImage_=document.createElement("div"),this.loadingImage_.className="jetpack-slideshow-loading";var t=document.createElement("img");t.src=jetpackSlideshowSettings.spinner,this.loadingImage_.appendChild(t),this.loadingImage_.appendChild(this.makeZeroWidthSpan()),this.element.append(this.loadingImage_)}else this.loadingImage_&&(this.loadingImage_.parentNode.removeChild(this.loadingImage_),this.loadingImage_=null)},e.prototype.init=function(){this.showLoadingImage(!0);for(var e=this,t=0;t<this.images.length;t++){var i=this.images[t],s=document.createElement("img");s.src=i.src,s.title=void 0!==i.title?i.title:"",s.alt=void 0!==i.alt?i.alt:"",s.setAttribute("itemprop","image"),s.nopin="nopin";var n=document.createElement("div");
1661n.className="jetpack-slideshow-slide-caption",n.setAttribute("itemprop","caption description"),n.innerHTML=i.caption;var o=document.createElement("div");o.className="jetpack-slideshow-slide",o.setAttribute("itemprop","associatedMedia"),o.setAttribute("itemscope",""),o.setAttribute("itemtype","https://schema.org/ImageObject"),0===t&&(s.complete?setTimeout(function(){e.finishInit_()},1):s.addEventListener("load",function(){e.finishInit_()})),o.appendChild(s),s.removeAttribute("width"),s.removeAttribute("height"),o.appendChild(this.makeZeroWidthSpan()),o.appendChild(n),this.element.append(o)}},e.prototype.makeZeroWidthSpan=function(){var e=document.createElement("span");return e.className="jetpack-slideshow-line-height-hack",-1!==window.navigator.userAgent.indexOf("MSIE ")?e.appendChild(document.createTextNode(" ")):e.innerHTML="&nbsp;",e},e.prototype.finishInit_=function(){this.showLoadingImage(!1);var e=this;if(this.images.length>1){this.renderControls_(),jQuery(this.element).cycle({fx:this.transition,prev:this.controls.prev,next:this.controls.next,timeout:jetpackSlideshowSettings.speed,slideExpr:".jetpack-slideshow-slide",onPrevNextEvent:function(){return e.onCyclePrevNextClick_.apply(e,arguments)}});var t=this.element;this.autostart||(jQuery(t).cycle("pause"),this.controls.stop.classList.remove("running"),this.controls.stop.classList.add("paused")),this.controls.stop.addEventListener("click",function(e){var i=e.currentTarget;i===e.target&&(e.preventDefault(),i.classList.contains("paused")?(i.classList.add("running"),i.classList.remove("paused"),jQuery(t).cycle("resume",!0)):(jQuery(t).cycle("pause"),i.classList.remove("running"),i.classList.add("paused")))})}else this.element.children.length&&(this.element.children[0].style.display="block",this.element.style.position="relative");this.initialized_=!0},e.prototype.renderControls_=function(){if(!this.controlsDiv_){var e=document.createElement("div");e.className="jetpack-slideshow-controls";for(var t=["prev","stop","next"],i=0;i<t.length;i++){var s=t[i],n="label_"+s,o=document.createElement("a");o.href="#",o.className="button-"+s,o.setAttribute("aria-label",jetpackSlideshowSettings[n]),o.setAttribute("role","button"),e.appendChild(o),this.controls[s]=o}this.element.append(e),this.controlsDiv_=e}},e.prototype.onCyclePrevNextClick_=function(e,t){if(jetpackSlideshowSettings.blog_id){var i=this.images[t].id;(new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?host="+encodeURIComponent(document.location.host)+"&rand="+Math.random()+"&blog="+jetpackSlideshowSettings.blog_id+"&subd="+jetpackSlideshowSettings.blog_subdomain+"&user_id="+jetpackSlideshowSettings.user_id+"&post="+i+"&ref="+encodeURIComponent(document.location)}},function(){function t(){document.querySelectorAll(".jetpack-slideshow-noscript").forEach(function(e){e.remove()}),document.querySelectorAll(".jetpack-slideshow").forEach(function(t){if("true"!==t.dataset.processed){var i=t.dataset.trans,s="true"===t.dataset.autostart,n=JSON.parse(t.dataset.gallery||"[]"),o=new e(t,i,s);o.images=n,o.init(),t.dataset.processed="true"}})}document.addEventListener("DOMContentLoaded",t),document.body.addEventListener("post-load",t)}()})();;
1662( function () {
1663	'use strict';
1664
1665	if ( typeof window.wpcom === 'undefined' ) {
1666		window.wpcom = {};
1667	}
1668
1669	if ( window.wpcom.carousel ) {
1670		return;
1671	}
1672
1673	var prebuilt_widths = jetpackCarouselStrings.widths;
1674	var pageviews_stats_args = jetpackCarouselStrings.stats_query_args;
1675
1676	var findFirstLargeEnoughWidth = function ( original_w, original_h, dest_w, dest_h ) {
1677		var inverse_ratio = original_h / original_w;
1678
1679		for ( var i = 0; i < prebuilt_widths.length; ++i ) {
1680			if ( prebuilt_widths[ i ] >= dest_w || prebuilt_widths[ i ] * inverse_ratio >= dest_h ) {
1681				return prebuilt_widths[ i ];
1682			}
1683		}
1684
1685		return original_w;
1686	};
1687
1688	var removeResizeFromImageURL = function ( url ) {
1689		return removeArgFromURL( url, 'resize' );
1690	};
1691
1692	var removeArgFromURL = function ( url, arg ) {
1693		var re = new RegExp( '[\\?&]' + arg + '(=[^?&]+)?' );
1694		if ( url.match( re ) ) {
1695			return url.replace( re, '' );
1696		}
1697		return url;
1698	};
1699
1700	var addWidthToImageURL = function ( url, width ) {
1701		width = parseInt( width, 10 );
1702		// Give devices with a higher devicePixelRatio higher-res images (Retina display = 2, Android ph
1702ones = 1.5, etc)
1703		if ( 'undefined' !== typeof window.devicePixelRatio && window.devicePixelRatio > 1 ) {
1704			width = Math.round( width * window.devicePixelRatio );
1705		}
1706		url = addArgToURL( url, 'w', width );
1707		url = addArgToURL( url, 'h', '' );
1708		return url;
1709	};
1710
1711	var addArgToURL = function ( url, arg, value ) {
1712		var re = new RegExp( arg + '=[^?&]+' );
1713		if ( url.match( re ) ) {
1714			return url.replace( re, arg + '=' + value );
1715		} else {
1716			var divider = url.indexOf( '?' ) !== -1 ? '&' : '?';
1717			return url + divider + arg + '=' + value;
1718		}
1719	};
1720
1721	var stat = function ( names ) {
1722		if ( typeof names !== 'string' ) {
1723			names = names.join( ',' );
1724		}
1725
1726		new Image().src = window.location.protocol +
1727			'//pixel.wp.com/g.gif?v=wpcom-no-pv' +
1728			'&x_carousel=' + names +
1729			'&baba=' + Math.random();
1730	};
1731
1732	var lastTrackedPostId = null;
1733
1734	var pageview = function ( post_id ) {
1735		// Prevent duplicate tracking of the same post during slide transitions
1736		if ( post_id === lastTrackedPostId ) {
1737			return;
1738		}
1739
1740		lastTrackedPostId = post_id;
1741
1742		new Image().src = window.location.protocol +
1743			'//pixel.wp.com/g.gif?host=' + encodeURIComponent( window.location.host ) +
1744			'&ref=' + encodeURIComponent( document.referrer ) +
1745			'&rand=' + Math.random() +
1746			'&' + pageviews_stats_args +
1747			'&post=' + encodeURIComponent( post_id );
1748	};
1749
1750	var generateImgSrc = function ( srcItem, max ) {
1751		var origSize = srcItem.getAttribute( 'data-orig-size' ) || '';
1752
1753		var src = srcItem.getAttribute( 'src' ) || srcItem.getAttribute( 'original' ) || srcItem.getAttribute( 'data-original' ) || srcItem.getAttribute( 'data-lazy-src' );
1754		if ( src.indexOf( 'imgpress' ) !== -1 ) {
1755			src = srcItem.getAttribute( 'data-orig-file' );
1756		}
1757		// Square/Circle galleries use a resize param that needs to be removed.
1758		src = removeResizeFromImageURL( src );
1759		src = addWidthToImageURL(
1760			src,
1761			findFirstLargeEnoughWidth( origSize.width, origSize.height, max.width, max.height )
1762		);
1763
1764		return src;
1765	};
1766
1767	window.wpcom.carousel = {
1768		findFirstLargeEnoughWidth: findFirstLargeEnoughWidth,
1769		removeResizeFromImageURL: removeResizeFromImageURL,
1770		addWidthToImageURL: addWidthToImageURL,
1771		stat: stat,
1772		pageview: pageview,
1773		generateImgSrc: generateImgSrc
1774	};
1775
1776} )();
1777;
1778!function(){var e=document.currentScript;function t(t){var n=document.createElement("script"),o=e||document.getElementsByTagName("script")[0];n.setAttribute("async",!0),n.setAttribute("src",t),o.parentNode.insertBefore(n,o)}function n(e,t){return Element.prototype.matches?e.matches(t):Element.prototype.msMatchesSelector?e.msMatchesSelector(t):void 0}function o(e,t){if(e.closest)return e.closest(t);var o=e;do{if(n(o,t))return o;o=o.parentElement||o.parentNode}while(null!==o&&1===o.nodeType);return null}function i(e,t){for(var n=0;n<e.length;n++)t(e[n],n,e)}var r,s=".sharing-hidden .inner",a="data-sharing-more-button-id";function c(e){this.button=e,this.pane=o(e,"div").querySelector(s),this.openedBy=null,this.recentlyOpenedByHover=!1,c.instances.push(this),this.pane.setAttribute(a,c.instances.length-1),this.attachHandlers()}if(c.instances=[],c.hoverOpenDelay=200,c.recentOpenDelay=400,c.hoverCloseDelay=300,c.instantiateOrReuse=function(e){var t=o(e,"div").querySelector(s),n=t&&t.getAttribute(a),i=c.instances[n];return i||new c(e)},c.getButtonInstanceFromPane=function(e){var t=e&&e.getAttribute(a);return c.instances[t]},c.closeAll=function(){for(var e=0;e<c.instances.length;e++)c.instances[e].close()},c.prototype.open=function(){var e,t,n=[0,0];function o(e){var t=e.getBoundingClientRect();return[t.left+(window.scrollX||window.pageXOffset||0),t.top+(window.scrollY||window.pageYOffset||0)]}function i(e,t){return parseInt(getComputedStyle(e).getPropertyValue(t)||0)}for(e=o(this.button),t=this.button.offsetParent||document.documentElement;t&&(t===document.body||t===document.documentElement)&&"static"===getComputedStyle(t).getPropertyValue("position");)t=t.parentNode;t&&t!==this.button&&1===t.nodeType&&(n=[(n=o(t))[0]+i(t,"border-left-width"),n[1]+i(t,"border-top-width")]);var r,s=e[0]-n[0]-i(this.button,"margin-left"),a=e[1]-n[1]-i(this.button,"margin-top");this.pane.style.left=s+"px",this.pane.style.top=a+this.button.offsetHeight+3+"px",(r=this.pane)&&r.style.removeProperty("display")},c.prototype.close=function(){var e;(e=this.pane)&&(e.style.display="none"),this.openedBy=null},c.prototype.toggle=function(){var e;(e=this.pane)&&"none"!==e.style.display?this.close():this.open()}
1778,c.prototype.nonHoverOpen=function(){clearTimeout(this.openTimer),clearTimeout(this.closeTimer),this.recentlyOpenedByHover?(this.recentlyOpenedByHover=!1,clearTimeout(this.hoverOpenTimer),this.open()):this.toggle()},c.prototype.resetCloseTimer=function(){clearTimeout(this.closeTimer),this.closeTimer=setTimeout(this.close.bind(this),c.hoverCloseDelay)},c.prototype.attachHandlers=function(){this.buttonClick=function(e){e.preventDefault(),e.stopPropagation(),this.openedBy="click",this.nonHoverOpen()}.bind(this),this.buttonKeydown=function(e){13!==e.keyCode&&32!==e.keyCode||(e.preventDefault(),e.stopPropagation(),this.openedBy="keydown",this.nonHoverOpen())}.bind(this),this.buttonEnter=function(){this.openedBy||(this.openTimer=setTimeout(function(){this.open(),this.openedBy="hover",this.recentlyOpenedByHover=!0,this.hoverOpenTimer=setTimeout(function(){this.recentlyOpenedByHover=!1}.bind(this),c.recentOpenDelay)}.bind(this),c.hoverOpenDelay)),clearTimeout(this.closeTimer)}.bind(this),this.buttonLeave=function(){"hover"===this.openedBy&&this.resetCloseTimer(),clearTimeout(this.openTimer)}.bind(this),this.paneEnter=function(){clearTimeout(this.closeTimer)}.bind(this),this.paneLeave=function(){"hover"===this.openedBy&&this.resetCloseTimer()}.bind(this),this.documentClick=function(){this.close()}.bind(this),this.button.addEventListener("click",this.buttonClick),this.button.addEventListener("keydown",this.buttonKeydown),document.addEventListener("click",this.documentClick),void 0===document.ontouchstart&&(this.button.addEventListener("mouseenter",this.buttonEnter),this.button.addEventListener("mouseleave",this.buttonLeave),this.pane.addEventListener("mouseenter",this.paneEnter),this.pane.addEventListener("mouseleave",this.paneLeave))},window.sharing_js_options&&window.sharing_js_options.counts){var u={done_urls:[],get_counts:function(){var e,n,o,i,r;if("undefined"!=typeof WPCOM_sharing_counts)for(e in WPCOM_sharing_counts)if(o=WPCOM_sharing_counts[e],void 0===u.done_urls[o]){for(i in n={pinterest:[window.location.protocol+"//api.pinterest.com/v1/urls/count.json?callback=WPCOMSharing.update_pinterest_count&url="+encodeURIComponent(e)]})if(document.querySelector("a[data-shared=sharing-"+i+"-"+o+"]")){for(;r=n[i].pop();)t(r);window.sharing_js_options.is_stats_active&&u.bump_sharing_count_stat(i)}u.done_urls[o]=!0}},update_pinterest_count:function(e){void 0!==e.count&&1*e.count>0&&u.inject_share_count("sharing-pinterest-"+WPCOM_sharing_counts[e.url],e.count)},inject_share_count:function(e,t){i(document.querySelectorAll("a[data-shared="+e+"] > span"),function(e){var n,o=e.querySelector(".share-count");(n=o)&&n.parentNode&&n.parentNode.removeChild(n);var i=document.createElement("span");i.className="share-count",i.textContent=u.format_count(t),e.appendChild(i)})},format_count:function(e){return e<1e3?e:e>=1e3&&e<1e4?String(e).substring(0,1)+"K+":"10K+"},bump_sharing_count_stat:function(e){(new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom-no-pv&x_sharing-count-request="+e+"&r="+Math.random()}};window.WPCOMSharing=u}function d(e,t){e.setAttribute("jetpack-share-click-count",t)}function l(e){var t=e.getAttribute("jetpack-share-click-count");return null===t?0:parseInt(t,10)}function h(e,t){var n,o=new XMLHttpRequest;o.open("POST",e,!0),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),o.setRequestHeader("x-requested-with","XMLHttpRequest"),o.send((n=t,(encodeURIComponent("email-share-nonce")+"="+encodeURIComponent(n)).replace(/%20/g,"+")))}function p(){m()}function m(){window.WPCOMSharing&&window.WPCOMSharing.get_counts(),i(document.querySelectorAll(".sharedaddy a"),function(e){var t=e.getAttribute("href");t&&-1!==t.indexOf("share=")&&-1===t.indexOf("&nb=1")&&e.setAttribute("href",t+"&nb=1")}),i(document.querySelectorAll(".sharedaddy a.sharing-anchor"),function(e){c.instantiateOrReuse(e)}),void 0!==document.ontouchstart&&document.body.classList.add("jp-sharing-input-touch"),i(document.querySelectorAll(".sharedaddy ul"),function(e){"true"!==e.getAttribute("data-sharing-events-added")&&(e.setAttribute("data-sharing-events-added","true"),i(e.querySelectorAll("a.share-print"),function(e){e.addEventListener("click",function(t){t.preventDefault(),t.stopPropagation();var n=e.getAttribute("href")||"",i=function(){if(-1===n.indexOf("#print")){var e=(new Date).getTime();t=e,o=n,(i=document.createElement("iframe")).setAttribute("style","position:fixed; top:100; left:100; height:1px; width:1px; border:none;"),i.setAttribute("id","printFrame-"+t),i.setAttribute("name",i.getAttribute("id")),i.setAttribute("src",o),i.setAttribute("onload",'frames["printFrame-'+t+'"].focus();frames["printFrame-'+t+'"].print();'),document.body.appendChild(i)}else window.print();var t,o,i}
1778,r=o(e,s);if(r){var a=c.getButtonInstanceFromPane(r);a&&(a.close(),i())}else i()})}),i(e.querySelectorAll("a.share-press-this"),function(e){var t="wp-press-this-"+Math.random().toString(36).slice(2);e.addEventListener("click",function(n){n.preventDefault(),n.stopPropagation();var o="";if(window.getSelection?o=window.getSelection():document.getSelection?o=document.getSelection():document.selection&&(o=document.selection.createRange().text),o){var i=e.getAttribute("href");e.setAttribute("href",i+"&sel="+encodeURI(o))}window.open(e.getAttribute("href"),t,"toolbar=0,resizable=1,scrollbars=1,status=1,width=720,height=570")||(document.location.href=e.getAttribute("href"))})}),i(e.querySelectorAll("a.share-email"),function(t){d(t,0);var n,o,r=t.getAttribute("data-email-share-nonce"),s=t.getAttribute("data-email-share-track-url");r&&s&&(n=s,o=window.location.protocol+"//"+window.location.hostname+"/",0===String(n).indexOf(o))&&t.addEventListener("click",function(){var n;d(n=t,l(n)+1),l(t)>2&&function(e,t){var n=t.parentElement;if(n.classList.contains("sd-content")){i(n.querySelectorAll(".share-email-error"),function(e){e.parentElement.removeChild(e)});var o=document.createElement("div");o.className="share-email-error";var r=document.createElement("h6");r.className="share-email-error-title",r.innerText=e.getAttribute("data-email-share-error-title"),o.appendChild(r);var s=document.createElement("p");s.className="share-email-error-text",s.innerText=e.getAttribute("data-email-share-error-text"),o.appendChild(s),n.appendChild(o)}}(t,e),h(s,r)})}))}),i(document.querySelectorAll("li.share-email, li.share-custom a.sharing-anchor"),function(e){e.classList.add("share-service-visible")})}"loading"!==document.readyState?p():document.addEventListener("DOMContentLoaded",p),document.body.addEventListener("is.post-load",m);var f={};!0!==window.WPCOM_sharing_popups_bound&&(document.body.addEventListener("click",function(e){var t=e.target;if(t&&1===t.nodeType){var n=function(e){if("A"===e.nodeName)return e;var t=e.parentNode;return t&&"A"===t.nodeName?t:null}(t);if(n){var o=function(e){var t=window.WPCOM_sharing_popups;if(!t)return null;for(var n="share-",o=(e.getAttribute("class")||"").split(/\s+/),i=0;i<o.length;i++)if(0===o[i].indexOf(n)){var r=o[i].slice(6);if("string"==typeof t[r])return r}return null}(n);o&&(e.preventDefault(),r&&r.close(),r=window.open(n.getAttribute("href"),function(e){return"string"!=typeof f[e]&&(f[e]="wpcom"+e+"-"+Math.random().toString(36).slice(2)),f[e]}(o),window.WPCOM_sharing_popups[o]))}}}),window.WPCOM_sharing_popups_bound=!0)}();;

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.