PageSourceSearch

https://plusliveth.com/_next/static/chunks/5046-f0b04bbb61e3cd08.js

js plusliveth.com collected 2026-10-01 23:46:58 UTC 63,367 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5046],{50925:function(){},85737:function(){},90083:function(e,t,n){"use strict";n.d(t,{Z:function(){return C}});var r=n(67294);function l(e,t=0){let n=10**t;return Math.round((e+Number.EPSILON)*n)/n}class i{constructor(e){this.comparator=e,this.heap=[],this.n=0}greater(e,t){return 0>this.comparator(this.heap[e],this.heap[t])}swap(e,t){let n=this.heap[e];this.heap[e]=this.heap[t],this.heap[t]=n}swim(e){let t=e,n=Math.floor(t/2);for(;t>1&&this.greater(n,t);)this.swap(n,t),n=Math.floor((t=n)/2)}sink(e){let t=e,n=2*t;for(;n<=this.n&&(n<this.n&&this.greater(n,n+1)&&(n+=1),this.greater(t,n));)this.swap(t,n),n=2*(t=n)}push(e){this.n+=1,this.heap[this.n]=e,this.swim(this.n)}pop(){if(0===this.n)return;this.swap(1,this.n),this.n-=1;let e=this.heap.pop();return this.sink(1),e}size(){return this.n}}function u(e,t,n,r){let l=t-(e.length-1)*n-2*r*e.length,i=e.reduce((e,t)=>e+function({width:e,height:t}){return e/t}(t),0);return l/i}function o(...e){return[...e].filter(e=>Boolean(e)).join(" ")}function a(e,{width:t,photosCount:n},{spacing:r,padding:i,containerWidth:u}){let o=r*(n-1)+2*i*n;return`calc((${e} - ${o}px) / ${l((u-o)/t,5)})`}function c(e,t,n){var r,l;return a(null!=(l=null==(r=e.match(/calc\((.*)\)/))?void 0:r[1])?l:e,t,n)}function s(e){var t,n;let{photo:l,layout:i,layoutOptions:u,imageProps:{style:s,className:d,...h}={},renderPhoto:f}=e,{onClick:m}=u,p={display:"block",boxSizing:"content-box",width:"rows"!==u.layout?`calc(100% - ${2*u.padding}px)`:a("100%",i,u),height:"auto",aspectRatio:`${l.width} / ${l.height}`,...u.padding?{padding:`${u.padding}px`}:null,...("columns"===u.layout||"masonry"===u.layout)&&i.photoIndex<i.photosCount-1?{marginBottom:`${u.spacing}px`}:null,...m?{cursor:"pointer"}:null,...s},v={src:l.src,alt:null!=(t=l.alt)?t:"",title:l.title,onClick:m?e=>{m({event:e,photo:l,index:i.index})}:void 0,style:p,className:o("react-photo-album--photo",d),loading:"lazy",decoding:"async",...function(e,t,n){let r,l;let i=e.srcSet||e.images;return i&&i.length>0&&(r=i.concat(i.find(({width:t})=>t===e.width)?[]:[{src:e.src,width:e.width,height:e.height}]).sort((e,t)=>e.width-t.width).map(e=>`${e.src}
1 ${e.width}w`).join(", ")),n.sizes?l=(n.sizes.sizes||[]).map(({viewport:e,size:r})=>`${e} ${c(r,t,n)}`).concat(c(n.sizes.size,t,n)).join(", "):r&&(l=`${Math.ceil(t.width/n.containerWidth*100)}vw`),{srcSet:r,sizes:l}}(l,i,u),...h},g=e=>{let{src:t,alt:n,srcSet:l,sizes:i,style:u,...o}=v;return r.createElement("img",{alt:n,...l?{srcSet:l,sizes:i}:null,src:t,style:(null==e?void 0:e.wrapped)?{display:"block",width:"100%",height:"100%"}:u,...o})},E=(({display:e,boxSizing:t,width:n,aspectRatio:r,padding:l,marginBottom:i,cursor:u})=>({display:e,boxSizing:t,width:n,aspectRatio:r,padding:l,marginBottom:i,cursor:u}))(p);return r.createElement(r.Fragment,null,null!=(n=null==f?void 0:f({photo:l,layout:i,layoutOptions:u,imageProps:v,renderDefaultPhoto:g,wrapperStyle:E}))?n:g())}function d({rowContainerProps:e,children:t}){return r.createElement("div",{...e},t)}function h(e){let{layoutOptions:t,rowIndex:n,rowsCount:l,renderRowContainer:i,rowContainerProps:{style:u,className:a,...c}={},children:s}=e,h={className:o("react-photo-album--row",a),style:{display:"flex",flexDirection:"row",flexWrap:"nowrap",alignItems:"flex-start",justifyContent:"space-between",...n<l-1?{marginBottom:`${t.spacing}px`}:null,...u},...c};return r.createElement(r.Fragment,null,(null!=i?i:d)({layoutOptions:t,rowIndex:n,rowsCount:l,rowContainerProps:h,children:s}))}function f(e){let{photos:t,layoutOptions:n,renderPhoto:o,renderRowContainer:a,componentsProps:{imageProps:c,rowContainerProps:d}}=e,f=function({photos:e,layoutOptions:t}){let{spacing:n,padding:r,containerWidth:o,targetRowHeight:a,rowConstraints:c}=t,s=function({photos:e,targetRowHeight:t,containerWidth:n}){let r=e.reduce((e,t)=>Math.min(function({width:e,height:t}){return e/t}(t),e),Number.MAX_VALUE);return l(n/t/r)+2}({photos:e,containerWidth:o,targetRowHeight:a}),d=function({photos:e,layoutOptions:t,targetRowHeight:n,limitNodeSearch:r,rowConstraints:l}){return i=>{var o,a;let{containerWidth:c,spacing:s,padding:d}=t,h=new Map;h.set(i,0);let f=null!=(o=null==l?void 0:l.minPhotos)?o:1,m=Math.min(r,null!=(a=null==l?void 0:l.maxPhotos)?a:1/0);for(let t=i+f;t<e.length+1&&!(t-i>m);t+=1){let r=function(e,t,n,r,l,i,o){let a=e.slice(t,n),c=u(a,r,i,o);return c>0?(c-l)**2*a.length:void 0}(e,i,t,c,n,s,d);if(void 0===r)break;h.set(t,r)}return h}}({photos:e,layoutOptions:t,targetRowHeight:a,limitNodeSearch:s,rowConstraints:c}),h=function(e,t,n){let r=function(e,t,n){var r;let l=new Map,u=new Set,o=new Map;o.set(t,0);let a=new i((r=e=>e.weight,(e,t)=>r(t)-r(e)));for(a.push({id:t,weight:0});a.size()>0;){let{id:t,weight:n}=a.pop();if(!u.has(t)){let r=e(t);u.add(t),r.forEach((e,r)=>{let i=n+e,u=l.get(r),c=o.get(r);(void 0===c||c>i&&(c/i>1.005||void 0!==u&&u<t))&&(o.set(r,i),a.push({id:r,weight:i}),l.set(r,t))})}}return o.has(n)?l:void 0}(e,0,n);return r?function(e,t){let n=[];for(let r=t;void 0!==r;r=e.get(r))n.push(r);return n.reverse()}(r,n):void 0}(d,0,e.length);if(void 0===h)return;let f=[];for(let t=1;t<h.length;t+=1){let l=e.map((e,t)=>({photo:e,index:t})).slice(h[t-1],h[t]),i=u(l.map(({photo:e})=>e),o,n,r);f.push(l.map(({photo:e,index:t},n)=>({photo:e,layout:{height:i,width:i*function({width:e,height:t}){return e/t}(e),index:t,photoIndex:n,photosCount:l.length}})))}return f}({photos:t,layoutOptions:n});return f?r.createElement(r.Fragment,null,f.map((e,t)=>r.createElement(h,{key:`row-${t}`,layoutOptions:n,rowIndex:t,rowsCount:f.length,renderRowContainer:a,rowContainerProps:d},e.map(({photo:e,layout:t})=>r.createElement(s,{key:e.key||e.src,photo:e,layout:t,layoutOptions:n,renderPhoto:o,imageProps:c}))))):null}function m({path:e,photos:t,containerWidth:n,columnsGaps:r,columnsRatios:l,spacing:i,padding:u}){let o=[],a=l.reduce((e,t)=>e+t,0);for(let c=0;c<e.length-1;c+=1){let s=t.map((e,t)=>({photo:e,index:t})).slice(e[c],e[c+1]),d=l.reduce((e,t,n)=>e+(r[c]-r[n])*t,0),h=(n-(e.length-2)*i-2*(e.length-1)*u-d)*l[c]/a;o.push(s.map(({photo:e,index:t},n)=>({photo:e,layout:{width:h,height:h/function({width:e,height:t}){return e/t}(e),index:t,photoIndex:n,photosCount:s.length}})))}return o}function p({columnContainerProps:e,children:t}){return r.createElement("div",{...e},t)}function v(e){let{layoutOptions:t,renderColumnContainer:n,children:i,columnContainerProps:{style:u,className:a,...c}={},...s}=e,d={className:o("react-photo-album--column",a),style:{display:"flex",flexDirection:"column",flexWrap:"nowrap",alignItems:"flex-start",width:function(e){let{layoutOptions:t,columnIndex:n,columnsCount:r,columnsGaps:i,columnsRatios:u}=e,{layout:o,spacing:a,padding:c}=t;if("masonry"===o||!i||!u)return`calc((100% - ${a*(r-1)}px) / ${r})`;let s=u.reduce((e,t)=>
1e+t,0),d=u.reduce((e,t,r)=>e+(i[n]-i[r])*t,0);return`calc((100% - ${l((r-1)*a+2*r*c+d,3)}px) * ${l(u[n]/s,5)} + ${2*c}px)`}(e),justifyContent:"columns"===t.layout?"space-between":"flex-start",...u},...c};return r.createElement(r.Fragment,null,(null!=n?n:p)({layoutOptions:t,columnContainerProps:d,children:i,...s}))}function g(e){let{photos:t,layoutOptions:n,renderPhoto:l,renderColumnContainer:i,componentsProps:{imageProps:u,columnContainerProps:o}}=e,a=function({photos:e,layoutOptions:t}){return function e(t){let{photos:n,layoutOptions:r}=t,{columns:l,spacing:i,padding:u,containerWidth:o}=r,{columnsGaps:a,columnsRatios:c,columnsModel:s}=function({photos:e,layoutOptions:t,targetColumnWidth:n}){var r;let{columns:l,spacing:i,padding:u,containerWidth:o}=t,a=[],c=[];if(e.length<=l){let t=e.length>0?e.reduce((e,t)=>e+function({width:e,height:t}){return e/t}(t),0)/e.length:1;for(let n=0;n<l;n+=1)a[n]=2*u,c[n]=n<e.length?function({width:e,height:t}){return e/t}(e[n]):t;let n=m({path:Array.from({length:l+1}).map((t,n)=>Math.min(n,e.length)),photos:e,columnsRatios:c,columnsGaps:a,containerWidth:o,spacing:i,padding:u});return{columnsGaps:a,columnsRatios:c,columnsModel:n}}let s=(e.reduce((e,t)=>e+n/function({width:e,height:t}){return e/t}(t),0)+i*(e.length-l)+2*u*e.length)/l,d=function({photos:e,spacing:t,padding:n,targetColumnWidth:r,targetColumnHeight:l}){return i=>{let u=[],o=1.5*l,a=r/function({width:e,height:t}){return e/t}(e[i])+2*n;for(let c=i+1;c<e.length+1&&(u.push({neighbor:c,weight:(l-a)**2}),!(a>o)&&c!==e.length);c+=1)a+=r/function({width:e,height:t}){return e/t}(e[c])+t+2*n;return u}}({photos:e,targetColumnWidth:n,targetColumnHeight:s,spacing:i,padding:u}),h=function(e,t,n){let r=[n];for(let l=n,i=t;i>0;i-=1)r.push(l=e.get(l)[i].node);return r.reverse()}(function(e,t,n,r){let l=new Map,i=new Set;i.add(0);for(let n=0;n<t;n+=1){let u=[...i.keys()];i.clear(),u.forEach(u=>{let o=n>0?l.get(u)[n].weight:0;e(u).forEach(({neighbor:e,weight:a})=>{let c=l.get(e);c||(c=[],l.set(e,c));let s=o+a,d=c[n+1];(!d||d.weight>s&&(d.weight/s>1.0001||u<d.node))&&(c[n+1]={node:u,weight:s}),n<t-1&&e!==r&&i.add(e)})})}return l}(d,l,0,r=e.length),l,r);for(let t=0;t<h.length-1;t+=1){let n=e.slice(h[t],h[t+1]);a[t]=i*(n.length-1)+2*u*n.length,c[t]=1/n.reduce((e,t)=>e+1/function({width:e,height:t}){return e/t}(t),0)}let f=m({path:h,photos:e,columnsRatios:c,columnsGaps:a,containerWidth:o,spacing:i,padding:u});return{columnsGaps:a,columnsRatios:c,columnsModel:f}}({photos:n,layoutOptions:r,targetColumnWidth:(o-i*(l-1)-2*u*l)/l});return s.findIndex(e=>e.findIndex(({layout:{width:e,height:t}})=>e<0||t<0)>=0)>=0?l>1?e({photos:n,layoutOptions:{...r,columns:l-1}}):void 0:{columnsModel:s,columnsGaps:a,columnsRatios:c}}({photos:e,layoutOptions:t})}({photos:t,layoutOptions:n});if(!a)return null;let{columnsModel:c,columnsRatios:d,columnsGaps:h}=a;return r.createElement(r.Fragment,null,c.map((e,t)=>r.createElement(v,{key:`column-${t}`,layoutOptions:n,columnIndex:t,columnsCount:c.length,columnsGaps:h,columnsRatios:d,renderColumnContainer:i,columnContainerProps:o},e.map(({photo:e,layout:t})=>r.createElement(s,{key:e.key||e.src,photo:e,layout:t,layoutOptions:n,renderPhoto:l,imageProps:u})))))}function E(e){let{photos:t,layoutOptions:n,renderPhoto:l,renderColumnContainer:i,componentsProps:{imageProps:u,columnContainerProps:o}}=e,a=function e(t){let{photos:n,layoutOptions:r}=t,{columns:l,spacing:i,padding:u,containerWidth:o}=r,a=(o-i*(l-1)-2*u*l)/l;if(a<=0)return l>1?e({...t,layoutOptions:{...r,columns:l-1}}):void 0;let c=[];for(let e=0;e<l;e+=1)c[e]=0;let s=n.reduce((e,t,n)=>{let r=c.reduce((e,t,n)=>t<c[e]-1?n:e,0);return c[r]=c[r]+a/function({width:e,height:t}){return e/t}(t)+i+2*u,e[r].push({photo:t,index:n}),e},Array.from({length:l}).map(()=>[]));return s.map(e=>e.map(({photo:t,index:n},r)=>({photo:t,layout:{width:a,height:a/function({width:e,height:t}){return e/t}(t),index:n,photoIndex:r,photosCount:e.length}})))}({photos:t,layoutOptions:n});return a?r.createElement(r.Fragment,null,a.map((e,t)=>r.createElement(v,{key:`masonry-column-${t}`,layoutOptions:n,columnsCount:a.length,columnIndex:t,renderColumnContainer:i,columnContainerProps:o},e.map(({photo:e,layout:t})=>r.createElement(s,{key:e.key||e.src,photo:e,layout:t,layoutOptions:n,renderPhoto:l,imageProps:u}))))):null}function b({containerProps:e,children:t,containerRef:n}){return r.createElement("div",{ref:n,...e},t)}function w(e){let{layout:t,renderContainer:n,children:l,containerRef:i,containerProps:{style:u,className:a,...c}={}}
1=e,s={className:o("react-photo-album",`react-photo-album--${t}`,a),style:{display:"flex",flexWrap:"nowrap",justifyContent:"space-between",flexDirection:"rows"===t?"column":"row",...u},...c};return r.createElement(r.Fragment,null,(null!=n?n:b)({containerProps:s,containerRef:i,layout:t,children:l}))}function y(e,{newContainerWidth:t,newScrollbarWidth:n}){let{containerWidth:r,scrollbarWidth:l}=e;return void 0!==r&&void 0!==l&&void 0!==t&&void 0!==n&&t>r&&t-r<=20&&n<l?{containerWidth:r,scrollbarWidth:n}:r!==t||l!==n?{containerWidth:t,scrollbarWidth:n}:e}let x=Object.freeze([1200,600,300,0]);function M(e,t){return"function"==typeof e?e(t):e}function N(e,t){return void 0!==e?M(e,t):void 0}function k(e,t,n,r=0){let l=N(e,t);return Math.round(Math.max(void 0===l?function(e,t){let n=x.findIndex(e=>e<=t);return M(e[n>=0?n:0],t)}(n,t):l,r))}function C(e){let{photos:t,layout:n,renderContainer:l,defaultContainerWidth:i,breakpoints:u}=e,{containerRef:o,containerWidth:a}=function(e,t){let[{containerWidth:n},l]=r.useReducer(y,{containerWidth:t}),i=r.useRef(null),u=r.useRef(),o=r.useCallback(t=>{var n;null==(n=u.current)||n.disconnect(),u.current=void 0,i.current=t;let r=()=>l({newContainerWidth:function(e,t){let n=null==e?void 0:e.clientWidth;if(void 0!==n&&t&&t.length>0){let e=[...t.filter(e=>e>0)].sort((e,t)=>t-e);e.push(Math.floor(e[e.length-1]/2));let r=n;n=e.find((t,n)=>t<=r||n===e.length-1)}return n}(i.current,e),newScrollbarWidth:window.innerWidth-document.documentElement.clientWidth});r(),t&&"undefined"!=typeof ResizeObserver&&(u.current=new ResizeObserver(r),u.current.observe(t))},[e]);return{containerRef:o,containerWidth:n}}(function(e){let t=r.useRef(e);return e&&t.current&&e.join()===t.current.join()||(t.current=e),t.current}(u),i);if(!n||!["rows","columns","masonry"].includes(n)||!Array.isArray(t))return null;let c=a?function({layout:e,onClick:t,containerWidth:n,targetRowHeight:r,rowConstraints:l,columns:i,spacing:u,padding:o,sizes:a}){return{layout:e,onClick:t,containerWidth:n,columns:k(i,n,[5,4,3,2],1),spacing:k(u,n,[20,15,10,5]),padding:k(o,n,[0,0,0,0,0]),targetRowHeight:k(r,n,[e=>e/5,e=>e/4,e=>e/3,e=>e/2]),rowConstraints:N(l,n),sizes:a}}({containerWidth:a,...e}):void 0,s=function(e,t,n){let{photos:r,componentsProps:l}=e,i=M(l,t)||{};if(n){let{layout:e,spacing:t,padding:l,rowConstraints:u}=n;if("rows"===e){let{singleRowMaxHeight:e}=u||{};if(e){let n=Math.floor(r.reduce((t,{width:n,height:r})=>t+n/r*e-2*l,l*r.length*2+t*(r.length-1)));n>0&&(i.containerProps=i.containerProps||{},i.containerProps.style={maxWidth:n,...i.containerProps.style})}}}return i}(e,a,c);return r.createElement(w,{layout:n,containerRef:o,renderContainer:l,containerProps:s.containerProps},c&&function(e,t,n){let{photos:l,layout:i,renderPhoto:u,renderRowContainer:o,renderColumnContainer:a}=e,c={photos:l,renderPhoto:u,componentsProps:t};return"rows"===i?r.createElement(f,{layoutOptions:n,renderRowContainer:o,...c}):"columns"===i?r.createElement(g,{layoutOptions:n,renderColumnContainer:a,...c}):r.createElement(E,{layoutOptions:n,renderColumnContainer:a,...c})}(e,s,c))}},66249:function(e,t,n){"use strict";n.d(t,{$0:function(){return ed},CT:function(){return P},Dy:function(){return ep},Eq:function(){return g},Fy:function(){return E},Ju:function(){return S},KL:function(){return k},NM:function(){return w},Nc:function(){return h},OL:function(){return eo},OV:function(){return H},P0:function(){return eb},QB:function(){return y},RD:function(){return A},Su:function(){return em},TX:function(){return ee},U2:function(){return G},VI:function(){return x},Wy:function(){return s},Xl:function(){return m},ZP:function(){return eB},_7:function(){return ea},bQ:function(){return ew},bc:function(){return ek},bt:function(){return eu},cO:function(){return p},gJ:function(){return f},hI:function(){return _},hU:function(){return Y},l6:function(){return F},mw:function(){return I},oc:function(){return X},t$:function(){return eF},wQ:function(){return $}});var r,l,i,u,o=n(67294),a=n(56567),c=n(73935);let s=(...e)=>[...e].filter(e=>Boolean(e)).join(" "),d="yarl__",h=e=>`${d}${e}`,f=e=>`--${d}${e}`,m=(e,t)=>
1`${e}${t?`_${t}`:""}`,p=e=>t=>m(e,t),v=(e,t)=>e&&e[t]?e[t]:t,g=(...e)=>()=>{e.forEach(e=>{e()})},E=(e,t,n)=>()=>{let r=o.useContext(n);if(!r)throw Error(`${e} must be used within a ${t}.Provider`);return r},b=()=>"undefined"!=typeof window;function w(e,t=0){let n=10**t;return Math.round((e+Number.EPSILON)*n)/n}let y=e=>void 0===e.type||"image"===e.type,x=(e,t)=>e.imageFit===a.rO||e.imageFit!==a.j3&&t===a.rO;function M(e){return"string"==typeof e?Number.parseInt(e,10):e}function N(e){if("number"==typeof e)return{pixel:e};if("string"==typeof e){let t=M(e);return e.endsWith("%")?{percent:t}:{pixel:t}}return{pixel:0}}let k=()=>(b()?null==window?void 0:window.devicePixelRatio:void 0)||1,C=(e,t)=>t>0?(e%t+t)%t:0,S=e=>e.length>0,P=(e,t)=>e[C(t,e.length)],R=(e,t)=>S(e)?P(e,t):void 0;function $(e,t,n){if(!n)return e;let{buttons:r,...l}=e,i=r.findIndex(e=>e===t),u=o.isValidElement(n)?o.cloneElement(n,{key:t},null):n;if(i>=0){let e=[...r];return e.splice(i,1,u),{buttons:e,...l}}return{buttons:[u,...r],...l}}function I(e,t,n=0){return Math.min(e.preload,Math.max(e.finite?t.length-1:Math.floor(t.length/2),n))}let L={open:!1,close:()=>{},index:0,slides:[],render:{},plugins:[],toolbar:{buttons:[a.t9]},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:a.j3,imageProps:{}},controller:{ref:null,focus:!0,aria:!1,touchAction:"none",closeOnPullDown:!1,closeOnBackdropClick:!1},portal:{},noScroll:{disabled:!1},on:{},styles:{},className:""};function F(e,t){return{name:e,component:t}}function z(e,t){return{module:e,children:t}}function O(e,t,n){return e.flatMap(e=>{var r;return null!==(r=function e(t,n,r){return t.module.name===n?r(t):t.children?[z(t.module,t.children.flatMap(t=>{var l;return null!==(l=e(t,n,r))&&void 0!==l?l:[]}))]:[t]}(e,t,n))&&void 0!==r?r:[]})}let W=o.createContext(null),_=E("useEvents","EventsContext",W);function D({children:e}){let[t]=o.useState({});o.useEffect(()=>()=>{Object.keys(t).forEach(e=>delete t[e])},[t]);let n=o.useMemo(()=>{let e=(e,n)=>{var r;null===(r=t[e])||void 0===r||r.splice(0,t[e].length,...t[e].filter(e=>e!==n))},n=(n,r)=>(t[n]||(t[n]=[]),t[n].push(r),()=>e(n,r)),r=(...[e,n])=>{var r;null===(r=t[e])||void 0===r||r.forEach(e=>e(n))};return{publish:r,subscribe:n,unsubscribe:e}},[t]);return o.createElement(W.Provider,{value:n},e)}let T=o.createContext(null),A=E("useLightboxProps","LightboxPropsContext",T);function H({children:e,...t}){return o.createElement(T.Provider,{value:t},e)}let U=o.createContext(null),X=E("useLightboxState","LightboxStateContext",U),B=o.createContext(null),V=E("useLightboxDispatch","LightboxDispatchContext",B);function Z(e,t){switch(t.type){case"swipe":{let{slides:n}=e,r=(null==t?void 0:t.increment)||0,l=e.globalIndex+r,i=C(l,n.length),u=R(n,i),o=r||t.duration?{increment:r,duration:t.duration,easing:t.easing}:void 0;return{slides:n,currentIndex:i,globalIndex:l,currentSlide:u,animation:o}}case"update":if(t.slides!==e.slides||t.index!==e.currentIndex)return{slides:t.slides,currentIndex:t.index,globalIndex:t.index,currentSlide:R(t.slides,t.index)};return e;default:throw Error(a.c3)}}function j({slides:e,index:t,children:n}){let[r,l]=o.useReducer(Z,{slides:e,currentIndex:t,globalIndex:t,currentSlide:R(e,t)});o.useEffect(()=>{l({type:"update",slides:e,index:t})},[e,t]);let i=o.useMemo(()=>({...r,state:r,dispatch:l}),[r,l]);return o.createElement(B.Provider,{value:l},o.createElement(U.Provider,{value:i},n))}let K=o.createContext(null),J=E("useTimeouts","TimeoutsContext",K);function q({children:e}){let[t]=o.useState([]);o.useEffect(()=>()=>{t.forEach(e=>window.clearTimeout(e)),t.splice(0,t.length)},[t]);let n=o.useMemo(()=>{let e=e=>{t.splice(0,t.length,...t.filter(t=>t!==e))},n=(n,r)=>{let l=window.setTimeout(()=>{e(l),n()},r);return t.push(l),l},r=t=>{void 0!==t&&(e(t),window.clearTimeout(t))};return{setTimeout:n,clearTimeout:r}},[t]);return o.createElement(K.Provider,{value:n},e)}let Y=o.forwardRef(function({label:e,className:t,icon:n,renderIcon:r,onClick:l,style:i,...u},c){let{styles:d,labels:f}=A();return o.createElement("button",{ref:c,type:"button","aria-label":v(f,e),className:s(h(a.bg),t),onClick:l,style:{...i,...d.button},...u},r?r():o.createElement(n,{className:h(a.vg),style:d.icon}))});function Q(e,t){let n=e=>o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",...e},t);return n.displayName=e,n}function G(e,t){return Q(e,o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),t))}function ee(e,t){return Q(e,o.createElement(o.Fragment,null,o.createElement("defs",null,o.createElement("mask",{id:"strike"},o.createElement("path",{d:"M0 0h24v24H0z",fill:"white"}),o.createElement("path",{d:"M0 0L24 24",stroke:"black",strokeWidth:4}))),o.createElement("path",{d:"M0.70707 2.121320L21.878680 23.292883",stroke:"currentColor",strokeWidth:2}),o.createElement("g",{fill:"currentColor",mask:"url(#strike)"},o.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),t)))}let et=G("Close",o.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"})),en=G("Previous",o.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),er=G("Next",o.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),el=G("Loading",o.createElement(o.Fragment,null,Array.from({length:8}).map((e,t,n)=>o.createElement("line",{key:t,x1:"12",y1:"6.5",x2:"12",y2:"1.8",strokeLinecap:"round",strokeWidth:"2.6",stroke:"currentColor",strokeOpacity:1/n.length*(t+1),transform:`rotate(${360/n.length*t}, 12, 12)`}
1)))),ei=G("Error",o.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"})),eu=b()?o.useLayoutEffect:o.useEffect;function eo(){let[e,t]=o.useState(!1);return o.useEffect(()=>{var e,n;let r=null===(e=window.matchMedia)||void 0===e?void 0:e.call(window,"(prefers-reduced-motion: reduce)");t(null==r?void 0:r.matches);let l=e=>t(e.matches);return null===(n=null==r?void 0:r.addEventListener)||void 0===n||n.call(r,"change",l),()=>{var e;return null===(e=null==r?void 0:r.removeEventListener)||void 0===e?void 0:e.call(r,"change",l)}},[]),e}function ea(e,t){let n=o.useRef(),r=o.useRef(),l=eo();return eu(()=>{var i,u,o;if(e.current&&void 0!==n.current&&!l){let{keyframes:l,duration:a,easing:c,onfinish:s}=t(n.current,e.current.getBoundingClientRect(),function(e){let t=0,n=0,r=0,l=window.getComputedStyle(e).transform,i=l.match(/matrix.*\((.+)\)/);if(i){let e=i[1].split(",").map(M);6===e.length?(t=e[4],n=e[5]):16===e.length&&(t=e[12],n=e[13],r=e[14])}return{x:t,y:n,z:r}}(e.current))||{};if(l&&a){null===(i=r.current)||void 0===i||i.cancel(),r.current=void 0;try{r.current=null===(o=(u=e.current).animate)||void 0===o?void 0:o.call(u,l,{duration:a,easing:c})}catch(e){console.error(e)}r.current&&(r.current.onfinish=()=>{r.current=void 0,null==s||s()})}}n.current=void 0}),{prepareAnimation:e=>{n.current=e},isAnimationPlaying:()=>{var e;return(null===(e=r.current)||void 0===e?void 0:e.playState)==="running"}}}function ec(){let e=o.useRef(null),t=o.useRef(),[n,r]=o.useState(),l=o.useCallback(n=>{e.current=n,t.current&&(t.current.disconnect(),t.current=void 0);let l=()=>{if(n){let e=window.getComputedStyle(n),t=e=>parseFloat(e)||0;r({width:Math.round(n.clientWidth-t(e.paddingLeft)-t(e.paddingRight)),height:Math.round(n.clientHeight-t(e.paddingTop)-t(e.paddingBottom))})}else r(void 0)};l(),n&&"undefined"!=typeof ResizeObserver&&(t.current=new ResizeObserver(l),t.current.observe(n))},[]);return{setContainerRef:l,containerRef:e,containerRect:n}}function es(){let e=o.useRef(),{setTimeout:t,clearTimeout:n}=J();return o.useCallback((r,l)=>{n(e.current),e.current=t(r,l>0?l:0)},[t,n])}function ed(e){let t=o.useRef(e);return eu(()=>{t.current=e}),o.useCallback((...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)},[])}function eh(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function ef(e,t){return o.useMemo(()=>null==e&&null==t?null:n=>{eh(e,n),eh(t,n)},[e,t])}function em(){let[e,t]=o.useState(!1);return eu(()=>{t("rtl"===window.getComputedStyle(window.document.documentElement).direction)},[]),e}function ep(){let[e]=o.useState({}),t=o.useCallback((t,n)=>{var r;null===(r=e[t])||void 0===r||r.forEach(e=>{n.isPropagationStopped()||e(n)})},[e]),n=o.useMemo(()=>({onPointerDown:e=>t(a.NZ,e),onPointerMove:e=>t(a.N4,e),onPointerUp:e=>t(a.S2,e),onPointerLeave:e=>t(a.pE,e),onPointerCancel:e=>t(a.Vt,e),onKeyDown:e=>t(a.ds,e),onKeyUp:e=>t(a.Bm,e),onWheel:e=>t(a.yq,e)}),[t]),r=o.useCallback((t,n)=>(e[t]||(e[t]=[]),e[t].unshift(n),()=>{let r=e[t];r&&r.splice(0,r.length,...r.filter(e=>e!==n))}),[e]);return{registerSensors:n,subscribeSensors:r}}function ev(e,t){let n=o.useRef(0),r=es(),l=ed((...t)=>{n.current=Date.now(),e(t)});return o.useCallback((...e)=>{r(()=>{l(e)},t-(Date.now()-n.current))},[t,l,r])}let eg=p("slide"),eE=p("slide_image");function eb({slide:e,offset:t,render:n,rect:r,imageFit:l,imageProps:i,onClick:u,onLoad:c,style:d}){var f,m,p,v,g,E,w;let[y,M]=o.useState(a.Xe),{publish:N}=_(),{setTimeout:k}=J(),C=o.useRef(null);o.useEffect(()=>{0===t&&N((0,a.J1)(y))},[t,y,N]);let S=ed(e=>{("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{e.parentNode&&(M(a.Zv),k(()=>{null==c||c(e)},0))})}),P=o.useCallback(e=>{C.current=e,(null==e?void 0:e.complete)&&S(e)},[S]),R=o.useCallback(e=>{S(e.currentTarget)},[S]),$=o.useCallback(()=>{M(a.fS)},[]),I=x(e,l),L=(e,t)=>Number.isFinite(e)?e:t,F=L(Math.max(...(null!==(m=null===(f=e.srcSet)||void 0===f?void 0:f.map(e=>e.width))&&void 0!==m?m:[]).concat(e.width?[e.width]:[]).filter(
1Boolean)),(null===(p=C.current)||void 0===p?void 0:p.naturalWidth)||0),z=L(Math.max(...(null!==(g=null===(v=e.srcSet)||void 0===v?void 0:v.map(e=>e.height))&&void 0!==g?g:[]).concat(e.height?[e.height]:[]).filter(Boolean)),(null===(E=C.current)||void 0===E?void 0:E.naturalHeight)||0),O=F&&z?{maxWidth:`min(${F}px, 100%)`,maxHeight:`min(${z}px, 100%)`}:{maxWidth:"100%",maxHeight:"100%"},W=null===(w=e.srcSet)||void 0===w?void 0:w.sort((e,t)=>e.width-t.width).map(e=>`${e.src} ${e.width}w`).join(", "),D=W&&r&&b()?`${Math.round(Math.min(r&&!I&&e.width&&e.height?r.height/e.height*e.width:Number.MAX_VALUE,r.width))}px`:void 0,{style:T,className:A,...H}=i||{};return o.createElement(o.Fragment,null,o.createElement("img",{ref:P,onLoad:R,onError:$,onClick:u,draggable:!1,className:s(h(eE()),I&&h(eE("cover")),y!==a.Zv&&h(eE("loading")),A),style:{...O,...d,...T},...H,alt:e.alt,sizes:D,srcSet:W,src:e.src}),y!==a.Zv&&o.createElement("div",{className:h(eg(a.$L))},y===a.Xe&&((null==n?void 0:n.iconLoading)?n.iconLoading():o.createElement(el,{className:s(h(a.vg),h(eg(a.Xe)))})),y===a.fS&&((null==n?void 0:n.iconError)?n.iconError():o.createElement(ei,{className:s(h(a.vg),h(eg(a.fS)))}))))}function ew(e,t,n,r,l){o.useEffect(()=>l?()=>{}:g(e(a.NZ,t),e(a.N4,n),e(a.S2,r),e(a.pE,r),e(a.Vt,r)),[e,t,n,r,l])}(r=i||(i={}))[r.NONE=0]="NONE",r[r.SWIPE=1]="SWIPE",r[r.PULL_DOWN=2]="PULL_DOWN",r[r.ANIMATION=3]="ANIMATION",(l=u||(u={}))[l.NONE=0]="NONE",l[l.SWIPE=1]="SWIPE",l[l.PULL_DOWN=2]="PULL_DOWN";let ey="wheel";function ex(e){(Math.abs(e.deltaX)>Math.abs(e.deltaY)||e.ctrlKey)&&e.preventDefault()}let eM=p("container"),eN=o.createContext(null),ek=E("useController","ControllerContext",eN),eC=F(a.l4,function({children:e,...t}){var n;let{carousel:r,animation:l,controller:c,on:d,styles:m,render:p}
1=t,[v,E]=o.useState(),b=X(),y=V(),[x,M]=o.useState(i.NONE),k=o.useRef(0),C=o.useRef(0),S=o.useRef(1),{registerSensors:P,subscribeSensors:R}=ep(),{subscribe:$,publish:I}=_(),L=es(),F=es(),z=es(),{containerRef:O,setContainerRef:W,containerRect:D}=ec(),T=ef(function(){let e=o.useRef(null);return o.useCallback(t=>{var n;t?t.addEventListener(ey,ex,{passive:!1}):null===(n=e.current)||void 0===n||n.removeEventListener(ey,ex),e.current=t},[])}(),W),A=o.useRef(null),H=ef(A,void 0),U=em(),B=e=>(U?-1:1)*("number"==typeof e?e:1),Z=ed(()=>{var e;return null===(e=O.current)||void 0===e?void 0:e.focus()}),j=ed(()=>t),K=ed(()=>b),q=o.useCallback(e=>I(a.KN,e),[I]),Y=o.useCallback(e=>I(a.Eb,e),[I]),Q=o.useCallback(()=>I(a.t9),[I]),G=e=>!(r.finite&&(B(e)>0&&0===b.currentIndex||0>B(e)&&b.currentIndex===b.slides.length-1)),ee=e=>{var t;k.current=e,null===(t=O.current)||void 0===t||t.style.setProperty(f("swipe_offset"),`${Math.round(e)}px`)},{closeOnPullDown:et}=c,en=e=>{var t,n;C.current=e,S.current=Math.min(Math.max(w(1-e/60*.5,2),.5),1),null===(t=O.current)||void 0===t||t.style.setProperty(f("pull_down_offset"),`${Math.round(e)}px`),null===(n=O.current)||void 0===n||n.style.setProperty(f("pull_down_opacity"),`${S.current}`)},{prepareAnimation:er}=ea(A,(e,t,n)=>{if(A.current&&D)return{keyframes:[{transform:`translate(0, ${e.rect.y-t.y+n.y}px)`,opacity:e.opacity},{transform:"translate(0, 0)",opacity:1}],duration:e.duration,easing:l.easing.fade}}),el=(e,t)=>{if(et){en(e);let n=0;A.current&&(n=l.fade*(t?2:1),er({rect:A.current.getBoundingClientRect(),opacity:S.current,duration:n})),z(()=>{en(0),M(i.NONE)},n),M(i.ANIMATION),t||Q()}},{prepareAnimation:ei,isAnimationPlaying:eu}=ea(A,(e,t,n)=>{var l;if(A.current&&D&&(null===(l=b.animation)||void 0===l?void 0:l.duration)){let l=N(r.spacing),i=(l.percent?l.percent*D.width/100:l.pixel)||0;return{keyframes:[{transform:`translate(${B(b.globalIndex-e.index)*(D.width+i)+e.rect.x-t.x+n.x}px, 0)`},{transform:"translate(0, 0)"}],duration:b.animation.duration,easing:b.animation.easing}}}),eo=ed(e=>{var t,n;let r=e.offset||0,u=r?l.swipe:null!==(t=l.navigation)&&void 0!==t?t:l.swipe,o=r||eu()?l.easing.swipe:l.easing.navigation,{direction:c}=e,s=null!==(n=e.count)&&void 0!==n?n:1,d=i.ANIMATION,h=u*s;if(!c){let t=null==D?void 0:D.width,n=e.duration||0,l=t?u/t*Math.abs(r):u;0!==s?(n<l?h=h/l*Math.max(n,l/5):t&&(h=u/t*(t-Math.abs(r))),c=B(r)>0?a.KN:a.Eb):h=u/2}let f=0;c===a.KN?G(B(1))?f=-s:(d=i.NONE,h=u):c===a.Eb&&(G(B(-1))?f=s:(d=i.NONE,h=u)),F(()=>{ee(0),M(i.NONE)},h=Math.round(h)),A.current&&ei({rect:A.current.getBoundingClientRect(),index:b.globalIndex}),M(d),I(a.Tn,{type:"swipe",increment:f,duration:h,easing:o})});o.useEffect(()=>{var e,t;(null===(e=b.animation)||void 0===e?void 0:e.increment)&&(null===(t=b.animation)||void 0===t?void 0:t.duration)&&L(()=>y({type:"swipe",increment:0}),b.animation.duration)},[b.animation,y,L]);let eh=[R,G,(null==D?void 0:D.width)||0,l.swipe,()=>M(i.SWIPE),e=>ee(e),(e,t)=>eo({offset:e,duration:t,count:1}),e=>eo({offset:e,count:0})],ev=[()=>{et&&M(i.PULL_DOWN)},e=>en(e),e=>el(e),e=>el(e,!0)];!function(e,t,n,r,l,i,a,c,s,d,h,f,m){let p=o.useRef(0),v=o.useRef([]),g=o.useRef(),E=o.useRef(0),b=o.useRef(u.NONE),w=o.useCallback(e=>{g.current===e.pointerId&&(g.current=void 0,b.current=u.NONE);let t=v.current;t.splice(0,t.length,...t.filter(t=>t.pointerId!==e.pointerId))},[]),y=o.useCallback(e=>{w(e),e.persist(),v.current.push(e)},[w]),x=ed(e=>{y(e)}),M=ed(e=>{if(v.current.find(t=>t.pointerId===e.pointerId)&&g.current===e.pointerId){let e=Date.now()-E.current,t=p.current;b.current===u.SWIPE?Math.abs(t)>.3*n||Math.abs(t)>5&&e<r?a(t,e):c(t):b.current===u.PULL_DOWN&&(t>60?f(t,e):m(t)),p.current=0,b.current=u.NONE}w(e)}),N=ed(e=>{let n=v.current.find(t=>t.pointerId===e.pointerId);if(n){let r=g.current===e.pointerId;
1if(0===e.buttons){r&&0!==p.current?M(e):w(n);return}let o=e.clientX-n.clientX,a=e.clientY-n.clientY;if(void 0===g.current){let n=t=>{y(e),g.current=e.pointerId,E.current=Date.now(),b.current=t};Math.abs(o)>Math.abs(a)&&Math.abs(o)>30&&t(o)?(n(u.SWIPE),l()):s&&Math.abs(a)>Math.abs(o)&&a>30&&(n(u.PULL_DOWN),d())}else r&&(b.current===u.SWIPE?(p.current=o,i(o)):b.current===u.PULL_DOWN&&(p.current=a,h(a)))}});ew(e,x,N,M)}(...eh,et,...ev),function(e,t,n,r,l,u,c,s,d){let h=o.useRef(0),f=o.useRef(0),m=o.useRef(),p=o.useRef(),v=o.useRef(0),g=o.useRef(0),{setTimeout:E,clearTimeout:b}=J(),w=o.useCallback(()=>{m.current&&(b(m.current),m.current=void 0)},[b]),y=o.useCallback(()=>{p.current&&(b(p.current),p.current=void 0)},[b]),x=ed(()=>{e!==i.SWIPE&&(h.current=0,g.current=0,w(),y())});o.useEffect(x,[e,x]);let M=ed(e=>{p.current=void 0,h.current===e&&d(h.current)}),N=ed(t=>{if(!(t.ctrlKey||Math.abs(t.deltaY)>Math.abs(t.deltaX))){if(e===i.NONE){if(Math.abs(t.deltaX)<=1.2*Math.abs(v.current)){v.current=t.deltaX;return}if(n(-t.deltaX)){if(f.current+=t.deltaX,w(),Math.abs(f.current)>30)f.current=0,v.current=0,g.current=Date.now(),u();else{let e=f.current;m.current=E(()=>{m.current=void 0,e===f.current&&(f.current=0)},l)}}}else if(e===i.SWIPE){let e=h.current-t.deltaX;if(e=Math.min(Math.abs(e),r)*Math.sign(e),h.current=e,c(e),y(),Math.abs(e)>.2*r){v.current=t.deltaX,s(e,Date.now()-g.current);return}p.current=E(()=>M(e),2*l)}else v.current=t.deltaX}});o.useEffect(()=>t(a.yq,N),[t,N])}(x,...eh);let eg=ed(()=>{c.focus&&document.querySelector(`.${h(a.SA)} .${h(eM())}`)&&Z()});o.useEffect(eg,[eg]);let eE=ed(()=>{var e;null===(e=d.view)||void 0===e||e.call(d,{index:b.currentIndex})});o.useEffect(eE,[b.globalIndex,eE]),o.useEffect(()=>g($(a.KN,e=>eo({direction:a.KN,...e})),$(a.Eb,e=>eo({direction:a.Eb,...e})),$(a.Tn,e=>y(e))),[$,eo,y]);let eb=o.useMemo(()=>({prev:q,next:Y,close:Q,focus:Z,slideRect:D?function(e,t){let n=N(t),r=void 0!==n.percent?e.width/100*n.percent:n.pixel;return{width:Math.max(e.width-2*r,0),height:Math.max(e.height-2*r,0)}}(D,r.padding):{width:0,height:0},containerRect:D||{width:0,height:0},subscribeSensors:R,containerRef:O,setCarouselRef:H,toolbarWidth:v,setToolbarWidth:E}),[q,Y,Q,Z,R,D,O,H,v,E,r.padding]);return o.useImperativeHandle(c.ref,()=>({prev:q,next:Y,close:Q,focus:Z,getLightboxProps:j,getLightboxState:K}),[q,Y,Q,Z,j,K]),o.createElement("div",{ref:T,className:s(h(eM()),h(a.aN)),style:{...x===i.SWIPE?{[f("swipe_offset")]:`${Math.round(k.current)}px`}:null,...x===i.PULL_DOWN?{[f("pull_down_offset")]:`${Math.round(C.current)}px`,[f("pull_down_opacity")]:`${S.current}`}:null,..."none"!==c.touchAction?{[f("controller_touch_action")]:c.touchAction}:null,...m.container},...c.aria?{role:"presentation","aria-live":"polite"}:null,tabIndex:-1,...P},D&&o.createElement(eN.Provider,{value:eb},e,null===(n=p.controls)||void 0===n?void 0:n.call(p)))});function eS(e){return m(a.k0,e)}function eP(e){return m("slide",e)}function eR({slide:e,offset:t}){var n,r,l,i;let u;let c=o.useRef(null),{currentIndex:d}=X(),{slideRect:f,close:m}=ek(),{render:p,carousel:{imageFit:v,imageProps:g},on:{click:E},controller:{closeOnBackdropClick:b},styles:{slide:w}}=A(),x=e=>{let t=c.current,n=e.target instanceof HTMLElement?e.target:void 0;b&&n&&t&&(n===t||Array.from(t.children).find(e=>e===n)&&n.classList.contains(h(a.af)))&&m()};return o.createElement("div",{ref:c,className:s(h(eP()),0===t&&h(eP("current")),h(a.aN)),onClick:x,style:w},(!(u=null===(n=p.slide)||void 0===n?void 0:n.call(p,{slide:e,offset:t,rect:f}))&&y(e)&&(u=o.createElement(eb,{slide:e,offset:t,render:p,rect:f,imageFit:v,imageProps:g,onClick:0===t?()=>null==E?void 0:E({index:d}):void 0})),u?o.createElement(o.Fragment,null,null===(r=p.slideHeader)||void 0===r?void 0:r.call(p,{slide:e}),(null!==(l=p.slideContainer)&&void 0!==l?l:({children:e})=>e)({slide:e,children:u}),null===(i=p.slideFooter)||void 0===i?void 0:i.call(p,{slide:e})):null))}function e$(){let e=A().styles.slide;return o.createElement("div",{className:h("slide"),style:e})}let eI=F(a.k0,function({carousel:e}){let{slides:t,currentIndex:n,globalIndex:r}=X(),{setCarouselRef:l}=ek(),i=N(e.spacing),u=N(e.padding),a=[],c=I(e,t,1);if(S(t)){for(let l=n-c;l<n;l+=1){let i=r+l-n;a.push(!e.finite||l>=0?o.createElement(eR,{key:i,slide:t[(l+c*t.length)%t.length],offset:l-n}):o.createElement(e$,{key:i}))}a.push(o.createElement(eR,{key:r,slide:t[n],offset:0}));for(let l=n+1;l<=n+c;l+=1){let i=r+l-n;a.push(!e.finite||l<=t.length-1?o.createElement(eR,{key:i,slide:t[l%t.length],offset:l-n}):o.createElement(e$,{key:i}))}}return o.createElement("div",{ref:l,className:s(h(eS()),a.length>0&&h(eS("with_slides"))),style:{[`${f(eS("slides_count"))}`]:a.length,[`${f(eS("spacing_px"))}`]:i.pixel||0,[`${f(eS("spacing_percent"))}`]:i.percent||0,[`${f(eS("padding_px"))}`]:u.pixel||0,[`${f(eS("padding_percent"))}`]:u.percent||0}},a)});function eL(){let{carousel:e}=A(),{slides:t,currentIndex:n}=X(),r=0===t.length||e.finite&&0===n,l=0===t.length||e.finite&&n===t.length-1;return{prevDisabled:r,nextDisabled:l}}function eF(e){var t;let n=em(),{publish:r}=_(),{animation:l}=A(),{prevDisabled:i,nextDisabled:u}=eL(),c=(null!==(t=l.navigation)&&void 0!==t?t:l.swipe)/2,s=ev(()=>r(a.KN),c),d=ev(()=>r(a.Eb),c),h=ed(e=>{switch(e.key){case a.PU:r(a.t9);break;case a.Sl:(n?u:i)||(n?d:s)();break;case a.NH:(n?i:u)||(n?s:d)()}});o.useEffect(()=>e(a.ds,h),[e,h])}function ez({label:e,icon:t,renderIcon:n,action:r,onClick:l,disabled:i,style:u}){return o.createElement(Y,{label:e,icon:t,renderIcon:n,className:h(`navigation_${r}`),disabled:i,onClick:l,style:u,...function(e,t=!1){let n=o.useRef();eu(()=>{t&&n.current&&(n.current=!1,e())},[t,e]);let r=o.useCallback(()=>{n.current=!0},[]),l=o.useCallback(()=>{n.current=!1},[]);return{onFocus:r,onBlur:l}}(ek().focus,i)})}let eO=F(a.Op,function({render:{buttonPrev:e,buttonNext:t,iconPrev:n,iconNext:r},styles:l}){let{prev:i,next:u,subscribeSensors:c}
1=ek(),{prevDisabled:s,nextDisabled:d}=eL();return eF(c),o.createElement(o.Fragment,null,e?e():o.createElement(ez,{label:"Previous",action:a.KN,icon:en,renderIcon:n,style:l.navigationPrev,disabled:s,onClick:i}),t?t():o.createElement(ez,{label:"Next",action:a.Eb,icon:er,renderIcon:r,style:l.navigationNext,disabled:d,onClick:u}))}),eW=h(a.Tf),e_=h(a.M9);function eD(e,t,n){let r=window.getComputedStyle(e),l=n?"padding-left":"padding-right",i=n?r.paddingLeft:r.paddingRight,u=e.style.getPropertyValue(l);return e.style.setProperty(l,`${(M(i)||0)+t}px`),()=>{u?e.style.setProperty(l,u):e.style.removeProperty(l)}}let eT=F(a.HE,function({noScroll:{disabled:e},children:t}){let n=em();return eu(()=>{if(e)return()=>{};let t=[],{body:r,documentElement:l}=document,i=Math.round(window.innerWidth-l.clientWidth);if(i>0){t.push(eD(r,i,n));let e=r.getElementsByTagName("*");for(let r=0;r<e.length;r+=1){let l=e[r];"style"in l&&"fixed"===window.getComputedStyle(l).getPropertyValue("position")&&!l.classList.contains(e_)&&t.push(eD(l,i,n))}}return r.classList.add(eW),()=>{r.classList.remove(eW),t.forEach(e=>e())}},[n,e]),o.createElement(o.Fragment,null,t)});function eA(e,t,n){let r=e.getAttribute(t);return e.setAttribute(t,n),()=>{r?e.setAttribute(t,r):e.removeAttribute(t)}}let eH=F(a.SA,function({children:e,animation:t,styles:n,className:r,on:l,portal:i,close:u}){let[d,p]=o.useState(!1),[v,g]=o.useState(!1),E=o.useRef([]),b=o.useRef(null),{setTimeout:w}=J(),{subscribe:y}=_(),x=eo(),M=x?0:t.fade;o.useEffect(()=>(p(!0),()=>{p(!1),g(!1)}),[]);let N=ed(()=>{E.current.forEach(e=>e()),E.current=[]}),k=ed(()=>{var e;g(!1),N(),null===(e=l.exiting)||void 0===e||e.call(l),w(()=>{var e;null===(e=l.exited)||void 0===e||e.call(l),u()},M)});o.useEffect(()=>y(a.t9,k),[y,k]);let C=ed(e=>{var t,n,r;e.scrollTop,g(!0),null===(t=l.entering)||void 0===t||t.call(l);let i=null!==(r=null===(n=e.parentNode)||void 0===n?void 0:n.children)&&void 0!==r?r:[];for(let t=0;t<i.length;t+=1){let n=i[t];-1===["TEMPLATE","SCRIPT","STYLE"].indexOf(n.tagName)&&n!==e&&(E.current.push(eA(n,"inert","true")),E.current.push(eA(n,"aria-hidden","true")))}E.current.push(()=>{var e,t;null===(t=null===(e=b.current)||void 0===e?void 0:e.focus)||void 0===t||t.call(e)}),w(()=>{var e;null===(e=l.entered)||void 0===e||e.call(l)},M)}),S=o.useCallback(e=>{e?C(e):N()},[C,N]);return d?(0,c.createPortal)(o.createElement("div",{ref:S,className:s(r,h("root"),h(m(a.SA,void 0)),h(a.M9),v&&h(m(a.SA,"open"))),role:"presentation","aria-live":"polite",style:{...t.fade!==L.animation.fade?{[f("fade_animation_duration")]:`${M}ms`}:null,...t.easing.fade!==L.animation.easing.fade?{[f("fade_animation_timing_function")]:t.easing.fade}:null,...n.root},onFocus:e=>{b.current||(b.current=e.relatedTarget)}},e),i.root||document.body):null}),eU=F(a.lT,function({children:e}){return o.createElement(o.Fragment,null,e)}),eX=F(a.hb,function({toolbar:{buttons:e},render:{buttonClose:t,iconClose:n},styles:r}){let{close:l,setToolbarWidth:i}=ek(),{setContainerRef:u,containerRect:c}=ec();eu(()=>{i(null==c?void 0:c.width)},[i,null==c?void 0:c.width]);let s=()=>t?t():o.createElement(Y,{key:a.t9,label:"Close",icon:et,renderIcon:n,onClick:l});return o.createElement("div",{ref:u,style:r.toolbar,className:h(m(a.hb,void 0))},null==e?void 0:e.map(e=>e===a.t9?s():e))});function eB({carousel:e,animation:t,render:n,toolbar:r,controller:l,noScroll:i,on:u,plugins:c,slides:s,index:d,...h}){let{animation:f,carousel:m,render:p,toolbar:v,controller:g,noScroll:E,on:b,slides:w,index:y,plugins:x,...N}=L,{config:k,augmentation:C}=function(e,t=[],n=[]){let r=e,l=e=>{let t=[...r];for(;t.length>0;){let n=t.pop();if((null==n?void 0:n.module.name)===e)return!0;(null==n?void 0:n.children)&&t.push(...n.children)}return!1},i=(e,t)=>{if(""===e){r=[z(t,r)];return}r=O(r,e,e=>[z(t,[e])])},u=(e,t)=>{r=O(r,e,e=>[z(e.module,[z(t,e.children)])])},o=(e,t,n)=>{r=O(r,e,e=>{var r;return[z(e.module,[...n?[z(t)]:[],...null!==(r=e.children)&&void 0!==r?r:[],...n?[]:[z(t)]])]})},c=(e,t,n)=>{r=O(r,e,e=>[...n?[z(t)]:[],e,...n?[]:[z(t)]])},s=e=>{u(a.l4,e)},d=(e,t)=>{r=O(r,e,e=>[z(t,e.children)])},h=e=>{r=O(r,e,e=>e.children)},f=e=>{n.push(e)};
1return t.forEach(e=>{e({contains:l,addParent:i,append:u,addChild:o,addSibling:c,addModule:s,replace:d,remove:h,augment:f})}),{config:r,augmentation:e=>n.reduce((e,t)=>t(e),e)}}([z(eH,[z(eT,[z(eC,[z(eI),z(eX),z(eO)])])])],c||x),S=C({animation:function(e,t={}){let{easing:n,...r}=e,{easing:l,...i}=t;return{easing:{...n,...l},...r,...i}}(f,t),carousel:{...m,...e},render:{...p,...n},toolbar:{...v,...r},controller:{...g,...l},noScroll:{...E,...i},on:{...b,...u},...N,...h});return S.open?o.createElement(H,{...S},o.createElement(j,{slides:s||w,index:M(d||y)},o.createElement(q,null,o.createElement(D,null,function e(t,n){var r;return o.createElement(t.module.component,{key:t.module.name,...n},null===(r=t.children)||void 0===r?void 0:r.map(t=>e(t,n)))}(z(eU,k),S))))):null}},85261:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(66249),l=n(67294),i=n(56567);let u={auto:!1,ref:null},o=e=>({...u,...e}),a=l.createContext(null),c=(0,r.Fy)("useFullscreen","FullscreenContext",a);function s({fullscreen:e,children:t}){let{auto:n,ref:u}=o(e),c=l.useRef(null),[s,d]=l.useState(!1),[h,f]=l.useState();(0,r.bt)(()=>{var e,t,n,r;f(!(null!==(r=null!==(n=null!==(t=null!==(e=document.fullscreenEnabled)&&void 0!==e?e:document.webkitFullscreenEnabled)&&void 0!==t?t:document.mozFullScreenEnabled)&&void 0!==n?n:document.msFullscreenEnabled)&&void 0!==r&&r))},[]);let m=l.useCallback(()=>{var e,t,n;return null!==(n=null!==(t=null!==(e=document.fullscreenElement)&&void 0!==e?e:document.webkitFullscreenElement)&&void 0!==t?t:document.mozFullScreenElement)&&void 0!==n?n:document.msFullscreenElement},[]),p=l.useCallback(()=>{let e=c.current;if(e)try{e.requestFullscreen?e.requestFullscreen().catch(()=>{}):e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.msRequestFullscreen&&e.msRequestFullscreen()}catch(e){}},[]),v=l.useCallback(()=>{if(m())try{document.exitFullscreen?document.exitFullscreen().catch(()=>{}):document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen()}catch(e){}},[m]),g=l.useCallback(()=>{m()===c.current?d(!0):d(!1)},[m]);l.useEffect(()=>{let e=["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"];return e.forEach(e=>{document.addEventListener(e,g)}),()=>{e.forEach(e=>{document.removeEventListener(e,g)})}},[g]);let E=(0,r.$0)(()=>{var e;return null===(e=n?p:null)||void 0===e?void 0:e()});l.useEffect(()=>(E(),()=>v()),[E,v]);let b=l.useMemo(()=>({fullscreen:s,disabled:h,enter:p,exit:v}),[s,h,p,v]);return l.useImperativeHandle(u,()=>b,[b]),l.createElement("div",{ref:c,className:(0,r.Wy)((0,r.Nc)(i.zr),(0,r.Nc)(i.yS))},l.createElement(a.Provider,{value:b},t))}let d=(0,r.U2)("EnterFullscreen",l.createElement("path",{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"})),h=(0,r.U2)("ExitFullscreen",l.createElement("path",{d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"}));function f(){var e;let{fullscreen:t,disabled:n,enter:i,exit:u}=c(),{render:o}=(0,r.RD)();return n?null:o.buttonFullscreen?l.createElement(l.Fragment,null,null===(e=o.buttonFullscreen)||void 0===e?void 0:e.call(o,{fullscreen:t,disabled:n,enter:i,exit:u})):l.createElement(r.hU,{disabled:n,label:t?"Exit Fullscreen":"Enter Fullscreen",icon:t?h:d,renderIcon:t?o.iconExitFullscreen:o.iconEnterFullscreen,onClick:t?u:i})}function m({augment:e,contains:t,addParent:n}){e(({fullscreen:e,toolbar:t,...n})=>({toolbar:(0,r.wQ)(t,i.zr,l.createElement(f,null)),fullscreen:o(e),...n})),n(t(i.dA)?i.dA:i.l4,(0,r.l6)(i.zr,s))}},23685:function(e,t,n){"use strict";n.d(t,{Z:function(){return $}});var r=n(66249),l=n(67294),i=n(56567);let u={ref:null,position:"bottom",width:120,height:80,border:1,borderRadius:4,padding:4,gap:16,imageFit:"contain",vignette:!0},o=e=>({...u,...e});function a(){let{thumbnails:e}=(0,r.RD)();return o(e)}let c=e=>(0,r.Xl)(i.dA,e),s=e=>c((0,r.Xl)("thumbnail",e)),d=(0,r.U2)("VideoThumbnail",l.createElement("path",{d:"M10 16.5l6-4.5-6-4.5v9zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"})),h=(0,r.U2)("UnknownThumbnail",l.createElement("path",{d:"M23 18V6c0-1.1-.9-2-2-2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zM8.5 12.5l2.5 3.01L14.5 11l4.5 6H5l3.5-4.5z"})),f=(0,r.cO)("active"),m=(0,r.cO)("fadein"),p=(0,r.cO)("fadeout"),v=(0,r.cO)("placeholder"),g="delay",E="duration";function b({slide:e,onClick:t,active:n,fadeIn:u,fadeOut:o,placeholder:b,onLoseFocus:w}
1){let y=l.useRef(null),{render:x,styles:M}=(0,r.RD)(),{width:N,height:k,imageFit:C}=a(),S=(0,r.$0)(w);return l.useEffect(()=>{o&&document.activeElement===y.current&&S()},[o,S]),l.createElement("button",{ref:y,type:"button",className:(0,r.Wy)((0,r.Nc)(i.aN),(0,r.Nc)(s()),n&&(0,r.Nc)(s(f())),u&&(0,r.Nc)(s(m())),o&&(0,r.Nc)(s(p())),b&&(0,r.Nc)(s(v()))),style:{...u?{[(0,r.gJ)(s(m(E)))]:`${u.duration}ms`,[(0,r.gJ)(s(m(g)))]:`${u.delay}ms`}:null,...o?{[(0,r.gJ)(s(p(E)))]:`${o.duration}ms`,[(0,r.gJ)(s(p(g)))]:`${o.delay}ms`}:null,...M.thumbnail},onClick:t},e&&function({slide:e,render:t,rect:n,imageFit:u}){var o;let a=null===(o=t.thumbnail)||void 0===o?void 0:o.call(t,{slide:e,render:t,rect:n,imageFit:u});if(a)return a;let f=(0,r.Nc)(s(i.vg));return(0,r.QB)(e)?l.createElement(r.P0,{slide:e,render:t,rect:n,imageFit:u}):"video"===e.type?l.createElement(l.Fragment,null,"poster"in e&&l.createElement("img",{alt:"",src:e.poster,className:(0,r.Wy)((0,r.Nc)(i.yS),(0,r.Nc)(c("contain_image")))}),l.createElement(d,{className:f})):l.createElement(h,{className:f})}({slide:e,render:x,rect:{width:N,height:k},imageFit:C}))}function w(e){return["top","bottom"].includes(e)}function y(e,t,n){return t+2*(e.border+e.padding)+(n?e.gap:0)}function x({visible:e,containerRef:t}){let n=l.useRef(null),o=(0,r.Su)(),{publish:d,subscribe:h}=(0,r.hI)(),{carousel:f,styles:m}=(0,r.RD)(),{slides:p,globalIndex:v,animation:g}=(0,r.oc)(),{registerSensors:E,subscribeSensors:x}=(0,r.Dy)();(0,r.t$)(x);let M=a(),{position:N,width:k,height:C,border:S,borderStyle:P,borderColor:R,borderRadius:$,padding:I,gap:L,vignette:F}=M,z=(null==g?void 0:g.duration)||0,O=z>0&&(null==g?void 0:g.increment)||0,{prepareAnimation:W}=(0,r._7)(n,e=>({keyframes:w(N)?[{transform:`translateX(${(o?-1:1)*y(M,k,!0)*O+e}px)`},{transform:"translateX(0)"}]:[{transform:`translateY(${y(M,C,!0)*O+e}px)`},{transform:"translateY(0)"}],duration:z,easing:null==g?void 0:g.easing})),_=(0,r.$0)(()=>{let e=0;if(t.current&&n.current){let r=t.current.getBoundingClientRect(),l=n.current.getBoundingClientRect();e=w(N)?l.left-r.left-(r.width-l.width)/2:l.top-r.top-(r.height-l.height)/2}W(e)});l.useEffect(()=>(0,r.Eq)(h(i.Tn,_)),[h,_]);let D=(0,r.mw)(f,p),T=[];if((0,r.Ju)(p)){if(O<0)for(let e=v-D+O;e<v-D;e+=1)T.push({slide:null,index:e,placeholder:!0});for(let e=v-D-Math.max(O,0);e<v;e+=1)f.finite&&e<0?T.push({slide:null,index:e,placeholder:!0}):T.push({slide:(0,r.CT)(p,e),index:e});T.push({slide:(0,r.CT)(p,v),index:v});for(let e=v+1;e<=v+D-Math.min(O,0);e+=1)!f.finite||e<=p.length-1?T.push({slide:(0,r.CT)(p,e),index:e}):T.push({slide:null,index:e,placeholder:!0});if(O>0)for(let e=v+D+1;e<=v+D+O;e+=1)T.push({slide:null,index:e,placeholder:!0})}let A=e=>()=>{e>v?d(i.Eb,{count:e-v}):e<v&&d(i.KN,{count:v-e})};return l.createElement("div",{className:(0,r.Wy)((0,r.Nc)(c("container")),(0,r.Nc)(i.aN)),style:{...e?null:{display:"none"},...k!==u.width?{[(0,r.gJ)(s("width"))]:`${y(M,k)}px`}:null,...C!==u.height?{[(0,r.gJ)(s("height"))]:`${y(M,C)}px`}:null,...S!==u.border?{[(0,r.gJ)(s("border"))]:`${S}px`}:null,...P?{[(0,r.gJ)(s("border_style"))]:P}:null,...R?{[(0,r.gJ)(s("border_color"))]:R}:null,...$!==u.borderRadius?{[(0,r.gJ)(s("border_radius"))]:`${$}px`}:null,...I!==u.padding?{[(0,r.gJ)(s("padding"))]:`${I}px`}:null,...L!==u.gap?{[(0,r.gJ)(s("gap"))]:`${L}px`}:null,...m.thumbnailsContainer}},l.createElement("nav",{ref:n,style:m.thumbnailsTrack,className:(0,r.Wy)((0,r.Nc)(c("track")),(0,r.Nc)(i.aN)),tabIndex:-1,...E},T.map(({slide:e,index:t,placeholder:r})=>{let i=z/Math.abs(O||1);return l.createElement(b,{key:[`${t}`,r&&"placeholder"].filter(Boolean).join("-"),slide:e,active:t===v,fadeIn:O>0&&t>v+D-O&&t<=v+D||O<0&&t<v-D-O&&t>=v-D?{duration:i,delay:((O>0?t-(v+D-O):v-D-O-t)-1)*i}:void 0,fadeOut:O>0&&t<v-D||O<0&&t>v+D?{duration:i,delay:(O>0?O-(v-D-t):-O-(t-(v+D)))*i}:void 0,placeholder:Boolean(r),onClick:A(t),onLoseFocus:()=>{var e;return null===(e=n.current)||void 0===e?void 0:e.focus()}})})),F&&l.createElement("div",{className:(0,r.Nc)(c("vignette"))}))}let M=l.createContext(null),N=(0,r.Fy)("useThumbnails","ThumbnailsContext",M);function k({children:e,...t}){let[n,i]=l.useState(!0),u=l.useRef(null),{ref:a,position:s}=o(t.thumbnails),d=l.useMemo(()=>({visible:n,show:()=>i(!0),hide:()=>i(!1)}),[n]);return l.useImperativeHandle(a,()=>d,[d]),l.createElement(r.OV,{...t},l.createElement(M.Provider,{value:d},l.createElement("div",{ref:u,className:(0,r.Wy)((0,r.Nc)(c()),(0,r.Nc)(c(`${s}`)))}
1,["start","top"].includes(s)&&l.createElement(x,{containerRef:u,visible:n}),l.createElement("div",{className:(0,r.Nc)(c("wrapper"))},e),["end","bottom"].includes(s)&&l.createElement(x,{containerRef:u,visible:n}))))}let C=()=>l.createElement(l.Fragment,null,l.createElement("path",{strokeWidth:2,stroke:"currentColor",strokeLinejoin:"round",fill:"none",d:"M3 5l18 0l0 14l-18 0l0-14z"}),l.createElement("path",{d:"M5 14h4v3h-4zM10 14h4v3h-4zM15 14h4v3h-4z"})),S=(0,r.U2)("ThumbnailsVisible",C()),P=(0,r.TX)("ThumbnailsHidden",C());function R(){let{visible:e,show:t,hide:n}=N(),{render:i}=(0,r.RD)();return i.buttonThumbnails?l.createElement(l.Fragment,null,i.buttonThumbnails({visible:e,show:t,hide:n})):l.createElement(r.hU,{label:e?"Hide thumbnails":"Show thumbnails",icon:e?S:P,renderIcon:e?i.iconThumbnailsVisible:i.iconThumbnailsHidden,onClick:e?n:t})}function $({augment:e,contains:t,append:n,addParent:u}){e(({thumbnails:e,toolbar:t,...n})=>{let u=o(e);return{toolbar:(0,r.wQ)(t,i.dA,u.showToggle?l.createElement(R,null):null),thumbnails:u,...n}});let a=(0,r.l6)(i.dA,k);t(i.zr)?n(i.zr,a):u(i.l4,a)}},35644:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n(66249),l=n(67294),i=n(56567);let u={maxZoomPixelRatio:1,zoomInMultiplier:2,doubleTapDelay:300,doubleClickDelay:500,doubleClickMaxStops:2,keyboardMoveDistance:50,wheelZoomDistanceFactor:100,pinchZoomDistanceFactor:100,scrollToZoom:!1},o=e=>({...u,...e});function a(){let{zoom:e}=(0,r.RD)();return o(e)}function c(e,t){return((e.clientX-t.clientX)**2+(e.clientY-t.clientY)**2)**.5}let s=l.createContext(null),d=(0,r.Fy)("useZoom","ZoomControllerContext",s);function h({children:e}){let[t,n]=l.useState(),{slideRect:u}=(0,r.bc)(),{imageRect:o,maxZoom:d}=function(e,t){var n,l;let i={width:0,height:0},u={width:0,height:0},{slides:o,currentIndex:c}=(0,r.oc)(),{imageFit:s}=(0,r.RD)().carousel,{maxZoomPixelRatio:d}=a();if(e&&c<o.length){let a={...o[c],...t};if((0,r.QB)(a)){let t=(0,r.VI)(a,s),o=Math.max(...((null===(n=a.srcSet)||void 0===n?void 0:n.map(e=>e.width))||[]).concat(a.width?[a.width]:[])),c=Math.max(...((null===(l=a.srcSet)||void 0===l?void 0:l.map(e=>e.height))||[]).concat(a.height?[a.height]:[]));o>0&&c>0&&e.width>0&&e.height>0&&(u={width:(u=t?{width:Math.round(Math.min(o,e.width/e.height*c)),height:Math.round(Math.min(c,e.height/e.width*o))}:{width:o,height:c}).width*d,height:u.height*d},i=t?{width:Math.min(e.width,u.width,o),height:Math.min(e.height,u.height,c)}:{width:Math.round(Math.min(e.width,e.height/c*o,o)),height:Math.round(Math.min(e.height,e.width/o*c,c))})}}let h=i.width?Math.max((0,r.NM)(u.width/i.width,5),1):1;return{imageRect:i,maxZoom:h}}(u,null==t?void 0:t.imageDimensions),{zoom:h,offsetX:f,offsetY:m,disabled:p,changeZoom:v,changeOffsets:g,zoomIn:E,zoomOut:b}=function(e,t,n){let[i,u]=l.useState(1),[o,c]=l.useState(0),[s,d]=l.useState(0),h=function(e,t,n,i){let u=l.useRef(),o=l.useRef(),{zoom:a}=(0,r.RD)().animation,c=(0,r.OL)(),s=(0,r.$0)(()=>{var r,l,s;if(null===(r=u.current)||void 0===r||r.cancel(),u.current=void 0,o.current&&(null==i?void 0:i.current)){try{u.current=null===(s=(l=i.current).animate)||void 0===s?void 0:s.call(l,[{transform:o.current},{transform:`scale(${e}) translateX(${t}px) translateY(${n}px)`}],{duration:c?0:null!=a?a:500,easing:u.current?"ease-out":"ease-in-out"})}catch(e){console.error(e)}o.current=void 0,u.current&&(u.current.onfinish=()=>{u.current=void 0})}});return(0,r.bt)(s,[e,t,n,s]),l.useCallback(()=>{o.current=(null==i?void 0:i.current)?window.getComputedStyle(i.current).transform:void 0},[i])}(i,o,s,n),{slides:f,currentIndex:m,globalIndex:p}=(0,r.oc)(),{containerRect:v,slideRect:g}=(0,r.bc)(),{zoomInMultiplier:E}=a(),b=function(e,t){if(t<e.length){let n=e[t];if((0,r.QB)(n))return n.src}}(f,m),w=!b||!(null==n?void 0:n.current);(0,r.bt)(()=>{u(1),c(0),d(0)},[p,b]);let y=l.useCallback((t,n,r)=>{let l=r||i,u=o-(t||0),a=s-(n||0),h=(e.width*l-g.width)/2/l,f=(e.height*l-g.height)/2/l;c(Math.min(Math.abs(u),Math.max(h,0))*Math.sign(u)),d(Math.min(Math.abs(a),Math.max(f,0))*Math.sign(a))},[i,o,s,g,e.width,e.height]),x=l.useCallback((e,n,l,o)=>{let a=(0,r.NM)(Math.min(Math.max(e+.001<t?e:t,1),t),5);a!==i&&(n||h(),y(l?l*(1/i-1/a):0,o?o*(1/i-1/a):0,a),u(a))},[i,t,y,h]),M=(0,r.$0)(()=>{i>1&&(i>t&&x(t,!0),y())});(0,r.bt)(M,[v.width,v.height,M]);let N=l.useCallback(()=>x(i*E),[i,E,x]),k=l.useCallback(()=>x(i/E),[i,E,x]);return{zoom:i,offsetX:o,offsetY:s,disabled:w,changeOffsets:y,changeZoom:x,zoomIn:N,zoomOut:k}}(o,d,null==t?void 0:t.zoomWrapperRef);!function(e,t){let{on:n}=(0,r.RD)(),i=(0,r.$0)(()=>{var r;t||null===(r=n.zoom)||void 0===r||r.call(n,{zoom:e})});l.useEffect(i,[e,i])}(h,p),function(e,t,n,u,o,s){let d=l.useRef([]),h=l.useRef(0),f=l.useRef(),{globalIndex:m}=(0,r.oc)(),{containerRef:p,subscribeSensors:v}=(0,r.bc)(),{keyboardMoveDistance:g,zoomInMultiplier:E,wheelZoomDistanceFactor:b,scrollToZoom:w,doubleTapDelay:y,doubleClickDelay:x,doubleClickMaxStops:M,pinchZoomDistanceFactor:N}=a(),k=l.useCallback(e=>{if(p.current){let{pageX:t,pageY:n}=e,{scrollX:r,scrollY:l}=window,{left:i,top:u,width:o,height:a}=p.current.getBoundingClientRect();return[t-i-r-o/2,n-u-l-a/2]}return[]},[p]),C=(0,r.$0)(t=>{let n=()=>{t.preventDefault(),t.stopPropagation()};if(e>1){let e=(e,t)=>
1{n(),o(e,t)};"ArrowDown"===t.key?e(0,g):"ArrowUp"===t.key?e(0,-g):"ArrowLeft"===t.key?e(-g,0):"ArrowRight"===t.key&&e(g,0)}let r=e=>{n(),u(e)},l=()=>t.getModifierState("Meta");"+"===t.key||"="===t.key&&l()?r(e*E):"-"===t.key||"_"===t.key&&l()?r(e/E):"0"===t.key&&l()&&r(1)}),S=(0,r.$0)(t=>{if((t.ctrlKey||w)&&Math.abs(t.deltaY)>Math.abs(t.deltaX)){t.stopPropagation(),u(e*(1-t.deltaY/b),!0,...k(t));return}e>1&&(t.stopPropagation(),w||o(t.deltaX,t.deltaY))}),P=l.useCallback(e=>{let t=d.current;t.splice(0,t.length,...t.filter(t=>t.pointerId!==e.pointerId))},[]),R=l.useCallback(e=>{P(e),e.persist(),d.current.push(e)},[P]),$=(0,r.$0)(n=>{var r;let l=d.current;if(!(null===(r=null==s?void 0:s.current)||void 0===r?void 0:r.contains(n.target)))return;e>1&&n.stopPropagation();let{timeStamp:i}=n;0===l.length&&i-h.current<("touch"===n.pointerType?y:x)?(h.current=0,u(e!==t?e*Math.max(t**(1/M),E):1,!1,...k(n))):h.current=i,R(n),2===l.length&&(f.current=c(l[0],l[1]))}),I=(0,r.$0)(t=>{let n=d.current,r=n.find(e=>e.pointerId===t.pointerId);if(2===n.length&&f.current){t.stopPropagation(),R(t);let r=c(n[0],n[1]),l=r-f.current;Math.abs(l)>0&&(u(e*(1+l/N),!0,...n.map(e=>k(e)).reduce((e,t)=>t.map((t,n)=>e[n]+t/2))),f.current=r);return}e>1&&(t.stopPropagation(),r&&(1===n.length&&o((r.clientX-t.clientX)/e,(r.clientY-t.clientY)/e),R(t)))}),L=l.useCallback(e=>{let t=d.current;2===t.length&&t.find(t=>t.pointerId===e.pointerId)&&(f.current=void 0),P(e)},[P]),F=l.useCallback(()=>{let e=d.current;e.splice(0,e.length),h.current=0,f.current=void 0},[]);(0,r.bQ)(v,$,I,L,n),l.useEffect(F,[m,F]),l.useEffect(()=>n?()=>{}:(0,r.Eq)(F,v(i.ds,C),v(i.yq,S)),[n,v,F,C,S])}(h,d,p,v,g,null==t?void 0:t.zoomWrapperRef);let w=l.useMemo(()=>({zoom:h,maxZoom:d,offsetX:f,offsetY:m,disabled:p,zoomIn:E,zoomOut:b,changeZoom:v}),[h,d,f,m,p,E,b,v]);l.useImperativeHandle(a().ref,()=>w,[w]);let y=l.useMemo(()=>({...w,setZoomWrapper:n}),[w,n]);return l.createElement(s.Provider,{value:y},e)}let f=(0,r.U2)("ZoomIn",l.createElement(l.Fragment,null,l.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),l.createElement("path",{d:"M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"}))),m=(0,r.U2)("ZoomOut",l.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zM7 9h5v1H7z"})),p=l.forwardRef(function({zoomIn:e,onLoseFocus:t},n){let i=l.useRef(!1),u=l.useRef(!1),{zoom:o,maxZoom:a,zoomIn:c,zoomOut:s,disabled:h}=d(),{render:p}=(0,r.RD)(),v=h||(e?o>=a:o<=1);return l.useEffect(()=>{v&&i.current&&u.current&&t(),v||(i.current=!0)},[v,t]),l.createElement(r.hU,{ref:n,disabled:v,label:e?"Zoom in":"Zoom out",icon:e?f:m,renderIcon:e?p.iconZoomIn:p.iconZoomOut,onClick:e?c:s,onFocus:()=>{u.current=!0},onBlur:()=>{u.current=!1}})});function v(){let e=l.useRef(null),t=l.useRef(null),{focus:n}=(0,r.bc)(),i=l.useCallback(e=>{var t,r;(null===(t=e.current)||void 0===t?void 0:t.disabled)?n():null===(r=e.current)||void 0===r||r.focus()},[n]),u=l.useCallback(()=>i(e),[i]),o=l.useCallback(()=>i(t),[i]);return l.createElement(l.Fragment,null,l.createElement(p,{zoomIn:!0,ref:e,onLoseFocus:o}),l.createElement(p,{ref:t,onLoseFocus:u}))}function g(){let{render:e}=(0,r.RD)(),t=d();
1return e.buttonZoom?l.createElement(l.Fragment,null,e.buttonZoom(t)):l.createElement(v,null)}function E({current:e,preload:t},{type:n,source:r}){switch(n){case"fetch":if(!e)return{current:r};return{current:e,preload:r};case"done":if(r===t)return{current:r};return{current:e,preload:t};default:throw Error(i.c3)}}function b(e){var t,n;let[{current:i,preload:u},o]=l.useReducer(E,{}),{slide:a,rect:c,imageFit:s,render:d}=e,h=a.srcSet.sort((e,t)=>e.width-t.width),f=null!==(t=a.width)&&void 0!==t?t:h[h.length-1].width,m=null!==(n=a.height)&&void 0!==n?n:h[h.length-1].height,p=(0,r.VI)(a,s),v=Math.max(...h.map(e=>e.width)),g=Math.min((p?Math.max:Math.min)(c.width,f*(c.height/m)),v),b=(0,r.KL)(),w=(0,r.$0)(()=>{var e;let t=null!==(e=h.find(e=>e.width>=g*b))&&void 0!==e?e:h[h.length-1];(!i||h.findIndex(e=>e.src===i)<h.findIndex(e=>e===t))&&o({type:"fetch",source:t.src})});(0,r.bt)(w,[c.width,c.height,b,w]);let y=(0,r.$0)(e=>o({type:"done",source:e})),x={WebkitTransform:"translateZ(0)"};return p||Object.assign(x,c.width/c.height<f/m?{width:"100%",height:"auto"}:{width:"auto",height:"100%"}),l.createElement(l.Fragment,null,u&&u!==i&&l.createElement(r.P0,{key:"preload",...e,slide:{...a,src:u,srcSet:void 0},style:{position:"absolute",visibility:"hidden",...x},onLoad:()=>y(u),render:{...d,iconLoading:()=>null,iconError:()=>null}}),i&&l.createElement(r.P0,{key:"current",...e,slide:{...a,src:i,srcSet:void 0},style:x}))}function w({render:e,slide:t,offset:n,rect:u}){var o,a;let[c,s]=l.useState(),h=l.useRef(null),{zoom:f,maxZoom:m,offsetX:p,offsetY:v,setZoomWrapper:g}=d(),{carousel:E,on:w}=(0,r.RD)(),{currentIndex:y}=(0,r.oc)();(0,r.bt)(()=>0===n?(g({zoomWrapperRef:h,imageDimensions:c}),()=>g(void 0)):()=>{},[n,c,g]);let x=null===(o=e.slide)||void 0===o?void 0:o.call(e,{slide:t,offset:n,rect:u,zoom:f,maxZoom:m});if(!x&&(0,r.QB)(t)){let i={slide:t,offset:n,rect:u,render:e,imageFit:E.imageFit,imageProps:E.imageProps,onClick:0===n?()=>{var e;return null===(e=w.click)||void 0===e?void 0:e.call(w,{index:y})}:void 0};x=((null===(a=t.srcSet)||void 0===a?void 0:a.length)||0)>0?l.createElement(b,{key:t.src,...i,slide:t,rect:0===n?{width:u.width*f,height:u.height*f}:u}):l.createElement(r.P0,{key:t.src,onLoad:e=>s({width:e.naturalWidth,height:e.naturalHeight}),...i})}return x?l.createElement("div",{ref:h,className:(0,r.Wy)((0,r.Nc)(i.yS),(0,r.Nc)(i.aN),(0,r.Nc)(i.af)),style:0===n?{transform:`scale(${f}) translateX(${p}px) translateY(${v}px)`}:void 0},x):null}let y=({augment:e,addModule:t})=>{e(({toolbar:e,render:t,zoom:n,...u})=>({zoom:o(n),toolbar:(0,r.wQ)(e,i.xc,l.createElement(g,null)),render:{...t,slide:e=>{var n;return(0,r.QB)(e.slide)?l.createElement(w,{render:t,...e}):null===(n=t.slide)||void 0===n?void 0:n.call(t,e)}},...u})),t((0,r.l6)(i.xc,h))}},56567:function(e,t,n){"use strict";n.d(t,{$L:function(){return v},Bm:function(){return F},Eb:function(){return N},HE:function(){return u},J1:function(){return g},KN:function(){return M},M9:function(){return y},N4:function(){return P},NH:function(){return _},NZ:function(){return S},Op:function(){return i},PU:function(){return O},S2:function(){return R},SA:function(){return o},Sl:function(){return W},Tf:function(){return w},Tn:function(){return k},Vt:function(){return I},Xe:function(){return f},Zv:function(){return p},aN:function(){return b},af:function(){return x},bg:function(){return D},c3:function(){return U},dA:function(){return d},ds:function(){return L},fS:function(){return m},hb:function(){return c},j3:function(){return A},k0:function(){return r},l4:function(){return l},lT:function(){return a},pE:function(){return $},rO:function(){return H},t9:function(){return C},vg:function(){return T},xc:function(){return h},yS:function(){return E},yq:function(){return z},zr:function(){return s}});let r="carousel",l="controller",i="navigation",u="no-scroll",o="portal",a="root",c="toolbar",s="fullscreen",d="thumbnails",h="zoom",f="loading",m="error",p="complete",v="placeholder",g=e=>`active-slide-${e}`;g(f),g("playing"),g(m),g(p);let E="fullsize",b="flex_center",w="no_scroll",y="no_scroll_padding",x="slide_wrapper",M="prev",N="next",k="swipe",C="close",S="onPointerDown",P="onPointerMove",R="onPointerUp",$="onPointerLeave",I="onPointerCancel",L="onKeyDown",F="onKeyUp",z="onWheel",O="Escape",W="ArrowLeft",_="ArrowRight",D="button",T="icon",A="contain",H="cover",U="Unknown action type"}}]);

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.