// source --> https://www.info-d-74.com/wp-content/plugins/latest-post-shortcode/lps-block/build/view.js?ver=lpsv14.232107157afba035c5d791614ef2e3e418 
(()=>{var e,t={11:(e,t,n)=>{"use strict";n(958)},958:()=>{window.addEventListener("DOMContentLoaded",()=>{const e=()=>{const e=document.querySelectorAll(".lps-pagination-wrap");e.length>0&&e.forEach(e=>{const n=e.closest(".lps-top-section-wrap");if(n){const s=n.querySelector("section");s&&t(e,n,s)}})},t=(t,s,a)=>{if(!t||!s||!a)return;const r=s?.dataset?.args;if(!r)return;const o=(e,t)=>{let n="";return n=e.indexOf("?")>=0?"1"===t?e:e.replace("?",`/page/${t}?`):"1"===t?e:`${e}/page/${t}`,n=n.replace("//page","/page"),n},i=t.classList.contains("lps-load-more"),l=t.classList.contains("lps-load-more-scroll"),c=t.querySelectorAll("a.page-item");if(c.length>0){const r=s?.dataset?.url;c.forEach(c=>{var p;const d=null!==(p=c?.dataset?.page)&&void 0!==p?p:1;c.setAttribute("href",o(r,d)),c.classList.contains("disabled")||c.parentNode.classList.contains("disabled")||c.addEventListener("click",c=>{if(c.preventDefault(),c.stopPropagation(),function(t,s,a,r,o,i){if(t){if(t.classList.contains("processing"))return;t.classList.add("processing")}const l=document.createElement("div");l.classList.add("spinner"),(t.classList.contains("light_spinner")||t.classList.contains("dark_spinner"))&&(l.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" style="margin:auto;background:0 0;display:block;shape-rendering:auto" width="64" height="64" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid"><circle cx="50" cy="50" r="0" fill="none" stroke="currentColor" stroke-width="4"><animate attributeName="r" repeatCount="indefinite" dur="1s" values="0;40" keyTimes="0;1" keySplines="0 0.2 0.8 1" calcMode="spline" begin="0s"/><animate attributeName="opacity" repeatCount="indefinite" dur="1s" values="1;0" keyTimes="0;1" keySplines="0.2 0 0.8 1" calcMode="spline" begin="0s"/></circle><circle cx="50" cy="50" r="0" fill="none" stroke="currentColor" stroke-width="4"><animate attributeName="r" repeatCount="indefinite" dur="1s" values="0;40" keyTimes="0;1" keySplines="0 0.2 0.8 1" calcMode="spline" begin="-0.5s"/><animate attributeName="opacity" repeatCount="indefinite" dur="1s" values="1;0" keyTimes="0;1" keySplines="0.2 0 0.8 1" calcMode="spline" begin="-0.5s"/></circle></svg>'),t.appendChild(l);const c=new FormData;c.append("action","lps_navigate_to_page"),c.append("id",`${t.id}`),c.append("page",`${s}`),c.append("current",`${t.dataset.current}`),c.append("exclude",`${t.dataset.exclude}`),c.append("lps_ajax","1"),t?.dataset?.args&&JSON.parse(t?.dataset?.args,function(e,t){e&&c.append(`args[${e}]`,`${t}`)}),fetch(`${lpsSettings.ajaxUrl}`,{method:"POST",mode:"cors",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:new URLSearchParams(c)}).then(e=>e.text()).then(c=>{if(function(e,t){e.remove();const n=t.querySelectorAll(".spinner");n&&n.forEach(e=>{e.remove()})}(l,t),function(e){const t=e.querySelectorAll(".lps-pagination-wrap");t&&t.forEach(e=>{e.remove()})}(t),r||o)a.remove(),i.innerHTML+=c;else{i.innerHTML=c;let e=0;e=i.classList.contains("reverse-counter")?parseInt(t.dataset.total)+1-(s-1)*t.dataset.perpage:(s-1)*t.dataset.perpage,function(e,t){if(!e)return;let n=e.getAttribute("style");const s="--lpscontor-start",a=new RegExp(`${s}:\\s*[^;]+;`,"g");n.includes(s)?n=n.replace(a,`${s}: ${t};`):n+=` ${s}: ${t};`,e.setAttribute("style",n)}(i,e)}const p=i.querySelector(".lps-pagination-wrap.before");p&&t.prepend(p);const d=i.querySelector(".lps-pagination-wrap.after");d&&t.append(d),t.classList.remove("processing"),window.dispatchEvent(new CustomEvent("lpsLoadPageEnd",{bubbles:!0,detail:{id:t?.id,page:s}})),e(),n()}).catch(e=>{console.log(e)})}(s,d,t,i,l,a),window.history.pushState&&!i&&!l){const e=o(r,d);window.history.pushState(null,document.title,e)}})})}};function n(){const e=document.querySelectorAll(".latest-post-selection:not(.scroller) + .lps-pagination-wrap.lps-load-more-scroll .page-item");e&&e.forEach(e=>{new window.IntersectionObserver(([t])=>{t.isIntersecting&&setTimeout(()=>{e.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window}))},500)},{root:null,threshold:1}).observe(e)});const t=document.querySelectorAll(".latest-post-selection.scroller");if(t){const e=(e,t)=>{let n=Date.now();return()=>{n+t-Date.now()<=0&&(e(),n=Date.now())}};t.forEach(t=>{const n=document.querySelector(`ul.${t.id} .page-item`);n&&"2"===n.dataset.page&&n.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window})),t.addEventListener("scrollend",e(()=>{!function(e){const t=e.parentNode;if(t.classList.contains("processing"))return;const n=t.querySelector(".lps-pagination-wrap.lps-load-more-scroll .page-item");if(!n)return;const s=e.querySelector("article:last-child");s&&!s.classList.contains("scrolled")&&new window.IntersectionObserver(([e])=>{if(e.isIntersecting){if(t.classList.contains("processing")||s.classList.contains("scrolled"))return;s.classList.add("scrolled"),n.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window}))}},{root:e,threshold:.6}).observe(s)}(t)},500))})}}e(),n()})}},n={};function s(e){var a=n[e];if(void 0!==a)return a.exports;var r=n[e]={exports:{}};return t[e](r,r.exports,s),r.exports}s.m=t,e=[],s.O=(t,n,a,r)=>{if(!n){var o=1/0;for(p=0;p<e.length;p++){for(var[n,a,r]=e[p],i=!0,l=0;l<n.length;l++)(!1&r||o>=r)&&Object.keys(s.O).every(e=>s.O[e](n[l]))?n.splice(l--,1):(i=!1,r<o&&(o=r));if(i){e.splice(p--,1);var c=a();void 0!==c&&(t=c)}}return t}r=r||0;for(var p=e.length;p>0&&e[p-1][2]>r;p--)e[p]=e[p-1];e[p]=[n,a,r]},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={552:0,927:0,525:0};s.O.j=t=>0===e[t];var t=(t,n)=>{var a,r,[o,i,l]=n,c=0;if(o.some(t=>0!==e[t])){for(a in i)s.o(i,a)&&(s.m[a]=i[a]);if(l)var p=l(s)}for(t&&t(n);c<o.length;c++)r=o[c],s.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return s.O(p)},n=globalThis.webpackChunklps_block=globalThis.webpackChunklps_block||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var a=s.O(void 0,[525],()=>s(11));a=s.O(a)})();