www.atirgift.com
Open in
urlscan Pro
104.18.31.221
Public Scan
Submitted URL: http://atirgift.com/dist/wap/static/js/npm.vue-photo-preview.js?v=451
Effective URL: https://www.atirgift.com/dist/wap/static/js/npm.vue-photo-preview.js?v=451
Submission: On November 02 via api from US — Scanned from DE
Effective URL: https://www.atirgift.com/dist/wap/static/js/npm.vue-photo-preview.js?v=451
Submission: On November 02 via api from US — Scanned from DE
Form analysis
0 forms found in the DOMText Content
(self["webpackChunkvue_front_shop"]=self["webpackChunkvue_front_shop"]||[]).push([[69507],{3075:function(e,t,n){n(21703),function(t,n){e.exports=n()}("undefined"!=typeof self&&self,(function(){return function(e){function t(o){if(n[o])return n[o].exports;var i=n[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist/",t(t.s=1)}([function(e,t,n){"use strict";var o=n(7),i=(n.n(o),n(8));n.n(i),t.a={}},function(e,t,n){"use strict";function o(e){return function(){var t=e.apply(this,arguments);return new Promise((function(e,n){function o(i,r){try{var a=t[i](r),l=a.value}catch(e){return void n(e)}if(!a.done)return Promise.resolve(l).then((function(e){o("next",e)}),(function(e){o("throw",e)}));e(l)}return o("next")}))}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n.n(i),a=n(5),l=n(10),s=n.n(l),u=n(11),c=n.n(u),d=void 0,p={install:function(e,t){var n=e.extend(a.a);t=t||{};d||(d=new n({el:document.createElement("div")}),document.body.appendChild(d.$el));var i=void 0,l=void 0;e.prototype.$preview={self:null,on:function(e,t){i=e,l=t}},e.mixin({data:function(){return{galleryElements:null,galleryPicLoading:!1}},methods:{$previewRefresh:function(){var e=this;setTimeout((function(){e.galleryElements=document.querySelectorAll("img[preview]");for(var t=0,n=e.galleryElements.length;t<n;t++)e.galleryElements[t].setAttribute("data-pswp-uid",t+1),e.galleryElements[t].onclick=e.onThumbnailsClick}),200)},onThumbnailsClick:function(e){if(this.galleryPicLoading)return!1;this.galleryPicLoading=!0,e=e||window.event,e.preventDefault?e.preventDefault():e.returnValue=!1;var t,n=e.target||e.srcElement,o=n.getAttribute("preview");t=o?document.querySelectorAll('img[preview="'+o+'"]'):document.querySelectorAll("img[preview]");for(var i,r=t,a=0;a<r.length;a++)if(r[a]===n){i=a;break}return i>=0&&(this.openPhotoSwipe(i,r),this.$emit("preview-open",e,n.src)),!1},openPhotoSwipe:function(n,a,u,p){var f=this;return o(r.a.mark((function o(){var m,h,v,g,w,y,x,b,_;return r.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return m=document.querySelectorAll(".pswp")[0],o.next=3,f.parseThumbnailElements(a);case 3:if(g=o.sent,v={getThumbBoundsFn:function(e){var t=g[e].el,n=window.pageYOffset||document.documentElement.scrollTop,o=t.getBoundingClientRect();return{x:o.left,y:o.top+n,w:o.width}},addCaptionHTMLFn:function(e,t,n){return e.title?(t.children[0].innerHTML=e.title,!0):(t.children[0].innerText="",!1)},showHideOpacity:!0,history:!1,shareEl:!1,maxSpreadZoom:3,getDoubleTapZoom:function(e,t){return e?1.5:t.initialZoomLevel<.7?1:1.5}},!p){o.next=20;break}if(!v.galleryPIDs){o.next=17;break}w=0;case 8:if(!(w<g.length)){o.next=15;break}if(g[w].pid!=n){o.next=12;break}return v.index=w,o.abrupt("break",15);case 12:w++,o.next=8;break;case 15:o.next=18;break;case 17:v.index=parseInt(n,10)-1;case 18:o.next=21;break;case 20:v.index=parseInt(n,10);case 21:if(!isNaN(v.index)){o.next=23;break}return o.abrupt("return");case 23:v=f.extend(v,t),u&&(v.showAnimationDuration=0),h=new s.a(m,c.a,g,v),e.prototype.$preview.self=h,x=!1,b=!0,h.listen("beforeResize",(function(){var e=window.devicePixelRatio?window.devicePixelRatio:1;e=Math.min(e,2.5),y=h.viewportSize.x*e,y>=1200||!h.likelyTouchDevice&&y>800||screen.width>1200?x||(x=!0,_=!0):x&&(x=!1,_=!0),_&&!b&&h.invalidateCurrItems(),b&&(b=!1),_=!1})),h.listen("gettingData",(function(e,t){t.el.getAttribute("large")?(t.src=t.o.src,t.w=t.o.w,t.h=t.o.h):(t.src=t.m.src,t.w=t.m.w,t.h=t.m.h)})),h.listen("imageLoadComplete",(function(e,t){f.galleryPicLoading=!1})),h.listen(i,l),h.init(),d.$el.classList=d.$el.classList+" pswp--zoom-allowed";case 34:case"end":return o.stop()}}),o,f)})))()},parseThumbnailElements:function(e){return new Promise((function(t){var n,o,i=[];o={};for(var r=0;r<e.length;r++)if(n=e[r],1===n.nodeType){if(void 0===n.naturalWidth){r=new Image;r.src=n.src;var a=r.width,l=r.height}else a=n.naturalWidth,l=n.naturalHeight;!function(r){var u=new Image;u.src=n.getAttribute("large")?n.getAttribute("large"):n.getAttribute("src"),u.text=n.getAttribute("preview-text"),u.author=n.getAttribute("data-author"),u.onload=function(){o={title:u.text,el:e[r],src:u.src,w:a,h:l,author:u.author,o:{src:u.src,w:this.width,h:this.height},m:{src:u.src,w:this.width,h:this.height}},i[r]=o,++s==e.length&&t(i)}}(r);var s=0}}))},extend:function(e,t){for(var n in t)e[n]=t[n];return e},initPreview:function(e){this.galleryElements=document.querySelectorAll(e);for(var t=0,n=this.galleryElements.length;t<n;t++)this.galleryElements[t].setAttribute("data-pswp-uid",t+1),this.galleryElements[t].onclick=this.onThumbnailsClick}},mounted:function(){this.initPreview("img[preview]")}})}};t.default=p,"undefined"==typeof window||window.vuePhotoPreview||(window.vuePhotoPreview=p)},function(e,t,n){e.exports=n(3)},function(e,t,n){var o=function(){return this}()||Function("return this")(),i=o.regeneratorRuntime&&Object.getOwnPropertyNames(o).indexOf("regeneratorRuntime")>=0,r=i&&o.regeneratorRuntime;if(o.regeneratorRuntime=void 0,e.exports=n(4),i)o.regeneratorRuntime=r;else try{delete o.regeneratorRuntime}catch(e){o.regeneratorRuntime=void 0}},function(e,t){!function(t){"use strict";function n(e,t,n,o){var r=t&&t.prototype instanceof i?t:i,a=Object.create(r.prototype),l=new f(o||[]);return a._invoke=u(e,n,l),a}function o(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function i(){}function r(){}function a(){}function l(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function s(e){function t(n,i,r,a){var l=o(e[n],e,i);if("throw"!==l.type){var s=l.arg,u=s.value;return u&&"object"==typeof u&&w.call(u,"__await")?Promise.resolve(u.__await).then((function(e){t("next",e,r,a)}),(function(e){t("throw",e,r,a)})):Promise.resolve(u).then((function(e){s.value=e,r(s)}),a)}a(l.arg)}function n(e,n){function o(){return new Promise((function(o,i){t(e,n,o,i)}))}return i=i?i.then(o,o):o()}var i;this._invoke=n}function u(e,t,n){var i=E;return function(r,a){if(i===S)throw new Error("Generator is already running");if(i===k){if("throw"===r)throw a;return h()}for(n.method=r,n.arg=a;;){var l=n.delegate;if(l){var s=c(l,n);if(s){if(s===D)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===E)throw i=k,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=S;var u=o(e,t,n);if("normal"===u.type){if(i=n.done?k:I,u.arg===D)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=k,n.method="throw",n.arg=u.arg)}}}function c(e,t){var n=e.iterator[t.method];if(n===v){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=v,c(e,t),"throw"===t.method))return D;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return D}var i=o(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,D;var r=i.arg;return r?r.done?(t[e.resultName]=r.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=v),t.delegate=null,D):r:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,D)}function d(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function p(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function f(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(d,this),this.reset(!0)}function m(e){if(e){var t=e[x];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(w.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=v,t.done=!0,t};return o.next=o}}return{next:h}}function h(){return{value:v,done:!0}}var v,g=Object.prototype,w=g.hasOwnProperty,y="function"==typeof Symbol?Symbol:{},x=y.iterator||"@@iterator",b=y.asyncIterator||"@@asyncIterator",_=y.toStringTag||"@@toStringTag",C="object"==typeof e,T=t.regeneratorRuntime;if(T)C&&(e.exports=T);else{T=t.regeneratorRuntime=C?e.exports:{},T.wrap=n;var E="suspendedStart",I="suspendedYield",S="executing",k="completed",D={},O={};O[x]=function(){return this};var L=Object.getPrototypeOf,F=L&&L(L(m([])));F&&F!==g&&w.call(F,x)&&(O=F);var A=a.prototype=i.prototype=Object.create(O);r.prototype=A.constructor=a,a.constructor=r,a[_]=r.displayName="GeneratorFunction",T.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===r||"GeneratorFunction"===(t.displayName||t.name))},T.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,a):(e.__proto__=a,_ in e||(e[_]="GeneratorFunction")),e.prototype=Object.create(A),e},T.awrap=function(e){return{__await:e}},l(s.prototype),s.prototype[b]=function(){return this},T.AsyncIterator=s,T.async=function(e,t,o,i){var r=new s(n(e,t,o,i));return T.isGeneratorFunction(t)?r:r.next().then((function(e){return e.done?e.value:r.next()}))},l(A),A[_]="Generator",A[x]=function(){return this},A.toString=function(){return"[object Generator]"},T.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var o=t.pop();if(o in e)return n.value=o,n.done=!1,n}return n.done=!0,n}},T.values=m,f.prototype={constructor:f,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=v,this.done=!1,this.delegate=null,this.method="next",this.arg=v,this.tryEntries.forEach(p),!e)for(var t in this)"t"===t.charAt(0)&&w.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=v)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){function t(t,o){return r.type="throw",r.arg=e,n.next=t,o&&(n.method="next",n.arg=v),!!o}if(this.done)throw e;for(var n=this,o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],r=i.completion;if("root"===i.tryLoc)return t("end");if(i.tryLoc<=this.prev){var a=w.call(i,"catchLoc"),l=w.call(i,"finallyLoc");if(a&&l){if(this.prev<i.catchLoc)return t(i.catchLoc,!0);if(this.prev<i.finallyLoc)return t(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return t(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return t(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&w.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var r=i?i.completion:{};return r.type=e,r.arg=t,i?(this.method="next",this.next=i.finallyLoc,D):this.complete(r)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),D},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),p(n),D}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var i=o.arg;p(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:m(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=v),D}}}}(function(){return this}()||Function("return this")())},function(e,t,n){"use strict";var o=n(0),i=n(9),r=n(6),a=r(o.a,i.a,!1,null,null,null);t.a=a.exports},function(e,t){e.exports=function(e,t,n,o,i,r){var a,l=e=e||{},s=typeof e.default;"object"!==s&&"function"!==s||(a=e,l=e.default);var u,c="function"==typeof l?l.options:l;if(t&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0),n&&(c.functional=!0),i&&(c._scopeId=i),r?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},c._ssrRegister=u):o&&(u=o),u){var d=c.functional,p=d?c.render:c.beforeCreate;d?(c._injectStyles=u,c.render=function(e,t){return u.call(t),p(e,t)}):c.beforeCreate=p?[].concat(p,u):[u]}return{esModule:a,exports:l,options:c}}},function(e,t){},function(e,t){},function(e,t,n){"use strict";var o=function(){var e=this;e.$createElement;return e._self._c,e._m(0)},i=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"pswp",attrs:{tabindex:"-1",role:"dialog","aria-hidden":"true"}},[n("div",{staticClass:"pswp__bg"}),e._v(" "),n("div",{staticClass:"pswp__scroll-wrap"},[n("div",{staticClass:"pswp__container"},[n("div",{staticClass:"pswp__item"}),e._v(" "),n("div",{staticClass:"pswp__item"}),e._v(" "),n("div",{staticClass:"pswp__item"})]),e._v(" "),n("div",{staticClass:"pswp__ui pswp__ui--hidden"},[n("div",{staticClass:"pswp__top-bar"},[n("div",{staticClass:"pswp__counter"}),e._v(" "),n("button",{staticClass:"pswp__button pswp__button--close",attrs:{title:"Close (Esc)"}}),e._v(" "),n("button",{staticClass:"pswp__button pswp__button--share",attrs:{title:"Share"}}),e._v(" "),n("button",{staticClass:"pswp__button pswp__button--fs",attrs:{title:"Toggle fullscreen"}}),e._v(" "),n("button",{staticClass:"pswp__button pswp__button--zoom",attrs:{title:"Zoom in/out"}}),e._v(" "),n("div",{staticClass:"pswp__preloader"},[n("div",{staticClass:"pswp__preloader__icn"},[n("div",{staticClass:"pswp__preloader__cut"},[n("div",{staticClass:"pswp__preloader__donut"})])])])]),e._v(" "),n("div",{staticClass:"pswp__share-modal pswp__share-modal--hidden pswp__single-tap"},[n("div",{staticClass:"pswp__share-tooltip"})]),e._v(" "),n("button",{staticClass:"pswp__button pswp__button--arrow--left",attrs:{title:"Previous (arrow left)"}}),e._v(" "),n("button",{staticClass:"pswp__button pswp__button--arrow--right",attrs:{title:"Next (arrow right)"}}),e._v(" "),n("div",{staticClass:"pswp__caption"},[n("div",{staticClass:"pswp__caption__center"})])])])])}],r={render:o,staticRenderFns:i};t.a=r},function(e,t,n){var o,i; /*! PhotoSwipe - v4.1.3 - 2019-01-08 * http://photoswipe.com * Copyright (c) 2019 Dmitry Semenov; */!function(r,a){o=a,void 0!==(i="function"==typeof o?o.call(t,n,t,e):o)&&(e.exports=i)}(0,(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(),t=e.style,n="",o={};if(o.oldIE=document.all&&!document.addEventListener,o.touch="ontouchstart"in window,window.requestAnimationFrame&&(o.raf=window.requestAnimationFrame,o.caf=window.cancelAnimationFrame),o.pointerEvent=!!window.PointerEvent||navigator.msPointerEnabled,!o.pointerEvent){var r=navigator.userAgent;if(/iP(hone|od)/.test(navigator.platform)){var a=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);a&&a.length>0&&(a=parseInt(a[1],10))>=1&&a<8&&(o.isOldIOSPhone=!0)}var l=r.match(/Android\s([0-9\.]*)/),s=l?l[1]:0;s=parseFloat(s),s>=1&&(s<4.4&&(o.isOldAndroid=!0),o.androidVersion=s),o.isMobileOpera=/opera mini|opera mobi/i.test(r)}for(var u,c,d=["transform","perspective","animationName"],p=["","webkit","Moz","ms","O"],f=0;f<4;f++){n=p[f];for(var m=0;m<3;m++)u=d[m],c=n+(n?u.charAt(0).toUpperCase()+u.slice(1):u),!o[u]&&c in t&&(o[u]=c);n&&!o.raf&&(n=n.toLowerCase(),o.raf=window[n+"RequestAnimationFrame"],o.raf&&(o.caf=window[n+"CancelAnimationFrame"]||window[n+"CancelRequestAnimationFrame"]))}if(!o.raf){var h=0;o.raf=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-h)),o=window.setTimeout((function(){e(t+n)}),n);return h=t+n,o},o.caf=function(e){clearTimeout(e)}}return o.svg=!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,i.features=o,o}};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)},l=0;l<t.length;l++)if(i=t[l])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={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(a,o);var l,s,u,c,d,p,f,m,h,v,g,w,y,x,b,_,C,T,E,I,S,k,D,O,L,F,A,M,R,P,Z,z,N,U,K,H,W,B,G,Y,q,j,$,V,X,J,Q,ee,te,ne,oe,ie,re,ae,le,se,ue=function(){return{x:0,y:0}},ce=ue(),de=ue(),pe=ue(),fe={},me=0,he={},ve=ue(),ge=0,we=!0,ye=[],xe={},be=!1,_e=function(e,t){i.extend(r,t.publicMethods),ye.push(e)},Ce=function(e){var t=$t();return e>t-1?e-t:e<0?t+e:e},Te={},Ee=function(e,t){return Te[e]||(Te[e]=[]),Te[e].push(t)},Ie=function(e){var t=Te[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)}},Se=function(){return(new Date).getTime()},ke=function(e){ae=e,r.bg.style.opacity=e*a.bgOpacity},De=function(e,t,n,o,i){(!be||i&&i!==r.currItem)&&(o/=i?i.fitRatio:r.currItem.fitRatio),e[k]=w+t+"px, "+n+"px"+y+" scale("+o+")"},Oe=function(e){te&&(e&&(v>r.currItem.fitRatio?be||(ln(r.currItem,!1,!0),be=!0):be&&(ln(r.currItem),be=!1)),De(te,pe.x,pe.y,v))},Le=function(e){e.container&&De(e.container.style,e.initialPosition.x,e.initialPosition.y,e.initialZoomLevel,e)},Fe=function(e,t){t[k]=w+e+"px, 0px"+y},Ae=function(e,t){if(!a.loop&&t){var n=c+(ve.x*me-e)/ve.x,o=Math.round(e-mt.x);(n<0&&o>0||n>=$t()-1&&o<0)&&(e=mt.x+o*a.mainScrollEndFriction)}mt.x=e,Fe(e,d)},Me=function(e,t){var n=ht[e]-he[e];return de[e]+ce[e]+n-n*(t/g)},Re=function(e,t){e.x=t.x,e.y=t.y,t.id&&(e.id=t.id)},Pe=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"),a.mouseUsed=!0,Ie("mouseUsed")),Ze=setTimeout((function(){Ze=null}),100)},Ne=function(){i.bind(document,"keydown",r),Z.transform&&i.bind(r.scrollWrap,"click",r),a.mouseUsed||i.bind(document,"mousemove",ze),i.bind(window,"resize scroll orientationchange",r),Ie("bindEvents")},Ue=function(){i.unbind(window,"resize scroll orientationchange",r),i.unbind(window,"scroll",h.scroll),i.unbind(document,"keydown",r),i.unbind(document,"mousemove",ze),Z.transform&&i.unbind(r.scrollWrap,"click",r),G&&i.unbind(window,f,r),clearTimeout(z),Ie("unbindEvents")},Ke=function(e,t){var n=nn(r.currItem,fe,e);return t&&(ee=n),n},He=function(e){return e||(e=r.currItem),e.initialZoomLevel},We=function(e){return e||(e=r.currItem),e.w>0?a.maxSpreadZoom:1},Be=function(e,t,n,o){return o===r.currItem.initialZoomLevel?(n[e]=r.currItem.initialPosition[e],!0):(n[e]=Me(e,o),n[e]>t.min[e]?(n[e]=t.min[e],!0):n[e]<t.max[e]&&(n[e]=t.max[e],!0))},Ge=function(){if(k){var t=Z.perspective&&!O;return w="translate"+(t?"3d(":"("),void(y=Z.perspective?", 0px)":")")}k="left",i.addClass(e,"pswp--ie"),Fe=function(e,t){t.left=e+"px"},Le=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"},Oe=function(){if(te){var e=te,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=pe.x+"px",e.top=pe.y+"px"}}},Ye=function(e){var t="";a.escKey&&27===e.keyCode?t="close":a.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]()))},qe=function(e){e&&(j||q||ne||W)&&(e.preventDefault(),e.stopPropagation())},je=function(){r.setScrollOffset(0,i.getScrollY())},$e={},Ve=0,Xe=function(e){$e[e]&&($e[e].raf&&F($e[e].raf),Ve--,delete $e[e])},Je=function(e){$e[e]&&Xe(e),$e[e]||(Ve++,$e[e]={})},Qe=function(){for(var e in $e)$e.hasOwnProperty(e)&&Xe(e)},et=function(e,t,n,o,i,r,a){var l,s=Se();Je(e);var u=function(){if($e[e]){if((l=Se()-s)>=o)return Xe(e),r(n),void(a&&a());r((n-t)*i(l/o)+t),$e[e].raf=L(u)}};u()},tt={shout:Ie,listen:Ee,viewportSize:fe,options:a,isMainScrollAnimating:function(){return ne},getZoomLevel:function(){return v},getCurrentIndex:function(){return c},isDragging:function(){return G},isZooming:function(){return J},setScrollOffset:function(e,t){he.x=e,P=he.y=t,Ie("updateScrollOffset",he)},applyZoomPan:function(e,t,n,o){pe.x=t,pe.y=n,v=e,Oe(o)},init:function(){if(!l&&!s){var n;r.framework=i,r.template=e,r.bg=i.getChildByClass(e,"pswp__bg"),A=e.className,l=!0,Z=i.detectFeatures(),L=Z.raf,F=Z.caf,k=Z.transform,R=Z.oldIE,r.scrollWrap=i.getChildByClass(e,"pswp__scroll-wrap"),r.container=i.getChildByClass(r.scrollWrap,"pswp__container"),d=r.container.style,r.itemHolders=_=[{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}],_[0].el.style.display=_[2].el.style.display="none",Ge(),h={resize:r.updateSize,orientationchange:function(){clearTimeout(z),z=setTimeout((function(){fe.x!==r.scrollWrap.clientWidth&&r.updateSize()}),500)},scroll:je,keydown:Ye,click:qe};var o=Z.isOldIOSPhone||Z.isOldAndroid||Z.isMobileOpera;for(Z.animationName&&Z.transform&&!o||(a.showAnimationDuration=a.hideAnimationDuration=0),n=0;n<ye.length;n++)r["init"+ye[n]]();t&&(r.ui=new t(r,i)).init(),Ie("firstUpdate"),c=c||a.index||0,(isNaN(c)||c<0||c>=$t())&&(c=0),r.currItem=jt(c),(Z.isOldIOSPhone||Z.isOldAndroid)&&(we=!1),e.setAttribute("aria-hidden","false"),a.modal&&(we?e.style.position="fixed":(e.style.position="absolute",e.style.top=i.getScrollY()+"px")),void 0===P&&(Ie("initialLayout"),P=M=i.getScrollY());var u="pswp--open ";for(a.mainClass&&(u+=a.mainClass+" "),a.showHideOpacity&&(u+="pswp--animate_opacity "),u+=O?"pswp--touch":"pswp--notouch",u+=Z.animationName?" pswp--css_animation":"",u+=Z.svg?" pswp--svg":"",i.addClass(e,u),r.updateSize(),p=-1,ge=null,n=0;n<3;n++)Fe((n+p)*ve.x,_[n].el.style);R||i.bind(r.scrollWrap,m,r),Ee("initialZoomInEnd",(function(){r.setContent(_[0],c-1),r.setContent(_[2],c+1),_[0].el.style.display=_[2].el.style.display="block",a.focus&&e.focus(),Ne()})),r.setContent(_[1],c),r.updateCurrItem(),Ie("afterInit"),we||(x=setInterval((function(){Ve||G||J||v!==r.currItem.initialZoomLevel||r.updateSize()}),1e3)),i.addClass(e,"pswp--visible")}},close:function(){l&&(l=!1,s=!0,Ie("close"),Ue(),Vt(r.currItem,null,!0,r.destroy))},destroy:function(){Ie("destroy"),Bt&&clearTimeout(Bt),e.setAttribute("aria-hidden","true"),e.className=A,x&&clearInterval(x),i.unbind(r.scrollWrap,m,r),i.unbind(window,"scroll",r),xt(),Qe(),Te=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)),pe.x=e,pe.y=t,Oe()},handleEvent:function(e){e=e||window.event,h[e.type]&&h[e.type](e)},goTo:function(e){e=Ce(e);var t=e-c;ge=t,c=e,r.currItem=jt(c),me-=t,Ae(ve.x*me),Qe(),ne=!1,r.updateCurrItem()},next:function(){r.goTo(c+1)},prev:function(){r.goTo(c-1)},updateCurrZoomItem:function(e){if(e&&Ie("beforeChange",0),_[1].el.children.length){var t=_[1].el.children[0];te=i.hasClass(t,"pswp__zoom-wrap")?t.style:null}else te=null;ee=r.currItem.bounds,g=v=r.currItem.initialZoomLevel,pe.x=ee.center.x,pe.y=ee.center.y,e&&Ie("afterChange")},invalidateCurrItems:function(){b=!0;for(var e=0;e<3;e++)_[e].item&&(_[e].item.needsUpdate=!0)},updateCurrItem:function(e){if(0!==ge){var t,n=Math.abs(ge);if(!(e&&n<2)){r.currItem=jt(c),be=!1,Ie("beforeChange",ge),n>=3&&(p+=ge+(ge>0?-3:3),n=3);for(var o=0;o<n;o++)ge>0?(t=_.shift(),_[2]=t,p++,Fe((p+2)*ve.x,t.el.style),r.setContent(t,c-n+o+1+1)):(t=_.pop(),_.unshift(t),p--,Fe(p*ve.x,t.el.style),r.setContent(t,c+n-o-1-1));if(te&&1===Math.abs(ge)){var i=jt(C);i.initialZoomLevel!==v&&(nn(i,fe),ln(i),Le(i))}ge=0,r.updateCurrZoomItem(),C=c,Ie("afterChange")}}},updateSize:function(t){if(!we&&a.modal){var n=i.getScrollY();if(P!==n&&(e.style.top=n+"px",P=n),!t&&xe.x===window.innerWidth&&xe.y===window.innerHeight)return;xe.x=window.innerWidth,xe.y=window.innerHeight,e.style.height=xe.y+"px"}if(fe.x=r.scrollWrap.clientWidth,fe.y=r.scrollWrap.clientHeight,je(),ve.x=fe.x+Math.round(fe.x*a.spacing),ve.y=fe.y,Ae(ve.x*me),Ie("beforeResize"),void 0!==p){for(var o,l,s,u=0;u<3;u++)o=_[u],Fe((u+p)*ve.x,o.el.style),s=c+u-1,a.loop&&$t()>2&&(s=Ce(s)),l=jt(s),l&&(b||l.needsUpdate||!l.bounds)?(r.cleanSlide(l),r.setContent(o,s),1===u&&(r.currItem=l,r.updateCurrZoomItem(!0)),l.needsUpdate=!1):-1===o.index&&s>=0&&r.setContent(o,s),l&&l.container&&(nn(l,fe),ln(l),Le(l));b=!1}g=v=r.currItem.initialZoomLevel,ee=r.currItem.bounds,ee&&(pe.x=ee.center.x,pe.y=ee.center.y,Oe(!0)),Ie("resize")},zoomTo:function(e,t,n,o,r){t&&(g=v,ht.x=Math.abs(t.x)-pe.x,ht.y=Math.abs(t.y)-pe.y,Re(de,pe));var a=Ke(e,!1),l={};Be("x",a,l,e),Be("y",a,l,e);var s=v,u={x:pe.x,y:pe.y};Pe(l);var c=function(t){1===t?(v=e,pe.x=l.x,pe.y=l.y):(v=(e-s)*t+s,pe.x=(l.x-u.x)*t+u.x,pe.y=(l.y-u.y)*t+u.y),r&&r(t),Oe(1===t)};n?et("customZoomTo",0,1,n,o||i.easing.sine.inOut,c):c(1)}},nt={},ot={},it={},rt={},at={},lt=[],st={},ut=[],ct={},dt=0,pt=ue(),ft=0,mt=ue(),ht=ue(),vt=ue(),gt=function(e,t){return e.x===t.x&&e.y===t.y},wt=function(e,t){return Math.abs(e.x-t.x)<25&&Math.abs(e.y-t.y)<25},yt=function(e,t){return ct.x=Math.abs(e.x-t.x),ct.y=Math.abs(e.y-t.y),Math.sqrt(ct.x*ct.x+ct.y*ct.y)},xt=function(){$&&(F($),$=null)},bt=function(){G&&($=L(bt),Zt())},_t=function(){return!("fit"===a.scaleMode&&v===r.currItem.initialZoomLevel)},Ct=function(e,t){return!(!e||e===document)&&!(e.getAttribute("class")&&e.getAttribute("class").indexOf("pswp__scroll-wrap")>-1)&&(t(e)?e:Ct(e.parentNode,t))},Tt={},Et=function(e,t){return Tt.prevent=!Ct(e.target,a.isClickableElement),Ie("preventDragEvent",e,t,Tt),Tt.prevent},It=function(e,t){return t.x=e.pageX,t.y=e.pageY,t.id=e.identifier,t},St=function(e,t,n){n.x=.5*(e.x+t.x),n.y=.5*(e.y+t.y)},kt=function(e,t,n){if(e-U>50){var o=ut.length>2?ut.shift():{};o.x=t,o.y=n,ut.push(o),U=e}},Dt=function(){var e=pe.y-r.currItem.initialPosition.y;return 1-Math.abs(e/(fe.y/2))},Ot={},Lt={},Ft=[],At=function(e){for(;Ft.length>0;)Ft.pop();return D?(se=0,lt.forEach((function(e){0===se?Ft[0]=e:1===se&&(Ft[1]=e),se++}))):e.type.indexOf("touch")>-1?e.touches&&e.touches.length>0&&(Ft[0]=It(e.touches[0],Ot),e.touches.length>1&&(Ft[1]=It(e.touches[1],Lt))):(Ot.x=e.pageX,Ot.y=e.pageY,Ot.id="",Ft[0]=Ot),Ft},Mt=function(e,t){var n,o,i,l,s=pe[e]+t[e],u=t[e]>0,c=mt.x+t.x,d=mt.x-st.x;if(n=s>ee.min[e]||s<ee.max[e]?a.panEndFriction:1,s=pe[e]+t[e]*n,(a.allowPanToNext||v===r.currItem.initialZoomLevel)&&(te?"h"!==oe||"x"!==e||q||(u?(s>ee.min[e]&&(n=a.panEndFriction,ee.min[e],o=ee.min[e]-de[e]),(o<=0||d<0)&&$t()>1?(l=c,d<0&&c>st.x&&(l=st.x)):ee.min.x!==ee.max.x&&(i=s)):(s<ee.max[e]&&(n=a.panEndFriction,ee.max[e],o=de[e]-ee.max[e]),(o<=0||d>0)&&$t()>1?(l=c,d>0&&c<st.x&&(l=st.x)):ee.min.x!==ee.max.x&&(i=s))):l=c,"x"===e))return void 0!==l&&(Ae(l,!0),V=l!==st.x),ee.min.x!==ee.max.x&&(void 0!==i?pe.x=i:V||(pe.x+=t.x*n)),void 0!==l;ne||V||v>r.currItem.fitRatio&&(pe[e]+=t[e]*n)},Rt=function(e){if(!("mousedown"===e.type&&e.button>0)){if(qt)return void e.preventDefault();if(!B||"mousedown"!==e.type){if(Et(e,!0)&&e.preventDefault(),Ie("pointerDown"),D){var t=i.arraySearch(lt,e.pointerId,"id");t<0&&(t=lt.length),lt[t]={x:e.pageX,y:e.pageY,id:e.pointerId}}var n=At(e),o=n.length;X=null,Qe(),G&&1!==o||(G=ie=!0,i.bind(window,f,r),H=le=re=W=V=j=Y=q=!1,oe=null,Ie("firstTouchStart",n),Re(de,pe),ce.x=ce.y=0,Re(rt,n[0]),Re(at,rt),st.x=ve.x*me,ut=[{x:rt.x,y:rt.y}],U=N=Se(),Ke(v,!0),xt(),bt()),!J&&o>1&&!ne&&!V&&(g=v,q=!1,J=Y=!0,ce.y=ce.x=0,Re(de,pe),Re(nt,n[0]),Re(ot,n[1]),St(nt,ot,vt),ht.x=Math.abs(vt.x)-pe.x,ht.y=Math.abs(vt.y)-pe.y,Q=yt(nt,ot))}}},Pt=function(e){if(e.preventDefault(),D){var t=i.arraySearch(lt,e.pointerId,"id");if(t>-1){var n=lt[t];n.x=e.pageX,n.y=e.pageY}}if(G){var o=At(e);if(oe||j||J)X=o;else if(mt.x!==ve.x*me)oe="h";else{var r=Math.abs(o[0].x-rt.x)-Math.abs(o[0].y-rt.y);Math.abs(r)>=10&&(oe=r>0?"h":"v",X=o)}}},Zt=function(){if(X){var e=X.length;if(0!==e)if(Re(nt,X[0]),it.x=nt.x-rt.x,it.y=nt.y-rt.y,J&&e>1){if(rt.x=nt.x,rt.y=nt.y,!it.x&&!it.y&>(X[1],ot))return;Re(ot,X[1]),q||(q=!0,Ie("zoomGestureStarted"));var t=yt(nt,ot),n=Ht(t);n>r.currItem.initialZoomLevel+r.currItem.initialZoomLevel/15&&(le=!0);var o=1,i=He(),l=We();if(n<i)if(a.pinchToClose&&!le&&g<=r.currItem.initialZoomLevel){var s=i-n,u=1-s/(i/1.2);ke(u),Ie("onPinchClose",u),re=!0}else o=(i-n)/i,o>1&&(o=1),n=i-o*(i/3);else n>l&&(o=(n-l)/(6*i),o>1&&(o=1),n=l+o*i);o<0&&(o=0),t,St(nt,ot,pt),ce.x+=pt.x-vt.x,ce.y+=pt.y-vt.y,Re(vt,pt),pe.x=Me("x",n),pe.y=Me("y",n),H=n>v,v=n,Oe()}else{if(!oe)return;if(ie&&(ie=!1,Math.abs(it.x)>=10&&(it.x-=X[0].x-at.x),Math.abs(it.y)>=10&&(it.y-=X[0].y-at.y)),rt.x=nt.x,rt.y=nt.y,0===it.x&&0===it.y)return;if("v"===oe&&a.closeOnVerticalDrag&&!_t()){ce.y+=it.y,pe.y+=it.y;var c=Dt();return W=!0,Ie("onVerticalDrag",c),ke(c),void Oe()}kt(Se(),nt.x,nt.y),j=!0,ee=r.currItem.bounds;var d=Mt("x",it);d||(Mt("y",it),Pe(pe),Oe())}}},zt=function(e){if(Z.isOldAndroid){if(B&&"mouseup"===e.type)return;e.type.indexOf("touch")>-1&&(clearTimeout(B),B=setTimeout((function(){B=0}),600))}var t;if(Ie("pointerUp"),Et(e,!1)&&e.preventDefault(),D){var n=i.arraySearch(lt,e.pointerId,"id");if(n>-1)if(t=lt.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 l,s=At(e),u=s.length;if("mouseup"===e.type&&(u=0),2===u)return X=null,!0;1===u&&Re(at,s[0]),0!==u||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"})),Ie("touchRelease",e,t));var c=-1;if(0===u&&(G=!1,i.unbind(window,f,r),xt(),J?c=0:-1!==ft&&(c=Se()-ft)),ft=1===u?Se():-1,l=-1!==c&&c<150?"zoom":"swipe",J&&u<2&&(J=!1,1===u&&(l="zoomPointerUp"),Ie("zoomGestureEnded")),X=null,j||q||ne||W)if(Qe(),K||(K=Nt()),K.calculateSwipeSpeed("x"),W){var d=Dt();if(d<a.verticalDragRange)r.close();else{var p=pe.y,m=ae;et("verticalDrag",0,1,300,i.easing.cubic.out,(function(e){pe.y=(r.currItem.initialPosition.y-p)*e+p,ke((1-m)*e+m),Oe()})),Ie("onVerticalDrag",1)}}else{if((V||ne)&&0===u){var h=Kt(l,K);if(h)return;l="zoomPointerUp"}if(!ne)return"swipe"!==l?void Wt():void(!V&&v>r.currItem.fitRatio&&Ut(K))}},Nt=function(){var e,t,n={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{},backAnimDestination:{},backAnimStarted:{},calculateSwipeSpeed:function(o){ut.length>1?(e=Se()-U+50,t=ut[ut.length-2][o]):(e=Se()-N,t=at[o]),n.lastFlickOffset[o]=rt[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]||(pe[e]>ee.min[e]?n.backAnimDestination[e]=ee.min[e]:pe[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,et("bounceZoomPan"+e,pe[e],n.backAnimDestination[e],t||300,i.easing.sine.out,(function(t){pe[e]=t,Oe()})))))},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,pe[e]+=n.distanceOffset[e])},panAnimLoop:function(){if($e.zoomPan&&($e.zoomPan.raf=L(n.panAnimLoop),n.now=Se(),n.timeDiff=n.now-n.lastNow,n.lastNow=n.now,n.calculateAnimOffset("x"),n.calculateAnimOffset("y"),Oe(),n.calculateOverBoundsAnimOffset("x"),n.calculateOverBoundsAnimOffset("y"),n.speedDecelerationRatioAbs.x<.05&&n.speedDecelerationRatioAbs.y<.05))return pe.x=Math.round(pe.x),pe.y=Math.round(pe.y),Oe(),void Xe("zoomPan")}};return n},Ut=function(e){if(e.calculateSwipeSpeed("y"),ee=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;Je("zoomPan"),e.lastNow=Se(),e.panAnimLoop()},Kt=function(e,t){var n,o,l;if(ne||(dt=c),"swipe"===e){var s=rt.x-at.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,c<0?(c=a.loop?$t()-1:0,l=!0):c>=$t()&&(c=a.loop?0:$t()-1,l=!0),l&&!a.loop||(ge+=o,me-=o,n=!0));var d,p=ve.x*me,f=Math.abs(p-mt.x);return n||p>mt.x==t.lastFlickSpeed.x>0?(d=Math.abs(t.lastFlickSpeed.x)>0?f/Math.abs(t.lastFlickSpeed.x):333,d=Math.min(d,400),d=Math.max(d,250)):d=333,dt===c&&(n=!1),ne=!0,Ie("mainScrollAnimStart"),et("mainScroll",mt.x,p,d,i.easing.cubic.out,Ae,(function(){Qe(),ne=!1,dt=-1,(n||dt!==c)&&r.updateCurrItem(),Ie("mainScrollAnimComplete")})),n&&r.updateCurrItem(!0),n},Ht=function(e){return 1/Q*e*g},Wt=function(){var e=v,t=He(),n=We();v<t?e=t:v>n&&(e=n);var o,a=ae;return re&&!H&&!le&&v<t?(r.close(),!0):(re&&(o=function(e){ke((1-a)*e+a)}),r.zoomTo(e,0,200,i.easing.cubic.out,o),!0)};_e("Gestures",{publicMethods:{initGestures:function(){var e=function(e,t,n,o,i){T=e+t,E=e+n,I=e+o,S=i?e+i:""};D=Z.pointerEvent,D&&Z.touch&&(Z.touch=!1),D?navigator.msPointerEnabled?e("MSPointer","Down","Move","Up","Cancel"):e("pointer","down","move","up","cancel"):Z.touch?(e("touch","start","move","end","cancel"),O=!0):e("mouse","down","move","up"),f=E+" "+I+" "+S,m=T,D&&!O&&(O=navigator.maxTouchPoints>1||navigator.msMaxTouchPoints>1),r.likelyTouchDevice=O,h[T]=Rt,h[E]=Pt,h[I]=zt,S&&(h[S]=h[I]),Z.touch&&(m+=" mousedown",f+=" mousemove mouseup",h.mousedown=h[T],h.mousemove=h[E],h.mouseup=h[I]),O||(a.allowPanToNext=!1)}}});var Bt,Gt,Yt,qt,jt,$t,Vt=function(t,n,o,l){var s;Bt&&clearTimeout(Bt),qt=!0,Yt=!0,t.initialLayout?(s=t.initialLayout,t.initialLayout=null):s=a.getThumbBoundsFn&&a.getThumbBoundsFn(c);var d=o?a.hideAnimationDuration:a.showAnimationDuration,p=function(){Xe("initialZoom"),o?(r.template.removeAttribute("style"),r.bg.removeAttribute("style")):(ke(1),n&&(n.style.display="block"),i.addClass(e,"pswp--animated-in"),Ie("initialZoom"+(o?"OutEnd":"InEnd"))),l&&l(),qt=!1};if(!d||!s||void 0===s.x)return Ie("initialZoom"+(o?"Out":"In")),v=t.initialZoomLevel,Re(pe,t.initialPosition),Oe(),e.style.opacity=o?0:1,ke(1),void(d?setTimeout((function(){p()}),d):p());!function(){var n=u,l=!r.currItem.src||r.currItem.loadError||a.showHideOpacity;t.miniImg&&(t.miniImg.style.webkitBackfaceVisibility="hidden"),o||(v=s.w/t.w,pe.x=s.x,pe.y=s.y-M,r[l?"template":"bg"].style.opacity=.001,Oe()),Je("initialZoom"),o&&!n&&i.removeClass(e,"pswp--animated-in"),l&&(o?i[(n?"remove":"add")+"Class"](e,"pswp--animate_opacity"):setTimeout((function(){i.addClass(e,"pswp--animate_opacity")}),30)),Bt=setTimeout((function(){if(Ie("initialZoom"+(o?"Out":"In")),o){var r=s.w/t.w,a={x:pe.x,y:pe.y},u=v,c=ae,f=function(t){1===t?(v=r,pe.x=s.x,pe.y=s.y-P):(v=(r-u)*t+u,pe.x=(s.x-a.x)*t+a.x,pe.y=(s.y-P-a.y)*t+a.y),Oe(),l?e.style.opacity=1-t:ke(c-t*c)};n?et("initialZoom",0,1,d,i.easing.cubic.out,f,p):(f(1),Bt=setTimeout(p,d+20))}else v=t.initialZoomLevel,Re(pe,t.initialPosition),Oe(),ke(1),l?e.style.opacity=1:ke(1),Bt=setTimeout(p,d+20)}),o?25:90)}()},Xt={},Jt=[],Qt={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 Gt.length}},en=function(){return{center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}}},tn=function(e,t,n){var o=e.bounds;o.center.x=Math.round((Xt.x-t)/2),o.center.y=Math.round((Xt.y-n)/2)+e.vGap.top,o.max.x=t>Xt.x?Math.round(Xt.x-t):o.center.x,o.max.y=n>Xt.y?Math.round(Xt.y-n)+e.vGap.top:o.center.y,o.min.x=t>Xt.x?0:o.center.x,o.min.y=n>Xt.y?e.vGap.top:o.center.y},nn=function(e,t,n){if(e.src&&!e.loadError){var o=!n;if(o&&(e.vGap||(e.vGap={top:0,bottom:0}),Ie("parseVerticalMargin",e)),Xt.x=t.x,Xt.y=t.y-e.vGap.top-e.vGap.bottom,o){var i=Xt.x/e.w,r=Xt.y/e.h;e.fitRatio=i<r?i:r;var l=a.scaleMode;"orig"===l?n=1:"fit"===l&&(n=e.fitRatio),n>1&&(n=1),e.initialZoomLevel=n,e.bounds||(e.bounds=en())}if(!n)return;return tn(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=en(),e.initialPosition=e.bounds.center,e.bounds},on=function(e,t,n,o,i,a){t.loadError||o&&(t.imageAppended=!0,ln(t,o,t===r.currItem&&be),n.appendChild(o),a&&setTimeout((function(){t&&t.loaded&&t.placeholder&&(t.placeholder.style.display="none",t.placeholder=null)}),500))},rn=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},an=function(e,t){if(e.src&&e.loadError&&e.container)return t&&(e.container.innerHTML=""),e.container.innerHTML=a.errorMsg.replace("%url%",e.src),!0},ln=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"}},sn=function(){if(Jt.length){for(var e,t=0;t<Jt.length;t++)e=Jt[t],e.holder.index===e.index&&on(e.index,e.item,e.baseDiv,e.img,0,e.clearPlaceholder);Jt=[]}};_e("Controller",{publicMethods:{lazyLoadItem:function(e){e=Ce(e);var t=jt(e);t&&(!t.loaded&&!t.loading||b)&&(Ie("gettingData",e,t),t.src&&rn(t))},initController:function(){i.extend(a,Qt,!0),r.items=Gt=n,jt=r.getItemAt,$t=a.getNumItemsFn,a.loop,$t()<3&&(a.loop=!1),Ee("beforeChange",(function(e){var t,n=a.preload,o=null===e||e>=0,i=Math.min(n[0],$t()),l=Math.min(n[1],$t());for(t=1;t<=(o?l:i);t++)r.lazyLoadItem(c+t);for(t=1;t<=(o?i:l);t++)r.lazyLoadItem(c-t)})),Ee("initialLayout",(function(){r.currItem.initialLayout=a.getThumbBoundsFn&&a.getThumbBoundsFn(c)})),Ee("mainScrollAnimComplete",sn),Ee("initialZoomInEnd",sn),Ee("destroy",(function(){for(var e,t=0;t<Gt.length;t++)e=Gt[t],e.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);Jt=null}))},getItemAt:function(e){return e>=0&&void 0!==Gt[e]&&Gt[e]},allowProgressiveImg:function(){return a.forceProgressiveLoading||!O||a.mouseUsed||screen.width>1200},setContent:function(e,t){a.loop&&(t=Ce(t));var n=r.getItemAt(e.index);n&&(n.container=null);var o,s=r.getItemAt(t);if(s){Ie("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),an(s),nn(s,fe),!s.src||s.loadError||s.loaded)s.src&&!s.loadError&&(o=i.createEl("pswp__img","img"),o.style.opacity=1,o.src=s.src,ln(s,o),on(0,s,u,o));else{if(s.loadComplete=function(n){if(l){if(e&&e.index===t){if(an(n,!0))return n.loadComplete=n.img=null,nn(n,fe),Le(n),void(e.index===c&&r.updateCurrZoomItem());n.imageAppended?!qt&&n.placeholder&&(n.placeholder.style.display="none",n.placeholder=null):Z.transform&&(ne||qt)?Jt.push({item:n,baseDiv:u,img:n.img,index:t,holder:e,clearPlaceholder:!0}):on(0,n,u,n.img,0,!0)}n.loadComplete=null,n.img=null,Ie("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),ln(s,p),u.appendChild(p),s.placeholder=p}s.loading||rn(s),r.allowProgressiveImg()&&(!Yt&&Z.transform?Jt.push({item:s,baseDiv:u,img:s.img,index:t,holder:e}):on(0,s,u,s.img,0,!0))}Yt||t!==c?Le(s):(te=u.style,Vt(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 un,cn,dn={},pn=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)};_e("Tap",{publicMethods:{initTap:function(){Ee("firstTouchStart",r.onTapStart),Ee("touchRelease",r.onTapRelease),Ee("destroy",(function(){dn={},un=null}))},onTapStart:function(e){e.length>1&&(clearTimeout(un),un=null)},onTapRelease:function(e,t){if(t&&!j&&!Y&&!Ve){var n=t;if(un&&(clearTimeout(un),un=null,wt(n,dn)))return void Ie("doubleTap",n);if("mouse"===t.type)return void pn(e,t,"mouse");if("BUTTON"===e.target.tagName.toUpperCase()||i.hasClass(e.target,"pswp__single-tap"))return void pn(e,t);Re(dn,n),un=setTimeout((function(){pn(e,t),un=null}),300)}}}}),_e("DesktopZoom",{publicMethods:{initDesktopZoom:function(){R||(O?Ee("mouseUsed",(function(){r.setupDesktopZoom()})):r.setupDesktopZoom(!0))},setupDesktopZoom:function(t){cn={};var n="wheel mousewheel DOMMouseScroll";Ee("bindEvents",(function(){i.bind(e,n,r.handleMouseWheel)})),Ee("unbindEvents",(function(){cn&&i.unbind(e,n,r.handleMouseWheel)})),r.mouseZoomedIn=!1;var o,a=function(){r.mouseZoomedIn&&(i.removeClass(e,"pswp--zoomed-in"),r.mouseZoomedIn=!1),v<1?i.addClass(e,"pswp--zoom-allowed"):i.removeClass(e,"pswp--zoom-allowed"),l()},l=function(){o&&(i.removeClass(e,"pswp--dragging"),o=!1)};Ee("resize",a),Ee("afterChange",a),Ee("pointerDown",(function(){r.mouseZoomedIn&&(o=!0,i.addClass(e,"pswp--dragging"))})),Ee("pointerUp",l),t||a()},handleMouseWheel:function(e){if(v<=r.currItem.fitRatio)return a.modal&&(!a.closeOnScroll||Ve||G?e.preventDefault():k&&Math.abs(e.deltaY)>2&&(u=!0,r.close())),!0;if(e.stopPropagation(),cn.x=0,"deltaX"in e)1===e.deltaMode?(cn.x=18*e.deltaX,cn.y=18*e.deltaY):(cn.x=e.deltaX,cn.y=e.deltaY);else if("wheelDelta"in e)e.wheelDeltaX&&(cn.x=-.16*e.wheelDeltaX),e.wheelDeltaY?cn.y=-.16*e.wheelDeltaY:cn.y=-.16*e.wheelDelta;else{if(!("detail"in e))return;cn.y=e.detail}Ke(v,!0);var t=pe.x-cn.x,n=pe.y-cn.y;(a.modal||t<=ee.min.x&&t>=ee.max.x&&n<=ee.min.y&&n>=ee.max.y)&&e.preventDefault(),r.panTo(t,n)},toggleDesktopZoom:function(t){t=t||{x:fe.x/2+he.x,y:fe.y/2+he.y};var n=a.getDoubleTapZoom(!0,r.currItem),o=v===n;r.mouseZoomedIn=!o,r.zoomTo(o?r.currItem.initialZoomLevel:n,t,333),i[(o?"remove":"add")+"Class"](e,"pswp--zoomed-in")}}});var fn,mn,hn,vn,gn,wn,yn,xn,bn,_n,Cn,Tn,En={history:!0,galleryUID:1},In=function(){return Cn.hash.substring(1)},Sn=function(){fn&&clearTimeout(fn),hn&&clearTimeout(hn)},kn=function(){var e=In(),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(a.galleryPIDs){var r=t.pid;for(t.pid=0,n=0;n<Gt.length;n++)if(Gt[n].pid===r){t.pid=n;break}}else t.pid=parseInt(t.pid,10)-1;return t.pid<0&&(t.pid=0),t},Dn=function(){if(hn&&clearTimeout(hn),Ve||G)hn=setTimeout(Dn,500);else{vn?clearTimeout(mn):vn=!0;var e=c+1,t=jt(c);t.hasOwnProperty("pid")&&(e=t.pid);var n=yn+"&gid="+a.galleryUID+"&pid="+e;xn||-1===Cn.hash.indexOf(n)&&(_n=!0);var o=Cn.href.split("#")[0]+"#"+n;Tn?"#"+n!==window.location.hash&&history[xn?"replaceState":"pushState"]("",document.title,o):xn?Cn.replace(o):Cn.hash=n,xn=!0,mn=setTimeout((function(){vn=!1}),60)}};_e("History",{publicMethods:{initHistory:function(){if(i.extend(a,En,!0),a.history){Cn=window.location,_n=!1,bn=!1,xn=!1,yn=In(),Tn="pushState"in history,yn.indexOf("gid=")>-1&&(yn=yn.split("&gid=")[0],yn=yn.split("?gid=")[0]),Ee("afterChange",r.updateURL),Ee("unbindEvents",(function(){i.unbind(window,"hashchange",r.onHashChange)}));var e=function(){wn=!0,bn||(_n?history.back():yn?Cn.hash=yn:Tn?history.pushState("",document.title,Cn.pathname+Cn.search):Cn.hash=""),Sn()};Ee("unbindEvents",(function(){u&&e()})),Ee("destroy",(function(){wn||e()})),Ee("firstUpdate",(function(){c=kn().pid}));var t=yn.indexOf("pid=");t>-1&&(yn=yn.substring(0,t),"&"===yn.slice(-1)&&(yn=yn.slice(0,-1))),setTimeout((function(){l&&i.bind(window,"hashchange",r.onHashChange)}),40)}},onHashChange:function(){if(In()===yn)return bn=!0,void r.close();vn||(gn=!0,r.goTo(kn().pid),gn=!1)},updateURL:function(){Sn(),gn||(xn?fn=setTimeout(Dn,800):Dn())}}}),i.extend(r,tt)}}))},function(e,t,n){var o,i; /*! PhotoSwipe Default UI - 4.1.3 - 2019-01-08 * http://photoswipe.com * Copyright (c) 2019 Dmitry Semenov; */!function(r,a){o=a,void 0!==(i="function"==typeof o?o.call(t,n,t,e):o)&&(e.exports=i)}(0,(function(){"use strict";return function(e,t){var n,o,i,r,a,l,s,u,c,d,p,f,m,h,v,g,w,y,x=this,b=!1,_=!0,C=!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){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},E=function(e){if(g)return!0;e=e||window.event,v.timeToIdle&&v.mouseUsed&&!c&&R();for(var n,o,i=e.target||e.srcElement,r=i.getAttribute("class")||"",a=0;a<W.length;a++)n=W[a],n.onTap&&r.indexOf("pswp__"+n.name)>-1&&(n.onTap(),o=!0);if(o){e.stopPropagation&&e.stopPropagation(),g=!0;var l=t.features.isOldAndroid?600:30;setTimeout((function(){g=!1}),l)}},I=function(){return!e.likelyTouchDevice||v.mouseUsed||screen.width>v.fitControlsWidth},S=function(e,n,o){t[(o?"add":"remove")+"Class"](e,"pswp__"+n)},k=function(){var e=1===v.getNumItemsFn();e!==h&&(S(o,"ui--one-slide",e),h=e)},D=function(){S(s,"share-modal--hidden",C)},O=function(){return C=!C,C?(t.removeClass(s,"pswp__share-modal--fade-in"),setTimeout((function(){C&&D()}),300)):(D(),setTimeout((function(){C||t.addClass(s,"pswp__share-modal--fade-in")}),30)),C||F(),!1},L=function(t){t=t||window.event;var n=t.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)),C||O(),!1))},F=function(){for(var e,t,n,o,i,r="",a=0;a<v.shareButtons.length;a++)e=v.shareButtons[a],n=v.getImageURLForShare(e),o=v.getPageURLForShare(e),i=v.getTextForShare(e),t=e.url.replace("{{url}}",encodeURIComponent(o)).replace("{{image_url}}",encodeURIComponent(n)).replace("{{raw_image_url}}",n).replace("{{text}}",encodeURIComponent(i)),r+='<a href="'+t+'" target="_blank" class="pswp__share--'+e.id+'"'+(e.download?"download":"")+">"+e.label+"</a>",v.parseShareButtonOut&&(r=v.parseShareButtonOut(e,r));s.children[0].innerHTML=r,s.children[0].onclick=L},A=function(e){for(var n=0;n<v.closeElClasses.length;n++)if(t.hasClass(e,"pswp__"+v.closeElClasses[n]))return!0},M=0,R=function(){clearTimeout(y),M=0,c&&x.setIdle(!1)},P=function(e){e=e||window.event;var t=e.relatedTarget||e.toElement;t&&"HTML"!==t.nodeName||(clearTimeout(y),y=setTimeout((function(){x.setIdle(!0)}),v.timeToIdleOutside))},Z=function(){v.fullscreenEl&&!t.features.isOldAndroid&&(n||(n=x.getFullscreenAPI()),n?(t.bind(document,n.eventK,x.updateFullscreen),x.updateFullscreen(),t.addClass(e.template,"pswp--supports-fs")):t.removeClass(e.template,"pswp--supports-fs"))},z=function(){v.preloaderEl&&(N(!0),d("beforeChange",(function(){clearTimeout(m),m=setTimeout((function(){e.currItem&&e.currItem.loading?(!e.allowProgressiveImg()||e.currItem.img&&!e.currItem.img.naturalWidth)&&N(!1):N(!0)}),v.loadingIndicatorDelay)})),d("imageLoadComplete",(function(t,n){e.currItem===n&&N(!0)})))},N=function(e){f!==e&&(S(p,"preloader--active",!e),f=e)},U=function(e){var n=e.vGap;if(I()){var a=v.barsSize;if(v.captionEl&&"auto"===a.bottom)if(r||(r=t.createEl("pswp__caption pswp__caption--fake"),r.appendChild(t.createEl("pswp__caption__center")),o.insertBefore(r,i),t.addClass(o,"pswp__ui--fit")),v.addCaptionHTMLFn(e,r,!0)){var l=r.clientHeight;n.bottom=parseInt(l,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},K=function(){v.timeToIdle&&d("mouseUsed",(function(){t.bind(document,"mousemove",R),t.bind(document,"mouseout",P),w=setInterval((function(){2===++M&&x.setIdle(!0)}),v.timeToIdle/2)}))},H=function(){var e;d("onVerticalDrag",(function(e){_&&e<.95?x.hideControls():!_&&e>=.95&&x.showControls()})),d("onPinchClose",(function(t){_&&t<.9?(x.hideControls(),e=!0):e&&!_&&t>.9&&x.showControls()})),d("zoomGestureEnded",(function(){(e=!1)&&!_&&x.showControls()}))},W=[{name:"caption",option:"captionEl",onInit:function(e){i=e}},{name:"share-modal",option:"shareEl",onInit:function(e){s=e},onTap:function(){O()}},{name:"button--share",option:"shareEl",onInit:function(e){l=e},onTap:function(){O()}},{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}}],B=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 l=0;l<W.length;l++)i=W[l],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)};x.init=function(){t.extend(e.options,T,!0),v=e.options,o=t.getChildByClass(e.scrollWrap,"pswp__ui"),d=e.listen,H(),d("beforeChange",x.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",E),t.bind(e.scrollWrap,"pswpTap",x.onGlobalTap),e.likelyTouchDevice||t.bind(e.scrollWrap,"mouseover",x.onMouseOver)})),d("unbindEvents",(function(){C||O(),w&&clearInterval(w),t.unbind(document,"mouseout",P),t.unbind(document,"mousemove",R),t.unbind(o,"pswpTap click",E),t.unbind(e.scrollWrap,"pswpTap",x.onGlobalTap),t.unbind(e.scrollWrap,"mouseover",x.onMouseOver),n&&(t.unbind(document,n.eventK,x.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")),s&&(s.children[0].onclick=null),t.removeClass(o,"pswp__ui--over-close"),t.addClass(o,"pswp__ui--hidden"),x.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",U),B(),v.shareEl&&l&&s&&(C=!0),k(),K(),Z(),z()},x.setIdle=function(e){c=e,S(o,"ui--idle",e)},x.update=function(){_&&e.currItem?(x.updateIndexIndicator(),v.captionEl&&(v.addCaptionHTMLFn(e.currItem,i),S(i,"caption--empty",!e.currItem.title)),b=!0):b=!1,C||O(),k()},x.updateFullscreen=function(o){o&&setTimeout((function(){e.setScrollOffset(0,t.getScrollY())}),50),t[(n.isFullscreen()?"add":"remove")+"Class"](e.template,"pswp--fs")},x.updateIndexIndicator=function(){v.counterEl&&(a.innerHTML=e.getCurrentIndex()+1+v.indexIndicatorSep+v.getNumItemsFn())},x.onGlobalTap=function(n){n=n||window.event;var o=n.target||n.srcElement;if(!g)if(n.detail&&"mouse"===n.detail.pointerType){if(A(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&&(_?x.hideControls():x.showControls()),v.tapToClose&&(t.hasClass(o,"pswp__img")||A(o)))return void e.close()},x.onMouseOver=function(e){e=e||window.event;var t=e.target||e.srcElement;S(o,"ui--over-close",A(t))},x.hideControls=function(){t.addClass(o,"pswp__ui--hidden"),_=!1},x.showControls=function(){_=!0,b||x.update(),t.removeClass(o,"pswp__ui--hidden")},x.supportsFullscreen=function(){var e=document;return!!(e.exitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen||e.msExitFullscreen)},x.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"}),t&&(t.enter=function(){if(u=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=u,document[this.exitK]()},t.isFullscreen=function(){return document[this.elementK]}),t}}}))}])}))}}]);