1(()=>{const e=document.querySelectorAll(".coblocks-animate");if("IntersectionObserver"in window){const t=new IntersectionObserver((e=>{e.forEach((e=>{e.isIntersecting&&(e.target.classList.add(e.target.dataset.coblocksAnimation),t.unobserve(e.target))}))}),{threshold:[.15]});e.forEach((e=>{t.observe(e)}))}else e.forEach((e=>{e.classList.remove("coblocks-animate"),delete e.dataset.coblocksAnimation}))})();; 2/* global shoreditchButtonTitle */ 3( function( $ ) { 4 5 var button, resizeTimer; 6 7 button = $( '<button />', { 8 'class': 'back-top', 9 'aria-hidden': true, 10 text: shoreditchButtonTitle.desc 11 } ); 12 13 function createButton() { 14 if ( $( window ).innerWidth() < 768 ) { 15 if ( 0 === $( '.back-top' ).length ) { 16 $( '#page' ).after( button ); 17 } 18 19 $( '.back-top' ).on( 'click', function() { 20 $( 'html, body' ).animate( { 21 scrollTop: 0 22 }, 250 ); 23 } ); 24 } else { 25 $( '.back-top' ).remove(); 26 } 27 } 28 29 $( document ).ready( function() { 30 $( window ) 31 .on( 'load.shoreditch', createButton ) 32 .on( 'resize.shoreditch', function() { 33 clearTimeout( resizeTimer ); 34 resizeTimer = setTimeout( createButton, 300 ); 35 } ) 36 .on( 'scroll.shoreditch', function() { 37 if ( $( window ).scrollTop() >= $( window ).innerHeight() ) { 38 $( '.back-top' ).slideDown( 250 ); 39 } else { 40 $( '.back-top' ).slideUp( 250 ); 41 } 42 } ); 43 } ); 44 45} )( jQuery ); 46; 47/** 48 * skip-link-focus-fix.js 49 * 50 * Helps with accessibility for keyboard only users. 51 * 52 * Learn more: https://git.io/vWdr2 53 */ 54( function() { 55 var is_webkit = navigator.userAgent.toLowerCase().indexOf( 'webkit' ) > -1, 56 is_opera = navigator.userAgent.toLowerCase().indexOf( 'opera' ) > -1, 57 is_ie = navigator.userAgent.toLowerCase().indexOf( 'msie' ) > -1; 58 59 if ( ( is_webkit || is_opera || is_ie ) && document.getElementById && window.addEventListener ) { 60 window.addEventListener( 'hashchange', function() { 61 var id = location.hash.substring( 1 ), 62 element; 63 64 if ( ! ( /^[A-z0-9_-]+$/.test( id ) ) ) { 65 return; 66 } 67 68 element = document.getElementById( id ); 69 70 if ( element ) { 71 if ( ! ( /^(?:a|select|input|button|textarea)$/i.test( element.tagName ) ) ) { 72 element.tabIndex = -1; 73 } 74 75 element.focus(); 76 } 77 }, false ); 78 } 79})(); 80; 81/* global shoreditchScreenReaderText */ 82( function( $ ) { 83 84 var body, masthead, menuToggle, siteMenu, siteNavigation; 85 86 function initMainNavigation( container ) { 87 88 // Add dropdown toggle that displays child menu items. 89 var dropdownToggle = $( '<button />', { 90 'class': 'dropdown-toggle', 91 'aria-expanded': false 92 } ).append( $( '<span />', { 93 'class': 'screen-reader-text', 94 text: shoreditchScreenReaderText.expand 95 } ) ); 96 97 container.find( '.menu-item-has-children > a' ).after( dropdownToggle ); 98 99 // Toggle buttons and submenu items with active children menu items. 100 container.find( '.current-menu-ancestor > button' ).addClass( 'toggled-on' ); 101 container.find( '.current-menu-ancestor > .sub-menu' ).addClass( 'toggled-on' ); 102 103 // Add menu items with submenus to aria-haspopup="true". 104 container.find( '.menu-item-has-children' ).attr( 'aria-haspopup', 'true' ); 105 106 container.find( '.dropdown-toggle' ).click( function( e ) { 107 var _this = $( this ), 108 screenReaderSpan = _this.find( '.screen-reader-text' ); 109 110 e.preventDefault(); 111 _this.toggleClass( 'toggled-on' ); 112 _this.next( '.children, .sub-menu' ).toggleClass( 'toggled-on' ); 113 114 // jscs:disable 115 _this.attr( 'aria-expanded', _this.attr( 'aria-expanded' ) === 'false' ? 'true' : 'false' ); 116 // jscs:enable 117 screenReaderSpan.text( screenReaderSpan.text() === shoreditchScreenReaderText.expand ? shoreditchScreenReaderText.collapse : shoreditchScreenReaderText.expand ); 118 } ); 119 120 //Ensure submenus do not fall outside the left side of the window, rendering them unusable. 121 var submenus = container.find( '.children, .sub-menu' ); 122 123 //Return early if no submenus exist 124 if ( ! submenus.length ) { 125 return; 126 } else { 127 submenus.each( function() { 128 var parent = $( this ).parent( 'li' ); 129 130 parent.hover( 131 function() { 132 var submenu = $( this ).find( '> .sub-menu, > .children' ); 133 134 if ( $( submenu ) ) { 135 if ( $( submenu ).offset().left < 0 ) { 136 $( submenu ).addClass( 'offscreen' ); 137 } 138 } 139 }, 140 function() { 141 $( this ).find( '> .sub-menu, > .children' ).removeClass( 'offscreen' ); 142 } 143 ); 144 } ); 145 } 146 } 147 initMainNavigation( $( '.main-navigation' ) ); 148 149 masthead = $( '#masthead' ); 150 menuToggle = masthead.find( '#menu-toggle' ); 151 siteMenu = masthead.find( '#site-menu' ); 152 siteNavigation = masthead.find( '#site-navigation' ); 153 154 // Enable menuToggle. 155 ( function() { 156 157 // Return early if menuToggle is missing. 158 if ( ! menuToggle.length ) { 159 return; 160 } 161 162 // Add an initial values for the attribute.
163 menuToggle.add( siteNavigation ).attr( 'aria-expanded', 'false' ); 164 165 menuToggle.on( 'click.shoreditch', function() { 166 $( this ).add( siteMenu ).add( siteNavigation ).toggleClass( 'toggled-on' ); 167 168 // jscs:disable 169 $( this ).add( siteMenu ).add( siteNavigation ).attr( 'aria-expanded', $( this ).add( siteNavigation ).attr( 'aria-expanded' ) === 'false' ? 'true' : 'false' ); 170 // jscs:enable 171 } ); 172 } )(); 173 174 // Fix sub-menus for touch devices and better focus for hidden submenu items for accessibility. 175 ( function() { 176 if ( ! siteNavigation.length || ! siteNavigation.children().length ) { 177 return; 178 } 179 180 // Toggle `focus` class to allow submenu access on tablets. 181 function toggleFocusClassTouchScreen() { 182 if ( window.innerWidth >= 896 ) { 183 $( document.body ).on( 'touchstart.shoreditch', function( e ) { 184 if ( ! $( e.target ).closest( '.main-navigation li' ).length ) { 185 $( '.main-navigation li' ).removeClass( 'focus' ); 186 } 187 } ); 188 siteNavigation.find( '.menu-item-has-children > a' ).on( 'touchstart.shoreditch', function( e ) { 189 var el = $( this ).parent( 'li' ); 190 191 if ( ! el.hasClass( 'focus' ) ) { 192 e.preventDefault(); 193 el.toggleClass( 'focus' ); 194 el.siblings( '.focus' ).removeClass( 'focus' ); 195 } 196 } ); 197 } else { 198 siteNavigation.find( '.menu-item-has-children > a' ).unbind( 'touchstart.shoreditch' ); 199 } 200 } 201 202 if ( 'ontouchstart' in window ) { 203 $( window ).on( 'resize.shoreditch', toggleFocusClassTouchScreen ); 204 toggleFocusClassTouchScreen(); 205 } 206 207 siteNavigation.find( 'a' ).on( 'focus.shoreditch blur.shoreditch', function() { 208 $( this ).parents( '.menu-item' ).toggleClass( 'focus' ); 209 } ); 210 } )(); 211 212 // Add the default ARIA attributes for the menu toggle and the navigations. 213 function onResizeARIA() { 214 if ( window.innerWidth < 896 ) { 215 if ( menuToggle.hasClass( 'toggled-on' ) ) { 216 menuToggle.attr( 'aria-expanded', 'true' ); 217 siteMenu.attr( 'aria-expanded', 'true' ); 218 siteNavigation.attr( 'aria-expanded', 'true' ); 219 } else { 220 menuToggle.attr( 'aria-expanded', 'false' ); 221 siteMenu.attr( 'aria-expanded', 'false' ); 222 siteNavigation.attr( 'aria-expanded', 'false' ); 223 } 224 } else { 225 menuToggle.removeAttr( 'aria-expanded' ); 226 siteMenu.removeAttr( 'aria-expanded' ); 227 siteNavigation.removeAttr( 'aria-expanded' ); 228 } 229 } 230 231 $( document ).ready( function() { 232 body = $( document.body ); 233 234 $( window ) 235 .on( 'load.shoreditch', onResizeARIA ) 236 .on( 'resize.shoreditch', onResizeARIA ); 237 } ); 238 239} )( jQuery ); 240; 241( function() { 242 243 var body, header, content; 244 body = document.body; 245 header = document.getElementById( 'masthead' ); 246 content = document.getElementById( 'content' ); 247 248 /* Add a padding top equivalend to #masthead's height to #content depending on the screen width (breakpoint 600px) */ 249 function contentPadding() { 250 content.removeAttribute( 'style' ); 251 252 if ( body.clientWidth >= 896 ) { 253 content.style.paddingTop = header.offsetHeight + 'px'; 254 } else { 255 content.removeAttribute( 'style' ); 256 } 257 } 258 259 window.onload = contentPadding; 260 261 /* Recalculate contentPadding() on screen resize after 600ms */ 262 function contentPaddingResize() { 263 setTimeout( contentPadding , 600); 264 } 265 266 window.onresize = contentPaddingResize; 267 268 /* Toggle body 'scrolling' class when scrolling */ 269 function scrollPage() { 270 if ( window.pageYOffset > 0 ) { 271 body.classList.add( 'scrolling' ); 272 } else { 273 body.classList.remove( 'scrolling' ); 274 } 275 } 276 277 window.onscroll = scrollPage; 278 279} )(); 280; 281(()=>{var e=[],t=!1,n=2e3,i=[],o=new Promise(e=>{"loading"!==document.readyState?e():window.addEventListener("DOMContentLoaded",()=>e())});function s(e,t){if("string"==typeof e)try{e=JSON.parse(e)}catch{return}if(t&&"function"==typeof t.postMessage)try{t.postMessage(JSON.stringify({type:"likesMessage",data:e}),"*")}catch{}}function r(){const t=[];document.querySelectorAll("div.jetpack-likes-widget-unloaded").forEach(n=>{if(!(e.indexOf(n.id)>-1)&&d(n)){e.push(n.id);var i,o=/like-(post|comment)-wrapper-(\d+)-(\d+)-(\w+)/.exec(n.id);o&&5===o.length&&(i={blog_id:o[2],width:n.width},"post"===o[1]?i.post_id=o[3]:"comment"===o[1]&&(i.comment_id=o[3]),i.obj_id=o[4],t.push(i))}}),t.length>0&&s({event:"initialBatch",requests:t},window.frames["likes-master"])}function a(){const e=document.querySelector("#likes-other-gravatars");if(e){e.style.display="none",e.setAttribute("aria-hidden","true");const t=e.__resizeHandler;t&&(window.removeEventListener("resize",t),delete e.__resizeHandler)}}function l(){var e;if(!t)return s({event:"queryMasterReady"},window.frames["likes-master"]),void setTimeout(l,500);!function(){for(let e=i.length-1;e>=0;e--){const t=i[e];if(!d(t)){const n=t&&t.parentElement&&t.parentElement.parentElement;n.classList.remove("jetpack-likes-widget-loaded"),n.classList.remove("jetpack-likes-widget-loading"),n.classList.add("jetpack-likes-widget-unloaded");const o=n.querySelector(".likes-widget-placeholder");o&&(o.style.display=""),i.splice(e,1),t.remove()}}}(),function(){if(!g)return;document.querySelectorAll("div.jetpack-likes-widget-unloaded").forEach(e
281=>g.observe(e))}();var n=[...document.querySelectorAll("div.jetpack-likes-widget-unloaded")].filter(e=>d(e));n.length>0&&r();for(var o=0,a=n.length;o<=a-1;o++)(e=n[o].id)&&c(e)}function c(e){if(void 0===e)return;const t=document.querySelector("#"+e);t.querySelectorAll("iframe").forEach(e=>e.remove());const n=t.querySelector(".likes-widget-placeholder");if(n&&n.classList.contains("post-likes-widget-placeholder")){const e=document.createElement("iframe");e.classList.add("post-likes-widget","jetpack-likes-widget"),e.name=t.dataset.name,e.src=t.dataset.src,e.height="55px",e.width="100%",e.frameBorder="0",e.scrolling="no",e.title=t.dataset.title,n.after(e)}if(n.classList.contains("comment-likes-widget-placeholder")){const e=document.createElement("iframe");e.class="comment-likes-widget-frame jetpack-likes-widget-frame",e.name=t.dataset.name,e.src=t.dataset.src,e.height="18px",e.width="100%",e.frameBorder="0",e.scrolling="no",t.querySelector(".comment-like-feedback").after(e),i.push(e)}t.classList.remove("jetpack-likes-widget-unloaded"),t.classList.add("jetpack-likes-widget-loading"),t.querySelector("iframe").addEventListener("load",e=>{t.contains(e.target)&&(s({event:"loadLikeWidget",name:e.target.name,width:e.target.width},window.frames["likes-master"]),n&&(n.style.display="none"),t.classList.remove("jetpack-likes-widget-loading"),t.classList.add("jetpack-likes-widget-loaded"))})}function d(e){const t=e.getBoundingClientRect().top,i=e.getBoundingClientRect().bottom;return t+n>=0&&i<=window.innerHeight+n}window.addEventListener("message",function(e){let n=e&&e.data;if("string"==typeof n)try{n=JSON.parse(n)}catch{return}const i=n&&n.type,l=n&&n.data;if("likesMessage"!==i||void 0===l.event)return;if("https://widgets.wp.com"===e.origin)switch(l.event){case"masterReady":o.then(()=>{t=!0;const e={event:"injectStyles"},n=document.querySelector(".sd-text-color"),i=document.querySelector(".sd-link-color"),o=n&&getComputedStyle(n)||{},a=i&&getComputedStyle(i)||{};document.body.classList.contains("single")&&s({event:"reblogsEnabled"},window.frames["likes-master"]),e.textStyles={color:o.color,fontFamily:o["font-family"],fontSize:o["font-size"],direction:o.direction,fontWeight:o["font-weight"],fontStyle:o["font-style"],textDecoration:o["text-decoration"]},e.linkStyles={color:a.color,fontFamily:a["font-family"],fontSize:a["font-size"],textDecoration:a["text-decoration"],fontWeight:a["font-weight"],fontStyle:a["font-style"]},s(e,window.frames["likes-master"]),r()});break;case"showLikeWidget":case"showCommentLikeWidget":break;case"killCommentLikes":document.querySelectorAll(".jetpack-comment-likes-widget-wrapper").forEach(e=>e.remove());break;case"clickReblogFlair":wpcom_reblog&&"function"==typeof wpcom_reblog.toggle_reblog_box_flair&&wpcom_reblog.toggle_reblog_box_flair(l.obj_id);break;case"hideOtherGravatars":a();break;case"showOtherGravatars":{const e=document.querySelector("#likes-other-gravatars");if(!e)break;const t=e.querySelector("ul");e.style.display="none",t.innerHTML="",e.querySelectorAll(".likes-text span").forEach(e=>e.textContent=l.totalLikesLabel),(l.likers||[]).forEach(async(e,n)=>{if("http"!==e.profile_URL.substr(0,4))return;const i=document.createElement("li");t.append(i);const o=encodeURI(e.profile_URL),r=encodeURI(e.avatar_URL);i.innerHTML=`<a href="${o}" rel="nofollow" target="_parent" class="wpl-liker">\n\t\t\t\t\t\t<img src="${r}"\n\t\t\t\t\t\t\talt=""\n\t\t\t\t\t\t\tstyle="width: 28px; height: 28px;" />\n\t\t\t\t\t\t<span></span>\n\t\t\t\t\t</a>`,i.classList.add(e.css_class),i.querySelector("img").alt=l.avatarAltTitle.replace("%s",e.name),i.querySelector("span").innerText=e.name,n===l.likers.length-1&&i.addEventListener("keydown",e=>{"Tab"!==e.key||e.shiftKey||(e.preventDefault(),a(),s({event:"focusLikesCount",parent:l.parent},window.frames["likes-master"]))})});const n=function(){const t="rtl"===getComputedStyle(e).direction,n=document.querySelector(`*[name='${l.parent}']`),i=n.getBoundingClientRect(),o=n.ownerDocument.defaultView,s=i.top+o.pageYOffset,r=i.left+o.pageXOffset;let a;if(e.style.top=s+l.position.top-1+"px",t){const t=l&&l.likers?Math.min(l.likers.length,5):0;a=r+l.position.left+24*t+4,e.style.transform="translateX(-100%)"}else a=r+l.position.left;e.style.left=a+"px",e.style.left="-9999px",e.style.display="block";const c=e.offsetWidth;a+c>o.innerWidth&&(a=i.right-c),e.style.left=a+"px",e.setAttribute("aria-hidden","false")};n(),e.focus();const i=function(e,t){var n;return function(){var i=this,o=arguments;clearTimeout(n),n=setTimeout(function(){e.apply(i,o)},t)}},o=i(n,100);e.__resizeHandler=o,window.addEventListener("resize",o),e.focus()}}}),document.addEventListener("click",a);var f,m,u,p=(f=250,m=l,function(){clearTimeout(u),u=setTimeout(m,f)}),g="function"==typeof IntersectionObserver?new IntersectionObserver(p,{rootMargin:"2000px",threshold:[0,1]}):null;l(),window.addEventListener("scroll",p,!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.