PageSourceSearch

https://cdn.vrphub.com/wp-content/plugins/lightbox-photoswipe/assets/scripts.js

js vrphub.com collected 2026-09-29 23:31:28 UTC 52,150 bytes, 1 lines download raw bytes

1!function(e,t){"object"==typeof exports?module.exports=t():e.PhotoSwipe=t()}(this,function(){"use strict";return function(e,t,n,o){var i={features:null,bind:function(e,t,n,o){var i=(o?"remove":"add")+"EventListener";t=t.split(" ");for(var l=0;l<t.length;l++)t[l]&&e[i](t[l],n,!1)},isArray:function(e){return e instanceof Array},createEl:function(e,t){var n=document.createElement(t||"div");return e&&(n.className=e),n},getScrollY:function(){var e=window.pageYOffset;return void 0!==e?e:document.documentElement.scrollTop},unbind:function(e,t,n){i.bind(e,t,n,!0)},removeClass:function(e,t){var n=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(n," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")},addClass:function(e,t){i.hasClass(e,t)||(e.className+=(e.className?" ":"")+t)},hasClass:function(e,t){return e.className&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(e.className)},getChildByClass:function(e,t){for(var n=e.firstChild;n;){if(i.hasClass(n,t))return n;n=n.nextSibling}},arraySearch:function(e,t,n){for(var o=e.length;o--;)if(e[o][n]===t)return o;return-1},extend:function(e,t,n){for(var o in t)if(t.hasOwnProperty(o)){if(n&&e.hasOwnProperty(o))continue;e[o]=t[o]}},easing:{sine:{out:function(e){return Math.sin(e*(Math.PI/2))},inOut:function(e){return-(Math.cos(Math.PI*e)-1)/2}},cubic:{out:function(e){return--e*e*e+1}}},detectFeatures:function(){if(i.features)return i.features;var e=i.createEl().style,t="",n={};if(n.oldIE=document.all&&!document.addEventListener,n.touch="ontouchstart"in window,window.requestAnimationFrame&&(n.raf=window.requestAnimationFrame,n.caf=window.cancelAnimationFrame),n.pointerEvent=navigator.pointerEnabled||navigator.msPointerEnabled,!n.pointerEvent){var o=navigator.userAgent;if(/iP(hone|od)/.test(navigator.platform)){var l=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);l&&l.length>0&&(l=parseInt(l[1],10))>=1&&l<8&&(n.isOldIOSPhone=!0)}var r=o.match(/Android\s([0-9\.]*)/),a=r?r[1]:0;(a=parseFloat(a))>=1&&(a<4.4&&(n.isOldAndroid=!0),n.androidVersion=a),n.isMobileOpera=/opera mini|o
1pera mobi/i.test(o)}for(var s,u,c=["transform","perspective","animationName"],d=["","webkit","Moz","ms","O"],p=0;p<4;p++){t=d[p];for(var m=0;m<3;m++)s=c[m],u=t+(t?s.charAt(0).toUpperCase()+s.slice(1):s),!n[s]&&u in e&&(n[s]=u);t&&!n.raf&&(t=t.toLowerCase(),n.raf=window[t+"RequestAnimationFrame"],n.raf&&(n.caf=window[t+"CancelAnimationFrame"]||window[t+"CancelRequestAnimationFrame"]))}if(!n.raf){var f=0;n.raf=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-f)),o=window.setTimeout(function(){e(t+n)},n);return f=t+n,o},n.caf=function(e){clearTimeout(e)}}return n.svg=!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,i.features=n,n}};i.detectFeatures(),i.features.oldIE&&(i.bind=function(e,t,n,o){t=t.split(" ");for(var i,l=(o?"detach":"attach")+"Event",r=function(){n.handleEvent.call(n)},a=0;a<t.length;a++)if(i=t[a])if("object"==typeof n&&n.handleEvent){if(o){if(!n["oldIE"+i])return!1}else n["oldIE"+i]=r;e[l]("on"+i,n["oldIE"+i])}else e[l]("on"+i,n)});var l=this,r={allowPanToNext:!0,spacing:.12,bgOpacity:1,mouseUsed:!1,loop:!0,pinchToClose:!0,closeOnScroll:!1,zoomOnScroll:!0,switchOnScroll:!1,closeOnVerticalDrag:!0,verticalDragRange:.75,hideAnimationDuration:333,showAnimationDuration:333,showHideOpacity:!1,focus:!0,escKey:!0,arrowKeys:!0,desktopSlider:!0,mainScrollEndFriction:.35,panEndFriction:.35,isClickableElement:function(e){return"A"===e.tagName},getDoubleTapZoom:function(e,t){return e?1:t.initialZoomLevel<.7?1:1.33},maxSpreadZoom:1.33,modal:!0,scaleMode:"fit"};i.extend(r,o);var a,s,u,c,d,p,m,f,h,w,g,b,v,y,x,C,I,_,E,T,S,O,A,D,k,M,F,L,R,P,z,Z,N,U,H,B,K,W,G,q,Y,V,X,j,$,J,Q,ee,te,ne,oe,ie,le,re,ae,se,ue={x:0,y:0},ce={x:0,y:0},de={x:0,y:0},pe={},me=0,fe={},he={x:0,y:0},we=0,ge=!0,be=[],ve={},ye=!1,xe=function(e,t){i.extend(l,t.publicMethods),be.push(e)},Ce=function(e){var t=Ht();return e>t-1?e-t:e<0?t+e:e},Ie={},_e=function(e,t){return Ie[e]||(Ie[e]=[]),Ie[e].push(t)},Ee=function(e){var t=Ie[e];if(t){var n=Array.prototype.slice.call(arguments);n.shift();for(var o=0;o<t.length;o++)t[o].apply(l,n)}},Te=function(){return(new Date).getTime()},Se=function(e){re=e,l.bg.style.opacity=e*r.bgOpacity},Oe=function(e,t,n,o,i){(!ye||i&&i!==l.currItem)&&(o/=i?i.fitRatio:l.currItem.fitRatio),e[O]=b+t+"px, "+n+"px"+v+" scale("+o+")"},Ae=function(e){te&&(e&&(w>l.currItem.fitRatio?ye||(jt(l.currItem,!1,!0),ye=!0):ye&&(jt(l.currItem),ye=!1)),Oe(te,de.x,de.y,w))},De=function(e){e.container&&Oe(e.container.style,e.initialPosition.x,e.initialPosition.y,e.initialZoomLevel,e)},ke=function(e,t){t[O]=b+e+"px, 0px"+v},Me=function(e,t){if(!r.loop&&t){var n=c+(he.x*me-e)/he.x,o=Math.round(e-ct.x);(n<0&&o>0||n>=Ht()-1&&o<0)&&(e=ct.x+o*r.mainScrollEndFriction)}ct.x=e,ke(e,d)},Fe=function(e,t){var n=dt[e]-fe[e];return ce[e]+ue[e]+n-n*(t/g)},Le=function(e,t){e.x=t.x,e.y=t.y,t.id&&(e.id=t.id)},Re=function(e){e.x=Math.round(e.x),e.y=Math.round(e.y)},Pe=null,ze=function(){Pe&&(i.unbind(document,"mousemove",ze),i.addClass(e,"pswp--has_mouse"),r.mouseUsed=!0,Ee("mouseUsed")),Pe=setTimeout(function(){Pe=null},100)},Ze=function(e,t){var n=qt(l.currItem,pe,e);return t&&(ee=n),n},Ne=function(e){return e||(e=l.currItem),e.initialZoomLevel},Ue=function(e){return e||(e=l.currItem),e.w>0?r.maxSpreadZoom:1},He=function(e,t,n,o){return o===l.currItem.initialZoomLevel?(n[e]=l.currItem.initialPosition[e],!0):(n[e]=Fe(e,o),n[e]>t.min[e]?(n[e]=t.min[e],!0):n[e]<t.max[e]&&(n[e]=t.max[e],!0))},Be=function(e){var t="";r.escKey&&27===e.keyCode?t="close":r.arrowKeys&&(r.arrowKeys&&37===e.keyCode?t="prevAnim":r.arrowKeys&&39===e.keyCode?t="nextAnim":70===e.keyCode&&(t="fullscreen")),t&&(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey||(e.preventDefault?e.preventDefault():e.returnValue=!1,l[t]()))},Ke=function(e){e&&(V||Y||ne||K)&&(e.preventDefault(),e.stopPropagation())},We=function(){l.setScrollOffset(0,i.getScrollY())},Ge={},qe=0,Ye=function(e){Ge[e]&&(Ge[e].raf&&M(Ge[e].raf),qe--,delete Ge[e])},Ve=function(e){Ge[e]&&Ye(e),Ge[e]||(qe++,Ge[e]={})},Xe=function(){for(var e in Ge)Ge.hasOwnProperty(e)&&Ye(e)},je=function(e,t,n,o,i,l,r){var a,s=Te();Ve(e);var u=function(){if(Ge[e]){if((a=Te()-s)>=o)return Ye(e),l(n),void(r&&r());l((n-t)*i(a/o)+t),Ge[e].raf=k(u)}};u()},$e={shout:Ee,listen:_e,viewportSize:pe,options:r,isMainScrollAnimating:function(){return ne},getZoomLevel:function(){return w},getCurrentIndex:function(){return c},isDragging:function(){return G},isZooming:function(){return J},setScrollOffset:function(e,t){fe.x=e,P=fe.y=t,Ee("updateScrollOffset",fe)},applyZoomPan:function(e,t,n,o){de.x=t,de.y=n,w=e,Ae(o)},init:function(){if(!a&&!s){var n;l.framework=i,l.template=e,l.bg=i.getChildByClass(e,"pswp__bg"),F=e.className,a=!0,z=i.detectFeatures(),k=z.raf,M=z.caf,O=z.transform,R=z.oldIE,l.scrollWrap=i.getChildByClass(e,"pswp__scroll-wrap"),l.container=i.getChildByClass(l.scrollWrap,"pswp__container"),d=l.container.style,l.itemHolders=C=[{el:l.container.children[0],wrap:0,index:-1},{el:l.container.children[1],wrap:0,index:-1},{el:l.container.children[2],wrap:0,index:-1}
1],C[0].el.style.display=C[2].el.style.display="none",function(){if(O){var t=z.perspective&&!D;return b="translate"+(t?"3d(":"("),void(v=z.perspective?", 0px)":")")}O="left",i.addClass(e,"pswp--ie"),ke=function(e,t){t.left=e+"px"},De=function(e){var t=e.fitRatio>1?1:e.fitRatio,n=e.container.style,o=t*e.w,i=t*e.h;n.width=o+"px",n.height=i+"px",n.left=e.initialPosition.x+"px",n.top=e.initialPosition.y+"px"},Ae=function(){if(te){var e=te,t=l.currItem,n=t.fitRatio>1?1:t.fitRatio,o=n*t.w,i=n*t.h;e.width=o+"px",e.height=i+"px",e.left=de.x+"px",e.top=de.y+"px"}}}(),h={resize:l.updateSize,orientationchange:function(){clearTimeout(Z),Z=setTimeout(function(){pe.x!==l.scrollWrap.clientWidth&&l.updateSize()},500)},scroll:We,keydown:Be,click:Ke};var o=z.isOldIOSPhone||z.isOldAndroid||z.isMobileOpera;for(z.animationName&&z.transform&&!o||(r.showAnimationDuration=r.hideAnimationDuration=0),n=0;n<be.length;n++)l["init"+be[n]]();t&&(l.ui=new t(l,i)).init(),Ee("firstUpdate"),c=c||r.index||0,(isNaN(c)||c<0||c>=Ht())&&(c=0),l.currItem=Ut(c),(z.isOldIOSPhone||z.isOldAndroid)&&(ge=!1),e.setAttribute("aria-hidden","false"),r.modal&&(ge?e.style.position="fixed":(e.style.position="absolute",e.style.top=i.getScrollY()+"px")),void 0===P&&(Ee("initialLayout"),P=L=i.getScrollY());var u="pswp--open ";for(r.mainClass&&(u+=r.mainClass+" "),r.showHideOpacity&&(u+="pswp--animate_opacity "),u+=D?"pswp--touch":"pswp--notouch",u+=z.animationName?" pswp--css_animation":"",u+=z.svg?" pswp--svg":"",i.addClass(e,u),l.updateSize(),p=-1,we=null,n=0;n<3;n++)ke((n+p)*he.x,C[n].el.style);R||i.bind(l.scrollWrap,f,l),_e("initialZoomInEnd",function(){l.setContent(C[0],c-1),l.setContent(C[2],c+1),C[0].el.style.display=C[2].el.style.display="block",r.focus&&e.focus(),i.bind(document,"keydown",l),z.transform&&i.bind(l.scrollWrap,"click",l),r.mouseUsed||i.bind(document,"mousemove",ze),i.bind(window,"resize scroll orientationchange",l),Ee("bindEvents")}),l.setContent(C[1],c),l.updateCurrItem(),Ee("afterInit"),ge||(y=setInterval(function(){qe||G||J||w!==l.currItem.initialZoomLevel||l.updateSize()},1e3)),i.addClass(e,"pswp--visible")}},close:function(){a&&(a=!1,s=!0,Ee("close"),i.unbind(window,"resize scroll orientationchange",l),i.unbind(window,"scroll",h.scroll),i.unbind(document,"keydown",l),i.unbind(document,"mousemove",ze),z.transform&&i.unbind(l.scrollWrap,"click",l),G&&i.unbind(window,m,l),clearTimeout(Z),Ee("unbindEvents"),Bt(l.currItem,null,!0,l.destroy))},destroy:function(){Ee("destroy"),Pt&&clearTimeout(Pt),e.setAttribute("aria-hidden","true"),e.className=F,y&&clearInterval(y),i.unbind(l.scrollWrap,f,l),i.unbind(window,"scroll",l),ft(),Xe(),Ie=null},panTo:function(e,t,n){n||(e>ee.min.x?e=ee.min.x:e<ee.max.x&&(e=ee.max.x),t>ee.min.y?t=ee.min.y:t<ee.max.y&&(t=ee.max.y)),de.x=e,de.y=t,Ae()},handleEvent:function(e){e=e||window.event,h[e.type]&&h[e.type](e)},goTo:function(e){var t=(e=Ce(e))-c;we=t,c=e,l.currItem=Ut(c),me-=t,Me(he.x*me),Xe(),ne=!1,l.updateCurrItem()},next:function(){(r.loop||c!=Ht()-1)&&l.goTo(c+1)},prev:function(){(r.loop||0!=c)&&l.goTo(c-1)},fullscreen:function(){l.ui.toggleFullscreen()},updateCurrZoomItem:function(e){if(e&&Ee("beforeChange",0),C[1].el.children.length){var t=C[1].el.children[0];te=i.hasClass(t,"pswp__zoom-wrap")?t.style:null}else te=null;ee=l.currItem.bounds,g=w=l.currItem.initialZoomLevel,de.x=ee.center.x,de.y=ee.center.y,e&&Ee("afterChange")},invalidateCurrItems:function(){x=!0;for(var e=0;e<3;e++)C[e].item&&(C[e].item.needsUpdate=!0)},updateCurrItem:function(e){if(0!==we){var t,n=Math.abs(we);if(!(e&&n<2)){l.currItem=Ut(c),ye=!1,Ee("beforeChange",we),n>=3&&(p+=we+(we>0?-3:3),n=3);for(var o=0;o<n;o++)we>0?(t=C.shift(),C[2]=t,ke((++p+2)*he.x,t.el.style),l.setContent(t,c-n+o+1+1)):(t=C.pop(),C.unshift(t),ke(--p*he.x,t.el.style),l.setContent(t,c+n-o-1-1));if(te&&1===Math.abs(we)){var i=Ut(I);i.initialZoomLevel!==w&&(qt(i,pe),jt(i),De(i))}we=0,l.updateCurrZoomItem(),I=c,Ee("afterChange")}}},updateSize:function(t){if(!ge&&r.modal){var n=i.getScrollY();if(P!==n&&(e.style.top=n+"px",P=n),!t&&ve.x===window.innerWidth&&ve.y===window.innerHeight)return;ve.x=window.innerWidth,ve.y=window.innerHeight,e.style.height=ve.y+"px"}if(pe.x=l.scrollWrap.clientWidth,pe.y=l.scrollWrap.clientHeight,We(),he.x=pe.x+Math.round(pe.x*r.spacing),he.y=pe.y,Me(he.x*me),Ee("beforeResize"),void 0!==p){for(var o,a,s,u=0;u<3;
vendor: 8,899 bytes, line 1
1u++)o=C[u],ke((u+p)*he.x,o.el.style),s=c+u-1,r.loop&&Ht()>2&&(s=Ce(s)),(a=Ut(s))&&(x||a.needsUpdate||!a.bounds)?(l.cleanSlide(a),l.setContent(o,s),1===u&&(l.currItem=a,l.updateCurrZoomItem(!0)),a.needsUpdate=!1):-1===o.index&&s>=0&&l.setContent(o,s),a&&a.container&&(qt(a,pe),jt(a),De(a));x=!1}g=w=l.currItem.initialZoomLevel,(ee=l.currItem.bounds)&&(de.x=ee.center.x,de.y=ee.center.y,Ae(!0)),Ee("resize")},zoomTo:function(e,t,n,o,l){t&&(g=w,dt.x=Math.abs(t.x)-de.x,dt.y=Math.abs(t.y)-de.y,Le(ce,de));var r=Ze(e,!1),a={};He("x",r,a,e),He("y",r,a,e);var s=w,u=de.x,c=de.y;Re(a);var d=function(t){1===t?(w=e,de.x=a.x,de.y=a.y):(w=(e-s)*t+s,de.x=(a.x-u)*t+u,de.y=(a.y-c)*t+c),l&&l(t),Ae(1===t)};n?je("customZoomTo",0,1,n,o||i.easing.sine.inOut,d):d(1)}},Je={},Qe={},et={},tt={},nt={},ot=[],it={},lt=[],rt={},at=0,st={x:0,y:0},ut=0,ct={x:0,y:0},dt={x:0,y:0},pt={x:0,y:0},mt=function(e,t){return rt.x=Math.abs(e.x-t.x),rt.y=Math.abs(e.y-t.y),Math.sqrt(rt.x*rt.x+rt.y*rt.y)},ft=function(){X&&(M(X),X=null)},ht=function(){G&&(X=k(ht),At())},wt=function(e,t){return!(!e||e===document)&&!(e.getAttribute("class")&&e.getAttribute("class").indexOf("pswp__scroll-wrap")>-1)&&(t(e)?e:wt(e.parentNode,t))},gt={},bt=function(e,t){return gt.prevent=!wt(e.target,r.isClickableElement),Ee("preventDragEvent",e,t,gt),gt.prevent},vt=function(e,t){return t.x=e.pageX,t.y=e.pageY,t.id=e.identifier,t},yt=function(e,t,n){n.x=.5*(e.x+t.x),n.y=.5*(e.y+t.y)},xt=function(){var e=de.y-l.currItem.initialPosition.y;return 1-Math.abs(e/(pe.y/2))},Ct={},It={},_t=[],Et=function(e){for(;_t.length>0;)_t.pop();return A?(se=0,ot.forEach(function(e){0===se?_t[0]=e:1===se&&(_t[1]=e),se++})):e.type.indexOf("touch")>-1?e.touches&&e.touches.length>0&&(_t[0]=vt(e.touches[0],Ct),e.touches.length>1&&(_t[1]=vt(e.touches[1],It))):(Ct.x=e.pageX,Ct.y=e.pageY,Ct.id="",_t[0]=Ct),_t},Tt=function(e,t){var n,o,i,a,s=de[e]+t[e],u=t[e]>0,c=ct.x+t.x,d=ct.x-it.x;if(n=s>ee.min[e]||s<ee.max[e]?r.panEndFriction:1,s=de[e]+t[e]*n,(r.allowPanToNext||w===l.currItem.initialZoomLevel)&&(te?"h"!==oe||"x"!==e||Y||(u?(s>ee.min[e]&&(n=r.panEndFriction,ee.min[e],o=ee.min[e]-ce[e]),(o<=0||d<0)&&Ht()>1?(a=c,d<0&&c>it.x&&(a=it.x)):ee.min.x!==ee.max.x&&(i=s)):(s<ee.max[e]&&(n=r.panEndFriction,ee.max[e],o=ce[e]-ee.max[e]),(o<=0||d>0)&&Ht()>1?(a=c,d>0&&c<it.x&&(a=it.x)):ee.min.x!==ee.max.x&&(i=s))):a=c,"x"===e))return void 0!==a&&(Me(a,!0),j=a!==it.x),ee.min.x!==ee.max.x&&(void 0!==i?de.x=i:j||(de.x+=t.x*n)),void 0!==a;ne||j||w>l.currItem.fitRatio&&(de[e]+=t[e]*n)},St=function(e){if(!("mousedown"===e.type&&e.button>0))if(Nt)e.preventDefault();else if(!W||"mousedown"!==e.type){if(bt(e,!0)&&e.preventDefault(),Ee("pointerDown"),A){var t=i.arraySearch(ot,e.pointerId,"id");t<0&&(t=ot.length),ot[t]={x:e.pageX,y:e.pageY,id:e.pointerId}}var n=Et(e),o=n.length;$=null,Xe(),G&&1!==o||(G=ie=!0,i.bind(window,m,l),B=ae=le=K=j=V=q=Y=!1,oe=null,Ee("firstTouchStart",n),Le(ce,de),ue.x=ue.y=0,Le(tt,n[0]),Le(nt,tt),it.x=he.x*me,lt=[{x:tt.x,y:tt.y}],U=N=Te(),Ze(w,!0),ft(),ht()),!J&&o>1&&!ne&&!j&&(g=w,Y=!1,J=q=!0,ue.y=ue.x=0,Le(ce,de),Le(Je,n[0]),Le(Qe,n[1]),yt(Je,Qe,pt),dt.x=Math.abs(pt.x)-de.x,dt.y=Math.abs(pt.y)-de.y,Q=mt(Je,Qe))}},Ot=function(e){if(e.preventDefault(),A){var t=i.arraySearch(ot,e.pointerId,"id");if(t>-1){var n=ot[t];n.x=e.pageX,n.y=e.pageY}}if(G){var o=Et(e);if(oe||V||J)$=o;else if(ct.x!==he.x*me)oe="h";else{var l=Math.abs(o[0].x-tt.x)-Math.abs(o[0].y-tt.y);Math.abs(l)>=10&&(oe=l>0?"h":"v",$=o)}}},At=function(){if($){var e=$.length;if(0!==e)if(Le(Je,$[0]),et.x=Je.x-tt.x,et.y=Je.y-tt.y,J&&e>1){if(tt.x=Je.x,tt.y=Je.y,!et.x&&!et.y&&function(e,t){return e.x===t.x&&e.y===t.y}($[1],Qe))return;Le(Qe,$[1]),Y||(Y=!0,Ee("zoomGestureStarted"));var t=mt(Je,Qe),n=Lt(t);n>l.currItem.initialZoomLevel+l.currItem.initialZoomLevel/15&&(ae=!0);var o=1,i=Ne(),a=Ue();if(n<i)if(r.pinchToClose&&!ae&&g<=l.currItem.initialZoomLevel){var s=1-(i-n)/(i/1.2);Se(s),Ee("onPinchClose",s),le=!0}else(o=(i-n)/i)>1&&(o=1),n=i-o*(i/3);else n>a&&((o=(n-a)/(6*i))>1&&(o=1),n=a+o*i);o<0&&(o=0),yt(Je,Qe,st),ue.x+=st.x-pt.x,ue.y+=st.y-pt.y,Le(pt,st),de.x=Fe("x",n),de.y=Fe("y",n),B=n>w,w=n,Ae()}else{if(!oe)return;if(ie&&(ie=!1,Math.abs(et.x)>=10&&(et.x-=$[0].x-nt.x),Math.abs(et.y)>=10&&(et.y-=$[0].y-nt.y)),tt.x=Je.x,tt.y=Je.y,0===et.x&&0===et.y)return;if("v"===oe&&r.closeOnVerticalDrag&&"fit"===r.scaleMode&&w===l.currItem.initialZoomLevel){ue.y+=et.y,de.y+=et.y;var u=xt();return K=!0,Ee("onVerticalDrag",u),Se(u),void Ae()}!function(e,t,n){if(e-U>50){var o=lt.length>2?lt.shift():{};o.x=t,o.y=n,lt.push(o),U=e}}(Te(),Je.x,Je.y),V=!0,ee=l.currItem.bounds,Tt("x",et)||(Tt("y",et),Re(de),Ae())}}},Dt=function(e){if(z.isOldAndroid){if(W&&"mouseup"===e.type)return;e.type.indexOf("touch")>-1&&(clearTimeout(W),W=setTimeout(function(){W=0},600))}var t;if(Ee("pointerUp"),bt(e,!1)&&e.preventDefault(),A){var n=i.arraySearch(ot,e.pointerId,"id");n>-1&&(t=ot.splice(n,1)[0],navigator.pointerEnabled?t.type=e.pointerType||"mouse":(t.type={4:"mouse",2:"touch",3:"pen"}[e.pointerType],t.type||(t.type=e.pointerType||"mouse")))}var o,a=Et(e),s=a.length;if("mouseup"===e.type&&(s=0),2===s)return $=null,!0;1===s&&Le(nt,a[0]),0!==s||oe||ne||(t||("mouseup"===e.type?t={x:e.pageX,y:e.pageY,type:"mouse"}:e.changedTouches&&e.changedTouches[0]&&(t={x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY,type:"touch"})),Ee("touchRelease",e,t));var u=-1;if(0===s&&(G=!1,i.unbind(window,m,l),ft(),J?u=0:-1!==ut&&(u=Te()-ut)),ut=1===s?Te():-1,o=-1!==u&&u<150?"zoom":"swipe",J&&s<2&&(J=!1,1===s&&(o="zoomPointerUp"),Ee("zoomGestureEnded")),$=null,V||Y||ne||K)if(Xe(),H||(H=kt()),H.calculateSwipeSpeed("x"),K)if(xt()<r.verticalDragRange)l.close();else{var c=de.y,d=re;je("verticalDrag",0,1,300,i.easing.cubic.out,function(e){de.y=(l.currItem.initialPosition.y-c)*e+c,Se((1-d)*e+d),Ae()}),Ee("onVerticalDrag",1)}else{if((j||ne)&&0===s){if(Ft(o,H))return;o="zoomPointerUp"}ne||("swipe"===o?!j&&w>l.currItem.fitRatio&&Mt(H):Rt())}},kt=function(){var e,t,n={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{},backAnimDestination:{},backAnimStarted:{},calculateSwipeSpeed:function(o){lt.length>1?(e=Te()-U+50,t=lt[lt.length-2][o]):(e=Te()-N,t=nt[o]),n.lastFlickOffset[o]=tt[o]-t,n.lastFlickDist[o]=Math.abs(n.lastFlickOffset[o]),n.lastFlickDist[o]>20?n.lastFlickSpeed[o]=n.lastFlickOffset[o]/e:n.lastFlickSpeed[o]=0,Math.abs(n.lastFlickSpeed[o])<.1&&(n.lastFlickSpeed[o]=0),n.slowDownRatio[o]=.95,n.slowDownRatioReverse[o]=1-n.slowDownRatio[o],n.speedDecelerationRatio[o]=1},calculateOverBoundsAnimOffset:function(e,t){n.backAnimStarted[e]||(de[e]>ee.min[e]?n.backAnimDestination[e]=ee.min[e]:de[e]<ee.max[e]&&(n.backAnimDestination[e]=ee.max[e]),void 0!==n.backAnimDestination[e]&&(n.slowDownRatio[e]=.7,n.slowDownRatioReverse[e]=1-n.slowDownRatio[e],n.speedDecelerationRatioAbs[e]<.05&&(n.lastFlickSpeed[e]=0,n.backAnimStarted[e]=!0,je("bounceZoomPan"+e,de[e],n.backAnimDestination[e],t||300,i.easing.sine.out,function(t){de[e]=t,Ae()}))))},calculateAnimOffset:function(e){n.backAnimStarted[e]||(n.speedDecelerationRatio[e]=n.speedDecelerationRatio[e]*(n.slowDownRatio[e]+n.slowDownRatioReverse[e]-n.slowDownRatioReverse[e]*n.timeDiff/10),n.speedDecelerationRatioAbs[e]=Math.abs(n.lastFlickSpeed[e]*n.speedDecelerationRatio[e]),n.distanceOffset[e]=n.lastFlickSpeed[e]*n.speedDecelerationRatio[e]*n.timeDiff,de[e]+=n.distanceOffset[e])},panAnimLoop:function(){if(Ge.zoomPan&&(Ge.zoomPan.raf=k(n.panAnimLoop),n.now=Te(),n.timeDiff=n.now-n.lastNow,n.lastNow=n.now,n.calculateAnimOffset("x"),n.calculateAnimOffset("y"),Ae(),n.calculateOverBoundsAnimOffset("x"),n.calculateOverBoundsAnimOffset("y"),n.speedDecelerationRatioAbs.x<.05&&n.speedDecelerationRatioAbs.y<.05))return de.x=Math.round(de.x),de.y=Math.round(de.y),Ae(),void Ye("zoomPan")}};return n},Mt=function(e){if(e.calculateSwipeSpeed("y"),ee=l.currItem.bounds,e.backAnimDestination={},e.backAnimStarted={},Math.abs(e.lastFlickSpeed.x)<=.05&&Math.abs(e.lastFlickSpeed.y)<=.05)return e.speedDecelerationRatioAbs.x=e.speedDecelerationRatioAbs.y=0,e.calculateOverBoundsAnimOffset("x"),e.calculateOverBoundsAnimOffset("y"),!0;Ve("zoomPan"),e.lastNow=Te(),e.panAnimLoop()},Ft=function(e,t){var n,o,a;if(ne||(at=c),"swipe"===e){var s=tt.x-nt.x,u=t.lastFlickDist.x<10;s>30&&(u||t.lastFlickOffset.x>20)?o=-1:s<-30&&(u||t.lastFlickOffset.x<-20)&&(o=1)}o&&((c+=o)<0?(c=r.loop?Ht()-1:0,a=!0):c>=Ht()&&(c=r.loop?0:Ht()-1,a=!0),a&&!r.loop||(we+=o,me-=o,n=!0));var d,p=he.x*me,m=Math.abs(p-ct.x);return n||p>ct.x==t.lastFlickSpeed.x>0?(d=Math.abs(t.lastFlickSpeed.x)>0?m/Math.abs(t.lastFlickSpeed.x):333,d=Math.min(d,400),d=Math.max(d,250)):d=333,at===c&&(n=!1),ne=!0,Ee("mainScrollAnimStart"),je("mainScroll",ct.x,p,d,i.easing.cubic.out,Me,function(){Xe(),ne=!1,at=-1,(n||at!==c)&&l.updateCurrItem(),Ee("mainScrollAnimComplete")}
1),n&&l.updateCurrItem(!0),n},Lt=function(e){return 1/Q*e*g},Rt=function(){var e=w,t=Ne(),n=Ue();w<t?e=t:w>n&&(e=n);var o,r=re;return le&&!B&&!ae&&w<t?(l.close(),!0):(le&&(o=function(e){Se((1-r)*e+r)}),l.zoomTo(e,0,200,i.easing.cubic.out,o),!0)};xe("Gestures",{publicMethods:{initGestures:function(){var e=function(e,t,n,o,i){_=e+t,E=e+n,T=e+o,S=i?e+i:""};(A=z.pointerEvent)&&z.touch&&(z.touch=!1),A?navigator.pointerEnabled?e("pointer","down","move","up","cancel"):e("MSPointer","Down","Move","Up","Cancel"):z.touch?(e("touch","start","move","end","cancel"),D=!0):e("mouse","down","move","up"),m=E+" "+T+" "+S,f=_,A&&!D&&(D=navigator.maxTouchPoints>1||navigator.msMaxTouchPoints>1),l.likelyTouchDevice=D,h[_]=St,h[E]=Ot,h[T]=Dt,S&&(h[S]=h[T]),z.touch&&(f+=" mousedown",m+=" mousemove mouseup",h.mousedown=h[_],h.mousemove=h[E],h.mouseup=h[T]),D||(r.allowPanToNext=!1)}}});var Pt,zt,Zt,Nt,Ut,Ht,Bt=function(t,n,o,a){var s;Pt&&clearTimeout(Pt),Nt=!0,Zt=!0,t.initialLayout?(s=t.initialLayout,t.initialLayout=null):s=r.getThumbBoundsFn&&r.getThumbBoundsFn(c);var d,p,m=o?r.hideAnimationDuration:r.showAnimationDuration,f=function(){Ye("initialZoom"),o?(l.template.removeAttribute("style"),l.bg.removeAttribute("style")):(Se(1),n&&(n.style.display="block"),i.addClass(e,"pswp--animated-in"),Ee("initialZoom"+(o?"OutEnd":"InEnd"))),a&&a(),Nt=!1};if(!m||!s||void 0===s.x)return Ee("initialZoom"+(o?"Out":"In")),o?e.style.opacity=0:(w=t.initialZoomLevel,Le(de,t.initialPosition),Ae(),e.style.opacity=1,Se(1)),void(m?setTimeout(function(){f()},m):f());d=u,p=!l.currItem.src||l.currItem.loadError||r.showHideOpacity,t.miniImg&&(t.miniImg.style.webkitBackfaceVisibility="hidden"),o||(w=s.w/t.w,de.x=s.x,de.y=s.y-L,l[p?"template":"bg"].style.opacity=.001,Ae()),Ve("initialZoom"),o&&!d&&i.removeClass(e,"pswp--animated-in"),p&&(o?i[(d?"remove":"add")+"Class"](e,"pswp--animate_opacity"):setTimeout(function(){i.addClass(e,"pswp--animate_opacity")},30)),Pt=setTimeout(function(){if(Ee("initialZoom"+(o?"Out":"In")),o){var n=s.w/t.w,l={x:de.x,y:de.y},r=w,a=re,u=function(t){1===t?(w=n,de.x=s.x,de.y=s.y-P):(w=(n-r)*t+r,de.x=(s.x-l.x)*t+l.x,de.y=(s.y-P-l.y)*t+l.y),Ae(),p?e.style.opacity=1-t:Se(a-t*a)};d?je("initialZoom",0,1,m,i.easing.cubic.out,u,f):(u(1),Pt=setTimeout(f,m+20))}else w=t.initialZoomLevel,Le(de,t.initialPosition),Ae(),Se(1),p?e.style.opacity=1:Se(1),Pt=setTimeout(f,m+20)},o?25:90)},Kt={},Wt=[],Gt={index:0,errorMsg:'<div class="pswp__error-msg"><a href="%url%" target="_blank">The image</a> could not be loaded.</div>',forceProgressiveLoading:!1,preload:[1,1],getNumItemsFn:function(){return zt.length}},qt=function(e,t,n){if(e.src&&!e.loadError){var o=!n;if(o&&(e.vGap||(e.vGap={top:0,bottom:0}),Ee("parseVerticalMargin",e)),Kt.x=t.x,Kt.y=t.y-e.vGap.top-e.vGap.bottom,o){var i=Kt.x/e.w,l=Kt.y/e.h;e.fitRatio=i<l?i:l;var a=r.scaleMode;"orig"===a?n=1:"fit"===a&&(n=e.fitRatio),n>1&&(n=1),e.initialZoomLevel=n,e.bounds||(e.bounds={center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}})}if(!n)return;return function(e,t,n){var o=e.bounds;o.center.x=Math.round((Kt.x-t)/2),o.center.y=Math.round((Kt.y-n)/2)+e.vGap.top,o.max.x=t>Kt.x?Math.round(Kt.x-t):o.center.x,o.max.y=n>Kt.y?Math.round(Kt.y-n)+e.vGap.top:o.center.y,o.min.x=t>Kt.x?0:o.center.x,o.min.y=n>Kt.y?e.vGap.top:o.center.y}(e,e.w*n,e.h*n),o&&n===e.initialZoomLevel&&(e.initialPosition=e.bounds.center),e.bounds}return e.w=e.h=0,e.initialZoomLevel=e.fitRatio=1,e.bounds={center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}},e.initialPosition=e.bounds.center,e.bounds},Yt=function(e,t,n,o,i,r){t.loadError||o&&(t.imageAppended=!0,jt(t,o,t===l.currItem&&ye),n.appendChild(o),r&&setTimeout(function(){t&&t.loaded&&t.placeholder&&(t.placeholder.style.display="none",t.placeholder=null)},500))},Vt=function(e){e.loading=!0,e.loaded=!1;var t=e.img=i.createEl("pswp__img","img"),n=function(){e.loading=!1,e.loaded=!0,e.loadComplete?e.loadComplete(e):e.img=null,t.onload=t.onerror=null,t=null};return t.onload=n,t.onerror=function(){e.loadError=!0,n()},t.src=e.src,t},Xt=function(e,t){if(e.src&&e.loadError&&e.container)return t&&(e.container.innerHTML=""),e.container.innerHTML=r.errorMsg.replace("%url%",e.
1src),!0},jt=function(e,t,n){if(e.src){t||(t=e.container.lastChild);var o=n?e.w:Math.round(e.w*e.fitRatio),i=n?e.h:Math.round(e.h*e.fitRatio);e.placeholder&&!e.loaded&&(e.placeholder.style.width=o+"px",e.placeholder.style.height=i+"px"),t.style.width=o+"px",t.style.height=i+"px"}},$t=function(){if(Wt.length){for(var e,t=0;t<Wt.length;t++)(e=Wt[t]).holder.index===e.index&&Yt(e.index,e.item,e.baseDiv,e.img,0,e.clearPlaceholder);Wt=[]}};xe("Controller",{publicMethods:{lazyLoadItem:function(e){e=Ce(e);var t=Ut(e);t&&(!t.loaded&&!t.loading||x)&&(Ee("gettingData",e,t),t.src&&Vt(t))},initController:function(){i.extend(r,Gt,!0),l.items=zt=n,Ut=l.getItemAt,Ht=r.getNumItemsFn,r.loop,Ht()<2?r.loop=!1:2==Ht()&&(l.lazyLoadItem(0),l.lazyLoadItem(1)),_e("beforeChange",function(e){var t,n=r.preload,o=null===e||e>=0,i=Math.min(n[0],Ht()),a=Math.min(n[1],Ht());for(t=1;t<=(o?a:i);t++)l.lazyLoadItem(c+t);for(t=1;t<=(o?i:a);t++)l.lazyLoadItem(c-t)}),_e("initialLayout",function(){l.currItem.initialLayout=r.getThumbBoundsFn&&r.getThumbBoundsFn(c)}),_e("mainScrollAnimComplete",$t),_e("initialZoomInEnd",$t),_e("destroy",function(){for(var e,t=0;t<zt.length;t++)(e=zt[t]).container&&(e.container=null),e.placeholder&&(e.placeholder=null),e.img&&(e.img=null),e.preloader&&(e.preloader=null),e.loadError&&(e.loaded=e.loadError=!1);Wt=null})},getItemAt:function(e){return e>=0&&void 0!==zt[e]&&zt[e]},allowProgressiveImg:function(){return r.forceProgressiveLoading||!D||r.mouseUsed||screen.width>1200},setContent:function(e,t){r.loop&&(t=Ce(t));var n=l.getItemAt(e.index);n&&(n.container=null);var o,s=l.getItemAt(t);if(s){Ee("gettingData",t,s),e.index=t,e.item=s;var u=s.container=i.createEl("pswp__zoom-wrap");if(!s.src&&s.html&&(s.html.tagName?u.appendChild(s.html):u.innerHTML=s.html),Xt(s),qt(s,pe),!s.src||s.loadError||s.loaded)s.src&&!s.loadError&&((o=i.createEl("pswp__img","img")).style.opacity=1,o.src=s.src,jt(s,o),Yt(0,s,u,o));else{if(s.loadComplete=function(n){if(a){if(e&&e.index===t){if(Xt(n,!0))return n.loadComplete=n.img=null,qt(n,pe),De(n),void(e.index===c&&l.updateCurrZoomItem());n.imageAppended?!Nt&&n.placeholder&&(n.placeholder.style.display="none",n.placeholder=null):z.transform&&(ne||Nt)?Wt.push({item:n,baseDiv:u,img:n.img,index:t,holder:e,clearPlaceholder:!0}):Yt(0,n,u,n.img,0,!0)}n.loadComplete=null,n.img=null,Ee("imageLoadComplete",t,n)}},i.features.transform){var d="pswp__img pswp__img--placeholder";d+=s.msrc?"":" pswp__img--placeholder--blank";var p=i.createEl(d,s.msrc?"img":"");s.msrc&&(p.src=s.msrc),jt(s,p),u.appendChild(p),s.placeholder=p}s.loading||Vt(s),l.allowProgressiveImg()&&(!Zt&&z.transform?Wt.push({item:s,baseDiv:u,img:s.img,index:t,holder:e}):Yt(0,s,u,s.img,0,!0))}Zt||t!==c?De(s):(te=u.style,Bt(s,o||s.img)),e.el.innerHTML="",e.el.appendChild(u)}else e.el.innerHTML=""},cleanSlide:function(e){e.img&&(e.img.onload=e.img.onerror=null),e.loaded=e.loading=e.img=e.imageAppended=!1}}});var Jt,Qt,en={},tn=function(e,t,n){var o=document.createEvent("CustomEvent"),i={origEvent:e,target:e.target,releasePoint:t,pointerType:n||"touch"};o.initCustomEvent("pswpTap",!0,!0,i),e.target.dispatchEvent(o)};xe("Tap",{publicMethods:{initTap:function(){_e("firstTouchStart",l.onTapStart),_e("touchRelease",l.onTapRelease),_e("destroy",function(){en={},Jt=null})},onTapStart:function(e){e.length>1&&(clearTimeout(Jt),Jt=null)},onTapRelease:function(e,t){var n,o;if(t&&!V&&!q&&!qe){var l=t;if(Jt&&(clearTimeout(Jt),Jt=null,n=l,o=en,Math.abs(n.x-o.x)<25&&Math.abs(n.y-o.y)<25))return void Ee("doubleTap",l);if("mouse"===t.type)return void tn(e,t,"mouse");if("BUTTON"===e.target.tagName.toUpperCase()||i.hasClass(e.target,"pswp__single-tap"))return void tn(e,t);Le(en,l),Jt=setTimeout(function(){tn(e,t),Jt=null},300)}}}}),xe("DesktopZoom",{publicMethods:{initDesktopZoom:function(){R||(D?_e("mouseUsed",function(){l.setupDesktopZoom()}):l.setupDesktopZoom(!0))},setupDesktopZoom:function(t){Qt={};var n="wheel mousewheel DOMMouseScroll";_e("bindEvents",function(){i.bind(e,n,l.handleMouseWheel)}),_e("unbindEvents",function(){Qt&&i.unbind(e,n,l.handleMouseWheel)}),l.mouseZoomedIn=!1;var o,r=function(){l.mouseZoomedIn&&(i.removeClass(e,"pswp--zoomed-in"),l.mouseZoomedIn=!1),w<1?i.addClass(e,"pswp--zoom-allowed"):i.removeClass(e,"pswp--zoom-allowed"),a()},a=function(){o&&(i.removeClass(e,"pswp--dragging"),o=!1)};_e("resize",r),_e("afterChange",r),_e("pointerDown",function(){l.mouseZoomedIn&&(o=!0,i.addClass(e,"pswp--dragging"))}),_e("pointerUp",a),t||r()},handleMouseWheel:function(t){if(Qt.x=0,Qt.y=0,"deltaX"in t?1===t.deltaMode?(Qt.x=18*t.deltaX,Qt.y=18*t.deltaY):(Qt.x=t.deltaX,Qt.y=t.deltaY):"wheelDelta"in t?(t.wheelDeltaX&&(Qt.x=-.16*t.wheelDeltaX),t.wheelDeltaY?Qt.y=-.16*t.wheelDeltaY:Qt.y=-.16*t.wheelDelta):"detail"in t&&(Qt.y=t.detail),w<=l.currItem.fitRatio||r.zoomOnScroll||r.switchOnScroll){if(r.modal)if(r.zoomOnScroll){var n={x:pe.x/2+fe.x,y:pe.y/2+fe.y};if(0===Qt.x&&Qt.y>0||Qt.x>0&&0===Qt.y)l.zoomTo(l.currItem.initialZoomLevel,n,333),l.mouseZoomedIn=!1,i.removeClass(e,"pswp--zoomed-in");else if(0===Qt.x&&Qt.y<0||Qt.x<0&&0===Qt.y){var o=r.getDoubleTapZoom(!0,l.currItem);l.mouseZoomedIn=!0,l.zoomTo(o,n,333),i.addClass(e,"pswp--zoomed-in")}t.preventDefault()}else r.switchOnScroll?(0===Qt.x&&Qt.y>0||Qt.x>0&&0===Qt.y?l.nextAnim():(0===Qt.x&&Qt.y<0||Qt.x<0&&0===Qt.y)&&l.prevAnim(),t.preventDefault()):!r.closeOnScroll||qe||G?t.preventDefault():O&&Math.abs(t.deltaY)>2&&(u=!0,l.close());return!0}if(t.stopPropagation(),0!=Qt.x||0!=Qt.y){Ze(w,!0);var a=de.x-Qt.x,s=de.y-Qt.y;(r.modal||a<=ee.min.x&&a>=ee.max.x&&s<=ee.min.y&&s>=ee.max.y)&&t.preventDefault(),l.panTo(a,s)}},toggleDesktopZoom:function(t){t=t||{x:pe.x/2+fe.x,y:pe.y/2+fe.y};var n=r.getDoubleTapZoom(!0,l.currItem),o=w===n;l.mouseZoomedIn=!o,l.zoomTo(o?l.currItem.initialZoomLevel:n,t,333),i[(o?"remove":"add")+"Class"](e,"pswp--zoomed-in")}}});var nn,on,ln,rn,an,sn,un,cn,dn,pn,mn,fn,hn={history:!0,galleryUID:1},wn=function(){return mn.hash.substring(1)},gn=function(){nn&&clearTimeout(nn),ln&&clearTimeout(ln)},bn=function(){var e=wn(),t={};if(e.length<5)return t;var n,o=e.split("&");for(n=0;n<o.length;n++)if(o[n]){var i=o[n].split("=");i.length<2||(t[i[0]]=i[1])}if(r.galleryPIDs){var l=t.pid;for(t.pid=0,n=0;n<zt.length;n++)if(zt[n].pid===l){t.pid=n;break}}else t.pid=parseInt(t.pid,10)-1;return t.pid<0&&(t.pid=0),t},vn=function(){if(ln&&clearTimeout(ln),qe||G)ln=setTimeout(vn,500);
1else{rn?clearTimeout(on):rn=!0;var e=c+1,t=Ut(c);t.hasOwnProperty("pid")&&(e=t.pid);var n=un+"&gid="+r.galleryUID+"&pid="+e;cn||-1===mn.hash.indexOf(n)&&(pn=!0);var o=mn.href.split("#")[0]+"#"+n;fn?"#"+n!==window.location.hash&&history[cn?"replaceState":"pushState"]("",document.title,o):cn?mn.replace(o):mn.hash=n,cn=!0,on=setTimeout(function(){rn=!1},60)}};xe("History",{publicMethods:{initHistory:function(){if(i.extend(r,hn,!0),r.history){mn=window.location,pn=!1,dn=!1,cn=!1,un=wn(),fn="pushState"in history,un.indexOf("gid=")>-1&&(un=(un=un.split("&gid=")[0]).split("?gid=")[0]),_e("afterChange",l.updateURL),_e("unbindEvents",function(){i.unbind(window,"hashchange",l.onHashChange)});var e=function(){sn=!0,dn||(pn?history.back():un?mn.hash=un:fn?history.pushState("",document.title,mn.pathname+mn.search):mn.hash=""),gn()};_e("unbindEvents",function(){u&&e()}),_e("destroy",function(){sn||e()}),_e("firstUpdate",function(){c=bn().pid});var t=un.indexOf("pid=");t>-1&&"&"===(un=un.substring(0,t)).slice(-1)&&(un=un.slice(0,-1)),setTimeout(function(){a&&i.bind(window,"hashchange",l.onHashChange)},40)}},onHashChange:function(){if(wn()===un)return dn=!0,void l.close();rn||(an=!0,l.goTo(bn().pid),an=!1)},updateURL:function(){gn(),an||(cn?nn=setTimeout(vn,800):vn())}}});var yn=function(e){var t,n,o=e;ne||(at=c),o&&((c+=o)<0?(c=r.loop?Ht()-1:0,n=!0):c>=Ht()&&(c=r.loop?0:Ht()-1,n=!0),n&&!r.loop||(we+=o,me-=o,t=!0));var a=he.x*me,s=Math.abs(a-ct.x)>4e3?400:300;return at===c&&(t=!1),ne=!0,Ee("mainScrollAnimStart"),je("mainScroll",ct.x,a,s,i.easing.cubic.out,Me,function(){Xe(),ne=!1,at=-1,(t||at!==c)&&l.updateCurrItem(),Ee("mainScrollAnimComplete")}),t&&l.updateCurrItem(!0),t};xe("AnimateSlide",{publicMethods:{initAnimateSlide:function(){},nextAnim:function(){r.desktopSlider?yn(1):l.next()},prevAnim:function(){r.desktopSlider?yn(-1):l.prev()}}}),i.extend(l,$e)}}),function(e,t){"object"==typeof exports?module.exports=t():e.PhotoSwipeUI_Default=t()}(this,function(){"use strict";return function(e,t){var n,o,i,l,r,a,s,u,c,d,p,m,f,h,w,g,b,v,y,x,C=this,I=!1,_=!0,E=!0,T={barsSize:{top:44,bottom:"auto"},closeElClasses:["item","caption","zoom-wrap","ui","top-bar"],timeToIdle:4e3,timeToIdleOutside:1e3,loadingIndicatorDelay:1e3,addCaptionHTMLFn:function(e,t){if(!e.title&&!e.exif)return t.children[0].innerHTML="",!1;var n="";return e.title&&(n=e.title),e.exif&&(n+='<div class="pswp__caption__exif">'+e.exif+"</div>"),t.children[0].innerHTML=n,!0},closeEl:!0,captionEl:!0,fullscreenEl:!0,zoomEl:!0,shareEl:!0,counterEl:!0,arrowEl:!0,preloaderEl:!0,tapToClose:!1,tapToToggleControls:!0,clickToCloseNonZoomable:!0,shareButtons:[{id:"facebook",label:"Share on Facebook",url:"https://www.facebook.com/sharer/sharer.php?u={{url}}"},{id:"twitter",label:"Tweet",url:"https://twitter.com/intent/tweet?text={{text}}&url={{url}}"},{id:"pinterest",label:"Pin it",url:"http://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}"},{id:"download",label:"Download image",url:"{{raw_image_url}}",download:!0}],getImageURLForShare:function(){return e.currItem.src||""},getPageURLForShare:function(){return window.location.href},getTextForShare:function(){return e.currItem.title||""},indexIndicatorSep:" / ",fitControlsWidth:1200},S=function(e){if(v)return!0;e=e||window.event,b.timeToIdle&&b.mouseUsed&&!p&&P();for(var n,o,i=(e.target||e.srcElement).getAttribute("class")||"",l=0;l<U.length;l++)(n=U[l]).onTap&&i.indexOf("pswp__"+n.name)>-1&&(n.onTap(),o=!0);if(o){e.stopPropagation&&e.stopPropagation(),v=!0;var r=t.features.isOldAndroid?600:30;setTimeout(function(){v=!1},r)}},O=function(e,n,o){t[(o?"add":"remove")+"Class"](e,"pswp__"+n)},A=function(){var e=1===b.getNumItemsFn();e!==g&&(O(o,"ui--one-slide",e),g=e)},D=function(){O(c,"share-modal--hidden",E)},k=function(){return(E=!E)?(t.removeClass(c,"pswp__share-modal--fade-in"),setTimeout(function(){E&&D()},300)):(D(),setTimeout(function(){E||t.addClass(c,"pswp__share-modal--fade-in")},30)),E||F(),!1},M=function(t){var n=(t=t||window.event).target||t.srcElement;return e.shout("shareLinkClick",t,n),E||k(),!(!n.href||!n.hasAttribute("download")&&!n.hasAttribute("onclick")&&(window.open(n.href,"pswp_share"),1))},F=function(){for(var e,t,n,o,i="",l=0;l<b.shareButtons.length;l++)e=b.shareButtons[l],t=b.getImageURLForShare(e),n=b.getPageURLForShare(e),o=b.getTextForShare(e),i+="<a",e.url?i+=' href="'+e.url.replace("{{url}}",encodeURIComponent(n)).replace("{{image_url}}",encodeURIComponent(t)).replace("{{raw_image_url}}",t).replace("{{raw_url}}",n).replace("{{text}}",encodeURIComponent(o))+'" target="_blank" class="pswp__share--'+e.id+'"':i+=' href="#" class="pswp__share--'+e.id+'"',e.onclick&&(i+=' onclick="'+e.onclick.replace("{{url}}",encodeURIComponent(n)).replace("{{image_url}}",encodeURIComponent(t)).replace("{{raw_image_url}}",t).replace("{{text}}",encodeURIComponent(o))+'"'),i+=(e.download?"download":"")+">"+e.label+"</a>",b.parseShareButtonOut&&(i=b.parseShareButtonOut(e,i));c.children[0].innerHTML=i,c.children[0].onclick=M},L=function(e){for(var n=0;n<b.closeElClasses.length;n++)if(t.hasClass(e,"pswp__"+b.closeElClasses[n]))return!0},R=0,P=function(){clearTimeout(x),R=0,p&&C.setIdle(!1)},z=function(e){var t=(e=e||window.event).relatedTarget||e.toElement;t&&"HTML"!==t.nodeName||(clearTimeout(x),x=setTimeout(function(){C.setIdle(!0)},b.timeToIdleOutside))},Z=function(e){h!==e&&(O(f,"preloader--active",!e),h=e)},N=function(n){var r=n.vGap;if(!e.likelyTouchDevice||b.mouseUsed||screen.width>b.fitControlsWidth){var a=b.barsSize;if(b.captionEl&&"auto"===a.bottom)if(l||((l=t.createEl("pswp__caption pswp__caption--fake")).appendChild(t.createEl("pswp__caption__center")),o.insertBefore(l,i),t.addClass(o,"pswp__ui--fit")),b.addCaptionHTMLFn(n,l,!0)){var s=l.clientHeight;r.bottom=parseInt(s,10)||44}else r.bottom=a.top;else r.bottom="auto"===a.bottom?0:a.bottom;r.top=a.top}else r.top=r.bottom=0},U=[{name:"caption",option:"captionEl",onInit:function(e){i=e}},{name:"share-modal",option:"shareEl",onInit:function(e){c=e},onTap:function(){k()}},{name:"button--share",option:"shareEl",onInit:function(e){u=e},onTap:function(){k()}}
1,{name:"button--zoom",option:"zoomEl",onTap:e.toggleDesktopZoom},{name:"counter",option:"counterEl",onInit:function(e){r=e}},{name:"button--close",option:"closeEl",onTap:e.close},{name:"button--arrow--left",option:"arrowEl",onInit:function(e){a=e},onTap:e.prevAnim},{name:"button--arrow--right",option:"arrowEl",onInit:function(e){s=e},onTap:e.nextAnim},{name:"button--fs",option:"fullscreenEl",onTap:function(){C.toggleFullscreen()}},{name:"preloader",option:"preloaderEl",onInit:function(e){f=e}}];C.init=function(){var r;t.extend(e.options,T,!0),b=e.options,o=t.getChildByClass(e.scrollWrap,"pswp__ui"),(m=e.listen)("onVerticalDrag",function(e){_&&e<.95?C.hideControls():!_&&e>=.95&&C.showControls()}),m("onPinchClose",function(e){_&&e<.9?(C.hideControls(),r=!0):r&&!_&&e>.9&&C.showControls()}),m("zoomGestureEnded",function(){(r=!1)&&!_&&C.showControls()}),m("beforeChange",C.update),m("doubleTap",function(t){var n=e.currItem.initialZoomLevel;e.getZoomLevel()!==n?e.zoomTo(n,t,333):e.zoomTo(b.getDoubleTapZoom(!1,e.currItem),t,333)}),m("preventDragEvent",function(e,t,n){var o=e.target||e.srcElement;o&&o.getAttribute("class")&&e.type.indexOf("mouse")>-1&&(o.getAttribute("class").indexOf("__caption")>0||/(SMALL|STRONG|EM)/i.test(o.tagName))&&(n.prevent=!1)}),m("bindEvents",function(){t.bind(o,"pswpTap click",S),t.bind(e.scrollWrap,"pswpTap",C.onGlobalTap),e.likelyTouchDevice||t.bind(e.scrollWrap,"mouseover",C.onMouseOver)}),m("unbindEvents",function(){E||k(),y&&clearInterval(y),t.unbind(document,"mouseout",z),t.unbind(document,"mousemove",P),t.unbind(o,"pswpTap click",S),t.unbind(e.scrollWrap,"pswpTap",C.onGlobalTap),t.unbind(e.scrollWrap,"mouseover",C.onMouseOver),n&&(t.unbind(document,n.eventK,C.updateFullscreen),n.isFullscreen()&&(b.hideAnimationDuration=0,n.exit()),n=null)}),m("destroy",function(){b.captionEl&&(l&&o.removeChild(l),t.removeClass(i,"pswp__caption--empty")),c&&(c.children[0].onclick=null),t.removeClass(o,"pswp__ui--over-close"),t.addClass(o,"pswp__ui--hidden"),C.setIdle(!1)}),b.showAnimationDuration||t.removeClass(o,"pswp__ui--hidden"),m("initialZoomIn",function(){b.showAnimationDuration&&t.removeClass(o,"pswp__ui--hidden")}),m("initialZoomOut",function(){t.addClass(o,"pswp__ui--hidden")}),m("parseVerticalMargin",N),function(){var e,n,i,l=function(o){if(o)for(var l=o.length,r=0;r<l;r++){e=o[r],n=e.className;for(var a=0;a<U.length;a++)i=U[a],n.indexOf("pswp__"+i.name)>-1&&(b[i.option]?(t.removeClass(e,"pswp__element--disabled"),i.onInit&&i.onInit(e)):t.addClass(e,"pswp__element--disabled"))}};l(o.children);var r=t.getChildByClass(o,"pswp__top-bar");r&&l(r.children)}(),b.shareEl&&u&&c&&(E=!0),A(),b.timeToIdle&&("auto"===b.barsSize.bottom||e.likelyTouchDevice?m("mouseUsed",function(){t.bind(document,"mousemove",P),t.bind(document,"mouseout",z),y=setInterval(function(){2==++R&&C.setIdle(!0)},b.timeToIdle/2)}):(y=setInterval(function(){2==++R&&C.setIdle(!0)},b.timeToIdle/2),m("mouseUsed",function(){t.bind(document,"mousemove",P),t.bind(document,"mouseout",z)}))),b.fullscreenEl&&!t.features.isOldAndroid&&(n||(n=C.getFullscreenAPI()),n?(t.bind(document,n.eventK,C.updateFullscreen),C.updateFullscreen(),t.addClass(e.template,"pswp--supports-fs")):t.removeClass(e.template,"pswp--supports-fs")),b.preloaderEl&&(Z(!0),m("beforeChange",function(){clearTimeout(w),w=setTimeout(function(){e.currItem&&e.currItem.loading?(!e.allowProgressiveImg()||e.currItem.img&&!e.currItem.img.naturalWidth)&&Z(!1):Z(!0)},b.loadingIndicatorDelay)}),m("imageLoadComplete",function(t,n){e.currItem===n&&Z(!0)}))},C.setIdle=function(e){p=e,O(o,"ui--idle",e),"auto"!==b.barsSize.bottom&&void 0!==i&&O(i,"ui--idle",e)},C.update=function(){_&&e.currItem?(C.updateIndexIndicator(),b.captionEl&&(b.addCaptionHTMLFn(e.currItem,i),O(i,"caption--empty",!e.currItem.title&&!e.currItem.exif)),I=!0):I=!1,E||k(),A()},C.updateFullscreen=function(o){o&&setTimeout(function(){e.setScrollOffset(0,t.getScrollY())},50),t[(n.isFullscreen()?"add":"remove")+"Class"](e.template,"pswp--fs")},C.toggleFullscreen=function(){n.isFullscreen()?n.exit():n.enter()},C.updateIndexIndicator=function(){b.counterEl&&(r.innerHTML=e.getCurrentIndex()+1+b.indexIndicatorSep+b.getNumItemsFn()),b.loop||(0==e.getCurrentIndex()?t.addClass(a,"pswp__element--disabled"):t.removeClass(a,"pswp__element--disabled"),e.getCurrentIndex()==b.getNumItemsFn()-1?t.addClass(s,"pswp__element--disabled"):t.removeClass(s,"pswp__element--disabled"))},C.onGlobalTap=function(n){var o=(n=n||window.event).target||n.srcElement;if(!v)if(n.detail&&"mouse"===n.detail.pointerType){if(L(o))return void e.close();t.hasClass(o,"pswp__img")&&(1===e.getZoomLevel()&&e.getZoomLevel()<=e.currItem.fitRatio?b.clickToCloseNonZoomable&&e.close():e.toggleDesktopZoom(n.detail.releasePoint))}else if(b.tapToToggleControls&&(_?C.hideControls():C.showControls()),b.tapToClose&&(t.hasClass(o,"pswp__img")||L(o)))return void e.close()},C.onMouseOver=function(e){var t=(e=e||window.event).target||e.srcElement;O(o,"ui--over-close",L(t))},C.hideControls=function(){t.addClass(o,"pswp__ui--hidden"),_=!1},C.showControls=function(){_=!0,I||C.update(),t.removeClass(o,"pswp__ui--hidden")},C.supportsFullscreen=function(){var e=document;return!!(e.exitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen||e.msExitFullscreen)},C.getFullscreenAPI=function(){var t,n=document.documentElement,o="fullscreenchange";return n.requestFullscreen?t={enterK:"requestFullscreen",exitK:"exitFullscreen",elementK:"fullscreenElement",eventK:o}:n.mozRequestFullScreen?t={enterK:"mozRequestFullScreen",exitK:"mozCancelFullScreen",elementK:"mozFullScreenElement",eventK:"moz"+o}:n.webkitRequestFullscreen?t={enterK:"webkitRequestFullscreen",exitK:"webkitExitFullscreen",elementK:"webkitFullscreenElement",eventK:"webkit"+o}:n.msRequestFullscreen&&(t={enterK:"msRequestFullscreen",exitK:"msExitFullscreen",elementK:"msFullscreenElement",eventK:"MSFullscreenChange"}
1),t&&(t.enter=function(){if(d=b.closeOnScroll,b.closeOnScroll=!1,"webkitRequestFullscreen"!==this.enterK)return e.template[this.enterK]();e.template[this.enterK](Element.ALLOW_KEYBOARD_INPUT)},t.exit=function(){return b.closeOnScroll=d,document[this.exitK]()},t.isFullscreen=function(){return document[this.elementK]}),t}}});let lbwpsInit=function(e){e||document.addEventListener("click",function(e){if(e.target.parentNode.getAttribute("data-lbwps-width"))return e.preventDefault(),void a(!1,0,e.target.parentNode,!1,"");let t=e.composedPath&&e.composedPath();if(!t)return;let n=0;for(;n<t.length;){if("function"==typeof t[n].getAttribute&&t[n].getAttribute("data-lbwps-width"))return e.preventDefault(),void a(!1,0,t[n],!1,"");n++}});let t=window.PhotoSwipe,n=window.PhotoSwipeUI_Default,o=(document.querySelectorAll("a[data-lbwps-width]"),""),i="",l=document.querySelectorAll('div[class*="elementor-widget-image-carousel"]');for(let e=0;e<l.length;e++){let t=l[e].getAttribute("data-lbwps-gid");if(null!=t&&null!=l[e].firstElementChild&&null!=l[e].firstElementChild.firstElementChild&&null!=l[e].firstElementChild.firstElementChild.firstElementChild&&null!=l[e].firstElementChild.firstElementChild.firstElementChild.firstElementChild){let n=l[e].firstElementChild.firstElementChild.firstElementChild.firstElementChild;for(;null!=n;){if(null!=n&&n.classList.contains("swiper-slide")&&!n.classList.contains("swiper-slide-duplicate")){let e=n.firstElementChild;null!=e&&"A"==e.nodeName&&null==e.getAttribute("data-lbwps-gid")&&e.setAttribute("data-lbwps-gid",t)}n=n.nextElementSibling}}}let r=document.querySelectorAll('div[class*="elementor-widget-image"]');for(let e=0;e<r.length;e++){let t=r[e].getAttribute("data-lbwps-gid");if(null!=t&&null!=r[e].firstElementChild&&null!=r[e].firstElementChild.firstElementChild){let n=r[e].firstElementChild.firstElementChild;null!=n&&"A"==n.nodeName&&null==n.getAttribute("data-lbwps-gid")&&n.setAttribute("data-lbwps-gid",t)}}let a=function(e,l,r,a,s){let u,c,d,p,m=1,f=document.querySelector(".pswp");m=null!=r?r.getAttribute("data-lbwps-gid"):l,d=function(e,t){let n,o,i=[];n=null==t||1==t?document.querySelectorAll("a[data-lbwps-width]:not([data-lbwps-gid])"):document.querySelectorAll('a[data-lbwps-width][data-lbwps-gid="'+t+'"]');for(let e=0;e<n.length;e++){let t=n[e],o=!0,l=t.getAttribute("href");for(let e=0;e<i.length;e++)i[e].src==l&&(o=!1);if(o){let e=null,n=null,o=t.getAttribute("tabindex");if(null==o&&(o=0),null==(e=t.getAttribute("data-lbwps-caption"))&&t.firstElementChild){let n=t.firstElementChild.getAttribute("aria-describedby");if(null!=n){let t=document.getElementById(n);null!=t&&(e=t.innerHTML)}}if(null==e){let n=t.nextElementSibling,o=t.parentElement.nextElementSibling,i=t.parentElement.parentElement.nextElementSibling,l=t.parentElement.parentElement.parentElement.nextElementSibling;null!=n?".wp-caption-text"===n.className?e=n.innerHTML:n&&"FIGCAPTION"===n.nodeName&&(e=n.innerHTML):null!=o?".wp-caption-text"===o.className?e=o.innerHTML:".gallery-caption"===o.className?e=o.innerHTML:o.nextElementSibling&&"FIGCAPTION"===o.nextElementSibling.nodeName&&(e=o.nextElementSibling.innerHTML):i&&"FIGCAPTION"===i.nodeName?e=i.innerHTML:l&&"FIGCAPTION"===l.nodeName&&(e=l.innerHTML)}null==e&&(e=t.getAttribute("title")),n="",null!=t.getAttribute("data-lbwps-title")&&(n=n+'<div class="pswp__caption__title">'+t.getAttribute("data-lbwps-title")+"</div>"),"1"==lbwpsOptions.use_caption&&null!=e&&(n=n+'<div class="pswp__caption__text">'+e+"</div>"),"1"==lbwpsOptions.use_alt&&t.firstElementChild&&t.firstElementChild.getAttribute("alt")&&(n=n+'<div class="pswp__caption__alt">'+t.firstElementChild.getAttribute("alt")+"</div>"),null!=t.getAttribute("data-lbwps-description")&&(n=n+'<div class="pswp__caption__desc">'+t.getAttribute("data-lbwps-description")+"</div>"),i.push({src:t.getAttribute("href"),msrc:t.getAttribute("href"),w:t.getAttribute("data-lbwps-width"),h:t.getAttribute("data-lbwps-height"),title:n,exif:t.getAttribute("data-lbwps-exif"),getThumbBoundsFn:!1,showHideOpacity:!0,el:t,tabindex:o})}}if(i.sort(function(e,t){let n=parseInt(e.tabindex),o=parseInt(t.tabindex);return n>o?1:n<o?-1:0}),null!=e)for(let t=0;t<i.length;t++)i[t].el.getAttribute("href")==e.getAttribute("href")&&(o=t);return[i,parseInt(o,10)]}(r,m),p=0==e?d[1]:e,d=d[0],c={index:p,getThumbBoundsFn:!1,showHideOpacity:!0,loop:!0,tapToToggleControls:!0,clickToCloseNonZoomable:!1},null!=m&&(c.galleryUID=m),"0"==lbwpsOptions.close_on_click&&(c.closeElClasses=["pspw__button--close"]),"1"==lbwpsOptions.share_facebook||"1"==lbwpsOptions.share_twitter||"1"==lbwpsOptions.share_pinterest||"1"==lbwpsOptions.share_download||"1"==lbwpsOptions.share_copyurl||""!==lbwpsOptions.share_custom_link&&""!==lbwpsOptions.share_custom_label?(c.shareEl=!0,c.shareButtons=[],"1"==lbwpsOptions.share_facebook&&("1"==lbwpsOptions.share_direct?url="https://www.facebook.com/sharer/sharer.php?u={{image_url}}":url="https://www.facebook.com/sharer/sharer.php?u={{url}}",c.shareButtons.push({id:"facebook",label:lbwpsOptions.label_facebook,url:url})),"1"==lbwpsOptions.share_twitter&&("1"==lbwpsOptions.share_direct?url="https://twitter.com/intent/tweet?text={{text}}&url={{image_url}}":url="https://twitter.com/intent/tweet?text={{text}}&url={{url}}",c.shareButtons.push({id:"twitter",label:lbwpsOptions.label_twitter,url:url})),"1"==lbwpsOptions.share_pinterest&&c.shareButtons.push({id:"pinterest",label:lbwpsOptions.label_pinterest,url:"http://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}"}),"1"==lbwpsOptions.share_download&&c.shareButtons.push({id:"download",label:lbwpsOptions.label_download,url:"{{raw_image_url}}",download:!0}),"1"==lbwpsOptions.share_copyurl&&c.shareButtons.push({id:"copyurl",label:lbwpsOptions.label_copyurl,url:"{{raw_image_url}}",onclick:"window.lbwpsCopyToClipboard('{{raw_image_url}}');return false;",download:!1}),""!==lbwpsOptions.share_custom_link&&""!==lbwpsOptions.share_custom_label&&c.shareButtons.push({id:"custom",label:lbwpsOptions.share_custom_label,url:lbwpsOptions.share_custom_link,download:!1})):c.shareEl=!1,"close"==lbwpsOptions.wheelmode?c.closeOnScroll=!0:c.closeOnScroll=!1,"zoom"==lbwpsOptions.wheelmode?c.zoomOnScroll=!0:c.zoomOnScroll=!1,"switch"==lbwpsOptions.wheelmode?c.switchOnScroll=!0:c.switchOnScroll=!1,"1"==lbwpsOptions.close_on_drag?c.closeOnVerticalDrag=!0:c.closeOnVerticalDrag=!1,"1"==lbwpsOptions.history?c.history=!0:c.history=!1,"1"==lbwpsOptions.show_counter?c.counterEl=!0:c.counterEl=!1,"1"==lbwpsOptions.show_fullscreen?c.fullscreenEl=!0:c.fullscreenEl=!1,"1"==lbwpsOptions.show_zoom?c.zoomEl=!0:c.zoomEl=!1,"1"==lbwpsOptions.show_caption?c.captionEl=!0:c.captionEl=!1,"1"==lbwpsOptions.loop?c.loop=!0:c.loop=!1,"1"==lbwpsOptions.pinchtoclose?c.pinchToClose=!0:c.pinchToClose=!1,"1"==lbwpsOptions.taptotoggle?c.tapToToggleControls=!0:c.tapToToggleControls=!1,"1"==lbwpsOptions.desktop_slider?c.desktopSlider=!0:c.desktopSlider=!1,c.spacing=lbwpsOptions.spacing/100,c.timeToIdle=lbwpsOptions.idletime,1==a&&(c.index=parseInt(p,10)-1),"1"==lbwpsOptions.fulldesktop&&(c.barsSize={top:0,bottom:0}),(u=new t(f,n,d,c)).listen("gettingData",function(e,t){if(t.w<1||t.h<1){let e=new Image;e.onload=function(){t.w=this.width,t.h=this.height,u.updateSize(!0)},e.src=t.src}}),""!=s&&u.listen("unbindEvents",function(){document.location.href=s}),u.listen("destroy",function(){"1"==lbwpsOptions.hide_scrollbars&&(document.body.style.paddingRight=o,document.body.style.overflow=i),window.lbwpsPhotoSwipe=null}),window.lbwpsPhotoSwipe=u,"1"==lbwpsOptions.hide_scrollbars&&function(){const e=window.innerWidth-document.body.offsetWidth;o=document.body.style.paddingRight,i=document.body.style.overflow,document.body.style.paddingRight=e+"px",document.body.style.overflow="hidden"}
1(),u.init()};if(window.lbwpsCopyToClipboard=function(e){const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="absolute",t.style.left="-9999px",document.body.appendChild(t);const n=document.getSelection().rangeCount>0&&document.getSelection().getRangeAt(0);t.select(),document.execCommand("copy"),document.body.removeChild(t),n&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(n))},!0!==e){let e=function(){let e=window.location.hash.substring(1),t={};if(e.length<5)return t;let n=e.split("&");for(let e=0;e<n.length;e++){if(!n[e])continue;let o=n[e].split("=");o.length<2||(t[o[0]]=o[1])}return t.gid&&(t.gid=parseInt(t.gid,10)),t}();if(e.pid&&e.gid){let t="";void 0!==e.returnurl&&(t=e.returnurl),a(e.pid,e.gid,null,!0,t)}}},lbwpsReady=function(){let e=!1;return function(t){let n=function(){if(!e)return e=!0,t()};if("complete"===document.readyState)return n();document.addEventListener("DOMContentLoaded",n,!1),window.addEventListener("load",n,!1)}}();lbwpsReady(function(){window.lbwpsPhotoSwipe=null,lbwpsInit(!1);if("undefined"!=typeof MutationObserver){new MutationObserver(function(e){if(null===window.lbwpsPhotoSwipe){let t=!1;for(let n=0;n<e.length;n++)"childList"===e[n].type&&(t=!0);t&&lbwpsInit(!0)}}).observe(document.querySelector("body"),{childList:!0,subtree:!0,attributes:!1})}});

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.