import{m as t,a as e,b as r,c as n,d as o}from"./vendor-DZn8NuT6.js";import{g as a}from"./cookies-Btke1V1y.js";import{g as i}from"./getActionCreator-JRnMe0en.js";const c=36e5,s=24*c,l=7*s,d=30*s,u=365*s,p=()=>"undefined"!=typeof window&&window.ffte&&window.ffte.lang?window.ffte.lang:"en-US",m=(t,e=null,r=new Date)=>t>new Date(r).setDate(r.getDate()-3)&&t{const n=r?{timeStyle:"short"}:{};return new Intl.DateTimeFormat(e||p(),{dateStyle:"long",...n}).format(t)},w=(t,e=null,r=Date.now())=>{const n=r-t,o=new Intl.RelativeTimeFormat(e||p(),{numeric:"auto"});return n<6e4?o.format(-Math.round(n/1e3),"second"):n{Array.prototype.forEach.call(t,(function(t){t.innerHTML=e(new Date(t.getAttribute("datetime")))}))},x=Object.freeze(Object.defineProperty({__proto__:null,formatAbsoluteDate:f,formatDate:m,formatRelativeDate:w,updateRelativeDates:()=>{h(document.querySelectorAll("time.relative-date"),(t=>m(t))),h(document.querySelectorAll("time.live-feed-date"),(t=>f(t,null,!0)))}},Symbol.toStringTag,{value:"Module"})),g=["application/javascript","application/ecmascript","application/x-ecmascript","application/x-javascript","text/ecmascript","text/javascript","text/javascript1.0","text/javascript1.1","text/javascript1.2","text/javascript1.3","text/javascript1.4","text/javascript1.5","text/jscript","text/livescript","text/x-ecmascript","text/x-javascript"],v=Object.freeze(Object.defineProperty({__proto__:null,loadLazyIframes:function(t){t.querySelectorAll("iframe[data-lazy-src]").forEach((t=>{!t.src&&t.dataset&&t.dataset.lazySrc&&(t.src=t.dataset.lazySrc)}))},runScripts:function(t){t.querySelectorAll("script").forEach((function(t){const e=t.getAttribute("type");e&&!g.includes(e)||function(t){const e=document.createElement("script");e.type="text/javascript",t.src?e.src=t.src:e.textContent=t.innerText,document.head.appendChild(e),t.parentNode.removeChild(t)}(t)}))}},Symbol.toStringTag,{value:"Module"})),y={xs:"575px",sm:"700px",md:"900px",lg:"1000px",xl:"1280px","2xl":"1574px"},j=t=>parseInt(y[t].slice(0,y[t].indexOf("px"))),S=Object.freeze(Object.defineProperty({__proto__:null,getActiveBreakpoints:()=>{const t=[];for(const e of Object.keys(y)){const r=j(e);window.innerWidth>=r&&t.push(e)}return t},getBreakpointValue:j,getCurrentBreakpoint:()=>{let t,e=0;for(const r of Object.keys(y)){const n=j(r);n>e&&window.innerWidth>=n&&(e=n,t=r)}return t},getScreenWidth:()=>window.document.documentElement.clientWidth||window.document.body.clientWidth||window.innerWidth,screenIsLargerThan:t=>{const e=j(t);return window.innerWidth>=e},screenIsSmallerThan:t=>{const e=j(t);return window.innerWidtht.isIntersecting;t.plugin(e),t.plugin(r),t.plugin(n),t.plugin(o),window.Alpine=t,window.utils={screenSizes:S,getCookieValue:a,scripts:v,dates:x,dispatchOrQueueAction:function(t,e){if(window.actionQueue=window.actionQueue||[],void 0!==window.reduxStore&&void 0!==window.Actions){const r=i(t);if(!r)return void console.warn(`[dispatchOrQueueAction] Could not find action creator for "${t}".`);try{const t=r(e);window.reduxStore.dispatch(t)}catch(e){console.error(`[dispatchOrQueueAction] Error dispatching action "${t}":`,e)}}else window.actionQueue.push({action:t,payload:e})}},(t=>{const e=(r=b,t=>{const e=t.getAttribute(r);return e&&t.setAttribute("src",e),t});var r;const n=new IntersectionObserver(((t,r)=>t.filter(A).map((t=>t.target)).map(e).forEach((t=>r.unobserve(t)))),{threshold:.1});document.querySelectorAll(`iframe[${b}]`).forEach((t=>n.observe(t)))})();