PageSourceSearch

https://portalon.com.br/paulinia/_next/static/chunks/860d1380de2ac…80ac7632a45b46c78c1.ec7327f29a6988269271.js

js portalon.com.br collected 2026-10-10 00:51:04 UTC 57,434 bytes, 1 lines download raw bytes

1(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[10],{FP2o:function(e,t,n){var o,i;void 0===(i="function"===typeof(o=function(){"use strict";return function(e,t){var n,o,i,r,a,s,l,c,u,d,p,m,f,h,v,x,g,b,w=this,y=!1,O=!0,_=!0,j={barsSize:{top:44,bottom:"auto"},closeElClasses:["item","caption","zoom-wrap","ui","top-bar"],timeToIdle:4e3,timeToIdleOutside:1e3,loadingIndicatorDelay:1e3,addCaptionHTMLFn:function(e,t){return e.title?(t.children[0].innerHTML=e.title,!0):(t.children[0].innerHTML="",!1)},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},I=function(e){if(x)return!0;e=e||window.event,v.timeToIdle&&v.mouseUsed&&!u&&M();for(var n,o,i=(e.target||e.srcElement).getAttribute("class")||"",r=0;r<B.length;r++)(n=B[r]).onTap&&i.indexOf("pswp__"+n.name)>-1&&(n.onTap(),o=!0);if(o){e.stopPropagation&&e.stopPropagation(),x=!0;var a=t.features.isOldAndroid?600:30;setTimeout((function(){x=!1}),a)}},C=function(){return!e.likelyTouchDevice||v.mouseUsed||screen.width>v.fitControlsWidth},T=function(e,n,o){t[(o?"add":"remove")+"Class"](e,"pswp__"+n)},S=function(){var e=1===v.getNumItemsFn();e!==h&&(T(o,"ui--one-slide",e),h=e)},E=function(){T(l,"share-modal--hidden",_)},D=function(){return(_=!_)?(t.removeClass(l,"pswp__share-modal--fade-in"),setTimeout((function(){_&&E()}),300)):(E(),setTimeout((function(){_||t.addClass(l,"pswp__share-modal--fade-in")}),30)),_||R(),!1},P=function(t){var n=(t=t||window.event).target||t.srcElement;return e.shout("shareLinkClick",t,n),!!n.href&&(!!n.hasAttribute("download")||(window.open(n.href,"pswp_share","scrollbars=yes,resizable=yes,toolbar=no,location=yes,width=550,height=420,top=100,left="+(window.screen?Math.round(screen.width/2-275):100)),_||D(),!1))},R=function(){for(var e,t,n,o,i="",r=0;r<v.shareButtons.length;r++)e=v.shareButtons[r],t=v.getImageURLForShare(e),n=v.getPageURLForShare(e),o=v.getTextForShare(e),i+='<a href="'+e.url.replace("{{url}}",encodeURIComponent(n)).replace("{{image_url}}",encodeURIComponent(t)).replace("{{raw_image_url}}",t).replace("{{text}}",encodeURIComponent(o))+'" target="_blank" class="pswp__share--'+e.id+'"'+(e.download?"download":"")+">"+e.label+"</a>",v.parseShareButtonOut&&(i=v.parseShareButtonOut(e,i));l.children[0].innerHTML=i,l.children[0].onclick=P},k=function(e){for(var n=0;n<v.closeElClasses.length;n++)if(t.hasClass(e,"pswp__"+v.closeElClasses[n]))return!0},A=0,M=function(){clearTimeout(b),A=0,u&&w.setIdle(!1)},N=function(e){var t=(e=e||window.event).relatedTarget||e.toElement;t&&"HTML"!==t.nodeName||(clearTimeout(b),b=setTimeout((function(){w.setIdle(!0)}),v.timeToIdleOutside))},F=function(){v.fullscreenEl&&!t.features.isOldAndroid&&(n||(n=w.getFullscreenAPI()),n?(t.bind(document,n.eventK,w.updateFullscreen),w.updateFullscreen(),t.addClass(e.template,"pswp--supports-fs")):t.removeClass(e.template,"pswp--supports-fs"))},L=function(){v.preloaderEl&&(Z(!0),d("beforeChange",(function(){clearTimeout(f),f=setTimeout((function(){e.currItem&&e.currItem.loading?(!e.allowProgressiveImg()||e.currItem.img&&!e.currItem.img.naturalWidth)&&Z(!1):Z(!0)}),v.loadingIndicatorDelay)})),d("imageLoadComplete",(function(t,n){e.currItem===n&&Z(!0)})))},Z=function(e){m!==e&&(T(p,"preloader--active",!e),m=e)},z=function(e){var n=e.vGap;if(C()){var a=v.barsSize;if(v.captionEl&&"auto"===a.bottom)if(r||((r=t.createEl("pswp__caption pswp__caption--fake")).appendChild(t.createEl("pswp__caption__center")),o.insertBefore(r,i),t.addClass(o,"pswp__ui--fit")),v.addCaptionHTMLFn(e,r,!0)){var s=r.clientHeight;n.bottom=parseInt(s,10)||44}else n.bottom=a.top;else n.bottom="auto"===a.bottom?0:a.bottom;n.top=a.top}else n.top=n.bottom=0}
1,U=function(){v.timeToIdle&&d("mouseUsed",(function(){t.bind(document,"mousemove",M),t.bind(document,"mouseout",N),g=setInterval((function(){2===++A&&w.setIdle(!0)}),v.timeToIdle/2)}))},H=function(){var e;d("onVerticalDrag",(function(e){O&&e<.95?w.hideControls():!O&&e>=.95&&w.showControls()})),d("onPinchClose",(function(t){O&&t<.9?(w.hideControls(),e=!0):e&&!O&&t>.9&&w.showControls()})),d("zoomGestureEnded",(function(){(e=!1)&&!O&&w.showControls()}))},B=[{name:"caption",option:"captionEl",onInit:function(e){i=e}},{name:"share-modal",option:"shareEl",onInit:function(e){l=e},onTap:function(){D()}},{name:"button--share",option:"shareEl",onInit:function(e){s=e},onTap:function(){D()}},{name:"button--zoom",option:"zoomEl",onTap:e.toggleDesktopZoom},{name:"counter",option:"counterEl",onInit:function(e){a=e}},{name:"button--close",option:"closeEl",onTap:e.close},{name:"button--arrow--left",option:"arrowEl",onTap:e.prev},{name:"button--arrow--right",option:"arrowEl",onTap:e.next},{name:"button--fs",option:"fullscreenEl",onTap:function(){n.isFullscreen()?n.exit():n.enter()}},{name:"preloader",option:"preloaderEl",onInit:function(e){p=e}}],K=function(){var e,n,i,r=function(o){if(o)for(var r=o.length,a=0;a<r;a++){e=o[a],n=e.className;for(var s=0;s<B.length;s++)i=B[s],n.indexOf("pswp__"+i.name)>-1&&(v[i.option]?(t.removeClass(e,"pswp__element--disabled"),i.onInit&&i.onInit(e)):t.addClass(e,"pswp__element--disabled"))}};r(o.children);var a=t.getChildByClass(o,"pswp__top-bar");a&&r(a.children)};w.init=function(){t.extend(e.options,j,!0),v=e.options,o=t.getChildByClass(e.scrollWrap,"pswp__ui"),d=e.listen,H(),d("beforeChange",w.update),d("doubleTap",(function(t){var n=e.currItem.initialZoomLevel;e.getZoomLevel()!==n?e.zoomTo(n,t,333):e.zoomTo(v.getDoubleTapZoom(!1,e.currItem),t,333)})),d("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)})),d("bindEvents",(function(){t.bind(o,"pswpTap click",I),t.bind(e.scrollWrap,"pswpTap",w.onGlobalTap),e.likelyTouchDevice||t.bind(e.scrollWrap,"mouseover",w.onMouseOver)})),d("unbindEvents",(function(){_||D(),g&&clearInterval(g),t.unbind(document,"mouseout",N),t.unbind(document,"mousemove",M),t.unbind(o,"pswpTap click",I),t.unbind(e.scrollWrap,"pswpTap",w.onGlobalTap),t.unbind(e.scrollWrap,"mouseover",w.onMouseOver),n&&(t.unbind(document,n.eventK,w.updateFullscreen),n.isFullscreen()&&(v.hideAnimationDuration=0,n.exit()),n=null)})),d("destroy",(function(){v.captionEl&&(r&&o.removeChild(r),t.removeClass(i,"pswp__caption--empty")),l&&(l.children[0].onclick=null),t.removeClass(o,"pswp__ui--over-close"),t.addClass(o,"pswp__ui--hidden"),w.setIdle(!1)})),v.showAnimationDuration||t.removeClass(o,"pswp__ui--hidden"),d("initialZoomIn",(function(){v.showAnimationDuration&&t.removeClass(o,"pswp__ui--hidden")})),d("initialZoomOut",(function(){t.addClass(o,"pswp__ui--hidden")})),d("parseVerticalMargin",z),K(),v.shareEl&&s&&l&&(_=!0),S(),U(),F(),L()},w.setIdle=function(e){u=e,T(o,"ui--idle",e)},w.update=function(){O&&e.currItem?(w.updateIndexIndicator(),v.captionEl&&(v.addCaptionHTMLFn(e.currItem,i),T(i,"caption--empty",!e.currItem.title)),y=!0):y=!1,_||D(),S()},w.updateFullscreen=function(o){o&&setTimeout((function(){e.setScrollOffset(0,t.getScrollY())}),50),t[(n.isFullscreen()?"add":"remove")+"Class"](e.template,"pswp--fs")},w.updateIndexIndicator=function(){v.counterEl&&(a.innerHTML=e.getCurrentIndex()+1+v.indexIndicatorSep+v.getNumItemsFn())},w.onGlobalTap=function(n){var o=(n=n||window.event).target||n.srcElement;if(!x)if(n.detail&&"mouse"===n.detail.pointerType){if(k(o))return void e.close();t.hasClass(o,"pswp__img")&&(1===e.getZoomLevel()&&e.getZoomLevel()<=e.currItem.fitRatio?v.clickToCloseNonZoomable&&e.close():e.toggleDesktopZoom(n.detail.releasePoint))}else if(v.tapToToggleControls&&(O?w.hideControls():w.showControls()),v.tapToClose&&(t.hasClass(o,"pswp__img")||k(o)))return void e.close()},w.onMouseOver=function(e){var t=(e=e||window.event).target||e.srcElement;T(o,"ui--over-close",k(t))},w.hideControls=function(){t.addClass(o,"pswp__ui--hidden"),O=!1},w.showControls=function(){O=!0,y||w.update(),t.removeClass(o,"pswp__ui--hidden")},w.supportsFullscreen=function(){var e=document;return!!(e.exitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen||e.msExitFullscreen)},w.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(c=v.closeOnScroll,v.closeOnScroll=!1,"webkitRequestFullscreen"!==this.enterK)return e.template[this.enterK]();e.template[this.enterK](Element.ALLOW_KEYBOARD_INPUT)},t.exit=function(){return v.closeOnScroll=c,document[this.exitK]()},t.isFullscreen=function(){return document[this.elementK]}),t}}})?o.call(t,n,t,e):o)||(e.exports=i)},hZuQ:function(e,t,n){"use strict";var o=n("nKUr"),i=n("o0o1"),r=n.n(i),a=n("HaE+"),s=n("1OyB"),l=n("vuIU"),c=n("JX7q"),u=n("Ji7U"),d=n("md7G"),p=n("foSv"),m=n("q1tI"),f=n.n(m),h=n("TOBs"),v=n("CafY"),x=n("UkKX"),g=n("+VEa"),b=n("JeI0"),w=n.n(b),y=n("QtkK"),O=n("sk+M"),_=n.n(O),j=n("FP2o"),I=n.n(j);function C(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Object(p.a)(e);if(t){var i=Object(p.a)(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return Object(d.a)(this,n)}}var T=function(e){Object(u.a)(n,e);var t=C(n);function n(e){var o;return Object(s.a)(this,n),(o=t.call(this,e)).updateGalleryItems=o.updateGalleryItems.bind(Object(c.a)(o)),o.initPhotoSwipeFromDOM=o.initPhotoSwipeFromDOM.bind(Object(c.a)(o)),o.wrapperRef=f.a.createRef(),o.pswpRef=f.a.createRef(),o}return Object(l.a)(n,[{key:"componentDidMount",value:function(){this.updateGalleryItems(),this.initPhotoSwipeFromDOM(".gallery")}},{key:"updateGalleryItems",value:function(){this.wrapperRef.current.querySelectorAll(".gallery").forEach((function(e){e.setAttribute("itemscope",""),e.setAttribute("itemtype","http://schema.org/ImageGallery");var t=e.querySelectorAll(".gallery-item"),n=[];t.forEach((function(t){var o=t.querySelector("a"),i=t.querySelector("img");o.setAttribute("itemprop","contentUrl"),i.setAttribute("itemprop","thumbnail");var r=document.createElement("figcaption");r.setAttribute("itemprop","caption description"),r.innerText="";var a=document.createElement("figure");a.setAttribute("itemprop","associatedMedia"),a.setAttribute("itemtype","http://schema.org/ImageObject"),a.setAttribute("itemscope",""),a.appendChild(o),a.appendChild(r),n.push(a),e.removeChild(t)})),e.innerHTML="",n.forEach((function(t){e.appendChild(t)}))}))}},{key:"initPhotoSwipeFromDOM",value:function(e){for(var t=this,n=function e(t,n){return t&&(n(t)?t:e(t.parentNode,n))},o=function(e){(e=e||window.event).preventDefault?e.preventDefault():e.returnValue=!1;var t=e.target||e.srcElement,o=n(t,(function(e){return e.tagName&&"FIGURE"===e.tagName.toUpperCase()}));if(o){for(var r,a=o.parentNode,s=o.parentNode.childNodes,l=s.length,c=0,u=0;u<l;u++)if(1===s[u].nodeType){if(s[u]===o){r=c;break}c++}return r>=0&&i(r,a),!1}},i=function(e,n,o,i){var r,a,s=t.pswpRef.current;if(a=function(e){for(var t,n,o,i,r=e.childNodes,a=r.length,s=[],l=0;l<a;l++)1===(t=r[l]).nodeType&&(o=(n=t.children[0]).getAttribute("data-size").split("x"),i={src:n.getAttribute("href"),w:parseInt(o[0],10),h:parseInt(o[1],10)},t.children.length>1&&(i.title=t.children[1].innerHTML),n.children.length>0&&(i.msrc=n.children[0].getAttribute("src")),i.el=t,s.push(i));return s}(n),r={galleryUID:n.getAttribute("data-pswp-uid"),getThumbBoundsFn:function(e){var t=a[e].el.getElementsByTagName("img")[0],n=window.pageYOffset||document.documentElement.scrollTop,o=t.getBoundingClientRect();return{x:o.left,y:o.top+n,w:o.width}}},i)if(r.galleryPIDs){for(var l=0;l<a.length;l++)if(a[l].pid===e){r.index=l;break}}else r.index=parseInt(e,10)-1;else r.index=parseInt(e,10);isNaN(r.index)||(o&&(r.showAnimationDuration=0),new _.a(s,I.a,a,r).init())},r=t.wrapperRef.current.querySelectorAll(e),a=0,s=r.length;a<s;a++)r[a].setAttribute("data-pswp-uid",a+1),r[a].onclick=o;var l=function(){var e=window.location.hash.substring(1),t={};if(e.length<5)return t;for(var n=e.split("&"),o=0;o<n.length;o++)if(n[o]){var i=n[o].split("=");i.length<2||(t[i[0]]=i[1])}return t.gid&&(t.gid=parseInt(t.gid,10)),t}();l.pid&&l.gid&&i(l.pid,r[l.gid-1],!0,!0)}},{key:"render",value:function(){var e=this.props.children;return Object(o.jsxs)("div",{ref:this.wrapperRef,children:[e,Object(o.jsxs)("div",{className:"pswp",tabIndex:-1,role:"dialog","aria-hidden":"true",ref:this.pswpRef,children:[Object(o.jsx)("div",{className:"pswp__bg"}),Object(o.jsxs)("div",{className:"pswp__scroll-wrap",children:[Object(o.jsxs)("div",{className:"pswp__container",children:[Object(o.jsx)("div",{className:"pswp__item"}),Object(o.jsx)("div",{className:"pswp__item"}),Object(o.jsx)("div",{className:"pswp__item"})]}),Object(o.jsxs)("div",{className:"pswp__ui pswp__ui--hidden",children:[Object(o.jsxs)("div",{className:"pswp__top-bar",children:[Object(o.jsx)("div",{className:"pswp__counter"}),Object(o.jsx)("button",{className:"pswp__button pswp__button--close",title:"Close (Esc)"}),Object(o.jsx)("button",{className:"pswp__button pswp__button--share",title:"Share"}),Object(o.jsx)("button",{className:"pswp__button pswp__button--fs",title:"Toggle fullscreen"}),Object(o.jsx)("button",{className:"pswp__button pswp__button--zoom",title:"Zoom in/out"}),Object(o.jsx)("div",{className:"pswp__preloader",children:Object(o.jsx)("div",{className:"pswp__preloader__icn",children:Object(o.jsx)("div",{className:"pswp__preloader__cut",children:Object(o.jsx)("div",{className:"pswp__preloader__donut"})})})})]}),Object(o.jsx)("div",{className:"pswp__share-modal pswp__share-modal--hidden pswp__single-tap",children:Object(o.jsx)("div",{className:"pswp__share-tooltip"})}),Object(o.jsx)("button",{className:"pswp__button pswp__button--arrow--left",title:"Previous (arrow left)"}),Object(o.jsx)("button",{className:"pswp__button pswp__button--arrow--right",title:"Next (arrow right)"}),Object(o.jsx)("div",{className:"pswp__caption",children:Object(o.jsx)("div",{className:"pswp__caption__center"})})]})]})]})]})}}]),n}(f.a.Component),S=n("f6jw"),E=function(e){return e.target.select()},D=function(e){var t=e.post;return t?Object(o.jsx)("div",{className:"share-bar",children:Object(o.jsxs)("div",{className:"row",children:[Object(o.jsx)("div",{className:"col col-lg-7"}),Object(o.jsx)("div",{className:"col col-lg-5",children:Object(o.jsx)("form",{className:"form-inline",children:Object(o.jsx)("div",{className:"form-group",children:Object(o.jsxs)("div",{className:"input-group",children:[Object(o.jsx)("div",{className:"input-group-addon",children:"Link"}),Object(o.jsx)("input",{type:"text",value:h.a.fullPostShortUrl(t.postId),id:"short_url",className:"form-control",readOnly:!0,onClick:E})]})})})})]})}):null},P=n("oUCk"),R=n("UUyv"),k=n("HzoQ"),A=n("obyI");function M(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Object(p.a)(e);if(t){var i=Object(p.a)(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return Object(d.a)(this,n)}}var N=function(e){Object(u.a)(n,e);var t=M(n);function n(e){var o;return Object(s.a)(this,n),(o=t.call(this,e)).state={advertisement:null},o}
1return Object(l.a)(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.advertisements,n=e.term_id,o=t.filter((function(e){return e.acf_exibir.categoriasRelacionadas&&e.acf_exibir.categoriasRelacionadas.map((function(e){return e.categoryId})).includes(n)})),i=o[Math.floor(Math.random()*o.length)];this.setState({advertisement:i})}},{key:"render",value:function(){var e=this.state.advertisement;return e?Object(o.jsxs)("div",{className:"block-anuncio block",children:[Object(o.jsx)("hr",{}),Object(o.jsx)("a",{href:e.acf_publicidade.link,className:"anuncio anuncio-remoto",target:"_blank",rel:"noopener noreferrer",children:Object(o.jsx)(R.LazyLoadImage,{placeholderSrc:"".concat(A.FRONTEND_BASE_PATH,"/images/placeholder-600x300.png"),src:k.a.categoryImageUrl(e),alt:e.tille,title:e.tille})})]}):null}}]),n}(f.a.Component),F=n("oTBa");function L(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Object(p.a)(e);if(t){var i=Object(p.a)(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return Object(d.a)(this,n)}}var Z=function(e){Object(u.a)(i,e);var t=L(i);function i(e){var n;return Object(s.a)(this,i),(n=t.call(this,e)).state={lastPosts:[]},n}return Object(l.a)(i,[{key:"componentDidMount",value:function(){this.loadLastPosts()}},{key:"loadLastPosts",value:function(){var e=Object(a.a)(r.a.mark((function e(){var t,o=this;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.e(7).then(n.t.bind(null,"vDqi",7));case 2:e.t0=2,t=e.sent.default[e.t0].forEach((function(e){t.get("".concat(A.FRONTEND_BASE_PATH,"/last_posts/").concat(e,".json")).then((function(e){return o.handleLastPostResponse(e)}))}));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"handleLastPostResponse",value:function(e){var t=this.state.lastPosts,n=e.data;t.push(n),this.setState({lastPosts:t})}},{key:"render",value:function(){var e=this.state.lastPosts;return e&&0!==e.length?Object(o.jsxs)("div",{children:[Object(o.jsx)("hr",{}),Object(o.jsx)("h4",{className:"page-subtitle",children:"\xdaLTIMAS NOT\xcdCIAS"}),Object(o.jsxs)("div",{className:"row",children:[e[0]&&Object(o.jsx)("div",{className:"col-md-4 col-sm-4 col-xs-6",children:Object(o.jsx)(F.a,{post:e[0]})}),e[1]&&Object(o.jsx)("div",{className:"col-md-4 col-sm-4 col-xs-6",children:Object(o.jsx)(F.a,{post:e[1]})}),e[2]&&Object(o.jsx)("div",{className:"col-md-4 col-sm-4 col-xs-6 hidden-xs",children:Object(o.jsx)(F.a,{post:e[2]})})]})]}):null}}]),i}(f.a.Component);function z(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Object(p.a)(e);if(t){var i=Object(p.a)(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return Object(d.a)(this,n)}}var U=function(e){Object(u.a)(i,e);var t=z(i);function i(e){var n;return Object(s.a)(this,i),(n=t.call(this,e)).state={post:null,nextPostPage:e.nextPostPage},n}return Object(l.a)(i,[{key:"componentDidMount",value:function(){this.loadNextPost()}},{key:"loadNextPost",value:function(){var e=Object(a.a)(r.a.mark((function e(){var t,o,i,a,s,l=this;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.e(7).then(n.t.bind(null,"vDqi",7));case 2:t=e.sent.default,o=this.props,i=o.currentPost,a=o.previousPostsIds,s=this.state.nextPostPage,t.get("".concat(A.FRONTEND_BASE_PATH,"/last_posts/").concat(s,".json")).then((function(e){l.setState({nextPostPage:s+1});var t=e.data;i.postId===t.postId||a&&a.includes(t.postId)?l.loadNextPost():l.setState({post:t})}));case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"render",value:function(){var e=this.props,t=e.onShowPost,n=e.advertisements,i=e.previousPostsIds,r=this.state,a=r.post,s=r.nextPostPage;return a?Object(o.jsxs)(o.Fragment,{children:[Object(o.jsx)("hr",{}),Object(o.jsx)(K,{post:a,onShowPost:t,previousPostsIds:i,nextPostPage:s,advertisements:n})]}):Object(o.jsxs)(o.Fragment,{children:[Object(o.jsx)("hr",{}),Object(o.jsx)("strong",{children:"carregando pr\xf3xima not\xedcia..."})]})}}]),i}(f.a.Component),H=n("ws9V");function B(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Object(p.a)(e);if(t){var i=Object(p.a)(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return Object(d.a)(this,n)}}var K=function(e){Object(u.a)(n,e);var t=B(n);function n(e){var o;return Object(s.a)(this,n),(o=t.call(this,e)).state={lastPosts:[]},o.titleRef=f.a.createRef(),o.onScroll=o.onScroll.bind(Object(c.a)(o)),o}
1return Object(l.a)(n,[{key:"componentDidMount",value:function(){this.props.onShowPost&&window.addEventListener("scroll",this.onScroll)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("scroll",this.onScroll)}},{key:"onScroll",value:function(){var e=this.props,t=e.post,n=e.onShowPost;this.isInViewport(this.titleRef.current)&&n(t)}},{key:"isInViewport",value:function(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}},{key:"render",value:function(){var e,t,n,i=this.props,r=i.post,a=i.advertisements,s=i.onShowPost,l=i.nextPostPage,c=i.previousPostsIds,u=i.loadLastPosts;return l||(l=0),c||(c=[]),c.push(r.postId),Object(o.jsxs)(o.Fragment,{children:[Object(o.jsxs)("div",{className:"single post-wrap",children:[Object(o.jsxs)("div",{className:"content",children:[Object(o.jsx)("small",{className:"post-data",children:g.a.formatDate(r.date)}),Object(o.jsx)("h1",{className:"post-title",ref:this.titleRef,children:r.title}),Object(o.jsx)("h4",{className:"subtitle",children:H.a.removeHtml(r.excerpt)}),Object(o.jsx)(T,{children:Object(o.jsx)("div",{dangerouslySetInnerHTML:{__html:r.content}})})]}),r.acf_post&&r.acf_post.formContato&&Object(o.jsx)(S.a,{postId:r.postId}),Object(o.jsx)(D,{post:r}),u&&Object(o.jsx)(Z,{}),(null===(e=r.acf_categoria)||void 0===e||null===(t=e.categoriaPrincipal)||void 0===t?void 0:t.categoryId)&&a&&!(null!==(n=r.acf_post)&&void 0!==n&&n.ocultarPublicidades)&&Object(o.jsx)(N,{advertisements:a,term_id:r.acf_categoria.categoriaPrincipal.categoryId}),Object(o.jsx)("hr",{}),Object(o.jsx)(P.a,{post:r}),Object(o.jsx)("div",{className:"visible-xs",style:{marginTop:20},children:Object(o.jsx)(y.a,{mini:!0})})]}),Object(o.jsx)(w.a,{offset:1e3,children:Object(o.jsx)(U,{previousPostsIds:c,currentPost:r,nextPostPage:l,onShowPost:s,advertisements:a})})]})}}]),n}(f.a.Component);function W(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Object(p.a)(e);if(t){var i=Object(p.a)(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return Object(d.a)(this,n)}}var G=function(e){Object(u.a)(i,e);var t=W(i);function i(e){var n;return Object(s.a)(this,i),(n=t.call(this,e)).state={seoPost:e.post,advertisements:null},n.onShowPost=n.onShowPost.bind(Object(c.a)(n)),n}return Object(l.a)(i,[{key:"componentDidMount",value:function(){this.loadAdvertisements()}},{key:"onShowPost",value:function(e){if(this.state.seoPost.postId!==e.postId){this.setState({seoPost:e});var t="".concat(A.FRONTEND_BASE_PATH).concat(h.a.postUrl(e.slug));window.history.pushState("",e.title,t)}}},{key:"loadAdvertisements",value:function(){var e=Object(a.a)(r.a.mark((function e(){var t=this;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.e(7).then(n.t.bind(null,"vDqi",7));case 2:e.sent.default.get("".concat(A.FRONTEND_BASE_PATH,"/metadata/banners.json")).then((function(e){t.setState({advertisements:e.data})}));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"render",value:function(){var e,t=this.props,n=t.post,i=t.mainMenu,r=this.state,a=r.seoPost,s=r.advertisements,l=!(null!==(e=n.acf_post)&&void 0!==e&&e.ocultarPublicidades);return Object(o.jsxs)(v.a,{show_guia:A.SHOW_GUIA,show_sidebar:l,hide_sidebars_mobile:!0,mainMenu:i,children:[Object(o.jsx)(x.a,{post:a}),Object(o.jsx)(K,{post:n,advertisements:s,onShowPost:this.onShowPost,loadLastPosts:!1})]})}}]),i}(f.a.Component);t.a=G},"sk+M":function(e,t,n){var o,i;void 0===(i="function"===typeof(o=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 r=0;r<t.length;r++)t[r]&&e[i](t[r],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=!!window.PointerEvent||navigator.msPointerEnabled,!n.pointerEvent){var o=navigator.userAgent;if(/iP(hone|od)/.test(navigator.platform)){var r=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);r&&r.length>0&&(r=parseInt(r[1],10))>=1&&r<8&&(n.isOldIOSPhone=!0)}var a=o.match(/Android\s([0-9\.]*)/),s=a?a[1]:0;(s=parseFloat(s))>=1&&(s<4.4&&(n.isOldAndroid=!0),n.androidVersion=s),n.isMobileOpera=/opera mini|o
1pera mobi/i.test(o)}for(var l,c,u=["transform","perspective","animationName"],d=["","webkit","Moz","ms","O"],p=0;p<4;p++){t=d[p];for(var m=0;m<3;m++)l=u[m],c=t+(t?l.charAt(0).toUpperCase()+l.slice(1):l),!n[l]&&c in e&&(n[l]=c);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,r=(o?"detach":"attach")+"Event",a=function(){n.handleEvent.call(n)},s=0;s<t.length;s++)if(i=t[s])if("object"===typeof n&&n.handleEvent){if(o){if(!n["oldIE"+i])return!1}else n["oldIE"+i]=a;e[r]("on"+i,n["oldIE"+i])}else e[r]("on"+i,n)});var r=this,a=25,s=3,l={allowPanToNext:!0,spacing:.12,bgOpacity:1,mouseUsed:!1,loop:!0,pinchToClose:!0,closeOnScroll:!0,closeOnVerticalDrag:!0,verticalDragRange:.75,hideAnimationDuration:333,showAnimationDuration:333,showHideOpacity:!1,focus:!0,escKey:!0,arrowKeys:!0,mainScrollEndFriction:.35,panEndFriction:.35,isClickableElement:function(e){return"A"===e.tagName},getDoubleTapZoom:function(e,t){return e||t.initialZoomLevel<.7?1:1.33},maxSpreadZoom:1.33,modal:!0,scaleMode:"fit"};i.extend(l,o);var c,u,d,p,m,f,h,v,x,g,b,w,y,O,_,j,I,C,T,S,E,D,P,R,k,A,M,N,F,L,Z,z,U,H,B,K,W,G,q,Y,V,X,J,Q,$,ee,te,ne,oe,ie,re,ae,se,le,ce,ue,de=function(){return{x:0,y:0}},pe=de(),me=de(),fe=de(),he={},ve=0,xe={},ge=de(),be=0,we=!0,ye=[],Oe={},_e=!1,je=function(e,t){i.extend(r,t.publicMethods),ye.push(e)},Ie=function(e){var t=$t();return e>t-1?e-t:e<0?t+e:e},Ce={},Te=function(e,t){return Ce[e]||(Ce[e]=[]),Ce[e].push(t)},Se=function(e){var t=Ce[e];if(t){var n=Array.prototype.slice.call(arguments);n.shift();for(var o=0;o<t.length;o++)t[o].apply(r,n)}},Ee=function(){return(new Date).getTime()},De=function(e){le=e,r.bg.style.opacity=e*l.bgOpacity},Pe=function(e,t,n,o,i){(!_e||i&&i!==r.currItem)&&(o/=i?i.fitRatio:r.currItem.fitRatio),e[D]=w+t+"px, "+n+"px"+y+" scale("+o+")"},Re=function(e){oe&&(e&&(g>r.currItem.fitRatio?_e||(dn(r.currItem,!1,!0),_e=!0):_e&&(dn(r.currItem),_e=!1)),Pe(oe,fe.x,fe.y,g))},ke=function(e){e.container&&Pe(e.container.style,e.initialPosition.x,e.initialPosition.y,e.initialZoomLevel,e)},Ae=function(e,t){t[D]=w+e+"px, 0px"+y},Me=function(e,t){if(!l.loop&&t){var n=p+(ge.x*ve-e)/ge.x,o=Math.round(e-gt.x);(n<0&&o>0||n>=$t()-1&&o<0)&&(e=gt.x+o*l.mainScrollEndFriction)}gt.x=e,Ae(e,m)},Ne=function(e,t){var n=bt[e]-xe[e];return me[e]+pe[e]+n-n*(t/b)},Fe=function(e,t){e.x=t.x,e.y=t.y,t.id&&(e.id=t.id)},Le=function(e){e.x=Math.round(e.x),e.y=Math.round(e.y)},Ze=null,ze=function(){Ze&&(i.unbind(document,"mousemove",ze),i.addClass(e,"pswp--has_mouse"),l.mouseUsed=!0,Se("mouseUsed")),Ze=setTimeout((function(){Ze=null}),100)},Ue=function(){i.bind(document,"keydown",r),Z.transform&&i.bind(r.scrollWrap,"click",r),l.mouseUsed||i.bind(document,"mousemove",ze),i.bind(window,"resize scroll orientationchange",r),Se("bindEvents")},He=function(){i.unbind(window,"resize scroll orientationchange",r),i.unbind(window,"scroll",x.scroll),i.unbind(document,"keydown",r),i.unbind(document,"mousemove",ze),Z.transform&&i.unbind(r.scrollWrap,"click",r),q&&i.unbind(window,h,r),clearTimeout(z),Se("unbindEvents")},Be=function(e,t){var n=sn(r.currItem,he,e);return t&&(ne=n),n},Ke=function(e){return e||(e=r.currItem),e.initialZoomLevel},We=function(e){return e||(e=r.currItem),e.w>0?l.maxSpreadZoom:1},Ge=function(e,t,n,o){return o===r.currItem.initialZoomLevel?(n[e]=r.currItem.initialPosition[e],!0):(n[e]=Ne(e,o),n[e]>t.min[e]?(n[e]=t.min[e],!0):n[e]<t.max[e]&&(n[e]=t.max[e],!0))},qe=function(){if(D){var t=Z.perspective&&!R;return w="translate"+(t?"3d(":"("),void(y=Z.perspective?", 0px)":")")}D="left",i.addClass(e,"pswp--ie"),Ae=function(e,t){t.left=e+"px"},ke=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"}
1,Re=function(){if(oe){var e=oe,t=r.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=fe.x+"px",e.top=fe.y+"px"}}},Ye=function(e){var t="";l.escKey&&27===e.keyCode?t="close":l.arrowKeys&&(37===e.keyCode?t="prev":39===e.keyCode&&(t="next")),t&&(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey||(e.preventDefault?e.preventDefault():e.returnValue=!1,r[t]()))},Ve=function(e){e&&(X||V||ie||W)&&(e.preventDefault(),e.stopPropagation())},Xe=function(){r.setScrollOffset(0,i.getScrollY())},Je={},Qe=0,$e=function(e){Je[e]&&(Je[e].raf&&A(Je[e].raf),Qe--,delete Je[e])},et=function(e){Je[e]&&$e(e),Je[e]||(Qe++,Je[e]={})},tt=function(){for(var e in Je)Je.hasOwnProperty(e)&&$e(e)},nt=function(e,t,n,o,i,r,a){var s,l=Ee();et(e);var c=function(){if(Je[e]){if((s=Ee()-l)>=o)return $e(e),r(n),void(a&&a());r((n-t)*i(s/o)+t),Je[e].raf=k(c)}};c()},ot={shout:Se,listen:Te,viewportSize:he,options:l,isMainScrollAnimating:function(){return ie},getZoomLevel:function(){return g},getCurrentIndex:function(){return p},isDragging:function(){return q},isZooming:function(){return ee},setScrollOffset:function(e,t){xe.x=e,L=xe.y=t,Se("updateScrollOffset",xe)},applyZoomPan:function(e,t,n,o){fe.x=t,fe.y=n,g=e,Re(o)},init:function(){if(!c&&!u){var n;r.framework=i,r.template=e,r.bg=i.getChildByClass(e,"pswp__bg"),M=e.className,c=!0,Z=i.detectFeatures(),k=Z.raf,A=Z.caf,D=Z.transform,F=Z.oldIE,r.scrollWrap=i.getChildByClass(e,"pswp__scroll-wrap"),r.container=i.getChildByClass(r.scrollWrap,"pswp__container"),m=r.container.style,r.itemHolders=j=[{el:r.container.children[0],wrap:0,index:-1},{el:r.container.children[1],wrap:0,index:-1},{el:r.container.children[2],wrap:0,index:-1}],j[0].el.style.display=j[2].el.style.display="none",qe(),x={resize:r.updateSize,orientationchange:function(){clearTimeout(z),z=setTimeout((function(){he.x!==r.scrollWrap.clientWidth&&r.updateSize()}),500)},scroll:Xe,keydown:Ye,click:Ve};var o=Z.isOldIOSPhone||Z.isOldAndroid||Z.isMobileOpera;for(Z.animationName&&Z.transform&&!o||(l.showAnimationDuration=l.hideAnimationDuration=0),n=0;n<ye.length;n++)r["init"+ye[n]]();t&&(r.ui=new t(r,i)).init(),Se("firstUpdate"),p=p||l.index||0,(isNaN(p)||p<0||p>=$t())&&(p=0),r.currItem=Qt(p),(Z.isOldIOSPhone||Z.isOldAndroid)&&(we=!1),e.setAttribute("aria-hidden","false"),l.modal&&(we?e.style.position="fixed":(e.style.position="absolute",e.style.top=i.getScrollY()+"px")),void 0===L&&(Se("initialLayout"),L=N=i.get
1ScrollY());var a="pswp--open ";for(l.mainClass&&(a+=l.mainClass+" "),l.showHideOpacity&&(a+="pswp--animate_opacity "),a+=R?"pswp--touch":"pswp--notouch",a+=Z.animationName?" pswp--css_animation":"",a+=Z.svg?" pswp--svg":"",i.addClass(e,a),r.updateSize(),f=-1,be=null,n=0;n<s;n++)Ae((n+f)*ge.x,j[n].el.style);F||i.bind(r.scrollWrap,v,r),Te("initialZoomInEnd",(function(){r.setContent(j[0],p-1),r.setContent(j[2],p+1),j[0].el.style.display=j[2].el.style.display="block",l.focus&&e.focus(),Ue()})),r.setContent(j[1],p),r.updateCurrItem(),Se("afterInit"),we||(O=setInterval((function(){Qe||q||ee||g!==r.currItem.initialZoomLevel||r.updateSize()}),1e3)),i.addClass(e,"pswp--visible")}},close:function(){c&&(c=!1,u=!0,Se("close"),He(),en(r.currItem,null,!0,r.destroy))},destroy:function(){Se("destroy"),Yt&&clearTimeout(Yt),e.setAttribute("aria-hidden","true"),e.className=M,O&&clearInterval(O),i.unbind(r.scrollWrap,v,r),i.unbind(window,"scroll",r),jt(),tt(),Ce=null},panTo:function(e,t,n){n||(e>ne.min.x?e=ne.min.x:e<ne.max.x&&(e=ne.max.x),t>ne.min.y?t=ne.min.y:t<ne.max.y&&(t=ne.max.y)),fe.x=e,fe.y=t,Re()},handleEvent:function(e){e=e||window.event,x[e.type]&&x[e.type](e)},goTo:function(e){var t=(e=Ie(e))-p;be=t,p=e,r.currItem=Qt(p),ve-=t,Me(ge.x*ve),tt(),ie=!1,r.updateCurrItem()},next:function(){r.goTo(p+1)},prev:function(){r.goTo(p-1)},updateCurrZoomItem:function(e){if(e&&Se("beforeChange",0),j[1].el.children.length){var t=j[1].el.children[0];oe=i.hasClass(t,"pswp__zoom-wrap")?t.style:null}else oe=null;ne=r.currItem.bounds,b=g=r.currItem.initialZoomLevel,fe.x=ne.center.x,fe.y=ne.center.y,e&&Se("afterChange")},invalidateCurrItems:function(){_=!0;for(var e=0;e<s;e++)j[e].item&&(j[e].item.needsUpdate=!0)},updateCurrItem:function(e){if(0!==be){var t,n=Math.abs(be);if(!(e&&n<2)){r.currItem=Qt(p),_e=!1,Se("beforeChange",be),n>=s&&(f+=be+(be>0?-s:s),n=s);for(var o=0;o<n;o++)be>0?(t=j.shift(),j[s-1]=t,f++,Ae((f+2)*ge.x,t.el.style),r.setContent(t,p-n+o+1+1)):(t=j.pop(),j.unshift(t),f--,Ae(f*ge.x,t.el.style),r.setContent(t,p+n-o-1-1));if(oe&&1===Math.abs(be)){var i=Qt(I);i.initialZoomLevel!==g&&(sn(i,he),dn(i),ke(i))}be=0,r.updateCurrZoomItem(),I=p,Se("afterChange")}}},updateSize:function(t){if(!we&&l.modal){var n=i.getScrollY();if(L!==n&&(e.style.top=n+"px",L=n),!t&&Oe.x===window.innerWidth&&Oe.y===window.innerHeight)return;Oe.x=window.innerWidth,Oe.y=window.innerHeight,e.style.height=Oe.y+"px"}if(he.x=r.scrollWrap.clientWidth,he.y=r.scrollWrap.clientHeight,Xe(),ge.x=he.x+Math.round(he.x*l.spacing),ge.y=he.y,Me(ge.x*ve),Se("beforeResize"),void 0!==f){for(var o,a,c,u=0;u<s;u++)o=j[u],Ae((u+f)*ge.x,o.el.style),c=p+u-1,l.loop&&$t()>2&&(c=Ie(c)),(a=Qt(c))&&(_||a.needsUpdate||!a.bounds)?(r.cleanSlide(a),r.setContent(o,c),1===u&&(r.currItem=a,r.updateCurrZoomItem(!0)),a.needsUpdate=!1):-1===o.index&&c>=0&&r.setContent(o,c),a&&a.container&&(sn(a,he),dn(a),ke(a));_=!1}b=g=r.currItem.initialZoomLevel,(ne=r.currItem.bounds)&&(fe.x=ne.center.x,fe.y=ne.center.y,Re(!0)),Se("resize")},zoomTo:function(e,t,n,o,r){t&&(b=g,bt.x=Math.abs(t.x)-fe.x,bt.y=Math.abs(t.y)-fe.y,Fe(me,fe));var a=Be(e,!1),s={};Ge("x",a,s,e),Ge("y",a,s,e);var l=g,c={x:fe.x,y:fe.y};Le(s);var u=function(t){1===t?(g=e,fe.x=s.x,fe.y=s.y):(g=(e-l)*t+l,fe.x=(s.x-c.x)*t+c.x,fe.y=(s.y-c.y)*t+c.y),r&&r(t),Re(1===t)};n?nt("customZoomTo",0,1,n,o||i.easing.sine.inOut,u):u(1)}},it=30,rt=10,at={},st={},lt={},ct={},ut={},dt=[],pt={},mt=[],ft={},ht=0,vt=de(),xt=0,gt=de(),bt=de(),wt=de(),yt=function(e,t){return e.x===t.x&&e.y===t.y},Ot=function(e,t){return Math.abs(e.x-t.x)<a&&Math.abs(e.y-t.y)<a},_t=function(e,t){return ft.x=Math.abs(e.x-t.x),ft.y=Math.abs(e.y-t.y),Math.sqrt(ft.x*ft.x+ft.y*ft.y)},jt=function(){J&&(A(J),J=null)},It=function(){q&&(J=k(It),Ut())},Ct=function(){return!("fit"===l.scaleMode&&g===r.currItem.initialZoomLevel)},Tt=function(e,t){return!(!e||e===document)&&!(e.getAttribute("class")&&e.getAttribute("class").indexOf("pswp__scroll-wrap")>-1)&&(t(e)?e:Tt(e.parentNode,t))},St={},Et=function(e,t){return St.prevent=!Tt(e.target,l.isClickableElement),Se("preventDragEvent",e,t,St),St.prevent},Dt=function(e,t){return t.x=e.pageX,t.y=e.pageY,t.id=e.identifier,t},Pt=function(e,t,n){n.x=.5*(e.x+t.x),n.y=.5*(e.y+t.y)},Rt=function(e,t,n){if(e-H>50){var o=mt.length>2?mt.shift():{};o.x=t,o.y=n,mt.push(o),H=e}},kt=function(){var e=fe.y-r.currItem.initialPosition.y;return 1-Math.abs(e/(he.y/2))},At={},Mt={},Nt=[],Ft=function(e){for(;Nt.length>0;)Nt.pop();return P?(ue=0,dt.forEach((function(e){0===ue?Nt[0]=e:1===ue&&(Nt[1]=e),ue++}))):e.type.indexOf("touch")>-1?e.touches&&e.touches.length>0&&(Nt[0]=Dt(e.touches[0],At),e.touches.length>1&&(Nt[1]=Dt(e.touches[1],Mt))):(At.x=e.pageX,At.y=e.pageY,At.id="",Nt[0]=At),Nt},Lt=function(e,t){var n,o,i,a,s=fe[e]+t[e],c=t[e]>0,u=gt.x+t.x,d=gt.x-pt.x;if(n=s>ne.min[e]||s<ne.max[e]?l.panEndFriction:1,s=fe[e]+t[e]*n,(l.allowPanToNext||g===r.currItem.initialZoomLevel)&&(oe?"h"!==re||"x"!==e||V||(c?(s>ne.min[e]&&(n=l.panEndFriction,ne.min[e],o=ne.min[e]-me[e]),(o<=0||d<0)&&$t()>1?(a=u,d<0&&u>pt.x&&(a=pt.x)):ne.min.x!==ne.max.x&&(i=s)):(s<ne.max[e]&&(n=l.panEndFriction,ne.max[e],o=me[e]-ne.max[e]),(o<=0||d>0)&&$t()>1?(a=u,d>0&&u<pt.x&&(a=pt.x)):ne.min.x!==ne.max.x&&(i=s))):a=u,"x"===e))return void 0!==a&&(Me(a,!0),Q=a!==pt.x),ne.min.x!==ne.max.x&&(void 0!==i?fe.x=i:Q||
1(fe.x+=t.x*n)),void 0!==a;ie||Q||g>r.currItem.fitRatio&&(fe[e]+=t[e]*n)},Zt=function(e){if(!("mousedown"===e.type&&e.button>0))if(Jt)e.preventDefault();else if(!G||"mousedown"!==e.type){if(Et(e,!0)&&e.preventDefault(),Se("pointerDown"),P){var t=i.arraySearch(dt,e.pointerId,"id");t<0&&(t=dt.length),dt[t]={x:e.pageX,y:e.pageY,id:e.pointerId}}var n=Ft(e),o=n.length;$=null,tt(),q&&1!==o||(q=ae=!0,i.bind(window,h,r),K=ce=se=W=Q=X=Y=V=!1,re=null,Se("firstTouchStart",n),Fe(me,fe),pe.x=pe.y=0,Fe(ct,n[0]),Fe(ut,ct),pt.x=ge.x*ve,mt=[{x:ct.x,y:ct.y}],H=U=Ee(),Be(g,!0),jt(),It()),!ee&&o>1&&!ie&&!Q&&(b=g,V=!1,ee=Y=!0,pe.y=pe.x=0,Fe(me,fe),Fe(at,n[0]),Fe(st,n[1]),Pt(at,st,wt),bt.x=Math.abs(wt.x)-fe.x,bt.y=Math.abs(wt.y)-fe.y,te=_t(at,st))}},zt=function(e){if(e.preventDefault(),P){var t=i.arraySearch(dt,e.pointerId,"id");if(t>-1){var n=dt[t];n.x=e.pageX,n.y=e.pageY}}if(q){var o=Ft(e);if(re||X||ee)$=o;else if(gt.x!==ge.x*ve)re="h";else{var r=Math.abs(o[0].x-ct.x)-Math.abs(o[0].y-ct.y);Math.abs(r)>=rt&&(re=r>0?"h":"v",$=o)}}},Ut=function(){if($){var e=$.length;if(0!==e)if(Fe(at,$[0]),lt.x=at.x-ct.x,lt.y=at.y-ct.y,ee&&e>1){if(ct.x=at.x,ct.y=at.y,!lt.x&&!lt.y&&yt($[1],st))return;Fe(st,$[1]),V||(V=!0,Se("zoomGestureStarted"));var t=_t(at,st),n=Gt(t);n>r.currItem.initialZoomLevel+r.currItem.initialZoomLevel/15&&(ce=!0);var o=1,i=Ke(),a=We();if(n<i)if(l.pinchToClose&&!ce&&b<=r.currItem.initialZoomLevel){var s=1-(i-n)/(i/1.2);De(s),Se("onPinchClose",s),se=!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),Pt(at,st,vt),pe.x+=vt.x-wt.x,pe.y+=vt.y-wt.y,Fe(wt,vt),fe.x=Ne("x",n),fe.y=Ne("y",n),K=n>g,g=n,Re()}else{if(!re)return;if(ae&&(ae=!1,Math.abs(lt.x)>=rt&&(lt.x-=$[0].x-ut.x),Math.abs(lt.y)>=rt&&(lt.y-=$[0].y-ut.y)),ct.x=at.x,ct.y=at.y,0===lt.x&&0===lt.y)return;if("v"===re&&l.closeOnVerticalDrag&&!Ct()){pe.y+=lt.y,fe.y+=lt.y;var c=kt();return W=!0,Se("onVerticalDrag",c),De(c),void Re()}Rt(Ee(),at.x,at.y),X=!0,ne=r.currItem.bounds,Lt("x",lt)||(Lt("y",lt),Le(fe),Re())}}},Ht=function(e){if(Z.isOldAndroid){if(G&&"mouseup"===e.type)return;e.type.indexOf("touch")>-1&&(clearTimeout(G),G=setTimeout((function(){G=0}),600))}var t;if(Se("pointerUp"),Et(e,!1)&&e.preventDefault(),P){var n=i.arraySearch(dt,e.pointerId,"id");if(n>-1)if(t=dt.splice(n,1)[0],navigator.msPointerEnabled){var o={4:"mouse",2:"touch",3:"pen"};t.type=o[e.pointerType],t.type||(t.type=e.pointerType||"mouse")}else t.type=e.pointerType||"mouse"}var a,s=Ft(e),c=s.length;if("mouseup"===e.type&&(c=0),2===c)return $=null,!0;1===c&&Fe(ut,s[0]),0!==c||re||ie||(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"})),Se("touchRelease",e,t));var u=-1;if(0===c&&(q=!1,i.unbind(window,h,r),jt(),ee?u=0:-1!==xt&&(u=Ee()-xt)),xt=1===c?Ee():-1,a=-1!==u&&u<150?"zoom":"swipe",ee&&c<2&&(ee=!1,1===c&&(a="zoomPointerUp"),Se("zoomGestureEnded")),$=null,X||V||ie||W)if(tt(),B||(B=Bt()),B.calculateSwipeSpeed("x"),W)if(kt()<l.verticalDragRange)r.close();else{var d=fe.y,p=le;nt("verticalDrag",0,1,300,i.easing.cubic.out,(function(e){fe.y=(r.currItem.initialPosition.y-d)*e+d,De((1-p)*e+p),Re()})),Se("onVerticalDrag",1)}else{if((Q||ie)&&0===c){if(Wt(a,B))return;a="zoomPointerUp"}ie||("swipe"===a?!Q&&g>r.currItem.fitRatio&&Kt(B):qt())}},Bt=function(){var e,t,n={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{},backAnimDestination:{},backAnimStarted:{},calculateSwipeSpeed:function(o){mt.length>1?(e=Ee()-H+50,t=mt[mt.length-2][o]):(e=Ee()-U,t=ut[o]),n.lastFlickOffset[o]=ct[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]||(fe[e]>ne.min[e]?n.backAnimDestination[e]=ne.min[e]:fe[e]<ne.max[e]&&(n.backAnimDestination[e]=ne.max[e]),void 0!==n.backA
1nimDestination[e]&&(n.slowDownRatio[e]=.7,n.slowDownRatioReverse[e]=1-n.slowDownRatio[e],n.speedDecelerationRatioAbs[e]<.05&&(n.lastFlickSpeed[e]=0,n.backAnimStarted[e]=!0,nt("bounceZoomPan"+e,fe[e],n.backAnimDestination[e],t||300,i.easing.sine.out,(function(t){fe[e]=t,Re()})))))},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,fe[e]+=n.distanceOffset[e])},panAnimLoop:function(){if(Je.zoomPan&&(Je.zoomPan.raf=k(n.panAnimLoop),n.now=Ee(),n.timeDiff=n.now-n.lastNow,n.lastNow=n.now,n.calculateAnimOffset("x"),n.calculateAnimOffset("y"),Re(),n.calculateOverBoundsAnimOffset("x"),n.calculateOverBoundsAnimOffset("y"),n.speedDecelerationRatioAbs.x<.05&&n.speedDecelerationRatioAbs.y<.05))return fe.x=Math.round(fe.x),fe.y=Math.round(fe.y),Re(),void $e("zoomPan")}};return n},Kt=function(e){if(e.calculateSwipeSpeed("y"),ne=r.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;et("zoomPan"),e.lastNow=Ee(),e.panAnimLoop()},Wt=function(e,t){var n,o,a;if(ie||(ht=p),"swipe"===e){var s=ct.x-ut.x,c=t.lastFlickDist.x<10;s>it&&(c||t.lastFlickOffset.x>20)?o=-1:s<-it&&(c||t.lastFlickOffset.x<-20)&&(o=1)}o&&((p+=o)<0?(p=l.loop?$t()-1:0,a=!0):p>=$t()&&(p=l.loop?0:$t()-1,a=!0),a&&!l.loop||(be+=o,ve-=o,n=!0));var u,d=ge.x*ve,m=Math.abs(d-gt.x);return n||d>gt.x===t.lastFlickSpeed.x>0?(u=Math.abs(t.lastFlickSpeed.x)>0?m/Math.abs(t.lastFlickSpeed.x):333,u=Math.min(u,400),u=Math.max(u,250)):u=333,ht===p&&(n=!1),ie=!0,Se("mainScrollAnimStart"),nt("mainScroll",gt.x,d,u,i.easing.cubic.out,Me,(function(){tt(),ie=!1,ht=-1,(n||ht!==p)&&r.updateCurrItem(),Se("mainScrollAnimComplete")})),n&&r.updateCurrItem(!0),n},Gt=function(e){return 1/te*e*b},qt=function(){var e=g,t=Ke(),n=We();g<t?e=t:g>n&&(e=n);var o,a=1,s=le;return se&&!K&&!ce&&g<t?(r.close(),!0):(se&&(o=function(e){De((a-s)*e+s)}),r.zoomTo(e,0,200,i.easing.cubic.out,o),!0)};je("Gestures",{publicMethods:{initGestures:function(){var e=function(e,t,n,o,i){C=e+t,T=e+n,S=e+o,E=i?e+i:""};(P=Z.pointerEvent)&&Z.touch&&(Z.touch=!1),P?navigator.msPointerEnabled?e("MSPointer","Down","Move","Up","Cancel"):e("pointer","down","move","up","cancel"):Z.touch?(e("touch","start","move","end","cancel"),R=!0):e("mouse","down","move","up"),h=T+" "+S+" "+E,v=C,P&&!R&&(R=navigator.maxTouchPoints>1||navigator.msMaxTouchPoints>1),r.likelyTouchDevice=R,x[C]=Zt,x[T]=zt,x[S]=Ht,E&&(x[E]=x[S]),Z.touch&&(v+=" mousedown",h+=" mousemove mouseup",x.mousedown=x[C],x.mousemove=x[T],x.mouseup=x[S]),R||(l.allowPanToNext=!1)}}});var Yt,Vt,Xt,Jt,Qt,$t,en=function(t,n,o,a){var s;Yt&&clearTimeout(Yt),Jt=!0,Xt=!0,t.initialLayout?(s=t.initialLayout,t.initialLayout=null):s=l.getThumbBoundsFn&&l.getThumbBoundsFn(p);var c=o?l.hideAnimationDuration:l.showAnimationDuration,u=function(){$e("initialZoom"),o?(r.template.removeAttribute("style"),r.bg.removeAttribute("style")):(De(1),n&&(n.style.display="block"),i.addClass(e,"pswp--animated-in"),Se("initialZoom"+(o?"OutEnd":"InEnd"))),a&&a(),Jt=!1};if(!c||!s||void 0===s.x)return Se("initialZoom"+(o?"Out":"In")),g=t.initialZoomLevel,Fe(fe,t.initialPosition),Re(),e.style.opacity=o?0:1,De(1),void(c?setTimeout((function(){u()}),c):u());!function(){var n=d,a=!r.currItem.src||r.currItem.loadError||l.showHideOpacity;t.miniImg&&(t.miniImg.style.webkitBackfaceVisibility="hidden"),o||(g=s.w/t.w,fe.x=s.x,fe.y=s.y-N,r[a?"template":"bg"].style.opacity=.001,Re()),et("initialZoom"),o&&!n&&i.removeClass(e,"pswp--animated-in"),a&&(o?i[(n?"remove":"add")+"Class"](e,"pswp--animate_opacity"):setTimeout((function(){i.addClass(e,"pswp--animate_opacity")}),30)),Yt=setTimeout((function(){if(Se("initialZoom"+(o?"Out":"In")),o){var r=s.w/t.w,l={x:fe.x,y:fe.y},d=g,p=le,m=function(t){1===t?(g=r,fe.x=s.x,fe.y=s.y-L):(g=(r-d)*t+d,fe.x=(s.x-l.x)*t+l.x,fe.y=(s.y-L-l.y)*t+l.y),Re(),a?e.style.opacity=1-t:De(p-t*p)};n?nt("initialZoom",0,1,c,i.easing.cubic.out,m,u):(m(1),Yt=setTimeout(u,c+20))}else g=t.initialZoomLevel,Fe(fe,t.initialPosition),Re(),De(1),a?e.
1style.opacity=1:De(1),Yt=setTimeout(u,c+20)}),o?25:90)}()},tn={},nn=[],on={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 Vt.length}},rn=function(){return{center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}}},an=function(e,t,n){var o=e.bounds;o.center.x=Math.round((tn.x-t)/2),o.center.y=Math.round((tn.y-n)/2)+e.vGap.top,o.max.x=t>tn.x?Math.round(tn.x-t):o.center.x,o.max.y=n>tn.y?Math.round(tn.y-n)+e.vGap.top:o.center.y,o.min.x=t>tn.x?0:o.center.x,o.min.y=n>tn.y?e.vGap.top:o.center.y},sn=function(e,t,n){if(e.src&&!e.loadError){var o=!n;if(o&&(e.vGap||(e.vGap={top:0,bottom:0}),Se("parseVerticalMargin",e)),tn.x=t.x,tn.y=t.y-e.vGap.top-e.vGap.bottom,o){var i=tn.x/e.w,r=tn.y/e.h;e.fitRatio=i<r?i:r;var a=l.scaleMode;"orig"===a?n=1:"fit"===a&&(n=e.fitRatio),n>1&&(n=1),e.initialZoomLevel=n,e.bounds||(e.bounds=rn())}if(!n)return;return an(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=rn(),e.initialPosition=e.bounds.center,e.bounds},ln=function(e,t,n,o,i,a){t.loadError||o&&(t.imageAppended=!0,dn(t,o,t===r.currItem&&_e),n.appendChild(o),a&&setTimeout((function(){t&&t.loaded&&t.placeholder&&(t.placeholder.style.display="none",t.placeholder=null)}),500))},cn=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},un=function(e,t){if(e.src&&e.loadError&&e.container)return t&&(e.container.innerHTML=""),e.container.innerHTML=l.errorMsg.replace("%url%",e.
1src),!0},dn=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"}},pn=function(){if(nn.length){for(var e,t=0;t<nn.length;t++)(e=nn[t]).holder.index===e.index&&ln(e.index,e.item,e.baseDiv,e.img,!1,e.clearPlaceholder);nn=[]}};je("Controller",{publicMethods:{lazyLoadItem:function(e){e=Ie(e);var t=Qt(e);t&&(!t.loaded&&!t.loading||_)&&(Se("gettingData",e,t),t.src&&cn(t))},initController:function(){i.extend(l,on,!0),r.items=Vt=n,Qt=r.getItemAt,$t=l.getNumItemsFn,l.loop,$t()<3&&(l.loop=!1),Te("beforeChange",(function(e){var t,n=l.preload,o=null===e||e>=0,i=Math.min(n[0],$t()),a=Math.min(n[1],$t());for(t=1;t<=(o?a:i);t++)r.lazyLoadItem(p+t);for(t=1;t<=(o?i:a);t++)r.lazyLoadItem(p-t)})),Te("initialLayout",(function(){r.currItem.initialLayout=l.getThumbBoundsFn&&l.getThumbBoundsFn(p)})),Te("mainScrollAnimComplete",pn),Te("initialZoomInEnd",pn),Te("destroy",(function(){for(var e,t=0;t<Vt.length;t++)(e=Vt[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);nn=null}))},getItemAt:function(e){return e>=0&&void 0!==Vt[e]&&Vt[e]},allowProgressiveImg:function(){return l.forceProgressiveLoading||!R||l.mouseUsed||screen.width>1200},setContent:function(e,t){l.loop&&(t=Ie(t));var n=r.getItemAt(e.index);n&&(n.container=null);var o,a=r.getItemAt(t);if(a){Se("gettingData",t,a),e.index=t,e.item=a;var s=a.container=i.createEl("pswp__zoom-wrap");if(!a.src&&a.html&&(a.html.tagName?s.appendChild(a.html):s.innerHTML=a.html),un(a),sn(a,he),!a.src||a.loadError||a.loaded)a.src&&!a.loadError&&((o=i.createEl("pswp__img","img")).style.opacity=1,o.src=a.src,dn(a,o),ln(t,a,s,o,!0));else{if(a.loadComplete=function(n){if(c){if(e&&e.index===t){if(un(n,!0))return n.loadComplete=n.img=null,sn(n,he),ke(n),void(e.index===p&&r.updateCurrZoomItem());n.imageAppended?!Jt&&n.placeholder&&(n.placeholder.style.display="none",n.placeholder=null):Z.transform&&(ie||Jt)?nn.push({item:n,baseDiv:s,img:n.img,index:t,holder:e,clearPlaceholder:!0}):ln(t,n,s,n.img,ie||Jt,!0)}n.loadComplete=null,n.img=null,Se("imageLoadComplete",t,n)}},i.features.transform){var u="pswp__img pswp__img--placeholder";u+=a.msrc?"":" pswp__img--placeholder--blank";var d=i.createEl(u,a.msrc?"img":"");a.msrc&&(d.src=a.msrc),dn(a,d),s.appendChild(d),a.placeholder=d}a.loading||cn(a),r.allowProgressiveImg()&&(!Xt&&Z.transform?nn.push({item:a,baseDiv:s,img:a.img,index:t,holder:e}):ln(t,a,s,a.img,!0,!0))}Xt||t!==p?ke(a):(oe=s.style,en(a,o||a.img)),e.el.innerHTML="",e.el.appendChild(s)}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 mn,fn,hn={},vn=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)};je("Tap",{publicMethods:{initTap:function(){Te("firstTouchStart",r.onTapStart),Te("touchRelease",r.onTapRelease),Te("destroy",(function(){hn={},mn=null}))},onTapStart:function(e){e.length>1&&(clearTimeout(mn),mn=null)},onTapRelease:function(e,t){if(t&&!X&&!Y&&!Qe){var n=t;if(mn&&(clearTimeout(mn),mn=null,Ot(n,hn)))return void Se("doubleTap",n);if("mouse"===t.type)return void vn(e,t,"mouse");if("BUTTON"===e.target.tagName.toUpperCase()||i.hasClass(e.target,"pswp__single-tap"))return void vn(e,t);Fe(hn,n),mn=setTimeout((function(){vn(e,t),mn=null}),300)}}}}),je("DesktopZoom",{publicMethods:{initDesktopZoom:function(){F||(R?Te("mouseUsed",(function(){r.setupDesktopZoom()})):r.setupDesktopZoom(!0))},setupDesktopZoom:function(t){fn={};var n="wheel mousewheel DOMMouseScroll";Te("bindEvents",(function(){i.bind(e,n,r.handleMouseWheel)})),Te("unbindEvents",(function(){fn&&i.unbind(e,n,r.handleMouseWheel)})),r.mouseZoomedIn=!1;var o,a=function(){r.mouseZoomedIn&&(i.removeClass(e,"pswp--zoomed-in"),r.mouseZoomedIn=!1),g<1?i.addClass(e,"pswp--zoom-allowed"):i.removeClass(e,"pswp--zoom-allowed"),s()},s=function(){o&&(i.removeClass(e,"pswp--dragging"),o=!1)};Te("resize",a),Te("afterChange",a),Te("pointerDown",(function(){r.mouseZoomedIn&&(o=!0,i.addClass(e,"pswp--dragging"))})),Te("pointerUp",s),t||a()},handleMouseWheel:function(e){if(g<=r.currItem.fitRatio)return l.modal&&(!l.closeOnScroll||Qe||q?e.preventDefault():D&&Math.abs(e.deltaY)>2&&(d=!0,r.close())),!0;if(e.stopPropagation(),fn.x=0,"deltaX"in e)1===e.deltaMode?(fn.x=18*e.deltaX,fn.y=18*e.deltaY):(fn.x=e.deltaX,fn.y=e.deltaY);else if("wheelDelta"in e)e.wheelDeltaX&&(fn.x=-.16*e.wheelDeltaX),e.wheelDeltaY?fn.y=-.16*e.wheelDeltaY:fn.y=-.16*e.wheelDelta;else{if(!("detail"in e))return;fn.y=e.detail}Be(g,!0);var t=fe.x-fn.x,n=fe.y-fn.y;(l.modal||t<=ne.min.x&&t>=ne.max.x&&n<=ne.min.y&&n>=ne.max.y)&&e.preventDefault(),r.panTo(t,n)},toggleDesktopZoom:function(t){t=t||{x:he.x/2+xe.x,y:he.y/2+xe.y};var n=l.getDoubleTapZoom(!0,r.currItem),o=g===n;r.mouseZoomedIn=!o,r.zoomTo(o?r.currItem.initialZoomLevel:n,t,333),i[(o?"remove":"add")+"Class"](e,"pswp--zoomed-in")}}});var xn,gn,bn,wn,yn,On,_n,jn,In,Cn,Tn,Sn,En={history:!0,galleryUID:1},Dn=function(){return Tn.hash.substring(1)},Pn=function(){xn&&clearTimeout(xn),bn&&clearTimeout(bn)},Rn=function(){var e=Dn(),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(l.galleryPIDs){var r=t.pid;for(t.pid=0,n=0;n<Vt.length;n++)if(Vt[n].pid===r){t.pid=n;break}}else t.pid=parseInt(t.pid,10)-1;return t.pid<0&&(t.pid=0),t},kn=function(){if(bn&&clearTimeout(bn),Qe||q)bn=setTimeout(kn,500);else{wn?clearTimeout(gn):wn=!0;var e=p+1,t=Qt(p);t.hasOwnProperty("pid")&&(e=t.pid);var n=_n+"&gid="+l.galleryUID+"&pid="+e;jn||-1===Tn.hash.indexOf(n)&&(Cn=!0);var o=Tn.href.split("#")[0]+"#"+n;Sn?"#"+n!==window.location.hash&&history[jn?"replaceState":"pushState"]("",document.title,o):jn?Tn.replace(o):Tn.hash=n,jn=!0,gn=setTimeout((function(){wn=!1}),60)}};je("History",{publicMethods:{initHistory:function(){if(i.extend(l,En,!0),l.history){Tn=window.location,Cn=!1,In=!1,jn=!1,_n=Dn(),Sn="pushState"in history,_n.indexOf("gid=")>-1&&(_n=(_n=_n.split("&gid=")[0]).split("?gid=")[0]),Te("afterChange",r.updateURL),Te("unbindEvents",(function(){i.unbind(window,"hashchange",r.onHashChange)}));var e=function(){On=!0,In||(Cn?history.back():_n?Tn.hash=_n:Sn?history.pushState("",document.title,Tn.pathname+Tn.search):Tn.hash=""),Pn()};Te("unbindEvents",(function(){d&&e()})),Te("destroy",(function(){On||e()})),Te("firstUpdate",(function(){p=Rn().pid}));var t=_n.indexOf("pid=");t>-1&&"&"===(_n=_n.substring(0,t)).slice(-1)&&(_n=_n.slice(0,-1)),setTimeout((function(){c&&i.bind(window,"hashchange",r.onHashChange)}),40)}},onHashChange:function(){if(Dn()===_n)return In=!0,void r.close();wn||(yn=!0,r.goTo(Rn().pid),yn=!1)},updateURL:function(){Pn(),yn||(jn?xn=setTimeout(kn,800):kn())}}}),i.extend(r,ot)}})?o.call(t,n,t,e):o)||(e.exports=i)}}]);

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.