PageSourceSearch

https://civilguruji.com/_next/static/chunks/5705-95b4694c1d3ecc5b.js

js civilguruji.com collected 2026-10-07 14:51:45 UTC 17,286 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5705],{28411:function(){},80091:function(){},32627:function(t,e,i){"use strict";i.d(e,{f:function(){return N}});var n=i(67294),o=i(73935);let a=(t,e)=>"undefined"!=typeof Element&&e instanceof Element&&e.tagName.toUpperCase()===t,s=t=>a("DIV",t)||a("SPAN",t),r=t=>a("IMG",t),l=t=>t.complete&&0!==t.naturalHeight,h=t=>a("SVG",t),d=({height:t,offset:e,width:i})=>Math.min((window.innerWidth-2*e)/i,(window.innerHeight-2*e)/t),c=({containerHeight:t,containerWidth:e,offset:i,targetHeight:n,targetWidth:o})=>{let a=d({height:n,offset:i,width:o}),s=o>n?o/e:n/t;return a>1?s:a*s},m=({containerHeight:t,containerWidth:e,hasScalableSrc:i,offset:n,targetHeight:o,targetWidth:a})=>0===t||0===e?1:i||0===o||0===a?d({height:t,offset:n,width:e}):c({containerHeight:t,containerWidth:e,offset:n,targetHeight:o,targetWidth:a}),u=/url(?:\(['"]?)(?<url>.*?)(?:['"]?\))/,g=t=>{if(null!==t){if(r(t))return""===t.currentSrc?void 0:t.currentSrc;if(s(t)){let{backgroundImage:e}=window.getComputedStyle(t);if(""!==e)return u.exec(e)?.[1]}}},v=t=>{if(null!==t)return r(t)?t.alt:t.getAttribute("aria-label")??void 0},f=({containerHeight:t,containerLeft:e,containerTop:i,containerWidth:n,hasScalableSrc:o,offset:a,targetHeight:s,targetWidth:r})=>{let l=m({containerHeight:t,containerWidth:n,hasScalableSrc:o,offset:a,targetHeight:s,targetWidth:r});return{top:i,left:e,width:n*l,height:t*l,transform:`translate(0,0) scale(${1/l})`}},p=({position:t,relativeNum:e})=>{let i=parseFloat(t);return t.endsWith("%")?e*i/100:i},w=({containerHeight:t,containerLeft:e,containerTop:i,containerWidth:n,hasScalableSrc:o,objectFit:a,objectPosition:s,offset:r,targetHeight:l,targetWidth:h})=>{let d=a;if("scale-down"===d&&(d=h<=n&&l<=t?"none":"contain"),"cover"===d||"contain"===d){let a=n/h,c=t/l,u="cover"===d?Math.max(a,c):Math.min(a,c),[g="50%",v="50%"]=s.split(" "),f=p({position:g,relativeNum:n-h*u}),w=p({position:v,relativeNum:t-l*u}),E=m({containerHeight:l*u,containerWidth:h*u,hasScalableSrc:o,offset:r,targetHeight:l,targetWidth:h});return{top:i+w,left:e+f,width:h*u*E,height:l*u*E,transform:`translate(0,0) scale(${1/E})`}}if("none"===d){let[a="50%",d="50%"]=s.split(" "),c=p({position:a,relativeNum:n-h}),u=p({position:d,relativeNum:t-l}),g=m({containerHeight:l,containerWidth:h,hasScalableSrc:o,offset:r,targetHeight:l,targetWidth:h});return{top:i+u,left:e+c,width:h*g,height:l*g,transform:`translate(0,0) scale(${1/g})`}}if("fill"!==d)return{};{let e=Math.max(n/h,t/l),i=m({containerHeight:l*e,containerWidth:h*e,hasScalableSrc:o,offset:r,targetHeight:l,targetWidth:h});return{width:n*i,height:t*i,transform:`translate(0,0) scale(${1/i})`}}},E=({backgroundPosition:t,backgroundSize:e,containerHeight:i,containerLeft:n,containerTop:o,containerWidth:a,hasScalableSrc:s,offset:r,targetHeight:l,targetWidth:h})=>{if("cover"===e||"contain"===e){let d=a/h,c=i/l,u="cover"===e?Math.max(d,c):Math.min(d,c),[g="50%",v="50%"]=t.split(" "),f=p({position:g,relativeNum:a-h*u}),w=p({position:v,relativeNum:i-l*u}),E=m({containerHeight:l*u,containerWidth:h*u,hasScalableSrc:s,offset:r,targetHeight:l,targetWidth:h});return{top:o+w,left:n+f,width:h*u*E,height:l*u*E,transform:`translate(0,0) scale(${1/E})`}}if("auto"===e){let[e="50%",d="50%"]=t.split(" "),c=p({position:e,relativeNum:a-h}),u=p({position:d,relativeNum:i-l}),g=m({containerHeight:l,containerWidth:h,hasScalableSrc:s,offset:r,targetHeight:l,targetWidth:h});return{top:o+u,left:n+c,width:h*g,height:l*g,transform:`translate(0,0) scale(${1/g})`}}{let[d="50%",c="50%"]=e.split(" "),u=p({position:d,relativeNum:a}),g=p({position:c,relativeNum:i}),v=Math.min(u/h,g/l),[f="50%",w="50%"]=t.split(" "),E=p({position:f,relativeNum:a-h*v}),L=p({position:w,relativeNum:i-l*v}),b=m({containerHeight:l*v,containerWidth:h*v,hasScalableSrc:s,offset:r,targetHeight:l,targetWidth:h});return{top:o+L,left:n+E,width:h*v*b,height:l*v*b,transform:`translate(0,0) scale(${1/b})`}}},L=/\.svg$/i,b=({hasZoomImg:t,imgSrc:e,isSvg:i,isZoomed:n,loadedImgEl:o,offset:a,shouldRefresh:r,targetEl:l})=>{let h=i||"data:image/svg+xml"===e?.slice(0,18)||t||void 0!==e&&L.test(e),d=l.getBoundingClientRect(),c=window.getComputedStyle(l),m=null!=o&&s(l),u=null!=o&&0!==o.naturalHeight?o.naturalHeight:d.height,g=null!=o&&0!==o.naturalWi
1dth?o.naturalWidth:d.width,v=f({containerHeight:d.height,containerLeft:d.left,containerTop:d.top,containerWidth:d.width,hasScalableSrc:h,offset:a,targetHeight:u,targetWidth:g}),p=null==o||m?void 0:w({containerHeight:d.height,containerLeft:d.left,containerTop:d.top,containerWidth:d.width,hasScalableSrc:h,objectFit:c.objectFit,objectPosition:c.objectPosition,offset:a,targetHeight:u,targetWidth:g}),b=m?E({backgroundPosition:c.backgroundPosition,backgroundSize:c.backgroundSize,containerHeight:d.height,containerLeft:d.left,containerTop:d.top,containerWidth:d.width,hasScalableSrc:h,offset:a,targetHeight:u,targetWidth:g}):void 0,S={...v,...p,...b};if(n){let t=window.innerWidth/2,e=window.innerHeight/2,i=parseFloat(String(S.left??0))+parseFloat(String(S.width??0))/2,n=parseFloat(String(S.top??0))+parseFloat(String(S.height??0))/2;r&&(S.transitionDuration="0.01ms"),S.transform=`translate(${t-i}px,${e-n}px) scale(1)`}return S},S=t=>{if(null==t)return{};if(!h(t))return{height:t.offsetHeight,left:t.offsetLeft,width:t.offsetWidth,top:t.offsetTop};{let{parentElement:e}=t,i=t.getBoundingClientRect();if(null==e)return{height:i.height,left:i.left,width:i.width,top:i.top};{let t=e.getBoundingClientRect();return{height:i.height,left:t.left-i.left,top:t.top-i.top,width:i.width}}}},y=t=>{let e="-zoom",i=["clip-path","fill","mask","marker-start","marker-mid","marker-end"],n=new Map;if(t.hasAttribute("id")){let{id:i}=t,o=i+e;n.set(i,o);let a=t;a.id=o}t.querySelectorAll("[id]").forEach(t=>{let{id:i}=t,o=i+e;n.set(i,o);let a=t;a.id=o}),n.forEach((e,n)=>{let o=`url(#${n})`,a=`url(#${e})`,s=i.map(t=>`[${t}="${o}"]`).join(", ");t.querySelectorAll(s).forEach(t=>{i.forEach(e=>{t.getAttribute(e)===o&&t.setAttribute(e,a)})})}),t.querySelectorAll("style").forEach(t=>{n.forEach((e,i)=>{let{textContent:n}=t;if(""!==n){let o=t;o.textContent=n.replaceAll(`#${i}`,`#${e}`)}})})},z=["img","svg",'[role="img"]',"[data-zoom]"].map(t=>`${t}:not([aria-hidden="true"])`).join(","),I={overflow:"",width:""};function D(t){t.preventDefault()}function N(t){return n.createElement(C,{...t})}class C extends n.Component{constructor(){super(...arguments),this.state={id:"",isZoomImgLoaded:!1,loadedImgEl:void 0,modalState:"UNLOADED",shouldRefresh:!1,styleGhost:{}},this.refContent=n.createRef(),this.refDialog=n.createRef(),this.refModalContent=n.createRef(),this.refModalImg=n.createRef(),this.refWrap=n.createRef(),this.imgEl=null,this.isScaling=!1,this.prevBodyAttrs=I,this.styleModalImg={},this.handleModalStateChange=t=>{let{state:{modalState:e}}=this;"LOADING"!==t&&"LOADING"===e?(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"!==t&&"LOADED"===e?window.addEventListener("wheel",this.handleWheel,{passive:!0}):"UNLOADING"!==t&&"UNLOADING"===e?(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"!==t&&"UNLOADED"===e&&(this.bodyScrollEnable(),window.removeEventListener("resize",this.handleResize),this.refModalImg.current?.removeEventListener("transitionend",this.handleImgTransitionEnd),this.refDialog.current?.close())},this.setId=()=>{let t=()=>Math.random().toString(16).slice(-4);this.setState({id:t()+t()+t()})},this.setAndTrackImg=()=>{let{refContent:{current:t}}=this;null!=t&&(this.imgEl=t.querySelector(z),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.img
1ElResizeObserver=new ResizeObserver(t=>{let[e]=t;e?.target!==void 0&&(this.imgEl=e.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(t,{attributes:!0,childList:!0,subtree:!0}))):null==this.contentNotFoundChangeObserver&&(this.contentNotFoundChangeObserver=new MutationObserver(this.setAndTrackImg),this.contentNotFoundChangeObserver.observe(t,{childList:!0,subtree:!0})))},this.handleIfZoomChanged=t=>{let{props:{isZoomed:e}}=this;!t&&e?this.zoom():t&&!e&&this.unzoom()},this.handleImgLoad=()=>{let t=g(this.imgEl);if(null==t||""===t)return;let e=new Image,{imgEl:i}=this;if(r(i)){let{sizes:t,srcset:n,crossOrigin:o}=i;e.sizes=t,e.srcset=n,e.crossOrigin=o}e.src=t;let n=()=>{this.setState({loadedImgEl:e,styleGhost:S(this.imgEl)})};e.decode().then(n).catch(()=>{if(l(e)){n();return}e.onload=n})},this.handleZoom=t=>{!0!==this.props.isDisabled&&this.hasImage()&&this.props.onZoomChange?.(!0,{event:t})},this.handleUnzoom=t=>{!0!==this.props.isDisabled&&this.props.onZoomChange?.(!1,{event:t})},this.handleBtnUnzoomClick=t=>{t.preventDefault(),t.stopPropagation(),this.handleUnzoom(t)},this.handleDialogClick=t=>{(t.target===this.refModalContent.current||t.target===this.refModalImg.current)&&(t.stopPropagation(),this.handleUnzoom(t))},this.handleDialogClose=t=>{t.stopPropagation(),this.handleUnzoom(t)},this.handleKeyDown=t=>{"Escape"===t.key&&(t.preventDefault(),t.stopPropagation(),this.handleUnzoom(t))},this.handleWheel=t=>{t.ctrlKey||(t.stopPropagation(),queueMicrotask(()=>{this.handleUnzoom(t)}))},this.handleTouchStart=t=>{if(t.touches.length>1){this.isScaling=!0;return}let{changedTouches:e}=t,[i]=e;if(1===e.length&&void 0!==i){let{screenY:t}=i;this.touchYStart=t}},this.handleTouchMove=t=>{let e=window.visualViewport?.scale??1,{changedTouches:i}=t,[n]=i;if(this.props.canSwipeToUnzoom&&!this.isScaling&&e<=1&&null!=this.touchYStart&&void 0!==n){let{screenY:e}=n;this.touchYEnd=e;let i=Math.max(this.touchYStart,this.touchYEnd),o=Math.min(this.touchYStart,this.touchYEnd);Math.abs(i-o)>this.props.swipeToUnzoomThreshold&&(this.touchYStart=void 0,this.touchYEnd=void 0,this.handleUnzoom(t))}},this.handleTouchEnd=()=>{this.isScaling=!1,this.touchYStart=void 0,this.touchYEnd=void 0},this.handleTouchCancel=()=>{this.isScaling=!1,this.touchYStart=void 0,this.touchYEnd=void 0},this.handleResize=()=>{this.setState({shouldRefresh:!0})},this.hasImage=()=>null!==this.imgEl&&(void 0!==this.state.loadedImgEl||h(this.imgEl))&&"none"!==window.getComputedStyle(this.imgEl).display,this.zoom=()=>{this.bodyScrollDisable(),this.refDialog.current?.showModal(),this.refModalImg.current?.addEventListener("transitionend",this.handleImgTransitionEnd),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:t}=window.getComputedStyle(this.refModalImg.current),e=parseFloat(t);if(0!==e&&!Number.isNaN(e)){let i=e*(t.endsWith("ms")?1:1e3)+50;this.timeoutTransitionEnd=setTimeout(this.handleImgTransitionEnd,i)}}},this.bodyScrollDisable=()=>{this.prevBodyAttrs={overflow:document.body.style.overflow,width:document.body.style.width};let{body:{clientWidth:t}}=document;document.body.style.overflow="hidden",document.body.style.width=`${t}px`},this.bodyScrollEnable=()=>{let{prevBodyAttrs:{overflow:t,width:e}}=this;document.body.style.width=e,document.body.style.overflow=t,this.prevBodyAttrs=I},this.loadZoomImg=()=>{let{props:{zoomImg:t}}=this;if(null==t)return;let{src:e}=t;if(void 0!==e&&""!==e){let i=new Image;i.sizes=t.sizes??"",i.srcset=t.srcSet??"",i.crossOrigin=t.crossOrigin??void 0,i.src=e;let n=()=>{this.setState({isZoomImgLoaded:!0})};i.decode().then(n).catch(()=>{if(l(i)){n();return}i.onload=n})}},this.UNSAFE_handleSvg=()=>{let{imgEl:t,refModalImg:e,styleModalImg:i}=this;if(h(t)){let n=t.cloneNode(!0);y(n),n.style.width=`${i.width??0}px`,n.style.height=`${i.height??0}px`,n.addEventListener("click",this.handleUnzoom),e.current?.firstChild?.remove(),e.current?.appendChild(n)}}}render(){let{handleBtnUnzoomClick:t,handleDialogClick:e,handleDialogClose:i,handleUnzoom:a,handleZoom:l,imgEl:d,props:{a11yNameButtonUnzoom:c,a11yNameButtonZoom:m,children:u,classDialog:f,IconUnzoom:p,IconZoom:w,isZoomed:E,wrapElement:L,ZoomContent:S,zoomImg:y,zoomMargin:z},refContent:I,refDialog:N,refModalContent:C,refModalImg:M,refWrap:A,state:{id:O,isZoomImgLoaded:T,loadedImgEl:U,modalState:k,shouldRefresh:$,styleGhost:W}}=this,R=`rmiz-modal-${O}`,Z=`rmiz-modal-img-${O}`,x=s(d),F=r(d),G=h(d),H=v(d),Y=g(d),B=F?d.sizes:void 0,P=F?d.srcset:void 0,j=F?d.crossOrigin:void 0,_=y?.src!==void 0&&""!==y.src,q=this.hasImage(),K=void 0!==H&&""!==H?`${m}: ${H}`:m;this.styleModalImg=q&&null!==d?b({hasZoomImg:_,imgSrc:Y,isSvg:G,isZoomed:E&&("LOADING"===k||"LOADED"===k),loadedImgEl:U,offset:z,shouldRefresh:$,targetEl:d}):{};let V=null;if(q){let e=F||x?n.createElement("img",{alt:H,crossOrigin:j,sizes:B,src:Y,srcSet:P,...T&&"LOADED"===k?y:{},"data-rmiz-modal-img":"",height:this.styleModalImg.height??void 0,id:Z,ref:M,style:this.styleModalImg,width:this.styleModalImg.width??void 0}):G?n.createElement("div",{"data-rmiz-modal-img":!0,ref:M,style:this.styleModalImg}):null,i=n.createElement("button",{"aria-label":c,"data-rmiz-btn-unzoom":"",onClick:t,type:"button"},n.createElement(p,null));V=null==S?n.createElement(n.Fragment,null,e,i):n.createElement(S,{buttonUnzoom:i,modalState:k,img:e,isZoomImgLoaded:T,onUnzoom:a})}return n.createElement(L,{"aria-owns":R,"data-rmiz":"",ref:A},n.createElement(L,{"data-rmiz-content":q?"found":"not-found",ref:I,style:{visibility:"UNLOADED"===k?"visible":"hidden"}},u),q&&n.createElement(L,{"data-rmiz-ghost":"",style:W},n.createElement("button",{"aria-label":K,"data-rmiz-btn-zoom":"",onClick:l,type:"button"},n.createElement(w,null))),q&&o.createPortal(n.createElement("dialog",{"aria-labelledby":Z,"aria-modal":"true",className:f,"data-rmiz-modal":"",id:R,onClick:e,onClose:i,onCancel:D,ref:N,role:"dialog"},n.createElement("div",{"data-rmiz-modal-overlay":"UNLOADED"===k||"UNLOADING"===k?"hidden":"visible"}),n.createElement("div",{"data-rmiz-modal-content":"",ref:C},V)),function(){let t=document.querySelector("[data-rmiz-portal]");if(null!=t)return t;let e=document.createElement("div");return e.setAttribute("data-rmiz-portal",""),document.body.appendChild(e),e}()))}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),this.refModalImg.current?.removeEventListener("transitionend",this.handleImgTransitionEnd),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(t,e){this.handleModalStateChange(e.modalState),this.UNSAFE_handleSvg(),this.handleIfZoomChanged(t.isZoomed)}}C.defaultProps={a11yNameButtonUnzoom:"Minimize image",a11yNameButtonZoom:"Expand image",canSwipeToUnzoom:!0,IconUnzoom:function(){return n.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"},n.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 n.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"},n.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}}}]);

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.