!function(){"use strict";var e,t={noop:function(){},texturize:function(e){return(e=(e=(e=(e+="").replace(/'/g,"’").replace(/'/g,"’")).replace(/"/g,"”").replace(/"/g,"”").replace(/"/g,"”").replace(/[\u201D]/g,"”")).replace(/([\w]+)=[\d]+;(.+?)[\d]+;/g,'$1="$2"')).trim()},applyReplacements:function(e,t){if(e)return t?replace(/{(\d+)}/g,(function(e,r){return void 0!==t[r]?t[r]:e})):e},getBackgroundImage:function(e){var t=createelement("canvas"),r=getcontext&&getcontext("2d");if(e){filter="blur(20px) ",drawimage(e,0,0);var o=todataurl("image/png");return t=null,o}}},r=function(){function e(e,t){return matches?matches(t):msmatchesselector?msmatchesselector(t):void 0}function r(e,t,r,o){if(!e)return o();removeproperty("display"),opacity=t,transition="opacity 0.2s",pointerevents="none";var a=function(t){target===e&&"opacity"===propertyname&&(removeproperty("transition"),removeproperty("opacity"),removeproperty("pointer-events"),removeeventlistener("transitionend",a),removeeventlistener("transitioncancel",a),o())};requestAnimationFrame((function(){requestAnimationFrame((function(){addeventlistener("transitionend",a),addeventlistener("transitioncancel",a),opacity=r}))}))}return{closest:function(t,r){if(closest)return closest(r);var o=t;do{if(e(o,r))return o;o=parentelement||parentnode}while(null!==o&&1===nodetype);return null},matches:e,hide:function(e){e&&(display="none")},show:function(e){e&&(display="block")},fadeIn:function(e,o){r(e,"0","1",o=o||noop)},fadeOut:function(e,o){o=o||noop,r(e,"1","0",(function(){e&&(display="none"),o()}))},scrollToElement:function(e,t,r){if(!e||!t)return r?r():void 0;var o=queryselector(".jp-carousel-info-extra");o&&(minheight=innerheight-64+"px");var a=!0,i=now(),n=300,l=scrolltop,s=max(0,max(0,innerheight-function(e){var t=queryselector(".jp-carousel-info-footer"),r=queryselector(".jp-carousel-info-extra"),o=queryselector(".jp-carousel-info-content-wrapper");if(t&&r&&o){var a=getcomputedstyle(r),i=parseInt(paddingtop,10)+parseInt(paddingbottom,10);return i=isNaN(i)?0:i,offsetheight+offsetheight+i}return 0}(t)))scrolltop;function c(){a=!1}s=min(s,innerheight),addeventlistener("wheel",c),function e(){var u,d=now(),p=(u=(d-i)/n)<.5?2*u*u:pow(-2*u+2,2)/2,m=(p=p>1?1:p)*s;if(scrolltop=l+m,d<=i+n&&a)return requestAnimationFrame(e);r&&r(),o&&(minheight=""),a=!1,removeeventlistener("wheel",c)}()},getJSONAttribute:function(e,t){if(e&&hasattribute(t))try{return parse(getattribute(t))}catch(e){return}},convertToPlainText:function(e){var t=createelement("div");return textcontent=e,innerhtml},stripHTML:function(e){return replace(/<[^>]*>?/gm,"")},emitEvent:function(e,t,r){var o;try{o=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:r||null})}catch(e){(o=createevent("CustomEvent")).initCustomEvent(t,!0,!0,r||null)}dispatchevent(o)},isTouch:function(){return"ontouchstart"in window||documenttouch&&document instanceof DocumentTouch}}}();function o(){var o,a,i,n,l="",s=!1,c="gallery, tiled-gallery, wp-block-gallery, blocks-gallery-grid, has-nested-images, wp-block-jetpack-tiled-gallery, single-image-gallery",u=".gallery-item, .tiled-gallery-item, .blocks-gallery-item, .tiled-gallery__item",d=u+", .wp-block-image",p={},m="undefined"!=typeof wpcom&&carousel&&stat?stat:noop,g="undefined"!=typeof wpcom&&carousel&&pageview?pageview:noop;function h(t){if(!s)switch(which){case 38:preventdefault(),scrolltop-=100;break;case 40:preventdefault(),scrolltop+=100;break;case 39:preventdefault(),slidenext();break;case 37:case 8:preventdefault(),slideprev();break;case 27:preventdefault(),b()}}function f(){s=!0}function v(){s=!1}function y(){overlay||(overlay=queryselector(".jp-carousel-overlay"),container=queryselector(".jp-carousel-wrap"),gallery=queryselector(".jp-carousel"),p=queryselector(".jp-carousel-info"),caption=queryselector(".jp-carousel-caption"),commentfield=queryselector("#jp-carousel-comment-form-comment-field"),emailfield=queryselector("#jp-carousel-comment-form-email-field"),authorfield=queryselector("#jp-carousel-comment-form-author-field"),urlfield=queryselector("#jp-carousel-comment-form-url-field"),innerwidth<=760&&round(innerwidth/760*110)<40&&istouch(),[commentfield,emailfield,authorfield,urlfield].forEach((function(e){e&&(addeventlistener("focus",f),addeventlistener("blur",v))})),addeventlistener("click",(function(e){var t,o,a=target,i=!!closest(a,".jp-carousel-close-hint"),n=!!matchmedia("(max-device-width: 760px)").matches;if(a===overlay){if(n)return;b()}else if(i)b();else if(contains("jp-carousel-image-download"))m("download_original_click");else if(contains("jp-carousel-comment-login"))t=currentslide,o=t?attachmentid:"0",href=login_url+"%23jp-carousel-"+o;else if(closest(a,"#jp-carousel-comment-form-container"))!function(e){var t=target,o=getjsonattribute(container,"data-carousel-extra")||{},a=attachmentid,i=queryselector("#jp-carousel-comment-form-submit-and-info-wrapper"),n=queryselector("#jp-carousel-comment-form-spinner"),l=queryselector("#jp-carousel-comment-form-button-submit"),s=queryselector("#jp-carousel-comment-form");if(commentfield&&getattribute("id")===getattribute("id"))f(),show(i);else if(matches(t,'input[type="submit"]')){preventdefault(),stoppropagation(),show(n),add("jp-carousel-is-disabled");var c={action:"post_attachment_comment",nonce:nonce,blog_id:blog_id,id:a,comment:value};if(!length)return void w(no_comment_text,!1);if(1!==Number(is_logged_in)&&(email=value,author=value,url=value,1===Number(require_name_email))){if(!length||!match("@"))return void w(no_comment_email,!1);if(!length)return void w(no_comment_author,!1)}var u=new XMLHttpRequest;open("POST",ajaxurl,!0),setrequestheader("X-Requested-With","XMLHttpRequest"),setrequestheader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),onreadystatechange=function(){if(readystate===done&&status>=200&&status<300){var e;try{e=parse(response)}catch(e){return void w(comment_post_error,!1)}"approved"===comment_status?w(comment_approved,!0):"unapproved"===comment_status?w(comment_unapproved,!0):w(comment_post_error,!1),E(),q(a),value=post_comment,hide(n),remove("jp-carousel-is-disabled")}else w(comment_post_error,!1)};var d=[];for(var m in c)if(m){var g=encodeURIComponent(m)+"="+encodeURIComponent(c[m]);push(replace(/%20/g,"+"))}var h=join("&");send(h)}}(e);else if(closest(a,".jp-carousel-photo-icons-container")||contains("jp-carousel-photo-title"))!function(e){preventdefault();var t=target,o=queryselector(".jp-carousel-info-extra"),a=queryselector(".jp-carousel-image-meta"),i=queryselector(".jp-carousel-comments-wrapper"),n=queryselector(".jp-carousel-icon-info"),l=queryselector(".jp-carousel-icon-comments");function s(){l&&remove("jp-carousel-selected"),toggle("jp-carousel-selected"),i&&remove("jp-carousel-show"),a&&(toggle("jp-carousel-show"),contains("jp-carousel-show")?add("jp-carousel-show"):remove("jp-carousel-show"))}function c(){n&&remove("jp-carousel-selected"),toggle("jp-carousel-selected"),a&&remove("jp-carousel-show"),i&&(toggle("jp-carousel-show"),contains("jp-carousel-show")?add("jp-carousel-show"):remove("jp-carousel-show"))}(closest(t,".jp-carousel-icon-info")||contains("jp-carousel-photo-title"))&&(a&&contains("jp-carousel-show")?scrolltoelement(overlay,overlay,s):(s(),scrolltoelement(p,overlay))),closest(t,".jp-carousel-icon-comments")&&(i&&contains("jp-carousel-show")?scrolltoelement(overlay,overlay,c):(c(),scrolltoelement(p,overlay)))}(e);else if(!closest(a,".jp-carousel-info"))return})),addeventlistener("keydown",h),addeventlistener("afteropen",(function(){v(),length<=1||(length<=5?show(queryselector(".jp-swiper-pagination")):show(queryselector(".jp-carousel-pagination")))})),addeventlistener("beforeclose",(function(){f(),removeproperty("height"),e&&enable(),hide(queryselector(".jp-swiper-pagination")),hide(queryselector(".jp-carousel-pagination"))})),addeventlistener("afterclose",(function(){pushstate?pushstate("",title,pathname+search):href="",l="",isopen=!1})),addeventlistener("touchstart",(function(e){length>1&&preventdefault()})))}function w(e,t){var o=queryselector("#jp-carousel-comment-post-results"),a="jp-carousel-comment-post-"+(t?"success":"error");innerhtml=''+e+"",hide(queryselector("#jp-carousel-comment-form-spinner")),queryselector("#jp-carousel-comment-form")remove("jp-carousel-is-disabled"),show(o)}function j(){var e=queryselectorall("a img[data-attachment-id]");call(e,(function(e){var t=parentelement,o=parentelement;if(!contains("gallery-icon")&&!closest(o,u)&&hasattribute("href")){var a=!1;getattribute("href").split("?")[0]===getattribute("data-orig-file").split("?")[0]&&1===Number(single_image_gallery_media_file)&&(a=!0),getattribute("href")===getattribute("data-permalink")&&(a=!0),a&&(add("single-image-gallery"),setattribute("data-carousel-extra",stringify({blog_id:Number(blog_id)})))}}))}function S(o){(!o||o<0||o>length)&&(o=0),currentslide=slides[o];var a,i,n=currentslide,s=attachmentid,c=queryselector(".jp-carousel-icon-info"),u=queryselector(".jp-carousel-icon-comments");(c&&contains("jp-carousel-selected")||u&&contains("jp-carousel-selected"))&&0!==scrolltop&&scrolltoelement(overlay,overlay),function(e){var t=el,r=attrs,o=queryselector("img");if(!hasattribute("data-loaded")){var a=!!previewimage,i=thumbsize;!a||i&&offsetwidth>width?src=src:src=previewimage,setattribute("itemprop","image"),setattribute("data-loaded",1)}}(slides[o]),1!==Number(display_background_image)||slides[o].backgroundImage||function(t){var r=el;e&&slides&&(r=slides[activeindex]);var o=originalelement;complete&&0!==naturalheight?A(t,r,o):onload=function(){A(t,r,o)}}(slides[o]),hide(caption),function(e){var t,o,a,i,n="",l="",s="";if(t=queryselector(".jp-carousel-photo-caption"),o=queryselector(".jp-carousel-caption"),a=queryselector(".jp-carousel-photo-title"),i=queryselector(".jp-carousel-photo-description"),hide(t),hide(o),hide(a),hide(i),n=k(caption)||"",l=k(title)||"",s=k(desc)||"",(n||l||s)&&(n&&(innerhtml=n,innerhtml=n,show(t),show(o)),striphtml(n)===striphtml(l)&&(l=""),striphtml(n)===striphtml(s)&&(s=""),striphtml(l)===striphtml(s)&&(s=""),s&&(innerhtml=s,show(i),l||n||(innerhtml=striphtml(s),show(t))),l)){var c=striphtml(l);innerhtml=c,n||(innerhtml=c,innerhtml=c,show(t)),show(a)}}({caption:caption,title:title,desc:desc}),function(e){if(!e||1!==Number(display_exif))return!1;var t=queryselector(".jp-carousel-image-meta ul-carousel-image-exif"),r="";for(var o in e){var a=e[o],i=meta_data||[];if(0!==parseFloat(a)&&length&&-1!==indexof(o)){switch(o){case"focal_length":a+="mm";break;case"shutter_speed":a=x(a);break;case"aperture":a="f/"+a}r+="

  • "+jetpackCarouselStrings[o]+"
    "+a+"
  • "}}innerhtml=r,removeproperty("display")}(slides[o]imagemeta),function(e){if(!e)return!1;var r,o=[origwidth,origheight],a=createelement("a");href=replace(/\?.+$/,""),r=null!==match(/^i[\d]{1}\.wp\.com$/i)?href:replace(/\?.+$/,"");var i=queryselector(".jp-carousel-download-text"),n=queryselector(".jp-carousel-image-download");innerhtml=applyreplacements(download_original,o),setattribute("href",r),removeproperty("display")}(n),1===Number(display_comments)&&(a=slides[o]commentsopened,i=queryselector(".jp-carousel-comment-form-container"),1===parseInt(a,10)?fadein(i):fadeout(i),q(s),hide(queryselector("#jp-carousel-comment-post-results")));var d=queryselector(".jp-carousel-pagination");if(d&&length>5){var m=o+1;innerhtml=""+m+" / "+length+""}stats&&((new Image).src=protocol+"//wp/gif?"+stats+"&post="+encodeURIComponent(s)+"&rand="+random()),g(s),hash=l="#jp-carousel-"+s}function b(){overflow=a,overflow=i,E(),f(),emitevent(overlay,"beforeclose"),scrollto(scrollx||pagexoffset||0,n||0),destroy(),isopen=!1,slides=[],currentslide=void 0,innerhtml="",fadeout(overlay,(function(){emitevent(overlay,"afterclose")}))}function L(e,t,r){var o=r?replace(/.*=([\d]+%2C[\d]+).*$/,"$1"):replace(/.*-([\d]+x[\d]+)\..+$/,"$1"),a=o!==e?r?split("%2C"):split("x"):[t,0];return"9999"===a[0]&&(a[0]="0"),"9999"===a[1]&&(a[1]="0"),a}function x(e){return e>=1?round(10*e)/10+"s":"1/"+round(1/e)+"s"}function k(e){return!match(" ")&&match("_")?"":e}function q(e,t){var a=void 0===t,i=queryselector(".jp-carousel-icon-comments .jp-carousel-has-comments-indicator");if(remove("jp-carousel-show"),clearInterval(o),e){(!t||t<1)&&(t=0);var n=queryselector(".jp-carousel-comments"),l=queryselector("#jp-carousel-comments-loading");show(l),a&&(hide(n),innerhtml="");var s=new XMLHttpRequest,c=ajaxurl+"?action=get_attachment_comments&nonce="+nonce+"&id="+e+"&offset="+t;open("GET",c),setrequestheader("X-Requested-With","XMLHttpRequest");var u=function(){fadein(n),fadeout(l)};onload=function(){if(currentslide&&attachmentid===e){var c,d=status>=200&&status<300;try{c=parse(responsetext)}catch(e){}if(!d||!c||!isarray(c))return u();a&&(innerhtml="");for(var m=0;m'+gravatar_markup+'
    '+author_markup+'
    '+date_gmt+"
    "+content+"
    ",appendchild(h),clearInterval(o),o=setInterval((function(){scrolltop+150>innerheight&&(q(e,t+10),clearInterval(o))}),300)}length>0&&(show(n),innertext=length,add("jp-carousel-show")),hide(l)}},onerror=u,send()}}function A(e,r,o){var a=getbackgroundimage(o);backgroundimage=a,backgroundimage="url("+a+")",backgroundsize="cover"}function E(){commentfield&&(value="")}function T(e,o){slides=[];var a={width:innerwidth,height:innerheight-64};0!==o&&((new Image).src=e[o].getAttribute("data-gallery-src"));var i=!!closest(e[0],"type-rectangular");call(e,(function(e,o){var n=closest(e,"a"),l=getattribute("data-orig-file")||getattribute("src-orig"),s=getattribute("data-attachment-id")||getattribute("data-id")||"0",c=queryselector('img[data-attachment-id="'+s+'"] + figcaption');c=c?innerhtml:getattribute("data-image-caption");var u={originalElement:e,attachmentId:s,commentsOpened:getattribute("data-comments-opened")||"0",imageMeta:getjsonattribute(e,"data-image-meta")||{},title:getattribute("data-image-title")||"",desc:getattribute("data-image-description")||"",mediumFile:getattribute("data-medium-file")||"",largeFile:getattribute("data-large-file")||"",origFile:l||"",thumbSize:{width:naturalwidth,height:naturalheight},caption:c||"",permalink:n&&getattribute("href"),src:l||getattribute("src")||""},d=closest(e,".tiled-gallery-item"),m=d&&queryselector(".tiled-gallery-caption"),g=m&&innerhtml;g&&(caption=g);var h=function(e){var t=getattribute("data-orig-size")||"";if(t){var r=split(",");return{width:parseInt(r[0],10),height:parseInt(r[1],10)}}return{width:getattribute("data-original-width")||getattribute("width")||void 0,height:getattribute("data-original-height")||getattribute("height")||void 0}}(e);if(origwidth=width||width,origheight=height||height,"undefined"!=typeof wpcom&&carousel&&generateimgsrc?src=generateimgsrc(e,a):src=function(e){if("object"!=typeof e&&(e={}),void 0===origfile)return"";if(void 0===origwidth||void 0===maxwidth)return origfile;if(void 0===mediumfile||void 0===largefile)return origfile;var t=createelement("a");href=largefile;var r=/^i[0-2]\.wp\.com$/test(hostname),o=L(mediumfile,origwidth,r),a=L(largefile,origwidth,r),i=parseInt(a[0],10),n=parseInt(a[1],10),l=parseInt(o[0],10),s=parseInt(o[1],10);if(origmaxwidth=maxwidth,origmaxheight=maxheight,void 0!==devicepixelratio&&devicepixelratio>1&&(maxwidth=maxwidth*devicepixelratio,maxheight=maxheight*devicepixelratio),i>=maxwidth||n>=maxheight)return largefile;if(l>=maxwidth||s>=maxheight)return mediumfile;if(r){var c=lastindexof("?"),u=largefile;return-1!==c&&(u=substring(0,c),(origwidth>maxwidth||origheight>maxheight)&&(origmaxwidth=2*maxwidth,origmaxheight=2*maxheight,u+="?fit="+origmaxwidth+"%2C"+origmaxheight)),u}return origfile}({origFile:src,origWidth:origwidth,origHeight:origheight,maxWidth:width,maxHeight:height,mediumFile:mediumfile,largeFile:largefile}),setattribute("data-gallery-src",src),"0"!==attachmentid){title=texturize(title),desc=texturize(desc),caption=texturize(caption);var f=new Image;src=src;var v=createelement("div");add("swiper-slide"),setattribute("itemprop","associatedMedia"),setattribute("itemscope",""),setattribute("itemtype","#");var y=createelement("div");add("swiper-zoom-container"),appendchild(v),appendchild(y),appendchild(f),setattribute("data-attachment-id",attachmentid),setattribute("data-permalink",permalink),setattribute("data-orig-file",origfile),i&&(previewimage=src);var w={el:v,attrs:u,index:o};push(w)}}))}function H(e,t){if(!swiper670){var o=queryselector("#jp-carousel-loading-overlay");show(o);var a=createelement("script");return id="jetpack-carousel-swiper-js",src=url,async=!0,onload=function(){hide(o),C(e,t)},onerror=function(){hide(o)},void appendchild(a)}C(e,t)}function C(t,o){var l,s={imgSelector:".gallery-item [data-attachment-id], .tiled-gallery-item [data-attachment-id], img[data-attachment-id], img[data-id]",startIndex:0},c=getjsonattribute(t,"data-carousel-extra");if(c&&(y(),!isopen)){for(var u in isopen=!0,a=getComputedStyle(body).overflow,overflow="hidden",i=getComputedStyle(documentelement).overflow,overflow="hidden",n=scrolly||pageyoffset||0,setattribute("data-carousel-extra",stringify(c)),m(["open","view_image"]),o||{})s[u]=o[u];-1===startindex&&(startindex=0),emitevent(overlay,"beforeopen"),innerhtml="",opacity=1,display="block",T(queryselectorall(imgselector),startindex),(e=new swiper670(".jp-carousel-swiper-container",{centeredSlides:!0,zoom:!0,loop:length>1,enabled:length>1,pagination:{el:".jp-swiper-pagination",clickable:!0},navigation:{nextEl:".jp-swiper-button-next",prevEl:".jp-swiper-button-prev"},initialSlide:startindex,on:{init:function(){S(startindex)}},preventClicks:!1,preventClicksPropagation:!1,preventInteractionOnTransition:!istouch(),threshold:5})).on("slideChange",(function(e){S(0===activeindex?length-1:activeindex===length+1?0:activeindex-1),remove("jp-carousel-hide-controls")})),on("zoomChange",(function(e,t){t>1&&add("jp-carousel-hide-controls"),1===t&&remove("jp-carousel-hide-controls")})),on("doubleTap",(function(e){if(clearTimeout(l),1===scale)var t=setTimeout((function(){remove("jp-carousel-hide-controls"),clearTimeout(t)}),150)})),on("tap",(function(){scale>1&&(l=setTimeout((function(){toggle("jp-carousel-hide-controls")}),150))})),fadein(overlay,(function(){emitevent(overlay,"afteropen")}))}}addeventlistener("click",(function(e){if(css&&supports&&supports("display","grid")){var t,o=target,a=closest(o,c);if(a){if(!(t=a)||!getattribute("data-carousel-extra"))return;var i=parentelement,n=parentelement,l=null;if(n&&contains("wp-block-image")?l=getattribute("href"):i&&contains("wp-block-image")&&queryselector(":scope > a")&&(l=queryselector(":scope > a").getAttribute("href")),l&&split("?")[0]!==getattribute("data-orig-file").split("?")[0]&&l!==getattribute("data-permalink"))return;if(contains("gallery-caption"))return;if(matches(i,"figcaption"))return;height="auto",preventdefault(),stoppropagation();var s=closest(o,d),u=call(queryselectorall(d),s);H(a,{startIndex:u})}}})),1===Number(single_image_gallery)&&(j(),addeventlistener("post-load",(function(){j()}))),addeventlistener("hashchange",(function(){var t=/jp-carousel-(\d+)/;if(hash&&test(hash)){if(hash!==l||!isopen)if(hash&&gallery&&!isopen&&back)back();else{l=hash;for(var r,o,a=match(t),i=parseInt(a[1],10),n=queryselectorall(c),s=0;s 1 ) { push( keydowns[ key ][1] ); } push( keypress ); } } delete keydowns[ key ]; lastKeyup = keyupTime; }, supportsPassive ? { passive: true } : false ); addeventlistener( "focusin", function ( e ) { lastKeydown = null; lastKeyup = null; keydowns = {}; }, supportsPassive ? { passive: true } : false ); addeventlistener( "focusout", function ( e ) { lastKeydown = null; lastKeyup = null; keydowns = {}; }, supportsPassive ? { passive: true } : false ); } addeventlistener( 'mousedown', function ( e ) { lastMousedown = ( new Date() ).getTime(); }, supportsPassive ? { passive: true } : false ); addeventlistener( 'mouseup', function ( e ) { if ( ! lastMousedown ) { // If the mousedown happened before this script was loaded, but the mouseup happened after... return; } var now = ( new Date() ).getTime(); var mouseclick = []; push( now - lastMousedown ); if ( lastMouseup ) { push( lastMousedown - lastMouseup ); } push( mouseclick ); lastMouseup = now; // If the mouse has been clicked, don't record this time as an interval between keypresses. lastKeydown = null; lastKeyup = null; keydowns = {}; }, supportsPassive ? { passive: true } : false ); addeventlistener( 'mousemove', function ( e ) { if ( mousemoveTimer ) { clearTimeout( mousemoveTimer ); mousemoveTimer = null; } else { mousemoveStart = ( new Date() ).getTime(); lastMousemoveX = offsetx; lastMousemoveY = offsety; } mousemoveTimer = setTimeout( function ( theEvent, originalMousemoveStart ) { var now = ( new Date() ).getTime() - 500; // To account for the timer delay. var mousemove = []; push( now - originalMousemoveStart ); push( round( sqrt( pow( offsetx - lastMousemoveX, 2 ) + pow( offsety - lastMousemoveY, 2 ) ) ) ); if ( mousemove[1] > 0 ) { // If there was no measurable distance, then it wasn't really a move. push( mousemove ); } mousemoveStart = null; mousemoveTimer = null; }, 500, e, mousemoveStart ); }, supportsPassive ? { passive: true } : false ); addeventlistener( 'touchmove', function ( e ) { if ( touchmoveCountTimer ) { clearTimeout( touchmoveCountTimer ); } touchmoveCountTimer = setTimeout( function () { touchmoveCount++; }, 500 ); }, supportsPassive ? { passive: true } : false ); addeventlistener( 'touchstart', function ( e ) { lastTouchStart = ( new Date() ).getTime(); }, supportsPassive ? { passive: true } : false ); addeventlistener( 'touchend', function ( e ) { if ( ! lastTouchStart ) { // If the touchstart happened before this script was loaded, but the touchend happened after... return; } var now = ( new Date() ).getTime(); var touchEvent = []; push( now - lastTouchStart ); if ( lastTouchEnd ) { push( lastTouchStart - lastTouchEnd ); } push( touchEvent ); lastTouchEnd = now; // Don't record this time as an interval between keypresses. lastKeydown = null; lastKeyup = null; keydowns = {}; }, supportsPassive ? { passive: true } : false ); addeventlistener( 'scroll', function ( e ) { if ( scrollCountTimer ) { clearTimeout( scrollCountTimer ); } scrollCountTimer = setTimeout( function () { scrollCount++; }, 500 ); }, supportsPassive ? { passive: true } : false ); } /** * For the timestamp data that is collected, don't send more than `limit` data points in the request. * Choose a random slice and send those. */ function prepare_timestamp_array_for_request( a, limit ) { if ( ! limit ) { limit = 100; } var rv = ''; if ( length > 0 ) { var random_starting_point = max( 0, floor( random() * length - limit ) ); for ( var i = 0; i < limit && i < length; i++ ) { rv += a[ random_starting_point + i ][0]; if ( a[ random_starting_point + i ].length >= 2 ) { rv += "," + a[ random_starting_point + i ][1]; } rv += ";"; } } return rv; } if ( readystate !== 'loading' ) { init(); } else { addeventlistener( 'DOMContentLoaded', init ); } })();; /*! This file is auto-generated */ addcomment=function(v){var I,C,h,E=document,b={commentReplyClass:"comment-reply-link",commentReplyTitleId:"reply-title",cancelReplyId:"cancel-comment-reply-link",commentFormId:"commentform",temporaryFormId:"wp-temp-form-div",parentIdFieldId:"comment_parent",postIdFieldId:"comment_post_ID"},e=mutationobserver||webkitmutationobserver||mozmutationobserver,r="querySelector"in E&&"addEventListener"in v,n=!!dataset;function t(){d(),e&&new e(o).observe(body,{childList:!0,subtree:!0})}function d(e){if(r&&(I=g(cancelreplyid),C=g(commentformid),I)){addeventlistener("touchstart",l),addeventlistener("click",l);function t(e){if((metakey||ctrlkey)&&13===keycode)return removeeventlistener("keydown",t),preventdefault(),click(),!1}C&&addeventlistener("keydown",t);for(var n,d=function(e){var t=commentreplyclass;e&&childnodes||(e=E);e=getelementsbyclassname?getelementsbyclassname(t):queryselectorall("."+t);return e}(e),o=0,i=length;o0&&n&&n>0&&(setattribute("width",d),setattribute("height",n),i(this))}}else addeventlistener("onload",t)}var e=function(){for(var e=queryselectorall("img[data-recalc-dims]"),i=0;i{"loading"!==readystate?e():addeventlistener("DOMContentLoaded",(()=>e()))}));function l(e,t){if("string"==typeof e)try{e=parse(e)}catch(e){return}if(t&&"function"==typeof postmessage)try{postmessage(stringify({type:"likesMessage",data:e}),"*")}catch(e){return}}function s(){const t=[];queryselectorall("jetpack-likes-widget-unloaded").forEach((o=>{if(!(indexof(id)>-1)&&c(o)){push(id);var i,n=/like-(post|comment)-wrapper-(\d+)-(\d+)-(\w+)/.exec(id);n&&5===length&&(i={blog_id:n[2],width:width},"post"===n[1]?post_id=n[3]:"comment"===n[1]&&(comment_id=n[3]),obj_id=n[4],push(i))}})),length>0&&l({event:"initialBatch",requests:t},frames["likes-master"])}function a(){var e;if(t){!function(){for(let e=length-1;e>=0;e--){const t=i[e];if(!c(t)){const o=t&&parentelement&&parentelement;remove("jetpack-likes-widget-loaded"),remove("jetpack-likes-widget-loading"),add("jetpack-likes-widget-unloaded"),queryselectorall(".comment-likes-widget-placeholder").forEach((e=>display="block")),splice(e,1),remove()}}}();var o=[queryselectorall("jetpack-likes-widget-unloaded")].filter((e=>c(e)));length>0&&s();for(var n=0,l=length;n<=l-1;n++)(e=o[n].id)&&r(e)}else setTimeout(a,500)}function r(e){if(void 0===e)return;const t=queryselector("#"+e);queryselectorall("iframe").forEach((e=>remove()));const o=queryselector(".likes-widget-placeholder");if(o&&contains("post-likes-widget-placeholder")){const e=createelement("iframe");add("post-likes-widget","jetpack-likes-widget"),name=name,src=src,height="55px",width="100%",frameborder="0",scrolling="no",title=title,after(e)}if(contains("comment-likes-widget-placeholder")){const e=createelement("iframe");class="comment-likes-widget-frame jetpack-likes-widget-frame",name=name,src=src,height="18px",width="100%",frameborder="0",scrolling="no",queryselector(".comment-like-feedback").after(e),push(e)}remove("jetpack-likes-widget-unloaded"),add("jetpack-likes-widget-loading"),queryselector("iframe").addEventListener("load",(e=>{l({event:"loadLikeWidget",name:name,width:width},frames["likes-master"]),remove("jetpack-likes-widget-loading"),add("jetpack-likes-widget-loaded")}))}function c(e){const t=getboundingclientrect().top,i=getboundingclientrect().bottom;return t+o>=0&&i<=innerheight+o}addeventlistener("message",(function(e){let o=e&&data;if("string"==typeof o)try{o=parse(o)}catch(e){return}const i=o&&type,a=o&&data;if("likesMessage"!==i||void 0===event)return;if("#"===origin)switch(event){case"masterReady":then((()=>{t=!0;const e={event:"injectStyles"},o=queryselector(".sd-text-color"),i=queryselector(".sd-link-color"),n=o&&getComputedStyle(o)||{},a=i&&getComputedStyle(i)||{};if(queryselectorall("admin-bar-likes-widget").length>0){l({event:"adminBarEnabled"},frames["likes-master"]);const t=queryselector("#wpadminbar .quicklinks li#wp-admin-bar-wpl-like > a"),o=queryselector("#wpadminbar");adminbarstyles={background:t&&getComputedStyle(t).background,isRtl:o&&"rtl"===getComputedStyle(o).direction}}contains("single")&&l({event:"reblogsEnabled"},frames["likes-master"]),textstyles={color:color,fontFamily:n["font-family"],fontSize:n["font-size"],direction:direction,fontWeight:n["font-weight"],fontStyle:n["font-style"],textDecoration:n["text-decoration"]},linkstyles={color:color,fontFamily:a["font-family"],fontSize:a["font-size"],textDecoration:a["text-decoration"],fontWeight:a["font-weight"],fontStyle:a["font-style"]},l(e,frames["likes-master"]),s()}));break;case"showLikeWidget":{const e=queryselector(`#${id} .likes-widget-placeholder`);e&&(display="none");break}case"showCommentLikeWidget":{const e=queryselector(`#${id} .likes-widget-placeholder`);e&&(display="none");break}case"killCommentLikes":queryselectorall(".jetpack-comment-likes-widget-wrapper").forEach((e=>remove()));break;case"clickReblogFlair":wpcom_reblog&&"function"==typeof toggle_reblog_box_flair&&toggle_reblog_box_flair(obj_id);break;case"showOtherGravatars":{const e=queryselector("#likes-other-gravatars");if(!e)break;const t=queryselector("ul");display="none",innerhtml="",queryselectorall(".likes-text span").forEach((e=>textcontent=total)),(likers||[]).forEach((e=>{if("http"!==substr(0,4))return;const o=createelement("li");innerhtml=`\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t`,append(o),add(css_class),queryselector("img").alt=name}));const o=queryselector(`*[name='${parent}']`),i=getboundingclientrect(),n=defaultview,l={top:top+pageyoffset,left:left+pagexoffset};left=left+left-10+"px",top=top+top-33+"px";const s=floor(width/37);let r=37*ceil(length/s)+13;r>204&&(r=204);const c=37*s-7;height=r+"px",width=c+"px";const d=37*s;width=d+"px",display="block";const m=clientwidth;m>0&&(width=c+m+"px",width=d+m+"px")}}})),addeventlistener("click",(e=>{const t=queryselector("#likes-other-gravatars");t&&!contains(target)&&(display="none")}));var d,m,p,f=(d=250,m=a,function(){clearTimeout(p),p=setTimeout(m,d)});a(),addeventlistener("scroll",f,!0)}();;