PageSourceSearch

https://www.alligatoralleyadventures.com/wp-content/themes/alligatoralley-2017/js/app.js

js alligatoralleyadventures.com collected 2026-10-04 10:51:03 UTC 101,484 bytes, 4 lines download raw bytes

1function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("whatInput",[],t):"object"==typeof exports?exports.whatInput=t():e.whatInput=t()}(this,function(){return function(e){function t(i){if(n[i])return n[i].exports;var o=n[i]={exports:{},id:i,loaded:!1};return e[i].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t){e.exports=function(){var e=document.documentElement,t="initial",n=null,i=["input","select","textarea"],o=[16,17,18,91,93],r={keyup:"keyboard",mousedown:"mouse",mousemove:"mouse",MSPointerDown:"pointer",MSPointerMove:"pointer",pointerdown:"pointer",pointermove:"pointer",touchstart:"touch"},a=[],s=!1,l={2:"touch",3:"touch",4:"mouse"},u=null,c=function(){r[v()]="mouse",d(),p()},d=function(){window.PointerEvent?(e.addEventListener("pointerdown",f),e.addEventListener("pointermove",m)):window.MSPointerEvent?(e.addEventListener("MSPointerDown",f),e.addEventListener("MSPointerMove",m)):(e.addEventListener("mousedown",f),e.addEventListener("mousemove",m),"ontouchstart"in window&&e.addEventListener("touchstart",h)),e.addEventListener(v(),m),e.addEventListener("keydown",f),e.addEventListener("keyup",f)},f=function(e){if(!s){var a=e.which,l=r[e.type];if("pointer"===l&&(l=g(e)),t!==l||n!==l){var u=document.activeElement,c=!(!u||!u.nodeName||i.indexOf(u.nodeName.toLowerCase())!==-1);("touch"===l||"mouse"===l&&o.indexOf(a)===-1||"keyboard"===l&&c)&&(t=n=l,p())}}},p=function(){e.setAttribute("data-whatinput",t),e.setAttribute("data-whatintent",t),a.indexOf(t)===-1&&(a.push(t),e.className+=" whatinput-types-"+t)},m=function(t){if(!s){var i=r[t.type];"pointer"===i&&(i=g(t)),n!==i&&(n=i,e.setAttribute("data-whatintent",n))}},h=function(e){window.clearTimeout(u),f(e),s=!0,u=window.setTimeout(function(){s=!1},200)},g=function(e){return"number"==typeof e.pointerType?l[e.pointerType]:"pen"===e.pointerType?"touch":e.pointerType},v=function(){return"onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll"};return"addEventListener"in window&&Array.prototype.indexOf&&c(),{ask:function(e){return"loose"===e?n:t},types:function(){return a}}}()}])});var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(e,t){var n=t(e,e.document);e.lazySizes=n,"object"==("undefined"==typeof module?"undefined":_typeof(module))&&module.exports&&(module.exports=n)}(window,function(e,t){"use strict";if(t.getElementsByClassName){var n,i=t.documentElement,o=e.Date,r=e.HTMLPictureElement,a="addEventListener",s="getAttribute",l=e[a],u=e.setTimeout,c=e.requestAnimationFrame||u,d=e.requestIdleCallback,f=/^picture$/i,p=["load","error","lazyincluded","_lazyloaded"],m={},h=Array.prototype.forEach,g=function(e,t){return m[t]||(m[t]=new RegExp("(\\s|^)"+t+"(\\s|$)")),m[t].test(e[s]("class")||"")&&m[t]},v=function(e,t){g(e,t)||e.setAttribute("class",(e[s]("class")||"").trim()+" "+t)},w=function(e,t){var n;(n=g(e,t))&&e.setAttribute("class",(e[s]("class")||"").replace(n," "))},y=function k(e,t,n){var i=n?a:"removeEventListener";n&&k(e,t),p.forEach(function(n){e[i](n,t)})},b=function(e,n,i,o,r){var a=t.createEvent("CustomEvent");return a.initCustomEvent(n,!o,!r,i||{}),e.dispatchEvent(a),a},x=function(t,i){var o;!r&&(o=e.picturefill||n.pf)?o({reevaluate:!0,elements:[t]}):i&&i.src&&(t.src=i.src)},C=function(e,t){return(getComputedStyle(e,null)||{})[t]},z=function(e,t,i){for(i=i||e.offsetWidth;i<n.minSize&&t&&!e._lazysizesWidth;)i=t.offsetWidth,t=t.parentNode;return i},T=function(){var e,n,i=[],o=[],r=i,a=function(){var t=r;for(r=i.length?o:i,e=!0,n=!1;t.length;)t.shift()();e=!1},s=function(i,o){e&&!o?i.apply(this,arguments):(r.push(i),n||(n=!0,(t.hidden?u:c)(a)))};return s._lsFlush=a,s}(),_=function(e,t){return t?function(){T(e)}:function(){var t=this,n=arguments;T(function(){e.apply(t,n)})}},E=function(e){var t,n=0,i=125,r=666,a=r,s=function(){t=!1,n=o.now(),e()},l=d?function(){d(s,{timeout:a}),a!==r&&(a=r)}:_(function(){u(s)},!0);return function(e){var r;(e=e===!0)&&(a=44),t||(t=!0,r=i-(o.now()-n),0>r&&(r=0),e||9>r&&d?l():u(l,r))}},F=function(e){var t,n,i=99,r=function(){t=null,e()},a=function s(){var e=o.now()-n;i>e?u(s,i-e):(d||r)(r)};return function(){n=o.now(),t||(t=u(a,i))}},S=function(){var r,c,d,p,m,z,S,I,k,A,M,O,R,P,L,$=/^img$/i,N=/^iframe$/i,H="onscroll"in e&&!/glebot/.test(navigator.userAgent),q=0,K=0,B=0,Z=-1,W=function ie(e){B--,e&&e.target&&y(e.target,ie),(!e||0>B||!e.target)&&(B=0)},j=function(e,n){var o,r=e,a="hidden"==C(t.body,"visibility")||"hidden"
1!=C(e,"visibility");for(k-=n,O+=n,A-=n,M+=n;a&&(r=r.offsetParent)&&r!=t.body&&r!=i;)a=(C(r,"opacity")||1)>0,a&&"visible"!=C(r,"overflow")&&(o=r.getBoundingClientRect(),a=M>o.left&&A<o.right&&O>o.top-1&&k<o.bottom+1);return a},Y=function(){var e,o,a,l,u,f,p,h,g;if((m=n.loadMode)&&8>B&&(e=r.length)){o=0,Z++,null==P&&("expand"in n||(n.expand=i.clientHeight>500&&i.clientWidth>500?500:370),R=n.expand,P=R*n.expFactor),P>K&&1>B&&Z>2&&m>2&&!t.hidden?(K=P,Z=0):K=m>1&&Z>1&&6>B?R:q;for(;e>o;o++)if(r[o]&&!r[o]._lazyRace)if(H)if((h=r[o][s]("data-expand"))&&(f=1*h)||(f=K),g!==f&&(S=innerWidth+f*L,I=innerHeight+f,p=-1*f,g=f),a=r[o].getBoundingClientRect(),(O=a.bottom)>=p&&(k=a.top)<=I&&(M=a.right)>=p*L&&(A=a.left)<=S&&(O||M||A||k)&&(d&&3>B&&!h&&(3>m||4>Z)||j(r[o],f))){if(te(r[o]),u=!0,B>9)break}else!u&&d&&!l&&4>B&&4>Z&&m>2&&(c[0]||n.preloadAfterLoad)&&(c[0]||!h&&(O||M||A||k||"auto"!=r[o][s](n.sizesAttr)))&&(l=c[0]||r[o]);else te(r[o]);l&&!u&&te(l)}},U=E(Y),Q=function(e){v(e.target,n.loadedClass),w(e.target,n.loadingClass),y(e.target,X)},G=_(Q),X=function(e){G({target:e.target})},V=function(e,t){try{e.contentWindow.location.replace(t)}catch(n){e.src=t}},J=function(e){var t,i,o=e[s](n.srcsetAttr);(t=n.customMedia[e[s]("data-media")||e[s]("media")])&&e.setAttribute("media",t),o&&e.setAttribute("srcset",o),t&&(i=e.parentNode,i.insertBefore(e.cloneNode(),e),i.removeChild(e))},ee=_(function(e,t,i,o,r){var a,l,c,d,m,g;(m=b(e,"lazybeforeunveil",t)).defaultPrevented||(o&&(i?v(e,n.autosizesClass):e.setAttribute("sizes",o)),l=e[s](n.srcsetAttr),a=e[s](n.srcAttr),r&&(c=e.parentNode,d=c&&f.test(c.nodeName||"")),g=t.firesLoad||"src"in e&&(l||a||d),m={target:e},g&&(y(e,W,!0),clearTimeout(p),p=u(W,2500),v(e,n.loadingClass),y(e,X,!0)),d&&h.call(c.getElementsByTagName("source"),J),l?e.setAttribute("srcset",l):a&&!d&&(N.test(e.nodeName)?V(e,a):e.src=a),(l||d)&&x(e,{src:a})),e._lazyRace&&delete e._lazyRace,w(e,n.lazyClass),T(function(){(!g||e.complete&&e.naturalWidth>1)&&(g?W(m):B--,Q(m))},!0)}),te=function(e){var t,i=$.test(e.nodeName),o=i&&(e[s](n.sizesAttr)||e[s]("sizes")),r="auto"==o;(!r&&d||!i||!e.src&&!e.srcset||e.complete||g(e,n.errorClass))&&(t=b(e,"lazyunveilread").detail,r&&D.updateElem(e,!0,e.offsetWidth),e._lazyRace=!0,B++,ee(e,t,r,o,i))},ne=function oe(){if(!d){if(o.now()-z<999)return void u(oe,999);var e=F(function(){n.loadMode=3,U()});d=!0,n.loadMode=3,U(),l("scroll",function(){3==n.loadMode&&(n.loadMode=2),e()},!0)}};return{_:function(){z=o.now(),r=t.getElementsByClassName(n.lazyClass),c=t.getElementsByClassName(n.lazyClass+" "+n.preloadClass),L=n.hFac,l("scroll",U,!0),l("resize",U,!0),e.MutationObserver?new MutationObserver(U).observe(i,{childList:!0,subtree:!0,attributes:!0}):(i[a]("DOMNodeInserted",U,!0),i[a]("DOMAttrModified",U,!0),setInterval(U,999)),l("hashchange",U,!0),["focus","mouseover","click","load","transitionend","animationend","webkitAnimationEnd"].forEach(function(e){t[a](e,U,!0)}),/d$|^c/.test(t.readyState)?ne():(l("load",ne),t[a]("DOMContentLoaded",U),u(ne,2e4)),r.length?(Y(),T._lsFlush()):U()},checkElems:U,unveil:te}}(),D=function(){var e,i=_(function(e,t,n,i){var o,r,a;
1if(e._lazysizesWidth=i,i+="px",e.setAttribute("sizes",i),f.test(t.nodeName||""))for(o=t.getElementsByTagName("source"),r=0,a=o.length;a>r;r++)o[r].setAttribute("sizes",i);n.detail.dataAttr||x(e,n.detail)}),o=function s(e,t,n){var s,o=e.parentNode;o&&(n=z(e,o,n),s=b(e,"lazybeforesizes",{width:n,dataAttr:!!t}),s.defaultPrevented||(n=s.detail.width,n&&n!==e._lazysizesWidth&&i(e,o,s,n)))},r=function(){var t,n=e.length;if(n)for(t=0;n>t;t++)o(e[t])},a=F(r);return{_:function(){e=t.getElementsByClassName(n.autosizesClass),l("resize",a)},checkElems:a,updateElem:o}}(),I=function A(){A.i||(A.i=!0,D._(),S._())};return function(){var t,i={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2};n=e.lazySizesConfig||e.lazysizesConfig||{};for(t in i)t in n||(n[t]=i[t]);e.lazySizesConfig=n,u(function(){n.init&&I()})}(),{cfg:n,autoSizer:D,loader:S,init:I,uP:x,aC:v,rC:w,hC:g,fire:b,gW:z,rAF:T}}}),!function(e,t){"use strict";function n(e,n){if(!r[e]){var i=t.createElement(n?"link":"script"),o=t.getElementsByTagName("script")[0];n?(i.rel="stylesheet",i.href=e):i.src=e,r[e]=!0,r[i.src||i.href]=!0,o.parentNode.insertBefore(i,o)}}var i,o,r={};t.addEventListener&&(o=/\(|\)|\s|'/,i=function a(e,n){var a=t.createElement("img");a.onload=function(){a.onload=null,a.onerror=null,a=null,n()},a.onerror=a.onload,a.src=e,a&&a.complete&&a.onload&&a.onload()},addEventListener("lazybeforeunveil",function(e){var t,r,a,s;e.defaultPrevented||("none"==e.target.preload&&(e.target.preload="auto"),t=e.target.getAttribute("data-link"),t&&n(t,!0),t=e.target.getAttribute("data-script"),t&&n(t),t=e.target.getAttribute("data-require"),t&&(lazySizes.cfg.requireJs?lazySizes.cfg.requireJs([t]):n(t)),a=e.target.getAttribute("data-bg"),a&&(e.detail.firesLoad=!0,r=function(){e.target.style.backgroundImage="url("+(o.test(a)?JSON.stringify(a):a)+")",e.detail.firesLoad=!1,lazySizes.fire(e.target,"_lazyloaded",{},!0,!0)},i(a,r)),s=e.target.getAttribute("data-poster"),s&&(e.detail.firesLoad=!0,r=function(){e.target.poster=s,e.detail.firesLoad=!1,lazySizes.fire(e.target,"_lazyloaded",{},!0,!0)},i(s,r)))},!1))}(window,document),!function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.PhotoSwipe=t()}(this,function(){"use strict";var e=function(e,t,n,i){var o={features:null,bind:function(e,t,n,i){var o=(i?"remove":"add")+"EventListener";t=t.split(" ");for(var r=0;r<t.length;r++)t[r]&&e[o](t[r],n,!1)},isArray:function(e){return e instanceof Array},createEl:function(e,t){var n=document.createElement(t||"div");return e&&(n.className=e),n},getScrollY:function(){var e=window.pageYOffset;return void 0!==e?e:document.documentElement.scrollTop},unbind:function(e,t,n){o.bind(e,t,n,!0)},removeClass:function(e,t){var n=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(n," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")},addClass:function(e,t){o.hasClass(e,t)||(e.className+=(e.className?" ":"")+t)},hasClass:function(e,t){return e.className&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(e.className)},getChildByClass:function(e,t){for(var n=e.firstChild;n;){if(o.hasClass(n,t))return n;n=n.nextSibling}},arraySearch:function(e,t,n){for(var i=e.length;i--;)if(e[i][n]===t)return i;return-1},extend:function(e,t,n){for(var i in t)if(t.hasOwnProperty(i)){if(n&&e.hasOwnProperty(i))continue;e[i]=t[i]}},easing:{sine:{out:function(e){return Math.sin(e*(Math.PI/2))},inOut:function(e){return-(Math.cos(Math.PI*e)-1)/2}},cubic:{out:function(e){return--e*e*e+1}}},detectFeatures:function(){if(o.features)return o.features;var e=o.createEl(),t=e.style,n="",i={};if(i.oldIE=document.all&&!document.addEventListener,i.touch="ontouchstart"in window,window.requestAnimationFrame&&(i.raf=window.requestAnimationFrame,i.caf=window.cancelAnimationFrame),i.pointerEvent=navigator.pointerEnabled||navigator.msPointerEnabled,!i.pointerEvent){var r=navigator.userAgent;if(/iP(hone|od)/.test(navigator.platform)){var a=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);a&&a.length>0&&(a=parseInt(a[1],10),a>=1&&a<8&&(i.isOldIOSPhone=!0))}var s=r.match(/Android\s([0-9\.]*)/),l=s?s[1]:0;l=parseFloat(l),l>=1&&(l<4.4&&(i.isOldAndroid=!0),i.androidVersion=l),i.isMobileOpera=/opera mini|o
1pera mobi/i.test(r)}for(var u,c,d=["transform","perspective","animationName"],f=["","webkit","Moz","ms","O"],p=0;p<4;p++){n=f[p];for(var m=0;m<3;m++)u=d[m],c=n+(n?u.charAt(0).toUpperCase()+u.slice(1):u),!i[u]&&c in t&&(i[u]=c);n&&!i.raf&&(n=n.toLowerCase(),i.raf=window[n+"RequestAnimationFrame"],i.raf&&(i.caf=window[n+"CancelAnimationFrame"]||window[n+"CancelRequestAnimationFrame"]))}if(!i.raf){var h=0;i.raf=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-h)),i=window.setTimeout(function(){e(t+n)},n);return h=t+n,i},i.caf=function(e){clearTimeout(e)}}return i.svg=!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,o.features=i,i}};o.detectFeatures(),o.features.oldIE&&(o.bind=function(e,t,n,i){t=t.split(" ");for(var o,r=(i?"detach":"attach")+"Event",a=function(){n.handleEvent.call(n)},s=0;s<t.length;s++)if(o=t[s])if("object"==typeof n&&n.handleEvent){if(i){if(!n["oldIE"+o])return!1}else n["oldIE"+o]=a;e[r]("on"+o,n["oldIE"+o])}else e[r]("on"+o,n)});var r=this,a=25,s=3,l={allowPanToNext:!0,spacing:.12,bgOpacity:1,mouseUsed:!1,loop:!0,pinchToClose:!0,closeOnScroll:!0,closeOnVerticalDrag:!0,verticalDragRange:.75,hideAnimationDuration:333,showAnimationDuration:333,showHideOpacity:!1,focus:!0,escKey:!0,arrowKeys:!0,mainScrollEndFriction:.35,panEndFriction:.35,isClickableElement:function(e){return"A"===e.tagName},getDoubleTapZoom:function(e,t){return e?1:t.initialZoomLevel<.7?1:1.33},maxSpreadZoom:1.33,modal:!0,scaleMode:"fit"};o.extend(l,i);var u,c,d,f,p,m,h,g,v,w,y,b,x,C,z,T,_,E,F,S,D,I,k,A,M,O,R,P,L,$,N,H,q,K,B,Z,W,j,Y,U,Q,G,X,V,J,ee,te,ne,ie,oe,re,ae,se,le,ue,ce,de,fe=function(){return{x:0,y:0}},pe=fe(),me=fe(),he=fe(),ge={},ve=0,we={},ye=fe(),be=0,xe=!0,Ce=[],ze={},Te=!1,_e=function(e,t){o.extend(r,t.publicMethods),Ce.push(e)},Ee=function(e){var t=en();return e>t-1?e-t:e<0?t+e:e},Fe={},Se=function(e,t){return Fe[e]||(Fe[e]=[]),Fe[e].push(t)},De=function(e){var t=Fe[e];if(t){var n=Array.prototype.slice.call(arguments);n.shift();for(var i=0;i<t.length;i++)t[i].apply(r,n)}},Ie=function(){return(new Date).getTime()},ke=function(e){ue=e,r.bg.style.opacity=e*l.bgOpacity},Ae=function(e,t,n,i,o){(!Te||o&&o!==r.currItem)&&(i/=o?o.fitRatio:r.currItem.fitRatio),e[I]=b+t+"px, "+n+"px"+x+" scale("+i+")"},Me=function(e){oe&&(e&&(w>r.currItem.fitRatio?Te||(pn(r.currItem,!1,!0),Te=!0):Te&&(pn(r.currItem),Te=!1)),Ae(oe,he.x,he.y,w))},Oe=function(e){e.container&&Ae(e.container.style,e.initialPosition.x,e.initialPosition.y,e.initialZoomLevel,e)},Re=function(e,t){t[I]=b+e+"px, 0px"+x},Pe=function(e,t){if(!l.loop&&t){var n=f+(ye.x*ve-e)/ye.x,i=Math.round(e-yt.x);(n<0&&i>0||n>=en()-1&&i<0)&&(e=yt.x+i*l.mainScrollEndFriction)}yt.x=e,Re(e,p)},Le=function(e,t){var n=bt[e]-we[e];return me[e]+pe[e]+n-n*(t/y)},$e=function(e,t){e.x=t.x,e.y=t.y,t.id&&(e.id=t.id)},Ne=function(e){e.x=Math.round(e.x),e.y=Math.round(e.y)},He=null,qe=function(){He&&(o.unbind(document,"mousemove",qe),o.addClass(e,"pswp--has_mouse"),l.mouseUsed=!0,De("mouseUsed")),He=setTimeout(function(){He=null},100)},Ke=function(){o.bind(document,"keydown",r),N.transform&&o.bind(r.scrollWrap,"click",r),l.mouseUsed||o.bind(document,"mousemove",qe),o.bind(window,"resize scroll orientationchange",r),De("bindEvents")},Be=function(){o.unbind(window,"resize scroll orientationchange",r),o.unbind(window,"scroll",v.scroll),o.unbind(document,"keydown",r),o.unbind(document,"mousemove",qe),N.transform&&o.unbind(r.scrollWrap,"click",r),Y&&o.unbind(window,h,r),clearTimeout(H),De("unbindEvents")},Ze=function(e,t){var n=un(r.currItem,ge,e);return t&&(ie=n),n},We=function(e){return e||(e=r.currItem),e.initialZoomLevel},je=function(e){return e||(e=r.currItem),e.w>0?l.maxSpreadZoom:1},Ye=function(e,t,n,i){return i===r.currItem.initialZoomLevel?(n[e]=r.currItem.initialPosition[e],!0):(n[e]=Le(e,i),n[e]>t.min[e]?(n[e]=t.min[e],!0):n[e]<t.max[e]&&(n[e]=t.max[e],!0))},Ue=function(){if(I){var t=N.perspective&&!A;return b="translate"+(t?"3d(":"("),void(x=N.perspective?", 0px)":")")}I="left",o.addClass(e,"pswp--ie"),Re=function(e,t){t.left=e+"px"},Oe=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"}
1,Me=function(){if(oe){var e=oe,t=r.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=he.x+"px",e.top=he.y+"px"}}},Qe=function(e){var t="";l.escKey&&27===e.keyCode?t="close":l.arrowKeys&&(37===e.keyCode?t="prev":39===e.keyCode&&(t="next")),t&&(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey||(e.preventDefault?e.preventDefault():e.returnValue=!1,r[t]()))},Ge=function(e){e&&(G||Q||re||W)&&(e.preventDefault(),e.stopPropagation())},Xe=function(){r.setScrollOffset(0,o.getScrollY())},Ve={},Je=0,et=function(e){Ve[e]&&(Ve[e].raf&&O(Ve[e].raf),Je--,delete Ve[e])},tt=function(e){Ve[e]&&et(e),Ve[e]||(Je++,Ve[e]={})},nt=function(){for(var e in Ve)Ve.hasOwnProperty(e)&&et(e)},it=function(e,t,n,i,o,r,a){var s,l=Ie();tt(e);var u=function(){if(Ve[e]){if(s=Ie()-l,s>=i)return et(e),r(n),void(a&&a());r((n-t)*o(s/i)+t),Ve[e].raf=M(u)}};u()},ot={shout:De,listen:Se,viewportSize:ge,options:l,isMainScrollAnimating:function(){return re},getZoomLevel:function(){return w},getCurrentIndex:function(){return f},isDragging:function(){return Y},isZooming:function(){return ee},setScrollOffset:function(e,t){we.x=e,$=we.y=t,De("updateScrollOffset",we)},applyZoomPan:function(e,t,n,i){he.x=t,he.y=n,w=e,Me(i)},init:function(){if(!u&&!c){var n;r.framework=o,r.template=e,r.bg=o.getChildByClass(e,"pswp__bg"),R=e.className,u=!0,N=o.detectFeatures(),M=N.raf,O=N.caf,I=N.transform,L=N.oldIE,r.scrollWrap=o.getChildByClass(e,"pswp__scroll-wrap"),r.container=o.getChildByClass(r.scrollWrap,"pswp__container"),p=r.container.style,r.itemHolders=T=[{el:r.container.children[0],wrap:0,index:-1},{el:r.container.children[1],wrap:0,index:-1},{el:r.container.children[2],wrap:0,index:-1}],T[0].el.style.display=T[2].el.style.display="none",Ue(),v={resize:r.updateSize,orientationchange:function(){clearTimeout(H),H=setTimeout(function(){ge.x!==r.scrollWrap.clientWidth&&r.updateSize()},500)},scroll:Xe,keydown:Qe,click:Ge};var i=N.isOldIOSPhone||N.isOldAndroid||N.isMobileOpera;for(N.animationName&&N.transform&&!i||(l.showAnimationDuration=l.hideAnimationDuration=0),n=0;n<Ce.length;n++)r["init"+Ce[n]]();if(t){var a=r.ui=new t(r,o);a.init()}De("firstUpdate"),f=f||l.index||0,(isNaN(f)||f<0||f>=en())&&(f=0),r.currItem=Jt(f),(N.isOldIOSPhone||N.isOldAndroid)&&(xe=!1),e.setAttribute("aria-hidden","false"),l.modal&&(xe?e.style.position="fixed":(e.style.position="absolute",e.style.top=o.getScrollY()+"px")),void 0===$&&(De("initialLayout"),$=P=o.getScrollY());var d="pswp--open ";for(l.mainClass&&(d+=l.mainClass+" "),l.showHideOpacity&&(d+="pswp--animate_opacity "),d+=A?"pswp--touch":"pswp--notouch",d+=N.animationName?" pswp--css_animation":"",d+=N.svg?" pswp--svg":"",o.addClass(e,d),r.updateSize(),m=-1,be=null,n=0;n<s;n++)Re((n+m)*ye.x,T[n].el.style);L||o.bind(r.scrollWrap,g,r),Se("initialZoomInEnd",function(){r.setContent(T[0],f-1),r.setContent(T[2],f+1),T[0].el.style.display=T[2].el.style.display="block",l.focus&&e.focus(),Ke()}),r.setContent(T[1],f),r.updateCurrItem(),De("afterInit"),xe||(C=setInterval(function(){Je||Y||ee||w!==r.currItem.initialZoomLevel||r.updateSize()},1e3)),o.addClass(e,"pswp--visible")}},close:function(){u&&(u=!1,c=!0,De("close"),Be(),nn(r.currItem,null,!0,r.destroy))},destroy:function(){De("destroy"),Qt&&clearTimeout(Qt),e.setAttribute("aria-hidden","true"),e.className=R,C&&clearInterval(C),o.unbind(r.scrollWrap,g,r),o.unbind(window,"scroll",r),_t(),nt(),Fe=null},panTo:function(e,t,n){n||(e>ie.min.x?e=ie.min.x:e<ie.max.x&&(e=ie.max.x),t>ie.min.y?t=ie.min.y:t<ie.max.y&&(t=ie.max.y)),he.x=e,he.y=t,Me()},handleEvent:function(e){e=e||window.event,v[e.type]&&v[e.type](e)},goTo:function(e){e=Ee(e);var t=e-f;be=t,f=e,r.currItem=Jt(f),ve-=t,Pe(ye.x*ve),nt(),re=!1,r.updateCurrItem()},next:function(){r.goTo(f+1)},prev:function(){r.goTo(f-1)},updateCurrZoomItem:function(e){if(e&&De("beforeChange",0),T[1].el.children.length){var t=T[1].el.children[0];oe=o.hasClass(t,"pswp__zoom-wrap")?t.style:null}else oe=null;ie=r.currItem.bounds,y=w=r.currItem.initialZoomLevel,he.x=ie.center.x,he.y=ie.center.y,e&&De("afterChange")},invalidateCurrItems:function(){z=!0;for(var e=0;e<s;e++)T[e].item&&(T[e].item.needsUpdate=!0)},updateCurrItem:function(e){if(0!==be){var t,n=Math.abs(be);if(!(e&&n<2)){r.currItem=Jt(f),Te=!1,De("beforeChange",be),n>=s&&(m+=be+(be>0?-s:s),n=s);for(var i=0;i<n;i++)be>0?(t=T.shift(),T[s-1]=t,m++,Re((m+2)*ye.x,t.el.style),r.setContent(t,f-n+i+1+1)):(t=T.pop(),T.unshift(t),m--,Re(m*ye.x,t.el.style),r.setContent(t,f+n-i-1-1));if(oe&&1===Math.abs(be)){var o=Jt(_);o.initialZoomLevel!==w&&(un(o,ge),pn(o),Oe(o))}be=0,r.updateCurrZoomItem(),_=f,De("afterChange")}}},updateSize:function(t){if(!xe&&l.modal){var n=o.getScrollY();if($!==n&&(e.style.top=n+"px",$=n),!t&&ze.x===window.innerWidth&&ze.y===window.innerHeight)return;ze.x=window.innerWidth,ze.y=window.innerHeight,e.style.height=ze.y+"px"}if(ge.x=r.scrollWrap.clientWidth,ge.y=r.scrollWrap.clientHeight,Xe(),ye.x=ge.x+Math.round(ge.x*l.spacing),ye.y=ge.y,Pe(ye.x*ve),De("beforeResize"),void 0!==m){for(var i,a,u,c=0;c<s;c++)i=T[c],Re((c+m)*ye.x,i.el.style),u=f+c-1,l.loop&&en()>2&&(u=Ee(u)),a=Jt(u),a&&(z||a.needsUpdate||!a.bounds)?(r.cleanSlide(a),r.setContent(i,u),1===c&&(r.currItem=a,r.updateCurrZoomItem(!0)),a.needsUpdate=!1):i.index===-1&&u>=0&&r.setContent(i,u),a&&a.container&&(un(a,ge),pn(a),Oe(a));z=!1}y=w=r.currItem.initialZoomLevel,ie=r.currItem.bounds,ie&&(he.x=ie.center.x,he.
1y=ie.center.y,Me(!0)),De("resize")},zoomTo:function(e,t,n,i,r){t&&(y=w,bt.x=Math.abs(t.x)-he.x,bt.y=Math.abs(t.y)-he.y,$e(me,he));var a=Ze(e,!1),s={};Ye("x",a,s,e),Ye("y",a,s,e);var l=w,u={x:he.x,y:he.y};Ne(s);var c=function(t){1===t?(w=e,he.x=s.x,he.y=s.y):(w=(e-l)*t+l,he.x=(s.x-u.x)*t+u.x,he.y=(s.y-u.y)*t+u.y),r&&r(t),Me(1===t)};n?it("customZoomTo",0,1,n,i||o.easing.sine.inOut,c):c(1)}},rt=30,at=10,st={},lt={},ut={},ct={},dt={},ft=[],pt={},mt=[],ht={},gt=0,vt=fe(),wt=0,yt=fe(),bt=fe(),xt=fe(),Ct=function(e,t){return e.x===t.x&&e.y===t.y},zt=function(e,t){return Math.abs(e.x-t.x)<a&&Math.abs(e.y-t.y)<a},Tt=function(e,t){return ht.x=Math.abs(e.x-t.x),ht.y=Math.abs(e.y-t.y),Math.sqrt(ht.x*ht.x+ht.y*ht.y)},_t=function(){X&&(O(X),X=null)},Et=function(){Y&&(X=M(Et),Kt())},Ft=function(){return!("fit"===l.scaleMode&&w===r.currItem.initialZoomLevel)},St=function(e,t){return!(!e||e===document)&&!(e.getAttribute("class")&&e.getAttribute("class").indexOf("pswp__scroll-wrap")>-1)&&(t(e)?e:St(e.parentNode,t))},Dt={},It=function(e,t){return Dt.prevent=!St(e.target,l.isClickableElement),De("preventDragEvent",e,t,Dt),Dt.prevent},kt=function(e,t){return t.x=e.pageX,t.y=e.pageY,t.id=e.identifier,t},At=function(e,t,n){n.x=.5*(e.x+t.x),n.y=.5*(e.y+t.y)},Mt=function(e,t,n){if(e-K>50){var i=mt.length>2?mt.shift():{};i.x=t,i.y=n,mt.push(i),K=e}},Ot=function(){var e=he.y-r.currItem.initialPosition.y;return 1-Math.abs(e/(ge.y/2))},Rt={},Pt={},Lt=[],$t=function(e){for(;Lt.length>0;)Lt.pop();return k?(de=0,ft.forEach(function(e){0===de?Lt[0]=e:1===de&&(Lt[1]=e),de++})):e.type.indexOf("touch")>-1?e.touches&&e.touches.length>0&&(Lt[0]=kt(e.touches[0],Rt),e.touches.length>1&&(Lt[1]=kt(e.touches[1],Pt))):(Rt.x=e.pageX,Rt.y=e.pageY,Rt.id="",Lt[0]=Rt),Lt},Nt=function(e,t){var n,i,o,a,s=0,u=he[e]+t[e],c=t[e]>0,d=yt.x+t.x,f=yt.x-pt.x;return n=u>ie.min[e]||u<ie.max[e]?l.panEndFriction:1,u=he[e]+t[e]*n,!l.allowPanToNext&&w!==r.currItem.initialZoomLevel||(oe?"h"!==ae||"x"!==e||Q||(c?(u>ie.min[e]&&(n=l.panEndFriction,s=ie.min[e]-u,i=ie.min[e]-me[e]),(i<=0||f<0)&&en()>1?(a=d,f<0&&d>pt.x&&(a=pt.x)):ie.min.x!==ie.max.x&&(o=u)):(u<ie.max[e]&&(n=l.panEndFriction,s=u-ie.max[e],i=me[e]-ie.max[e]),(i<=0||f>0)&&en()>1?(a=d,f>0&&d<pt.x&&(a=pt.x)):ie.min.x!==ie.max.x&&(o=u))):a=d,"x"!==e)?void(re||V||w>r.currItem.fitRatio&&(he[e]+=t[e]*n)):(void 0!==a&&(Pe(a,!0),V=a!==pt.x),ie.min.x!==ie.max.x&&(void 0!==o?he.x=o:V||(he.x+=t.x*n)),void 0!==a)},Ht=function(e){if(!("mousedown"===e.type&&e.button>0)){if(Vt)return void e.preventDefault();if(!j||"mousedown"!==e.type){if(It(e,!0)&&e.preventDefault(),De("pointerDown"),k){var t=o.arraySearch(ft,e.pointerId,"id");t<0&&(t=ft.length),ft[t]={x:e.pageX,y:e.pageY,id:e.pointerId}}var n=$t(e),i=n.length;J=null,nt(),Y&&1!==i||(Y=se=!0,o.bind(window,h,r),Z=ce=le=W=V=G=U=Q=!1,ae=null,De("firstTouchStart",n),$e(me,he),pe.x=pe.y=0,$e(ct,n[0]),$e(dt,ct),pt.x=ye.x*ve,mt=[{x:ct.x,y:ct.y}],K=q=Ie(),Ze(w,!0),_t(),Et()),!ee&&i>1&&!re&&!V&&(y=w,Q=!1,ee=U=!0,pe.y=pe.x=0,$e(me,he),$e(st,n[0]),$e(lt,n[1]),At(st,lt,xt),bt.x=Math.abs(xt.x)-he.x,bt.y=Math.abs(xt.y)-he.y,te=ne=Tt(st,lt))}}},qt=function(e){if(e.preventDefault(),k){var t=o.arraySearch(ft,e.pointerId,"id");if(t>-1){var n=ft[t];n.x=e.pageX,n.y=e.pageY}}if(Y){var i=$t(e);if(ae||G||ee)J=i;else if(yt.x!==ye.x*ve)ae="h";else{var r=Math.abs(i[0].x-ct.x)-Math.abs(i[0].y-ct.y);Math.abs(r)>=at&&(ae=r>0?"h":"v",J=i)}}},Kt=function(){if(J){var e=J.length;if(0!==e)if($e(st,J[0]),ut.x=st.x-ct.x,ut.y=st.y-ct.y,ee&&e>1){if(ct.x=st.x,ct.y=st.y,!ut.x&&!ut.y&&Ct(J[1],lt))return;$e(lt,J[1]),Q||(Q=!0,De("zoomGestureStarted"));var t=Tt(st,lt),n=Yt(t);n>r.currItem.initialZoomLevel+r.currItem.initialZoomLevel/15&&(ce=!0);var i=1,o=We(),a=je();if(n<o)if(l.pinchToClose&&!ce&&y<=r.currItem.initialZoomLevel){var s=o-n,u=1-s/(o/1.2);ke(u),De("onPinchClose",u),le=!0}else i=(o-n)/o,i>1&&(i=1),n=o-i*(o/3);else n>a&&(i=(n-a)/(6*o),i>1&&(i=1),n=a+i*o);i<0&&(i=0),te=t,At(st,lt,vt),pe.x+=vt.x-xt.x,pe.y+=vt.y-xt.y,$e(xt,vt),he.x=Le("x",n),he.y=Le("y",n),Z=n>w,w=n,Me()}else{if(!ae)return;if(se&&(se=!1,Math.abs(ut.x)>=at&&(ut.x-=J[0].x-dt.x),Math.abs(ut.y)>=at&&(ut.y-=J[0].y-dt.y)),ct.x=st.x,ct.y=st.y,0===ut.x&&0===ut.y)return;if("v"===ae&&l.closeOnVerticalDrag&&!Ft()){pe.y+=ut.y,he.y+=ut.y;var c=Ot();return W=!0,De("onVerticalDrag",c),ke(c),void Me()}Mt(Ie(),st.x,st.y),G=!0,ie=r.currItem.bounds;var d=Nt("x",ut);d||(Nt("y",ut),Ne(he),Me())}}},Bt=function(e){if(N.isOldAndroid){if(j&&"mouseup"===e.type)return;e.type.indexOf("touch")>-1&&(clearTimeout(j),j=setTimeout(function(){j=0},600))}De("pointerUp"),It(e,!1)&&e.preventDefault();var t;if(k){var n=o.arraySearch(ft,e.pointerId,"id");if(n>-1)if(t=ft.splice(n,1)[0],navigator.pointerEnabled)t.type=e.pointerType||"mouse";else{var i={4:"mouse",2:"touch",3:"pen"};t.type=i[e.pointerType],t.type||(t.type=e.pointerType||"mouse")}}var a,s=$t(e),u=s.length;if("mouseup"===e.type&&(u=0),2===u)return J=null,!0;1===u&&$e(dt,s[0]),0!==u||ae||re||(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"})),De("touchRelease",e,t));var c=-1;if(0===u&&(Y=!1,o.unbind(window,h,r),_t(),ee?c=0:wt!==-1&&(c=Ie()-wt)),wt=1===u?Ie():-1,a=c!==-1&&c<150?"zoom":"swipe",ee&&u<2&&(ee=!1,1===u&&(a="zoomPointerUp"),De("zoomGestureEnded")),J=null,G||Q||re||W)if(nt(),B||(B=Zt()),B.calculateSwipeSpeed("x"),W){var d=Ot();if(d<l.verticalDragRange)r.close();else{var f=he.y,p=ue;it("verticalDrag",0,1,300,o.easing.cubic.out,function(e){he.y=(r.currItem.initialPosition.y-f)*e+f,ke((1-p)*e+p),Me()}),De("onVerticalDrag",1)}}else{if((V||re)&&0===u){var m=jt(a,B);if(m)return;a="zoomPointerUp"}if(!re)return"swipe"!==a?void Ut():void(!V&&w>r.currItem.fitRatio&&Wt(B))}},Zt=function(){var e,t,n={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{}
1,backAnimDestination:{},backAnimStarted:{},calculateSwipeSpeed:function(i){mt.length>1?(e=Ie()-K+50,t=mt[mt.length-2][i]):(e=Ie()-q,t=dt[i]),n.lastFlickOffset[i]=ct[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]||(he[e]>ie.min[e]?n.backAnimDestination[e]=ie.min[e]:he[e]<ie.max[e]&&(n.backAnimDestination[e]=ie.max[e]),void 0!==n.backAnimDestination[e]&&(n.slowDownRatio[e]=.7,n.slowDownRatioReverse[e]=1-n.slowDownRatio[e],n.speedDecelerationRatioAbs[e]<.05&&(n.lastFlickSpeed[e]=0,n.backAnimStarted[e]=!0,it("bounceZoomPan"+e,he[e],n.backAnimDestination[e],t||300,o.easing.sine.out,function(t){he[e]=t,Me()}))))},calculateAnimOffset:function(e){n.backAnimStarted[e]||(n.speedDecelerationRatio[e]=n.speedDecelerationRatio[e]*(n.slowDownRatio[e]+n.slowDownRatioReverse[e]-n.slowDownRatioReverse[e]*n.timeDiff/10),n.speedDecelerationRatioAbs[e]=Math.abs(n.lastFlickSpeed[e]*n.speedDecelerationRatio[e]),n.distanceOffset[e]=n.lastFlickSpeed[e]*n.speedDecelerationRatio[e]*n.timeDiff,he[e]+=n.distanceOffset[e])},panAnimLoop:function(){if(Ve.zoomPan&&(Ve.zoomPan.raf=M(n.panAnimLoop),n.now=Ie(),n.timeDiff=n.now-n.lastNow,n.lastNow=n.now,n.calculateAnimOffset("x"),n.calculateAnimOffset("y"),Me(),n.calculateOverBoundsAnimOffset("x"),n.calculateOverBoundsAnimOffset("y"),n.speedDecelerationRatioAbs.x<.05&&n.speedDecelerationRatioAbs.y<.05))return he.x=Math.round(he.x),he.y=Math.round(he.y),Me(),void et("zoomPan")}};return n},Wt=function(e){return e.calculateSwipeSpeed("y"),ie=r.currItem.bounds,e.backAnimDestination={},e.backAnimStarted={},Math.abs(e.lastFlickSpeed.x)<=.05&&Math.abs(e.lastFlickSpeed.y)<=.05?(e.speedDecelerationRatioAbs.x=e.speedDecelerationRatioAbs.y=0,e.calculateOverBoundsAnimOffset("x"),e.calculateOverBoundsAnimOffset("y"),!0):(tt("zoomPan"),e.lastNow=Ie(),void e.panAnimLoop())},jt=function(e,t){var n;re||(gt=f);var i;if("swipe"===e){var a=ct.x-dt.x,s=t.lastFlickDist.x<10;a>rt&&(s||t.lastFlickOffset.x>20)?i=-1:a<-rt&&(s||t.lastFlickOffset.x<-20)&&(i=1)}var u;i&&(f+=i,f<0?(f=l.loop?en()-1:0,u=!0):f>=en()&&(f=l.loop?0:en()-1,u=!0),u&&!l.loop||(be+=i,ve-=i,n=!0));var c,d=ye.x*ve,p=Math.abs(d-yt.x);return n||d>yt.x==t.lastFlickSpeed.x>0?(c=Math.abs(t.lastFlickSpeed.x)>0?p/Math.abs(t.lastFlickSpeed.x):333,c=Math.min(c,400),c=Math.max(c,250)):c=333,gt===f&&(n=!1),re=!0,De("mainScrollAnimStart"),it("mainScroll",yt.x,d,c,o.easing.cubic.out,Pe,function(){nt(),re=!1,gt=-1,(n||gt!==f)&&r.updateCurrItem(),De("mainScrollAnimComplete")}),n&&r.updateCurrItem(!0),n},Yt=function(e){return 1/ne*e*y},Ut=function(){var e=w,t=We(),n=je();w<t?e=t:w>n&&(e=n);var i,a=1,s=ue;return le&&!Z&&!ce&&w<t?(r.close(),!0):(le&&(i=function(e){ke((a-s)*e+s)}),r.zoomTo(e,0,200,o.easing.cubic.out,i),!0)};_e("Gestures",{publicMethods:{initGestures:function(){var e=function(e,t,n,i,o){E=e+t,F=e+n,S=e+i,D=o?e+o:""};k=N.pointerEvent,k&&N.touch&&(N.touch=!1),k?navigator.pointerEnabled?e("pointer","down","move","up","cancel"):e("MSPointer","Down","Move","Up","Cancel"):N.touch?(e("touch","start","move","end","cancel"),A=!0):e("mouse","down","move","up"),h=F+" "+S+" "+D,g=E,k&&!A&&(A=navigator.maxTouchPoints>1||navigator.msMaxTouchPoints>1),r.likelyTouchDevice=A,v[E]=Ht,v[F]=qt,v[S]=Bt,D&&(v[D]=v[S]),N.touch&&(g+=" mousedown",h+=" mousemove mouseup",v.mousedown=v[E],v.mousemove=v[F],v.mouseup=v[S]),A||(l.allowPanToNext=!1)}}});var Qt,Gt,Xt,Vt,Jt,en,tn,nn=function(t,n,i,a){Qt&&clearTimeout(Qt),
2Vt=!0,Xt=!0;var s;t.initialLayout?(s=t.initialLayout,t.initialLayout=null):s=l.getThumbBoundsFn&&l.getThumbBoundsFn(f);var u=i?l.hideAnimationDuration:l.showAnimationDuration,c=function(){et("initialZoom"),i?(r.template.removeAttribute("style"),r.bg.removeAttribute("style")):(ke(1),n&&(n.style.display="block"),o.addClass(e,"pswp--animated-in"),De("initialZoom"+(i?"OutEnd":"InEnd"))),a&&a(),Vt=!1};if(!u||!s||void 0===s.x)return De("initialZoom"+(i?"Out":"In")),w=t.initialZoomLevel,$e(he,t.initialPosition),Me(),e.style.opacity=i?0:1,ke(1),void(u?setTimeout(function(){c()},u):c());var p=function(){var n=d,a=!r.currItem.src||r.currItem.loadError||l.showHideOpacity;t.miniImg&&(t.miniImg.style.webkitBackfaceVisibility="hidden"),i||(w=s.w/t.w,he.x=s.x,he.y=s.y-P,r[a?"template":"bg"].style.opacity=.001,Me()),tt("initialZoom"),i&&
2!n&&o.removeClass(e,"pswp--animated-in"),a&&(i?o[(n?"remove":"add")+"Class"](e,"pswp--animate_opacity"):setTimeout(function(){o.addClass(e,"pswp--animate_opacity")},30)),Qt=setTimeout(function(){if(De("initialZoom"+(i?"Out":"In")),i){var r=s.w/t.w,l={x:he.x,y:he.y},d=w,f=ue,p=function(t){1===t?(w=r,he.x=s.x,he.y=s.y-$):(w=(r-d)*t+d,he.x=(s.x-l.x)*t+l.x,he.y=(s.y-$-l.y)*t+l.y),Me(),a?e.style.opacity=1-t:ke(f-t*f)};n?it("initialZoom",0,1,u,o.easing.cubic.out,p,c):(p(1),Qt=setTimeout(c,u+20))}else w=t.initialZoomLevel,$e(he,t.initialPosition),Me(),ke(1),a?e.style.opacity=1:ke(1),Qt=setTimeout(c,u+20)},i?25:90)};p()},on={},rn=[],an={index:0,errorMsg:'<div class="pswp__error-msg"><a href="%url%" target="_blank">The image</a> could not be loaded.</div>',forceProgressiveLoading:!1,preload:[1,1],getNumItemsFn:function(){return Gt.length}},sn=function(){return{center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}}},ln=function(e,t,n){var i=e.bounds;i.center.x=Math.round((on.x-t)/2),i.center.y=Math.round((on.y-n)/2)+e.vGap.top,i.max.x=t>on.x?Math.round(on.x-t):i.center.x,i.max.y=n>on.y?Math.round(on.y-n)+e.vGap.top:i.center.y,i.min.x=t>on.x?0:i.center.x,i.min.y=n>on.y?e.vGap.top:i.center.y},un=function(e,t,n){if(e.src&&!e.loadError){var i=!n;if(i&&(e.vGap||(e.vGap={top:0,bottom:0}),De("parseVerticalMargin",e)),on.x=t.x,on.y=t.y-e.vGap.top-e.vGap.bottom,i){var o=on.x/e.w,r=on.y/e.h;e.fitRatio=o<r?o:r;var a=l.scaleMode;"orig"===a?n=1:"fit"===a&&(n=e.fitRatio),n>1&&(n=1),e.initialZoomLevel=n,e.bounds||(e.bounds=sn())}if(!n)return;return ln(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=sn(),e.initialPosition=e.bounds.center,e.bounds},cn=function(e,t,n,i,o,a){t.loadError||i&&(t.imageAppended=!0,pn(t,i,t===r.currItem&&Te),n.appendChild(i),a&&setTimeout(function(){t&&t.loaded&&t.placeholder&&(t.placeholder.style.display="none",t.placeholder=null)},500))},dn=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},fn=function(e,t){if(e.src&&e.loadError&&e.container)return t&&(e.container.innerHTML=""),e.container.innerHTML=l.errorMsg.replace("%url%",e.
2src),!0},pn=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"}},mn=function(){if(rn.length){for(var e,t=0;t<rn.length;t++)e=rn[t],e.holder.index===e.index&&cn(e.index,e.item,e.baseDiv,e.img,!1,e.clearPlaceholder);rn=[]}};_e("Controller",{publicMethods:{lazyLoadItem:function(e){e=Ee(e);var t=Jt(e);t&&(!t.loaded&&!t.loading||z)&&(De("gettingData",e,t),t.src&&dn(t))},initController:function(){o.extend(l,an,!0),r.items=Gt=n,Jt=r.getItemAt,en=l.getNumItemsFn,tn=l.loop,en()<3&&(l.loop=!1),Se("beforeChange",function(e){var t,n=l.preload,i=null===e||e>=0,o=Math.min(n[0],en()),a=Math.min(n[1],en());for(t=1;t<=(i?a:o);t++)r.lazyLoadItem(f+t);for(t=1;t<=(i?o:a);t++)r.lazyLoadItem(f-t)}),Se("initialLayout",function(){r.currItem.initialLayout=l.getThumbBoundsFn&&l.getThumbBoundsFn(f)}),Se("mainScrollAnimComplete",mn),Se("initialZoomInEnd",mn),Se("destroy",function(){for(var e,t=0;t<Gt.length;t++)e=Gt[t],e.container&&(e.container=null),e.placeholder&&(e.placeholder=null),e.img&&(e.img=null),e.preloader&&(e.preloader=null),e.loadError&&(e.loaded=e.loadError=!1);rn=null})},getItemAt:function(e){return e>=0&&void 0!==Gt[e]&&Gt[e]},allowProgressiveImg:function(){return l.forceProgressiveLoading||!A||l.mouseUsed||screen.width>1200},setContent:function(e,t){l.loop&&(t=Ee(t));var n=r.getItemAt(e.index);n&&(n.container=null);var i,a=r.getItemAt(t);if(!a)return void(e.el.innerHTML="");De("gettingData",t,a),e.index=t,e.item=a;var s=a.container=o.createEl("pswp__zoom-wrap");if(!a.src&&a.html&&(a.html.tagName?s.appendChild(a.html):s.innerHTML=a.html),fn(a),un(a,ge),!a.src||a.loadError||a.loaded)a.src&&!a.loadError&&(i=o.createEl("pswp__img","img"),i.style.opacity=1,i.src=a.src,pn(a,i),cn(t,a,s,i,!0));else{if(a.loadComplete=function(n){if(u){if(e&&e.index===t){if(fn(n,!0))return n.loadComplete=n.img=null,un(n,ge),Oe(n),void(e.index===f&&r.updateCurrZoomItem());n.imageAppended?!Vt&&n.placeholder&&(n.placeholder.style.display="none",n.placeholder=null):N.transform&&(re||Vt)?rn.push({item:n,baseDiv:s,img:n.img,index:t,holder:e,clearPlaceholder:!0}):cn(t,n,s,n.img,re||Vt,!0)}n.loadComplete=null,n.img=null,De("imageLoadComplete",t,n)}},o.features.transform){var c="pswp__img pswp__img--placeholder";c+=a.msrc?"":" pswp__img--placeholder--blank";var d=o.createEl(c,a.msrc?"img":"");a.msrc&&(d.src=a.msrc),pn(a,d),s.appendChild(d),a.placeholder=d}a.loading||dn(a),r.allowProgressiveImg()&&(!Xt&&N.transform?rn.push({item:a,baseDiv:s,img:a.img,index:t,holder:e}):cn(t,a,s,a.img,!0,!0))}Xt||t!==f?Oe(a):(oe=s.style,nn(a,i||a.img)),e.el.innerHTML="",e.el.appendChild(s)},cleanSlide:function(e){e.img&&(e.img.onload=e.img.onerror=null),e.loaded=e.loading=e.img=e.imageAppended=!1}}});var hn,gn={},vn=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)};_e("Tap",{publicMethods:{initTap:function(){Se("firstTouchStart",r.onTapStart),Se("touchRelease",r.onTapRelease),Se("destroy",function(){gn={},hn=null})},onTapStart:function(e){e.length>1&&(clearTimeout(hn),hn=null)},onTapRelease:function(e,t){if(t&&!G&&!U&&!Je){var n=t;if(hn&&(clearTimeout(hn),hn=null,zt(n,gn)))return void De("doubleTap",n);if("mouse"===t.type)return void vn(e,t,"mouse");var i=e.target.tagName.toUpperCase();if("BUTTON"===i||o.hasClass(e.target,"pswp__single-tap"))return void vn(e,t);$e(gn,n),hn=setTimeout(function(){vn(e,t),hn=null},300)}}}});var wn;_e("DesktopZoom",{publicMethods:{initDesktopZoom:function(){L||(A?Se("mouseUsed",function(){r.setupDesktopZoom()}):r.setupDesktopZoom(!0))},setupDesktopZoom:function(t){wn={};var n="wheel mousewheel DOMMouseScroll";Se("bindEvents",function(){o.bind(e,n,r.handleMouseWheel)}),Se("unbindEvents",function(){wn&&o.unbind(e,n,r.handleMouseWheel)}),r.mouseZoomedIn=!1;var i,a=function(){r.mouseZoomedIn&&(o.removeClass(e,"pswp--zoomed-in"),r.mouseZoomedIn=!1),w<1?o.addClass(e,"pswp--zoom-allowed"):o.removeClass(e,"pswp--zoom-allowed"),s()},s=function(){i&&(o.removeClass(e,"pswp--dragging"),i=!1)};Se("resize",a),Se("afterChange",a),Se("pointerDown",function(){r.mouseZoomedIn&&(i=!0,o.addClass(e,"pswp--dragging"))}),Se("pointerUp",s),t||a()},handleMouseWheel:function(e){if(w<=r.currItem.fitRatio)return l.modal&&(!l.closeOnScroll||Je||Y?e.preventDefault():I&&Math.abs(e.deltaY)>2&&(d=!0,r.close())),!0;if(e.stopPropagation(),wn.x=0,"deltaX"in e)1===e.deltaMode?(wn.x=18*e.deltaX,wn.y=18*e.deltaY):(wn.x=e.deltaX,wn.y=e.deltaY);else if("wheelDelta"in e)e.wheelDeltaX&&(wn.x=-.16*e.wheelDeltaX),e.wheelDeltaY?wn.y=-.16*e.wheelDeltaY:wn.y=-.16*e.wheelDelta;else{if(!("detail"in e))return;wn.y=e.detail}Ze(w,!0);var t=he.x-wn.x,n=he.y-wn.y;(l.modal||t<=ie.min.x&&t>=ie.max.x&&n<=ie.min.y&&n>=ie.max.y)&&e.preventDefault(),r.panTo(t,n)},toggleDesktopZoom:function(t){t=t||{x:ge.x/2+we.x,y:ge.y/2+we.y};var n=l.getDoubleTapZoom(!0,r.currItem),i=w===n;r.mouseZoomedIn=!i,r.zoomTo(i?r.currItem.initialZoomLevel:n,t,333),o[(i?"remove":"add")+"Class"](e,"pswp--zoomed-in")}}});var yn,bn,xn,Cn,zn,Tn,_n,En,Fn,Sn,Dn,In,kn={history:!0,galleryUID:1},An=function(){return Dn.hash.substring(1)},Mn=function(){yn&&clearTimeout(yn),xn&&clearTimeout(xn)},On=function(){var e=An(),t={};if(e.length<5)return t;var n,i=e.split("&");for(n=0;n<i.length;n++)if(i[n]){var o=i[n].split("=");o.length<2||(t[o[0]]=o[1])}if(l.galleryPIDs){var r=t.pid;for(t.pid=0,n=0;n<Gt.length;n++)if(Gt[n].pid===r){t.pid=n;break}}else t.pid=parseInt(t.pid,10)-1;return t.pid<0&&(t.pid=0),t},Rn=function(){if(xn&&clearTimeout(xn),Je||Y)return void(xn=setTimeout(Rn,500));Cn?clearTimeout(bn):Cn=!0;var e=f+1,t=Jt(f);t.hasOwnProperty("pid")&&(e=t.pid);var n=_n+"&gid="+l.galleryUID+"&pid="+e;En||Dn.hash.indexOf(n)===-1&&(Sn=!0);var i=Dn.href.split("#")[0]+"#"+n;In?"#"+n!==window.location.hash&&history[En?"replaceState":"pushState"]("",document.title,i):En?Dn.replace(i):Dn.hash=n,En=!0,bn=setTimeout(function(){Cn=!1},60)};_e("History",{publicMethods:{initHistory:function(){if(o.extend(l,kn,!0),l.history){Dn=window.location,Sn=!1,Fn=!1,En=!1,_n=An(),In="pushState"in history,_n.indexOf("gid=")>-1&&(_n=_n.split("&gid=")[0],_n=_n.split("?gid=")[0]),Se("afterChange",r.updateURL),Se("unbindEvents",function(){o.unbind(window,"hashchange",r.onHashChange)});var e=function(){Tn=!0,Fn||(Sn?history.back():_n?Dn.hash=_n:In?history.pushState("",document.title,Dn.pathname+Dn.search):Dn.hash=""),Mn()};Se("unbindEvents",function(){d&&e()}),Se("destroy",function(){Tn||e()}),Se("firstUpdate",function(){f=On().pid});var t=_n.indexOf("pid=");t>-1&&(_n=_n.substring(0,t),"&"===_n.slice(-1)&&(_n=_n.slice(0,-1))),setTimeout(function(){u&&o.bind(window,"hashchange",r.onHashChange)},40)}},onHashChange:function(){return An()===_n?(Fn=!0,void r.close()):void(Cn||(zn=!0,r.goTo(On().pid),zn=!1))},updateURL:function(){Mn(),zn||(En?yn=setTimeout(Rn,800):Rn())}}}),o.extend(r,ot)};return e}),!function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.PhotoSwipeUI_Default=t()}(this,function(){"use strict";var e=function(e,t){var n,i,o,r,a,s,l,u,c,d,f,p,m,h,g,v,w,y,b,x=this,C=!1,z=!0,T=!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
2:!0,preloaderEl:!0,tapToClose:!1,tapToToggleControls:!0,clickToCloseNonZoomable:!0,shareButtons:[{id:"facebook",label:"Share on Facebook",url:"https://www.facebook.com/sharer/sharer.php?u={{url}}"},{id:"twitter",label:"Tweet",url:"https://twitter.com/intent/tweet?text={{text}}&url={{url}}"},{id:"pinterest",label:"Pin it",url:"http://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}"},{id:"download",label:"Download image",url:"{{raw_image_url}}",download:!0}],getImageURLForShare:function(){return e.currItem.src||""},getPageURLForShare:function(){return window.location.href},getTextForShare:function(){return e.currItem.title||""},indexIndicatorSep:" / ",fitControlsWidth:1200},E=function(e){if(v)return!0;e=e||window.event,g.timeToIdle&&g.mouseUsed&&!c&&P();for(var n,i,o=e.target||e.srcElement,r=o.getAttribute("class")||"",a=0;a<Z.length;a++)n=Z[a],n.onTap&&r.indexOf("pswp__"+n.name)>-1&&(n.onTap(),i=!0);if(i){e.stopPropagation&&e.stopPropagation(),v=!0;var s=t.features.isOldAndroid?600:30;w=setTimeout(function(){v=!1},s)}},F=function(){return!e.likelyTouchDevice||g.mouseUsed||screen.width>g.fitControlsWidth},S=function(e,n,i){t[(i?"add":"remove")+"Class"](e,"pswp__"+n)},D=function(){var e=1===g.getNumItemsFn();e!==h&&(S(i,"ui--one-slide",e),h=e)},I=function(){S(l,"share-modal--hidden",T)},k=function(){return T=!T,T?(t.removeClass(l,"pswp__share-modal--fade-in"),setTimeout(function(){T&&I()},300)):(I(),setTimeout(function(){T||t.addClass(l,"pswp__share-modal--fade-in")},30)),T||M(),!1},A=function(t){t=t||window.event;var n=t.target||t.srcElement;return e.shout("shareLinkClick",t,n),!(!n.href||!n.hasAttribute("download")&&(window.open(n.href,"pswp_share","scrollbars=yes,resizable=yes,toolbar=no,location=yes,width=550,height=420,top=100,left="+(window.screen?Math.round(screen.width/2-275):100)),T||k(),1))},M=function(){for(var e,t,n,i,o,r="",a=0;a<g.shareButtons.length;a++)e=g.shareButtons[a],n=g.getImageURLForShare(e),i=g.getPageURLForShare(e),o=g.getTextForShare(e),t=e.url.replace("{{url}}",encodeURIComponent(i)).replace("{{image_url}}",encodeURIComponent(n)).replace("{{raw_image_url}}",n).replace("{{text}}",encodeURIComponent(o)),r+='<a href="'+t+'" target="_blank" class="pswp__share--'+e.id+'"'+(e.download?"download":"")+">"+e.label+"</a>",g.parseShareButtonOut&&(r=g.parseShareButtonOut(e,r));l.children[0].innerHTML=r,l.children[0].onclick=A},O=function(e){for(var n=0;n<g.closeElClasses.length;n++)if(t.hasClass(e,"pswp__"+g.closeElClasses[n]))return!0},R=0,P=function(){clearTimeout(b),R=0,c&&x.setIdle(!1)},L=function(e){e=e?e:window.event;var t=e.relatedTarget||e.toElement;t&&"HTML"!==t.nodeName||(clearTimeout(b),b=setTimeout(function(){x.setIdle(!0)},g.timeToIdleOutside))},$=function(){g.fullscreenEl&&!t.features.isOldAndroid&&(n||(n=x.getFullscreenAPI()),n?(t.bind(document,n.eventK,x.updateFullscreen),x.updateFullscreen(),t.addClass(e.template,"pswp--supports-fs")):t.removeClass(e.template,"pswp--supports-fs"))},N=function(){g.preloaderEl&&(H(!0),d("beforeChange",function(){clearTimeout(m),m=setTimeout(function(){e.currItem&&e.currItem.loading?(!e.allowProgressiveImg()||e.currItem.img&&!e.currItem.img.naturalWidth)&&H(!1):H(!0)},g.loadingIndicatorDelay)}),d("imageLoadComplete",function(t,n){e.currItem===n&&H(!0)}))},H=function(e){p!==e&&(S(f,"preloader--active",!e),p=e)},q=function(e){var n=e.vGap;if(F()){var a=g.barsSize;if(g.captionEl&&"auto"===a.bottom)if(r||(r=t.createEl("pswp__caption pswp__caption--fake"),r.appendChild(t.createEl("pswp__caption__center")),i.insertBefore(r,o),t.addClass(i,"pswp__ui--fit")),g.addCaptionHTMLFn(e,r,!0)){var s=r.clientHeight;n.bottom=parseInt(s,10)||44}else n.bottom=a.top;else n.bottom="auto"===a.bottom?0:a.bottom;n.top=a.top}else n.top=n.bottom=0},K=function(){g.timeToIdle&&d("mouseUsed",function(){t.bind(document,"mousemove",P),t.bind(document,"mouseout",L),y=setInterval(function(){R++,2===R&&x.setIdle(!0)},g.timeToIdle/2)})},B=function(){d("onVerticalDrag",function(e){z&&e<.95?x.hideControls():!z&&e>=.95&&x.showControls()});var e;d("onPinchClose",function(t){z&&t<.9?(x.hideControls(),e=!0):e&&!z&&t>.9&&x.showControls()}),d("zoomGestureEnded",function(){e=!1,e&&!z&&x.showControls()})},Z=[{name:"caption",option:"captionEl",onInit:function(e){o=e}},{name:"share-modal",option:"shareEl",onInit:function(e){l=e},onTap:function(){k()}},{name:"button--share",option:"shareEl",onInit:function(e){s=e},onTap:function(){k()}}
2,{name:"button--zoom",option:"zoomEl",onTap:e.toggleDesktopZoom},{name:"counter",option:"counterEl",onInit:function(e){a=e}},{name:"button--close",option:"closeEl",onTap:e.close},{name:"button--arrow--left",option:"arrowEl",onTap:e.prev},{name:"button--arrow--right",option:"arrowEl",onTap:e.next},{name:"button--fs",option:"fullscreenEl",onTap:function(){n.isFullscreen()?n.exit():n.enter()}},{name:"preloader",option:"preloaderEl",onInit:function(e){f=e}}],W=function(){var e,n,o,r=function(i){if(i)for(var r=i.length,a=0;a<r;a++){e=i[a],n=e.className;for(var s=0;s<Z.length;s++)o=Z[s],n.indexOf("pswp__"+o.name)>-1&&(g[o.option]?(t.removeClass(e,"pswp__element--disabled"),o.onInit&&o.onInit(e)):t.addClass(e,"pswp__element--disabled"))}};r(i.children);var a=t.getChildByClass(i,"pswp__top-bar");a&&r(a.children)};x.init=function(){t.extend(e.options,_,!0),g=e.options,i=t.getChildByClass(e.scrollWrap,"pswp__ui"),d=e.listen,B(),d("beforeChange",x.update),d("doubleTap",function(t){var n=e.currItem.initialZoomLevel;e.getZoomLevel()!==n?e.zoomTo(n,t,333):e.zoomTo(g.getDoubleTapZoom(!1,e.currItem),t,333)}),d("preventDragEvent",function(e,t,n){var i=e.target||e.srcElement;i&&i.getAttribute("class")&&e.type.indexOf("mouse")>-1&&(i.getAttribute("class").indexOf("__caption")>0||/(SMALL|STRONG|EM)/i.test(i.tagName))&&(n.prevent=!1)}),d("bindEvents",function(){t.bind(i,"pswpTap click",E),t.bind(e.scrollWrap,"pswpTap",x.onGlobalTap),e.likelyTouchDevice||t.bind(e.scrollWrap,"mouseover",x.onMouseOver)}),d("unbindEvents",function(){T||k(),y&&clearInterval(y),t.unbind(document,"mouseout",L),t.unbind(document,"mousemove",P),t.unbind(i,"pswpTap click",E),t.unbind(e.scrollWrap,"pswpTap",x.onGlobalTap),t.unbind(e.scrollWrap,"mouseover",x.onMouseOver),n&&(t.unbind(document,n.eventK,x.updateFullscreen),n.isFullscreen()&&(g.hideAnimationDuration=0,n.exit()),n=null)}),d("destroy",function(){g.captionEl&&(r&&i.removeChild(r),t.removeClass(o,"pswp__caption--empty")),l&&(l.children[0].onclick=null),t.removeClass(i,"pswp__ui--over-close"),t.addClass(i,"pswp__ui--hidden"),x.setIdle(!1)}),g.showAnimationDuration||t.removeClass(i,"pswp__ui--hidden"),d("initialZoomIn",function(){g.showAnimationDuration&&t.removeClass(i,"pswp__ui--hidden")}),d("initialZoomOut",function(){t.addClass(i,"pswp__ui--hidden")}),d("parseVerticalMargin",q),W(),g.shareEl&&s&&l&&(T=!0),D(),K(),$(),N()},x.setIdle=function(e){c=e,S(i,"ui--idle",e)},x.update=function(){z&&e.currItem?(x.updateIndexIndicator(),g.captionEl&&(g.addCaptionHTMLFn(e.currItem,o),S(o,"caption--empty",!e.currItem.title)),C=!0):C=!1,T||k(),D()},x.updateFullscreen=function(i){i&&setTimeout(function(){e.setScrollOffset(0,t.getScrollY())},50),t[(n.isFullscreen()?"add":"remove")+"Class"](e.template,"pswp--fs")},x.updateIndexIndicator=function(){g.counterEl&&(a.innerHTML=e.getCurrentIndex()+1+g.indexIndicatorSep+g.getNumItemsFn())},x.onGlobalTap=function(n){n=n||window.event;var i=n.target||n.srcElement;if(!v)if(n.detail&&"mouse"===n.detail.pointerType){if(O(i))return void e.close();t.hasClass(i,"pswp__img")&&(1===e.getZoomLevel()&&e.getZoomLevel()<=e.currItem.fitRatio?g.clickToCloseNonZoomable&&e.close():e.toggleDesktopZoom(n.detail.releasePoint))}else if(g.tapToToggleControls&&(z?x.hideControls():x.showControls()),g.tapToClose&&(t.hasClass(i,"pswp__img")||O(i)))return void e.close()},x.onMouseOver=function(e){e=e||window.event;var t=e.target||e.srcElement;S(i,"ui--over-close",O(t))},x.hideControls=function(){t.addClass(i,"pswp__ui--hidden"),z=!1},x.showControls=function(){z=!0,C||x.update(),t.removeClass(i,"pswp__ui--hidden")},x.supportsFullscreen=function(){var e=document;return!!(e.exitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen||e.msExitFullscreen)},x.getFullscreenAPI=function(){var t,n=document.documentElement,i="fullscreenchange";return n.requestFullscreen?t={enterK:"requestFullscreen",exitK:"exitFullscreen",elementK:"fullscreenElement",eventK:i}:n.mozRequestFullScreen?t={enterK:"mozRequestFullScreen",exitK:"mozCancelFullScreen",elementK:"mozFullScreenElement",eventK:"moz"+i}:n.webkitRequestFullscreen?t={enterK:"webkitRequestFullscreen",exitK:"webkitExitFullscreen",elementK:"webkitFullscreenElement",eventK:"webkit"+i}:n.msRequestFullscreen&&(t={enterK:"msRequestFullscreen",exitK:"msExitFullscreen",elementK:"msFullscreenElement",eventK:"MSFullscreenChange"}
2),t&&(t.enter=function(){return u=g.closeOnScroll,g.closeOnScroll=!1,"webkitRequestFullscreen"!==this.enterK?e.template[this.enterK]():void e.template[this.enterK](Element.ALLOW_KEYBOARD_INPUT)},t.exit=function(){return g.closeOnScroll=u,document[this.exitK]()},t.isFullscreen=function(){return document[this.elementK]}),t}};return e});var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(e){"use strict";function t(e){if(void 0===Function.prototype.name){var t=/function\s([^(]{1,})\(/,n=t.exec(e.toString());return n&&n.length>1?n[1].trim():""}return void 0===e.prototype?e.constructor.name:e.prototype.constructor.name}function n(e){return"true"===e||"false"!==e&&(isNaN(1*e)?e:parseFloat(e))}function i(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}var o="6.3.1",r={version:o,_plugins:{},_uuids:[],rtl:function(){return"rtl"===e("html").attr("dir")},plugin:function(e,n){var o=n||t(e),r=i(o);this._plugins[r]=this[o]=e},registerPlugin:function(e,n){var o=n?i(n):t(e.constructor).toLowerCase();e.uuid=this.GetYoDigits(6,o),e.$element.attr("data-"+o)||e.$element.attr("data-"+o,e.uuid),e.$element.data("zfPlugin")||e.$element.data("zfPlugin",e),e.$element.trigger("init.zf."+o),this._uuids.push(e.uuid)},unregisterPlugin:function(e){var n=i(t(e.$element.data("zfPlugin").constructor));this._uuids.splice(this._uuids.indexOf(e.uuid),1),e.$element.removeAttr("data-"+n).removeData("zfPlugin").trigger("destroyed.zf."+n);for(var o in e)e[o]=null},reInit:function(t){var n=t instanceof e;try{if(n)t.each(function(){e(this).data("zfPlugin")._init()});else{var o="undefined"==typeof t?"undefined":_typeof(t),r=this,a={object:function(t){t.forEach(function(t){t=i(t),e("[data-"+t+"]").foundation("_init")})},string:function(){t=i(t),e("[data-"+t+"]").foundation("_init")},undefined:function(){this.object(Object.keys(r._plugins))}};a[o](t)}}catch(s){console.error(s)}finally{return t}},GetYoDigits:function(e,t){return e=e||6,Math.round(Math.pow(36,e+1)-Math.random()*Math.pow(36,e)).toString(36).slice(1)+(t?"-"+t:"")},reflow:function(t,i){"undefined"==typeof i?i=Object.keys(this._plugins):"string"==typeof i&&(i=[i]);var o=this;e.each(i,function(i,r){var a=o._plugins[r],s=e(t).find("[data-"+r+"]").addBack("[data-"+r+"]");s.each(function(){var t=e(this),i={};if(t.data("zfPlugin"))return void console.warn("Tried to initialize "+r+" on an element that already has a Foundation plugin.");if(t.attr("data-options")){t.attr("data-options").split(";").forEach(function(e,t){var o=e.split(":").map(function(e){return e.trim()});o[0]&&(i[o[0]]=n(o[1]))})}try{t.data("zfPlugin",new a(e(this),i))}catch(o){console.error(o)}finally{return}})})},getFnName:t,transitionend:function(e){var t,n={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend"},i=document.createElement("div");for(var o in n)"undefined"!=typeof i.style[o]&&(t=n[o]);return t?t:(t=setTimeout(function(){e.triggerHandler("transitionend",[e])},1),"transitionend")}};r.util={throttle:function(e,t){var n=null;return function(){var i=this,o=arguments;null===n&&(n=setTimeout(function(){e.apply(i,o),n=null},t))}}};var a=function(n){var i="undefined"==typeof n?"undefined":_typeof(n),o=e("meta.foundation-mq"),a=e(".no-js");if(o.length||e('<meta class="foundation-mq">').appendTo(document.head),a.length&&a.removeClass("no-js"),"undefined"===i)r.MediaQuery._init(),r.reflow(this);else{if("string"!==i)throw new TypeError("We're sorry, "+i+" is not a valid parameter. You must use a string representing the method you wish to invoke.");var s=Array.prototype.slice.call(arguments,1),l=this.data("zfPlugin");if(void 0===l||void 0===l[n])throw new ReferenceError("We're sorry, '"+n+"' is not an available method for "+(l?t(l):"this element")+".");1===this.length?l[n].apply(l,s):this.each(function(t,i){l[n].apply(e(i).data("zfPlugin"),s)})}return this};window.Foundation=r,e.fn.foundation=a,function(){Date.now&&window.Date.now||(window.Date.now=Date.now=function(){return(new Date).getTime()});for(var e=["webkit","moz"],t=0;t<e.length&&!window.requestAnimationFrame;++t){var n=e[t];window.requestAnimationFrame=window[n+"RequestAnimationFrame"],window.cancelAnimationFrame=window[n+"CancelAnimationFrame"]||window[n+"CancelRequestAnimationFrame"]}if(/iP(ad|hone|od).*OS 6/.test(window.navigator.userAgent)||!window.requestAnimationFrame||!window.cancelAnimationFrame){var i=0;window.requestAnimationFrame=function(e){var t=Date.now(),n=Math.max(i+16,t);return setTimeout(function(){e(i=n)},n-t)},window.cancelAnimationFrame=clearTimeout}window.performance&&window.performance.now||(window.performance={start:Date.now(),now:function(){return Date.now()-this.start}})}(),Function.prototype.bind||(Function.prototype.bind=function(e){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");
2var t=Array.prototype.slice.call(arguments,1),n=this,i=function(){},o=function(){return n.apply(this instanceof i?this:e,t.concat(Array.prototype.slice.call(arguments)))};return this.prototype&&(i.prototype=this.prototype),o.prototype=new i,o})}(jQuery),!function(e){function t(e,t,i,o){var r,a,s,l,u=n(e);if(t){var c=n(t);a=u.offset.top+u.height<=c.height+c.offset.top,r=u.offset.top>=c.offset.top,s=u.offset.left>=c.offset.left,l=u.offset.left+u.width<=c.width+c.offset.left}else a=u.offset.top+u.height<=u.windowDims.height+u.windowDims.offset.top,r=u.offset.top>=u.windowDims.offset.top,s=u.offset.left>=u.windowDims.offset.left,l=u.offset.left+u.width<=u.windowDims.width;var d=[a,r,s,l];return i?s===l==!0:o?r===a==!0:d.indexOf(!1)===-1}function n(e,t){if(e=e.length?e[0]:e,e===window||e===document)throw new Error("I'm sorry, Dave. I'm afraid I can't do that.");var n=e.getBoundingClientRect(),i=e.parentNode.getBoundingClientRect(),o=document.body.getBoundingClientRect(),r=window.pageYOffset,a=window.pageXOffset;return{width:n.width,height:n.height,offset:{top:n.top+r,left:n.left+a},parentDims:{width:i.width,height:i.height,offset:{top:i.top+r,left:i.left+a}},windowDims:{width:o.width,height:o.height,offset:{top:r,left:a}}}}function i(e,t,i,o,r,a){var s=n(e),l=t?n(t):null;switch(i){case"top":return{left:Foundation.rtl()?l.offset.left-s.width+l.width:l.offset.left,top:l.offset.top-(s.height+o)};case"left":return{left:l.offset.left-(s.width+r),top:l.offset.top};case"right":return{left:l.offset.left+l.width+r,top:l.offset.top};case"center top":return{left:l.offset.left+l.width/2-s.width/2,top:l.offset.top-(s.height+o)};case"center bottom":return{left:a?r:l.offset.left+l.width/2-s.width/2,top:l.offset.top+l.height+o};case"center left":return{left:l.offset.left-(s.width+r),top:l.offset.top+l.height/2-s.height/2};case"center right":return{left:l.offset.left+l.width+r+1,top:l.offset.top+l.height/2-s.height/2};case"center":return{left:s.windowDims.offset.left+s.windowDims.width/2-s.width/2,top:s.windowDims.offset.top+s.windowDims.height/2-s.height/2};case"reveal":return{left:(s.windowDims.width-s.width)/2,top:s.windowDims.offset.top+o};case"reveal full":return{left:s.windowDims.offset.left,top:s.windowDims.offset.top};case"left bottom":return{left:l.offset.left,top:l.offset.top+l.height+o};case"right bottom":return{left:l.offset.left+l.width+r-s.width,top:l.offset.top+l.height+o};default:return{left:Foundation.rtl()?l.offset.left-s.width+l.width:l.offset.left+r,top:l.offset.top+l.height+o}}}Foundation.Box={ImNotTouchingYou:t,GetDimensions:n,GetOffsets:i}}(jQuery),!function(e){function t(e,t,i,o){var r,a,s,l,u=n(e);if(t){var c=n(t);a=u.offset.top+u.height<=c.height+c.offset.top,r=u.offset.top>=c.offset.top,s=u.offset.left>=c.offset.left,l=u.offset.left+u.width<=c.width+c.offset.left}else a=u.offset.top+u.height<=u.windowDims.height+u.windowDims.offset.top,r=u.offset.top>=u.windowDims.offset.top,s=u.offset.left>=u.windowDims.offset.left,l=u.offset.left+u.width<=u.windowDims.width;var d=[a,r,s,l];return i?s===l==1:o?r===a==1:d.indexOf(!1)===-1}function n(e,t){if(e=e.length?e[0]:e,e===window||e===document)throw new Error("I'm sorry, Dave. I'm afraid I can't do that.");var n=e.getBoundingClientRect(),i=e.parentNode.getBoundingClientRect(),o=document.body.getBoundingClientRect(),r=window.pageYOffset,a=window.pageXOffset;return{width:n.width,height:n.height,offset:{top:n.top+r,left:n.left+a},parentDims:{width:i.width,height:i.height,offset:{top:i.top+r,left:i.left+a}},windowDims:{width:o.width,height:o.height,offset:{top:r,left:a}}}}function i(e,t,i,o,r,a){var s=n(e),l=t?n(t):null;switch(i){case"top":return{left:Foundation.rtl()?l.offset.left-s.width+l.width:l.offset.left,top:l.offset.top-(s.height+o)};case"left":return{left:l.offset.left-(s.width+r),top:l.offset.top};case"right":return{left:l.offset.left+l.width+r,top:l.offset.top};case"center top":return{left:l.offset.left+l.width/2-s.width/2,top:l.offset.top-(s.height+o)};case"center bottom":return{left:a?r:l.offset.left+l.width/2-s.width/2,top:l.offset.top+l.height+o};case"center left":return{left:l.offset.left-(s.width+r),top:l.offset.top+l.height/2-s.height/2};case"center right":return{left:l.offset.left+l.width+r+1,top:l.offset.top+l.height/2-s.height/2};case"center":return{left:s.windowDims.offset.left+s.windowDims.width/2-s.width/2,top:s.windowDims.offset.top+s.windowDims.height/2-s.height/2};case"reveal":return{left:(s.windowDims.width-s.width)/2,top:s.windowDims.offset.top+o};case"reveal full":return{left:s.windowDims.offset.left,top:s.windowDims.offset.top};case"left bottom":return{left:l.offset.left,top:l.offset.top+l.height+o};case"right bottom":return{left:l.offset.left+l.width+r-s.width,top:l.offset.top+l.height+o};default:return{left:Foundation.rtl()?l.offset.left-s.width+l.width:l.offset.left+r,top:l.offset.top+l.height+o}}}Foundation.Box={ImNotTouchingYou:t,GetDimensions:n,GetOffsets:i}}(jQuery),!function(e){function t(e){var t={};for(var n in e)t[e[n]]=e[n];return t}var n={9:"TAB",13:"ENTER",27:"ESCAPE",32:"SPACE",37:"ARROW_LEFT",38:"ARROW_UP",39:"ARROW_RIGHT",40:"ARROW_DOWN"},i={}
2,o={keys:t(n),parseKey:function(e){var t=n[e.which||e.keyCode]||String.fromCharCode(e.which).toUpperCase();return t=t.replace(/\W+/,""),e.shiftKey&&(t="SHIFT_"+t),e.ctrlKey&&(t="CTRL_"+t),e.altKey&&(t="ALT_"+t),t=t.replace(/_$/,"")},handleKey:function(t,n,o){var r,a,s,l=i[n],u=this.parseKey(t);if(!l)return console.warn("Component not defined!");if(r="undefined"==typeof l.ltr?l:Foundation.rtl()?e.extend({},l.ltr,l.rtl):e.extend({},l.rtl,l.ltr),a=r[u],s=o[a],s&&"function"==typeof s){var c=s.apply();(o.handled||"function"==typeof o.handled)&&o.handled(c)}else(o.unhandled||"function"==typeof o.unhandled)&&o.unhandled()},findFocusable:function(t){return!!t&&t.find("a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]").filter(function(){return!(!e(this).is(":visible")||e(this).attr("tabindex")<0)})},register:function(e,t){i[e]=t},trapFocus:function(e){var t=Foundation.Keyboard.findFocusable(e),n=t.eq(0),i=t.eq(-1);e.on("keydown.zf.trapfocus",function(e){e.target===i[0]&&"TAB"===Foundation.Keyboard.parseKey(e)?(e.preventDefault(),n.focus()):e.target===n[0]&&"SHIFT_TAB"===Foundation.Keyboard.parseKey(e)&&(e.preventDefault(),i.focus())})},releaseFocus:function(e){e.off("keydown.zf.trapfocus")}};Foundation.Keyboard=o}(jQuery),!function(e){function t(e){var t={};for(var n in e)t[e[n]]=e[n];return t}var n={9:"TAB",13:"ENTER",27:"ESCAPE",32:"SPACE",37:"ARROW_LEFT",38:"ARROW_UP",39:"ARROW_RIGHT",40:"ARROW_DOWN"},i={},o={keys:t(n),parseKey:function(e){var t=n[e.which||e.keyCode]||String.fromCharCode(e.which).toUpperCase();return t=t.replace(/\W+/,""),e.shiftKey&&(t="SHIFT_"+t),e.ctrlKey&&(t="CTRL_"+t),e.altKey&&(t="ALT_"+t),t=t.replace(/_$/,"")},handleKey:function(t,n,o){var r,a,s,l=i[n],u=this.parseKey(t);if(!l)return console.warn("Component not defined!");if(r="undefined"==typeof l.ltr?l:Foundation.rtl()?e.extend({},l.ltr,l.rtl):e.extend({},l.rtl,l.ltr),a=r[u],s=o[a],s&&"function"==typeof s){var c=s.apply();(o.handled||"function"==typeof o.handled)&&o.handled(c);
3}else(o.unhandled||"function"==typeof o.unhandled)&&o.unhandled()},findFocusable:function(t){return!!t&&t.find("a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]").filter(function(){return!(!e(this).is(":visible")||e(this).attr("tabindex")<0)})},register:function(e,t){i[e]=t},trapFocus:function(e){var t=Foundation.Keyboard.findFocusable(e),n=t.eq(0),i=t.eq(-1);e.on("keydown.zf.trapfocus",function(e){e.target===i[0]&&"TAB"===Foundation.Keyboard.parseKey(e)?(e.preventDefault(),n.focus()):e.target===n[0]&&"SHIFT_TAB"===Foundation.Keyboard.parseKey(e)&&(e.preventDefault(),i.focus())})},releaseFocus:function(e){e.off("keydown.zf.trapfocus")}};Foundation.Keyboard=o}(jQuery);var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(e){function t(e){var t={};return"string"!=typeof e?t:(e=e.trim().slice(1,-1))?t=e.split("&").reduce(function(e,t){var n=t.replace(/\+/g," ").split("="),i=n[0],o=n[1];return i=decodeURIComponent(i),o=void 0===o?null:decodeURIComponent(o),e.hasOwnProperty(i)?Array.isArray(e[i])?e[i].push(o):e[i]=[e[i],o]:e[i]=o,e},{}):t}var n={queries:[],current:"",_init:function(){var n,i=this,o=e(".foundation-mq").css("font-family");n=t(o);for(var r in n)n.hasOwnProperty(r)&&i.queries.push({name:r,value:"only screen and (min-width: "+n[r]+")"});this.current=this._getCurrentSize(),this._watcher()},atLeast:function(e){var t=this.get(e);return!!t&&window.matchMedia(t).matches},is:function(e){return e=e.trim().split(" "),e.length>1&&"only"===e[1]?e[0]===this._getCurrentSize():this.atLeast(e[0])},get:function(e){for(var t in this.queries)if(this.queries.hasOwnProperty(t)){var n=this.queries[t];if(e===n.name)return n.value}return null},_getCurrentSize:function(){for(var e,t=0;t<this.queries.length;t++){var n=this.queries[t];window.matchMedia(n.value).matches&&(e=n)}return"object"===("undefined"==typeof e?"undefined":_typeof(e))?e.name:e},_watcher:function(){var t=this;e(window).on("resize.zf.mediaquery",function(){var n=t._getCurrentSize(),i=t.current;n!==i&&(t.current=n,e(window).trigger("changed.zf.mediaquery",[n,i]))})}};Foundation.MediaQuery=n,window.matchMedia||(window.matchMedia=function(){"use strict";var e=window.styleMedia||window.media;if(!e){var t=document.createElement("style"),n=document.getElementsByTagName("script")[0],i=null;t.type="text/css",t.id="matchmediajs-test",n&&n.parentNode&&n.parentNode.insertBefore(t,n),i="getComputedStyle"in window&&window.getComputedStyle(t,null)||t.currentStyle,e={matchMedium:function(e){var n="@media "+e+"{ #matchmediajs-test { width: 1px; } }";return t.styleSheet?t.styleSheet.cssText=n:t.textContent=n,"1px"===i.width}}}return function(t){return{matches:e.matchMedium(t||"all"),media:t||"all"}}}()),Foundation.MediaQuery=n}(jQuery);var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(e){function t(e){var t={};return"string"!=typeof e?t:(e=e.trim().slice(1,-1))?t=e.split("&").reduce(function(e,t){var n=t.replace(/\+/g," ").split("="),i=n[0],o=n[1];return i=decodeURIComponent(i),o=void 0===o?null:decodeURIComponent(o),e.hasOwnProperty(i)?Array.isArray(e[i])?e[i].push(o):e[i]=[e[i],o]:e[i]=o,e},{}):t}var n={queries:[],current:"",_init:function(){var n,i=this,o=e(".foun
3dation-mq").css("font-family");n=t(o);for(var r in n)n.hasOwnProperty(r)&&i.queries.push({name:r,value:"only screen and (min-width: "+n[r]+")"});this.current=this._getCurrentSize(),this._watcher()},atLeast:function(e){var t=this.get(e);return!!t&&window.matchMedia(t).matches},is:function(e){return e=e.trim().split(" "),e.length>1&&"only"===e[1]?e[0]===this._getCurrentSize():this.atLeast(e[0])},get:function(e){for(var t in this.queries)if(this.queries.hasOwnProperty(t)){var n=this.queries[t];if(e===n.name)return n.value}return null},_getCurrentSize:function(){for(var e,t=0;t<this.queries.length;t++){var n=this.queries[t];window.matchMedia(n.value).matches&&(e=n)}return"object"==("undefined"==typeof e?"undefined":_typeof(e))?e.name:e},_watcher:function(){var t=this;e(window).on("resize.zf.mediaquery",function(){var n=t._getCurrentSize(),i=t.current;n!==i&&(t.current=n,e(window).trigger("changed.zf.mediaquery",[n,i]))})}};Foundation.MediaQuery=n,window.matchMedia||(window.matchMedia=function(){var e=window.styleMedia||window.media;if(!e){var t=document.createElement("style"),n=document.getElementsByTagName("script")[0],i=null;t.type="text/css",t.id="matchmediajs-test",n&&n.parentNode&&n.parentNode.insertBefore(t,n),i="getComputedStyle"in window&&window.getComputedStyle(t,null)||t.currentStyle,e={matchMedium:function(e){var n="@media "+e+"{ #matchmediajs-test { width: 1px; } }";return t.styleSheet?t.styleSheet.cssText=n:t.textContent=n,"1px"===i.width}}}return function(t){return{matches:e.matchMedium(t||"all"),media:t||"all"}}}()),Foundation.MediaQuery=n}(jQuery),!function(e){function t(e,t,n){function i(s){a||(a=s),r=s-a,n.apply(t),r<e?o=window.requestAnimationFrame(i,t):(window.cancelAnimationFrame(o),t.trigger("finished.zf.animate",[t]).triggerHandler("finished.zf.animate",[t]))}var o,r,a=null;return 0===e?(n.apply(t),void t.trigger("finished.zf.animate",[t]).triggerHandler("finished.zf.animate",[t])):void(o=window.requestAnimationFrame(i))}function n(t,n,r,a){function s(){t||n.hide(),l(),a&&a.apply(n)}function l(){n[0].style.transitionDuration=0,n.removeClass(u+" "+c+" "+r)}if(n=e(n).eq(0),n.length){var u=t?i[0]:i[1],c=t?o[0]:o[1];l(),n.addClass(r).css("transition","none"),requestAnimationFrame(function(){n.addClass(u),t&&n.show()}),requestAnimationFrame(function(){n[0].offsetWidth,n.css("transition","").addClass(c)}),n.one(Foundation.transitionend(n),s)}}var i=["mui-enter","mui-leave"],o=["mui-enter-active","mui-leave-active"],r={animateIn:function(e,t,i){n(!0,e,t,i)},animateOut:function(e,t,i){n(!1,e,t,i)}};Foundation.Move=t,Foundation.Motion=r}(jQuery),!function(e){function t(e,t,n){function i(s){a||(a=s),r=s-a,n.apply(t),r<e?o=window.requestAnimationFrame(i,t):(window.cancelAnimationFrame(o),t.trigger("finished.zf.animate",[t]).triggerHandler("finished.zf.animate",[t]))}var o,r,a=null;return 0===e?(n.apply(t),void t.trigger("finished.zf.animate",[t]).triggerHandler("finished.zf.animate",[t])):void(o=window.requestAnimationFrame(i))}function n(t,n,r,a){function s(){t||n.hide(),l(),a&&a.apply(n)}function l(){n[0].style.transitionDuration=0,n.removeClass(u+" "+c+" "+r)}if(n=e(n).eq(0),n.length){var u=t?i[0]:i[1],c=t?o[0]:o[1];l(),n.addClass(r).css("transition","none"),requestAnimationFrame(function(){n.addClass(u),t&&n.show()}),requestAnimationFrame(function(){n[0].offsetWidth,n.css("transition","").addClass(c)}),n.one(Foundation.transitionend(n),s)}}var i=["mui-enter","mui-leave"],o=["mui-enter-active","mui-leave-active"],r={animateIn:function(e,t,i){n(!0,e,t,i)},animateOut:function(e,t,i){n(!1,e,t,i)}};Foundation.Move=t,Foundation.Motion=r}(jQuery),!function(e){var t={Feather:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"zf";t.attr("role","menubar");var i=t.find("li").attr({role:"menuitem"}),o="is-"+n+"-submenu",r=o+"-item",a="is-"+n+"-submenu-parent";i.each(function(){var t=e(this),i=t.children("ul");i.length&&(t.addClass(a).attr({"aria-haspopup":!0,"aria-label":t.children("a:first").text()}),"drilldown"===n&&t.attr({"aria-expanded":!1}),i.addClass("submenu "+o).attr({"data-submenu":"",role:"menu"}),"drilldown"===n&&i.attr({"aria-hidden":!0})),t.parent("[data-submenu]").length&&t.addClass("is-submenu-item "+r)})},Burn:function(e,t){var n="is-"+t+"-submenu",i=n+"-item",o="is-"+t+"-submenu-parent";e.find(">li, .menu, .menu > li").removeClass(n+" "+i+" "+o+" is-submenu-item submenu is-active").removeAttr("data-submenu").css("display","")}};Foundation.Nest=t}(jQuery),!function(e){var t={Feather:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"zf";t.attr("role","menubar");var i=t.find("li").attr({role:"menuitem"}),o="is-"+n+"-submenu",r=o+"-item",a="is-"+n+"-submenu-parent";i.each(function(){var t=e(this),i=t.children("ul");i.length&&(t.addClass(a).attr({"aria-haspopup":!0,"aria-label":t.children("a:first").text()}),"drilldown"===n&&t.attr({"aria-expanded":!1}),i.addClass("submenu "+o).attr({"data-submenu":"",role:"menu"}),"drilldown"===n&&i.attr({"aria-hidden":!0})),t.parent("[data-submenu]").length&&t.addClass("is-submenu-item "+r)})},Burn:function(e,t){var n="is-"+t+"-submenu",i=n+"-item",o="is-"+t+"-submenu-parent";e.find(">li, .menu, .menu > li").removeClass(n+" "+i+" "+o+" is-submenu-item submenu is-active").removeAttr("data-submenu").css("display","")}};Foundation.Nest=t}(jQuery),!function(e){function t(e,t,n){var i,o,r=this,a=t.duration,s=Object.keys(e.data())[0]||"timer",l=-1;this.isPaused=!1,this.restart=function(){l=-1,clearTimeout(o),this.start()},this.start=function(){this.isPaused=!1,clearTimeout(o),l=l<=0?a:l,e.data("paused",!1),i=Date.now(),o=setTimeout(function(){t.infinite&&r.restart(),n&&"function"==typeof n&&n()},l),e.trigger("timerstart.zf."+s)},this.pause=function(){this.isPaused=!0,clearTimeout(o),e.data("paused",!0);var t=Date.now();l-=t-i,e.trigger("timerpaused.zf."+s)}}function n(t,n){function i(){o--,0===o&&n()}var o=t.length;0===o&&n(),t.each(function(){if(this.complete||4===this.readyState||"complete"===this.readyState)i();else{var t=e(this).attr("src");e(this).attr("src",t+(t.indexOf("?")>=0?"&":"?")+(new Date).getTime()),e(this).one("load",function(){i()})}})}Foundation.Timer=t,Foundation.onImagesLoaded=n}(jQuery),!function(e){function t(e,t,n){var i,o,r=this,a=t.duration,s=Object.keys(e.data())[0]||"timer",l=-1;this.isPaused=!1,this.restart=function(){l=-1,clearTimeout(o),this.start()},this.start=function(){this.isPaused=!1,clearTimeout(o),l=l<=0?a:l,e.data("paused",!1),i=Date.now(),o=setTimeout(function(){t.infinite&&r.restart(),n&&"function"==typeof n&&n()},l),e.trigger("timerstart.zf."+s)},this.pause=function(){this.isPaused=!0,clearTimeout(o),e.data("paused",!0);var t=Date.now();l-=t-i,e.trigger("timerpaused.zf."+s)}}function n(t,n){function i(){o--,0===o&&n()}var o=t.length;0===o&&n(),t.each(function(){if(this.complete||4===this.readyState||"complete"===this.readyState)i();else{var t=e(this).attr("src");e(this).attr("src",t+(t.indexOf("?")>=0?"&":"?")+(new Date).getTime()),e(this).one("load",function(){i()})}})}Foundation.Timer=t,Foundation.onImagesLoaded=n}(jQuery),function(e){function t(){this.removeEventListener("touchmove",n),this.removeEventListener("touchend",t),u=!1}
3function n(n){if(e.spotSwipe.preventDefault&&n.preventDefault(),u){var i,o=n.touches[0].pageX,a=(n.touches[0].pageY,r-o);l=(new Date).getTime()-s,Math.abs(a)>=e.spotSwipe.moveThreshold&&l<=e.spotSwipe.timeThreshold&&(i=a>0?"left":"right"),i&&(n.preventDefault(),t.call(this),e(this).trigger("swipe",i).trigger("swipe"+i))}}function i(e){1==e.touches.length&&(r=e.touches[0].pageX,a=e.touches[0].pageY,u=!0,s=(new Date).getTime(),this.addEventListener("touchmove",n,!1),this.addEventListener("touchend",t,!1))}function o(){this.addEventListener&&this.addEventListener("touchstart",i,!1)}e.spotSwipe={version:"1.0.0",enabled:"ontouchstart"in document.documentElement,preventDefault:!1,moveThreshold:75,timeThreshold:200};var r,a,s,l,u=!1;e.event.special.swipe={setup:o},e.each(["left","up","down","right"],function(){e.event.special["swipe"+this]={setup:function(){e(this).on("swipe",e.noop)}}})}(jQuery),!function(e){e.fn.addTouch=function(){this.each(function(n,i){e(i).bind("touchstart touchmove touchend touchcancel",function(){t(event)})});var t=function(e){var t,n=e.changedTouches,i=n[0],o={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup"},r=o[e.type];"MouseEvent"in window&&"function"==typeof window.MouseEvent?t=new window.MouseEvent(r,{bubbles:!0,cancelable:!0,screenX:i.screenX,screenY:i.screenY,clientX:i.clientX,clientY:i.clientY}):(t=document.createEvent("MouseEvent"),t.initMouseEvent(r,!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null)),i.target.dispatchEvent(t)}}}(jQuery),!function(e){function t(){this.removeEventListener("touchmove",n),this.removeEventListener("touchend",t),u=!1}
3function n(n){if(e.spotSwipe.preventDefault&&n.preventDefault(),u){var i,o=n.touches[0].pageX,a=(n.touches[0].pageY,r-o);l=(new Date).getTime()-s,Math.abs(a)>=e.spotSwipe.moveThreshold&&l<=e.spotSwipe.timeThreshold&&(i=a>0?"left":"right"),i&&(n.preventDefault(),t.call(this),e(this).trigger("swipe",i).trigger("swipe"+i))}}function i(e){1==e.touches.length&&(r=e.touches[0].pageX,a=e.touches[0].pageY,u=!0,s=(new Date).getTime(),this.addEventListener("touchmove",n,!1),this.addEventListener("touchend",t,!1))}function o(){this.addEventListener&&this.addEventListener("touchstart",i,!1)}e.spotSwipe={version:"1.0.0",enabled:"ontouchstart"in document.documentElement,preventDefault:!1,moveThreshold:75,timeThreshold:200};var r,a,s,l,u=!1;e.event.special.swipe={setup:o},e.each(["left","up","down","right"],function(){e.event.special["swipe"+this]={setup:function(){e(this).on("swipe",e.noop)}}})}(jQuery),!function(e){e.fn.addTouch=function(){this.each(function(n,i){e(i).bind("touchstart touchmove touchend touchcancel",function(){t(event)})});var t=function n(e){var n,t=e.changedTouches,i=t[0],o={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup"},r=o[e.type];"MouseEvent"in window&&"function"==typeof window.MouseEvent?n=new window.MouseEvent(r,{bubbles:!0,cancelable:!0,screenX:i.screenX,screenY:i.screenY,clientX:i.clientX,clientY:i.clientY}):(n=document.createEvent("MouseEvent"),n.initMouseEvent(r,!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null)),i.target.dispatchEvent(n)}}}(jQuery);var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(e){function t(){a(),i(),o(),r(),n()}function n(t){var n=e("[data-yeti-box]"),i=["dropdown","tooltip","reveal"];if(t&&("string"==typeof t?i.push(t):"object"===("undefined"==typeof t?"undefined":_typeof(t))&&"string"==typeof t[0]?i.concat(t):console.error("Plugin names must be strings")),n.length){var o=i.map(function(e){return"closeme.zf."+e}).join(" ");e(window).off(o).on(o,function(t,n){var i=t.namespace.split(".")[0],o=e("[data-"+i+"]").not('[data-yeti-box="'+n+'"]');o.each(function(){var t=e(this);t.triggerHandler("close.zf.trigger",[t])})})}}function i(t){var n=void 0,i=e("[data-resize]");i.length&&e(window).off("resize.zf.trigger").on("resize.zf.trigger",function(o){n&&clearTimeout(n),n=setTimeout(function(){s||i.each(function(){e(this).triggerHandler("resizeme.zf.trigger")}),i.attr("data-events","resize")},t||10)})}function o(t){var n=void 0,i=e("[data-scroll]");i.length&&e(window).off("scroll.zf.trigger").on("scroll.zf.trigger",function(o){n&&clearTimeout(n),n=setTimeout(function(){s||i.each(function(){e(this).triggerHandler("scrollme.zf.trigger")}),i.attr("data-events","scroll")},t||10)})}function r(t){var n=e("[data-mutate]");n.length&&s&&n.each(function(){e(this).triggerHandler("mutateme.zf.trigger")})}function a(){if(!s)return!1;var t=document.querySelectorAll("[data-resize], [data-scroll], [data-mutate]"),n=function(t){var n=e(t[0].target);switch(t[0].type){case"attributes":"scroll"===n.attr("data-events")&&"data-events"===t[0].attributeName&&n.triggerHandler("scrollme.zf.trigger",[n,window.pageYOffset]),"resize"===n.attr("data-events")&&"data-events"===t[0].attributeName&&n.triggerHandler("resizeme.zf.trigger",[n]),"style"===t[0].attributeName&&(n.closest("[data-mutate]").attr("data-events","mutate"),n.closest("[data-mutate]").triggerHandler("mutateme.zf.trigger",[n.closest("[data-mutate]")]));break;case"childList":n.closest("[data-mutate]").attr("data-events","mutate"),n.closest("[data-mutate]").triggerHandler("mutateme.zf.trigger",[n.closest("[data-mutate]")]);break;default:return!1}};if(t.length)for(var i=0;i<=t.length-1;i++){var o=new s(n);o.observe(t[i],{attributes:!0,childList:!0,characterData:!1,subtree:!0,attributeFilter:["data-events","style"]})}}var s=function(){for(var e=["WebKit","Moz","O","Ms",""],t=0;t<e.length;t++)if(e[t]+"MutationObserver"in window)return window[e[t]+"MutationObserver"];return!1}(),l=function(t,n){t.data(n).split(" ").forEach(function(i){e("#"+i)["close"===n?"trigger":"triggerHandler"](n+".zf.trigger",[t])})};e(document).on("click.zf.trigger","[data-open]",function(){l(e(this),"open")}),e(document).on("click.zf.trigger","[data-close]",function(){var t=e(this).data("close");t?l(e(this),"close"):e(this).trigger("close.zf.trigger")}),e(document).on("click.zf.trigger","[data-toggle]",function(){var t=e(this).data("toggle");t?l(e(this),"toggle"):e(this).trigger("toggle.zf.trigger")}),e(document).on("close.zf.trigger","[data-closable]",function(t){t.stopPropagation();var n=e(this).data("closable");""!==n?Foundation.Motion.animateOut(e(this),n,function(){e(this).trigger("closed.zf")}):e(this).fadeOut().trigger("closed.zf")}),e(document).on("focus.zf.trigger blur.zf.trigger","[data-toggle-focus]",function(){var t=e(this).data("toggle-focus");e("#"+t).triggerHandler("toggle.zf.trigger",[e(this)])}),e(window).on("load",function(){t()}),Foundation.IHearYou=t}(jQuery);var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(e){function t(){a(),i(),o(),r(),n()}function n(t){var n=e("[data-yeti-box]"),i=["dropdown","tooltip","reveal"];if(t&&("string"==typeof t?i.push(t):"object"==("undefined"==typeof t?"undefined":_typeof(t))&&"string"==typeof t[0]?i.concat(t):console.error("Plugin names must be strings")),n.length){var o=i.map(function(e){return"closeme.zf."+e}).join(" ");e(window).off(o).on(o,function(t,n){var i=t.namespace.split(".")[0],o=e("[data-"+i+"]").not('[data-yeti-box="'+n+'"]');o.each(function(){var t=e(this);t.triggerHandler("close.zf.trigger",[t])})})}}function i(t){var n=void 0,i=e("[data-resize]");i.length&&e(window).off("resize.zf.trigger").on("resize.zf.trigger",function(o){n&&clearTimeout(n),n=setTimeout(function(){s||i.each(function(){e(this).triggerHandler("resizeme.zf.trigger")}),i.attr("data-events","resize")},t||10)})}function o(t){var n=void 0,i=e("[data-scroll]");i.length&&e(window).off("scroll.zf.trigger").on("scroll.zf.trigger",function(o){n&&clearTimeout(n),n=setTimeout(function(){s||i.each(function(){e(this).triggerHandler("scrollme.zf.trigger")}),i.attr("data-events","scroll")},t||10)})}function r(t){var n=e("[data-mutate]");n.length&&s&&n.each(function(){e(this).triggerHandler("mutateme.zf.trigger")})}function a(){if(!s)return!1;var t=document.querySelectorAll("[data-resize], [data-scroll], [data-mutate]"),n=function r(t){var r=e(t[0].target);switch(t[0].type){case"attributes":"scroll"===r.attr("data-events")&&"data-events"===t[0].attributeName&&r.triggerHandler("scrollme.zf.trigger",[r,window.pageYOffset]),"resize"===r.attr("data-events")&&"data-events"===t[0].attributeName&&r.triggerHandler("resizeme.zf.trigger",[r]),"style"===t[0].attributeName&&(r.closest("[data-mutate]").attr("data-events","mutate"),r.closest("[data-mutate]").triggerHandler("mutateme.zf.trigger",[r.closest("[data-mutate]")]));break;case"childList":r.closest("[data-mutate]").attr("data-events","mutate"),r.closest("[data-mutate]").triggerHandler("mutateme.zf.trigger",[r.closest("[data-mutate]")]);break;default:return!1}};if(t.length)for(var i=0;i<=t.length-1;i++){var o=new s(n);o.observe(t[i],{attributes:!0,childList:!0,characterData:!1,subtree:!0,attributeFilter:["data-events","style"]})}}var s=function(){for(var e=["WebKit","Moz","O","Ms",""],t=0;t<e.length;t++)if(e[t]+"MutationObserver"in window)return window[e[t]+"MutationObserver"];return!1}(),l=function(t,n){t.data(n).split(" ").forEach(function(i){e("#"+i)["close"===n?"trigger":"triggerHandler"](n+".zf.trigger",[t])})};e(document).on("click.zf.trigger","[data-open]",function(){l(e(this),"open")}),e(document).on("click.zf.trigger","[data-close]",function(){var t=e(this).data("close");t?l(e(this),"close"):e(this).trigger("close.zf.trigger")}),e(document).on("click.zf.trigger","[data-toggle]",function(){var t=e(this).data("toggle");t?l(e(this),"toggle"):e(this).trigger("toggle.zf.trigger")}),e(document).on("close.zf.trigger","[data-closable]",function(t){t.stopPropagation();var n=e(this).data("closable");""!==n?Foundation.Motion.animateOut(e(this),n,function(){e(this).trigger("closed.zf")}):e(this).fadeOut().trigger("closed.zf")}),e(document).on("focus.zf.trigger blur.zf.trigger","[data-toggle-focus]",function(){var t=e(this).data("toggle-focus");e("#"+t).triggerHandler("toggle.zf.trigger",[e(this)])}),e(window).on("load",function(){t()}),Foundation.IHearYou=t}(jQuery);var _createClass=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();!function(e){var t=function(){function t(n,i){_classCallCheck(this,t),this.$element=n,this.options=e.extend({},t.defaults,this.$element.data(),i),Foundation.Nest.Feather(this.$element,"dropdown"),this._init(),Foundation.registerPlugin(this,"DropdownMenu"),Foundation.Keyboard.register("DropdownMenu",{ENTER:"open",SPACE:"open",ARROW_RIGHT:"next",ARROW_UP:"up",ARROW_DOWN:"down",ARROW_LEFT:"previous",ESCAPE:"close"})}return _createClass(t,[{key:"_init",value:function(){var e=this.$element.find("li.is-dropdown-submenu-parent");this.$element.children(".is-dropdown-submenu-parent").children(".is-dropdown-submenu").addClass("first-sub"),this.$menuItems=this.$element.find('[role="menuitem"]'),this.$tabs=this.$element.children('[role="menuitem"]'),this.$tabs.find("ul.is-dropdown-submenu").addClass(this.options.verticalClass),this.$element.hasClass(this.options.rightClass)||"right"===this.options.alignment||Foundation.rtl()||this.$element.parents(".top-bar-right").is("*")?(this.options.alignment="right",e.addClass("opens-left")):e.addClass("opens-right"),this.changed=!1,this._events()}},{key:"_isVertical",value:function(){return"block"===this.$tabs.css("display")}},{key:"_events",value:function(){var t=this,n="ontouchstart"in window||"undefined"!=typeof window.ontouchstart,i="is-dropdown-submenu-parent",o=function(o){var r=e(o.target).parentsUntil("ul","."+i),a=r.hasClass(i),s="true"===r.attr("data-is-click"),l=r.children(".is-dropdown-submenu");if(a)if(s){if(!t.options.closeOnClick||!t.options.clickOpen&&!n||t.options.forceFollow&&n)return;o.stopImmediatePropagation(),o.preventDefault(),t._hide(r)}else o.preventDefault(),o.stopImmediatePropagation(),t._show(l),r.add(r.parentsUntil(t.$element,"."+i)).attr("data-is-click",!0)};(this.options.clickOpen||n)&&this.$menuItems.on("click.zf.dropdownmenu touchstart.zf.dropdownmenu",o),t.options.closeOnClickInside&&this.$menuItems.on("click.zf.dropdownmenu",function(n){var o=e(this),r=o.hasClass(i);r||t._hide()}),this.options.disableHover||this.$menuItems.on("mouseenter.zf.dropdownmenu",function(n){var o=e(this),r=o.hasClass(i);r&&(clearTimeout(o.data("_delay")),o.data("_delay",setTimeout(function(){t._show(o.children(".is-dropdown-submenu"))},t.options.hoverDelay)))}).on("mouseleave.zf.dropdownmenu",function(n){var o=e(this),r=o.hasClass(i);if(r&&t.options.autoclose){if("true"===o.attr("data-is-click")&&t.options.clickOpen)return!1;clearTimeout(o.data("_delay")),o.data("_delay",setTimeout(function(){t._hide(o)},t.options.closingTime))}}),this.$menuItems.on("keydown.zf.dropdownmenu",function(n){var i,o,r=e(n.target).parentsUntil("ul",'[role="menuitem"]'),a=t.$tabs.index(r)>-1,s=a?t.$tabs:r.siblings("li").add(r);s.each(function(t){if(e(this).is(r))return i=s.eq(t-1),void(o=s.eq(t+1))});var l=function(){r.is(":last-child")||(o.children("a:first").focus(),n.preventDefault())},u=function(){i.children("a:first").focus(),n.preventDefault()},c=function(){var e=r.children("ul.is-dropdown-submenu");e.length&&(t._show(e),r.find("li > a:first").focus(),n.preventDefault())},d=function(){var e=r.parent("ul").parent("li");e.children("a:first").focus(),t._hide(e),n.preventDefault()},f={open:c,close:function(){t._hide(t.$element),t.$menuItems.find("a:first").focus(),n.preventDefault()},handled:function(){n.stopImmediatePropagation()}};a?t._isVertical()?Foundation.rtl()?e.extend(f,{down:l,up:u,next:d,previous:c}):e.extend(f,{down:l,up:u,next:c,previous:d}):Foundation.rtl()?e.extend(f,{next:u,previous:l,down:c,up:d}):e.extend(f,{next:l,previous:u,down:c,up:d}):Foundation.rtl()?e.extend(f,{next:d,previous:c,down:l,up:u}):e.extend(f,{next:c,previous:d,down:l,up:u}),Foundation.Keyboard.handleKey(n,"DropdownMenu",f)})}},{key:"_addBodyHandler",value:function(){var t=e(document.body),n=this;t.off("mouseup.zf.dropdownmenu touchend.zf.dropdownmenu").on("mouseup.zf.dropdownmenu touchend.zf.dropdownmenu",function(e){var i=n.$element.find(e.target);i.length||(n._hide(),t.off("mouseup.zf.dropdownmenu touchend.zf.dropdownmenu"))})}},{key:"_show",value:function(t){var n=this.$tabs.index(this.$tabs.filter(function(n,i){return e(i).find(t).length>0})),i=t.parent("li.is-dropdown-submenu-parent").siblings("li.is-dropdown-submenu-parent");this._hide(i,n),t.css("visibility","hidden").addClass("js-dropdown-active").parent("li.is-dropdown-submenu-parent").addClass("is-active");var o=Foundation.Box.ImNotTouchingYou(t,null,!0);if(!o){var r="left"===this.options.alignment?"-right":"-left",a=t.parent(".is-dropdown-submenu-parent");a.removeClass("opens"+r).addClass("opens-"+this.options.alignment),o=Foundation.Box.ImNotTouchingYou(t,null,!0),o||a.removeClass("opens-"+this.options.alignment).addClass("opens-inner"),this.changed=!0}t.css("visibility",""),this.options.closeOnClick&&this._addBodyHandler(),this.$element.trigger("show.zf.dropdownmenu",[t])}},{key:"_hide",value:function(e,t){var n;n=e&&e.length?e:void 0!==t?this.$tabs.not(function(e,n){return e===t}):this.$element;var i=n.hasClass("is-active")||n.find(".is-active").length>0;if(i){if(n.find("li.is-active").add(n).attr({"data-is-click":!1}).removeClass("is-active"),n.find("ul.js-dropdown-active").removeClass("js-dropdown-active"),this.changed||n.find("opens-inner").length){var o="left"===this.options.alignment?"right":"left";n.find("li.is-dropdown-submenu-parent").add(n).removeClass("opens-inner opens-"+this.options.alignment).addClass("opens-"+o),this.changed=!1}this.$element.trigger("hide.zf.dropdownmenu",[n])}}},{key:"destroy",value:function(){this.$menuItems.off(".zf.dropdownmenu").removeAttr("data-is-click").removeClass("is-right-arrow is-left-arrow is-down-arrow opens-right opens-left opens-inner"),e(document.body).off(".zf.dropdownmenu"),Foundation.Nest.Burn(this.$element,"dropdown"),Foundation.unregisterPlugin(this)}}]),t}();t.defaults={disableHover:!1,autoclose:!0,hoverDelay:50,clickOpen:!1,closingTime:500,alignment:"left",closeOnClick:!0,closeOnClickInside:!0,verticalClass:"vertical",rightClass:"align-right",forceFollow:!0},Foundation.plugin(t,"DropdownMenu")}(jQuery);var _createClass=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();!function(e){var t=function(){function t(n,i){_classCallCheck(this,t),this.$element=n,this.options=e.extend({},t.defaults,this.$element.data(),i),this.$lastTrigger=e(),this.$triggers=e(),this._init(),this._events(),Foundation.registerPlugin(this,"OffCanvas"),Foundation.Keyboard.register("OffCanvas",{ESCAPE:"close"})}return _createClass(t,[{key:"_init",value:function(){var t=this.$element.attr("id");if(this.$element.attr("aria-hidden","true"),this.$element.addClass("is-transition-"+this.options.transition),this.$triggers=e(document).find('[data-open="'+t+'"], [data-close="'+t+'"], [data-toggle="'+t+'"]').attr("aria-expanded","fal
3se").attr("aria-controls",t),this.options.contentOverlay===!0){var n=document.createElement("div"),i="fixed"===e(this.$element).css("position")?"is-overlay-fixed":"is-overlay-absolute";n.setAttribute("class","js-off-canvas-overlay "+i),this.$overlay=e(n),"is-overlay-fixed"===i?e("body").append(this.$overlay):this.$element.siblings("[data-off-canvas-content]").append(this.$overlay)}this.options.isRevealed=this.options.isRevealed||new RegExp(this.options.revealClass,"g").test(this.$element[0].className),this.options.isRevealed===!0&&(this.options.revealOn=this.options.revealOn||this.$element[0].className.match(/(reveal-for-medium|reveal-for-large)/g)[0].split("-")[2],this._setMQChecker()),!this.options.transitionTime==!0&&(this.options.transitionTime=1e3*parseFloat(window.getComputedStyle(e("[data-off-canvas]")[0]).transitionDuration))}},{key:"_events",value:function(){if(this.$element.off(".zf.trigger .zf.offcanvas").on({"open.zf.trigger":this.open.bind(this),"close.zf.trigger":this.close.bind(this),"toggle.zf.trigger":this.toggle.bind(this),"keydown.zf.offcanvas":this._handleKeyboard.bind(this)}),this.options.closeOnClick===!0){var t=this.options.contentOverlay?this.$overlay:e("[data-off-canvas-content]");t.on({"click.zf.offcanvas":this.close.bind(this)})}}},{key:"_setMQChecker",value:function(){var t=this;e(window).on("changed.zf.mediaquery",function(){Foundation.MediaQuery.atLeast(t.options.revealOn)?t.reveal(!0):t.reveal(!1)}).one("load.zf.offcanvas",function(){Foundation.MediaQuery.atLeast(t.options.revealOn)&&t.reveal(!0)})}},{key:"reveal",value:function(e){var t=this.$element.find("[data-close]");e?(this.close(),this.isRevealed=!0,this.$element.attr("aria-hidden","false"),this.$element.off("open.zf.trigger toggle.zf.trigger"),t.length&&t.hide()):(this.isRevealed=!1,this.$element.attr("aria-hidden","true"),this.$element.on({"open.zf.trigger":this.open.bind(this),"toggle.zf.trigger":this.toggle.bind(this)}),t.length&&t.show())}},{key:"_stopScrolling",value:function(e){return!1}},{key:"_recordScrollable",value:function(e){var t=this;t.scrollHeight!==t.clientHeight&&(0===t.scrollTop&&(t.scrollTop=1),t.scrollTop===t.scrollHeight-t.clientHeight&&(t.scrollTop=t.scrollHeight-t.clientHeight-1)),t.allowUp=t.scrollTop>0,t.allowDown=t.scrollTop<t.scrollHeight-t.clientHeight,t.lastY=e.originalEvent.pageY}},{key:"_stopScrollPropagation",value:function(e){var t=this,n=e.pageY<t.lastY,i=!n;t.lastY=e.pageY,n&&t.allowUp||i&&t.allowDown?e.stopPropagation():e.preventDefault()}},{key:"open",value:function(t,n){if(!this.$element.hasClass("is-open")&&!this.isRevealed){var i=this;n&&(this.$lastTrigger=n),"top"===this.options.forceTo?window.scrollTo(0,0):"bottom"===this.options.forceTo&&window.scrollTo(0,document.body.scrollHeight),i.$element.addClass("is-open"),this.$triggers.attr("aria-expanded","true"),this.$element.attr("aria-hidden","false").trigger("opened.zf.offcanvas"),this.options.contentScroll===!1&&(e("body").addClass("is-off-canvas-open").on("touchmove",this._stopScrolling),this.$element.on("touchstart",this._recordScrollable),this.$element.on("touchmove",this._stopScrollPropagation)),this.options.contentOverlay===!0&&this.$overlay.addClass("is-visible"),this.options.closeOnClick===!0&&this.options.contentOverlay===!0&&this.$overlay.addClass("is-closable"),this.options.autoFocus===!0&&this.$element.one(Foundation.transitionend(this.$element),function(){i.$element.find("a, button").eq(0).focus()}),this.options.trapFocus===!0&&(this.$element.siblings("[data-off-canvas-content]").attr("tabindex","-1"),Foundation.Keyboard.trapFocus(this.$element))}}},{key:"close",value:function(t){if(this.$element.hasClass("is-open")&&!this.isRevealed){
4var n=this;n.$element.removeClass("is-open"),this.$element.attr("aria-hidden","true").trigger("closed.zf.offcanvas"),this.options.contentScroll===!1&&(e("body").removeClass("is-off-canvas-open").off("touchmove",this._stopScrolling),this.$element.off("touchstart",this._recordScrollable),this.$element.off("touchmove",this._stopScrollPropagation)),this.options.contentOverlay===!0&&this.$overlay.removeClass("is-visible"),this.options.closeOnClick===!0&&this.options.contentOverlay===!0&&this.$overlay.removeClass("is-closable"),this.$triggers.attr("aria-expanded","fal
4se"),this.options.trapFocus===!0&&(this.$element.siblings("[data-off-canvas-content]").removeAttr("tabindex"),Foundation.Keyboard.releaseFocus(this.$element))}}},{key:"toggle",value:function(e,t){this.$element.hasClass("is-open")?this.close(e,t):this.open(e,t)}},{key:"_handleKeyboard",value:function(e){var t=this;Foundation.Keyboard.handleKey(e,"OffCanvas",{close:function(){return t.close(),t.$lastTrigger.focus(),!0},handled:function(){e.stopPropagation(),e.preventDefault()}})}},{key:"destroy",value:function(){this.close(),this.$element.off(".zf.trigger .zf.offcanvas"),this.$overlay.off(".zf.offcanvas"),Foundation.unregisterPlugin(this)}}]),t}();t.defaults={closeOnClick:!0,contentOverlay:!0,contentScroll:!0,transitionTime:0,transition:"push",forceTo:null,isRevealed:!1,revealOn:null,autoFocus:!0,revealClass:"reveal-for-",trapFocus:!1},Foundation.plugin(t,"OffCanvas")}(jQuery);var _createClass=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();!function(e){var t=function(){function t(n,i){_classCallCheck(this,t),this.$element=e(n),this.rules=this.$element.data("responsive-menu"),this.currentMq=null,this.currentPlugin=null,this._init(),this._events(),Foundation.registerPlugin(this,"ResponsiveMenu")}return _createClass(t,[{key:"_init",value:function(){if("string"==typeof this.rules){for(var t={},i=this.rules.split(" "),o=0;o<i.length;o++){var r=i[o].split("-"),a=r.length>1?r[0]:"small",s=r.length>1?r[1]:r[0];null!==n[s]&&(t[a]=n[s])}this.rules=t}e.isEmptyObject(this.rules)||this._checkMediaQueries(),this.$element.attr("data-mutate",this.$element.attr("data-mutate")||Foundation.GetYoDigits(6,"responsive-menu"))}},{key:"_events",value:function(){var t=this;e(window).on("changed.zf.mediaquery",function(){t._checkMediaQueries()})}},{key:"_checkMediaQueries",value:function(){var t,i=this;e.each(this.rules,function(e){Foundation.MediaQuery.atLeast(e)&&(t=e)}),t&&(this.currentPlugin instanceof this.rules[t].plugin||(e.each(n,function(e,t){i.$element.removeClass(t.cssClass)}),this.$element.addClass(this.rules[t].cssClass),this.currentPlugin&&this.currentPlugin.destroy(),this.currentPlugin=new this.rules[t].plugin(this.$element,{})))}},{key:"destroy",value:function(){this.currentPlugin.destroy(),e(window).off(".zf.ResponsiveMenu"),Foundation.unregisterPlugin(this)}}]),t}();t.defaults={};var n={dropdown:{cssClass:"dropdown",plugin:Foundation._plugins["dropdown-menu"]||null},drilldown:{cssClass:"drilldown",plugin:Foundation._plugins.drilldown||null},accordion:{cssClass:"accordion-menu",plugin:Foundation._plugins["accordion-menu"]||null}};Foundation.plugin(t,"ResponsiveMenu")}(jQuery),function(e){e(document).foundation(),e(".map-container").click(function(){e(this).find("iframe").addClass("clicked")}).mouseleave(function(){e(this).find("iframe").removeClass("clicked")})}(jQuery);var initPhotoSwipeFromDOM=function(e){for(var t=function(e){for(var t,n,i,o,r=e.childNodes,a=r.length,s=[],l=0;l<a;l++)t=r[l],1===t.nodeType&&t.children.length>0&&(n=t.children[0],n=t.children[0],i=n.getAttribute("data-size").split("x"),o={src:n.getAttribute("href"),w:parseInt(i[0],10),h:parseInt(i[1],10)},t.children.length>1&&(o.title=t.children[1].innerHTML),n.children.length>0&&(o.msrc=n.children[0].getAttribute("src")),o.el=t,s.push(o));return s},n=function c(e,t){return e&&(t(e)?e:c(e.parentNode,t))},i=function(e){e=e||window.event,e.preventDefault?e.preventDefault():e.returnValue=!1;var t=e.target||e.srcElement,i=n(t,function(e){return e.tagName&&"FIGURE"===e.tagName.toUpperCase()});if(i){for(var o,a=i.parentNode,s=i.parentNode.childNodes,l=s.length,u=0,c=0;c<l;c++)if(1===s[c].nodeType){if(s[c]===i){o=u;break}u++}return o>=0&&r(o,a),!1}},o=function(){var e=window.location.hash.substring(1),t={};if(e.length<5)return t;for(var n=e.split("&"),i=0;i<n.length;i++)if(n[i]){var o=n[i].split("=");o.length<2||(t[o[0]]=o[1])}return t.gid&&(t.gid=parseInt(t.gid,10)),t},r=function(e,n,i,o){var r,a,s,l=document.querySelectorAll(".pswp")[0];if(s=t(n),a={galleryUID:n.getAttribute("data-pswp-uid"),getThumbBoundsFn:function(e){var t=s[e].el.getElementsByTagName("img")[0],n=window.pageYOffset||document.documentElement.scrollTop,i=t.getBoundingClientRect();return{x:i.left,y:i.top+n,w:i.width}}},o)if(a.galleryPIDs){for(var u=0;u<s.length;u++)if(s[u].pid==e){a.index=u;break}}else a.index=parseInt(e,10)-1;else a.index=parseInt(e,10);isNaN(a.index)||(i&&(a.showAnimationDuration=0),r=new PhotoSwipe(l,PhotoSwipeUI_Default,s,a),r.init())},a=document.querySelectorAll(e),s=0,l=a.length;s<l;s++)a[s].setAttribute("data-pswp-uid",s+1),a[s].onclick=i;var u=o();u.pid&&u.gid&&r(u.pid,a[u.gid-1],!0,!0)};

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.