PageSourceSearch

https://caretas.pe/wp-content/cache/min/1/wp-content/plugins/embedpress/assets/js/front.js?ver=1789749042

js caretas.pe collected 2026-10-02 04:51:47 UTC 44,976 bytes, 194 lines download raw bytes

1/**
2 * @package     EmbedPress
3 * @author      EmbedPress <[email protected]>
4 * @copyright   Copyright (C) 2023 EmbedPress. All rights reserved.
5 * @license     GPLv2 or later
6 * @since       1.7.0
7 */
8let epGlobals={};(function($){'use strict';function ready(fn){if(document.readyState!=='loading'){fn()}else{document.addEventListener('DOMContentLoaded',fn)}}
9ready(function(){let option={forceObject:!0,};let selector=document.querySelectorAll('.embedpress-embed-document-pdf');if(selector.length){selector.forEach((function(value,index,thisArg){let id=value.dataset.emid;let src=value.dataset.emsrc;PDFObject?.embed(src,"."+id,option)}))}
10if(typeof epGlobals.youtubeChannelGallery==='function'){epGlobals.youtubeChannelGallery()}});function embedPressResponsiveEmbeds(){var proportion,parentWidth;document.querySelectorAll('iframe').forEach(function(iframe){if(iframe.width&&iframe.height){proportion=parseFloat(iframe.width)/parseFloat(iframe.height);parentWidth=parseFloat(window.getComputedStyle(iframe.parentElement,null).width.replace('px',''));iframe.style.maxWidth='100%';iframe.style.maxHeight=Math.round(parentWidth/proportion).toString()+'px'}})}
11epGlobals.handlePosterImageLoad=function(){var posterImages=document.querySelectorAll(".plyr__poster");posterImages.forEach(function(posterImage){if(posterImage){var videoWrappers=document.querySelectorAll("[data-playerid]");videoWrappers.forEach(function(videoWrapper){var observer=new MutationObserver(function(mutationsList,observer){var posterImageStyle=window.getComputedStyle(posterImage);if(posterImageStyle.getPropertyValue('background-image')!=='none'){setTimeout(function(){videoWrapper.style.opacity="1"},200);observer.disconnect()}});observer.observe(posterImage,{attributes:!0,attributeFilter:['style']})})}})}
12embedPressResponsiveEmbeds();window.onresize=embedPressResponsiveEmbeds;function hasClass(ele,cls){return!!ele.className.match(new RegExp("(\\s|^)"+cls+"(\\s|$)"))}
13function addClass(ele,cls){if(!hasClass(ele,cls))ele.className+=" "+cls}
14function removeClass(ele,cls){if(hasClass(ele,cls)){var reg=new RegExp("(\\s|^)"+cls+"(\\s|$)");ele.className=ele.className.replace(reg," ")}}
15if(!Element.prototype.matches){Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||function(s){var matches=(this.document||this.ownerDocument).querySelectorAll(s),i=matches.length;while(--i>=0&&matches.item(i)!==this){}
16return i>-1}}
17var delegate=function(el,evt,sel,handler){el.addEventListener(evt,function(event){var t=event.target;while(t&&t!==this){if(t.matches(sel)){handler.call(t,event)}
18t=t.parentNode}})};function sendRequest(url,postData,callback){var req=createXMLHTTPObject();if(!req)return;var method=postData?"POST":"GET";req.open(method,url,!0);if(postData){req.setRequestHeader("Content-type","application/x-www-form-urlencoded")}
19req.onreadystatechange=function(){if(req.readyState!=4)return;if(req.status!=200&&req.status!=304){return}
20callback(req)};if(req.readyState==4)return;req.send(postData)}
21var XMLHttpFactories=[function(){return new XMLHttpRequest()},function(){return new ActiveXObject("Msxml3.XMLHTTP")},function(){return new ActiveXObject("Msxml2.XMLHTTP.6.0")},function(){return new ActiveXObject("Msxml2.XMLHTTP.3.0")},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")},];function createXMLHTTPObject(){var xmlhttp=!1;for(var i=0;i<XMLHttpFactories.length;i++){try{xmlhttp=XMLHttpFactories[i]()}catch(e){continue}
22break}
23return xmlhttp}
24epGlobals.youtubeChannelGallery=function(){var playerWraps=document.getElementsByClassName("ep-player-wrap");if(playerWraps&&playerWraps.length){for(var i=0,im=playerWraps.length;im>i;i++){youtubeChannelEvents(playerWraps[i])}}}
25function youtubeChannelEvents(playerWrap){delegate(playerWrap,"click",".item",function(event){var embed="https://www.youtube.com/embed/";var vid=this.getAttribute("data-vid");var iframe=playerWrap.getElementsByTagName("iframe");console.log
26if(vid){if(iframe){var vidSrc=iframe[0]?.src.replace(/(.*\/embed\/)([^\?&"'>]+)(.+)?/,`\$1${vid}\$3`);if(vidSrc.indexOf('autoplay')>0){vidSrc=vidSrc.replace('autoplay=0','autoplay=1')}else{vidSrc+='&autoplay=1'}
27iframe[0].src=vidSrc;playerWrap.scrollIntoView()}}});var currentPage=1;let nearestEpContentId=playerWrap.querySelector('.ep-youtube__content__block').getAttribute('data-unique-id');let epContentBlock=playerWrap.querySelector('.ep-youtube__content__block');let parentElement=epContentBlock.parentElement;let channelUrl=parentElement.querySelector('[data-channel-url]').getAttribute('data-channel-url');delegate(playerWrap,"click",".ep-next, .ep-prev",function(event){const totalPages=event.target.closest('.ose-youtube').getAttribute('data-total-pages');const closestClass=event.target.closest('.ose-youtube').classList;const activePage=document.querySelector(`.${closestClass[1]} .embedpress-page-active`);if(activePage){document.querySelector(`.${closestClass[1]} .embedpress-page-active`).classList.remove('embedpress-page-active')}
28var isNext=this.classList.contains("ep-next");if(isNext){currentPage++}else{currentPage--}
29var data={action:"youtube_rest_api",playlistid:this.getAttribute("data-playlistid"),pagetoken:this.getAttribute("data-pagetoken"),pagesize:this.getAttribute("data-pagesize"),channelUrl:channelUrl,currentpage:currentPage};var formBody=[];for(var property in data){var encodedKey=encodeURIComponent(property);var encodedValue=encodeURIComponent(data[property]);formBody.push(encodedKey+"="+encodedValue)}
30formBody=formBody.join("&");var galleryWrapper=playerWrap.getElementsByClassName("ep-youtube__content__block");playerWrap.setAttribute('data-current-page',currentPage);let x=1;sendRequest(embedpressFrontendData.ajaxurl,formBody,function(request){if(galleryWrapper&&galleryWrapper[0]&&request.responseText){var response=JSON.parse(request.responseText);galleryWrapper[0].outerHTML=response.html;var currentPageNode=galleryWrapper[0].getElementsByClassName("current-page");if(currentPageNode&&currentPageNode[0]){currentPageNode[0].textContent=currentPage}}});const intervalID=setInterval(()=>{x++
31if(playerWrap.querySelector('.ep-youtube__content__block')){const newNearestEpContentId=playerWrap.querySelector('.ep-youtube__content__block').getAttribute('data-unique-id');if(newNearestEpContentId!==nearestEpContentId&&playerWrap.querySelector(`[data-
31page="${currentPage}"]`)){playerWrap.querySelector(`[data-page="${currentPage}"]`).classList.add('embedpress-page-active');nearestEpContentId=newNearestEpContentId;clearInterval(intervalID)}}
32if(x>100){clearInterval(intervalID)}},100)})}
33const epLoadMore=()=>{$('.embedpress-gutenberg-wrapper .ep-nft-gallery-wrapper').each(function(){let selctorEl=`[data-nftid='${$(this).data('nftid')}']`;let loadmorelabel=$(selctorEl).data('loadmorelabel');let iconcolor=$(selctorEl+" .nft-loadmore").data('iconcolor');let spinicon=`<svg width="18" height="18" fill="${iconcolor || '#fff'}" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><style>.spinner_GuJz{transform-origin:center;animation:spinner_STY6 1.5s linear infinite}@keyframes spinner_STY6{100%{transform:rotate(360deg)}}</style><g class="spinner_GuJz"><circle cx="3" cy="12" r="2"/><circle cx="21" cy="12" r="2"/><circle cx="12" cy="21" r="2"/><circle cx="12" cy="3" r="2"/><circle cx="5.64" cy="5.64" r="2"/><circle cx="18.36" cy="18.36" r="2"/><circle cx="5.64" cy="18.36" r="2"/><circle cx="18.36" cy="5.64" r="2"/></g></svg>`;$(selctorEl+` .ep_nft_item`).slice(0,$(selctorEl).data('itemparpage')).show();$('.embedpress-gutenberg-wrapper .ep-nft-gallery-wrapper .ep-loadmore-wrapper button').css('display','flex');$(selctorEl+" .nft-loadmore").click(function(e){$(this).html(loadmorelabel+spinicon);$(this).prop("disabled",!0);setTimeout(function(){$(selctorEl+" .nft-loadmore").text(loadmorelabel);$(selctorEl+" .nft-loadmore").prop("disabled",!1);$(selctorEl+" .ep_nft_item:hidden").slice(0,$(selctorEl).data('itemparpage')).fadeIn("slow");if($(selctorEl+" .ep_nft_item:hidden").length==0){$(selctorEl+" .nft-loadmore").fadeOut("slow")}},500)})})};if($('.embedpress-gutenberg-wrapper .ep-nft-gallery-wrapper').length>0){epLoadMore()}
34const unlockSubmitHander=(perentSel,that)=>{var ep_client_id=jQuery(that).closest('form').find('input[name="ep_client_id"]').val();var password=jQuery(`input[name="pass_${ep_client_id}"]`).val();var post_id=jQuery(`input[name="post_id"]`).val();const buttonText=jQuery(that).closest('.password-form-container').find('input[type="submit"]').val();const unlokingText=jQuery(that).data('unlocking-text');var data={'action':'lock_content_form_handler','client_id':ep_client_id,'password':password,'post_id':post_id,};jQuery('#'+perentSel+'-'+ep_client_id+' .password-form input[type="submit"]').val(unlokingText);jQuery.post(embedpressFrontendData.ajaxurl,data,function(response){if(response.success){if(!response.embedHtml){jQuery('#'+perentSel+'-'+ep_client_id+' .password-form input[type="submit"]').val(buttonText);jQuery('#'+perentSel+'-'+ep_client_id+' .password-form input[type="password"]').val('');jQuery(that).closest('.password-form-container').find('.error-message').removeClass('hidden')}else{const wrapperEl=jQuery('#'+perentSel+'-'+ep_client_id);const parentWrapper=wrapperEl.parent('.ep-embed-content-wraper');if(parentWrapper.length>0){parentWrapper.html(response.embedHtml)}else{wrapperEl.html(response.embedHtml)}
35if(jQuery('#'+perentSel+'-'+ep_client_id+' .ose-youtube').length>0){epGlobals.youtubeChannelGallery()}
36if($('.embedpress-gutenberg-wrapper .ep-nft-gallery-wrapper').length>0){epLoadMore()}
37const targetEl=parentWrapper.length>0?parentWrapper[0]:wrapperEl[0];targetEl?.classList?.remove('plyr-initialized');if(typeof initPlayer==='function'){initPlayer(targetEl)}
38if(embedpressFrontendData.isProPluginActive){const adIdEl=document.querySelector('#'+perentSel+'-'+ep_client_id+' [data-sponsored-id]');if(typeof adInitialization==='function'){adInitialization(adIdEl,adIdEl?.getAttribute('data-ad-index'))}}}}else{jQuery('#password-error_'+ep_client_id).html(response.form);jQuery('#password-error_'+ep_client_id).show()}},'json')}
39jQuery('.ep-gutenberg-content .password-form').submit(function(e){e.preventDefault();unlockSubmitHander('ep-gutenberg-content',this)});jQuery('.ep-shortcode-content .password-form').submit(function(e){e.preventDefault();unlockSubmitHander('ep-shortcode-content',this)});window.addEventListener('load',function(e){const urlParams=new URLSearchParams(window.location.search);const hash=urlParams.get('hash');const element=document.getElementById(hash);if(element){element.scrollIntoView({behavior:'smooth'})}});const getPopupTemplate=(instPost,hashtag='',accountType)=>{let instaPostData=JSON.parse(instPost);let likeIcon='<svg aria-label="Like" class="x1lliihq x1n2onr6" color="#262626" fill="#262626" height="24" viewBox="0 0 24 24" width="24"><path d="M16.792 3.904A4.989 4.989 0 0 1 21.5 9.122c0 3.072-2.652 4.959-5.197 7.222-2.512 2.243-3.865 3.469-4.303 3.752-.477-.309-2.143-1.823-4.303-3.752C5.141 14.072 2.5 12.167 2.5 9.122a4.989 4.989 0 0 1 4.708-5.218 4.21 4.21 0 0 1 3.675 1.941c.84 1.175.98 1.763 1.12 1.763s.278-.588 1.11-1.766a4.17 4.17 0 0 1 3.679-1.938m0-2a6.04 6.04 0 0 0-4.797 2.127 6.052 6.052 0 0 0-4.787-2.127A6.985 6.985 0 0 0 .5 9.122c0 3.61 2.55 5.827 5.015 7.97.283.246.569.494.853.747l1.027.918a44.998 44.998 0 0 0 3.518 3.018 2 2 0 0 0 2.174 0 45.263 45.263 0 0 0 3.62
396-3.115l.922-.824c.293-.26.59-.519.885-.774 2.334-2.025 4.98-4.32 4.98-7.94a6.985 6.985 0 0 0-6.708-7.218Z"/></svg>';if(instaPostData.like_count>0){likeIcon='<svg aria-label="Unlike" class="x1lliihq x1n2onr6" color="#FF3040" fill="#FF3040" height="24" viewBox="0 0 48 48" width="24"><path d="M34.6 3.1c-4.5 0-7.9 1.8-10.6 5.6-2.7-3.7-6.1-5.5-10.6-5.5C6 3.1 0 9.6 0 17.6c0 7.3 5.4 12 10.6 16.5.6.5 1.3 1.1 1.9 1.7l2.3 2c4.4 3.9 6.6 5.9 7.6 6.5.5.3 1.1.5 1.6.5s1.1-.2 1.6-.5c1-.6 2.8-2.2 7.8-6.8l2-1.8c.7-.6 1.3-1.2 2-1.7C42.7 29.6 48 25 48 17.6c0-8-6-14.5-13.4-14.5z"/></svg>'}
40const commentsIcon='<svg aria-label="Comment" class="x1lliihq x1n2onr6" color="#000" height="24" viewBox="0 0 24 24" width="24"><path d="M20.656 17.008a9.993 9.993 0 1 0-3.59 3.615L22 22Z" fill="none" stroke="currentColor" stroke-linejoin="round" stroke-width="2"/></svg>';const shareIcon='<svg width="20" height="20" viewBox="0 0 0.6 0.6" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg"><path stroke-width="1" d="m.543.282-.2-.2A.025.025 0 0 0 .3.1v.089a.275.275 0 0 0-.25.274V.5a.025.025 0 0 0 .045.015.3.3 0 0 1 .197-.101L.3.413V.5a.025.025 0 0 0 .043.018l.2-.2a.025.025 0 0 0 0-.035M.35.44V.388A.025.025 0 0 0 .325.363L.286.365a.35.35 0 0 0-.185.074.225.225 0 0 1 .224-.201A.025.025 0 0 0 .35.213V.16L.49.3Z"/></svg>';const instaIcon='<svg width="18" height="18" viewBox="0 0 0.338 0.338" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M.248.079H.27M.102.012h.135a.09.09 0 0 1 .09.09v.135a.09.09 0 0 1-.09.09H.102a.09.09 0 0 1-.09-.09V.102a.09.09 0 0 1 .09-.09ZM.17.237a.068.068 0 1 1 0-.135.068.068 0 0 1 0 .135Z" stroke="#000" stroke-width=".032"/></svg>';const instaUserInfo=instPost.user_info;let getDate=new Date(instaPostData.timestamp);getDate=getDate.toLocaleString('en-US',{day:'numeric',month:'short',year:'numeric'});let getTime=new Date(instaPostData.timestamp);getTime=getTime.toLocaleString('en-US',{hour12:!1,hour:'numeric',minute:'numeric',second:'numeric'});let captionText=instaPostData.caption?instaPostData.caption:'';const tagRegex=/(#\w+)/g;const wrapTag=(match)=>{const tag=match.substring(1);const tagUrl=`https://www.instagram.com/explore/tags/${tag}`;return `<span class="tag-wrapper"><a target="_blank" href="${tagUrl}">${match}</a></span>`};captionText=captionText.replace(tagRegex,wrapTag);let carouselTemplate='';if(instaPostData.media_type==='CAROUSEL_ALBUM'){carouselTemplate+=`<div class="popup-carousel"><div class="cg-carousel__track js-carousel__track">`;instaPostData.children.data?.map((item)=>{if(item.media_type?.toLowerCase()==='video'){carouselTemplate+=`<video width="630" class="popup-media-image cg-carousel__slide js-carousel__slide" controls src="${item.media_url || ''}" alt="${item.caption || ''}" controlsList="nodownload"></video>`}else{carouselTemplate+=`<img width="630" class="popup-media-image cg-carousel__slide js-carousel__slide" src="${item.media_url || ''}" alt="${item.caption || ''}" />`}});carouselTemplate+=`</div></div>`;carouselTemplate+=`<div class="cg-carousel__btns">
41                    <button class="cg-carousel__btn js-carousel__prev-1"><svg width="20" height="30" viewBox="-5 0 23 23" xmlns="http://www.w3.org/2000/svg"><path d="M11.24.29.361 10.742l-.06.054a.97.97 0 0 0-.301.642v.124a.97.97 0 0 0 .3.642l.054.044L11.239 22.71a1.061 1.061 0 0 0 1.459 0 .964.964 0 0 0 0-1.402l-10.15-9.746 10.15-9.87a.964.964 0 0 0 0-1.402 1.061 1.061 0 0 0-1.459 0Z" fill="#fff"/></svg></button>
42
43                    <button class="cg-carousel__btn js-carousel__next-1"><svg width="20" height="30" viewBox="-5 0 23 23" xmlns="http://www.w3.org/2000/svg"><path d="m1.76.29 10.879 10.452.06.054a.97.97 0 0 1 .301.642v.124a.97.97 0 0 1-.3.642l-.054.044L1.761 22.71a1.061 1.061 0 0 1-1.459 0 .964.964 0 0 1 0-1.402l10.15-9.746-10.15-9.87a.964.964 0 0 1 0-1.402 1.061 1.061 0 0 1 1.459 0Z" fill="#fff"/></svg></button>
44                </div>`}else{if(instaPostData.media_type?.toLowerCase()==='video'){carouselTemplate+=`<video width="630" class="popup-media-image" controls src="${instaPostData.media_url || ''}" alt="${instaPostData.caption || ''}"></video>`}else{carouselTemplate+=`<img width="630" class="popup-media-image" src="${instaPostData.media_url || ''}" alt="${instaPostData.caption || ''}" />`}}
45let srcUrl=`https://www.instagram.com/${instaPostData.username}/`;if(hashtag){instaPostData.username='#'+hashtag;srcUrl=`https://www.instagram.com/explore/tags/${hashtag}/`}
46let likeComments='';if(embedpressFrontendData.isProPluginActive){if(instaPostData.show_likes_count=='true'){likeComments+=`
47                    <div class="embedpress-inline popup-like-button"><a target="_blank" href="${instaPostData.permalink}">${likeIcon} ${instaPostData.like_count || 0}</a></div> 
48                `}
49if(instaPostData.show_comments_count=='true'){likeComments+=`
50                    <div class="embedpress-inline"><a target="_blank" href="${instaPostData.permalink}">${commentsIcon} ${instaPostData.comments_count || 0}</a></div>
51                `}}
52let followBtn='';if(instaPostData.popup_follow_button_text=='false'){instaPostData.popup_follow_button_text=''}
53if(instaPostData.popup_follow_button=='true'||instaPostData.popup_follow_button=='yes'){followBtn=`<div class="insta-followbtn">
54                <a target="_new" href="${srcUrl}" type="button" class="btn btn-primary">${instaPostData.popup_follow_button_text}</a>
55            </div>`}
56let popupHtml='';popupHtml+=`
57        <div class="popup-container">
58                <div class="popup-md-9 white">
59                    <div class="embedpress-popup-block embedpress-popup-img" id="post-${instaPostData.id}">
60                        ${carouselTemplate}
61                    </div>
62                </div>
63                <div class="popup-md-3 red">
64                    <div class="embedpress-popup-block embedpress-popup-info">
65                        <div class="embedpress-popup-header">
66                            <div class="embedpress-popup-header-img"> <a target="_blank" href="${srcUrl}"
67                                    target="_blank" class="embedpress-href">
68                                     <img decoding="async" loading="lazy" class="embedpress-popup-round" src="${instaPostData.profile_picture_url}" width="30" height="30"> <span class="embedpress-popup-username">${instaPostData.username}</span>
69                                </a>
70                            </div>
71                            ${followBtn}
72                        </div>
73                        <div class="embedpress-popup-text">${captionText}</div>
74                        <div class="embedpress-popup-stats">
75                            ${likeComments}
76                                <div class="embedpress-inline">
77                                <div class="embedpress-popup-share-buttons"> <a
78                                        href="https://www.facebook.com/sharer/sharer.php?u=${instaPostData.permalink}" target="_blank">
79                                        <span class="dashicons dashicons-facebook"></span></a> <a
80                                        href="https://twitter.com/intent/tweet?url=${instaPostData.permalink}"
81                                        target="_blank"><span>
82                                        <svg viewBox="0 0 18 18" aria-hidden="true" class="r-4qtqp9 r-yyyyoo r-dnmrzs r-bnwqim r-1plcrui r-lrvibr r-lrsllp r-18jsvk2 r-16y2uox r-8kz0gk" width="18" height="18"><path d="M13.683 1.688h2.481l-5.42 6.195 6.377 8.43h-4.993L8.217 11.2l-4.474 5.113H1.26l5.798-6.626L.941 1.688H6.06l3.535 4.673zm-.871 13.14h1.375L5.313 3.095H3.838z"/></svg>
83                                        </span></a>                                       
84                                        <a href="https://www.linkedin.com/shareArticle?mini=true&amp;url=${instaPostData.permalink}"
85                                        target="_blank"><span class="dashicons dashicons-linkedin"></span></a> <a
86                                        href="https://pinterest.com/pin/create/button/?url=${instaPostData.permalink}"
87                                        target="_blank"><span class="dashicons dashicons-pinterest"></span></a></div>
88                                <div class="embedpress-href embedpress-popup-share">${shareIcon}</div>
89                            </div><div class="embedpress-inline embedpress-popup-instagram-buttons"><a
90                                    href="${instaPostData.permalink}" target="_blank"
91                                    class="embedpress-href">${instaIcon}</a></div>
92                        </div>
93                        
94                    </div>
95                </div>
96            </div>
97        `;return popupHtml}
98epGlobals.instaPopup=(container)=>{container?.addEventListener('click',function(event){const instaItem=event.target.closest('.insta-gallery-item');if(instaItem){const postData=instaItem.dataset.postdata;const postid=instaItem.getAttribute('data-insta-postid');const accountType=container?.closest('.instagram-container')?.getAttribute('data-connected-acc-type');let hashtag='';if(instaItem.closest('.instagram-container').getAttribute('data-hashtag')){hashtag=instaItem?.closest('.instagram-container')?.getAttribute('data-hashtag')}
99const closestPopup=event.target.closest('.ose-instagram-feed')?.querySelector('.insta-popup');if(closestPopup){closestPopup.style.display='block'}
100var feedElement=event.target.closest('.ose-instagram-feed');if(feedElement){var popupElement=feedElement.querySelector('.popup-is-initialized');if(popupElement){popupElement.innerHTML=getPopupTemplate(postData,hashtag,accountType)}}
101if(!document.querySelector(`#post-${postid}`)?.classList.contains('carousel-is-initialized')){const carousel=new CgCarousel(`#post-${postid}`,{slidesPerView:1,loop:!0},{});const next=document.querySelector(`#post-${postid} .js-carousel__next-1`);next?.addEventListener('click',()=>carousel.next());const prev=document.querySelector(`#post-${postid} .js-carousel__prev-1`);prev?.addEventListener('click',()=>carousel.prev());document.querySelector(`#post-${postid}`)?.classList.add('carousel-is-initialized')}}})}
102const instaContainers=document.querySelectorAll('.embedpress-gutenberg-wrapper .insta-gallery');if(instaContainers.length>0){instaContainers.forEach((container)=>{epGlobals.instaPopup(container)})}
103$('.popup-close').click(function(e){$('.insta-popup').hide();$('.popup-container').remove()});$(document).on('click',function(e){if(e.target.classList.contains('popup-wrapper')){$('.insta-popup').hide();$('.popup-container').remove()}});const instafeeds=document.querySelectorAll('.ose-instagram-feed');epGlobals.initializeTabs=(containerEl)=>{showItems('ALL');containerEl.addEventListener('click',function(event){const clickedElement=event.target;if(!clickedElement){return}
104if(containerEl.querySelector('.load-more-button-container')&&(clickedElement.getAttribute('data-media-type')==='VIDEO'||clickedElement.getAttribute('data-media-type')==='CAROUSEL_ALBUM')){containerEl.querySelector('.load-more-button-container').style.display='none'}else if(containerEl.querySelector('.load-more-button-container')&&(clickedElement.getAttribute('data-media-type')==='ALL')){containerEl.querySelector('.load-more-button-container').style.display='flex'}
105if(clickedElement.matches('.tabs li')){if(clickedElement.classList.contains('active')){return}else{const mediaType=clickedElement.getAttribute('data-media-type');showItems(mediaType);const tabs=containerEl.querySelectorAll('.tabs li');
105tabs.forEach(t=>t.classList.remove('active'));clickedElement.classList.add('active')}}});function showItems(mediaType){const items=containerEl.getElementsByClassName('insta-gallery-item');for(let i=0;i<items.length;i++){const item=items[i];if(mediaType==='ALL'||item.getAttribute('data-media-type')===mediaType){item.style.display='block'}else{item.style.display='none'}}}}
106epGlobals.instaLoadMore=()=>{$('.insta-load-more-button').off('click').on('click',function(e){const that=$(this);const loadmoreBtn=that.closest('.load-more-button-container');const loadmoreKey=loadmoreBtn.data('loadmorekey');const connectedAccount=that.closest('.instagram-container').data('connected-acc-type');const feedType=that.closest('.instagram-container').data('feed-type');const hashtagId=that.closest('.instagram-container').data('hashtag-id');const userId=that.closest('.instagram-container').data('uid');let loadedPosts=loadmoreBtn.data('loaded-posts')||0;let postsPerPage=loadmoreBtn.data('posts-per-page')||0;const params=JSON.stringify(that.closest('.instagram-container').data('params'));const instaContainer=that.closest('.instagram-container');const spinicon=`<svg class="insta-loadmore-spinicon" width="18" height="18" fill="${'#fff'}" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><style>.spinner_GuJz{transform-origin:center;animation:spinner_STY6 1.5s linear infinite}@keyframes spinner_STY6{100%{transform:rotate(360deg)}}</style><g class="spinner_GuJz"><circle cx="3" cy="12" r="2"/><circle cx="21" cy="12" r="2"/><circle cx="12" cy="21" r="2"/><circle cx="12" cy="3" r="2"/><circle cx="5.64" cy="5.64" r="2"/><circle cx="18.36" cy="18.36" r="2"/><circle cx="5.64" cy="18.36" r="2"/><circle cx="18.36" cy="5.64" r="2"/></g></svg>`;if(instaContainer.find('.insta-loadmore-spinicon').length===0){that.append(spinicon)}
107that.attr('disabled',!0);var data={'action':'loadmore_data_handler','user_id':userId,'loaded_posts':loadedPosts,'posts_per_page':postsPerPage,'feed_type':feedType,'connected_account_type':connectedAccount,'loadmore_key':loadmoreKey,'params':params,'_nonce':embedpressFrontendData.nonce};if(feedType==='hashtag_type'){data.hashtag_id=hashtagId}
108jQuery.post(embedpressFrontendData.ajaxurl,data,function(response){if(response.total_feed_posts>=response.next_post_index){var $responseHtml=$(response.html);instaContainer.find('.insta-gallery').append($responseHtml);that.removeAttr('disabled');instaContainer.find('.insta-loadmore-spinicon').remove();loadedPosts=response.next_post_index;loadmoreBtn.data('loaded-posts',loadedPosts);const containerEl=loadmoreBtn.closest('.ose-instagram-feed')[0];epGlobals.initializeTabs(containerEl);if(response.total_feed_posts===response.next_post_index){loadmoreBtn.remove()}}else{loadmoreBtn.remove()}})})}
109if(instafeeds.length>0){instafeeds.forEach(function(feed){epGlobals.initializeTabs(feed)})}
110if($('.embedpress-gutenberg-wrapper .ose-instagram-feed').length>0){epGlobals.instaLoadMore()}
111$(document).on({mouseenter:function(){$('.embedpress-popup-share-buttons').addClass('show')},mouseleave:function(){var buttons=$('.embedpress-popup-share-buttons');setTimeout(function(){if(!buttons.is(':hover'))buttons.removeClass('show')},200)}},'.embedpress-href.embedpress-popup-share, .embedpress-popup-share-buttons');$(document).on({mouseenter:function(){$(this).addClass('show')},mouseleave:function(){$(this).removeClass('show')}},'.embedpress-popup-share-buttons')})(jQuery);document.addEventListener('DOMContentLoaded',function(){epGlobals.initCarousel=(carouselSelector,options,carouselId)=>{const carouselOptions={slidesPerView:options.slideshow,spacing:options.spacing,loop:options.loop,autoplay:options.autoplay,transitionSpeed:options.transitionspeed,autoplaySpeed:options.autoplayspeed,arrows:options.arrows,breakpoints:{0:{slidesPerView:1},768:{slidesPerView:Math.max(1,parseInt(options.slideshow,10)-1)},1024:{slidesPerView:Math.max(1,parseInt(options.slideshow,10))}}};const carousel=new CgCarousel(carouselSelector,carouselOptions,{});const next=document.querySelector(`[data-carouselid="${carouselId}"] #js-carousel__next-1`);next?.addEventListener('click',()=>carousel.next());const prev=document.querySelector(`[data-carouselid="${carouselId}"] #js-carousel__prev-1`);prev?.addEventListener('click',()=>carousel.prev())}
112const instaWrappers=document.querySelectorAll('.ep-embed-content-wraper');if(instaWrappers.length>
1120){instaWrappers.forEach((wrapper)=>{const carouselId=wrapper.getAttribute('data-carouselid');if(!carouselId)return;let options=wrapper.getAttribute(`data-carousel-options`);options=JSON.parse(options);const carouselSelector=`[data-carouselid="${carouselId}"] .embedpress-insta-container`;if(options.arrows){document.querySelector(`[data-carouselid="${carouselId}"] .cg-carousel__btns`).classList.remove('hidden')}
113epGlobals.initCarousel(carouselSelector,options,carouselId)})}
114const youtubeCarouselWraper=document.querySelectorAll('[data-youtube-channel-carousel]');if(youtubeCarouselWraper.length>0){youtubeCarouselWraper.forEach((wrapper)=>{const carouselId=wrapper.getAttribute('data-youtube-channel-carousel');if(!carouselId)return;const carouselSelector=`[data-youtube-channel-carousel="${carouselId}"] .youtube__content__body`;const options={slidesPerView:2,autoplay:!0,loop:!0,breakpoints:{768:{slidesPerView:2},1024:{slidesPerView:4}}}})}});document.addEventListener('DOMContentLoaded',()=>{const carousel=document.querySelector('.youtube-carousel');if(!carousel){return}
115const items=document.querySelectorAll('.item');const prevButton=document.querySelector('.preview');const nextButton=document.querySelector('.next');let itemsToShow=getItemsToShow();const totalItems=items.length;let currentIndex=0;function updateCarousel(){const offset=-currentIndex*(100/itemsToShow);carousel.style.transform=`translateX(${offset}%)`}
116function nextSlide(){const remainingItems=totalItems-(currentIndex+itemsToShow);if(remainingItems>=itemsToShow){currentIndex+=itemsToShow}else if(remainingItems>0){currentIndex+=remainingItems}else{currentIndex=0}
117updateCarousel()}
118function prevSlide(){if(currentIndex>0){currentIndex-=itemsToShow;if(currentIndex<0){currentIndex=0}}else{currentIndex=totalItems-itemsToShow}
119updateCarousel()}
120nextButton?.addEventListener('click',nextSlide);prevButton?.addEventListener('click',prevSlide);let autoplay=!1;const autoplayInterval=3000;let autoplayId;function startAutoplay(){autoplayId=setInterval(nextSlide,autoplayInterval)}
121function stopAutoplay(){clearInterval(autoplayId)}
122if(autoplay){startAutoplay();carousel.addEventListener('mouseover',stopAutoplay);carousel.addEventListener('mouseout',startAutoplay)}
123window.addEventListener('resize',()=>{itemsToShow=getItemsToShow();updateCarousel()});function getItemsToShow(){const width=window.innerWidth;if(width>=1024){return 3}else if(width>=768){return 2}else{return 1}}});jQuery(window).on("elementor/frontend/init",function(){var filterableGalleryHandler=function($scope,$){let classes=$scope[0].className;let selectorEl='.'+classes.split(' ').join('.');const epElLoadMore=()=>{const spinicon='<svg width="18" height="18" fill="#fff" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><style>.spinner_GuJz{transform-origin:center;animation:spinner_STY6 1.5s linear infinite}@keyframes spinner_STY6{100%{transform:rotate(360deg)}}</style><g class="spinner_GuJz"><circle cx="3" cy="12" r="2"/><circle cx="21" cy="12" r="2"/><circle cx="12" cy="21" r="2"/><circle cx="12" cy="3" r="2"/><circle cx="5.64" cy="5.64" r="2"/><circle cx="18.36" cy="18.36" r="2"/><circle cx="5.64" cy="18.36" r="2"/><circle cx="18.36" cy="5.64" r="2"/></g></svg>';$('.elementor-widget-embedpres_elementor .ep-nft-gallery-wrapper').each(function(){let selctorEl=`.elementor-widget-embedpres_elementor [data-nftid='${$(this).data('nftid')}']`;let loadmorelabel=$(selctorEl).data('loadmorelabel');$(selctorEl+` .ep_nft_item`).slice(0,$(selctorEl).data('itemparpage')).show();$('.elementor-widget-embedpres_elementor .ep-nft-gallery-wrapper .ep-loadmore-wrapper button').css('display','flex');$(selctorEl+" .nft-loadmore").click(function(e){$(this).html(loadmorelabel+spinicon);$(this).prop("disabled",!0);setTimeout(function(){$(selctorEl+" .nft-loadmore").text(loadmorelabel);$(selctorEl+" .nft-loadmore").prop("disabled",!1);$(selctorEl+" .ep_nft_item:hidden").slice(0,$(selctorEl).data('itemparpage')).fadeIn("slow");if($(selctorEl+" .ep_nft_item:hidden").length==0){$(selctorEl+" .nft-loadmore").fadeOut("slow")}},500)})})};if($('.elementor-widget-embedpres_elementor .ep-nft-gallery-wrapper').length>0){epElLoadMore()}
124const unlockElSubmitHander=(perentSel,that)=>{var ep_client_id=jQuery(that).closest('form').find('input[name="ep_client_id"]').val();var password=jQuery(`input[name="pass_${ep_client_id}"]`).val();var post_id=jQuery(`input[name="post_id"]`).val();const buttonText=jQuery(that).closest('.password-form-container').find('input[type="submit"]').val();const unlokingText=jQuery(that).data('unlocking-text');var data={'action':'lock_content_form_handler','client_id':ep_client_id,'password':password,'post_id':post_id,};jQuery('#'+perentSel+'-'+ep_client_id+' .password-form input[type="submit"]').val(unlokingText);jQuery.post(embedpressFrontendData.ajaxurl,data,function(response){if(response.success){if(!response.embedHtml){jQuery('#'+perentSel+'-'+ep_client_id+' .password-form input[type="submit"]').val(buttonText);jQuery('#'+perentSel+'-'+ep_client_id+' .password-form input[type="password"]').val('');jQuery(that).closest('.password-form-container').find('.error-message').removeClass('hidden')}else{if($('.ep-content-locked').has('#'+perentSel+'-'+ep_client_id).length){$('.ep-content-locked').removeClass('ep-content-locked')}
125jQuery('#'+perentSel+'-'+ep_client_id+' .ep-embed-content-wraper').html(response.embedHtml);$('#'+perentSel+'-'+ep_client_id).removeClass('ep-content-protection-enabled');
125if(jQuery('#'+perentSel+'-'+ep_client_id+' .ose-youtube').length>0){epGlobals.youtubeChannelGallery()}
126if($('.elementor-widget-embedpres_elementor .ep-nft-gallery-wrapper').length>0){epElLoadMore()}}}else{jQuery('#password-error_'+ep_client_id).html(response.form);jQuery('#password-error_'+ep_client_id).show()}},'json')}
127jQuery('.ep-elementor-content .password-form').submit(function(e){e.preventDefault();unlockElSubmitHander('ep-elementor-content',this)});const instaWrappers=document.querySelectorAll('.ep-embed-content-wrapper');if(instaWrappers.length>0){instaWrappers.forEach((wrapper)=>{wrapper.classList.add('class-content-wrapper');const carouselId=wrapper.getAttribute('data-carouselid');if(!carouselId)return;let options=wrapper.getAttribute(`data-carousel-options`);options=JSON.parse(options);const carouselSelector=`[data-carouselid="${carouselId}"] .embedpress-insta-container`;if(options.arrows){document.querySelector(`[data-carouselid="${carouselId}"] .cg-carousel__btns`).classList.remove('hidden')}
128epGlobals.initCarousel(carouselSelector,options,carouselId)})}
129const instaFeed=document.querySelector(`${selectorEl} .ose-instagram-feed`);const instaGallery=document.querySelector(`${selectorEl} .insta-gallery`);if(instaFeed){epGlobals.initializeTabs(instaFeed)}
130if(instaGallery){epGlobals.instaPopup(instaGallery);$('.popup-close').click(function(e){$('.insta-popup').hide();$('.popup-container').remove()})}
131if($('.elementor-widget-embedpres_elementor .ose-instagram-feed').length>0){epGlobals.instaLoadMore()}};const adsHandler=function($scope,$){window.epAdIndex=typeof(window.epAdIndex)==='undefined'?0:window.epAdIndex+1;let classes=$scope[0].className;let classJoint='.'+classes.split(' ').join('.');const selectorEl=document.querySelector(classJoint+' [data-sponsored-id]');if(jQuery('body').hasClass('elementor-editor-active')&&embedpressFrontendData.isProPluginActive){if(typeof adInitialization==='function'){adInitialization(selectorEl,window.epAdIndex)}}}
132elementorFrontend.hooks.addAction("frontend/element_ready/embedpres_elementor.default",filterableGalleryHandler);elementorFrontend.hooks.addAction("frontend/element_ready/embedpress_pdf.default",filterableGalleryHandler);elementorFrontend.hooks.addAction("frontend/element_ready/embedpres_document.default",filterableGalleryHandler);elementorFrontend.hooks.addAction("frontend/element_ready/embedpres_elementor.default",adsHandler);elementorFrontend.hooks.addAction("frontend/element_ready/embedpres_elementor.default",epGlobals.handlePosterImageLoad);var customPlayerHandler=function($scope,$){var wrappers=$scope[0].querySelectorAll('.ep-embed-content-wraper');if(typeof initPlayer==='function'){wrappers.forEach(function(wrapper){if(!wrapper.classList.contains('plyr-initialized')){initPlayer(wrapper)}})}else{wrappers.forEach(function(wrapper){if(wrapper.hasAttribute('data-playerid')){wrapper.style.opacity='1'}})}
133if(typeof window.epReinitLazyLoad==='function'){window.epReinitLazyLoad()}};elementorFrontend.hooks.addAction("frontend/element_ready/embedpres_elementor.default",customPlayerHandler)});function presentationModeForIOS(iframes){iframes?.forEach(function(iframe){iframe.onload=function(){var iframeDoc=iframe.contentDocument||iframe.contentWindow.document;var button=iframeDoc?.querySelector('#presentationMode.presentationMode');button?.addEventListener('click',function(){iframe.classList.toggle('presentationModeEnabledIosDevice')});iframeDoc?.addEventListener('keydown',function(event){if(event.keyCode===27){iframe.classList.remove('presentationModeEnabledIosDevice')}})}})}
134function isIOSDevice(){return/iPhone|iPad|iPod/i.test(navigator.userAgent)}
135if(isIOSDevice()){var iframes=document.querySelectorAll('.embedpress-embed-document-pdf');presentationModeForIOS(iframes)}
136document.addEventListener("DOMContentLoaded",epGlobals.handlePosterImageLoad);jQuery(document).ready(function($){let currentIndex=-1;function createVideoPopup(){const videoPopupHtml=`
137            <div id="videoPopup" class="video-popup">
138                <div class="video-popup-content">
139                    <span class="close">&times;</span>
140                    <div class="video-popup-inner-content">
141                        <iframe id="videoIframe" frameborder="0" allowfullscreen allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"></iframe>
142                        <div id="videoDescription"></div>
143                    </div>
144                    <div class="popup-controls">
145                        <span id="prevVideo" class="nav-icon prev-icon">&#10094;</span>
146                        <span id="nextVideo" class="nav-icon next-icon">&#10095;</span>
147                    </div>
148                </div>
149            </div>`;return $(videoPopupHtml).appendTo('body')}
150function openVideoPopup(index){const items=$('.layout-grid .item, .layout-list .item, .layout-carousel .item');if(index>=0&&index<items.length){$('#videoPopup').remove();currentIndex=index;const videoId=$(items[currentIndex]).data('vid');const videoPopup=createVideoPopup();const videoIframe=videoPopup.find('#videoIframe');const videoDescriptionContainer=videoPopup.find('#videoDescription');const closeBtn=videoPopup.find('.close');const nextBtn=videoPopup.find('#nextVideo');const prevBtn=videoPopup.find('#prevVideo');if(videoId){fetchVideoData(videoId,videoIframe,videoDescriptionContainer);videoPopup.show();updateNavigationButtons(nextBtn,prevBtn,items);closeBtn.on('click',()=>{closeVideoPopup(videoPopup)});$(window).on('click',function(event){if($(event.target).is(videoPopup)){closeVideoPopup(videoPopup)}});nextBtn.on('click',function(){if(currentIndex>=0&&currentIndex<items.length-1){openVideoPopup(currentIndex+1)}});prevBtn.on('click',function(){if(currentIndex>0){openVideoPopup(currentIndex-1)}})}}}
151function closeVideoPopup(videoPopup){videoPopup.remove();currentIndex=-1}
152function updateNavigationButtons(nextBtn,prevBtn,items){prevBtn.toggle(currentIndex>0);nextBtn.toggle(currentIndex<items.length-1)}
153function fetchVideoData(videoId,videoIframe,videoDescriptionContainer){const data={action:'fetch_video_description',vid:videoId};$.post(embedpressFrontendData.ajaxurl,data,function(response){if(response.success){videoIframe.attr('src',`https://www.youtube.com/embed/${videoId}?autoplay=1`);videoDescriptionContainer.html(response.data.description)}else{console.error('Error fetching video data:',response?.data?.error)}})}
154$(document).on('click','.layout-grid .item, .layout-list .item, .layout-carousel .item',function(){const items=$('.layout-grid .item, .layout-list .item, .layout-carousel .item');const index=items.index(this);openVideoPopup(index)})});jQuery(document).ready(function($){let currentIndex=0;const $photos=$('.photo-item');function createPopupGooglePhotos(){if($('#ep-popup-overlay').length===0){const photoPopup=`
155            <div class="popup-overlay" id="ep-popup-overlay" style="display: none!important">
156               
157                <div class="popup">
158                    <span class="close-btn" id="close-btn">
159                        <svg width="20" height="20" viewBox="0 0 0.6 0.6" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M.132.132a.025.025 0 0 1 .035 0L.3.265.432.133a.025.025 0 1 1 .035.035L.335.3l.132.132a.025.025 0 0 1-.035.035L.3.335.168.467A.025.025 0 0 1 .133.432L.265.3.132.168a.025.025 0 0 1 0-.035" fill="#fff"/></svg>
160                    </span>
161                    <button class="prev-btn" id="prev-btn">
162                        <svg width="20" height="20" viewBox="0 0 0.6 0.6" data-name="Flat Color" xmlns="http://www.w3.org/2000/svg" class="icon flat-color"><path d="M.525.275h-.39L.268.143A.025.025 0 1 0 .233.108L.058.283a.025.025 0 0 0 0 .035l.175.175a.025.025 0 0 0 .035 0 .025.025 0 0 0 0-.035L.135.325h.39a.025.025 0 0 0 0-.05" style="fill:#fff"/></svg>
163                    </button>
164                    <div id="popup-content" class="loading">
165                        <div class="photo-loader"></div>
166                        <img id="popup-image" src="" style="display:none;" loading="lazy" />
167                    </div>
168                    <button class="next-btn" id="next-btn">
169                        <svg width="20" height="20" viewBox="0 0 0.6 0.6" data-name="Flat Color" xmlns="http://www.w3.org/2000/svg" class="icon flat-color"><path d="M.543.282.368.107a.025.025 0 0 0-.035.035l.133.132H.075a.025.025 0 0 0 0 .05h.39L.332.456a.025.
169025 0 0 0 0 .035.025.025 0 0 0 .035 0L.542.316a.025.025 0 0 0 0-.035" style="fill:#fff"/></svg>
170                    </button>
171                </div>
172            </div>`;$('body').append(photoPopup);const spinnerStyles=`
173            <style>
174                .popup #popup-content .photo-loader {
175                    display: none;
176                }
177                .popup #popup-content.loading .photo-loader {
178                    width: 40px;
179                    height: 40px;
180                    border: 4px solid #fff;
181                    border-top: 4px solid transparent;
182                    border-radius: 50%;
183                    animation: spin 1s linear infinite;
184                    margin: 40px auto;
185                    display: block;
186                }
187                @keyframes spin {
188                    0% { transform: rotate(0deg); }
189                    100% { transform: rotate(360deg); }
190                }
191            </style>`;$('head').append(spinnerStyles);$('#ep-popup-overlay').on('click',function(e){if($(e.target).is('#ep-popup-overlay')||$(e.target).is('.popup')){$('#ep-popup-overlay').hide()}});$('#close-btn').on('click',function(){$('#ep-popup-overlay').hide()});$('#prev-btn').on('click',function(){currentIndex=(currentIndex-1+$photos.length)%$photos.length;updatePopupImage()});$('#next-btn').on('click',function(){currentIndex=(currentIndex+1)%$photos.length;updatePopupImage()})}}
192function updatePopupImage(){const imgSrc=$photos.eq(currentIndex).find('img').attr('data-photo-src');const $popupImage=$('#popup-image');const $popupContent=$('#popup-content');$popupContent.addClass('loading');$popupImage.hide();const preload=new Image();preload.src=imgSrc;preload.onload=function(){$popupImage.attr('src',imgSrc);$popupContent.removeClass('loading');$popupImage.fadeIn()}}
193$('.photo-item').on('click',function(){currentIndex=$photos.index(this);createPopupGooglePhotos();updatePopupImage();$('#ep-popup-overlay').show()})});jQuery(document).ready(function(){const players=jQuery('.enabled-auto-pause audio, .enabled-auto-pause video');function pauseAllExcept(currentPlayer){players.each(function(){if(this!==currentPlayer[0]){this.pause()}})}
194players.on('play',function(){pauseAllExcept(jQuery(this))})});jQuery(document).on('click','.ep-load-more-button',function(e){e.preventDefault();const button=jQuery(this);const container=button.closest('.embedpress-meetup-events');const eventsContainer=container.find('.embedpress-meetup-events-list');const embedId=button.data('embed-id');const currentPage=parseInt(container.data('page'))||1;const perPage=parseInt(container.data('per-page'))||10;const nextPage=currentPage+1;const loadingText=button.find('.ep-load-more-text');const spinner=button.find('.ep-load-more-spinner');loadingText.hide();spinner.show();button.prop('disabled',!0);jQuery.ajax({url:embedpressFrontendData.ajaxurl,type:'POST',data:{action:'embedpress_meetup_load_more',nonce:embedpressFrontendData.nonce,embed_id:embedId,page:nextPage,per_page:perPage},success:function(response){if(response.success){eventsContainer.append(response.data.html);container.data('page',nextPage);document.dispatchEvent(new Event('embedpress:meetup:loaded'));if(!response.data.has_more){button.closest('.ep-events-load-more').fadeOut()}else{loadingText.show();spinner.hide();button.prop('disabled',!1)}}else{alert(response.data.message||'Error loading more events');loadingText.show();spinner.hide();button.prop('disabled',!1)}},error:function(){alert('Error loading more events');loadingText.show();spinner.hide();button.prop('disabled',!1)}})})

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.