PageSourceSearch

https://phosphoro.com/_next/static/chunks/9567-72bc99c39ebf6fd0.js

js phosphoro.com collected 2026-10-06 23:51:24 UTC 45,757 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];if(null!=n)for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:fe-phosphoro-com":!0});var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="0e691a56-4b41-4c31-a356-2e59128063f2",e._sentryDebugIdIdentifier="sentry-dbid-0e691a56-4b41-4c31-a356-2e59128063f2")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9567],{1909:(e,t,n)=>{n.d(t,{A9:()=>W,AH:()=>m,Bv:()=>E,C:()=>L,CC:()=>w,EC:()=>b,HR:()=>y,I1:()=>p,Jy:()=>s,Kv:()=>l,Ky:()=>i,Nc:()=>R,OT:()=>u,P9:()=>g,QC:()=>h,QQ:()=>f,Qe:()=>d,Qo:()=>v,RK:()=>F,Td:()=>U,Ue:()=>N,Uj:()=>Z,V:()=>Y,b6:()=>a,e7:()=>X,h0:()=>C,j7:()=>O,jR:()=>$,jn:()=>H,kJ:()=>o,mY:()=>r,or:()=>K,pc:()=>k,pq:()=>c,qq:()=>S,s:()=>_,sI:()=>I,t$:()=>T,tC:()=>x,tD:()=>z,tu:()=>D,uF:()=>A,vg:()=>M,zn:()=>P});let r="carousel",l="controller",i="navigation",a="no-scroll",o="portal",u="root",c="toolbar",s="counter",d="fullscreen",h="inline",f="thumbnails",m="zoom",v="loading",p="error",g="complete",E="placeholder",b=e=>`active-slide-${e}`;b(v),b("playing"),b(p),b(g);let w="fullsize",x="flex_center",y="no_scroll",M="no_scroll_padding",C="slide",k="slide_wrapper",N="slide_wrapper_interactive",P="prev",R="next",I="swipe",L="close",S="onPointerDown",F="onPointerMove",D="onPointerUp",z="onPointerLeave",_="onPointerCancel",A="onKeyDown",T="onKeyUp",O="onWheel",K="Escape",W="ArrowLeft",H="ArrowRight",Z="button",$="icon",U="contain",X="cover",Y="Unknown action type"},27933:(e,t,n)=>{n.d(t,{A:()=>y});var r=n(12115),l=n(45476),i=n(1909);let a={minZoom:1,maxZoomPixelRatio:1,zoomInMultiplier:2,doubleTapDelay:300,doubleClickDelay:500,doubleClickMaxStops:2,keyboardMoveDistance:50,wheelZoomDistanceFactor:100,pinchZoomDistanceFactor:100,pinchZoomV4:!1,scrollToZoom:!1,maxZoom:8};function o(e){let{minZoom:t,...n}={...a,...e};return{minZoom:Math.min(Math.max(t,Number.EPSILON),1),...n}}function u(){let{zoom:e}=(0,l.D$)();return o(e)}function c(e,t){return Math.hypot(e.clientX-t.clientX,e.clientY-t.clientY)}function s(e,t,n=100,r=2){return e*Math.min(1+Math.abs(t/n),r)**Math.sign(t)}let d=r.createContext(null),h=(0,l.Tz)("useZoom","ZoomControllerContext",d);function f({children:e}){let[t,n]=r.useState(),{slideRect:o}=(0,l.as)(),{ref:h,minZoom:f}=u(),{imageRect:m,maxZoom:v}=function(e,t){var n,r,i;let o={width:0,height:0},c={width:0,height:0},{currentSlide:s}=(0,l.mp)(),{imageFit:d}=(0,l.D$)().carousel,{maxZoomPixelRatio:h,maxZoom:f}=u();if(e&&s){let i={...s,...t};if((0,l.tx)(i)){let t=(0,l.QJ)(i,d),a=Math.max(...((null==(n=i.srcSet)?void 0:n.map(e=>e.width))||[]).concat(i.width?[i.width]:[])),u=Math.max(...((null==(r=i.srcSet)?void 0:r.map(e=>e.height))||[]).concat(i.height?[i.height]:[]));a>0&&u>0&&e.width>0&&e.height>0&&(c={width:(c=t?{width:Math.round(Math.min(a,e.width/e.height*u)),height:Math.round(Math.min(u,e.height/e.width*a))}:{width:a,height:u}).width*h,height:c.height*h},o=t?{width:Math.min(e.width,c.width,a),height:Math.min(e.height,c.height,u)}:{width:Math.round(Math.min(e.width,e.height/u*a,a)),height:Math.round(Math.min(e.height,e.width/a*u,u))})}else e.width>0&&e.height>0&&(o=t&&t.width>0&&t.height>0?{width:Math.min(e.width,t.width),height:Math.min(e.height,t.height)}:{width:e.width,height:e.height})}let m=s&&o.width?(0,l.tx)(s)?Math.max((0,l.LI)(c.width/o.width,5),1):Math.max("function"==typeof f?null!=(i=f(s))?i:a.maxZoom:f,1):1;return{imageRect:o,maxZoom:m}}(o,null==t?void 0:t.imageDimensions),{zoom:p,offsetX:g,offsetY:E,disabled:b,changeZoom:w,changeOffsets:x,zoomIn:y,zoomOut:M}=function(e,t,n){let[i,a]=r.useState(1),[o,c]=r.useState(0),[s,d]=r.useState(0),h=function(e,t,n,i){let a=r.useRef(void 0),o=r.useRef(void 0),{zoom:u}=(0,l.D$)().animation,c=(0,l.iJ)(),s=(0,l.DK)(()=>{var r,l,s;if(null==(r=a.current)||r.cancel(),a.current=void 0,o.current&&(null==i?void 0:i.current)){try{a.current=null==(s=(l=i.current).animate)?void 0:s.call(l,[{transform:o.current},{transform:`scale(${e}) translateX(${t}px) translateY(${n}px)`}],{duration:c?0:null!=u?u:500,easing:a.current?"ease-out":"ease-in-out"})}catch(e){console.error(e)}o.current=void 0,a.current&&(a.current.onfinish=()=>{a.current=void 0})}});return(0,l.Nf)(s,[e,t,n,s]),r.useCallback(()=>{o.current=(null==i?void 0:i.current)?window.getComputedStyle(i.current).transform:void 0},[i])}(i,o,s,n),{currentSlide:f,globalIndex:m}=(0,l.mp)(),{containerRect:v,slideRect:p}=(0,l.as)(),{minZoom:g,zoomInMultiplier:E}=u(),b=f&&(0,l.tx)(f)?f.src:void 0,w=!(null==n?void 0:n.current);(0,l.Nf)(()=>{a(1),c(0),d(0)},[m,b]);let x=r.useCallback((t,n,r)=>{let l=r||i,a=o-(t||0),u=s-(n||0),h=(e.width*l-p.width)/2/l,f=(e.height*l-p.height)/2/l;c(Math.min(Math.abs(a),Math.max(h,0))*Math.sign(a)),d(Math.min(Math.abs(u),Math.max(f,0))*Math.sign(u))},[i,o,s,p,e.width,e.height]),y=r.useCallback((e,n,r,o)=>{let u=(0,l.LI)(e+.01<t?e-.01>g?e:g:t,5);n||h(),x(r?r*(1/i-1/u):0,o?o*(1/i-1/u):0,u),a(u)},[i,g,t,x,h]),M=(0,l.DK)(()=>{i>1&&(i>t&&y(t,!0),x())});(0,l.Nf)(M,[v.width,v.height,M]);let C=r.useCallback(()=>{let e=i*E;y(i<1&&e>1?1:e)},[i,E,y]),k=r.useCallback(()=>{let e=i/E;y(i>1&&e<1?1:e)},[i,E,y]);return{zoom:i,offsetX:o,offsetY:s,disabled:w,changeOffsets:x,changeZoom:y,zoomIn:C,zoomOut:k}}(m,v,null==t?void 0:t.zoomWrapperRef),{on:C}=(0,l.D$)(),k=(0,l.DK)(()=>{var e;b||null==(e=C.zoom)||e.call(C,{zoom:p})});r.useEffect(k,[p,k]),function(e,t,n,a,o,d,h,f,m){let v=r.useRef([]),p=r.useRef(0),g=r.useRef(void 0),{globalIndex:E}=(0,l.mp)(),{getOwnerWindow:b}=(0,l.uG)(),{containerRef:w,subscribeSensors:x}=(0,l.as)(),{keyboardMoveDistance:y,zoomInMultiplier:M,wheelZoomDistanceFactor:C,scrollToZoom:k,doubleTapDelay:N,doubleClickDelay:P,doubleClickMaxStops:R,pinchZoomDistanceFactor:I,pinchZoomV4:L}=u(),S=r.useCallback(e=>{if(w.current){let{pageX:t,pageY:n}=e,{scrollX:r,scrollY:l}=b(),{left:i,top:a,width:o,height:u}=w.current.getBoundingClientRect();return[t-i-r-o/2,n-a-l-u/2]}return[]},[w,b]),F=(0,l.DK)(t=>{let{key:n,metaKey:r,ctrlKey:l}=t,i=r||l,a=()=>{t.preventDefault(),t.stopPropagation()};if(e>1){let e=(e,t)=>
1{a(),f(e,t)};"ArrowDown"===n?e(0,y):"ArrowUp"===n?e(0,-y):"ArrowLeft"===n?e(-y,0):"ArrowRight"===n&&e(y,0)}"+"===n||i&&"="===n?(a(),o()):"-"===n||i&&"_"===n?(a(),d()):i&&"0"===n&&(a(),h(1))}),D=(0,l.DK)(t=>{if((t.ctrlKey||k)&&Math.abs(t.deltaY)>Math.abs(t.deltaX)){t.stopPropagation(),h(s(e,-t.deltaY,C),!0,...S(t));return}e>1&&(t.stopPropagation(),k||f(t.deltaX,t.deltaY))}),z=r.useCallback(e=>{let t=v.current;t.splice(0,t.length,...t.filter(t=>t.pointerId!==e.pointerId))},[]),_=r.useCallback(e=>{z(e),e.persist(),v.current.push(e)},[z]),A=(0,l.DK)(r=>{var l;let i=v.current;if("mouse"===r.pointerType&&r.buttons>1||!(null==(l=null==m?void 0:m.current)?void 0:l.contains(r.target)))return;e>1&&r.stopPropagation();let{timeStamp:a}=r;if(0===i.length&&a-p.current<("touch"===r.pointerType?N:P)?(p.current=0,h(e>=1?e!==n?e*Math.max(n**(1/R),M):1:e!==t?e/Math.max(t**(-1/R),M):1,!1,...S(r))):p.current=a,_(r),2===i.length){let t=c(i[0],i[1]);g.current={previousDistance:t,initialDistance:Math.max(t,1),initialZoom:e}}}),T=(0,l.DK)(t=>{let n=v.current,r=n.find(e=>e.pointerId===t.pointerId);if(2===n.length&&g.current){t.stopPropagation(),_(t);let r=c(n[0],n[1]);h(L?g.current.initialZoom/g.current.initialDistance*r:s(e,r-g.current.previousDistance,I),!0,...n.map(e=>S(e)).reduce((e,t)=>t.map((t,n)=>e[n]+t/2))),g.current.previousDistance=r;return}e>1&&(t.stopPropagation(),r&&(1===n.length&&f((r.clientX-t.clientX)/e,(r.clientY-t.clientY)/e),_(t)))}),O=r.useCallback(e=>{let t=v.current;2===t.length&&t.find(t=>t.pointerId===e.pointerId)&&(g.current=void 0),z(e)},[z]),K=r.useCallback(()=>{let e=v.current;e.splice(0,e.length),p.current=0,g.current=void 0},[]);(0,l.yQ)(x,A,T,O,a),r.useEffect(K,[E,K]),r.useEffect(()=>a?()=>{}:(0,l.tP)(K,x(i.uF,F),x(i.j7,D)),[a,x,K,F,D])}(p,f,v,b,y,M,w,x,null==t?void 0:t.zoomWrapperRef);let N=r.useMemo(()=>({zoom:p,minZoom:f,maxZoom:v,offsetX:g,offsetY:E,disabled:b,zoomIn:y,zoomOut:M,changeZoom:w}),[p,f,v,g,E,b,y,M,w]);r.useImperativeHandle(h,()=>N,[N]);let P=r.useMemo(()=>({...N,setZoomWrapper:n}),[N,n]);return r.createElement(d.Provider,{value:P},e)}let m=(0,l.wt)("ZoomIn",r.createElement(r.Fragment,null,r.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"}),r.createElement("path",{d:"M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"}))),v=(0,l.wt)("ZoomOut",r.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=r.forwardRef(function({zoomIn:e,onLoseFocus:t},n){let i=r.useRef(!1),a=r.useRef(!1),{zoom:o,minZoom:u,maxZoom:c,zoomIn:s,zoomOut:d,disabled:f}=h(),{render:p}=(0,l.D$)(),g=f||(e?o>=c:o<=u);return r.useEffect(()=>{g&&i.current&&a.current&&t(),g||(i.current=!0)},[g,t]),r.createElement(l.K0,{ref:n,disabled:g,label:e?"Zoom in":"Zoom out",icon:e?m:v,renderIcon:e?p.iconZoomIn:p.iconZoomOut,onClick:e?s:d,onFocus:()=>{a.current=!0},onBlur:()=>{a.current=!1}})});function g(){let e=r.useRef(null),t=r.useRef(null),{focus:n}=(0,l.as)(),i=r.useCallback(e=>{var t,r;(null==(t=e.current)?void 0:t.disabled)?n():null==(r=e.current)||r.focus()},[n]),a=r.useCallback(()=>i(e),[i]),o=r.useCallback(()=>i(t),[i]);return r.createElement(r.Fragment,null,r.createElement(p,{zoomIn:!0,ref:e,onLoseFocus:o}),r.createElement(p,{ref:t,onLoseFocus:a}))}function E(){let{render:e}=(0,l.D$)(),t=h();
1return e.buttonZoom?r.createElement(r.Fragment,null,e.buttonZoom(t)):r.createElement(g,null)}function b({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.V)}}function w(e){var t,n;let[{current:i,preload:a},o]=r.useReducer(b,{}),{slide:u,rect:c,imageFit:s,render:d,interactive:h}=e,f=u.srcSet.sort((e,t)=>e.width-t.width),m=null!=(t=u.width)?t:f[f.length-1].width,v=null!=(n=u.height)?n:f[f.length-1].height,p=(0,l.QJ)(u,s),g=Math.max(...f.map(e=>e.width)),E=Math.min((p?Math.max:Math.min)(c.width,m*(c.height/v)),g),w=(0,l.Y5)(),x=(0,l.DK)(()=>{var e;let t=null!=(e=f.find(e=>e.width>=E*w))?e:f[f.length-1];(!i||f.findIndex(e=>e.src===i)<f.findIndex(e=>e===t))&&o({type:"fetch",source:t.src})});(0,l.Nf)(x,[c.width,c.height,w,x]);let y=(0,l.DK)(e=>o({type:"done",source:e})),M={WebkitTransform:h?"initial":"translateZ(0)"};return p||Object.assign(M,c.width/c.height<m/v?{width:"100%",height:"auto"}:{width:"auto",height:"100%"}),r.createElement(r.Fragment,null,a&&a!==i&&r.createElement(l.Z$,{key:"preload",...e,offset:void 0,slide:{...u,src:a,srcSet:void 0},style:{position:"absolute",visibility:"hidden",...M},onLoad:()=>y(a),render:{...d,iconLoading:()=>null,iconError:()=>null}}),i&&r.createElement(l.Z$,{key:"current",...e,slide:{...u,src:i,srcSet:void 0},style:M}))}function x({render:e,slide:t,offset:n,rect:a}){var o,u;let[c,s]=r.useState(),d=r.useRef(null),f=(0,l.tx)(t),{zoom:m,maxZoom:v,offsetX:p,offsetY:g,setZoomWrapper:E}=h(),b=m>1,{carousel:x,on:y}=(0,l.D$)(),{currentIndex:M}=(0,l.mp)();(0,l.Nf)(()=>{if(0!==n||f||!d.current)return()=>{};let e=()=>{let e=d.current;if(!e)return;let t=0,n=0;for(let r of e.children)r instanceof HTMLElement&&(t=Math.max(t,r.offsetWidth),n=Math.max(n,r.offsetHeight));s(e=>e&&e.width===t&&e.height===n?e:{width:t,height:n})};if(e(),"undefined"==typeof ResizeObserver)return()=>{};let t=new ResizeObserver(e);for(let e of d.current.children)t.observe(e);return()=>t.disconnect()},[n,f,a]),(0,l.Nf)(()=>0===n?(E({zoomWrapperRef:d,imageDimensions:c}),()=>E(void 0)):()=>{},[n,c,E]);let C=null==(o=e.slide)?void 0:o.call(e,{slide:t,offset:n,rect:a,zoom:m,maxZoom:v});if(!C&&f){let i={slide:t,offset:n,rect:a,render:e,imageFit:x.imageFit,imageProps:x.imageProps,onClick:0===n?()=>{var e;return null==(e=y.click)?void 0:e.call(y,{index:M})}:void 0};C=((null==(u=t.srcSet)?void 0:u.length)||0)>0?r.createElement(w,{...i,slide:t,interactive:b,rect:0===n?{width:a.width*m,height:a.height*m}:a}):r.createElement(l.Z$,{onLoad:e=>s({width:e.naturalWidth,height:e.naturalHeight}),...i})}return C?r.createElement("div",{ref:d,className:(0,l.$z)((0,l.oF)(i.CC),(0,l.oF)(i.tC),(0,l.oF)(i.pc),b&&(0,l.oF)(i.Ue)),style:0===n?{transform:`scale(${m}) translateX(${p}px) translateY(${g}px)`}:void 0},C):null}let y=({augment:e,addModule:t})=>{e(({zoom:e,toolbar:t,render:n,controller:a,...u})=>{let c=o(e);return{zoom:c,toolbar:(0,l.bo)(t,i.AH,r.createElement(E,null)),render:{...n,slide:e=>{var t,i;return(0,l.tx)(e.slide)||null!=e.slide.type&&(null==(t=c.supports)?void 0:t.includes(e.slide.type))?r.createElement(x,{render:n,...e}):null==(i=n.slide)?void 0:i.call(n,e)}},controller:{...a,preventDefaultWheelY:c.scrollToZoom},...u}}),t((0,l.Fi)(i.AH,f))}},45476:(e,t,n)=>{n.d(t,{$z:()=>c,Ay:()=>eU,D$:()=>$,DK:()=>ev,Fi:()=>L,K0:()=>er,LI:()=>E,Nf:()=>es,QJ:()=>w,SA:()=>eM,Tz:()=>p,Vg:()=>d,Y5:()=>M,Z$:()=>ey,as:()=>eP,bo:()=>P,iJ:()=>ed,mp:()=>Y,oF:()=>s,tP:()=>v,tx:()=>b,uG:()=>T,wt:()=>el,yQ:()=>eC});var r,l,i=n(12115),a=n(1909),o=n(47650);let u="yarl__";function c(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}function s(e){return"".concat(u).concat(e)}function d(e){return"--".concat(u).concat(e)}function h(e,t){return"".concat(e).concat(t?"_".concat(t):"")}function f(e){return t=>h(e,t)}function m(e,t){var n;return null!=(n=null==e?void 0:e[t])?n:t}function v(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return()=>
1{t.forEach(e=>{e()})}}function p(e,t,n){return()=>{let r=i.useContext(n);if(!r)throw Error("".concat(e," must be used within a ").concat(t,".Provider"));return r}}function g(){return"undefined"!=typeof window}function E(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=10**t;return Math.round((e+Number.EPSILON)*n)/n}function b(e){return void 0===e.type||"image"===e.type}function w(e,t){return e.imageFit===a.e7||e.imageFit!==a.Td&&t===a.e7}function x(e){return"string"==typeof e?Number.parseInt(e,10):e}function y(e){if("number"==typeof e)return{pixel:e};if("string"==typeof e){let t=x(e);return e.endsWith("%")?{percent:t}:{pixel:t}}return{pixel:0}}function M(){return(g()?null==window?void 0:window.devicePixelRatio:void 0)||1}function C(e,t){return t>0?(e%t+t)%t:0}function k(e,t){return e[C(t,e.length)]}function N(e,t){return e.length>0?k(e,t):void 0}function P(e,t,n){if(!n)return e;let{buttons:r,...l}=e,a=r.findIndex(e=>e===t),o=i.isValidElement(n)?i.cloneElement(n,{key:t},null):n;if(a>=0){let e=[...r];return e.splice(a,1,o),{buttons:e,...l}}return{buttons:[o,...r],...l}}let R=Number(i.version.split(".")[0])>=19,I={open:!1,close:()=>{},index:0,slides:[],render:{},plugins:[],toolbar:{buttons:[a.C]},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.Td,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 L(e,t){return{name:e,component:t}}function S(e,t){return{module:e,children:t}}function F(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?[S(t.module,t.children.flatMap(t=>{var l;return null!=(l=e(t,n,r))?l:[]}))]:[t]}(e,t,n))?r:[]})}let D=i.createContext(null),z=p("useA11yContext","A11yContext",D);function _(e){let{children:t}=e,[n,r]=i.useState(!1),[l,a]=i.useState(!1),o=i.useMemo(()=>({focusWithin:n,trackFocusWithin:(e,t)=>{let n=n=>l=>{var i;l.currentTarget.contains(l.relatedTarget)||r(n),null==(i=n?e:t)||i(l)};return{onFocus:n(!0),onBlur:n(!1)}},autoPlaying:l,setAutoPlaying:a}),[n,l]);return i.createElement(D.Provider,{value:o},t)}let A=i.createContext(null),T=p("useDocument","DocumentContext",A);function O(e){let{nodeRef:t,children:n}=e,r=i.useMemo(()=>{let e=e=>{var n;return(null==(n=e||t.current)?void 0:n.ownerDocument)||document};return{getOwnerDocument:e,getOwnerWindow:t=>{var n;return(null==(n=e(t))?void 0:n.defaultView)||window}}},[t]);return i.createElement(A.Provider,{value:r},n)}let K=i.createContext(null),W=p("useEvents","EventsContext",K);function H(e){let{children:t}=e,[n]=i.useState({});i.useEffect(()=>()=>{Object.keys(n).forEach(e=>delete n[e])},[n]);let r=i.useMemo(()=>{let e=(e,t)=>{var r;null==(r=n[e])||r.splice(0,n[e].length,...n[e].filter(e=>e!==t))};return{publish:function(){for(var e,t=arguments.length,r=Array(t),l=0;l<t;l++)r[l]=arguments[l];let[i,a]=r;null==(e=n[i])||e.forEach(e=>e(a))},subscribe:(t,r)=>(n[t]||(n[t]=[]),n[t].push(r),()=>e(t,r)),unsubscribe:e}},[n]);return i.createElement(K.Provider,{value:r},t)}let Z=i.createContext(null),$=p("useLightboxProps","LightboxPropsContext",Z);function U(e){let{children:t,...n}=e;return i.createElement(Z.Provider,{value:n},t)}let X=i.createContext(null),Y=p("useLightboxState","LightboxStateContext",X),Q=i.createContext(null),V=p("useLightboxDispatch","LightboxDispatchContext",Q);function q(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),a=N(n,i);return{slides:n,currentIndex:i,globalIndex:l,currentSlide:a,animation:r||void 0!==t.duration?{increment:r,duration:t.duration,easing:t.easing}:void 0}}case"update":if(t.slides!==e.slides||t.index!==e.currentIndex)return{slides:t.slides,currentIndex:t.index,globalIndex:t.index,currentSlide:N(t.slides,t.index)};return e;default:throw Error(a.V)}}function B(e){let{slides:t,index:n,children:r}=e,[l,a]=i.useReducer(q,{slides:t,currentIndex:n,globalIndex:n,currentSlide:N(t,n)}),[o,u]=i.useState(t),[c,s]=i.useState(n);(t!==o||n!==c)&&(u(t),s(n),a({type:"update",slides:t,index:n}));let d=i.useMemo(()=>({...l,state:l,dispatch:a}),[l,a]);return i.createElement(Q.Provider,{value:a},i.createElement(X.Provider,{value:d},r))}let j=i.createContext(null),J=p("useRTLContext","RTLContext",j);function G(e){let{isRTL:t,children:n}=e,r=i.useMemo(()=>({isRTL:t}),[t]);return i.createElement(j.Provider,{value:r},n)}let ee=i.createContext(null),et=p("useTimeouts","TimeoutsContext",ee);function en(e){let{children:t}=e,[n]=i.useState([]);i.useEffect(()=>()=>
1{n.forEach(e=>window.clearTimeout(e)),n.splice(0,n.length)},[n]);let r=i.useMemo(()=>{let e=e=>{n.splice(0,n.length,...n.filter(t=>t!==e))};return{setTimeout:(t,r)=>{let l=window.setTimeout(()=>{e(l),t()},r);return n.push(l),l},clearTimeout:t=>{void 0!==t&&(e(t),window.clearTimeout(t))}}},[n]);return i.createElement(ee.Provider,{value:r},t)}let er=i.forwardRef(function(e,t){let{label:n,className:r,icon:l,renderIcon:o,onClick:u,style:d,...h}=e,{styles:f,labels:v}=$(),p=m(v,n);return i.createElement("button",{ref:t,type:"button",title:p,"aria-label":p,className:c(s(a.Uj),r),onClick:u,style:{...d,...f.button},...h},o?o():i.createElement(l,{className:s(a.jR),style:f.icon}))});function el(e,t){var n=i.createElement("g",{fill:"currentColor"},i.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),t);let r=e=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",...e},n);return r.displayName=e,r}let ei=el("Close",i.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"})),ea=el("Previous",i.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),eo=el("Next",i.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),eu=el("Loading",i.createElement(i.Fragment,null,Array.from({length:8}).map((e,t,n)=>i.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(".concat(360/n.length*t,", 12, 12)")})))),ec=el("Error",i.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"})),es=g()?i.useLayoutEffect:i.useEffect;function ed(){let[e,t]=i.useState(!1);return i.useEffect(()=>{var e,n;let r=null==(e=window.matchMedia)?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)||n.call(r,"change",l),()=>{var e;return null==(e=null==r?void 0:r.removeEventListener)?void 0:e.call(r,"change",l)}},[]),e}function eh(e,t){let n=i.useRef(void 0),r=i.useRef(void 0),l=ed();return es(()=>{var i,a,o;if(e.current&&void 0!==n.current&&!l){let{keyframes:l,duration:u,easing:c,onfinish:s}=t(n.current,e.current.getBoundingClientRect(),function(e){let t=0,n=0,r=0,l=window.getComputedStyle(e).transform.match(/matrix.*\((.+)\)/);if(l){let e=l[1].split(",").map(x);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&&u){null==(i=r.current)||i.cancel(),r.current=void 0;try{r.current=null==(o=(a=e.current).animate)?void 0:o.call(a,l,{duration:u,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.playState)==="running"}}}function ef(){let e=i.useRef(null),t=i.useRef(void 0),[n,r]=i.useState();return{setContainerRef:i.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))},[]),containerRef:e,containerRect:n}}function em(){let e=i.useRef(void 0),{setTimeout:t,clearTimeout:n}=et();return i.useCallback((r,l)=>{n(e.current),e.current=t(r,l>0?l:0)},[t,n])}function ev(e){let t=i.useRef(e);return es(()=>{t.current=e}),i.useCallback(function(){for(var e,n=arguments.length,r=Array(n),l=0;l<n;l++)r[l]=arguments[l];return null==(e=t.current)?void 0:e.call(t,...r)},[])}function ep(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function eg(e,t){return i.useMemo(()=>null==e&&null==t?null:n=>{ep(e,n),ep(t,n)},[e,t])}function eE(){return J().isRTL}function eb(e,t){let n=i.useRef(0),r=em(),l=ev(function(){for(var t=arguments.length,r=Array(t),l=0;l<t;l++)r[l]=arguments[l];n.current=Date.now(),e(...r)});return i.useCallback(function(){for(var e=arguments.length,i=Array(e),a=0;a<e;a++)i[a]=arguments[a];r(()=>{l(...i)},t-(Date.now()-n.current))},[t,l,r])}let ew=f("slide"),ex=f("slide_image");function ey(e){var t,n,r,l,o,u,d,h;let{slide:f,offset:m,render:v,rect:p,imageFit:E,imageProps:b,onClick:x,onLoad:y,onError:M,style:C}=e,[k,N]=i.useState(a.Qo),{publish:P}=W(),{setTimeout:R}=et(),I=i.useRef(null);i.useEffect(()=>{0===m&&P((0,a.EC)(k))},[m,k,P]);let L=ev(e=>{("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{e.parentNode&&(N(a.P9),R(()=>{null==y||y(e)},0))})}),S=i.useCallback(e=>{I.current=e,(null==e?void 0:e.complete)&&L(e)},[L]),F=i.useCallback(e=>{L(e.currentTarget)},[L]),D=ev(()=>{N(a.I1),null==M||M()}),z=w(f,E),_=(e,t)=>
1Number.isFinite(e)?e:t,A=_(Math.max(...(null!=(n=null==(t=f.srcSet)?void 0:t.map(e=>e.width))?n:[]).concat(f.width?[f.width]:[]).filter(Boolean)),(null==(r=I.current)?void 0:r.naturalWidth)||0),T=_(Math.max(...(null!=(o=null==(l=f.srcSet)?void 0:l.map(e=>e.height))?o:[]).concat(f.height?[f.height]:[]).filter(Boolean)),(null==(u=I.current)?void 0:u.naturalHeight)||0),O=null==(d=f.srcSet)?void 0:d.slice().sort((e,t)=>e.width-t.width).map(e=>"".concat(e.src," ").concat(e.width,"w")).join(", "),K=O&&p&&g()?"".concat(Math.round(Math.min(p&&!z&&f.width&&f.height?p.height/f.height*f.width:Number.MAX_VALUE,p.width)),"px"):void 0,{style:H,className:Z,...$}=("function"==typeof b?b(f):b)||{};return i.createElement(i.Fragment,null,i.createElement("img",{ref:S,onLoad:F,onError:D,onClick:x,draggable:!1,className:c(s(ex()),z&&s(ex("cover")),k!==a.P9&&s(ex("loading")),Z),style:{...A&&T?{maxWidth:"min(".concat(A,"px, 100%)"),maxHeight:"min(".concat(T,"px, 100%)")}:{maxWidth:"100%",maxHeight:"100%"},...C,...H},...$,alt:null!=(h=f.alt)?h:"",sizes:K,srcSet:O,src:f.src}),k!==a.P9&&i.createElement("div",{className:s(ew(a.Bv))},k===a.Qo&&((null==v?void 0:v.iconLoading)?v.iconLoading():i.createElement(eu,{className:c(s(a.jR),s(ew(a.Qo)))})),k===a.I1&&((null==v?void 0:v.iconError)?v.iconError():i.createElement(ec,{className:c(s(a.jR),s(ew(a.I1)))}))))}let eM=i.forwardRef(function(e,t){let{className:n,children:r,onFocus:l,onBlur:a,...o}=e,u=i.useRef(null),[d,h]=i.useState(!1),{trackFocusWithin:f}=z(),m=ev(()=>{if(u.current){let e="rtl"===window.getComputedStyle(u.current).direction;e!==d&&h(e)}});return i.useEffect(m),i.createElement(O,{nodeRef:u},i.createElement(G,{isRTL:d},i.createElement("div",{ref:eg(t,u),className:c(s("root"),n),...f(l,a),...o},r)))});function eC(e,t,n,r,l){i.useEffect(()=>l?()=>{}:v(e(a.qq,t),e(a.RK,n),e(a.tu,r),e(a.tD,r),e(a.s,r)),[e,t,n,r,l])}!function(e){e[e.NONE=0]="NONE",e[e.SWIPE=1]="SWIPE",e[e.PULL=2]="PULL",e[e.ANIMATION=3]="ANIMATION"}(r||(r={})),function(e){e[e.NONE=0]="NONE",e[e.SWIPE=1]="SWIPE",e[e.PULL=2]="PULL"}(l||(l={}));let ek=f("container"),eN=i.createContext(null),eP=p("useController","ControllerContext",eN),eR=L(a.Kv,function(e){var t;let{children:n,...o}=e,{carousel:u,animation:h,controller:f,on:m,styles:p,render:g}=o,{closeOnPullUp:b,closeOnPullDown:w,preventDefaultWheelX:x,preventDefaultWheelY:M}=f,[C,k]=i.useState(),N=Y(),P=V(),[R,I]=i.useState(r.NONE),L=i.useRef(0),S=i.useRef(0),F=i.useRef(1),{registerSensors:D,subscribeSensors:z}=function(){let[e]=i.useState({}),t=i.useCallback((t,n)=>{var r;null==(r=e[t])||r.forEach(e=>{n.isPropagationStopped()||e(n)})},[e]);return{registerSensors:i.useMemo(()=>({onPointerDown:e=>t(a.qq,e),onPointerMove:e=>t(a.RK,e),onPointerUp:e=>t(a.tu,e),onPointerLeave:e=>t(a.tD,e),onPointerCancel:e=>t(a.s,e),onKeyDown:e=>t(a.uF,e),onKeyUp:e=>t(a.t$,e),onWheel:e=>t(a.j7,e)}),[t]),subscribeSensors:i.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])}}(),{subscribe:_,publish:A}=W(),O=em(),K=em(),H=em(),{containerRef:Z,setContainerRef:$,containerRect:U}=ef(),X=eg(function(e){let{preventDefaultWheelX:t,preventDefaultWheelY:n}=e,r=i.useRef(null),l=ev(e=>{let r=Math.abs(e.deltaX)>Math.abs(e.deltaY);(r&&t||!r&&n||e.ctrlKey)&&e.preventDefault()});return i.useCallback(e=>{var t;e?e.addEventListener("wheel",l,{passive:!1}):null==(t=r.current)||t.removeEventListener("wheel",l),r.current=e},[l])}({preventDefaultWheelX:x,preventDefaultWheelY:M}),$),Q=i.useRef(null),q=eg(Q,void 0),{getOwnerDocument:B}=T(),j=eE(),J=e=>(j?-1:1)*("number"==typeof e?e:1),G=ev(()=>{var e;return null==(e=Z.current)?void 0:e.focus()}),ee=ev(()=>o),en=ev(()=>N),er=i.useCallback(e=>A(a.zn,e),[A]),el=i.useCallback(e=>A(a.Nc,e),[A]),ei=i.useCallback(()=>A(a.C),[A]),ea=e=>!(u.finite&&(J(e)>0&&0===N.currentIndex||0>J(e)&&N.currentIndex===N.slides.length-1)),eo=e=>{var t;L.current=e,null==(t=Z.current)||t.style.setProperty(d("swipe_offset"),"".concat(Math.round(e),"px"))},eu=e=>{var t,n;S.current=e,F.current=Math.min(Math.max(E(1-(w&&e>0?e:b&&e<0?-e:0)/60*.5,2),.5),1),null==(t=Z.current)||t.style.setProperty(d("pull_offset"),"".concat(Math.round(e),"px")),null==(n=Z.current)||n.style.setProperty(d("pull_opacity"),"".concat(F.current))},{prepareAnimation:ec}=eh(Q,(e,t,n)=>{if(Q.current&&U)return{keyframes:[{transform:"translate(0, ".concat(e.rect.y-t.y+n.y,"px)"),opacity:e.opacity},{transform:"translate(0, 0)",opacity:1}],duration:e.duration,easing:h.easing.fade}}),es=(e,t)=>{if(b||w){eu(e);let n=0;Q.current&&(n=h.fade*(t?2:1),ec({rect:Q.current.getBoundingClientRect(),opacity:F.current,duration:n})),H(()=>{eu(0),I(r.NONE)},n),I(r.ANIMATION),t||ei()}},{prepareAnimation:ed,isAnimationPlaying:ep}=eh(Q,(e,t,n)=>{var r;if(Q.current&&U&&(null==(r=N.animation)?void 0:r.duration)){let r=y(u.spacing),l=(r.percent?r.percent*U.width/100:r.pixel)||0;return{keyframes:[{transform:"translate(".concat(J(N.globalIndex-e.index)*(U.width+l)+e.rect.x-t.x+n.x,"px, 0)")},{transform:"translate(0, 0)"}],duration:N.animation.duration,easing:N.animation.easing}}}),eb=ev(e=>{var t,n;let l=e.offset||0,i=l?h.swipe:null!=(t=h.navigation)?t:h.swipe,o=l||ep()?h.easing.swipe:h.easing.navigation,{direction:u}=e,c=null!=(n=e.count)?n:1,s=r.ANIMATION,d=i*c;if(!u){let t=null==U?void 0:U.width,n=e.duration||0,r=t?i/t*Math.abs(l):i;0!==c?(n<r?d=d/r*Math.max(n,r/5):t&&(d=i/t*(t-Math.abs(l))),u=J(l)>0?a.zn:a.Nc):d=i/2}let f=0;u===a.zn?ea(J(1))?f=-c:(s=r.NONE,d=i):u===a.Nc&&(ea(J(-1))?f=c:(s=r.NONE,d=i)),K(()=>{eo(0),I(r.NONE)},d=Math.round(d)),Q.current&&ed({rect:Q.current.getBoundingClientRect(),index:N.globalIndex}),I(s),A(a.sI,{type:"swipe",increment:f,duration:d,easing:o})});i.useEffect(()=>{var e,t;(null==(e=N.animation)?void 0:e.increment)&&(null==(t=N.animation)?void 0:t.duration)&&O(()=>P({type:"swipe",increment:0}),N.animation.duration)},[N.animation,P,O]);let ew=[z,ea,(null==U?void 0:U.width)||0,h.swipe,()=>I(r.SWIPE),e=>eo(e),(e,t)=>eb({offset:e,duration:t,count:1}),e=>eb({offset:e,count:0})],ex=[()=>{w&&I(r.PULL)},e=>eu(e),e=>es(e),e=>es(e,!0)];!function(e,t,n,r,o,u,c,d,h,f,m,v,p,g,E,b){let{disableSwipeNavigation:w,closeOnBackdropClick:x}=e,y=i.useRef(0),M=i.useRef([]),C=i.useRef(void 0),k=i.useRef(0),N=i.useRef(l.NONE),P=i.useCallback(e=>{C.current===e.pointerId&&(C.current=void 0,N.current=l.NONE);let t=M.current;t.splice(0,t.length,...t.filter(t=>t.pointerId!==e.pointerId))},[]),R=i.useCallback(e=>{P(e),e.persist(),M.current.push(e)},[P]),I=i.useCallback(e=>M.current.find(t=>{let{pointerId:n}=t;return e.pointerId===n}),[]),L=ev(e=>{R(e)}),S=(e,t)=>m&&e>t||f&&e<-t,F=ev(e=>{let t=I(e);
1if(t)if(C.current===e.pointerId){let e=Date.now()-k.current,t=y.current;N.current===l.SWIPE?Math.abs(t)>.3*r||Math.abs(t)>5&&e<o?d(t,e):h(t):N.current===l.PULL&&(S(t,60)?g(t,e):E(t)),y.current=0,N.current=l.NONE}else{let{target:n}=e;x&&n instanceof HTMLElement&&n===t.target&&(n.classList.contains(s(a.h0))||n.classList.contains(s(a.pc)))&&b()}P(e)});eC(t,L,ev(e=>{let t=I(e);if(t){let r=C.current===e.pointerId;if(0===e.buttons)return void(r&&0!==y.current?F(e):P(t));let i=e.clientX-t.clientX,a=e.clientY-t.clientY;if(void 0===C.current){let t=t=>{R(e),C.current=e.pointerId,k.current=Date.now(),N.current=t};Math.abs(i)>Math.abs(a)&&Math.abs(i)>30&&n(i)?w||(t(l.SWIPE),u()):Math.abs(a)>Math.abs(i)&&S(a,30)&&(t(l.PULL),v())}else r&&(N.current===l.SWIPE?(y.current=i,c(i)):N.current===l.PULL&&(y.current=a,p(a)))}}),F)}(f,...ew,b,w,...ex,ei),function(e,t,n,l,o,u,c,s,d){let h=i.useRef(0),f=i.useRef(0),m=i.useRef(void 0),v=i.useRef(void 0),p=i.useRef(0),g=i.useRef(void 0),E=i.useRef(0),{setTimeout:b,clearTimeout:w}=et(),x=i.useCallback(()=>{m.current&&(w(m.current),m.current=void 0)},[w]),y=i.useCallback(()=>{v.current&&(w(v.current),v.current=void 0)},[w]),M=ev(()=>{e!==r.SWIPE&&(h.current=0,E.current=0,x(),y())});i.useEffect(M,[e,M]);let C=ev(e=>{v.current=void 0,h.current===e&&d(h.current)}),k=ev(t=>{if(t.ctrlKey||Math.abs(t.deltaY)>Math.abs(t.deltaX))return;let i=e=>{p.current=e,w(g.current),g.current=e>0?b(()=>{p.current=0,g.current=void 0},300):void 0};if(e===r.NONE){if(Math.abs(t.deltaX)<=1.2*Math.abs(p.current))return void i(t.deltaX);if(!n(-t.deltaX))return;if(f.current+=t.deltaX,x(),Math.abs(f.current)>30)f.current=0,i(0),E.current=Date.now(),u();else{let e=f.current;m.current=b(()=>{m.current=void 0,e===f.current&&(f.current=0)},o)}}else if(e===r.SWIPE){let e=h.current-t.deltaX;if(h.current=e=Math.min(Math.abs(e),l)*Math.sign(e),c(e),y(),Math.abs(e)>.2*l){i(t.deltaX),s(e,Date.now()-E.current);return}v.current=b(()=>C(e),2*o)}else i(t.deltaX)});i.useEffect(()=>t(a.j7,k),[t,k])}(R,...ew);let ey=ev(()=>{f.focus&&B().querySelector(".".concat(s(a.kJ)," .").concat(s(ek())))&&G()});i.useEffect(ey,[ey]);
1let eM=ev(()=>{var e;null==(e=m.view)||e.call(m,{index:N.currentIndex})});i.useEffect(eM,[N.globalIndex,eM]),i.useEffect(()=>v(_(a.zn,e=>eb({direction:a.zn,...e})),_(a.Nc,e=>eb({direction:a.Nc,...e})),_(a.sI,e=>P(e))),[_,eb,P]);let eP=i.useMemo(()=>({prev:er,next:el,close:ei,focus:G,slideRect:U?function(e,t){let n=y(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)}}(U,u.padding):{width:0,height:0},containerRect:U||{width:0,height:0},subscribeSensors:z,containerRef:Z,setCarouselRef:q,toolbarWidth:C,setToolbarWidth:k}),[er,el,ei,G,z,U,Z,q,C,k,u.padding]);return i.useImperativeHandle(f.ref,()=>({prev:er,next:el,close:ei,focus:G,getLightboxProps:ee,getLightboxState:en}),[er,el,ei,G,ee,en]),i.createElement("div",{ref:X,className:c(s(ek()),s(a.tC)),style:{...R===r.SWIPE?{[d("swipe_offset")]:"".concat(Math.round(L.current),"px")}:null,...R===r.PULL?{[d("pull_offset")]:"".concat(Math.round(S.current),"px"),[d("pull_opacity")]:"".concat(F.current)}:null,..."none"!==f.touchAction?{[d("controller_touch_action")]:f.touchAction}:null,...p.container},tabIndex:-1,...D},U&&i.createElement(eN.Provider,{value:eP},n,null==(t=g.controls)?void 0:t.call(g)))});function eI(e){return h(a.mY,e)}function eL(e){var t,n,r,l,o;let u,{slide:d,offset:f}=e,v=i.useRef(null),{currentIndex:p,slides:g}=Y(),{slideRect:E,focus:w}=eP(),{render:x,carousel:{imageFit:y,imageProps:M},on:{click:k},styles:{slide:N},labels:P}=$(),{getOwnerDocument:I}=T(),L=0!==f;return i.useEffect(()=>{var e;L&&(null==(e=v.current)?void 0:e.contains(I().activeElement))&&w()},[L,w,I]),i.createElement("div",{ref:v,className:c(s(h(a.h0,void 0)),!L&&s(h(a.h0,"current")),s(a.tC)),...{inert:R?L:L?"":void 0},style:N,role:"group","aria-roledescription":m(P,"Slide"),"aria-label":(t=p+f,m(P,"{index} of {total}").replace(/\{index}/g,"".concat(C(t,g.length)+1)).replace(/\{total}/g,"".concat(g.length)))},(!(u=null==(n=x.slide)?void 0:n.call(x,{slide:d,offset:f,rect:E}))&&b(d)&&(u=i.createElement(ey,{slide:d,offset:f,render:x,rect:E,imageFit:y,imageProps:M,onClick:L?void 0:()=>null==k?void 0:k({index:p})})),u?i.createElement(i.Fragment,null,null==(r=x.slideHeader)?void 0:r.call(x,{slide:d}),(null!=(l=x.slideContainer)?l:e=>{let{children:t}=e;return t})({slide:d,children:u}),null==(o=x.slideFooter)?void 0:o.call(x,{slide:d})):null))}function eS(){let e=$().styles.slide;return i.createElement("div",{className:s(a.h0),style:e})}let eF=L(a.mY,function(e){let{carousel:t,labels:n}=e,{slides:r,currentIndex:l,globalIndex:a}=Y(),{setCarouselRef:o}=eP(),{autoPlaying:u,focusWithin:h}=z(),f=y(t.spacing),v=y(t.padding),p=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Math.min(e.preload,Math.max(e.finite?t.length-1:Math.floor(t.length/2),n))}(t,r,1),g=[];if(r.length>0)for(let e=l-p;e<=l+p;e+=1){let n=k(r,e),i=a-l+e,o=t.finite&&(e<0||e>r.length-1);g.push(o?{key:i}:{key:["".concat(i),b(n)?n.src:void 0].filter(Boolean).join("|"),offset:e-l,slide:n})}return i.createElement("div",{ref:o,className:c(s(eI()),g.length>0&&s(eI("with_slides"))),style:{["".concat(d(eI("slides_count")))]:g.length,["".concat(d(eI("spacing_px")))]:f.pixel||0,["".concat(d(eI("spacing_percent")))]:f.percent||0,["".concat(d(eI("padding_px")))]:v.pixel||0,["".concat(d(eI("padding_percent")))]:v.percent||0},role:"region","aria-live":u&&!h?"off":"polite","aria-roledescription":m(n,"Carousel"),"aria-label":m(n,"Photo gallery")},g.map(e=>{let{key:t,slide:n,offset:r}=e;return n?i.createElement(eL,{key:t,slide:n,offset:r}):i.createElement(eS,{key:t})}))});function eD(){let{carousel:e}=$(),{slides:t,currentIndex:n}=Y();return{prevDisabled:0===t.length||e.finite&&0===n,nextDisabled:0===t.length||e.finite&&n===t.length-1}}function ez(e){let{label:t,icon:n,renderIcon:r,action:l,onClick:a,disabled:o,style:u}=e;return i.createElement(er,{label:t,icon:n,renderIcon:r,className:s("navigation_".concat(l)),disabled:o,onClick:a,style:u,...function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=i.useRef(!1);return es(()=>{t&&n.current&&(n.current=!1,e())},[t,e]),{onFocus:i.useCallback(()=>{n.current=!0},[]),onBlur:i.useCallback(()=>{n.current=!1},[])}}(eP().focus,o)})}let e_=L(a.Ky,function(e){let{render:{buttonPrev:t,buttonNext:n,iconPrev:r,iconNext:l},styles:o}=e,{prev:u,next:c,subscribeSensors:s}=eP(),{prevDisabled:d,nextDisabled:h}=eD();return!function(e){var t;let n=eE(),{publish:r}=W(),{animation:l,controller:o}=$(),{prevDisabled:u,nextDisabled:c}=eD(),s=(null!=(t=l.navigation)?t:l.swipe)/2,d=eb(()=>r(a.zn),s),h=eb(()=>r(a.Nc),s),f=ev(e=>{switch(e.key){case a.or:if(!o.closeOnEscape)return;r(a.C);break;case a.A9:(n?c:u)||(n?h:d)();break;case a.jn:(n?u:c)||(n?d:h)();break;default:return}e.stopPropagation()});i.useEffect(()=>e(a.uF,f),[e,f])}(s),i.createElement(i.Fragment,null,t?t():i.createElement(ez,{label:"Previous",action:a.zn,icon:ea,renderIcon:r,style:o.navigationPrev,disabled:d,onClick:u}),n?n():i.createElement(ez,{label:"Next",action:a.Nc,icon:eo,renderIcon:l,style:o.navigationNext,disabled:h,onClick:c}))}),eA=s(a.HR),eT=s(a.vg);function eO(e,t,n){let r=window.getComputedStyle(e),l=n?"padding-left":"padding-right",i=n?r.paddingLeft:r.paddingRight,a=e.style.getPropertyValue(l);return e.style.setProperty(l,"".concat((x(i)||0)+t,"px")),()=>{a?e.style.setProperty(l,a):e.style.removeProperty(l)}}let eK=L(a.b6,function(e){let{noScroll:{disabled:t},children:n}=e,r=eE(),{getOwnerDocument:l,getOwnerWindow:a}=T();return i.useEffect(()=>{if(t)return()=>{};let e=[],n=a(),{body:i,documentElement:o}=l(),u=Math.round(n.innerWidth-o.clientWidth);if(u>0){e.push(eO(i,u,r));let t=i.getElementsByTagName("*");for(let l=0;l<t.length;l+=1){let i=t[l];"style"in i&&"fixed"===n.getComputedStyle(i).getPropertyValue("position")&&!i.classList.contains(eT)&&e.push(eO(i,u,r))}}return i.classList.add(eA),()=>
1{i.classList.remove(eA),e.forEach(e=>e())}},[r,t,l,a]),i.createElement(i.Fragment,null,n)});function eW(e,t,n){let r=e.getAttribute(t);return e.setAttribute(t,n),()=>{r?e.setAttribute(t,r):e.removeAttribute(t)}}let eH=L(a.kJ,function(e){let{portal:{root:t,container:{className:n,style:r,...l}={}},animation:u,styles:f,className:v,on:p,close:g,labels:E,children:b}=e,[w,x]=i.useState(!1),[y,M]=i.useState(!1),C=i.useRef([]),k=i.useRef(null),{setTimeout:N}=et(),{subscribe:P}=W(),R=ed()?0:u.fade;i.useEffect(()=>(x(!0),()=>{x(!1),M(!1)}),[]);let L=ev(()=>{C.current.forEach(e=>e()),C.current=[]}),S=ev(()=>{var e;M(!1),L(),null==(e=p.exiting)||e.call(p),N(()=>{var e;null==(e=p.exited)||e.call(p),g()},R)});i.useEffect(()=>P(a.C,S),[P,S]);let F=ev(e=>{var t,n,r;e.scrollTop,M(!0),null==(t=p.entering)||t.call(p);let l=null!=(r=null==(n=e.parentNode)?void 0:n.children)?r:[];for(let t=0;t<l.length;t+=1){let n=l[t];-1===["TEMPLATE","SCRIPT","STYLE"].indexOf(n.tagName)&&n!==e&&(C.current.push(eW(n,"inert","")),C.current.push(eW(n,"aria-hidden","true")))}C.current.push(()=>{var e,t;null==(t=null==(e=k.current)?void 0:e.focus)||t.call(e)}),N(()=>{var e;null==(e=p.entered)||e.call(p)},R)}),D=i.useCallback(e=>{e?F(e):L()},[F,L]);return w?(0,o.createPortal)(i.createElement(eM,{ref:D,className:c(v,n,s(h(a.kJ,void 0)),s(a.vg),y&&s(h(a.kJ,"open"))),"aria-modal":!0,role:"dialog","aria-label":m(E,"Lightbox"),style:{...u.fade!==I.animation.fade?{[d("fade_animation_duration")]:"".concat(R,"ms")}:null,...u.easing.fade!==I.animation.easing.fade?{[d("fade_animation_timing_function")]:u.easing.fade}:null,...f.root,...r},onFocus:e=>{k.current||(k.current=e.relatedTarget)},...l},b),("function"==typeof t?t():t)||document.body):null}),eZ=L(a.OT,function(e){let{children:t}=e;return i.createElement(i.Fragment,null,t)}),e$=L(a.pq,function(e){let{toolbar:{buttons:t},render:{buttonClose:n,iconClose:r},styles:l}=e,{close:o,setToolbarWidth:u}=eP(),{setContainerRef:c,containerRect:d}=ef();return es(()=>{u(null==d?void 0:d.width)},[u,null==d?void 0:d.width]),i.createElement("div",{ref:c,style:l.toolbar,className:s(h(a.pq,void 0))},null==t?void 0:t.map(e=>e===a.C?n?n():i.createElement(er,{key:a.C,label:"Close",icon:ei,renderIcon:r,onClick:o}):e))});function eU(e){let{carousel:t,animation:n,render:r,toolbar:l,controller:o,noScroll:u,on:c,plugins:s,slides:d,index:h,...f}=e,{animation:m,carousel:v,render:p,toolbar:g,controller:E,noScroll:b,on:w,slides:y,index:M,plugins:C,...k}=I,{config:N,augmentation:P}=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],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=[S(t,r)];return}r=F(r,e,e=>[S(t,[e])])},o=(e,t)=>{r=F(r,e,e=>[S(e.module,[S(t,e.children)])])},u=(e,t,n)=>{r=F(r,e,e=>{var r;return[S(e.module,[...n?[S(t)]:[],...null!=(r=e.children)?r:[],...n?[]:[S(t)]])]})},c=(e,t,n)=>{r=F(r,e,e=>[...n?[S(t)]:[],e,...n?[]:[S(t)]])},s=e=>{o(a.Kv,e)},d=(e,t)=>{r=F(r,e,e=>[S(t,e.children)])},h=e=>{r=F(r,e,e=>e.children)},f=e=>{n.push(e)};return t.forEach(e=>{e({contains:l,addParent:i,append:o,addChild:u,addSibling:c,addModule:s,replace:d,remove:h,augment:f})}),{config:r,augmentation:e=>n.reduce((e,t)=>t(e),e)}}([S(eH,[S(eK,[S(eR,[S(eF),S(e$),S(e_)])])])],s||C),R=P({animation:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{easing:n,...r}=e,{easing:l,...i}=t;return{easing:{...n,...l},...r,...i}}(m,n),carousel:{...v,...t},render:{...p,...r},toolbar:{...g,...l},controller:{...E,...o},noScroll:{...b,...u},on:{...w,...c},...k,...f});return R.open?i.createElement(U,{...R},i.createElement(B,{slides:d||y,index:x(h||M)},i.createElement(en,null,i.createElement(H,null,i.createElement(_,null,function e(t,n){var r;return i.createElement(t.module.component,{key:t.module.name,...n},null==(r=t.children)?void 0:r.map(t=>e(t,n)))}(S(eZ,N),R)))))):null}},95087:(e,t,n)=>{n.d(t,{A:()=>m});var r=n(12115),l=n(45476),i=n(1909);let a={auto:!1,ref:null},o=e=>({...a,...e}),u=r.createContext(null),c=(0,l.Tz)("useFullscreen","FullscreenContext",u);function s({fullscreen:e,on:t,children:n}){let{auto:a,ref:c}=o(e),s=r.useRef(null),[d,h]=r.useState(),[f,m]=r.useState(!1),v=r.useRef(!1),{getOwnerDocument:p}=(0,l.uG)();(0,l.Nf)(()=>{var e,t,n,r;let l=p();h(!(null!=(r=null!=(n=null!=(t=null!=(e=l.fullscreenEnabled)?e:l.webkitFullscreenEnabled)?t:l.mozFullScreenEnabled)?n:l.msFullscreenEnabled)&&r))},[p]);let g=r.useCallback(()=>{var e;let t=p(),n=t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement;return(null==(e=null==n?void 0:n.shadowRoot)?void 0:e.fullscreenElement)||n},[p]),E=r.useCallback(()=>{let e=s.current;try{e.requestFullscreen?e.requestFullscreen().catch(()=>{}):e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.msRequestFullscreen&&e.msRequestFullscreen()}catch(e){}},[]),b=r.useCallback(()=>
1{if(!g())return;let e=p();try{e.exitFullscreen?e.exitFullscreen().catch(()=>{}):e.webkitExitFullscreen?e.webkitExitFullscreen():e.mozCancelFullScreen?e.mozCancelFullScreen():e.msExitFullscreen&&e.msExitFullscreen()}catch(e){}},[g,p]);r.useEffect(()=>{let e=p(),t=()=>{m(g()===s.current)};return(0,l.tP)(...["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"].map(n=>(e.addEventListener(n,t),()=>e.removeEventListener(n,t))))},[g,p]);let w=(0,l.DK)(()=>{var e;return null==(e=t.enterFullscreen)?void 0:e.call(t)}),x=(0,l.DK)(()=>{var e;return null==(e=t.exitFullscreen)?void 0:e.call(t)});r.useEffect(()=>{f&&(v.current=!0),v.current&&(f?w:x)()},[f,w,x]);let y=(0,l.DK)(()=>{var e;return null==(e=a?E:null)||e(),b});r.useEffect(y,[y]);let M=r.useMemo(()=>({fullscreen:f,disabled:d,enter:E,exit:b}),[f,d,E,b]);return r.useImperativeHandle(c,()=>M,[M]),r.createElement("div",{ref:s,className:(0,l.$z)((0,l.oF)(i.Qe),(0,l.oF)(i.CC))},r.createElement(u.Provider,{value:M},n))}let d=(0,l.wt)("EnterFullscreen",r.createElement("path",{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"})),h=(0,l.wt)("ExitFullscreen",r.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:a}=c(),{render:o}=(0,l.D$)();return n?null:o.buttonFullscreen?r.createElement(r.Fragment,null,null==(e=o.buttonFullscreen)?void 0:e.call(o,{fullscreen:t,disabled:n,enter:i,exit:a})):r.createElement(l.K0,{disabled:n,label:t?"Exit Fullscreen":"Enter Fullscreen",icon:t?h:d,renderIcon:t?o.iconExitFullscreen:o.iconEnterFullscreen,onClick:t?a:i})}function m({augment:e,contains:t,addParent:n}){e(({fullscreen:e,toolbar:t,...n})=>({toolbar:(0,l.bo)(t,i.Qe,r.createElement(f,null)),fullscreen:o(e),...n})),n(t(i.QQ)?i.QQ:i.Kv,(0,l.Fi)(i.Qe,s))}}}]);

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.