!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).FloatingUIT4sCore={})}(this,function(e){"use strict";function t(e){return e.split("-")[0]}function n(e){return e.split("-")[1]}function i(e){return["top","bottom"].includes(t(e))?"x":"y"}function o(e){return"y"===e?"height":"width"}function a(e,a,r){let{reference:s,floating:l}=e;const c=s.x+s.width/2-l.width/2,d=s.y+s.height/2-l.height/2,u=i(a),p=o(u),m=s[p]/2-l[p]/2,f="x"===u;let h;switch(t(a)){case"top":h={x:c,y:s.y-l.height};break;case"bottom":h={x:c,y:s.y+s.height};break;case"right":h={x:s.x+s.width,y:d};break;case"left":h={x:s.x-l.width,y:d};break;default:h={x:s.x,y:s.y}}switch(n(a)){case"start":h[u]-=m*(r&&f?-1:1);break;case"end":h[u]+=m*(r&&f?-1:1)}return h}function r(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function s(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function l(e,t){var n;void 0===t&&(t={});const{x:i,y:o,platform:a,rects:l,elements:c,strategy:d}=e,{boundary:u="clippingAncestors",rootBoundary:p="viewport",elementContext:m="floating",altBoundary:f=!1,padding:h=0}=t,g=r(h),v=c[f?"floating"===m?"reference":"floating":m],y=s(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(v)))||n?v:v.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(c.floating)),boundary:u,rootBoundary:p})),w=s(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===m?{...l.floating,x:i,y:o}:l.reference,offsetParent:await(null==a.getOffsetParent?void 0:a.getOffsetParent(c.floating)),strategy:d}):l[m]);return{top:y.top-w.top+g.top,bottom:w.bottom-y.bottom+g.bottom,left:y.left-w.left+g.left,right:w.right-y.right+g.right}}const c=Math.min,d=Math.max;function u(e,t,n){return d(e,c(t,n))}const p={left:"right",right:"left",bottom:"top",top:"bottom"};function m(e){return e.replace(/left|right|bottom|top/g,e=>p[e])}function f(e,t,a){void 0===a&&(a=!1);const r=n(e),s=i(e),l=o(s);let c="x"===s?r===(a?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[l]>t.floating[l]&&(c=m(c)),{main:c,cross:m(c)}}const h={start:"end",end:"start"};function g(e){return e.replace(/start|end/g,e=>h[e])}const v=["top","right","bottom","left"],y=v.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);function w(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function T(e){return v.some(t=>e[t]>=0)}function S(e){return"x"===e?"y":"x"}e.arrow=(e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:a=0}=null!=e?e:{},{x:s,y:l,placement:c,rects:d,platform:p}=t;if(null==n)return{};const m=r(a),f={x:s,y:l},h=i(c),g=o(h),v=await p.getDimensions(n),y="y"===h?"top":"left",w="y"===h?"bottom":"right",T=d.reference[g]+d.reference[h]-f[h]-d.floating[g],S=f[h]-d.reference[h],b=await(null==p.getOffsetParent?void 0:p.getOffsetParent(n)),x=b?"y"===h?b.clientHeight||0:b.clientWidth||0:0,_=T/2-S/2,C=m[y],P=x-v[g]-m[w],k=x/2-v[g]/2+_,I=u(C,k,P);return{data:{[h]:I,centerOffset:k-I}}}})),e.autoPlacement=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(i){var o,a,r,s,c;const{x:d,y:u,rects:p,middlewareData:m,placement:h,platform:v,elements:w}=i,{alignment:T=null,allowedPlacements:S=y,autoAlignment:b=!0,...x}=e,_=function(e,i,o){return(e?[...o.filter(t=>n(t)===e),...o.filter(t=>n(t)!==e)]:o.filter(e=>t(e)===e)).filter(t=>!e||n(t)===e||!!i&&g(t)!==t)}(T,b,S),C=await l(i,x),P=null!=(o=null==(a=m.autoPlacement)?void 0:a.index)?o:0,k=_[P],{main:I,cross:D}=f(k,p,await(null==v.isRTL?void 0:v.isRTL(w.floating)));if(h!==k)return{x:d,y:u,reset:{skip:!1,placement:_[0]}};const A=[C[t(k)],C[I],C[D]],M=[...null!=(r=null==(s=m.autoPlacement)?void 0:s.overflows)?r:[],{placement:k,overflows:A}],O=_[P+1];if(O)return{data:{index:P+1,overflows:M},reset:{skip:!1,placement:O}};const E=M.slice().sort((e,t)=>e.overflows[0]-t.overflows[0]),$=null==(c=E.find(e=>{let{overflows:t}=e;return t.every(e=>e<=0)}))?void 0:c.placement;return{reset:{placement:null!=$?$:E[0].placement}}}}},e.computePosition=(async(e,t,n)=>{const{placement:i="bottom",strategy:o="absolute",middleware:r=[],platform:s}=n,l=await(null==s.isRTL?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:u}=a(c,i,l),p=i,m={};const f=new Set;for(let n=0;ne<=0)){var C,P;const e=(null!=(C=null==(P=a.flip)?void 0:P.index)?C:0)+1,t=S[e];if(t)return{data:{index:e,overflows:_},reset:{skip:!1,placement:t}};let n="bottom";switch(v){case"bestFit":{var k;const e=null==(k=_.slice().sort((e,t)=>e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)-t.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0))[0])?void 0:k.placement;e&&(n=e);break}case"initialPlacement":n=s}return{reset:{placement:n}}}return{}}}},e.hide=function(e){let{strategy:t="referenceHidden",...n}=void 0===e?{}:e;return{name:"hide",async fn(e){const{rects:i}=e;switch(t){case"referenceHidden":{const t=w(await l(e,{...n,elementContext:"reference"}),i.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:T(t)}}}case"escaped":{const t=w(await l(e,{...n,altBoundary:!0}),i.floating);return{data:{escapedOffsets:t,escaped:T(t)}}}default:return{}}}}},e.inline=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(n){var o;const{placement:a,elements:l,rects:u,platform:p,strategy:m}=n,{padding:f=2,x:h,y:g}=e,v=s(p.convertOffsetParentRelativeRectToViewportRelativeRect?await p.convertOffsetParentRelativeRectToViewportRelativeRect({rect:u.reference,offsetParent:await(null==p.getOffsetParent?void 0:p.getOffsetParent(l.floating)),strategy:m}):u.reference),y=null!=(o=await(null==p.getClientRects?void 0:p.getClientRects(l.reference)))?o:[],w=r(f);return{reset:{rects:await p.getElementRects({reference:{getBoundingClientRect:function(){var e;if(2===y.length&&y[0].left>y[1].right&&null!=h&&null!=g)return null!=(e=y.find(e=>h>e.left-w.left&&he.top-w.top&&g=2){if("x"===i(a)){const e=y[0],n=y[y.length-1],i="top"===t(a),o=e.top,r=n.bottom,s=i?e.left:n.left,l=i?e.right:n.right;return{top:o,bottom:r,left:s,right:l,width:l-s,height:r-o,x:s,y:o}}const e="left"===t(a),n=d(...y.map(e=>e.right)),o=c(...y.map(e=>e.left)),r=y.filter(t=>e?t.left===o:t.right===n),s=r[0].top,l=r[r.length-1].bottom;return{top:s,bottom:l,left:o,right:n,width:n-o,height:l-s,x:o,y:s}}return v}},floating:l.floating,strategy:m})}}}}},e.limitShift=function(e){return void 0===e&&(e={}),{options:e,fn(n){const{x:o,y:a,placement:r,rects:s,middlewareData:l}=n,{offset:c=0,mainAxis:d=!0,crossAxis:u=!0}=e,p={x:o,y:a},m=i(r),f=S(m);let h=p[m],g=p[f];const v="function"==typeof c?c({...s,placement:r}):c,y="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(d){const e="y"===m?"height":"width",t=s.reference[m]-s.floating[e]+y.mainAxis,n=s.reference[m]+s.reference[e]-y.mainAxis;hn&&(h=n)}if(u){var w,T,b,x;const e="y"===m?"width":"height",n=["top","left"].includes(t(r)),i=s.reference[f]-s.floating[e]+(n&&null!=(w=null==(T=l.offset)?void 0:T[f])?w:0)+(n?0:y.crossAxis),o=s.reference[f]+s.reference[e]+(n?0:null!=(b=null==(x=l.offset)?void 0:x[f])?b:0)-(n?y.crossAxis:0);go&&(g=o)}return{[m]:h,[f]:g}}}},e.offset=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(o){const{x:a,y:r,placement:s,rects:l,platform:c,elements:d}=o,u=function(e,o,a,r){void 0===r&&(r=!1);const s=t(e),l=n(e),c="x"===i(e),d=["left","top"].includes(s)?-1:1;let u=1;"end"===l&&(u=-1),r&&c&&(u*=-1);const p="function"==typeof a?a({...o,placement:e}):a,{mainAxis:m,crossAxis:f}="number"==typeof p?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};return c?{x:f*u,y:m*d}:{x:m*d,y:f*u}}(s,l,e,await(null==c.isRTL?void 0:c.isRTL(d.floating)));return{x:a+u.x,y:r+u.y,data:u}}}},e.rectToClientRect=s,e.shift=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(n){const{x:o,y:a,placement:r}=n,{mainAxis:s=!0,crossAxis:c=!1,limiter:d={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...p}=e,m={x:o,y:a},f=await l(n,p),h=i(t(r)),g=S(h);let v=m[h],y=m[g];if(s){const e="y"===h?"bottom":"right";v=u(v+f["y"===h?"top":"left"],v,v-f[e])}if(c){const e="y"===g?"bottom":"right";y=u(y+f["y"===g?"top":"left"],y,y-f[e])}const w=d.fn({...n,[h]:v,[g]:y});return{...w,data:{x:w.x-o,y:w.y-a}}}}},e.size=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(i){const{placement:o,rects:a,platform:r,elements:s}=i,{apply:c,...u}=e,p=await l(i,u),m=t(o),f=n(o);let h,g;"top"===m||"bottom"===m?(h=m,g=f===(await(null==r.isRTL?void 0:r.isRTL(s.floating))?"start":"end")?"left":"right"):(g=m,h="end"===f?"top":"bottom");const v=d(p.left,0),y=d(p.right,0),w=d(p.top,0),T=d(p.bottom,0),S={height:a.floating.height-(["left","right"].includes(o)?2*(0!==w||0!==T?w+T:d(p.top,p.bottom)):p[h]),width:a.floating.width-(["top","bottom"].includes(o)?2*(0!==v||0!==y?v+y:d(p.left,p.right)):p[g])};return null==c||c({...S,...a}),{reset:{rects:!0}}}}},Object.defineProperty(e,"__esModule",{value:!0})}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@floating-ui/core")):"function"==typeof define&&define.amd?define(["exports","@floating-ui/core"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).FloatingUIT4sDOM={},e.FloatingUIT4sCore)}(this,function(e,t){"use strict";function n(e){return"[object Window]"===(null==e?void 0:e.toString())}function i(e){if(null==e)return window;if(!n(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function o(e){return i(e).getComputedStyle(e)}function a(e){return n(e)?"":e?(e.nodeName||"").toLowerCase():""}function r(e){return e instanceof i(e).HTMLElement}function s(e){return e instanceof i(e).Element}function l(e){return e instanceof i(e).ShadowRoot||e instanceof ShadowRoot}function c(e){const{overflow:t,overflowX:n,overflowY:i}=o(e);return/auto|scroll|overlay|hidden/.test(t+i+n)}function d(e){return["table","td","th"].includes(a(e))}function u(e){const t=navigator.userAgent.toLowerCase().includes("firefox"),n=o(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}const p=Math.min,m=Math.max,f=Math.round;function h(e,t){void 0===t&&(t=!1);const n=e.getBoundingClientRect();let i=1,o=1;return t&&r(e)&&(i=e.offsetWidth>0&&f(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&f(n.height)/e.offsetHeight||1),{width:n.width/i,height:n.height/o,top:n.top/o,right:n.right/i,bottom:n.bottom/o,left:n.left/i,x:n.left/i,y:n.top/o}}function g(e){return(t=e,(t instanceof i(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function v(e){return n(e)?{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}:{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function y(e){return h(g(e)).left+v(e).scrollLeft}function w(e){return"html"===a(e)?e:e.assignedSlot||e.parentNode||(l(e)?e.host:null)||g(e)}function T(e){return r(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function S(e){const t=i(e);let n=T(e);for(;n&&d(n)&&"static"===getComputedStyle(n).position;)n=T(n);return n&&("html"===a(n)||"body"===a(n)&&"static"===getComputedStyle(n).position&&!u(n))?t:n||function(e){let t=w(e);for(l(t)&&(t=t.host);r(t)&&!["html","body"].includes(a(t));){if(u(t))return t;t=t.parentNode}return null}(e)||t}function b(e){if(r(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=h(e);return{width:t.width,height:t.height}}function x(e,t){var n;void 0===t&&(t=[]);const o=function e(t){return["html","body","#document"].includes(a(t))?t.ownerDocument.body:r(t)&&c(t)?t:e(w(t))}(e),s=o===(null==(n=e.ownerDocument)?void 0:n.body),l=i(o),d=s?[l].concat(l.visualViewport||[],c(o)?o:[]):o,u=t.concat(d);return s?u:u.concat(x(w(d)))}function _(e,n){return"viewport"===n?t.rectToClientRect(function(e){const t=i(e),n=g(e),o=t.visualViewport;let a=n.clientWidth,r=n.clientHeight,s=0,l=0;return o&&(a=o.width,r=o.height,Math.abs(t.innerWidth/o.scale-o.width)<.01&&(s=o.offsetLeft,l=o.offsetTop)),{width:a,height:r,x:s,y:l}}(e)):s(n)?function(e){const t=h(e),n=t.top+e.clientTop,i=t.left+e.clientLeft;return{top:n,left:i,x:i,y:n,right:i+e.clientWidth,bottom:n+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(n):t.rectToClientRect(function(e){var t;const n=g(e),i=v(e),a=null==(t=e.ownerDocument)?void 0:t.body,r=m(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),s=m(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0);let l=-i.scrollLeft+y(e);const c=-i.scrollTop;return"rtl"===o(a||n).direction&&(l+=m(n.clientWidth,a?a.clientWidth:0)-r),{width:r,height:s,x:l,y:c}}(g(e)))}function C(e){const t=x(w(e)),n=["absolute","fixed"].includes(o(e).position)&&r(e)?S(e):e;return s(n)?t.filter(e=>s(e)&&function(e,t){const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&l(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==a(e)):[]}const P={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:i}=e;const o=[..."clippingAncestors"===n?C(t):[].concat(n),i],a=o[0],r=o.reduce((e,n)=>{const i=_(t,n);return e.top=m(i.top,e.top),e.right=p(i.right,e.right),e.bottom=p(i.bottom,e.bottom),e.left=m(i.left,e.left),e},_(t,a));return{width:r.right-r.left,height:r.bottom-r.top,x:r.left,y:r.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:i}=e;const o=r(n),s=g(n);if(n===s)return t;let l={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if((o||!o&&"fixed"!==i)&&(("body"!==a(n)||c(s))&&(l=v(n)),r(n))){const e=h(n,!0);d.x=e.x+n.clientLeft,d.y=e.y+n.clientTop}return{...t,x:t.x-l.scrollLeft+d.x,y:t.y-l.scrollTop+d.y}},isElement:s,getDimensions:b,getOffsetParent:S,getDocumentElement:g,getElementRects:e=>{let{reference:t,floating:n,strategy:i}=e;return{reference:function(e,t,n){const i=r(t),o=g(t),s=h(e,i&&function(e){const t=h(e);return f(t.width)!==e.offsetWidth||f(t.height)!==e.offsetHeight}(t));let l={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if(i||!i&&"fixed"!==n)if(("body"!==a(t)||c(o))&&(l=v(t)),r(t)){const e=h(t,!0);d.x=e.x+t.clientLeft,d.y=e.y+t.clientTop}else o&&(d.x=y(o));return{x:s.left+l.scrollLeft-d.x,y:s.top+l.scrollTop-d.y,width:s.width,height:s.height}}(t,S(n),i),floating:{...b(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===o(e).direction};Object.defineProperty(e,"arrow",{enumerable:!0,get:function(){return t.arrow}}),Object.defineProperty(e,"autoPlacement",{enumerable:!0,get:function(){return t.autoPlacement}}),Object.defineProperty(e,"detectOverflow",{enumerable:!0,get:function(){return t.detectOverflow}}),Object.defineProperty(e,"flip",{enumerable:!0,get:function(){return t.flip}}),Object.defineProperty(e,"hide",{enumerable:!0,get:function(){return t.hide}}),Object.defineProperty(e,"inline",{enumerable:!0,get:function(){return t.inline}}),Object.defineProperty(e,"limitShift",{enumerable:!0,get:function(){return t.limitShift}}),Object.defineProperty(e,"offset",{enumerable:!0,get:function(){return t.offset}}),Object.defineProperty(e,"shift",{enumerable:!0,get:function(){return t.shift}}),Object.defineProperty(e,"size",{enumerable:!0,get:function(){return t.size}}),e.autoUpdate=function(e,t,n,i){void 0===i&&(i={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:r=!0,animationFrame:l=!1}=i;let c=!1;const d=o&&!l,u=a&&!l,p=r&&!l,m=d||u?[...s(e)?x(e):[],...x(t)]:[];m.forEach(e=>{d&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});let f,g=null;p&&(g=new ResizeObserver(n),s(e)&&g.observe(e),g.observe(t));let v=l?h(e):null;return l&&function t(){if(c)return;const i=h(e);!v||i.x===v.x&&i.y===v.y&&i.width===v.width&&i.height===v.height||n(),v=i,f=requestAnimationFrame(t)}(),()=>{var e;c=!0,m.forEach(e=>{d&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==(e=g)||e.disconnect(),g=null,l&&cancelAnimationFrame(f)}},e.computePosition=((e,n,i)=>t.computePosition(e,n,{platform:P,...i})),e.getOverflowAncestors=x,Object.defineProperty(e,"__esModule",{value:!0})}),function(e){"use strict";"function"==typeof define&&define.amd?define(["jQuery_T4NT"],e):"object"==typeof module&&module.exports?module.exports=e(require("jQuery_T4NT")):jQuery_T4NT&&!jQuery_T4NT.fn.hoverIntent&&e(jQuery_T4NT)}(function(e){"use strict";function t(e){i=e.pageX,o=e.pageY}function n(e){return"function"==typeof e}var i,o,a={interval:100,sensitivity:6,timeout:0},r=0,s=function(e,n,a,r){if(Math.sqrt((a.pX-i)*(a.pX-i)+(a.pY-o)*(a.pY-o))0&&(a=parseInt(a[1],10))>=1&&a<8&&(n.isOldIOSPhone=!0)}var r=i.match(/Android\s([0-9\.]*)/),s=r?r[1]:0;(s=parseFloat(s))>=1&&(s<4.4&&(n.isOldAndroid=!0),n.androidVersion=s),n.isMobileOpera=/opera mini|opera mobi/i.test(i)}for(var l,c,d=["transform","perspective","animationName"],u=["","webkit","Moz","ms","O"],p=0;p<4;p++){t=u[p];for(var m=0;m<3;m++)l=d[m],c=t+(t?l.charAt(0).toUpperCase()+l.slice(1):l),!n[l]&&c in e&&(n[l]=c);t&&!n.raf&&(t=t.toLowerCase(),n.raf=window[t+"RequestAnimationFrame"],n.raf&&(n.caf=window[t+"CancelAnimationFrame"]||window[t+"CancelRequestAnimationFrame"]))}if(!n.raf){var f=0;n.raf=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-f)),i=window.setTimeout(function(){e(t+n)},n);return f=t+n,i},n.caf=function(e){clearTimeout(e)}}return n.svg=!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,o.features=n,n}};o.detectFeatures(),o.features.oldIE&&(o.bind=function(e,t,n,i){t=t.split(" ");for(var o,a=(i?"detach":"attach")+"Event",r=function(){n.handleEvent.call(n)},s=0;st-1?e-t:e<0?t+e:e},xe={},_e=function(e,t){return xe[e]||(xe[e]=[]),xe[e].push(t)},Ce=function(e){var t=xe[e];if(t){var n=Array.prototype.slice.call(arguments);n.shift();for(var i=0;ia.currItem.fitRatio?Te||(Yt(a.currItem,!1,!0),Te=!0):Te&&(Yt(a.currItem),Te=!1)),Ie(te,ue.x,ue.y,g))},Ae=function(e){e.container&&Ie(e.container.style,e.initialPosition.x,e.initialPosition.y,e.initialZoomLevel,e)},Me=function(e,t){t[I]=y+e+"px, 0px"+w},Oe=function(e,t){if(!r.loop&&t){var n=d+(he.x*me-e)/he.x,i=Math.round(e-dt.x);(n<0&&i>0||n>=Wt()-1&&i<0)&&(e=dt.x+i*r.mainScrollEndFriction)}dt.x=e,Me(e,u)},Ee=function(e,t){var n=ut[e]-fe[e];return de[e]+ce[e]+n-n*(t/v)},$e=function(e,t){e.x=t.x,e.y=t.y,t.id&&(e.id=t.id)},Re=function(e){e.x=Math.round(e.x),e.y=Math.round(e.y)},Le=null,Fe=function(){Le&&(o.unbind(document,"mousemove",Fe),o.addClass(e,"pswp--has_mouse"),r.mouseUsed=!0,Ce("mouseUsed")),Le=setTimeout(function(){Le=null},100)},Ne=function(e,t){var n=Zt(a.currItem,pe,e);return t&&(ee=n),n},ze=function(e){return e||(e=a.currItem),e.initialZoomLevel},Ue=function(e){return e||(e=a.currItem),e.w>0?r.maxSpreadZoom:1},We=function(e,t,n,i){return i===a.currItem.initialZoomLevel?(n[e]=a.currItem.initialPosition[e],!0):(n[e]=Ee(e,i),n[e]>t.min[e]?(n[e]=t.min[e],!0):n[e]=i)return Ve(e),a(n),void(r&&r());a((n-t)*o(s/i)+t),Be[e].raf=M(c)}};c()},Xe={shout:Ce,listen:_e,viewportSize:pe,options:r,isMainScrollAnimating:function(){return ne},getZoomLevel:function(){return g},getCurrentIndex:function(){return d},isDragging:function(){return B},isZooming:function(){return Q},setScrollOffset:function(e,t){fe.x=e,L=fe.y=t,Ce("updateScrollOffset",fe)},applyZoomPan:function(e,t,n,i){ue.x=t,ue.y=n,g=e,De(i)},init:function(){if(!s&&!l){var n;a.framework=o,a.template=e,a.bg=o.getChildByClass(e,"pswp__bg"),E=e.className,s=!0,F=o.detectFeatures(),M=F.raf,O=F.caf,I=F.transform,R=F.oldIE,a.scrollWrap=o.getChildByClass(e,"pswp__scroll-wrap"),a.container=o.getChildByClass(a.scrollWrap,"pswp__container"),u=a.container.style,a.itemHolders=b=[{el:a.container.children[0],wrap:0,index:-1},{el:a.container.children[1],wrap:0,index:-1},{el:a.container.children[2],wrap:0,index:-1}],b[0].el.style.display=b[2].el.style.display="none",function(){if(I){var t=F.perspective&&!A;return y="translate"+(t?"3d(":"("),void(w=F.perspective?", 0px)":")")}I="left",o.addClass(e,"pswp--ie"),Me=function(e,t){t.left=e+"px"},Ae=function(e){var t=e.fitRatio>1?1:e.fitRatio,n=e.container.style,i=t*e.w,o=t*e.h;n.width=i+"px",n.height=o+"px",n.left=e.initialPosition.x+"px",n.top=e.initialPosition.y+"px"},De=function(){if(te){var e=te,t=a.currItem,n=t.fitRatio>1?1:t.fitRatio,i=n*t.w,o=n*t.h;e.width=i+"px",e.height=o+"px",e.left=ue.x+"px",e.top=ue.y+"px"}}}(),h={resize:a.updateSize,orientationchange:function(){clearTimeout(N),N=setTimeout(function(){pe.x!==a.scrollWrap.clientWidth&&a.updateSize()},500)},scroll:He,keydown:je,click:qe};var i=F.isOldIOSPhone||F.isOldAndroid||F.isMobileOpera;for(F.animationName&&F.transform&&!i||(r.showAnimationDuration=r.hideAnimationDuration=0),n=0;n=Wt())&&(d=0),a.currItem=Ut(d),(F.isOldIOSPhone||F.isOldAndroid)&&(ve=!1),e.setAttribute("aria-hidden","false"),r.modal&&(ve?e.style.position="fixed":(e.style.position="absolute",e.style.top=o.getScrollY()+"px")),void 0===L&&(Ce("initialLayout"),L=$=o.getScrollY());var c="pswp--open ";for(r.mainClass&&(c+=r.mainClass+" "),r.showHideOpacity&&(c+="pswp--animate_opacity "),c+=A?"pswp--touch":"pswp--notouch",c+=F.animationName?" pswp--css_animation":"",c+=F.svg?" pswp--svg":"",o.addClass(e,c),a.updateSize(),p=-1,ge=null,n=0;n<3;n++)Me((n+p)*he.x,b[n].el.style);R||o.bind(a.scrollWrap,f,a),_e("initialZoomInEnd",function(){a.setContent(b[0],d-1),a.setContent(b[2],d+1),b[0].el.style.display=b[2].el.style.display="block",r.focus&&e.focus(),o.bind(document,"keydown",a),F.transform&&o.bind(a.scrollWrap,"click",a),r.mouseUsed||o.bind(document,"mousemove",Fe),o.bind(window,"resize scroll orientationchange",a),Ce("bindEvents")}),a.setContent(b[1],d),a.updateCurrItem(),Ce("afterInit"),ve||(T=setInterval(function(){Ze||B||Q||g!==a.currItem.initialZoomLevel||a.updateSize()},1e3)),o.addClass(e,"pswp--visible")}},close:function(){s&&(s=!1,l=!0,Ce("close"),o.unbind(window,"resize scroll orientationchange",a),o.unbind(window,"scroll",h.scroll),o.unbind(document,"keydown",a),o.unbind(document,"mousemove",Fe),F.transform&&o.unbind(a.scrollWrap,"click",a),B&&o.unbind(window,m,a),clearTimeout(N),Ce("unbindEvents"),jt(a.currItem,null,!0,a.destroy))},destroy:function(){Ce("destroy"),Lt&&clearTimeout(Lt),e.setAttribute("aria-hidden","true"),e.className=E,T&&clearInterval(T),o.unbind(a.scrollWrap,f,a),o.unbind(window,"scroll",a),ft(),Ke(),xe=null},panTo:function(e,t,n){n||(e>ee.min.x?e=ee.min.x:eee.min.y?t=ee.min.y:t=3&&(p+=ge+(ge>0?-3:3),n=3);for(var i=0;i0?(t=b.shift(),b[2]=t,Me((++p+2)*he.x,t.el.style),a.setContent(t,d-n+i+1+1)):(t=b.pop(),b.unshift(t),Me(--p*he.x,t.el.style),a.setContent(t,d+n-i-1-1));if(te&&1===Math.abs(ge)){var o=Ut(x);o.initialZoomLevel!==g&&(Zt(o,pe),Yt(o),Ae(o))}ge=0,a.updateCurrZoomItem(),x=d,Ce("afterChange")}}},updateSize:function(t){if(!ve&&r.modal){var n=o.getScrollY();if(L!==n&&(e.style.top=n+"px",L=n),!t&&we.x===window.innerWidth&&we.y===window.innerHeight)return;we.x=window.innerWidth,we.y=window.innerHeight,e.style.height=we.y+"px"}if(pe.x=a.scrollWrap.clientWidth,pe.y=a.scrollWrap.clientHeight,He(),he.x=pe.x+Math.round(pe.x*r.spacing),he.y=pe.y,Oe(he.x*me),Ce("beforeResize"),void 0!==p){for(var i,s,l,c=0;c<3;c++)i=b[c],Me((c+p)*he.x,i.el.style),l=d+c-1,r.loop&&Wt()>2&&(l=be(l)),(s=Ut(l))&&(S||s.needsUpdate||!s.bounds)?(a.cleanSlide(s),a.setContent(i,l),1===c&&(a.currItem=s,a.updateCurrZoomItem(!0)),s.needsUpdate=!1):-1===i.index&&l>=0&&a.setContent(i,l),s&&s.container&&(Zt(s,pe),Yt(s),Ae(s));S=!1}v=g=a.currItem.initialZoomLevel,(ee=a.currItem.bounds)&&(ue.x=ee.center.x,ue.y=ee.center.y,De(!0)),Ce("resize")},zoomTo:function(e,t,n,i,a){t&&(v=g,ut.x=Math.abs(t.x)-ue.x,ut.y=Math.abs(t.y)-ue.y,$e(de,ue));var r=Ne(e,!1),s={};We("x",r,s,e),We("y",r,s,e);var l=g,c=ue.x,d=ue.y;Re(s);var u=function(t){1===t?(g=e,ue.x=s.x,ue.y=s.y):(g=(e-l)*t+l,ue.x=(s.x-c)*t+c,ue.y=(s.y-d)*t+d),a&&a(t),De(1===t)};n?Ye("customZoomTo",0,1,n,i||o.easing.sine.inOut,u):u(1)}},Qe={},Je={},et={},tt={},nt={},it=[],ot={},at=[],rt={},st=0,lt={x:0,y:0},ct=0,dt={x:0,y:0},ut={x:0,y:0},pt={x:0,y:0},mt=function(e,t){return rt.x=Math.abs(e.x-t.x),rt.y=Math.abs(e.y-t.y),Math.sqrt(rt.x*rt.x+rt.y*rt.y)},ft=function(){K&&(O(K),K=null)},ht=function(){B&&(K=M(ht),Dt())},gt=function(e,t){return!(!e||e===document)&&!(e.getAttribute("class")&&e.getAttribute("class").indexOf("pswp__scroll-wrap")>-1)&&(t(e)?e:gt(e.parentNode,t))},vt={},yt=function(e,t){return vt.prevent=!gt(e.target,r.isClickableElement),Ce("preventDragEvent",e,t,vt),vt.prevent},wt=function(e,t){return t.x=e.pageX,t.y=e.pageY,t.id=e.identifier,t},Tt=function(e,t,n){n.x=.5*(e.x+t.x),n.y=.5*(e.y+t.y)},St=function(){var e=ue.y-a.currItem.initialPosition.y;return 1-Math.abs(e/(pe.y/2))},bt={},xt={},_t=[],Ct=function(e){for(;_t.length>0;)_t.pop();return D?(le=0,it.forEach(function(e){0===le?_t[0]=e:1===le&&(_t[1]=e),le++})):e.type.indexOf("touch")>-1?e.touches&&e.touches.length>0&&(_t[0]=wt(e.touches[0],bt),e.touches.length>1&&(_t[1]=wt(e.touches[1],xt))):(bt.x=e.pageX,bt.y=e.pageY,bt.id="",_t[0]=bt),_t},Pt=function(e,t){var n,i,o,s,l=ue[e]+t[e],c=t[e]>0,d=dt.x+t.x,u=dt.x-ot.x;return n=l>ee.min[e]||lee.min[e]&&(n=r.panEndFriction,ee.min[e],i=ee.min[e]-de[e]),(i<=0||u<0)&&Wt()>1?(s=d,u<0&&d>ot.x&&(s=ot.x)):ee.min.x!==ee.max.x&&(o=l)):(l0)&&Wt()>1?(s=d,u>0&&da.currItem.fitRatio&&(ue[e]+=t[e]*n)):(void 0!==s&&(Oe(s,!0),Y=s!==ot.x),ee.min.x!==ee.max.x&&(void 0!==o?ue.x=o:Y||(ue.x+=t.x*n)),void 0!==s)},kt=function(e){if(!("mousedown"===e.type&&e.button>0)){if(zt)return void e.preventDefault();if(!H||"mousedown"!==e.type){if(yt(e,!0)&&e.preventDefault(),Ce("pointerDown"),D){var t=o.arraySearch(it,e.pointerId,"id");t<0&&(t=it.length),it[t]={x:e.pageX,y:e.pageY,id:e.pointerId}}var n=Ct(e),i=n.length;X=null,Ke(),B&&1!==i||(B=oe=!0,o.bind(window,m,a),j=se=ae=q=Y=G=Z=V=!1,ie=null,Ce("firstTouchStart",n),$e(de,ue),ce.x=ce.y=0,$e(tt,n[0]),$e(nt,tt),ot.x=he.x*me,at=[{x:tt.x,y:tt.y}],U=z=Pe(),Ne(g,!0),ft(),ht()),!Q&&i>1&&!ne&&!Y&&(v=g,V=!1,Q=Z=!0,ce.y=ce.x=0,$e(de,ue),$e(Qe,n[0]),$e(Je,n[1]),Tt(Qe,Je,pt),ut.x=Math.abs(pt.x)-ue.x,ut.y=Math.abs(pt.y)-ue.y,J=mt(Qe,Je))}}},It=function(e){if(e.preventDefault(),D){var t=o.arraySearch(it,e.pointerId,"id");if(t>-1){var n=it[t];n.x=e.pageX,n.y=e.pageY}}if(B){var i=Ct(e);if(ie||G||Q)X=i;else if(dt.x!==he.x*me)ie="h";else{var a=Math.abs(i[0].x-tt.x)-Math.abs(i[0].y-tt.y);Math.abs(a)>=10&&(ie=a>0?"h":"v",X=i)}}},Dt=function(){if(X){var e=X.length;if(0!==e)if($e(Qe,X[0]),et.x=Qe.x-tt.x,et.y=Qe.y-tt.y,Q&&e>1){if(tt.x=Qe.x,tt.y=Qe.y,!et.x&&!et.y&&function(e,t){return e.x===t.x&&e.y===t.y}(X[1],Je))return;$e(Je,X[1]),V||(V=!0,Ce("zoomGestureStarted"));var t=mt(Qe,Je),n=$t(t);n>a.currItem.initialZoomLevel+a.currItem.initialZoomLevel/15&&(se=!0);var i=1,o=ze(),s=Ue();if(n1&&(i=1),n=o-i*(o/3);else n>s&&((i=(n-s)/(6*o))>1&&(i=1),n=s+i*o);i<0&&(i=0),Tt(Qe,Je,lt),ce.x+=lt.x-pt.x,ce.y+=lt.y-pt.y,$e(pt,lt),ue.x=Ee("x",n),ue.y=Ee("y",n),j=n>g,g=n,De()}else{if(!ie)return;if(oe&&(oe=!1,Math.abs(et.x)>=10&&(et.x-=X[0].x-nt.x),Math.abs(et.y)>=10&&(et.y-=X[0].y-nt.y)),tt.x=Qe.x,tt.y=Qe.y,0===et.x&&0===et.y)return;if("v"===ie&&r.closeOnVerticalDrag&&"fit"===r.scaleMode&&g===a.currItem.initialZoomLevel){ce.y+=et.y,ue.y+=et.y;var c=St();return q=!0,Ce("onVerticalDrag",c),ke(c),void De()}(function(e,t,n){if(e-U>50){var i=at.length>2?at.shift():{};i.x=t,i.y=n,at.push(i),U=e}})(Pe(),Qe.x,Qe.y),G=!0,ee=a.currItem.bounds,Pt("x",et)||(Pt("y",et),Re(ue),De())}}},At=function(e){if(F.isOldAndroid){if(H&&"mouseup"===e.type)return;e.type.indexOf("touch")>-1&&(clearTimeout(H),H=setTimeout(function(){H=0},600))}var t;if(Ce("pointerUp"),yt(e,!1)&&e.preventDefault(),D){var n=o.arraySearch(it,e.pointerId,"id");n>-1&&(t=it.splice(n,1)[0],navigator.msPointerEnabled?(t.type={4:"mouse",2:"touch",3:"pen"}[e.pointerType],t.type||(t.type=e.pointerType||"mouse")):t.type=e.pointerType||"mouse")}var i,s=Ct(e),l=s.length;if("mouseup"===e.type&&(l=0),2===l)return X=null,!0;1===l&&$e(nt,s[0]),0!==l||ie||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"})),Ce("touchRelease",e,t));var c=-1;if(0===l&&(B=!1,o.unbind(window,m,a),ft(),Q?c=0:-1!==ct&&(c=Pe()-ct)),ct=1===l?Pe():-1,i=-1!==c&&c<150?"zoom":"swipe",Q&&l<2&&(Q=!1,1===l&&(i="zoomPointerUp"),Ce("zoomGestureEnded")),X=null,G||V||ne||q)if(Ke(),W||(W=Mt()),W.calculateSwipeSpeed("x"),q)if(St()a.currItem.fitRatio&&Ot(W))}},Mt=function(){var e,t,n={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{},backAnimDestination:{},backAnimStarted:{},calculateSwipeSpeed:function(i){at.length>1?(e=Pe()-U+50,t=at[at.length-2][i]):(e=Pe()-z,t=nt[i]),n.lastFlickOffset[i]=tt[i]-t,n.lastFlickDist[i]=Math.abs(n.lastFlickOffset[i]),n.lastFlickDist[i]>20?n.lastFlickSpeed[i]=n.lastFlickOffset[i]/e:n.lastFlickSpeed[i]=0,Math.abs(n.lastFlickSpeed[i])<.1&&(n.lastFlickSpeed[i]=0),n.slowDownRatio[i]=.95,n.slowDownRatioReverse[i]=1-n.slowDownRatio[i],n.speedDecelerationRatio[i]=1},calculateOverBoundsAnimOffset:function(e,t){n.backAnimStarted[e]||(ue[e]>ee.min[e]?n.backAnimDestination[e]=ee.min[e]:ue[e]30&&(c||t.lastFlickOffset.x>20)?i=-1:l<-30&&(c||t.lastFlickOffset.x<-20)&&(i=1)}i&&((d+=i)<0?(d=r.loop?Wt()-1:0,s=!0):d>=Wt()&&(d=r.loop?0:Wt()-1,s=!0),s&&!r.loop||(ge+=i,me-=i,n=!0));var u,p=he.x*me,m=Math.abs(p-dt.x);return n||p>dt.x==t.lastFlickSpeed.x>0?(u=Math.abs(t.lastFlickSpeed.x)>0?m/Math.abs(t.lastFlickSpeed.x):333,u=Math.min(u,400),u=Math.max(u,250)):u=333,st===d&&(n=!1),ne=!0,Ce("mainScrollAnimStart"),Ye("mainScroll",dt.x,p,u,o.easing.cubic.out,Oe,function(){Ke(),ne=!1,st=-1,(n||st!==d)&&a.updateCurrItem(),Ce("mainScrollAnimComplete")}),n&&a.updateCurrItem(!0),n},$t=function(e){return 1/J*e*v},Rt=function(){var e=g,t=ze(),n=Ue();gn&&(e=n);var i,r=re;return ae&&!j&&!se&&g1||navigator.msMaxTouchPoints>1),a.likelyTouchDevice=A,h[_]=kt,h[C]=It,h[P]=At,k&&(h[k]=h[P]),F.touch&&(f+=" mousedown",m+=" mousemove mouseup",h.mousedown=h[_],h.mousemove=h[C],h.mouseup=h[P]),A||(r.allowPanToNext=!1)}}});var Lt,Ft,Nt,zt,Ut,Wt,jt=function(t,n,i,s){var l;Lt&&clearTimeout(Lt),zt=!0,Nt=!0,t.initialLayout?(l=t.initialLayout,t.initialLayout=null):l=r.getThumbBoundsFn&&r.getThumbBoundsFn(d);var u=i?r.hideAnimationDuration:r.showAnimationDuration,p=function(){Ve("initialZoom"),i?(a.template.removeAttribute("style"),a.bg.removeAttribute("style")):(ke(1),n&&(n.style.display="block"),o.addClass(e,"pswp--animated-in"),Ce("initialZoom"+(i?"OutEnd":"InEnd"))),s&&s(),zt=!1};if(!u||!l||void 0===l.x)return Ce("initialZoom"+(i?"Out":"In")),g=t.initialZoomLevel,$e(ue,t.initialPosition),De(),e.style.opacity=i?0:1,ke(1),void(u?setTimeout(function(){p()},u):p());!function(){var n=c,s=!a.currItem.src||a.currItem.loadError||r.showHideOpacity;t.miniImg&&(t.miniImg.style.webkitBackfaceVisibility="hidden"),i||(g=l.w/t.w,ue.x=l.x,ue.y=l.y-$,a[s?"template":"bg"].style.opacity=.001,De()),Ge("initialZoom"),i&&!n&&o.removeClass(e,"pswp--animated-in"),s&&(i?o[(n?"remove":"add")+"Class"](e,"pswp--animate_opacity"):setTimeout(function(){o.addClass(e,"pswp--animate_opacity")},30)),Lt=setTimeout(function(){if(Ce("initialZoom"+(i?"Out":"In")),i){var a=l.w/t.w,r={x:ue.x,y:ue.y},c=g,d=re,m=function(t){1===t?(g=a,ue.x=l.x,ue.y=l.y-L):(g=(a-c)*t+c,ue.x=(l.x-r.x)*t+r.x,ue.y=(l.y-L-r.y)*t+r.y),De(),s?e.style.opacity=1-t:ke(d-t*d)};n?Ye("initialZoom",0,1,u,o.easing.cubic.out,m,p):(m(1),Lt=setTimeout(p,u+20))}else g=t.initialZoomLevel,$e(ue,t.initialPosition),De(),ke(1),s?e.style.opacity=1:ke(1),Lt=setTimeout(p,u+20)},i?25:90)}()},qt={},Ht=[],Bt={index:0,errorMsg:'
The image could not be loaded.
',forceProgressiveLoading:!1,preload:[1,1],getNumItemsFn:function(){return Ft.length}},Zt=function(e,t,n){if(e.src&&!e.loadError){var i=!n;if(i&&(e.vGap||(e.vGap={top:0,bottom:0}),Ce("parseVerticalMargin",e)),qt.x=t.x,qt.y=t.y-e.vGap.top-e.vGap.bottom,i){var o=qt.x/e.w,a=qt.y/e.h;e.fitRatio=o1&&(n=1),e.initialZoomLevel=n,e.bounds||(e.bounds={center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}})}if(!n)return;return function(e,t,n){var i=e.bounds;i.center.x=Math.round((qt.x-t)/2),i.center.y=Math.round((qt.y-n)/2)+e.vGap.top,i.max.x=t>qt.x?Math.round(qt.x-t):i.center.x,i.max.y=n>qt.y?Math.round(qt.y-n)+e.vGap.top:i.center.y,i.min.x=t>qt.x?0:i.center.x,i.min.y=n>qt.y?e.vGap.top:i.center.y}(e,e.w*n,e.h*n),i&&n===e.initialZoomLevel&&(e.initialPosition=e.bounds.center),e.bounds}return e.w=e.h=0,e.initialZoomLevel=e.fitRatio=1,e.bounds={center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}},e.initialPosition=e.bounds.center,e.bounds},Vt=function(e,t,n,i,o,r){t.loadError||i&&(t.imageAppended=!0,Yt(t,i,t===a.currItem&&Te),n.appendChild(i),r&&setTimeout(function(){t&&t.loaded&&t.placeholder&&(t.placeholder.style.display="none",t.placeholder=null)},500))},Gt=function(e){e.loading=!0,e.loaded=!1;var t=e.img=o.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},Kt=function(e,t){if(e.src&&e.loadError&&e.container)return t&&(e.container.innerHTML=""),e.container.innerHTML=r.errorMsg.replace("%url%",e.src),!0},Yt=function(e,t,n){if(e.src){t||(t=e.container.lastChild);var i=n?e.w:Math.round(e.w*e.fitRatio),o=n?e.h:Math.round(e.h*e.fitRatio);e.placeholder&&!e.loaded&&(e.placeholder.style.width=i+"px",e.placeholder.style.height=o+"px"),t.style.width=i+"px",t.style.height=o+"px"}},Xt=function(){if(Ht.length){for(var e,t=0;t=0,o=Math.min(n[0],Wt()),s=Math.min(n[1],Wt());for(t=1;t<=(i?s:o);t++)a.lazyLoadItem(d+t);for(t=1;t<=(i?o:s);t++)a.lazyLoadItem(d-t)}),_e("initialLayout",function(){a.currItem.initialLayout=r.getThumbBoundsFn&&r.getThumbBoundsFn(d)}),_e("mainScrollAnimComplete",Xt),_e("initialZoomInEnd",Xt),_e("destroy",function(){for(var e,t=0;t=0&&void 0!==Ft[e]&&Ft[e]},allowProgressiveImg:function(){return r.forceProgressiveLoading||!A||r.mouseUsed||screen.width>1200},setContent:function(e,t){r.loop&&(t=be(t));var n=a.getItemAt(e.index);n&&(n.container=null);var i,l=a.getItemAt(t);if(l){Ce("gettingData",t,l),e.index=t,e.item=l;var c=l.container=o.createEl("pswp__zoom-wrap");if(!l.src&&l.html&&(l.html.tagName?c.appendChild(l.html):c.innerHTML=l.html),Kt(l),Zt(l,pe),!l.src||l.loadError||l.loaded)l.src&&!l.loadError&&((i=o.createEl("pswp__img","img")).style.opacity=1,i.src=l.src,Yt(l,i),Vt(0,l,c,i));else{if(l.loadComplete=function(n){if(s){if(e&&e.index===t){if(Kt(n,!0))return n.loadComplete=n.img=null,Zt(n,pe),Ae(n),void(e.index===d&&a.updateCurrZoomItem());n.imageAppended?!zt&&n.placeholder&&(n.placeholder.style.display="none",n.placeholder=null):F.transform&&(ne||zt)?Ht.push({item:n,baseDiv:c,img:n.img,index:t,holder:e,clearPlaceholder:!0}):Vt(0,n,c,n.img,0,!0)}n.loadComplete=null,n.img=null,Ce("imageLoadComplete",t,n)}},o.features.transform){var u="pswp__img pswp__img--placeholder";u+=l.msrc?"":" pswp__img--placeholder--blank";var p=o.createEl(u,l.msrc?"img":"");l.msrc&&(p.src=l.msrc),Yt(l,p),c.appendChild(p),l.placeholder=p}l.loading||Gt(l),a.allowProgressiveImg()&&(!Nt&&F.transform?Ht.push({item:l,baseDiv:c,img:l.img,index:t,holder:e}):Vt(0,l,c,l.img,0,!0))}Nt||t!==d?Ae(l):(te=c.style,jt(l,i||l.img)),e.el.innerHTML="",e.el.appendChild(c)}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 Qt,Jt,en={},tn=function(e,t,n){var i=document.createEvent("CustomEvent"),o={origEvent:e,target:e.target,releasePoint:t,pointerType:n||"touch"};i.initCustomEvent("pswpTap",!0,!0,o),e.target.dispatchEvent(i)};Se("Tap",{publicMethods:{initTap:function(){_e("firstTouchStart",a.onTapStart),_e("touchRelease",a.onTapRelease),_e("destroy",function(){en={},Qt=null})},onTapStart:function(e){e.length>1&&(clearTimeout(Qt),Qt=null)},onTapRelease:function(e,t){if(t&&!G&&!Z&&!Ze){var n=t;if(Qt&&(clearTimeout(Qt),Qt=null,function(e,t){return Math.abs(e.x-t.x)<25&&Math.abs(e.y-t.y)<25}(n,en)))return void Ce("doubleTap",n);if("mouse"===t.type)return void tn(e,t,"mouse");if("BUTTON"===e.target.tagName.toUpperCase()||o.hasClass(e.target,"pswp__single-tap"))return void tn(e,t);$e(en,n),Qt=setTimeout(function(){tn(e,t),Qt=null},300)}}}}),Se("DesktopZoom",{publicMethods:{initDesktopZoom:function(){R||(A?_e("mouseUsed",function(){a.setupDesktopZoom()}):a.setupDesktopZoom(!0))},setupDesktopZoom:function(t){Jt={};var n="wheel mousewheel DOMMouseScroll";_e("bindEvents",function(){o.bind(e,n,a.handleMouseWheel)}),_e("unbindEvents",function(){Jt&&o.unbind(e,n,a.handleMouseWheel)}),a.mouseZoomedIn=!1;var i,r=function(){a.mouseZoomedIn&&(o.removeClass(e,"pswp--zoomed-in"),a.mouseZoomedIn=!1),g<1?o.addClass(e,"pswp--zoom-allowed"):o.removeClass(e,"pswp--zoom-allowed"),s()},s=function(){i&&(o.removeClass(e,"pswp--dragging"),i=!1)};_e("resize",r),_e("afterChange",r),_e("pointerDown",function(){a.mouseZoomedIn&&(i=!0,o.addClass(e,"pswp--dragging"))}),_e("pointerUp",s),t||r()},handleMouseWheel:function(e){if(g<=a.currItem.fitRatio)return r.modal&&(!r.closeOnScroll||Ze||B?e.preventDefault():I&&Math.abs(e.deltaY)>2&&(c=!0,a.close())),!0;if(e.stopPropagation(),Jt.x=0,"deltaX"in e)1===e.deltaMode?(Jt.x=18*e.deltaX,Jt.y=18*e.deltaY):(Jt.x=e.deltaX,Jt.y=e.deltaY);else if("wheelDelta"in e)e.wheelDeltaX&&(Jt.x=-.16*e.wheelDeltaX),e.wheelDeltaY?Jt.y=-.16*e.wheelDeltaY:Jt.y=-.16*e.wheelDelta;else{if(!("detail"in e))return;Jt.y=e.detail}Ne(g,!0);var t=ue.x-Jt.x,n=ue.y-Jt.y;(r.modal||t<=ee.min.x&&t>=ee.max.x&&n<=ee.min.y&&n>=ee.max.y)&&e.preventDefault(),a.panTo(t,n)},toggleDesktopZoom:function(t){t=t||{x:pe.x/2+fe.x,y:pe.y/2+fe.y};var n=r.getDoubleTapZoom(!0,a.currItem),i=g===n;a.mouseZoomedIn=!i,a.zoomTo(i?a.currItem.initialZoomLevel:n,t,333),o[(i?"remove":"add")+"Class"](e,"pswp--zoomed-in")}}});var nn,on,an,rn,sn,ln,cn,dn,un,pn,mn,fn,hn={history:!0,galleryUID:1},gn=function(){return mn.hash.substring(1)},vn=function(){nn&&clearTimeout(nn),an&&clearTimeout(an)},yn=function(){var e=gn(),t={};if(e.length<5)return t;var n,i=e.split("&");for(n=0;n-1&&"&"===(cn=cn.substring(0,t)).slice(-1)&&(cn=cn.slice(0,-1)),setTimeout(function(){s&&o.bind(window,"hashchange",a.onHashChange)},40)}},onHashChange:function(){return gn()===cn?(un=!0,void a.close()):void(rn||(sn=!0,a.goTo(yn().pid),sn=!1))},updateURL:function(){vn(),sn||(dn?nn=setTimeout(wn,800):wn())}}}),o.extend(a,Xe)}}),function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.PhotoSwipeUI_Default=t()}(this,function(){"use strict";return function(e,t){var n,i,o,a,r,s,l,c,d,u,p,m,f,h,g,v,y,w,T=this,S=!1,b=!0,x=!0,_={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},C=function(e){if(v)return!0;e=e||window.event,g.timeToIdle&&g.mouseUsed&&!d&&R();for(var n,i,o=(e.target||e.srcElement).getAttribute("class")||"",a=0;a-1&&(n.onTap(),i=!0);if(i){e.stopPropagation&&e.stopPropagation(),v=!0;var r=t.features.isOldAndroid?600:30;setTimeout(function(){v=!1},r)}},P=function(){return!e.likelyTouchDevice||g.mouseUsed||screen.width>g.fitControlsWidth},k=function(e,n,i){t[(i?"add":"remove")+"Class"](e,"pswp__"+n)},I=function(){var e=1===g.getNumItemsFn();e!==h&&(k(i,"ui--one-slide",e),h=e)},D=function(){k(l,"share-modal--hidden",x)},A=function(){return(x=!x)?(t.removeClass(l,"pswp__share-modal--fade-in"),setTimeout(function(){x&&D()},300)):(D(),setTimeout(function(){x||t.addClass(l,"pswp__share-modal--fade-in")},30)),x||O(),!1},M=function(t){var n=(t=t||window.event).target||t.srcElement;return e.shout("shareLinkClick",t,n),!(!n.href||!n.hasAttribute("download")&&(window.open(n.href,"pswp_share","scrollbars=yes,resizable=yes,toolbar=no,location=yes,width=550,height=420,top=100,left="+(window.screen?Math.round(screen.width/2-275):100)),x||A(),1))},O=function(){for(var e,t,n,i,o="",a=0;a