1!function(t){class e{constructor(t){const e="undefined"!=typeof ctl_ajax_object?ctl_ajax_object:{},{ajax_url:i,ajax_nonce:n}=e;this.ajaxUrl=void 0!==i?i:"",this.ajaxNonce=void 0!==n?n:"",this.wrapperId=t,this.timelineAttr=[],this.newAttribute=[],this.newTimeline=!1,this.hrStyle=!1,this.loadMoreBtn=jQuery(`#${t} .ctl_load_more_pagination button.ctl_load_more`),this.timelineContainer=jQuery(`#${t} .ctl-timeline-container`),this.StylesContainer=jQuery(`#${t}-styles`),this.buttonContainer=jQuery(`#${t} .ctl_load_more_pagination`),this.catFilterContainer=jQuery(`#${t}`).parents(".ctl-wrapper").find(".ctl-category-container"),this.isRequestProcessing=!1,this.init()}init(){if(0===this.loadMoreBtn.length&&0===this.catFilterContainer.length)return;if(this.shortcodeAttributes(),this.timelineAttr.length<=0)return;const e=jQuery(`#${this.wrapperId}`);if(e.hasClass("ctl-horizontal-wrapper")){if(this.hrStyle=!0,"yes"===e.data("load")&&this.loadMoreBtn.length>0){e.find(".ctl-slider-container")[0].swiper.on("slideChange",t=>{this.newTimeline||this.hrLoadMore(t)})}}else this.loadMoreBtn.on("click",()=>{this.vrLoadMore()});this.catFilterContainer.find("ul.ctl-category li.ctl-category-item").on("click",i=>{i.preventDefault();const n=t(i.currentTarget).find("a"),a=n.attr("data-term-slug");if(("story_timeline"!==this.timelineAttr.ctl_type&&a!==this.newAttribute.category||"story_timeline"===this.timelineAttr.ctl_type&&a!==this.newAttribute.filter_category)&&!this.isRequestProcessing){const t=e.closest(".ctl-wrapper").find(".ctl-category-dropdown-button"),i=this.CtlStaticSvgIcons("spinner");t&&jQuery(i).insertBefore(t.find("span"));const s=n.closest(".ctl-category-container");s.hasClass("ctl-category-dropdown")||s.find("ul").prepend(i),this.loadMoreBtn.length>0&&(this.loadMoreBtn.parent().remove(),this.loadMoreBtn=""),this.timelineAttr&&"story_timeline"===this.timelineAttr.ctl_type?this.newAttribute.filter_category=a:this.newAttribute.category=a,this.newTimeline=!0;this.hrStyle?this.hrLoadMore(e.find(".ctl-slider-container")[0].swiper):this.vrLoadMore()}})}vrLoadMore=async()=>{if(!this.isRequestProcessing)try{const t=await this.handleLoadMorePosts();if(this.newTimeline){const t=jQuery(`#${this.wrapperId} .no-content`);t&&t.remove(),this.timelineContainer.find(".ctl-story, .timeline-year").remove()}if(this.ctlBeforeContentLoad(t)&&t.data&&this.timelineContainer.append(t.data.HTML),this.newTimeline){const t=jQuery(`#${this.wrapperId} nav.ctl-pagination`);t&&t.remove()}this.ctlAfterContentLoad(t)}catch(t){console.error("Error occurred while loading more:",t)}finally{this.isRequestProcessing=!1,this.newTimeline=!1}};hrLoadMore=async t=>{if(this.isRequestProcessing)return;const e=this.timelineContainer.closest(".cool-timeline-wrapper"),i=e.attr("class").split(" "),n=["ctl-default","ctl-design-6","ctl-design-8"].find(t=>i.includes(t)),a=e.find(".ctl-nav-slider-container"),s=n?a[0].swiper:t,r=s.snapGrid[s.snapGrid.length-2];if(!(Math.abs(s.translate)>=r&&this.loadMoreBtn.length>0||this.newTimeline))return;const o=t.navigation.nextEl,l=o.innerHTML;this.newTimeline||(o.innerHTML=this.CtlStaticSvgIcons("spinner"));try{const e=await this.handleLoadMorePosts();if(this.newTimeline){const e=jQuery(`#${this.wrapperId} .no-content`);e&&e.remove(),t.removeAllSlides(),n&&a[0]&&a[0].swiper.removeAllSlides()}if(this.ctlBeforeContentLoad(e)&&e.data&&e.data.HTML)if(this.timelineContainer.closest(".cool-timeline-wrapper").hasClass("ctl-content-empty"))this.timelineContainer.append(e.data.HTML);else{const i=jQuery("<div>").html(e.data.HTML);i.find(".ctl-story").each((e,i)=>{t.appendSlide(i)});const s=document.createComment("Timeline Content");if(this.timelineContainer.find(".ctl-story").before(s),n){const t=jQuery("<div>").html(e.data.HR_NAV_SLIDER);t.find(".ctl-year-swiper-slide").each((t,e)=>{a[0]&&a[0].swiper.appendSlide(e)})}}this.ctlAfterContentLoad(e)}catch(t){console.error("Error occurred while loading more:",t)}finally{this.newTimeline||(o.innerHTML=l),this.isRequestProcessing=!1,this.newTimeline=!1}};ctlBeforeContentLoad=t=>{if(this.newTimeline){const t=this.timelineContainer[0]?this.timelineContainer[0].childNodes:void 0;Object.values(t).forEach(t=>{t.nodeType===Node.COMMENT_NODE&&t.remove()})}const e="show"===this.timelineAttr["year-navigation"]?jQuery(`#${this.wrapperId}`).closest(".ctl-wrapper").find(".ctl-navigation-bar"):void 0;if(this.timelineContainer.closest(".ctl-wrapper").find(".ctl-category-container .ctl-loader-spinner")&&this.timelineContainer.closest(".ctl-wrapper").find(".ctl-category-container .ctl-loader-spinner").remove(),this.newTimeline||this.loadMoreBtn.attr("data-page",t.nextpage),t.data&&t.data.HTML){const i=jQuery("<div>").html(t.data.HTML).find(".no-content");
1if(0===i.length?(this.timelineContainer.closest(".cool-timeline-wrapper").removeClass("ctl-content-empty"),e&&e.show()):(this.timelineContainer.closest(".cool-timeline-wrapper").addClass("ctl-content-empty"),e&&e.hide()),i.length&&!this.newTimeline)return this.loadMoreBtn.remove(),this.loadMoreBtn="",!1}return!0};ctlAfterContentLoad=t=>{const e=this.timelineAttr["year-navigation"],i=this.timelineContainer.closest(".cool-timeline-wrapper"),n=!this.hrStyle;if(n&&this.CtlStoryAos(this.wrapperId),i.hasClass("ctl-compact-wrapper")&&(this.ctlCompactMasonry(jQuery(".ctl-compact-wrapper .ctl-timeline-container"),this.timelineAttr.animation,!0),setTimeout(()=>{this.ctlCompactMasonry(jQuery(".ctl-compact-wrapper .ctl-timeline-container"),this.timelineAttr.animation)},100)),"show"===e&&(t.data&&t.data.HR_NAV_SLIDER?this.updateYearNavigation(t.data.HR_NAV_SLIDER):t.data&&t.data.HTML&&this.updateYearNavigation(t.data.HTML)),0===this.loadMoreBtn.length){const e=jQuery(t.data)&&jQuery(t.data.newPagination);e&&("post_timeline"===this.timelineAttr.ctl_type?this.timelineContainer.closest(".cool-timeline-wrapper").append(e):this.StylesContainer.length?e.insertBefore(this.StylesContainer):this.timelineContainer.closest(".cool-timeline-wrapper").append(e)),this.loadMoreBtn=jQuery(`#${this.wrapperId} .ctl_load_more_pagination button.ctl_load_more`),n&&this.loadMoreBtn.on("click",()=>{this.vrLoadMore()})}if(t.data&&t.data.CSS)if(this.newTimeline){const e=this.StylesContainer.html().replace(/\/\* Specific Story Style Start \*\/[\s\S]*?\/\* Specific Story Style End \*\//,`/* Specific Story Style Start */\n${t.data.CSS}\n/* Specific Story Style End */`);this.StylesContainer.html(e)}else this.StylesContainer.append(t.data.CSS);if(this.loadMoreBtn.length>0){const e=parseInt(this.loadMoreBtn.attr("data-max-num-pages"));this.removeLoadMoreIfOnLastPage(t.nextpage,e)||(this.loadMoreBtn.find("span.clt_loading_state").hide(),this.loadMoreBtn.find("span.default_state").show())}this.CtlLighBoxGallery(),this.CtlStorySliderCall(jQuery(`#${this.wrapperId}`))};shortcodeAttributes=()=>{const t=`config_${this.wrapperId}`;if(void 0===window[t])return null;const e=window[t],i=JSON.parse(e.attributes);this.timelineAttr=i};loadMoreAttributes=()=>{const t=0!==this.catFilterContainer.length&&this.catFilterContainer.find("ul li.active a"),e=t.length>0&&t.data("term-slug");let i="";return i=this.newTimeline?JSON.stringify({...this.timelineAttr,...this.newAttribute}):e?JSON.stringify({...this.timelineAttr,category:e}):JSON.stringify(this.timelineAttr),i};getDataObject=()=>{const t=this.newTimeline?1:this.loadMoreBtn.attr("data-page"),e=this.newTimeline?1:parseInt(t)+1;let i=this.timelineContainer.find(".ctl-story:last-of-type").attr("data-story-index");i=parseInt(i)+1;const n=this.timelineContainer.closest(".cool-timeline-wrapper").find(".ctl-year-container.scrollable-section").last().attr("data-section-title"),a=this.loadMoreAttributes();let s;s="post_timeline"===this.timelineAttr.ctl_type?"ctl_post_ajax_load_more":"ctl_ajax_load_more";return{page_number:e,action:s,ajax_nonce:this.ajaxNonce,last_story_index:this.newTimeline?1:i,active_year:this.newTimeline?"":n,attributes:a,new_timeline:this.newTimeline}};handleLoadMorePosts=()=>{const e=this.newTimeline?0:parseInt(this.loadMoreBtn.attr("data-page")),i=this.newTimeline?1:parseInt(this.loadMoreBtn.attr("data-max-num-pages"));if(this.isRequestProcessing||e===i)return null;const n=parseInt(e)+1;return this.isRequestProcessing=!0,new Promise((e,i)=>{t.ajax({url:this.ajaxUrl,type:"post",data:this.getDataObject(),beforeSend:()=>{this.newTimeline||(this.loadMoreBtn.addClass("loading"),this.loadMoreBtn.children("span.clt_loading_state").show(),this.loadMoreBtn.children("span.default_state").hide())},success:t=>{const i={...t,nextpage:n};e(i)},error:t=>{i(t)}})})};updateYearNavigation=t=>{const e=jQuery(`#${this.wrapperId}`).closest(".ctl-wrapper").find(".ctl-navigation-bar"),i=jQuery(`#${this.wrapperId}`);i.data("ctlYearNavBar",e);const n=e.find("ul"),a=this.newTimeline?1:n.children("li").length;this.newTimeline&&n.empty();const s=jQuery("<div>").html(t),r=Number(this.wrapperId.replace(/\D/g,""));s.find(".ctl-year-container").each((t,s)=>{const{sectionTitle:o}=jQuery(s).data(),l=this.newTimeline?0:a,c=`ctl-scrollar-${r}-${o}`;if(!this.hrStyle&&!i.hasClass("ctl-compact-wrapper")){this.timelineContainer.find(".timeline-year")[l+t].id=c}if(i.hasClass("ctl-compact-wrapper")){this.timelineContainer.find(".ctl-year-container")[l+t].id=c}const d=this.hrStyle?"":`href="#${c}"`,h=`<li class="${this.hrStyle?"ctl-nav-item":""}"><a ${d}>${o}</a></li>`;if(n.append(h),0===t&&this.hrStyle&&this.newTimeline){const t=e.find("button");t.attr("data-value",o),t.find("span").text(o),e.find(".ctl-nav-item").addClass("active")}}),this.hrStyle?this.yearFilterStyle(this.wrapperId):this.yearNavHandleScroll({data:i})};CtlStoryAos=t=>{const e=jQuery(`#${t}`),i=e.find(".ctl-timeline-container"),n=i.attr("data-animation");let a=jQuery(`#${t}`).height();const s=!e.hasClass("ctl-compact-wrapper")&&e.hasClass("ctl-design-6");"none"!==n&&(e.hasClass("ctl-compact-wrapper")||i.find(".timeline-year.scrollable-section").each((t,e)=>{e.dataset.aos=""}),i.find(".ctl-story").each((t,e)=>{s?e.dataset.aos="":jQuery(e).find(".ctl-icon, .ctl-content, .ctl-labels, .ctl-icondot, .ctl-arrow").each((t,e)=>{e.dataset.aos=""})}),AOS.init({disable:"mobile",startEvent:"DOMContentLoaded",offset:75,delay:0,duration:750,easing:"ease-in-out-sine",mirror:!0}),e.hasClass("ctl-compact-wrapper")||i.find(".timeline-year.scrollable-section").each((t,e)=>{e.dataset.aos=n}),i.find(".ctl-story").each((t,e)=>{s?e.dataset.aos=n:jQuery(e).find(".ctl-icon, .ctl-content, .ctl-labels, .ctl-icondot, .ctl-arrow").each((t,e)=>{e.dataset.aos=n})}),setTimeout(()=>{AOS.refresh()},500));const r=this.debounce(()=>{const e=jQuery(`#${t}`).height();a!==e&&(setTimeout(function(){"undefined"!=typeof AOS&&AOS.refresh()},500),a=e)},200);jQuery(window).scroll(r)};ctlCompactMasonry=(t,e,i)=>{let n="",a=0,s=0;n=i?t.masonry("reloadItems"):t.masonry({itemSelector:".ctl-story",initLayout:!1}),n.imagesLoaded().progress(()=>{n.masonry("layout")}),n.one("layoutComplete",()=>{let t,i=0;n.find(".ctl-story").each((e,n)=>{if(i=jQuery(n).position().left,i<=0){const t=a%2==0?"ctl-left-odd":"ctl-left-even",e="ctl-left-odd"===t?"ctl-left-even":"ctl-left-odd";jQuery(n).removeClass("ctl-story-right").removeClass("ctl-right-even").removeClass("ctl-right-odd").removeClass(e).addClass("ctl-story-left").addClass(t),a++}else{const t=s%2==0?"ctl-right-odd":"ctl-right-even",e="ctl-right-odd"===t?"ctl-right-even":"ctl-right-odd";jQuery(n).removeClass("ctl-story-left").removeClass("ctl-left-odd").removeClass("ctl-left-even").removeClass(e).addClass("ctl-story-right").addClass(t),s++}const r=jQuery(n).prev();if(!r.length||!r.position())return;t=jQuery(n).position().top-r.position().top;const o=n.querySelector(".ctl-icon,.ctl-icondot");if(!o)return;const l=o.offsetHeight+12;if(t<l){const e=l-t-5;jQuery(n).removeClass("ctl-compact-up").addClass("ctl-compact-down").css("--ctw-compact-top-spacing",`${e}px`),r.removeClass("ctl-compact-down").addClass("ctl-compact-up")}}),jQuery(".ctl-icon").addClass("showit"),jQuery(".ctl-title").addClass("showit-after"),"none"!==e&&AOS.refreshHard()})};yearNavHandleScroll=async t=>{const e=t&&t.data?t.data:null;if(!e||!e.length)return;let i=e.data("ctlYearNavBar");if(i&&!i.length&&(i=e.find(".ctl-navigation-bar"),i.length&&e.data("ctlYearNavBar",i
1)),!i.length)return;const n=i.find("ul li a"),a=e.find(".ctl-story"),s=e.hasClass("ctl-compact-wrapper"),r=a[a.length-1],o=document.documentElement,l=jQuery(window).height()/3,c=e.offset().top,d=jQuery(r);let h=null;if(d.length>0){const t=d.offset().top+d.height()-o.scrollTop,e=c-o.scrollTop;i.toggleClass("ctl-in-viewport",e<l),i.toggleClass("ctl-out-viewport",e>=l||t<l);const a=s?70:400,r=window.scrollY+a;n.each(function(){const t=this.hash;if(!jQuery(t).length)return!1;const e=jQuery(t).offset().top;e<=r&&(null!==h&&h.removeClass("current").parent().removeClass("current"),jQuery(this).addClass("current").parent().addClass("current")),e>=r&&jQuery(this).removeClass("current").parent().removeClass("current"),h=jQuery(this)})}};checkSwiperVisibility=(t,e)=>{const i=this.isElementInViewport(e),n=jQuery(t.el).data("swiper-autoplay");i&&n?t.autoplay.start():t.autoplay.stop()};isElementInViewport=t=>{const e=t.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)};debounce(t,e){let i;return(...n)=>{clearTimeout(i),i=setTimeout(()=>{t(...n)},e)}}yearFilterStyle=t=>{const e=jQuery(`#${t}`).closest(".ctl-wrapper").find(".ctl-nav-container");e.find("li").length<5?(e.find("button.ctl-nav-dropdown-button").css("display","none"),e.addClass("ctl-nav-default").removeClass("ctl-nav-dropdown")):(e.find("button.ctl-nav-dropdown-button").css("display","block"),e.addClass("ctl-nav-dropdown").removeClass("ctl-nav-default")),this.yearFilterSliderControl(t)};yearFilterSliderControl=t=>{const e=jQuery(`.ctl-wrapper #${t}`).closest(".ctl-wrapper"),i=t=>{const i=t.currentTarget.innerText,n=e.find(`.timeline-year#year-${i}`),a=parseInt(n.parent().data("story-index"));e.find(".ctl-slider-container")[0].swiper.slideTo(a-1)},n=e.find(".ctl-navigation-bar li");n&&n.click(i)};CtlLightBoxHtml=t=>`<div id="glightbox-body" class="glightbox-container">\n <div class="gloader visible"></div>\n <div class="goverlay"></div>\n <div class="gcontainer ctl_glightbox_container${"minimal"===t?" minimal-layout":""}">\n <div id="glightbox-slider" class="gslider"></div>\n <button class="gnext gbtn" tabindex="0" aria-label="Next" data-customattribute="example">{nextSVG}</button>\n <button class="gprev gbtn" tabindex="1" aria-label="Previous">{prevSVG}</button>\n <button class="gclose gbtn" tabindex="2" aria-label="Close">{closeSVG}</button>\n </div>\n </div>`;CtlLighBoxGallery=()=>{if("undefined"!=typeof GLightbox){return GLightbox({selector:".ctl_glightbox_gallery",lightboxHTML:this.CtlLightBoxHtml("default"),svg:{close:'<i class="ctl_glightbox_close_btn"></i>'}})}};CtlStorySliderCall=t=>{t.find(".ctl-story .ctp-story-slider:not(.swiper-initialized)").each((t,e)=>{this.CtlStorySlider(jQuery(e))})};CtlStorySlider=t=>{const e=t[0],i=t.closest(".cool-timeline-wrapper"),n=parseInt(t.data("swiper-speed")),a=parseInt(t.data("swiper-autoplay")),s=!t.parents(".cool-timeline").hasClass("compact"),r=t.find(".story-swiper-button-prev")[0],o=t.find(".story-swiper-button-next")[0];let l={nextEl:o,prevEl:r};"rtl"===i.data("dir")&&(l={nextEl:r,prevEl:o});const c=new Swiper(e,{slidesPerView:1,spaceBetween:30,autoHeight:s,autoplay:1===a&&{delay:n,disableOnInteraction:!0},navigation:l});if(this.checkSwiperVisibility(c,e),1===a){const t=()=>c.autoplay.stop(),i=()=>c.autoplay.start();e.addEventListener("mouseenter",t),e.addEventListener("mouseleave",i)}const d=this.debounce(()=>{this.checkSwiperVisibility(c,e)},200);window.addEventListener("scroll",d),window.addEventListener("resize",d)};removeLoadMoreIfOnLastPage(t,e){return t+1>e&&(this.loadMoreBtn.closest(".ctl_load_more_pagination").remove(),this.loadMoreBtn=""),t+1>e}CtlStaticSvgIcons=t=>{const e={spinner:'<svg class="ctl-loader-spinner" xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 512 512">\n\t\t\t\t<path d="M304 48c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-48 368c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm208-208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zM96 256c0-26.51-21.49-48-48-48S0 229.49 0 256s21.49 48 48 48 48-21.49 48-48zm12.922 99.078c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.491-48-48-48zm294.156 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.49-48-48-48zM108.922 60.922c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.491-48-48-48z"/>\n\t\t\t\t</svg>'};return void 0!==e[t]?e[t]:""}}jQuery(document).ready(function(){jQuery("div.cool-timeline-wrapper").each((t,i)=>{const n=i.id;new e(n)})})}(jQuery);
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.