PageSourceSearch

https://www.smartchats.ai/_site/_next/static/chunks/974-62333305ae190fc3.js

js smartchats.ai collected 2026-10-05 15:06:48 UTC 28,464 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[974],{3585:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return b}});let o=i(3219),n=i(6794),r=i(2322),s=n._(i(2784)),l=o._(i(8316)),a=o._(i(6114)),d=i(9442),h=i(9087),c=i(5867);i(2406);let u=i(420),m=o._(i(6406)),g={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function f(e,t,i,o,n,r,s){let l=null==e?void 0:e.src;e&&e["data-loaded-src"]!==l&&(e["data-loaded-src"]=l,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&n(!0),null==i?void 0:i.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let o=!1,n=!1;i.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>o,isPropagationStopped:()=>n,persist:()=>{},preventDefault:()=>{o=!0,t.preventDefault()},stopPropagation:()=>{n=!0,t.stopPropagation()}})}(null==o?void 0:o.current)&&o.current(e)}}))}function p(e){return s.use?{fetchPriority:e}:{fetchpriority:e}}let v=(0,s.forwardRef)((e,t)=>{let{src:i,srcSet:o,sizes:n,height:l,width:a,decoding:d,className:h,style:c,fetchPriority:u,placeholder:m,loading:g,unoptimized:v,fill:w,onLoadRef:b,onLoadingCompleteRef:E,setBlurComplete:S,setShowAltText:y,sizesInput:z,onLoad:L,onError:C,...I}=e;return(0,r.jsx)("img",{...I,...p(u),loading:g,width:a,height:l,decoding:d,"data-nimg":w?"fill":"1",className:h,style:c,sizes:n,srcSet:o,src:i,ref:(0,s.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(C&&(e.src=e.src),e.complete&&f(e,m,b,E,S,v,z))},[i,m,b,E,S,C,v,z,t]),onLoad:e=>{f(e.currentTarget,m,b,E,S,v,z)},onError:e=>{y(!0),"empty"!==m&&S(!0),C&&C(e)}})});function w(e){let{isAppRouter:t,imgAttributes:i}=e,o={as:"image",imageSrcSet:i.srcSet,imageSizes:i.sizes,crossOrigin:i.crossOrigin,referrerPolicy:i.referrerPolicy,...p(i.fetchPriority)};return t&&l.default.preload?(l.default.preload(i.src,o),null):(0,r.jsx)(a.default,{children:(0,r.jsx)("link",{rel:"preload",href:i.srcSet?void 0:i.src,...o},"__nimg-"+i.src+i.srcSet+i.sizes)})}let b=(0,s.forwardRef)((e,t)=>{let i=(0,s.useContext)(u.RouterContext),o=(0,s.useContext)(c.ImageConfigContext),n=(0,s.useMemo)(()=>{var e;let t=g||o||h.imageConfigDefault,i=[...t.deviceSizes,...t.imageSizes].sort((e,t)=>e-t),n=t.deviceSizes.sort((e,t)=>e-t),r=null==(e=t.qualities)?void 0:e.sort((e,t)=>e-t);return{...t,allSizes:i,deviceSizes:n,qualities:r}},[o]),{onLoad:l,onLoadingComplete:a}=e,f=(0,s.useRef)(l);(0,s.useEffect)(()=>{f.current=l},[l]);let p=(0,s.useRef)(a);(0,s.useEffect)(()=>{p.current=a},[a]);let[b,E]=(0,s.useState)(!1),[S,y]=(0,s.useState)(!1),{props:z,meta:L}=(0,d.getImgProps)(e,{defaultLoader:m.default,imgConf:n,blurComplete:b,showAltText:S});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(v,{...z,unoptimized:L.unoptimized,placeholder:L.placeholder,fill:L.fill,onLoadRef:f,onLoadingCompleteRef:p,setBlurComplete:E,setShowAltText:y,sizesInput:e.sizes,ref:t}),L.priority?(0,r.jsx)(w,{isAppRouter:!i,imgAttributes:z}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9442:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return l}}),i(2406);let o=i(8655),n=i(9087);function r(e){return void 0!==e.default}function s(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function l(e,t){var i,l;let a,d,h,{src:c,sizes:u,unoptimized:m=!1,priority:g=!1,loading:f,className:p,quality:v,width:w,height:b,fill:E=!1,style:S,overrideSrc:y,onLoad:z,onLoadingComplete:L,placeholder:C="empty",blurDataURL:I,fetchPriority:x,decoding:D="async",layout:M,objectFit:O,objectPosition:j,lazyBoundary:A,lazyRoot:N,...T}=e,{imgConf:k,showAltText:P,blurComplete:R,defaultLoader:_}=t,U=k||n.imageConfigDefault;if("allSizes"in U)a=U;else{let e=[...U.deviceSizes,...U.imageSizes].sort((e,t)=>
1e-t),t=U.deviceSizes.sort((e,t)=>e-t),o=null==(i=U.qualities)?void 0:i.sort((e,t)=>e-t);a={...U,allSizes:e,deviceSizes:t,qualities:o}}if(void 0===_)throw Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config");let $=T.loader||_;delete T.loader,delete T.srcSet;let W="__next_img_default"in $;if(W){if("custom"===a.loader)throw Error('Image with src "'+c+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=$;$=t=>{let{config:i,...o}=t;return e(o)}}if(M){"fill"===M&&(E=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[M];e&&(S={...S,...e});let t={responsive:"100vw",fill:"100vw"}[M];t&&!u&&(u=t)}let G="",Z=s(w),F=s(b);if("object"==typeof(l=c)&&(r(l)||void 0!==l.src)){let e=r(c)?c.default:c;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(d=e.blurWidth,h=e.blurHeight,I=I||e.blurDataURL,G=e.src,!E){if(Z||F){if(Z&&!F){let t=Z/e.width;F=Math.round(e.height*t)}else if(!Z&&F){let t=F/e.height;Z=Math.round(e.width*t)}}else Z=e.width,F=e.height}}let B=!g&&("lazy"===f||void 0===f);(!(c="string"==typeof c?c:G)||c.startsWith("data:")||c.startsWith("blob:"))&&(m=!0,B=!1),a.unoptimized&&(m=!0),W&&c.endsWith(".svg")&&!a.dangerouslyAllowSVG&&(m=!0),g&&(x="high");let Y=s(v),H=Object.assign(E?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:O,objectPosition:j}:{},P?{}:{color:"transparent"},S),q=R||"empty"===C?null:"blur"===C?'url("data:image/svg+xml;charset=utf-8,'+(0,o.getImageBlurSvg)({widthInt:Z,heightInt:F,blurWidth:d,blurHeight:h,blurDataURL:I||"",objectFit:H.objectFit})+'")':'url("'+C+'")',V=q?{backgroundSize:H.objectFit||"cover",backgroundPosition:H.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:q}:{},K=function(e){let{config:t,src:i,unoptimized:o,width:n,quality:r,sizes:s,loader:l}=e;if(o)return{src:i,srcSet:void 0,sizes:void 0};let{widths:a,kind:d}=function(e,t,i){let{deviceSizes:o,allSizes:n}=e;if(i){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let o;o=e.exec(i);o)t.push(parseInt(o[2]));if(t.length){let e=.01*Math.min(...t);return{widths:n.filter(t=>t>=o[0]*e),kind:"w"}}return{widths:n,kind:"w"}}return"number"!=typeof t?{widths:o,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>n.find(t=>t>=e)||n[n.length-1]))],kind:"x"}}(t,n,s),h=a.length-1;return{sizes:s||"w"!==d?s:"100vw",srcSet:a.map((e,o)=>l({config:t,src:i,quality:r,width:e})+" "+("w"===d?e:o+1)+d).join(", "),src:l({config:t,src:i,quality:r,width:a[h]})}}({config:a,src:c,unoptimized:m,width:Z,quality:Y,sizes:u,loader:$});return{props:{...T,loading:B?"lazy":f,fetchPriority:x,width:Z,height:F,decoding:D,className:p,style:{...H,...V},sizes:K.sizes,srcSet:K.srcSet,src:y||K.src},meta:{unoptimized:m,priority:g,placeholder:C,fill:E}}}},8655:function(e,t){"use strict";function i(e){let{widthInt:t,heightInt:i,blurWidth:o,blurHeight:n,blurDataURL:r,objectFit:s}=e,l=o?40*o:t,a=n?40*n:i,d=l&&a?"viewBox='0 0 "+l+" "+a+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+d+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(d?"none":"contain"===s?"xMidYMid":"cover"===s?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+r+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return i}})},8534:function(e,t,i){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{default:function(){return a},getImageProps:function(){return l}});let o=i(3219),n=i(9442),r=i(3585),s=o._(i(6406));function l(e){let{props:t}=(0,n.getImgProps)(e,{defaultLoader:s.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,i]of Object.entries(t))void 0===i&&delete t[e];return{props:t}}let a=r.Image},6406:function(e,t){"use strict";function i(e){var t;let{config:i,src:o,width:n,quality:r}=e,s=r||(null==(t=i.qualities)?void 0:t.reduce((e,t)=>Math.abs(t-75)<Math.abs(e-75)?t:e))||75;return i.path+"?url="+encodeURIComponent(o)+"&w="+n+"&q="+s+"&dpl=dpl_in4A8PTAozZb2KjjS3uxaBCGwNkj"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}}),i.__next_img_default=!0;let o=i},6577:function(e,t,i){e.exports=i(8534)},7854:function(e,t,i){"use strict";i.d(t,{a:function(){return $}});var o=i(5392),n=i(2322),r=i(2784),s=i(8316);let l=e=>{let t="-zoom",i=["clip-path","fill","mask","marker-start","marker-mid","marker-end"],o=new Map;if(e.hasAttribute("id")){let{id:i}=e,n=i+t;o.set(i,n),e.id=n}e.querySelectorAll("[id]").forEach(e=>{let{id:i}=e,n=i+t;o.set(i,n),e.id=n});let n=i.map(e=>`[${e}]`).join(", ");e.querySelectorAll(n).forEach(e=>{for(let t of i){let i=e.getAttribute(t);if(i?.startsWith("url(#")===!0){let n=i.slice(5,-1),r=o.get(n);void 0!==r&&e.setAttribute(t,`url(#${r})`)}}}),e.querySelectorAll("style").forEach(e=>{let{textContent:t}=e;if(""!==t){let i=t;o.forEach((e,t)=>{i=i.replaceAll(`#${t}`,`#${e}`)}),i!==t&&(e.textContent=i)}})},a=(e,t)=>"undefined"!=typeof Element&&t instanceof Element&&t.tagName.toUpperCase()===e,d=e=>a("DIV",e)||a("SPAN",e),h=e=>a("IMG",e),c=e=>e.complete&&0!==e.naturalHeight,u=e=>a("SVG",e),m=e=>{if(null!==e)return h(e)?e.alt:e.getAttribute("aria-label")??void 0},g=/url(?:\(['"]?)(?<url>.*?)(?:['"]?\))/,f=e=>{if(null!==e){if(h(e))return""===e.currentSrc?void 0:e.currentSrc;if(d(e)){let{backgroundImage:t}=window.getComputedStyle(e);if(""!==t)return g.exec(t)?.[1]}}},p=e=>{if(null==e)return{};if(!u(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}}}},v=({height:e,offset:t,width:i})=>Math.min((window.innerWidth-2*t)/i,(window.innerHeight-2*t)/e),w=({containerHeight:e,containerWidth:t,offset:i,targetHeight:o,targetWidth:n})=>{let r=v({height:o,offset:i,width:n}),s=n>o?n/t:o/e;return r>1?s:r*s},b=({containerHeight:e,containerWidth:t,hasScalableSrc:i,offset:o,targetHeight:n,targetWidth:r})=>0===e||0===t?1:i||0===n||0===r?v({height:e,offset:o,width:t}):w({containerHeight:e,containerWidth:t,offset:o,targetHeight:n,targetWidth:r}),E=({containerHeight:e,containerLeft:t,containerTop:i,containerWidth:o,hasScalableSrc:n,offset:r,targetHeight:s,targetWidth:l})=>{let a=b({containerHeight:e,containerWidth:o,hasScalableSrc:n,offset:r,targetHeight:s,targetWidth:l});return{top:i,left:t,width:o*a,height:e*a,initialTransform:`translate(0,0) scale(${1/a})`}},S=(e,t)=>{let i=parseFloat(e);return e.endsWith("%")?t*i/100:i},y=({containerHeight:e,containerLeft:t,containerTop:i,containerWidth:o,hasScalableSrc:n,offset:r,position:s,targetHeight:l,targetWidth:a,visibleHeight:d,visibleWidth:h})=>{let[c="50%",u="50%"]=s.split(" "),m=S(c,o-h),g=S(u,e-d),f=b({containerHeight:d,containerWidth:h,hasScalableSrc:n,offset:r,targetHeight:l,targetWidth:a});return{top:i+g,left:t+m,width:h*f,height:d*f,initialTransform:`translate(0,0) scale(${1/f})`}},z=({containerHeight:e,containerLeft:t,containerTop:i,containerWidth:o,hasScalableSrc:n,objectFit:r,objectPosition:s,offset:l,targetHeight:a,targetWidth:d})=>{let h=r;"scale-down"===h&&(h=d<=o&&a<=e?"none":"contain");let c={containerHeight:e,containerLeft:t,containerTop:i,containerWidth:o,hasScalableSrc:n,offset:l,position:s,targetHeight:a,targetWidth:d};
1if("cover"===h||"contain"===h){let t=o/d,i=e/a,n="cover"===h?Math.max(t,i):Math.min(t,i);return y({...c,visibleWidth:d*n,visibleHeight:a*n})}if("none"===h)return y({...c,visibleWidth:d,visibleHeight:a});{let r=Math.max(o/d,e/a),s=b({containerHeight:a*r,containerWidth:d*r,hasScalableSrc:n,offset:l,targetHeight:a,targetWidth:d});return{top:i,left:t,width:o*s,height:e*s,initialTransform:`translate(0,0) scale(${1/s})`}}},L=({backgroundPosition:e,backgroundSize:t,containerHeight:i,containerLeft:o,containerTop:n,containerWidth:r,hasScalableSrc:s,offset:l,targetHeight:a,targetWidth:d})=>{let h={containerHeight:i,containerLeft:o,containerTop:n,containerWidth:r,hasScalableSrc:s,offset:l,position:e,targetHeight:a,targetWidth:d};if("cover"===t||"contain"===t){let e=r/d,o=i/a,n="cover"===t?Math.max(e,o):Math.min(e,o);return y({...h,visibleWidth:d*n,visibleHeight:a*n})}if("auto"===t)return y({...h,visibleWidth:d,visibleHeight:a});{let[e="50%",o="50%"]=t.split(" "),n=Math.min(S(e,r)/d,S(o,i)/a);return y({...h,visibleWidth:d*n,visibleHeight:a*n})}},C=({height:e,initialTransform:t,isZoomed:i,left:o,top:n,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-(o+s/2)}px,${d-(n+e/2)}px) scale(1)`;return""===l?h:`${h} ${l}`},I=({fallback:e,natural:t})=>void 0!==t&&0!==t?t:e,x=/\.svg$/i,D=({hasZoomImg:e,imgSrc:t,isSvg:i})=>i||t?.slice(0,18)==="data:image/svg+xml"||e||void 0!==t&&x.test(t),M=({hasZoomImg:e,imgSrc:t,isSvg:i,isZoomed:o,loadedImgEl:n,offset:r,shouldRefresh:s,targetEl:l})=>{let a=D({hasZoomImg:e,imgSrc:t,isSvg:i}),h=l.getBoundingClientRect(),c=window.getComputedStyle(l),u=null!=n&&d(l),m=I({fallback:h.height,natural:n?.naturalHeight}),g=I({fallback:h.width,natural:n?.naturalWidth}),{height:f,left:p,top:v,width:w}=h,b=u?L({backgroundPosition:c.backgroundPosition,backgroundSize:c.backgroundSize,containerHeight:f,containerLeft:p,containerTop:v,containerWidth:w,hasScalableSrc:a,offset:r,targetHeight:m,targetWidth:g}):null==n||u?E({containerHeight:f,containerLeft:p,containerTop:v,containerWidth:w,hasScalableSrc:a,offset:r,targetHeight:m,targetWidth:g}):z({containerHeight:f,containerLeft:p,containerTop:v,containerWidth:w,hasScalableSrc:a,objectFit:c.objectFit,objectPosition:c.objectPosition,offset:r,targetHeight:m,targetWidth:g}
1),S={top:b.top,left:b.left,width:b.width,height:b.height,transform:C({...b,isZoomed:o,userTransform:c.transform})};return o&&s&&(S.transitionDuration="0.01ms"),S},O=["img","svg",'[role="img"]',"[data-zoom]"].map(e=>`${e}:not([aria-hidden="true"])`).join(","),j={overflow:"",position:"",top:"",width:""};function A(e){e.preventDefault()}function N(e){return r.createElement(T,{...e})}class T extends r.Component{constructor(){super(...arguments),this.state={id:"",isZoomImgLoaded:!1,loadedImgEl:void 0,modalState:"UNLOADED",shouldRefresh:!1,styleGhost:{}},this.refContent=r.createRef(),this.refDialog=r.createRef(),this.refModalContent=r.createRef(),this.refModalImg=r.createRef(),this.refWrap=r.createRef(),this.imgEl=null,this.isScaling=!1,this.prevBodyAttrs=j,this.prevScrollY=0,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(O),null!==this.imgEl?(this.contentNotFoundChangeObserver?.disconnect(),this.imgEl.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:p(this.imgEl)}))}),this.imgElResizeObserver.observe(this.imgEl),null==this.contentChangeObserver&&(this.contentChangeObserver=new MutationObserver(()=>{this.setState({styleGhost:p(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=f(this.imgEl);if(null==e||""===e)return;let t=new Image,{imgEl:i}=this;if(h(i)){let{sizes:e,srcset:o,crossOrigin:n}=i;t.sizes=e,t.srcset=o,t.crossOrigin=n}t.src=e;let o=()=>{this.setState({loadedImgEl:t,styleGhost:p(this.imgEl)})};t.decode().then(o).catch(()=>{if(c(t)){o();return}t.onload=o})},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=>
1{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,[o]=i;if(this.props.canSwipeToUnzoom&&!this.isScaling&&t<=1&&null!=this.touchYStart&&void 0!==o){let{screenY:t}=o;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||u(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,position:e.position,top:e.top,width:e.width};let t=window.scrollY;this.prevScrollY=t;let i=document.body.clientWidth;e.overflow="hidden",e.position="fixed",e.top=`-${t}px`,e.width=`${i}px`},this.bodyScrollEnable=()=>{let e=document.body.style,t=this.prevBodyAttrs;e.width=t.width,e.position=t.position,e.top=t.top,e.overflow=t.overflow,window.scrollTo(0,this.prevScrollY),this.prevBodyAttrs=j,this.prevScrollY=0},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(()=>{if(c(i)){o();return}i.onload=o})}},this.UNSAFE_handleSvg=()=>{let{imgEl:e,refModalImg:t,styleModalImg:i}=this;if(u(e)){let o=e.cloneNode(!0);l(o),o.style.width=`${i.width??0}px`,o.style.height=`${i.height??0}px`,o.addEventListener("click",this.handleUnzoom),t.current?.firstChild?.remove(),t.current?.appendChild(o)}}}render(){let{handleBtnUnzoomClick:e,handleDialogClick:t,handleDialogClose:i,handleUnzoom:o,handleZoom:n,imgEl:l,props:{a11yNameButtonUnzoom:a,a11yNameButtonZoom:c,children:g,classDialog:p,IconUnzoom:v,IconZoom:w,wrapElement:b,ZoomContent:E,zoomImg:S,zoomMargin:y},refContent:z,refDialog:L,refModalContent:C,refModalImg:I,refWrap:x,state:{id:D,isZoomImgLoaded:O,loadedImgEl:j,modalState:N,shouldRefresh:T,styleGhost:k}}=this,P=`rmiz-modal-${D}`,R=`rmiz-modal-img-${D}`,_=d(l),U=h(l),$=u(l),W=m(l),G=f(l),Z=U?l.sizes:void 0,F=U?l.srcset:void 0,B=U?l.crossOrigin:void 0,Y=S?.src!==void 0&&""!==S.src,H=this.hasImage(),q=void 0!==W&&""!==W?`${c}: ${W}`:c,V="LOADING"===N||"LOADED"===N,K=H?"found":"not-found",J="UNLOADED"===N||"UNLOADING"===N?"hidden":"visible";this.styleModalImg=H&&null!==l?M({hasZoomImg:Y,imgSrc:G,isSvg:$,isZoomed:V,loadedImgEl:j,offset:y,shouldRefresh:T,targetEl:l}):{};let Q=null;if(H){let t=U||_?r.createElement("img",{alt:W,crossOrigin:B,sizes:Z,src:G,srcSet:F,...O&&"LOADED"===N?S:{},"data-rmiz-modal-img":"",height:this.styleModalImg.height??void 0,id:R,onTransitionEnd:this.handleImgTransitionEnd,ref:I,style:this.styleModalImg,width:this.styleModalImg.width??void 0}):$?r.createElement("div",{"data-rmiz-modal-img":!0,onTransitionEnd:this.handleImgTransitionEnd,ref:I,style:this.styleModalImg}):null,i=r.createElement("button",{"aria-label":a,"data-rmiz-btn-unzoom":"",onClick:e,type:"button"},r.createElement(v,null));Q=null==E?r.createElement(r.Fragment,null,t,i):r.createElement(E,{buttonUnzoom:i,modalState:N,img:t,isZoomImgLoaded:O,onUnzoom:o})}return r.createElement(b,{"aria-owns":P,"data-rmiz":"",ref:x},r.createElement(b,{"data-rmiz-content":K,ref:z,style:{visibility:"UNLOADED"===N?"visible":"hidden"}},g),H&&r.createElement(b,{"data-rmiz-ghost":"",style:k},r.createElement("button",{"aria-label":q,"data-rmiz-btn-zoom":"",onClick:n,type:"button"},r.createElement(w,null))),H&&s.createPortal(r.createElement("dialog",{"aria-labelledby":R,"aria-modal":"true",className:p,"data-rmiz-modal":"",id:P,onClick:t,onClose:i,onCancel:A,ref:L,role:"dialog"},r.createElement("div",{"data-rmiz-modal-overlay":J}),r.createElement("div",{"data-rmiz-modal-content":"",ref:C},Q)),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.img
1El?.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 k({onZoomChange:e,...t}){let[i,o]=r.useState(!1),n=r.useCallback((t,{event:i})=>{o(t),e?.(t,{event:i})},[e]);return r.createElement(N,{...t,isZoomed:i,onZoomChange:n})}T.defaultProps={a11yNameButtonUnzoom:"Minimize image",a11yNameButtonZoom:"Expand image",canSwipeToUnzoom:!0,IconUnzoom:function(){return r.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"},r.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 r.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"},r.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 P=i(6577),R=i.n(P);let _=(0,r.forwardRef)((e,t)=>{let i="object"==typeof e.src?R():"img";return(0,n.jsx)(i,{...e,ref:t})});_.displayName="Image";let U={img:e=>{var t;let i=(0,r.useRef)(null),[o,s]=(0,r.useState)(!1);(0,r.useEffect)(()=>{s(null!==i.current.closest("a"))},[]);let l=(0,n.jsx)(_,{...e,ref:i});return o?l:(0,n.jsx)(k,{zoomMargin:40,zoomImg:{src:"string"==typeof(t=e.src)?t:"default"in t?t.default.src:t.src,alt:e.alt},wrapElement:"span",children:l})}},$=e=>({...U,...(0,o.a)(e)})},4974:function(e,t,i){"use strict";i.d(t,{c:function(){return d}});var o=i(2322),n=i(5378),r=i(6154);let s=(0,i(2784).createContext)({}),l=s.Provider;s.displayName="SSG";var a=i(7854);function d(e,t,i,o){let r=globalThis[n.ud];return r.route=t,r.pageMap=i.pageMap,r.context[t]={Content:e,pageOpts:i,useTOC:o},h}function h({__nextra_pageMap:e=[],__nextra_dynamic_opts:t,...i}){let s=globalThis[n.ud],{Layout:a,themeConfig:d}=s,{route:h,locale:u}=(0,r.t)(),m=s.context[h];if(!m)throw Error(`No content found for the "${h}" route. Please report it as a bug.`);let{pageOpts:g,useTOC:f,Content:p}=m;if(h.startsWith("/["))g.pageMap=e;else for(let{route:t,children:i}of e){let e=t.split("/").slice(u?2:1);(function e(t,[i,...o]){for(let n of t)if("children"in n&&i===n.name)return o.length?e(n.children,o):n})(g.pageMap,e).children=i}if(t){let{title:e,frontMatter:i}=t;g={...g,title:e,frontMatter:i}}return(0,o.jsx)(a,{themeConfig:d,pageOpts:g,pageProps:i,children:(0,o.jsx)(l,{value:i,children:(0,o.jsx)(c,{useTOC:f,children:(0,o.jsx)(p,{...i})})})})}function c({children:e,useTOC:t}){let{wrapper:i}=(0,a.a)();return(0,o.jsx)(u,{useTOC:t,wrapper:i,children:e})}function u({children:e,useTOC:t,wrapper:i,...n}){let r=t(n);return i?(0,o.jsx)(i,{toc:r,children:e}):e}}}]);

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.