PageSourceSearch

https://www.ecomdroptv.com/assets/index-BNEIgdI_.js

js ecomdroptv.com collected 2026-09-24 14:43:02 UTC 34,068 bytes, 1 lines download raw bytes

1import{r as n,b as tn}from"./vendor-react--UDKce57.js";const mt="carousel",vt="controller",nn="navigation",on="no-scroll",Be="portal",rn="root",Et="toolbar",_o="captions",xo="counter",Lo="download",Po="fullscreen",Co="inline",bo="share",No="slideshow",Io="thumbnails",wo="zoom",xe="loading",cn="playing",Le="error",Pe="complete",sn="placeholder",de=e=>`active-slide-${e}`,So=de(xe),Ro=de(cn),yo=de(Le),Oo=de(Pe),To="fullsize",gt="flex_center",ln="no_scroll",_t="no_scroll_padding",ze="slide",an="slide_wrapper",Mo="slide_wrapper_interactive",J="prev",ee="next",ot="swipe",ce="close",xt="onPointerDown",Lt="onPointerMove",Pt="onPointerUp",Ct="onPointerLeave",bt="onPointerCancel",Nt="onKeyDown",un="onKeyUp",It="onWheel",dn="Escape",fn="ArrowLeft",pn="ArrowRight",hn="button",Ve="icon",wt="contain",rt="cover",mn="Unknown action type",St="yarl__";function Y(...e){return e.filter(Boolean).join(" ")}function N(e){return`${St}${e}`}function F(e){return`--${St}${e}`}function fe(e,t){return`${e}${t?`_${t}`:""}`}function Ke(e){return t=>fe(e,t)}function te(e,t){var o;return(o=e==null?void 0:e[t])!==null&&o!==void 0?o:t}function Ao(e,t){return te(e,t)}function vn(e,t,o){return te(e,"{index} of {total}").replace(/\{index}/g,`${Ge(o,t.length)+1}`).replace(/\{total}/g,`${t.length}`)}function Rt(...e){return()=>{e.forEach(t=>{t()})}}function j(e,t,o){return()=>{const r=n.useContext(o);if(!r)throw new Error(`${e} must be used within a ${t}.Provider`);return r}}function Xe(){return typeof window<"u"}function En(e,t=0){const o=10**t;return Math.round((e+Number.EPSILON)*o)/o}function yt(e){return e.type===void 0||e.type==="image"}function gn(e,t){return e.imageFit===rt||e.imageFit!==wt&&t===rt}function Ne(e){return typeof e=="string"?Number.parseInt(e,10):e}function be(e){if(typeof e=="number")return{pixel:e};if(typeof e=="string"){const t=Ne(e);return e.endsWith("%")?{percent:t}:{pixel:t}}return{pixel:0}}function _n(e,t){const o=be(t),r=o.percent!==void 0?e.width/100*o.percent:o.pixel;return{width:Math.max(e.width-2*r,0),height:Math.max(e.height-2*r,0)}}function Do(){return(Xe()?window==null?void 0:window.devicePixelRatio:void 0)||1}function Ge(e,t){return t>0?(e%t+t)%t:0}function Ot(e){return e.length>0}function Tt(e,t){return e[Ge(t,e.length)]}function $e(e,t){return Ot(e)?Tt(e,t):void 0}function xn(e){return yt(e)?e.src:void 0}function ko(e,t,o){if(!o)return e;const{buttons:r,...i}=e,c=r.findIndex(l=>l===t),s=n.isValidElement(o)?n.cloneElement(o,{key:t},null):o;if(c>=0){const l=[...r];return l.splice(c,1,s),{buttons:l,...i}}return{buttons:[s,...r],...i}}function Wo(){const e=t=>{t.stopPropagation()};return{onPointerDown:e,onKeyDown:e,onWheel:e}}function Ln(e,t,o=0){return Math.min(e.preload,Math.max(e.finite?t.length-1:Math.floor(t.length/2),o))}const Pn=Number(n.version.split(".")[0])>=19;function Cn(e){return{inert:Pn?e:e?"":void 0}}function bn(e){e.scrollTop}const Fe={open:!1,close:()=>{},index:0,slides:[],render:{},plugins:[],toolbar:{buttons:[ce]},labels:{},animation:{fade:250,swipe:500,easing:{fade:"ease",swipe:"ease-out",navigation:"ease-in-out"}},carousel:{finite:!1,preload:2,padding:"16px",spacing:"30%",imageFit:wt,imageProps:{}},controller:{ref:null,focus:!0,aria:!1,touchAction:"none",closeOnPullUp:!1,closeOnPullDown:!1,closeOnBackdropClick:!1,closeOnEscape:!0,preventDefaultWheelX:!0,preventDefaultWheelY:!1,disableSwipeNavigation:!1},portal:{},noScroll:{disabled:!1},on:{},styles:{},className:""};function ne(e,t){return{name:e,component:t}}function k(e,t){return{module:e,children:t}}function Mt(e,t,o){return e.module.name===t?o(e):e.children?[k(e.module,e.children.flatMap(r=>{var i;return(i=Mt(r,t,o))!==null&&i!==void 0?i:[]}))]:[e]}function ie(e,t,o){return e.flatMap(r=>{var i;return(i=Mt(r,t,o))!==null&&i!==void 0?i:[]})}function Nn(e,t=[],o=[]){let r=e;const i=m=>{const h=[...r];for(;h.length>0;){const u=h.pop();if((u==null?void 0:u.module.name)===m)return!0;u!=null&&u.children&&h.push(...u.children)}return!1},c=(m,h)=>{if(m===""){r=[k(h,r)];return}r=ie(r,m,u=>[k(h,[u])])},s=(m,h)=>{r=ie(r,m,u=>[k(u.module,[k(h,u.children)])])},l=(m,h,u)=>{r=ie(r,m,P=>{var C;return[k(P.module,[...u?[k(h)]:[],...(C=P.children)!==null&&C!==void 0?C:[],...u?[]:[k(h)]])]})},d=(m,h,u)=>{r=ie(r,m,P=>[...u?[k(h)]:[],P,...u?[]:[k(h)]])},f=m=>{s(vt,m)},v=(m,h)=>{r=ie(r,m,u=>[k(h,u.children)])},E=m=>{r=ie(r,m,h=>h.children)},p=m=>{o.push(m)};return t.forEach(m=>{m({contains:i,addParent:c,append:s,addChild:l,addSibling:d,addModule:f,replace:v,remove:E,augment:p})}),{config:r,augmentation:m=>o.reduce((h,u)=>u(h),m)}}const At=n.createContext(null),Dt=j("useA11yContext","A11yContext",At);function In({children:e}
1){const[t,o]=n.useState(!1),[r,i]=n.useState(!1),c=n.useMemo(()=>({focusWithin:t,trackFocusWithin:(l,d)=>{const f=v=>E=>{var p;E.currentTarget.contains(E.relatedTarget)||o(v),(p=v?l:d)===null||p===void 0||p(E)};return{onFocus:f(!0),onBlur:f(!1)}},autoPlaying:r,setAutoPlaying:i}),[t,r]);return n.createElement(At.Provider,{value:c},e)}const kt=n.createContext(null),Ye=j("useDocument","DocumentContext",kt);function wn({nodeRef:e,children:t}){const o=n.useMemo(()=>{const r=c=>{var s;return((s=c||e.current)===null||s===void 0?void 0:s.ownerDocument)||document};return{getOwnerDocument:r,getOwnerWindow:c=>{var s;return((s=r(c))===null||s===void 0?void 0:s.defaultView)||window}}},[e]);return n.createElement(kt.Provider,{value:o},t)}const Wt=n.createContext(null),Ie=j("useEvents","EventsContext",Wt);function Sn({children:e}){const[t]=n.useState({});n.useEffect(()=>()=>{Object.keys(t).forEach(r=>delete t[r])},[t]);const o=n.useMemo(()=>{const r=(s,l)=>{var d;(d=t[s])===null||d===void 0||d.splice(0,t[s].length,...t[s].filter(f=>f!==l))};return{publish:(...[s,l])=>{var d;(d=t[s])===null||d===void 0||d.forEach(f=>f(l))},subscribe:(s,l)=>(t[s]||(t[s]=[]),t[s].push(l),()=>r(s,l)),unsubscribe:r}},[t]);return n.createElement(Wt.Provider,{value:o},e)}const Ut=n.createContext(null),pe=j("useLightboxProps","LightboxPropsContext",Ut);function Rn({children:e,...t}){return n.createElement(Ut.Provider,{value:t},e)}const Vt=n.createContext(null),we=j("useLightboxState","LightboxStateContext",Vt),$t=n.createContext(null),yn=j("useLightboxDispatch","LightboxDispatchContext",$t);function On(e,t){switch(t.type){case"swipe":{const{slides:o}=e,r=(t==null?void 0:t.increment)||0,i=e.globalIndex+r,c=Ge(i,o.length),s=$e(o,c),l=r||t.duration!==void 0?{increment:r,duration:t.duration,easing:t.easing}:void 0;return{slides:o,currentIndex:c,globalIndex:i,currentSlide:s,animation:l}}case"update":return t.slides!==e.slides||t.index!==e.currentIndex?{slides:t.slides,currentIndex:t.index,globalIndex:t.index,currentSlide:$e(t.slides,t.index)}:e;default:throw new Error(mn)}}function Tn({slides:e,index:t,children:o}){const[r,i]=n.useReducer(On,{slides:e,currentIndex:t,globalIndex:t,currentSlide:$e(e,t)}),[c,s]=n.useState(e),[l,d]=n.useState(t);(e!==c||t!==l)&&(s(e),d(t),i({type:"update",slides:e,index:t}));const f=n.useMemo(()=>({...r,state:r,dispatch:i}),[r,i]);return n.createElement($t.Provider,{value:i},n.createElement(Vt.Provider,{value:f},o))}const Ft=n.createContext(null),Mn=j("useRTLContext","RTLContext",Ft);function An({isRTL:e,children:t}){const o=n.useMemo(()=>({isRTL:e}),[e]);return n.createElement(Ft.Provider,{value:o},t)}const Ht=n.createContext(null),Se=j("useTimeouts","TimeoutsContext",Ht);function Dn({children:e}){const[t]=n.useState([]);n.useEffect(()=>()=>{t.forEach(r=>window.clearTimeout(r)),t.splice(0,t.length)},[t]);const o=n.useMemo(()=>{const r=s=>{t.splice(0,t.length,...t.filter(l=>l!==s))};return{setTimeout:(s,l)=>{const d=window.setTimeout(()=>{r(d),s()},l);return t.push(d),d},clearTimeout:s=>{s!==void 0&&(r(s),window.clearTimeout(s))}}},[t]);return n.createElement(Ht.Provider,{value:o},e)}const Bt=n.forwardRef(function({label:t,className:o,icon:r,renderIcon:i,onClick:c,style:s,...l},d){const{styles:f,labels:v}=pe(),E=te(v,t);return n.createElement("button",{ref:d,type:"button",title:E,"aria-label":E,className:Y(N(hn),o),onClick:c,style:{...s,...f.button},...l},i?i():n.createElement(r,{className:N(Ve),style:f.icon}))});function zt(e,t){const o=r=>n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",...r},t);return o.displayName=e,o}function he(e,t){return zt(e,n.createElement("g",{fill:"currentColor"},n.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),t))}function Uo(e,t){return zt(e,n.createElement(n.Fragment,null,n.createElement("defs",null,n.createElement("mask",{id:"strike"},n.createElement("path",{d:"M0 0h24v24H0z",fill:"white"}),n.createElement("path",{d:"M0 0L24 24",stroke:"black",strokeWidth:4}))),n.createElement("path",{d:"M0.70707 2.121320L21.878680 23.292883",stroke:"currentColor",strokeWidth:2}),n.createElement("g",{fill:"currentColor",mask:"url(#strike)"},n.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),t)))}const kn=he("Close",n.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),Wn=he("Previous",n.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),Un=he("Next",n.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),Vn=he("Loading",n.createElement(n.Fragment,null,Array.from({length:8}).map((e,t,o)=>n.createElement("line",{key:t,x1:"12",y1:"6.5",x2:"12",y2:"1.8",strokeLinecap:"round",strokeWidth:"2.6",stroke:"currentColor",strokeOpacity:1/o.length*(t+1),transform:`rotate(${360/o.length*t}, 12, 12)`})))),$n=he("Error",n.createElement("path",{d:"M21.9,21.9l-8.49-8.49l0,0L3.59,3.59l0,0L2.1,2.1L0.69,3.51L3,5.83V19c0,1.1,0.9,2,2,2h13.17l2.31,2.31L21.9,21.9z M5,18 l3.5-4.5l2.5,3.01L12.17,15l3,3H5z M21,18.17L5.83,3H19c1.1,0,2,0.9,2,2V18.17z"})),Re=Xe()?n.useLayoutEffect:n.useEffect;function Kt(){const[e,t]=n.useState(!1);return n.useEffect(()=>{var o,r;const i=(o=window.matchMedia)===null||o===void 0?void 0:o.call(window,"(prefers-reduced-motion: reduce)");t(i==null?void 0:i.matches);const c=s=>t(s.matches);return(r=i==null?void 0:i.addEventListener)===null||r===void 0||r.call(i,"change",c),()=>{var s;return(s=i==null?void 0:i.removeEventListener)===null||s===void 0?void 0:s.call(i,"change",c)}},[]),e}function Fn(e){let t=0,o=0,r=0;const c=window.getComputedStyle(e).transform.match(/matrix.*\((.+)\)/);if(c){const s=c[1].split(",").map(Ne);
1s.length===6?(t=s[4],o=s[5]):s.length===16&&(t=s[12],o=s[13],r=s[14])}return{x:t,y:o,z:r}}function it(e,t){const o=n.useRef(void 0),r=n.useRef(void 0),i=Kt();return Re(()=>{var c,s,l;if(e.current&&o.current!==void 0&&!i){const{keyframes:d,duration:f,easing:v,onfinish:E}=t(o.current,e.current.getBoundingClientRect(),Fn(e.current))||{};if(d&&f){(c=r.current)===null||c===void 0||c.cancel(),r.current=void 0;try{r.current=(l=(s=e.current).animate)===null||l===void 0?void 0:l.call(s,d,{duration:f,easing:v})}catch(p){console.error(p)}r.current&&(r.current.onfinish=()=>{r.current=void 0,E==null||E()})}}o.current=void 0}),{prepareAnimation:c=>{o.current=c},isAnimationPlaying:()=>{var c;return((c=r.current)===null||c===void 0?void 0:c.playState)==="running"}}}function Xt(){const e=n.useRef(null),t=n.useRef(void 0),[o,r]=n.useState();return{setContainerRef:n.useCallback(c=>{e.current=c,t.current&&(t.current.disconnect(),t.current=void 0);const s=()=>{if(c){const l=window.getComputedStyle(c),d=f=>parseFloat(f)||0;r({width:Math.round(c.clientWidth-d(l.paddingLeft)-d(l.paddingRight)),height:Math.round(c.clientHeight-d(l.paddingTop)-d(l.paddingBottom))})}else r(void 0)};s(),c&&typeof ResizeObserver<"u"&&(t.current=new ResizeObserver(s),t.current.observe(c))},[]),containerRef:e,containerRect:o}}function Ce(){const e=n.useRef(void 0),{setTimeout:t,clearTimeout:o}=Se();return n.useCallback((r,i)=>{o(e.current),e.current=t(r,i>0?i:0)},[t,o])}function T(e){const t=n.useRef(e);return Re(()=>{t.current=e}),n.useCallback((...o)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...o)},[])}function ct(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function He(e,t){return n.useMemo(()=>e==null&&t==null?null:o=>{ct(e,o),ct(t,o)},[e,t])}function Hn(e,t=!1){const o=n.useRef(!1);Re(()=>{t&&o.current&&(o.current=!1,e())},[t,e]);const r=n.useCallback(()=>{o.current=!0},[]),i=n.useCallback(()=>{o.current=!1},[]);return{onFocus:r,onBlur:i}}function je(){return Mn().isRTL}function Bn(){const[e]=n.useState({}),t=n.useCallback((i,c)=>{var s;(s=e[i])===null||s===void 0||s.forEach(l=>{c.isPropagationStopped()||l(c)})},[e]),o=n.useMemo(()=>({onPointerDown:i=>t(xt,i),onPointerMove:i=>t(Lt,i),onPointerUp:i=>t(Pt,i),onPointerLeave:i=>t(Ct,i),onPointerCancel:i=>t(bt,i),onKeyDown:i=>t(Nt,i),onKeyUp:i=>t(un,i),onWheel:i=>t(It,i)}),[t]),r=n.useCallback((i,c)=>(e[i]||(e[i]=[]),e[i].unshift(c),()=>{const s=e[i];s&&s.splice(0,s.length,...s.filter(l=>l!==c))}),[e]);return{registerSensors:o,subscribeSensors:r}}function st(e,t){const o=n.useRef(0),r=Ce(),i=T((...c)=>{o.current=Date.now(),e(c)});return n.useCallback((...c)=>{r(()=>{i(c)},t-(Date.now()-o.current))},[t,i,r])}const ke=Ke("slide"),We=Ke("slide_image");function zn({slide:e,offset:t,render:o,rect:r,imageFit:i,imageProps:c,onClick:s,onLoad:l,onError:d,style:f}){var v,E,p,m,h,u,P,C;const[I,y]=n.useState(xe),{publish:O}=Ie(),{setTimeout:S}=Se(),D=n.useRef(null);n.useEffect(()=>{t===0&&O(de(I))},[t,I,O]);const w=T(b=>{("decode"in b?b.decode():Promise.resolve()).catch(()=>{}).then(()=>{b.parentNode&&(y(Pe),S(()=>{l==null||l(b)},0))})}),M=n.useCallback(b=>{D.current=b,b!=null&&b.complete&&w(b)},[w]),g=n.useCallback(b=>{w(b.currentTarget)},[w]),V=T(()=>{y(Le),d==null||d()}),B=gn(e,i),K=(b,oe)=>Number.isFinite(b)?b:oe,_=K(Math.max(...((E=(v=e.srcSet)===null||v===void 0?void 0:v.map(b=>b.width))!==null&&E!==void 0?E:[]).concat(e.width?[e.width]:[]).filter(Boolean)),((p=D.current)===null||p===void 0?void 0:p.naturalWidth)||0),L=K(Math.max(...((h=(m=e.srcSet)===null||m===void 0?void 0:m.map(b=>b.height))!==null&&h!==void 0?h:[]).concat(e.height?[e.height]:[]).filter(Boolean)),((u=D.current)===null||u===void 0?void 0:u.naturalHeight)||0),x=_&&L?{maxWidth:`min(${_}px, 100%)`,maxHeight:`min(${L}px, 100%)`}:{maxWidth:"100%",maxHeight:"100%"},A=(P=e.srcSet)===null||P===void 0?void 0:P.slice().sort((b,oe)=>b.width-oe.width).map(b=>`${b.src} ${b.width}w`).join(", "),W=()=>r&&!B&&e.width&&e.height?r.height/e.height*e.width:Number.MAX_VALUE,q=A&&r&&Xe()?`${Math.round(Math.min(W(),r.width))}px`:void 0,{style:se,className:ye,...Z}=(typeof c=="function"?c(e):c)||{};return n.createElement(n.Fragment,null,n.createElement("img",{ref:M,onLoad:g,onError:V,onClick:s,draggable:!1,
1className:Y(N(We()),B&&N(We("cover")),I!==Pe&&N(We("loading")),ye),style:{...x,...f,...se},...Z,alt:(C=e.alt)!==null&&C!==void 0?C:"",sizes:q,srcSet:A,src:e.src}),I!==Pe&&n.createElement("div",{className:N(ke(sn))},I===xe&&(o!=null&&o.iconLoading?o.iconLoading():n.createElement(Vn,{className:Y(N(Ve),N(ke(xe)))})),I===Le&&(o!=null&&o.iconError?o.iconError():n.createElement($n,{className:Y(N(Ve),N(ke(Le)))}))))}const Kn=n.forwardRef(function({className:t,children:o,onFocus:r,onBlur:i,...c},s){const l=n.useRef(null),[d,f]=n.useState(!1),{trackFocusWithin:v}=Dt(),E=T(()=>{if(l.current){const p=window.getComputedStyle(l.current).direction==="rtl";p!==d&&f(p)}});return n.useEffect(E),n.createElement(wn,{nodeRef:l},n.createElement(An,{isRTL:d},n.createElement("div",{ref:He(s,l),className:Y(N("root"),t),...v(r,i),...c},o)))});var U;(function(e){e[e.NONE=0]="NONE",e[e.SWIPE=1]="SWIPE",e[e.PULL=2]="PULL",e[e.ANIMATION=3]="ANIMATION"})(U||(U={}));function Xn(e,t,o,r,i){n.useEffect(()=>i?()=>{}:Rt(e(xt,t),e(Lt,o),e(Pt,r),e(Ct,r),e(bt,r)),[e,t,o,r,i])}var z;(function(e){e[e.NONE=0]="NONE",e[e.SWIPE=1]="SWIPE",e[e.PULL=2]="PULL"})(z||(z={}));const Ue=30;function Gn({disableSwipeNavigation:e,closeOnBackdropClick:t},o,r,i,c,s,l,d,f,v,E,p,m,h,u,P){const C=n.useRef(0),I=n.useRef([]),y=n.useRef(void 0),O=n.useRef(0),S=n.useRef(z.NONE),D=n.useCallback(_=>{y.current===_.pointerId&&(y.current=void 0,S.current=z.NONE);const L=I.current;L.splice(0,L.length,...L.filter(x=>x.pointerId!==_.pointerId))},[]),w=n.useCallback(_=>{D(_),_.persist(),I.current.push(_)},[D]),M=n.useCallback(_=>I.current.find(({pointerId:L})=>_.pointerId===L),[]),g=T(_=>{w(_)}),V=(_,L)=>E&&_>L||v&&_<-L,B=T(_=>{const L=M(_);if(L)if(y.current===_.pointerId){const x=Date.now()-O.current,A=C.current;S.current===z.SWIPE?Math.abs(A)>.3*i||Math.abs(A)>5&&x<c?d(A,x):f(A):S.current===z.PULL&&(V(A,2*Ue)?h(A,x):u(A)),C.current=0,S.current=z.NONE}else{const{target:x}=_;t&&x instanceof HTMLElement&&x===L.target&&(x.classList.contains(N(ze))||x.classList.contains(N(an)))&&P()}D(_)}),K=T(_=>{const L=M(_);if(L){const x=y.current===_.pointerId;if(_.buttons===0){x&&C.current!==0?B(_):D(L);return}const A=_.clientX-L.clientX,W=_.clientY-L.clientY;if(y.current===void 0){const q=se=>{w(_),y.current=_.pointerId,O.current=Date.now(),S.current=se};Math.abs(A)>Math.abs(W)&&Math.abs(A)>Ue&&r(A)?e||(q(z.SWIPE),s()):Math.abs(W)>Math.abs(A)&&V(W,Ue)&&(q(z.PULL),p())}else x&&(S.current===z.SWIPE?(C.current=A,l(A)):S.current===z.PULL&&(C.current=W,m(W)))}});Xn(o,g,K,B)}function Yn({preventDefaultWheelX:e,preventDefaultWheelY:t}){const o=n.useRef(null),r=T(i=>{const c=Math.abs(i.deltaX)>Math.abs(i.deltaY);(c&&e||!c&&t||i.ctrlKey)&&i.preventDefault()});return n.useCallback(i=>{var c;i?i.addEventListener("wheel",r,{passive:!1}):(c=o.current)===null||c===void 0||c.removeEventListener("wheel",r),o.current=i},[r])}function jn(e,t,o,r,i,c,s,l,d){const f=n.useRef(0),v=n.useRef(0),E=n.useRef(void 0),p=n.useRef(void 0),m=n.useRef(0),h=n.useRef(void 0),u=n.useRef(0),{setTimeout:P,clearTimeout:C}=Se(),I=n.useCallback(()=>{E.current&&(C(E.current),E.current=void 0)},[C]),y=n.useCallback(()=>{p.current&&(C(p.current),p.current=void 0)},[C]),O=T(()=>{e!==U.SWIPE&&(f.current=0,u.current=0,I(),y())});n.useEffect(O,[e,O]);const S=T(w=>{p.current=void 0,f.current===w&&d(f.current)}),D=T(w=>{if(w.ctrlKey||Math.abs(w.deltaY)>Math.abs(w.deltaX))return;const M=g=>{m.current=g,C(h.current),h.current=g>0?P(()=>{m.current=0,h.current=void 0},300):void 0};if(e===U.NONE){if(Math.abs(w.deltaX)<=1.2*Math.abs(m.current)){M(w.deltaX);return}if(!o(-w.deltaX))return;if(v.current+=w.deltaX,I(),Math.abs(v.current)>30)v.current=0,M(0),u.current=Date.now(),c();else{const g=v.current;E.current=P(()=>{E.current=void 0,g===v.current&&(v.current=0)},i)}}else if(e===U.SWIPE){let g=f.current-w.deltaX;if(g=Math.min(Math.abs(g),r)*Math.sign(g),f.current=g,s(g),y(),Math.abs(g)>.2*r){M(w.deltaX),l(g,Date.now()-u.current);return}p.current=P(()=>S(g),2*i)}else M(w.deltaX)});n.useEffect(()=>t(It,D),[t,D])}const lt=Ke("container"),Gt=n.createContext(null),me=j("useController","ControllerContext",Gt);function Zn({children:e,...t}){var o;const{carousel:r,animation:i,controller:c,on:s,styles:l,render:d}=t,{closeOnPullUp:f,closeOnPullDown:v,preventDefaultWheelX:E,preventDefaultWheelY:p}=c,[m,h]=n.useState(),u=we(),P=yn(),[C,I]=n.useState(U.NONE),y=n.useRef(0),O=n.useRef(0),S=n.useRef(1),{registerSensors:D,subscribeSensors:w}=Bn(),{subscribe:M,publish:g}=Ie(),V=Ce(),B=Ce(),K=Ce(),{containerRef:_,setContainerRef:L,containerRect:x}=Xt(),A=He(Yn({preventDefaultWheelX:E,preventDefaultWheelY:p}),L),W=n.useRef(null),q=He(W,void 0),{getOwnerDocument:se}=Ye(),ye=je(),Z=a=>(ye?-1:1)*(typeof a=="number"?a:1),b=T(()=>{var a;return(a=_.current)===null||a===void 0?void 0:a.focus()}),oe=T(()=>t),Ze=T(()=>u),ve=n.useCallback(a=>g(J,a),[g]),Ee=n.useCallback(a=>g(ee,a),[g]),re=n.useCallback(()=>g(ce),[g]),Oe=a=>!(r.finite&&(Z(a)>0&&u.currentIndex===0||Z(a)<0&&u.currentIndex===u.slides.length-1)),qe=a=>{var R;y.current=a,(R=_.current)===null||R===void 0||R.style.setProperty(F("swipe_offset"),`${Math.round(a)}px`)},Te=a=>{var R,$;O.current=a,S.current=(()=>{const ae=v&&a>0?a:f&&a<0?-a:0;return Math.min(Math.max(En(1-ae/60*(1-.5),2),.5),1)})(),(R=_.current)===null||R===void 0||R.style.setProperty(F("pull_offset"),`${Math.round(a)}px`),($=_.current)===null||$===void 0||$.style.setProperty(F("pull_opacity"),`${S.current}`)},{prepareAnimation:Zt}=it(W,(a,R,$)=>{if(W.current&&x)return{keyframes:[{transform:`translate(0, ${a.rect.y-R.y+$.y}px)`,opacity:a.opacity},{transform:"translate(0, 0)",opacity:1}],duration:a.duration,easing:i.easing.fade}}),Qe=(a,R)=>
1{if(f||v){Te(a);let $=0;W.current&&($=i.fade*(R?2:1),Zt({rect:W.current.getBoundingClientRect(),opacity:S.current,duration:$})),K(()=>{Te(0),I(U.NONE)},$),I(U.ANIMATION),R||re()}},{prepareAnimation:qt,isAnimationPlaying:Qt}=it(W,(a,R,$)=>{var X;if(W.current&&x&&(!((X=u.animation)===null||X===void 0)&&X.duration)){const H=be(r.spacing),ae=(H.percent?H.percent*x.width/100:H.pixel)||0;return{keyframes:[{transform:`translate(${Z(u.globalIndex-a.index)*(x.width+ae)+a.rect.x-R.x+$.x}px, 0)`},{transform:"translate(0, 0)"}],duration:u.animation.duration,easing:u.animation.easing}}}),le=T(a=>{var R,$;const X=a.offset||0,H=X?i.swipe:(R=i.navigation)!==null&&R!==void 0?R:i.swipe,ae=!X&&!Qt()?i.easing.navigation:i.easing.swipe;let{direction:ge}=a;const _e=($=a.count)!==null&&$!==void 0?$:1;let Me=U.ANIMATION,G=H*_e;if(!ge){const ue=x==null?void 0:x.width,nt=a.duration||0,De=ue?H/ue*Math.abs(X):H;_e!==0?(nt<De?G=G/De*Math.max(nt,De/5):ue&&(G=H/ue*(ue-Math.abs(X))),ge=Z(X)>0?J:ee):G=H/2}let Ae=0;ge===J?Oe(Z(1))?Ae=-_e:(Me=U.NONE,G=H):ge===ee&&(Oe(Z(-1))?Ae=_e:(Me=U.NONE,G=H)),G=Math.round(G),B(()=>{qe(0),I(U.NONE)},G),W.current&&qt({rect:W.current.getBoundingClientRect(),index:u.globalIndex}),I(Me),g(ot,{type:"swipe",increment:Ae,duration:G,easing:ae})});n.useEffect(()=>{var a,R;!((a=u.animation)===null||a===void 0)&&a.increment&&(!((R=u.animation)===null||R===void 0)&&R.duration)&&V(()=>P({type:"swipe",increment:0}),u.animation.duration)},[u.animation,P,V]);const Je=[w,Oe,(x==null?void 0:x.width)||0,i.swipe,()=>I(U.SWIPE),a=>qe(a),(a,R)=>le({offset:a,duration:R,count:1}),a=>le({offset:a,count:0})],Jt=[()=>{v&&I(U.PULL)},a=>Te(a),a=>Qe(a),a=>Qe(a,!0)];Gn(c,...Je,f,v,...Jt,re),jn(C,...Je);const et=T(()=>{c.focus&&se().querySelector(`.${N(Be)} .${N(lt())}`)&&b()});n.useEffect(et,[et]);const tt=T(()=>{var a;(a=s.view)===null||a===void 0||a.call(s,{index:u.currentIndex})});n.useEffect(tt,[u.globalIndex,tt]),n.useEffect(()=>Rt(M(J,a=>le({direction:J,...a})),M(ee,a=>le({direction:ee,...a})),M(ot,a=>P(a))),[M,le,P]);const en=n.useMemo(()=>({prev:ve,next:Ee,close:re,focus:b,slideRect:x?_n(x,r.padding):{width:0,height:0},containerRect:x||{width:0,height:0},subscribeSensors:w,containerRef:_,setCarouselRef:q,toolbarWidth:m,setToolbarWidth:h}),[ve,Ee,re,b,w,x,_,q,m,h,r.padding]);return n.useImperativeHandle(c.ref,()=>({prev:ve,next:Ee,close:re,focus:b,getLightboxProps:oe,getLightboxState:Ze}),[ve,Ee,re,b,oe,Ze]),n.createElement("div",{ref:A,className:Y(N(lt()),N(gt)),style:{...C===U.SWIPE?{[F("swipe_offset")]:`${Math.round(y.current)}px`}:null,...C===U.PULL?{[F("pull_offset")]:`${Math.round(O.current)}px`,[F("pull_opacity")]:`${S.current}`}:null,...c.touchAction!=="none"?{[F("controller_touch_action")]:c.touchAction}:null,...l.container},tabIndex:-1,...D},x&&n.createElement(Gt.Provider,{value:en},e,(o=d.controls)===null||o===void 0?void 0:o.call(d)))}const qn=ne(vt,Zn);function Q(e){return fe(mt,e)}function at(e){return fe(ze,e)}function Qn({slide:e,offset:t}){const o=n.useRef(null),{currentIndex:r,slides:i}=we(),{slideRect:c,focus:s}=me(),{render:l,carousel:{imageFit:d,imageProps:f},on:{click:v},styles:{slide:E},labels:p}=pe(),{getOwnerDocument:m}=Ye(),h=t!==0;n.useEffect(()=>{var P;h&&(!((P=o.current)===null||P===void 0)&&P.contains(m().activeElement))&&s()},[h,s,m]);const u=()=>{var P,C,I,y;let O=(P=l.slide)===null||P===void 0?void 0:P.call(l,{slide:e,offset:t,rect:c});return!O&&yt(e)&&(O=n.createElement(zn,{slide:e,offset:t,render:l,rect:c,imageFit:d,imageProps:f,onClick:h?void 0:()=>v==null?void 0:v({index:r})})),O?n.createElement(n.Fragment,null,(C=l.slideHeader)===null||C===void 0?void 0:C.call(l,{slide:e}),((I=l.slideContainer)!==null&&I!==void 0?I:(({children:S})=>S))({slide:e,children:O}),(y=l.slideFooter)===null||y===void 0?void 0:y.call(l,{slide:e})):null};return n.createElement("div",{ref:o,className:Y(N(at()),!h&&N(at("current")),N(gt)),...Cn(h),style:E,role:"group","aria-roledescription":te(p,"Slide"),"aria-label":vn(p,i,r+t)},u())}function Jn(){const e=pe().styles.slide;return n.createElement("div",{className:N(ze),style:e})}function eo({carousel:e,labels:t}){const{slides:o,currentIndex:r,globalIndex:i}=we(),{setCarouselRef:c}=me(),{autoPlaying:s,focusWithin:l}=Dt(),d=be(e.spacing),f=be(e.padding),v=Ln(e,o,1),E=[];if(Ot(o))for(let p=r-v;p<=r+v;p+=1){const m=Tt(o,p),h=i-r+p,u=e.finite&&(p<0||p>o.length-1);E.push(u?{key:h}:{key:[`${h}
1`,xn(m)].filter(Boolean).join("|"),offset:p-r,slide:m})}return n.createElement("div",{ref:c,className:Y(N(Q()),E.length>0&&N(Q("with_slides"))),style:{[`${F(Q("slides_count"))}`]:E.length,[`${F(Q("spacing_px"))}`]:d.pixel||0,[`${F(Q("spacing_percent"))}`]:d.percent||0,[`${F(Q("padding_px"))}`]:f.pixel||0,[`${F(Q("padding_percent"))}`]:f.percent||0},role:"region","aria-live":s&&!l?"off":"polite","aria-roledescription":te(t,"Carousel"),"aria-label":te(t,"Photo gallery")},E.map(({key:p,slide:m,offset:h})=>m?n.createElement(Qn,{key:p,slide:m,offset:h}):n.createElement(Jn,{key:p})))}const to=ne(mt,eo);function Yt(){const{carousel:e}=pe(),{slides:t,currentIndex:o}=we(),r=t.length===0||e.finite&&o===0,i=t.length===0||e.finite&&o===t.length-1;return{prevDisabled:r,nextDisabled:i}}function no(e){var t;const o=je(),{publish:r}=Ie(),{animation:i,controller:c}=pe(),{prevDisabled:s,nextDisabled:l}=Yt(),d=((t=i.navigation)!==null&&t!==void 0?t:i.swipe)/2,f=st(()=>r(J),d),v=st(()=>r(ee),d),E=T(p=>{switch(p.key){case dn:if(!c.closeOnEscape)return;r(ce);break;case fn:(o?l:s)||(o?v:f)();break;case pn:(o?s:l)||(o?f:v)();break;default:return}p.stopPropagation()});n.useEffect(()=>e(Nt,E),[e,E])}function ut({label:e,icon:t,renderIcon:o,action:r,onClick:i,disabled:c,style:s}){return n.createElement(Bt,{label:e,icon:t,renderIcon:o,className:N(`navigation_${r}`),disabled:c,onClick:i,style:s,...Hn(me().focus,c)})}function oo({render:{buttonPrev:e,buttonNext:t,iconPrev:o,iconNext:r},styles:i}){const{prev:c,next:s,subscribeSensors:l}=me(),{prevDisabled:d,nextDisabled:f}=Yt();return no(l),n.createElement(n.Fragment,null,e?e():n.createElement(ut,{label:"Previous",action:J,icon:Wn,renderIcon:o,style:i.navigationPrev,disabled:d,onClick:c}),t?t():n.createElement(ut,{label:"Next",action:ee,icon:Un,renderIcon:r,style:i.navigationNext,disabled:f,onClick:s}))}const ro=ne(nn,oo),dt=N(ln),io=N(_t);function co(e){return"style"in e}function ft(e,t,o){const r=window.getComputedStyle(e),i=o?"padding-left":"padding-right",c=o?r.paddingLeft:r.paddingRight,s=e.style.getPropertyValue(i);return e.style.setProperty(i,`${(Ne(c)||0)+t}px`),()=>{s?e.style.setProperty(i,s):e.style.removeProperty(i)}}function so({noScroll:{disabled:e},children:t}){const o=je(),{getOwnerDocument:r,getOwnerWindow:i}=Ye();return n.useEffect(()=>{if(e)return()=>{};const c=[],s=i(),{body:l,documentElement:d}=r(),f=Math.round(s.innerWidth-d.clientWidth);if(f>0){c.push(ft(l,f,o));const v=l.getElementsByTagName("*");for(let E=0;E<v.length;E+=1){const p=v[E];co(p)&&s.getComputedStyle(p).getPropertyValue("position")==="fixed"&&!p.classList.contains(io)&&c.push(ft(p,f,o))}}return l.classList.add(dt),()=>{l.classList.remove(dt),c.forEach(v=>v())}},[o,e,r,i]),n.createElement(n.Fragment,null,t)}const lo=ne(on,so);function pt(e){return fe(Be,e)}function ht(e,t,o){const r=e.getAttribute(t);return e.setAttribute(t,o),()=>{r?e.setAttribute(t,r):e.removeAttribute(t)}}function ao({portal:{root:e,container:{className:t,style:o,...r}={}},animation:i,styles:c,className:s,on:l,close:d,labels:f,children:v}){const[E,p]=n.useState(!1),[m,h]=n.useState(!1),u=n.useRef([]),P=n.useRef(null),{setTimeout:C}=Se(),{subscribe:I}=Ie(),O=Kt()?0:i.fade;n.useEffect(()=>(p(!0),()=>{p(!1),h(!1)}),[]);const S=T(()=>{u.current.forEach(g=>g()),u.current=[]}),D=T(()=>{var g;h(!1),S(),(g=l.exiting)===null||g===void 0||g.call(l),C(()=>{var V;(V=l.exited)===null||V===void 0||V.call(l),d()},O)});n.useEffect(()=>I(ce,D),[I,D]);const w=T(g=>{var V,B,K;bn(g),h(!0),(V=l.entering)===null||V===void 0||V.call(l);const _=(K=(B=g.parentNode)===null||B===void 0?void 0:B.children)!==null&&K!==void 0?K:[];for(let L=0;L<_.length;L+=1){const x=_[L];["TEMPLATE","SCRIPT","STYLE"].indexOf(x.tagName)===-1&&x!==g&&(u.current.push(ht(x,"inert","")),u.current.push(ht(x,"aria-hidden","true")))}u.current.push(()=>{var L,x;(x=(L=P.current)===null||L===void 0?void 0:L.focus)===null||x===void 0||x.call(L)}),C(()=>{var L;(L=l.entered)===null||L===void 0||L.call(l)},O)}),M=n.useCallback(g=>{g?w(g):S()},[w,S]);return E?tn.createPortal(n.createElement(Kn,{ref:M,className:Y(s,t,N(pt()),N(_t),m&&N(pt("open"))),"aria-modal":!0,role:"dialog","aria-label":te(f,"Lightbox"),style:{...i.fade!==Fe.animation.fade?{[F("fade_animation_duration")]:`${O}ms`}:null,...i.easing.fade!==Fe.animation.easing.fade?{[F("fade_animation_timing_function")]:i.easing.fade}:null,...c.root,...o},onFocus:g=>{P.current||(P.current=g.relatedTarget)},...r},v),(typeof e=="function"?e():e)||document.body):null}const uo=ne(Be,ao);function fo({children:e}){return n.createElement(n.Fragment,null,e)}const po=ne(rn,fo);function ho(e){return fe(Et,e)}function mo({toolbar:{buttons:e},render:{buttonClose:t,iconClose:o},styles:r}){const{close:i,setToolbarWidth:c}=me(),{setContainerRef:s,containerRect:l}=Xt();Re(()=>{c(l==null?void 0:l.width)},[c,l==null?void 0:l.width]);const d=()=>t?t():n.createElement(Bt,{key:ce,label:"Close",icon:kn,renderIcon:o,onClick:i});return n.createElement("div",{ref:s,style:r.toolbar,className:N(ho())},e==null?void 0:e.map(f=>f===ce?d():f))}const vo=ne(Et,mo);function jt(e,t){var o;return n.createElement(e.module.component,{key:e.module.name,...t},(o=e.children)===null||o===void 0?void 0:o.map(r=>jt(r,t)))}function Eo(e,t={}){const{easing:o,...r}=e,{easing:i,...c}=t;return{easing:{...o,...i},...r,...c}}
1function Vo({carousel:e,animation:t,render:o,toolbar:r,controller:i,noScroll:c,on:s,plugins:l,slides:d,index:f,...v}){const{animation:E,carousel:p,render:m,toolbar:h,controller:u,noScroll:P,on:C,slides:I,index:y,plugins:O,...S}=Fe,{config:D,augmentation:w}=Nn([k(uo,[k(lo,[k(qn,[k(to),k(vo),k(ro)])])])],l||O),M=w({animation:Eo(E,t),carousel:{...p,...e},render:{...m,...o},toolbar:{...h,...r},controller:{...u,...i},noScroll:{...P,...c},on:{...C,...s},...S,...v});return M.open?n.createElement(Rn,{...M},n.createElement(Tn,{slides:d||I,index:Ne(f||y)},n.createElement(Dn,null,n.createElement(Sn,null,n.createElement(In,null,jt(k(po,D),M)))))):null}export{At as A11yContext,In as A11yContextProvider,ce as ACTION_CLOSE,ee as ACTION_NEXT,J as ACTION_PREV,ot as ACTION_SWIPE,Oo as ACTIVE_SLIDE_COMPLETE,yo as ACTIVE_SLIDE_ERROR,So as ACTIVE_SLIDE_LOADING,Ro as ACTIVE_SLIDE_PLAYING,gt as CLASS_FLEX_CENTER,To as CLASS_FULLSIZE,ln as CLASS_NO_SCROLL,_t as CLASS_NO_SCROLL_PADDING,ze as CLASS_SLIDE,an as CLASS_SLIDE_WRAPPER,Mo as CLASS_SLIDE_WRAPPER_INTERACTIVE,eo as Carousel,to as CarouselModule,kn as CloseIcon,Zn as Controller,Gt as ControllerContext,qn as ControllerModule,kt as DocumentContext,wn as DocumentContextProvider,hn as ELEMENT_BUTTON,Ve as ELEMENT_ICON,Nt as EVENT_ON_KEY_DOWN,un as EVENT_ON_KEY_UP,bt as EVENT_ON_POINTER_CANCEL,xt as EVENT_ON_POINTER_DOWN,Ct as EVENT_ON_POINTER_LEAVE,Lt as EVENT_ON_POINTER_MOVE,Pt as EVENT_ON_POINTER_UP,It as EVENT_ON_WHEEL,$n as ErrorIcon,Wt as EventsContext,Sn as EventsProvider,wt as IMAGE_FIT_CONTAIN,rt as IMAGE_FIT_COVER,Bt as IconButton,zn as ImageSlide,Vo as Lightbox,Fe as LightboxDefaultProps,$t as LightboxDispatchContext,Ut as LightboxPropsContext,Rn as LightboxPropsProvider,Kn as LightboxRoot,Vt as LightboxStateContext,Tn as LightboxStateProvider,Vn as LoadingIcon,mt as MODULE_CAROUSEL,vt as MODULE_CONTROLLER,nn as MODULE_NAVIGATION,on as MODULE_NO_SCROLL,Be as MODULE_PORTAL,rn as MODULE_ROOT,Et as MODULE_TOOLBAR,oo as Navigation,ut as NavigationButton,ro as NavigationModule,Un as NextIcon,so as NoScroll,lo as NoScrollModule,_o as PLUGIN_CAPTIONS,xo as PLUGIN_COUNTER,Lo as PLUGIN_DOWNLOAD,Po as PLUGIN_FULLSCREEN,Co as PLUGIN_INLINE,bo as PLUGIN_SHARE,No as PLUGIN_SLIDESHOW,Io as PLUGIN_THUMBNAILS,wo as PLUGIN_ZOOM,ao as Portal,uo as PortalModule,Wn as PreviousIcon,Ft as RTLContext,An as RTLContextProvider,fo as Root,po as RootModule,Pe as SLIDE_STATUS_COMPLETE,Le as SLIDE_STATUS_ERROR,xe as SLIDE_STATUS_LOADING,sn as SLIDE_STATUS_PLACEHOLDER,cn as SLIDE_STATUS_PLAYING,U as SwipeState,Ht as TimeoutsContext,Dn as TimeoutsProvider,mo as Toolbar,vo as ToolbarModule,mn as UNKNOWN_ACTION_TYPE,fn as VK_ARROW_LEFT,pn as VK_ARROW_RIGHT,dn as VK_ESCAPE,de as activeSlideStatus,ko as addToolbarButton,Ln as calculatePreload,Rt as cleanup,Y as clsx,fe as composePrefix,_n as computeSlideRect,he as createIcon,Uo as createIconDisabled,ne as createModule,k as createNode,N as cssClass,F as cssVar,Vo as default,Do as devicePixelRatio,Tt as getSlide,$e as getSlideIfPresent,Ge as getSlideIndex,xn as getSlideKey,Ot as hasSlides,Xe as hasWindow,gn as isImageFitCover,yt as isImageSlide,Ao as label,Ke as makeComposePrefix,Cn as makeInertWhen,j as makeUseContext,Ne as parseInt,be as parseLengthPercentage,bn as reflow,En as round,ct as setRef,Wo as stopNavigationEventsPropagation,te as translateLabel,vn as translateSlideCounter,Dt as useA11yContext,it as useAnimation,Xt as useContainerRect,me as useController,Ce as useDelay,Ye as useDocumentContext,T as useEventCallback,Ie as useEvents,He as useForkRef,no as useKeyboardNavigation,Re as useLayoutEffect,yn as useLightboxDispatch,pe as useLightboxProps,we as useLightboxState,Hn as useLoseFocus,Kt as useMotionPreference,Yt as useNavigationState,Xn as usePointerEvents,Gn as usePointerSwipe,Yn as usePreventWheelDefaults,je as useRTL,Mn as useRTLContext,Bn as useSensors,st as useThrottle,Se as useTimeouts,jn as useWheelSwipe,Nn as withPlugins};

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.