PageSourceSearch

https://espace-safer.com/wp-content/plugins/meow-lightbox/app/lightbox-photoswipe.js

js espace-safer.com collected 2026-09-24 12:18:01 UTC 68,691 bytes, 1 lines download raw bytes

1"use strict";(self.wpJsonLightbox=self.wpJsonLightbox||[]).push([[641],{385:(t,i,e)=>{e.r(i),e.d(i,{default:()=>$t});var n=e(317);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function r(t,i){for(var e=0;e<i.length;e++){var n=i[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,s(n.key),n)}}function s(t){var i=function(t,i){if("object"!=o(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,i||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(t)}(t,"string");return"symbol"==o(i)?i:i+""}var a=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){a=!0}}))}catch(t){}const l=function(){return t=function t(){!function(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}(this,t),this._pool=[]},(i=[{key:"add",value:function(t,i,e,n){this._toggleListener(t,i,e,n)}},{key:"remove",value:function(t,i,e,n){this._toggleListener(t,i,e,n,!0)}},{key:"removeAll",value:function(){var t=this;this._pool.forEach((function(i){t._toggleListener(i.target,i.type,i.listener,i.passive,!0,!0)})),this._pool=[]}},{key:"_toggleListener",value:function(t,i,e,n,o,r){var s=this;if(t){var l=o?"removeEventListener":"addEventListener";i.split(" ").forEach((function(i){if(i){r||(o?s._pool=s._pool.filter((function(n){return n.type!==i||n.listener!==e||n.target!==t})):s._pool.push({target:t,type:i,listener:e,passive:n}));var u=!!a&&{passive:n||!1};t[l](i,e,u)}}))}}}])&&r(t.prototype,i),e&&r(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,i,e}();var u=e(481);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function p(t,i){for(var e=0;e<i.length;e++){var n=i[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,h(n.key),n)}}function h(t){var i=function(t,i){if("object"!=c(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,i||"default");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(t)}(t,"string");return"symbol"==c(i)?i:i+""}var d=function(){return t=function t(i){!function(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}(this,t),this.slide=i,this.currZoomLevel=1,this.center={x:0,y:0},this.max={x:0,y:0},this.min={x:0,y:0}},(i=[{key:"update",value:function(t){this.currZoomLevel=t,this.slide.width?(this._updateAxis("x"),this._updateAxis("y"),this.slide.pswp.dispatch("calcBounds",{slide:this.slide})):this.reset()}},{key:"_updateAxis",value:function(t){var i=this.slide.pswp,e=this.slide["x"===t?"width":"height"]*this.currZoomLevel,n="x"===t?"left":"top",o=(0,u.KU)(n,i.options,i.viewportSize,this.slide.data,this.slide.index),r=this.slide.panAreaSize[t];this.center[t]=Math.round((r-e)/2)+o,this.max[t]=e>r?Math.round(r-e)+o:this.center[t],this.min[t]=e>r?o:this.center[t]}},{key:"reset",value:function(){this.center.x=0,this.center.y=0,this.max.x=0,this.max.y=0,this.min.x=0,this.min.y=0}},{key:"correctPan",value:function(t,i){return(0,n.qE)(i,this.max[t],this.min[t])}}])&&p(t.prototype,i),e&&p(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,i,e}();const m=d;var f=e(924);function v(t){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v(t)}function y(t,i){for(var e=0;e<i.length;e++){var n=i[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,b(n.key),n)}}function b(t){var i=function(t,i){if("object"!=v(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,i||"default");if("object"!=v(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(t)}
1(t,"string");return"symbol"==v(i)?i:i+""}const g=function(){return t=function t(i,e,o){!function(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}(this,t),this.data=i,this.index=e,this.pswp=o,this.isActive=e===o.currIndex,this.currentResolution=0,this.panAreaSize={x:0,y:0},this.pan={x:0,y:0},this.isFirstSlide=this.isActive&&!o.opener.isOpen,this.zoomLevels=new f.A(o.options,i,e,o),this.pswp.dispatch("gettingData",{slide:this,data:this.data,index:e}),this.content=this.pswp.contentLoader.getContentBySlide(this),this.container=(0,n.n)("pswp__zoom-wrap","div"),this.holderElement=null,this.currZoomLevel=1,this.width=this.content.width,this.height=this.content.height,this.heavyAppended=!1,this.bounds=new m(this),this.prevDisplayedWidth=-1,this.prevDisplayedHeight=-1,this.pswp.dispatch("slideInit",{slide:this})},(i=[{key:"setIsActive",value:function(t){t&&!this.isActive?this.activate():!t&&this.isActive&&this.deactivate()}},{key:"append",value:function(t){this.holderElement=t,this.container.style.transformOrigin="0 0",this.data&&(this.calculateSize(),this.load(),this.updateContentSize(),this.appendHeavy(),this.holderElement.appendChild(this.container),this.zoomAndPanToInitial(),this.pswp.dispatch("firstZoomPan",{slide:this}),this.applyCurrentZoomPan(),this.pswp.dispatch("afterSetContent",{slide:this}),this.isActive&&this.activate())}},{key:"load",value:function(){this.content.load(!1),this.pswp.dispatch("slideLoad",{slide:this})}},{key:"appendHeavy",value:function(){var t=this.pswp;!this.heavyAppended&&t.opener.isOpen&&!t.mainScroll.isShifted()&&(this.isActive,1)&&(this.pswp.dispatch("appendHeavy",{slide:this}).defaultPrevented||(this.heavyAppended=!0,this.content.append(),this.pswp.dispatch("appendHeavyContent",{slide:this})))}},{key:"activate",value:function(){this.isActive=!0,this.appendHeavy(),this.content.activate(),this.pswp.dispatch("slideActivate",{slide:this})}},{key:"deactivate",value:function(){this.isActive=!1,this.content.deactivate(),this.currZoomLevel!==this.zoomLevels.initial&&this.calculateSize(),this.currentResolution=0,this.zoomAndPanToInitial(),this.applyCurrentZoomPan(),this.updateContentSize(),this.pswp.dispatch("slideDeactivate",{slide:this})}},{key:"destroy",value:function(){this.content.hasSlide=!1,this.content.remove(),this.container.remove(),this.pswp.dispatch("slideDestroy",{slide:this})}},{key:"resize",value:function(){this.currZoomLevel!==this.zoomLevels.initial&&this.isActive?(this.calculateSize(),this.bounds.update(this.currZoomLevel),this.panTo(this.pan.x,this.pan.y)):(this.calculateSize(),this.currentResolution=0,this.zoomAndPanToInitial(),this.applyCurrentZoomPan(),this.updateContentSize())}},{key:"updateContentSize",value:function(t){var i=this.currentResolution||this.zoomLevels.initial;if(i){var e=Math.round(this.width*i)||this.pswp.viewportSize.x,n=Math.round(this.height*i)||this.pswp.viewportSize.y;(this.sizeChanged(e,n)||t)&&this.content.setDisplayedSize(e,n)}}},{key:"sizeChanged",value:function(t,i){return(t!==this.prevDisplayedWidth||i!==this.prevDisplayedHeight)&&(this.prevDisplayedWidth=t,this.prevDisplayedHeight=i,!0)}},{key:"getPlaceholderElement",value:function(){var t;return null===(t=this.content.placeholder)||void 0===t?void 0:t.element}},{key:"zoomTo",value:function(t,i,e,o){var r=this,s=this.pswp;if(this.isZoomable()&&!s.mainScroll.isShifted()){s.dispatch("beforeZoomTo",{destZoomLevel:t,centerPoint:i,transitionDuration:e}),s.animations.stopAllPan();var a=this.currZoomLevel;o||(t=(0,n.qE)(t,this.zoomLevels.min,this.zoomLevels.max)),this.setZoomLevel(t),this.pan.x=this.calculateZoomToPanOffset("x",i,a),this.pan.y=this.calculateZoomToPanOffset("y",i,a),(0,n.PG)(this.pan);var l=function(){r._setResolution(t),r.applyCurrentZoomPan()};e?s.animations.startTransition({isPan:!0,name:"zoomTo",target:this.container,transform:this.getCurrentTransform(),onComplete:l,duration:e,easing:s.options.easing}):l()}}},{key:"toggleZoom",value:function(t){this.zoomTo(this.currZoomLevel===this.zoomLevels.initial?this.zoomLevels.secondary:this.zoomLevels.initial,t,this.pswp.options.zoomAnimationDuration)}},{key:"setZoomLevel",value:function(t){this.currZoomLevel=t,this.bounds.update(this.currZoomLevel)}},{key:"calculateZoomToPanOffset",value:function(t,i,e){if(0==this.bounds.max[t]-this.bounds.min[t])return this.bounds.center[t];i||(i=this.pswp.getViewportCenterPoint()),e||(e=this.zoomLevels.initial);var n=this.currZoomLevel/e;return this.bounds.correctPan(t,(this.pan[t]-i[t])*n+i[t])}},{key:"panTo",value:function(t,i){this.pan.x=this.bounds.correctPan("x",t),this.pan.y=this.bounds.correctPan("y",i),this.applyCurrentZoomPan()}},{key:"isPannable",value:function(){return Boolean(this.width)&&this.currZoomLevel>this.zoomLevels.fit}},{key:"isZoomable",value:function(){return Boolean(this.width)&&this.content.isZoomable()}},{key:"applyCurrentZoomPan",value:function(){this._applyZoomTransform(this.pan.x,this.pan.y,this.currZoomLevel),this===this.pswp.currSlide&&this.pswp.dispatch("zoomPanUpdate",{slide:this})}},{key:"zoomAndPanToInitial",value:function(){this.currZoomLevel=this.zoomLevels.initial,this.bounds.update(this.currZoomLevel),(0,n.QB)(this.pan,this.bounds.center),this.pswp.dispatch("initialZoomPan",{slide:this})}},{key:"_applyZoomTransform",value:function(t,i,e){e/=this.currentResolution||this.zoomLevels.initial,(0,n.BM)(this.container,t,i,e)}},{key:"calculateSize",value:function(){var t=this.pswp;(0,n.QB)(this.panAreaSize,(0,u.uZ)(t.options,t.viewportSize,this.data,this.index)),this.zoomLevels.update(this.width,this.height,this.panAreaSize),t.dispatch("calcSlideSize",{slide:this})}},{key:"getCurrentTransform",value:function(){var t=this.currZoomLevel/(this.currentResolution||this.zoomLevels.initial);return(0,n.n9)(this.pan.x,this.pan.y,t)}},{key:"_setResolution",value:function(t){t!==this.currentResolution&&(this.currentResolution=t,this.updateContentSize(),this.pswp.dispatch("resolutionChanged"))}}
1])&&y(t.prototype,i),e&&y(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,i,e}();function _(t){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_(t)}function w(t,i){for(var e=0;e<i.length;e++){var n=i[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,P(n.key),n)}}function P(t){var i=function(t,i){if("object"!=_(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,i||"default");if("object"!=_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(t)}(t,"string");return"symbol"==_(i)?i:i+""}var S=function(){return t=function t(i){!function(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}(this,t),this.gestures=i,this.pswp=i.pswp,this.startPan={x:0,y:0}},(i=[{key:"start",value:function(){this.pswp.currSlide&&(0,n.QB)(this.startPan,this.pswp.currSlide.pan),this.pswp.animations.stopAll()}},{key:"change",value:function(){var t=this.gestures,i=t.p1,e=t.prevP1,o=t.dragAxis,r=this.pswp.currSlide;if("y"===o&&this.pswp.options.closeOnVerticalDrag&&r&&r.currZoomLevel<=r.zoomLevels.fit&&!this.gestures.isMultitouch){var s=r.pan.y+(i.y-e.y);if(!this.pswp.dispatch("verticalDrag",{panY:s}).defaultPrevented){this._setPanWithFriction("y",s,.6);var a=1-Math.abs(this._getVerticalDragRatio(r.pan.y));this.pswp.applyBgOpacity(a),r.applyCurrentZoomPan()}}else this._panOrMoveMainScroll("x")||(this._panOrMoveMainScroll("y"),r&&((0,n.PG)(r.pan),r.applyCurrentZoomPan()))}},{key:"end",value:function(){var t=this.gestures.velocity,i=this.pswp,e=i.mainScroll,n=i.currSlide,o=0;if(this.pswp.animations.stopAll(),e.isShifted()){var r=(e.x-e.getCurrSlideX())/this.pswp.viewportSize.x;t.x<-.5&&r<0||t.x<.1&&r<-.5?(o=1,t.x=Math.min(t.x,0)):(t.x>.5&&r>0||t.x>-.1&&r>.5)&&(o=-1,t.x=Math.max(t.x,0)),e.moveIndexBy(o,!0,t.x)}n&&n.currZoomLevel>n.zoomLevels.max||this.gestures.isMultitouch?this.gestures.zoomLevels.correctZoomPan(!0):(this._finishPanGestureForAxis("x"),this._finishPanGestureForAxis("y"))}},{key:"_finishPanGestureForAxis",value:function(t){var i=this,e=this.gestures.velocity,o=this.pswp.currSlide;if(o){var r=o.pan,s=o.bounds,a=r[t],l=this.pswp.bgOpacity<1&&"y"===t,u=a+function(t,i){return t*i/(1-i)}(e[t],.995);if(l){var c=this._getVerticalDragRatio(a),p=this._getVerticalDragRatio(u);if(c<0&&p<-.4||c>0&&p>.4)return void this.pswp.close()}var h=s.correctPan(t,u);if(a!==h){var d=h===u?1:.82,m=this.pswp.bgOpacity,f=h-a;this.pswp.animations.startSpring({name:"panGesture"+t,isPan:!0,start:a,end:h,velocity:e[t],dampingRatio:d,onUpdate:function(e){if(l&&i.pswp.bgOpacity<1){var s=1-(h-e)/f;i.pswp.applyBgOpacity((0,n.qE)(m+(1-m)*s,0,1))}r[t]=Math.floor(e),o.applyCurrentZoomPan()}})}}}},{key:"_panOrMoveMainScroll",value:function(t){var i=this.gestures,e=i.p1,n=i.dragAxis,o=i.prevP1,r=i.isMultitouch,s=this.pswp,a=s.currSlide,l=s.mainScroll,u=e[t]-o[t],c=l.x+u;if(!u||!a)return!1;if("x"===t&&!a.isPannable()&&!r)return l.moveTo(c,!0),!0;var p=a.bounds,h=a.pan[t]+u;if(this.pswp.options.allowPanToNext&&"x"===n&&"x"===t&&!r){var d=l.getCurrSlideX(),m=l.x-d,f=u>0,v=!f;if(h>p.min[t]&&f){if(p.min[t]<=this.startPan[t])return l.moveTo(c,!0),!0;this._setPanWithFriction(t,h)}else if(h<p.max[t]&&v){if(this.startPan[t]<=p.max[t])return l.moveTo(c,!0),!0;this._setPanWithFriction(t,h)}else if(0!==m){if(m>0)return l.moveTo(Math.max(c,d),!0),!0;if(m<0)return l.moveTo(Math.min(c,d),!0),!0}else this._setPanWithFriction(t,h)}else"y"===t&&(l.isShifted()||p.min.y===p.max.y)||this._setPanWithFriction(t,h);return!1}},{key:"_getVerticalDragRatio",value:function(t){var i,e;return(t-(null!==(i=null===(e=this.pswp.currSlide)||void 0===e?void 0:e.bounds.center.y)&&void 0!==i?i:0))/(this.pswp.viewportSize.y/3)}},{key:"_setPanWithFriction",value:function(t,i,e){var n=this.pswp.currSlide;if(n){var o=n.pan;if(n.bounds.correctPan(t,i)!==i||e){var r=Math.round(i-o[t]);o[t]+=r*(e||.35)}else o[t]=i}}}
1])&&w(t.prototype,i),e&&w(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,i,e}();const x=S;function T(t){return T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},T(t)}function k(t,i){for(var e=0;e<i.length;e++){var n=i[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,O(n.key),n)}}function O(t){var i=function(t,i){if("object"!=T(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,i||"default");if("object"!=T(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(t)}(t,"string");return"symbol"==T(i)?i:i+""}function C(t,i,e){return t.x=(i.x+e.x)/2,t.y=(i.y+e.y)/2,t}var L=function(){return t=function t(i){!function(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}(this,t),this.gestures=i,this._startPan={x:0,y:0},this._startZoomPoint={x:0,y:0},this._zoomPoint={x:0,y:0},this._wasOverFitZoomLevel=!1,this._startZoomLevel=1},(i=[{key:"start",value:function(){var t=this.gestures.pswp.currSlide;t&&(this._startZoomLevel=t.currZoomLevel,(0,n.QB)(this._startPan,t.pan)),this.gestures.pswp.animations.stopAllPan(),this._wasOverFitZoomLevel=!1}},{key:"change",value:function(){var t=this.gestures,i=t.p1,e=t.startP1,o=t.p2,r=t.startP2,s=t.pswp,a=s.currSlide;if(a){var l=a.zoomLevels.min,u=a.zoomLevels.max;if(a.isZoomable()&&!s.mainScroll.isShifted()){C(this._startZoomPoint,e,r),C(this._zoomPoint,i,o);var c=1/(0,n.Mh)(e,r)*(0,n.Mh)(i,o)*this._startZoomLevel;if(c>a.zoomLevels.initial+a.zoomLevels.initial/15&&(this._wasOverFitZoomLevel=!0),c<l)if(s.options.pinchToClose&&!this._wasOverFitZoomLevel&&this._startZoomLevel<=a.zoomLevels.initial){var p=1-(l-c)/(l/1.2);s.dispatch("pinchClose",{bgOpacity:p}).defaultPrevented||s.applyBgOpacity(p)}else c=l-.15*(l-c);else c>u&&(c=u+.05*(c-u));a.pan.x=this._calculatePanForZoomLevel("x",c),a.pan.y=this._calculatePanForZoomLevel("y",c),a.setZoomLevel(c),a.applyCurrentZoomPan()}}}},{key:"end",value:function(){var t=this.gestures.pswp,i=t.currSlide;(!i||i.currZoomLevel<i.zoomLevels.initial)&&!this._wasOverFitZoomLevel&&t.options.pinchToClose?t.close():this.correctZoomPan()}},{key:"_calculatePanForZoomLevel",value:function(t,i){var e=i/this._startZoomLevel;return this._zoomPoint[t]-(this._startZoomPoint[t]-this._startPan[t])*e}},{key:"correctZoomPan",value:function(t){var i=this.gestures.pswp,e=i.currSlide;if(null!=e&&e.isZoomable()){0===this._zoomPoint.x&&(t=!0);var o,r=e.currZoomLevel,s=!0;r<e.zoomLevels.initial?o=e.zoomLevels.initial:r>e.zoomLevels.max?o=e.zoomLevels.max:(s=!1,o=r);var a=i.bgOpacity,l=i.bgOpacity<1,u=(0,n.QB)({x:0,y:0},e.pan),c=(0,n.QB)({x:0,y:0},u);t&&(this._zoomPoint.x=0,this._zoomPoint.y=0,this._startZoomPoint.x=0,this._startZoomPoint.y=0,this._startZoomLevel=r,(0,n.QB)(this._startPan,u)),s&&(c={x:this._calculatePanForZoomLevel("x",o),y:this._calculatePanForZoomLevel("y",o)}),e.setZoomLevel(o),c={x:e.bounds.correctPan("x",c.x),y:e.bounds.correctPan("y",c.y)},e.setZoomLevel(r);var p=!(0,n.E4)(c,u);if(!p&&!s&&!l)return e._setResolution(o),void e.applyCurrentZoomPan();i.animations.stopAllPan(),i.animations.startSpring({isPan:!0,start:0,end:1e3,velocity:0,dampingRatio:1,naturalFrequency:40,onUpdate:function(t){if(t/=1e3,p||s){if(p&&(e.pan.x=u.x+(c.x-u.x)*t,e.pan.y=u.y+(c.y-u.y)*t),s){var h=r+(o-r)*t;e.setZoomLevel(h)}e.applyCurrentZoomPan()}l&&i.bgOpacity<1&&i.applyBgOpacity((0,n.qE)(a+(1-a)*t,0,1))},onComplete:function(){e._setResolution(o),e.applyCurrentZoomPan()}})}}}])&&k(t.prototype,i),e&&k(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,i,e}();const A=L;function z(t){return z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},z(t)}function E(t,i){for(var e=0;e<i.length;e++){var n=i[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Z(n.key),n)}}function Z(t){var i=function(t,i){if("object"!=z(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,i||"default");if("object"!=z(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(t)}
1(t,"string");return"symbol"==z(i)?i:i+""}function I(t){return!!t.target.closest(".pswp__container")}var B=function(){return t=function t(i){!function(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}(this,t),this.gestures=i},(i=[{key:"click",value:function(t,i){var e=i.target.classList,n=e.contains("pswp__img"),o=e.contains("pswp__item")||e.contains("pswp__zoom-wrap");n?this._doClickOrTapAction("imageClick",t,i):o&&this._doClickOrTapAction("bgClick",t,i)}},{key:"tap",value:function(t,i){I(i)&&this._doClickOrTapAction("tap",t,i)}},{key:"doubleTap",value:function(t,i){I(i)&&this._doClickOrTapAction("doubleTap",t,i)}},{key:"_doClickOrTapAction",value:function(t,i,e){var n,o=this.gestures.pswp,r=o.currSlide,s=t+"Action",a=o.options[s];if(!o.dispatch(s,{point:i,originalEvent:e}).defaultPrevented)if("function"!=typeof a)switch(a){case"close":case"next":o[a]();break;case"zoom":null==r||r.toggleZoom(i);break;case"zoom-or-close":null!=r&&r.isZoomable()&&r.zoomLevels.secondary!==r.zoomLevels.initial?r.toggleZoom(i):o.options.clickToCloseNonZoomable&&o.close();break;case"toggle-controls":null===(n=this.gestures.pswp.element)||void 0===n||n.classList.toggle("pswp--ui-visible")}else a.call(o,i,e)}}])&&E(t.prototype,i),e&&E(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,i,e}();const D=B;function j(t){return j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},j(t)}function M(t,i){for(var e=0;e<i.length;e++){var n=i[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,F(n.key),n)}}function F(t){var i=function(t,i){if("object"!=j(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,i||"default");if("object"!=j(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(t)}(t,"string");return"symbol"==j(i)?i:i+""}const R=function(){return t=function t(i){var e=this;!function(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}(this,t),this.pswp=i,this.dragAxis=null,this.p1={x:0,y:0},this.p2={x:0,y:0},this.prevP1={x:0,y:0},this.prevP2={x:0,y:0},this.startP1={x:0,y:0},this.startP2={x:0,y:0},this.velocity={x:0,y:0},this._lastStartP1={x:0,y:0},this._intervalP1={x:0,y:0},this._numActivePoints=0,this._ongoingPointers=[],this._touchEventEnabled="ontouchstart"in window,this._pointerEventEnabled=!!window.PointerEvent,this.supportsTouch=this._touchEventEnabled||this._pointerEventEnabled&&navigator.maxTouchPoints>1,this._numActivePoints=0,this._intervalTime=0,this._velocityCalculated=!1,this.isMultitouch=!1,this.isDragging=!1,this.isZooming=!1,this.raf=null,this._tapTimer=null,this.supportsTouch||(i.options.allowPanToNext=!1),this.drag=new x(this),this.zoomLevels=new A(this),this.tapHandler=new D(this),i.on("bindEvents",(function(){i.events.add(i.scrollWrap,"click",e._onClick.bind(e)),e._pointerEventEnabled?e._bindEvents("pointer","down","up","cancel"):e._touchEventEnabled?(e._bindEvents("touch","start","end","cancel"),i.scrollWrap&&(i.scrollWrap.ontouchmove=function(){},i.scrollWrap.ontouchend=function(){})):e._bindEvents("mouse","down","up")}))},i=[{key:"_bindEvents",value:function(t,i,e,n){var o=this.pswp,r=o.events,s=n?t+n:"";r.add(o.scrollWrap,t+i,this.onPointerDown.bind(this)),r.add(window,t+"move",this.onPointerMove.bind(this)),r.add(window,t+e,this.onPointerUp.bind(this)),s&&r.add(o.scrollWrap,s,this.onPointerUp.bind(this))}},{key:"onPointerDown",value:function(t){var i="mousedown"===t.type||"mouse"===t.pointerType;if(!(i&&t.button>0)){var e=this.pswp;e.opener.isOpen?e.dispatch("pointerDown",{originalEvent:t}).defaultPrevented||(i&&(e.mouseDetected(),this._preventPointerEventBehaviour(t,"down")),e.animations.stopAll(),this._updatePoints(t,"down"),1===this._numActivePoints&&(this.dragAxis=null,(0,n.QB)(this.startP1,this.p1)),this._numActivePoints>1?(this._clearTapTimer(),this.isMultitouch=!0):this.isMultitouch=!1):t.preventDefault()}}},{key:"onPointerMove",value:function(t){this._preventPointerEventBehaviour(t,"move"),this._numActivePoints&&(this._updatePoints(t,"move"),this.pswp.dispatch("pointerMove",{originalEvent:t}).defaultPrevented||(1!==this._numActivePoints||this.isDragging?this._numActivePoints>1&&!this.isZooming&&(this._finishDrag(),this.isZooming=!0,this._updateStartPoints(),this.zoomLevels.start(),this._rafStopLoop(),this._rafRenderLoop()):(this.dragAxis||this._calculateDragDirection(),this.dragAxis&&!this.isDragging&&(this.isZooming&&(this.isZooming=!1,this.zoomLevels.end()),this.isDragging=!0,this._clearTapTimer(),this._updateStartPoints(),this._intervalTime=Date.now(),this._velocityCalculated=!1,(0,n.QB)(this._intervalP1,this.p1),this.velocity.x=0,this.velocity.y=0,this.drag.start(),this._rafStopLoop(),this._rafRenderLoop()))))}},{key:"_finishDrag",value:function(){this.isDragging&&(this.isDragging=!1,this._velocityCalculated||this._updateVelocity(!0),this.drag.end(),this.dragAxis=null)}},{key:"onPointerUp",value:function(t){this._numActivePoints&&(this._updatePoints(t,"up"),this.pswp.dispatch("pointerUp",{originalEvent:t}).defaultPrevented||(0===this._numActivePoints&&(this._rafStopLoop(),this.isDragging?this._finishDrag():this.isZooming||this.isMultitouch||this._finishTap(t)),this._numActivePoints<2&&this.isZooming&&(this.isZooming=!1,this.zoomLevels.end(),1===this._numActivePoints&&(this.dragAxis=null,this._updateStartPoints()))))}},{key:"_rafRenderLoop",value:function(){(this.isDragging||this.isZooming)&&(this._updateVelocity(),this.isDragging?(0,n.E4)(this.p1,this.prevP1)||this.drag.change():(0,n.E4)(this.p1,this.prevP1)&&(0,n.E4)(this.p2,this.prevP2)||this.zoomLevels.change(),this._updatePrevPoints(),this.raf=requestAnimationFrame(this._rafRenderLoop.bind(this)))}},{key:"_updateVelocity",value:function(t){var i=Date.now(),e=i-this._intervalTime;e<50&&!t||(this.velocity.x=this._getVelocity("x",e),this.velocity.y=this._getVelocity("y",e),this._intervalTime=i,(0,n.QB)(this._intervalP1,this.p1),this._velocityCalculated=!0)}},{key:"_finishTap",value:function(t){var i=this,e=this.pswp.mainScroll;if(e.isShifted())e.moveIndexBy(0,!0);else if(!(t.type.indexOf("cancel")>0))if("mouseup"!==t.type&&"mouse"!==t.pointerType){var o=this.pswp.options.doubleTapAction?300:0;this._tapTimer?(this._clearTapTimer(),(0,n.Mh)(this._lastStartP1,this.startP1)<25&&this.tapHandler.doubleTap(this.startP1,t)):((0,n.QB)(this._lastStartP1,this.startP1),this._tapTimer=setTimeout((function(){i.tapHandler.tap(i.startP1,t),i._clearTapTimer()}),o))}else this.tapHandler.click(this.startP1,t)}},{key:"_clearTapTimer",value:function(){this._tapTimer&&(clearTimeout(this._tapTimer),this._tapTimer=null)}},{key:"_getVelocity",value:function(t,i){var e=this.p1[t]-this._intervalP1[t];return Math.abs(e)>1&&i>5?e/i:0}},{key:"_rafStopLoop",value:function(){this.raf&&(cancelAnimationFrame(this.raf),this.raf=null)}},{key:"_preventPointerEventBehaviour",value:function(t,i){this.pswp.applyFilters("preventPointerEvent",!0,t,i)&&t.preventDefault()}},{key:"_updatePoints",value:function(t,i){if(this._pointerEventEnabled){var e=t,o=this._ongoingPointers.findIndex((function(t){return t.id===e.pointerId}));"up"===i&&o>-1?this._ongoingPointers.splice(o,1):"down"===i&&-1===o?this._ongoingPointers.push(this._convertEventPosToPoint(e,{x:0,y:0})):o>-1&&this._convertEventPosToPoint(e,this._ongoingPointers[o]),this._numActivePoints=this._ongoingPointers.length,this._numActivePoints>0&&(0,n.QB)(this.p1,this._ongoingPointers[0]),this._numActivePoints>1&&(0,n.QB)(this.p2,this._ongoingPointers[1])}else{var r=t;this._numActivePoints=0,r.type.indexOf("touch")>-1?r.touches&&r.touches.length>0&&(this._convertEventPosToPoint(r.touches[0],this.p1),this._numActivePoints++,r.touches.length>1&&(this._convertEventPosToPoint(r.touches[1],this.p2),this._numActivePoints++)):(this._convertEventPosToPoint(t,this.p1),"up"===i?this._numActivePoints=0:this._numActivePoints++)}}},{key:"_updatePrevPoints",value:function(){(0,n.QB)(this.prevP1,this.p1),(0,n.QB)(this.prevP2,this.p2)}},{key:"_updateStartPoints",value:function(){(0,n.QB)(this.startP1,this.p1),(0,n.QB)(this.startP2,this.p2),this._updatePrevPoints()}},{key:"_calculateDragDirection",value:function(){if(this.pswp.mainScroll.isShifted())this.dragAxis="x";else{var t=Math.abs(this.p1.x-this.startP1.x)-Math.abs(this.p1.y-this.startP1.y);if(0!==t){var i=t>0?"x":"y";Math.abs(this.p1[i]-this.startP1[i])>=10&&(this.dragAxis=i)}}}},{key:"_convertEventPosToPoint",value:function(t,i){return i.x=t.pageX-this.pswp.offset.x,i.y=t.pageY-this.pswp.offset.y,"pointerId"in t?i.id=t.pointerId:void 0!==t.identifier&&(i.id=t.identifier),i}},{key:"_onClick",value:function(t){this.pswp.mainScroll.isShifted()&&(t.preventDefault(),t.stopPropagation())}}
1],i&&M(t.prototype,i),e&&M(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,i,e}();function N(t){return N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},N(t)}function H(t,i){for(var e=0;e<i.length;e++){var n=i[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,W(n.key),n)}}function W(t){var i=function(t,i){if("object"!=N(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,i||"default");if("object"!=N(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(t)}(t,"string");return"symbol"==N(i)?i:i+""}const V=function(){return t=function t(i){!function(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}(this,t),this.pswp=i,this.x=0,this.slideWidth=0,this._currPositionIndex=0,this._prevPositionIndex=0,this._containerShiftIndex=-1,this.itemHolders=[]},(i=[{key:"resize",value:function(t){var i=this,e=this.pswp,o=Math.round(e.viewportSize.x+e.viewportSize.x*e.options.spacing),r=o!==this.slideWidth;r&&(this.slideWidth=o,this.moveTo(this.getCurrSlideX())),this.itemHolders.forEach((function(e,o){r&&(0,n.BM)(e.el,(o+i._containerShiftIndex)*i.slideWidth),t&&e.slide&&e.slide.resize()}))}},{key:"resetPosition",value:function(){this._currPositionIndex=0,this._prevPositionIndex=0,this.slideWidth=0,this._containerShiftIndex=-1}},{key:"appendHolders",value:function(){this.itemHolders=[];for(var t=0;t<3;t++){var i=(0,n.n)("pswp__item","div",this.pswp.container);i.setAttribute("role","group"),i.setAttribute("aria-roledescription","slide"),i.setAttribute("aria-hidden","true"),i.style.display=1===t?"block":"none",this.itemHolders.push({el:i})}}},{key:"canBeSwiped",value:function(){return this.pswp.getNumItems()>1}},{key:"moveIndexBy",value:function(t,i,e){var n=this,o=this.pswp,r=o.potentialIndex+t,s=o.getNumItems();if(o.canLoop()){r=o.getLoopedIndex(r);var a=(t+s)%s;t=a<=s/2?a:a-s}else r<0?r=0:r>=s&&(r=s-1),t=r-o.potentialIndex;o.potentialIndex=r,this._currPositionIndex-=t,o.animations.stopMainScroll();var l=this.getCurrSlideX();if(i){o.animations.startSpring({isMainScroll:!0,start:this.x,end:l,velocity:e||0,naturalFrequency:30,dampingRatio:1,onUpdate:function(t){n.moveTo(t)},onComplete:function(){n.updateCurrItem(),o.appendHeavy()}});var u=o.potentialIndex-o.currIndex;if(o.canLoop()){var c=(u+s)%s;u=c<=s/2?c:c-s}Math.abs(u)>1&&this.updateCurrItem()}else this.moveTo(l),this.updateCurrItem();return Boolean(t)}},{key:"getCurrSlideX",value:function(){return this.slideWidth*this._currPositionIndex}},{key:"isShifted",value:function(){return this.x!==this.getCurrSlideX()}},{key:"updateCurrItem",value:function(){var t,i=this.pswp,e=this._prevPositionIndex-this._currPositionIndex;if(e){this._prevPositionIndex=this._currPositionIndex,i.currIndex=i.potentialIndex;var o,r=Math.abs(e);r>=3&&(this._containerShiftIndex+=e+(e>0?-3:3),r=3,this.itemHolders.forEach((function(t){var i;null===(i=t.slide)||void 0===i||i.destroy(),t.slide=void 0})));for(var s=0;s<r;s++)e>0?(o=this.itemHolders.shift())&&(this.itemHolders[2]=o,this._containerShiftIndex++,(0,n.BM)(o.el,(this._containerShiftIndex+2)*this.slideWidth),i.setContent(o,i.currIndex-r+s+2)):(o=this.itemHolders.pop())&&(this.itemHolders.unshift(o),this._containerShiftIndex--,(0,n.BM)(o.el,this._containerShiftIndex*this.slideWidth),i.setContent(o,i.currIndex+r-s-2));Math.abs(this._containerShiftIndex)>50&&!this.isShifted()&&(this.resetPosition(),this.resize()),i.animations.stopAllPan(),this.itemHolders.forEach((function(t,i){t.slide&&t.slide.setIsActive(1===i)})),i.currSlide=null===(t=this.itemHolders[1])||void 0===t?void 0:t.slide,i.contentLoader.updateLazy(e),i.currSlide&&i.currSlide.applyCurrentZoomPan(),i.dispatch("change")}}},{key:"moveTo",value:function(t,i){if(!this.pswp.canLoop()&&i){var e=(this.slideWidth*this._currPositionIndex-t)/this.slideWidth;e+=this.pswp.currIndex;var o=Math.round(t-this.x);(e<0&&o>0||e>=this.pswp.getNumItems()-1&&o<0)&&(t=this.x+.35*o)}this.x=t,this.pswp.container&&(0,n.BM)(this.pswp.container,t),this.pswp.dispatch("moveMainScroll",{x:t,dragging:null!=i&&i})}}
1])&&H(t.prototype,i),e&&H(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,i,e}();function q(t){return q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},q(t)}function Q(t,i){for(var e=0;e<i.length;e++){var n=i[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,U(n.key),n)}}function U(t){var i=function(t,i){if("object"!=q(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,i||"default");if("object"!=q(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(t)}(t,"string");return"symbol"==q(i)?i:i+""}var G={Escape:27,z:90,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Tab:9},K=function(t,i){return i?t:G[t]};const X=function(){return t=function t(i){var e=this;!function(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}(this,t),this.pswp=i,this._wasFocused=!1,i.on("bindEvents",(function(){i.options.trapFocus&&(i.options.initialPointerPos||e._focusRoot(),i.events.add(document,"focusin",e._onFocusIn.bind(e))),i.events.add(document,"keydown",e._onKeyDown.bind(e))}));var n=document.activeElement;i.on("destroy",(function(){i.options.returnFocus&&n&&e._wasFocused&&n.focus()}))},i=[{key:"_focusRoot",value:function(){!this._wasFocused&&this.pswp.element&&(this.pswp.element.focus(),this._wasFocused=!0)}},{key:"_onKeyDown",value:function(t){var i=this.pswp;if(!i.dispatch("keydown",{originalEvent:t}).defaultPrevented&&!(0,n.QK)(t)){var e,o,r=!1,s="key"in t;switch(s?t.key:t.keyCode){case K("Escape",s):i.options.escKey&&(e="close");break;case K("z",s):e="toggleZoom";break;case K("ArrowLeft",s):o="x";break;case K("ArrowUp",s):o="y";break;case K("ArrowRight",s):o="x",r=!0;break;case K("ArrowDown",s):r=!0,o="y";break;case K("Tab",s):this._focusRoot()}if(o){t.preventDefault();var a=i.currSlide;i.options.arrowKeys&&"x"===o&&i.getNumItems()>1?e=r?"next":"prev":a&&a.currZoomLevel>a.zoomLevels.fit&&(a.pan[o]+=r?-80:80,a.panTo(a.pan.x,a.pan.y))}e&&(t.preventDefault(),i[e]())}}},{key:"_onFocusIn",value:function(t){var i=this.pswp.template;i&&document!==t.target&&i!==t.target&&!i.contains(t.target)&&i.focus()}}],i&&Q(t.prototype,i),e&&Q(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,i,e}();function Y(t){return Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Y(t)}function J(t,i){for(var e=0;e<i.length;e++){var n=i[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,$(n.key),n)}}function $(t){var i=function(t,i){if("object"!=Y(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,i||"default");if("object"!=Y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(t)}(t,"string");return"symbol"==Y(i)?i:i+""}const tt=function(){return t=function t(i){var e,o=this;!function(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}(this,t),this.props=i;var r=i.target,s=i.onComplete,a=i.transform,l=i.onFinish,u=void 0===l?function(){}:l,c=i.duration,p=void 0===c?333:c,h=i.easing,d=void 0===h?"cubic-bezier(.4,0,.22,1)":h;this.onFinish=u;var m=a?"transform":"opacity",f=null!==(e=i[m])&&void 0!==e?e:"";this._target=r,this._onComplete=s,this._finished=!1,this._onTransitionEnd=this._onTransitionEnd.bind(this),this._helperTimeout=setTimeout((function(){(0,n.Fw)(r,m,p,d),o._helperTimeout=setTimeout((function(){r.addEventListener("transitionend",o._onTransitionEnd,!1),r.addEventListener("transitioncancel",o._onTransitionEnd,!1),o._helperTimeout=setTimeout((function(){o._finalizeAnimation()}),p+500),r.style[m]=f}),30)}),0)},i=[{key:"_onTransitionEnd",value:function(t){t.target===this._target&&this._finalizeAnimation()}},{key:"_finalizeAnimation",value:function(){this._finished||(this._finished=!0,this.onFinish(),this._onComplete&&this._onComplete())}},{key:"destroy",value:function(){this._helperTimeout&&clearTimeout(this._helperTimeout),(0,n.BJ)(this._target),this._target.removeEventListener("transitionend",this._onTransitionEnd,!1),this._target.removeEventListener("transitioncancel",this._onTransitionEnd,!1),this._finished||this._finalizeAnimation()}}
1],i&&J(t.prototype,i),e&&J(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,i,e}();function it(t){return it="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},it(t)}function et(t,i){for(var e=0;e<i.length;e++){var n=i[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,nt(n.key),n)}}function nt(t){var i=function(t,i){if("object"!=it(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,i||"default");if("object"!=it(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(t)}(t,"string");return"symbol"==it(i)?i:i+""}const ot=function(){return t=function t(i,e,n){!function(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}(this,t),this.velocity=1e3*i,this._dampingRatio=e||.75,this._naturalFrequency=n||12,this._dampedFrequency=this._naturalFrequency,this._dampingRatio<1&&(this._dampedFrequency*=Math.sqrt(1-this._dampingRatio*this._dampingRatio))},(i=[{key:"easeFrame",value:function(t,i){var e,n=0;i/=1e3;var o=Math.pow(Math.E,-this._dampingRatio*this._naturalFrequency*i);if(1===this._dampingRatio)n=(t+(e=this.velocity+this._naturalFrequency*t)*i)*o,this.velocity=n*-this._naturalFrequency+e*o;else if(this._dampingRatio<1){e=1/this._dampedFrequency*(this._dampingRatio*this._naturalFrequency*t+this.velocity);var r=Math.cos(this._dampedFrequency*i),s=Math.sin(this._dampedFrequency*i);n=o*(t*r+e*s),this.velocity=n*-this._naturalFrequency*this._dampingRatio+o*(-this._dampedFrequency*t*s+this._dampedFrequency*e*r)}return n}}])&&et(t.prototype,i),e&&et(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,i,e}();function rt(t){return rt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rt(t)}function st(t,i){for(var e=0;e<i.length;e++){var n=i[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,at(n.key),n)}}function at(t){var i=function(t,i){if("object"!=rt(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,i||"default");if("object"!=rt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(t)}(t,"string");return"symbol"==rt(i)?i:i+""}const lt=function(){return t=function t(i){var e=this;!function(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}(this,t),this.props=i,this._raf=0;var n=i.start,o=i.end,r=i.velocity,s=i.onUpdate,a=i.onComplete,l=i.onFinish,u=void 0===l?function(){}:l,c=i.dampingRatio,p=i.naturalFrequency;this.onFinish=u;var h=new ot(r,c,p),d=Date.now(),m=n-o;this._raf=requestAnimationFrame((function t(){e._raf&&(m=h.easeFrame(m,Date.now()-d),Math.abs(m)<1&&Math.abs(h.velocity)<50?(s(o),a&&a(),e.onFinish()):(d=Date.now(),s(m+o),e._raf=requestAnimationFrame(t)))}))},(i=[{key:"destroy",value:function(){this._raf>=0&&cancelAnimationFrame(this._raf),this._raf=0}}])&&st(t.prototype,i),e&&st(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,i,e}();function ut(t){return ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ut(t)}function ct(t,i){for(var e=0;e<i.length;e++){var n=i[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,pt(n.key),n)}}function pt(t){var i=function(t,i){if("object"!=ut(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,i||"default");if("object"!=ut(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(t)}(t,"string");return"symbol"==ut(i)?i:i+""}const ht=function(){return t=function t(){!function(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}(this,t),this.activeAnimations=[]},(i=[{key:"startSpring",value:function(t){this._start(t,!0)}},{key:"startTransition",value:function(t){this._start(t)}},{key:"_start",value:function(t,i){var e=this,n=i?new lt(t):new tt(t);return this.activeAnimations.push(n),n.onFinish=function(){return e.stop(n)},n}},{key:"stop",value:function(t){t.destroy();var i=this.activeAnimations.indexOf(t);i>-1&&this.activeAnimations.splice(i,1)}},{key:"stopAll",value:function(){this.activeAnimations.forEach((function(t){t.destroy()})),this.activeAnimations=[]}},{key:"stopAllPan",value:function(){this.activeAnimations=this.activeAnimations.filter((function(t){return!t.props.isPan||(t.destroy(),!1)}))}},{key:"stopMainScroll",value:function(){this.activeAnimations=this.activeAnimations.filter((function(t){return!t.props.isMainScroll||(t.de
1stroy(),!1)}))}},{key:"isPanRunning",value:function(){return this.activeAnimations.some((function(t){return t.props.isPan}))}}])&&ct(t.prototype,i),e&&ct(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,i,e}();function dt(t){return dt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dt(t)}function mt(t,i){for(var e=0;e<i.length;e++){var n=i[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ft(n.key),n)}}function ft(t){var i=function(t,i){if("object"!=dt(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,i||"default");if("object"!=dt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(t)}(t,"string");return"symbol"==dt(i)?i:i+""}const vt=function(){return t=function t(i){!function(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}(this,t),this.pswp=i,i.events.add(i.element,"wheel",this._onWheel.bind(this))},i=[{key:"_onWheel",value:function(t){t.preventDefault();var i=this.pswp.currSlide,e=t.deltaX,n=t.deltaY;if(i&&!this.pswp.dispatch("wheel",{originalEvent:t}).defaultPrevented)if(t.ctrlKey||this.pswp.options.wheelToZoom){if(i.isZoomable()){var o=-n;1===t.deltaMode?o*=.05:o*=t.deltaMode?1:.002,o=Math.pow(2,o);var r=i.currZoomLevel*o;i.zoomTo(r,{x:t.clientX,y:t.clientY})}}else i.isPannable()&&(1===t.deltaMode&&(e*=18,n*=18),i.panTo(i.pan.x-e,i.pan.y-n))}}],i&&mt(t.prototype,i),e&&mt(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,i,e}();function yt(t){return yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yt(t)}function bt(t,i){for(var e=0;e<i.length;e++){var n=i[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,_t(n.key),n)}}function gt(t,i,e){return i&&bt(t.prototype,i),e&&bt(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function _t(t){var i=function(t,i){if("object"!=yt(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,i||"default");if("object"!=yt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(t)}(t,"string");return"symbol"==yt(i)?i:i+""}const wt=gt((function t(i,e){var o;!function(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}(this,t);var r=e.name||e.className,s=e.html;if(!1!==i.options[r]){"string"==typeof i.options[r+"SVG"]&&(s=i.options[r+"SVG"]),i.dispatch("uiElementCreate",{data:e});var a="";e.isButton?(a+="pswp__button ",a+=e.className||"pswp__button--".concat(e.name)):a+=e.className||"pswp__".concat(e.name);var l=e.isButton?e.tagName||"button":e.tagName||"div";l=l.toLowerCase();var u=(0,n.n)(a,l);if(e.isButton){"button"===l&&(u.type="button");var c=e.title,p=e.ariaLabel;"string"==typeof i.options[r+"Title"]&&(c=i.options[r+"Title"]),c&&(u.title=c);var h=p||c;h&&u.setAttribute("aria-label",h)}u.innerHTML=function(t){if("string"==typeof t)return t;if(!t||!t.isCustomSVG)return"";
1var i=t,e='<svg aria-hidden="true" class="pswp__icn" viewBox="0 0 %d %d" width="%d" height="%d">';return e=e.split("%d").join(i.size||32),i.outlineID&&(e+='<use class="pswp__icn-shadow" xlink:href="#'+i.outlineID+'"/>'),e+=i.inner,e+"</svg>"}(s),e.onInit&&e.onInit(u,i),e.onClick&&(u.onclick=function(t){"string"==typeof e.onClick?i[e.onClick]():"function"==typeof e.onClick&&e.onClick(t,u,i)});var d=e.appendTo||"bar",m=i.element;"bar"===d?(i.topBar||(i.topBar=(0,n.n)("pswp__top-bar pswp__hide-on-close","div",i.scrollWrap)),m=i.topBar):(u.classList.add("pswp__hide-on-close"),"wrapper"===d&&(m=i.scrollWrap)),null===(o=m)||void 0===o||o.appendChild(i.applyFilters("uiElement",u,e))}}));function Pt(t,i,e){t.classList.add("pswp__button--arrow"),t.setAttribute("aria-controls","pswp__items"),i.on("change",(function(){i.options.loop||(t.disabled=e?!(i.currIndex<i.getNumItems()-1):!(i.currIndex>0))}))}var St={name:"arrowPrev",className:"pswp__button--arrow--prev",title:"Previous",order:10,isButton:!0,appendTo:"wrapper",html:{isCustomSVG:!0,size:60,inner:'<path d="M29 43l-3 3-16-16 16-16 3 3-13 13 13 13z" id="pswp__icn-arrow"/>',outlineID:"pswp__icn-arrow"},onClick:"prev",onInit:Pt},xt={name:"arrowNext",className:"pswp__button--arrow--next",title:"Next",order:11,isButton:!0,appendTo:"wrapper",html:{isCustomSVG:!0,size:60,inner:'<use xlink:href="#pswp__icn-arrow"/>',outlineID:"pswp__icn-arrow"},onClick:"next",onInit:function(t,i){Pt(t,i,!0)}};const Tt={name:"close",title:"Close",order:20,isButton:!0,html:{isCustomSVG:!0,inner:'<path d="M24 10l-2-2-6 6-6-6-2 2 6 6-6 6 2 2 6-6 6 6 2-2-6-6z" id="pswp__icn-close"/>',outlineID:"pswp__icn-close"},onClick:"close"};const kt={name:"zoom",title:"Zoom",order:10,isButton:!0,html:{isCustomSVG:!0,inner:'<path d="M17.426 19.926a6 6 0 1 1 1.5-1.5L23 22.5 21.5 24l-4.074-4.074z" id="pswp__icn-zoom"/><path fill="currentColor" class="pswp__zoom-icn-bar-h" d="M11 16v-2h6v2z"/><path fill="currentColor" class="pswp__zoom-icn-bar-v" d="M13 12h2v6h-2z"/>',outlineID:"pswp__icn-zoom"},onClick:"toggleZoom"};var Ot={name:"preloader",appendTo:"bar",order:7,html:{isCustomSVG:!0,inner:'<path fill-rule="evenodd" clip-rule="evenodd" d="M21.2 16a5.2 5.2 0 1 1-5.2-5.2V8a8 8 0 1 0 8 8h-2.8Z" id="pswp__icn-loading"/>',outlineID:"pswp__icn-loading"},onInit:function(t,i){var e,n=null,o=function(i){var n,o;e!==i&&(e=i,n="active",o=i,t.classList.toggle("pswp__preloader--"+n,o))},r=function(){var t;if(null===(t=i.currSlide)||void 0===t||!t.content.isLoading())return o(!1),void(n&&(clearTimeout(n),n=null));n||(n=setTimeout((function(){var t;o(Boolean(null===(t=i.currSlide)||void 0===t?void 0:t.content.isLoading())),n=null}),i.options.preloaderDelay))};i.on("change",r),i.on("loadComplete",(function(t){i.currSlide===t.slide&&r()})),i.ui&&(i.ui.updatePreloaderVisibility=r)}},Ct={name:"counter",order:5,onInit:function(t,i){i.on("change",(function(){t.innerText=i.currIndex+1+i.options.indexIndicatorSep+i.getNumItems()}))}};function Lt(t){return Lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lt(t)}function At(t,i){for(var e=0;e<i.length;e++){var n=i[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,zt(n.key),n)}}function zt(t){var i=function(t,i){if("object"!=Lt(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,i||"default");if("object"!=Lt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(t)}(t,"string");return"symbol"==Lt(i)?i:i+""}function Et(t,i){t.classList.toggle("pswp--zoomed-in",i)}const Zt=function(){return t=function t(i){!function(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}(this,t),this.pswp=i,this.isRegistered=!1,this.uiElementsData=[],this.items=[],this.updatePreloaderVisibility=function(){},this._lastUpdatedZoomLevel=void 0},(i=[{key:"init",value:function(){var t=this,i=this.pswp;this.isRegistered=!1,this.uiElementsData=[Tt,St,xt,kt,Ot,Ct],i.dispatch("uiRegister"),this.uiElementsData.sort((function(t,i){return(t.order||0)-(i.order||0)})),this.items=[],this.isRegistered=!0,this.uiElementsData.forEach((function(i){t.registerElement(i)})),i.on("change",(function(){var t;null===(t=i.element)||void 0===t||t.classList.toggle("pswp--one-slide",1===i.getNumItems())})),i.on("zoomPanUpdate",(function(){return t._onZoomPanUpdate()}))}},{key:"registerElement",value:function(t){this.isRegistered?this.items.push(new wt(this.pswp,t)):this.uiElementsData.push(t)}},{key:"_onZoomPanUpdate",value:function(){var t=this.pswp,i=t.template,e=t.currSlide,n=t.options;if(!this.pswp.opener.isClosing&&i&&e){var o=e.currZoomLevel;if(this.pswp.opener.isOpen||(o=e.zoomLevels.initial),o!==this._lastUpdatedZoomLevel){this._lastUpdatedZoomLevel=o;var r=e.zoomLevels.initial-e.zoomLevels.secondary;if(Math.abs(r)<.01||!e.isZoomable())return Et(i,!1),void i.classList.remove("pswp--zoom-allowed");i.classList.add("pswp--zoom-allowed"),Et(i,(o===e.zoomLevels.initial?e.zoomLevels.secondary:e.zoomLevels.initial)<=o),"zoom"!==n.imageClickAction&&"zoom-or-close"!==n.imageClickAction||i.classList.add("pswp--cl
1ick-to-zoom")}}}}])&&At(t.prototype,i),e&&At(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,i,e}();var It=e(366);function Bt(t){return Bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bt(t)}function Dt(t,i){for(var e=0;e<i.length;e++){var n=i[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,jt(n.key),n)}}function jt(t){var i=function(t,i){if("object"!=Bt(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,i||"default");if("object"!=Bt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(t)}(t,"string");return"symbol"==Bt(i)?i:i+""}var Mt=.003,Ft=function(){return t=function t(i){!function(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}(this,t),this.pswp=i,this.isClosed=!0,this.isOpen=!1,this.isClosing=!1,this.isOpening=!1,this._duration=void 0,this._useAnimation=!1,this._croppedZoom=!1,this._animateRootOpacity=!1,this._animateBgOpacity=!1,this._placeholder=void 0,this._opacityElement=void 0,this._cropContainer1=void 0,this._cropContainer2=void 0,this._thumbBounds=void 0,this._prepareOpen=this._prepareOpen.bind(this),i.on("firstZoomPan",this._prepareOpen)},i=[{key:"open",value:function(){this._prepareOpen(),this._start()}},{key:"close",value:function(){var t=this;if(!(this.isClosed||this.isClosing||this.isOpening)){var i=this.pswp.currSlide;this.isOpen=!1,this.isOpening=!1,this.isClosing=!0,this._duration=this.pswp.options.hideAnimationDuration,i&&i.currZoomLevel*i.width>=this.pswp.options.maxWidthToAnimate&&(this._duration=0),this._applyStartProps(),setTimeout((function(){t._start()}),this._croppedZoom?30:0)}}},{key:"_prepareOpen",value:function(){if(this.pswp.off("firstZoomPan",this._prepareOpen),!this.isOpening){var t=this.pswp.currSlide;this.isOpening=!0,this.isClosing=!1,this._duration=this.pswp.options.showAnimationDuration,t&&t.zoomLevels.initial*t.width>=this.pswp.options.maxWidthToAnimate&&(this._duration=0),this._applyStartProps()}}},{key:"_applyStartProps",value:function(){var t,i,e=this.pswp,n=this.pswp.currSlide,o=e.options;if("fade"===o.showHideAnimationType?(o.showHideOpacity=!0,this._thumbBounds=void 0):"none"===o.showHideAnimationType?(o.showHideOpacity=!1,this._duration=0,this._thumbBounds=void 0):this.isOpening&&e._initialThumbBounds?this._thumbBounds=e._initialThumbBounds:this._thumbBounds=this.pswp.getThumbBounds(),this._placeholder=null==n?void 0:n.getPlaceholderElement(),e.animations.stopAll(),this._useAnimation=Boolean(this._duration&&this._duration>50),this._animateZoom=Boolean(this._thumbBounds)&&(null==n?void 0:n.content.usePlaceholder())&&(!this.isClosing||!e.mainScroll.isShifted()),this._animateZoom?this._animateRootOpacity=null!==(t=o.showHideOpacity)&&void 0!==t&&t:(this._animateRootOpacity=!0,this.isOpening&&n&&(n.zoomAndPanToInitial(),n.applyCurrentZoomPan())),this._animateBgOpacity=!this._animateRootOpacity&&this.pswp.options.bgOpacity>Mt,this._opacityElement=this._animateRootOpacity?e.element:e.bg,!this._useAnimation)return this._duration=0,this._animateZoom=!1,this._animateBgOpacity=!1,this._animateRootOpacity=!0,void(this.isOpening&&(e.element&&(e.element.style.opacity=String(Mt)),e.applyBgOpacity(1)));this._animateZoom&&this._thumbBounds&&this._thumbBounds.innerRect?(this._croppedZoom=!0,this._cropContainer1=this.pswp.container,this._cropContainer2=null===(i=this.pswp.currSlide)||void 0===i?void 0:i.holderElement,e.container&&(e.container.style.overflow="hidden",e.container.style.width=e.viewportSize.x+"px")):this._croppedZoom=!1,this.isOpening?(this._animateRootOpacity?(e.element&&(e.element.style.opacity=String(Mt)),e.applyBgOpacity(1)):(this._animateBgOpacity&&e.bg&&(e.bg.style.opacity=String(Mt)),e.element&&(e.element.style.opacity="1")),this._animateZoom&&(this._setClosedStateZoomPan(),this._placeholder&&(this._placeholder.style.willChange="transform",this._placeholder.style.opacity=String(Mt)))):this.isClosing&&(e.mainScroll.itemHolders[0]&&(e.mainScroll.itemHolders[0].el.style.display="none"),e.mainScroll.itemHolders[2]&&(e.mainScroll.itemHolders[2].el.style.display="none"),this._croppedZoom&&0!==e.mainScroll.x&&(e.mainScroll.resetPosition(),e.mainScroll.resize()))}},{key:"_start",value:function(){var t=this;this.isOpening&&this._useAnimation&&this._placeholder&&"IMG"===this._placeholder.tagName?new Promise((function(i){var e=!1,o=!0;(0,n.UD)(t._placeholder).finally((function(){e=!0,o||i(!0)})),setTimeout((function(){o=!1,e&&i(!0)}),50),setTimeout(i,250)})).finally((function(){return t._initiate()})):this._initiate()}},{key:"_initiate",value:function(){var t,i;null===(t=this.pswp.element)||void 0===t||t.style.setProperty("--pswp-transition-duration",this._duration+"ms"),this.pswp.dispatch(this.isOpening?"openingAnimationStart":"closingAnimationStart"),this.pswp.dispatch("initialZoom"+(this.isOpening?"In":"Out")),null===(i=this.pswp.element)||void 0===i||i.classList.toggle("pswp--ui-visible",this.isOpening),this.isOpening?(this._placeholder&&(this._placeholder.style.opacity="1"),this._animateToOpenState()):this.isClosing&&this._animateToClosedState(),this._useAnimation||this._onAnimationComplete()}},{key:"_onAnimationComplete",value:function(){var t=this.pswp;if(this.isOpen=this.isOpening,this.isClosed=this.isClosing,this.isOpening=!1,this.isClosing=!1,t.dispatch(this.isOpen?"openingAnimationEnd":"closingAnimationEnd"),t.dispatch("initialZoom"+(this.isOpen?"InEnd":"OutEnd")),this.isClosed)t.destroy();else if(this.isOpen){var i;this._animateZoom&&t.container&&(t.container.style.overflow="visible",t.container.style.width="100%"),null===(i=t.currSlide)||void 0===i||i.applyCurrentZoomPan()}}},{key:"_animateToOpenState",value:function(){var t=this.pswp;this._animateZoom&&(this._croppedZoom&&this._cropContainer1&&this._cropContainer2&&(this._animateTo(this._cropContainer1,"transform","translate3d(0,
10,0)"),this._animateTo(this._cropContainer2,"transform","none")),t.currSlide&&(t.currSlide.zoomAndPanToInitial(),this._animateTo(t.currSlide.container,"transform",t.currSlide.getCurrentTransform()))),this._animateBgOpacity&&t.bg&&this._animateTo(t.bg,"opacity",String(t.options.bgOpacity)),this._animateRootOpacity&&t.element&&this._animateTo(t.element,"opacity","1")}},{key:"_animateToClosedState",value:function(){var t=this.pswp;this._animateZoom&&this._setClosedStateZoomPan(!0),this._animateBgOpacity&&t.bgOpacity>.01&&t.bg&&this._animateTo(t.bg,"opacity","0"),this._animateRootOpacity&&t.element&&this._animateTo(t.element,"opacity","0")}},{key:"_setClosedStateZoomPan",value:function(t){if(this._thumbBounds){var i=this.pswp,e=this._thumbBounds.innerRect,o=i.currSlide,r=i.viewportSize;if(this._croppedZoom&&e&&this._cropContainer1&&this._cropContainer2){var s=-r.x+(this._thumbBounds.x-e.x)+e.w,a=-r.y+(this._thumbBounds.y-e.y)+e.h,l=r.x-e.w,u=r.y-e.h;t?(this._animateTo(this._cropContainer1,"transform",(0,n.n9)(s,a)),this._animateTo(this._cropContainer2,"transform",(0,n.n9)(l,u))):((0,n.BM)(this._cropContainer1,s,a),(0,n.BM)(this._cropContainer2,l,u))}o&&((0,n.QB)(o.pan,e||this._thumbBounds),o.currZoomLevel=this._thumbBounds.w/o.width,t?this._animateTo(o.container,"transform",o.getCurrentTransform()):o.applyCurrentZoomPan())}}},{key:"_animateTo",value:function(t,i,e){var n=this;if(this._duration){var o=this.pswp.animations,r={duration:this._duration,easing:this.pswp.options.easing,onComplete:function(){o.activeAnimations.length||n._onAnimationComplete()},target:t};r[i]=e,o.startTransition(r)}else t.style[i]=e}}],i&&Dt(t.prototype,i),e&&Dt(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,i,e}();const Rt=Ft;var Nt=e(819);function Ht(t){return Ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ht(t)}function Wt(t,i){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);i&&(n=n.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),e.push.apply(e,n)}return e}function Vt(t){for(var i=1;i<arguments.length;i++){var e=null!=arguments[i]?arguments[i]:{};i%2?Wt(Object(e),!0).forEach((function(i){qt(t,i,e[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Wt(Object(e)).forEac
1h((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))}))}return t}function qt(t,i,e){return(i=Ut(i))in t?Object.defineProperty(t,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[i]=e,t}function Qt(t,i){for(var e=0;e<i.length;e++){var n=i[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ut(n.key),n)}}function Ut(t){var i=function(t,i){if("object"!=Ht(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,i||"default");if("object"!=Ht(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(t)}(t,"string");return"symbol"==Ht(i)?i:i+""}function Gt(t,i,e){return i=Xt(i),function(t,i){if(i&&("object"==Ht(i)||"function"==typeof i))return i;if(void 0!==i)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Kt()?Reflect.construct(i,e||[],Xt(t).constructor):i.apply(t,e))}function Kt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Kt=function(){return!!t})()}function Xt(t){return Xt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Xt(t)}function Yt(t,i){return Yt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,i){return t.__proto__=i,t},Yt(t,i)}var Jt={allowPanToNext:!0,spacing:.1,loop:!0,pinchToClose:!0,closeOnVerticalDrag:!0,hideAnimationDuration:333,showAnimationDuration:333,zoomAnimationDuration:333,escKey:!0,arrowKeys:!0,trapFocus:!0,returnFocus:!0,maxWidthToAnimate:4e3,clickToCloseNonZoomable:!0,imageClickAction:"zoom-or-close",bgClickAction:"close",tapAction:"toggle-controls",doubleTapAction:"zoom",indexIndicatorSep:" / ",preloaderDelay:2e3,bgOpacity:.8,index:0,errorMsg:"The image cannot be loaded",preload:[1,2],easing:"cubic-bezier(.4,0,.22,1)"};const $t=function(t){function i(t){var e;return function(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}(this,i),(e=Gt(this,i)).options=e._prepareOptions(t||{}),e.offset={x:0,y:0},e._prevViewportSize={x:0,y:0},e.viewportSize={x:0,y:0},e.bgOpacity=1,e.currIndex=0,e.potentialIndex=0,e.isOpen=!1,e.isDestroying=!1,e.hasMouse=!1,e._initialItemData={},e._initialThumbBounds=void 0,e.topBar=void 0,e.element=void 0,e.template=void 0,e.container=void 0,e.scrollWrap=void 0,e.currSlide=void 0,e.events=new l,e.animations=new ht,e.mainScroll=new V(e),e.gestures=new R(e),e.opener=new Rt(e),e.keyboard=new X(e),e.contentLoader=new Nt.Ay(e),e}return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(i&&i.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),i&&Yt(t,i)}(i,t),e=i,o=[{key:"init",value:function(){var t=this;if(this.isOpen||this.isDestroying)return!1;this.isOpen=!0,this.dispatch("init"),this.dispatch("beforeOpen"),this._createMainStructure();var i="pswp--open";return this.gestures.supportsTouch&&(i+=" pswp--touch"),this.options.mainClass&&(i+=" "+this.options.mainClass),this.element&&(this.element.className+=" "+i),this.currIndex=this.options.index||0,this.potentialIndex=this.currIndex,this.dispatch("firstUpdate"),this.scrollWheel=new vt(this),(Number.isNaN(this.currIndex)||this.currIndex<0||this.currIndex>=this.getNumItems())&&(this.currIndex=0),this.gestures.supportsTouch||this.mouseDetected(),this.updateSize(),this.offset.y=window.pageYOffset,this._initialItemData=this.getItemData(this.currIndex),this.dispatch("gettingData",{index:this.currIndex,data:this._initialItemData,slide:void 0}),this._initialThumbBounds=this.getThumbBounds(),this.dispatch("initialLayout"),this.on("openingAnimationEnd",(function(){var i=t.mainScroll.itemHolders;i[0]&&(i[0].el.style.display="block",t.setContent(i[0],t.currIndex-1)),i[2]&&(i[2].el.style.display="block",t.setContent(i[2],t.currIndex+1)),t.appendHeavy(),t.contentLoader.updateLazy(),t.events.add(window,"resize",t._handlePageResize.bind(t)),t.events.add(window,"scroll",t._updatePageScrollOffset.bind(t)),t.dispatch("bindEvents")})),this.mainScroll.itemHolders[1]&&this.setContent(this.mainScroll.itemHolders[1],this.currIndex),this.dispatch("change"),this.opener.open(),this.dispatch("afterInit"),!0}},{key:"getLoopedIndex",value:function(t){var i=this.getNumItems();return this.options.loop&&(t>i-1&&(t-=i),t<0&&(t+=i)),(0,n.qE)(t,0,i-1)}},{key:"appendHeavy",value:function(){this.mainScroll.itemHolders.forEac
1h((function(t){var i;null===(i=t.slide)||void 0===i||i.appendHeavy()}))}},{key:"goTo",value:function(t){this.mainScroll.moveIndexBy(this.getLoopedIndex(t)-this.potentialIndex)}},{key:"next",value:function(){this.goTo(this.potentialIndex+1)}},{key:"prev",value:function(){this.goTo(this.potentialIndex-1)}},{key:"zoomTo",value:function(){for(var t,i=arguments.length,e=new Array(i),n=0;n<i;n++)e[n]=arguments[n];null===(t=this.currSlide)||void 0===t||t.zoomTo.apply(t,e)}},{key:"toggleZoom",value:function(){var t;null===(t=this.currSlide)||void 0===t||t.toggleZoom()}},{key:"close",value:function(){this.opener.isOpen&&!this.isDestroying&&(this.isDestroying=!0,this.dispatch("close"),this.events.removeAll(),this.opener.close())}},{key:"destroy",value:function(){var t;if(!this.isDestroying)return this.options.showHideAnimationType="none",void this.close();this.dispatch("destroy"),this._listeners={},this.scrollWrap&&(this.scrollWrap.ontouchmove=null,this.scrollWrap.ontouchend=null),null===(t=this.element)||void 0===t||t.remove(),this.mainScroll.itemHolders.forEach((function(t){var i;null===(i=t.slide)||void 0===i||i.destroy()})),this.contentLoader.destroy(),this.events.removeAll()}},{key:"refreshSlideContent",value:function(t){var i=this;this.contentLoader.removeByIndex(t),this.mainScroll.itemHolders.forEach((function(e,n){var o,r,s,a=(null!==(o=null===(r=i.currSlide)||void 0===r?void 0:r.index)&&void 0!==o?o:0)-1+n;i.canLoop()&&(a=i.getLoopedIndex(a)),a===t&&(i.setContent(e,t,!0),1===n&&(i.currSlide=e.slide,null===(s=e.slide)||void 0===s||s.setIsActive(!0)))})),this.dispatch("change")}},{key:"setContent",value:function(t,i,e){if(this.canLoop()&&(i=this.getLoopedIndex(i)),t.slide){if(t.slide.index===i&&!e)return;t.slide.destroy(),t.slide=void 0}if(this.canLoop()||!(i<0||i>=this.getNumItems())){var n=this.getItemData(i);t.slide=new g(n,i,this),i===this.currIndex&&(this.currSlide=t.slide),t.slide.append(t.el)}}},{key:"getViewportCenterPoint",value:function(){return{x:this.viewportSize.x/2,y:this.viewportSize.y/2}}},{key:"updateSize",value:function(t){if(!this.isDestroying){var i=(0,u.M5)(this.options,this);!t&&(0,n.E4)(i,this._prevViewportSize)||((0,n.QB)(this._prevViewportSize,i),this.dispatch("beforeResize"),(0,n.QB)(this.viewportSize,this._prevViewportSize),this._updatePageScrollOffset(),this.dispatch("viewportSize"),this.mainScroll.resize(this.opener.isOpen),!this.hasMouse&&window.matchMedia("(any-hover: hover)").matches&&this.mouseDetected(),this.dispatch("resize"))}}},{key:"applyBgOpacity",value:function(t){this.bgOpacity=Math.max(t,0),this.bg&&(this.bg.style.opacity=String(this.bgOpacity*this.options.bgOpacity))}},{key:"mouseDetected",value:function(){var t;this.hasMouse||(this.hasMouse=!0,null===(t=this.element)||void 0===t||t.classList.add("pswp--has_mouse"))}},{key:"_handlePageResize",value:function(){var t=this;this.updateSize(),/iPhone|iPad|iPod/i.test(window.navigator.userAgent)&&setTimeout((function(){t.updateSize()}),500)}},{key:"_updatePageScrollOffset",value:function(){this.setScrollOffset(0,window.pageYOffset)}},{key:"setScrollOffset",value:function(t,i){this.offset.x=t,this.offset.y=i,this.dispatch("updateScrollOffset")}},{key:"_createMainStructure",value:function(){this.element=(0,n.n)("pswp","div"),this.element.setAttribute("tabindex","-1"),this.element.setAttribute("role","dialog"),this.template=this.element,this.bg=(0,n.n)("pswp__bg","div",this.element),this.scrollWrap=(0,n.n)("pswp__scroll-wrap","section",this.element),this.container=(0,n.n)("pswp__container","div",this.scrollWrap),this.scrollWrap.setAttribute("aria-roledescription","carousel"),this.container.setAttribute("aria-live","off"),this.container.setAttribute("id","pswp__items"),this.mainScroll.appendHolders(),this.ui=new Zt(this),this.ui.init(),(this.options.appendToEl||document.body).appendChild(this.element)}},{key:"getThumbBounds",value:function(){return function(t,i,e){var n=e.dispatch("thumbBounds",{index:t,itemData:i,instance:e});if(n.thumbBounds)return n.thumbBounds;var o,r,s,a=i.element;if(a&&!1!==e.options.thumbSelector){var l=e.options.thumbSelector||"img";r=a.matches(l)?a:a.querySelector(l)}return(r=e.applyFilters("thumbEl",r,i,t))&&(o=i.thumbCropped?function(t,i,e){var n=t.getBoundingClientRect(),o=n.width/i,r=n.height/e,s=o>r?o:r,a=(n.width-i*s)/2,l=(n.height-e*s)/2,u={x:n.left+a,y:n.top+l,w:i*s};return u.innerRect={w:n.width,h:n.height,x:a,y:l},u}(r,i.width||i.w||0,i.height||i.h||0):{x:(s=r.getBoundingClientRect()).left,y:s.top,w:s.width}),e.applyFilters("thumbBounds",o,i,t)}(this.currIndex,this.currSlide?this.currSlide.data:this._initialItemData,this)}},{key:"canLoop",value:function(){return this.options.loop&&this.getNumItems()>2}},{key:"_prepareOptions",value:function(t){return window.matchMedia("(prefers-reduced-motion), (update: slow)").matches&&(t.showHideAnimationType="none",t.zoomAnimationDuration=0),Vt(Vt({},Jt),t)}}],o&&Qt(e.prototype,o),r&&Qt(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,o,r}(It.A)}}]);

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.