123movies-seo/public/build/assets/img-BRqSA2_k.js

2 lines
7.8 KiB
JavaScript
Raw Normal View History

2024-08-26 20:50:06 +03:00
const u=typeof window<"u",j=u&&!("onscroll"in window)||typeof navigator<"u"&&/(gle|ing|ro)bot|crawl|spider/i.test(navigator.userAgent),J=u&&"IntersectionObserver"in window,U=u&&"classList"in document.createElement("p"),q=u&&window.devicePixelRatio>1,pt={elements_selector:".lazy",container:j||u?document:null,threshold:300,thresholds:null,data_src:"src",data_srcset:"srcset",data_sizes:"sizes",data_bg:"bg",data_bg_hidpi:"bg-hidpi",data_bg_multi:"bg-multi",data_bg_multi_hidpi:"bg-multi-hidpi",data_bg_set:"bg-set",data_poster:"poster",class_applied:"applied",class_loading:"loading",class_loaded:"loaded",class_error:"error",class_entered:"entered",class_exited:"exited",unobserve_completed:!0,unobserve_entered:!1,cancel_on_exit:!0,callback_enter:null,callback_exit:null,callback_applied:null,callback_loading:null,callback_loaded:null,callback_error:null,callback_finish:null,callback_cancel:null,use_native:!1,restore_on_error:!1},W=t=>Object.assign({},pt,t),B=function(t,o){let r;const s="LazyLoad::Initialized",a=new t(o);try{r=new CustomEvent(s,{detail:{instance:a}})}catch{r=document.createEvent("CustomEvent"),r.initCustomEvent(s,!1,!1,{instance:a})}window.dispatchEvent(r)},vt=(t,o)=>{if(o)if(!o.length)B(t,o);else for(let r=0,s;s=o[r];r+=1)B(t,s)},i="src",T="srcset",C="sizes",Z="poster",v="llOriginalAttrs",K="data",y="loading",Q="loaded",X="applied",Et="entered",N="error",Y="native",m="data-",tt="ll-status",e=(t,o)=>t.getAttribute(m+o),Lt=(t,o,r)=>{const s=m+o;if(r===null){t.removeAttribute(s);return}t.setAttribute(s,r)},E=t=>e(t,tt),f=(t,o)=>Lt(t,tt,o),S=t=>f(t,null),x=t=>E(t)===null,It=t=>E(t)===y,St=t=>E(t)===N,V=t=>E(t)===Y,At=[y,Q,X,N],Ot=t=>At.indexOf(E(t))>=0,l=(t,o,r,s)=>{if(!(!t||typeof t!="function")){if(s!==void 0){t(o,r,s);return}if(r!==void 0){t(o,r);return}t(o)}},h=(t,o)=>{if(o!==""){if(U){t.classList.add(o);return}t.className+=(t.className?" ":"")+o}},c=(t,o)=>{if(o!==""){if(U){t.classList.remove(o);return}t.className=t.className.replace(new RegExp("(^|\\s+)"+o+"(\\s+|$)")," ").replace(/^\s+/,"").replace(/\s+$/,"")}},kt=t=>{t.llTempImage=document.createElement("IMG")},wt=t=>{delete t.llTempImage},ot=t=>t.llTempImage,A=(t,o)=>{if(!o)return;const r=o._observer;r&&r.unobserve(t)},Tt=t=>{t.disconnect()},Ct=(t,o,r)=>{o.unobserve_entered&&A(t,r)},z=(t,o)=>{t&&(t.loadingCount+=o)},yt=t=>{t&&(t.toLoadCount-=1)},rt=(t,o)=>{t&&(t.toLoadCount=o)},Nt=t=>t.loadingCount>0,xt=t=>t.toLoadCount>0,st=t=>{let o=[];for(let r=0,s;s=t.children[r];r+=1)s.tagName==="SOURCE"&&o.push(s);return o},D=(t,o)=>{const r=t.parentNode;if(!r||r.tagName!=="PICTURE")return;st(r).forEach(o)},at=(t,o)=>{st(t).forEach(o)},O=[i],et=[i,Z],p=[i,T,C],nt=[K],k=t=>!!t[v],ct=t=>t[v],it=t=>delete t[v],b=(t,o)=>{if(k(t))return;const r={};o.forEach(s=>{r[s]=t.getAttribute(s)}),t[v]=r},Vt=t=>{k(t)||(t[v]={backgroundImage:t.style.backgroundImage})},zt=(t,o,r)=>{if(!r){t.removeAttribute(o);return}t.setAttribute(o,r)},g=(t,o)=>{if(!k(t))return;const r=ct(t);o.forEach(s=>{zt(t,s,r[s])})},Dt=t=>{if(!k(t))return;const o=ct(t);t.style.backgroundImage=o.backgroundImage},dt=(t,o,r)=>{h(t,o.class_applied),f(t,X),r&&(o.unobserve_completed&&A(t,o),l(o.callback_applied,t,r))},ut=(t,o,r)=>{h(t,o.class_loading),f(t,y),r&&(z(r,1),l(o.callback_loading,t,r))},d=(t,o,r)=>{r&&t.setAttribute(o,r)},F=(t,o)=>{d(t,C,e(t,o.data_sizes)),d(t,T,e(t,o.data_srcset)),d(t,i,e(t,o.data_src))},Ht=(t,o)=>{D(t,r=>{b(r,p),F(r,o)}),b(t,p),F(t,o)},Rt=(t,o)=>{b(t,O),d(t,i,e(t,o.data_src))},Mt=(t,o)=>{at(t,r=>{b(r,O),d(r,i,e(r,o.data_src))}),b(t,et),d(t,Z,e(t,o.data_poster)),d(t,i,e(t,o.data_src)),t.load()},Bt=(t,o)=>{b(t,nt),d(t,K,e(t,o.data_src))},Ft=(t,o,r)=>{const s=e(t,o.data_bg),a=e(t,o.data_bg_hidpi),n=q&&a?a:s;n&&(t.style.backgroundImage=`url("${n}")`,ot(t).setAttribute(i,n),ut(t,o,r))},Gt=(t,o,r)=>{const s=e(t,o.data_bg_multi),a=e(t,o.data_bg_multi_hidpi),n=q&&a?a:s;n&&(t.style.backgroundImage=n,dt(t,o,r))},Pt=(t,o,r)=>{const s=e(t,o.data_bg_set);if(!s)return;const a=s.split("|");let n=a.map(_=>`image-set(${_})`);t.style.backgroundImage=n.join(),t.style.backgroundImage===""&&(n=a.map(_=>`-webkit