!function(){function t(){if(complete){const e=getattribute("data-lazy-src");if(e&&src!==e)return void addeventlistener("onload",t);const n=width,d=height;n&&n>0&&d&&d>0&&(setattribute("width",n),setattribute("height",d),i(this))}else addeventlistener("onload",t)}var e=function(){const e=queryselectorall("img[data-recalc-dims]");for(let i=0;i1?1:d)*l;if(scrolltop=n+p,u<=i+300&&a)return requestAnimationFrame(e);r&&r(),o&&(minheight=""),a=!1,removeeventlistener("wheel",s)}()},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;!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 c=queryselector(".jp-carousel-pagination");if(c&&length>5){var u=o+1;innerhtml=""+u+" / "+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