"function"!=typeof Object.create&&(Object.create=function(obj){function F(){}return F.prototype=obj,new F}),window.lazySizesConfig=window.lazySizesConfig||{},window.lazySizesConfig.lazyClass="aux-preload",window.lazySizesConfig.loadingClass="aux-preloading",window.lazySizesConfig.loadedClass="aux-preloaded",document.addEventListener("lazybeforeunveil",function(e){var color=e.target.getAttribute("data-bg-color");color&&(e.target.style.backgroundColor=color)}),document.addEventListener("lazyloaded",function(e){if(e.target.getAttribute("data-bg-color")&&(e.target.style.backgroundColor="initial"),e.target.classList.contains("aux-has-preload-height")&&(e.target.classList.remove("aux-has-preload-height"),e.target.style.height="auto"),"VIDEO"===e.target.nodeName){var source,video=e.target;for(source in video.children){var videoSource=video.children[source];"SOURCE"===videoSource.tagName&&videoSource.getAttribute("data-src")&&(videoSource.src=videoSource.getAttribute("data-src"))}video.load(),video.classList.contains("aux-autoplay")&&video.play()}}),(($,window,document)=>{function resposiveNotLoadedImages(){var width,height,lazysizeImages=document.querySelectorAll(".aux-preload");Array.prototype.forEach.call(lazysizeImages,function(el,i){(width=el.getAttribute("width"))&&(height=el.getAttribute("height"))&&(el.style.height=el.clientWidth/(width/height)+"px",el.classList.add("aux-has-preload-height"))})}window.addEventListener("orientationchange",resposiveNotLoadedImages),window.addEventListener("resize",resposiveNotLoadedImages),$(resposiveNotLoadedImages)})(jQuery,window,document),(factory=>{"function"==typeof define&&define.amd?define(["jquery"],factory):"object"==typeof module&&"object"==typeof module.exports?exports=factory(require("jquery")):factory(jQuery)})(function($){void 0!==$.easing&&($.easing.jswing=$.easing.swing);var pow=Math.pow,sqrt=Math.sqrt,sin=Math.sin,cos=Math.cos,PI=Math.PI,c1=1.70158,c2=1.525*c1,c4=2*PI/3,c5=2*PI/4.5;function bounceOut(x){var n1=7.5625,d1=2.75;return x<1/d1?n1*x*x:x<2/d1?n1*(x-=1.5/d1)*x+.75:x<2.5/d1?n1*(x-=2.25/d1)*x+.9375:n1*(x-=2.625/d1)*x+.984375}$.extend($.easing,{def:"easeOutQuad",swing:function(x){return $.easing[$.easing.def](x)},easeInQuad:function(x){return x*x},easeOutQuad:function(x){return 1-(1-x)*(1-x)},easeInOutQuad:function(x){return x<.5?2*x*x:1-pow(-2*x+2,2)/2},easeInCubic:function(x){return x*x*x},easeOutCubic:function(x){return 1-pow(1-x,3)},easeInOutCubic:function(x){return x<.5?4*x*x*x:1-pow(-2*x+2,3)/2},easeInQuart:function(x){return x*x*x*x},easeOutQuart:function(x){return 1-pow(1-x,4)},easeInOutQuart:function(x){return x<.5?8*x*x*x*x:1-pow(-2*x+2,4)/2},easeInQuint:function(x){return x*x*x*x*x},easeOutQuint:function(x){return 1-pow(1-x,5)},easeInOutQuint:function(x){return x<.5?16*x*x*x*x*x:1-pow(-2*x+2,5)/2},easeInSine:function(x){return 1-cos(x*PI/2)},easeOutSine:function(x){return sin(x*PI/2)},easeInOutSine:function(x){return-(cos(PI*x)-1)/2},easeInExpo:function(x){return 0===x?0:pow(2,10*x-10)},easeOutExpo:function(x){return 1===x?1:1-pow(2,-10*x)},easeInOutExpo:function(x){return 0===x?0:1===x?1:x<.5?pow(2,20*x-10)/2:(2-pow(2,-20*x+10))/2},easeInCirc:function(x){return 1-sqrt(1-pow(x,2))},easeOutCirc:function(x){return sqrt(1-pow(x-1,2))},easeInOutCirc:function(x){return x<.5?(1-sqrt(1-pow(2*x,2)))/2:(sqrt(1-pow(-2*x+2,2))+1)/2},easeInElastic:function(x){return 0===x?0:1===x?1:-pow(2,10*x-10)*sin((10*x-10.75)*c4)},easeOutElastic:function(x){return 0===x?0:1===x?1:pow(2,-10*x)*sin((10*x-.75)*c4)+1},easeInOutElastic:function(x){return 0===x?0:1===x?1:x<.5?-(pow(2,20*x-10)*sin((20*x-11.125)*c5))/2:pow(2,-20*x+10)*sin((20*x-11.125)*c5)/2+1},easeInBack:function(x){return 2.70158*x*x*x-c1*x*x},easeOutBack:function(x){return 1+2.70158*pow(x-1,3)+c1*pow(x-1,2)},easeInOutBack:function(x){return x<.5?pow(2*x,2)*(7.189819*x-c2)/2:(pow(2*x-2,2)*((1+c2)*(2*x-2)+c2)+2)/2},easeInBounce:function(x){return 1-bounceOut(1-x)},easeOutBounce:bounceOut,easeInOutBounce:function(x){return x<.5?(1-bounceOut(1-2*x))/2:(1+bounceOut(2*x-1))/2}})}),($=>{var resizeTimeout,$event=$.event,$special=$event.special.debouncedresize={setup:function(){$(this).on("resize",$special.handler)},teardown:function(){$(this).off("resize",$special.handler)},handler:function(event,execAsap){function dispatch(){event.type="debouncedresize",$event.dispatch.apply(context,args)}var context=this,args=arguments;resizeTimeout&&clearTimeout(resizeTimeout),execAsap?dispatch():resizeTimeout=setTimeout(dispatch,$special.threshold)},threshold:150}})(jQuery),($=>{$.fn.fitVids=function(options){var head,div,settings={customSelector:null,ignore:null};return document.getElementById("fit-vids-style")||(head=document.head||document.getElementsByTagName("head")[0],(div=document.createElement("div")).innerHTML='
x
',head.appendChild(div.childNodes[1])),options&&$.extend(settings,options),this.each(function(){var selectors=['iframe[src*="player.vimeo.com"]:not(.depicter-video-player)','iframe[src*="youtube.com"]:not(.depicter-video-player)','iframe[src*="youtube-nocookie.com"]:not(.depicter-video-player)','iframe[src*="kickstarter.com"][src*="video.html"]',"object","embed"],ignoreList=(settings.customSelector&&selectors.push(settings.customSelector),".fitvidsignore"),selectors=(settings.ignore&&(ignoreList=ignoreList+", "+settings.ignore),$(this).find(selectors.join(",")));(selectors=(selectors=selectors.not("object object")).not(ignoreList)).each(function(){var aspectRatio,videoName,$this=$(this);0<$this.parents(ignoreList).length||"embed"===this.tagName.toLowerCase()&&$this.parent("object").length||$this.parent(".fluid-width-video-wrapper").length||($this.css("height")||$this.css("width")||!isNaN($this.attr("height"))&&!isNaN($this.attr("width"))||($this.attr("height",9),$this.attr("width",16)),aspectRatio=("object"===this.tagName.toLowerCase()||$this.attr("height")&&!isNaN(parseInt($this.attr("height"),10))?parseInt($this.attr("height"),10):$this.height())/(isNaN(parseInt($this.attr("width"),10))?$this.width():parseInt($this.attr("width"),10)),$this.attr("name")||(videoName="fitvid"+$.fn.fitVids._count,$this.attr("name",videoName),$.fn.fitVids._count++),$this.wrap('').parent(".fluid-width-video-wrapper").css("padding-top",100*aspectRatio+"%"),$this.removeAttr("height").removeAttr("width"))})})},$.fn.fitVids._count=0})(window.jQuery||window.Zepto),(factory=>{"function"==typeof define&&define.amd?define(["jquery"],factory):"object"==typeof exports?module.exports=factory:factory(jQuery)})(function($){var nullLowestDeltaTimeout,lowestDelta,toFix=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],toBind="onwheel"in window.document||9<=window.document.documentMode?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],slice=Array.prototype.slice;if($.event.fixHooks)for(var i=toFix.length;i;)$.event.fixHooks[toFix[--i]]=$.event.mouseHooks;var special=$.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var i=toBind.length;i;)this.addEventListener(toBind[--i],handler,!1);else this.onmousewheel=handler;$.data(this,"mousewheel-line-height",special.getLineHeight(this)),$.data(this,"mousewheel-page-height",special.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var i=toBind.length;i;)this.removeEventListener(toBind[--i],handler,!1);else this.onmousewheel=null;$.removeData(this,"mousewheel-line-height"),$.removeData(this,"mousewheel-page-height")},getLineHeight:function(elem){var elem=$(elem),$parent=elem["offsetParent"in $.fn?"offsetParent":"parent"]();return $parent.length||($parent=$("body")),parseInt($parent.css("fontSize"),10)||parseInt(elem.css("fontSize"),10)||16},getPageHeight:function(elem){return $(elem).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};function handler(event){var lineHeight,orgEvent=event||window.event,args=slice.call(arguments,1),delta=0,deltaX=0,deltaY=0;if((event=$.event.fix(orgEvent)).type="mousewheel","detail"in orgEvent&&(deltaY=-1*orgEvent.detail),"wheelDelta"in orgEvent&&(deltaY=orgEvent.wheelDelta),"wheelDeltaY"in orgEvent&&(deltaY=orgEvent.wheelDeltaY),"wheelDeltaX"in orgEvent&&(deltaX=-1*orgEvent.wheelDeltaX),"axis"in orgEvent&&orgEvent.axis===orgEvent.HORIZONTAL_AXIS&&(deltaX=-1*deltaY,deltaY=0),delta=0===deltaY?deltaX:deltaY,"deltaY"in orgEvent&&(delta=deltaY=-1*orgEvent.deltaY),"deltaX"in orgEvent&&(deltaX=orgEvent.deltaX,0===deltaY)&&(delta=-1*deltaX),0!==deltaY||0!==deltaX)return 1===orgEvent.deltaMode?(delta*=lineHeight=$.data(this,"mousewheel-line-height"),deltaY*=lineHeight,deltaX*=lineHeight):2===orgEvent.deltaMode&&(delta*=lineHeight=$.data(this,"mousewheel-page-height"),deltaY*=lineHeight,deltaX*=lineHeight),lineHeight=Math.max(Math.abs(deltaY),Math.abs(deltaX)),(!lowestDelta||lineHeight{"object"==typeof exports?module.exports=b():"function"==typeof define&&define.amd?define(["jquery","googlemaps!"],b):a.GMaps=b()})(this,function(){function a(a,b){if(a!==b)for(var c in b)void 0!==b[c]&&(a[c]=b[c]);return a}function b(a,b){var c,d=Array.prototype.slice.call(arguments,2),e=[],f=a.length;if(Array.prototype.map&&a.map===Array.prototype.map)e=Array.prototype.map.call(a,function(a){var c=d.slice(0);return c.splice(0,0,a),b.apply(this,c)});else for(c=0;c{var c=a[0],d=a[1];return b&&(c=a[1],d=a[0]),new google.maps.LatLng(c,d)})(a[c],b));return a}function h(a,b){return a=a.replace("#",""),"jQuery"in window&&b?$("#"+a,b)[0]:document.getElementById(a)}var k,l,j=(()=>{function d(b){if("object"!=typeof window.google||!window.google.maps)return"object"==typeof window.console&&window.console.error&&console.error("Google Maps API is required. Please register the following JavaScript library https://maps.googleapis.com/maps/api/js."),function(){};if(!this)return new d(b);function f(a,b){return void 0===a?b:a}b.zoom=b.zoom||15,b.mapType=b.mapType||"roadmap";var e,j=this,k=["bounds_changed","center_changed","click","dblclick","drag","dragend","dragstart","idle","maptypeid_changed","projection_changed","resize","tilesloaded","zoom_changed"],l=["mousemove","mouseout","mouseover"],m=["el","lat","lng","mapType","width","height","markerClusterer","enableNewStyle"],n=b.el||b.div,o=b.markerClusterer,p=google.maps.MapTypeId[b.mapType.toUpperCase()],q=new google.maps.LatLng(b.lat,b.lng),r=f(b.zoomControl,!0),s=b.zoomControlOpt||{style:"DEFAULT",position:"TOP_LEFT"},t=s.style||"DEFAULT",v=f(b.panControl,!0),w=f(b.mapTypeControl,!0),x=f(b.scaleControl,!0),y=f(b.streetViewControl,!0),A={},q={zoom:this.zoom,center:q,mapTypeId:p},p={panControl:v,zoomControl:r,zoomControlOptions:{style:google.maps.ZoomControlStyle[t],position:google.maps.ControlPosition[s.position||"TOP_LEFT"]},mapTypeControl:w,scaleControl:x,streetViewControl:y,overviewMapControl:!0};if("string"==typeof b.el||"string"==typeof b.div?-1'+f.title+"");if(h("gmaps_context_menu")){var g=h("gmaps_context_menu");g.innerHTML=c;var e,k=g.getElementsByTagName("a"),l=k.length;for(e=0;e{a[c]=function(){return b[c].apply(b,arguments)}})(this,this.map,I[e])}var c=document;return d})();return j.prototype.createControl=function(a){var c,d,b=document.createElement("div");for(c in b.style.cursor="pointer",!0!==a.disableDefaultStyles&&(b.style.fontFamily="Roboto, Arial, sans-serif",b.style.fontSize="11px",b.style.boxShadow="rgba(0, 0, 0, 0.298039) 0px 1px 4px -1px"),a.style)b.style[c]=a.style[c];for(d in a.id&&(b.id=a.id),a.title&&(b.title=a.title),a.classes&&(b.className=a.classes),a.content&&("string"==typeof a.content?b.innerHTML=a.content:a.content instanceof HTMLElement&&b.appendChild(a.content)),a.position&&(b.position=google.maps.ControlPosition[a.position.toUpperCase()]),a.events)((b,c)=>{google.maps.event.addDomListener(b,c,function(){a.events[c].apply(this,[this])})})(b,d);return b.index=1,b},j.prototype.addControl=function(a){a=this.createControl(a);return this.controls.push(a),this.map.controls[a.position].push(a),a},j.prototype.removeControl=function(a){for(var c=null,b=0;b{b.infoWindow[c]&&google.maps.event.addListener(a,c,function(a){b.infoWindow[c].apply(this,[a])})})(i.infoWindow,j[k])}for(var l=["animation_changed","clickable_changed","cursor_changed","draggable_changed","flat_changed","icon_changed","position_changed","shadow_changed","shape_changed","title_changed","visible_changed","zindex_changed"],m=["dblclick","drag","dragend","dragstart","mousedown","mouseout","mouseover","mouseup"],k=0;k{b[c]&&google.maps.event.addListener(i,c,function(){b[c].apply(this,[this])})})(l[k]);for(k=0;k{b[d]&&google.maps.event.addListener(i,d,function(c){c.pixel||(c.pixel=a.getProjection().fromLatLngToPoint(c.latLng)),b[d].apply(this,[c])})})(this.map,m[k]);return google.maps.event.addListener(i,"click",function(){this.details=d,b.click&&b.click.apply(this,[this]),i.infoWindow&&(c.hideInfoWindows(),i.infoWindow.open(c.map,i))}),google.maps.event.addListener(i,"rightclick",function(a){a.marker=this,b.rightclick&&b.rightclick.apply(this,[a]),null!=window.context_menu[c.el.id].marker&&c.buildContextMenu("marker",a)}),i.fences&&google.maps.event.addListener(i,"dragend",function(){c.checkMarkerGeofence(i,function(a,b){f(a,b)})}),i},j.prototype.addMarker=function(a){var b;if(a.hasOwnProperty("gm_accessors_"))b=a;else{if(!(a.hasOwnProperty("lat")&&a.hasOwnProperty("lng")||a.position))throw"No latitude or longitude defined.";b=this.createMarker(a)}return b.setMap(this.map),this.markerClusterer&&this.markerClusterer.addMarker(b),this.markers.push(b),j.fire("marker_added",b,this),b},j.prototype.addMarkers=function(a){for(var b,c=0;b=a[c];c++)this.addMarker(b);return this.markers},j.prototype.hideInfoWindows=function(){for(var a,b=0;a=this.markers[b];b++)a.infoWindow&&a.infoWindow.close()},j.prototype.removeMarker=function(a){for(var b=0;b{a[c]&&google.maps.event.addListener(g,c,function(b){a[c].apply(this,[b])})})(h[i]);return this.polylines.push(g),j.fire("polyline_added",g,this),g},j.prototype.removePolyline=function(a){for(var b=0;b{b[c]&&google.maps.event.addListener(a,c,function(a){b[c].apply(this,[a])})})(c,d[e]);return this.polygons.push(c),c},j.prototype.drawRectangle=function(b){b=a({map:this.map},b);var c=new google.maps.LatLngBounds(new google.maps.LatLng(b.bounds[0][0],b.bounds[0][1]),new google.maps.LatLng(b.bounds[1][0],b.bounds[1][1]));b.bounds=c;for(var d=new google.maps.Rectangle(b),e=["click","dblclick","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"],f=0;f{b[c]&&google.maps.event.addListener(d,c,function(a){b[c].apply(this,[a])})})(e[f]);return this.polygons.push(d),d},j.prototype.drawPolygon=function(d){var e=!1;d.hasOwnProperty("useGeoJSON")&&(e=d.useGeoJSON),delete d.useGeoJSON,d=a({map:this.map},d),0==e&&(d.paths=[d.paths.slice(0)]),0{d[b]&&google.maps.event.addListener(g,b,function(a){d[b].apply(this,[a])})})(h[i]);return this.polygons.push(g),j.fire("polygon_added",g,this),g},j.prototype.removePolygon=function(a){for(var b=0;b{google.maps.event.addListener(d,c,function(a){b[c].apply(this,[a])})})(e);return this.layers.push(d),d},j.prototype.loadFromFusionTables=function(a){a=this.getFromFusionTables(a);return a.setMap(this.map),a},j.prototype.getFromKML=function(a){var b=a.url,c=a.events;delete a.url,delete a.events;var f,e=new google.maps.KmlLayer(b,a);for(f in c)(b=>{google.maps.event.addListener(e,b,function(a){c[b].apply(this,[a])})})(f);return this.layers.push(e),e},j.prototype.loadFromKML=function(a){a=this.getFromKML(a);return a.setMap(this.map),a},j.prototype.addLayer=function(a,b){var c,d;switch(b=b||{},a){case"weather":this.singleLayers.weather=c=new google.maps.weather.WeatherLayer;break;case"clouds":this.singleLayers.clouds=c=new google.maps.weather.CloudLayer;break;case"traffic":this.singleLayers.traffic=c=new google.maps.TrafficLayer;break;case"transit":this.singleLayers.transit=c=new google.maps.TransitLayer;break;case"bicycling":this.singleLayers.bicycling=c=new google.maps.BicyclingLayer;break;case"panoramio":this.singleLayers.panoramio=c=new google.maps.panoramio.PanoramioLayer,c.setTag(b.filter),delete b.filter,b.click&&google.maps.event.addListener(c,"click",function(a){b.click(a),delete b.click});break;case"places":this.singleLayers.places=c=new google.maps.places.PlacesService(this.map),(b.search||b.nearbySearch||b.radarSearch)&&(d={bounds:b.bounds||null,keyword:b.keyword||null,location:b.location||null,name:b.name||null,radius:b.radius||null,rankBy:b.rankBy||null,types:b.types||null},b.radarSearch&&c.radarSearch(d,b.radarSearch),b.search&&c.search(d,b.search),b.nearbySearch)&&c.nearbySearch(d,b.nearbySearch),b.textSearch&&(d={bounds:b.bounds||null,location:b.location||null,query:b.query||null,radius:b.radius||null},c.textSearch(d,b.textSearch))}if(void 0!==c)return"function"==typeof c.setOptions&&c.setOptions(b),"function"==typeof c.setMap&&c.setMap(this.map),c},j.prototype.removeLayer=function(a){if("string"==typeof a&&void 0!==this.singleLayers[a])this.singleLayers[a].setMap(null),delete this.singleLayers[a];else for(var b=0;b{b[c]&&google.maps.event.addListener(g,c,function(){b[c].apply(this)})})(d[f]);return g},j.prototype.on=function(a,b){return j.on(a,this,b)},j.prototype.off=function(a){j.off(a,this)},j.prototype.once=function(a,b){return j.once(a,this,b)},j.custom_events=["marker_added","marker_removed","polyline_added","polyline_removed","polygon_added","polygon_removed","geolocated","geolocation_failed"],j.on=function(a,b,c){return-1==j.custom_events.indexOf(a)?(b instanceof j&&(b=b.map),google.maps.event.addListener(b,a,c)):(c={handler:c,eventName:a},b.registered_events[a]=b.registered_events[a]||[],b.registered_events[a].push(c),c)},j.off=function(a,b){-1==j.custom_events.indexOf(a)?(b instanceof j&&(b=b.map),google.maps.event.clearListeners(b,a)):b.registered_events[a]=[]},j.once=function(a,b,c){if(-1==j.custom_events.indexOf(a))return b instanceof j&&(b=b.map),google.maps.event.addListenerOnce(b,a,c)},j.fire=function(a,b,c){if(-1==j.custom_events.indexOf(a))google.maps.event.trigger(b,a,Array.prototype.slice.apply(arguments).slice(2));else if(a in c.registered_events)for(var d=c.registered_events[a],e=0;e{a.apply(b,[c])})(d[e].handler,c,b)},j.geolocate=function(a){var b=a.always||a.complete;navigator.geolocation?navigator.geolocation.getCurrentPosition(function(c){a.success(c),b&&b()},function(c){a.error(c),b&&b()},a.options):(a.not_supported(),b&&b())},j.geocode=function(a){this.geocoder=new google.maps.Geocoder;var b=a.callback;a.hasOwnProperty("lat")&&a.hasOwnProperty("lng")&&(a.latLng=new google.maps.LatLng(a.lat,a.lng)),delete a.lat,delete a.lng,delete a.callback,this.geocoder.geocode(a,function(a,c){b(a,c)})},"object"==typeof window.google&&window.google.maps&&(google.maps.Polygon.prototype.getBounds||(google.maps.Polygon.prototype.getBounds=function(a){for(var c=new google.maps.LatLngBounds,d=this.getPaths(),e=0;e=a.lng()||k.lng()=a.lng())&&j.lat()+(a.lng()-j.lng())/(k.lng()-j.lng())*(k.lat()-j.lat())>>0;if(0!=c){var d=0;if(1{function events(el,obj){if(!(this instanceof events))return new events(el,obj);if(!el)throw new Error("element required");if(!obj)throw new Error("object required");this.el=el,this.obj=obj,this._events={}}events.prototype.sub=function(event,method,cb){this._events[event]=this._events[event]||{},this._events[event][method]=cb},events.prototype.bind=function(event,method){var event=(event=>({name:(event=event.split(/ +/)).shift(),selector:event.join(" ")}))(event),el=this.el,obj=this.obj,name=event.name,method=method||"on"+name,args=[].slice.call(arguments,2);function cb(){var a=[].slice.call(arguments).concat(args);obj[method].apply(obj,a)}return event.selector?cb=delegate.bind(el,event.selector,name,cb):events.bind(el,name,cb),this.sub(name,method,cb),cb},events.prototype.unbind=function(event,method){var bindings;return 0==arguments.length?this.unbindAll():1==arguments.length?this.unbindAllOf(event):void((bindings=this._events[event])&&(bindings=bindings[method])&&events.unbind(this.el,event,bindings))},events.prototype.unbindAll=function(){for(var event in this._events)this.unbindAllOf(event)};var defaults={className:"switchery",disabled:!(events.prototype.unbindAllOf=function(event){var bindings=this._events[event];if(bindings)for(var method in bindings)this.unbind(event,method)}),disabledOpacity:.5,speed:"0.4s",size:"default"};function Switchery(element,options){if(!(this instanceof Switchery))return new Switchery(element,options);for(var i in this.element=element,this.options=options||{},defaults)null==this.options[i]&&(this.options[i]=defaults[i]);null!=this.element&&"checkbox"==this.element.type&&this.init(),!0===this.isDisabled()&&this.disable()}Switchery.prototype.hide=function(){this.element.style.display="none"},Switchery.prototype.show=function(){var switcher=this.create();this.insertAfter(this.element,switcher)},Switchery.prototype.create=function(){return this.switcher=document.createElement("span"),this.jack=document.createElement("small"),this.switcher.appendChild(this.jack),this.switcher.className=this.options.className,this.events=events(this.switcher,this),this.switcher},Switchery.prototype.insertAfter=function(reference,target){reference.parentNode.insertBefore(target,reference.nextSibling)},Switchery.prototype.setPosition=function(clicked){var checked=this.isChecked();this.switcher,this.jack;clicked&&checked?checked=!1:clicked&&!checked&&(checked=!0),this.element.checked=checked},Switchery.prototype.setSize=function(){switch(this.options.size){case"small":this.switcher.classList.add("switchery-small");break;case"large":this.switcher.classList.add("switchery-large");break;default:this.switcher.classList.add("switchery-default")}},Switchery.prototype.handleOnchange=function(state){var event;document.dispatchEvent?((event=document.createEvent("HTMLEvents")).initEvent("change",!0,!0),this.element.dispatchEvent(event)):this.element.fireEvent("onchange")},Switchery.prototype.handleChange=function(){var self=this;this.element.addEventListener("change",function(){self.setPosition()})},Switchery.prototype.handleClick=function(){var switcher=this.switcher;"LABEL"!==this.element.parentNode.tagName&&switcher.addEventListener("click",this.bindClick.bind(this)),this.events.bind("click","bindClick")},Switchery.prototype.bindClick=function(){var parent=this.element.parentNode.tagName.toLowerCase();this.setPosition("label"!==parent),this.handleOnchange(this.element.checked)},Switchery.prototype.markAsSwitched=function(){this.element.setAttribute("data-switchery",!0)},Switchery.prototype.markedAsSwitched=function(){return this.element.getAttribute("data-switchery")},Switchery.prototype.init=function(){this.hide(),this.show(),this.setSize(),this.setPosition(),this.markAsSwitched(),this.handleChange(),this.handleClick()},Switchery.prototype.isChecked=function(){return this.element.checked},Switchery.prototype.isDisabled=function(){return this.options.disabled||this.element.disabled||this.element.readOnly},Switchery.prototype.destroy=function(){this.events.unbind()},Switchery.prototype.enable=function(){this.options.disabled&&(this.options.disabled&&(this.options.disabled=!1),this.element.disabled&&(this.element.disabled=!1),this.element.readOnly&&(this.element.readOnly=!1),this.switcher.style.opacity=1,this.events.bind("click","bindClick"))},Switchery.prototype.disable=function(){this.options.disabled||(this.options.disabled||(this.options.disabled=!0),this.element.disabled||(this.element.disabled=!0),this.element.readOnly||(this.element.readOnly=!0),this.switcher.style.opacity=this.options.disabledOpacity,this.destroy())},window.Switchery=Switchery})();var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj};(factory=>{"function"==typeof define&&define.amd?define(["jquery"],factory):"object"===("undefined"==typeof module?"undefined":_typeof(module))&&module.exports?module.exports=function(root,jQuery){return void 0===jQuery&&(jQuery="undefined"!=typeof window?require("jquery"):require("jquery")(root)),factory(jQuery),jQuery}:factory(jQuery)})(function($){return $.fn.tilt=function(options){function mouseEnter(event){this.ticking=!1,$(this).css({"will-change":"transform"}),setTransition.call(this),$(this).trigger("tilt.mouseEnter")}function mouseMove(event){this.mousePositions=getMousePositions(event),requestTick.call(this)}function mouseLeave(){setTransition.call(this),this.reset=!0,requestTick.call(this),$(this).trigger("tilt.mouseLeave")}function updateGlareSize(){this.glareElement.css({width:""+2*$(this).outerWidth(),height:""+2*$(this).outerWidth()})}var requestTick=function(){this.ticking||(requestAnimationFrame(updateTransforms.bind(this)),this.ticking=!0)},setTransition=function(){var _this2=this;void 0!==this.timeout&&clearTimeout(this.timeout),$(this).css({transition:this.settings.speed+"ms "+this.settings.easing}),this.settings.glare&&this.glareElement.css({transition:"opacity "+this.settings.speed+"ms "+this.settings.easing}),this.timeout=setTimeout(function(){$(_this2).css({transition:""}),_this2.settings.glare&&_this2.glareElement.css({transition:""})},this.settings.speed)},getMousePositions=function(event){return{x:(event=void 0===event?{pageX:$(this).offset().left+$(this).outerWidth()/2,pageY:$(this).offset().top+$(this).outerHeight()/2}:event).pageX,y:event.pageY}},getValues=function(){var reverse=this.settings.reverse?1:-1,width=$(this).outerWidth(),height=$(this).outerHeight(),left=$(this).offset().left,top=$(this).offset().top,percentageX=(this.mousePositions.x-left)/width,percentageY=(this.mousePositions.y-top)/height;return{tiltX:reverse*(this.settings.maxTilt/2-percentageX*this.settings.maxTilt).toFixed(2),tiltY:reverse*(percentageY*this.settings.maxTilt-this.settings.maxTilt/2).toFixed(2),percentageX:100*percentageX,percentageY:100*percentageY,angle:Math.atan2(this.mousePositions.x-(left+width/2),-(this.mousePositions.y-(top+height/2)))*(180/Math.PI)}},updateTransforms=function(){this.transforms=getValues.call(this),this.reset?(this.reset=!1,$(this).css("transform","perspective("+this.settings.perspective+"px) rotateX(0deg) rotateY(0deg)"),this.settings.glare&&(this.glareElement.css("transform","rotate(180deg) translate(-50%, -50%)"),this.glareElement.css("opacity","0"))):($(this).css("transform","perspective("+this.settings.perspective+"px) rotateX("+("x"===this.settings.disableAxis?0:this.transforms.tiltY)+"deg) rotateY("+("y"===this.settings.disableAxis?0:this.transforms.tiltX)+"deg) scale3d("+this.settings.scale+","+this.settings.scale+","+this.settings.scale+")"),this.settings.glare&&(this.glareElement.css("transform","rotate("+this.transforms.angle+"deg) translate(-50%, -50%)"),this.glareElement.css("opacity",""+this.transforms.percentageY*this.settings.maxGlare/100)),$(this).trigger("change",[this.transforms]),this.ticking=!1)};return $.fn.tilt.destroy=function(){$(this).each(function(){$(this).find(".js-tilt-glare").remove(),$(this).css({"will-change":"",transform:""}),$(this).off("mousemove mouseenter mouseleave")})},$.fn.tilt.getValues=function(){var results=[];return $(this).each(function(){this.mousePositions=getMousePositions.call(this),results.push(getValues.call(this))}),results},$.fn.tilt.reset=function(){$(this).each(function(){var _this3=this;this.mousePositions=getMousePositions.call(this),this.settings=$(this).data("settings"),mouseLeave.call(this),setTimeout(function(){_this3.reset=!1},this.settings.transition)})},this.each(function(){var _this4=this;this.settings=$.extend({maxTilt:$(this).is("[data-tilt-max]")?$(this).data("tilt-max"):20,perspective:$(this).is("[data-tilt-perspective]")?$(this).data("tilt-perspective"):300,easing:$(this).is("[data-tilt-easing]")?$(this).data("tilt-easing"):"cubic-bezier(.03,.98,.52,.99)",scale:$(this).is("[data-tilt-scale]")?$(this).data("tilt-scale"):"1",speed:$(this).is("[data-tilt-speed]")?$(this).data("tilt-speed"):"400",transition:!$(this).is("[data-tilt-transition]")||$(this).data("tilt-transition"),disableAxis:$(this).is("[data-tilt-disable-axis]")?$(this).data("tilt-disable-axis"):null,axis:$(this).is("[data-tilt-axis]")?$(this).data("tilt-axis"):null,reset:!$(this).is("[data-tilt-reset]")||$(this).data("tilt-reset"),glare:!!$(this).is("[data-tilt-glare]")&&$(this).data("tilt-glare"),maxGlare:$(this).is("[data-tilt-maxglare]")?$(this).data("tilt-maxglare"):1,reverse:!!$(this).is("[data-tilt-reverse]")&&$(this).data("tilt-reverse")},options),null!==this.settings.axis&&(console.warn("Tilt.js: the axis setting has been renamed to disableAxis. See https://github.com/gijsroge/tilt.js/pull/26 for more information"),this.settings.disableAxis=this.settings.axis),this.init=function(){$(_this4).data("settings",_this4.settings),_this4.settings.glare&&function(){var glarePrerender=this.settings.glarePrerender;glarePrerender||$(this).append(''),this.glareElementWrapper=$(this).find(".js-tilt-glare"),this.glareElement=$(this).find(".js-tilt-glare-inner"),glarePrerender||(this.glareElementWrapper.css({position:"absolute",top:"0",left:"0",width:"100%",height:"100%"}).css({overflow:"hidden","pointer-events":"none"}),this.glareElement.css({position:"absolute",top:"50%",left:"50%","background-image":"linear-gradient(0deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%)",width:""+2*$(this).outerWidth(),height:""+2*$(this).outerWidth(),transform:"rotate(180deg) translate(-50%, -50%)","transform-origin":"0% 0%",opacity:"0"}))}.call(_this4),function(){$(this).on("mousemove",mouseMove),$(this).on("mouseenter",mouseEnter),this.settings.reset&&$(this).on("mouseleave",mouseLeave),this.settings.glare&&$(window).on("resize",updateGlareSize.bind(this))}.call(_this4)},this.init()})},$("[data-tilt]").tilt(),!0}),(factory=>{"function"==typeof define&&define.amd?define(["jquery"],factory):"undefined"!=typeof module&&module.exports?module.exports=factory(require("jquery")):factory(jQuery)})(function($){function _parse(value){return parseFloat(value)||0}function _rows(elements){var elements=$(elements),lastTop=null,rows=[];return elements.each(function(){var $that=$(this),top=$that.offset().top-_parse($that.css("margin-top")),lastRow=0targetHeight&&(targetHeight=$that.outerHeight(!1)),style?$that.attr("style",style):$that.css("display","")})}row.each(function(){var $that=$(this),verticalPadding=0;opts.target&&$that.is(opts.target)||("border-box"!==$that.css("box-sizing")&&(verticalPadding=(verticalPadding+=_parse($that.css("border-top-width"))+_parse($that.css("border-bottom-width")))+(_parse($that.css("padding-top"))+_parse($that.css("padding-bottom")))),$that.css(opts.property,targetHeight-verticalPadding+"px"))})}),$hiddenParents.each(function(){var $that=$(this);$that.attr("style",$that.data("style-cache")||null)}),matchHeight._maintainScroll&&$(window).scrollTop(scrollTop/htmlHeight*$("html").outerHeight(!0)),this},matchHeight._applyDataApi=function(){var groups={};$("[data-match-height], [data-mh]").each(function(){var $this=$(this),groupId=$this.attr("data-mh")||$this.attr("data-match-height");groupId in groups?groups[groupId]=groups[groupId].add($this):groups[groupId]=$this}),$.each(groups,function(){this.matchHeight(!0)})},matchHeight._update=function(throttle,event){if(event&&"resize"===event.type){var windowWidth=$(window).width();if(windowWidth===_previousResizeWidth)return;_previousResizeWidth=windowWidth}throttle?-1===_updateTimeout&&(_updateTimeout=setTimeout(function(){_update(event),_updateTimeout=-1},matchHeight._throttle)):_update(event)},$(matchHeight._applyDataApi),$.fn.on?"on":"bind");$(window)[on]("load",function(event){matchHeight._update(!1,event)}),$(window)[on]("resize orientationchange",function(event){matchHeight._update(!0,event)})}),((window,factory)=>{"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(jQuery){return factory(window,jQuery)}):"object"==typeof module&&module.exports?module.exports=factory(window,require("jquery")):window.jQueryBridget=factory(window,window.jQuery)})(window,function(window,jQuery){var arraySlice=Array.prototype.slice,console=window.console,logError=void 0===console?function(){}:function(message){console.error(message)};function jQueryBridget(namespace,PluginClass,$){($=$||jQuery||window.jQuery)&&(PluginClass.prototype.option||(PluginClass.prototype.option=function(opts){$.isPlainObject(opts)&&(this.options=$.extend(!0,this.options,opts))}),$.fn[namespace]=function(arg0){var options;return"string"==typeof arg0?(($elems,methodName,args)=>{var returnValue,pluginMethodStr="$()."+namespace+'("'+methodName+'")';return $elems.each(function(i,elem){var method,elem=$.data(elem,namespace);elem?(method=elem[methodName])&&"_"!=methodName.charAt(0)?(method=method.apply(elem,args),returnValue=void 0===returnValue?method:returnValue):logError(pluginMethodStr+" is not a valid method"):logError(namespace+" not initialized. Cannot call methods, i.e. "+pluginMethodStr)}),void 0!==returnValue?returnValue:$elems})(this,arg0,arraySlice.call(arguments,1)):(options=arg0,this.each(function(i,elem){var instance=$.data(elem,namespace);instance?(instance.option(options),instance._init()):(instance=new PluginClass(elem,options),$.data(elem,namespace,instance))}),this)},updateJQuery($))}function updateJQuery($){$&&!$.bridget&&($.bridget=jQueryBridget)}return updateJQuery(jQuery||window.jQuery),jQueryBridget}),((global,factory)=>{"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",factory):"object"==typeof module&&module.exports?module.exports=factory():global.EvEmitter=factory()})(void 0!==window?window:this,function(){function EvEmitter(){}var proto=EvEmitter.prototype;return proto.on=function(eventName,listener){var events;if(eventName&&listener)return-1==(events=(events=this._events=this._events||{})[eventName]=events[eventName]||[]).indexOf(listener)&&events.push(listener),this},proto.once=function(eventName,listener){var onceEvents;if(eventName&&listener)return this.on(eventName,listener),((onceEvents=this._onceEvents=this._onceEvents||{})[eventName]=onceEvents[eventName]||{})[listener]=!0,this},proto.off=function(eventName,listener){eventName=this._events&&this._events[eventName];if(eventName&&eventName.length)return-1!=(listener=eventName.indexOf(listener))&&eventName.splice(listener,1),this},proto.emitEvent=function(eventName,args){var listeners=this._events&&this._events[eventName];if(listeners&&listeners.length){listeners=listeners.slice(0),args=args||[];for(var onceListeners=this._onceEvents&&this._onceEvents[eventName],i=0;i{"function"==typeof define&&define.amd?define("get-size/get-size",factory):"object"==typeof module&&module.exports?module.exports=factory():window.getSize=factory()})(window,function(){function getStyleSize(value){var num=parseFloat(value);return-1==value.indexOf("%")&&!isNaN(num)&&num}var logError="undefined"==typeof console?function(){}:function(message){console.error(message)},measurements=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],measurementsLength=measurements.length;function getStyle(elem){elem=getComputedStyle(elem);return elem||logError("Style returned "+elem+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),elem}var isBoxSizeOuter,isSetup=!1;function getSize(elem){if((()=>{var div,body,style;isSetup||(isSetup=!0,(div=document.createElement("div")).style.width="200px",div.style.padding="1px 2px 3px 4px",div.style.borderStyle="solid",div.style.borderWidth="1px 2px 3px 4px",div.style.boxSizing="border-box",(body=document.body||document.documentElement).appendChild(div),style=getStyle(div),isBoxSizeOuter=200==Math.round(getStyleSize(style.width)),getSize.isBoxSizeOuter=isBoxSizeOuter,body.removeChild(div))})(),(elem="string"==typeof elem?document.querySelector(elem):elem)&&"object"==typeof elem&&elem.nodeType){var style=getStyle(elem);if("none"==style.display)return(()=>{for(var size={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},i=0;i{"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",factory):"object"==typeof module&&module.exports?module.exports=factory():window.matchesSelector=factory()})(window,function(){var matchesMethod=(()=>{var ElemProto=window.Element.prototype;if(ElemProto.matches)return"matches";if(ElemProto.matchesSelector)return"matchesSelector";for(var prefixes=["webkit","moz","ms","o"],i=0;i{"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(matchesSelector){return factory(window,matchesSelector)}):"object"==typeof module&&module.exports?module.exports=factory(window,require("desandro-matches-selector")):window.fizzyUIUtils=factory(window,window.matchesSelector)})(window,function(window,matchesSelector){var utils={extend:function(a,b){for(var prop in b)a[prop]=b[prop];return a},modulo:function(num,div){return(num%div+div)%div}},arraySlice=Array.prototype.slice,console=(utils.makeArray=function(obj){return Array.isArray(obj)?obj:null==obj?[]:"object"==typeof obj&&"number"==typeof obj.length?arraySlice.call(obj):[obj]},utils.removeFrom=function(ary,obj){obj=ary.indexOf(obj);-1!=obj&&ary.splice(obj,1)},utils.getParent=function(elem,selector){for(;elem.parentNode&&elem!=document.body;)if(matchesSelector(elem=elem.parentNode,selector))return elem},utils.getQueryElement=function(elem){return"string"==typeof elem?document.querySelector(elem):elem},utils.handleEvent=function(event){var method="on"+event.type;this[method]&&this[method](event)},utils.filterFindElements=function(elems,selector){elems=utils.makeArray(elems);var ffElems=[];return elems.forEach(function(elem){if((elem=>"object"==typeof HTMLElement?elem instanceof HTMLElement:elem&&"object"==typeof elem&&null!==elem&&1===elem.nodeType&&"string"==typeof elem.nodeName)(elem))if(selector){matchesSelector(elem,selector)&&ffElems.push(elem);for(var childElems=elem.querySelectorAll(selector),i=0;i{"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],factory):"object"==typeof module&&module.exports?module.exports=factory(require("ev-emitter"),require("get-size")):(window.Outlayer={},window.Outlayer.Item=factory(window.EvEmitter,window.getSize))})(window,function(EvEmitter,getSize){var docElemStyle=document.documentElement.style,transitionProperty="string"==typeof docElemStyle.transition?"transition":"WebkitTransition",docElemStyle="string"==typeof docElemStyle.transform?"transform":"WebkitTransform",transitionEndEvent={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[transitionProperty],vendorProperties={transform:docElemStyle,transition:transitionProperty,transitionDuration:transitionProperty+"Duration",transitionProperty:transitionProperty+"Property",transitionDelay:transitionProperty+"Delay"};function Item(element,layout){element&&(this.element=element,this.layout=layout,this.position={x:0,y:0},this._create())}EvEmitter=Item.prototype=Object.create(EvEmitter.prototype);EvEmitter.constructor=Item,EvEmitter._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},EvEmitter.handleEvent=function(event){var method="on"+event.type;this[method]&&this[method](event)},EvEmitter.getSize=function(){this.size=getSize(this.element)},EvEmitter.css=function(style){var prop,elemStyle=this.element.style;for(prop in style)elemStyle[vendorProperties[prop]||prop]=style[prop]},EvEmitter.getPosition=function(){var style=getComputedStyle(this.element),isOriginLeft=this.layout._getOption("originLeft"),isOriginTop=this.layout._getOption("originTop"),xValue=style[isOriginLeft?"left":"right"],style=style[isOriginTop?"top":"bottom"],x=parseFloat(xValue),y=parseFloat(style),layoutSize=this.layout.size;-1!=xValue.indexOf("%")&&(x=x/100*layoutSize.width),-1!=style.indexOf("%")&&(y=y/100*layoutSize.height),x=isNaN(x)?0:x,y=isNaN(y)?0:y,x-=isOriginLeft?layoutSize.paddingLeft:layoutSize.paddingRight,y-=isOriginTop?layoutSize.paddingTop:layoutSize.paddingBottom,this.position.x=x,this.position.y=y},EvEmitter.layoutPosition=function(){var layoutSize=this.layout.size,style={},isOriginLeft=this.layout._getOption("originLeft"),isOriginTop=this.layout._getOption("originTop"),xResetProperty=isOriginLeft?"right":"left",x=this.position.x+layoutSize[isOriginLeft?"paddingLeft":"paddingRight"],isOriginLeft=(style[isOriginLeft?"left":"right"]=this.getXValue(x),style[xResetProperty]="",isOriginTop?"paddingTop":"paddingBottom"),x=isOriginTop?"bottom":"top",xResetProperty=this.position.y+layoutSize[isOriginLeft];style[isOriginTop?"top":"bottom"]=this.getYValue(xResetProperty),style[x]="",this.css(style),this.emitEvent("layout",[this])},EvEmitter.getXValue=function(x){var isHorizontal=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!isHorizontal?x/this.layout.size.width*100+"%":x+"px"},EvEmitter.getYValue=function(y){var isHorizontal=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&isHorizontal?y/this.layout.size.height*100+"%":y+"px"},EvEmitter._transitionTo=function(x,y){this.getPosition();var curX=this.position.x,curY=this.position.y,didNotMove=x==this.position.x&&y==this.position.y;this.setPosition(x,y),didNotMove&&!this.isTransitioning?this.layoutPosition():((didNotMove={}).transform=this.getTranslate(x-curX,y-curY),this.transition({to:didNotMove,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0}))},EvEmitter.getTranslate=function(x,y){return"translate3d("+(x=this.layout._getOption("originLeft")?x:-x)+"px, "+(y=this.layout._getOption("originTop")?y:-y)+"px, 0)"},EvEmitter.goTo=function(x,y){this.setPosition(x,y),this.layoutPosition()},EvEmitter.moveTo=EvEmitter._transitionTo,EvEmitter.setPosition=function(x,y){this.position.x=parseFloat(x),this.position.y=parseFloat(y)},EvEmitter._nonTransition=function(args){for(var prop in this.css(args.to),args.isCleaning&&this._removeStyles(args.to),args.onTransitionEnd)args.onTransitionEnd[prop].call(this)},EvEmitter.transition=function(args){if(parseFloat(this.layout.options.transitionDuration)){var prop,_transition=this._transn;for(prop in args.onTransitionEnd)_transition.onEnd[prop]=args.onTransitionEnd[prop];for(prop in args.to)_transition.ingProperties[prop]=!0,args.isCleaning&&(_transition.clean[prop]=!0);args.from&&(this.css(args.from),this.element.offsetHeight,0),this.enableTransition(args.to),this.css(args.to),this.isTransitioning=!0}else this._nonTransition(args)};var transitionProps="opacity,"+docElemStyle.replace(/([A-Z])/g,function($1){return"-"+$1.toLowerCase()}),dashedVendorProperties=(EvEmitter.enableTransition=function(){var duration;this.isTransitioning||(duration=this.layout.options.transitionDuration,this.css({transitionProperty:transitionProps,transitionDuration:duration="number"==typeof duration?duration+"ms":duration,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(transitionEndEvent,this,!1))},EvEmitter.onwebkitTransitionEnd=function(event){this.ontransitionend(event)},EvEmitter.onotransitionend=function(event){this.ontransitionend(event)},{"-webkit-transform":"transform"}),cleanTransitionStyle=(EvEmitter.ontransitionend=function(event){var _transition,propertyName;event.target===this.element&&(_transition=this._transn,propertyName=dashedVendorProperties[event.propertyName]||event.propertyName,delete _transition.ingProperties[propertyName],(obj=>{for(var prop in obj)return;return 1})(_transition.ingProperties)&&this.disableTransition(),propertyName in _transition.clean&&(this.element.style[event.propertyName]="",delete _transition.clean[propertyName]),propertyName in _transition.onEnd&&(_transition.onEnd[propertyName].call(this),delete _transition.onEnd[propertyName]),this.emitEvent("transitionEnd",[this]))},EvEmitter.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(transitionEndEvent,this,!1),this.isTransitioning=!1},EvEmitter._removeStyles=function(style){var prop,cleanStyle={};for(prop in style)cleanStyle[prop]="";this.css(cleanStyle)},{transitionProperty:"",transitionDuration:"",transitionDelay:""});return EvEmitter.removeTransitionStyles=function(){this.css(cleanTransitionStyle)},EvEmitter.stagger=function(delay){delay=isNaN(delay)?0:delay,this.staggerDelay=delay+"ms"},EvEmitter.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},EvEmitter.remove=function(){transitionProperty&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),this.hide()):this.removeElem()},EvEmitter.reveal=function(){delete this.isHidden,this.css({display:""});var options=this.layout.options,onTransitionEnd={};onTransitionEnd[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:options.hiddenStyle,to:options.visibleStyle,isCleaning:!0,onTransitionEnd:onTransitionEnd})},EvEmitter.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},EvEmitter.getHideRevealTransitionEndProperty=function(styleProperty){var prop,styleProperty=this.layout.options[styleProperty];if(styleProperty.opacity)return"opacity";for(prop in styleProperty)return prop},EvEmitter.hide=function(){this.isHidden=!0,this.css({display:""});var options=this.layout.options,onTransitionEnd={};onTransitionEnd[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:options.visibleStyle,to:options.hiddenStyle,isCleaning:!0,onTransitionEnd:onTransitionEnd})},EvEmitter.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},EvEmitter.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},Item}),((window,factory)=>{"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(EvEmitter,getSize,utils,Item){return factory(window,EvEmitter,getSize,utils,Item)}):"object"==typeof module&&module.exports?module.exports=factory(window,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):window.Outlayer=factory(window,window.EvEmitter,window.getSize,window.fizzyUIUtils,window.Outlayer.Item)})(window,function(window,EvEmitter,getSize,utils,Item){function noop(){}var console=window.console,jQuery=window.jQuery,GUID=0,instances={};function Outlayer(element,options){var queryElement=utils.getQueryElement(element);queryElement?(this.element=queryElement,jQuery&&(this.$element=jQuery(this.element)),this.options=utils.extend({},this.constructor.defaults),this.option(options),options=++GUID,this.element.outlayerGUID=options,(instances[options]=this)._create(),this._getOption("initLayout")&&this.layout()):console&&console.error("Bad element for "+this.constructor.namespace+": "+(queryElement||element))}Outlayer.namespace="outlayer",Outlayer.Item=Item,Outlayer.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var proto=Outlayer.prototype;function subclass(Parent){function SubClass(){Parent.apply(this,arguments)}return(SubClass.prototype=Object.create(Parent.prototype)).constructor=SubClass}utils.extend(proto,EvEmitter.prototype),proto.option=function(opts){utils.extend(this.options,opts)},proto._getOption=function(option){var oldOption=this.constructor.compatOptions[option];return oldOption&&void 0!==this.options[oldOption]?this.options[oldOption]:this.options[option]},Outlayer.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},proto._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),utils.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},proto.reloadItems=function(){this.items=this._itemize(this.element.children)},proto._itemize=function(elems){for(var itemElems=this._filterFindItemElements(elems),Item=this.constructor.Item,items=[],i=0;i{var num;return"number"==typeof time?time:(num=(time=time.match(/(^\d*\.?\d*)(\w*)/))&&time[1],time=time&&time[2],num.length?(num=parseFloat(num),time=msUnits[time]||1,num*time):0)})(stagger),this.stagger;this.stagger=0},proto._positionItem=function(item,x,y,isInstant,i){isInstant?item.goTo(x,y):(item.stagger(i*this.stagger),item.moveTo(x,y))},proto._postLayout=function(){this.resizeContainer()},proto.resizeContainer=function(){var size;this._getOption("resizeContainer")&&(size=this._getContainerSize())&&(this._setContainerMeasure(size.width,!0),this._setContainerMeasure(size.height,!1))},proto._getContainerSize=noop,proto._setContainerMeasure=function(measure,isWidth){var elemSize;void 0!==measure&&((elemSize=this.size).isBorderBox&&(measure+=isWidth?elemSize.paddingLeft+elemSize.paddingRight+elemSize.borderLeftWidth+elemSize.borderRightWidth:elemSize.paddingBottom+elemSize.paddingTop+elemSize.borderTopWidth+elemSize.borderBottomWidth),measure=Math.max(measure,0),this.element.style[isWidth?"width":"height"]=measure+"px")},proto._emitCompleteOnItems=function(eventName,items){var _this=this;function onComplete(){_this.dispatchEvent(eventName+"Complete",null,[items])}var doneCount,count=items.length;function tick(){++doneCount==count&&onComplete()}items&&count?(doneCount=0,items.forEach(function(item){item.once(eventName,tick)})):onComplete()},proto.dispatchEvent=function(type,event,args){var emitArgs=event?[event].concat(args):args;this.emitEvent(type,emitArgs),jQuery&&(this.$element=this.$element||jQuery(this.element),event?((emitArgs=jQuery.Event(event)).type=type,this.$element.trigger(emitArgs,args)):this.$element.trigger(type,args))},proto.ignore=function(elem){elem=this.getItem(elem);elem&&(elem.isIgnored=!0)},proto.unignore=function(elem){elem=this.getItem(elem);elem&&delete elem.isIgnored},proto.stamp=function(elems){(elems=this._find(elems))&&(this.stamps=this.stamps.concat(elems),elems.forEach(this.ignore,this))},proto.unstamp=function(elems){(elems=this._find(elems))&&elems.forEach(function(elem){utils.removeFrom(this.stamps,elem),this.unignore(elem)},this)},proto._find=function(elems){if(elems)return"string"==typeof elems&&(elems=this.element.querySelectorAll(elems)),elems=utils.makeArray(elems)},proto._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},proto._getBoundingRect=function(){var boundingRect=this.element.getBoundingClientRect(),size=this.size;this._boundingRect={left:boundingRect.left+size.paddingLeft+size.borderLeftWidth,top:boundingRect.top+size.paddingTop+size.borderTopWidth,right:boundingRect.right-(size.paddingRight+size.borderRightWidth),bottom:boundingRect.bottom-(size.paddingBottom+size.borderBottomWidth)}},proto._manageStamp=noop,proto._getElementOffset=function(elem){var boundingRect=elem.getBoundingClientRect(),thisRect=this._boundingRect,elem=getSize(elem);return{left:boundingRect.left-thisRect.left-elem.marginLeft,top:boundingRect.top-thisRect.top-elem.marginTop,right:thisRect.right-boundingRect.right-elem.marginRight,bottom:thisRect.bottom-boundingRect.bottom-elem.marginBottom}},proto.handleEvent=utils.handleEvent,proto.bindResize=function(){window.addEventListener("resize",this),this.isResizeBound=!0},proto.unbindResize=function(){window.removeEventListener("resize",this),this.isResizeBound=!1},proto.onresize=function(){this.resize()},utils.debounceMethod(Outlayer,"onresize",100),proto.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},proto.needsResizeLayout=function(){var size=getSize(this.element);return this.size&&size&&size.innerWidth!==this.size.innerWidth},proto.addItems=function(elems){elems=this._itemize(elems);return elems.length&&(this.items=this.items.concat(elems)),elems},proto.appended=function(elems){elems=this.addItems(elems);elems.length&&(this.layoutItems(elems,!0),this.reveal(elems))},proto.prepended=function(elems){var previousItems,elems=this._itemize(elems);elems.length&&(previousItems=this.items.slice(0),this.items=elems.concat(previousItems),this._resetLayout(),this._manageStamps(),this.layoutItems(elems,!0),this.reveal(elems),this.layoutItems(previousItems))},proto.reveal=function(items){var stagger;this._emitCompleteOnItems("reveal",items),items&&items.length&&(stagger=this.updateStagger(),items.forEach(function(item,i){item.stagger(i*stagger),item.reveal()}))},proto.hide=function(items){var stagger;this._emitCompleteOnItems("hide",items),items&&items.length&&(stagger=this.updateStagger(),items.forEach(function(item,i){item.stagger(i*stagger),item.hide()}))},proto.revealItemElements=function(elems){elems=this.getItems(elems);this.reveal(elems)},proto.hideItemElements=function(elems){elems=this.getItems(elems);this.hide(elems)},proto.getItem=function(elem){for(var i=0;i{"function"==typeof define&&define.amd?define("isotope-layout/js/item",["outlayer/outlayer"],factory):"object"==typeof module&&module.exports?module.exports=factory(require("outlayer")):(window.Isotope=window.Isotope||{},window.Isotope.Item=factory(window.Outlayer))})(window,function(Outlayer){function Item(){Outlayer.Item.apply(this,arguments)}var proto=Item.prototype=Object.create(Outlayer.Item.prototype),_create=proto._create,_setPosition=(proto._create=function(){this.id=this.layout.itemGUID++,_create.call(this),this.sortData={}},proto.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var key,getSortData=this.layout.options.getSortData,sorters=this.layout._sorters;for(key in getSortData){var sorter=sorters[key];this.sortData[key]=sorter(this.element,this)}}},proto.setPosition),_destroy=(proto.setPosition=function(){if(_setPosition.apply(this,arguments),this.layout.options.imgSizes){this.imageElements||(this.imageElements=this.element.querySelectorAll('img[sizes="auto"]'));for(var images=this.imageElements,i=0,len=images.length;i!==len;i++){var img=images[i];img.setAttribute("sizes",img.offsetWidth+"px")}}!this._lazyloadStarted&&this.layout.options.lazyload&&(this._lazyloadStarted=!0,this._lazyload())},proto._lazyload=function(){this.layout.dispatchEvent("beforeItemLoading",null,[this]);for(var imagesLoadedInstance,images=this.element.querySelectorAll("img[data-src]"),i=0,len=images.length;i!==len;i++){var img=images[i];img.setAttribute("src",img.getAttribute("data-src")),img.removeAttribute("data-src"),img.getAttribute("data-srcset")&&(img.setAttribute("srcset",img.getAttribute("data-srcset")),img.removeAttribute("data-srcset"))}this.layout.options.useImagesLoaded&&window.imagesLoaded&&(imagesLoadedInstance=window.imagesLoaded(this.element)),this.layout.dispatchEvent("itemLoading",null,[this,imagesLoadedInstance])},proto.destroy);return proto.destroy=function(){_destroy.apply(this,arguments),this.css({display:""})},Item}),((window,factory)=>{"function"==typeof define&&define.amd?define("isotope-layout/js/layout-mode",["get-size/get-size","outlayer/outlayer"],factory):"object"==typeof module&&module.exports?module.exports=factory(require("get-size"),require("outlayer")):(window.Isotope=window.Isotope||{},window.Isotope.LayoutMode=factory(window.getSize,window.Outlayer))})(window,function(getSize,Outlayer){function LayoutMode(isotope){(this.isotope=isotope)&&(this.options=isotope.options[this.namespace],this.element=isotope.element,this.items=isotope.filteredItems,this.size=isotope.size)}var proto=LayoutMode.prototype;return["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"].forEach(function(methodName){proto[methodName]=function(){return Outlayer.prototype[methodName].apply(this.isotope,arguments)}}),proto.needsVerticalResizeLayout=function(){var size=getSize(this.isotope.element);return this.isotope.size&&size&&size.innerHeight!=this.isotope.size.innerHeight},proto._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},proto.getColumnWidth=function(){this.getSegmentSize("column","Width")},proto.getRowHeight=function(){this.getSegmentSize("row","Height")},proto.getSegmentSize=function(segment,size){var firstItemSize,segment=segment+size,outerSize="outer"+size;this._getMeasurement(segment,outerSize),this[segment]||(firstItemSize=this.getFirstItemSize(),this[segment]=firstItemSize&&firstItemSize[outerSize]||this.isotope.size["inner"+size])},proto.getFirstItemSize=function(){var firstItem=this.isotope.filteredItems[0];return firstItem&&firstItem.element&&getSize(firstItem.element)},proto.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},proto.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},LayoutMode.modes={},LayoutMode.create=function(namespace,options){function Mode(){LayoutMode.apply(this,arguments)}return(Mode.prototype=Object.create(proto)).constructor=Mode,options&&(Mode.options=options),LayoutMode.modes[Mode.prototype.namespace=namespace]=Mode},LayoutMode}),((window,factory)=>{"function"==typeof define&&define.amd?define("masonry-layout/masonry",["outlayer/outlayer","get-size/get-size"],factory):"object"==typeof module&&module.exports?module.exports=factory(require("outlayer"),require("get-size")):window.Masonry=factory(window.Outlayer,window.getSize)})(window,function(Outlayer,getSize){var Outlayer=Outlayer.create("masonry"),proto=(Outlayer.compatOptions.fitWidth="isFitWidth",Outlayer.prototype);return proto._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var i=0;ithis.cols?0:col,item=item.size.outerWidth&&item.size.outerHeight;return this.horizontalColIndex=item?col+colSpan:this.horizontalColIndex,{col:col,y:this._getColGroupY(col,colSpan)}},proto._manageStamp=function(stamp){var stampSize=getSize(stamp),stamp=this._getElementOffset(stamp),firstX=this._getOption("originLeft")?stamp.left:stamp.right,lastX=firstX+stampSize.outerWidth,firstX=Math.floor(firstX/this.columnWidth),firstX=Math.max(0,firstX),lastCol=Math.floor(lastX/this.columnWidth);lastCol-=lastX%this.columnWidth?0:1;for(var lastCol=Math.min(this.cols-1,lastCol),stampMaxY=(this._getOption("originTop")?stamp.top:stamp.bottom)+stampSize.outerHeight,i=firstX;i<=lastCol;i++)this.colYs[i]=Math.max(stampMaxY,this.colYs[i])},proto._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var size={height:this.maxY};return this._getOption("fitWidth")&&(size.width=this._getContainerFitWidth()),size},proto._getContainerFitWidth=function(){for(var unusedCols=0,i=this.cols;--i&&0===this.colYs[i];)unusedCols++;return(this.cols-unusedCols)*this.columnWidth-this.gutter},proto.needsResizeLayout=function(){var previousWidth=this.containerWidth;return this.getContainerWidth(),previousWidth!=this.containerWidth},Outlayer}),((window,factory)=>{"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/masonry",["../layout-mode","masonry-layout/masonry"],factory):"object"==typeof module&&module.exports?module.exports=factory(require("../layout-mode")):factory(window.Isotope.LayoutMode,window.Masonry)})(window,function(LayoutMode,Masonry){var method,LayoutMode=LayoutMode.create("masonry"),proto=LayoutMode.prototype,keepModeMethods={_getElementOffset:!0,layout:!0,_getMeasurement:!0};for(method in Masonry.prototype)keepModeMethods[method]||(proto[method]=Masonry.prototype[method]);var measureColumns=proto.measureColumns,_getOption=(proto.measureColumns=function(){this.items=this.isotope.filteredItems,measureColumns.call(this)},proto._getOption);return proto._getOption=function(option){return"fitWidth"==option?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:_getOption.apply(this.isotope,arguments)},LayoutMode}),((window,factory)=>{"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/justify-rows",["../layout-mode"],factory):"object"==typeof exports?module.exports=factory(require("../layout-mode")):factory(window.Isotope.LayoutMode)})(window,function(LayoutMode){var LayoutMode=LayoutMode.create("justifyRows"),proto=LayoutMode.prototype;return proto._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},proto._getRowHeight=function(rowItems,containerWidth){containerWidth-=rowItems.length*this.gutter;for(var totalHeight=0,i=0,len=rowItems.length;i!==len;i++){var itemEle=rowItems[i].element;totalHeight+=(parseInt(itemEle.getAttribute("data-width"),10)||rowItems[i].size.outerWidth)/(parseInt(itemEle.getAttribute("data-height"),10)||rowItems[i].size.outerHeight)}return containerWidth/totalHeight},proto._resizeItems=function(rowItems,rowHeight){for(var i=0,len=rowItems.length;i!==len;i++){var itemEle=rowItems[i].element,w=parseInt(itemEle.getAttribute("data-width"),10)||rowItems[i].size.outerWidth,h=parseInt(itemEle.getAttribute("data-height"),10)||rowItems[i].size.outerHeight;itemEle.style.width=rowHeight*w/h+"px",itemEle.style.height=rowHeight+"px"}},proto._beforeLayout=function(){var row,rowHeight,maxHeight=this.options.maxHeight||200,containerWidth=this.isotope.size.innerWidth+this.gutter,checkItems=this.isotope.filteredItems.slice(0);newRow:for(;0containerWidth&&(this.x=0,this.y=this.maxY),{x:this.x,y:this.y});return this.maxY=Math.max(this.maxY,this.y+item.size.outerHeight),this.x+=itemWidth,containerWidth},proto._getContainerSize=function(){return{height:this.maxY}},LayoutMode}),((window,factory)=>{"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/fit-rows",["../layout-mode"],factory):"object"==typeof exports?module.exports=factory(require("../layout-mode")):factory(window.Isotope.LayoutMode)})(window,function(LayoutMode){var LayoutMode=LayoutMode.create("fitRows"),proto=LayoutMode.prototype;return proto._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},proto._getItemLayoutPosition=function(item){item.getSize();var itemWidth=item.size.outerWidth+this.gutter,containerWidth=this.isotope.size.innerWidth+this.gutter,containerWidth=(0!==this.x&&itemWidth+this.x>containerWidth&&(this.x=0,this.y=this.maxY),{x:this.x,y:this.y});return this.maxY=Math.max(this.maxY,this.y+item.size.outerHeight),this.x+=itemWidth,containerWidth},proto._getContainerSize=function(){return{height:this.maxY}},LayoutMode}),((window,factory)=>{"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/vertical",["../layout-mode"],factory):"object"==typeof module&&module.exports?module.exports=factory(require("../layout-mode")):factory(window.Isotope.LayoutMode)})(window,function(LayoutMode){var LayoutMode=LayoutMode.create("vertical",{horizontalAlignment:0}),proto=LayoutMode.prototype;return proto._resetLayout=function(){this.y=0},proto._getItemLayoutPosition=function(item){item.getSize();var x=(this.isotope.size.innerWidth-item.size.outerWidth)*this.options.horizontalAlignment,y=this.y;return this.y+=item.size.outerHeight,{x:x,y:y}},proto._getContainerSize=function(){return{height:this.y}},LayoutMode}),((window,factory)=>{"function"==typeof define&&define.amd?define("isotope-layout/js/isotope",["outlayer/outlayer","get-size/get-size","desandro-matches-selector/matches-selector","fizzy-ui-utils/utils","./item","./layout-mode","./layout-modes/masonry","./layout-modes/justify-rows","./layout-modes/fit-rows","./layout-modes/vertical"],function(Outlayer,getSize,matchesSelector,utils,Item,LayoutMode){return factory(window,Outlayer,getSize,matchesSelector,utils,Item,LayoutMode)}):"object"==typeof module&&module.exports?module.exports=factory(window,require("outlayer"),require("get-size"),require("desandro-matches-selector"),require("fizzy-ui-utils"),require("./item"),require("./layout-mode"),require("./layout-modes/masonry"),require("./layout-modes/fit-rows"),require("./layout-modes/justify-rows"),require("./layout-modes/vertical")):window.Isotope=factory(window,window.Outlayer,window.getSize,window.matchesSelector,window.fizzyUIUtils,window.Isotope.Item,window.Isotope.LayoutMode)})(window,function(window,Outlayer,getSize,matchesSelector,utils,Item,LayoutMode){var jQuery=window.jQuery,trim=String.prototype.trim?function(str){return str.trim()}:function(str){return str.replace(/^\s+|\s+$/g,"")},Isotope=Outlayer.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0,pagination:!1,inPage:20,page:1,useImagesLoaded:!0,lazyload:!1,resizeTransition:!0}),window=(Isotope.Item=Item,Isotope.LayoutMode=LayoutMode,Isotope.prototype),_layoutItems=(window._create=function(){for(var name in this.itemGUID=0,this._sorters={},this._getSorters(),Outlayer.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"],LayoutMode.modes)this._initLayoutMode(name)},window.reloadItems=function(){this.itemGUID=0,Outlayer.prototype.reloadItems.call(this)},window._itemize=function(){for(var items=Outlayer.prototype._itemize.apply(this,arguments),i=0;iattr?function(elem){return elem.getAttribute(attr)}:function(elem){elem=elem.querySelector(query);return elem&&elem.textContent})(attrMatch&&attrMatch[1],query),sorter=(parser=Isotope.sortDataParsers[args[1]])?function(elem){return elem&&parser(getValue(elem))}:function(elem){return elem&&getValue(elem)}),sorter});window._getSorters=function(){var key,getSortData=this.options.getSortData;for(key in getSortData){var sorter=getSortData[key];this._sorters[key]=mungeSorter(sorter)}},window._updateItemsSortData=function(items){var len=items&&items.length;if(len)for(var i=0;ifunction(itemA,itemB){for(var i=0;i{"function"==typeof define&&define.amd?define("packery/js/rect",factory):"object"==typeof module&&module.exports?module.exports=factory():(window.Packery=window.Packery||{},window.Packery.Rect=factory())})(window,function(){function Rect(props){for(var prop in Rect.defaults)this[prop]=Rect.defaults[prop];for(prop in props)this[prop]=props[prop]}Rect.defaults={x:0,y:0,width:0,height:0};var proto=Rect.prototype;return proto.contains=function(rect){var otherWidth=rect.width||0;return this.x<=rect.x&&this.y<=rect.y&&this.x+this.width>=rect.x+otherWidth&&this.y+this.height>=rect.y+(rect.height||0)},proto.overlaps=function(rect){var thisRight=this.x+this.width,thisBottom=this.y+this.height,rectRight=rect.x+rect.width;return this.xrect.x&&this.yrect.y},proto.getMaximalFreeRects=function(rect){var freeRects,freeRect,thisRight,thisBottom,rectRight,rectBottom;return!!this.overlaps(rect)&&(freeRects=[],thisRight=this.x+this.width,thisBottom=this.y+this.height,rectRight=rect.x+rect.width,rectBottom=rect.y+rect.height,this.y=rect.width&&this.height>=rect.height},Rect}),((window,factory)=>{"function"==typeof define&&define.amd?define("packery/js/packer",["./rect"],factory):"object"==typeof module&&module.exports?module.exports=factory(require("./rect")):(window=window.Packery=window.Packery||{}).Packer=factory(window.Rect)})(window,function(Rect){function Packer(width,height,sortDirection){this.width=width||0,this.height=height||0,this.sortDirection=sortDirection||"downwardLeftToRight",this.reset()}var proto=Packer.prototype,sorters=(proto.reset=function(){this.spaces=[];var initialSpace=new Rect({x:0,y:0,width:this.width,height:this.height});this.spaces.push(initialSpace),this.sorter=sorters[this.sortDirection]||sorters.downwardLeftToRight},proto.pack=function(rect){for(var i=0;i=rect.x+rect.width&&space.height>=rect.height-.01){rect.y=space.y,this.placed(rect);break}}},proto.rowPack=function(rect){for(var i=0;i=rect.y+rect.height&&space.width>=rect.width-.01){rect.x=space.x,this.placed(rect);break}}},proto.placeInSpace=function(rect,space){rect.x=space.x,rect.y=space.y,this.placed(rect)},proto.placed=function(rect){for(var revisedSpaces=[],i=0;i{"function"==typeof define&&define.amd?define("packery/js/item",["outlayer/outlayer","./rect"],factory):"object"==typeof module&&module.exports?module.exports=factory(require("outlayer"),require("./rect")):window.Packery.Item=factory(window.Outlayer,window.Packery.Rect)})(window,function(Outlayer,Rect){function Item(){Outlayer.Item.apply(this,arguments)}var transformProperty="string"==typeof document.documentElement.style.transform?"transform":"WebkitTransform",proto=Item.prototype=Object.create(Outlayer.Item.prototype),__create=proto._create,_moveTo=(proto._create=function(){__create.call(this),this.rect=new Rect},proto.moveTo);return proto.moveTo=function(x,y){var dx=Math.abs(this.position.x-x),dy=Math.abs(this.position.y-y);this.layout.dragItemCount&&!this.isPlacing&&!this.isTransitioning&&dx<1&&dy<1?this.goTo(x,y):_moveTo.apply(this,arguments)},proto.enablePlacing=function(){this.removeTransitionStyles(),this.isTransitioning&&transformProperty&&(this.element.style[transformProperty]="none"),this.isTransitioning=!1,this.getSize(),this.layout._setRectSize(this.element,this.rect),this.isPlacing=!0},proto.disablePlacing=function(){this.isPlacing=!1},proto.removeElem=function(){this.element.parentNode.removeChild(this.element),this.layout.packer.addSpace(this.rect),this.emitEvent("remove",[this])},proto.showDropPlaceholder=function(){var dropPlaceholder=this.dropPlaceholder;dropPlaceholder||((dropPlaceholder=this.dropPlaceholder=document.createElement("div")).className="packery-drop-placeholder",dropPlaceholder.style.position="absolute"),dropPlaceholder.style.width=this.size.width+"px",dropPlaceholder.style.height=this.size.height+"px",this.positionDropPlaceholder(),this.layout.element.appendChild(dropPlaceholder)},proto.positionDropPlaceholder=function(){this.dropPlaceholder.style[transformProperty]="translate("+this.rect.x+"px, "+this.rect.y+"px)"},proto.hideDropPlaceholder=function(){this.layout.element.removeChild(this.dropPlaceholder)},Item}),((window,factory)=>{"function"==typeof define&&define.amd?define("packery/js/packery",["get-size/get-size","outlayer/outlayer","./rect","./packer","./item"],factory):"object"==typeof module&&module.exports?module.exports=factory(require("get-size"),require("outlayer"),require("./rect"),require("./packer"),require("./item")):window.Packery=factory(window.getSize,window.Outlayer,window.Packery.Rect,window.Packery.Packer,window.Packery.Item)})(window,function(getSize,Outlayer,Rect,Packer,Item){Rect.prototype.canFit=function(rect){return this.width>=rect.width-1&&this.height>=rect.height-1};var Packery=Outlayer.create("packery"),Item=(Packery.Item=Item,Packery.prototype);function verticalSorter(a,b){return a.position.y-b.position.y||a.position.x-b.position.x}function horizontalSorter(a,b){return a.position.x-b.position.x||a.position.y-b.position.y}Item._create=function(){Outlayer.prototype._create.call(this),this.packer=new Packer,this.shiftPacker=new Packer,this.isEnabled=!0,this.dragItemCount=0;var _this=this;this.handleDraggabilly={dragStart:function(){_this.itemDragStart(this.element)},dragMove:function(){_this.itemDragMove(this.element,this.position.x,this.position.y)},dragEnd:function(){_this.itemDragEnd(this.element)}},this.handleUIDraggable={start:function(event,ui){ui&&_this.itemDragStart(event.currentTarget)},drag:function(event,ui){ui&&_this.itemDragMove(event.currentTarget,ui.position.left,ui.position.top)},stop:function(event,ui){ui&&_this.itemDragEnd(event.currentTarget)}}},Item._resetLayout=function(){var width,height,sortDirection;this.getSize(),this._getMeasurements(),sortDirection=this._getOption("horizontal")?(width=1/0,height=this.size.innerHeight+this.gutter,"rightwardTopToBottom"):(width=this.size.innerWidth+this.gutter,height=1/0,"downwardLeftToRight"),this.packer.width=this.shiftPacker.width=width,this.packer.height=this.shiftPacker.height=height,this.packer.sortDirection=this.shiftPacker.sortDirection=sortDirection,this.packer.reset(),this.maxY=0,this.maxX=0},Item._getMeasurements=function(){this._getMeasurement("columnWidth","width"),this._getMeasurement("rowHeight","height"),this._getMeasurement("gutter","width")},Item._getItemLayoutPosition=function(item){var packMethod;return this._setRectSize(item.element,item.rect),this.isShifting||0{"function"==typeof define&&define.amd?define(["isotope-layout/js/layout-mode","packery/js/packery"],factory):"object"==typeof module&&module.exports?module.exports=factory(require("isotope-layout/js/layout-mode"),require("packery")):factory(window.Isotope.LayoutMode,window.Packery)})(window,function(LayoutMode,Packery){var method,LayoutMode=LayoutMode.create("packery"),proto=LayoutMode.prototype,keepModeMethods={_getElementOffset:!0,_getMeasurement:!0};for(method in Packery.prototype)keepModeMethods[method]||(proto[method]=Packery.prototype[method]);var _resetLayout=proto._resetLayout,_getItemLayoutPosition=(proto._resetLayout=function(){this.packer=this.packer||new Packery.Packer,this.shiftPacker=this.shiftPacker||new Packery.Packer,_resetLayout.apply(this,arguments)},proto._getItemLayoutPosition),_needsResizeLayout=(proto._getItemLayoutPosition=function(item){return item.rect=item.rect||new Packery.Rect,_getItemLayoutPosition.call(this,item)},proto.needsResizeLayout),_getOption=(proto.needsResizeLayout=function(){return this._getOption("horizontal")?this.needsVerticalResizeLayout():_needsResizeLayout.call(this)},proto._getOption);return proto._getOption=function(option){return"horizontal"==option?void 0!==this.options.isHorizontal?this.options.isHorizontal:this.options.horizontal:_getOption.apply(this.isotope,arguments)},LayoutMode}),((root,factory)=>{"function"==typeof define&&define.amd?define(factory):"object"==typeof exports?module.exports=factory():root.PhotoSwipe=factory()})(this,function(){return function(template,UiClass,items,options){function _registerModule(name,module){framework.extend(self,module.publicMethods),_modules.push(name)}function _getLoopedId(index){var numSlides=_getNumItems();return numSlides-1destPanBounds.min[axis]?destPanOffset[axis]=destPanBounds.min[axis]:destPanOffset[axis]=DIRECTION_CHECK_OFFSET&&(_direction=0self.currItem.fitRatio&&_completePanGesture(_releaseAnimData))}}var _isOpen,_isDestroying,_closedByScroll,_currentItemIndex,_containerStyle,_containerShiftIndex,_upMoveEvents,_downEvents,_globalEventHandlers,_currZoomLevel,_startZoomLevel,_translatePrefix,_translateSufix,_updateSizeInterval,_itemsNeedUpdate,_itemHolders,_prevItemIndex,_dragStartEvent,_dragMoveEvent,_dragEndEvent,_dragCancelEvent,_transformKey,_pointerEventEnabled,_likelyTouchDevice,_requestAF,_cancelAF,_initalClassName,_initalWindowScrollY,_oldIE,_currentWindowScrollY,_features,_orientationChangeTimeout,_gestureStartTime,_gestureCheckSpeedTime,_releaseAnimData,_isZoomingIn,_verticalDragInitiated,_oldAndroidTouchEndTimeout,_isDragging,_isMultitouch,_zoomStarted,_moved,_dragAnimFrame,_mainScrollShifted,_currentPoints,_isZooming,_startPointsDistance,_currPanBounds,_currZoomElementStyle,_mainScrollAnimating,_direction,_isFirstMove,_opacityChanged,_bgOpacity,_wasOverInitialZoom,_tempCounter,framework={features:null,bind:function(target,type,listener,unbind){var methodName=(unbind?"remove":"add")+"EventListener";type=type.split(" ");for(var i=0;iself.currItem.fitRatio?_renderMaxResolution||(_setImageSize(self.currItem,!1,!0),_renderMaxResolution=!0):_renderMaxResolution&&(_setImageSize(self.currItem),_renderMaxResolution=!1)),_applyZoomTransform(_currZoomElementStyle,_panOffset.x,_panOffset.y,_currZoomLevel))},_applyZoomPanToItem=function(item){item.container&&_applyZoomTransform(item.container.style,item.initialPosition.x,item.initialPosition.y,item.initialZoomLevel,item)},_setTranslateX=function(x,elStyle){elStyle[_transformKey]=_translatePrefix+x+"px, 0px"+_translateSufix},_moveMainScroll=function(x,dragging){var delta;!_options.loop&&dragging&&(dragging=_currentItemIndex+(_slideSize.x*_currPositionIndex-x)/_slideSize.x,delta=Math.round(x-_mainScrollPos.x),dragging<0&&0=_getNumItems()-1&&delta<0)&&(x=_mainScrollPos.x+delta*_options.mainScrollEndFriction),_mainScrollPos.x=x,_setTranslateX(x,_containerStyle)},_calculatePanOffset=function(axis,zoomLevel){var m=_midZoomPoint[axis]-_offset[axis];return _startPanOffset[axis]+_currPanDist[axis]+m-zoomLevel/_startZoomLevel*m},_equalizePoints=function(p1,p2){p1.x=p2.x,p1.y=p2.y,p2.id&&(p1.id=p2.id)},_roundPoint=function(p){p.x=Math.round(p.x),p.y=Math.round(p.y)},_mouseMoveTimeout=null,_onFirstMouseMove=function(){_mouseMoveTimeout&&(framework.unbind(document,"mousemove",_onFirstMouseMove),framework.addClass(template,"pswp--has_mouse"),_options.mouseUsed=!0,_shout("mouseUsed")),_mouseMoveTimeout=setTimeout(function(){_mouseMoveTimeout=null},100)},_calculatePanBounds=function(zoomLevel,update){zoomLevel=_calculateItemSize(self.currItem,_viewportSize,zoomLevel);return update&&(_currPanBounds=zoomLevel),zoomLevel},_getMinZoomLevel=function(item){return(item=item||self.currItem).initialZoomLevel},_getMaxZoomLevel=function(item){return 0<(item=item||self.currItem).w?_options.maxSpreadZoom:1},_animations={},_numAnimations=0,_stopAnimation=function(name){_animations[name]&&(_animations[name].raf&&_cancelAF(_animations[name].raf),_numAnimations--,delete _animations[name])},_registerStartAnimation=function(name){_animations[name]&&_stopAnimation(name),_animations[name]||(_numAnimations++,_animations[name]={})},_stopAllAnimations=function(){for(var prop in _animations)_animations.hasOwnProperty(prop)&&_stopAnimation(prop)},_animateProp=function(name,b,endProp,d,easingFn,onUpdate,onComplete){function animloop(){_animations[name]&&(t=_getCurrentTime()-startAnimTime,d<=t?(_stopAnimation(name),onUpdate(endProp),onComplete&&onComplete()):(onUpdate((endProp-b)*easingFn(t/d)+b),_animations[name].raf=_requestAF(animloop)))}var t,startAnimTime=_getCurrentTime();_registerStartAnimation(name);animloop()},options={shout:_shout,listen:_listen,viewportSize:_viewportSize,options:_options,isMainScrollAnimating:function(){return _mainScrollAnimating},getZoomLevel:function(){return _currZoomLevel},getCurrentIndex:function(){return _currentItemIndex},isDragging:function(){return _isDragging},isZooming:function(){return _isZooming},setScrollOffset:function(x,y){_offset.x=x,_currentWindowScrollY=_offset.y=y,_shout("updateScrollOffset",_offset)},applyZoomPan:function(zoomLevel,panX,panY,allowRenderResolution){_panOffset.x=panX,_panOffset.y=panY,_currZoomLevel=zoomLevel,_applyCurrentZoomPan(allowRenderResolution)},init:function(){if(!_isOpen&&!_isDestroying){self.framework=framework,self.template=template,self.bg=framework.getChildByClass(template,"pswp__bg"),_initalClassName=template.className,_isOpen=!0,_features=framework.detectFeatures(),_requestAF=_features.raf,_cancelAF=_features.caf,_transformKey=_features.transform,_oldIE=_features.oldIE,self.scrollWrap=framework.getChildByClass(template,"pswp__scroll-wrap"),self.container=framework.getChildByClass(self.scrollWrap,"pswp__container"),_containerStyle=self.container.style,self.itemHolders=_itemHolders=[{el:self.container.children[0],wrap:0,index:-1},{el:self.container.children[1],wrap:0,index:-1},{el:self.container.children[2],wrap:0,index:-1}],_itemHolders[0].el.style.display=_itemHolders[2].el.style.display="none",_transformKey?(allow3dTransform=_features.perspective&&!_likelyTouchDevice,_translatePrefix="translate"+(allow3dTransform?"3d(":"("),_translateSufix=_features.perspective?", 0px)":")"):(_transformKey="left",framework.addClass(template,"pswp--ie"),_setTranslateX=function(x,elStyle){elStyle.left=x+"px"},_applyZoomPanToItem=function(item){var zoomRatio=1=_getNumItems())&&(_currentItemIndex=0),self.currItem=_getItemAt(_currentItemIndex),(_features.isOldIOSPhone||_features.isOldAndroid)&&(_isFixedPosition=!1),template.setAttribute("aria-hidden","false"),_options.modal&&(_isFixedPosition?template.style.position="fixed":(template.style.position="absolute",template.style.top=framework.getScrollY()+"px")),void 0===_currentWindowScrollY&&(_shout("initialLayout"),_currentWindowScrollY=_initalWindowScrollY=framework.getScrollY());var rootClasses="pswp--open ";for(_options.mainClass&&(rootClasses+=_options.mainClass+" "),_options.showHideOpacity&&(rootClasses+="pswp--animate_opacity "),rootClasses=(rootClasses=(rootClasses+=_likelyTouchDevice?"pswp--touch":"pswp--notouch")+(_features.animationName?" pswp--css_animation":""))+(_features.svg?" pswp--svg":""),framework.addClass(template,rootClasses),self.updateSize(),_containerShiftIndex=-1,_indexDiff=null,i=0;i<3;i++)_setTranslateX((i+_containerShiftIndex)*_slideSize.x,_itemHolders[i].el.style);_oldIE||framework.bind(self.scrollWrap,_downEvents,self),_listen("initialZoomInEnd",function(){self.setContent(_itemHolders[0],_currentItemIndex-1),self.setContent(_itemHolders[2],_currentItemIndex+1),_itemHolders[0].el.style.display=_itemHolders[2].el.style.display="block",_options.focus&&template.focus(),framework.bind(document,"keydown",self),_features.transform&&framework.bind(self.scrollWrap,"click",self),_options.mouseUsed||framework.bind(document,"mousemove",_onFirstMouseMove),framework.bind(window,"resize scroll orientationchange",self),_shout("bindEvents")}),self.setContent(_itemHolders[1],_currentItemIndex),self.updateCurrItem(),_shout("afterInit"),_isFixedPosition||(_updateSizeInterval=setInterval(function(){_numAnimations||_isDragging||_isZooming||_currZoomLevel!==self.currItem.initialZoomLevel||self.updateSize()},1e3)),framework.addClass(template,"pswp--visible")}},close:function(){_isOpen&&(_isDestroying=!(_isOpen=!1),_shout("close"),framework.unbind(window,"resize scroll orientationchange",self),framework.unbind(window,"scroll",_globalEventHandlers.scroll),framework.unbind(document,"keydown",self),framework.unbind(document,"mousemove",_onFirstMouseMove),_features.transform&&framework.unbind(self.scrollWrap,"click",self),_isDragging&&framework.unbind(window,_upMoveEvents,self),clearTimeout(_orientationChangeTimeout),_shout("unbindEvents"),_showOrHide(self.currItem,null,!0,self.destroy))},destroy:function(){_shout("destroy"),_showOrHideTimeout&&clearTimeout(_showOrHideTimeout),template.setAttribute("aria-hidden","true"),template.className=_initalClassName,_updateSizeInterval&&clearInterval(_updateSizeInterval),framework.unbind(self.scrollWrap,_downEvents,self),framework.unbind(window,"scroll",self),_stopDragUpdateLoop(),_stopAllAnimations(),_listeners=null},panTo:function(x,y,force){force||(x>_currPanBounds.min.x?x=_currPanBounds.min.x:x<_currPanBounds.max.x&&(x=_currPanBounds.max.x),y>_currPanBounds.min.y?y=_currPanBounds.min.y:y<_currPanBounds.max.y&&(y=_currPanBounds.max.y)),_panOffset.x=x,_panOffset.y=y,_applyCurrentZoomPan()},handleEvent:function(e){e=e||window.event,_globalEventHandlers[e.type]&&_globalEventHandlers[e.type](e)},goTo:function(index){var diff=(index=_getLoopedId(index))-_currentItemIndex;_indexDiff=diff,_currentItemIndex=index,self.currItem=_getItemAt(_currentItemIndex),_currPositionIndex-=diff,_moveMainScroll(_slideSize.x*_currPositionIndex),_stopAllAnimations(),_mainScrollAnimating=!1,self.updateCurrItem()},next:function(){self.goTo(_currentItemIndex+1)},prev:function(){self.goTo(_currentItemIndex-1)},updateCurrZoomItem:function(emulateSetContent){var zoomElement;emulateSetContent&&_shout("beforeChange",0),_currZoomElementStyle=_itemHolders[1].el.children.length&&(zoomElement=_itemHolders[1].el.children[0],framework.hasClass(zoomElement,"pswp__zoom-wrap"))?zoomElement.style:null,_currPanBounds=self.currItem.bounds,_startZoomLevel=_currZoomLevel=self.currItem.initialZoomLevel,_panOffset.x=_currPanBounds.center.x,_panOffset.y=_currPanBounds.center.y,emulateSetContent&&_shout("afterChange")},invalidateCurrItems:function(){_itemsNeedUpdate=!0;for(var i=0;i<3;i++)_itemHolders[i].item&&(_itemHolders[i].item.needsUpdate=!0)},updateCurrItem:function(beforeAnimation){if(0!==_indexDiff){var tempHolder,diffAbs=Math.abs(_indexDiff);if(!(beforeAnimation&&diffAbs<2)){self.currItem=_getItemAt(_currentItemIndex),_renderMaxResolution=!1,_shout("beforeChange",_indexDiff),3<=diffAbs&&(_containerShiftIndex+=_indexDiff+(0<_indexDiff?-3:3),diffAbs=3);for(var i=0;i_currPanBounds.min[axis]||newOffset<_currPanBounds.max[axis]?_options.panEndFriction:1,newOffset=_panOffset[axis]+delta[axis]*panFriction;if((_options.allowPanToNext||_currZoomLevel===self.currItem.initialZoomLevel)&&(_currZoomElementStyle?"h"!==_direction||"x"!==axis||_zoomStarted||(dir?(newOffset>_currPanBounds.min[axis]&&(panFriction=_options.panEndFriction,_currPanBounds.min[axis],startOverDiff=_currPanBounds.min[axis]-_startPanOffset[axis]),(startOverDiff<=0||mainScrollDiff<0)&&1<_getNumItems()?(newMainScrollPos=newMainScrollPosition,mainScrollDiff<0&&newMainScrollPosition>_startMainScrollPos.x&&(newMainScrollPos=_startMainScrollPos.x)):_currPanBounds.min.x!==_currPanBounds.max.x&&(newPanPos=newOffset)):(newOffset<_currPanBounds.max[axis]&&(panFriction=_options.panEndFriction,_currPanBounds.max[axis],startOverDiff=_startPanOffset[axis]-_currPanBounds.max[axis]),(startOverDiff<=0||0self.currItem.fitRatio&&(_panOffset[axis]+=delta[axis]*panFriction)},_renderMovement=function(){if(_currentPoints){var zoomLevel,zoomFriction,minZoomLevel,maxZoomLevel,percent,numPoints=_currentPoints.length;if(0!==numPoints)if(_equalizePoints(p,_currentPoints[0]),delta.x=p.x-_currPoint.x,delta.y=p.y-_currPoint.y,_isZooming&&1self.currItem.initialZoomLevel+self.currItem.initialZoomLevel/15&&(_wasOverInitialZoom=!0),zoomFriction=1,minZoomLevel=_getMinZoomLevel(),maxZoomLevel=_getMaxZoomLevel(),zoomLevel=DIRECTION_CHECK_OFFSET&&(delta.x-=_currentPoints[0].x-_startPoint.x),Math.abs(delta.y)>=DIRECTION_CHECK_OFFSET)&&(delta.y-=_currentPoints[0].y-_startPoint.y),_currPoint.x=p.x,_currPoint.y=p.y,0!==delta.x||0!==delta.y)){if("v"===_direction&&_options.closeOnVerticalDrag)if(!_canPan())return _currPanDist.y+=delta.y,_panOffset.y+=delta.y,percent=_calculateVerticalDragOpacityRatio(),_verticalDragInitiated=!0,_shout("onVerticalDrag",percent),_applyBgOpacity(percent),void _applyCurrentZoomPan();_pushPosPoint(_getCurrentTime(),p.x,p.y),_moved=!0,_currPanBounds=self.currItem.bounds,_panOrMoveMainScroll("x",delta)||(_panOrMoveMainScroll("y",delta),_roundPoint(_panOffset),_applyCurrentZoomPan())}}},_initDragReleaseAnimationData=function(){var lastFlickDuration,tempReleasePos,s={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{},backAnimDestination:{},backAnimStarted:{},calculateSwipeSpeed:function(axis){tempReleasePos=(1<_posPoints.length?(lastFlickDuration=_getCurrentTime()-_gestureCheckSpeedTime+50,_posPoints[_posPoints.length-2]):(lastFlickDuration=_getCurrentTime()-_gestureStartTime,_startPoint))[axis],s.lastFlickOffset[axis]=_currPoint[axis]-tempReleasePos,s.lastFlickDist[axis]=Math.abs(s.lastFlickOffset[axis]),20_currPanBounds.min[axis]?s.backAnimDestination[axis]=_currPanBounds.min[axis]:_panOffset[axis]<_currPanBounds.max[axis]&&(s.backAnimDestination[axis]=_currPanBounds.max[axis]),void 0!==s.backAnimDestination[axis]&&(s.slowDownRatio[axis]=.7,s.slowDownRatioReverse[axis]=1-s.slowDownRatio[axis],s.speedDecelerationRatioAbs[axis]<.05)&&(s.lastFlickSpeed[axis]=0,s.backAnimStarted[axis]=!0,_animateProp("bounceZoomPan"+axis,_panOffset[axis],s.backAnimDestination[axis],speed||300,framework.easing.sine.out,function(pos){_panOffset[axis]=pos,_applyCurrentZoomPan()})))},calculateAnimOffset:function(axis){s.backAnimStarted[axis]||(s.speedDecelerationRatio[axis]=s.speedDecelerationRatio[axis]*(s.slowDownRatio[axis]+s.slowDownRatioReverse[axis]-s.slowDownRatioReverse[axis]*s.timeDiff/10),s.speedDecelerationRatioAbs[axis]=Math.abs(s.lastFlickSpeed[axis]*s.speedDecelerationRatio[axis]),s.distanceOffset[axis]=s.lastFlickSpeed[axis]*s.speedDecelerationRatio[axis]*s.timeDiff,_panOffset[axis]+=s.distanceOffset[axis])},panAnimLoop:function(){_animations.zoomPan&&(_animations.zoomPan.raf=_requestAF(s.panAnimLoop),s.now=_getCurrentTime(),s.timeDiff=s.now-s.lastNow,s.lastNow=s.now,s.calculateAnimOffset("x"),s.calculateAnimOffset("y"),_applyCurrentZoomPan(),s.calculateOverBoundsAnimOffset("x"),s.calculateOverBoundsAnimOffset("y"),s.speedDecelerationRatioAbs.x<.05)&&s.speedDecelerationRatioAbs.y<.05&&(_panOffset.x=Math.round(_panOffset.x),_panOffset.y=Math.round(_panOffset.y),_applyCurrentZoomPan(),_stopAnimation("zoomPan"))}};return s},_completePanGesture=function(animData){if(animData.calculateSwipeSpeed("y"),_currPanBounds=self.currItem.bounds,animData.backAnimDestination={},animData.backAnimStarted={},Math.abs(animData.lastFlickSpeed.x)<=.05&&Math.abs(animData.lastFlickSpeed.y)<=.05)return animData.speedDecelerationRatioAbs.x=animData.speedDecelerationRatioAbs.y=0,animData.calculateOverBoundsAnimOffset("x"),animData.calculateOverBoundsAnimOffset("y"),!0;_registerStartAnimation("zoomPan"),animData.lastNow=_getCurrentTime(),animData.panAnimLoop()},_finishSwipeMainScrollGesture=function(gestureType,_releaseAnimData){_mainScrollAnimating||(_currZoomedItemIndex=_currentItemIndex),"swipe"===gestureType&&(gestureType=_currPoint.x-_startPoint.x,isFastLastFlick=_releaseAnimData.lastFlickDist.x<10,MIN_SWIPE_DISTANCE=_getNumItems()&&(_currentItemIndex=_options.loop?0:_getNumItems()-1,nextCircle=!0),nextCircle&&!_options.loop||(_indexDiff+=itemsDiff,_currPositionIndex-=itemsDiff,itemChanged=!0));var itemChanged,itemsDiff,nextCircle,gestureType=_slideSize.x*_currPositionIndex,isFastLastFlick=Math.abs(gestureType-_mainScrollPos.x),finishAnimDuration=itemChanged||gestureType>_mainScrollPos.x==0<_releaseAnimData.lastFlickSpeed.x?(finishAnimDuration=0The image could not be loaded.',forceProgressiveLoading:!1,preload:[1,1],getNumItemsFn:function(){return _items.length}},_getZeroBounds=function(){return{center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}}},_calculateSingleItemPanBounds=function(item,realPanElementW,realPanElementH){var bounds=item.bounds;bounds.center.x=Math.round((_tempPanAreaSize.x-realPanElementW)/2),bounds.center.y=Math.round((_tempPanAreaSize.y-realPanElementH)/2)+item.vGap.top,bounds.max.x=realPanElementW>_tempPanAreaSize.x?Math.round(_tempPanAreaSize.x-realPanElementW):bounds.center.x,bounds.max.y=realPanElementH>_tempPanAreaSize.y?Math.round(_tempPanAreaSize.y-realPanElementH)+item.vGap.top:bounds.center.y,bounds.min.x=realPanElementW>_tempPanAreaSize.x?0:bounds.center.x,bounds.min.y=realPanElementH>_tempPanAreaSize.y?item.vGap.top:bounds.center.y},_calculateItemSize=function(item,viewportSize,zoomLevel){var isInitial,vRatio;return!item.src||item.loadError?(item.w=item.h=0,item.initialZoomLevel=item.fitRatio=1,item.bounds=_getZeroBounds(),item.initialPosition=item.bounds.center,item.bounds):((isInitial=!zoomLevel)&&(item.vGap||(item.vGap={top:0,bottom:0}),_shout("parseVerticalMargin",item)),_tempPanAreaSize.x=viewportSize.x,_tempPanAreaSize.y=viewportSize.y-item.vGap.top-item.vGap.bottom,isInitial&&(viewportSize=_tempPanAreaSize.x/item.w,vRatio=_tempPanAreaSize.y/item.h,item.fitRatio=viewportSize=_currPanBounds.max.x&&newPanY<=_currPanBounds.min.y&&newPanY>=_currPanBounds.max.y)&&e.preventDefault(),self.panTo(newPanX,newPanY)},toggleDesktopZoom:function(centerPoint){centerPoint=centerPoint||{x:_viewportSize.x/2+_offset.x,y:_viewportSize.y/2+_offset.y};var doubleTapZoomLevel=_options.getDoubleTapZoom(!0,self.currItem),zoomOut=_currZoomLevel===doubleTapZoomLevel;self.mouseZoomedIn=!zoomOut,self.zoomTo(zoomOut?self.currItem.initialZoomLevel:doubleTapZoomLevel,centerPoint,333),framework[(zoomOut?"remove":"add")+"Class"](template,"pswp--zoomed-in")}}}),{history:!0,galleryUID:1}),_getHash=function(){return _windowLoc.hash.substring(1)},_updateHash=function(){var item,pid;_hashAnimCheckTimeout&&clearTimeout(_hashAnimCheckTimeout),_numAnimations||_isDragging?_hashAnimCheckTimeout=setTimeout(_updateHash,500):(_hashChangedByScript?clearTimeout(_hashChangeTimeout):_hashChangedByScript=!0,pid=_currentItemIndex+1,(item=_getItemAt(_currentItemIndex)).hasOwnProperty("pid")&&(pid=item.pid),item=_initialHash+"&gid="+_options.galleryUID+"&pid="+pid,_historyChanged||-1===_windowLoc.hash.indexOf(item)&&(_urlChangedOnce=!0),pid=_windowLoc.href.split("#")[0]+"#"+item,_supportsPushState?"#"+item!==window.location.hash&&history[_historyChanged?"replaceState":"pushState"]("",document.title,pid):_historyChanged?_windowLoc.replace(pid):_windowLoc.hash=item,_historyChanged=!0,_hashChangeTimeout=setTimeout(function(){_hashChangedByScript=!1},60))};_registerModule("History",{publicMethods:{initHistory:function(){var returnToOriginal,index;framework.extend(_options,_historyDefaultOptions,!0),_options.history&&(_windowLoc=window.location,_historyChanged=_closedFromURL=_urlChangedOnce=!1,_initialHash=_getHash(),_supportsPushState="pushState"in history,-1<_initialHash.indexOf("gid=")&&(_initialHash=(_initialHash=_initialHash.split("&gid=")[0]).split("?gid=")[0]),_listen("afterChange",self.updateURL),_listen("unbindEvents",function(){framework.unbind(window,"hashchange",self.onHashChange)}),returnToOriginal=function(){_hashReseted=!0,_closedFromURL||(_urlChangedOnce?history.back():_initialHash?_windowLoc.hash=_initialHash:_supportsPushState?history.pushState("",document.title,_windowLoc.pathname+_windowLoc.search):_windowLoc.hash=""),_cleanHistoryTimeouts()},_listen("unbindEvents",function(){_closedByScroll&&returnToOriginal()}),_listen("destroy",function(){_hashReseted||returnToOriginal()}),_listen("firstUpdate",function(){_currentItemIndex=_parseItemIndexFromURL().pid}),-1<(index=_initialHash.indexOf("pid="))&&"&"===(_initialHash=_initialHash.substring(0,index)).slice(-1)&&(_initialHash=_initialHash.slice(0,-1)),setTimeout(function(){_isOpen&&framework.bind(window,"hashchange",self.onHashChange)},40))},onHashChange:function(){_getHash()===_initialHash?(_closedFromURL=!0,self.close()):_hashChangedByScript||(_hashChangedByHistory=!0,self.goTo(_parseItemIndexFromURL().pid),_hashChangedByHistory=!1)},updateURL:function(){_cleanHistoryTimeouts(),_hashChangedByHistory||(_historyChanged?_historyUpdateTimeout=setTimeout(_updateHash,800):_updateHash())}}}),framework.extend(self,options)}}),((root,factory)=>{"function"==typeof define&&define.amd?define(factory):"object"==typeof exports?module.exports=factory():root.PhotoSwipeUI_Default=factory()})(this,function(){return function(pswp,framework){function _onControlsTap(e){if(_blockControlsTap)return!0;e=e||window.event,_options.timeToIdle&&_options.mouseUsed&&!_isIdle&&_onIdleMouseMove();for(var uiElement,found,clickedClass=(e.target||e.srcElement).getAttribute("class")||"",i=0;i<_uiElements.length;i++)(uiElement=_uiElements[i]).onTap&&-1"+shareButtonData.label+"",_options.parseShareButtonOut&&(shareButtonOut=_options.parseShareButtonOut(shareButtonData,shareButtonOut));_shareModal.children[0].innerHTML=shareButtonOut,_shareModal.children[0].onclick=_openWindowPopup}function _hasCloseClass(target){for(var i=0;i<_options.closeElClasses.length;i++)if(framework.hasClass(target,"pswp__"+_options.closeElClasses[i]))return!0}function _onIdleMouseMove(){clearTimeout(_idleTimer),_idleIncrement=0,_isIdle&&ui.setIdle(!1)}function _onMouseLeaveWindow(e){(e=(e=e||window.event).relatedTarget||e.toElement)&&"HTML"!==e.nodeName||(clearTimeout(_idleTimer),_idleTimer=setTimeout(function(){ui.setIdle(!0)},_options.timeToIdleOutside))}function _toggleLoadingIndicator(hide){_loadingIndicatorHidden!==hide&&(_togglePswpClass(_loadingIndicator,"preloader--active",!hide),_loadingIndicatorHidden=hide)}function _applyNavBarGaps(item){var bars,gap=item.vGap;!pswp.likelyTouchDevice||_options.mouseUsed||screen.width>_options.fitControlsWidth?(bars=_options.barsSize,_options.captionEl&&"auto"===bars.bottom?(_fakeCaptionContainer||((_fakeCaptionContainer=framework.createEl("pswp__caption pswp__caption--fake")).appendChild(framework.createEl("pswp__caption__center")),_controls.insertBefore(_fakeCaptionContainer,_captionContainer),framework.addClass(_controls,"pswp__ui--fit")),_options.addCaptionHTMLFn(item,_fakeCaptionContainer,!0)?(item=_fakeCaptionContainer.clientHeight,gap.bottom=parseInt(item,10)||44):gap.bottom=bars.top):gap.bottom="auto"===bars.bottom?0:bars.bottom,gap.top=bars.top):gap.top=gap.bottom=0}function _setupUIElements(){function loopThroughChildElements(sChildren){if(sChildren)for(var l=sChildren.length,i=0;i{"function"==typeof define&&define.amd?define(["jquery"],factory):"undefined"!=typeof module&&module.exports?module.exports=factory(require("jquery")):factory(jQuery)})(function($){var $scrollTo=$.scrollTo=function(target,duration,settings){return $(window).scrollTo(target,duration,settings)};function isWin(elem){return!elem.nodeName||-1!==$.inArray(elem.nodeName.toLowerCase(),["iframe","#document","html","body"])}function isFunction(obj){return"function"==typeof obj}function both(val){return isFunction(val)||$.isPlainObject(val)?val:{top:val,left:val}}return $scrollTo.defaults={axis:"xy",duration:0,limit:!0},$.fn.scrollTo=function(target,duration,settings){"object"==typeof duration&&(settings=duration,duration=0),"function"==typeof settings&&(settings={onAfter:settings}),"max"===target&&(target=9e9),settings=$.extend({},$scrollTo.defaults,settings),duration=duration||settings.duration;var queue=settings.queue&&1{factory=factory(window,window.document,Date),window.lazySizes=factory,"object"==typeof module&&module.exports&&(module.exports=factory)})(void 0!==window?window:{},function(window,document,Date){var lazysizes,lazySizesCfg,prop,docElem,supportPicture,_addEventListener,_getAttribute,addEventListener,setTimeout,requestAnimationFrame,requestIdleCallback,regPicture,loadEvents,regClassCache,forEach,hasClass,addClass,removeClass,addRemoveLoadEvents,triggerEvent,updatePolyfill,getCSS,getWidth,rAF,running,waiting,firstFns,secondFns,fns,rAFIt,debounce,loader,autoSizer,autosizesElems,sizeElement,debouncedUpdateElementsSizes,init,lazySizesDefaults={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",fastLoadedClass:"ls-is-cached",iframeLoadMode:0,srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};for(prop in lazySizesCfg=window.lazySizesConfig||window.lazysizesConfig||{},lazySizesDefaults)prop in lazySizesCfg||(lazySizesCfg[prop]=lazySizesDefaults[prop]);return document&&document.getElementsByClassName?(docElem=document.documentElement,supportPicture=window.HTMLPictureElement,_getAttribute="getAttribute",addEventListener=window[_addEventListener="addEventListener"].bind(window),setTimeout=window.setTimeout,requestAnimationFrame=window.requestAnimationFrame||setTimeout,requestIdleCallback=window.requestIdleCallback,regPicture=/^picture$/i,loadEvents=["load","error","lazyincluded","_lazyloaded"],regClassCache={},forEach=Array.prototype.forEach,hasClass=function(ele,cls){return regClassCache[cls]||(regClassCache[cls]=new RegExp("(\\s|^)"+cls+"(\\s|$)")),regClassCache[cls].test(ele[_getAttribute]("class")||"")&®ClassCache[cls]},addClass=function(ele,cls){hasClass(ele,cls)||ele.setAttribute("class",(ele[_getAttribute]("class")||"").trim()+" "+cls)},removeClass=function(ele,cls){(cls=hasClass(ele,cls))&&ele.setAttribute("class",(ele[_getAttribute]("class")||"").replace(cls," "))},addRemoveLoadEvents=function(dom,fn,add){var action=add?_addEventListener:"removeEventListener";add&&addRemoveLoadEvents(dom,fn),loadEvents.forEach(function(evt){dom[action](evt,fn)})},triggerEvent=function(elem,name,detail,noBubbles,noCancelable){var event=document.createEvent("Event");return(detail=detail||{}).instance=lazysizes,event.initEvent(name,!noBubbles,!noCancelable),event.detail=detail,elem.dispatchEvent(event),event},updatePolyfill=function(el,full){var polyfill;!supportPicture&&(polyfill=window.picturefill||lazySizesCfg.pf)?(full&&full.src&&!el[_getAttribute]("srcset")&&el.setAttribute("srcset",full.src),polyfill({reevaluate:!0,elements:[el]})):full&&full.src&&(el.src=full.src)},getCSS=function(elem,style){return(getComputedStyle(elem,null)||{})[style]},getWidth=function(elem,parent,width){for(width=width||elem.offsetWidth;width{function resetPreloading(e){isLoading--,e&&!(isLoading<0)&&e.target||(isLoading=0)}function checkElements(){var eLlen,i,autoLoadElem,loadedSomething,elemExpand,elemNegativeExpand,elemExpandVal,beforeExpandVal,defaultExpand,preloadExpand,hFac,lazyloadElems=lazysizes.elements;if((loadMode=lazySizesCfg.loadMode)&&isLoading<8&&(eLlen=lazyloadElems.length)){for(i=0,lowRuns++;i=elemNegativeExpand&&(eLtop=preloadExpand.top)<=elvH&&(eLright=preloadExpand.right)>=elemNegativeExpand*hFac&&(eLleft=preloadExpand.left)<=eLvW&&(eLbottom||eLright||eLleft||eLtop)&&(lazySizesCfg.loadHidden||isVisible(lazyloadElems[i]))&&(isCompleted&&isLoading<3&&!elemExpandVal&&(loadMode<3||lowRuns<4)||((elem,elemExpand)=>{var outerRect,parent=elem,visible=isVisible(elem);for(eLtop-=elemExpand,eLbottom+=elemExpand,eLleft-=elemExpand,eLright+=elemExpand;visible&&(parent=parent.offsetParent)&&parent!=document.body&&parent!=docElem;)(visible=0<(getCSS(parent,"opacity")||1))&&"visible"!=getCSS(parent,"overflow")&&(outerRect=parent.getBoundingClientRect(),visible=eLright>outerRect.left&&eLleftouterRect.top-1&&eLtop{var loadMode=elem.getAttribute("data-load-mode")||lazySizesCfg.iframeLoadMode;0==loadMode?elem.contentWindow.location.replace(src):1==loadMode&&(elem.src=src)})(elem,sizes):elem.src=sizes),isImg&&(isAuto||isPicture)&&updatePolyfill(elem,{src:sizes})),elem._lazyRace&&delete elem._lazyRace,removeClass(elem,lazySizesCfg.lazyClass),rAF(function(){var isLoaded=elem.complete&&1{"function"==typeof define&&define.amd?define([],fn):"undefined"!=typeof module&&null!==module&&module.exports?module.exports=fn:fn()})(function(){var properties,assign=Object.assign||window.jQuery&&jQuery.extend,threshold=8,requestFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(fn,element){return window.setTimeout(function(){fn()},25)},ignoreTags={textarea:!0,input:!0,select:!0,button:!0},mouseevents={move:"mousemove",cancel:"mouseup dragstart",end:"mouseup"},touchevents={move:"touchmove",cancel:"touchend",end:"touchend"},rspaces=/\s+/,eventOptions={bubbles:!0,cancelable:!0},eventsSymbol=Symbol("events");function getEvents(node){return node[eventsSymbol]||(node[eventsSymbol]={})}function on(node,types,fn,data){types=types.split(rspaces);var type,events=getEvents(node),i=types.length;function handler(e){fn(e,data)}for(;i--;)(events[type=types[i]]||(events[type]=[])).push([fn,handler]),node.addEventListener(type,handler)}function off(node,types,fn){types=types.split(rspaces);var type,handlers,k,events=getEvents(node),i=types.length;if(events)for(;i--;)if(handlers=events[type=types[i]])for(k=handlers.length;k--;)handlers[k][0]===fn&&(node.removeEventListener(type,handlers[k][1]),handlers.splice(k,1))}function trigger(node,type,properties){type=(type=>new CustomEvent(type,eventOptions))(type);properties&&assign(type,properties),node.dispatchEvent(type)}function Timer(fn){var callback=fn,active=!1,running=!1;function trigger(time){active?(callback(),requestFrame(trigger),active=!(running=!0)):running=!1}this.kick=function(fn){active=!0,running||trigger()},this.end=function(fn){var cb=callback;fn&&(running?(callback=active?function(){cb(),fn()}:fn,active=!0):fn())}}function noop(){}function preventDefault(e){e.preventDefault()}function identifiedTouch(touchList,id){var i,l;if(touchList.identifiedTouch)return touchList.identifiedTouch(id);for(i=-1,l=touchList.length;++i{var touches=e.targetTouches,time=e.timeStamp-data.timeStamp,touch={altKey:e.altKey,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,startX:data.pageX,startY:data.pageY,distX:distX,distY:distY,deltaX:distX,deltaY:distY,pageX:touch.pageX,pageY:touch.pageY,velocityX:distX/time,velocityY:distY/time,identifier:data.identifier,targetTouches:touches,finger:touches?touches.length:1,enableMove:function(){this.moveEnabled=!0,this.enableMove=noop,e.preventDefault()}};trigger(data.target,"movestart",touch),fn(data)})(e,data,touch,distX,distY,fn)}function activeMousemove(e,data){var timer=data.timer;data.touch=e,data.timeStamp=e.timeStamp,timer.kick()}function activeMouseend(e,data){var target=data.target,event=data.event,data=data.timer;off(document,mouseevents.move,activeMousemove),off(document,mouseevents.end,activeMouseend),endEvent(target,event,data,function(){setTimeout(function(){off(target,"click",preventDefault)},0)})}function activeTouchend(e,data){var target=data.target,event=data.event,timer=data.timer;identifiedTouch(e.changedTouches,event.identifier)&&((data=>{off(document,touchevents.move,data.activeTouchmove),off(document,touchevents.end,data.activeTouchend)})(data),endEvent(target,event,timer))}function endEvent(target,event,timer,fn){timer.end(function(){return trigger(target,"moveend",event),fn&&fn()})}function enableMove1(e){e.enableMove()}function enableMove2(e){e.enableMove()}function enableMove3(e){e.enableMove()}function add(handleObj){var handler=handleObj.handler;handleObj.handler=function(e){for(var property,i=properties.length;i--;)e[property=properties[i]]=e.originalEvent[property];handler.apply(this,arguments)}}on(document,"mousedown",function(e){!(e=>1===e.which&&!e.ctrlKey&&!e.altKey)(e)||(e=>ignoreTags[e.target.tagName.toLowerCase()])(e)||(on(document,mouseevents.move,mousemove,e),on(document,mouseevents.cancel,mouseend,e))}),on(document,"touchstart",function(e){ignoreTags[e.target.tagName.toLowerCase()]||(e={target:(e=e.changedTouches[0]).target,pageX:e.pageX,pageY:e.pageY,identifier:e.identifier,touchmove:function(e,data){((e,data)=>{var touch=changedTouch(e,data);touch&&checkThreshold(e,data,touch,removeTouch)})(e,data)},touchend:function(e,data){((e,data)=>{identifiedTouch(e.changedTouches,data.identifier)&&removeTouch(data)})(e,data)}},on(document,touchevents.move,e.touchmove,e),on(document,touchevents.cancel,e.touchend,e))}),on(document,"movestart",function(e){var event,data;e.defaultPrevented||e.moveEnabled&&(data={target:e.target,event:event={startX:e.startX,startY:e.startY,pageX:e.pageX,pageY:e.pageY,distX:e.distX,distY:e.distY,deltaX:e.deltaX,deltaY:e.deltaY,velocityX:e.velocityX,velocityY:e.velocityY,identifier:e.identifier,targetTouches:e.targetTouches,finger:e.finger},timer:new Timer(function(time){((event,touch,timeStamp)=>{timeStamp-=event.timeStamp,event.distX=touch.pageX-event.startX,event.distY=touch.pageY-event.startY,event.deltaX=touch.pageX-event.pageX,event.deltaY=touch.pageY-event.pageY,event.velocityX=.3*event.velocityX+.7*event.deltaX/timeStamp,event.velocityY=.3*event.velocityY+.7*event.deltaY/timeStamp,event.pageX=touch.pageX,event.pageY=touch.pageY})(event,data.touch,data.timeStamp),trigger(data.target,"move",event)}),touch:void 0,timeStamp:e.timeStamp},void 0===e.identifier?(on(e.target,"click",preventDefault),on(document,mouseevents.move,activeMousemove,data),on(document,mouseevents.end,activeMouseend,data)):(data.activeTouchmove=function(e,data){((e,data)=>{var event=data.event,timer=data.timer,touch=changedTouch(e,event);touch&&(e.preventDefault(),event.targetTouches=e.targetTouches,data.touch=touch,data.timeStamp=e.timeStamp,timer.kick())})(e,data)},data.activeTouchend=function(e,data){activeTouchend(e,data)},on(document,touchevents.move,data.activeTouchmove,data),on(document,touchevents.end,data.activeTouchend,data)))}),window.jQuery&&(properties="startX startY pageX pageY distX distY deltaX deltaY velocityX velocityY".split(" "),jQuery.event.special.movestart={setup:function(){return on(this,"movestart",enableMove1),!1},teardown:function(){return off(this,"movestart",enableMove1),!1},add:add},jQuery.event.special.move={setup:function(){return on(this,"movestart",enableMove2),!1},teardown:function(){return off(this,"movestart",enableMove2),!1},add:add},jQuery.event.special.moveend={setup:function(){return on(this,"movestart",enableMove3),!1},teardown:function(){return off(this,"movestart",enableMove3),!1},add:add})}),((window,$)=>{function proxy(callback,context){return callback.bind(context)}function isFunction(value){return"function"==typeof value}function getOrApply(value,context){return isFunction(value)?value.apply(context,$.makeArray(arguments).slice(2)):value}var IMG_SRC_REGEX=/(\.(jpeg|png|gif|bmp|svg)$|^data:image\/(jpeg|png|gif|bmp|svg\+xml);base64)/i,URL_PARAMS_REGEX=/(&?[a-zA-Z0-9]+=)?\{([a-zA-Z0-9]+)\}/g,MEASURES={G:1e9,M:1e6,K:1e3},shares={};function Socials(element,config){element=$(element);element.data("JSSocials",this),this._$element=element,this.shares=[],this._init(config),this._render()}Socials.prototype={url:"",text:"",shareIn:"blank",showLabel:function(screenWidth){return!1===this.showCount?screenWidth>this.smallScreenWidth:screenWidth>=this.largeScreenWidth},showCount:function(screenWidth){return!(screenWidth<=this.smallScreenWidth)||"inside"},smallScreenWidth:640,largeScreenWidth:1024,resizeTimeout:200,elementClass:"jssocials",sharesClass:"jssocials-shares",shareClass:"jssocials-share",shareButtonClass:"jssocials-share-button",shareLinkClass:"jssocials-share-link",shareLogoClass:"jssocials-share-logo",shareLabelClass:"jssocials-share-label",shareLinkCountClass:"jssocials-share-link-count",shareCountBoxClass:"jssocials-share-count-box",shareCountClass:"jssocials-share-count",shareZeroCountClass:"jssocials-share-no-count",_init:function(config){this._initDefaults(),$.extend(this,config),this._initShares(),this._attachWindowResizeCallback()},_initDefaults:function(){this.url=window.location.href,this.text=($("meta[name=description]").attr("content")||$("title").text()).trim()},_initShares:function(){this.shares=$.map(this.shares,function(shareConfig){var share=(shareConfig="string"==typeof shareConfig?{share:shareConfig}:shareConfig).share&&shares[shareConfig.share];if(share||shareConfig.renderer)return $.extend({url:this.url,text:this.text},share,shareConfig);throw Error("Share '"+shareConfig.share+"' is not found")}.bind(this))},_attachWindowResizeCallback:function(){$(window).on("resize",proxy(this._windowResizeHandler,this))},_detachWindowResizeCallback:function(){$(window).off("resize",this._windowResizeHandler)},_windowResizeHandler:function(){(isFunction(this.showLabel)||isFunction(this.showCount))&&(window.clearTimeout(this._resizeTimer),this._resizeTimer=setTimeout(proxy(this.refresh,this),this.resizeTimeout))},_render:function(){this._clear(),this._defineOptionsByScreen(),this._$element.addClass(this.elementClass),this._$shares=$("").addClass(this.sharesClass).appendTo(this._$element),this._renderShares()},_defineOptionsByScreen:function(){this._screenWidth=$(window).width(),this._showLabel=getOrApply(this.showLabel,this,this._screenWidth),this._showCount=getOrApply(this.showCount,this,this._screenWidth)},_renderShares:function(){$.each(this.shares,function(_,share){this._renderShare(share)}.bind(this))},_renderShare:function(share){var $share=isFunction(share.renderer)?$(share.renderer()):this._createShare(share);$share.addClass(this.shareClass).addClass(share.share?"jssocials-share-"+share.share:"").addClass(share.css).appendTo(this._$shares)},_createShare:function(share){var isInsideCount,$result=$("
"),$shareLink=this._createShareLink(share).appendTo($result);return this._showCount&&(($shareLink=(isInsideCount="inside"===this._showCount)?$shareLink:$("
").addClass(this.shareCountBoxClass).appendTo($result)).addClass(isInsideCount?this.shareLinkCountClass:this.shareCountBoxClass),this._renderShareCount(share,$shareLink)),$result},_createShareLink:function(share){var $result=this._getShareStrategy(share).call(share,{shareUrl:this._getShareUrl(share)});return $result.addClass(this.shareLinkClass).append(this._createShareLogo(share)),this._showLabel&&$result.append(this._createShareLabel(share)),$.each(this.on||{},function(event,handler){isFunction(handler)&&$result.on(event,proxy(handler,share))}),$result},_getShareStrategy:function(share){share=shareStrategies[share.shareIn||this.shareIn];if(share)return share;throw Error("Share strategy '"+this.shareIn+"' not found")},_getShareUrl:function(share){var shareUrl=getOrApply(share.shareUrl,share);return this._formatShareUrl(shareUrl,share)},_createShareLogo:function(share){var logo=share.logo,share=IMG_SRC_REGEX.test(logo)?$("
![]()
").attr("src",share.logo):$("
").addClass(logo);return share.addClass(this.shareLogoClass),share},_createShareLabel:function(share){return $("").addClass(this.shareLabelClass).text(share.label)},_renderShareCount:function(share,$container){var $count=$("").addClass(this.shareCountClass);$container.addClass(this.shareZeroCountClass).append($count),this._loadCount(share).done(function(count){count&&($container.removeClass(this.shareZeroCountClass),$count.text(count))}.bind(this))},_loadCount:function(share){var handleSuccess,deferred=$.Deferred(),countUrl=this._getCountUrl(share);return(countUrl?(handleSuccess=function(response){deferred.resolve(this._getCountValue(response,share))}.bind(this),$.getJSON(countUrl).done(handleSuccess).fail(function(){$.get(countUrl).done(handleSuccess).fail(function(){deferred.resolve(0)})}),deferred):deferred.resolve(0)).promise()},_getCountUrl:function(share){var countUrl=getOrApply(share.countUrl,share);return this._formatShareUrl(countUrl,share)},_getCountValue:function(response,share){share=(isFunction(share.getCount)?share.getCount(response):response)||0;return"string"==typeof share?share:this._formatNumber(share)},_formatNumber:function(number){return $.each(MEASURES,function(letter,value){if(value<=number)return number=parseFloat((number/value).toFixed(2))+letter,!1}),number},_formatShareUrl:function(url,share){return url.replace(URL_PARAMS_REGEX,function(match,key,field){field=share[field]||"";return field?(key||"")+window.encodeURIComponent(field):""})},_clear:function(){window.clearTimeout(this._resizeTimer),this._$element.empty()},_passOptionToShares:function(key,value){var shares=this.shares;$.each(["url","text"],function(_,optionName){optionName===key&&$.each(shares,function(_,share){share[key]=value})})},_normalizeShare:function(share){return $.isNumeric(share)?this.shares[share]:"string"==typeof share?$.grep(this.shares,function(s){return s.share===share})[0]:share},refresh:function(){this._render()},destroy:function(){this._clear(),this._detachWindowResizeCallback(),this._$element.removeClass(this.elementClass).removeData("JSSocials")},option:function(key,value){if(1===arguments.length)return this[key];this[key]=value,this._passOptionToShares(key,value),this.refresh()},shareOption:function(share,key,value){if(share=this._normalizeShare(share),2===arguments.length)return share[key];share[key]=value,this.refresh()}},$.fn.jsSocials=function(config){var methodArgs=$.makeArray(arguments).slice(1),result=this;return this.each(function(){var methodResult,$element=$(this),instance=$element.data("JSSocials");if(instance)if("string"==typeof config){if(void 0!==(methodResult=instance[config].apply(instance,methodArgs))&&methodResult!==instance)return result=methodResult,!1}else instance._detachWindowResizeCallback(),instance._init(config),instance._render();else new Socials($element,config)}),result};var shareStrategies={popup:function(args){return $("").attr("href","#").on("click",function(){return window.open(args.shareUrl,null,"width=600, height=400, location=0, menubar=0, resizeable=0, scrollbars=0, status=0, titlebar=0, toolbar=0"),!1})},blank:function(args){return $("").attr({target:"_blank",href:args.shareUrl})},self:function(args){return $("").attr({target:"_self",href:args.shareUrl})}};window.jsSocials={Socials:Socials,shares:shares,shareStrategies:shareStrategies,setDefaults:function(config){var component;$.isPlainObject(config)?component=Socials.prototype:(component=shares[config],config=arguments[1]||{}),$.extend(component,config)}}})(window,jQuery),(($,jsSocials)=>{$.extend(jsSocials.shares,{email:{label:"E-mail",logo:"fa fa-at",shareUrl:"mailto:{to}?subject={text}&body={url}",countUrl:"",shareIn:"self"},twitter:{label:"Tweet",logo:"fa fa-twitter",shareUrl:"https://twitter.com/share?url={url}&text={text}&via={via}&hashtags={hashtags}",countUrl:""},facebook:{label:"Like",logo:"fa fa-facebook",shareUrl:"https://facebook.com/sharer/sharer.php?u={url}",countUrl:"https://graph.facebook.com/?id={url}",getCount:function(data){return data.share&&data.share.share_count||0}},vkontakte:{label:"Like",logo:"fa fa-vk",shareUrl:"https://vk.com/share.php?url={url}&title={title}&description={text}",countUrl:"https://vk.com/share.php?act=count&index=1&url={url}",getCount:function(data){return parseInt(data.slice(15,-2).split(", ")[1])}},googleplus:{label:"+1",logo:"fa fa-google",shareUrl:"https://plus.google.com/share?url={url}",countUrl:""},linkedin:{label:"Share",logo:"fa fa-linkedin",shareUrl:"https://www.linkedin.com/shareArticle?mini=true&url={url}",countUrl:"https://www.linkedin.com/countserv/count/share?format=jsonp&url={url}&callback=?",getCount:function(data){return data.count}},pinterest:{label:"Pin it",logo:"fa fa-pinterest",shareUrl:"https://pinterest.com/pin/create/bookmarklet/?media={media}&url={url}&description={text}",countUrl:"https://api.pinterest.com/v1/urls/count.json?&url={url}&callback=?",getCount:function(data){return data.count}},stumbleupon:{label:"Share",logo:"fa fa-stumbleupon",shareUrl:"http://www.stumbleupon.com/submit?url={url}&title={title}",countUrl:"https://cors-anywhere.herokuapp.com/https://www.stumbleupon.com/services/1.01/badge.getinfo?url={url}",getCount:function(data){return data.result&&data.result.views}},telegram:{label:"Telegram",logo:"fa fa-telegram",shareUrl:"tg://msg?text={url} {text}",countUrl:"",shareIn:"self"},whatsapp:{label:"WhatsApp",logo:"fa fa-whatsapp",shareUrl:"whatsapp://send?text={url} {text}",countUrl:"",shareIn:"self"},line:{label:"LINE",logo:"fa fa-comment",shareUrl:"http://line.me/R/msg/text/?{text} {url}",countUrl:""},viber:{label:"Viber",logo:"fa fa-volume-control-phone",shareUrl:"viber://forward?text={url} {text}",countUrl:"",shareIn:"self"},pocket:{label:"Pocket",logo:"fa fa-get-pocket",shareUrl:"https://getpocket.com/save?url={url}&title={title}",countUrl:""},messenger:{label:"Share",logo:"fa fa-commenting",shareUrl:"fb-messenger://share?link={url}",countUrl:"",shareIn:"self"},rss:{label:"RSS",logo:"fa fa-rss",shareUrl:"/feeds/",countUrl:"",shareIn:"blank"}})})(jQuery,window.jsSocials),($=>{$.fn.twentytwenty=function(options){options=$.extend({default_offset_pct:.5,orientation:"horizontal",before_label:"Before",after_label:"After",no_overlay:!1,move_slider_on_hover:!1,move_with_handle_only:!0,click_to_move:!1},options);return this.each(function(){function onMoveStart(e){((e.distX>e.distY&&e.distX<-e.distY||e.distX-e.distY)&&"vertical"!==sliderOrientation||(e.distXe.distY&&e.distX>-e.distY)&&"vertical"===sliderOrientation)&&e.preventDefault(),container.addClass("active"),offsetX=container.offset().left,offsetY=container.offset().top,imgWidth=beforeImg.width(),imgHeight=beforeImg.height()}function onMove(e){container.hasClass("active")&&(sliderPct=getSliderPercentage(e.pageX,e.pageY),adjustSlider(sliderPct))}function onMoveEnd(){container.removeClass("active")}var sliderPct=options.default_offset_pct,container=$(this),sliderOrientation=options.orientation,beforeDirection="vertical"===sliderOrientation?"down":"left",afterDirection="vertical"===sliderOrientation?"up":"right",beforeImg=(container.wrap(""),options.no_overlay||(container.append(""),(overlay=container.find(".twentytwenty-overlay")).append(""),overlay.append("")),container.find("img:first")),afterImg=container.find("img:last"),slider=(container.append(""),container.find(".twentytwenty-handle")),calcOffset=(slider.append(""),slider.append(""),container.addClass("twentytwenty-container"),beforeImg.addClass("twentytwenty-before"),afterImg.addClass("twentytwenty-after"),function(dimensionPct){var w=beforeImg.width(),h=beforeImg.height();return{w:w+"px",h:h+"px",cw:dimensionPct*w+"px",ch:dimensionPct*h+"px"}}),adjustContainer=function(offset){"vertical"===sliderOrientation?(beforeImg.css("clip","rect(0,"+offset.w+","+offset.ch+",0)"),afterImg.css("clip","rect("+offset.ch+","+offset.w+","+offset.h+",0)")):(beforeImg.css("clip","rect(0,"+offset.cw+","+offset.h+",0)"),afterImg.css("clip","rect(0,"+offset.w+","+offset.h+","+offset.cw+")")),container.css("height",offset.h)},adjustSlider=function(pct){pct=calcOffset(pct);slider.css("vertical"===sliderOrientation?"top":"left","vertical"===sliderOrientation?pct.ch:pct.cw),adjustContainer(pct)},minMaxNumber=function(num,min,max){return Math.max(min,Math.min(max,num))},getSliderPercentage=function(positionX,positionY){return minMaxNumber("vertical"===sliderOrientation?(positionY-offsetY)/imgHeight:(positionX-offsetX)/imgWidth,0,1)},offsetX=($(window).on("resize.twentytwenty",function(e){adjustSlider(sliderPct)}),0),offsetY=0,imgWidth=0,imgHeight=0,overlay=options.move_with_handle_only?slider:container;overlay.on("movestart",onMoveStart),overlay.on("move",onMove),overlay.on("moveend",onMoveEnd),options.move_slider_on_hover&&(container.on("mouseenter",onMoveStart),container.on("mousemove",onMove),container.on("mouseleave",onMoveEnd)),slider.on("touchmove",function(e){e.preventDefault()}),container.find("img").on("mousedown",function(event){event.preventDefault()}),options.click_to_move&&container.on("click",function(e){offsetX=container.offset().left,offsetY=container.offset().top,imgWidth=beforeImg.width(),imgHeight=beforeImg.height(),sliderPct=getSliderPercentage(e.pageX,e.pageY),adjustSlider(sliderPct)}),$(window).trigger("resize.twentytwenty")})}})(jQuery),(window=>{function UAParser(uastring,extensions){var ua,rgxmap;return this instanceof UAParser?(ua=uastring||(window&&window.navigator&&window.navigator.userAgent?window.navigator.userAgent:""),rgxmap=extensions?util.extend(regexes,extensions):regexes,this.getBrowser=function(){var browser=mapper.rgx.apply(this,rgxmap.browser);return browser.major=util.major(browser.version),browser},this.getCPU=function(){return mapper.rgx.apply(this,rgxmap.cpu)},this.getDevice=function(){return mapper.rgx.apply(this,rgxmap.device)},this.getEngine=function(){return mapper.rgx.apply(this,rgxmap.engine)},this.getOS=function(){return mapper.rgx.apply(this,rgxmap.os)},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return ua},this.setUA=function(uastring){return ua=uastring,this},this.setUA(ua),this):new UAParser(uastring,extensions).getResult()}var parser,MODEL="model",NAME="name",TYPE="type",VENDOR="vendor",VERSION="version",MOBILE="mobile",TABLET="tablet",util={extend:function(regexes,extensions){for(var i in extensions)-1!=="browser cpu device engine os".indexOf(i)&&extensions[i].length%2==0&&(regexes[i]=extensions[i].concat(regexes[i]));return regexes},has:function(str1,str2){return"string"==typeof str1&&-1!==str2.toLowerCase().indexOf(str1.toLowerCase())},lowerize:function(str){return str.toLowerCase()},major:function(version){return"string"==typeof version?version.split(".")[0]:void 0}},mapper={rgx:function(){for(var result,j,k,p,q,matches,match,i=0,args=arguments;i>>0,from=Number(arguments[1])||0;for((from=from<0?Math.ceil(from):Math.floor(from))<0&&(from+=len);from")?eval(ieVer+version):eval(version+"=="+ieVer):version==ieVer):!1},browser.webkit="WebKit"===AuxUserAgent.engine.name,browser.firefox="Firefox"===browser.name,browser.opera="Opera"===browser.name,browser.chrome="Chrome"===browser.name,browser.safari="Safari"===browser.name,browser.msie="IE"===browser.name,averta.browser=browser,window.AuxBrowser=browser}(),$&&($.fn.preloadImg=function(src,_event){return this.each(function(){var $this=$(this),self=this,img=new Image;img.onload=function(event){null==event&&(event={}),$this.attr("src",src),event.width=img.width,event.height=img.height,$this.data("width",img.width),$this.data("height",img.height),setTimeout(function(){_event.call(self,event)},50),img=null},img.src=src}),this},$(document).ready(function(){window._jcsspfx=getVendorPrefix(),window._csspfx=trans[window._jcsspfx],window._cssanim=supportsTransitions(),window._css3d=supports3DTransforms(),window._css2d=supportsTransforms()})),(()=>{setTimeout(function(arg1){var __nativeST__;"test"!==arg1&&(__nativeST__=window.setTimeout,window.setTimeout=function(vCallback,nDelay){var aArgs=Array.prototype.slice.call(arguments,2);return __nativeST__(vCallback instanceof Function?function(){vCallback.apply(null,aArgs)}:vCallback,nDelay)})},0,"test");var interval=setInterval(function(arg1){var __nativeSI__;clearInterval(interval),"test"!==arg1&&(__nativeSI__=window.setInterval,window.setInterval=function(vCallback,nDelay){var aArgs=Array.prototype.slice.call(arguments,2);return __nativeSI__(vCallback instanceof Function?function(){vCallback.apply(null,aArgs)}:vCallback,nDelay)})},0,"test")})()}(jQuery),(()=>{averta.Ticker=function(){};var st=averta.Ticker,list=[],len=0,__stopped=!0,__tick=(st.add=function(listener,ref){return list.push([listener,ref]),1===list.length&&st.start(),len=list.length},st.remove=function(listener,ref){for(var i=0,l=list.length;i{var isTouch="ontouchstart"in document,isPointer=window.navigator.pointerEnabled,window=!isPointer&&window.navigator.msPointerEnabled,usePointer=isPointer||window,ev_start=(isPointer?"pointerdown ":"")+(window?"MSPointerDown ":"")+(isTouch?"touchstart ":"")+"mousedown",ev_move=(isPointer?"pointermove ":"")+(window?"MSPointerMove ":"")+(isTouch?"touchmove ":"")+"mousemove",ev_end=(isPointer?"pointerup ":"")+(window?"MSPointerUp ":"")+(isTouch?"touchend ":"")+"mouseup",ev_cancel=(isPointer?"pointercancel ":"")+(window?"MSPointerCancel ":"")+"touchcancel";averta.TouchSwipe=function(element){if(element.jquery){if(!element.length)return;element=element[0]}this.element=element,this.enabled=!0,this._bindEvents(element,ev_start,this._touchStart),(element.swipe=this).onSwipe=null,this.swipeType="horizontal",this.noSwipeSelector="input, textarea, button, .no-swipe, .ms-no-swipe",this.lastStatus={}},(isPointer=averta.TouchSwipe.prototype)._bindEvents=function(target,events,cb){events.split(" ").forEach(function(event){target.addEventListener(event,cb.bind(this))},this)},isPointer._unbindEvents=function(target,events,cb){events.split(" ").forEach(function(event){target.removeEventListener(event,cb.bind(this))},this)},isPointer._getDirection=function(new_x,new_y){switch(this.swipeType){case"horizontal":return new_x<=this.start_x?"left":"right";case"vertical":return new_y<=this.start_y?"up":"down";case"all":return Math.abs(new_x-this.start_x)>Math.abs(new_y-this.start_y)?new_x<=this.start_x?"left":"right":new_y<=this.start_y?"up":"down"}},isPointer._priventDefultEvent=function(new_x,new_y){new_x=Math.abs(new_x-this.start_x),new_y=Math.abs(new_y-this.start_y){"function"!=typeof ElementProto.matches&&(ElementProto.matches=ElementProto.msMatchesSelector||ElementProto.mozMatchesSelector||ElementProto.webkitMatchesSelector||function(selector){for(var elements=(this.document||this.ownerDocument).querySelectorAll(selector),index=0;elements[index]&&elements[index]!==this;)++index;return Boolean(elements[index])}),"function"!=typeof ElementProto.closest&&(ElementProto.closest=function(selector){for(var element=this;element&&1===element.nodeType;){if(element.matches(selector))return element;element=element.parentNode}return null})})(window.Element.prototype),(()=>{window.AVTAligner=function(type,$container,$img,options){this.$container=$container,this.$img=$img,this.img=$img[0],this.options=options||{},this.type=type||"stretch",this.widthOnly=!1,this.heightOnly=!1};var p=AVTAligner.prototype;p.init=function(w,h){switch(w=w||this.img.naturalWidth,h=h||this.img.naturalHeight,this.baseWidth=w,this.baseHeight=h,this.imgRatio=w/h,this.imgRatio2=h/w,this.type){case"tile":this.$container.css("background-image","url("+this.$img.attr("src")+")"),this.$img.hide();break;case"center":this.$container.css("background-image","url("+this.$img.attr("src")+")"),this.$container.css({backgroundPosition:"center center",backgroundRepeat:"no-repeat"}),this.$img.hide();break;case"stretch":this.$img.css({width:"100%",height:"100%"});break;case"fill":case"fit":this.needAlign=!0,this.align()}this.options.srcset&&this.$img.on("load",function(e){var e=e.target,w=e.naturalWidth||this.$img.width(),e=e.naturalHeight||this.$image.height();this.baseWidth=w,this.baseHeight=e,this.imgRatio=w/e,this.imgRatio2=e/w,this.align()}.bind(this))},p.align=function(){var contRatio;this.needAlign&&(this.cont_w=this.options.containerWidth?this.options.containerWidth():this.$container.width(),this.cont_h=this.options.containerHeight?this.options.containerHeight():this.$container.height(),contRatio=this.cont_w/this.cont_h,"fill"==this.type?this.imgRatio{window.CSSTween=function(element,duration,delay,ease){if(element.jquery){if(!element.length)return;element=element[0]}this.element=element,this.duration=duration||1e3,this.delay=delay||0,this.ease=ease||"linear"};var p=CSSTween.prototype;p.to=function(callback,target){return this.to_cb=callback,this.to_cb_target=target,this},p.from=function(callback,target){return this.fr_cb=callback,this.fr_cb_target=target,this},p.onComplete=function(callback,target){return this.oc_fb=callback,this.oc_fb_target=target,this},p.chain=function(csstween){return this.chained_tween=csstween,this},p.reset=function(){clearTimeout(this.start_to),clearTimeout(this.end_to)},p.start=function(){var element=this.element,that=(clearTimeout(this.start_to),clearTimeout(this.end_to),this.fresh=!0,this.fr_cb&&(element.style[window._jcsspfx+"TransitionDuration"]="0ms",this.fr_cb.call(this.fr_cb_target)),this);return this.onTransComplete=function(event){that.fresh&&(that.reset(),element.style[window._jcsspfx+"TransitionDuration"]="",element.style[window._jcsspfx+"TransitionProperty"]="",element.style[window._jcsspfx+"TransitionTimingFunction"]="",element.style[window._jcsspfx+"TransitionDelay"]="",that.fresh=!1,that.chained_tween&&that.chained_tween.start(),that.oc_fb)&&that.oc_fb.call(that.oc_fb_target)},this.start_to=setTimeout(function(){that.element&&(element.style[window._jcsspfx+"TransitionDuration"]=that.duration+"ms",element.style[window._jcsspfx+"TransitionProperty"]=that.transProperty||"all",0{var _cssanim=null;window.CTween={},CTween.animate=function(element,duration,properties,options){var tween,onCl;return null==_cssanim&&(_cssanim=window._cssanim),options=options||{},_cssanim?(tween=new CSSTween(element,duration,options.delay,EaseDic[options.ease]),options.transProperty&&(tween.transProperty=options.transProperty),tween.to(function(){element.css(properties)}),options.complete&&tween.onComplete(options.complete,options.target),tween.start(),tween.stop=tween.reset,tween):(options.delay&&element.delay(options.delay),options.complete&&(onCl=function(){options.complete.call(options.target)}),element.stop(!0).animate(properties,duration,options.ease||"linear",onCl),element)},CTween.fadeOut=function(target,duration,remove){var options={};!0===remove?options.complete=function(){target.remove()}:2===remove&&(options.complete=function(){target.css("display","none")}),CTween.animate(target,duration||1e3,{opacity:0},options)},CTween.fadeIn=function(target,duration,reset){!1!==reset&&target.css("opacity",0).css("display",""),CTween.animate(target,duration||1e3,{opacity:1})}})(),window.EaseDic={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",easeInCubic:"cubic-bezier(.55,.055,.675,.19)",easeOutCubic:"cubic-bezier(.215,.61,.355,1)",easeInOutCubic:"cubic-bezier(.645,.045,.355,1)",easeInCirc:"cubic-bezier(.6,.04,.98,.335)",easeOutCirc:"cubic-bezier(.075,.82,.165,1)",easeInOutCirc:"cubic-bezier(.785,.135,.15,.86)",easeInExpo:"cubic-bezier(.95,.05,.795,.035)",easeOutExpo:"cubic-bezier(.19,1,.22,1)",easeInOutExpo:"cubic-bezier(1,0,0,1)",easeInQuad:"cubic-bezier(.55,.085,.68,.53)",easeOutQuad:"cubic-bezier(.25,.46,.45,.94)",easeInOutQuad:"cubic-bezier(.455,.03,.515,.955)",easeInQuart:"cubic-bezier(.895,.03,.685,.22)",easeOutQuart:"cubic-bezier(.165,.84,.44,1)",easeInOutQuart:"cubic-bezier(.77,0,.175,1)",easeInQuint:"cubic-bezier(.755,.05,.855,.06)",easeOutQuint:"cubic-bezier(.23,1,.32,1)",easeInOutQuint:"cubic-bezier(.86,0,.07,1)",easeInSine:"cubic-bezier(.47,0,.745,.715)",easeOutSine:"cubic-bezier(.39,.575,.565,1)",easeInOutSine:"cubic-bezier(.445,.05,.55,.95)",easeInBack:"cubic-bezier(.6,-.28,.735,.045)",easeOutBack:"cubic-bezier(.175, .885,.32,1.275)",easeInOutBack:"cubic-bezier(.68,-.55,.265,1.55)"},(()=>{function SlickController(min,max,options){if(null===max||null===min)throw new Error("Max and Min values are required.");for(var key in this.options=options||{},_options)key in this.options||(this.options[key]=_options[key]);this._max_value=max,this._min_value=min,this.value=min,this.end_loc=min,this.current_snap=this.getSnapNum(min),this.__extrStep=0,this.__extraMove=0,this.__animID=-1}var _options={bouncing:!0,snapping:!1,snapsize:null,friction:.05,outFriction:.05,outAcceleration:.09,minValidDist:.3,snappingMinSpeed:2,paging:!1,endless:!1,maxSpeed:160},p=SlickController.prototype;p.changeTo=function(value,animate,speed,snap_num,dispatch){var self,active_id,amplitude,timeStep,targetPosition,timeconst,tick;this.stopped=!1,this._internalStop(),value=this._checkLimits(value),speed=Math.abs(speed||0),this.options.snapping&&(snap_num=snap_num||this.getSnapNum(value),!1!==dispatch&&this._callsnapChange(snap_num),this.current_snap=snap_num),animate?(this.animating=!0,active_id=++(self=this).__animID,amplitude=value-self.value,timeStep=0,targetPosition=value,dispatch=1-self.options.friction,timeconst=dispatch+(speed-20)*dispatch*1.3/self.options.maxSpeed,(tick=function(){var dis;active_id===self.__animID&&(dis=value-self.value,Math.abs(dis)>self.options.minValidDist&&self.animating?(window.requestAnimationFrame(tick),self.value=targetPosition-amplitude*Math.exp(-++timeStep*timeconst),self._callrenderer()):(self.animating&&(self.value=value,self._callrenderer()),self.animating=!1,active_id!==self.__animID&&(self.__animID=-1),self._callonComplete("anim")))})()):(this.value=value,this._callrenderer())},p.drag=function(move){this.start_drag&&(this.drag_start_loc=this.value,this.start_drag=!1),this.animating=!1,this._deceleration=!1,this.value-=move,!this.options.endless&&(this.value>this._max_value||this.value<0)?this.options.bouncing?(this.__isout=!0,this.value+=.6*move):this.value>this._max_value?this.value=this._max_value:this.value=0:!this.options.endless&&this.options.bouncing&&(this.__isout=!1),this._callrenderer()},p.push=function(speed){if(this.stopped=!1,this.options.snapping&&Math.abs(speed)<=this.options.snappingMinSpeed)this.cancel();else{if(this.__speed=speed,this.__startSpeed=speed,this.end_loc=this._calculateEnd(),this.options.snapping){var snap_loc=this.getSnapNum(this.value),end_snap=this.getSnapNum(this.end_loc);if(this.options.paging)return snap_loc=this.getSnapNum(this.drag_start_loc),this.__isout=!1,void(0this._min_value&&this.end_locthis._max_value?this._max_value-this.value>.1*snapsize?this.changeTo(this._max_value,!0):(this.__speed=8,this.__needsSnap=!1,this._startDecelaration()):this.gotoSnap(curr_snap+1,!0)},p.prevSnap=function(animate,speed){this._internalStop();var curr_snap=this.getSnapNum(this.value),snapsize=this.options.snapsize;!this.options.endless&&(curr_snap-1)*snapsize.1*snapsize?this.changeTo(this._min_value,!0):(this.__speed=-8,this.__needsSnap=!1,this._startDecelaration()):this.gotoSnap(curr_snap-1,!0)},p.gotoSnap=function(snap_num,animate,speed){this.changeTo(snap_num*this.options.snapsize,animate,speed,snap_num)},p.destroy=function(){this._internalStop(),this.__renderHook=null,this.__snapHook=null,this.__compHook=null},p._internalStop=function(){this.start_drag=!0,this.animating=!1,this._deceleration=!1,this.__extrStep=0},p._calculateExtraMove=function(value){value%=this.options.snapsize;return valuethis.options.minValidDist;)temp_value+=temp_speed,temp_speed*=this.options.friction,i++;return step?i:temp_value},p._checkLimits=function(value){return this.options.endless?value:valuethis._max_value?this._max_value:value},p._callrenderer=function(){this.__renderHook&&this.__renderHook.fun.call(this.__renderHook.ref,this,this.value)},p._callsnapChange=function(targetSnap){this.__snapHook&&targetSnap!==this.current_snap&&this.__snapHook.fun.call(this.__snapHook.ref,this,targetSnap,targetSnap-this.current_snap)},p._callonComplete=function(type){this.__compHook&&!this.stopped&&this.__compHook.fun.call(this.__compHook.ref,this,this.current_snap,type)},p._computeDeceleration=function(){var xtr_move;this.options.snapping&&this.__needsSnap?(xtr_move=(this.__startSpeed-this.__speed)/this.__startSpeed*this.__extraMove,this.value+=this.__speed+xtr_move-this.__extrStep,this.__extrStep=xtr_move):this.value+=this.__speed,this.__speed*=this.options.friction,this.options.endless||this.options.bouncing||(this.value<=this._min_value?(this.value=this._min_value,this.__speed=0):this.value>=this._max_value&&(this.value=this._max_value,this.__speed=0)),this._callrenderer(),!this.options.endless&&this.options.bouncing&&(xtr_move=0,this.valuethis._max_value&&(xtr_move=this._max_value-this.value),this.__isout=Math.abs(xtr_move)>=this.options.minValidDist,this.__isout)&&(this.__speed*xtr_move<=0?this.__speed+=xtr_move*this.options.outFriction:this.__speed=xtr_move*this.options.outAcceleration)},p._startDecelaration=function(){var self,tick;this._deceleration||(this._deceleration=!0,self=this,(tick=function(){self._deceleration&&(self._computeDeceleration(),Math.abs(self.__speed)>self.options.minValidDist||self.__isout?window.requestAnimationFrame(tick):(self._deceleration=!1,self.__isout=!1,self.__needsSnap&&self.options.snapping&&!self.options.paging?self.value=self._checkLimits(self.end_loc+self.__extraMove):self.value=Math.round(self.value),self._callrenderer(),self._callonComplete("decel")))})())},window.SlickController=SlickController})(),(e=>{var n="object"==typeof window&&window||"object"==typeof self&&self;"undefined"!=typeof exports?e(exports):n&&(n.hljs=e({}),"function"==typeof define)&&define.amd&&define([],function(){return n.hljs})})(function(e){function n(e){return e.replace(/&/gm,"&").replace(//gm,">")}function t(e){return e.nodeName.toLowerCase()}function r(e,n){e=e&&e.exec(n);return e&&0==e.index}function a(e){return/^(no-?highlight|plain|text)$/i.test(e)}function o(e,n){var t,r={};for(t in e)r[t]=e[t];if(n)for(t in n)r[t]=n[t];return r}function u(e){var n=[];return function r(e,a){for(var i=e.firstChild;i;i=i.nextSibling)3==i.nodeType?a+=i.nodeValue.length:1==i.nodeType&&(n.push({event:"start",offset:a,node:i}),a=r(i,a),t(i).match(/br|hr|img|input/)||n.push({event:"stop",offset:a,node:i}));return a}(e,0),n}function c(e,r,a){function i(){return e.length&&r.length?e[0].offset!=r[0].offset?e[0].offset"}function u(e){f+=""+t(e)+">"}function c(e){("start"==e.event?o:u)(e.node)}for(var s=0,f="",l=[];e.length||r.length;){var g=i();if(f+=n(a.substr(s,g[0].offset-s)),s=g[0].offset,g==e){for(l.reverse().forEach(u);c(g.splice(0,1)[0]),(g=i())==e&&g.length&&g[0].offset==s;);l.reverse().forEach(o)}else"start"==g[0].event?l.push(g[0].node):l.pop(),c(g.splice(0,1)[0])}return f+n(a.substr(s))}function s(e){function n(e){return e&&e.source||e}function t(t,r){return new RegExp(n(t),"m"+(e.cI?"i":"")+(r?"g":""))}!function r(a,i){var u,c,s;a.compiled||(a.compiled=!0,a.k=a.k||a.bK,a.k&&(u={},c=function(n,t){(t=e.cI?t.toLowerCase():t).split(" ").forEach(function(e){e=e.split("|"),u[e[0]]=[n,e[1]?Number(e[1]):1]})},"string"==typeof a.k?c("keyword",a.k):Object.keys(a.k).forEach(function(e){c(e,a.k[e])}),a.k=u),a.lR=t(a.l||/\w+/,!0),i&&(a.bK&&(a.b="\\b("+a.bK.split(" ").join("|")+")\\b"),a.b||(a.b=/\B|\b/),a.bR=t(a.b),a.e||a.eW||(a.e=/\B|\b/),a.e&&(a.eR=t(a.e)),a.tE=n(a.e)||"",a.eW)&&i.tE&&(a.tE+=(a.e?"|":"")+i.tE),a.i&&(a.iR=t(a.i)),void 0===a.r&&(a.r=1),a.c||(a.c=[]),s=[],a.c.forEach(function(e){e.v?e.v.forEach(function(n){s.push(o(e,n))}):s.push("self"==e?a:e)}),a.c=s,a.c.forEach(function(e){r(e,a)}),a.starts&&r(a.starts,i),i=a.c.map(function(e){return e.bK?"\\.?("+e.b+")\\.?":e.b}).concat([a.tE,a.i]).map(n).filter(Boolean),a.t=i.length?t(i.join("|"),!0):{exec:function(){return null}})}(e)}function f(e,t,a,i){function o(e,n){for(var t=0;t')+n+(t?"":"")}function h(){if(!k.k)return n(M);var e="",t=0;k.lR.lastIndex=0;for(var r=k.lR.exec(M);r;){e+=n(M.substr(t,r.index-t));var a=((e,n)=>(n=N.cI?n[0].toLowerCase():n[0],e.k.hasOwnProperty(n)&&e.k[n]))(k,r);a?(B+=a[1],e+=p(a[0],n(r[0]))):e+=n(r[0]),t=k.lR.lastIndex,r=k.lR.exec(M)}return e+n(M.substr(t))}function b(){var t,e;L+=void 0!==k.sL?(e="string"==typeof k.sL)&&!R[k.sL]?n(M):(t=e?f(k.sL,M,!0,y[k.sL]):l(M,k.sL.length?k.sL:void 0),0"),k.skip||(B+=k.r),(k=k.parent)!=r.parent;);return r.starts&&v(r.starts),e.rE?0:n.length}if(c(n,k))throw new Error('Illegal lexeme "'+n+'" for mode "'+(k.cN||"")+'"');return M+=n,n.length||1}var N=w(e);if(!N)throw new Error('Unknown language: "'+e+'"');s(N);for(var k=i||N,y={},L="",x=k;x!=N;x=x.parent)x.cN&&(L=p(x.cN,"",!0)+L);var M="",B=0;try{for(var C,j,I=0;k.t.lastIndex=I,C=k.t.exec(t);)j=m(t.substr(I,C.index-I),C[0]),I=C.index+j;for(m(t.substr(I)),x=k;x.parent;x=x.parent)x.cN&&(L+="");return{r:B,value:L,language:e,top:k}}catch(O){if(-1!=O.message.indexOf("Illegal"))return{r:0,value:n(t)};throw O}}function l(e,t){t=t||E.languages||Object.keys(R);var r={r:0,value:n(e)},a=r;return t.filter(w).forEach(function(n){var t=f(n,e,!1);t.language=n,t.r>a.r&&(a=t),t.r>r.r&&(a=r,r=t)}),a.language&&(r.second_best=a),r}function g(e){return E.tabReplace&&(e=e.replace(/^((<[^>]+>|\t)+)/gm,function(e,n){return n.replace(/\t/g,E.tabReplace)})),e=E.useBR?e.replace(/\n/g,"
"):e}function h(e){var r,o,t,h,n=(e=>{var n,r,i=e.className+" ";if(i+=e.parentNode?e.parentNode.className:"",e=/\blang(?:uage)?-([\w-]+)\b/i.exec(i))return w(e[1])?e[1]:"no-highlight";for(n=0,r=(i=i.split(/\s+/)).length;n/g,"\n"):t=e,r=t.textContent,o=n?f(n,r,!0):l(r),(t=u(t)).length&&((h=document.createElementNS("http://www.w3.org/1999/xhtml","div")).innerHTML=o.value,o.value=c(t,u(h),r)),o.value=g(o.value),e.innerHTML=o.value,e.className=((e,n,t)=>(n=n?x[n]:t,t=[e.trim()],e.match(/\bhljs\b/)||t.push("hljs"),-1===e.indexOf(n)&&t.push(n),t.join(" ").trim()))(e.className,n,o.language),e.result={language:o.language,re:o.r},o.second_best&&(e.second_best={language:o.second_best.language,re:o.second_best.r}))}function b(){var e;b.called||(b.called=!0,e=document.querySelectorAll("pre code"),Array.prototype.forEach.call(e,h))}function w(e){return e=(e||"").toLowerCase(),R[e]||R[x[e]]}var E={classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:void 0},R={},x={};return e.highlight=f,e.highlightAuto=l,e.fixMarkup=g,e.highlightBlock=h,e.configure=function(e){E=o(E,e)},e.initHighlighting=b,e.initHighlightingOnLoad=function(){addEventListener("DOMContentLoaded",b,!1),addEventListener("load",b,!1)},e.registerLanguage=function(n,t){(t=R[n]=t(e)).aliases&&t.aliases.forEach(function(e){x[e]=n})},e.listLanguages=function(){return Object.keys(R)},e.getLanguage=w,e.inherit=o,e.IR="[a-zA-Z]\\w*",e.UIR="[a-zA-Z_]\\w*",e.NR="\\b\\d+(\\.\\d+)?",e.CNR="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",e.BNR="\\b(0b[01]+)",e.RSR="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",e.BE={b:"\\\\[\\s\\S]",r:0},e.ASM={cN:"string",b:"'",e:"'",i:"\\n",c:[e.BE]},e.QSM={cN:"string",b:'"',e:'"',i:"\\n",c:[e.BE]},e.PWM={b:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|like)\b/},e.C=function(n,t,r){n=e.inherit({cN:"comment",b:n,e:t,c:[]},r||{});return n.c.push(e.PWM),n.c.push({cN:"doctag",b:"(?:TODO|FIXME|NOTE|BUG|XXX):",r:0}),n},e.CLCM=e.C("//","$"),e.CBCM=e.C("/\\*","\\*/"),e.HCM=e.C("#","$"),e.NM={cN:"number",b:e.NR,r:0},e.CNM={cN:"number",b:e.CNR,r:0},e.BNM={cN:"number",b:e.BNR,r:0},e.CSSNM={cN:"number",b:e.NR+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",r:0},e.RM={cN:"regexp",b:/\//,e:/\/[gimuy]*/,i:/\n/,c:[e.BE,{b:/\[/,e:/\]/,r:0,c:[e.BE]}]},e.TM={cN:"title",b:e.IR,r:0},e.UTM={cN:"title",b:e.UIR,r:0},e.METHOD_GUARD={b:"\\.\\s*"+e.UIR,r:0},e}),hljs.registerLanguage("xml",function(s){var t={eW:!0,i:/,r:0,c:[{cN:"attr",b:"[A-Za-z0-9\\._:-]+",r:0},{b:/=\s*/,r:0,c:[{cN:"string",endsParent:!0,v:[{b:/"/,e:/"/},{b:/'/,e:/'/},{b:/[^\s"'=<>`]+/}]}]}]};return{aliases:["html","xhtml","rss","atom","xsl","plist"],cI:!0,c:[{cN:"meta",b:"",r:10,c:[{b:"\\[",e:"\\]"}]},s.C("\x3c!--","--\x3e",{r:10}),{b:"<\\!\\[CDATA\\[",e:"\\]\\]>",r:10},{b:/<\?(php)?/,e:/\?>/,sL:"php",c:[{b:"/\\*",e:"\\*/",skip:!0}]},{cN:"tag",b:"",rE:!0,sL:["css","xml"]}},{cN:"tag",b:"