1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0c56d-28b1-74d1-8de9-617cc4cbc773")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,922585,e=>{"use strict";var t=e.i(843476),i=e.i(8152),n=e.i(657688),o=e.i(444202),r=e.i(704415);e.s(["ThemedImage",0,({light:e,dark:s,zoomable:l=!1,...a})=>{let d=l?i.ImageZoom:n.default,h=((e,t)=>{let{resolvedTheme:i}=(0,o.useTheme)();return(0,r.useHydrated)()&&"dark"===i?t:e})(e,s);return(0,t.jsx)(d,{src:h,...a})}],922585)},395530,e=>{"use strict";var t=e.i(271645),i=e.i(828918),n=e.i(838452),o=e.i(673553);e.s(["useCompositeItem",0,function(e={}){let{highlightItemOnHover:r,highlightedIndex:s,onHighlightedIndexChange:l}=(0,n.useCompositeRootContext)(),{ref:a,index:d}=(0,o.useCompositeListItem)(e),h=s===d,u=t.useRef(null),c=(0,i.useMergedRefs)(a,u);return{compositeProps:{tabIndex:h?0:-1,onFocus(){l(d)},onMouseMove(){let e=u.current;if(!r||!e)return;let t=e.hasAttribute("disabled")||"true"===e.ariaDisabled;h||t||e.focus()}},compositeRef:c,index:d}}])},53687,e=>{"use strict";var t=e.i(271645),i=e.i(388940),n=e.i(667865),o=e.i(146376),r=e.i(545356),s=e.i(843476);function l(){return new Map}function a(){return new Set}function d(e,t){let i=e.compareDocumentPosition(t);return i&Node.DOCUMENT_POSITION_FOLLOWING||i&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:i&Node.DOCUMENT_POSITION_PRECEDING||i&Node.DOCUMENT_POSITION_CONTAINS?1:0}e.s(["CompositeList",0,function(e){let{children:h,elementsRef:u,labelsRef:c,onMapChange:m}=e,f=(0,n.useStableCallback)(m),g=t.useRef(0),v=(0,i.useRefWithInit)(a).current,E=(0,i.useRefWithInit)(l).current,[p,w]=t.useState(0),b=t.useRef(p),I=(0,n.useStableCallback)((e,t)=>{E.set(e,t??null),b.current+=1,w(b.current)}),L=(0,n.useStableCallback)(e=>{E.delete(e),b.current+=1,w(b.current)}),S=t.useMemo(()=>{let e=new Map;return Array.from(E.keys()).filter(e=>e.isConnected).sort(d).forEach((t,i)=>{let n=E.get(t)??{};e.set(t,{...n,index:i})}),e},[E,p]);(0,o.useIsoLayoutEffect)(()=>{if("function"!=typeof MutationObserver||0===S.size)return;let e=new MutationObserver(e=>{let t=new Set,i=e=>t.has(e)?t.delete(e):t.add(e);e.forEach(e=>{e.removedNodes.forEach(i),e.addedNodes.forEach(i)}),0===t.size&&(b.current+=1,w(b.current))});return S.forEach((t,i)=>{i.parentElement&&e.observe(i.parentElement,{childList:!0})}),()=>{e.disconnect()}},[S]),(0,o.useIsoLayoutEffect)(()=>{b.current===p&&(u.current.length!==S.size&&(u.current.length=S.size),c&&c.current.length!==S.size&&(c.current.length=S.size),g.current=S.size),f(S)},[f,S,u,c,p]),(0,o.useIsoLayoutEffect)(()=>()=>{u.current=[]},[u]),(0,o.useIsoLayoutEffect)(()=>()=>{c&&(c.current=[])},[c]);let C=(0,n.useStableCallback)(e=>(v.add(e),()=>{v.delete(e)}));(0,o.useIsoLayoutEffect)(()=>{v.forEach(e=>e(S))},[v,S]);let O=t.useMemo(()=>({register:I,unregister:L,subscribeMapChange:C,elementsRef:u,labelsRef:c,nextIndexRef:g}),[I,L,C,u,c,g]);return(0,s.jsx)(r.CompositeListContext.Provider,{value:O,children:h})}])},545356,e=>{"use strict";var t=e.i(271645);let i=t.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});e.s(["CompositeListContext",0,i,"useCompositeListContext",0,function(){return t.useContext(i)}])},673553,e=>{"use strict";var t,i=e.i(271645),n=e.i(146376),o=e.i(545356);let r=((t={})[t.None=0]="None",t[t.GuessFromOrder=1]="GuessFromOrder",t);e.s(["IndexGuessBehavior",0,r,"useCompositeListItem",0,function(e={}){let{label:t,metadata:s,textRef:l,indexGuessBehavior:a,index:d}=e,{register:h,unregister:u,subscribeMapChange:c,elementsRef:m,labelsRef:f,nextIndexRef:g}=(0,o.useCompositeListContext)(),v=i.useRef(-1),[E,p]=i.useState(d??(a===r.GuessFromOrder?()=>{if(-1===v.current){let e=g.current;g.current+=1,v.current=e}return v.current}:-1)),w=i.useRef(null),b=i.useCallback(e=>{if(w.current=e,-1!==E&&null!==e&&(m.current[E]=e,f)){let i=void 0!==t;f.current[E]=i?t:l?.current?.textContent??e.textContent}},[E,m,f,t,l]);return(0,n.useIsoLayoutEffect)(()=>
1{if(null!=d)return;let e=w.current;if(e)return h(e,s),()=>{u(e)}},[d,h,u,s]),(0,n.useIsoLayoutEffect)(()=>{if(null==d)return c(e=>{let t=w.current?e.get(w.current)?.index:null;null!=t&&p(t)})},[d,c,p]),{ref:b,index:E}}])},405934,370359,e=>{"use strict";var t=e.i(271645),i=e.i(956789),n=e.i(53687),o=e.i(590803),r=e.i(667865),s=e.i(828918),l=e.i(146376),a=e.i(673327),d=e.i(621082);let h="data-composite-item-active";e.s(["ACTIVE_COMPOSITE_ITEM",0,h],370359);var u=e.i(647554);let c=[];var m=e.i(838452),f=e.i(552245),g=e.i(872855),v=e.i(843476);e.s(["CompositeRoot",0,function(e){let{render:E,className:p,style:w,refs:b=i.EMPTY_ARRAY,props:I=i.EMPTY_ARRAY,state:L=i.EMPTY_OBJECT,stateAttributesMapping:S,highlightedIndex:C,onHighlightedIndexChange:O,orientation:y,grid:T,loopFocus:R,onLoop:z,enableHomeAndEndKeys:D,onMapChange:M,stopEventPropagation:x=!0,rootRef:A,disabledIndices:N,modifierKeys:k,highlightItemOnHover:U=!1,tag:P="div",...W}=e,{props:_,highlightedIndex:G,onHighlightedIndexChange:Y,elementsRef:$,onMapChange:F,relayKeyboardEvent:H}=function(e){let{loopFocus:i=!0,orientation:n="both",grid:m,onLoop:f,direction:g,highlightedIndex:v,onHighlightedIndexChange:E,rootRef:p,enableHomeAndEndKeys:w=!1,stopEventPropagation:b=!1,disabledIndices:I,modifierKeys:L=c}=e,[S,C]=t.useState(0),O=null!=m,y=t.useRef(null),T=(0,s.useMergedRefs)(y,p),R=t.useRef([]),z=t.useRef(!1),D=v??S,M=(0,r.useStableCallback)((e,t=!1)=>{if((E??C)(e),t){let t=R.current[e];(0,a.scrollIntoViewIfNeeded)(y.current,t,g,n)}}),x=(0,r.useStableCallback)(e=>{if(0===e.size||z.current)return;z.current=!0;let t=Array.from(e.keys()),i=t.find(e=>e?.hasAttribute(h))??null,o=i?t.indexOf(i):-1;if(-1!==o)M(o);else if((0,d.isListIndexDisabled)(t,D,I)){let e=(0,d.findNonDisabledListIndex)(t,{disabledIndices:I});(0,d.isIndexOutOfListBounds)(t,e)||M(e)}(0,a.scrollIntoViewIfNeeded)(y.current,i,g,n)});(0,l.useIsoLayoutEffect)(()=>{if(null==I||null!=v||!z.current)return;let e=R.current;if((0,d.isListIndexDisabled)(e,D,I)){let t=(0,d.findNonDisabledListIndex)(e,{disabledIndices:I});(0,d.isIndexOutOfListBounds)(e,t)||M(t)}},[I,v,D,R,M]);let A=(0,r.useStableCallback)((e,t,i)=>f?f(e,t,i,R):i),N=(0,r.useStableCallback)(e=>{let t=w?a.COMPOSITE_KEYS:a.ARROW_KEYS;if(!t.has(e.key)||function(e,t){for(let i of a.MODIFIER_KEYS.values())if(!t.includes(i)&&e.getModifierState(i))return!0;return!1}(e,L)||!y.current)return;let r="rtl"===g,s=r?a.ARROW_LEFT:a.ARROW_RIGHT,l={horizontal:s,vertical:a.ARROW_DOWN,both:s}[n],h=r?a.ARROW_RIGHT:a.ARROW_LEFT,c={horizontal:h,vertical:a.ARROW_UP,both:h}[n],v=(0,u.getTarget)(e.nativeEvent);if(null!=v&&(0,a.isNativeInput)(v)&&!(0,o.isElementDisabled)(v)){let t=v.selectionStart,i=v.selectionEnd,n=v.value??"";if(null==t||e.shiftKey||t!==i||e.key!==c&&t<n.length||e.key!==l&&t>0)return}let E=D,p=(0,d.getMinListIndex)(R,I),S=(0,d.getMaxListIndex)(R,I);null!=m&&(E=m({disabledIndices:I,elementsRef:R,event:e,highlightedIndex:D,loopFocus:i,maxIndex:S,minIndex:p,onLoop:A,orientation:n,rtl:r}));let C={horizontal:[s],vertical:[a.ARROW_DOWN],both:[s,a.ARROW_DOWN]}[n],T={horizontal:[h],vertical:[a.ARROW_UP],both:[h,a.ARROW_UP]}[n],z=O?t:({horizontal:w?a.HORIZONTAL_KEYS_WITH_EXTRA_KEYS:a.HORIZONTAL_KEYS,vertical:w?a.VERTICAL_KEYS_WITH_EXTRA_KEYS:a.VERTICAL_KEYS,both:t})[n];w&&(e.key===a.HOME?E=p:e.key===a.END&&(E=S)),E===D&&(C.includes(e.key)||T.includes(e.key))&&(i&&E===S&&C.includes(e.key)?(E=p,f&&(E=f(e,D,E,R))):i&&E===p&&T.includes(e.key)?(E=S,f&&(E=f(e,D,E,R))):E=(0,d.findNonDisabledListIndex)(R.current,{startingIndex:E,decrement:T.includes(e.key),disabledIndices:I})),E===D||(0,d.isIndexOutOfListBounds)(R.current,E)||(b&&e.stopPropagation(),z.has(e.key)&&e.preventDefault(),M(E,!0),queueMicrotask(()=>{R.current[E]?.focus()}))});return{props:{ref:T,onFocus(e){let t=y.current,i=(0,u.getTarget)(e.nativeEvent);t&&null!=i&&(0,a.isNativeInput)(i)&&i.setSelectionRange(0,i.value.length??0)},onKeyDown:N},highlightedIndex:D,onHighlightedIndexChange:M,elementsRef:R,disabledIndices:I,onMapChange:x,relayKeyboardEvent:N}}({grid:T,loopFocus:R,onLoop:z,orientation:y,highlightedIndex:C,onHighlightedIndexChange:O,rootRef:A,stopEventPropagation:x,enableHomeAndEndKeys:D,direction:(0,g.useDirection)(),disabledIndices:N,modifierKeys:k}),Z=(0,f.useRenderElement)(P,e,{state:L,ref:b,props:[_,...I,W],stateAttributesMapping:S}),j=t.useMemo(()=>({highlightedIndex:G,onHighlightedIndexChange:Y,highlightItemOnHover:U,relayKeyboardEvent:H}),[G,Y,U,H]);return(0,v.jsx)(m.CompositeRootContext.Provider,{value:j,children:(0,v.jsx)(n.CompositeList,{elementsRef:$,onMapChange:e=>{M?.(e),F(e)},children:Z})})}],405934)},96533,e=>{"use strict";var t=e.i(733332),i=e.i(271645);let n=i.createContext(void 0);e.s(["useToolbarRootContext",0,function(e){let o=i.useContext(n);if(void 0===o&&!e)throw Error((0,t.default)(69));return o}])},33383,e=>{"use strict";var t=e.i(271645),i=e.i(108868),n=e.i(145484),o=e.i(146376);e.s(["useAnchoredPopupScrollLock",0,function(e,r,s,l){let[a,d]=t.useState(!1);(0,o.useIsoLayoutEffect)(()=>
1{if(!e||!r||null==s)return void d(!1);let t=(0,i.ownerDocument)(s).documentElement.clientWidth,n=s.offsetWidth;d(t>0&&n>0&&n>=t-20)},[e,r,s]),(0,n.useScrollLock)(e&&(!r||a),l)}])},590803,e=>{"use strict";e.s(["isElementDisabled",0,function(e){return null==e||e.hasAttribute("disabled")||"true"===e.getAttribute("aria-disabled")}])},8152,e=>{"use strict";let t=(e,t)=>!("u"<typeof Element)&&t instanceof Element&&t.tagName.toUpperCase()===e,i=e=>t("DIV",e)||t("SPAN",e),n=e=>e.complete&&0!==e.naturalHeight,o=/url(?:\(['"]?)(?<url>.*?)(?:['"]?\))/,r=e=>{if(null!==e){if(t("IMG",e))return""===e.currentSrc?void 0:e.currentSrc;else if(i(e)){let{backgroundImage:t}=window.getComputedStyle(e);if(""!==t)return o.exec(t)?.[1]}}},s=e=>{if(null==e)return{};if(!t("SVG",e))return{height:e.offsetHeight,left:e.offsetLeft,width:e.offsetWidth,top:e.offsetTop};{let{parentElement:t}=e,i=e.getBoundingClientRect();if(null==t)return{height:i.height,left:i.left,width:i.width,top:i.top};{let e=t.getBoundingClientRect();return{height:i.height,left:e.left-i.left,top:e.top-i.top,width:i.width}}}},l=({height:e,offset:t,width:i})=>Math.min((window.innerWidth-2*t)/i,(window.innerHeight-2*t)/e),a=({containerHeight:e,containerWidth:t,hasScalableSrc:i,offset:n,targetHeight:o,targetWidth:r})=>0===e||0===t?1:i||0===o||0===r?l({height:e,offset:n,width:t}):(({containerHeight:e,containerWidth:t,offset:i,targetHeight:n,targetWidth:o})=>{let r=l({height:n,offset:i,width:o}),s=o>n?o/t:n/e;return r>1?s:r*s})({containerHeight:e,containerWidth:t,offset:n,targetHeight:o,targetWidth:r}),d=(e,t)=>{let i=parseFloat(e);return e.endsWith("%")?t*i/100:i},h=({containerHeight:e,containerLeft:t,containerTop:i,containerWidth:n,hasScalableSrc:o,offset:r,position:s,targetHeight:l,targetWidth:h,visibleHeight:u,visibleWidth:c})=>{let[m="50%",f="50%"]=s.split(" "),g=d(m,n-c),v=d(f,e-u),E=a({containerHeight:u,containerWidth:c,hasScalableSrc:o,offset:r,targetHeight:l,targetWidth:h});return{top:i+v,left:t+g,width:c*E,height:u*E,initialTransform:`translate(0,0) scale(${1/E})`}},u=({fallback:e,natural:t})=>void 0!==t&&0!==t?t:e,c=/\.svg$/i;var m=e.i(271645),f=e.i(174080);let g=["img","svg",'[role="img"]',"[data-zoom]"].map(e=>`${e}:not([aria-hidden="true"])`).join(","),v={overflow:"",width:""};function E(e){e.preventDefault()}function p(e){return m.default.createElement(w,{...e})}var w=class extends m.default.Component{constructor(){super(...arguments),this.state={id:"",isZoomImgLoaded:!1,loadedImgEl:void 0,modalState:"UNLOADED",shouldRefresh:!1,styleGhost:{}},this.refContent=m.default.createRef(),this.refDialog=m.default.createRef(),this.refModalContent=m.default.createRef(),this.refModalImg=m.default.createRef(),this.refWrap=m.default.createRef(),this.imgEl=null,this.isScaling=!1,this.prevBodyAttrs=v,this.styleModalImg={},this.handleModalStateChange=e=>{let{state:{modalState:t}}=this;"LOADING"!==e&&"LOADING"===t?(this.isScaling=!1,this.loadZoomImg(),window.addEventListener("resize",this.handleResize,{passive:!0}),window.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),window.addEventListener("touchmove",this.handleTouchMove,{passive:!0}),window.addEventListener("touchend",this.handleTouchEnd,{passive:!0}),window.addEventListener("touchcancel",this.handleTouchCancel,{passive:!0}),document.addEventListener("keydown",this.handleKeyDown,!0)):"LOADED"!==e&&"LOADED"===t?window.addEventListener("wheel",this.handleWheel,{passive:!0}):"UNLOADING"!==e&&"UNLOADING"===t?(this.ensureImgTransitionEnd(),window.removeEventListener("wheel",this.handleWheel),window.removeEventListener("touchstart",this.handleTouchStart),window.removeEventListener("touchmove",this.handleTouchMove),window.removeEventListener("touchend",this.handleTouchEnd),window.removeEventListener("touchcancel",this.handleTouchCancel),document.removeEventListener("keydown",this.handleKeyDown,!0)):"UNLOADED"!==e&&"UNLOADED"===t&&(this.bodyScrollEnable(),window.removeEventListener("resize",this.handleResize),this.refDialog.current?.close())},this.setId=()=>{let e=()=>Math.random().toString(16).slice(-4);this.setState({id:e()+e()+e()})},this.setAndTrackImg=()=>{let{refContent:{current:e}}=this;null!=e&&(this.imgEl=e.querySelector(g),null!==this.imgEl?(this.contentNotFoundChangeObserver?.disconnect(),this.img
1El.addEventListener("load",this.handleImgLoad),this.imgEl.addEventListener("click",this.handleZoom),null==this.state.loadedImgEl&&this.handleImgLoad(),this.imgElResizeObserver=new ResizeObserver(e=>{let[t]=e;t?.target!==void 0&&(this.imgEl=t.target,this.setState({styleGhost:s(this.imgEl)}))}),this.imgElResizeObserver.observe(this.imgEl),null==this.contentChangeObserver&&(this.contentChangeObserver=new MutationObserver(()=>{this.setState({styleGhost:s(this.imgEl)})}),this.contentChangeObserver.observe(e,{attributes:!0,childList:!0,subtree:!0}))):null==this.contentNotFoundChangeObserver&&(this.contentNotFoundChangeObserver=new MutationObserver(this.setAndTrackImg),this.contentNotFoundChangeObserver.observe(e,{childList:!0,subtree:!0})))},this.handleIfZoomChanged=e=>{let{props:{isZoomed:t}}=this;!e&&t?this.zoom():e&&!t&&this.unzoom()},this.handleImgLoad=()=>{let e=r(this.imgEl);if(null==e||""===e)return;let i=new Image,{imgEl:o}=this;if(t("IMG",o)){let{sizes:e,srcset:t,crossOrigin:n}=o;i.sizes=e,i.srcset=t,i.crossOrigin=n}i.src=e;let l=()=>{this.setState({loadedImgEl:i,styleGhost:s(this.imgEl)})};i.decode().then(l).catch(()=>{n(i)?l():i.onload=l})},this.handleZoom=e=>{!0!==this.props.isDisabled&&this.hasImage()&&this.props.onZoomChange?.(!0,{event:e})},this.handleUnzoom=e=>{!0!==this.props.isDisabled&&this.props.onZoomChange?.(!1,{event:e})},this.handleBtnUnzoomClick=e=>{e.preventDefault(),e.stopPropagation(),this.handleUnzoom(e)},this.handleDialogClick=e=>{(e.target===this.refModalContent.current||e.target===this.refModalImg.current)&&(e.stopPropagation(),this.handleUnzoom(e))},this.handleDialogClose=e=>{e.stopPropagation(),this.handleUnzoom(e)},this.handleKeyDown=e=>{"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),this.handleUnzoom(e))},this.handleWheel=e=>{e.ctrlKey||this.isScaling||(window.visualViewport?.scale??1)>1||(e.stopPropagation(),queueMicrotask(()=>{this.handleUnzoom(e)}))},this.handleTouchStart=e=>{if(e.touches.length>1){this.isScaling=!0;return}let{changedTouches:t}=e,[i]=t;if(1===t.length&&void 0!==i){let{screenY:e}=i;this.touchYStart=e}},this.handleTouchMove=e=>{let t=window.visualViewport?.scale??1,{changedTouches:i}=e,[n]=i;if(this.props.canSwipeToUnzoom&&!this.isScaling&&t<=1&&null!=this.touchYStart&&void 0!==n){let{screenY:t}=n;this.touchYEnd=t,Math.abs(Math.max(this.touchYStart,this.touchYEnd)-Math.min(this.touchYStart,this.touchYEnd))>this.props.swipeToUnzoomThreshold&&(this.touchYStart=void 0,this.touchYEnd=void 0,this.handleUnzoom(e))}},this.handleTouchEnd=()=>{this.touchYStart=void 0,this.touchYEnd=void 0},this.handleTouchCancel=()=>{this.touchYStart=void 0,this.touchYEnd=void 0},this.handleResize=()=>{this.setState({shouldRefresh:!0})},this.hasImage=()=>null!==this.imgEl&&(void 0!==this.state.loadedImgEl||t("SVG",this.imgEl))&&"none"!==window.getComputedStyle(this.imgEl).display,this.zoom=()=>{this.bodyScrollDisable(),this.refDialog.current?.showModal(),this.setState({modalState:"LOADING"})},this.unzoom=()=>{this.setState({modalState:"UNLOADING"})},this.handleImgTransitionEnd=()=>{clearTimeout(this.timeoutTransitionEnd),"LOADING"===this.state.modalState?this.setState({modalState:"LOADED"}):"UNLOADING"===this.state.modalState&&this.setState({shouldRefresh:!1,modalState:"UNLOADED"})},this.ensureImgTransitionEnd=()=>
1{if(null!==this.refModalImg.current){let{transitionDuration:e}=window.getComputedStyle(this.refModalImg.current),t=parseFloat(e);if(0!==t&&!Number.isNaN(t)){let i=t*(e.endsWith("ms")?1:1e3)+50;this.timeoutTransitionEnd=setTimeout(this.handleImgTransitionEnd,i)}}},this.bodyScrollDisable=()=>{let e=document.body.style;this.prevBodyAttrs={overflow:e.overflow,width:e.width};let t=document.body.clientWidth;e.overflow="hidden",e.width=`${t}px`},this.bodyScrollEnable=()=>{let e=document.body.style,t=this.prevBodyAttrs;e.width=t.width,e.overflow=t.overflow,this.prevBodyAttrs=v},this.loadZoomImg=()=>{let{props:{zoomImg:e}}=this;if(null==e)return;let{src:t}=e;if(void 0!==t&&""!==t){let i=new Image;i.sizes=e.sizes??"",i.srcset=e.srcSet??"",i.crossOrigin=e.crossOrigin??void 0,i.src=t;let o=()=>{this.setState({isZoomImgLoaded:!0})};i.decode().then(o).catch(()=>{n(i)?o():i.onload=o})}},this.UNSAFE_handleSvg=()=>{let{imgEl:e,refModalImg:i,styleModalImg:n}=this;if(t("SVG",e)){let t=e.cloneNode(!0);(e=>{let t="-zoom",i=["clip-path","fill","mask","marker-start","marker-mid","marker-end"],n=new Map;if(e.hasAttribute("id")){let{id:i}=e,o=i+t;n.set(i,o),e.id=o}e.querySelectorAll("[id]").forEach(e=>{let{id:i}=e,o=i+t;n.set(i,o),e.id=o});let o=i.map(e=>`[${e}]`).join(", ");e.querySelectorAll(o).forEach(e=>{for(let t of i){let i=e.getAttribute(t);if(i?.startsWith("url(#")===!0){let o=i.slice(5,-1),r=n.get(o);void 0!==r&&e.setAttribute(t,`url(#${r})`)}}}),e.querySelectorAll("style").forEach(e=>{let{textContent:t}=e;if(""!==t){let i=t;n.forEach((e,t)=>{i=i.replaceAll(`#${t}`,`#${e}`)}),i!==t&&(e.textContent=i)}})})(t),t.style.width=`${n.width??0}px`,t.style.height=`${n.height??0}px`,t.addEventListener("click",this.handleUnzoom),i.current?.firstChild?.remove(),i.current?.appendChild(t)}}}render(){let{handleBtnUnzoomClick:e,handleDialogClick:n,handleDialogClose:o,handleUnzoom:s,handleZoom:l,imgEl:g,props:{a11yNameButtonUnzoom:v,a11yNameButtonZoom:p,children:w,classDialog:b,IconUnzoom:I,IconZoom:L,wrapElement:S,ZoomContent:C,zoomImg:O,zoomMargin:y},refContent:T,refDialog:R,refModalContent:z,refModalImg:D,refWrap:M,state:{id:x,isZoomImgLoaded:A,loadedImgEl:N,modalState:k,shouldRefresh:U,styleGhost:P}}=this,W=`rmiz-modal-${x}`,_=`rmiz-modal-img-${x}`,G=i(g),Y=t("IMG",g),$=t("SVG",g),F=(e=>{if(null!==e)if(t("IMG",e))return e.alt;else return e.getAttribute("aria-label")??void 0})(g),H=r(g),Z=Y?g.sizes:void 0,j=Y?g.srcset:void 0,B=Y?g.crossOrigin:void 0,K=O?.src!==void 0&&""!==O.src,V=this.hasImage(),q=void 0!==F&&""!==F?`${p}: ${F}`:p,X="LOADING"===k||"LOADED"===k,J=V?"found":"not-found",Q="UNLOADED"===k||"UNLOADING"===k?"hidden":"visible";this.styleModalImg=V&&null!==g?(({hasZoomImg:e,imgSrc:t,isSvg:n,isZoomed:o,loadedImgEl:r,offset:s,shouldRefresh:l,targetEl:m})=>{let f=(({hasZoomImg:e,imgSrc:t,isSvg:i})=>i||t?.slice(0,18)==="data:image/svg+xml"||e||void 0!==t&&c.test(t))({hasZoomImg:e,imgSrc:t,isSvg:n}),g=m.getBoundingClientRect(),v=window.getComputedStyle(m),E=null!=r&&i(m),p=null!=r&&!E,w=u({fallback:g.height,natural:r?.naturalHeight}),b=u({fallback:g.width,natural:r?.naturalWidth}),{height:I,left:L,top:S,width:C}=g,O=E?(({backgroundPosition:e,backgroundSize:t,containerHeight:i,containerLeft:n,containerTop:o,containerWidth:r,hasScalableSrc:s,offset:l,targetHeight:a,targetWidth:u})=>{let c={containerHeight:i,containerLeft:n,containerTop:o,containerWidth:r,hasScalableSrc:s,offset:l,position:e,targetHeight:a,targetWidth:u};if("cover"===t||"contain"===t){let e=r/u,n=i/a,o="cover"===t?Math.max(e,n):Math.min(e,n);return h({...c,visibleWidth:u*o,visibleHeight:a*o})}{if("auto"===t)return h({...c,visibleWidth:u,visibleHeight:a});let[e="50%",n="50%"]=t.split(" "),o=Math.min(d(e,r)/u,d(n,i)/a);return h({...c,visibleWidth:u*o,visibleHeight:a*o})}})({backgroundPosition:v.backgroundPosition,backgroundSize:v.backgroundSize,containerHeight:I,containerLeft:L,containerTop:S,containerWidth:C,hasScalableSrc:f,offset:s,targetHeight:w,targetWidth:b}):p?(({containerHeight:e,containerLeft:t,containerTop:i,containerWidth:n,hasScalableSrc:o,objectFit:r,objectPosition:s,offset:l,targetHeight:d,targetWidth:u})=>{let c=r;"scale-down"===c&&(c=u<=n&&d<=e?"none":"contain");let m={containerHeight:e,containerLeft:t,containerTop:i,containerWidth:n,hasScalableSrc:o,offset:l,position:s,targetHeight:d,targetWidth:u};
1if("cover"===c||"contain"===c){let t=n/u,i=e/d,o="cover"===c?Math.max(t,i):Math.min(t,i);return h({...m,visibleWidth:u*o,visibleHeight:d*o})}{if("none"===c)return h({...m,visibleWidth:u,visibleHeight:d});let r=Math.max(n/u,e/d),s=a({containerHeight:d*r,containerWidth:u*r,hasScalableSrc:o,offset:l,targetHeight:d,targetWidth:u});return{top:i,left:t,width:n*s,height:e*s,initialTransform:`translate(0,0) scale(${1/s})`}}})({containerHeight:I,containerLeft:L,containerTop:S,containerWidth:C,hasScalableSrc:f,objectFit:v.objectFit,objectPosition:v.objectPosition,offset:s,targetHeight:w,targetWidth:b}):(({containerHeight:e,containerLeft:t,containerTop:i,containerWidth:n,hasScalableSrc:o,offset:r,targetHeight:s,targetWidth:l})=>{let d=a({containerHeight:e,containerWidth:n,hasScalableSrc:o,offset:r,targetHeight:s,targetWidth:l});return{top:i,left:t,width:n*d,height:e*d,initialTransform:`translate(0,0) scale(${1/d})`}})({containerHeight:I,containerLeft:L,containerTop:S,containerWidth:C,hasScalableSrc:f,offset:s,targetHeight:w,targetWidth:b}),y={top:O.top,left:O.left,width:O.width,height:O.height,transform:(({height:e,initialTransform:t,isZoomed:i,left:n,top:o,userTransform:r,width:s})=>{let l="";if("none"!==r&&""!==r){let t=s/2,i=e/2;l=`translate(${t}px,${i}px) ${r} translate(${-t}px,${-i}px)`}if(!i)return""===l?t:`${t} ${l}`;let a=window.innerWidth/2,d=window.innerHeight/2,h=`translate(${a-(n+s/2)}px,${d-(o+e/2)}px) scale(1)`;return""===l?h:`${h} ${l}`})({...O,isZoomed:o,userTransform:v.transform})};return o&&l&&(y.transitionDuration="0.01ms"),y})({hasZoomImg:K,imgSrc:H,isSvg:$,isZoomed:X,loadedImgEl:N,offset:y,shouldRefresh:U,targetEl:g}):{};let ee=null;if(V){let t=Y||G?m.default.createElement("img",{alt:F,crossOrigin:B,sizes:Z,src:H,srcSet:j,...A&&"LOADED"===k?O:{},"data-rmiz-modal-img":"",height:this.styleModalImg.height??void 0,id:_,onTransitionEnd:this.handleImgTransitionEnd,ref:D,style:this.styleModalImg,width:this.styleModalImg.width??void 0}):$?m.default.createElement("div",{"data-rmiz-modal-img":!0,onTransitionEnd:this.handleImgTransitionEnd,ref:D,style:this.styleModalImg}):null,i=m.default.createElement("button",{"aria-label":v,"data-rmiz-btn-unzoom":"",onClick:e,type:"button"},m.default.createElement(I,null));ee=null==C?m.default.createElement(m.default.Fragment,null,t,i):m.default.createElement(C,{buttonUnzoom:i,modalState:k,img:t,isZoomImgLoaded:A,onUnzoom:s})}return m.default.createElement(S,{"data-rmiz":"",ref:M},m.default.createElement(S,{"data-rmiz-content":J,ref:T,style:{visibility:"UNLOADED"===k?"visible":"hidden"}},w),V&&m.default.createElement(S,{"data-rmiz-ghost":"",style:P},m.default.createElement("button",{"aria-label":q,"data-rmiz-btn-zoom":"",onClick:l,type:"button"},m.default.createElement(L,null))),V&&f.default.createPortal(m.default.createElement("dialog",{"aria-labelledby":_,"aria-modal":"true",className:b,"data-rmiz-modal":"",id:W,onClick:n,onClose:o,onCancel:E,ref:R,role:"dialog"},m.default.createElement("div",{"data-rmiz-modal-overlay":Q}),m.default.createElement("div",{"data-rmiz-modal-content":"",ref:z},ee)),function(){let e=document.querySelector("[data-rmiz-portal]");if(null!=e)return e;let t=document.createElement("div");return t.setAttribute("data-rmiz-portal",""),document.body.appendChild(t),t}()))}componentDidMount(){this.setId(),this.setAndTrackImg(),this.handleImgLoad(),this.UNSAFE_handleSvg()}componentWillUnmount(){"UNLOADED"!==this.state.modalState&&this.bodyScrollEnable(),this.contentChangeObserver?.disconnect(),this.contentNotFoundChangeObserver?.disconnect(),this.imgElResizeObserver?.disconnect(),this.imgEl?.removeEventListener("load",this.handleImgLoad),this.imgEl?.removeEventListener("click",this.handleZoom),clearTimeout(this.timeoutTransitionEnd),window.removeEventListener("wheel",this.handleWheel),window.removeEventListener("touchstart",this.handleTouchStart),window.removeEventListener("touchmove",this.handleTouchMove),window.removeEventListener("touchend",this.handleTouchEnd),window.removeEventListener("touchcancel",this.handleTouchCancel),window.removeEventListener("resize",this.handleResize),document.removeEventListener("keydown",this.handleKeyDown,!0)}componentDidUpdate(e,t){this.handleModalStateChange(t.modalState),this.UNSAFE_handleSvg(),this.handleIfZoomChanged(e.isZoomed)}};function b({onZoomChange:e,...t}){let[i,n]=m.default.useState(!1),o=m.default.useCallback((t,{event:i})=>{n(t),e?.(t,{event:i})},[e]);return m.default.createElement(p,{...t,isZoomed:i,onZoomChange:o})}w.defaultProps={a11yNameButtonUnzoom:"Minimize image",a11yNameButtonZoom:"Expand image",canSwipeToUnzoom:!0,IconUnzoom:function(){return m.default.createElement("svg",{"aria-hidden":"true","data-rmiz-btn-unzoom-icon":!0,fill:"currentColor",focusable:"false",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},m.default.createElement("path",{d:"M 14.144531 1.148438 L 9 6.292969 L 9 3 L 8 3 L 8 8 L 13 8 L 13 7 L 9.707031 7 L 14.855469 1.851563 Z M 8 8 L 3 8 L 3 9 L 6.292969 9 L 1.148438 14.144531 L 1.851563 14.855469 L 7 9.707031 L 7 13 L 8 13 Z"}))},IconZoom:function(){return m.default.createElement("svg",{"aria-hidden":"true","data-rmiz-btn-zoom-icon":!0,fill:"currentColor",focusable:"false",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},m.default.createElement("path",{d:"M 9 1 L 9 2 L 12.292969 2 L 2 12.292969 L 2 9 L 1 9 L 1 14 L 6 14 L 6 13 L 2.707031 13 L 13 2.707031 L 13 6 L 14 6 L 14 1 Z"}))},isDisabled:!1,swipeToUnzoomThreshold:10,wrapElement:"div",zoomMargin:0};var I=e.i(224110),L=e.i(843476);e.s(["ImageZoom",0,function({zoomInProps:e,children:t,rmiz:i,...n}){var o;return(0,L.jsx)(b,{zoomMargin:20,wrapElement:"span",...i,zoomImg:{src:"string"==typeof(o=n.src)?o:"object"==typeof o?"default"in o?o.default.src:o.src:"",sizes:void 0,...e},children:t??(0,L.jsx)(I.Image,{sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 70vw, 900px",...n})})}],8152)},224110,e=>{"use strict";var t=e.i(271645),i=e.i(843476);let n=()=>{throw Error("You need to wrap your application inside `FrameworkProvider`.")},o=(0,t.createContext)({useParams:n,useRouter:n,usePathname:n});e.s(["FrameworkProvider",0,function({Link:e,useRouter:n,useParams:r,usePathname:s,Image:l,children:a}){let d=(0,t.useMemo)(()=>({usePathname:s,useRouter:n,Link:e,Image:l,useParams:r}),[e,s,n,r,l]);return(0,i.jsx)(o,{value:d,children:a})},"Image",0,function(e){let{Image:n}=(0,t.use)(o);if(!n){let{src:t,alt:n,priority:o,...r}=e;return(0,i.jsx)("img",{alt:n,src:t,fetchPriority:o?"high":"auto",...r})}return(0,i.jsx)(n,{...e})},"Link",0,function(e){let{Link:n}=(0,t.use)(o);if(!n){let{href:t,prefetch:n,...o}=e;return(0,i.jsx)("a",{href:t,...o}
1)}return(0,i.jsx)(n,{...e})},"useParams",0,function(){return(0,t.use)(o).useParams()},"usePathname",0,function(){return(0,t.use)(o).usePathname()},"useRouter",0,function(){return(0,t.use)(o).useRouter()}])}]); 2 3//# chunkId=01a0c56d-28b1-74d1-8de9-617cc4cbc773
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.