"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='<p>x</p><style id="fit-vids-style">.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}</style>',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('<div class="fluid-width-video-wrapper"></div>').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<lowestDelta)&&shouldAdjustOldDeltas(orgEvent,lowestDelta=lineHeight)&&(lowestDelta/=40),shouldAdjustOldDeltas(orgEvent,lineHeight)&&(delta/=40,deltaX/=40,deltaY/=40),delta=Math[1<=delta?"floor":"ceil"](delta/lowestDelta),deltaX=Math[1<=deltaX?"floor":"ceil"](deltaX/lowestDelta),deltaY=Math[1<=deltaY?"floor":"ceil"](deltaY/lowestDelta),special.settings.normalizeOffset&&this.getBoundingClientRect&&(orgEvent=this.getBoundingClientRect(),event.offsetX=event.clientX-orgEvent.left,event.offsetY=event.clientY-orgEvent.top),event.deltaX=deltaX,event.deltaY=deltaY,event.deltaFactor=lowestDelta,event.deltaMode=0,args.unshift(event,delta,deltaX,deltaY),nullLowestDeltaTimeout&&window.clearTimeout(nullLowestDeltaTimeout),nullLowestDeltaTimeout=window.setTimeout(nullLowestDelta,200),($.event.dispatch||$.event.handle).apply(this,args)}function nullLowestDelta(){lowestDelta=null}function shouldAdjustOldDeltas(orgEvent,absDelta){return special.settings.adjustOldDeltas&&"mousewheel"===orgEvent.type&&absDelta%120==0}$.fn.extend({mousewheel:function(fn){return fn?this.on("mousewheel",fn):this.trigger("mousewheel")},unmousewheel:function(fn){return this.off("mousewheel",fn)}})}),((a,b)=>{"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<f;c++)(callback_params=d).splice(0,0,a[c]),e.push(b.apply(this,callback_params));return e}function c(a){for(var c=[],b=0;b<a.length;b++)c=c.concat(a[b]);return c}function f(a,b){for(var c=0;c<a.length;c++)a[c]instanceof google.maps.LatLng||(0<a[c].length&&"object"==typeof a[c][0]?a[c]=f(a[c],b):a[c]=((a,b)=>{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<n.indexOf("#")?this.el=h(n,b.context):this.el=function(a,b){a=a.replace(".","");return("jQuery"in this&&b?$("."+a,b):document.getElementsByClassName(a))[0]}.apply(this,[n,b.context]):this.el=n,null==this.el)throw"No element defined.";for(window.context_menu=window.context_menu||{},window.context_menu[j.el.id]={},this.controls=[],this.overlays=[],this.layers=[],this.singleLayers={},this.markers=[],this.polylines=[],this.routes=[],this.polygons=[],this.infoWindow=null,this.overlay_el=null,this.zoom=b.zoom,this.registered_events={},this.el.style.width=b.width||this.el.scrollWidth||this.el.offsetWidth,this.el.style.height=b.height||this.el.scrollHeight||this.el.offsetHeight,google.maps.visualRefresh=b.enableNewStyle,e=0;e<m.length;e++)delete b[m[e]];for(1!=b.disableDefaultUI&&(q=a(q,p)),A=a(q,b),e=0;e<k.length;e++)delete A[k[e]];for(e=0;e<l.length;e++)delete A[l[e]];function D(a,b){var f,c="",d=window.context_menu[j.el.id][a];for(e in d)d.hasOwnProperty(e)&&(f=d[e],c+='<li><a id="'+a+"_"+e+'" href="#">'+f.title+"</a></li>");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<l;e++){var m=k[e];google.maps.event.clearListeners(m,"click"),google.maps.event.addDomListenerOnce(m,"click",function(c){c.preventDefault(),d[this.id.replace(a+"_","")].action.apply(j,[b]),j.hideContextMenu()},!1)}var o=function(a){var d,e,f,b=0,c=0;if(a.getBoundingClientRect)return d=a.getBoundingClientRect(),e=-(window.scrollX||window.pageXOffset),f=-(window.scrollY||window.pageYOffset),[d.left-e,d.top-f];if(a.offsetParent)for(;b+=a.offsetLeft,c+=a.offsetTop,a=a.offsetParent;);return[b,c]}.apply(this,[j.el]),p=o[0]+b.pixel.x-15,o=o[1]+b.pixel.y-15;g.style.left=p+"px",g.style.top=o+"px"}}function E(a,c){google.maps.event.addListener(a,c,function(a){b[c].apply(this,[a=null==a?this:a]),j.hideContextMenu()})}this.map=new google.maps.Map(this.el,A),o&&(this.markerClusterer=o.apply(this,[this.map])),this.buildContextMenu=function(a,b){"marker"===a?(b.pixel={},(c=new google.maps.OverlayView).setMap(j.map),c.draw=function(){var d=c.getProjection(),e=b.marker.getPosition();b.pixel=d.fromLatLngToContainerPixel(e),D(a,b)}):D(a,b);var c,d=h("gmaps_context_menu");setTimeout(function(){d.style.display="block"},0)},this.setContextMenu=function(a){window.context_menu[j.el.id][a.control]={};var b,e,d=c.createElement("ul");for(b in a.options)a.options.hasOwnProperty(b)&&(e=a.options[b],window.context_menu[j.el.id][a.control][e.name]={title:e.title,action:e.action});d.id="gmaps_context_menu",d.style.display="none",d.style.position="absolute",d.style.minWidth="100px",d.style.background="white",d.style.listStyle="none",d.style.padding="8px",d.style.boxShadow="2px 2px 6px #ccc",h("gmaps_context_menu")||c.body.appendChild(d);var f=h("gmaps_context_menu");google.maps.event.addDomListener(f,"mouseout",function(a){a.relatedTarget&&this.contains(a.relatedTarget)||window.setTimeout(function(){f.style.display="none"},400)},!1)},this.hideContextMenu=function(){var a=h("gmaps_context_menu");a&&(a.style.display="none")},google.maps.event.addListener(this.map,"zoom_changed",this.hideContextMenu);for(var F=0;F<k.length;F++)(G=k[F])in b&&E(this.map,G);for(var G,F=0;F<l.length;F++)(G=l[F])in b&&E(this.map,G);google.maps.event.addListener(this.map,"rightclick",function(a){b.rightclick&&b.rightclick.apply(this,[a]),null!=window.context_menu[j.el.id].map&&j.buildContextMenu("map",a)}),this.refresh=function(){google.maps.event.trigger(this.map,"resize")},this.fitZoom=function(){for(var b=[],c=this.markers.length,a=0;a<c;a++)"boolean"==typeof this.markers[a].visible&&this.markers[a].visible&&b.push(this.markers[a].getPosition());this.fitLatLngBounds(b)},this.fitLatLngBounds=function(a){for(var c=a.length,d=new google.maps.LatLngBounds,b=0;b<c;b++)d.extend(a[b]);this.map.fitBounds(d)},this.setCenter=function(a,b,c){this.map.panTo(new google.maps.LatLng(a,b)),c&&c()},this.getElement=function(){return this.el},this.zoomIn=function(a){a=a||1,this.zoom=this.map.getZoom()+a,this.map.setZoom(this.zoom)},this.zoomOut=function(a){a=a||1,this.zoom=this.map.getZoom()-a,this.map.setZoom(this.zoom)};var H,I=[];for(H in this.map)"function"!=typeof this.map[H]||this[H]||I.push(H);for(e=0;e<I.length;e++)((a,b,c)=>{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<this.controls.length;b++)this.controls[b]==a&&(c=this.controls[b].position,this.controls.splice(b,1));if(c)for(b=0;b<this.map.controls.length;b++){var d=this.map.controls[a.position];if(d.getAt(b)==a){d.removeAt(b);break}}return a},j.prototype.createMarker=function(b){if(null==b.lat&&null==b.lng&&null==b.position)throw"No latitude or longitude defined.";var c=this,d=b.details,e=b.fences,f=b.outside,g={position:new google.maps.LatLng(b.lat,b.lng),map:null},g=a(g,b),i=(delete g.lat,delete g.lng,delete g.fences,delete g.outside,new google.maps.Marker(g));if(i.fences=e,b.infoWindow){i.infoWindow=new google.maps.InfoWindow(b.infoWindow);for(var j=["closeclick","content_changed","domready","position_changed","zindex_changed"],k=0;k<j.length;k++)((a,c)=>{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<l.length;k++)(c=>{b[c]&&google.maps.event.addListener(i,c,function(){b[c].apply(this,[this])})})(l[k]);for(k=0;k<m.length;k++)((a,d)=>{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<this.markers.length;b++)if(this.markers[b]===a){this.markers[b].setMap(null),this.markers.splice(b,1),this.markerClusterer&&this.markerClusterer.removeMarker(a),j.fire("marker_removed",a,this);break}return a},j.prototype.removeMarkers=function(a){var b=[];if(void 0===a){for(var c=0;c<this.markers.length;c++)(d=this.markers[c]).setMap(null),j.fire("marker_removed",d,this);this.markerClusterer&&this.markerClusterer.clearMarkers&&this.markerClusterer.clearMarkers()}else{for(c=0;c<a.length;c++){var e=this.markers.indexOf(a[c]);-1<e&&((d=this.markers[e]).setMap(null),this.markerClusterer&&this.markerClusterer.removeMarker(d),j.fire("marker_removed",d,this))}for(var d,c=0;c<this.markers.length;c++)null!=(d=this.markers[c]).getMap()&&b.push(d)}this.markers=b},j.prototype.drawOverlay=function(a){var b=new google.maps.OverlayView,c=!0;return b.setMap(this.map),null!=a.auto_show&&(c=a.auto_show),b.onAdd=function(){var c=document.createElement("div"),d=(c.style.borderStyle="none",c.style.borderWidth="0px",c.style.position="absolute",c.style.zIndex=100,c.innerHTML=a.content,b.el=c,a.layer||(a.layer="overlayLayer"),this.getPanes()),e=d[a.layer],f=["contextmenu","DOMMouseScroll","dblclick","mousedown"];e.appendChild(c);for(var g=0;g<f.length;g++)google.maps.event.addDomListener(c,f[g],function(a){-1!=navigator.userAgent.toLowerCase().indexOf("msie")&&document.all?(a.cancelBubble=!0,a.returnValue=!1):a.stopPropagation()});a.click&&(d.overlayMouseTarget.appendChild(b.el),google.maps.event.addDomListener(b.el,"click",function(){a.click.apply(b,[b])})),google.maps.event.trigger(this,"ready")},b.draw=function(){var e=this.getProjection().fromLatLngToDivPixel(new google.maps.LatLng(a.lat,a.lng)),f=(a.horizontalOffset=a.horizontalOffset||0,a.verticalOffset=a.verticalOffset||0,b.el),g=f.children[0],h=g.clientHeight,i=g.clientWidth;switch(a.verticalAlign){case"top":f.style.top=e.y-h+a.verticalOffset+"px";break;default:case"middle":f.style.top=e.y-h/2+a.verticalOffset+"px";break;case"bottom":f.style.top=e.y+a.verticalOffset+"px"}switch(a.horizontalAlign){case"left":f.style.left=e.x-i+a.horizontalOffset+"px";break;default:case"center":f.style.left=e.x-i/2+a.horizontalOffset+"px";break;case"right":f.style.left=e.x+a.horizontalOffset+"px"}f.style.display=c?"block":"none",c||a.show.apply(this,[f])},b.onRemove=function(){var c=b.el;a.remove?a.remove.apply(this,[c]):(b.el.parentNode.removeChild(b.el),b.el=null)},this.overlays.push(b),b},j.prototype.removeOverlay=function(a){for(var b=0;b<this.overlays.length;b++)if(this.overlays[b]===a){this.overlays[b].setMap(null),this.overlays.splice(b,1);break}},j.prototype.removeOverlays=function(){for(var a,b=0;a=this.overlays[b];b++)a.setMap(null);this.overlays=[]},j.prototype.drawPolyline=function(a){var b=[],c=a.path;if(c.length)if(void 0===c[0][0])b=c;else for(var d,e=0;d=c[e];e++)b.push(new google.maps.LatLng(d[0],d[1]));var f={map:this.map,path:b,strokeColor:a.strokeColor,strokeOpacity:a.strokeOpacity,strokeWeight:a.strokeWeight,geodesic:a.geodesic,clickable:!0,editable:!1,visible:!0};a.hasOwnProperty("clickable")&&(f.clickable=a.clickable),a.hasOwnProperty("editable")&&(f.editable=a.editable),a.hasOwnProperty("icons")&&(f.icons=a.icons),a.hasOwnProperty("zIndex")&&(f.zIndex=a.zIndex);for(var g=new google.maps.Polyline(f),h=["click","dblclick","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"],i=0;i<h.length;i++)(c=>{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<this.polylines.length;b++)if(this.polylines[b]===a){this.polylines[b].setMap(null),this.polylines.splice(b,1),j.fire("polyline_removed",a,this);break}},j.prototype.removePolylines=function(){for(var a,b=0;a=this.polylines[b];b++)a.setMap(null);this.polylines=[]},j.prototype.drawCircle=function(b){delete(b=a({map:this.map,center:new google.maps.LatLng(b.lat,b.lng)},b)).lat,delete b.lng;for(var c=new google.maps.Circle(b),d=["click","dblclick","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"],e=0;e<d.length;e++)((a,c)=>{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<e.length;f++)(c=>{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.paths.length&&0<d.paths[0].length&&(d.paths=c(b(d.paths,f,e)));for(var g=new google.maps.Polygon(d),h=["click","dblclick","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"],i=0;i<h.length;i++)(b=>{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<this.polygons.length;b++)if(this.polygons[b]===a){this.polygons[b].setMap(null),this.polygons.splice(b,1),j.fire("polygon_removed",a,this);break}},j.prototype.removePolygons=function(){for(var a,b=0;a=this.polygons[b];b++)a.setMap(null);this.polygons=[]},j.prototype.getFromFusionTables=function(a){var b=a.events;delete a.events;var e,d=new google.maps.FusionTablesLayer(a);for(e in b)(c=>{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<this.layers.length;b++)if(this.layers[b]===a){this.layers[b].setMap(null),this.layers.splice(b,1);break}},j.prototype.getRoutes=function(b){switch(b.travelMode){case"bicycling":k=google.maps.TravelMode.BICYCLING;break;case"transit":k=google.maps.TravelMode.TRANSIT;break;case"driving":k=google.maps.TravelMode.DRIVING;break;default:k=google.maps.TravelMode.WALKING}l="imperial"===b.unitSystem?google.maps.UnitSystem.IMPERIAL:google.maps.UnitSystem.METRIC;var d=a({avoidHighways:!1,avoidTolls:!1,optimizeWaypoints:!1,waypoints:[]},b),e=(d.origin=/string/.test(typeof b.origin)?b.origin:new google.maps.LatLng(b.origin[0],b.origin[1]),d.destination=/string/.test(typeof b.destination)?b.destination:new google.maps.LatLng(b.destination[0],b.destination[1]),d.travelMode=k,d.unitSystem=l,delete d.callback,delete d.error,[]);(new google.maps.DirectionsService).route(d,function(a,c){if(c===google.maps.DirectionsStatus.OK){for(var d in a.routes)a.routes.hasOwnProperty(d)&&e.push(a.routes[d]);b.callback&&b.callback(e,a,c)}else b.error&&b.error(a,c)})},j.prototype.removeRoutes=function(){this.routes.length=0},j.prototype.getElevations=function(d){0<(d=a({locations:[],path:!1,samples:256},d)).locations.length&&0<d.locations[0].length&&(d.locations=c(b([d.locations],f,!1)));var h,e=d.callback,g=(delete d.callback,new google.maps.ElevationService);d.path?(h={path:d.locations,samples:d.samples},g.getElevationAlongPath(h,function(a,b){e&&"function"==typeof e&&e(a,b)})):(delete d.path,delete d.samples,g.getElevationForLocations(d,function(a,b){e&&"function"==typeof e&&e(a,b)}))},j.prototype.cleanRoute=j.prototype.removePolylines,j.prototype.renderRoute=function(b,c){var d,e="string"==typeof c.panel?document.getElementById(c.panel.replace("#","")):c.panel;c.panel=e,c=a({map:this.map},c),d=new google.maps.DirectionsRenderer(c),this.getRoutes({origin:b.origin,destination:b.destination,travelMode:b.travelMode,waypoints:b.waypoints,unitSystem:b.unitSystem,error:b.error,avoidHighways:b.avoidHighways,avoidTolls:b.avoidTolls,optimizeWaypoints:b.optimizeWaypoints,callback:function(a,b,c){c===google.maps.DirectionsStatus.OK&&d.setDirections(b)}})},j.prototype.drawRoute=function(a){var b=this;this.getRoutes({origin:a.origin,destination:a.destination,travelMode:a.travelMode,waypoints:a.waypoints,unitSystem:a.unitSystem,error:a.error,avoidHighways:a.avoidHighways,avoidTolls:a.avoidTolls,optimizeWaypoints:a.optimizeWaypoints,callback:function(c){var d;0<c.length&&(d={path:c[c.length-1].overview_path,strokeColor:a.strokeColor,strokeOpacity:a.strokeOpacity,strokeWeight:a.strokeWeight},a.hasOwnProperty("icons")&&(d.icons=a.icons),b.drawPolyline(d),a.callback)&&a.callback(c[c.length-1])}})},j.prototype.travelRoute=function(a){if(a.origin&&a.destination)this.getRoutes({origin:a.origin,destination:a.destination,travelMode:a.travelMode,waypoints:a.waypoints,unitSystem:a.unitSystem,error:a.error,callback:function(b){if(0<b.length&&a.start&&a.start(b[b.length-1]),0<b.length&&a.step){var c=b[b.length-1];if(0<c.legs.length)for(var d,e=c.legs[0].steps,f=0;d=e[f];f++)d.step_number=f,a.step(d,c.legs[0].steps.length-1)}0<b.length&&a.end&&a.end(b[b.length-1])}});else if(a.route&&0<a.route.legs.length)for(var b,c=a.route.legs[0].steps,d=0;b=c[d];d++)b.step_number=d,a.step(b)},j.prototype.drawSteppedRoute=function(a){var b=this;if(a.origin&&a.destination)this.getRoutes({origin:a.origin,destination:a.destination,travelMode:a.travelMode,waypoints:a.waypoints,error:a.error,callback:function(c){if(0<c.length&&a.start&&a.start(c[c.length-1]),0<c.length&&a.step){var d=c[c.length-1];if(0<d.legs.length)for(var e,f=d.legs[0].steps,g=0;e=f[g];g++){e.step_number=g;var h={path:e.path,strokeColor:a.strokeColor,strokeOpacity:a.strokeOpacity,strokeWeight:a.strokeWeight};a.hasOwnProperty("icons")&&(h.icons=a.icons),b.drawPolyline(h),a.step(e,d.legs[0].steps.length-1)}}0<c.length&&a.end&&a.end(c[c.length-1])}});else if(a.route&&0<a.route.legs.length)for(var c,d=a.route.legs[0].steps,e=0;c=d[e];e++){c.step_number=e;var f={path:c.path,strokeColor:a.strokeColor,strokeOpacity:a.strokeOpacity,strokeWeight:a.strokeWeight};a.hasOwnProperty("icons")&&(f.icons=a.icons),b.drawPolyline(f),a.step(c)}},j.Route=function(a){this.origin=a.origin,this.destination=a.destination,this.waypoints=a.waypoints,this.map=a.map,this.route=a.route,this.step_count=0,this.steps=this.route.legs[0].steps,this.steps_length=this.steps.length;var b={path:new google.maps.MVCArray,strokeColor:a.strokeColor,strokeOpacity:a.strokeOpacity,strokeWeight:a.strokeWeight};a.hasOwnProperty("icons")&&(b.icons=a.icons),this.polyline=this.map.drawPolyline(b).getPath()},j.Route.prototype.getRoute=function(a){var b=this;this.map.getRoutes({origin:this.origin,destination:this.destination,travelMode:a.travelMode,waypoints:this.waypoints||[],error:a.error,callback:function(){b.route=e[0],a.callback&&a.callback.call(b)}})},j.Route.prototype.back=function(){if(0<this.step_count){this.step_count--;var b,a=this.route.legs[0].steps[this.step_count].path;for(b in a)a.hasOwnProperty(b)&&this.polyline.pop()}},j.Route.prototype.forward=function(){if(this.step_count<this.steps_length){var b,a=this.route.legs[0].steps[this.step_count].path;for(b in a)a.hasOwnProperty(b)&&this.polyline.push(a[b]);this.step_count++}},j.prototype.checkGeofence=function(a,b,c){return c.containsLatLng(new google.maps.LatLng(a,b))},j.prototype.checkMarkerGeofence=function(a,b){if(a.fences)for(var c,d=0;c=a.fences[d];d++){var e=a.getPosition();this.checkGeofence(e.lat(),e.lng(),c)||b(a,c)}},j.prototype.toImage=function(a){var a=a||{},b={};if(b.size=a.size||[this.el.clientWidth,this.el.clientHeight],b.lat=this.getCenter().lat(),b.lng=this.getCenter().lng(),0<this.markers.length){b.markers=[];for(var c=0;c<this.markers.length;c++)b.markers.push({lat:this.markers[c].getPosition().lat(),lng:this.markers[c].getPosition().lng()})}return 0<this.polylines.length&&(a=this.polylines[0],b.polyline={},b.polyline.path=google.maps.geometry.encoding.encodePath(a.getPath()),b.polyline.strokeColor=a.strokeColor,b.polyline.strokeOpacity=a.strokeOpacity,b.polyline.strokeWeight=a.strokeWeight),j.staticMapURL(b)},j.staticMapURL=function(a){function b(a,b){if("#"===a[0]&&(a=a.replace("#","0x"),b)){if(b=parseFloat(b),0===(b=Math.min(1,Math.max(b,0))))return"0x00000000";1===(b=(255*b).toString(16)).length&&(b+=b),a=a.slice(0,8)+b}return a}var d=[],e=("file:"===location.protocol?"http:":location.protocol)+"//maps.googleapis.com/maps/api/staticmap",f=(a.url&&(e=a.url,delete a.url),e+="?",a.markers),g=(delete a.markers,!f&&a.marker&&(f=[a.marker],delete a.marker),a.styles),h=(delete a.styles,a.polyline),i=(delete a.polyline,a.center?(d.push("center="+a.center),delete a.center):a.address?(d.push("center="+a.address),delete a.address):a.lat?(d.push(["center=",a.lat,",",a.lng].join("")),delete a.lat,delete a.lng):a.visible&&(i=encodeURI(a.visible.join("|")),d.push("visible="+i)),a.size),i=(i?(i.join&&(i=i.join("x")),delete a.size):i="630x300",d.push("size="+i),a.zoom||!1===a.zoom||(a.zoom=15),!a.hasOwnProperty("sensor")||!!a.sensor);for(l in delete a.sensor,d.push("sensor="+i),a)a.hasOwnProperty(l)&&d.push(l+"="+a[l]);if(f)for(var m,n,o=0;c=f[o];o++){for(var l in m=[],c.size&&"normal"!==c.size?(m.push("size:"+c.size),delete c.size):c.icon&&(m.push("icon:"+encodeURI(c.icon)),delete c.icon),c.color&&(m.push("color:"+c.color.replace("#","0x")),delete c.color),c.label&&(m.push("label:"+c.label[0].toUpperCase()),delete c.label),n=c.address||c.lat+","+c.lng,delete c.address,delete c.lat,delete c.lng,c)c.hasOwnProperty(l)&&m.push(l+":"+c[l]);m.length||0===o?(m.push(n),m=m.join("|"),d.push("markers="+encodeURI(m))):(m=d.pop()+encodeURI("|"+n),d.push(m))}if(g)for(o=0;o<g.length;o++){var p=[];g[o].featureType&&p.push("feature:"+g[o].featureType.toLowerCase()),g[o].elementType&&p.push("element:"+g[o].elementType.toLowerCase());for(var q=0;q<g[o].stylers.length;q++)for(var r in g[o].stylers[q]){var s=g[o].stylers[q][r];"hue"!=r&&"color"!=r||(s="0x"+s.substring(1)),p.push(r+":"+s)}var t=p.join("|");""!=t&&d.push("style="+t)}if(h){var c=h,h=[],w=(c.strokeWeight&&h.push("weight:"+parseInt(c.strokeWeight,10)),c.strokeColor&&(i=b(c.strokeColor,c.strokeOpacity),h.push("color:"+i)),c.fillColor&&(i=b(c.fillColor,c.fillOpacity),h.push("fillcolor:"+i)),c.path);if(w.join)for(var x,q=0;x=w[q];q++)h.push(x.join(","));else h.push("enc:"+w);h=h.join("|"),d.push("path="+encodeURI(h))}i=window.devicePixelRatio||1;return d.push("scale="+i),e+(d=d.join("&"))},j.prototype.addMapType=function(a,b){if(!b.hasOwnProperty("getTileUrl")||"function"!=typeof b.getTileUrl)throw"'getTileUrl' function required.";b.tileSize=b.tileSize||new google.maps.Size(256,256);b=new google.maps.ImageMapType(b);this.map.mapTypes.set(a,b)},j.prototype.addOverlayMapType=function(a){if(!a.hasOwnProperty("getTile")||"function"!=typeof a.getTile)throw"'getTile' function required.";var b=a.index;delete a.index,this.map.overlayMapTypes.insertAt(b,a)},j.prototype.removeOverlayMapType=function(a){this.map.overlayMapTypes.removeAt(a)},j.prototype.addStyle=function(a){var b=new google.maps.StyledMapType(a.styles,{name:a.styledMapName});this.map.mapTypes.set(a.mapTypeId,b)},j.prototype.setStyle=function(a){this.map.setMapTypeId(a)},j.prototype.createPanorama=function(a){return a.hasOwnProperty("lat")&&a.hasOwnProperty("lng")||(a.lat=this.getCenter().lat(),a.lng=this.getCenter().lng()),this.panorama=j.createPanorama(a),this.map.setStreetView(this.panorama),this.panorama},j.createPanorama=function(b){var c=h(b.el,b.context);b.position=new google.maps.LatLng(b.lat,b.lng),delete b.el,delete b.context,delete b.lat,delete b.lng;for(var d=["closeclick","links_changed","pano_changed","position_changed","pov_changed","resize","visible_changed"],e=a({visible:!0},b),f=0;f<d.length;f++)delete e[d[f]];for(var g=new google.maps.StreetViewPanorama(c,e),f=0;f<d.length;f++)(c=>{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<d.length;e++)((a,b,c)=>{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<d.getLength();e++)for(var b=d.getAt(e),f=0;f<b.getLength();f++)c.extend(b.getAt(f));return c}),google.maps.Polygon.prototype.containsLatLng||(google.maps.Polygon.prototype.containsLatLng=function(a){var b=this.getBounds();if(null!==b&&!b.contains(a))return!1;for(var c=!1,d=this.getPaths().getLength(),e=0;e<d;e++)for(var f=this.getPaths().getAt(e),g=f.getLength(),h=g-1,i=0;i<g;i++){var j=f.getAt(i),k=f.getAt(h);(j.lng()<a.lng()&&k.lng()>=a.lng()||k.lng()<a.lng()&&j.lng()>=a.lng())&&j.lat()+(a.lng()-j.lng())/(k.lng()-j.lng())*(k.lat()-j.lat())<a.lat()&&(c=!c),h=i}return c}),google.maps.Circle.prototype.containsLatLng||(google.maps.Circle.prototype.containsLatLng=function(a){return!google.maps.geometry||google.maps.geometry.spherical.computeDistanceBetween(this.getCenter(),a)<=this.getRadius()}),google.maps.Rectangle.prototype.containsLatLng=function(a){return this.getBounds().contains(a)},google.maps.LatLngBounds.prototype.containsLatLng=function(a){return this.contains(a)},google.maps.Marker.prototype.setFences=function(a){this.fences=a},google.maps.Marker.prototype.addFence=function(a){this.fences.push(a)},google.maps.Marker.prototype.getId=function(){return this.__gm_id}),Array.prototype.indexOf||(Array.prototype.indexOf=function(a){if(null==this)throw new TypeError;var b=Object(this),c=b.length>>>0;if(0!=c){var d=0;if(1<arguments.length&&((d=Number(arguments[1]))!=d?d=0:0!=d&&d!=1/0&&d!=-1/0&&(d=(0<d||-1)*Math.floor(Math.abs(d)))),!(c<=d))for(var e=0<=d?d:Math.max(c-Math.abs(d),0);e<c;e++)if(e in b&&b[e]===a)return e}return-1}),j}),(()=>{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('<div class="js-tilt-glare"><div class="js-tilt-glare-inner"></div></div>'),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=0<rows.length?rows[rows.length-1]:null;null!==lastRow&&Math.floor(Math.abs(lastTop-top))<=1?rows[rows.length-1]=lastRow.add($that):rows.push($that),lastTop=top}),rows}function _parseOptions(options){var opts={byRow:!0,property:"height",target:null,remove:!1};return"object"==typeof options?$.extend(opts,options):("boolean"==typeof options?opts.byRow=options:"remove"===options&&(opts.remove=!0),opts)}function _update(event){matchHeight._beforeUpdate&&matchHeight._beforeUpdate(event,matchHeight._groups),$.each(matchHeight._groups,function(){matchHeight._apply(this.elements,this.options)}),matchHeight._afterUpdate&&matchHeight._afterUpdate(event,matchHeight._groups)}var _previousResizeWidth=-1,_updateTimeout=-1,matchHeight=$.fn.matchHeight=function(options){var that,options=_parseOptions(options);return options.remove?((that=this).css(options.property,""),$.each(matchHeight._groups,function(key,group){group.elements=group.elements.not(that)})):this.length<=1&&!options.target||(matchHeight._groups.push({elements:this,options:options}),matchHeight._apply(this,options)),this},on=(matchHeight.version="0.7.2",matchHeight._groups=[],matchHeight._throttle=80,matchHeight._maintainScroll=!1,matchHeight._beforeUpdate=null,matchHeight._afterUpdate=null,matchHeight._rows=_rows,matchHeight._parse=_parse,matchHeight._parseOptions=_parseOptions,matchHeight._apply=function(elements,options){var opts=_parseOptions(options),options=$(elements),elements=[options],scrollTop=$(window).scrollTop(),htmlHeight=$("html").outerHeight(!0),$hiddenParents=options.parents().filter(":hidden");return $hiddenParents.each(function(){var $that=$(this);$that.data("style-cache",$that.attr("style"))}),$hiddenParents.css("display","block"),opts.byRow&&!opts.target&&(options.each(function(){var $that=$(this),display=$that.css("display");"inline-block"!==display&&"flex"!==display&&"inline-flex"!==display&&(display="block"),$that.data("style-cache",$that.attr("style")),$that.css({display:display,"padding-top":"0","padding-bottom":"0","margin-top":"0","margin-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px",overflow:"hidden"})}),elements=_rows(options),options.each(function(){var $that=$(this);$that.attr("style",$that.data("style-cache")||"")})),$.each(elements,function(key,row){var row=$(row),targetHeight=0;if(opts.target)targetHeight=opts.target.outerHeight(!1);else{if(opts.byRow&&row.length<=1)return void row.css(opts.property,"");row.each(function(){var $that=$(this),style=$that.attr("style"),display=$that.css("display"),display={display:display="inline-block"!==display&&"flex"!==display&&"inline-flex"!==display?"block":display};display[opts.property]="",$that.css(display),$that.outerHeight(!1)>targetHeight&&(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<listeners.length;i++){var listener=listeners[i];onceListeners&&onceListeners[listener]&&(this.off(eventName,listener),delete onceListeners[listener]),listener.apply(this,args)}return this}},proto.allOff=function(){delete this._events,delete this._onceEvents},EvEmitter}),((window,factory)=>{"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<measurementsLength;i++)size[measurements[i]]=0;return size})();for(var size={},elem=(size.width=elem.offsetWidth,size.height=elem.offsetHeight,size.isBorderBox="border-box"==style.boxSizing),i=0;i<measurementsLength;i++){var measurement=measurements[i],value=style[measurement],value=parseFloat(value);size[measurement]=isNaN(value)?0:value}var paddingWidth=size.paddingLeft+size.paddingRight,paddingHeight=size.paddingTop+size.paddingBottom,marginWidth=size.marginLeft+size.marginRight,marginHeight=size.marginTop+size.marginBottom,borderWidth=size.borderLeftWidth+size.borderRightWidth,borderHeight=size.borderTopWidth+size.borderBottomWidth,elem=elem&&isBoxSizeOuter,styleWidth=getStyleSize(style.width),styleWidth=(!1!==styleWidth&&(size.width=styleWidth+(elem?0:paddingWidth+borderWidth)),getStyleSize(style.height));return!1!==styleWidth&&(size.height=styleWidth+(elem?0:paddingHeight+borderHeight)),size.innerWidth=size.width-(paddingWidth+borderWidth),size.innerHeight=size.height-(paddingHeight+borderHeight),size.outerWidth=size.width+marginWidth,size.outerHeight=size.height+marginHeight,size}}return getSize}),((window,factory)=>{"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<prefixes.length;i++){var method=prefixes[i]+"MatchesSelector";if(ElemProto[method])return method}})();return function(elem,selector){return elem[matchesMethod](selector)}}),((window,factory)=>{"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<childElems.length;i++)ffElems.push(childElems[i])}else ffElems.push(elem)}),ffElems},utils.debounceMethod=function(_class,methodName,threshold){threshold=threshold||100;var method=_class.prototype[methodName],timeoutName=methodName+"Timeout";_class.prototype[methodName]=function(){var timeout=this[timeoutName],args=(clearTimeout(timeout),arguments),_this=this;this[timeoutName]=setTimeout(function(){method.apply(_this,args),delete _this[timeoutName]},threshold)}},utils.docReady=function(callback){var readyState=document.readyState;"complete"==readyState||"interactive"==readyState?setTimeout(callback):document.addEventListener("DOMContentLoaded",callback)},utils.toDashed=function(str){return str.replace(/(.)([A-Z])/g,function(match,$1,$2){return $1+"-"+$2}).toLowerCase()},window.console);return utils.htmlInit=function(WidgetClass,namespace){utils.docReady(function(){var dashedNamespace=utils.toDashed(namespace),dataAttr="data-"+dashedNamespace,dataAttrElems=document.querySelectorAll("["+dataAttr+"]"),dashedNamespace=document.querySelectorAll(".js-"+dashedNamespace),dataAttrElems=utils.makeArray(dataAttrElems).concat(utils.makeArray(dashedNamespace)),dataOptionsAttr=dataAttr+"-options",jQuery=window.jQuery;dataAttrElems.forEach(function(elem){var options,attr=elem.getAttribute(dataAttr)||elem.getAttribute(dataOptionsAttr);try{options=attr&&JSON.parse(attr)}catch(error){return void(console&&console.error("Error parsing "+dataAttr+" on "+elem.className+": "+error))}attr=new WidgetClass(elem,options);jQuery&&jQuery.data(elem,namespace,attr)})})},utils}),((window,factory)=>{"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<itemElems.length;i++){var item=new Item(itemElems[i],this);items.push(item)}return items},proto._filterFindItemElements=function(elems){return utils.filterFindElements(elems,this.options.itemSelector)},proto.getItemElements=function(){return this.items.map(function(item){return item.element})},proto.layout=function(){this._resetLayout(),this._manageStamps();var layoutInstant=this._getOption("layoutInstant"),layoutInstant=void 0!==layoutInstant?layoutInstant:!this._isLayoutInited;this.layoutItems(this.items,layoutInstant),this._isLayoutInited=!0},proto._init=proto.layout,proto._resetLayout=function(){this.getSize()},proto.getSize=function(){this.size=getSize(this.element)},proto._getMeasurement=function(measurement,size){var elem,option=this.options[measurement];option?("string"==typeof option?elem=this.element.querySelector(option):option instanceof HTMLElement&&(elem=option),this[measurement]=elem?getSize(elem)[size]:option):this[measurement]=0},proto.layoutItems=function(items,isInstant){items=this._getItemsForLayout(items),this._layoutItems(items,isInstant),this._postLayout()},proto._getItemsForLayout=function(items){return items.filter(function(item){return!item.isIgnored})},proto._layoutItems=function(items,isInstant){var queue;this._emitCompleteOnItems("layout",items),items&&items.length&&(queue=[],items.forEach(function(item){var position=this._getItemLayoutPosition(item);position.item=item,position.isInstant=isInstant||item.isLayoutInstant,queue.push(position)},this),this._processLayoutQueue(queue))},proto._getItemLayoutPosition=function(){return{x:0,y:0}},proto._processLayoutQueue=function(queue){this.updateStagger(),queue.forEach(function(obj,i){this._positionItem(obj.item,obj.x,obj.y,obj.isInstant,i)},this)},proto.updateStagger=function(){var stagger=this.options.stagger;if(null!=stagger)return this.stagger=(time=>{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<this.items.length;i++){var item=this.items[i];if(item.element==elem)return item}},proto.getItems=function(elems){elems=utils.makeArray(elems);var items=[];return elems.forEach(function(elem){elem=this.getItem(elem);elem&&items.push(elem)},this),items},proto.remove=function(elems){elems=this.getItems(elems);this._emitCompleteOnItems("remove",elems),elems&&elems.length&&elems.forEach(function(item){item.remove(),utils.removeFrom(this.items,item)},this)},proto.destroy=function(){var style=this.element.style,style=(style.height="",style.position="",style.width="",this.items.forEach(function(item){item.destroy()}),this.unbindResize(),this.element.outlayerGUID);delete instances[style],delete this.element.outlayerGUID,jQuery&&jQuery.removeData(this.element,this.constructor.namespace)},Outlayer.data=function(elem){elem=(elem=utils.getQueryElement(elem))&&elem.outlayerGUID;return elem&&instances[elem]},Outlayer.create=function(namespace,options){var Layout=subclass(Outlayer);return Layout.defaults=utils.extend({},Outlayer.defaults),utils.extend(Layout.defaults,options),Layout.compatOptions=utils.extend({},Outlayer.compatOptions),Layout.namespace=namespace,Layout.data=Outlayer.data,Layout.Item=subclass(Item),utils.htmlInit(Layout,namespace),jQuery&&jQuery.bridget&&jQuery.bridget(namespace,Layout),Layout};var msUnits={ms:1,s:1e3};return Outlayer.Item=Item,Outlayer}),((window,factory)=>{"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;i<this.cols;i++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},proto.measureColumns=function(){this.getContainerWidth(),this.columnWidth||(firstItem=(firstItem=this.items[0])&&firstItem.element,this.columnWidth=firstItem&&getSize(firstItem).outerWidth||this.containerWidth);var firstItem=this.columnWidth+=this.gutter,containerWidth=this.containerWidth+this.gutter,cols=containerWidth/firstItem,containerWidth=firstItem-containerWidth%firstItem,cols=Math[containerWidth&&containerWidth<1?"round":"floor"](cols);this.cols=Math.max(cols,1)},proto.getContainerWidth=function(){var container=this._getOption("fitWidth")?this.element.parentNode:this.element,container=getSize(container);this.containerWidth=container&&container.innerWidth},proto._getItemLayoutPosition=function(item){item.getSize();for(var remainder=item.size.outerWidth%this.columnWidth,remainder=Math[remainder&&remainder<1?"round":"ceil"](item.size.outerWidth/this.columnWidth),remainder=Math.min(remainder,this.cols),colPosition=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](remainder,item),position={x:this.columnWidth*colPosition.col,y:colPosition.y},setHeight=colPosition.y+item.size.outerHeight,setMax=remainder+colPosition.col,i=colPosition.col;i<setMax;i++)this.colYs[i]=setHeight;return position},proto._getTopColPosition=function(colSpan){var colSpan=this._getTopColGroup(colSpan),minimumY=Math.min.apply(Math,colSpan);return{col:colSpan.indexOf(minimumY),y:minimumY}},proto._getTopColGroup=function(colSpan){if(colSpan<2)return this.colYs;for(var colGroup=[],groupCount=this.cols+1-colSpan,i=0;i<groupCount;i++)colGroup[i]=this._getColGroupY(i,colSpan);return colGroup},proto._getColGroupY=function(col,colSpan){return colSpan<2?this.colYs[col]:(col=this.colYs.slice(col,col+colSpan),Math.max.apply(Math,col))},proto._getHorizontalColPosition=function(colSpan,item){var col=this.horizontalColIndex%this.cols,col=1<colSpan&&col+colSpan>this.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(;0<checkItems.length;){for(var i=0,len=checkItems.length;i!==len;i++)if(row=checkItems.slice(0,i+1),(rowHeight=this._getRowHeight(row,containerWidth))<maxHeight){this._resizeItems(row,rowHeight),checkItems=checkItems.slice(i+1);continue newRow}this._resizeItems(row,Math.min(rowHeight,maxHeight));break}},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/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;i<items.length;i++)items[i].id=this.itemGUID++;return this._updateItemsSortData(items),items},window._initLayoutMode=function(name){var Mode=LayoutMode.modes[name],initialOpts=this.options[name]||{};this.options[name]=Mode.options?utils.extend(Mode.options,initialOpts):initialOpts,this.modes[name]=new Mode(this)},window.layout=function(){!this._isLayoutInited&&this._getOption("initLayout")?this.arrange():this._layout()},window._layout=function(){var isInstant=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,isInstant),this._isLayoutInited=!0},Isotope.prototype.layoutItems),mungeSorter=(Isotope.prototype.layoutItems=function(items,isInstant){this._beforeLayout(items,isInstant),_layoutItems.apply(this,arguments)},window.arrange=function(opts){this.option(opts),this._getIsInstant();var paginationResult,opts=this._filter(this.items);if(this.filteredItems=opts.matches,this.notPaginatedItems=this.filteredItems,this._sort(),this.options.pagination&&(paginationResult=this._pagination(),opts.needHide=opts.needHide.concat(paginationResult.needHide),opts.needReveal=paginationResult.needReveal),this._bindArrangeComplete(),this._hideRevealItems(opts),this._layout(),this.options.pagination)for(var i=0,l=this.filteredItems.length;i!==l;i++)this.filteredItems[i].isLayoutInstant=!1},Isotope.prototype._init=Isotope.prototype.arrange,window._hideRevealItems=function(items){this._isInstant?this._noTransition(this._hideReveal,[items]):this._hideReveal(items)},window._init=window.arrange,window._hideReveal=function(filtered){this.reveal(filtered.needReveal),this.hide(filtered.needHide)},window._getIsInstant=function(){var isLayoutInstant=this._getOption("layoutInstant"),isLayoutInstant=void 0!==isLayoutInstant?isLayoutInstant:!this._isLayoutInited;return this._isInstant=isLayoutInstant},window._bindArrangeComplete=function(){var isLayoutComplete,isHideComplete,isRevealComplete,_this=this;function arrangeParallelCallback(){isLayoutComplete&&isHideComplete&&isRevealComplete&&_this.dispatchEvent("arrangeComplete",null,[_this.filteredItems])}this.once("layoutComplete",function(){isLayoutComplete=!0,arrangeParallelCallback()}),this.once("hideComplete",function(){isHideComplete=!0,arrangeParallelCallback()}),this.once("revealComplete",function(){isRevealComplete=!0,arrangeParallelCallback()})},window._pagination=function(){this._lastFilter!==this.options.filter&&(this._lastFilter=this.options.filter,this.options.page=1),this.notPaginatedItems||(this.notPaginatedItems=this.filteredItems);var page=this.options.page,items=this.notPaginatedItems,startItemInPage=(page-1)*this.options.inPage,endItemInPage=startItemInPage+this.options.inPage-1,inPage=[],needHide=[],needReveal=[],totalPages=Math.ceil(items.length/this.options.inPage),pageChanged=this._lastPage!==page||this._totalPages!==totalPages;this._lastPage=page,this._totalPages=totalPages;for(var i=0,len=items.length;i!==len;i++){var item=items[i];startItemInPage<=i&&i<=endItemInPage?(inPage.push(item),item.isHidden&&(needReveal.push(item),item.isLayoutInstant=!0)):item.isHidden||needHide.push(item)}return this.filteredItems=inPage,pageChanged&&this.dispatchEvent("paginationUpdate",null,[page,totalPages,inPage]),{matches:inPage,needHide:needHide,needReveal:needReveal}},window.page=function(pageNum){this.options.page=Math.max(1,Math.min(pageNum,this.totalPages())),this._hideRevealItems(this._pagination()),this._layout()},window.nextPage=function(){this.page(this.options.page+1)},window.previousPage=function(){this.page(this.options.page-1)},window.lastPage=function(){this.page(this.totalPages())},window.firstPage=function(){this.page(1)},window.totalPages=function(){return this._totalPages},window.currentPage=function(){return this.options.page},window._filter=function(items){for(var filter=this.options.filter,matches=[],hiddenMatched=[],visibleUnmatched=[],test=this._getFilterTest(filter||"*"),i=0;i<items.length;i++){var isMatched,item=items[i];item.isIgnored||((isMatched=test(item))&&matches.push(item),isMatched&&item.isHidden?hiddenMatched.push(item):isMatched||item.isHidden||visibleUnmatched.push(item))}return{matches:matches,needReveal:hiddenMatched,needHide:visibleUnmatched}},window._getFilterTest=function(filter){return jQuery&&this.options.isJQueryFiltering?function(item){return jQuery(item.element).is(filter)}:"function"==typeof filter?function(item){return filter(item.element)}:function(item){return matchesSelector(item.element,filter)}},window.updateSortData=function(elems){elems=elems?(elems=utils.makeArray(elems),this.getItems(elems)):this.items;this._getSorters(),this._updateItemsSortData(elems)},function(sorter){var args,query,attrMatch,getValue,parser;return"string"==typeof sorter&&(attrMatch=(query=(args=trim(sorter).split(" "))[0]).match(/^\[(.+)\]$/),getValue=((attr,query)=>attr?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;i<len;i++)items[i].updateSortData()},Isotope.sortDataParsers={parseInt:function(val){return parseInt(val,10)},parseFloat:function(val){return parseFloat(val)}},window._sort=function(){var sortBys;this.options.sortBy&&(sortBys=utils.makeArray(this.options.sortBy),this._getIsSameSortBy(sortBys)||(this.sortHistory=sortBys.concat(this.sortHistory)),sortBys=((sortBys,sortAsc)=>function(itemA,itemB){for(var i=0;i<sortBys.length;i++){var sortBy=sortBys[i],a=itemA.sortData[sortBy],b=itemB.sortData[sortBy];if(b<a||a<b)return(b<a?1:-1)*((void 0!==sortAsc[sortBy]?sortAsc[sortBy]:sortAsc)?1:-1)}return 0})(this.sortHistory,this.options.sortAscending),(this.options.pagination?this.notPaginatedItems:this.filteredItems).sort(sortBys))},window._getIsSameSortBy=function(sortBys){for(var i=0;i<sortBys.length;i++)if(sortBys[i]!=this.sortHistory[i])return!1;return!0},window._mode=function(){var layoutMode=this.options.layoutMode,mode=this.modes[layoutMode];if(mode)return mode.options=this.options[layoutMode],mode;throw new Error("No layout mode: "+layoutMode)},window._resetLayout=function(){Outlayer.prototype._resetLayout.call(this),this._mode()._resetLayout()},Isotope.prototype._beforeLayout=function(items,isInstant){var mode=this._mode();mode._beforeLayout&&mode._beforeLayout(items,isInstant)},window._getItemLayoutPosition=function(item){return this._mode()._getItemLayoutPosition(item)},window._manageStamp=function(stamp){this._mode()._manageStamp(stamp)},window._getContainerSize=function(){return this._mode()._getContainerSize()},window.needsResizeLayout=function(){return this._mode().needsResizeLayout()},Isotope.prototype.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&(this.options.resizeTransition?this.layout():this._noTransition(this.layout))},window.appended=function(elems){var pagination,elems=this.addItems(elems);elems.length&&(pagination=this.options.pagination,elems=this._filterRevealAdded(elems,!pagination),pagination?(this.notPaginatedItems=this.notPaginatedItems.concat(elems),this._resetLayout(),this._manageStamps(),pagination=this._pagination(),this._hideRevealItems(pagination),this.layoutItems(this.filteredItems)):this.filteredItems=this.filteredItems.concat(elems))},window.prepended=function(elems){var filteredItems,pagination,elems=this._itemize(elems);elems.length&&(this._resetLayout(),this._manageStamps(),pagination=this.options.pagination,filteredItems=this._filterRevealAdded(elems,!pagination),pagination?(this.notPaginatedItems=filteredItems.concat(this.notPaginatedItems),pagination=this._pagination(),this._hideRevealItems(pagination),this.layoutItems(this.filteredItems)):(this.layoutItems(this.filteredItems),this.filteredItems=filteredItems.concat(this.filteredItems)),this.items=elems.concat(this.items))},window._filterRevealAdded=function(items){items=this._filter(items);return this.hide(items.needHide),this.reveal(items.matches),this.layoutItems(items.matches,!0),items.matches},window.insert=function(elems){var items=this.addItems(elems);if(items.length){for(var item,len=items.length,i=0;i<len;i++)item=items[i],this.element.appendChild(item.element);elems=this._filter(items).matches;for(i=0;i<len;i++)items[i].isLayoutInstant=!0;for(this.arrange(),i=0;i<len;i++)delete items[i].isLayoutInstant;this.reveal(elems)}};var _remove=window.remove;return window.remove=function(elems){elems=utils.makeArray(elems);var removeItems=this.getItems(elems),len=(_remove.call(this,elems),removeItems&&removeItems.length);if(len)for(var i=0;i<len;i++){var item=removeItems[i];utils.removeFrom(this.filteredItems,item)}},window.shuffle=function(){for(var i=0;i<this.items.length;i++)this.items[i].sortData.random=Math.random();this.options.sortBy="random",this._sort(),this._layout()},window._noTransition=function(fn,args){var transitionDuration=this.options.transitionDuration,fn=(this.options.transitionDuration=0,fn.apply(this,args));return this.options.transitionDuration=transitionDuration,fn},window.getFilteredItemElements=function(){return this.filteredItems.map(function(item){return item.element})},Isotope}),((window,factory)=>{"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.x<rectRight&&thisRight>rect.x&&this.y<rect.y+rect.height&&thisBottom>rect.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.y&&(freeRect=new Rect({x:this.x,y:this.y,width:this.width,height:rect.y-this.y}),freeRects.push(freeRect)),rectRight<thisRight&&(freeRect=new Rect({x:rectRight,y:this.y,width:thisRight-rectRight,height:this.height}),freeRects.push(freeRect)),rectBottom<thisBottom&&(freeRect=new Rect({x:this.x,y:rectBottom,width:this.width,height:thisBottom-rectBottom}),freeRects.push(freeRect)),this.x<rect.x&&(freeRect=new Rect({x:this.x,y:this.y,width:rect.x-this.x,height:this.height}),freeRects.push(freeRect)),freeRects)},proto.canFit=function(rect){return this.width>=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<this.spaces.length;i++){var space=this.spaces[i];if(space.canFit(rect)){this.placeInSpace(rect,space);break}}},proto.columnPack=function(rect){for(var i=0;i<this.spaces.length;i++){var space=this.spaces[i];if(space.x<=rect.x&&space.x+space.width>=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<this.spaces.length;i++){var space=this.spaces[i];if(space.y<=rect.y&&space.y+space.height>=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<this.spaces.length;i++){var space=this.spaces[i],newSpaces=space.getMaximalFreeRects(rect);newSpaces?revisedSpaces.push.apply(revisedSpaces,newSpaces):revisedSpaces.push(space)}this.spaces=revisedSpaces,this.mergeSortSpaces()},proto.mergeSortSpaces=function(){Packer.mergeRects(this.spaces),this.spaces.sort(this.sorter)},proto.addSpace=function(rect){this.spaces.push(rect),this.mergeSortSpaces()},Packer.mergeRects=function(rects){var i=0,rect=rects[i];rectLoop:for(;rect;){for(var j=0,compareRect=rects[i+j];compareRect;){if(compareRect==rect)j++;else{if(compareRect.contains(rect)){rects.splice(i,1),rect=rects[i];continue rectLoop}rect.contains(compareRect)?rects.splice(i+j,1):j++}compareRect=rects[i+j]}rect=rects[++i]}return rects},{downwardLeftToRight:function(a,b){return a.y-b.y||a.x-b.x},rightwardTopToBottom:function(a,b){return a.x-b.x||a.y-b.y}});return Packer}),((window,factory)=>{"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<this.dragItemCount?(packMethod=this._getPackMethod(),this.packer[packMethod](item.rect)):this.packer.pack(item.rect),this._setMaxXY(item.rect),item.rect},Item.shiftLayout=function(){this.isShifting=!0,this.layout(),delete this.isShifting},Item._getPackMethod=function(){return this._getOption("horizontal")?"rowPack":"columnPack"},Item._setMaxXY=function(rect){this.maxX=Math.max(rect.x+rect.width,this.maxX),this.maxY=Math.max(rect.y+rect.height,this.maxY)},Item._setRectSize=function(elem,rect){var elem=getSize(elem),w=elem.outerWidth,elem=elem.outerHeight;(w||elem)&&(w=this._applyGridGutter(w,this.columnWidth),elem=this._applyGridGutter(elem,this.rowHeight)),rect.width=Math.min(w,this.packer.width),rect.height=Math.min(elem,this.packer.height)},Item._applyGridGutter=function(measurement,gridSize){var remainder;return gridSize?(remainder=measurement%(gridSize+=this.gutter),Math[remainder&&remainder<1?"round":"ceil"](measurement/gridSize)*gridSize):measurement+this.gutter},Item._getContainerSize=function(){return this._getOption("horizontal")?{width:this.maxX-this.gutter}:{height:this.maxY-this.gutter}},Item._manageStamp=function(elem){var item=this.getItem(elem);item=item&&item.isPlacing?item.rect:(item=this._getElementOffset(elem),new Rect({x:this._getOption("originLeft")?item.left:item.right,y:this._getOption("originTop")?item.top:item.bottom})),this._setRectSize(elem,item),this.packer.placed(item),this._setMaxXY(item)},Item.sortItemsByPosition=function(){var sorter=this._getOption("horizontal")?horizontalSorter:verticalSorter;this.items.sort(sorter)},Item.fit=function(elem,x,y){elem=this.getItem(elem);elem&&(this.stamp(elem.element),elem.enablePlacing(),this.updateShiftTargets(elem),x=void 0===x?elem.rect.x:x,y=void 0===y?elem.rect.y:y,this.shift(elem,x,y),this._bindFitEvents(elem),elem.moveTo(elem.rect.x,elem.rect.y),this.shiftLayout(),this.unstamp(elem.element),this.sortItemsByPosition(),elem.disablePlacing())},Item._bindFitEvents=function(item){var _this=this,ticks=0;function onLayout(){2==++ticks&&_this.dispatchEvent("fitComplete",null,[item])}item.once("layout",onLayout),this.once("layoutComplete",onLayout)},Item.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&(this.options.shiftPercentResize?this.resizeShiftPercentLayout():this.layout())},Item.needsResizeLayout=function(){var size=getSize(this.element),innerSize=this._getOption("horizontal")?"innerHeight":"innerWidth";return size[innerSize]!=this.size[innerSize]},Item.resizeShiftPercentLayout=function(){var currentSegment,currentSize,previousSize,items=this._getItemsForLayout(this.items),isHorizontal=this._getOption("horizontal"),coord=isHorizontal?"y":"x",measure=isHorizontal?"height":"width",segmentName=isHorizontal?"rowHeight":"columnWidth",isHorizontal=isHorizontal?"innerHeight":"innerWidth",previousSegment=this[segmentName];(previousSegment=previousSegment&&previousSegment+this.gutter)?(this._getMeasurements(),currentSegment=this[segmentName]+this.gutter,items.forEach(function(item){var seg=Math.round(item.rect[coord]/previousSegment);item.rect[coord]=seg*currentSegment})):(currentSize=getSize(this.element)[isHorizontal]+this.gutter,previousSize=this.packer[measure],items.forEach(function(item){item.rect[coord]=item.rect[coord]/previousSize*currentSize})),this.shiftLayout()},Item.itemDragStart=function(elem){this.isEnabled&&(this.stamp(elem),elem=this.getItem(elem))&&(elem.enablePlacing(),elem.showDropPlaceholder(),this.dragItemCount++,this.updateShiftTargets(elem))},Item.updateShiftTargets=function(dropItem){this.shiftPacker.reset(),this._getBoundingRect();var isOriginLeft=this._getOption("originLeft"),isOriginTop=this._getOption("originTop"),isHorizontal=(this.stamps.forEach(function(stamp){var item=this.getItem(stamp);item&&item.isPlacing||(item=this._getElementOffset(stamp),item=new Rect({x:isOriginLeft?item.left:item.right,y:isOriginTop?item.top:item.bottom}),this._setRectSize(stamp,item),this.shiftPacker.placed(item))},this),this._getOption("horizontal")),segmentName=isHorizontal?"rowHeight":"columnWidth",measure=isHorizontal?"height":"width",segment=(this.shiftTargetKeys=[],this.shiftTargets=[],this[segmentName]);if(segment=segment&&segment+this.gutter)for(var segmentName=Math.ceil(dropItem.rect[measure]/segment),segs=Math.floor((this.shiftPacker[measure]+this.gutter)/segment),boundsSize=(segs-segmentName)*segment,i=0;i<segs;i++)this._addShiftTarget(i*segment,0,boundsSize);else boundsSize=this.shiftPacker[measure]+this.gutter-dropItem.rect[measure],this._addShiftTarget(0,0,boundsSize);var segmentName=this._getItemsForLayout(this.items),packMethod=this._getPackMethod();segmentName.forEach(function(item){var rect=item.rect,cornerX=(this._setRectSize(item.element,rect),this.shiftPacker[packMethod](rect),this._addShiftTarget(rect.x,rect.y,boundsSize),isHorizontal?rect.x+rect.width:rect.x),cornerY=isHorizontal?rect.y:rect.y+rect.height;if(this._addShiftTarget(cornerX,cornerY,boundsSize),segment)for(var segSpan=Math.round(rect[measure]/segment),i=1;i<segSpan;i++){var segX=isHorizontal?cornerX:rect.x+segment*i,segY=isHorizontal?rect.y+segment*i:cornerY;this._addShiftTarget(segX,segY,boundsSize)}},this)},Item._addShiftTarget=function(x,y,boundsSize){var checkCoord=this._getOption("horizontal")?y:x;0!==checkCoord&&boundsSize<checkCoord||-1!=this.shiftTargetKeys.indexOf(boundsSize=x+","+y)||(this.shiftTargetKeys.push(boundsSize),this.shiftTargets.push({x:x,y:y}))},Item.shift=function(item,x,y){var shiftPosition,minDistance=1/0,position={x:x,y:y};this.shiftTargets.forEach(function(target){dx=(b=position).x-target.x,b=b.y-target.y;var b,dx=Math.sqrt(dx*dx+b*b);dx<minDistance&&(shiftPosition=target,minDistance=dx)}),item.rect.x=shiftPosition.x,item.rect.y=shiftPosition.y};Item.itemDragMove=function(elem,x,y){var _this,item=this.isEnabled&&this.getItem(elem);function onDrag(){_this.shift(item,x,y),item.positionDropPlaceholder(),_this.layout()}item&&(x-=this.size.paddingLeft,y-=this.size.paddingTop,_this=this,elem=new Date,this._itemDragTime&&elem-this._itemDragTime<120?(clearTimeout(this.dragTimeout),this.dragTimeout=setTimeout(onDrag,120)):(onDrag(),this._itemDragTime=elem))},Item.itemDragEnd=function(elem){var completeCount,_this,item=this.isEnabled&&this.getItem(elem);function onDragEndLayoutComplete(){2==++completeCount&&(item.element.classList.remove("is-positioning-post-drag"),item.hideDropPlaceholder(),_this.dispatchEvent("dragItemPositioned",null,[item]))}item&&(clearTimeout(this.dragTimeout),item.element.classList.add("is-positioning-post-drag"),completeCount=0,_this=this,item.once("layout",onDragEndLayoutComplete),this.once("layoutComplete",onDragEndLayoutComplete),item.moveTo(item.rect.x,item.rect.y),this.layout(),this.dragItemCount=Math.max(0,this.dragItemCount-1),this.sortItemsByPosition(),item.disablePlacing(),this.unstamp(item.element))},Item.bindDraggabillyEvents=function(draggie){this._bindDraggabillyEvents(draggie,"on")},Item.unbindDraggabillyEvents=function(draggie){this._bindDraggabillyEvents(draggie,"off")},Item._bindDraggabillyEvents=function(draggie,method){var handlers=this.handleDraggabilly;draggie[method]("dragStart",handlers.dragStart),draggie[method]("dragMove",handlers.dragMove),draggie[method]("dragEnd",handlers.dragEnd)},Item.bindUIDraggableEvents=function($elems){this._bindUIDraggableEvents($elems,"on")},Item.unbindUIDraggableEvents=function($elems){this._bindUIDraggableEvents($elems,"off")},Item._bindUIDraggableEvents=function($elems,method){var handlers=this.handleUIDraggable;$elems[method]("dragstart",handlers.start)[method]("drag",handlers.drag)[method]("dragstop",handlers.stop)};var _destroy=Item.destroy;return Item.destroy=function(){_destroy.apply(this,arguments),this.isEnabled=!1},Packery.Rect=Rect,Packery.Packer=Packer,Packery}),((window,factory)=>{"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-1<index?index-numSlides:index<0?numSlides+index:index}function _listen(name,fn){return _listeners[name]||(_listeners[name]=[]),_listeners[name].push(fn)}function _modifyDestPanOffset(axis,destPanBounds,destPanOffset,destZoomLevel){destZoomLevel===self.currItem.initialZoomLevel?destPanOffset[axis]=self.currItem.initialPosition[axis]:(destPanOffset[axis]=_calculatePanOffset(axis,destZoomLevel),destPanOffset[axis]>destPanBounds.min[axis]?destPanOffset[axis]=destPanBounds.min[axis]:destPanOffset[axis]<destPanBounds.max[axis]&&(destPanOffset[axis]=destPanBounds.max[axis]))}function _onKeyDown(e){var keydownAction="";_options.escKey&&27===e.keyCode?keydownAction="close":_options.arrowKeys&&(37===e.keyCode?keydownAction="prev":39===e.keyCode&&(keydownAction="next")),!keydownAction||e.ctrlKey||e.altKey||e.shiftKey||e.metaKey||(e.preventDefault?e.preventDefault():e.returnValue=!1,self[keydownAction]())}function _onGlobalClick(e){e&&(_moved||_zoomStarted||_mainScrollAnimating||_verticalDragInitiated)&&(e.preventDefault(),e.stopPropagation())}function _updatePageScrollOffset(){self.setScrollOffset(0,framework.getScrollY())}function _onDragStart(e){var pointerIndex;"mousedown"===e.type&&0<e.button||(_initialZoomRunning?e.preventDefault():_oldAndroidTouchEndTimeout&&"mousedown"===e.type||(_preventDefaultEventBehaviour(e,!0)&&e.preventDefault(),_shout("pointerDown"),_pointerEventEnabled&&((pointerIndex=framework.arraySearch(_currPointers,e.pointerId,"id"))<0&&(pointerIndex=_currPointers.length),_currPointers[pointerIndex]={x:e.pageX,y:e.pageY,id:e.pointerId}),e=(pointerIndex=_getTouchPoints(e)).length,_currentPoints=null,_stopAllAnimations(),_isDragging&&1!==e||(_isDragging=_isFirstMove=!0,framework.bind(window,_upMoveEvents,self),_isZoomingIn=_wasOverInitialZoom=_opacityChanged=_verticalDragInitiated=_mainScrollShifted=_moved=_isMultitouch=_zoomStarted=!1,_direction=null,_shout("firstTouchStart",pointerIndex),_equalizePoints(_startPanOffset,_panOffset),_currPanDist.x=_currPanDist.y=0,_equalizePoints(_currPoint,pointerIndex[0]),_equalizePoints(_startPoint,_currPoint),_startMainScrollPos.x=_slideSize.x*_currPositionIndex,_posPoints=[{x:_currPoint.x,y:_currPoint.y}],_gestureCheckSpeedTime=_gestureStartTime=_getCurrentTime(),_calculatePanBounds(_currZoomLevel,!0),_stopDragUpdateLoop(),_dragUpdateLoop()),!_isZooming&&1<e&&!_mainScrollAnimating&&!_mainScrollShifted&&(_startZoomLevel=_currZoomLevel,_isZooming=_isMultitouch=!(_zoomStarted=!1),_currPanDist.y=_currPanDist.x=0,_equalizePoints(_startPanOffset,_panOffset),_equalizePoints(p,pointerIndex[0]),_equalizePoints(p2,pointerIndex[1]),_findCenterOfPoints(p,p2,_currCenterPoint),_midZoomPoint.x=Math.abs(_currCenterPoint.x)-_panOffset.x,_midZoomPoint.y=Math.abs(_currCenterPoint.y)-_panOffset.y,_startPointsDistance=_calculatePointsDistance(p,p2))))}function _onDragMove(e){var pointerIndex;e.preventDefault(),_pointerEventEnabled&&-1<(pointerIndex=framework.arraySearch(_currPointers,e.pointerId,"id"))&&((pointerIndex=_currPointers[pointerIndex]).x=e.pageX,pointerIndex.y=e.pageY),_isDragging&&(pointerIndex=_getTouchPoints(e),_direction||_moved||_isZooming?_currentPoints=pointerIndex:_mainScrollPos.x!==_slideSize.x*_currPositionIndex?_direction="h":(e=Math.abs(pointerIndex[0].x-_currPoint.x)-Math.abs(pointerIndex[0].y-_currPoint.y),Math.abs(e)>=DIRECTION_CHECK_OFFSET&&(_direction=0<e?"h":"v",_currentPoints=pointerIndex)))}function _onDragRelease(e){if(_features.isOldAndroid){if(_oldAndroidTouchEndTimeout&&"mouseup"===e.type)return;-1<e.type.indexOf("touch")&&(clearTimeout(_oldAndroidTouchEndTimeout),_oldAndroidTouchEndTimeout=setTimeout(function(){_oldAndroidTouchEndTimeout=0},600))}_shout("pointerUp"),_preventDefaultEventBehaviour(e,!1)&&e.preventDefault(),_pointerEventEnabled&&-1<(pointerIndex=framework.arraySearch(_currPointers,e.pointerId,"id"))&&(releasePoint=_currPointers.splice(pointerIndex,1)[0],navigator.msPointerEnabled&&(releasePoint.type={4:"mouse",2:"touch",3:"pen"}[e.pointerType],releasePoint.type)||(releasePoint.type=e.pointerType||"mouse"));var releasePoint,numPoints=(pointerIndex=_getTouchPoints(e)).length;if(2===(numPoints="mouseup"===e.type?0:numPoints))return!(_currentPoints=null);1===numPoints&&_equalizePoints(_startPoint,pointerIndex[0]),0!==numPoints||_direction||_mainScrollAnimating||(releasePoint||("mouseup"===e.type?releasePoint={x:e.pageX,y:e.pageY,type:"mouse"}:e.changedTouches&&e.changedTouches[0]&&(releasePoint={x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY,type:"touch"})),_shout("touchRelease",e,releasePoint));var initalPanY,initialBgOpacity,pointerIndex=-1;if(0===numPoints&&(_isDragging=!1,framework.unbind(window,_upMoveEvents,self),_stopDragUpdateLoop(),_isZooming?pointerIndex=0:-1!==_lastReleaseTime&&(pointerIndex=_getCurrentTime()-_lastReleaseTime)),_lastReleaseTime=1===numPoints?_getCurrentTime():-1,e=-1!==pointerIndex&&pointerIndex<150?"zoom":"swipe",_isZooming&&numPoints<2&&(_isZooming=!1,1===numPoints&&(e="zoomPointerUp"),_shout("zoomGestureEnded")),_currentPoints=null,_moved||_zoomStarted||_mainScrollAnimating||_verticalDragInitiated)if(_stopAllAnimations(),(_releaseAnimData=_releaseAnimData||_initDragReleaseAnimationData()).calculateSwipeSpeed("x"),_verticalDragInitiated)_calculateVerticalDragOpacityRatio()<_options.verticalDragRange?self.close():(initalPanY=_panOffset.y,initialBgOpacity=_bgOpacity,_animateProp("verticalDrag",0,1,300,framework.easing.cubic.out,function(now){_panOffset.y=(self.currItem.initialPosition.y-initalPanY)*now+initalPanY,_applyBgOpacity((1-initialBgOpacity)*now+initialBgOpacity),_applyCurrentZoomPan()}),_shout("onVerticalDrag",1));else{if((_mainScrollShifted||_mainScrollAnimating)&&0===numPoints){if(_finishSwipeMainScrollGesture(e,_releaseAnimData))return;e="zoomPointerUp"}_mainScrollAnimating||("swipe"!==e?_completeZoomGesture():!_mainScrollShifted&&_currZoomLevel>self.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;i<type.length;i++)type[i]&&target[methodName](type[i],listener,!1)},isArray:function(obj){return obj instanceof Array},createEl:function(classes,tag){tag=document.createElement(tag||"div");return classes&&(tag.className=classes),tag},getScrollY:function(){var yOffset=window.pageYOffset;return void 0!==yOffset?yOffset:document.documentElement.scrollTop},unbind:function(target,type,listener){framework.bind(target,type,listener,!0)},removeClass:function(el,className){className=new RegExp("(\\s|^)"+className+"(\\s|$)");el.className=el.className.replace(className," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")},addClass:function(el,className){framework.hasClass(el,className)||(el.className+=(el.className?" ":"")+className)},hasClass:function(el,className){return el.className&&new RegExp("(^|\\s)"+className+"(\\s|$)").test(el.className)},getChildByClass:function(parentEl,childClassName){for(var node=parentEl.firstChild;node;){if(framework.hasClass(node,childClassName))return node;node=node.nextSibling}},arraySearch:function(array,value,key){for(var i=array.length;i--;)if(array[i][key]===value)return i;return-1},extend:function(o1,o2,preventOverwrite){for(var prop in o2)!o2.hasOwnProperty(prop)||preventOverwrite&&o1.hasOwnProperty(prop)||(o1[prop]=o2[prop])},easing:{sine:{out:function(k){return Math.sin(k*(Math.PI/2))},inOut:function(k){return-(Math.cos(Math.PI*k)-1)/2}},cubic:{out:function(k){return--k*k*k+1}}},detectFeatures:function(){if(framework.features)return framework.features;for(var ua,v,styleCheckItem,styleName,lastTime,helperStyle=framework.createEl().style,vendor="",features={},styleChecks=(features.oldIE=document.all&&!document.addEventListener,features.touch="ontouchstart"in window,window.requestAnimationFrame&&(features.raf=window.requestAnimationFrame,features.caf=window.cancelAnimationFrame),features.pointerEvent=!!window.PointerEvent||navigator.msPointerEnabled,features.pointerEvent||(ua=navigator.userAgent,/iP(hone|od)/.test(navigator.platform)&&(v=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/))&&0<v.length&&1<=(v=parseInt(v[1],10))&&v<8&&(features.isOldIOSPhone=!0),v=(v=ua.match(/Android\s([0-9\.]*)/))?v[1]:0,1<=(v=parseFloat(v))&&(v<4.4&&(features.isOldAndroid=!0),features.androidVersion=v),features.isMobileOpera=/opera mini|opera mobi/i.test(ua)),["transform","perspective","animationName"]),vendors=["","webkit","Moz","ms","O"],i=0;i<4;i++){for(var vendor=vendors[i],a=0;a<3;a++)styleCheckItem=styleChecks[a],styleName=vendor+(vendor?styleCheckItem.charAt(0).toUpperCase()+styleCheckItem.slice(1):styleCheckItem),!features[styleCheckItem]&&styleName in helperStyle&&(features[styleCheckItem]=styleName);vendor&&!features.raf&&(vendor=vendor.toLowerCase(),features.raf=window[vendor+"RequestAnimationFrame"],features.raf)&&(features.caf=window[vendor+"CancelAnimationFrame"]||window[vendor+"CancelRequestAnimationFrame"])}return features.raf||(lastTime=0,features.raf=function(fn){var currTime=(new Date).getTime(),timeToCall=Math.max(0,16-(currTime-lastTime)),id=window.setTimeout(function(){fn(currTime+timeToCall)},timeToCall);return lastTime=currTime+timeToCall,id},features.caf=function(id){clearTimeout(id)}),features.svg=!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,framework.features=features}},self=(framework.detectFeatures(),framework.features.oldIE&&(framework.bind=function(target,type,listener,unbind){type=type.split(" ");for(var evName,methodName=(unbind?"detach":"attach")+"Event",_handleEv=function(){listener.handleEvent.call(listener)},i=0;i<type.length;i++)if(evName=type[i])if("object"==typeof listener&&listener.handleEvent){if(unbind){if(!listener["oldIE"+evName])return!1}else listener["oldIE"+evName]=_handleEv;target[methodName]("on"+evName,listener["oldIE"+evName])}else target[methodName]("on"+evName,listener)}),this),DOUBLE_TAP_RADIUS=25,_options={allowPanToNext:!0,spacing:.12,bgOpacity:1,mouseUsed:!1,loop:!0,pinchToClose:!0,closeOnScroll:!0,closeOnVerticalDrag:!0,verticalDragRange:.75,hideAnimationDuration:333,showAnimationDuration:333,showHideOpacity:!1,focus:!0,escKey:!0,arrowKeys:!0,mainScrollEndFriction:.35,panEndFriction:.35,isClickableElement:function(el){return"A"===el.tagName},getDoubleTapZoom:function(isMouseClick,item){return isMouseClick||item.initialZoomLevel<.7?1:1.33},maxSpreadZoom:1.33,modal:!0,scaleMode:"fit"},_currPanDist=(framework.extend(_options,options),{x:0,y:0}),_startPanOffset={x:0,y:0},_panOffset={x:0,y:0},_viewportSize={},_currPositionIndex=0,_offset={},_slideSize={x:0,y:0},_indexDiff=0,_isFixedPosition=!0,_modules=[],_windowVisibleSize={},_renderMaxResolution=!1,_listeners={},_shout=function(name){var listeners=_listeners[name];if(listeners){var args=Array.prototype.slice.call(arguments);args.shift();for(var i=0;i<listeners.length;i++)listeners[i].apply(self,args)}},_getCurrentTime=function(){return(new Date).getTime()},_applyBgOpacity=function(opacity){_bgOpacity=opacity,self.bg.style.opacity=opacity*_options.bgOpacity},_applyZoomTransform=function(styleObj,x,y,zoom,item){(!_renderMaxResolution||item&&item!==self.currItem)&&(zoom/=(item||self.currItem).fitRatio),styleObj[_transformKey]=_translatePrefix+x+"px, "+y+"px"+_translateSufix+" scale("+zoom+")"},_applyCurrentZoomPan=function(allowRenderResolution){_currZoomElementStyle&&(allowRenderResolution&&(_currZoomLevel>self.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<delta||dragging>=_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<item.fitRatio?1:item.fitRatio,s=item.container.style,h=zoomRatio*item.h;s.width=zoomRatio*item.w+"px",s.height=h+"px",s.left=item.initialPosition.x+"px",s.top=item.initialPosition.y+"px"},_applyCurrentZoomPan=function(){var s,item,zoomRatio,h;_currZoomElementStyle&&(s=_currZoomElementStyle,h=(zoomRatio=1<(item=self.currItem).fitRatio?1:item.fitRatio)*item.h,s.width=zoomRatio*item.w+"px",s.height=h+"px",s.left=_panOffset.x+"px",s.top=_panOffset.y+"px")}),_globalEventHandlers={resize:self.updateSize,orientationchange:function(){clearTimeout(_orientationChangeTimeout),_orientationChangeTimeout=setTimeout(function(){_viewportSize.x!==self.scrollWrap.clientWidth&&self.updateSize()},500)},scroll:_updatePageScrollOffset,keydown:_onKeyDown,click:_onGlobalClick};var i,allow3dTransform=_features.isOldIOSPhone||_features.isOldAndroid||_features.isMobileOpera;for(_features.animationName&&_features.transform&&!allow3dTransform||(_options.showAnimationDuration=_options.hideAnimationDuration=0),i=0;i<_modules.length;i++)self["init"+_modules[i]]();UiClass&&(self.ui=new UiClass(self,framework)).init(),_shout("firstUpdate"),_currentItemIndex=_currentItemIndex||_options.index||0,(isNaN(_currentItemIndex)||_currentItemIndex<0||_currentItemIndex>=_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<diffAbs;i++)0<_indexDiff?(tempHolder=_itemHolders.shift(),_itemHolders[2]=tempHolder,_setTranslateX((++_containerShiftIndex+2)*_slideSize.x,tempHolder.el.style),self.setContent(tempHolder,_currentItemIndex-diffAbs+i+1+1)):(tempHolder=_itemHolders.pop(),_itemHolders.unshift(tempHolder),_setTranslateX(--_containerShiftIndex*_slideSize.x,tempHolder.el.style),self.setContent(tempHolder,_currentItemIndex+diffAbs-i-1-1));_currZoomElementStyle&&1===Math.abs(_indexDiff)&&(beforeAnimation=_getItemAt(_prevItemIndex)).initialZoomLevel!==_currZoomLevel&&(_calculateItemSize(beforeAnimation,_viewportSize),_setImageSize(beforeAnimation),_applyZoomPanToItem(beforeAnimation)),_indexDiff=0,self.updateCurrZoomItem(),_prevItemIndex=_currentItemIndex,_shout("afterChange")}}},updateSize:function(force){if(!_isFixedPosition&&_options.modal){var windowScrollY=framework.getScrollY();if(_currentWindowScrollY!==windowScrollY&&(template.style.top=windowScrollY+"px",_currentWindowScrollY=windowScrollY),!force&&_windowVisibleSize.x===window.innerWidth&&_windowVisibleSize.y===window.innerHeight)return;_windowVisibleSize.x=window.innerWidth,_windowVisibleSize.y=window.innerHeight,template.style.height=_windowVisibleSize.y+"px"}if(_viewportSize.x=self.scrollWrap.clientWidth,_viewportSize.y=self.scrollWrap.clientHeight,_updatePageScrollOffset(),_slideSize.x=_viewportSize.x+Math.round(_viewportSize.x*_options.spacing),_slideSize.y=_viewportSize.y,_moveMainScroll(_slideSize.x*_currPositionIndex),_shout("beforeResize"),void 0!==_containerShiftIndex){for(var holder,item,hIndex,i=0;i<3;i++)holder=_itemHolders[i],_setTranslateX((i+_containerShiftIndex)*_slideSize.x,holder.el.style),hIndex=_currentItemIndex+i-1,_options.loop&&2<_getNumItems()&&(hIndex=_getLoopedId(hIndex)),(item=_getItemAt(hIndex))&&(_itemsNeedUpdate||item.needsUpdate||!item.bounds)?(self.cleanSlide(item),self.setContent(holder,hIndex),1===i&&(self.currItem=item,self.updateCurrZoomItem(!0)),item.needsUpdate=!1):-1===holder.index&&0<=hIndex&&self.setContent(holder,hIndex),item&&item.container&&(_calculateItemSize(item,_viewportSize),_setImageSize(item),_applyZoomPanToItem(item));_itemsNeedUpdate=!1}_startZoomLevel=_currZoomLevel=self.currItem.initialZoomLevel,(_currPanBounds=self.currItem.bounds)&&(_panOffset.x=_currPanBounds.center.x,_panOffset.y=_currPanBounds.center.y,_applyCurrentZoomPan(!0)),_shout("resize")},zoomTo:function(destZoomLevel,centerPoint,speed,easingFn,updateFn){centerPoint&&(_startZoomLevel=_currZoomLevel,_midZoomPoint.x=Math.abs(centerPoint.x)-_panOffset.x,_midZoomPoint.y=Math.abs(centerPoint.y)-_panOffset.y,_equalizePoints(_startPanOffset,_panOffset));function onUpdate(now){1===now?(_currZoomLevel=destZoomLevel,_panOffset.x=destPanOffset.x,_panOffset.y=destPanOffset.y):(_currZoomLevel=(destZoomLevel-initialZoomLevel)*now+initialZoomLevel,_panOffset.x=(destPanOffset.x-initialPanOffset.x)*now+initialPanOffset.x,_panOffset.y=(destPanOffset.y-initialPanOffset.y)*now+initialPanOffset.y),updateFn&&updateFn(now),_applyCurrentZoomPan(1===now)}var centerPoint=_calculatePanBounds(destZoomLevel,!1),destPanOffset={},initialZoomLevel=(_modifyDestPanOffset("x",centerPoint,destPanOffset,destZoomLevel),_modifyDestPanOffset("y",centerPoint,destPanOffset,destZoomLevel),_currZoomLevel),initialPanOffset={x:_panOffset.x,y:_panOffset.y};_roundPoint(destPanOffset);speed?_animateProp("customZoomTo",0,1,speed,easingFn||framework.easing.sine.inOut,onUpdate):onUpdate(1)}},MIN_SWIPE_DISTANCE=30,DIRECTION_CHECK_OFFSET=10,p={},p2={},delta={},_currPoint={},_startPoint={},_currPointers=[],_startMainScrollPos={},_posPoints=[],_tempPoint={},_currZoomedItemIndex=0,_centerPoint={x:0,y:0},_lastReleaseTime=0,_mainScrollPos={x:0,y:0},_midZoomPoint={x:0,y:0},_currCenterPoint={x:0,y:0},_isEqualPoints=function(p1,p2){return p1.x===p2.x&&p1.y===p2.y},_calculatePointsDistance=function(p1,p2){return _tempPoint.x=Math.abs(p1.x-p2.x),_tempPoint.y=Math.abs(p1.y-p2.y),Math.sqrt(_tempPoint.x*_tempPoint.x+_tempPoint.y*_tempPoint.y)},_stopDragUpdateLoop=function(){_dragAnimFrame&&(_cancelAF(_dragAnimFrame),_dragAnimFrame=null)},_dragUpdateLoop=function(){_isDragging&&(_dragAnimFrame=_requestAF(_dragUpdateLoop),_renderMovement())},_canPan=function(){return!("fit"===_options.scaleMode&&_currZoomLevel===self.currItem.initialZoomLevel)},_closestElement=function(el,fn){return!(!el||el===document||el.getAttribute("class")&&-1<el.getAttribute("class").indexOf("pswp__scroll-wrap"))&&(fn(el)?el:_closestElement(el.parentNode,fn))},_preventObj={},_preventDefaultEventBehaviour=function(e,isDown){return _preventObj.prevent=!_closestElement(e.target,_options.isClickableElement),_shout("preventDragEvent",e,isDown,_preventObj),_preventObj.prevent},_convertTouchToPoint=function(touch,p){return p.x=touch.pageX,p.y=touch.pageY,p.id=touch.identifier,p},_findCenterOfPoints=function(p1,p2,pCenter){pCenter.x=.5*(p1.x+p2.x),pCenter.y=.5*(p1.y+p2.y)},_pushPosPoint=function(time,x,y){var o;50<time-_gestureCheckSpeedTime&&((o=2<_posPoints.length?_posPoints.shift():{}).x=x,o.y=y,_posPoints.push(o),_gestureCheckSpeedTime=time)},_calculateVerticalDragOpacityRatio=function(){var yOffset=_panOffset.y-self.currItem.initialPosition.y;return 1-Math.abs(yOffset/(_viewportSize.y/2))},_ePoint1={},_ePoint2={},_tempPointsArr=[],_getTouchPoints=function(e){for(;0<_tempPointsArr.length;)_tempPointsArr.pop();return _pointerEventEnabled?(_tempCounter=0,_currPointers.forEach(function(p){0===_tempCounter?_tempPointsArr[0]=p:1===_tempCounter&&(_tempPointsArr[1]=p),_tempCounter++})):-1<e.type.indexOf("touch")?e.touches&&0<e.touches.length&&(_tempPointsArr[0]=_convertTouchToPoint(e.touches[0],_ePoint1),1<e.touches.length)&&(_tempPointsArr[1]=_convertTouchToPoint(e.touches[1],_ePoint2)):(_ePoint1.x=e.pageX,_ePoint1.y=e.pageY,_ePoint1.id="",_tempPointsArr[0]=_ePoint1),_tempPointsArr},_panOrMoveMainScroll=function(axis,delta){var startOverDiff,newPanPos,newMainScrollPos,newOffset=_panOffset[axis]+delta[axis],dir=0<delta[axis],newMainScrollPosition=_mainScrollPos.x+delta.x,mainScrollDiff=_mainScrollPos.x-_startMainScrollPos.x,panFriction=newOffset>_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||0<mainScrollDiff)&&1<_getNumItems()?(newMainScrollPos=newMainScrollPosition,0<mainScrollDiff&&newMainScrollPosition<_startMainScrollPos.x&&(newMainScrollPos=_startMainScrollPos.x)):_currPanBounds.min.x!==_currPanBounds.max.x&&(newPanPos=newOffset))):newMainScrollPos=newMainScrollPosition,"x"===axis))return void 0!==newMainScrollPos&&(_moveMainScroll(newMainScrollPos,!0),_mainScrollShifted=newMainScrollPos!==_startMainScrollPos.x),_currPanBounds.min.x!==_currPanBounds.max.x&&(void 0!==newPanPos?_panOffset.x=newPanPos:_mainScrollShifted||(_panOffset.x+=delta.x*panFriction)),void 0!==newMainScrollPos;_mainScrollAnimating||_mainScrollShifted||_currZoomLevel>self.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&&1<numPoints)_currPoint.x=p.x,_currPoint.y=p.y,!delta.x&&!delta.y&&_isEqualPoints(_currentPoints[1],p2)||(_equalizePoints(p2,_currentPoints[1]),_zoomStarted||(_zoomStarted=!0,_shout("zoomGestureStarted")),numPoints=_calculatePointsDistance(p,p2),(zoomLevel=_calculateZoomLevel(numPoints))>self.currItem.initialZoomLevel+self.currItem.initialZoomLevel/15&&(_wasOverInitialZoom=!0),zoomFriction=1,minZoomLevel=_getMinZoomLevel(),maxZoomLevel=_getMaxZoomLevel(),zoomLevel<minZoomLevel?_options.pinchToClose&&!_wasOverInitialZoom&&_startZoomLevel<=self.currItem.initialZoomLevel?(_applyBgOpacity(percent=1-(minZoomLevel-zoomLevel)/(minZoomLevel/1.2)),_shout("onPinchClose",percent),_opacityChanged=!0):zoomLevel=minZoomLevel-(zoomFriction=1<(zoomFriction=(minZoomLevel-zoomLevel)/minZoomLevel)?1:zoomFriction)*(minZoomLevel/3):maxZoomLevel<zoomLevel&&(zoomLevel=maxZoomLevel+(zoomFriction=1<(zoomFriction=(zoomLevel-maxZoomLevel)/(6*minZoomLevel))?1:zoomFriction)*minZoomLevel),zoomFriction<0&&(zoomFriction=0),_findCenterOfPoints(p,p2,_centerPoint),_currPanDist.x+=_centerPoint.x-_currCenterPoint.x,_currPanDist.y+=_centerPoint.y-_currCenterPoint.y,_equalizePoints(_currCenterPoint,_centerPoint),_panOffset.x=_calculatePanOffset("x",zoomLevel),_panOffset.y=_calculatePanOffset("y",zoomLevel),_isZoomingIn=_currZoomLevel<zoomLevel,_currZoomLevel=zoomLevel,_applyCurrentZoomPan());else if(_direction&&(_isFirstMove&&(_isFirstMove=!1,Math.abs(delta.x)>=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<s.lastFlickDist[axis]?s.lastFlickSpeed[axis]=s.lastFlickOffset[axis]/lastFlickDuration:s.lastFlickSpeed[axis]=0,Math.abs(s.lastFlickSpeed[axis])<.1&&(s.lastFlickSpeed[axis]=0),s.slowDownRatio[axis]=.95,s.slowDownRatioReverse[axis]=1-s.slowDownRatio[axis],s.speedDecelerationRatio[axis]=1},calculateOverBoundsAnimOffset:function(axis,speed){s.backAnimStarted[axis]||(_panOffset[axis]>_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<gestureType&&(isFastLastFlick||20<_releaseAnimData.lastFlickOffset.x)?itemsDiff=-1:gestureType<-MIN_SWIPE_DISTANCE&&(isFastLastFlick||_releaseAnimData.lastFlickOffset.x<-20)&&(itemsDiff=1)),itemsDiff&&((_currentItemIndex+=itemsDiff)<0?(_currentItemIndex=_options.loop?_getNumItems()-1:0,nextCircle=!0):_currentItemIndex>=_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=0<Math.abs(_releaseAnimData.lastFlickSpeed.x)?isFastLastFlick/Math.abs(_releaseAnimData.lastFlickSpeed.x):333,finishAnimDuration=Math.min(finishAnimDuration,400),Math.max(finishAnimDuration,250)):333;return _currZoomedItemIndex===_currentItemIndex&&(itemChanged=!1),_mainScrollAnimating=!0,_shout("mainScrollAnimStart"),_animateProp("mainScroll",_mainScrollPos.x,gestureType,finishAnimDuration,framework.easing.cubic.out,_moveMainScroll,function(){_stopAllAnimations(),_mainScrollAnimating=!1,_currZoomedItemIndex=-1,!itemChanged&&_currZoomedItemIndex===_currentItemIndex||self.updateCurrItem(),_shout("mainScrollAnimComplete")}),itemChanged&&self.updateCurrItem(!0),itemChanged},_calculateZoomLevel=function(touchesDistance){return 1/_startPointsDistance*touchesDistance*_startZoomLevel},_completeZoomGesture=function(){var onUpdate,destZoomLevel=_currZoomLevel,minZoomLevel=_getMinZoomLevel(),maxZoomLevel=_getMaxZoomLevel(),initialOpacity=(_currZoomLevel<minZoomLevel?destZoomLevel=minZoomLevel:maxZoomLevel<_currZoomLevel&&(destZoomLevel=maxZoomLevel),_bgOpacity);return _opacityChanged&&!_isZoomingIn&&!_wasOverInitialZoom&&_currZoomLevel<minZoomLevel?self.close():(_opacityChanged&&(onUpdate=function(now){_applyBgOpacity((1-initialOpacity)*now+initialOpacity)}),self.zoomTo(destZoomLevel,0,200,framework.easing.cubic.out,onUpdate)),!0};_registerModule("Gestures",{publicMethods:{initGestures:function(){function addEventNames(pref,down,move,up,cancel){_dragStartEvent=pref+down,_dragMoveEvent=pref+move,_dragEndEvent=pref+up,_dragCancelEvent=cancel?pref+cancel:""}(_pointerEventEnabled=_features.pointerEvent)&&_features.touch&&(_features.touch=!1),_pointerEventEnabled?navigator.msPointerEnabled?addEventNames("MSPointer","Down","Move","Up","Cancel"):addEventNames("pointer","down","move","up","cancel"):_features.touch?(addEventNames("touch","start","move","end","cancel"),_likelyTouchDevice=!0):addEventNames("mouse","down","move","up"),_upMoveEvents=_dragMoveEvent+" "+_dragEndEvent+" "+_dragCancelEvent,_downEvents=_dragStartEvent,_pointerEventEnabled&&!_likelyTouchDevice&&(_likelyTouchDevice=1<navigator.maxTouchPoints||1<navigator.msMaxTouchPoints),self.likelyTouchDevice=_likelyTouchDevice,_globalEventHandlers[_dragStartEvent]=_onDragStart,_globalEventHandlers[_dragMoveEvent]=_onDragMove,_globalEventHandlers[_dragEndEvent]=_onDragRelease,_dragCancelEvent&&(_globalEventHandlers[_dragCancelEvent]=_globalEventHandlers[_dragEndEvent]),_features.touch&&(_downEvents+=" mousedown",_upMoveEvents+=" mousemove mouseup",_globalEventHandlers.mousedown=_globalEventHandlers[_dragStartEvent],_globalEventHandlers.mousemove=_globalEventHandlers[_dragMoveEvent],_globalEventHandlers.mouseup=_globalEventHandlers[_dragEndEvent]),_likelyTouchDevice||(_options.allowPanToNext=!1)}}});function _preloadImage(item){function onComplete(){item.loading=!1,item.loaded=!0,item.loadComplete?item.loadComplete(item):item.img=null,img.onload=img.onerror=null,img=null}item.loading=!0,item.loaded=!1;var img=item.img=framework.createEl("pswp__img","img");img.onload=onComplete,img.onerror=function(){item.loadError=!0,onComplete()},img.src=item.src}function _checkForError(item,cleanUp){return item.src&&item.loadError&&item.container&&(cleanUp&&(item.container.innerHTML=""),item.container.innerHTML=_options.errorMsg.replace("%url%",item.src),1)}function _appendImagesPool(){if(_imagesToAppendPool.length){for(var poolItem,i=0;i<_imagesToAppendPool.length;i++)(poolItem=_imagesToAppendPool[i]).holder.index===poolItem.index&&_appendImage(poolItem.index,poolItem.item,poolItem.baseDiv,poolItem.img,!1,poolItem.clearPlaceholder);_imagesToAppendPool=[]}}var _showOrHideTimeout,_items,_initialContentSet,_initialZoomRunning,_getItemAt,_getNumItems,_showOrHide=function(item,img,out,completeFn){function onComplete(){_stopAnimation("initialZoom"),out?(self.template.removeAttribute("style"),self.bg.removeAttribute("style")):(_applyBgOpacity(1),img&&(img.style.display="block"),framework.addClass(template,"pswp--animated-in"),_shout("initialZoom"+(out?"OutEnd":"InEnd"))),completeFn&&completeFn(),_initialZoomRunning=!1}_showOrHideTimeout&&clearTimeout(_showOrHideTimeout),_initialContentSet=_initialZoomRunning=!0,item.initialLayout?(thumbBounds=item.initialLayout,item.initialLayout=null):thumbBounds=_options.getThumbBoundsFn&&_options.getThumbBoundsFn(_currentItemIndex);var thumbBounds,closeWithRaf,fadeEverything,duration=out?_options.hideAnimationDuration:_options.showAnimationDuration;duration&&thumbBounds&&void 0!==thumbBounds.x?(closeWithRaf=_closedByScroll,fadeEverything=!self.currItem.src||self.currItem.loadError||_options.showHideOpacity,item.miniImg&&(item.miniImg.style.webkitBackfaceVisibility="hidden"),out||(_currZoomLevel=thumbBounds.w/item.w,_panOffset.x=thumbBounds.x,_panOffset.y=thumbBounds.y-_initalWindowScrollY,self[fadeEverything?"template":"bg"].style.opacity=.001,_applyCurrentZoomPan()),_registerStartAnimation("initialZoom"),out&&!closeWithRaf&&framework.removeClass(template,"pswp--animated-in"),fadeEverything&&(out?framework[(closeWithRaf?"remove":"add")+"Class"](template,"pswp--animate_opacity"):setTimeout(function(){framework.addClass(template,"pswp--animate_opacity")},30)),_showOrHideTimeout=setTimeout(function(){var destZoomLevel,initialPanOffset,initialZoomLevel,initalBgOpacity,onUpdate;_shout("initialZoom"+(out?"Out":"In")),out?(destZoomLevel=thumbBounds.w/item.w,initialPanOffset={x:_panOffset.x,y:_panOffset.y},initialZoomLevel=_currZoomLevel,initalBgOpacity=_bgOpacity,onUpdate=function(now){1===now?(_currZoomLevel=destZoomLevel,_panOffset.x=thumbBounds.x,_panOffset.y=thumbBounds.y-_currentWindowScrollY):(_currZoomLevel=(destZoomLevel-initialZoomLevel)*now+initialZoomLevel,_panOffset.x=(thumbBounds.x-initialPanOffset.x)*now+initialPanOffset.x,_panOffset.y=(thumbBounds.y-_currentWindowScrollY-initialPanOffset.y)*now+initialPanOffset.y),_applyCurrentZoomPan(),fadeEverything?template.style.opacity=1-now:_applyBgOpacity(initalBgOpacity-now*initalBgOpacity)},closeWithRaf?_animateProp("initialZoom",0,1,duration,framework.easing.cubic.out,onUpdate,onComplete):(onUpdate(1),_showOrHideTimeout=setTimeout(onComplete,duration+20))):(_currZoomLevel=item.initialZoomLevel,_equalizePoints(_panOffset,item.initialPosition),_applyCurrentZoomPan(),_applyBgOpacity(1),fadeEverything?template.style.opacity=1:_applyBgOpacity(1),_showOrHideTimeout=setTimeout(onComplete,duration+20))},out?25:90)):(_shout("initialZoom"+(out?"Out":"In")),_currZoomLevel=item.initialZoomLevel,_equalizePoints(_panOffset,item.initialPosition),_applyCurrentZoomPan(),template.style.opacity=out?0:1,_applyBgOpacity(1),duration?setTimeout(function(){onComplete()},duration):onComplete())},_tempPanAreaSize={},_imagesToAppendPool=[],_controllerDefaultOptions={index:0,errorMsg:'<div class="pswp__error-msg"><a href="%url%" target="_blank">The image</a> could not be loaded.</div>',forceProgressiveLoading:!1,preload:[1,1],getNumItemsFn:function(){return _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<vRatio?viewportSize:vRatio,"orig"===(viewportSize=_options.scaleMode)?zoomLevel=1:"fit"===viewportSize&&(zoomLevel=item.fitRatio),item.initialZoomLevel=zoomLevel=1<zoomLevel?1:zoomLevel,item.bounds||(item.bounds=_getZeroBounds())),zoomLevel?(_calculateSingleItemPanBounds(item,item.w*zoomLevel,item.h*zoomLevel),isInitial&&zoomLevel===item.initialZoomLevel&&(item.initialPosition=item.bounds.center),item.bounds):void 0)},_appendImage=function(index,item,baseDiv,img,preventAnimation,keepPlaceholder){item.loadError||img&&(item.imageAppended=!0,_setImageSize(item,img,item===self.currItem&&_renderMaxResolution),baseDiv.appendChild(img),keepPlaceholder)&&setTimeout(function(){item&&item.loaded&&item.placeholder&&(item.placeholder.style.display="none",item.placeholder=null)},500)},_setImageSize=function(item,img,maxRes){var w;item.src&&(img=img||item.container.lastChild,w=maxRes?item.w:Math.round(item.w*item.fitRatio),maxRes=maxRes?item.h:Math.round(item.h*item.fitRatio),item.placeholder&&!item.loaded&&(item.placeholder.style.width=w+"px",item.placeholder.style.height=maxRes+"px"),img.style.width=w+"px",img.style.height=maxRes+"px")};_registerModule("Controller",{publicMethods:{lazyLoadItem:function(index){index=_getLoopedId(index);var item=_getItemAt(index);item&&(!item.loaded&&!item.loading||_itemsNeedUpdate)&&(_shout("gettingData",index,item),item.src)&&_preloadImage(item)},initController:function(){framework.extend(_options,_controllerDefaultOptions,!0),self.items=_items=items,_getItemAt=self.getItemAt,_getNumItems=_options.getNumItemsFn,_options.loop,_getNumItems()<3&&(_options.loop=!1),_listen("beforeChange",function(diff){for(var p=_options.preload,isNext=null===diff||0<=diff,preloadBefore=Math.min(p[0],_getNumItems()),preloadAfter=Math.min(p[1],_getNumItems()),i=1;i<=(isNext?preloadAfter:preloadBefore);i++)self.lazyLoadItem(_currentItemIndex+i);for(i=1;i<=(isNext?preloadBefore:preloadAfter);i++)self.lazyLoadItem(_currentItemIndex-i)}),_listen("initialLayout",function(){self.currItem.initialLayout=_options.getThumbBoundsFn&&_options.getThumbBoundsFn(_currentItemIndex)}),_listen("mainScrollAnimComplete",_appendImagesPool),_listen("initialZoomInEnd",_appendImagesPool),_listen("destroy",function(){for(var item,i=0;i<_items.length;i++)(item=_items[i]).container&&(item.container=null),item.placeholder&&(item.placeholder=null),item.img&&(item.img=null),item.preloader&&(item.preloader=null),item.loadError&&(item.loaded=item.loadError=!1);_imagesToAppendPool=null})},getItemAt:function(index){return 0<=index&&void 0!==_items[index]&&_items[index]},allowProgressiveImg:function(){return _options.forceProgressiveLoading||!_likelyTouchDevice||_options.mouseUsed||1200<screen.width},setContent:function(holder,index){_options.loop&&(index=_getLoopedId(index));var img,baseDiv,placeholderClassName,prevItem=self.getItemAt(holder.index),prevItem=(prevItem&&(prevItem.container=null),self.getItemAt(index));prevItem?(_shout("gettingData",index,prevItem),holder.index=index,baseDiv=(holder.item=prevItem).container=framework.createEl("pswp__zoom-wrap"),!prevItem.src&&prevItem.html&&(prevItem.html.tagName?baseDiv.appendChild(prevItem.html):baseDiv.innerHTML=prevItem.html),_checkForError(prevItem),_calculateItemSize(prevItem,_viewportSize),!prevItem.src||prevItem.loadError||prevItem.loaded?prevItem.src&&!prevItem.loadError&&((img=framework.createEl("pswp__img","img")).style.opacity=1,img.src=prevItem.src,_setImageSize(prevItem,img),_appendImage(index,prevItem,baseDiv,img,!0)):(prevItem.loadComplete=function(item){if(_isOpen){if(holder&&holder.index===index){if(_checkForError(item,!0))return item.loadComplete=item.img=null,_calculateItemSize(item,_viewportSize),_applyZoomPanToItem(item),void(holder.index===_currentItemIndex&&self.updateCurrZoomItem());item.imageAppended?!_initialZoomRunning&&item.placeholder&&(item.placeholder.style.display="none",item.placeholder=null):_features.transform&&(_mainScrollAnimating||_initialZoomRunning)?_imagesToAppendPool.push({item:item,baseDiv:baseDiv,img:item.img,index:index,holder:holder,clearPlaceholder:!0}):_appendImage(index,item,baseDiv,item.img,_mainScrollAnimating||_initialZoomRunning,!0)}item.loadComplete=null,item.img=null,_shout("imageLoadComplete",index,item)}},framework.features.transform&&(placeholderClassName="pswp__img pswp__img--placeholder",placeholderClassName+=prevItem.msrc?"":" pswp__img--placeholder--blank",placeholderClassName=framework.createEl(placeholderClassName,prevItem.msrc?"img":""),prevItem.msrc&&(placeholderClassName.src=prevItem.msrc),_setImageSize(prevItem,placeholderClassName),baseDiv.appendChild(placeholderClassName),prevItem.placeholder=placeholderClassName),prevItem.loading||_preloadImage(prevItem),self.allowProgressiveImg()&&(!_initialContentSet&&_features.transform?_imagesToAppendPool.push({item:prevItem,baseDiv:baseDiv,img:prevItem.img,index:index,holder:holder}):_appendImage(index,prevItem,baseDiv,prevItem.img,!0,!0))),_initialContentSet||index!==_currentItemIndex?_applyZoomPanToItem(prevItem):(_currZoomElementStyle=baseDiv.style,_showOrHide(prevItem,img||prevItem.img)),holder.el.innerHTML="",holder.el.appendChild(baseDiv)):holder.el.innerHTML=""},cleanSlide:function(item){item.img&&(item.img.onload=item.img.onerror=null),item.loaded=item.loading=item.img=item.imageAppended=!1}}});function _dispatchTapEvent(origEvent,releasePoint,pointerType){var e=document.createEvent("CustomEvent"),releasePoint={origEvent:origEvent,target:origEvent.target,releasePoint:releasePoint,pointerType:pointerType||"touch"};e.initCustomEvent("pswpTap",!0,!0,releasePoint),origEvent.target.dispatchEvent(e)}function _cleanHistoryTimeouts(){_historyUpdateTimeout&&clearTimeout(_historyUpdateTimeout),_hashAnimCheckTimeout&&clearTimeout(_hashAnimCheckTimeout)}function _parseItemIndexFromURL(){var hash=_getHash(),params={};if(!(hash.length<5)){var pair,vars=hash.split("&");for(i=0;i<vars.length;i++)vars[i]&&((pair=vars[i].split("=")).length<2||(params[pair[0]]=pair[1]));if(_options.galleryPIDs){for(var searchfor=params.pid,i=params.pid=0;i<_items.length;i++)if(_items[i].pid===searchfor){params.pid=i;break}}else params.pid=parseInt(params.pid,10)-1;params.pid<0&&(params.pid=0)}return params}var tapTimer,_wheelDelta,_historyUpdateTimeout,_hashChangeTimeout,_hashAnimCheckTimeout,_hashChangedByScript,_hashChangedByHistory,_hashReseted,_initialHash,_historyChanged,_closedFromURL,_urlChangedOnce,_windowLoc,_supportsPushState,tapReleasePoint={},_historyDefaultOptions=(_registerModule("Tap",{publicMethods:{initTap:function(){_listen("firstTouchStart",self.onTapStart),_listen("touchRelease",self.onTapRelease),_listen("destroy",function(){tapReleasePoint={},tapTimer=null})},onTapStart:function(touchList){1<touchList.length&&(clearTimeout(tapTimer),tapTimer=null)},onTapRelease:function(e,releasePoint){var p0,touch0,touch1;!releasePoint||_moved||_isMultitouch||_numAnimations||(p0=releasePoint,tapTimer&&(clearTimeout(tapTimer),tapTimer=null,touch0=p0,touch1=tapReleasePoint,Math.abs(touch0.x-touch1.x)<DOUBLE_TAP_RADIUS)&&Math.abs(touch0.y-touch1.y)<DOUBLE_TAP_RADIUS?_shout("doubleTap",p0):"mouse"===releasePoint.type?_dispatchTapEvent(e,releasePoint,"mouse"):"BUTTON"===e.target.tagName.toUpperCase()||framework.hasClass(e.target,"pswp__single-tap")?_dispatchTapEvent(e,releasePoint):(_equalizePoints(tapReleasePoint,p0),tapTimer=setTimeout(function(){_dispatchTapEvent(e,releasePoint),tapTimer=null},300)))}}}),_registerModule("DesktopZoom",{publicMethods:{initDesktopZoom:function(){_oldIE||(_likelyTouchDevice?_listen("mouseUsed",function(){self.setupDesktopZoom()}):self.setupDesktopZoom(!0))},setupDesktopZoom:function(onInit){_wheelDelta={};var events="wheel mousewheel DOMMouseScroll";_listen("bindEvents",function(){framework.bind(template,events,self.handleMouseWheel)}),_listen("unbindEvents",function(){_wheelDelta&&framework.unbind(template,events,self.handleMouseWheel)}),self.mouseZoomedIn=!1;function updateZoomable(){self.mouseZoomedIn&&(framework.removeClass(template,"pswp--zoomed-in"),self.mouseZoomedIn=!1),_currZoomLevel<1?framework.addClass(template,"pswp--zoom-allowed"):framework.removeClass(template,"pswp--zoom-allowed"),removeDraggingClass()}var hasDraggingClass,removeDraggingClass=function(){hasDraggingClass&&(framework.removeClass(template,"pswp--dragging"),hasDraggingClass=!1)};_listen("resize",updateZoomable),_listen("afterChange",updateZoomable),_listen("pointerDown",function(){self.mouseZoomedIn&&(hasDraggingClass=!0,framework.addClass(template,"pswp--dragging"))}),_listen("pointerUp",removeDraggingClass),onInit||updateZoomable()},handleMouseWheel:function(e){if(_currZoomLevel<=self.currItem.fitRatio)return _options.modal&&(!_options.closeOnScroll||_numAnimations||_isDragging?e.preventDefault():_transformKey&&2<Math.abs(e.deltaY)&&(_closedByScroll=!0,self.close())),!0;if(e.stopPropagation(),_wheelDelta.x=0,"deltaX"in e)1===e.deltaMode?(_wheelDelta.x=18*e.deltaX,_wheelDelta.y=18*e.deltaY):(_wheelDelta.x=e.deltaX,_wheelDelta.y=e.deltaY);else if("wheelDelta"in e)e.wheelDeltaX&&(_wheelDelta.x=-.16*e.wheelDeltaX),_wheelDelta.y=e.wheelDeltaY?-.16*e.wheelDeltaY:-.16*e.wheelDelta;else{if(!("detail"in e))return;_wheelDelta.y=e.detail}_calculatePanBounds(_currZoomLevel,!0);var newPanX=_panOffset.x-_wheelDelta.x,newPanY=_panOffset.y-_wheelDelta.y;(_options.modal||newPanX<=_currPanBounds.min.x&&newPanX>=_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<clickedClass.indexOf("pswp__"+uiElement.name)&&(uiElement.onTap(),found=!0);found&&(e.stopPropagation&&e.stopPropagation(),_blockControlsTap=!0,e=framework.features.isOldAndroid?600:30,setTimeout(function(){_blockControlsTap=!1},e))}function _countNumItems(){var hasOneSlide=1===_options.getNumItemsFn();hasOneSlide!==_galleryHasOneSlide&&(_togglePswpClass(_controls,"ui--one-slide",hasOneSlide),_galleryHasOneSlide=hasOneSlide)}function _toggleShareModalClass(){_togglePswpClass(_shareModal,"share-modal--hidden",_shareModalHidden)}function _updateShareURLs(){for(var shareButtonData,image_url,page_url,share_text,shareButtonOut="",i=0;i<_options.shareButtons.length;i++)shareButtonData=_options.shareButtons[i],image_url=_options.getImageURLForShare(shareButtonData),page_url=_options.getPageURLForShare(shareButtonData),share_text=_options.getTextForShare(shareButtonData),shareButtonOut+='<a href="'+shareButtonData.url.replace("{{url}}",encodeURIComponent(page_url)).replace("{{image_url}}",encodeURIComponent(image_url)).replace("{{raw_image_url}}",image_url).replace("{{text}}",encodeURIComponent(share_text))+'" target="_blank" class="pswp__share--'+shareButtonData.id+'"'+(shareButtonData.download?"download":"")+">"+shareButtonData.label+"</a>",_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<l;i++){item=sChildren[i],classAttr=item.className;for(var a=0;a<_uiElements.length;a++)uiElement=_uiElements[a],-1<classAttr.indexOf("pswp__"+uiElement.name)&&(_options[uiElement.option]?(framework.removeClass(item,"pswp__element--disabled"),uiElement.onInit&&uiElement.onInit(item)):framework.addClass(item,"pswp__element--disabled"))}}loopThroughChildElements(_controls.children);var item,classAttr,uiElement,topBar=framework.getChildByClass(_controls,"pswp__top-bar");topBar&&loopThroughChildElements(topBar.children)}var _fullscrenAPI,_controls,_captionContainer,_fakeCaptionContainer,_indexIndicator,_shareButton,_shareModal,_initalCloseOnScrollValue,_isIdle,_listen,_loadingIndicator,_loadingIndicatorHidden,_loadingIndicatorTimeout,_galleryHasOneSlide,_options,_blockControlsTap,_idleInterval,_idleTimer,ui=this,_overlayUIUpdated=!1,_controlsVisible=!0,_shareModalHidden=!0,_defaultUIOptions={barsSize:{top:44,bottom:"auto"},closeElClasses:["item","caption","zoom-wrap","ui","top-bar"],timeToIdle:4e3,timeToIdleOutside:1e3,loadingIndicatorDelay:1e3,addCaptionHTMLFn:function(item,captionEl){return item.title?(captionEl.children[0].innerHTML=item.title,!0):(captionEl.children[0].innerHTML="",!1)},closeEl:!0,captionEl:!0,fullscreenEl:!0,zoomEl:!0,shareEl:!0,counterEl:!0,arrowEl:!0,preloaderEl:!0,tapToClose:!1,tapToToggleControls:!0,clickToCloseNonZoomable:!0,shareButtons:[{id:"facebook",label:"Share on Facebook",url:"https://www.facebook.com/sharer/sharer.php?u={{url}}"},{id:"twitter",label:"Tweet",url:"https://twitter.com/intent/tweet?text={{text}}&url={{url}}"},{id:"pinterest",label:"Pin it",url:"http://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}"},{id:"download",label:"Download image",url:"{{raw_image_url}}",download:!0}],getImageURLForShare:function(){return pswp.currItem.src||""},getPageURLForShare:function(){return window.location.href},getTextForShare:function(){return pswp.currItem.title||""},indexIndicatorSep:" / ",fitControlsWidth:1200},_togglePswpClass=function(el,cName,add){framework[(add?"add":"remove")+"Class"](el,"pswp__"+cName)},_toggleShareModal=function(){return(_shareModalHidden=!_shareModalHidden)?(framework.removeClass(_shareModal,"pswp__share-modal--fade-in"),setTimeout(function(){_shareModalHidden&&_toggleShareModalClass()},300)):(_toggleShareModalClass(),setTimeout(function(){_shareModalHidden||framework.addClass(_shareModal,"pswp__share-modal--fade-in")},30)),_shareModalHidden||_updateShareURLs(),!1},_openWindowPopup=function(e){var target=(e=e||window.event).target||e.srcElement;if(pswp.shout("shareLinkClick",e,target),target.href){if(target.hasAttribute("download"))return!0;window.open(target.href,"pswp_share","scrollbars=yes,resizable=yes,toolbar=no,location=yes,width=550,height=420,top=100,left="+(window.screen?Math.round(screen.width/2-275):100)),_shareModalHidden||_toggleShareModal()}return!1},_idleIncrement=0,_uiElements=[{name:"caption",option:"captionEl",onInit:function(el){_captionContainer=el}},{name:"share-modal",option:"shareEl",onInit:function(el){_shareModal=el},onTap:function(){_toggleShareModal()}},{name:"button--share",option:"shareEl",onInit:function(el){_shareButton=el},onTap:function(){_toggleShareModal()}},{name:"button--zoom",option:"zoomEl",onTap:pswp.toggleDesktopZoom},{name:"counter",option:"counterEl",onInit:function(el){_indexIndicator=el}},{name:"button--close",option:"closeEl",onTap:pswp.close},{name:"button--arrow--left",option:"arrowEl",onTap:pswp.prev},{name:"button--arrow--right",option:"arrowEl",onTap:pswp.next},{name:"button--fs",option:"fullscreenEl",onTap:function(){_fullscrenAPI.isFullscreen()?_fullscrenAPI.exit():_fullscrenAPI.enter()}},{name:"preloader",option:"preloaderEl",onInit:function(el){_loadingIndicator=el}}];ui.init=function(){var pinchControlsHidden;framework.extend(pswp.options,_defaultUIOptions,!0),_options=pswp.options,_controls=framework.getChildByClass(pswp.scrollWrap,"pswp__ui"),(_listen=pswp.listen)("onVerticalDrag",function(now){_controlsVisible&&now<.95?ui.hideControls():!_controlsVisible&&.95<=now&&ui.showControls()}),_listen("onPinchClose",function(now){_controlsVisible&&now<.9?(ui.hideControls(),pinchControlsHidden=!0):pinchControlsHidden&&!_controlsVisible&&.9<now&&ui.showControls()}),_listen("zoomGestureEnded",function(){(pinchControlsHidden=!1)&&!_controlsVisible&&ui.showControls()}),_listen("beforeChange",ui.update),_listen("doubleTap",function(point){var initialZoomLevel=pswp.currItem.initialZoomLevel;pswp.getZoomLevel()!==initialZoomLevel?pswp.zoomTo(initialZoomLevel,point,333):pswp.zoomTo(_options.getDoubleTapZoom(!1,pswp.currItem),point,333)}),_listen("preventDragEvent",function(e,isDown,preventObj){var t=e.target||e.srcElement;t&&t.getAttribute("class")&&-1<e.type.indexOf("mouse")&&(0<t.getAttribute("class").indexOf("__caption")||/(SMALL|STRONG|EM)/i.test(t.tagName))&&(preventObj.prevent=!1)}),_listen("bindEvents",function(){framework.bind(_controls,"pswpTap click",_onControlsTap),framework.bind(pswp.scrollWrap,"pswpTap",ui.onGlobalTap),pswp.likelyTouchDevice||framework.bind(pswp.scrollWrap,"mouseover",ui.onMouseOver)}),_listen("unbindEvents",function(){_shareModalHidden||_toggleShareModal(),_idleInterval&&clearInterval(_idleInterval),framework.unbind(document,"mouseout",_onMouseLeaveWindow),framework.unbind(document,"mousemove",_onIdleMouseMove),framework.unbind(_controls,"pswpTap click",_onControlsTap),framework.unbind(pswp.scrollWrap,"pswpTap",ui.onGlobalTap),framework.unbind(pswp.scrollWrap,"mouseover",ui.onMouseOver),_fullscrenAPI&&(framework.unbind(document,_fullscrenAPI.eventK,ui.updateFullscreen),_fullscrenAPI.isFullscreen()&&(_options.hideAnimationDuration=0,_fullscrenAPI.exit()),_fullscrenAPI=null)}),_listen("destroy",function(){_options.captionEl&&(_fakeCaptionContainer&&_controls.removeChild(_fakeCaptionContainer),framework.removeClass(_captionContainer,"pswp__caption--empty")),_shareModal&&(_shareModal.children[0].onclick=null),framework.removeClass(_controls,"pswp__ui--over-close"),framework.addClass(_controls,"pswp__ui--hidden"),ui.setIdle(!1)}),_options.showAnimationDuration||framework.removeClass(_controls,"pswp__ui--hidden"),_listen("initialZoomIn",function(){_options.showAnimationDuration&&framework.removeClass(_controls,"pswp__ui--hidden")}),_listen("initialZoomOut",function(){framework.addClass(_controls,"pswp__ui--hidden")}),_listen("parseVerticalMargin",_applyNavBarGaps),_setupUIElements(),_options.shareEl&&_shareButton&&_shareModal&&(_shareModalHidden=!0),_countNumItems(),_options.timeToIdle&&_listen("mouseUsed",function(){framework.bind(document,"mousemove",_onIdleMouseMove),framework.bind(document,"mouseout",_onMouseLeaveWindow),_idleInterval=setInterval(function(){2===++_idleIncrement&&ui.setIdle(!0)},_options.timeToIdle/2)}),_options.fullscreenEl&&!framework.features.isOldAndroid&&((_fullscrenAPI=_fullscrenAPI||ui.getFullscreenAPI())?(framework.bind(document,_fullscrenAPI.eventK,ui.updateFullscreen),ui.updateFullscreen(),framework.addClass(pswp.template,"pswp--supports-fs")):framework.removeClass(pswp.template,"pswp--supports-fs")),_options.preloaderEl&&(_toggleLoadingIndicator(!0),_listen("beforeChange",function(){clearTimeout(_loadingIndicatorTimeout),_loadingIndicatorTimeout=setTimeout(function(){pswp.currItem&&pswp.currItem.loading?pswp.allowProgressiveImg()&&(!pswp.currItem.img||pswp.currItem.img.naturalWidth)||_toggleLoadingIndicator(!1):_toggleLoadingIndicator(!0)},_options.loadingIndicatorDelay)}),_listen("imageLoadComplete",function(index,item){pswp.currItem===item&&_toggleLoadingIndicator(!0)}))},ui.setIdle=function(isIdle){_togglePswpClass(_controls,"ui--idle",_isIdle=isIdle)},ui.update=function(){_overlayUIUpdated=!(!_controlsVisible||!pswp.currItem||(ui.updateIndexIndicator(),_options.captionEl&&(_options.addCaptionHTMLFn(pswp.currItem,_captionContainer),_togglePswpClass(_captionContainer,"caption--empty",!pswp.currItem.title)),0)),_shareModalHidden||_toggleShareModal(),_countNumItems()},ui.updateFullscreen=function(e){e&&setTimeout(function(){pswp.setScrollOffset(0,framework.getScrollY())},50),framework[(_fullscrenAPI.isFullscreen()?"add":"remove")+"Class"](pswp.template,"pswp--fs")},ui.updateIndexIndicator=function(){_options.counterEl&&(_indexIndicator.innerHTML=pswp.getCurrentIndex()+1+_options.indexIndicatorSep+_options.getNumItemsFn())},ui.onGlobalTap=function(e){var target=(e=e||window.event).target||e.srcElement;_blockControlsTap||(e.detail&&"mouse"===e.detail.pointerType?_hasCloseClass(target)?pswp.close():framework.hasClass(target,"pswp__img")&&(1===pswp.getZoomLevel()&&pswp.getZoomLevel()<=pswp.currItem.fitRatio?_options.clickToCloseNonZoomable&&pswp.close():pswp.toggleDesktopZoom(e.detail.releasePoint)):(_options.tapToToggleControls&&(_controlsVisible?ui.hideControls():ui.showControls()),_options.tapToClose&&(framework.hasClass(target,"pswp__img")||_hasCloseClass(target))&&pswp.close()))},ui.onMouseOver=function(e){e=(e=e||window.event).target||e.srcElement;_togglePswpClass(_controls,"ui--over-close",_hasCloseClass(e))},ui.hideControls=function(){framework.addClass(_controls,"pswp__ui--hidden"),_controlsVisible=!1},ui.showControls=function(){_controlsVisible=!0,_overlayUIUpdated||ui.update(),framework.removeClass(_controls,"pswp__ui--hidden")},ui.supportsFullscreen=function(){var d=document;return!!(d.exitFullscreen||d.mozCancelFullScreen||d.webkitExitFullscreen||d.msExitFullscreen)},ui.getFullscreenAPI=function(){var api,dE=document.documentElement,tF="fullscreenchange";return dE.requestFullscreen?api={enterK:"requestFullscreen",exitK:"exitFullscreen",elementK:"fullscreenElement",eventK:tF}:dE.mozRequestFullScreen?api={enterK:"mozRequestFullScreen",exitK:"mozCancelFullScreen",elementK:"mozFullScreenElement",eventK:"moz"+tF}:dE.webkitRequestFullscreen?api={enterK:"webkitRequestFullscreen",exitK:"webkitExitFullscreen",elementK:"webkitFullscreenElement",eventK:"webkit"+tF}:dE.msRequestFullscreen&&(api={enterK:"msRequestFullscreen",exitK:"msExitFullscreen",elementK:"msFullscreenElement",eventK:"MSFullscreenChange"}),api&&(api.enter=function(){if(_initalCloseOnScrollValue=_options.closeOnScroll,_options.closeOnScroll=!1,"webkitRequestFullscreen"!==this.enterK)return pswp.template[this.enterK]();pswp.template[this.enterK](Element.ALLOW_KEYBOARD_INPUT)},api.exit=function(){return _options.closeOnScroll=_initalCloseOnScrollValue,document[this.exitK]()},api.isFullscreen=function(){return document[this.elementK]}),api}}}),(factory=>{"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<settings.axis.length;return queue&&(duration/=2),settings.offset=both(settings.offset),settings.over=both(settings.over),this.each(function(){if(null!==target){var toff,win=isWin(this),elem=win?this.contentWindow||window:this,$elem=$(elem),targ=target,attr={};switch(typeof targ){case"number":case"string":if(/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(targ)){targ=both(targ);break}targ=win?$(targ):$(targ,elem);case"object":if(0===targ.length)return;(targ.is||targ.style)&&(toff=(targ=$(targ)).offset())}var offset=isFunction(settings.offset)&&settings.offset(elem,targ)||settings.offset;$.each(settings.axis.split(""),function(i,axis){var Pos="x"===axis?"Left":"Top",pos=Pos.toLowerCase(),key="scroll"+Pos,prev=$elem[key](),max=$scrollTo.max(elem,axis);toff?(attr[key]=toff[pos]+(win?0:prev-$elem.offset()[pos]),settings.margin&&(attr[key]-=parseInt(targ.css("margin"+Pos),10)||0,attr[key]-=parseInt(targ.css("border"+Pos+"Width"),10)||0),attr[key]+=offset[pos]||0,settings.over[pos]&&(attr[key]+=targ["x"===axis?"width":"height"]()*settings.over[pos])):(Pos=targ[pos],attr[key]=Pos.slice&&"%"===Pos.slice(-1)?parseFloat(Pos)/100*max:Pos),settings.limit&&/^\d+$/.test(attr[key])&&(attr[key]=attr[key]<=0?0:Math.min(attr[key],max)),!i&&1<settings.axis.length&&(prev===attr[key]?attr={}:queue&&(animate(settings.onAfterFirst),attr={}))}),animate(settings.onAfter)}function animate(callback){var opts=$.extend({},settings,{queue:!0,duration:duration,complete:callback&&function(){callback.call(elem,targ,settings)}});$elem.animate(attr,opts)}})},$scrollTo.max=function(elem,axis){var size,html,doc,axis="x"===axis?"Width":"Height",scroll="scroll"+axis;return isWin(elem)?(size="client"+axis,html=(doc=elem.ownerDocument||elem.document).documentElement,doc=doc.body,Math.max(html[scroll],doc[scroll])-Math.min(html[size],doc[size])):elem[scroll]-$(elem)[axis.toLowerCase()]()},$.Tween.propHooks.scrollLeft=$.Tween.propHooks.scrollTop={get:function(t){return $(t.elem)[t.prop]()},set:function(t){var curr=this.get(t);if(t.options.interrupt&&t._last&&t._last!==curr)return $(t.elem).stop();var next=Math.round(t.now);curr!==next&&($(t.elem)[t.prop](next),t._last=this.get(t))}},$scrollTo}),((window,factory)=>{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")||"")&&regClassCache[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<lazySizesCfg.minSize&&parent&&!elem._lazysizesWidth;)width=parent.offsetWidth,parent=parent.parentNode;return width},secondFns=[],fns=firstFns=[],rafBatch._lsFlush=run,rAF=rafBatch,rAFIt=function(fn,simple){return simple?function(){rAF(fn)}:function(){var that=this,args=arguments;rAF(function(){fn.apply(that,args)})}},debounce=function(func){function later(){var last=Date.now()-timestamp;last<99?setTimeout(later,99-last):(requestIdleCallback||run)(run)}var timeout,timestamp,run=function(){timeout=null,func()};return function(){timestamp=Date.now(),timeout=timeout||setTimeout(later,99)}},loader=(()=>{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<eLlen;i++)if(lazyloadElems[i]&&!lazyloadElems[i]._lazyRace)if(!supportScroll||lazysizes.prematureUnveil&&lazysizes.prematureUnveil(lazyloadElems[i]))unveilElement(lazyloadElems[i]);else if((elemExpandVal=lazyloadElems[i][_getAttribute]("data-expand"))&&(elemExpand=+elemExpandVal)||(elemExpand=currentExpand),defaultExpand||(defaultExpand=!lazySizesCfg.expand||lazySizesCfg.expand<1?500<docElem.clientHeight&&500<docElem.clientWidth?500:370:lazySizesCfg.expand,preloadExpand=(lazysizes._defEx=defaultExpand)*lazySizesCfg.expFactor,hFac=lazySizesCfg.hFac,isBodyHidden=null,currentExpand<preloadExpand&&isLoading<1&&2<lowRuns&&2<loadMode&&!document.hidden?(currentExpand=preloadExpand,lowRuns=0):currentExpand=1<loadMode&&1<lowRuns&&isLoading<6?defaultExpand:0),beforeExpandVal!==elemExpand&&(eLvW=innerWidth+elemExpand*hFac,elvH=innerHeight+elemExpand,elemNegativeExpand=-1*elemExpand,beforeExpandVal=elemExpand),preloadExpand=lazyloadElems[i].getBoundingClientRect(),(eLbottom=preloadExpand.bottom)>=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&&eLleft<outerRect.right&&eLbottom>outerRect.top-1&&eLtop<outerRect.bottom+1);return visible})(lazyloadElems[i],elemExpand))){if(unveilElement(lazyloadElems[i]),loadedSomething=!0,9<isLoading)break}else!loadedSomething&&isCompleted&&!autoLoadElem&&isLoading<4&&lowRuns<4&&2<loadMode&&(preloadElems[0]||lazySizesCfg.preloadAfterLoad)&&(preloadElems[0]||!elemExpandVal&&(eLbottom||eLright||eLleft||eLtop||"auto"!=lazyloadElems[i][_getAttribute](lazySizesCfg.sizesAttr)))&&(autoLoadElem=preloadElems[0]||lazyloadElems[i]);autoLoadElem&&!loadedSomething&&unveilElement(autoLoadElem)}}var preloadElems,isCompleted,resetPreloadingTimer,loadMode,started,eLvW,elvH,eLtop,eLleft,eLright,eLbottom,isBodyHidden,fn,running,lastTime,gDelay,rICTimeout,idleCallback,regImg=/^img$/i,regIframe=/^iframe$/i,supportScroll="onscroll"in window&&!/(gle|ing)bot/.test(navigator.userAgent),currentExpand=0,isLoading=0,lowRuns=-1,isVisible=function(elem){return(isBodyHidden=null==isBodyHidden?"hidden"==getCSS(document.body,"visibility"):isBodyHidden)||!("hidden"==getCSS(elem.parentNode,"visibility")&&"hidden"==getCSS(elem,"visibility"))},throttledCheckElements=(fn=checkElements,lastTime=0,gDelay=lazySizesCfg.throttleDelay,rICTimeout=lazySizesCfg.ricTimeout,idleCallback=requestIdleCallback&&49<rICTimeout?function(){requestIdleCallback(run,{timeout:rICTimeout}),rICTimeout!==lazySizesCfg.ricTimeout&&(rICTimeout=lazySizesCfg.ricTimeout)}:rAFIt(function(){setTimeout(run)},!0),function(isPriority){var delay;(isPriority=!0===isPriority)&&(rICTimeout=33),running||(running=!0,(delay=gDelay-(Date.now()-lastTime))<0&&(delay=0),isPriority||delay<9?idleCallback():setTimeout(idleCallback,delay))});function run(){running=!1,lastTime=Date.now(),fn()}function switchLoadingClass(e){var elem=e.target;elem._lazyCache?delete elem._lazyCache:(resetPreloading(e),addClass(elem,lazySizesCfg.loadedClass),removeClass(elem,lazySizesCfg.loadingClass),addRemoveLoadEvents(elem,rafSwitchLoadingClass),triggerEvent(elem,"lazyloaded"))}function handleSources(source){var customMedia,sourceSrcset=source[_getAttribute](lazySizesCfg.srcsetAttr);(customMedia=lazySizesCfg.customMedia[source[_getAttribute]("data-media")||source[_getAttribute]("media")])&&source.setAttribute("media",customMedia),sourceSrcset&&source.setAttribute("srcset",sourceSrcset)}function altLoadmodeScrollListner(){3==lazySizesCfg.loadMode&&(lazySizesCfg.loadMode=2),afterScroll()}function onload(){isCompleted||(Date.now()-started<999?setTimeout(onload,999):(isCompleted=!0,lazySizesCfg.loadMode=3,throttledCheckElements(),addEventListener("scroll",altLoadmodeScrollListner,!0)))}var rafedSwitchLoadingClass=rAFIt(switchLoadingClass),rafSwitchLoadingClass=function(e){rafedSwitchLoadingClass({target:e.target})},lazyUnveil=rAFIt(function(elem,detail,isAuto,sizes,isImg){var parent,isPicture,event,firesLoad;(event=triggerEvent(elem,"lazybeforeunveil",detail)).defaultPrevented||(sizes&&(isAuto?addClass(elem,lazySizesCfg.autosizesClass):elem.setAttribute("sizes",sizes)),isAuto=elem[_getAttribute](lazySizesCfg.srcsetAttr),sizes=elem[_getAttribute](lazySizesCfg.srcAttr),isImg&&(isPicture=(parent=elem.parentNode)&&regPicture.test(parent.nodeName||"")),firesLoad=detail.firesLoad||"src"in elem&&(isAuto||sizes||isPicture),event={target:elem},addClass(elem,lazySizesCfg.loadingClass),firesLoad&&(clearTimeout(resetPreloadingTimer),resetPreloadingTimer=setTimeout(resetPreloading,2500),addRemoveLoadEvents(elem,rafSwitchLoadingClass,!0)),isPicture&&forEach.call(parent.getElementsByTagName("source"),handleSources),isAuto?elem.setAttribute("srcset",isAuto):sizes&&!isPicture&&(regIframe.test(elem.nodeName)?((elem,src)=>{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<elem.naturalWidth;firesLoad&&!isLoaded||(isLoaded&&addClass(elem,lazySizesCfg.fastLoadedClass),switchLoadingClass(event),elem._lazyCache=!0,setTimeout(function(){"_lazyCache"in elem&&delete elem._lazyCache},9)),"lazy"==elem.loading&&isLoading--},!0)}),unveilElement=function(elem){var detail,isImg,sizes,isAuto;elem._lazyRace||!(!(isAuto="auto"==(sizes=(isImg=regImg.test(elem.nodeName))&&(elem[_getAttribute](lazySizesCfg.sizesAttr)||elem[_getAttribute]("sizes"))))&&isCompleted||!isImg||!elem[_getAttribute]("src")&&!elem.srcset||elem.complete||hasClass(elem,lazySizesCfg.errorClass))&&hasClass(elem,lazySizesCfg.lazyClass)||(detail=triggerEvent(elem,"lazyunveilread").detail,isAuto&&autoSizer.updateElem(elem,!0,elem.offsetWidth),elem._lazyRace=!0,isLoading++,lazyUnveil(elem,detail,isAuto,sizes,isImg))},afterScroll=debounce(function(){lazySizesCfg.loadMode=3,throttledCheckElements()});return{_:function(){started=Date.now(),lazysizes.elements=document.getElementsByClassName(lazySizesCfg.lazyClass),preloadElems=document.getElementsByClassName(lazySizesCfg.lazyClass+" "+lazySizesCfg.preloadClass),addEventListener("scroll",throttledCheckElements,!0),addEventListener("resize",throttledCheckElements,!0),addEventListener("pageshow",function(e){var loadingElements;e.persisted&&(loadingElements=document.querySelectorAll("."+lazySizesCfg.loadingClass)).length&&loadingElements.forEach&&requestAnimationFrame(function(){loadingElements.forEach(function(img){img.complete&&unveilElement(img)})})}),window.MutationObserver?new MutationObserver(throttledCheckElements).observe(docElem,{childList:!0,subtree:!0,attributes:!0}):(docElem[_addEventListener]("DOMNodeInserted",throttledCheckElements,!0),docElem[_addEventListener]("DOMAttrModified",throttledCheckElements,!0),setInterval(throttledCheckElements,999)),addEventListener("hashchange",throttledCheckElements,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach(function(name){document[_addEventListener](name,throttledCheckElements,!0)}),/d$|^c/.test(document.readyState)?onload():(addEventListener("load",onload),document[_addEventListener]("DOMContentLoaded",throttledCheckElements),setTimeout(onload,2e4)),lazysizes.elements.length?(checkElements(),rAF._lsFlush()):throttledCheckElements()},checkElems:throttledCheckElements,unveil:unveilElement,_aLSL:altLoadmodeScrollListner}})(),sizeElement=rAFIt(function(elem,parent,event,width){var sources,i,len;if(elem._lazysizesWidth=width,elem.setAttribute("sizes",width+="px"),regPicture.test(parent.nodeName||""))for(i=0,len=(sources=parent.getElementsByTagName("source")).length;i<len;i++)sources[i].setAttribute("sizes",width);event.detail.dataAttr||updatePolyfill(elem,event.detail)}),autoSizer={_:function(){autosizesElems=document.getElementsByClassName(lazySizesCfg.autosizesClass),addEventListener("resize",debouncedUpdateElementsSizes)},checkElems:debouncedUpdateElementsSizes=debounce(function(){var i,len=autosizesElems.length;if(len)for(i=0;i<len;i++)getSizeElement(autosizesElems[i])}),updateElem:getSizeElement},init=function(){!init.i&&document.getElementsByClassName&&(init.i=!0,autoSizer._(),loader._())},setTimeout(function(){lazySizesCfg.init&&init()}),lazysizes={cfg:lazySizesCfg,autoSizer:autoSizer,loader:loader,init:init,uP:updatePolyfill,aC:addClass,rC:removeClass,hC:hasClass,fire:triggerEvent,gW:getWidth,rAF:rAF}):{init:function(){},cfg:lazySizesCfg,noSupport:!0};function run(){var runFns=fns;for(fns=firstFns.length?secondFns:firstFns,waiting=!(running=!0);runFns.length;)runFns.shift()();running=!1}function rafBatch(fn,queue){running&&!queue?fn.apply(this,arguments):(fns.push(fn),waiting||(waiting=!0,(document.hidden?setTimeout:requestAnimationFrame)(run)))}function getSizeElement(elem,dataAttr,width){var parent=elem.parentNode;parent&&(width=getWidth(elem,parent,width),(dataAttr=triggerEvent(elem,"lazybeforesizes",{width:width,dataAttr:!!dataAttr})).defaultPrevented||(width=dataAttr.detail.width)&&width!==elem._lazysizesWidth&&sizeElement(elem,parent,dataAttr,width))}}),(fn=>{"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<l;)if(touchList[i].identifier===id)return touchList[i]}function changedTouch(e,data){e=identifiedTouch(e.changedTouches,data.identifier);if(e&&(e.pageX!==data.pageX||e.pageY!==data.pageY))return e}function mousemove(e,data){checkThreshold(e,data,e,removeMouse)}function mouseend(e,data){removeMouse()}function removeMouse(){off(document,mouseevents.move,mousemove),off(document,mouseevents.cancel,mouseend)}function removeTouch(data){off(document,touchevents.move,data.touchmove),off(document,touchevents.cancel,data.touchend)}function checkThreshold(e,data,touch,fn){var distX=touch.pageX-data.pageX,distY=touch.pageY-data.pageY;distX*distX+distY*distY<threshold*threshold||((e,data,touch,distX,distY,fn)=>{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=$("<div>").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=$("<div>"),$shareLink=this._createShareLink(share).appendTo($result);return this._showCount&&(($shareLink=(isInsideCount="inside"===this._showCount)?$shareLink:$("<div>").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)?$("<img>").attr("src",share.logo):$("<i>").addClass(logo);return share.addClass(this.shareLogoClass),share},_createShareLabel:function(share){return $("<span>").addClass(this.shareLabelClass).text(share.label)},_renderShareCount:function(share,$container){var $count=$("<span>").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 $("<a>").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 $("<a>").attr({target:"_blank",href:args.shareUrl})},self:function(args){return $("<a>").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&&e.distX>-e.distY)&&"vertical"!==sliderOrientation||(e.distX<e.distY&&e.distX<-e.distY||e.distX>e.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("<div class='twentytwenty-wrapper twentytwenty-"+sliderOrientation+"'></div>"),options.no_overlay||(container.append("<div class='twentytwenty-overlay'></div>"),(overlay=container.find(".twentytwenty-overlay")).append("<div class='twentytwenty-before-label' data-content='"+options.before_label+"'></div>"),overlay.append("<div class='twentytwenty-after-label' data-content='"+options.after_label+"'></div>")),container.find("img:first")),afterImg=container.find("img:last"),slider=(container.append("<div class='twentytwenty-handle'></div>"),container.find(".twentytwenty-handle")),calcOffset=(slider.append("<span class='twentytwenty-"+beforeDirection+"-arrow'></span>"),slider.append("<span class='twentytwenty-"+afterDirection+"-arrow'></span>"),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<args.length&&!matches;){var regex=args[i],props=args[i+1];if(void 0===result)for(p in result={},props)"object"==typeof(q=props[p])?result[q[0]]=void 0:result[q]=void 0;for(j=k=0;j<regex.length&&!matches;)if(matches=regex[j++].exec(this.getUA()))for(p=0;p<props.length;p++)match=matches[++k],"object"==typeof(q=props[p])&&0<q.length?2==q.length?"function"==typeof q[1]?result[q[0]]=q[1].call(this,match):result[q[0]]=q[1]:3==q.length?"function"!=typeof q[1]||q[1].exec&&q[1].test?result[q[0]]=match?match.replace(q[1],q[2]):void 0:result[q[0]]=match?q[1].call(this,match,q[2]):void 0:4==q.length&&(result[q[0]]=match?q[3].call(this,match.replace(q[1],q[2])):void 0):result[q]=match||void 0;i+=2}return result},str:function(str,map){for(var i in map)if("object"==typeof map[i]&&0<map[i].length){for(var j=0;j<map[i].length;j++)if(util.has(map[i][j],str))return"?"===i?void 0:i}else if(util.has(map[i],str))return"?"===i?void 0:i;return str}},maps={browser:{oldsafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}},regexes={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[NAME,VERSION],[/\s(opr)\/([\w\.]+)/i],[[NAME,"Opera"],VERSION],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]+)*/i,/(avant\s|iemobile|slim|baidu)(?:browser)?[\/\s]?([\w\.]*)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]+)*/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium)\/([\w\.-]+)/i],[NAME,VERSION],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[NAME,"IE"],VERSION],[/(edge)\/((\d+)?[\w\.]+)/i],[NAME,VERSION],[/(yabrowser)\/([\w\.]+)/i],[[NAME,"Yandex"],VERSION],[/(comodo_dragon)\/([\w\.]+)/i],[[NAME,/_/g," "],VERSION],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i,/(uc\s?browser|qqbrowser)[\/\s]?([\w\.]+)/i],[NAME,VERSION],[/(dolfin)\/([\w\.]+)/i],[[NAME,"Dolphin"],VERSION],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[NAME,"Chrome"],VERSION],[/XiaoMi\/MiuiBrowser\/([\w\.]+)/i],[VERSION,[NAME,"MIUI Browser"]],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)/i],[VERSION,[NAME,"Android Browser"]],[/FBAV\/([\w\.]+);/i],[VERSION,[NAME,"Facebook"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[VERSION,[NAME,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[VERSION,NAME],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[NAME,[VERSION,mapper.str,maps.browser.oldsafari.version]],[/(konqueror)\/([\w\.]+)/i,/(webkit|khtml)\/([\w\.]+)/i],[NAME,VERSION],[/(navigator|netscape)\/([\w\.-]+)/i],[[NAME,"Netscape"],VERSION],[/fxios\/([\w\.-]+)/i],[VERSION,[NAME,"Firefox"]],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix)\/([\w\.-]+)/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]+)*/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[NAME,VERSION]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",util.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/windows\s(ce|mobile);\sppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[["architecture",/ower/,"",util.lowerize]],[/(sun4\w)[;\)]/i],[["architecture","sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+;))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[["architecture",util.lowerize]]],device:[[/\((ipad|playbook);[\w\s\);-]+(rim|apple)/i],[MODEL,VENDOR,[TYPE,TABLET]],[/applecoremedia\/[\w\.]+ \((ipad)/],[MODEL,[VENDOR,"Apple"],[TYPE,TABLET]],[/(apple\s{0,1}tv)/i],[[MODEL,"Apple TV"],[VENDOR,"Apple"]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[VENDOR,MODEL,[TYPE,TABLET]],[/(kf[A-z]+)\sbuild\/[\w\.]+.*silk\//i],[MODEL,[VENDOR,"Amazon"],[TYPE,TABLET]],[/(sd|kf)[0349hijorstuw]+\sbuild\/[\w\.]+.*silk\//i],[[MODEL,mapper.str,maps.device.amazon.model],[VENDOR,"Amazon"],[TYPE,MOBILE]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[MODEL,VENDOR,[TYPE,MOBILE]],[/\((ip[honed|\s\w*]+);/i],[MODEL,[VENDOR,"Apple"],[TYPE,MOBILE]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|huawei|meizu|motorola|polytron)[\s_-]?([\w-]+)*/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[VENDOR,MODEL,[TYPE,MOBILE]],[/\(bb10;\s(\w+)/i],[MODEL,[VENDOR,"BlackBerry"],[TYPE,MOBILE]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7)/i],[MODEL,[VENDOR,"Asus"],[TYPE,TABLET]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[VENDOR,"Sony"],[MODEL,"Xperia Tablet"],[TYPE,TABLET]],[/(?:sony)?(?:(?:(?:c|d)\d{4})|(?:so[-l].+))\sbuild\//i],[[VENDOR,"Sony"],[MODEL,"Xperia Phone"],[TYPE,MOBILE]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[VENDOR,MODEL,[TYPE,"console"]],[/android.+;\s(shield)\sbuild/i],[MODEL,[VENDOR,"Nvidia"],[TYPE,"console"]],[/(playstation\s[3portablevi]+)/i],[MODEL,[VENDOR,"Sony"],[TYPE,"console"]],[/(sprint\s(\w+))/i],[[VENDOR,mapper.str,maps.device.sprint.vendor],[MODEL,mapper.str,maps.device.sprint.model],[TYPE,MOBILE]],[/(lenovo)\s?(S(?:5000|6000)+(?:[-][\w+]))/i],[VENDOR,MODEL,[TYPE,TABLET]],[/(htc)[;_\s-]+([\w\s]+(?=\))|\w+)*/i,/(zte)-(\w+)*/i,/(alcatel|geeksphone|huawei|lenovo|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]+)*/i],[VENDOR,[MODEL,/_/g," "],[TYPE,MOBILE]],[/(nexus\s9)/i],[MODEL,[VENDOR,"HTC"],[TYPE,TABLET]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[MODEL,[VENDOR,"Microsoft"],[TYPE,"console"]],[/(kin\.[onetw]{3})/i],[[MODEL,/\./g," "],[VENDOR,"Microsoft"],[TYPE,MOBILE]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?(:?\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w+)*/i,/(XT\d{3,4}) build\//i],[MODEL,[VENDOR,"Motorola"],[TYPE,MOBILE]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[MODEL,[VENDOR,"Motorola"],[TYPE,TABLET]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n8000|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[VENDOR,"Samsung"],MODEL,[TYPE,TABLET]],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-n900))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)*/i,/sec-((sgh\w+))/i],[[VENDOR,"Samsung"],MODEL,[TYPE,MOBILE]],[/(samsung);smarttv/i],[VENDOR,MODEL,[TYPE,"smarttv"]],[/\(dtv[\);].+(aquos)/i],[MODEL,[VENDOR,"Sharp"],[TYPE,"smarttv"]],[/sie-(\w+)*/i],[MODEL,[VENDOR,"Siemens"],[TYPE,MOBILE]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]+)*/i],[[VENDOR,"Nokia"],MODEL,[TYPE,MOBILE]],[/android\s3\.[\s\w;-]{10}(a\d{3})/i],[MODEL,[VENDOR,"Acer"],[TYPE,TABLET]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[VENDOR,"LG"],MODEL,[TYPE,TABLET]],[/(lg) netcast\.tv/i],[VENDOR,MODEL,[TYPE,"smarttv"]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w+)*/i],[MODEL,[VENDOR,"LG"],[TYPE,MOBILE]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[MODEL,[VENDOR,"Lenovo"],[TYPE,TABLET]],[/linux;.+((jolla));/i],[VENDOR,MODEL,[TYPE,MOBILE]],[/((pebble))app\/[\d\.]+\s/i],[VENDOR,MODEL,[TYPE,"wearable"]],[/android.+;\s(glass)\s\d/i],[MODEL,[VENDOR,"Google"],[TYPE,"wearable"]],[/android.+(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:one|one[\s_]plus)?[\s_]*(?:\d\w)?)\s+build/i],[[MODEL,/_/g," "],[VENDOR,"Xiaomi"],[TYPE,MOBILE]],[/(mobile|tablet);.+rv\:.+gecko\//i],[[TYPE,util.lowerize],VENDOR,MODEL]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[VERSION,[NAME,"EdgeHTML"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[NAME,VERSION],[/rv\:([\w\.]+).*(gecko)/i],[VERSION,NAME]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[NAME,VERSION],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*|windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[NAME,[VERSION,mapper.str,maps.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[NAME,"Windows"],[VERSION,mapper.str,maps.os.windows.version]],[/\((bb)(10);/i],[[NAME,"BlackBerry"],VERSION],[/(blackberry)\w*\/?([\w\.]+)*/i,/(tizen)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|contiki)[\/\s-]?([\w\.]+)*/i,/linux;.+(sailfish);/i],[NAME,VERSION],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]+)*/i],[[NAME,"Symbian"],VERSION],[/\((series40);/i],[NAME],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[NAME,"Firefox OS"],VERSION],[/(nintendo|playstation)\s([wids3portablevu]+)/i,/(mint)[\/\s\(]?(\w+)*/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|[open]*suse|gentoo|arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?([\w\.-]+)*/i,/(hurd|linux)\s?([\w\.]+)*/i,/(gnu)\s?([\w\.]+)*/i],[NAME,VERSION],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[NAME,"Chromium OS"],VERSION],[/(sunos)\s?([\w\.]+\d)*/i],[[NAME,"Solaris"],VERSION],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]+)*/i],[NAME,VERSION],[/(ip[honead]+)(?:.*os\s*([\w]+)*\slike\smac|;\sopera)/i],[[NAME,"iOS"],[VERSION,/_/g,"."]],[/(mac\sos\sx)\s?([\w\s\.]+\w)*/i,/(macintosh|mac(?=_powerpc)\s)/i],[[NAME,"Mac OS"],[VERSION,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]+)*/i,/(haiku)\s(\w+)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.]*)*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms)/i,/(unix)\s?([\w\.]+)*/i],[NAME,VERSION]]},$=(UAParser.VERSION="0.7.9",UAParser.BROWSER={NAME:NAME,MAJOR:"major",VERSION:VERSION},UAParser.CPU={ARCHITECTURE:"architecture"},UAParser.DEVICE={MODEL:MODEL,VENDOR:VENDOR,TYPE:TYPE,CONSOLE:"console",MOBILE:MOBILE,SMARTTV:"smarttv",TABLET:TABLET,WEARABLE:"wearable",EMBEDDED:"embedded"},UAParser.ENGINE={NAME:NAME,VERSION:VERSION},UAParser.OS={NAME:NAME,VERSION:VERSION},"undefined"!=typeof exports?(exports="undefined"!=typeof module&&module.exports?module.exports=UAParser:exports).UAParser=UAParser:"function"==typeof define&&define.amd?define(function(){return UAParser}):window.UAParser=UAParser,window.jQuery||window.Zepto);void 0!==$&&(parser=new UAParser,$.ua=parser.getResult(),$.ua.get=function(){return parser.getUA()},$.ua.set=function(uastring){parser.setUA(uastring);var prop,result=parser.getResult();for(prop in result)$.ua[prop]=result[prop]})})("object"==typeof window?window:this),window.averta={},!function($){window.package=function(name){window[name]||(window[name]={})};var extend=function(target,object){for(var key in object)target[key]=object[key]},trans=(Function.prototype.extend=function(superclass){"function"==typeof superclass.prototype.constructor?extend(this.prototype,superclass.prototype):this.prototype.extend(superclass),this.prototype.constructor=this},{Moz:"-moz-",Webkit:"-webkit-",Khtml:"-khtml-",O:"-o-",ms:"-ms-",Icab:"-icab-"});function getVendorPrefix(){if("result"in arguments.callee)return arguments.callee.result;var prop,regex=/^(Moz|Webkit|Khtml|O|ms|Icab)(?=[A-Z])/,someScript=document.getElementsByTagName("script")[0];for(prop in someScript.style)if(regex.test(prop))return arguments.callee.result=prop.match(regex)[0];return"WebkitOpacity"in someScript.style?arguments.callee.result="Webkit":"KhtmlOpacity"in someScript.style?arguments.callee.result="Khtml":arguments.callee.result=""}function checkStyleValue(prop){var s=(document.body||document.documentElement).style;if("string"==typeof s[p=prop])return!0;v=["Moz","Webkit","Khtml","O","ms"];for(var p=p.charAt(0).toUpperCase()+p.substr(1),i=0;i<v.length;i++)if("string"==typeof s[v[i]+p])return!0;return!1}function supportsTransitions(){return checkStyleValue("transition")}function supportsTransforms(){return checkStyleValue("transform")}function supports3DTransforms(){if(!supportsTransforms())return!1;var has3d,t,el=document.createElement("i"),transforms={WebkitTransform:"-webkit-transform",OTransform:"-o-transform",MSTransform:"-ms-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",Transform:"transform",transform:"transform"};for(t in el.style.display="block",document.body.insertBefore(el,null),transforms)void 0!==el.style[t]&&(el.style[t]="translate3d(1px,1px,1px)",has3d=window.getComputedStyle(el).getPropertyValue(transforms[t]));return document.body.removeChild(el),null!=has3d&&0<has3d.length&&"none"!==has3d}window._mobile=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),window._touch="ontouchstart"in document,window.parseQueryString=function(url){var queryString={};return url.replace(new RegExp("([^?=&]+)(=([^&]*))?","g"),function($0,$1,$2,$3){queryString[$1]=$3}),queryString};for(var lastTime=0,vendors=["ms","moz","webkit","o"],x=0;x<vendors.length&&!window.requestAnimationFrame;++x)window.requestAnimationFrame=window[vendors[x]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[vendors[x]+"CancelAnimationFrame"]||window[vendors[x]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(callback,element){var currTime=(new Date).getTime(),timeToCall=Math.max(0,16-(currTime-lastTime)),id=window.setTimeout(function(){callback(currTime+timeToCall)},timeToCall);return lastTime=currTime+timeToCall,id}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(id){clearTimeout(id)}),window.getComputedStyle||(window.getComputedStyle=function(el,pseudo){return this.el=el,this.getPropertyValue=function(prop){var re=/(\-([a-z]){1})/g;return re.test(prop="float"==prop?"styleFloat":prop)&&(prop=prop.replace(re,function(){return arguments[2].toUpperCase()})),el.currentStyle[prop]||null},el.currentStyle}),Array.prototype.indexOf||(Array.prototype.indexOf=function(elt){var len=this.length>>>0,from=Number(arguments[1])||0;for((from=from<0?Math.ceil(from):Math.floor(from))<0&&(from+=len);from<len;from++)if(from in this&&this[from]===elt)return from;return-1}),$.removeDataAttrs=function($target,exclude){var i,attrName,dataAttrsToDelete=[],dataAttrs=$target[0].attributes,dataAttrsLen=dataAttrs.length;for(exclude=exclude||[],i=0;i<dataAttrsLen;i++)"data-"===(attrName=dataAttrs[i].name).substring(0,5)&&-1===exclude.indexOf(attrName)&&dataAttrsToDelete.push(dataAttrs[i].name);$.each(dataAttrsToDelete,function(index,attrName){$target.removeAttr(attrName)})},!function(){window.AuxUserAgent=(new UAParser).getResult();var browser=AuxUserAgent.browser;browser.isMSIE=function(version){var ieVer;return browser.msie?!version||(ieVer=browser.version.slice(0,browser.version.indexOf(".")),"string"==typeof version?-1!==version.indexOf("<")||-1!==version.indexOf(">")?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<l;++i)list[i]&&list[i][0]===listener&&list[i][1]===ref&&list.splice(i,1);0===(len=list.length)&&st.stop()},st.start=function(){__stopped&&(__stopped=!1,__tick())},st.stop=function(){__stopped=!0},function(){if(!st.__stopped){for(var item,i=0;i!==len;i++)(item=list[i])[0].call(item[1]);requestAnimationFrame(__tick)}})})(),Date.now||(Date.now=function(){return(new Date).getTime()}),averta.Timer=function(delay,autoStart){this.delay=delay,this.currentCount=0,this.paused=!1,this.onTimer=null,this.refrence=null,autoStart&&this.start()},averta.Timer.prototype={constructor:averta.Timer,start:function(){this.paused=!1,this.lastTime=Date.now(),averta.Ticker.add(this.update,this)},stop:function(){this.paused=!0,averta.Ticker.remove(this.update,this)},reset:function(){this.currentCount=0,this.paused=!0,this.lastTime=Date.now()},update:function(){this.paused||Date.now()-this.lastTime<this.delay||(this.currentCount++,this.lastTime=Date.now(),this.onTimer&&this.onTimer.call(this.refrence,this.getTime()))},getTime:function(){return this.delay*this.currentCount}},averta.EventDispatcher=function(){this.listeners={}},averta.EventDispatcher.extend=function(_proto){for(var key in new averta.EventDispatcher)"constructor"!=key&&(_proto[key]=averta.EventDispatcher.prototype[key])},averta.EventDispatcher.prototype={constructor:averta.EventDispatcher,addEventListener:function(event,listener,ref){this.listeners[event]||(this.listeners[event]=[]),this.listeners[event].push({listener:listener,ref:ref})},removeEventListener:function(event,listener,ref){if(this.listeners[event]){for(var i=0;i<this.listeners[event].length;++i)listener===this.listeners[event][i].listener&&ref===this.listeners[event][i].ref&&this.listeners[event].splice(i--,1);0===this.listeners[event].length&&(this.listeners[event]=null)}},dispatchEvent:function(event){if((event.target=this).listeners[event.type])for(var i=0,l=this.listeners[event.type].length;i<l;++i)this.listeners[event.type][i].listener.call(this.listeners[event.type][i].ref,event)}},((window,document)=>{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)<new_x;return"horizontal"===this.swipeType&&new_y||"vertical"===this.swipeType&&!new_y},isPointer._createStatusObject=function(evt){var status_data={},temp_x=this.lastStatus.distanceX||0,temp_y=this.lastStatus.distanceY||0;return status_data.distanceX=evt.pageX-this.start_x,status_data.distanceY=evt.pageY-this.start_y,status_data.moveX=status_data.distanceX-temp_x,status_data.moveY=status_data.distanceY-temp_y,status_data.distance=parseInt(Math.sqrt(Math.pow(status_data.distanceX,2)+Math.pow(status_data.distanceY,2))),status_data.duration=(new Date).getTime()-this.start_time,status_data.direction=this._getDirection(evt.pageX,evt.pageY),status_data},isPointer._reset=function(event){this.reset=!1,this.lastStatus={},this.start_time=(new Date).getTime(),this.start_x=(isTouch?event.touches[0]:event).pageX,this.start_y=(isTouch?event.touches[0]:event).pageY},isPointer._touchStart=function(event){var swipeEvent;this.enabled&&!event.target.closest(this.noSwipeSelector,this.$element)&&(usePointer&&(this.element.style.msTouchAction="horizontal"===this.swipeType?"pan-y":"pan-x"),this.onSwipe?this.touchStarted||(swipeEvent=isTouch?event.touches[0]:event,this.start_x=swipeEvent.pageX,this.start_y=swipeEvent.pageY,this.start_time=(new Date).getTime(),this._bindEvents(document,ev_end,this._touchEnd),this._bindEvents(document,ev_move,this._touchMove),this._bindEvents(document,ev_cancel,this._touchCancel),(swipeEvent=this._createStatusObject(swipeEvent)).phase="start",this.onSwipe.call(null,swipeEvent),isTouch||event.preventDefault(),this.lastStatus=swipeEvent,this.touchStarted=!0):console.log("Swipe listener is undefined"))},isPointer._touchMove=function(event){var swipeEvent,status;this.touchStarted&&(clearTimeout(this.timo),this.timo=setTimeout(function(){this._reset(event)},60),swipeEvent=isTouch?event.touches[0]:event,status=this._createStatusObject(swipeEvent),this._priventDefultEvent(swipeEvent.pageX,swipeEvent.pageY)&&event.preventDefault(),status.phase="move",this.lastStatus=status,this.onSwipe.call(null,status))},isPointer._touchEnd=function(event){var status;this.touchStarted&&(clearTimeout(this.timo),isTouch&&event.touches[0],status=this.lastStatus,isTouch||event.preventDefault(),status.phase="end",this.touchStarted=!1,this.priventEvt=null,this._unbindEvents(document,ev_end,this._touchEnd),this._unbindEvents(document,ev_move,this._touchMove),this._unbindEvents(document,ev_cancel,this._touchCancel),status.speed=status.distance/status.duration,this.onSwipe.call(null,status))},isPointer._touchCancel=function(event){this._touchEnd(event)},isPointer.enable=function(){this.enabled=!0},isPointer.disable=function(){this.enabled=!1}})(window,document),(ElementProto=>{"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<contRatio?(this.$img.width(this.cont_w),this.$img.height(this.cont_w*this.imgRatio2)):(this.$img.height(this.cont_h),this.$img.width(this.cont_h*this.imgRatio)):"fit"==this.type&&(this.imgRatio<contRatio?(this.$img.height(this.cont_h),this.$img.width(this.cont_h*this.imgRatio)):(this.$img.width(this.cont_w),this.$img.height(this.cont_w*this.imgRatio2))),this.setMargin())},p.setMargin=function(){var position=this.options.position||"cm",img=this.$img[0];switch(position.charAt(0)){case"l":img.style.marginLeft=0;break;case"r":img.style.marginLeft=this.cont_w-img.offsetWidth+"px";break;default:img.style.marginLeft=(this.cont_w-img.offsetWidth)/2+"px"}switch(position.charAt(1)){case"t":img.style.marginTop=0;break;case"b":img.style.marginTop=this.cont_h-img.offsetHeight+"px";break;default:img.style.marginTop=(this.cont_h-img.offsetHeight)/2+"px"}}})(),(()=>{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<that.delay?element.style[window._jcsspfx+"TransitionDelay"]=that.delay+"ms":element.style[window._jcsspfx+"TransitionDelay"]="",element.style[window._jcsspfx+"TransitionTimingFunction"]=that.ease,that.to_cb&&that.to_cb.call(that.to_cb_target),that.end_to=setTimeout(function(){that.onTransComplete()},that.duration+(that.delay||0)))},10),this}})(),(()=>{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(0<speed?this.gotoSnap(snap_loc+1,!0,speed):this.gotoSnap(snap_loc-1,!0,speed));if(snap_loc===end_snap)return void this.cancel();this._callsnapChange(end_snap),this.current_snap=end_snap}this.animating=!1,this.__needsSnap=this.options.endless||this.end_loc>this._min_value&&this.end_loc<this._max_value,this.options.snapping&&this.__needsSnap&&(this.__extraMove=this._calculateExtraMove(this.end_loc)),this._startDecelaration()}},p.bounce=function(speed){this.animating||(this.stopped=!1,this.animating=!1,this.__speed=speed,this.__startSpeed=speed,this.end_loc=this._calculateEnd(),this._startDecelaration())},p.stop=function(){this.stopped=!0,this._internalStop()},p.cancel=function(){this.start_drag=!0,this.__isout?(this.__speed=4e-4,this._startDecelaration()):this.options.snapping&&this.gotoSnap(this.getSnapNum(this.value),!0)},p.renderCallback=function(listener,ref){this.__renderHook={fun:listener,ref:ref}},p.snappingCallback=function(listener,ref){this.__snapHook={fun:listener,ref:ref}},p.snapCompleteCallback=function(listener,ref){this.__compHook={fun:listener,ref:ref}},p.getSnapNum=function(value){return Math.floor((value+this.options.snapsize/2)/this.options.snapsize)},p.nextSnap=function(animate,speed){this._internalStop();var curr_snap=this.getSnapNum(this.value),snapsize=this.options.snapsize;!this.options.endless&&(curr_snap+1)*snapsize>this._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<this._min_value?this.value-this._min_value>.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 value<this.options.snapsize/2?-value:this.options.snapsize-value},p._calculateEnd=function(step){for(var temp_speed=this.__speed,temp_value=this.value,i=0;Math.abs(temp_speed)>this.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:value<this._min_value?this._min_value:value>this._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.value<this._min_value?xtr_move=this._min_value-this.value:this.value>this._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,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;")}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<r[0].offset?e:r:"start"==r[0].event?e:r:e.length?e:r}function o(e){f+="<"+t(e)+Array.prototype.map.call(e.attributes,function(e){return" "+e.nodeName+'="'+n(e.value)+'"'}).join("")+">"}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.c.length;t++)if(r(n.c[t].bR,e))return n.c[t]}function u(e,n){if(r(e.eR,n)){for(;e.endsParent&&e.parent;)e=e.parent;return e}return e.eW?u(e.parent,n):void 0}function c(e,n){return!a&&r(n.iR,e)}function p(e,n,t,r){r='<span class="'+(r?"":E.classPrefix);return(r+=e+'">')+n+(t?"":"</span>")}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.r&&(B+=t.r),e&&(y[k.sL]=t.top),p(t.language,t.value,!1,!0)):h(),M=""}function v(e){L+=e.cN?p(e.cN,"",!0):"",k=Object.create(e,{parent:{value:k}})}function m(e,n){if(M+=e,void 0===n)return b(),0;e=o(n,k);if(e)return e.skip?M+=n:(e.eB&&(M+=n),b(),e.rB||e.eB||(M=n)),v(e),e.rB?0:n.length;var r=u(k,n);if(r){e=k;for(e.skip?M+=n:(e.rE||e.eE||(M+=n),b(),e.eE&&(M=n));k.cN&&(L+="</span>"),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||"<unnamed>")+'"');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+="</span>");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,"<br>"):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<r;n++)if(w(i[n])||a(i[n]))return i[n]})(e);a(n)||(E.useBR?(t=document.createElementNS("http://www.w3.org/1999/xhtml","div")).innerHTML=e.innerHTML.replace(/\n/g,"").replace(/<br[ \/]*>/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:"<!DOCTYPE",e:">",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:"<style(?=\\s|>|$)",e:">",k:{name:"style"},c:[t],starts:{e:"</style>",rE:!0,sL:["css","xml"]}},{cN:"tag",b:"<script(?=\\s|>|$)",e:">",k:{name:"script"},c:[t],starts:{e:"<\/script>",rE:!0,sL:["actionscript","javascript","handlebars","xml"]}},{cN:"meta",v:[{b:/<\?xml/,e:/\?>/,r:10},{b:/<\?\w+/,e:/\?>/}]},{cN:"tag",b:"</?",e:"/?>",c:[{cN:"name",b:/[^\/><\s]+/,r:0},t]}]}}),hljs.registerLanguage("java",function(e){var t=e.UIR+"(<"+e.UIR+"(\\s*,\\s*"+e.UIR+")*>)?",a="false synchronized int abstract float private char boolean static null if const for true while long strictfp finally protected import native final void enum else break transient catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private module requires exports",s={cN:"number",b:"\\b(0[bB]([01]+[01_]+[01]+|[01]+)|0[xX]([a-fA-F0-9]+[a-fA-F0-9_]+[a-fA-F0-9]+|[a-fA-F0-9]+)|(([\\d]+[\\d_]+[\\d]+|[\\d]+)(\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))?|\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))([eE][-+]?\\d+)?)[lLfF]?",r:0};return{aliases:["jsp"],k:a,i:/<\/|#/,c:[e.C("/\\*\\*","\\*/",{r:0,c:[{b:/\w+@/,r:0},{cN:"doctag",b:"@[A-Za-z]+"}]}),e.CLCM,e.CBCM,e.ASM,e.QSM,{cN:"class",bK:"class interface",e:/[{;=]/,eE:!0,k:"class interface",i:/[:"\[\]]/,c:[{bK:"extends implements"},e.UTM]},{bK:"new throw return else",r:0},{cN:"function",b:"("+t+"\\s+)+"+e.UIR+"\\s*\\(",rB:!0,e:/[{;=]/,eE:!0,k:a,c:[{b:e.UIR+"\\s*\\(",rB:!0,r:0,c:[e.UTM]},{cN:"params",b:/\(/,e:/\)/,k:a,r:0,c:[e.ASM,e.QSM,e.CNM,e.CBCM]},e.CLCM,e.CBCM]},s,{cN:"meta",b:"@[A-Za-z]+"}]}}),hljs.registerLanguage("css",function(e){var t={b:/[A-Z\_\.\-]+\s*:/,rB:!0,e:";",eW:!0,c:[{cN:"attribute",b:/\S/,e:":",eE:!0,starts:{eW:!0,eE:!0,c:[{b:/[\w-]+\(/,rB:!0,c:[{cN:"built_in",b:/[\w-]+/},{b:/\(/,e:/\)/,c:[e.ASM,e.QSM]}]},e.CSSNM,e.QSM,e.ASM,e.CBCM,{cN:"number",b:"#[0-9A-Fa-f]+"},{cN:"meta",b:"!important"}]}}]};return{cI:!0,i:/[=\/|'\$]/,c:[e.CBCM,{cN:"selector-id",b:/#[A-Za-z0-9_-]+/},{cN:"selector-class",b:/\.[A-Za-z0-9_-]+/},{cN:"selector-attr",b:/\[/,e:/\]/,i:"$"},{cN:"selector-pseudo",b:/:(:)?[a-zA-Z0-9\_\-\+\(\)"'.]+/},{b:"@(font-face|page)",l:"[a-z-]+",k:"font-face page"},{b:"@",e:"[{;]",i:/:/,c:[{cN:"keyword",b:/\w+/},{b:/\s/,eW:!0,eE:!0,r:0,c:[e.ASM,e.QSM,e.CSSNM]}]},{cN:"selector-tag",b:"[a-zA-Z-][a-zA-Z0-9_-]*",r:0},{b:"{",e:"}",i:/\S/,c:[e.CBCM,t]}]}}),hljs.registerLanguage("ruby",function(e){var r="[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",b={keyword:"and then defined module in return redo if BEGIN retry end for self when next until do begin unless END rescue else break undef not super class case require yield alias while ensure elsif or include attr_reader attr_writer attr_accessor",literal:"true false nil"},c={cN:"doctag",b:"@[A-Za-z]+"},a={b:"#<",e:">"},c=[e.C("#","$",{c:[c]}),e.C("^\\=begin","^\\=end",{c:[c],r:10}),e.C("^__END__","\\n$")],n={cN:"subst",b:"#\\{",e:"}",k:b},t={cN:"string",c:[e.BE,n],v:[{b:/'/,e:/'/},{b:/"/,e:/"/},{b:/`/,e:/`/},{b:"%[qQwWx]?\\(",e:"\\)"},{b:"%[qQwWx]?\\[",e:"\\]"},{b:"%[qQwWx]?{",e:"}"},{b:"%[qQwWx]?<",e:">"},{b:"%[qQwWx]?/",e:"/"},{b:"%[qQwWx]?%",e:"%"},{b:"%[qQwWx]?-",e:"-"},{b:"%[qQwWx]?\\|",e:"\\|"},{b:/\B\?(\\\d{1,3}|\\x[A-Fa-f0-9]{1,2}|\\u[A-Fa-f0-9]{4}|\\?\S)\b/}]},i={cN:"params",b:"\\(",e:"\\)",endsParent:!0,k:b},t=[t,a,{cN:"class",bK:"class module",e:"$|;",i:/=/,c:[e.inherit(e.TM,{b:"[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?"}),{b:"<\\s*",c:[{b:"("+e.IR+"::)?"+e.IR}]}].concat(c)},{cN:"function",bK:"def",e:"$|;",c:[e.inherit(e.TM,{b:r}),i].concat(c)},{b:e.IR+"::"},{cN:"symbol",b:e.UIR+"(\\!|\\?)?:",r:0},{cN:"symbol",b:":(?!\\s)",c:[t,{b:r}],r:0},{cN:"number",b:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",r:0},{b:"(\\$\\W)|((\\$|\\@\\@?)(\\w+))"},{cN:"params",b:/\|/,e:/\|/,k:b},{b:"("+e.RSR+")\\s*",c:[a,{cN:"regexp",c:[e.BE,n],i:/\n/,v:[{b:"/",e:"/[a-z]*"},{b:"%r{",e:"}[a-z]*"},{b:"%r\\(",e:"\\)[a-z]*"},{b:"%r!",e:"![a-z]*"},{b:"%r\\[",e:"\\][a-z]*"}]}].concat(c),r:0}].concat(c);n.c=t;return{aliases:["rb","gemspec","podspec","thor","irb"],k:b,i:/\/\*/,c:c.concat([{b:/^\s*=>/,starts:{e:"$",c:i.c=t}},{cN:"meta",b:"^([>?]>|[\\w#]+\\(\\w+\\):\\d+:\\d+>|(\\w+-)?\\d+\\.\\d+\\.\\d(p\\d+)?[^>]+>)",starts:{e:"$",c:t}}]).concat(t)}}),hljs.registerLanguage("coffeescript",function(e){var c={keyword:"in if for while finally new do return else break catch instanceof throw try this switch continue typeof delete debugger super then unless until loop of by when and or is isnt not",literal:"true false null undefined yes no on off",built_in:"npm require console print module global window document"},n="[A-Za-z$_][0-9A-Za-z$_]*",r={cN:"subst",b:/#\{/,e:/}/,k:c},s=[e.BNM,e.inherit(e.CNM,{starts:{e:"(\\s*/)?",r:0}}),{cN:"string",v:[{b:/'''/,e:/'''/,c:[e.BE]},{b:/'/,e:/'/,c:[e.BE]},{b:/"""/,e:/"""/,c:[e.BE,r]},{b:/"/,e:/"/,c:[e.BE,r]}]},{cN:"regexp",v:[{b:"///",e:"///",c:[r,e.HCM]},{b:"//[gim]*",r:0},{b:/\/(?![ *])(\\\/|.)*?\/[gim]*(?=\W|$)/}]},{b:"@"+n},{b:"`",e:"`",eB:!0,eE:!0,sL:"javascript"}],r=(r.c=s,e.inherit(e.TM,{b:n})),t="(\\(.*\\))?\\s*\\B[-=]>",o={cN:"params",b:"\\([^\\(]",rB:!0,c:[{b:/\(/,e:/\)/,k:c,c:["self"].concat(s)}]};return{aliases:["coffee","cson","iced"],k:c,i:/\/\*/,c:s.concat([e.C("###","###"),e.HCM,{cN:"function",b:"^\\s*"+n+"\\s*=\\s*"+t,e:"[-=]>",rB:!0,c:[r,o]},{b:/[:\(,=]\s*/,r:0,c:[{cN:"function",b:t,e:"[-=]>",rB:!0,c:[o]}]},{cN:"class",bK:"class",e:"$",i:/[:="\[\]]/,c:[{bK:"extends",eW:!0,i:/[:="\[\]]/,c:[r]},r]},{b:n+":",e:":",rB:!0,rE:!0,r:0}])}}),hljs.registerLanguage("cs",function(e){var r={keyword:"abstract as base bool break byte case catch char checked const continue decimal dynamic default delegate do double else enum event explicit extern finally fixed float for foreach goto if implicit in int interface internal is lock long when object operator out override params private protected public readonly ref sbyte sealed short sizeof stackalloc static string struct switch this try typeof uint ulong unchecked unsafe ushort using virtual volatile void while async protected public private internal ascending descending from get group into join let orderby partial select set value var where yield",literal:"null false true"},t=e.IR+"(<"+e.IR+">)?(\\[\\])?";return{aliases:["csharp"],k:r,i:/::/,c:[e.C("///","$",{rB:!0,c:[{cN:"doctag",v:[{b:"///",r:0},{b:"\x3c!--|--\x3e"},{b:"</?",e:">"}]}]}),e.CLCM,e.CBCM,{cN:"meta",b:"#",e:"$",k:{"meta-keyword":"if else elif endif define undef warning error line region endregion pragma checksum"}},{cN:"string",b:'@"',e:'"',c:[{b:'""'}]},e.ASM,e.QSM,e.CNM,{bK:"class interface",e:/[{;=]/,i:/[^\s:]/,c:[e.TM,e.CLCM,e.CBCM]},{bK:"namespace",e:/[{;=]/,i:/[^\s:]/,c:[e.inherit(e.TM,{b:"[a-zA-Z](\\.?\\w)*"}),e.CLCM,e.CBCM]},{bK:"new return throw await",r:0},{cN:"function",b:"("+t+"\\s+)+"+e.IR+"\\s*\\(",rB:!0,e:/[{;=]/,eE:!0,k:r,c:[{b:e.IR+"\\s*\\(",rB:!0,c:[e.TM],r:0},{cN:"params",b:/\(/,e:/\)/,eB:!0,eE:!0,k:r,r:0,c:[e.ASM,e.QSM,e.CNM,e.CBCM]},e.CLCM,e.CBCM]}]}}),hljs.registerLanguage("sql",function(e){var t=e.C("--","$");return{cI:!0,i:/[<>{}*#]/,c:[{bK:"begin end start commit rollback savepoint lock alter create drop rename call delete do handler insert load replace select truncate update set show pragma grant merge describe use explain help declare prepare execute deallocate release unlock purge reset change stop analyze cache flush optimize repair kill install uninstall checksum restore check backup revoke",e:/;/,eW:!0,l:/[\w\.]+/,k:{keyword:"abort abs absolute acc acce accep accept access accessed accessible account acos action activate add addtime admin administer advanced advise aes_decrypt aes_encrypt after agent aggregate ali alia alias allocate allow alter always analyze ancillary and any anydata anydataset anyschema anytype apply archive archived archivelog are as asc ascii asin assembly assertion associate asynchronous at atan atn2 attr attri attrib attribu attribut attribute attributes audit authenticated authentication authid authors auto autoallocate autodblink autoextend automatic availability avg backup badfile basicfile before begin beginning benchmark between bfile bfile_base big bigfile bin binary_double binary_float binlog bit_and bit_count bit_length bit_or bit_xor bitmap blob_base block blocksize body both bound buffer_cache buffer_pool build bulk by byte byteordermark bytes cache caching call calling cancel capacity cascade cascaded case cast catalog category ceil ceiling chain change changed char_base char_length character_length characters characterset charindex charset charsetform charsetid check checksum checksum_agg child choose chr chunk class cleanup clear client clob clob_base clone close cluster_id cluster_probability cluster_set clustering coalesce coercibility col collate collation collect colu colum column column_value columns columns_updated comment commit compact compatibility compiled complete composite_limit compound compress compute concat concat_ws concurrent confirm conn connec connect connect_by_iscycle connect_by_isleaf connect_by_root connect_time connection consider consistent constant constraint constraints constructor container content contents context contributors controlfile conv convert convert_tz corr corr_k corr_s corresponding corruption cos cost count count_big counted covar_pop covar_samp cpu_per_call cpu_per_session crc32 create creation critical cross cube cume_dist curdate current current_date current_time current_timestamp current_user cursor curtime customdatum cycle data database databases datafile datafiles datalength date_add date_cache date_format date_sub dateadd datediff datefromparts datename datepart datetime2fromparts day day_to_second dayname dayofmonth dayofweek dayofyear days db_role_change dbtimezone ddl deallocate declare decode decompose decrement decrypt deduplicate def defa defau defaul default defaults deferred defi defin define degrees delayed delegate delete delete_all delimited demand dense_rank depth dequeue des_decrypt des_encrypt des_key_file desc descr descri describ describe descriptor deterministic diagnostics difference dimension direct_load directory disable disable_all disallow disassociate discardfile disconnect diskgroup distinct distinctrow distribute distributed div do document domain dotnet double downgrade drop dumpfile duplicate duration each edition editionable editions element ellipsis else elsif elt empty enable enable_all enclosed encode encoding encrypt end end-exec endian enforced engine engines enqueue enterprise entityescaping eomonth error errors escaped evalname evaluate event eventdata events except exception exceptions exchange exclude excluding execu execut execute exempt exists exit exp expire explain export export_set extended extent external external_1 external_2 externally extract failed failed_login_attempts failover failure far fast feature_set feature_value fetch field fields file file_name_convert filesystem_like_logging final finish first first_value fixed flash_cache flashback floor flush following follows for forall force form forma format found found_rows freelist freelists freepools fresh from from_base64 from_days ftp full function general generated get get_format get_lock getdate getutcdate global global_name globally go goto grant grants greatest group group_concat group_id grouping grouping_id groups gtid_subtract guarantee guard handler hash hashkeys having hea head headi headin heading heap help hex hierarchy high high_priority hosts hour http id ident_current ident_incr ident_seed identified identity idle_time if ifnull ignore iif ilike ilm immediate import in include including increment index indexes indexing indextype indicator indices inet6_aton inet6_ntoa inet_aton inet_ntoa infile initial initialized initially initrans inmemory inner innodb input insert install instance instantiable instr interface interleaved intersect into invalidate invisible is is_free_lock is_ipv4 is_ipv4_compat is_not is_not_null is_used_lock isdate isnull isolation iterate java join json json_exists keep keep_duplicates key keys kill language large last last_day last_insert_id last_value lax lcase lead leading least leaves left len lenght length less level levels library like like2 like4 likec limit lines link list listagg little ln load load_file lob lobs local localtime localtimestamp locate locator lock locked log log10 log2 logfile logfiles logging logical logical_reads_per_call logoff logon logs long loop low low_priority lower lpad lrtrim ltrim main make_set makedate maketime managed management manual map mapping mask master master_pos_wait match matched materialized max maxextents maximize maxinstances maxlen maxlogfiles maxloghistory maxlogmembers maxsize maxtrans md5 measures median medium member memcompress memory merge microsecond mid migration min minextents minimum mining minus minute minvalue missing mod mode model modification modify module monitoring month months mount move movement multiset mutex name name_const names nan national native natural nav nchar nclob nested never new newline next nextval no no_write_to_binlog noarchivelog noaudit nobadfile nocheck nocompress nocopy nocycle nodelay nodiscardfile noentityescaping noguarantee nokeep nologfile nomapping nomaxvalue nominimize nominvalue nomonitoring none noneditionable nonschema noorder nopr nopro noprom nopromp noprompt norely noresetlogs noreverse normal norowdependencies noschemacheck noswitch not nothing notice notrim novalidate now nowait nth_value nullif nulls num numb numbe nvarchar nvarchar2 object ocicoll ocidate ocidatetime ociduration ociinterval ociloblocator ocinumber ociref ocirefcursor ocirowid ocistring ocitype oct octet_length of off offline offset oid oidindex old on online only opaque open operations operator optimal optimize option optionally or oracle oracle_date oradata ord ordaudio orddicom orddoc order ordimage ordinality ordvideo organization orlany orlvary out outer outfile outline output over overflow overriding package pad parallel parallel_enable parameters parent parse partial partition partitions pascal passing password password_grace_time password_lock_time password_reuse_max password_reuse_time password_verify_function patch path patindex pctincrease pctthreshold pctused pctversion percent percent_rank percentile_cont percentile_disc performance period period_add period_diff permanent physical pi pipe pipelined pivot pluggable plugin policy position post_transaction pow power pragma prebuilt precedes preceding precision prediction prediction_cost prediction_details prediction_probability prediction_set prepare present preserve prior priority private private_sga privileges procedural procedure procedure_analyze processlist profiles project prompt protection public publishingservername purge quarter query quick quiesce quota quotename radians raise rand range rank raw read reads readsize rebuild record records recover recovery recursive recycle redo reduced ref reference referenced references referencing refresh regexp_like register regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy reject rekey relational relative relaylog release release_lock relies_on relocate rely rem remainder rename repair repeat replace replicate replication required reset resetlogs resize resource respect restore restricted result result_cache resumable resume retention return returning returns reuse reverse revoke right rlike role roles rollback rolling rollup round row row_count rowdependencies rowid rownum rows rtrim rules safe salt sample save savepoint sb1 sb2 sb4 scan schema schemacheck scn scope scroll sdo_georaster sdo_topo_geometry search sec_to_time second section securefile security seed segment select self sequence sequential serializable server servererror session session_user sessions_per_user set sets settings sha sha1 sha2 share shared shared_pool short show shrink shutdown si_averagecolor si_colorhistogram si_featurelist si_positionalcolor si_stillimage si_texture siblings sid sign sin size size_t sizes skip slave sleep smalldatetimefromparts smallfile snapshot some soname sort soundex source space sparse spfile split sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_small_result sql_variant_property sqlcode sqldata sqlerror sqlname sqlstate sqrt square standalone standby start starting startup statement static statistics stats_binomial_test stats_crosstab stats_ks_test stats_mode stats_mw_test stats_one_way_anova stats_t_test_ stats_t_test_indep stats_t_test_one stats_t_test_paired stats_wsr_test status std stddev stddev_pop stddev_samp stdev stop storage store stored str str_to_date straight_join strcmp strict string struct stuff style subdate subpartition subpartitions substitutable substr substring subtime subtring_index subtype success sum suspend switch switchoffset switchover sync synchronous synonym sys sys_xmlagg sysasm sysaux sysdate sysdatetimeoffset sysdba sysoper system system_user sysutcdatetime table tables tablespace tan tdo template temporary terminated tertiary_weights test than then thread through tier ties time time_format time_zone timediff timefromparts timeout timestamp timestampadd timestampdiff timezone_abbr timezone_minute timezone_region to to_base64 to_date to_days to_seconds todatetimeoffset trace tracking transaction transactional translate translation treat trigger trigger_nestlevel triggers trim truncate try_cast try_convert try_parse type ub1 ub2 ub4 ucase unarchived unbounded uncompress under undo unhex unicode uniform uninstall union unique unix_timestamp unknown unlimited unlock unpivot unrecoverable unsafe unsigned until untrusted unusable unused update updated upgrade upped upper upsert url urowid usable usage use use_stored_outlines user user_data user_resources users using utc_date utc_timestamp uuid uuid_short validate validate_password_strength validation valist value values var var_samp varcharc vari varia variab variabl variable variables variance varp varraw varrawc varray verify version versions view virtual visible void wait wallet warning warnings week weekday weekofyear wellformed when whene whenev wheneve whenever where while whitespace with within without work wrapped xdb xml xmlagg xmlattributes xmlcast xmlcolattval xmlelement xmlexists xmlforest xmlindex xmlnamespaces xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltype xor year year_to_month years yearweek",literal:"true false null",built_in:"array bigint binary bit blob boolean char character date dec decimal float int int8 integer interval number numeric real record serial serial8 smallint text varchar varying void"},c:[{cN:"string",b:"'",e:"'",c:[e.BE,{b:"''"}]},{cN:"string",b:'"',e:'"',c:[e.BE,{b:'""'}]},{cN:"string",b:"`",e:"`",c:[e.BE]},e.CNM,e.CBCM,t]},e.CBCM,t]}}),hljs.registerLanguage("markdown",function(e){return{aliases:["md","mkdown","mkd"],c:[{cN:"section",v:[{b:"^#{1,6}",e:"$"},{b:"^.+?\\n[=-]{2,}$"}]},{b:"<",e:">",sL:"xml",r:0},{cN:"bullet",b:"^([*+-]|(\\d+\\.))\\s+"},{cN:"strong",b:"[*_]{2}.+?[*_]{2}"},{cN:"emphasis",v:[{b:"\\*.+?\\*"},{b:"_.+?_",r:0}]},{cN:"quote",b:"^>\\s+",e:"$"},{cN:"code",v:[{b:"^```w*s*$",e:"^```s*$"},{b:"`.+?`"},{b:"^( {4}|\t)",e:"$",r:0}]},{b:"^[-\\*]{3,}",e:"$"},{b:"\\[.+?\\][\\(\\[].*?[\\)\\]]",rB:!0,c:[{cN:"string",b:"\\[",e:"\\]",eB:!0,rE:!0,r:0},{cN:"link",b:"\\]\\(",e:"\\)",eB:!0,eE:!0},{cN:"symbol",b:"\\]\\[",e:"\\]",eB:!0,eE:!0}],r:10},{b:"^\\[.+\\]:",rB:!0,c:[{cN:"symbol",b:"\\[",e:"\\]:",eB:!0,eE:!0,starts:{cN:"link",e:"$"}}]}]}}),hljs.registerLanguage("php",function(e){var c={b:"\\$+[a-zA-Z_-ÿ][a-zA-Z0-9_-ÿ]*"},a={cN:"meta",b:/<\?(php)?|\?>/},i={cN:"string",c:[e.BE,a],v:[{b:'b"',e:'"'},{b:"b'",e:"'"},e.inherit(e.ASM,{i:null}),e.inherit(e.QSM,{i:null})]},t={v:[e.BNM,e.CNM]};return{aliases:["php3","php4","php5","php6"],cI:!0,k:"and include_once list abstract global private echo interface as static endswitch array null if endwhile or const for endforeach self var while isset public protected exit foreach throw elseif include __FILE__ empty require_once do xor return parent clone use __CLASS__ __LINE__ else break print eval new catch __METHOD__ case exception default die require __FUNCTION__ enddeclare final try switch continue endfor endif declare unset true false trait goto instanceof insteadof __DIR__ __NAMESPACE__ yield finally",c:[e.HCM,e.C("//","$",{c:[a]}),e.C("/\\*","\\*/",{c:[{cN:"doctag",b:"@[A-Za-z]+"}]}),e.C("__halt_compiler.+?;",!1,{eW:!0,k:"__halt_compiler",l:e.UIR}),{cN:"string",b:/<<<['"]?\w+['"]?$/,e:/^\w+;?$/,c:[e.BE,{cN:"subst",v:[{b:/\$\w+/},{b:/\{\$/,e:/\}/}]}]},a,c,{b:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{cN:"function",bK:"function",e:/[;{]/,eE:!0,i:"\\$|\\[|%",c:[e.UTM,{cN:"params",b:"\\(",e:"\\)",c:["self",c,e.CBCM,i,t]}]},{cN:"class",bK:"class interface",e:"{",eE:!0,i:/[:\(\$"]/,c:[{bK:"extends implements"},e.UTM]},{bK:"namespace",e:";",i:/[\.']/,c:[e.UTM]},{bK:"use",e:";",c:[e.UTM]},{b:"=>"},i,t]}}),hljs.registerLanguage("json",function(e){var i={literal:"true false null"},n=[e.QSM,e.CNM],r={e:",",eW:!0,eE:!0,c:n,k:i},t={b:"{",e:"}",c:[{cN:"attr",b:/"/,e:/"/,c:[e.BE],i:"\\n"},e.inherit(r,{b:/:/})],i:"\\S"},e={b:"\\[",e:"\\]",c:[e.inherit(r)],i:"\\S"};return n.splice(n.length,0,t,e),{c:n,k:i,i:"\\S"}}),hljs.registerLanguage("javascript",function(e){return{aliases:["js","jsx"],k:{keyword:"in of if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await static import from as",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Promise"},c:[{cN:"meta",r:10,b:/^\s*['"]use (strict|asm)['"]/},{cN:"meta",b:/^#!/,e:/$/},e.ASM,e.QSM,{cN:"string",b:"`",e:"`",c:[e.BE,{cN:"subst",b:"\\$\\{",e:"\\}"}]},e.CLCM,e.CBCM,{cN:"number",v:[{b:"\\b(0[bB][01]+)"},{b:"\\b(0[oO][0-7]+)"},{b:e.CNR}],r:0},{b:"("+e.RSR+"|\\b(case|return|throw)\\b)\\s*",k:"return throw case",c:[e.CLCM,e.CBCM,e.RM,{b:/</,e:/(\/\w+|\w+\/)>/,sL:"xml",c:[{b:/<\w+\s*\/>/,skip:!0},{b:/<\w+/,e:/(\/\w+|\w+\/)>/,skip:!0,c:["self"]}]}],r:0},{cN:"function",bK:"function",e:/\{/,eE:!0,c:[e.inherit(e.TM,{b:/[A-Za-z$_][0-9A-Za-z$_]*/}),{cN:"params",b:/\(/,e:/\)/,eB:!0,eE:!0,c:[e.CLCM,e.CBCM]}],i:/\[|%/},{b:/\$[(.]/},e.METHOD_GUARD,{cN:"class",bK:"class",e:/[{;=]/,eE:!0,i:/[:"\[\]]/,c:[{bK:"extends"},e.UTM]},{bK:"constructor",e:/\{/,eE:!0}],i:/#(?!!)/}}),(($,window,document)=>{window.photoswipe_l10n||(window.photoswipe_l10n={});var $pswp=$('<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true"><div class="pswp__bg"></div><div class="pswp__scroll-wrap"><div class="pswp__container"><div class="pswp__item"></div><div class="pswp__item"></div><div class="pswp__item"></div></div><div class="pswp__ui pswp__ui--hidden"><div class="pswp__top-bar"><div class="pswp__counter"></div><button class="pswp__button pswp__button--close" title="'+(photoswipe_l10n.close||"Close (Esc)")+'"></button><button class="pswp__button pswp__button--share" title="'+(photoswipe_l10n.share||"Share")+'"></button><button class="pswp__button pswp__button--fs" title="'+(photoswipe_l10n.fullscreen||"Toggle fullscreen")+'"></button><button class="pswp__button pswp__button--zoom" title="'+(photoswipe_l10n.zoom||"Zoom in/out")+'"></button><div class="pswp__preloader"><div class="pswp__preloader__icn"><div class="pswp__preloader__cut"><div class="pswp__preloader__donut"></div></div></div></div></div><div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap"><div class="pswp__share-tooltip"></div> </div><button class="pswp__button pswp__button--arrow--left" title="'+(photoswipe_l10n.previous||"Previous (arrow left)")+'"></button><button class="pswp__button pswp__button--arrow--right" title="'+(photoswipe_l10n.next||"Next (arrow right)")+'"></button><div class="pswp__caption"><div class="pswp__caption__center"></div></div></div></div></div>').appendTo("body"),youtubeRegex=/(?:https?:)?(?:\/\/)?(?:[0-9A-Z-]+\.)?(?:youtu\.be\/|youtube(?:-nocookie)?\.com\S*?[^\w\s-])([\w-]{11})(?=[^\w-]|$)(?![?=&+%\w.-]*(?:['"][^<>]*>|<\/a>))[?=&+%\w.-]*/,vimeoRegex=/(http|https)?:\/\/(www\.|player\.)?vimeo\.com\/(?:channels\/(?:\w+\/)?|groups\/([^\\/]*)\/videos\/|video\/|)(\d+)(?:|\/\?)/,embedURLRegex=/\.(3gp|m4v|mkv|mov|mp4|mpeg|mpg|ogg|webm|wmv)$/,defaults={target:"a",ui:PhotoSwipeUI_Default,titleMap:!1,thumbnailMap:!1,autoplay:0,showHideOpacity:!0,getThumbBoundsFn:!1},_uid=1;function JQPhotoSwipe(element,options){this.settings=$.extend({},defaults,options),this._defaults=defaults,this.slides=[],this.UID=_uid++,this.element=element,this.$element=$(element),this.init()}$.extend(JQPhotoSwipe.prototype,{init:function(){this.$element.find(this.settings.target).each(this._registerSlide.bind(this));var animDuration,hashData=this._photoswipeParseHash();hashData.pid&&hashData.gid&&(animDuration=this.settings.showAnimationDuration,this.settings.showAnimationDuration=0,this._openPhotoSwipe(hashData.pid,!0),this.settings.showAnimationDuration=animDuration)},getSlides:function(){return this.slides},_registerSlide:function(index,item){var $item=$(item),slide={src:$item.is("a")?$item.attr("href"):$item.data("original-src")||$item.attr("src"),w:$item.data("original-width"),h:$item.data("original-height"),item:item};if("video"==$item.data("type")&&$item.is("a")){var videoURLType=this._getVideoURLType($item.attr("href"));if(!videoURLType)return;slide={html:this._getVideoHtml($item.attr("href"),videoURLType)}}this.settings.titleMap?slide.title=this.settings.titleMap($item,index,this):slide.title=$item.data("caption")||$item.attr("title")||$item.attr("alt"),this.settings.thumbnailMap?(videoURLType=this.settings.thumbnailMap($item,index,this),slide.el=videoURLType.element,slide.msrc=videoURLType.src):$item.is("img")?(slide.el=item,slide.msrc=$item.attr("src")):(videoURLType=$item.find("img")).length&&(slide.el=videoURLType[0],slide.msrc=videoURLType.attr("src")),$item.data("index",index),$item.on("click.photoswipe",this._onItemClick.bind(this)),this.slides.push(slide)},_getVideoURLType:function(url){return url.match(youtubeRegex)?"youtube":url.match(vimeoRegex)?"vimeo":!!url.match(embedURLRegex)&&"embed"},_getVideoHtml:function(url,type){var videoEmbedLink=url;return"youtube"===type&&(videoEmbedLink="//www.youtube.com/embed/"+url.match(youtubeRegex)[1]),'<div class="video-wrapper"><iframe class="pswp__video" src="'+(videoEmbedLink="vimeo"===type?"//player.vimeo.com/video/"+url.match(vimeoRegex)[4]:videoEmbedLink)+'" width="960" height="640" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div>'},_onItemClick:function(e){e.preventDefault(),this._openPhotoSwipe($(e.currentTarget).data("index"))},_thumbnailBounds:function(index){var index=this.slides[index].el,pageYScroll=window.pageYOffset||document.documentElement.scrollTop;return index?{x:(index=index.getBoundingClientRect()).left,y:index.top+pageYScroll,w:index.width}:null},_photoswipeParseHash:function(){var hash=window.location.hash.substring(1),params={};if(!(hash.length<5)){for(var pair,vars=hash.split("&"),i=0;i<vars.length;i++)vars[i]&&((pair=vars[i].split("=")).length<2||(params[pair[0]]=pair[1]));params.gid&&(params.gid=parseInt(params.gid,10))}return params},_openPhotoSwipe:function(index,fromURL){var options=this.settings;$.extend(options,{galleryUID:this.UID,getThumbBoundsFn:this._thumbnailBounds.bind(this)}),options.index=fromURL?parseInt(index,10)-1:parseInt(index,10),isNaN(options.index)||((fromURL=new PhotoSwipe($pswp[0],options.ui,this.slides,options)).init(),this._photoswipeListen(fromURL))},_photoswipeListen:function(gallery){gallery.listen("beforeChange",function(){var $allItems=$(this.container).find(".pswp__video");$allItems.removeClass("active"),$(this.currItem.container).find(".pswp__video").addClass("active"),$allItems.each(function(){$(this).hasClass("active")||$(this).attr("src",$(this).attr("src"))})}),gallery.listen("close",function(){$(this.currItem.container).find(".pswp__video").each(function(){$(this).attr("src","about:blank")})})}}),$.fn.photoSwipe=function(options){var returns,args=arguments,plugin="averta_photoswipe";return void 0===options||"object"==typeof options?this.each(function(){$.data(this,plugin)||$.data(this,plugin,new JQPhotoSwipe(this,options))}):"string"==typeof options&&"_"!==options[0]&&"init"!==options?(this.each(function(){var instance=$.data(this,plugin);instance instanceof JQPhotoSwipe&&"function"==typeof instance[options]&&(returns=instance[options].apply(instance,Array.prototype.slice.call(args,1))),"destroy"===options&&$.data(this,plugin,null)}),void 0!==returns?returns:this):void 0}})(jQuery,window,document),(($,window)=>{var $window=$(window),pluginName="AuxinFloatLayout",defaults={autoLocate:!0,placeholder:"aux-placehoder",dynamicSelector:".aux-auto-locate",checkMiddle:!0,phoneClassName:"aux-phone",tabletClassName:"aux-tablet",desktopClassName:"aux-desktop",breakpoints:{1025:"tablet",767:"phone"}};function Plugin(element,options){this.element=element,this.$element=$(element),this.settings=$.extend({},defaults,options),this._defaults=defaults,this._name=pluginName,this.init()}$.extend(Plugin.prototype,{init:function(){var dynamicElements=this.$element.find(this.settings.dynamicSelector);if(this.dynamicElements=dynamicElements,this.settings.autoLocate&&dynamicElements.length)for(var i=0,l=dynamicElements.length;i!==l;i++){var element=$(dynamicElements[i]);dynamicElements[i]=element.data("placeholder",$('<span style="display:none;"></span>')).data("layout","default")}$window.on("resize",this._onResize.bind(this)),this._onResize()},update:function(){this._onResize(),this.$containerPlaceHolder&&this._onScroll()},destroy:function(){if($window.off("resize",this._onResize).off("scroll",this._onScroll),this.dynamicElements){for(var i=0,l=this.dynamicElements.length;i!==l;i++){var dynamicElement=this.dynamicElements[i];dynamicElement.data("placeholder").remove(),dynamicElement.data("placeholder",null)}this.dynamicElements=null}this.$containerPlaceHolder&&this.$containerPlaceHolder.remove()},_onResize:function(){var point,width=window.innerWidth,layout="default",lastPoint=null;for(point in this.settings.breakpoints)width<point&&(null===lastPoint||point<lastPoint)&&(layout=this.settings.breakpoints[point],lastPoint=point);if(layout!==this.lastLayout&&(this.$element.removeClass(this.settings.desktopClassName).removeClass(this.settings.phoneClassName).removeClass(this.settings.tabletClassName),"default"===layout?this.$element.addClass(this.settings.desktopClassName):this.$element.addClass(this.settings[layout+"ClassName"]),this.settings.checkMiddle&&this.$element.find('[class*="-middle"]').each(function(index,element){$(element).height()%2!=0&&(element.style.paddingBottom="1px")}.bind(this)),this.lastLayout=layout,this.settings.autoLocate))for(var i=0,l=this.dynamicElements.length;i!==l;i++)this._checkElement(this.dynamicElements[i],layout)},_checkElement:function($dynamicElement,layout){var target;$dynamicElement.data("layout")!==layout&&("phone"===layout||"tablet"===layout?("default"===$dynamicElement.data("layout")&&$dynamicElement.after($dynamicElement.data("placeholder")),void 0===(target=$dynamicElement.data(layout))?(target=$dynamicElement.data("locate"),$(target).eq(0)[$dynamicElement.data("locate-method")||"append"]($dynamicElement)):$(target).eq(0)[$dynamicElement.data(layout+"-method")||"append"]($dynamicElement)):$dynamicElement.data("placeholder").after($dynamicElement).detach(),$dynamicElement.data("layout",layout))}}),$.fn[pluginName]=function(options){var _arguments=arguments;return this.each(function(){var plugin;$.data(this,"plugin_"+pluginName)?"string"==typeof options&&"_"!==options.indexOf(0)&&(plugin=$.data(this,"plugin_"+pluginName))[options].apply(plugin,Array.prototype.slice.call(_arguments,1)):$.data(this,"plugin_"+pluginName,new Plugin(this,options))})}})(jQuery,window,document),(($,window)=>{var pluginName="AuxinStickyPosition",$window=$(window),defaults={className:"aux-sticky",placeholder:"aux-sticky-placeholder",schemePrefix:"aux-header-",stickyMargin:0,disablePoint:0,checkBoundaries:!1,boundryTarget:"",rearrange:!0,useTransform:!1},attributesMap={"sticky-margin":"stickyMargin","sticky-off":"disablePoint",rearrange:"rearrange",boundaries:"checkBoundaries","boundry-target":"boundryTarget","use-transform":"useTransform"};function Plugin(element,options){for(var attrName in this.element=element,this.$element=$(element),this.settings=$.extend({},defaults,options),this._defaults=defaults,this._name=pluginName,this._scheme=this.$element.data("color-scheme")||!1,this._stickyScheme=this.$element.data("sticky-scheme")||!1,this._stickyDisableFlag=!1,attributesMap){var value=this.$element.data(attrName);void 0!==value&&(this.settings[attributesMap[attrName]]=value)}this.init()}$.extend(Plugin.prototype,{init:function(){this.containerHeight=this.$element.outerHeight(),this.$containerPlaceHolder=$("<div></div>").addClass(this.settings.placeholder),this.$element.before(this.$containerPlaceHolder),this._wpadminbarHeight=$("#wpadminbar").outerHeight()||0,this.isOverlay="absolute"===window.getComputedStyle(this.element).position,$window.on("scroll resize",this._update.bind(this)),this._update()},_disable:function(){this.settings.useTransform?this.element.style[_jcsspfx+"Transform"]="":this.element.style.top="",this._stickyDisableFlag=!0,this.$containerPlaceHolder.css("display","none"),this.$element.trigger("unsticky")},_update:function(){var calc,wst=$window.scrollTop(),etp=Math.round(this.$containerPlaceHolder.offset().top-this.settings.stickyMargin-this._wpadminbarHeight);this.settings.disablePoint>=window.innerWidth?this._disable():(this._stickyDisableFlag&&this.$containerPlaceHolder.css("display","initial"),etp<wst&&!this.stickyEnabled?(this.$element.addClass(this.settings.className),this.stickyEnabled=!0,this._scheme!==this._stickyScheme&&(this._scheme&&this.$element.removeClass(this.settings.schemePrefix+this._scheme),this._stickyScheme)&&this.$element.addClass(this.settings.schemePrefix+this._stickyScheme),this.settings.useTransform||this.isOverlay||this.$containerPlaceHolder.height(this.containerHeight),this.settings.rearrange&&this._checkForRearrange(!0),this.useTransform||!this.settings.stickyMargin&&0!==this.settings.stickyMargin||(this.element.style.top=this.settings.stickyMargin+this._wpadminbarHeight+"px"),this.$element.trigger("sticky")):this.stickyEnabled&&wst<=etp&&(this.stickyEnabled=!1,this.$containerPlaceHolder.height(0),this.$element.removeClass(this.settings.className),this._scheme!==this._stickyScheme&&(this._scheme&&this.$element.addClass(this.settings.schemePrefix+this._scheme),this._stickyScheme)&&this.$element.removeClass(this.settings.schemePrefix+this._stickyScheme),this.settings.rearrange&&this._checkForRearrange(!1),this.useTransform||!this.settings.stickyMargin&&0!==this.settings.stickyMargin||(this.element.style.top=""),this.$element.trigger("unsticky")),this.settings.useTransform?this.stickyEnabled?(calc=wst-etp,this.settings.checkBoundaries?this._checkElementBoundaries(etp,wst,calc):this.element.style[_jcsspfx+"Transform"]="translateY("+calc+"px)"):this.element.style[_jcsspfx+"Transform"]="":this.settings.checkBoundaries&&this._checkElementBoundaries(etp,wst))},_checkElementBoundaries:function(etp,wst,calc){etp=etp||this.$containerPlaceHolder.offset().top,wst=wst||$window.scrollTop(),calc=calc||0,this.$boundryTarget=this.settings.boundryTarget.length?$(this.settings.boundryTarget):this.$element.parent().eq(0);wst=this.$boundryTarget.offset().top-this._wpadminbarHeight+this.$boundryTarget.outerHeight(!0)-(etp+this.$element.outerHeight(!0));this.element.style[_jcsspfx+"Transform"]=0<=calc&&calc<=wst?"translateY("+calc+"px)":wst<calc?"translateY("+wst+"px)":""},_checkForRearrange:function(attach){var self=this;attach?this.$element.find("[data-sticky-move]").each(function(){var $this=$(this),$target=self.$element.find($this.data("sticky-move"));0!=$target.length&&($this.data("placeholder")||$this.data("placeholder",$('<span style="display:none"></span>')),$this.after($this.data("placeholder")),$target[$this.data("sticky-move-method")||"append"]($this))}):this.$element.find("[data-sticky-move]").each(function(){var $this=$(this);$this.data("placeholder")&&$this.data("placeholder").after($this).detach()})}}),$.fn[pluginName]=function(options){return this.each(function(){$.data(this,"plugin_"+pluginName)||$.data(this,"plugin_"+pluginName,new Plugin(this,options))})}})(jQuery,window,document),($=>{var defaults={hitArea:".aux-hover-active"};function Plugin(element,options){this.element=element,this.$element=$(element),this.settings=$.extend({},defaults,options),this._name="AuxinCubeHover",this.init()}$.extend(Plugin.prototype,{init:function(){var target;(this.settings.hitArea?((target=this.$element.parents(this.settings.hitArea).eq(0)).on("mouseenter",this._movein.bind(this)),target):(this.$element.on("mouseenter",this._movein.bind(this)),this.$element)).on("mouseleave",this._moveout.bind(this)),this._fixOrigin()},_fixOrigin:function(){var shift=-this.$element.outerHeight()/2,dir=-1,axis="X";this.$element.hasClass("aux-rotate-down")?dir=1:this.$element.hasClass("aux-rotate-left")?(shift=-this.$element.outerWidth()/2,axis="Y",dir=1):this.$element.hasClass("aux-rotate-right")&&(shift=-this.$element.outerWidth()/2,axis="Y"),this._outTransform="perspective(1000px) translateZ("+shift+"px)",this._inTransform=this._outTransform+" rotate"+axis+"( "+90*dir+"deg )",this.element.style[_jcsspfx+"TransitionDuration"]="0ms",this.element.style[_jcsspfx+"Transform"]=this._outTransform,this.element.style[_jcsspfx+"TransformOrigin"]="center center "+shift+"px",setTimeout(function(){this.element.style[_jcsspfx+"TransitionDuration"]=""}.bind(this),5)},_movein:function(){this._fixOrigin(),clearTimeout(this._hoverdelay),this._hoverdelay=setTimeout(function(){this.element.style[_jcsspfx+"Transform"]=this._inTransform}.bind(this),10)},_moveout:function(){clearTimeout(this._hoverdelay),this.element.style[_jcsspfx+"Transform"]=this._outTransform},destroy:function(){}}),$.fn.AuxinCubeHover=function(options){return this.each(function(){$.data(this,"plugin_AuxinCubeHover")||$.data(this,"plugin_AuxinCubeHover",new Plugin(this,options))})}})(jQuery,(window,document)),($=>{var defaults={in:"aux-hover-in",out:"aux-hover-out",reset:"aux-hover-reset"};function Plugin(element,options){this.element=element,this.settings=$.extend({},defaults,options),this._defaults=defaults,this._name="AuxTwoWayHover",this.init()}$.extend(Plugin.prototype,{init:function(){var $element=$(this.element),st=this.settings;$element.on("mouseenter",function(){$element.removeClass(st.out).addClass(st.reset),clearTimeout(this._hoverTimeout),this._hoverTimeout=setTimeout(function(){$element.addClass(st.in).removeClass(st.reset)},30)}.bind(this)).on("mouseleave",function(event){clearTimeout(this._hoverTimeout),$element.addClass(st.out),$element.removeClass(st.in)}.bind(this))}}),$.fn.AuxTwoWayHover=function(options){return this.each(function(){$.data(this,"plugin_AuxTwoWayHover")||$.data(this,"plugin_AuxTwoWayHover",new Plugin(this,options))})}})(jQuery,(window,document)),(($,window)=>{var defaults={space:-1,layoutMode:"masonry",lazyload:!1,paginationLoc:null,loadingHeight:500,searchFilter:!1,grouping:null,deeplink:!0,isOriginLeft:!0,slug:"recent",filters:".aux-isotope-filters",revealTransitionDelay:50,revealTransitionDuration:50,revealBetweenDelay:200,hideTransitionDuration:null,hideTransitionDelay:0,hideBetweenDelay:200,loadingTransitionDuration:600,imgSizes:!0,resizeTransition:!1,paginationClass:"aux-pagination aux-round aux-page-no-border aux-iso-pagination",loadingClass:"aux-loading",afterInitClass:"aux-isotope-ready",groupingPrefix:".aux-grouping-",searchClass:".aux-isotope-search",updateUponResize:!1,isInitLayout:!1,transitionDuration:0,itemsLoading:".aux-items-loading",loadingVisible:"aux-loading-visible",loadingHide:"aux-loading-hide",transitionHelpers:{hiding:"aux-iso-hiding",hidden:"aux-iso-hidden",revealing:"aux-iso-revealing",visible:"aux-iso-visible"}},attributeOptionsMap={pagination:"pagination",perpage:"inPage",layout:"layoutMode",lazyload:"lazyload",space:"space","loading-height":"loadingHeight","search-filter":"searchFilter",grouping:"grouping",deeplink:"deeplink",slug:"slug",filters:"filters","pagination-class":"paginationClass"};function Plugin(element,options){if(window.Isotope||$.fn.isotope){for(var attr in this.element=element,this.$element=$(element),this.settings=$.extend({},defaults,options),this._defaults=defaults,this._name="AuxIsotope",attributeOptionsMap){var value=this.$element.data(attr);void 0!==value&&(this.settings[attributeOptionsMap[attr]]=value)}"grid"===this.settings.layoutMode&&(this.settings.layoutMode="masonry"),this.init()}else $.error("isotope is not available in this page.")}$.extend(Plugin.prototype,{init:function(){this.$element.addClass(this.settings.afterInitClass),this.settings.lazyload&&this.$element.height(this.settings.loadingHeight),this.$element.parents(".rtl").length&&(this.settings.isOriginLeft=!1),this._isoElement=this.$element[0],0<=this.settings.space&&(this.$element.children(this.settings.itemSelector).css({"margin-bottom":this.settings.space+"px","padding-right":this.settings.space+"px"}),this.$element.css("margin-right",-this.settings.space+"px")),this.settings.revealTransitionDuration=this.$element.data("reveal-transition-duration")||this.settings.revealTransitionDuration,this.settings.revealBetweenDelay=this.$element.data("reveal-between-delay")||this.settings.revealBetweenDelay,this.settings.revealTransitionDelay=this.$element.data("reveal-transition-delay")||this.settings.revealTransitionDelay,this.settings.hideTransitionDuration=this.$element.data("hide-transition-duration")||this.settings.hideTransitionDuration,this.settings.hideBetweenDelay=this.$element.data("hide-between-delay")||this.settings.hideBetweenDelay,this.settings.hideTransitionDelay=this.$element.data("hide-transition-delay")||this.settings.hideTransitionDelay,this._isotope=new Isotope(this._isoElement,this.settings),this._isotope.options.hiddenStyle={},this._isotope.options.visibleStyle={},this.$element.data("isotope",this._isotope);var self=this;this._isotope.options.filter=function(){return self._filtering(this)},this._groupValue=null,this._filterValue=null,this._searchValue=null,this._currentFilter=null,this._currentSearch=null,this._currentGroup=null,this.settings.grouping&&this._setGroupValue(),this.settings.deeplink&&this._initDeeplink(),this.settings.pagination&&(this._isotope.options.pagination=!0,this._initPagination()),this.settings.lazyload&&window.imagesLoaded?this._isotope.on("itemLoading",this._setLazyload.bind(this)):window.imagesLoaded&&this.$element.imagesLoaded().always(function(instance,image){this._arrangeIsotope()}.bind(this)),this._isotope.arrange(),this._currentPage=this._isotope.options.page,this._isotope.items.forEach(function(item){item.$element||(item.$element=$(item.element))},this),this.settings.lazyload&&(this.$loading=this.$element.find(this.settings.itemsLoading).addClass(this.settings.loadingHide).appendTo(this.$element),this._instantlyHideItems(),this._revealItems()),this.settings.updateUponResize&&$(window).on("resize",this._arrangeIsotope.bind(this)),this.ـinitFilters()},arrange:function(method,options){var totalHideDuration,i,st,self,io=this._isotope.options;(this._currentFilter!==this._filterValue||this.settings.grouping&&this._currentGroup!==this._groupValue||this.settings.searchFilter&&this._currentSearch!==this._searchValue||this.settings.pagination&&this._currentPage!==io.page)&&(this._currentPage=io.page,this._currentFilter=this._filterValue,this._currentSearch=this._searchValue,this._currentGroup=this._groupValue,io=this._isotope.filteredItems,totalHideDuration=this.settings.transitionDelay,this.settings.transitionHelpers,i=0,st=this.settings,self=this,io.forEach(function(item){self._hideItem(item,self.settings.hideBetweenDelay*++i+st.hideTransitionDelay,st.hideTransitionDuration)}),totalHideDuration=st.hideBetweenDelay*i+st.hideTransitionDelay+st.hideTransitionDuration,clearTimeout(this._hidingTimeout),clearTimeout(this._revealingTimeout),this._hidingTimeout=setTimeout(function(){self._instantlyHideItems(),method&&"arrange"!==method?self._isotope[method].apply(self._isotope,options):self._isotope._noTransition(self._isotope.arrange),self._revealItems()},totalHideDuration),st.deeplink&&self._updateHash(),this.$element.trigger("auxinIsotopeArrange"))},insert:function($item){0<=this.settings.space&&$item.css({"margin-bottom":this.settings.space+"px","padding-right":this.settings.space+"px"}),this._isotope.insert($item),this._isotope.items.forEach(function(item){item.$element||(item.$element=$(item.element))},this)},remove:function(items){Array.isArray(items)||(items=[items]),this._isotope.remove(items.map(function(item){return item.element})),this._isotope.arrange()},removeAll:function(){this._isotope.remove(this._isotope.items.map(function(item){return item.element})),this.updateIsotope(),this._isotope.options.page=1},updateIsotope:function(){this._arrangeIsotope()},destroy:function(){this.settings.pagination&&this.$pagination.remove(),this.settings.updateUponResize&&$(window).off("resize",this._arrangeIsotope.bind(this)),this.$element.data("isotope",null),this._isotope.destroy(),this.$element.remove()},changeGroup:function(groupName){this._oldGroup=this._groupValue,this._groupValue=groupName,localStorage.setItem("auxinIsotopeGroup",this._groupValue),this.$filters.find(this.settings.groupingPrefix+this._groupValue).removeClass(this.settings.transitionHelpers.hidden),this.$filters.find(this.settings.groupingPrefix+this._oldGroup).addClass(this.settings.transitionHelpers.hidden),this._internalFilterChange?this._internalFilterChange=!1:this.arrange("arrange")},showLoading:function(){this._loadingIsVisible||(this.$element.height(this.settings.loadingHeight),this._loadingIsVisible=!0,clearTimeout(this._loadingTimeout),this.$loading.show(),setTimeout(function(){this.$loading.addClass(this.settings.loadingVisible).removeClass(this.settings.loadingHide)}.bind(this),1))},hideLoading:function(){this._loadingIsVisible&&(this._loadingIsVisible=!1,this.$loading.removeClass(this.settings.loadingVisible).addClass(this.settings.loadingHide),clearTimeout(this._loadingTimeout),this._loadingTimeout=setTimeout(function(){this.$loading.hide()}.bind(this),this.settings.loadingTransitionDuration))},_instantlyHideItems:function(){this._isotope.items.forEach(function(item){item.element.style[window._jcsspfx+"TransitionDelay"]="0",item.element.style[window._jcsspfx+"TransitionDuration"]="0",this._removeHelpers(item.$element),item.$element.addClass(this.settings.transitionHelpers.hidden)},this)},_isFilteredItemsLoaded:function(){for(var items=this._isotope.filteredItems,i=0,l=items.length;i!==l;i++)if(!items[i].loaded)return!1;return!0},_revealItems:function(){var items=this._isotope.filteredItems,st=this.settings,i=0;!st.lazyload||this._isFilteredItemsLoaded()?(st.lazyload&&(this.hideLoading(),this._isotope._noTransition(this._isotope.layout),this._waitForLoad=!1),this._revealingTimeout=setTimeout(function(){items.forEach(function(item){this._removeHelpers(item.$element),item.$element.addClass(st.transitionHelpers.hidden),this._revealItem(item,st.revealBetweenDelay*++i,st.revealTransitionDuration)},this)}.bind(this),Math.max(st.revealTransitionDelay,10)),this.$element.trigger("auxinIsotopeReveal",[items])):(this.showLoading(),this._waitForLoad=!0)},_revealItem:function(item,delay,duration){item.element.style[window._jcsspfx+"TransitionDelay"]=delay+"ms",item.element.style[window._jcsspfx+"TransitionDuration"]=duration+"ms",this._removeHelpers(item.$element),item.$element.addClass(this.settings.transitionHelpers.revealing),clearTimeout(item._animTimeout),item._animTimeout=setTimeout(function(){this._removeHelpers(item.$element),item.element.style[window._jcsspfx+"TransitionDelay"]="",item.element.style[window._jcsspfx+"TransitionDuration"]="",item.$element.addClass(this.settings.transitionHelpers.visible)}.bind(this),delay+duration)},_hideItem:function(item,delay,duration){item.element.style[window._jcsspfx+"TransitionDelay"]=delay+"ms",item.element.style[window._jcsspfx+"TransitionDuration"]=duration+"ms",this._removeHelpers(item.$element),item.$element.addClass(this.settings.transitionHelpers.hiding),clearTimeout(item._animTimeout),item._animTimeout=setTimeout(function(){this._removeHelpers(item.$element),item.element.style[window._jcsspfx+"TransitionDelay"]="",item.element.style[window._jcsspfx+"TransitionDuration"]="",item.$element.addClass(this.settings.transitionHelpers.hidden)}.bind(this),delay+duration)},_arrangeIsotope:function(){this._isotope.layout()},_removeHelpers:function($item){var classKey,helpers=this.settings.transitionHelpers;for(classKey in helpers)$item.removeClass(helpers[classKey])},_setLazyload:function(item,imagesloaded){this._isotope;var that=this;imagesloaded.on("always",function(e){item.loaded=!0,item.element.style.height="",item.element.style.width="",setTimeout(function(){this.elements.forEach(function(element){$(element).removeClass(this.settings.loadingClass)},that),that._revealItems()}.bind(this))})},_filtering:function(itemElement){var $item=$(itemElement);return!(this._filterValue&&"all"!==this._filterValue&&!$item.is(this._filterValue)||this._searchValue&&!$item.text().match(this._searchValue)&&!itemElement.className.match(this._searchValue)||this._groupValue&&!$item.is(this.settings.groupingPrefix+this._groupValue))},"ـinitFilters":function(){var self;this.settings.filters&&(this.$filters=this.$element.siblings(this.settings.filters).eq(0),this.$filters)&&((self=this).$filters.find("li").on("click",function(e){var filter=$(this).data("filter");filter.length?self._filterValue="all"!==filter&&"."+filter:self._filterValue=!1,!self._internalFilterChange&&e.originalEvent?self.arrange("arrange"):self._internalFilterChange=!1,e.preventDefault()}),this.$filters.find(self.settings.searchClass).on("keyup",this._debounce(function(e){var filter=$(this).val();2<filter.length?self._searchValue=new RegExp(filter,"gi"):self._searchValue=!1,!self._internalFilterChange&&e.originalEvent?self.arrange("arrange"):self._internalFilterChange=!1},200)),setTimeout(this._updateSelectedFilter.bind(this),300))},_setGroupValue:function(){this._localGroupValue=localStorage.getItem("auxinIsotopeGroup"),this._groupValue=this._localGroupValue||this.settings.grouping},_updateSelectedFilter:function(){this._internalFilterChange=!0,this.$filters.find('[data-filter="'+(this._filterValue||"all").replace(".","")+'"] a').trigger("click")},_debounce:function(fn,threshold){var timeout;return threshold=threshold||100,function(){clearTimeout(timeout);var args=arguments,_this=this;timeout=setTimeout(function(){fn.apply(_this,args)},threshold)}},_initPagination:function(){this.$pagination=$("<nav></nav>").addClass(this.settings.paginationClass),this.settings.paginationLoc?this.$pagination.appendTo(this.settings.paginationLoc):this.$pagination.insertAfter(this.$element),this.$pagination.on("click",this._updatePage.bind(this)),this._isotope.on("paginationUpdate",this._updatePagination.bind(this))},_updatePagination:function(currentPage,totalPage,items){if(this._internalPaginate)this._internalPaginate=!1;else{var html='<ul class="pagination">';if(1<totalPage){html+='<li class="prev"><a href="#" data-prev="true">Previous</a></li>';for(var i=0;i!==totalPage;i++){var page=i+1;html+='<li class="page '+(page===currentPage?"active":"")+' "><a data-page="'+page+'" href="#">'+page+"</a>"}html+='<li class="next"><a href="#" data-next="true">Next</a></li>'}this.$pagination.html(html+="</ul>")}},_updatePage:function(event){var page,$btn=$(event.target);if(void 0!==$btn.data("page"))page=$btn.data("page");else if($btn.data("next"))page=Math.min(this._isotope.currentPage()+1,this._isotope.totalPages());else{if(!$btn.data("prev"))return;page=Math.max(this._isotope.currentPage()-1,1)}this._isotope.options.page=page,this.$pagination.find(".page").removeClass("active").eq(page-1).addClass("active"),this._internalPaginate=!0,this.arrange("arrange"),event.preventDefault()},_initDeeplink:function(){this._readHash(!1),$(window).on("hashchange",this._readHash.bind(this))},_findHashData:function(){for(var result,hash=window.location.hash.slice(1).split(","),i=0,l=hash.length;i!==l;i++)if(-1!==(result=hash[i].split("/")).indexOf(this.settings.slug))return result;return!1},_readHash:function(arrange){var result,io,oldFilter,oldPage;this._internalHashUpdate?this._internalHashUpdate=!1:(result=this._findHashData())&&(io=this._isotope.options,oldFilter=this._filterValue,oldPage=io.page,this._filterValue=this._parseFilter(result[2]),this.settings.pagination&&(io.page=this._checkPagePolicy(parseInt(result[3]))),arrange)&&(this._filterValue!==oldFilter||this.settings.pagination&&io.page!==oldPage)&&(this.$filters&&this._updateSelectedFilter(),this._internalHashRead=!0,this.arrange("arrange"))},_updateHash:function(){if(this._internalHashRead)this._internalHashRead=!1;else{var hashStr="/"+this.settings.slug+"/"+this._sanitizeFilter(this._filterValue),currentHash=window.location.hash.slice(1),inHash=(this.settings.pagination&&(hashStr+="/"+this._isotope.options.page),this._findHashData());if(this._internalHashUpdate=!0,inHash){for(var hash=currentHash.split(","),i=0,l=hash.length;i!==l;i++)if(-1!==hash[i].split("/").indexOf(this.settings.slug)){hash[i]=hashStr;break}window.location.hash=hash.join(",")}else currentHash.length?window.location.hash=currentHash+","+hashStr:window.location.hash=hashStr}},_checkPagePolicy:function(page){if(this._isotope.options.pagination)return page<=0?1:page>this._isotope.totalPages()?this._isotope.totalPages():isNaN(page)?1:page},_sanitizeFilter:function(filter){return filter?filter.replace(/\s/g,"&").replace(".",""):"all"},_parseFilter:function(filter){if("all"!==filter&&void 0!==filter)return"."+filter.replace("&"," .").trim()}}),$.fn.AuxIsotope=function(options){var returns,args=arguments,plugin="plugin_AuxIsotope";return void 0===options||"object"==typeof options?this.each(function(){$.data(this,plugin)||$.data(this,plugin,new Plugin(this,options))}):"string"==typeof options&&"_"!==options[0]&&"init"!==options?(this.each(function(){var instance=$.data(this,plugin);instance instanceof Plugin&&"function"==typeof instance[options]&&(returns=instance[options].apply(instance,Array.prototype.slice.call(args,1))),"destroy"===options&&$.data(this,plugin,null)}),void 0!==returns?returns:this):void 0}})(jQuery,window,document),(($,window)=>{var $window=$(window),defaults={elementID:""},attributesMap={"element-id":"elementID"};function Plugin(element,options){for(var attrName in this.element=element,this.$element=$(element),this.settings=$.extend({},defaults,options),this._defaults=defaults,this._name="AuxLoadMore",this._isotopeLayout=this.$element.find(".aux-isotope-ready").length,this.ajaxView=this.$element.find(".aux-ajax-view"),attributesMap){var value=this.ajaxView.data(attrName);void 0!==value&&(this.settings[attributesMap[attrName]]=value)}this.content=auxin.content.loadmore[this.settings.elementID],this.args=this.content.args,this.nonce=this.content.nonce,this.handler=this.content.handler,this.postPerPage=parseInt(this.args.loadmore_per_page),this.offset=parseInt(this.args.offset)||0,this.defaultOffset=this.offset,this.ajaxController=this.$element.find(".aux-ajax-controller"),this.loadNextPrev=this.ajaxController.find(".aux-load-next-prev"),this.loadMoreBtn=this.ajaxController.find(".aux-load-more"),this.ajaxLoaded=!0,this.init()}$.extend(Plugin.prototype,{init:function(){this.$element.is(".aux-ajax-type-next-prev")?this.loadNextPrev.on("click",this._loadNextPrev.bind(this)):this.$element.is(".aux-ajax-type-scroll")?$window.scroll(this._loadScroll.bind(this)):this.$element.is(".aux-ajax-type-next")&&this.loadMoreBtn.on("click",this._loadNext.bind(this))},_callAjax:function(type,offset){this.args.offset=offset,this.ajaxLoaded=!1,$.ajax({type:"POST",dataType:"json",url:auxin.ajax_url,data:{action:"load_more_element",handler:this.handler,nonce:this.nonce,args:this.args},success:function(response){var postCounter,allpostCounter,$newContent;response.success&&("next-prev"===type?(this._isotopeLayout?this.ajaxView.AuxIsotope("removeAll"):$(this.ajaxView).empty(),offset===this.defaultOffset?this.ajaxController.find(".np-prev-section").addClass("hidden"):this.ajaxController.find(".np-prev-section").removeClass("hidden")):this.loadMoreBtn.removeClass("aux-active-loading"),this.$element.removeClass("aux-in-progress"),postCounter=($newContent=$(response.data)).filter(".aux-post-count").text(),allpostCounter=$newContent.filter(".aux-all-posts-count").text(),$newContent=$newContent.filter(".aux-ajax-item, .aux-date-label, style"),this._isotopeLayout?$newContent.each(function(index,element){element=$(element);element.is("style")?this.ajaxView.append(element):(this.ajaxView.AuxIsotope("insert",element),element.imagesLoaded({},function(){this.ajaxView.AuxIsotope("arrange").AuxIsotope("updateIsotope")}.bind(this)),this._afterAppend(element))}.bind(this)):$newContent.each(function(index,element){element=$(element);this.ajaxView.append(element),element.is("style")||this._afterAppend(element)}.bind(this)),this.ajaxController.find(".np-next-section").removeClass("hidden")),(postCounter<this.postPerPage||!response.success||parseInt(offset)+parseInt(postCounter)==parseInt(allpostCounter))&&("next-prev"===type?this.ajaxController.find(".np-next-section").addClass("hidden"):this.ajaxController.remove()),$newContent&&this.ajaxView.hasClass("aux-match-height")&&($.fn.matchHeight._maintainScroll=!0,$newContent.imagesLoaded({},function(){this.ajaxView.find(".aux-col").matchHeight(),setTimeout($.fn.matchHeight._update,100)}.bind(this))),this.ajaxLoaded=!0}.bind(this)})},_afterAppend:function($content){$content.setOnAppear(!0,100).addClass("aux-ajax-anim"),$content.hasClass("aux-image-box")&&$content.AuxinImagebox(),$content.AuxinCarouselInit(),$content.find(".aux-frame-cube").AuxinCubeHover(),$content.find(".aux-hover-twoway").AuxTwoWayHover(),$content.find(".aux-media-video, .aux-media-audio").length&&($content.find("iframe").length?$content.fitVids({customSelector:'iframe[src^="http://w.soundcloud.com"], iframe[src^="https://w.soundcloud.com"]'}):$content.find("video,audio").mediaelementplayer()),$content.find(".aux-lightbox-frame").photoSwipe({target:".aux-lightbox-btn",bgOpacity:.8,shareEl:!0})},_loadNext:function(){this.ajaxLoaded&&(this.offset+=this.postPerPage,this.loadMoreBtn.addClass("aux-active-loading"),this.$element.addClass("aux-in-progress"),this._callAjax("next",this.offset))},_loadScroll:function(event){this.ajaxLoaded&&(this.ajaxController[0].getBoundingClientRect().bottom<=$window.height()&&(this.offset+=this.postPerPage,this.$element.addClass("aux-in-progress"),this.loadMoreBtn.addClass("aux-active-loading"),this._callAjax("scroll",this.offset)),event.preventDefault())},_loadNextPrev:function(event){this.ajaxLoaded&&($(event.currentTarget).hasClass("np-next-section")?this.offset+=this.postPerPage:this.offset=this.offset<=this.defaultOffset?this.defaultOffset:this.offset-this.postPerPage,this.$element.addClass("aux-in-progress"),this._callAjax("next-prev",this.offset),event.preventDefault())}}),$.fn.AuxLoadMore=function(options){return this.each(function(){$.data(this,"plugin_AuxLoadMore")||$.data(this,"plugin_AuxLoadMore",new Plugin(this,options))})}})(jQuery,window,document),(($,window)=>{var $window=$(window),defaults={viewClass:"aux-mc-view",containerClass:"aux-mc-container",itemClass:"aux-mc-item",arrowsClass:"aux-mc-arrows",bulletsClass:"aux-bullets",bulletClass:"aux-bullet",selectedBulletClass:"aux-selected",arrows:!0,matchHeight:!1,startItem:0,bullets:!1,wrapControls:!1,arrowNextMarkup:".aux-next-arrow",arrowPrevMarkup:".aux-prev-arrow",controlsClass:"aux-mc-controls",noJS:"aux-no-js",initClass:"aux-mc-init",beforeInit:"aux-mc-before-init",initCb:null},attributeOptionsMap={loop:"loop",space:"space",dir:"dir",center:"center",speed:"speed",swipe:"swipe","mouse-swipe":"mouseSwipe",start:"startItem",rtl:"rtl",arrows:"arrows",bullets:"bullets","bullet-class":"bulletsClass","auto-height":"autoHeight",autoplay:"autoplay",delay:"autoplayDelay",columns:"columns","same-height":"matchHeight",responsive:"responsive","auto-pause":"pauseOnHover",navigation:"navigation",lazyload:"preload","empty-height":"emptyHeight","wrap-controls":"wrapControls","element-id":"elementID"};function Plugin(element,options){window.AuxinCarousel||(window.AuxinCarousel={}),this.element=element,this.settings=$.extend({},defaults,options),this.$element=$(element),this._defaults=defaults,this._name="AuxinCarousel",this.init()}$.extend(Plugin.prototype,{init:function(){if(window.MasterCarousel){for(var attrName in attributeOptionsMap){var value=this.$element.data(attrName);void 0!==value&&(this.settings[attributeOptionsMap[attrName]]=value)}var resp;this.$element.data("responsive")&&(resp={},$.each(this.settings.responsive.replace(/\s+/g,"").split(","),function(index,value){value=value.split(":"),resp[value[0]]={columns:value[1]}}),this.settings.responsive=resp),this.settings.matchHeight&&$window.on("resize",this._updateItemsHeight.bind(this)),this.mc=new MasterCarousel(this.$element[0],this.settings),this.mc.addEventListener(MCEvents.INIT,this._onCarouselInit,this),this.mc.setup(),this.$element.removeClass(this.settings.noJS),AuxinCarousel[this.settings.elementID]=this}else $.error("Master Carousel does not found in the page.")},_onCarouselInit:function(){var st=this.settings;this.$element.addClass(this.settings.initClass).removeClass(this.settings.beforeInit),(st.arrows||st.bullets&&st.wrapControls)&&(this.$controlsWrap=$("<div></div>").addClass(st.controlsClass).insertAfter(this.$element)),st.arrows&&(this.$prevArrow=$("<div></div>").addClass(st.arrowsClass+" aux-prev").on("click",{action:"prev"},this._controlCarousel.bind(this)),st.wrapControls?this.$prevArrow.appendTo(this.$controlsWrap):this.$prevArrow.insertAfter(this.$element),st.arrowPrevMarkup&&this.$element.find(st.arrowPrevMarkup).appendTo(this.$prevArrow),this.$nextArrow=$("<div></div>").addClass(st.arrowsClass+" aux-next").on("click",{action:"next"},this._controlCarousel.bind(this)),st.wrapControls?this.$nextArrow.appendTo(this.$controlsWrap):this.$nextArrow.insertAfter(this.$element),st.arrowNextMarkup)&&this.$element.find(st.arrowNextMarkup).appendTo(this.$nextArrow),st.bullets&&(this.$bullets=$("<div></div>").addClass(st.bulletsClass),this._generateBullets(),this.mc.view.addEventListener(MCEvents.SCROLL,this._updateCurrentBullet,this),$window.on("resize",this._updateBullets.bind(this))),st.matchHeight&&(this.matchHeightTo=setTimeout(this._updateItemsHeight.bind(this),150,!0)),st.initCb&&st.initCb(this),this.$element.trigger("auxinCarouselInit")},_updateCarouselSize:function(){setTimeout(this.mc.view._resize.bind(this.mc.view),0)},_generateBullets:function(){if(this.$bullets.children().remove(),this._bullets=[],this.settings.wrapControls?this.$bullets.appendTo(this.$controlsWrap):this.insertAfter(this.$element),!(this.mc.count()<=1))for(var i=0,l=this.mc.count();i!==l;i++)this._bullets.push($("<div></div>").addClass(this.settings.bulletClass).appendTo(this.$bullets).on("click",{action:"bullet",index:i},this._controlCarousel.bind(this)));this._updateCurrentBullet()},_updateBullets:function(){this._bullets.length!==this.mc.count()&&this._generateBullets()},_updateItemsHeight:function(withDelay){var maxHeight;this.mc.items&&(!0!==withDelay?(clearTimeout(this.matchHeightTo),this.matchHeightTo=setTimeout(this._updateItemsHeight.bind(this),20,!0)):(maxHeight=0,this.mc.items.forEach(function(item){item.$element[0].style.height="",maxHeight=Math.max(item.$element.height(),maxHeight)}.bind(this)),this.mc.items.forEach(function(item){item.$element.height(maxHeight)}.bind(this))))},_controlCarousel:function(event){event.target;switch(event.data.action){case"next":this.mc.next();break;case"prev":this.mc.previous();break;case"bullet":this.mc.goto(event.data.index+1,!0)}},_updateCurrentBullet:function(){var target=this.mc.current()-1;this._currentPosition!==target&&(this._currentPosition=target,this.$bullets.find("."+this.settings.bulletClass).removeClass(this.settings.selectedBulletClass).eq(target).addClass(this.settings.selectedBulletClass))},destroy:function(){this.mc.removeEventListener(MCEvents.INIT,this._onCarouselInit,this),this.mc.view.removeEventListener(MCEvents.SCROLL,this._updateCurrentBullet,this),this.settings.matchHeight&&$window.off("resize",this._updateItemsHeight.bind(this)),$window.off("resize.master-carousel"),this.settings.arrows&&(this.$nextArrow.remove(),this.$prevArrow.remove()),this.settings.bullets&&($window.off("resize",this._updateBullets.bind(this)),this.$bullets.remove()),this.mc.destroy(),this.$element.remove()}}),$.fn.AuxinCarousel=function(options){var returns,args=arguments,plugin="plugin_AuxinCarousel";return void 0===options||"object"==typeof options?this.each(function(){$.data(this,plugin)||$.data(this,plugin,new Plugin(this,options))}):"string"==typeof options&&"_"!==options[0]&&"init"!==options?(this.each(function(){var instance=$.data(this,plugin);instance instanceof Plugin&&"function"==typeof instance[options]&&(returns=instance[options].apply(instance,Array.prototype.slice.call(args,1))),"destroy"===options&&$.data(this,plugin,null)}),void 0!==returns?returns:this):void 0}})(jQuery,window,document),(($,window)=>{var defaults={isotope:null,overlayClass:"aux-overlay",overlay:"aux-select-overlay",event:"click",target:"li>a",selected:"aux-selected",resizeOverlay:!0};function Plugin(element,options){this.element=element,this.$element=$(element),this.settings=$.extend({},defaults,options),this._defaults=defaults,this._name="AuxinToggleSelected",this.init()}$.extend(Plugin.prototype,{init:function(){this.$targets=this.$element.find(this.settings.target),this.$targets.on(this.settings.event,this._toggleSelected.bind(this)),this.$element.hasClass(this.settings.overlayClass)&&(this.overlay=this.$element.find("."+this.settings.overlay)[0],$(window).on("resize",this._locateOverlay.bind(this))),0===this.$element.find("."+this.settings.selected).length&&(this.$current=this.$targets.eq(0),this._toggleSelected({currentTarget:this.$current[0]})),this._locateOverlay()},_toggleSelected:function(event){this.$targets.removeClass(this.settings.selected);event=$(event.currentTarget);event.addClass(this.settings.selected),this.settings.isotope&&this.settings.isotope.arrange({filter:event.data("filter")}),this.$current=event,this._locateOverlay()},_locateOverlay:function(){this.overlay&&this.$current&&(this.overlay.style[window._jcsspfx+"Transform"]="translate("+(this.$current.offset().left-this.$element.offset().left)+"px, "+(this.$current.offset().top-this.$element.offset().top)+"px  )",this.settings.resizeOverlay)&&(this.overlay.style.width=this.$current.outerWidth()-1+"px",this.overlay.style.height=this.$current.outerHeight()-1+"px")},destroy:function(){$(window).off("resize",this._locateOverlay),this.$overlay=null,this.$element.remove()}}),$.fn.AuxinToggleSelected=function(options){var returns,args=arguments,plugin="plugin_AuxinToggleSelected";return void 0===options||"object"==typeof options?this.each(function(){$.data(this,plugin)||$.data(this,plugin,new Plugin(this,options))}):"string"==typeof options&&"_"!==options[0]&&"init"!==options?(this.each(function(){var instance=$.data(this,plugin);instance instanceof Plugin&&"function"==typeof instance[options]&&(returns=instance[options].apply(instance,Array.prototype.slice.call(args,1))),"destroy"===options&&$.data(this,plugin,null)}),void 0!==returns?returns:this):void 0}})(jQuery,window,document),(($,window)=>{function Plugin(element,options){this.element=element,this.$element=$(element),this._name="AuxinVideobox",this.init()}$.extend(Plugin.prototype,{init:function(){this.$video=this.$element.find(">video"),0!==this.$video.length&&(this.video=this.$video[0],this.video.addEventListener("loadedmetadata",this._initVideo.bind(this)),AVTAligner?(this.aligner=new AVTAligner(this.$element.data("fill")||"fill",this.$element,this.$video),$(window).on("resize",this._alignVideo.bind(this))):$.error("AVTAligner is not defined in this page, Auxin video box requires this library to perform correctly."))},_initVideo:function(){this._videoInit||(this._videoInit=!0,this.aligner.init(this.video.videoWidth,this.video.videoHeight),this.aligner.align(),this.video.play())},_alignVideo:function(){this.aligner.align()},destroy:function(){$(window).off("resize",this._alignVideo)}}),$.fn.AuxinVideobox=function(options){var returns,args=arguments,plugin="plugin_AuxinVideobox";return void 0===options||"object"==typeof options?this.each(function(){$.data(this,plugin)||$.data(this,plugin,new Plugin(this))}):"string"==typeof options&&"_"!==options[0]&&"init"!==options?(this.each(function(){var instance=$.data(this,plugin);instance instanceof Plugin&&"function"==typeof instance[options]&&(returns=instance[options].apply(instance,Array.prototype.slice.call(args,1))),"destroy"===options&&$.data(this,plugin,null)}),void 0!==returns?returns:this):void 0}})(jQuery,window,document),(($,window)=>{var defaults={target:"img",frame:null,fill:"fill"},attributeOptionsMap={fill:"fill",target:"target",frame:"frame"};function Plugin(element,options){this.element=element,this.$element=$(element),this.settings=$.extend({},defaults,options),this._name="AuxinImagebox",this.init()}$.extend(Plugin.prototype,{init:function(){if(AVTAligner){for(var attrName in attributeOptionsMap){var value=this.$element.data(attrName);void 0!==value&&(this.settings[attributeOptionsMap[attrName]]=value)}this.$image=this.$element.find(this.settings.target),this.$image.length&&(this.$image.preloadImg(this.$image.attr("src"),this._initAligner.bind(this)),this.$frame=this.settings.frame?this.$element.find(this.settings.frame):this.$element,this.aligner=new AVTAligner(this.settings.fill,this.$parent,this.$image,{containerWidth:this.$frame.innerWidth.bind(this.$frame),containerHeight:this.$frame.innerHeight.bind(this.$frame),srcset:!!this.$image.attr("srcset")}),$(window).on("resize",this._alignImage.bind(this)))}else $.error("AVTAligner is not defined in this page, Auxin image box requires this library to perform correctly.")},_initAligner:function(){var w,img;this._aligenrInit||(this._aligenrInit=!0,w=(img=this.$image[0]).naturalWidth||this.$image.data("width"),img=img.naturalHeight||this.$image.data("height"),this.aligner.init(w,img),this.aligner.align())},_alignImage:function(){this.aligner.align()},update:function(){this._alignImage()},destroy:function(){$(window).off("resize",this._alignImage)}}),$.fn.AuxinImagebox=function(options){var returns,args=arguments,plugin="plugin_AuxinImagebox";return void 0===options||"object"==typeof options?this.each(function(){$.data(this,plugin)||$.data(this,plugin,new Plugin(this,options))}):"string"==typeof options&&"_"!==options[0]&&"init"!==options?(this.each(function(){var instance=$.data(this,plugin);instance instanceof Plugin&&"function"==typeof instance[options]&&(returns=instance[options].apply(instance,Array.prototype.slice.call(args,1))),"destroy"===options&&$.data(this,plugin,null)}),void 0!==returns?returns:this):void 0}})(jQuery,window,document),(($,window)=>{var pluginName="AuxinFullscreenHero";function Plugin(element,options){this.element=element,this.$element=$(element),this._name=pluginName,this.init()}$.extend(Plugin.prototype,{init:function(){$(window).on("resize",this.update.bind(this)),this.update()},update:function(){this.$element.height(Math.max(0,window.innerHeight-this.$element.offset().top)+"px")}}),$.fn[pluginName]=function(options){return this.each(function(){$.data(this,"plugin_"+pluginName)||$.data(this,"plugin_"+pluginName,new Plugin(this))})}})(jQuery,window,document),(($,window,document)=>{var pluginName="AuxinAnimateAndRedirect",defaults={target:"body",scrollFixTarget:"body",checkLinkTarget:!0,checkTargetEvents:!0,skipRelativeLinks:!0,noAnimate:'.aux-no-page-animate, .aux-lightbox-btn, [data-elementor-open-lightbox="yes"], [bdt-lightbox] a',animateIn:"aux-show-page",animateOut:"aux-hide-page",beforeAnimateOut:"aux-before-hide-page",disableOn:null,delay:800,fixScroll:!0,linkClicked:null,startToHide:null,startToShow:null};function Plugin(element,options){this.element=element,this.$element=$(element),this.settings=$.extend({},defaults,options),this._defaults=defaults,this._name=pluginName,this.init()}$.extend(Plugin.prototype,{init:function(){var st=this.settings,evts=$._data(this.element,"events")||{},$target=$(st.target),$scrollTarget=$(st.scrollFixTarget);this.element.href;st.animateIn&&!$target.data("isAnimated")&&($target.addClass(st.animateIn).data("isAnimated",!0),st.startToShow)&&st.startToShow(),st.noAnimate&&this.$element.is(st.noAnimate)||st.skipRelativeLinks&&!/http(s?):\/\//.test(this.$element.attr("href"))||"_blank"===this.$element.attr("target")||st.checkTargetEvents&&("click"in evts||this.element.onclick)||""!==this.element.hash&&this.element.origin+this.element.pathname+this.element.search===location.origin+location.pathname+location.search||st.disableOn&&this.$element.parents(st.disableOn).length||this.$element.on("click",function(e){e.ctrlKey||e.metaKey||1!==e.which||(e.preventDefault(),e=document.documentElement.scrollTop,$target.addClass(st.beforeAnimateOut).removeClass(st.animateIn),setTimeout(function(){$target.addClass(st.animateOut)},1),st.fixScroll&&$scrollTarget.scrollTop(e),st.linkClicked&&st.linkClicked(),clearTimeout(this.timeout),this.timeout=setTimeout(function(){window.location.href=this.element.href,st.startToHide&&st.startToHide()}.bind(this),st.delay))}.bind(this))}}),$.fn[pluginName]=function(options){return this.each(function(){$.data(this,"plugin_"+pluginName)||$.data(this,"plugin_"+pluginName,new Plugin(this,options))})}})(jQuery,window,document),(($,window)=>{var pluginName="AvertaParallaxBox",defaults={targets:"aux-parallax",defaultDepth:.5,defaultOrigin:"top",forceHR:!1},$window=$(window);function Plugin(element,options){this.element=element,this.$element=$(element),this.settings=$.extend({},defaults,options),this._defaults=defaults,this._name=pluginName,this.init()}$.extend(Plugin.prototype,{init:function(){this.$targets=this.$element.find("."+this.settings.targets),this._targetsNum=this.$targets.length,this._prefix=window._jcsspfx||"",0!==this._targetsNum&&($window.on("scroll resize",this.update.bind(this)),this.update())},_setPosition:function($target,scrollValue){var value,origin=$target.data("parallax-origin")||this.settings.defaultOrigin,depth=$target.data("parallax-depth")||this.settings.defaultDepth,disablePoint=$target.data("parallax-off"),absDepth=Math.abs(depth),depth=depth<0?1:-1,type=$target.data("parallax-type")||"position";if(disablePoint>=window.innerWidth)return $target.data("disabled")?void 0:($target.data("disabled",!0),void("background"===type?$target[0].style.backgroundPosition="":$target[0].style[this._prefix+"Transform"]=""));switch($target.data("disabled",!1),origin){case"top":value=Math.min(0,this._spaceFromTop*absDepth);break;case"bottom":value=Math.max(0,this._spaceFromBot*absDepth);break;case"middle":value=this._spaceFromMid*absDepth}value=value<0?Math.max(value,-window.innerHeight):Math.min(value,window.innerHeight),"background"===type?$target[0].style.backgroundPosition="50% "+value*depth+"px":$target[0].style[this._prefix+"Transform"]="translateY("+value*depth+"px)"+(this.settings.forceHR?" translateZ(1px)":"")},update:function(){this._boxHeight=this.$element.height(),this._spaceFromTop=this.$element[0].getBoundingClientRect().top,this._spaceFromBot=window.innerHeight-this._boxHeight-this._spaceFromTop,this._spaceFromMid=window.innerHeight/2-this._boxHeight/2-this._spaceFromTop;for(var i=0;i!==this._targetsNum;i++)this._setPosition(this.$targets.eq(i),$window.scrollTop())},enable:function(){$window.on("resize scroll",this.update),this.update()},disable:function(){$window.off("resize scroll",this.update)},destroy:function(){this.disable()}}),$.fn[pluginName]=function(options){var _arguments=arguments;return this.each(function(){var plugin;$.data(this,"plugin_"+pluginName)?"string"==typeof options&&"_"!==options.indexOf(0)&&(plugin=$.data(this,"plugin_"+pluginName))[options].apply(plugin,Array.prototype.slice.call(_arguments,1)):$.data(this,"plugin_"+pluginName,new Plugin(this,options))})}})(jQuery,window,document),(($,window,document)=>{var pluginName="AuxinMasonryAnimate",defaults={columns:3,tabletColumns:2,mobileColumns:1,columnClass:"aux-parallax-column",numItems:8,offset:.2,minHeight:500,insetOffset:.3},attributeDataMap={"d-columns":"columns","t-columns":"tabletColumns","m-columns":"mobileColumns",length:"numItems",offset:"offset","inset-offset":"insetOffset"},$window=$(window);function Plugin(element,options){this.element=element,this.$element=$(element);var tempData,attribute,elementData={};for(attribute in attributeDataMap)void 0!==(tempData=this.$element.data(attribute))&&(elementData[attributeDataMap[attribute]]=tempData);this.settings=$.extend({},defaults,options,elementData),this._defaults=defaults,this._name=pluginName,this.items=this.$element.find(".aux-parallax-item"),this.oldBreakPoint=null,this.loading=!1,this.init()}$.extend(Plugin.prototype,{init:function(){this.showLoading(),$window.on("load resize",this.initializeLayout.bind(this)),setTimeout(function(){this.hideLoading()}.bind(this),1e3)},update:function(){var shortCol,shortColRect,refDeltaNormal;this.items.length<=this.columns.length||this.items.length%this.columns.length==0?(this.columns.css(window._jcsspfx+"Transform","none"),this.element.style.marginBottom=0):(shortCol=this.shortCol,shortColRect=shortCol.getBoundingClientRect(),refDeltaNormal=(window.innerHeight-window.innerHeight*this.settings.offset-shortColRect.top)/shortColRect.height,this.element.style.marginBottom=shortCol.offsetHeight*this.settings.insetOffset-this.element.offsetHeight+"px",1<=refDeltaNormal?refDeltaNormal=1:refDeltaNormal<=0&&(refDeltaNormal=0),this.columns.each(function(index,column){var colTransform=-1*(column.offsetHeight+column.offsetTop-(shortColRect.height*this.settings.insetOffset+shortCol.offsetTop))*refDeltaNormal;column.style[window._jcsspfx+"Transform"]="translateY("+colTransform+"px)"}.bind(this)))},initializeLayout:function(){var columnsNum,colObject,columns,self,shortCol,currentBreakPoint=$window.width()<1024&&768<$window.width()?(columnsNum=this.settings.tabletColumns,"tablet"):$window.width()<768?(columnsNum=this.settings.mobileColumns,"mobile"):(columnsNum=this.settings.columns,"desktop");this.oldBreakPoint!==currentBreakPoint&&(this.oldBreakPoint=currentBreakPoint,colObject=this.initializeColumn(columnsNum),columns=[],(self=this).columns&&this.columns.remove(),Object.keys(colObject).forEach(function(key){var columnNode=document.createElement("div");columnNode.classList.add(self.settings.columnClass+"-"+key),colObject[key].posts.forEach(function(item){columnNode.appendChild(item)}),self.element.appendChild(columnNode),columns.push(columnNode),(!shortCol||columnNode.offsetHeight<shortCol.offsetHeight)&&(shortCol=columnNode)}),this.shortCol=shortCol,this.columns=$(columns),$window.on("scroll resize",this.update.bind(this)))},initializeColumn:function(columnsNum){this.settings.numItems!==this.items.length&&(this.settings.numItems=this.items.length);for(var colObj={},numExtraItems=this.settings.numItems<columnsNum?0:this.settings.numItems%columnsNum,orderdItems=0!=numExtraItems?this.items.slice(0,-1*numExtraItems):this.items,extraItems=0!=numExtraItems?this.items.slice(-1*numExtraItems):null,i=1;i<=columnsNum;i++)colObj[i]={posts:[]};if(orderdItems.each(function(index,item){index=(index+1)%columnsNum;colObj[0==index?columnsNum:index].posts.push(item)}),extraItems)switch(columnsNum){case 5:1==5-numExtraItems?extraItems.each(function(index,item){colObj[index+1].posts.push(item)}):2==5-numExtraItems?extraItems.each(function(index,item){colObj[2*index+1].posts.push(item)}):3==5-numExtraItems?extraItems.each(function(index,item){colObj[2*(index+1)].posts.push(item)}):extraItems.each(function(index,item){colObj[index+1].posts.push(item)});break;case 4:1==4-numExtraItems?extraItems.each(function(index,item){colObj[index+1].posts.push(item)}):2==4-numExtraItems?extraItems.each(function(index,item){colObj[2*(index+1)].posts.push(item)}):extraItems.each(function(index,item){colObj[index+1].posts.push(item)});break;case 3:1==3-numExtraItems?extraItems.each(function(index,item){colObj[2*index+1].posts.push(item)}):extraItems.each(function(index,item){colObj[2*(index+1)].posts.push(item)});break;case 2:extraItems.each(function(index,item){colObj[index+1].posts.push(item)});break;default:extraItems.each(function(index,item){colObj[index+1].posts.push(item)})}return colObj},showLoading:function(){this.$element.css({height:this.settings.minHeight,overflow:"hidden"}),this.$element.find(".aux-items-loading").addClass("aux-loading-hide")},hideLoading:function(){this.$element.css({height:"auto",overflow:"visible"}),this.$element.find(".aux-items-loading").removeClass("aux-loading-hide")},insertItem:function(items){this.oldBreakPoint=null,this.columns.remove(),this.items=items,this.initializeLayout()}}),$.fn[pluginName]=function(options){var _arguments=arguments;return this.each(function(){var plugin;$.data(this,"plugin_"+pluginName)?"string"==typeof options&&"_"!==options.indexOf(0)&&(plugin=$.data(this,"plugin_"+pluginName))[options].apply(plugin,Array.prototype.slice.call(_arguments,1)):$.data(this,"plugin_"+pluginName,new Plugin(this,options))})}})(jQuery,window,document),(($,window)=>{var pluginName="AvertaScrollAnims",defaults={targets:"aux-scroll-anim",elementOrigin:.2,viewPortTopOrigin:.4,viewPortBotOrigin:.6,moveInEffect:"fade",moveOutEffect:"fade",xAxis:200,yAxis:-200,rotate:90,scale:1,containerTarget:".elementor-widget-container",disableScrollAnims:1},attributeDataMap={"move-in":"moveInEffect","move-out":"moveOutEffect","axis-x":"xAxis","axis-y":"yAxis",rotate:"rotate",scale:"scale","el-top":"elementOrigin","vp-bot":"viewPortBotOrigin","vp-top":"viewPortTopOrigin","scroll-animation-off":"disableScrollAnims"},$window=$(window);function Plugin(element,options){this.element=element,this.$element=$(element);var tempData,attribute,elementData={};for(attribute in attributeDataMap)void 0!==(tempData=this.$element.data(attribute))&&(elementData[attributeDataMap[attribute]]=tempData);this.settings=$.extend({},defaults,options,elementData),this._defaults=defaults,this._name=pluginName,this.init()}$.extend(Plugin.prototype,{init:function(){this._prefix=window._jcsspfx||"",this.settings.viewPortOrigin=[this.settings.viewPortTopOrigin,this.settings.viewPortBotOrigin],this.oldEffect=this.settings.moveInEffect,0!==this.$element.length&&($window.on("scroll resize",this.update.bind(this)),this.update())},_setStyles:function($target,scrollValue){var delta=this._getDelta($target[0],this.settings.elementOrigin,this.settings.viewPortOrigin),styles=this._getStyle(delta),delta=delta<0?this.settings.moveOutEffect:0<delta?this.settings.moveInEffect:this.oldEffect;this.oldEffect!==delta&&this._generateEffect(this.oldEffect,this._getStyle(0),$target.find(this.settings.containerTarget)),this._generateEffect(delta,styles,$target.find(this.settings.containerTarget)),this.oldEffect=delta},_getDelta:function($target,elementOrigin,viewPortOrigin){var $target=$target.getBoundingClientRect(),isRange=Array.isArray(viewPortOrigin),lowerRange=isRange?viewPortOrigin[0]:viewPortOrigin,isRange=isRange?viewPortOrigin[1]:viewPortOrigin,viewPortOrigin=$target.y+elementOrigin*$target.height,elementOrigin=viewPortOrigin/window.innerHeight,$target=lowerRange<=elementOrigin&&elementOrigin<=isRange?0:isRange<=elementOrigin?Math.min((viewPortOrigin-window.innerHeight*isRange)/(window.innerHeight-window.innerHeight*isRange),1):Math.max((viewPortOrigin-window.innerHeight*lowerRange)/(window.innerHeight*lowerRange),-1);return $target},_getStyle:function(delta){var style={};return style.opacity=1-Math.abs(delta),style.xAxis=this.settings.xAxis*delta,style.yAxis=this.settings.yAxis*delta,style.slide=Math.abs(100*delta),style.mask=Math.abs(100*delta),style.rotate=this.settings.rotate*delta,style.scale=(this.settings.scale-1)*Math.abs(delta)+1,style},_generateEffect:function(effect,styles,$target){switch(effect){case"moveVertical":$target[0].style[this._prefix+"Transform"]="translateY("+styles.yAxis+"px)";break;case"moveHorizontal":$target[0].style[this._prefix+"Transform"]="translateX("+styles.xAxis+"px)";break;case"fade":$target[0].style.opacity=styles.opacity;break;case"fadeTop":$target[0].style.opacity=styles.opacity,$target[0].style[this._prefix+"Transform"]="translateY("+-1*styles.yAxis+"px)";break;case"fadeBottom":$target[0].style.opacity=styles.opacity,$target[0].style[this._prefix+"Transform"]="translateY("+styles.yAxis+"px)";break;case"fadeRight":$target[0].style.opacity=styles.opacity,$target[0].style[this._prefix+"Transform"]="translateX("+styles.xAxis+"px)";break;case"fadeLeft":$target[0].style.opacity=styles.opacity,$target[0].style[this._prefix+"Transform"]="translateX("+-1*styles.xAxis+"px)";break;case"slideRight":$target.parent()[0].style.overflow="hidden",$target[0].style[this._prefix+"Transform"]="translateX("+styles.slide+"%)";break;case"slideLeft":$target.parent()[0].style.overflow="hidden",$target[0].style[this._prefix+"Transform"]="translateX("+-1*styles.slide+"%)";break;case"slideTop":$target.parent()[0].style.overflow="hidden",$target[0].style[this._prefix+"Transform"]="translateY("+-1*styles.slide+"%)";break;case"slideBottom":$target.parent()[0].style.overflow="hidden",$target[0].style[this._prefix+"Transform"]="translateY("+styles.slide+"%)";break;case"maskTop":$target[0].style[this._prefix+"ClipPath"]="inset(0 0 "+styles.mask+"% 0)";break;case"maskBottom":$target[0].style[this._prefix+"ClipPath"]="inset("+styles.mask+"% 0 0 0)";break;case"maskRight":$target[0].style[this._prefix+"ClipPath"]="inset(0 0 0 "+styles.mask+"%)";break;case"maskLeft":$target[0].style[this._prefix+"ClipPath"]="inset(0 "+styles.mask+"% 0 0)";break;case"rotateIn":$target[0].style[this._prefix+"Transform"]="rotate("+-1*styles.rotate+"deg)";break;case"rotateOut":$target[0].style[this._prefix+"Transform"]="rotate("+styles.rotate+"deg)";break;case"fadeScale":$target[0].style.opacity=styles.opacity,$target[0].style[this._prefix+"Transform"]="scale("+styles.scale+")";break;case"scale":$target[0].style[this._prefix+"Transform"]="scale("+styles.scale+")";break;default:return}},update:function(){$window.width()<=this.settings.disableScrollAnims?this.disable():this._setStyles(this.$element,$window.scrollTop())},enable:function(){$window.on("resize scroll",this.update),this.update()},disable:function(){$window.off("resize scroll",this.update)},destroy:function(){this.disable()}}),$.fn[pluginName]=function(options){var _arguments=arguments;return this.each(function(){var plugin;$.data(this,"plugin_"+pluginName)?"string"==typeof options&&"_"!==options.indexOf(0)&&(plugin=$.data(this,"plugin_"+pluginName))[options].apply(plugin,Array.prototype.slice.call(_arguments,1)):$.data(this,"plugin_"+pluginName,new Plugin(this,options))})}})(jQuery,window,document),(($,window)=>{var defaults={layout:"center",responsive:{760:"left"},layoutMap:{left:"aux-left",right:"aux-right",middle:"aux-middle",center:"aux-center"}},$window=$(window);function Plugin(element,options){this.element=element,this.$element=$(element),this.settings=$.extend({},defaults,options),this._defaults=defaults,this._name="AuxinTimeline",this.init()}$.extend(Plugin.prototype,{init:function(){void 0!==this.$element.data("layout")&&(this.settings.layout=this.$element.data("layout")),$window.on("resize",this._onResize.bind(this)),this._onResize()},_onResize:function(e){var bp,width=$window.width(),layout=this.settings.layout;for(bp in this.settings.responsive)width<bp&&(layout=this.settings.responsive[bp]);this._update(layout)},_update:function(newLayout){if(this._currentLayout!==newLayout){for(var key in this._currentLayout=newLayout,this.settings.layoutMap)this.$element.removeClass(this.settings.layoutMap[key]);this.$element.addClass(this.settings.layoutMap[newLayout])}}}),$.fn.AuxinTimeline=function(options){return this.each(function(){$.data(this,"plugin_AuxinTimeline")||$.data(this,"plugin_AuxinTimeline",new Plugin(this,options))})}})(jQuery,window,document),"function"!=typeof Object.create&&(Object.create=function(obj){function F(){}return F.prototype=obj,new F}),($=>{var Container={init:function(el,options){this.options=$.extend({},$.fn.avertaAccordion.defaultOptions,options||{}),this.$el=$(el),this.el=el,this.$items=this.$el.find(this.options.items),this.$items.length&&(this.$items.find(this.options.itemContent).wrap('<div class="'+this.options.contentWrapClass+'"></div>'),this.$headers=this.$items.find(this.options.itemHeader),this.$contents=this.$items.find("."+this.options.contentWrapClass),this.setup())},setup:function(){var $actives;this.$headers.on("click",{self:this},this.onHeaderClicked),(this.options.collapseOnInit||this.options.oneVisible)&&(this._closeContent(this.$contents,0),this.options.onCollapse(this.$items)),this.options.oneVisible?($actives=($actives=this.$items.filter("."+this.options.itemActiveClass).first()).length?$actives:this.$items.first().addClass(this.options.itemActiveClass),this._openContent($actives.find("."+this.options.contentWrapClass),0),this.options.onExpand($actives)):this.options.collapseOnInit&&this.$items.removeClass(this.options.itemActiveClass),window.location.hash&&this.options.expandHashItem&&this.expandHashItem(),this.options.expandHashItem&&$(window).on("hashchange",this.expandHashItem)},expandHashItem:function(){$(window.location.hash).find(this.options.itemHeader).trigger("click",{self:this},this.onHeaderClicked)},onHeaderClicked:function(event){event.preventDefault();var $content,event=event.data.self,$item=$(this).closest(event.options.items);$item.hasClass(event.options.itemActiveClass)&&event.options.oneVisible||($content=$item.find("."+event.options.contentWrapClass),event.options.oneVisible?(event.$items.removeClass(event.options.itemActiveClass),$item.addClass(event.options.itemActiveClass),event._closeContent(event.$contents,event.options.hideDuration,$content),event.options.onCollapse(event.$items),event._openContent($content,event.options.showDuration),event.options.onExpand($item)):$item.hasClass(event.options.itemActiveClass)?(event._closeContent($content,event.options.hideDuration),$item.removeClass(event.options.itemActiveClass),event.options.onCollapse($item)):(event._openContent($content,event.options.showDuration),$item.addClass(event.options.itemActiveClass),event.options.onExpand($item)))},_openContent:function($contents,duration,$exclude){var self=this;$contents.length||($contents=[$contents]),$.each($contents,function(index,content){var $content=$(content);$exclude&&$content===$exclude||(clearTimeout($content.data("toggle-to")),0===duration?$content.css("height","auto"):($content.css("height",$content.find(self.options.itemContent).outerHeight()+"px"),$content.data("toggle-to",setTimeout(function(){$content.css("height","auto")},duration))))})},_closeContent:function($contents,duration,$exclude){var self=this;$contents.length||($contents=[$contents]),$.each($contents,function(index,content){var $content=$(content);$exclude&&$content===$exclude||(clearTimeout($content.data("toggle-to")),0===duration?$content.css("height","0"):($content.css("height",$content.find(self.options.itemContent).outerHeight()+"px"),$content.data("toggle-to",setTimeout(function(){$content.css("height","0")},1))))})}};$.fn.avertaAccordion=function(options){return this.each(function(){Object.create(Container).init(this,options)})},$.fn.avertaAccordion.defaultOptions={items:"section",itemActiveClass:"active",contentWrapClass:"acc-content-wrap",itemHeader:"dt",itemContent:"dd",transition:"fade",hideDuration:"300",showDuration:"500",hideEase:"linear",showEase:"linear",oneVisible:!0,collapseOnInit:!0,expandHashItem:!0,onExpand:function(){},onCollapse:function(){}}})(jQuery),"function"!=typeof Object.create&&(Object.create=function(obj){function F(){}return F.prototype=obj,new F}),($=>{var Container={init:function(el,options){this.options=$.extend({},$.fn.avertaLiveTabs.defaultOptions,options||{}),this.$el=$(el),this.el=el,this.$tabs=this.$el.find(this.options.tabs),this.$contents=this.$el.find(this.options.contents),this.setup()},setup:function(){var id;this.$tabs.on("click",{self:this},this.onTabClicked),(id=(id=this.options.enableHash&&""!==window.location.hash?(id=this.trimID(window.location.hash),this.getTabById(id)):this.$tabs.filter("."+this.options.tabsActiveClass)).length?id:this.$tabs.first()).trigger("click",!0)},onTabClicked:function(event,fromSetup){event.preventDefault();var activeId,event=event.data.self,$this=$(this);!fromSetup&&$this.hasClass("active")||(event.$tabs.removeClass(event.options.tabsActiveClass),$this.addClass(event.options.tabsActiveClass),event.$contents.hide(),(fromSetup="id"===event.options.connectType?(activeId=event.getIdByTab($this),event.getContentById(activeId)):event.$contents.eq($this.index())).fadeIn(event.options.duration),event.options.updateHash&&(activeId=event.getIdByTab($this),activeId=(activeId=event.trimID(activeId))?activeId+event.options.hashSuffix:"",window.history&&window.history.pushState?window.history.pushState(null,null,window.location.href.split("#")[0]+"#"+activeId):window.location.hash=activeId),event.$el.trigger("avtTabChange",fromSetup.attr("id")))},getTabById:function(id){id=id.split(this.options.hashSuffix)[0];var $activeTab=this.$tabs.find('[href="#'+id+'"]').eq(0);return($activeTab=$activeTab.length?$activeTab:this.$tabs.find('[href="'+id+'"]').eq(0)).length?$activeTab.parent():$activeTab},getContentById:function(id){return this.$contents.filter("#"+this.trimID(id))},trimID:function(id){return id.replace(/^\s+|\s+$|#/g,"")},getIdByTab:function($tab){$tab=$tab.find("[href]").eq(0);return!!$tab.length&&$tab.attr("href")}};$.fn.avertaLiveTabs=function(options){return this.each(function(){Object.create(Container).init(this,options)})},$.fn.avertaLiveTabs.defaultOptions={tabs:"ul.tabs > li",tabsActiveClass:"active",contents:"ul.tabs-content > li",contentsActiveClass:"active",transition:"fade",duration:"500",connectType:"index",enableHash:!1,updateHash:!1,hashSuffix:"-tab"}})(jQuery),(($,window,document)=>{var id=1,defaults=(0 in document,{menuItem:"aux-menu-item",menuItemContent:"aux-item-content",submenu:"aux-submenu",subIndicator:"aux-submenu-indicator",hover:"aux-hover",open:"aux-open",noJS:"aux-no-js",tabs:"aux-menu-tabs",tab:"aux-menu-tab",narrow:"aux-narrow",wide:"aux-wide",submenuHeader:"aux-submenu-header",submenuBack:"aux-submenu-back",type:"horizontal",openOn:"over",openDelay:100,closeDelay:50,autoSwitch:600,autoSwitchType:"accordion",autoSwitchParent:null,addSubIndicator:!0,useSubIndicator:!0,skipDelayForTabs:!0,keepSubmenuInView:!0,insertHeaderInSubs:!0,backLabel:"Back",typeMap:{toggle:"aux-toggle",accordion:"aux-toggle aux-accordion",vertical:"aux-vertical",horizontal:"aux-horizontal",cover:"aux-toggle aux-cover"},submenuAlignMap:{left:"aux-temp-left",right:"aux-temp-right",bottom:"aux-temp-bottom",top:"aux-temp-top",pattern:/aux-temp-\w+/g}}),attributeDataMap={type:"type","open-on":"openOn","open-delay":"openDelay","close-delay":"closeDelay","switch-width":"autoSwitch","switch-type":"autoSwitchType","switch-parent":"autoSwitchParent",indicator:"addSubIndicator"};function MasterMenuPlugin(element,options){this.element=element,this.$element=$(element);var tempData,attribute,elementData={};for(attribute in attributeDataMap)void 0!==(tempData=this.$element.data(attribute))&&(elementData[attributeDataMap[attribute]]=tempData);this.settings=$.extend({},defaults,options,elementData),this._defaults=defaults,this._name="mastermenu",this._uniqueId=this._name+"_"+id++,this.init()}$.extend(MasterMenuPlugin.prototype,{init:function(){var st=this.settings;this.$element.removeClass(st.noJS),this.lastLocation="defautlt",this.defaultParent=this.$element.parent(),this.defaultPrev=this.$element.prev(),this.$menuItems=this.$element.find("."+st.menuItem),this.pressEvent="click."+this._uniqueId,st.addSubIndicator&&(this.$menuItems.has("."+st.submenu).find(">."+st.menuItemContent).append('<span class="'+st.subIndicator+'"></span>'),this.$subIndicators=this.$menuItems.find("."+st.subIndicator)),this.handlerProxy=this._menuInteract.bind(this),this.$menuItems.on("mouseenter."+this._uniqueId,this.handlerProxy).on("focusin."+this._uniqueId,this.handlerProxy).on("mouseleave."+this._uniqueId,this.handlerProxy).on("focusout."+this._uniqueId,this.handlerProxy),this.changeType(st.type),0<st.autoSwitch&&($(window).on("resize."+this._uniqueId,this._autoSwitch.bind(this)),this._autoSwitch())},_onTypeChanged:function(){var type,st;this.lastType!==this.type&&(type=this.type,st=this.settings,this.lastType&&(this.$menuItems.off(this.pressEvent,this.handlerProxy),st.useSubIndicator&&this.$subIndicators.off(this.pressEvent,this.handlerProxy),"press"===st.openOn)&&$(document).off(this.pressEvent,this.handlerProxy),this._closeAll(!1),"horizontal"===type||"vertical"===type?(this.$element.removeClass(st.narrow).addClass(st.wide),this.isNarrow=!1,"over"===st.openOn?this.openOnOver=!0:"press"===st.openOn&&($(document).on(this.pressEvent,this.handlerProxy),this.$menuItems.on(this.pressEvent,this.handlerProxy)),this.keepTabs=!0,this.$element.find("."+st.tabs+">."+st.tab+":first-child").addClass(st.open),"cover"===this.lastType&&this._removeCoverMenuElements()):(this.openOnOver=!1,this.isNarrow=!0,this.$element.addClass(st.narrow).removeClass(st.wide),(st.useSubIndicator&&st.addSubIndicator?this.$subIndicators:this.$menuItems).on(this.pressEvent,this.handlerProxy),this.keepTabs=!1,"cover"===type?this._insertCoverMenuElements():this._removeCoverMenuElements()),this.lastType=type,this.$element.trigger("typeChanged"))},_menuInteract:function(event){var $this=$(event.currentTarget),$menuItem=$this,st=this.settings,etype=event.type,hasSubmenu=0!==($menuItem=$this.hasClass(st.subIndicator)||$this.hasClass(st.submenuBack)?$this.parents("."+st.menuItem).eq(0):$menuItem).find(">."+st.submenu).length;switch(etype){case"mouseenter":case"focusin":$menuItem.addClass(st.hover),hasSubmenu&&this.openOnOver&&this._openMenu($menuItem,st.openDelay);break;case"mouseleave":case"focusout":$menuItem.removeClass(st.hover),hasSubmenu&&this.openOnOver&&this._closeMenu($menuItem,st.closeDelay);break;case"mouseup":case"click":$menuItem.is(document)?this._closeAll():($menuItem.hasClass(st.open)?(this._closeMenu($menuItem,0),event.preventDefault()):("toggle"!==this.type&&this._closeOthers($menuItem),hasSubmenu&&(this._openMenu($menuItem,0),event.preventDefault())),event.stopPropagation())}},_autoSwitch:function(event){var autoSwitchType=this.settings.autoSwitchType;this.type!==autoSwitchType&&window.innerWidth<=this.settings.autoSwitch?(this.changeType(autoSwitchType),this.settings.autoSwitchParent&&this.changeLocation(this.settings.autoSwitchParent)):this.type!==this.settings.type&&window.innerWidth>this.settings.autoSwitch&&(this.changeType("default"),this.settings.autoSwitchParent)&&this.changeLocation("default")},_insertCoverMenuElements:function(){var self=this,st=self.settings;self.$element.find("."+st.submenu).each(function(){var headerContent,$this=$(this);$("<li></li>").html('<div class="'+st.menuItemContent+'">'+st.backLabel+"</div>").addClass(st.menuItem).addClass(st.submenuBack).prependTo($this).on(self.pressEvent,self.handlerProxy);st.insertHeaderInSubs&&((headerContent=$this.parent().find(">."+st.menuItemContent).eq(0).clone()).find("."+st.subIndicator).remove(),$("<li></li>").append(headerContent).prependTo($this).addClass(st.menuItem).addClass(st.submenuHeader))})},_removeCoverMenuElements:function(){var st=this.settings;this.$element.find("."+st.submenuBack).remove(),st.insertHeaderInSubs&&this.$element.find("."+st.submenuHeader).remove()},_checkSubmenuPosition:function($menuItem){var st=this.settings,submenu=$menuItem.find(">."+st.submenu),$window=$(window);if(!$menuItem.parent().hasClass(st.megamenu)){submenu.attr("class",submenu.attr("class").replace(st.submenuAlignMap.pattern,""));var offset=submenu.offset(),offset=(offset.top,$window.scrollTop(),offset.left-$window.scrollLeft()),offsetRight=offset+submenu.width();submenu.height();if($menuItem.parent().is(this.$element))if(offsetRight>$window.width())return $menuItem=submenu.data("menu-shift")||0,$menuItem=$window.width()-offsetRight+$menuItem,$("body").hasClass("rtl")?submenu.css("right",Math.min(0,$menuItem)):submenu.css("left",Math.min(0,$menuItem)),void submenu.data("menu-shift",$menuItem);offsetRight>$window.width()?submenu.addClass(st.submenuAlignMap.left):offset<0&&submenu.addClass(st.submenuAlignMap.right)}},_openMenu:function($menuItem,delay){var st=this.settings;clearTimeout($menuItem.data("openTo")),clearTimeout($menuItem.data("closeTo")),0===(delay=st.skipDelayForTabs&&$menuItem.hasClass(st.tab)?0:delay)?(this.$element.trigger({type:"beforeOpen",item:$menuItem}),$menuItem.addClass(this.settings.open),!this.isNarrow&&st.keepSubmenuInView&&this._checkSubmenuPosition($menuItem),this.keepTabs&&$menuItem.hasClass(st.tab)&&this._closeOthers($menuItem,!1),this.$element.trigger({type:"afterOpen",item:$menuItem})):(st=setTimeout(this._openMenu.bind(this),delay,$menuItem,0),$menuItem.data("openTo",st))},_closeMenu:function($menuItem,delay,notTabs){var st=this.settings;void 0===notTabs&&(notTabs=this.keepTabs),clearTimeout($menuItem.data("closeTo")),clearTimeout($menuItem.data("openTo")),0===delay?(this.$element.trigger({type:"beforeClose",item:$menuItem}),notTabs&&$menuItem.hasClass(st.tab)||$menuItem.removeClass(st.open),$menuItem.find("."+st.menuItem+"."+st.open+(notTabs?":not(."+st.tab+")":"")).removeClass(st.open),this.$element.trigger({type:"afterClose",item:$menuItem})):(st=setTimeout(this._closeMenu.bind(this),delay,$menuItem,0,notTabs),$menuItem.data("closeTo",st))},_closeOthers:function($menuItem,notTabs){void 0===notTabs&&(notTabs=this.keepTabs),this._closeMenu($menuItem.siblings(),0,notTabs)},_closeAll:function(notTabs){void 0===notTabs&&(notTabs=this.keepTabs),this.$element.find("."+this.settings.open+(notTabs?":not(."+this.settings.tab+")":"")).removeClass(this.settings.open)},changeType:function(type){if(void 0!==this.type)this.$element.removeClass(this.settings.typeMap[this.type]);else for(var typeKey in this.settings.typeMap)this.$element.removeClass(this.settings.typeMap[typeKey]);"default"===type&&(type=this.settings.type),this.type=type,this.$element.addClass(this.settings.typeMap[this.type]),this._onTypeChanged()},changeLocation:function(location){this.lastLocation!==location&&("default"===location?(this.locationChanged=!1,0===this.defaultPrev.length?this.$element.prependTo(this.defaultParent[0]):this.defaultPrev[0].after(this.$element)):(this.locationChanged=!0,this.$element.appendTo(location)),this.lastLocation=location,this.$element.trigger("locationChanged"))}}),window.MasterMenuPlugin=window.MasterMenuPlugin||MasterMenuPlugin,$.fn.mastermenu=function(options){var returns,args=arguments,plugin="plugin_mastermenu";return void 0===options||"object"==typeof options?this.each(function(){$.data(this,plugin)||$.data(this,plugin,new MasterMenuPlugin(this,options))}):"string"==typeof options&&"_"!==options[0]&&"init"!==options?(this.each(function(){var instance=$.data(this,plugin);instance instanceof MasterMenuPlugin&&"function"==typeof instance[options]&&(returns=instance[options].apply(instance,Array.prototype.slice.call(args,1))),"destroy"===options&&$.data(this,plugin,null)}),void 0!==returns?returns:this):void 0}})(jQuery,window,document),(($,window,document)=>{var defaults={offset:0,insetOffset:"50%"},attributesMap={offset:"offset","inset-offset":"insetOffset"},$window=$(window);function Plugin(element,options){for(var key in this.element=element,this.$element=$(element),this.settings=$.extend({},defaults,options),attributesMap){var value=attributesMap[key],key=this.$element.data(key);void 0!==key&&(this.settings[value]=key)}this.init()}$.extend(Plugin.prototype,{init:function(){"object"==typeof this.settings.offset?(this._offsetTop=this.settings.offset.top,this._offsetBottom=this.settings.offset.bottom):this._offsetTop=this._offsetBottom=this.settings.offset,this._isOnViewPort(this.$element)&&(this._offsetTop=this._offsetBottom=0),this._appeared=!1,this._lastScroll=0,$window.on("scroll resize",this.update.bind(this)),setTimeout(this.update.bind(this))},update:function(event){var rect=this.element.getBoundingClientRect(),insetOffset=this._parseOffset(this.settings.insetOffset,!0),remainingPageScroll=document.documentElement.scrollHeight-(window.scrollY+window.innerHeight),passedPageScroll=window.scrollY,passedPageScroll=Math.min(this._parseOffset(this._offsetTop),passedPageScroll),remainingPageScroll=window.innerHeight-Math.min(this._parseOffset(this._offsetBottom),remainingPageScroll);rect.top+insetOffset<=remainingPageScroll&&rect.bottom-insetOffset>=passedPageScroll?(this._appeared||this.$element.trigger("appear",[{from:this._lastScroll<=$window.scrollTop()?"bottom":"top"}]),this._appeared=!0):this._appeared&&(this.$element.trigger("disappear",[{from:rect.top<passedPageScroll?"top":"bottom"}]),this._appeared=!1),this._lastScroll=$window.scrollTop()},_parseOffset:function(value,inset){var percentage="string"==typeof value&&-1!==value.indexOf("%");return value=parseInt(value),percentage?(inset?this.element.offsetHeight:window.innerHeight)*value/100:value},_isOnViewPort:function(element){return this.element.getBoundingClientRect().bottom<window.innerHeight}}),$.fn.appearl=function(options){return this.each(function(){$.data(this,"plugin_appearl")||$.data(this,"plugin_appearl",new Plugin(this,options))})}})(jQuery,window,document),((global,factory)=>{"object"==typeof exports&&"undefined"!=typeof module?module.exports=factory():"function"==typeof define&&define.amd?define(factory):(global=global||self).PerfectScrollbar=factory()})(this,function(){function get(element){return getComputedStyle(element)}function set(element,obj){for(var key in obj){var val=obj[key];"number"==typeof val&&(val+="px"),element.style[key]=val}}function div(className){var div=document.createElement("div");return div.className=className,div}var elMatches="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function matches(element,query){if(elMatches)return elMatches.call(element,query);throw new Error("No element matching method supported")}function remove(element){element.remove?element.remove():element.parentNode&&element.parentNode.removeChild(element)}function queryChildren(element,selector){return Array.prototype.filter.call(element.children,function(child){return matches(child,selector)})}var cls={main:"ps",rtl:"ps__rtl",element:{thumb:function(x){return"ps__thumb-"+x},rail:function(x){return"ps__rail-"+x},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(x){return"ps--active-"+x},scrolling:function(x){return"ps--scrolling-"+x}}},scrollingClassTimeout={x:null,y:null};function addScrollingClass(i,x){var i=i.element.classList,className=cls.state.scrolling(x);i.contains(className)?clearTimeout(scrollingClassTimeout[x]):i.add(className)}function removeScrollingClass(i,x){scrollingClassTimeout[x]=setTimeout(function(){return i.isAlive&&i.element.classList.remove(cls.state.scrolling(x))},i.settings.scrollingThreshold)}function EventElement(element){this.element=element,this.handlers={}}function EventManager(){this.eventElements=[]}var prototypeAccessors={isEmpty:{configurable:!0}};EventElement.prototype.bind=function(eventName,handler){void 0===this.handlers[eventName]&&(this.handlers[eventName]=[]),this.handlers[eventName].push(handler),this.element.addEventListener(eventName,handler,!1)},EventElement.prototype.unbind=function(eventName,target){var this$1=this;this.handlers[eventName]=this.handlers[eventName].filter(function(handler){return!(!target||handler===target)||(this$1.element.removeEventListener(eventName,handler,!1),!1)})},EventElement.prototype.unbindAll=function(){for(var name in this.handlers)this.unbind(name)},prototypeAccessors.isEmpty.get=function(){var this$1=this;return Object.keys(this.handlers).every(function(key){return 0===this$1.handlers[key].length})},Object.defineProperties(EventElement.prototype,prototypeAccessors);function createEvent(name){var evt;return"function"==typeof window.CustomEvent?new CustomEvent(name):((evt=document.createEvent("CustomEvent")).initCustomEvent(name,!1,!1,void 0),evt)}function processScrollDiff(i,axis,diff,useScrollingClass,forceFireReachEvent){var fields;if(void 0===useScrollingClass&&(useScrollingClass=!0),void 0===forceFireReachEvent&&(forceFireReachEvent=!1),"top"===axis)fields=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==axis)throw new Error("A proper axis should be provided");fields=["contentWidth","containerWidth","scrollLeft","x","left","right"]}((i,diff,ref,useScrollingClass,forceFireReachEvent)=>{var contentHeight=ref[0],containerHeight=ref[1],scrollTop=ref[2],y=ref[3],up=ref[4],ref=ref[5],element=(void 0===useScrollingClass&&(useScrollingClass=!0),void 0===forceFireReachEvent&&(forceFireReachEvent=!1),i.element);i.reach[y]=null,element[scrollTop]<1&&(i.reach[y]="start"),i[contentHeight]-i[containerHeight]-1<element[scrollTop]&&(i.reach[y]="end"),diff&&(element.dispatchEvent(createEvent("ps-scroll-"+y)),diff<0?element.dispatchEvent(createEvent("ps-scroll-"+up)):0<diff&&element.dispatchEvent(createEvent("ps-scroll-"+ref)),useScrollingClass)&&((i,x)=>{addScrollingClass(i,x),removeScrollingClass(i,x)})(i,y),i.reach[y]&&(diff||forceFireReachEvent)&&element.dispatchEvent(createEvent("ps-"+y+"-reach-"+i.reach[y]))})(i,diff,fields,useScrollingClass,forceFireReachEvent)}function toInt(x){return parseInt(x,10)||0}EventManager.prototype.eventElement=function(element){var ee=this.eventElements.filter(function(ee){return ee.element===element})[0];return ee||(ee=new EventElement(element),this.eventElements.push(ee)),ee},EventManager.prototype.bind=function(element,eventName,handler){this.eventElement(element).bind(eventName,handler)},EventManager.prototype.unbind=function(element,eventName,handler){element=this.eventElement(element);element.unbind(eventName,handler),element.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(element),1)},EventManager.prototype.unbindAll=function(){this.eventElements.forEach(function(e){return e.unbindAll()}),this.eventElements=[]},EventManager.prototype.once=function(element,eventName,handler){var ee=this.eventElement(element),onceHandler=function(evt){ee.unbind(eventName,onceHandler),handler(evt)};ee.bind(eventName,onceHandler)};var env={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&0<window.navigator.maxTouchPoints||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)};function updateGeometry(i){var element=i.element,roundedScrollTop=Math.floor(element.scrollTop),rect=element.getBoundingClientRect();i.containerWidth=Math.round(rect.width),i.containerHeight=Math.round(rect.height),i.contentWidth=element.scrollWidth,i.contentHeight=element.scrollHeight,element.contains(i.scrollbarXRail)||(queryChildren(element,cls.element.rail("x")).forEach(remove),element.appendChild(i.scrollbarXRail)),element.contains(i.scrollbarYRail)||(queryChildren(element,cls.element.rail("y")).forEach(remove),element.appendChild(i.scrollbarYRail)),!i.settings.suppressScrollX&&i.containerWidth+i.settings.scrollXMarginOffset<i.contentWidth?(i.scrollbarXActive=!0,i.railXWidth=i.containerWidth-i.railXMarginWidth,i.railXRatio=i.containerWidth/i.railXWidth,i.scrollbarXWidth=getThumbSize(i,toInt(i.railXWidth*i.containerWidth/i.contentWidth)),i.scrollbarXLeft=toInt((i.negativeScrollAdjustment+element.scrollLeft)*(i.railXWidth-i.scrollbarXWidth)/(i.contentWidth-i.containerWidth))):i.scrollbarXActive=!1,!i.settings.suppressScrollY&&i.containerHeight+i.settings.scrollYMarginOffset<i.contentHeight?(i.scrollbarYActive=!0,i.railYHeight=i.containerHeight-i.railYMarginHeight,i.railYRatio=i.containerHeight/i.railYHeight,i.scrollbarYHeight=getThumbSize(i,toInt(i.railYHeight*i.containerHeight/i.contentHeight)),i.scrollbarYTop=toInt(roundedScrollTop*(i.railYHeight-i.scrollbarYHeight)/(i.contentHeight-i.containerHeight))):i.scrollbarYActive=!1,i.railXWidth-i.scrollbarXWidth<=i.scrollbarXLeft&&(i.scrollbarXLeft=i.railXWidth-i.scrollbarXWidth),i.railYHeight-i.scrollbarYHeight<=i.scrollbarYTop&&(i.scrollbarYTop=i.railYHeight-i.scrollbarYHeight),((element,i)=>{var xRailOffset={width:i.railXWidth},roundedScrollTop=Math.floor(element.scrollTop);i.isRtl?xRailOffset.left=i.negativeScrollAdjustment+element.scrollLeft+i.containerWidth-i.contentWidth:xRailOffset.left=element.scrollLeft,i.isScrollbarXUsingBottom?xRailOffset.bottom=i.scrollbarXBottom-roundedScrollTop:xRailOffset.top=i.scrollbarXTop+roundedScrollTop,set(i.scrollbarXRail,xRailOffset),xRailOffset={top:roundedScrollTop,height:i.railYHeight},i.isScrollbarYUsingRight?i.isRtl?xRailOffset.right=i.contentWidth-(i.negativeScrollAdjustment+element.scrollLeft)-i.scrollbarYRight-i.scrollbarYOuterWidth-9:xRailOffset.right=i.scrollbarYRight-element.scrollLeft:i.isRtl?xRailOffset.left=i.negativeScrollAdjustment+element.scrollLeft+2*i.containerWidth-i.contentWidth-i.scrollbarYLeft-i.scrollbarYOuterWidth:xRailOffset.left=i.scrollbarYLeft+element.scrollLeft,set(i.scrollbarYRail,xRailOffset),set(i.scrollbarX,{left:i.scrollbarXLeft,width:i.scrollbarXWidth-i.railBorderXWidth}),set(i.scrollbarY,{top:i.scrollbarYTop,height:i.scrollbarYHeight-i.railBorderYWidth})})(element,i),i.scrollbarXActive?element.classList.add(cls.state.active("x")):(element.classList.remove(cls.state.active("x")),i.scrollbarXWidth=0,element.scrollLeft=!(i.scrollbarXLeft=0)===i.isRtl?i.contentWidth:0),i.scrollbarYActive?element.classList.add(cls.state.active("y")):(element.classList.remove(cls.state.active("y")),i.scrollbarYHeight=0,element.scrollTop=i.scrollbarYTop=0)}function getThumbSize(i,thumbSize){return i.settings.minScrollbarLength&&(thumbSize=Math.max(thumbSize,i.settings.minScrollbarLength)),thumbSize=i.settings.maxScrollbarLength?Math.min(thumbSize,i.settings.maxScrollbarLength):thumbSize}function bindMouseScrollHandler(i,ref){var containerHeight=ref[0],contentHeight=ref[1],pageY=ref[2],railYHeight=ref[3],scrollbarY=ref[4],scrollbarYHeight=ref[5],scrollTop=ref[6],y=ref[7],scrollbarYRail=ref[8],element=i.element,startingScrollTop=null,startingMousePageY=null,scrollBy=null;function mouseMoveHandler(e){e.touches&&e.touches[0]&&(e[pageY]=e.touches[0].pageY),element[scrollTop]=startingScrollTop+scrollBy*(e[pageY]-startingMousePageY),addScrollingClass(i,y),updateGeometry(i),e.stopPropagation(),e.preventDefault()}function mouseUpHandler(){removeScrollingClass(i,y),i[scrollbarYRail].classList.remove(cls.state.clicking),i.event.unbind(i.ownerDocument,"mousemove",mouseMoveHandler)}function bindMoves(e,touchMode){startingScrollTop=element[scrollTop],touchMode&&e.touches&&(e[pageY]=e.touches[0].pageY),startingMousePageY=e[pageY],scrollBy=(i[contentHeight]-i[containerHeight])/(i[railYHeight]-i[scrollbarYHeight]),touchMode?i.event.bind(i.ownerDocument,"touchmove",mouseMoveHandler):(i.event.bind(i.ownerDocument,"mousemove",mouseMoveHandler),i.event.once(i.ownerDocument,"mouseup",mouseUpHandler),e.preventDefault()),i[scrollbarYRail].classList.add(cls.state.clicking),e.stopPropagation()}i.event.bind(i[scrollbarY],"mousedown",function(e){bindMoves(e)}),i.event.bind(i[scrollbarY],"touchstart",function(e){bindMoves(e,!0)})}function PerfectScrollbar(element,userSettings){var key,this$1=this;if(void 0===userSettings&&(userSettings={}),!(element="string"==typeof element?document.querySelector(element):element)||!element.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(key in(this.element=element).classList.add(cls.main),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},userSettings)this.settings[key]=userSettings[key];function focus(){return element.classList.add(cls.state.focus)}function blur(){return element.classList.remove(cls.state.focus)}this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null,this.isRtl="rtl"===get(element).direction,!0===this.isRtl&&element.classList.add(cls.rtl),this.isNegativeScroll=(originalScrollLeft=element.scrollLeft,element.scrollLeft=-1,result=element.scrollLeft<0,element.scrollLeft=originalScrollLeft,result),this.negativeScrollAdjustment=this.isNegativeScroll?element.scrollWidth-element.clientWidth:0,this.event=new EventManager,this.ownerDocument=element.ownerDocument||document,this.scrollbarXRail=div(cls.element.rail("x")),element.appendChild(this.scrollbarXRail),this.scrollbarX=div(cls.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",focus),this.event.bind(this.scrollbarX,"blur",blur),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var originalScrollLeft=get(this.scrollbarXRail),result=(this.scrollbarXBottom=parseInt(originalScrollLeft.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=toInt(originalScrollLeft.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=toInt(originalScrollLeft.borderLeftWidth)+toInt(originalScrollLeft.borderRightWidth),set(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=toInt(originalScrollLeft.marginLeft)+toInt(originalScrollLeft.marginRight),set(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=div(cls.element.rail("y")),element.appendChild(this.scrollbarYRail),this.scrollbarY=div(cls.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",focus),this.event.bind(this.scrollbarY,"blur",blur),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null,get(this.scrollbarYRail));this.scrollbarYRight=parseInt(result.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=toInt(result.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?(element=>toInt((element=get(element)).width)+toInt(element.paddingLeft)+toInt(element.paddingRight)+toInt(element.borderLeftWidth)+toInt(element.borderRightWidth))(this.scrollbarY):null,this.railBorderYWidth=toInt(result.borderTopWidth)+toInt(result.borderBottomWidth),set(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=toInt(result.marginTop)+toInt(result.marginBottom),set(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:element.scrollLeft<=0?"start":element.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:element.scrollTop<=0?"start":element.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(handlerName){return handlers[handlerName](this$1)}),this.lastScrollTop=Math.floor(element.scrollTop),this.lastScrollLeft=element.scrollLeft,this.event.bind(this.element,"scroll",function(e){return this$1.onScroll(e)}),updateGeometry(this)}var handlers={"click-rail":function(i){i.element,i.event.bind(i.scrollbarY,"mousedown",function(e){return e.stopPropagation()}),i.event.bind(i.scrollbarYRail,"mousedown",function(e){var direction=e.pageY-window.pageYOffset-i.scrollbarYRail.getBoundingClientRect().top>i.scrollbarYTop?1:-1;i.element.scrollTop+=direction*i.containerHeight,updateGeometry(i),e.stopPropagation()}),i.event.bind(i.scrollbarX,"mousedown",function(e){return e.stopPropagation()}),i.event.bind(i.scrollbarXRail,"mousedown",function(e){var direction=e.pageX-window.pageXOffset-i.scrollbarXRail.getBoundingClientRect().left>i.scrollbarXLeft?1:-1;i.element.scrollLeft+=direction*i.containerWidth,updateGeometry(i),e.stopPropagation()})},"drag-thumb":function(i){bindMouseScrollHandler(i,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),bindMouseScrollHandler(i,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function(i){var element=i.element;i.event.bind(i.ownerDocument,"keydown",function(e){if(!(e.isDefaultPrevented&&e.isDefaultPrevented()||e.defaultPrevented)&&(matches(element,":hover")||matches(i.scrollbarX,":focus")||matches(i.scrollbarY,":focus"))){var el,activeElement=document.activeElement||i.ownerDocument.activeElement;if(activeElement){if("IFRAME"===activeElement.tagName)activeElement=activeElement.contentDocument.activeElement;else for(;activeElement.shadowRoot;)activeElement=activeElement.shadowRoot.activeElement;if(matches(el=activeElement,"input,[contenteditable]")||matches(el,"select,[contenteditable]")||matches(el,"textarea,[contenteditable]")||matches(el,"button,[contenteditable]"))return}var deltaX=0,deltaY=0;switch(e.which){case 37:deltaX=e.metaKey?-i.contentWidth:e.altKey?-i.containerWidth:-30;break;case 38:deltaY=e.metaKey?i.contentHeight:e.altKey?i.containerHeight:30;break;case 39:deltaX=e.metaKey?i.contentWidth:e.altKey?i.containerWidth:30;break;case 40:deltaY=e.metaKey?-i.contentHeight:e.altKey?-i.containerHeight:-30;break;case 32:deltaY=e.shiftKey?i.containerHeight:-i.containerHeight;break;case 33:deltaY=i.containerHeight;break;case 34:deltaY=-i.containerHeight;break;case 36:deltaY=i.contentHeight;break;case 35:deltaY=-i.contentHeight;break;default:return}i.settings.suppressScrollX&&0!==deltaX||i.settings.suppressScrollY&&0!==deltaY||(element.scrollTop-=deltaY,element.scrollLeft+=deltaX,updateGeometry(i),((deltaX,deltaY)=>{var scrollTop=Math.floor(element.scrollTop);if(0===deltaX){if(!i.scrollbarYActive)return;if(0===scrollTop&&0<deltaY||scrollTop>=i.contentHeight-i.containerHeight&&deltaY<0)return!i.settings.wheelPropagation}if(scrollTop=element.scrollLeft,0===deltaY){if(!i.scrollbarXActive)return;if(0===scrollTop&&deltaX<0||scrollTop>=i.contentWidth-i.containerWidth&&0<deltaX)return!i.settings.wheelPropagation}return 1})(deltaX,deltaY)&&e.preventDefault())}})},wheel:function(i){var element=i.element;function mousewheelHandler(e){var shouldPrevent,ref=(e=>{var deltaX=e.deltaX,deltaY=-1*e.deltaY;return void 0!==deltaX&&void 0!==deltaY||(deltaX=-1*e.wheelDeltaX/6,deltaY=e.wheelDeltaY/6),e.deltaMode&&1===e.deltaMode&&(deltaX*=10,deltaY*=10),deltaX!=deltaX&&deltaY!=deltaY&&(deltaX=0,deltaY=e.wheelDelta),e.shiftKey?[-deltaY,-deltaX]:[deltaX,deltaY]})(e),deltaX=ref[0],ref=ref[1];((target,deltaX,deltaY)=>{if(!env.isWebKit&&element.querySelector("select:focus"))return 1;if(element.contains(target))for(var cursor=target;cursor&&cursor!==element;){if(cursor.classList.contains(cls.element.consuming))return 1;var style=get(cursor);if(deltaY&&style.overflowY.match(/(scroll|auto)/)){var maxScrollTop=cursor.scrollHeight-cursor.clientHeight;if(0<maxScrollTop&&(0<cursor.scrollTop&&deltaY<0||cursor.scrollTop<maxScrollTop&&0<deltaY))return 1}if(deltaX&&style.overflowX.match(/(scroll|auto)/)){maxScrollTop=cursor.scrollWidth-cursor.clientWidth;if(0<maxScrollTop&&(0<cursor.scrollLeft&&deltaX<0||cursor.scrollLeft<maxScrollTop&&0<deltaX))return 1}cursor=cursor.parentNode}})(e.target,deltaX,ref)||(shouldPrevent=!1,i.settings.useBothWheelAxes?i.scrollbarYActive&&!i.scrollbarXActive?(ref?element.scrollTop-=ref*i.settings.wheelSpeed:element.scrollTop+=deltaX*i.settings.wheelSpeed,shouldPrevent=!0):i.scrollbarXActive&&!i.scrollbarYActive&&(deltaX?element.scrollLeft+=deltaX*i.settings.wheelSpeed:element.scrollLeft-=ref*i.settings.wheelSpeed,shouldPrevent=!0):(element.scrollTop-=ref*i.settings.wheelSpeed,element.scrollLeft+=deltaX*i.settings.wheelSpeed),updateGeometry(i),(shouldPrevent=shouldPrevent||((deltaX,deltaY)=>{var roundedScrollTop=Math.floor(element.scrollTop),isTop=0===element.scrollTop,roundedScrollTop=roundedScrollTop+element.offsetHeight===element.scrollHeight,isLeft=0===element.scrollLeft,isRight=element.scrollLeft+element.offsetWidth===element.scrollWidth;return!(deltaY=Math.abs(deltaY)>Math.abs(deltaX)?isTop||roundedScrollTop:isLeft||isRight)||!i.settings.wheelPropagation})(deltaX,ref))&&!e.ctrlKey&&(e.stopPropagation(),e.preventDefault()))}void 0!==window.onwheel?i.event.bind(element,"wheel",mousewheelHandler):void 0!==window.onmousewheel&&i.event.bind(element,"mousewheel",mousewheelHandler)},touch:function(i){var element,startOffset,startTime,speed,easingLoop;function applyTouchMove(differenceX,differenceY){element.scrollTop-=differenceY,element.scrollLeft-=differenceX,updateGeometry(i)}function getTouch(e){return e.targetTouches?e.targetTouches[0]:e}function shouldHandle(e){return(!e.pointerType||"pen"!==e.pointerType||0!==e.buttons)&&(e.targetTouches&&1===e.targetTouches.length||!(!e.pointerType||"mouse"===e.pointerType||e.pointerType===e.MSPOINTER_TYPE_MOUSE))}function touchStart(e){shouldHandle(e)&&(e=getTouch(e),startOffset.pageX=e.pageX,startOffset.pageY=e.pageY,startTime=(new Date).getTime(),null!==easingLoop)&&clearInterval(easingLoop)}function touchMove(e){var differenceX,differenceY,touch,timeGap;shouldHandle(e)&&(differenceX=(touch={pageX:(touch=getTouch(e)).pageX,pageY:touch.pageY}).pageX-startOffset.pageX,differenceY=touch.pageY-startOffset.pageY,((target,deltaX,deltaY)=>{if(element.contains(target))for(var cursor=target;cursor&&cursor!==element;){if(cursor.classList.contains(cls.element.consuming))return 1;var style=get(cursor);if(deltaY&&style.overflowY.match(/(scroll|auto)/)){var maxScrollTop=cursor.scrollHeight-cursor.clientHeight;if(0<maxScrollTop&&(0<cursor.scrollTop&&deltaY<0||cursor.scrollTop<maxScrollTop&&0<deltaY))return 1}if(deltaX&&style.overflowX.match(/(scroll|auto)/)){maxScrollTop=cursor.scrollWidth-cursor.clientWidth;if(0<maxScrollTop&&(0<cursor.scrollLeft&&deltaX<0||cursor.scrollLeft<maxScrollTop&&0<deltaX))return 1}cursor=cursor.parentNode}})(e.target,differenceX,differenceY)||(applyTouchMove(differenceX,differenceY),startOffset=touch,0<(timeGap=(touch=(new Date).getTime())-startTime)&&(speed.x=differenceX/timeGap,speed.y=differenceY/timeGap,startTime=touch),((deltaX,deltaY)=>{var scrollTop=Math.floor(element.scrollTop),scrollLeft=element.scrollLeft,magnitudeX=Math.abs(deltaX),magnitudeY=Math.abs(deltaY);if(magnitudeX<magnitudeY){if(deltaY<0&&scrollTop===i.contentHeight-i.containerHeight||0<deltaY&&0===scrollTop)return 0===window.scrollY&&0<deltaY&&env.isChrome}else if(magnitudeY<magnitudeX&&(deltaX<0&&scrollLeft===i.contentWidth-i.containerWidth||0<deltaX&&0===scrollLeft));return 1})(differenceX,differenceY)&&e.preventDefault()))}function touchEnd(){i.settings.swipeEasing&&(clearInterval(easingLoop),easingLoop=setInterval(function(){!i.isInitialized&&(speed.x||speed.y)&&!(Math.abs(speed.x)<.01&&Math.abs(speed.y)<.01)&&i.element?(applyTouchMove(30*speed.x,30*speed.y),speed.x*=.8,speed.y*=.8):clearInterval(easingLoop)},10))}(env.supportsTouch||env.supportsIePointer)&&(element=i.element,startOffset={},startTime=0,speed={},easingLoop=null,env.supportsTouch?(i.event.bind(element,"touchstart",touchStart),i.event.bind(element,"touchmove",touchMove),i.event.bind(element,"touchend",touchEnd)):env.supportsIePointer&&(window.PointerEvent?(i.event.bind(element,"pointerdown",touchStart),i.event.bind(element,"pointermove",touchMove),i.event.bind(element,"pointerup",touchEnd)):window.MSPointerEvent&&(i.event.bind(element,"MSPointerDown",touchStart),i.event.bind(element,"MSPointerMove",touchMove),i.event.bind(element,"MSPointerUp",touchEnd))))}};return PerfectScrollbar.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,set(this.scrollbarXRail,{display:"block"}),set(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=toInt(get(this.scrollbarXRail).marginLeft)+toInt(get(this.scrollbarXRail).marginRight),this.railYMarginHeight=toInt(get(this.scrollbarYRail).marginTop)+toInt(get(this.scrollbarYRail).marginBottom),set(this.scrollbarXRail,{display:"none"}),set(this.scrollbarYRail,{display:"none"}),updateGeometry(this),processScrollDiff(this,"top",0,!1,!0),processScrollDiff(this,"left",0,!1,!0),set(this.scrollbarXRail,{display:""}),set(this.scrollbarYRail,{display:""}))},PerfectScrollbar.prototype.onScroll=function(e){this.isAlive&&(updateGeometry(this),processScrollDiff(this,"top",this.element.scrollTop-this.lastScrollTop),processScrollDiff(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},PerfectScrollbar.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),remove(this.scrollbarX),remove(this.scrollbarY),remove(this.scrollbarXRail),remove(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},PerfectScrollbar.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(name){return!name.match(/^ps([-_].+|)$/)}).join(" ")},PerfectScrollbar}),(factory=>{"function"==typeof define&&define.amd?define(["jquery"],factory):"object"==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(jQuery){var S2=(()=>{var S2,require,define,undef,main,req,makeMap,handlers,defined,waiting,config,defining,hasOwn,aps,jsSuffixRegExp,requirejs;function hasProp(obj,prop){return hasOwn.call(obj,prop)}function normalize(name,baseName){var nameParts,nameSegment,mapValue,foundMap,foundI,foundStarMap,starI,i,j,part,baseParts=baseName&&baseName.split("/"),map=config.map,starMap=map&&map["*"]||{};if(name){for(baseName=(name=name.split("/")).length-1,config.nodeIdCompat&&jsSuffixRegExp.test(name[baseName])&&(name[baseName]=name[baseName].replace(jsSuffixRegExp,"")),"."===name[0].charAt(0)&&baseParts&&(name=baseParts.slice(0,baseParts.length-1).concat(name)),i=0;i<name.length;i++)"."===(part=name[i])?(name.splice(i,1),--i):".."!==part||0===i||1===i&&".."===name[2]||".."===name[i-1]||0<i&&(name.splice(i-1,2),i-=2);name=name.join("/")}if((baseParts||starMap)&&map){for(i=(nameParts=name.split("/")).length;0<i;--i){if(nameSegment=nameParts.slice(0,i).join("/"),baseParts)for(j=baseParts.length;0<j;--j)if(mapValue=(mapValue=map[baseParts.slice(0,j).join("/")])&&mapValue[nameSegment]){foundMap=mapValue,foundI=i;break}if(foundMap)break;!foundStarMap&&starMap&&starMap[nameSegment]&&(foundStarMap=starMap[nameSegment],starI=i)}!foundMap&&foundStarMap&&(foundMap=foundStarMap,foundI=starI),foundMap&&(nameParts.splice(0,foundI,foundMap),name=nameParts.join("/"))}return name}function makeRequire(relName,forceSync){return function(){var args=aps.call(arguments,0);return"string"!=typeof args[0]&&1===args.length&&args.push(null),req.apply(undef,args.concat([relName,forceSync]))}}function callDep(name){var args;if(hasProp(waiting,name)&&(args=waiting[name],delete waiting[name],defining[name]=!0,main.apply(undef,args)),hasProp(defined,name)||hasProp(defining,name))return defined[name];throw new Error("No "+name)}function splitPrefix(name){var prefix,index=name?name.indexOf("!"):-1;return-1<index&&(prefix=name.substring(0,index),name=name.substring(index+1,name.length)),[prefix,name]}function makeRelParts(relName){return relName?splitPrefix(relName):[]}return(S2=jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd?jQuery.fn.select2.amd:S2)&&S2.requirejs||(S2?require=S2:S2={},defined={},waiting={},config={},defining={},hasOwn=Object.prototype.hasOwnProperty,aps=[].slice,jsSuffixRegExp=/\.js$/,makeMap=function(name,relParts){var plugin,relName,parts=splitPrefix(name),prefix=parts[0],relParts=relParts[1];return name=parts[1],prefix&&(plugin=callDep(prefix=normalize(prefix,relParts))),prefix?name=plugin&&plugin.normalize?plugin.normalize(name,(relName=relParts,function(name){return normalize(name,relName)})):normalize(name,relParts):(prefix=(parts=splitPrefix(name=normalize(name,relParts)))[0],name=parts[1],prefix&&(plugin=callDep(prefix))),{f:prefix?prefix+"!"+name:name,n:name,pr:prefix,p:plugin}},handlers={require:function(name){return makeRequire(name)},exports:function(name){var e=defined[name];return void 0!==e?e:defined[name]={}},module:function(name){return{id:name,uri:"",exports:defined[name],config:(name=>function(){return config&&config.config&&config.config[name]||{}})(name)}}},main=function(name,deps,callback,relName){var cjsModule,depName,map,i,usingExports,args=[],callbackType=typeof callback,relParts=makeRelParts(relName=relName||name);if("undefined"==callbackType||"function"==callbackType){for(deps=!deps.length&&callback.length?["require","exports","module"]:deps,i=0;i<deps.length;i+=1)if("require"===(depName=(map=makeMap(deps[i],relParts)).f))args[i]=handlers.require(name);else if("exports"===depName)args[i]=handlers.exports(name),usingExports=!0;else if("module"===depName)cjsModule=args[i]=handlers.module(name);else if(hasProp(defined,depName)||hasProp(waiting,depName)||hasProp(defining,depName))args[i]=callDep(depName);else{if(!map.p)throw new Error(name+" missing "+depName);map.p.load(map.n,makeRequire(relName,!0),(depName=>function(value){defined[depName]=value})(depName),{}),args[i]=defined[depName]}callbackType=callback?callback.apply(defined[name],args):void 0,name&&(cjsModule&&cjsModule.exports!==undef&&cjsModule.exports!==defined[name]?defined[name]=cjsModule.exports:callbackType===undef&&usingExports||(defined[name]=callbackType))}else name&&(defined[name]=callback)},requirejs=require=req=function(deps,callback,relName,forceSync,alt){if("string"==typeof deps)return handlers[deps]?handlers[deps](callback):callDep(makeMap(deps,makeRelParts(callback)).f);if(!deps.splice){if((config=deps).deps&&req(config.deps,config.callback),!callback)return;callback.splice?(deps=callback,callback=relName,relName=null):deps=undef}return callback=callback||function(){},"function"==typeof relName&&(relName=forceSync,forceSync=alt),forceSync?main(undef,deps,callback,relName):setTimeout(function(){main(undef,deps,callback,relName)},4),req},req.config=function(cfg){return req(cfg)},requirejs._defined=defined,(define=function(name,deps,callback){if("string"!=typeof name)throw new Error("See almond README: incorrect module build, no module name");deps.splice||(callback=deps,deps=[]),hasProp(defined,name)||hasProp(waiting,name)||(waiting[name]=[name,deps,callback])}).amd={jQuery:!0},S2.requirejs=requirejs,S2.require=require,S2.define=define),S2.define("almond",function(){}),S2.define("jquery",[],function(){var _$=jQuery||$;return null==_$&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),_$}),S2.define("select2/utils",["jquery"],function($){var Utils={};function getMethods(theClass){var methodName,proto=theClass.prototype,methods=[];for(methodName in proto)"function"==typeof proto[methodName]&&"constructor"!==methodName&&methods.push(methodName);return methods}Utils.Extend=function(ChildClass,SuperClass){var key,__hasProp={}.hasOwnProperty;function BaseConstructor(){this.constructor=ChildClass}for(key in SuperClass)__hasProp.call(SuperClass,key)&&(ChildClass[key]=SuperClass[key]);return BaseConstructor.prototype=SuperClass.prototype,ChildClass.prototype=new BaseConstructor,ChildClass.__super__=SuperClass.prototype,ChildClass},Utils.Decorate=function(SuperClass,DecoratorClass){var decoratedMethods=getMethods(DecoratorClass),superMethods=getMethods(SuperClass);function DecoratedClass(){var unshift=Array.prototype.unshift,argCount=DecoratorClass.prototype.constructor.length,calledConstructor=SuperClass.prototype.constructor;0<argCount&&(unshift.call(arguments,SuperClass.prototype.constructor),calledConstructor=DecoratorClass.prototype.constructor),calledConstructor.apply(this,arguments)}DecoratorClass.displayName=SuperClass.displayName,DecoratedClass.prototype=new function(){this.constructor=DecoratedClass};for(var m=0;m<superMethods.length;m++){var superMethod=superMethods[m];DecoratedClass.prototype[superMethod]=SuperClass.prototype[superMethod]}for(var d=0;d<decoratedMethods.length;d++){var decoratedMethod=decoratedMethods[d];DecoratedClass.prototype[decoratedMethod]=(methodName=>{var originalMethod=function(){},decoratedMethod=(methodName in DecoratedClass.prototype&&(originalMethod=DecoratedClass.prototype[methodName]),DecoratorClass.prototype[methodName]);return function(){return Array.prototype.unshift.call(arguments,originalMethod),decoratedMethod.apply(this,arguments)}})(decoratedMethod)}return DecoratedClass};function Observable(){this.listeners={}}Observable.prototype.on=function(event,callback){this.listeners=this.listeners||{},event in this.listeners?this.listeners[event].push(callback):this.listeners[event]=[callback]},Observable.prototype.trigger=function(event){var slice=Array.prototype.slice,params=slice.call(arguments,1);this.listeners=this.listeners||{},0===(params=null==params?[]:params).length&&params.push({}),(params[0]._type=event)in this.listeners&&this.invoke(this.listeners[event],slice.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},Observable.prototype.invoke=function(listeners,params){for(var i=0,len=listeners.length;i<len;i++)listeners[i].apply(this,params)},Utils.Observable=Observable,Utils.generateChars=function(length){for(var chars="",i=0;i<length;i++)chars+=Math.floor(36*Math.random()).toString(36);return chars},Utils.bind=function(func,context){return function(){func.apply(context,arguments)}},Utils._convertData=function(data){for(var originalKey in data){var keys=originalKey.split("-"),dataLevel=data;if(1!==keys.length){for(var k=0;k<keys.length;k++){var key=keys[k];(key=key.substring(0,1).toLowerCase()+key.substring(1))in dataLevel||(dataLevel[key]={}),k==keys.length-1&&(dataLevel[key]=data[originalKey]),dataLevel=dataLevel[key]}delete data[originalKey]}}return data},Utils.hasScroll=function(index,el){var $el=$(el),overflowX=el.style.overflowX,overflowY=el.style.overflowY;return(overflowX!==overflowY||"hidden"!==overflowY&&"visible"!==overflowY)&&("scroll"===overflowX||"scroll"===overflowY||$el.innerHeight()<el.scrollHeight||$el.innerWidth()<el.scrollWidth)},Utils.escapeMarkup=function(markup){var replaceMap={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof markup?markup:String(markup).replace(/[&<>"'\/\\]/g,function(match){return replaceMap[match]})},Utils.__cache={};var id=0;return Utils.GetUniqueElementId=function(element){var select2Id=element.getAttribute("data-select2-id");return null==select2Id&&(select2Id=element.id?"select2-data-"+element.id:"select2-data-"+(++id).toString()+"-"+Utils.generateChars(4),element.setAttribute("data-select2-id",select2Id)),select2Id},Utils.StoreData=function(element,name,value){element=Utils.GetUniqueElementId(element);Utils.__cache[element]||(Utils.__cache[element]={}),Utils.__cache[element][name]=value},Utils.GetData=function(element,name){var id=Utils.GetUniqueElementId(element);return name?Utils.__cache[id]&&null!=Utils.__cache[id][name]?Utils.__cache[id][name]:$(element).data(name):Utils.__cache[id]},Utils.RemoveData=function(element){var id=Utils.GetUniqueElementId(element);null!=Utils.__cache[id]&&delete Utils.__cache[id],element.removeAttribute("data-select2-id")},Utils.copyNonInternalCssClasses=function(dest,src){var destinationClasses=(destinationClasses=dest.getAttribute("class").trim().split(/\s+/)).filter(function(clazz){return 0===clazz.indexOf("select2-")}),src=(src=src.getAttribute("class").trim().split(/\s+/)).filter(function(clazz){return 0!==clazz.indexOf("select2-")}),destinationClasses=destinationClasses.concat(src);dest.setAttribute("class",destinationClasses.join(" "))},Utils}),S2.define("select2/results",["jquery","./utils"],function($,Utils){function Results($element,options,dataAdapter){this.$element=$element,this.data=dataAdapter,this.options=options,Results.__super__.constructor.call(this)}return Utils.Extend(Results,Utils.Observable),Results.prototype.render=function(){var $results=$('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&$results.attr("aria-multiselectable","true"),this.$results=$results},Results.prototype.clear=function(){this.$results.empty()},Results.prototype.displayMessage=function(params){var escapeMarkup=this.options.get("escapeMarkup"),$message=(this.clear(),this.hideLoading(),$('<li role="alert" aria-live="assertive" class="select2-results__option"></li>')),message=this.options.get("translations").get(params.message);$message.append(escapeMarkup(message(params.args))),$message[0].className+=" select2-results__message",this.$results.append($message)},Results.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},Results.prototype.append=function(data){this.hideLoading();var $options=[];if(null==data.results||0===data.results.length)0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"});else{data.results=this.sort(data.results);for(var d=0;d<data.results.length;d++){var item=data.results[d],item=this.option(item);$options.push(item)}this.$results.append($options)}},Results.prototype.position=function($results,$dropdown){$dropdown.find(".select2-results").append($results)},Results.prototype.sort=function(data){return this.options.get("sorter")(data)},Results.prototype.highlightFirstItem=function(){var $options=this.$results.find(".select2-results__option--selectable"),$selected=$options.filter(".select2-results__option--selected");(0<$selected.length?$selected:$options).first().trigger("mouseenter"),this.ensureHighlightVisible()},Results.prototype.setClasses=function(){var self=this;this.data.current(function(selected){var selectedIds=selected.map(function(s){return s.id.toString()});self.$results.find(".select2-results__option--selectable").each(function(){var $option=$(this),item=Utils.GetData(this,"data"),id=""+item.id;null!=item.element&&item.element.selected||null==item.element&&-1<selectedIds.indexOf(id)?(this.classList.add("select2-results__option--selected"),$option.attr("aria-selected","true")):(this.classList.remove("select2-results__option--selected"),$option.attr("aria-selected","false"))})})},Results.prototype.showLoading=function(params){this.hideLoading();params={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(params)},params=this.option(params);params.className+=" loading-results",this.$results.prepend(params)},Results.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},Results.prototype.option=function(data){var attr,option=document.createElement("li"),attrs=(option.classList.add("select2-results__option"),option.classList.add("select2-results__option--selectable"),{role:"option"}),matches=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(attr in(null!=data.element&&matches.call(data.element,":disabled")||null==data.element&&data.disabled)&&(attrs["aria-disabled"]="true",option.classList.remove("select2-results__option--selectable"),option.classList.add("select2-results__option--disabled")),null==data.id&&option.classList.remove("select2-results__option--selectable"),null!=data._resultId&&(option.id=data._resultId),data.title&&(option.title=data.title),data.children&&(attrs.role="group",attrs["aria-label"]=data.text,option.classList.remove("select2-results__option--selectable"),option.classList.add("select2-results__option--group")),attrs)option.setAttribute(attr,attrs[attr]);if(data.children){for(var matches=$(option),label=document.createElement("strong"),$children=(label.className="select2-results__group",this.template(data,label),[]),c=0;c<data.children.length;c++){var child=data.children[c],child=this.option(child);$children.push(child)}var $childrenContainer=$("<ul></ul>",{class:"select2-results__options select2-results__options--nested",role:"none"});$childrenContainer.append($children),matches.append(label),matches.append($childrenContainer)}else this.template(data,option);return Utils.StoreData(option,"data",data),option},Results.prototype.bind=function(container,$container){var self=this,id=container.id+"-results";this.$results.attr("id",id),container.on("results:all",function(params){self.clear(),self.append(params.data),container.isOpen()&&(self.setClasses(),self.highlightFirstItem())}),container.on("results:append",function(params){self.append(params.data),container.isOpen()&&self.setClasses()}),container.on("query",function(params){self.hideMessages(),self.showLoading(params)}),container.on("select",function(){container.isOpen()&&(self.setClasses(),self.options.get("scrollAfterSelect"))&&self.highlightFirstItem()}),container.on("unselect",function(){container.isOpen()&&(self.setClasses(),self.options.get("scrollAfterSelect"))&&self.highlightFirstItem()}),container.on("open",function(){self.$results.attr("aria-expanded","true"),self.$results.attr("aria-hidden","false"),self.setClasses(),self.ensureHighlightVisible()}),container.on("close",function(){self.$results.attr("aria-expanded","false"),self.$results.attr("aria-hidden","true"),self.$results.removeAttr("aria-activedescendant")}),container.on("results:toggle",function(){var $highlighted=self.getHighlightedResults();0!==$highlighted.length&&$highlighted.trigger("mouseup")}),container.on("results:select",function(){var data,$highlighted=self.getHighlightedResults();0!==$highlighted.length&&(data=Utils.GetData($highlighted[0],"data"),$highlighted.hasClass("select2-results__option--selected")?self.trigger("close",{}):self.trigger("select",{data:data}))}),container.on("results:previous",function(){var nextOffset,$highlighted=self.getHighlightedResults(),$options=self.$results.find(".select2-results__option--selectable"),currentIndex=$options.index($highlighted);currentIndex<=0||(currentIndex=currentIndex-1,0===$highlighted.length&&(currentIndex=0),($highlighted=$options.eq(currentIndex)).trigger("mouseenter"),$options=self.$results.offset().top,$highlighted=$highlighted.offset().top,nextOffset=self.$results.scrollTop()+($highlighted-$options),0===currentIndex?self.$results.scrollTop(0):$highlighted-$options<0&&self.$results.scrollTop(nextOffset))}),container.on("results:next",function(){var currentOffset,nextOffset,$highlighted=self.getHighlightedResults(),$options=self.$results.find(".select2-results__option--selectable"),$highlighted=$options.index($highlighted)+1;$highlighted>=$options.length||(($options=$options.eq($highlighted)).trigger("mouseenter"),currentOffset=self.$results.offset().top+self.$results.outerHeight(!1),$options=$options.offset().top+$options.outerHeight(!1),nextOffset=self.$results.scrollTop()+$options-currentOffset,0===$highlighted?self.$results.scrollTop(0):currentOffset<$options&&self.$results.scrollTop(nextOffset))}),container.on("results:focus",function(params){params.element[0].classList.add("select2-results__option--highlighted"),params.element[0].setAttribute("aria-selected","true")}),container.on("results:message",function(params){self.displayMessage(params)}),$.fn.mousewheel&&this.$results.on("mousewheel",function(e){var top=self.$results.scrollTop(),bottom=self.$results.get(0).scrollHeight-top+e.deltaY,top=0<e.deltaY&&top-e.deltaY<=0,bottom=e.deltaY<0&&bottom<=self.$results.height();top?(self.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):bottom&&(self.$results.scrollTop(self.$results.get(0).scrollHeight-self.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option--selectable",function(evt){var $this=$(this),data=Utils.GetData(this,"data");$this.hasClass("select2-results__option--selected")?self.options.get("multiple")?self.trigger("unselect",{originalEvent:evt,data:data}):self.trigger("close",{}):self.trigger("select",{originalEvent:evt,data:data})}),this.$results.on("mouseenter",".select2-results__option--selectable",function(evt){var data=Utils.GetData(this,"data");self.getHighlightedResults().removeClass("select2-results__option--highlighted").attr("aria-selected","false"),self.trigger("results:focus",{data:data,element:$(this)})})},Results.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},Results.prototype.destroy=function(){this.$results.remove()},Results.prototype.ensureHighlightVisible=function(){var currentIndex,currentOffset,nextOffset,nextTop,$highlighted=this.getHighlightedResults();0!==$highlighted.length&&(currentIndex=this.$results.find(".select2-results__option--selectable").index($highlighted),currentOffset=this.$results.offset().top,nextTop=$highlighted.offset().top,nextOffset=this.$results.scrollTop()+(nextTop-currentOffset),nextTop=nextTop-currentOffset,nextOffset-=2*$highlighted.outerHeight(!1),currentIndex<=2?this.$results.scrollTop(0):(nextTop>this.$results.outerHeight()||nextTop<0)&&this.$results.scrollTop(nextOffset))},Results.prototype.template=function(result,container){var template=this.options.get("templateResult"),escapeMarkup=this.options.get("escapeMarkup"),template=template(result,container);null==template?container.style.display="none":"string"==typeof template?container.innerHTML=escapeMarkup(template):$(container).append(template)},Results}),S2.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),S2.define("select2/selection/base",["jquery","../utils","../keys"],function($,Utils,KEYS){function BaseSelection($element,options){this.$element=$element,this.options=options,BaseSelection.__super__.constructor.call(this)}return Utils.Extend(BaseSelection,Utils.Observable),BaseSelection.prototype.render=function(){var $selection=$('<span class="select2-selection" role="combobox"  aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=Utils.GetData(this.$element[0],"old-tabindex")?this._tabindex=Utils.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),$selection.attr("title",this.$element.attr("title")),$selection.attr("tabindex",this._tabindex),$selection.attr("aria-disabled","false"),this.$selection=$selection},BaseSelection.prototype.bind=function(container,$container){var self=this,resultsId=container.id+"-results";this.container=container,this.$selection.on("focus",function(evt){self.trigger("focus",evt)}),this.$selection.on("blur",function(evt){self._handleBlur(evt)}),this.$selection.on("keydown",function(evt){self.trigger("keypress",evt),evt.which===KEYS.SPACE&&evt.preventDefault()}),container.on("results:focus",function(params){self.$selection.attr("aria-activedescendant",params.data._resultId)}),container.on("selection:update",function(params){self.update(params.data)}),container.on("open",function(){self.$selection.attr("aria-expanded","true"),self.$selection.attr("aria-owns",resultsId),self._attachCloseHandler(container)}),container.on("close",function(){self.$selection.attr("aria-expanded","false"),self.$selection.removeAttr("aria-activedescendant"),self.$selection.removeAttr("aria-owns"),self.$selection.trigger("focus"),self._detachCloseHandler(container)}),container.on("enable",function(){self.$selection.attr("tabindex",self._tabindex),self.$selection.attr("aria-disabled","false")}),container.on("disable",function(){self.$selection.attr("tabindex","-1"),self.$selection.attr("aria-disabled","true")})},BaseSelection.prototype._handleBlur=function(evt){var self=this;window.setTimeout(function(){document.activeElement==self.$selection[0]||$.contains(self.$selection[0],document.activeElement)||self.trigger("blur",evt)},1)},BaseSelection.prototype._attachCloseHandler=function(container){$(document.body).on("mousedown.select2."+container.id,function(e){var $select=$(e.target).closest(".select2");$(".select2.select2-container--open").each(function(){this!=$select[0]&&Utils.GetData(this,"element").select2("close")})})},BaseSelection.prototype._detachCloseHandler=function(container){$(document.body).off("mousedown.select2."+container.id)},BaseSelection.prototype.position=function($selection,$container){$container.find(".selection").append($selection)},BaseSelection.prototype.destroy=function(){this._detachCloseHandler(this.container)},BaseSelection.prototype.update=function(data){throw new Error("The `update` method must be defined in child classes.")},BaseSelection.prototype.isEnabled=function(){return!this.isDisabled()},BaseSelection.prototype.isDisabled=function(){return this.options.get("disabled")},BaseSelection}),S2.define("select2/selection/single",["jquery","./base","../utils","../keys"],function($,BaseSelection,Utils,KEYS){function SingleSelection(){SingleSelection.__super__.constructor.apply(this,arguments)}return Utils.Extend(SingleSelection,BaseSelection),SingleSelection.prototype.render=function(){var $selection=SingleSelection.__super__.render.call(this);return $selection[0].classList.add("select2-selection--single"),$selection.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),$selection},SingleSelection.prototype.bind=function(container,$container){var self=this,id=(SingleSelection.__super__.bind.apply(this,arguments),container.id+"-container");this.$selection.find(".select2-selection__rendered").attr("id",id).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",id),this.$selection.attr("aria-controls",id),this.$selection.on("mousedown",function(evt){1===evt.which&&self.trigger("toggle",{originalEvent:evt})}),this.$selection.on("focus",function(evt){}),this.$selection.on("blur",function(evt){}),container.on("focus",function(evt){container.isOpen()||self.$selection.trigger("focus")})},SingleSelection.prototype.clear=function(){var $rendered=this.$selection.find(".select2-selection__rendered");$rendered.empty(),$rendered.removeAttr("title")},SingleSelection.prototype.display=function(data,container){var template=this.options.get("templateSelection");return this.options.get("escapeMarkup")(template(data,container))},SingleSelection.prototype.selectionContainer=function(){return $("<span></span>")},SingleSelection.prototype.update=function(data){var $rendered,formatted;0===data.length?this.clear():(data=data[0],$rendered=this.$selection.find(".select2-selection__rendered"),formatted=this.display(data,$rendered),$rendered.empty().append(formatted),(formatted=data.title||data.text)?$rendered.attr("title",formatted):$rendered.removeAttr("title"))},SingleSelection}),S2.define("select2/selection/multiple",["jquery","./base","../utils"],function($,BaseSelection,Utils){function MultipleSelection($element,options){MultipleSelection.__super__.constructor.apply(this,arguments)}return Utils.Extend(MultipleSelection,BaseSelection),MultipleSelection.prototype.render=function(){var $selection=MultipleSelection.__super__.render.call(this);return $selection[0].classList.add("select2-selection--multiple"),$selection.html('<ul class="select2-selection__rendered"></ul>'),$selection},MultipleSelection.prototype.bind=function(container,$container){var self=this,container=(MultipleSelection.__super__.bind.apply(this,arguments),container.id+"-container");this.$selection.find(".select2-selection__rendered").attr("id",container),this.$selection.on("click",function(evt){self.trigger("toggle",{originalEvent:evt})}),this.$selection.on("click",".select2-selection__choice__remove",function(evt){var $selection;self.isDisabled()||($selection=$(this).parent(),$selection=Utils.GetData($selection[0],"data"),self.trigger("unselect",{originalEvent:evt,data:$selection}))}),this.$selection.on("keydown",".select2-selection__choice__remove",function(evt){self.isDisabled()||evt.stopPropagation()})},MultipleSelection.prototype.clear=function(){var $rendered=this.$selection.find(".select2-selection__rendered");$rendered.empty(),$rendered.removeAttr("title")},MultipleSelection.prototype.display=function(data,container){var template=this.options.get("templateSelection");return this.options.get("escapeMarkup")(template(data,container))},MultipleSelection.prototype.selectionContainer=function(){return $('<li class="select2-selection__choice"><button type="button" class="select2-selection__choice__remove" tabindex="-1"><span aria-hidden="true">&times;</span></button><span class="select2-selection__choice__display"></span></li>')},MultipleSelection.prototype.update=function(data){if(this.clear(),0!==data.length){for(var $selections=[],selectionIdPrefix=this.$selection.find(".select2-selection__rendered").attr("id")+"-choice-",d=0;d<data.length;d++){var selection=data[d],$selection=this.selectionContainer(),formatted=this.display(selection,$selection),selectionId=selectionIdPrefix+Utils.generateChars(4)+"-",formatted=(selection.id?selectionId+=selection.id:selectionId+=Utils.generateChars(4),$selection.find(".select2-selection__choice__display").append(formatted).attr("id",selectionId),selection.title||selection.text),formatted=(formatted&&$selection.attr("title",formatted),this.options.get("translations").get("removeItem")),$remove=$selection.find(".select2-selection__choice__remove");$remove.attr("title",formatted()),$remove.attr("aria-label",formatted()),$remove.attr("aria-describedby",selectionId),Utils.StoreData($selection[0],"data",selection),$selections.push($selection)}this.$selection.find(".select2-selection__rendered").append($selections)}},MultipleSelection}),S2.define("select2/selection/placeholder",[],function(){function Placeholder(decorated,$element,options){this.placeholder=this.normalizePlaceholder(options.get("placeholder")),decorated.call(this,$element,options)}return Placeholder.prototype.normalizePlaceholder=function(_,placeholder){return placeholder="string"==typeof placeholder?{id:"",text:placeholder}:placeholder},Placeholder.prototype.createPlaceholder=function(decorated,placeholder){var $placeholder=this.selectionContainer(),placeholder=($placeholder.html(this.display(placeholder)),$placeholder[0].classList.add("select2-selection__placeholder"),$placeholder[0].classList.remove("select2-selection__choice"),placeholder.title||placeholder.text||$placeholder.text());return this.$selection.find(".select2-selection__rendered").attr("title",placeholder),$placeholder},Placeholder.prototype.update=function(decorated,data){var singlePlaceholder=1==data.length&&data[0].id!=this.placeholder.id;if(1<data.length||singlePlaceholder)return decorated.call(this,data);this.clear();singlePlaceholder=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(singlePlaceholder)},Placeholder}),S2.define("select2/selection/allowClear",["jquery","../keys","../utils"],function($,KEYS,Utils){function AllowClear(){}return AllowClear.prototype.bind=function(decorated,container,$container){var self=this;decorated.call(this,container,$container),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(evt){self._handleClear(evt)}),container.on("keypress",function(evt){self._handleKeyboardClear(evt,container)})},AllowClear.prototype._handleClear=function(_,evt){if(!this.isDisabled()){var $clear=this.$selection.find(".select2-selection__clear");if(0!==$clear.length){evt.stopPropagation();var data=Utils.GetData($clear[0],"data"),previousVal=this.$element.val(),unselectData=(this.$element.val(this.placeholder.id),{data:data});if(this.trigger("clear",unselectData),unselectData.prevented)this.$element.val(previousVal);else{for(var d=0;d<data.length;d++)if(unselectData={data:data[d]},this.trigger("unselect",unselectData),unselectData.prevented)return void this.$element.val(previousVal);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},AllowClear.prototype._handleKeyboardClear=function(_,evt,container){container.isOpen()||evt.which!=KEYS.DELETE&&evt.which!=KEYS.BACKSPACE||this._handleClear(evt)},AllowClear.prototype.update=function(decorated,data){var removeAll,$remove;decorated.call(this,data),this.$selection.find(".select2-selection__clear").remove(),this.$selection[0].classList.remove("select2-selection--clearable"),0<this.$selection.find(".select2-selection__placeholder").length||0===data.length||(decorated=this.$selection.find(".select2-selection__rendered").attr("id"),removeAll=this.options.get("translations").get("removeAllItems"),($remove=$('<button type="button" class="select2-selection__clear" tabindex="-1"><span aria-hidden="true">&times;</span></button>')).attr("title",removeAll()),$remove.attr("aria-label",removeAll()),$remove.attr("aria-describedby",decorated),Utils.StoreData($remove[0],"data",data),this.$selection.prepend($remove),this.$selection[0].classList.add("select2-selection--clearable"))},AllowClear}),S2.define("select2/selection/search",["jquery","../utils","../keys"],function($,Utils,KEYS){function Search(decorated,$element,options){decorated.call(this,$element,options)}return Search.prototype.render=function(decorated){var searchLabel=this.options.get("translations").get("search"),$search=$('<span class="select2-search select2-search--inline"><textarea class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" ></textarea></span>'),$search=(this.$searchContainer=$search,this.$search=$search.find("textarea"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",searchLabel()),decorated.call(this));return this._transferTabIndex(),$search.append(this.$searchContainer),$search},Search.prototype.bind=function(decorated,container,$container){var self=this,resultsId=container.id+"-results",selectionId=container.id+"-container",decorated=(decorated.call(this,container,$container),self.$search.attr("aria-describedby",selectionId),container.on("open",function(){self.$search.attr("aria-controls",resultsId),self.$search.trigger("focus")}),container.on("close",function(){self.$search.val(""),self.resizeSearch(),self.$search.removeAttr("aria-controls"),self.$search.removeAttr("aria-activedescendant"),self.$search.trigger("focus")}),container.on("enable",function(){self.$search.prop("disabled",!1),self._transferTabIndex()}),container.on("disable",function(){self.$search.prop("disabled",!0)}),container.on("focus",function(evt){self.$search.trigger("focus")}),container.on("results:focus",function(params){params.data._resultId?self.$search.attr("aria-activedescendant",params.data._resultId):self.$search.removeAttr("aria-activedescendant")}),this.$selection.on("focusin",".select2-search--inline",function(evt){self.trigger("focus",evt)}),this.$selection.on("focusout",".select2-search--inline",function(evt){self._handleBlur(evt)}),this.$selection.on("keydown",".select2-search--inline",function(evt){var $previousChoice;evt.stopPropagation(),self.trigger("keypress",evt),self._keyUpPrevented=evt.isDefaultPrevented(),evt.which===KEYS.BACKSPACE&&""===self.$search.val()&&0<($previousChoice=self.$selection.find(".select2-selection__choice").last()).length&&($previousChoice=Utils.GetData($previousChoice[0],"data"),self.searchRemoveChoice($previousChoice),evt.preventDefault())}),this.$selection.on("click",".select2-search--inline",function(evt){self.$search.val()&&evt.stopPropagation()}),document.documentMode),disableInputEvents=decorated&&decorated<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(evt){disableInputEvents?self.$selection.off("input.search input.searchcheck"):self.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(evt){var key;disableInputEvents&&"input"===evt.type?self.$selection.off("input.search input.searchcheck"):(key=evt.which)!=KEYS.SHIFT&&key!=KEYS.CTRL&&key!=KEYS.ALT&&key!=KEYS.TAB&&self.handleSearch(evt)})},Search.prototype._transferTabIndex=function(decorated){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},Search.prototype.createPlaceholder=function(decorated,placeholder){this.$search.attr("placeholder",placeholder.text)},Search.prototype.update=function(decorated,data){var searchHadFocus=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),decorated.call(this,data),this.resizeSearch(),searchHadFocus&&this.$search.trigger("focus")},Search.prototype.handleSearch=function(){var input;this.resizeSearch(),this._keyUpPrevented||(input=this.$search.val(),this.trigger("query",{term:input})),this._keyUpPrevented=!1},Search.prototype.searchRemoveChoice=function(decorated,item){this.trigger("unselect",{data:item}),this.$search.val(item.text),this.handleSearch()},Search.prototype.resizeSearch=function(){this.$search.css("width","25px");var width="100%";""===this.$search.attr("placeholder")&&(width=.75*(this.$search.val().length+1)+"em"),this.$search.css("width",width)},Search}),S2.define("select2/selection/selectionCss",["../utils"],function(Utils){function SelectionCSS(){}return SelectionCSS.prototype.render=function(decorated){var decorated=decorated.call(this),selectionCssClass=this.options.get("selectionCssClass")||"";return-1!==selectionCssClass.indexOf(":all:")&&(selectionCssClass=selectionCssClass.replace(":all:",""),Utils.copyNonInternalCssClasses(decorated[0],this.$element[0])),decorated.addClass(selectionCssClass),decorated},SelectionCSS}),S2.define("select2/selection/eventRelay",["jquery"],function($){function EventRelay(){}return EventRelay.prototype.bind=function(decorated,container,$container){var self=this,relayEvents=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],preventableEvents=["opening","closing","selecting","unselecting","clearing"];decorated.call(this,container,$container),container.on("*",function(name,params){var evt;-1!==relayEvents.indexOf(name)&&(evt=$.Event("select2:"+name,{params:params=params||{}}),self.$element.trigger(evt),-1!==preventableEvents.indexOf(name))&&(params.prevented=evt.isDefaultPrevented())})},EventRelay}),S2.define("select2/translation",["jquery","require"],function($,require){function Translation(dict){this.dict=dict||{}}return Translation.prototype.all=function(){return this.dict},Translation.prototype.get=function(key){return this.dict[key]},Translation.prototype.extend=function(translation){this.dict=$.extend({},translation.all(),this.dict)},Translation._cache={},Translation.loadPath=function(path){var translations;return path in Translation._cache||(translations=require(path),Translation._cache[path]=translations),new Translation(Translation._cache[path])},Translation}),S2.define("select2/diacritics",[],function(){return{"Ⓐ":"A","Ａ":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","Ｂ":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","Ｃ":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","Ｄ":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","Ǳ":"DZ","Ǆ":"DZ","ǲ":"Dz","ǅ":"Dz","Ⓔ":"E","Ｅ":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","Ｆ":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","Ｇ":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","Ｈ":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","Ｉ":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","Ｊ":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","Ｋ":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","Ｌ":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","Ǉ":"LJ","ǈ":"Lj","Ⓜ":"M","Ｍ":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","Ｎ":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","Ǌ":"NJ","ǋ":"Nj","Ⓞ":"O","Ｏ":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Œ":"OE","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","Ｐ":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Ｑ":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","Ｒ":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","Ｓ":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","Ｔ":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","Ｕ":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","Ｖ":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","Ｗ":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","Ｘ":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Ｙ":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Ｚ":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","ａ":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","ｂ":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","ｃ":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","ｄ":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","ǳ":"dz","ǆ":"dz","ⓔ":"e","ｅ":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","ｆ":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","ｇ":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","ｈ":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","ｉ":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","ｊ":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","ｋ":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","ｌ":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","ǉ":"lj","ⓜ":"m","ｍ":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","ｎ":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ŉ":"n","ꞑ":"n","ꞥ":"n","ǌ":"nj","ⓞ":"o","ｏ":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","œ":"oe","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","ｐ":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","ｑ":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","ｒ":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","ｓ":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","ｔ":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","ｕ":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","ｖ":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","ｗ":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","ｘ":"x","ẋ":"x","ẍ":"x","ⓨ":"y","ｙ":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","ｚ":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"}}),S2.define("select2/data/base",["../utils"],function(Utils){function BaseAdapter($element,options){BaseAdapter.__super__.constructor.call(this)}return Utils.Extend(BaseAdapter,Utils.Observable),BaseAdapter.prototype.current=function(callback){throw new Error("The `current` method must be defined in child classes.")},BaseAdapter.prototype.query=function(params,callback){throw new Error("The `query` method must be defined in child classes.")},BaseAdapter.prototype.bind=function(container,$container){},BaseAdapter.prototype.destroy=function(){},BaseAdapter.prototype.generateResultId=function(container,data){container=container.id+"-result-";return container+=Utils.generateChars(4),null!=data.id?container+="-"+data.id.toString():container+="-"+Utils.generateChars(4),container},BaseAdapter}),S2.define("select2/data/select",["./base","../utils","jquery"],function(BaseAdapter,Utils,$){function SelectAdapter($element,options){this.$element=$element,this.options=options,SelectAdapter.__super__.constructor.call(this)}return Utils.Extend(SelectAdapter,BaseAdapter),SelectAdapter.prototype.current=function(callback){var self=this;callback(Array.prototype.map.call(this.$element[0].querySelectorAll(":checked"),function(selectedElement){return self.item($(selectedElement))}))},SelectAdapter.prototype.select=function(data){var val,self=this;data.selected=!0,null!=data.element&&"option"===data.element.tagName.toLowerCase()?(data.element.selected=!0,this.$element.trigger("input").trigger("change")):this.$element.prop("multiple")?this.current(function(currentData){var val=[];(data=[data]).push.apply(data,currentData);for(var d=0;d<data.length;d++){var id=data[d].id;-1===val.indexOf(id)&&val.push(id)}self.$element.val(val),self.$element.trigger("input").trigger("change")}):(val=data.id,this.$element.val(val),this.$element.trigger("input").trigger("change"))},SelectAdapter.prototype.unselect=function(data){var self=this;this.$element.prop("multiple")&&(data.selected=!1,null!=data.element&&"option"===data.element.tagName.toLowerCase()?(data.element.selected=!1,this.$element.trigger("input").trigger("change")):this.current(function(currentData){for(var val=[],d=0;d<currentData.length;d++){var id=currentData[d].id;id!==data.id&&-1===val.indexOf(id)&&val.push(id)}self.$element.val(val),self.$element.trigger("input").trigger("change")}))},SelectAdapter.prototype.bind=function(container,$container){var self=this;(this.container=container).on("select",function(params){self.select(params.data)}),container.on("unselect",function(params){self.unselect(params.data)})},SelectAdapter.prototype.destroy=function(){this.$element.find("*").each(function(){Utils.RemoveData(this)})},SelectAdapter.prototype.query=function(params,callback){var data=[],self=this;this.$element.children().each(function(){var $option;"option"!==this.tagName.toLowerCase()&&"optgroup"!==this.tagName.toLowerCase()||($option=$(this),$option=self.item($option),null!==($option=self.matches(params,$option))&&data.push($option))}),callback({results:data})},SelectAdapter.prototype.addOptions=function($options){this.$element.append($options)},SelectAdapter.prototype.option=function(data){data.children?(option=document.createElement("optgroup")).label=data.text:void 0!==(option=document.createElement("option")).textContent?option.textContent=data.text:option.innerText=data.text,void 0!==data.id&&(option.value=data.id),data.disabled&&(option.disabled=!0),data.selected&&(option.selected=!0),data.title&&(option.title=data.title);var option,data=this._normalizeItem(data);return data.element=option,Utils.StoreData(option,"data",data),$(option)},SelectAdapter.prototype.item=function($option){var data={};if(null==(data=Utils.GetData($option[0],"data"))){var option=$option[0];if("option"===option.tagName.toLowerCase())data={id:$option.val(),text:$option.text(),disabled:$option.prop("disabled"),selected:$option.prop("selected"),title:$option.prop("title")};else if("optgroup"===option.tagName.toLowerCase()){for(var data={text:$option.prop("label"),children:[],title:$option.prop("title")},$children=$option.children("option"),children=[],c=0;c<$children.length;c++){var $child=$($children[c]),$child=this.item($child);children.push($child)}data.children=children}(data=this._normalizeItem(data)).element=$option[0],Utils.StoreData($option[0],"data",data)}return data},SelectAdapter.prototype._normalizeItem=function(item){item!==Object(item)&&(item={id:item,text:item});return null!=(item=$.extend({},{text:""},item)).id&&(item.id=item.id.toString()),null!=item.text&&(item.text=item.text.toString()),null==item._resultId&&item.id&&null!=this.container&&(item._resultId=this.generateResultId(this.container,item)),$.extend({},{selected:!1,disabled:!1},item)},SelectAdapter.prototype.matches=function(params,data){return this.options.get("matcher")(params,data)},SelectAdapter}),S2.define("select2/data/array",["./select","../utils","jquery"],function(SelectAdapter,Utils,$){function ArrayAdapter($element,options){this._dataToConvert=options.get("data")||[],ArrayAdapter.__super__.constructor.call(this,$element,options)}return Utils.Extend(ArrayAdapter,SelectAdapter),ArrayAdapter.prototype.bind=function(container,$container){ArrayAdapter.__super__.bind.call(this,container,$container),this.addOptions(this.convertToOptions(this._dataToConvert))},ArrayAdapter.prototype.select=function(data){var $option;0===this.$element.find("option").filter(function(i,elm){return elm.value==data.id.toString()}).length&&($option=this.option(data),this.addOptions($option)),ArrayAdapter.__super__.select.call(this,data)},ArrayAdapter.prototype.convertToOptions=function(data){var self=this,$existing=this.$element.find("option"),existingIds=$existing.map(function(){return self.item($(this)).id}).get(),$options=[];for(var d=0;d<data.length;d++){var $existingOption,existingData,item=this._normalizeItem(data[d]);0<=existingIds.indexOf(item.id)?($existingOption=$existing.filter((item=>function(){return $(this).val()==item.id})(item)),existingData=this.item($existingOption),existingData=$.extend(!0,{},item,existingData),existingData=this.option(existingData),$existingOption.replaceWith(existingData)):($existingOption=this.option(item),item.children&&(existingData=this.convertToOptions(item.children),$existingOption.append(existingData)),$options.push($existingOption))}return $options},ArrayAdapter}),S2.define("select2/data/ajax",["./array","../utils","jquery"],function(ArrayAdapter,Utils,$){function AjaxAdapter($element,options){this.ajaxOptions=this._applyDefaults(options.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),AjaxAdapter.__super__.constructor.call(this,$element,options)}return Utils.Extend(AjaxAdapter,ArrayAdapter),AjaxAdapter.prototype._applyDefaults=function(options){return $.extend({},{data:function(params){return $.extend({},params,{q:params.term})},transport:function(params,success,failure){params=$.ajax(params);return params.then(success),params.fail(failure),params}},options,!0)},AjaxAdapter.prototype.processResults=function(results){return results},AjaxAdapter.prototype.query=function(params,callback){var self=this,options=(null!=this._request&&("function"==typeof this._request.abort&&this._request.abort(),this._request=null),$.extend({type:"GET"},this.ajaxOptions));function request(){var $request=options.transport(options,function(data){data=self.processResults(data,params);self.options.get("debug")&&window.console&&console.error&&(data&&data.results&&Array.isArray(data.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),callback(data)},function(){"status"in $request&&(0===$request.status||"0"===$request.status)||self.trigger("results:message",{message:"errorLoading"})});self._request=$request}"function"==typeof options.url&&(options.url=options.url.call(this.$element,params)),"function"==typeof options.data&&(options.data=options.data.call(this.$element,params)),this.ajaxOptions.delay&&null!=params.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(request,this.ajaxOptions.delay)):request()},AjaxAdapter}),S2.define("select2/data/tags",["jquery"],function($){function Tags(decorated,$element,options){var tags=options.get("tags"),createTag=options.get("createTag"),createTag=(void 0!==createTag&&(this.createTag=createTag),options.get("insertTag"));if(void 0!==createTag&&(this.insertTag=createTag),decorated.call(this,$element,options),Array.isArray(tags))for(var t=0;t<tags.length;t++){var tag=tags[t],tag=this._normalizeItem(tag),tag=this.option(tag);this.$element.append(tag)}}return Tags.prototype.query=function(decorated,params,callback){var self=this;this._removeOldTags(),null==params.term||null!=params.page?decorated.call(this,params,callback):decorated.call(this,params,function wrapper(obj,child){for(var data=obj.results,i=0;i<data.length;i++){var option=data[i],checkChildren=null!=option.children&&!wrapper({results:option.children},!0);if((option.text||"").toUpperCase()===(params.term||"").toUpperCase()||checkChildren)return!child&&(obj.data=data,void callback(obj))}if(child)return!0;var $option,tag=self.createTag(params);null!=tag&&(($option=self.option(tag)).attr("data-select2-tag","true"),self.addOptions([$option]),self.insertTag(data,tag)),obj.results=data,callback(obj)})},Tags.prototype.createTag=function(decorated,params){return null==params.term||""===(params=params.term.trim())?null:{id:params,text:params}},Tags.prototype.insertTag=function(_,data,tag){data.unshift(tag)},Tags.prototype._removeOldTags=function(_){this.$element.find("option[data-select2-tag]").each(function(){this.selected||$(this).remove()})},Tags}),S2.define("select2/data/tokenizer",["jquery"],function($){function Tokenizer(decorated,$element,options){var tokenizer=options.get("tokenizer");void 0!==tokenizer&&(this.tokenizer=tokenizer),decorated.call(this,$element,options)}return Tokenizer.prototype.bind=function(decorated,container,$container){decorated.call(this,container,$container),this.$search=container.dropdown.$search||container.selection.$search||$container.find(".select2-search__field")},Tokenizer.prototype.query=function(decorated,params,callback){var self=this;params.term=params.term||"";var tokenData=this.tokenizer(params,this.options,function(data){var item=self._normalizeItem(data);self.$element.find("option").filter(function(){return $(this).val()===item.id}).length||((data=self.option(item)).attr("data-select2-tag",!0),self._removeOldTags(),self.addOptions([data])),(data=>{self.trigger("select",{data:data})})(item)});tokenData.term!==params.term&&(this.$search.length&&(this.$search.val(tokenData.term),this.$search.trigger("focus")),params.term=tokenData.term),decorated.call(this,params,callback)},Tokenizer.prototype.tokenizer=function(_,params,options,callback){for(var separators=options.get("tokenSeparators")||[],term=params.term,i=0,createTag=this.createTag||function(params){return{id:params.term,text:params.term}};i<term.length;){var termChar=term[i];-1===separators.indexOf(termChar)?i++:(termChar=term.substr(0,i),null==(termChar=createTag($.extend({},params,{term:termChar})))?i++:(callback(termChar),term=term.substr(i+1)||"",i=0))}return{term:term}},Tokenizer}),S2.define("select2/data/minimumInputLength",[],function(){function MinimumInputLength(decorated,$e,options){this.minimumInputLength=options.get("minimumInputLength"),decorated.call(this,$e,options)}return MinimumInputLength.prototype.query=function(decorated,params,callback){params.term=params.term||"",params.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:params.term,params:params}}):decorated.call(this,params,callback)},MinimumInputLength}),S2.define("select2/data/maximumInputLength",[],function(){function MaximumInputLength(decorated,$e,options){this.maximumInputLength=options.get("maximumInputLength"),decorated.call(this,$e,options)}return MaximumInputLength.prototype.query=function(decorated,params,callback){params.term=params.term||"",0<this.maximumInputLength&&params.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:params.term,params:params}}):decorated.call(this,params,callback)},MaximumInputLength}),S2.define("select2/data/maximumSelectionLength",[],function(){function MaximumSelectionLength(decorated,$e,options){this.maximumSelectionLength=options.get("maximumSelectionLength"),decorated.call(this,$e,options)}return MaximumSelectionLength.prototype.bind=function(decorated,container,$container){var self=this;decorated.call(this,container,$container),container.on("select",function(){self._checkIfMaximumSelected()})},MaximumSelectionLength.prototype.query=function(decorated,params,callback){var self=this;this._checkIfMaximumSelected(function(){decorated.call(self,params,callback)})},MaximumSelectionLength.prototype._checkIfMaximumSelected=function(_,successCallback){var self=this;this.current(function(currentData){currentData=null!=currentData?currentData.length:0;0<self.maximumSelectionLength&&currentData>=self.maximumSelectionLength?self.trigger("results:message",{message:"maximumSelected",args:{maximum:self.maximumSelectionLength}}):successCallback&&successCallback()})},MaximumSelectionLength}),S2.define("select2/dropdown",["jquery","./utils"],function($,Utils){function Dropdown($element,options){this.$element=$element,this.options=options,Dropdown.__super__.constructor.call(this)}return Utils.Extend(Dropdown,Utils.Observable),Dropdown.prototype.render=function(){var $dropdown=$('<span class="select2-dropdown"><span class="select2-results"></span></span>');return $dropdown.attr("dir",this.options.get("dir")),this.$dropdown=$dropdown},Dropdown.prototype.bind=function(){},Dropdown.prototype.position=function($dropdown,$container){},Dropdown.prototype.destroy=function(){this.$dropdown.remove()},Dropdown}),S2.define("select2/dropdown/search",["jquery"],function($){function Search(){}return Search.prototype.render=function(decorated){var decorated=decorated.call(this),searchLabel=this.options.get("translations").get("search"),$search=$('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=$search,this.$search=$search.find("input"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",searchLabel()),decorated.prepend($search),decorated},Search.prototype.bind=function(decorated,container,$container){var self=this,resultsId=container.id+"-results";decorated.call(this,container,$container),this.$search.on("keydown",function(evt){self.trigger("keypress",evt),self._keyUpPrevented=evt.isDefaultPrevented()}),this.$search.on("input",function(evt){$(this).off("keyup")}),this.$search.on("keyup input",function(evt){self.handleSearch(evt)}),container.on("open",function(){self.$search.attr("tabindex",0),self.$search.attr("aria-controls",resultsId),self.$search.trigger("focus"),window.setTimeout(function(){self.$search.trigger("focus")},0)}),container.on("close",function(){self.$search.attr("tabindex",-1),self.$search.removeAttr("aria-controls"),self.$search.removeAttr("aria-activedescendant"),self.$search.val(""),self.$search.trigger("blur")}),container.on("focus",function(){container.isOpen()||self.$search.trigger("focus")}),container.on("results:all",function(params){null!=params.query.term&&""!==params.query.term||(self.showSearch(params)?self.$searchContainer[0].classList.remove("select2-search--hide"):self.$searchContainer[0].classList.add("select2-search--hide"))}),container.on("results:focus",function(params){params.data._resultId?self.$search.attr("aria-activedescendant",params.data._resultId):self.$search.removeAttr("aria-activedescendant")})},Search.prototype.handleSearch=function(evt){var input;this._keyUpPrevented||(input=this.$search.val(),this.trigger("query",{term:input})),this._keyUpPrevented=!1},Search.prototype.showSearch=function(_,params){return!0},Search}),S2.define("select2/dropdown/hidePlaceholder",[],function(){function HidePlaceholder(decorated,$element,options,dataAdapter){this.placeholder=this.normalizePlaceholder(options.get("placeholder")),decorated.call(this,$element,options,dataAdapter)}return HidePlaceholder.prototype.append=function(decorated,data){data.results=this.removePlaceholder(data.results),decorated.call(this,data)},HidePlaceholder.prototype.normalizePlaceholder=function(_,placeholder){return placeholder="string"==typeof placeholder?{id:"",text:placeholder}:placeholder},HidePlaceholder.prototype.removePlaceholder=function(_,data){for(var modifiedData=data.slice(0),d=data.length-1;0<=d;d--){var item=data[d];this.placeholder.id===item.id&&modifiedData.splice(d,1)}return modifiedData},HidePlaceholder}),S2.define("select2/dropdown/infiniteScroll",["jquery"],function($){function InfiniteScroll(decorated,$element,options,dataAdapter){this.lastParams={},decorated.call(this,$element,options,dataAdapter),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return InfiniteScroll.prototype.append=function(decorated,data){this.$loadingMore.remove(),this.loading=!1,decorated.call(this,data),this.showLoadingMore(data)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},InfiniteScroll.prototype.bind=function(decorated,container,$container){var self=this;decorated.call(this,container,$container),container.on("query",function(params){self.lastParams=params,self.loading=!0}),container.on("query:append",function(params){self.lastParams=params,self.loading=!0}),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},InfiniteScroll.prototype.loadMoreIfNeeded=function(){var isLoadMoreVisible=$.contains(document.documentElement,this.$loadingMore[0]);!this.loading&&isLoadMoreVisible&&(isLoadMoreVisible=this.$results.offset().top+this.$results.outerHeight(!1),this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)<=isLoadMoreVisible+50)&&this.loadMore()},InfiniteScroll.prototype.loadMore=function(){this.loading=!0;var params=$.extend({},{page:1},this.lastParams);params.page++,this.trigger("query:append",params)},InfiniteScroll.prototype.showLoadingMore=function(_,data){return data.pagination&&data.pagination.more},InfiniteScroll.prototype.createLoadingMore=function(){var $option=$('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),message=this.options.get("translations").get("loadingMore");return $option.html(message(this.lastParams)),$option},InfiniteScroll}),S2.define("select2/dropdown/attachBody",["jquery","../utils"],function($,Utils){function AttachBody(decorated,$element,options){this.$dropdownParent=$(options.get("dropdownParent")||document.body),decorated.call(this,$element,options)}return AttachBody.prototype.bind=function(decorated,container,$container){var self=this;decorated.call(this,container,$container),container.on("open",function(){self._showDropdown(),self._attachPositioningHandler(container),self._bindContainerResultHandlers(container)}),container.on("close",function(){self._hideDropdown(),self._detachPositioningHandler(container)}),this.$dropdownContainer.on("mousedown",function(evt){evt.stopPropagation()})},AttachBody.prototype.destroy=function(decorated){decorated.call(this),this.$dropdownContainer.remove()},AttachBody.prototype.position=function(decorated,$dropdown,$container){$dropdown.attr("class",$container.attr("class")),$dropdown[0].classList.remove("select2"),$dropdown[0].classList.add("select2-container--open"),$dropdown.css({position:"absolute",top:-999999}),this.$container=$container},AttachBody.prototype.render=function(decorated){var $container=$("<span></span>"),decorated=decorated.call(this);return $container.append(decorated),this.$dropdownContainer=$container},AttachBody.prototype._hideDropdown=function(decorated){this.$dropdownContainer.detach()},AttachBody.prototype._bindContainerResultHandlers=function(decorated,container){var self;this._containerResultsHandlersBound||(self=this,container.on("results:all",function(){self._positionDropdown(),self._resizeDropdown()}),container.on("results:append",function(){self._positionDropdown(),self._resizeDropdown()}),container.on("results:message",function(){self._positionDropdown(),self._resizeDropdown()}),container.on("select",function(){self._positionDropdown(),self._resizeDropdown()}),container.on("unselect",function(){self._positionDropdown(),self._resizeDropdown()}),this._containerResultsHandlersBound=!0)},AttachBody.prototype._attachPositioningHandler=function(decorated,container){var self=this,scrollEvent="scroll.select2."+container.id,resizeEvent="resize.select2."+container.id,container="orientationchange.select2."+container.id,$watchers=this.$container.parents().filter(Utils.hasScroll);$watchers.each(function(){Utils.StoreData(this,"select2-scroll-position",{x:$(this).scrollLeft(),y:$(this).scrollTop()})}),$watchers.on(scrollEvent,function(ev){var position=Utils.GetData(this,"select2-scroll-position");$(this).scrollTop(position.y)}),$(window).on(scrollEvent+" "+resizeEvent+" "+container,function(e){self._positionDropdown(),self._resizeDropdown()})},AttachBody.prototype._detachPositioningHandler=function(decorated,container){var scrollEvent="scroll.select2."+container.id,resizeEvent="resize.select2."+container.id,container="orientationchange.select2."+container.id;this.$container.parents().filter(Utils.hasScroll).off(scrollEvent),$(window).off(scrollEvent+" "+resizeEvent+" "+container)},AttachBody.prototype._positionDropdown=function(){var $window=$(window),isCurrentlyAbove=this.$dropdown[0].classList.contains("select2-dropdown--above"),isCurrentlyBelow=this.$dropdown[0].classList.contains("select2-dropdown--below"),newDirection=null,offset=this.$container.offset(),container=(offset.bottom=offset.top+this.$container.outerHeight(!1),{height:this.$container.outerHeight(!1)});container.top=offset.top,container.bottom=offset.top+container.height;var dropdown_height=this.$dropdown.outerHeight(!1),viewport_top=$window.scrollTop(),$window=$window.scrollTop()+$window.height(),viewport_top=viewport_top<offset.top-dropdown_height,$window=$window>offset.bottom+dropdown_height,offset={left:offset.left,top:container.bottom},$offsetParent=this.$dropdownParent,parentOffset=("static"===$offsetParent.css("position")&&($offsetParent=$offsetParent.offsetParent()),{top:0,left:0});($.contains(document.body,$offsetParent[0])||$offsetParent[0].isConnected)&&(parentOffset=$offsetParent.offset()),offset.top-=parentOffset.top,offset.left-=parentOffset.left,isCurrentlyAbove||isCurrentlyBelow||(newDirection="below"),$window||!viewport_top||isCurrentlyAbove?!viewport_top&&$window&&isCurrentlyAbove&&(newDirection="below"):newDirection="above",("above"==newDirection||isCurrentlyAbove&&"below"!==newDirection)&&(offset.top=container.top-parentOffset.top-dropdown_height),null!=newDirection&&(this.$dropdown[0].classList.remove("select2-dropdown--below"),this.$dropdown[0].classList.remove("select2-dropdown--above"),this.$dropdown[0].classList.add("select2-dropdown--"+newDirection),this.$container[0].classList.remove("select2-container--below"),this.$container[0].classList.remove("select2-container--above"),this.$container[0].classList.add("select2-container--"+newDirection)),this.$dropdownContainer.css(offset)},AttachBody.prototype._resizeDropdown=function(){var css={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(css.minWidth=css.width,css.position="relative",css.width="auto"),this.$dropdown.css(css)},AttachBody.prototype._showDropdown=function(decorated){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},AttachBody}),S2.define("select2/dropdown/minimumResultsForSearch",[],function(){function MinimumResultsForSearch(decorated,$element,options,dataAdapter){this.minimumResultsForSearch=options.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),decorated.call(this,$element,options,dataAdapter)}return MinimumResultsForSearch.prototype.showSearch=function(decorated,params){return!(function countResults(data){for(var count=0,d=0;d<data.length;d++){var item=data[d];item.children?count+=countResults(item.children):count++}return count}(params.data.results)<this.minimumResultsForSearch)&&decorated.call(this,params)},MinimumResultsForSearch}),S2.define("select2/dropdown/selectOnClose",["../utils"],function(Utils){function SelectOnClose(){}return SelectOnClose.prototype.bind=function(decorated,container,$container){var self=this;decorated.call(this,container,$container),container.on("close",function(params){self._handleSelectOnClose(params)})},SelectOnClose.prototype._handleSelectOnClose=function(_,params){if(params&&null!=params.originalSelect2Event){params=params.originalSelect2Event;if("select"===params._type||"unselect"===params._type)return}var params=this.getHighlightedResults();params.length<1||null!=(params=Utils.GetData(params[0],"data")).element&&params.element.selected||null==params.element&&params.selected||this.trigger("select",{data:params})},SelectOnClose}),S2.define("select2/dropdown/closeOnSelect",[],function(){function CloseOnSelect(){}return CloseOnSelect.prototype.bind=function(decorated,container,$container){var self=this;decorated.call(this,container,$container),container.on("select",function(evt){self._selectTriggered(evt)}),container.on("unselect",function(evt){self._selectTriggered(evt)})},CloseOnSelect.prototype._selectTriggered=function(_,evt){var originalEvent=evt.originalEvent;originalEvent&&(originalEvent.ctrlKey||originalEvent.metaKey)||this.trigger("close",{originalEvent:originalEvent,originalSelect2Event:evt})},CloseOnSelect}),S2.define("select2/dropdown/dropdownCss",["../utils"],function(Utils){function DropdownCSS(){}return DropdownCSS.prototype.render=function(decorated){var decorated=decorated.call(this),dropdownCssClass=this.options.get("dropdownCssClass")||"";return-1!==dropdownCssClass.indexOf(":all:")&&(dropdownCssClass=dropdownCssClass.replace(":all:",""),Utils.copyNonInternalCssClasses(decorated[0],this.$element[0])),decorated.addClass(dropdownCssClass),decorated},DropdownCSS}),S2.define("select2/dropdown/tagsSearchHighlight",["../utils"],function(Utils){function TagsSearchHighlight(){}return TagsSearchHighlight.prototype.highlightFirstItem=function(decorated){var $options=this.$results.find(".select2-results__option--selectable:not(.select2-results__option--selected)");if(0<$options.length){var $options=$options.first(),firstElement=Utils.GetData($options[0],"data").element;if(firstElement&&firstElement.getAttribute&&"true"===firstElement.getAttribute("data-select2-tag"))return void $options.trigger("mouseenter")}decorated.call(this)},TagsSearchHighlight}),S2.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(args){var args=args.input.length-args.maximum,message="Please delete "+args+" character";return 1!=args&&(message+="s"),message},inputTooShort:function(args){return"Please enter "+(args.minimum-args.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(args){var message="You can only select "+args.maximum+" item";return 1!=args.maximum&&(message+="s"),message},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"},removeItem:function(){return"Remove item"},search:function(){return"Search"}}}),S2.define("select2/defaults",["jquery","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/selectionCss","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./dropdown/dropdownCss","./dropdown/tagsSearchHighlight","./i18n/en"],function($,ResultsList,SingleSelection,MultipleSelection,Placeholder,AllowClear,SelectionSearch,SelectionCSS,EventRelay,Utils,Translation,DIACRITICS,SelectData,ArrayData,AjaxData,Tags,Tokenizer,MinimumInputLength,MaximumInputLength,MaximumSelectionLength,Dropdown,DropdownSearch,HidePlaceholder,InfiniteScroll,AttachBody,MinimumResultsForSearch,SelectOnClose,CloseOnSelect,DropdownCSS,TagsSearchHighlight,EnglishTranslation){function Defaults(){this.reset()}return Defaults.prototype.apply=function(options){null==(options=$.extend(!0,{},this.defaults,options)).dataAdapter&&(null!=options.ajax?options.dataAdapter=AjaxData:null!=options.data?options.dataAdapter=ArrayData:options.dataAdapter=SelectData,0<options.minimumInputLength&&(options.dataAdapter=Utils.Decorate(options.dataAdapter,MinimumInputLength)),0<options.maximumInputLength&&(options.dataAdapter=Utils.Decorate(options.dataAdapter,MaximumInputLength)),0<options.maximumSelectionLength&&(options.dataAdapter=Utils.Decorate(options.dataAdapter,MaximumSelectionLength)),options.tags&&(options.dataAdapter=Utils.Decorate(options.dataAdapter,Tags)),null==options.tokenSeparators&&null==options.tokenizer||(options.dataAdapter=Utils.Decorate(options.dataAdapter,Tokenizer))),null==options.resultsAdapter&&(options.resultsAdapter=ResultsList,null!=options.ajax&&(options.resultsAdapter=Utils.Decorate(options.resultsAdapter,InfiniteScroll)),null!=options.placeholder&&(options.resultsAdapter=Utils.Decorate(options.resultsAdapter,HidePlaceholder)),options.selectOnClose&&(options.resultsAdapter=Utils.Decorate(options.resultsAdapter,SelectOnClose)),options.tags)&&(options.resultsAdapter=Utils.Decorate(options.resultsAdapter,TagsSearchHighlight)),null==options.dropdownAdapter&&(options.multiple?options.dropdownAdapter=Dropdown:(SearchableDropdown=Utils.Decorate(Dropdown,DropdownSearch),options.dropdownAdapter=SearchableDropdown),0!==options.minimumResultsForSearch&&(options.dropdownAdapter=Utils.Decorate(options.dropdownAdapter,MinimumResultsForSearch)),options.closeOnSelect&&(options.dropdownAdapter=Utils.Decorate(options.dropdownAdapter,CloseOnSelect)),null!=options.dropdownCssClass&&(options.dropdownAdapter=Utils.Decorate(options.dropdownAdapter,DropdownCSS)),options.dropdownAdapter=Utils.Decorate(options.dropdownAdapter,AttachBody)),null==options.selectionAdapter&&(options.multiple?options.selectionAdapter=MultipleSelection:options.selectionAdapter=SingleSelection,null!=options.placeholder&&(options.selectionAdapter=Utils.Decorate(options.selectionAdapter,Placeholder)),options.allowClear&&(options.selectionAdapter=Utils.Decorate(options.selectionAdapter,AllowClear)),options.multiple&&(options.selectionAdapter=Utils.Decorate(options.selectionAdapter,SelectionSearch)),null!=options.selectionCssClass&&(options.selectionAdapter=Utils.Decorate(options.selectionAdapter,SelectionCSS)),options.selectionAdapter=Utils.Decorate(options.selectionAdapter,EventRelay)),options.language=this._resolveLanguage(options.language),options.language.push("en");for(var SearchableDropdown,uniqueLanguages=[],l=0;l<options.language.length;l++){var language=options.language[l];-1===uniqueLanguages.indexOf(language)&&uniqueLanguages.push(language)}return options.language=uniqueLanguages,options.translations=this._processTranslations(options.language,options.debug),options},Defaults.prototype.reset=function(){function stripDiacritics(text){return text.replace(/[^\u0000-\u007E]/g,function(a){return DIACRITICS[a]||a})}this.defaults={amdLanguageBase:"./i18n/",autocomplete:"off",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:Utils.escapeMarkup,language:{},matcher:function matcher(params,data){if(null==params.term||""===params.term.trim())return data;if(data.children&&0<data.children.length){for(var match=$.extend(!0,{},data),c=data.children.length-1;0<=c;c--)null==matcher(params,data.children[c])&&match.children.splice(c,1);return 0<match.children.length?match:matcher(params,match)}var original=stripDiacritics(data.text).toUpperCase(),term=stripDiacritics(params.term).toUpperCase();return-1<original.indexOf(term)?data:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(data){return data},templateResult:function(result){return result.text},templateSelection:function(selection){return selection.text},theme:"default",width:"resolve"}},Defaults.prototype.applyFromElement=function(options,$element){var optionLanguage=options.language,defaultLanguage=this.defaults.language,elementLanguage=$element.prop("lang"),$element=$element.closest("[lang]").prop("lang"),elementLanguage=Array.prototype.concat.call(this._resolveLanguage(elementLanguage),this._resolveLanguage(optionLanguage),this._resolveLanguage(defaultLanguage),this._resolveLanguage($element));return options.language=elementLanguage,options},Defaults.prototype._resolveLanguage=function(language){if(!language)return[];if($.isEmptyObject(language))return[];if($.isPlainObject(language))return[language];for(var baseLanguage,languages=Array.isArray(language)?language:[language],resolvedLanguages=[],l=0;l<languages.length;l++)resolvedLanguages.push(languages[l]),"string"==typeof languages[l]&&0<languages[l].indexOf("-")&&(baseLanguage=languages[l].split("-")[0],resolvedLanguages.push(baseLanguage));return resolvedLanguages},Defaults.prototype._processTranslations=function(languages,debug){for(var translations=new Translation,l=0;l<languages.length;l++){var languageData=new Translation,language=languages[l];if("string"==typeof language)try{languageData=Translation.loadPath(language)}catch(e){try{language=this.defaults.amdLanguageBase+language,languageData=Translation.loadPath(language)}catch(ex){debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+language+'" could not be automatically loaded. A fallback will be used instead.')}}else languageData=$.isPlainObject(language)?new Translation(language):language;translations.extend(languageData)}return translations},Defaults.prototype.set=function(key,value){var data={},key=(data[$.camelCase(key)]=value,Utils._convertData(data));$.extend(!0,this.defaults,key)},new Defaults}),S2.define("select2/options",["jquery","./defaults","./utils"],function($,Defaults,Utils){function Options(options,$element){this.options=options,null!=$element&&this.fromElement($element),null!=$element&&(this.options=Defaults.applyFromElement(this.options,$element)),this.options=Defaults.apply(this.options)}return Options.prototype.fromElement=function($e){var excludedData=["select2"],dataset=(null==this.options.multiple&&(this.options.multiple=$e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=$e.prop("disabled")),null==this.options.autocomplete&&$e.prop("autocomplete")&&(this.options.autocomplete=$e.prop("autocomplete")),null==this.options.dir&&($e.prop("dir")?this.options.dir=$e.prop("dir"):$e.closest("[dir]").prop("dir")?this.options.dir=$e.closest("[dir]").prop("dir"):this.options.dir="ltr"),$e.prop("disabled",this.options.disabled),$e.prop("multiple",this.options.multiple),Utils.GetData($e[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),Utils.StoreData($e[0],"data",Utils.GetData($e[0],"select2Tags")),Utils.StoreData($e[0],"tags",!0)),Utils.GetData($e[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),$e.attr("ajax--url",Utils.GetData($e[0],"ajaxUrl")),Utils.StoreData($e[0],"ajax-Url",Utils.GetData($e[0],"ajaxUrl"))),{});function upperCaseLetter(_,letter){return letter.toUpperCase()}for(var attr=0;attr<$e[0].attributes.length;attr++){var dataValue,attributeName=$e[0].attributes[attr].name;"data-"==attributeName.substr(0,"data-".length)&&(attributeName=attributeName.substring("data-".length),dataValue=Utils.GetData($e[0],attributeName),dataset[attributeName.replace(/-([a-z])/g,upperCaseLetter)]=dataValue)}$.fn.jquery&&"1."==$.fn.jquery.substr(0,2)&&$e[0].dataset&&(dataset=$.extend(!0,{},$e[0].dataset,dataset));var key,data=$.extend(!0,{},Utils.GetData($e[0]),dataset);for(key in data=Utils._convertData(data))-1<excludedData.indexOf(key)||($.isPlainObject(this.options[key])?$.extend(this.options[key],data[key]):this.options[key]=data[key]);return this},Options.prototype.get=function(key){return this.options[key]},Options.prototype.set=function(key,val){this.options[key]=val},Options}),S2.define("select2/core",["jquery","./options","./utils","./keys"],function($,Options,Utils,KEYS){function Select2($element,options){null!=Utils.GetData($element[0],"select2")&&Utils.GetData($element[0],"select2").destroy(),this.$element=$element,this.id=this._generateId($element),this.options=new Options(options=options||{},$element),Select2.__super__.constructor.call(this);var options=$element.attr("tabindex")||0,options=(Utils.StoreData($element[0],"old-tabindex",options),$element.attr("tabindex","-1"),this.options.get("dataAdapter")),options=(this.dataAdapter=new options($element,this.options),this.render()),SelectionAdapter=(this._placeContainer(options),this.options.get("selectionAdapter")),SelectionAdapter=(this.selection=new SelectionAdapter($element,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,options),this.options.get("dropdownAdapter")),SelectionAdapter=(this.dropdown=new SelectionAdapter($element,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,options),this.options.get("resultsAdapter")),self=(this.results=new SelectionAdapter($element,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown),this);this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(initialData){self.trigger("selection:update",{data:initialData})}),$element[0].classList.add("select2-hidden-accessible"),$element.attr("aria-hidden","true"),this._syncAttributes(),Utils.StoreData($element[0],"select2",this),$element.data("select2",this)}return Utils.Extend(Select2,Utils.Observable),Select2.prototype._generateId=function($element){return"select2-"+(null!=$element.attr("id")?$element.attr("id"):null!=$element.attr("name")?$element.attr("name")+"-"+Utils.generateChars(2):Utils.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},Select2.prototype._placeContainer=function($container){$container.insertAfter(this.$element);var width=this._resolveWidth(this.$element,this.options.get("width"));null!=width&&$container.css("width",width)},Select2.prototype._resolveWidth=function($element,method){var WIDTH=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==method)return null!=(styleWidth=this._resolveWidth($element,"style"))?styleWidth:this._resolveWidth($element,"element");if("element"==method)return(styleWidth=$element.outerWidth(!1))<=0?"auto":styleWidth+"px";if("style"!=method)return"computedstyle"==method?window.getComputedStyle($element[0]).width:method;var styleWidth=$element.attr("style");if("string"==typeof styleWidth)for(var attrs=styleWidth.split(";"),i=0,l=attrs.length;i<l;i+=1){var matches=attrs[i].replace(/\s/g,"").match(WIDTH);if(null!==matches&&1<=matches.length)return matches[1]}return null},Select2.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},Select2.prototype._registerDomEvents=function(){var self=this;this.$element.on("change.select2",function(){self.dataAdapter.current(function(data){self.trigger("selection:update",{data:data})})}),this.$element.on("focus.select2",function(evt){self.trigger("focus",evt)}),this._syncA=Utils.bind(this._syncAttributes,this),this._syncS=Utils.bind(this._syncSubtree,this),this._observer=new window.MutationObserver(function(mutations){self._syncA(),self._syncS(mutations)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})},Select2.prototype._registerDataEvents=function(){var self=this;this.dataAdapter.on("*",function(name,params){self.trigger(name,params)})},Select2.prototype._registerSelectionEvents=function(){var self=this,nonRelayEvents=["toggle","focus"];this.selection.on("toggle",function(){self.toggleDropdown()}),this.selection.on("focus",function(params){self.focus(params)}),this.selection.on("*",function(name,params){-1===nonRelayEvents.indexOf(name)&&self.trigger(name,params)})},Select2.prototype._registerDropdownEvents=function(){var self=this;this.dropdown.on("*",function(name,params){self.trigger(name,params)})},Select2.prototype._registerResultsEvents=function(){var self=this;this.results.on("*",function(name,params){self.trigger(name,params)})},Select2.prototype._registerEvents=function(){var self=this;this.on("open",function(){self.$container[0].classList.add("select2-container--open")}),this.on("close",function(){self.$container[0].classList.remove("select2-container--open")}),this.on("enable",function(){self.$container[0].classList.remove("select2-container--disabled")}),this.on("disable",function(){self.$container[0].classList.add("select2-container--disabled")}),this.on("blur",function(){self.$container[0].classList.remove("select2-container--focus")}),this.on("query",function(params){self.isOpen()||self.trigger("open",{}),this.dataAdapter.query(params,function(data){self.trigger("results:all",{data:data,query:params})})}),this.on("query:append",function(params){this.dataAdapter.query(params,function(data){self.trigger("results:append",{data:data,query:params})})}),this.on("keypress",function(evt){var key=evt.which;self.isOpen()?key===KEYS.ESC||key===KEYS.UP&&evt.altKey?(self.close(evt),evt.preventDefault()):key===KEYS.ENTER||key===KEYS.TAB?(self.trigger("results:select",{}),evt.preventDefault()):key===KEYS.SPACE&&evt.ctrlKey?(self.trigger("results:toggle",{}),evt.preventDefault()):key===KEYS.UP?(self.trigger("results:previous",{}),evt.preventDefault()):key===KEYS.DOWN&&(self.trigger("results:next",{}),evt.preventDefault()):(key===KEYS.ENTER||key===KEYS.SPACE||key===KEYS.DOWN&&evt.altKey)&&(self.open(),evt.preventDefault())})},Select2.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},Select2.prototype._isChangeMutation=function(mutations){var self=this;if(mutations.addedNodes&&0<mutations.addedNodes.length){for(var n=0;n<mutations.addedNodes.length;n++)if(mutations.addedNodes[n].selected)return!0}else{if(mutations.removedNodes&&0<mutations.removedNodes.length)return!0;if(Array.isArray(mutations))return mutations.some(function(mutation){return self._isChangeMutation(mutation)})}return!1},Select2.prototype._syncSubtree=function(mutations){var mutations=this._isChangeMutation(mutations),self=this;mutations&&this.dataAdapter.current(function(currentData){self.trigger("selection:update",{data:currentData})})},Select2.prototype.trigger=function(name,args){var actualTrigger=Select2.__super__.trigger,preTriggerMap={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===args&&(args={}),name in preTriggerMap){var preTriggerArgs={prevented:!1,name:name,args:args};if(actualTrigger.call(this,preTriggerMap[name],preTriggerArgs),preTriggerArgs.prevented)return void(args.prevented=!0)}actualTrigger.call(this,name,args)},Select2.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},Select2.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},Select2.prototype.close=function(evt){this.isOpen()&&this.trigger("close",{originalEvent:evt})},Select2.prototype.isEnabled=function(){return!this.isDisabled()},Select2.prototype.isDisabled=function(){return this.options.get("disabled")},Select2.prototype.isOpen=function(){return this.$container[0].classList.contains("select2-container--open")},Select2.prototype.hasFocus=function(){return this.$container[0].classList.contains("select2-container--focus")},Select2.prototype.focus=function(data){this.hasFocus()||(this.$container[0].classList.add("select2-container--focus"),this.trigger("focus",{}))},Select2.prototype.enable=function(args){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.');args=!(args=null!=args&&0!==args.length?args:[!0])[0];this.$element.prop("disabled",args)},Select2.prototype.data=function(){this.options.get("debug")&&0<arguments.length&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var data=[];return this.dataAdapter.current(function(currentData){data=currentData}),data},Select2.prototype.val=function(args){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==args||0===args.length)return this.$element.val();args=args[0];Array.isArray(args)&&(args=args.map(function(obj){return obj.toString()})),this.$element.val(args).trigger("input").trigger("change")},Select2.prototype.destroy=function(){Utils.RemoveData(this.$container[0]),this.$container.remove(),this._observer.disconnect(),this._observer=null,this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",Utils.GetData(this.$element[0],"old-tabindex")),this.$element[0].classList.remove("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),Utils.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},Select2.prototype.render=function(){var $container=$('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return $container.attr("dir",this.options.get("dir")),this.$container=$container,this.$container[0].classList.add("select2-container--"+this.options.get("theme")),Utils.StoreData($container[0],"element",this.$element),$container},Select2}),S2.define("select2/dropdown/attachContainer",[],function(){function AttachContainer(decorated,$element,options){decorated.call(this,$element,options)}return AttachContainer.prototype.position=function(decorated,$dropdown,$container){$container.find(".dropdown-wrapper").append($dropdown),$dropdown[0].classList.add("select2-dropdown--below"),$container[0].classList.add("select2-container--below")},AttachContainer}),S2.define("select2/dropdown/stopPropagation",[],function(){function StopPropagation(){}return StopPropagation.prototype.bind=function(decorated,container,$container){decorated.call(this,container,$container);this.$dropdown.on(["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"].join(" "),function(evt){evt.stopPropagation()})},StopPropagation}),S2.define("select2/selection/stopPropagation",[],function(){function StopPropagation(){}return StopPropagation.prototype.bind=function(decorated,container,$container){decorated.call(this,container,$container);this.$selection.on(["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"].join(" "),function(evt){evt.stopPropagation()})},StopPropagation}),requirejs=function($){var nullLowestDeltaTimeout,lowestDelta,toFix=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],toBind="onwheel"in document||9<=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,offsetX=0,offsetY=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<lowestDelta)&&shouldAdjustOldDeltas(orgEvent,lowestDelta=lineHeight)&&(lowestDelta/=40),shouldAdjustOldDeltas(orgEvent,lineHeight)&&(delta/=40,deltaX/=40,deltaY/=40),delta=Math[1<=delta?"floor":"ceil"](delta/lowestDelta),deltaX=Math[1<=deltaX?"floor":"ceil"](deltaX/lowestDelta),deltaY=Math[1<=deltaY?"floor":"ceil"](deltaY/lowestDelta),special.settings.normalizeOffset&&this.getBoundingClientRect&&(orgEvent=this.getBoundingClientRect(),offsetX=event.clientX-orgEvent.left,offsetY=event.clientY-orgEvent.top),event.deltaX=deltaX,event.deltaY=deltaY,event.deltaFactor=lowestDelta,event.offsetX=offsetX,event.offsetY=offsetY,event.deltaMode=0,args.unshift(event,delta,deltaX,deltaY),nullLowestDeltaTimeout&&clearTimeout(nullLowestDeltaTimeout),nullLowestDeltaTimeout=setTimeout(nullLowestDelta,200),($.event.dispatch||$.event.handle).apply(this,args)}function nullLowestDelta(){lowestDelta=null}function shouldAdjustOldDeltas(orgEvent,absDelta){return special.settings.adjustOldDeltas&&"mousewheel"===orgEvent.type&&absDelta%120==0}$.fn.extend({mousewheel:function(fn){return fn?this.bind("mousewheel",fn):this.trigger("mousewheel")},unmousewheel:function(fn){return this.unbind("mousewheel",fn)}})},"function"==typeof S2.define&&S2.define.amd?S2.define("jquery-mousewheel",["jquery"],requirejs):"object"==typeof exports?module.exports=requirejs:requirejs(jQuery),S2.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function($,_,Select2,Defaults,Utils){var thisMethods;return null==$.fn.select2&&(thisMethods=["open","close","destroy"],$.fn.select2=function(options){if("object"==typeof(options=options||{}))return this.each(function(){var instanceOptions=$.extend(!0,{},options);new Select2($(this),instanceOptions)}),this;var ret,args;if("string"==typeof options)return args=Array.prototype.slice.call(arguments,1),this.each(function(){var instance=Utils.GetData(this,"select2");null==instance&&window.console&&console.error&&console.error("The select2('"+options+"') method was called on an element that is not using Select2."),ret=instance[options].apply(instance,args)}),-1<thisMethods.indexOf(options)?this:ret;throw new Error("Invalid arguments for Select2: "+options)}),null==$.fn.select2.defaults&&($.fn.select2.defaults=Defaults),Select2}),{define:S2.define,require:S2.require}})(),select2=S2.require("jquery.select2");return jQuery.fn.select2.amd=S2,select2}),(($,window,document)=>{function MasterCarousel(target,options){this.defaultOptions={viewClass:"mc-view",containerClass:"mc-view-container",itemClass:"mc-item",loop:!0,space:2,dir:"h",columns:4,navigation:"scroll",center:!1,speed:12,minSnappingSpeed:.51,swipe:!0,mouseSwipe:!0,startItem:null,rtl:!1,view:"basic",item:"basic",disablePlugins:[]},this.$element="Array"==typeof target?target:$(target),this.options=options,this.view=null,this.items=[],this.controls=[],this.plugins=[],averta.EventDispatcher.call(this)}MasterCarousel._plugins=[],MasterCarousel._views={},MasterCarousel._items={},MasterCarousel._controls={},MasterCarousel.registerPlugin=function(plugin){-1===MasterCarousel._plugins.indexOf(plugin)&&MasterCarousel._plugins.push(plugin)},MasterCarousel.registerView=function(name,view){MasterCarousel._views[name]||(MasterCarousel._views[name]=view)},MasterCarousel.registerControl=function(name,control){MasterCarousel._controls[name]||(MasterCarousel._controls[name]=control)},MasterCarousel.registerItem=function(name,item){MasterCarousel._items[name]||(MasterCarousel._items[name]=item)};var p=MasterCarousel.prototype;p.setup=function(){var self;if(!this._setup)return this._setup=!0,self=this,$.each(MasterCarousel._plugins,function(index,plugin){self.plugins.push(new plugin(self))}),this.options=$.extend(this.defaultOptions,this.options),this._callPluginsMethod("aftereSetup"),$(document).ready(function(){self._init()}),this},p.control=function(name,options){var controlClass=MasterCarousel._controls[name];return controlClass?(controlClass=new controlClass(this,options),this.controls.push(controlClass)):console.log('Master Carousel Warning: The "'+name+'" UI control is not defined.'),this},p.next=function(animate,speed){this.view&&this.view.next(animate,speed)},p.previous=function(animate,speed){this.view&&this.view.previous(animate,speed)},p.gotoIndex=function(index,animate,speed){this.view&&this.view.gotoItem(index,animate,speed)},p.goto=function(target,animate,speed){this.view&&this.view.goto(target,animate,speed)},p.current=function(){if(this.view)return"perpage"===this.options.navigation?this.view.page:this.view.index+1},p.index=function(){if(this.view)return this.view.index},p.count=function(){if(this.view)return"perpage"===this.options.navigation?this.view.totalPages:this.view.itemsCount},p.items=function(){if(this.view)return this.view.items},p.currentItem=function(){if(this.view)return this.view.currentItem},p.setOption=function(name,value){this.setOptions({}[name]=value)},p.setOptions=function(options){$.extend(this.options,options),this._readOptions()},p.destroy=function(){$.each(this.plugins,function(index,plugin){plugin.destroy()}),$.each(this.controls,function(index,control){control.destroy()}),this.plugins=null,this.controls=null,this.view.destroy(),this.view=null,this.$element.remove(),this.dispatchEvent(new MCEvents(MCEvents.DESTROY))},p._init=function(){this._callPluginsMethod("beforeInit");var op=this.options,viewClass=MasterCarousel._views[op.view];viewClass||(console.log('Master Carousel Error: The "'+op.view+'" view is not defined in carousel.'),viewClass=MasterCarousel._views.basic),this.view=new viewClass(op),this.$element.find(">."+op.itemClass).each(this._addItem.bind(this)),$.each(this.controls,function(index,control){control.view=self.view,control.carousel=self,control.setup()}),this.$element.append(this.view.$element),this.view.init(),this._callPluginsMethod("afterInit"),this._readOptions(),this.dispatchEvent(new MCEvents(MCEvents.INIT))},p._addItem=function(index,element){var element=$(element),itemType=element.data("item-type")||this.options.item,itemClass=MasterCarousel._items[itemType],itemType=(itemClass||(console.log('Master Carousel Error: The "'+itemType+'" item is not defined in carousel.'),itemClass=MasterCarousel._items.basic),new itemClass(element,this.view));(itemType.carousel=this).items.push(itemType),this.view.appendItem(itemType),itemType.setup()},p._readOptions=function(){this.view._readOptions(),this._callPluginsMethod("readOptions")},p._callPluginsMethod=function(methodName,params){$.each(this.plugins,function(index,plugin){!plugin.disabled&&plugin[methodName]&&plugin[methodName].apply(plugin,params)})},averta.EventDispatcher.extend(p),window.MasterCarousel=MasterCarousel})(jQuery,window,document),(window=>{window.MCEvents=function(type,data){this.type=type,this.data=data},MCEvents.CHANGE_END="mc_changeend",MCEvents.WAITING="mc_waiting",MCEvents.AUTOPLAY_PAUSE="mc_autoplaypause",MCEvents.AUTOPLAY_RESUME="mc_autoplayresume",MCEvents.INIT="mc_init",MCEvents.HEIGHT_CHANGE="mc_height_change",MCEvents.DESTROY="mc_destroy",MCEvents.SWIPE_START="mc_swipeStart",MCEvents.SWIPE_END="mc_swipeEnd",MCEvents.SWIPE_MOVE="mc_swipeMove",MCEvents.SWIPE_CANCEL="mc_swipeCancel",MCEvents.SCROLL="mc_scroll",MCEvents.OPTIONS_CHANGED="mc_onOptionsChanged"})((jQuery,window),document),(($,window)=>{function CarouselView(options){this.options=options,this.$element=$("<div></div>").addClass(this.options.viewClass),this.$container=$("<div></div>").addClass(this.options.containerClass).appendTo(this.$element),this.items=[],this.activeItems=[],this.index=0,this.resizeDelayTime=1,this.page=1,this.totalPages=0,this.currentItem=null,this._initilized=!1,this._reverse=1,this._css3=window._cssanim,this._translatePostfix=window._css3d?" translateZ(0px)":"",this.scroller=new SlickController(0,0,{}),this.scroller.snappingCallback(this._onSnappingUpdate,this),this.scroller.snapCompleteCallback(this._onSnappingCompelet,this),this.scroller.renderCallback(this._scroll,this),this.scroller.getSnapNum=this._getSnapNum.bind(this),this.scroller.gotoSnap=this._gotoSnap.bind(this),this.scroller._calculateExtraMove=this._calculateExtraMove.bind(this),this._spaceBuffer=0,averta.EventDispatcher.call(this)}var p=CarouselView.prototype;p.appendItem=function(item){this._setupItem(item),this.items.push(item),this._initilized&&this._updateView()},p.prependItem=function(item){this._setupItem(item),this.items.shift(item),this._initilized&&this._updateView()},p.addItemAt=function(item,index){this._setupItem(item),index>=this.items.length?this.appendItem(item):(this.items.splice(index,0,item),this._initilized&&this._updateView())},p.addAfter=function(item,after){after=this.items.indexOf(after);if(-1===after)return!1;this.addItemAt(item,after)},p.init=function(){this._initilized||(this._initilized=!0,$(window).on("resize",this._resize.bind(this)))},p.changeOption=function(options){this._initilized&&($.extend(this.options,options),this._readOptions())},p.gotoItem=function(index,animate,speed){index=this.items[index];index&&this.scroller&&this.scroller.changeTo(index.position,animate,speed)},p.next=function(animate,speed,bounce){"perpage"===this.options.navigation?this.scroller.nextSnap(!1!==animate,speed||this.scroller.options.friction):this.options.loop?this.gotoItem((this.index+1)%this.itemsCount,!1!==animate,speed||this.options.speed):this.index+1<this.itemsCount?this.gotoItem(this.index+1,!1!==animate,speed||this.scroller.options.friction):!1!==bounce&&this.scroller.bounce(10)},p.previous=function(animate,speed,bounce){var targetIndex;"perpage"===this.options.navigation?this.scroller.prevSnap(!1!==animate,speed||this.scroller.options.friction):this.options.loop?((targetIndex=(this.index-1)%this.itemsCount)<0&&(targetIndex+=this.itemsCount),this.gotoItem(targetIndex,!1!==animate,speed||this.scroller.options.friction)):0<=this.index-1?this.gotoItem(this.index-1,!1!==animate,speed||this.scroller.options.friction):!1!==bounce&&this.scroller.bounce(-10)},p.goto=function(target,animate,speed){var value;"perpage"===this.options.navigation?(value=this.scroller.value+(target-this.page)*this.scroller.options.snapsize,this._gotoSnap(this._getSnapNum(value),!1!==animate,speed)):this.gotoItem(target-1,!1!==animate,speed)},p.destroy=function(){for(var i=0;i!==this.itemsCount;i++)this.items[i].destroy();this.$container.remove(),this.$element.remove(),this.scroller.destroy(),this.swipeController=null,this.items=null,this.currentItem=null,this.options=null,$(window).off("resize",this._resize)},p._resize=function(update){var self=this;self.width=self.$element.width(),self.height=self.$element.height(),self.oneColumnSize=self[self._dimension]/self.options.columns,clearTimeout(self._resizeDelay),!1!==update&&(self._resizeDelay=setTimeout(function(){self._updateView(),self.gotoItem(self.index)},this.resizeDelayTime)),this.dispatchEvent(new MCEvents(MCEvents.RESIZE))},p._readOptions=function(){var op=this.options,so=("h"===op.dir?(this._dimension="width",this._offset="left",this._transAxis="translateX"):(this._dimension="height",this._offset="top",this._transAxis="translateY"),this._resize(!1),this.scroller.options);"scroll"===op.navigation?(so.paging=!1,so.snapping=!1):(so.snapping=!0,so.paging="snapping"!==op.navigation,"perpage"===op.navigation&&(so.snapsize=this[this._dimension]+this.options.space)),so.endless=op.loop,so.friction=(100-.5*op.speed)/100,so.snappingMinSpeed=op.minSnappingSpeed,op.swipe&&(window._touch||op.mouseSwipe)?(this.swipeController?this.swipeController.enable():(this.swipeController=new averta.TouchSwipe(this.$element),this.swipeController.onSwipe=this._swipeMove.bind(this)),"h"===op.dir?(this.swipeController.swipeType="horizontal",this._swipeMoveDir="moveX",this._swipeMoveDistance="distanceX",this._scrollTransitin=""):(this.swipeController.swipeType="vertical",this._swipeMoveDir="moveY",this._swipeMoveDistance="distanceY")):this.swipeController&&this.swipeController.disable(),this._balancingItems=Math.floor(op.columns/2),op.rtl&&(this._offset="right",this._reverse=-1),this._firstInit||this._resetItems(),this._updateView(),this._initilized&&this._reset(),this.totalPages=Math.ceil(this.itemsCount/op.columns),this.gotoItem(op.startItem-1),this._findActiveItems(),this.scroller.cancel(),this._firstInit=!1},p._resetItems=function(){for(var item,i=0,l=this.items.length;i!==l;i++)(item=this.items[i]).position=0,item.$element.attr("style","")},p._setupItem=function(item){item.view=this,item.$container=this.$container,item.size=0,item.position=0,item.sleep()},p._updateView=function(){var item,l=this.items.length,before=0,op=this.options,space=op.space,middle=0;this.itemsCount=l,this.currentItem||(this.currentItem=this.items[0]),"perpage"===op.navigation&&(this.scroller.options.snapsize=this[this._dimension]+op.space),op.loop&&(middle=Math.ceil(l/2)+this.index+this._balancingItems);for(var i=0;i!==l;i++)(item=this.items[(i+middle)%l]).position=before,item.size=(this[this._dimension]-space*(op.columns-1))*(item.merge/op.columns)+space*(item.merge-1),before+=item.size+space;var middlePosition=this.currentItem.position;if(op.loop){if(before-space<2*this[this._dimension])return op.loop=!1,this.scroller.options.endless=!1,void this._updateView()}else this.scroller._max_value=before-space-this[this._dimension],this._spaceBuffer=middlePosition=0,op.center&&(this.scroller._max_value=before-this[this._dimension]/2+this.items[0].size);for(i=0;i!==l;i++)(item=this.items[i]).position=this._spaceBuffer+item.position-middlePosition,item.$element[0].style[this._offset]=item.position+"px",item.$element[0].style[this._dimension]=item.size+"px"},p._getShortestPath=function(targetIndex){var targetIndex=targetIndex<this.index?this.itemsCount-this.index+targetIndex:targetIndex-this.index,left=Math.abs(this.itemsCount-targetIndex);return targetIndex<left?targetIndex:-left},p._reset=function(){this._spaceBuffer=0;var diff=this.scroller.value-this.currentItem.position;this._updateView(),this.scroller.changeTo(this.currentItem.position+diff,!1,null,null,!1)},p._findActiveItems=function(){var item;this.activeItems=[];for(var i=0;i!==this.itemsCount;i++)(item=this.items[i]).position<this.scroller.value+this[this._dimension]&&item.position+item.size>this.scroller.value?(item.active(),this.activeItems.push(item)):item.inactive();for(i=0;i!==this.itemsCount;i++)this.items[i].inactive(i);for(i=0;i!==this.activeItems.length;i++)this.activeItems[i].active(i)},p._onSnappingCompelet=function(snap,type){this.options.loop&&this._reset(),this.dispatchEvent(new MCEvents(MCEvents.CHANGE_END))},p._onSnappingUpdate=function(scroller,snap,change){},p._scroll=function(scroller,value){var op=this.options,loop=op.loop,currentItemIndex=this._findItemIndexAtValue(value,!0),steps=this._getShortestPath(currentItemIndex);if(0!==steps&&(this.index=currentItemIndex,this.currentItem=this.items[this.index],this.page=Math.floor(this.index/this.options.columns)+1,loop)){for(var index,i=0,l=Math.min(Math.abs(steps),Math.floor(this.itemsCount/2));i<l;i++)0<steps?((index=this.index-i-1)<0&&(index=this.itemsCount+index),this._spaceBuffer+=this.items[index].size+this.options.space):this._spaceBuffer-=this.items[(this.index+i)%this.itemsCount].size+this.options.space;this._updateView()}op.center&&(value-=(this[this._dimension]-this.items[0].size)/2),this._css3?this.$container[0].style[window._jcsspfx+"Transform"]=this._transAxis+"("+-value*this._reverse+"px)"+this._translatePostfix:this.$container[0].style[this._offset]=-value+"px",this._findActiveItems(),this.dispatchEvent(new MCEvents(MCEvents.SCROLL))},p._findItemIndexAtValue=function(value,fromMiddle){for(var item,size,i=0,l=this.itemsCount;i!==l;i++)if(item=this.items[i],size=fromMiddle?this.oneColumnSize/2:0,item.position-size<=value&&item.position+item.size+this.options.space-size>value)return i;return this.index},p._getSnapNum=function(value){var op=this.options;return"perpage"===op.navigation||"scroll"===op.navigation?Math.floor((value+this.scroller.options.snapsize/2)/this.scroller.options.snapsize):this._findItemIndexAtValue(value,!0)},p._gotoSnap=function(snapNum,animate,speed){var count,scroller=this.scroller,op=this.options;"perpage"===op.navigation||"scroll"===op.navigation?scroller.changeTo(snapNum*scroller.options.snapsize,animate,speed,snapNum):(op=this.options.loop,count=this.itemsCount,snapNum<0?snapNum=op?count+snapNum:0:!op&&count<=snapNum&&(snapNum=count-1),scroller.changeTo(this.items[snapNum%this.itemsCount].position,animate,speed,snapNum))},p._calculateExtraMove=function(value){var item,snapsize,op=this.options;this.scroller;return(op="perpage"===op.navigation||"scroll"===op.navigation?value%(snapsize=scroller.options.snapsize):(op.loop&&(value=this.currentItem.position+value-this._spaceBuffer),snapsize=(item=this.items[this._findItemIndexAtValue(value,!0)]).size+op.space,this._spaceBuffer+value-item.position))<snapsize/2?-op:snapsize-op},p._swipeMove=function(status){var phase=status.phase;"start"===phase?(this.scroller.stop(),this.dispatchEvent(new MCEvents(MCEvents.SWIPE_START,status))):"move"===phase?(this.scroller.drag(status[this._swipeMoveDir]*this._reverse),this.dispatchEvent(new MCEvents(MCEvents.SWIPE_MOVE,status))):"end"!==phase&&"cancel"!==phase||(phase=status[this._swipeMoveDistance]/status.duration*50/3,.1<Math.abs(phase)?(this.scroller.push(-phase*this._reverse),phase>this.scroller.options.snappingMinSpeed&&this.dispatchEvent(new MCEvents(MCEvents.SWIPE_END,status))):(this.scroller.cancel(),this.dispatchEvent(new MCEvents(MCEvents.SWIPE_CANCEL,status))))},averta.EventDispatcher.extend(p),MasterCarousel.registerView("basic",CarouselView)})(jQuery,window,document),(()=>{function item($element,view){this.$element=$element,this.view=view,this.merge=$element.data("merge")||1}var p=item.prototype;p.sleep=function(){this.detached||(this.$element.detach(),this.detached=!0)},p.wakeup=function(){this.detached&&(this.view.$container.append(this.$element),this.detached=!1)},p.setup=function(){this.view.$container.append(this.$element)},p.active=function(counter){this.$element.addClass("mc-item-active"),counter&&this.$element.addClass("mc-item-active"+counter)},p.inactive=function(counter){this.$element.removeClass("mc-item-active"),counter&&this.$element.removeClass("mc-item-active"+counter)},p.destroy=function(){this.view=null,this.$element.remove()},MasterCarousel.registerItem("basic",item)})((jQuery,window,document)),(()=>{function inViewController(carousel){this.carousel=carousel,this.carousel.defaultOptions.inView=10,this.carousel.defaultOptions.inViewMargin=30}var p=inViewController.prototype;p.readOptions=function(){this.disabled=this.carousel.view.itemsCount<=this.carousel.options.inView,this.disabled?(this._reset(),this.carousel.view.removeEventListener(MCEvents.SCROLL,this._onScroll,this)):(this.carousel.view.addEventListener(MCEvents.SCROLL,this._onScroll,this),this._onScroll())},p.destroy=function(){this.carousel.view&&this.carousel.view.removeEventListener(MCEvents.SCROLL,this._onScroll,this),this.carousel=null},p._onScroll=function(){for(var item,view=this.carousel.view,items=view.items,scrollerVal=view.scroller.value,viewSize=view[view._dimension],margin=viewSize*this.carousel.options.inViewMargin/100,i=0;i!==view.itemsCount;i++)(item=items[i]).position+item.size>=scrollerVal-margin&&item.position<viewSize+margin+scrollerVal?item.wakeup():item.sleep()},p._reset=function(){for(var view=this.carousel.view,i=0;i!==view.itemsCount;i++)view.items[i].wakeup()},MasterCarousel.registerPlugin(inViewController)})((jQuery,window,document)),($=>{function Autoplay(carousel){this.carousel=carousel,$.extend(this.carousel.defaultOptions,{autoplay:!1,pauseOnHover:!0,autoplayDelay:2}),this.timer=new averta.Timer(100),this.timer.onTimer=this._onTimer,(this.timer.refrence=this)._delayProgress=0,this._id=pluginId++,this.carousel.pause=function(){this.options.autoplay&&(this.setOptions({autoplay:!1}),this.carousel.dispatchEvent(new MCEvents(MCEvents.AUTOPLAY_PAUSE)))},this.carousel.resume=function(){this.options.autoplay||(this.setOptions({autoplay:!0}),this.carousel.dispatchEvent(new MCEvents(MCEvents.AUTOPLAY_RESUME)))},this.carousel.getTimeProgress=function(){return this._delayProgress}}var pluginId=0,p=Autoplay.prototype;p.afterInit=function(){this.view=this.carousel.view},p.readOptions=function(){var op=this.carousel.options,self=this;op.autoplay?(this.view.addEventListener(MCEvents.SWIPE_START,this._stopTimer,this),this.view.addEventListener(MCEvents.CHANGE_END,this._onChangeEnd,this),this._startTimer(),op.pauseOnHover?this.carousel.$element.on("mouseenter.mc-timer-"+this._id,function(){self._mouseIsOver=!0,self._stopTimer()}).on("mouseleave.mc-timer-"+this._id,function(){self._mouseIsOver=!1,op.autoplay&&self._startTimer()}):this.carousel.$element.off("mouseenter.mc-timer-"+this._id,"mouseleave.mc-timer-"+this._id)):(this.view.removeEventListener(MCEvents.SWIPE_START,this._stopTimer,this),this.view.removeEventListener(MCEvents.CHANGE_END,this._onChangeEnd,this),this.carousel.$element.off("mouseenter.mc-timer-"+this._id,"mouseleave.mc-timer-"+this._id),this._resetTimer(),this._stopTimer()),this._delayProgress=0},p.destroy=function(){this.view.removeEventListener(MCEvents.SWIPE_START,this._stopTimer,this),this.view.removeEventListener(MCEvents.CHANGE_END,this._onChangeEnd,this),this.carousel.$element.off("mouseenter.mc-timer-"+this._id,"mouseleave.mc-timer-"+this._id),this._resetTimer(),this._stopTimer(),this.view=null,this.carousel=null},p._onChangeEnd=function(){this.carousel.options.autoplay&&this._startTimer()},p._startTimer=function(){var op=this.carousel.options;!this._mouseIsOver&&(op.loop||this.view.index+op.columns<this.view.itemsCount)&&this.timer.start()},p._stopTimer=function(){this.timer.stop()},p._onTimer=function(){var time=this.timer.getTime();this._delayProgress=time/(10*this.carousel.options.autoplayDelay),time>=1e3*this.carousel.options.autoplayDelay&&(this.carousel.next(),this._resetTimer()),this.carousel.dispatchEvent(new MCEvents(MCEvents.WAITING))},p._resetTimer=function(){this.timer.reset(),this._delayProgress=0},MasterCarousel.registerPlugin(Autoplay)})(jQuery,(window,document)),(($,window)=>{function BetterResponsive(carousel){this.carousel=carousel,this.$window=$(window),this._activePos=0,$.extend(this.carousel.defaultOptions,{autoWidth:!1})}var p=BetterResponsive.prototype;p.afterInit=function(){this.view=this.carousel.view},p.readOptions=function(){var op;this._internalChange?this._internalChange=!1:(op=this.carousel.options,this._copyOptions=$.extend({},op),op.autoWidth?this.$window.off("resize",this._onResize):op.responsive&&(this.$window.on("resize",this._onResize.bind(this)),this._onResize()))},p.destroy=function(){this.$window.off("resize",this._onResize),this.view=null,this.carousel=null,this.$window=null},p._onResize=function(){var pos,respOptions,lastPos,key,op=this.carousel.options,size=this.$window[this.view._dimension]();for(key in op.responsive)size<=(pos=Number(key))&&(!lastPos||pos<lastPos)&&(respOptions=op.responsive[key],lastPos=pos);respOptions&&this._activePos!==lastPos?(this._internalChange=!0,this._activePos=lastPos,this.carousel.setOptions($.extend({},this._copyOptions,respOptions))):!respOptions&&this._activePos&&(this._internalChange=!0,this.carousel.setOptions(this._copyOptions),this._activePos=null)},MasterCarousel.registerPlugin(BetterResponsive)})(jQuery,window,document),($=>{function Preloader(carousel){this.carousel=carousel,$.extend(this.carousel.defaultOptions,{preload:!1,prealoadAttr:"data-src",insertPreloadClass:!0})}var p=Preloader.prototype;p.readOptions=function(){this.carousel.options.preload?(this.carousel.options.insertPreloadClass&&this.carousel.$element.find("."+this.carousel.options.itemClass).addClass("mc-preloading"),this.carousel.view.addEventListener(MCEvents.SCROLL,this._onScroll,this),this._onScroll()):this.carousel.view.removeEventListener(MCEvents.SCROLL,this._onScroll,this)},p.destroy=function(){this.carousel.view&&this.carousel.view.removeEventListener(MCEvents.SCROLL,this._onScroll,this),this.carousel=null},p._onScroll=function(){for(var item,actives=this.carousel.view.activeItems,i=0,l=actives.length;i!==l;i++)(item=actives[i]).preloading||this._startPreloadItem(item)},p._startPreloadItem=function(item){item.preloading=!0;var attr=this.carousel.options.prealoadAttr,imgs=item.$element.find("img["+attr+"]"),preloadCount=imgs.length;0===preloadCount?item.$element.removeClass("mc-preloading"):imgs.each(function(index){var $this=$(this);$this.preloadImg($this.attr(attr),function(event){0===--preloadCount&&item.$element.removeClass("mc-preloading")}).removeAttr(attr)})},MasterCarousel.registerPlugin(Preloader)})(jQuery,(window,document)),(($,window)=>{function HeightController(carousel){this.carousel=carousel,this.carousel.defaultOptions.autoHeight=!1,this.carousel.defaultOptions.emptyHeight=450,this._maxHeight=0}var p=HeightController.prototype;p.afterInit=function(){for(var items=this.carousel.view.items,i=0,l=items.length;i!==l;i++)items[i].$element.find("img").on("load",this._updateHeight.bind(this));$(window).on("resize",this._updateHeight.bind(this)),this._updateHeight({type:"resize"})},p.readOptions=function(){this.autoHeight=this.carousel.options.autoHeight,this.autoHeight?(this.carousel.view.addEventListener(MCEvents.SCROLL,this._updateHeight,this),this._maxHeight=0,this._updateHeight()):this.carousel.view.removeEventListener(MCEvents.SCROLL,this._updateHeight,this)},p.destroy=function(){this.carousel.view&&this.carousel.view.removeEventListener(MCEvents.SCROLL,this._updateHeight,this);for(var items=this.carousel.view.items,i=0,l=items.length;i!==l;i++)items[i].$element.find("img").off("load");$(window).off("resize",this._updateHeight),this.carousel=null},p._updateHeight=function(e){clearTimeout(this._resizeTo),e&&"resize"===e.type&&(this._resizeTo=setTimeout(this._updateHeight.bind(this),150));for(var items=this.carousel.options.autoHeight?this.carousel.view.activeItems:this.carousel.view.items,e=this._maxHeight,i=this._maxHeight=0,l=items.length;i!==l;i++)this._maxHeight=Math.max(items[i].$element.height(),this._maxHeight);0===this._maxHeight&&(this._maxHeight=this.carousel.options.emptyHeight),this.carousel.$element[0].style.height=this._maxHeight+"px",e!==this._maxHeight&&this.carousel.dispatchEvent(new MCEvents(MCEvents.HEIGHT_CHANGE))},MasterCarousel.registerPlugin(HeightController)})(jQuery,window,document),(()=>{function disableLinksOnSwipe(carousel){this.carousel=carousel,this.carousel.defaultOptions.disableLinksOnSwipe=!0,this.carousel.defaultOptions.disableBubbling=!0,this.carousel.defaultOptions.disableOnLiveEvents=!1}var p=disableLinksOnSwipe.prototype;p.readOptions=function(){var op=this.carousel.options;op.disableLinksOnSwipe?(this.carousel.view.addEventListener(MCEvents.SWIPE_START,this._swipeIntraction,this),this.carousel.view.addEventListener(MCEvents.SWIPE_MOVE,this._swipeIntraction,this),this.carousel.view.addEventListener(MCEvents.SWIPE_CANCEL,this._swipeIntraction,this),this.carousel.view.addEventListener(MCEvents.SWIPE_END,this._swipeIntraction,this),op.disableOnLiveEvents?this.carousel.$element.on("click","a",this._checkLink.bind(this)):this.carousel.$element.find("a").on("click",this._checkLink.bind(this))):(this.carousel.view.removeEventListener(MCEvents.SWIPE_START,this._swipeIntraction,this),this.carousel.view.removeEventListener(MCEvents.SWIPE_MOVE,this._swipeIntraction,this),this.carousel.view.removeEventListener(MCEvents.SWIPE_CANCEL,this._swipeIntraction,this),this.carousel.view.removeEventListener(MCEvents.SWIPE_END,this._swipeIntraction,this),op.disableOnLiveEvents?this.carousel.$element.off("click","a",this._checkLink.bind(this)):this.carousel.$element.find("a").off("click",this._checkLink.bind(this)))},p.destroy=function(){this.carousel.view&&(this.carousel.view.removeEventListener(MCEvents.SWIPE_START,this._swipeIntraction,this),this.carousel.view.removeEventListener(MCEvents.SWIPE_MOVE,this._swipeIntraction,this),this.carousel.view.removeEventListener(MCEvents.SWIPE_CANCEL,this._swipeIntraction,this),this.carousel.view.removeEventListener(MCEvents.SWIPE_END,this._swipeIntraction,this)),this.carousel.$element.off("click","a",this._checkLink.bind(this)),this.carousel=null},p._swipeIntraction=function(e){clearTimeout(this._to),e.type===MCEvents.SWIPE_START?(this._linksAreDisabled=!0,this._hadMove=!1):e.type===MCEvents.SWIPE_MOVE?this._hadMove=!0:this._hadMove?(this._hadMove=!1,this._to=setTimeout(function(){this._linksAreDisabled=!1}.bind(this),5)):this._linksAreDisabled=!1},p._checkLink=function(e){this._linksAreDisabled&&(this.carousel.options.disableBubbling&&e.stopImmediatePropagation(),e.preventDefault())},MasterCarousel.registerPlugin(disableLinksOnSwipe)})((jQuery,window,document)),(($,window)=>{function autoScrollController(carousel){this.carousel=carousel,this.carousel.defaultOptions.autoScroll=!1,this.carousel.defaultOptions.autoScrollSpeed=1}var p=autoScrollController.prototype;p.readOptions=function(){this._scroll=this._scroll.bind(this),$.extend(this.carousel,{startAutoScroll:function(){this._stop&&(this._stop=!1,this.carousel.view.addEventListener(MCEvents.SWIPE_START,this._onSwipe,this),this.carousel.view.addEventListener(MCEvents.CHANGE_END,this._onSwipe,this),this.carousel.view.addEventListener(MCEvents.SWIPE_END,this._onSwipe,this),this.carousel.view.addEventListener(MCEvents.SWIPE_CANCEL,this._onSwipe,this),this._scroll())}.bind(this),stopAutoScroll:function(){this._stop||(this._stop=!0,this.carousel.view.removeEventListener(MCEvents.SWIPE_START,this._onSwipe,this),this.carousel.view.removeEventListener(MCEvents.CHANGE_END,this._onSwipe,this),this.carousel.view.removeEventListener(MCEvents.SWIPE_END,this._onSwipe,this),this.carousel.view.removeEventListener(MCEvents.SWIPE_CANCEL,this._onSwipe,this))}.bind(this)}),this.carousel.options.autoScroll?this.carousel.startAutoScroll():this.carousel.stopAutoScroll()},p.destroy=function(){this.carousel.view&&(this.carousel.view.removeEventListener(MCEvents.SWIPE_START,this._onSwipe,this),this.carousel.view.removeEventListener(MCEvents.SWIPE_END,this._onSwipe,this),this.carousel.view.removeEventListener(MCEvents.SWIPE_CANCEL,this._onSwipe,this),this.carousel.view.removeEventListener(MCEvents.CHANGE_END,this._onSwipe,this)),this.carousel=null},p._onSwipe=function(event){var oldState=this._stop;this._stop=event.type===MCEvents.SWIPE_START,this._stop||this._stop===oldState||this._scroll()},p._scroll=function(){this._stop||window.requestAnimationFrame(this._scroll),this.carousel.view.scroller.drag(-this.carousel.options.autoScrollSpeed)},MasterCarousel.registerPlugin(autoScrollController)})(jQuery,window,document),(($,window)=>{var superInit;window.MasterMenuPlugin&&window.CTween&&(window=MasterMenuPlugin.prototype,superInit=window.init,window.init=function(){superInit.apply(this,arguments),!1!==this.settings.toggleAnimation&&(this.$element.on("typeChanged",this._checkForToggle.bind(this)),this.settings.toggleAnimationDuration=this.settings.toggleAnimationDuration||600,this._checkForToggle())},window._checkForToggle=function(){"toggle"===this.type||"accordion"===this.type?(this.$element.on("beforeOpen",this._openAnimate.bind(this)),this.$element.on("beforeClose",this._closeAnimate.bind(this))):(this.$element.off("beforeOpen beforeClose"),this.$element.find(".aux-submenu").css("height",""))},window._openAnimate=function(e){var $submenu=e.item.find(">.aux-submenu").eq(0),e=$submenu.data("tween");subHeight=0,$submenu.find(">*").each(function(index,item){subHeight+=$(item).outerHeight()}),e&&e.stop(!0),e=CTween.animate($submenu,this.settings.toggleAnimationDuration,{height:subHeight+"px"},{ease:"easeInOutQuart",complete:function(){$submenu.css("height","auto")}}),$submenu.data("tween",e)},window._closeAnimate=function(e){var e=e.item.find(">.aux-submenu"),lastTween=e.data("tween"),self=this;lastTween&&lastTween.stop(!0),e.each(function(index,submenu){var subHeight=0;$(submenu).find(">*").each(function(index,item){subHeight=$(item).outerHeight()}),0!==$(submenu).height()&&($(submenu).height(subHeight),lastTween=CTween.animate($(submenu),self.settings.toggleAnimationDuration,{height:"0"},{ease:"easeInOutQuart",complete:function(){$(submenu).find(".aux-submenu").css("height","")}}),$(submenu).data("tween",lastTween))})})})(jQuery,window,document),(()=>{if("undefined"!=typeof window){var t=window.navigator.userAgent.match(/Edge\/(\d{2})\./),e=!!t&&16<=parseInt(t[1],10);if("objectFit"in document.documentElement.style!=0&&!e)return window.objectFitPolyfill=function(){return!1};var i=function(t){var e=window.getComputedStyle(t,null),i=e.getPropertyValue("position"),n=e.getPropertyValue("overflow"),e=e.getPropertyValue("display");i&&"static"!==i||(t.style.position="relative"),"hidden"!==n&&(t.style.overflow="hidden"),e&&"inline"!==e||(t.style.display="block"),0===t.clientHeight&&(t.style.height="100%"),-1===t.className.indexOf("object-fit-polyfill")&&(t.className=t.className+" object-fit-polyfill")},n=function(t){var n,e=window.getComputedStyle(t,null),i={"max-width":"none","max-height":"none","min-width":"0px","min-height":"0px",top:"auto",right:"auto",bottom:"auto",left:"auto","margin-top":"0px","margin-right":"0px","margin-bottom":"0px","margin-left":"0px"};for(n in i)e.getPropertyValue(n)!==i[n]&&(t.style[n]=i[n])},o=function(t,e,i){var n,o,l,a,d;if((i=i.split(" ")).length<2&&(i[1]=i[0]),"x"===t)n=i[0],o=i[1],l="left",a="right",d=e.clientWidth;else{if("y"!==t)return;n=i[1],o=i[0],l="top",a="bottom",d=e.clientHeight}return n===l||o===l?void(e.style[l]="0"):n===a||o===a?void(e.style[a]="0"):"center"===n||"50%"===n?(e.style[l]="50%",void(e.style["margin-"+l]=d/-2+"px")):0<=n.indexOf("%")?void((n=parseInt(n))<50?(e.style[l]=n+"%",e.style["margin-"+l]=d*(n/-100)+"px"):(e.style[a]=(n=100-n)+"%",e.style["margin-"+a]=d*(n/-100)+"px")):void(e.style[l]=n)},l=function(t){var e=(e=t.dataset?t.dataset.objectFit:t.getAttribute("data-object-fit"))||"cover",l=(t.dataset?t.dataset.objectPosition:t.getAttribute("data-object-position"))||"50% 50%",a=t.parentNode;i(a),n(t),t.style.position="absolute",t.style.height="100%",t.style.width="auto","scale-down"===e&&(t.style.height="auto",t.clientWidth<a.clientWidth&&t.clientHeight<a.clientHeight?(o("x",t,l),o("y",t,l)):(e="contain",t.style.height="100%")),"none"===e?(t.style.width="auto",t.style.height="auto",o("x",t,l),o("y",t,l)):"cover"===e&&t.clientWidth>a.clientWidth||"contain"===e&&t.clientWidth<a.clientWidth?(t.style.top="0",t.style.marginTop="0",o("x",t,l)):"scale-down"!==e&&(t.style.width="100%",t.style.height="auto",t.style.left="0",t.style.marginLeft="0",o("y",t,l))},a=function(t){if(void 0===t)t=document.querySelectorAll("[data-object-fit]");else if(t&&t.nodeName)t=[t];else if("object"!=typeof t||!t.length||!t[0].nodeName)return!1;for(var n,i=0;i<t.length;i++)t[i].nodeName&&("img"!==(n=t[i].nodeName.toLowerCase())||e?"video"===n&&(0<t[i].readyState?l(t[i]):t[i].addEventListener("loadedmetadata",function(){l(this)})):t[i].complete?l(t[i]):t[i].addEventListener("load",function(){l(this)}));return!0};document.addEventListener("DOMContentLoaded",function(){a()}),window.addEventListener("resize",function(){a()}),window.objectFitPolyfill=a}})(),(()=>{var supportCustomEvent=window.CustomEvent;function findNearestDialog(el){for(;el;){if("dialog"===el.localName)return el;el=el.parentElement}return null}function safeBlur(el){el&&el.blur&&el!==document.body&&el.blur()}function isFormMethodDialog(el){return el&&el.hasAttribute("method")&&"dialog"===el.getAttribute("method").toLowerCase()}function dialogPolyfillInfo(dialog){var removed,cb,timeout,delayModel;this.dialog_=dialog,this.replacedStyleTop_=!1,this.openAsModal_=!1,dialog.hasAttribute("role")||dialog.setAttribute("role","dialog"),dialog.show=this.show.bind(this),dialog.showModal=this.showModal.bind(this),dialog.close=this.close.bind(this),"returnValue"in dialog||(dialog.returnValue=""),"MutationObserver"in window?new MutationObserver(this.maybeHideModal.bind(this)).observe(dialog,{attributes:!0,attributeFilter:["open"]}):(removed=!1,cb=function(){removed?this.downgradeModal():this.maybeHideModal(),removed=!1}.bind(this),delayModel=function(ev){ev.target===dialog&&(removed|=ev.type.substr(0,(ev="DOMNodeRemoved").length)===ev,window.clearTimeout(timeout),timeout=window.setTimeout(cb,0))},["DOMAttrModified","DOMNodeRemoved","DOMNodeRemovedFromDocument"].forEach(function(name){dialog.addEventListener(name,delayModel)})),Object.defineProperty(dialog,"open",{set:this.setOpen.bind(this),get:dialog.hasAttribute.bind(dialog,"open")}),this.backdrop_=document.createElement("div"),this.backdrop_.className="backdrop",this.backdrop_.addEventListener("click",this.backdropClick_.bind(this))}supportCustomEvent&&"object"!=typeof supportCustomEvent||((supportCustomEvent=function(event,x){x=x||{};var ev=document.createEvent("CustomEvent");return ev.initCustomEvent(event,!!x.bubbles,!!x.cancelable,x.detail||null),ev}).prototype=window.Event.prototype),dialogPolyfillInfo.prototype={get dialog(){return this.dialog_},maybeHideModal:function(){this.dialog_.hasAttribute("open")&&document.body.contains(this.dialog_)||this.downgradeModal()},downgradeModal:function(){this.openAsModal_&&(this.openAsModal_=!1,this.dialog_.style.zIndex="",this.replacedStyleTop_&&(this.dialog_.style.top="",this.replacedStyleTop_=!1),this.backdrop_.parentNode&&this.backdrop_.parentNode.removeChild(this.backdrop_),dialogPolyfill.dm.removeDialog(this))},setOpen:function(value){value?this.dialog_.hasAttribute("open")||this.dialog_.setAttribute("open",""):(this.dialog_.removeAttribute("open"),this.maybeHideModal())},backdropClick_:function(e){this.dialog_.hasAttribute("tabindex")?this.dialog_.focus():(fake=document.createElement("div"),this.dialog_.insertBefore(fake,this.dialog_.firstChild),fake.tabIndex=-1,fake.focus(),this.dialog_.removeChild(fake));var fake=document.createEvent("MouseEvents");fake.initMouseEvent(e.type,e.bubbles,e.cancelable,window,e.detail,e.screenX,e.screenY,e.clientX,e.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget),this.dialog_.dispatchEvent(fake),e.stopPropagation()},focus_:function(){var query,target=this.dialog_.querySelector("[autofocus]:not([disabled])");(target=!target&&0<=this.dialog_.tabIndex?this.dialog_:target)||((query=["button","input","keygen","select","textarea"].map(function(el){return el+":not([disabled])"})).push('[tabindex]:not([disabled]):not([tabindex=""])'),target=this.dialog_.querySelector(query.join(", "))),safeBlur(document.activeElement),target&&target.focus()},updateZIndex:function(dialogZ,backdropZ){if(dialogZ<backdropZ)throw new Error("dialogZ should never be < backdropZ");this.dialog_.style.zIndex=dialogZ,this.backdrop_.style.zIndex=backdropZ},show:function(){this.dialog_.open||(this.setOpen(!0),this.focus_())},showModal:function(){if(this.dialog_.hasAttribute("open"))throw new Error("Failed to execute 'showModal' on dialog: The element is already open, and therefore cannot be opened modally.");if(!document.body.contains(this.dialog_))throw new Error("Failed to execute 'showModal' on dialog: The element is not in a Document.");if(!dialogPolyfill.dm.pushDialog(this))throw new Error("Failed to execute 'showModal' on dialog: There are too many open modal dialogs.");(el=>{for(;el&&el!==document.body;){var s=window.getComputedStyle(el),invalid=function(k,ok){return!(void 0===s[k]||s[k]===ok)};if(s.opacity<1||invalid("zIndex","auto")||invalid("transform","none")||invalid("mixBlendMode","normal")||invalid("filter","none")||invalid("perspective","none")||"isolate"===s.isolation||"fixed"===s.position||"touch"===s.webkitOverflowScrolling)return 1;el=el.parentElement}})(this.dialog_.parentElement)&&console.warn("A dialog is being shown inside a stacking context. This may cause it to be unusable. For more information, see this link: https://github.com/GoogleChrome/dialog-polyfill/#stacking-context"),this.setOpen(!0),this.openAsModal_=!0,dialogPolyfill.needsCentering(this.dialog_)?(dialogPolyfill.reposition(this.dialog_),this.replacedStyleTop_=!0):this.replacedStyleTop_=!1,this.dialog_.parentNode.insertBefore(this.backdrop_,this.dialog_.nextSibling),this.focus_()},close:function(opt_returnValue){if(!this.dialog_.hasAttribute("open"))throw new Error("Failed to execute 'close' on dialog: The element does not have an 'open' attribute, and therefore cannot be closed.");this.setOpen(!1),void 0!==opt_returnValue&&(this.dialog_.returnValue=opt_returnValue);opt_returnValue=new supportCustomEvent("close",{bubbles:!1,cancelable:!1});this.dialog_.dispatchEvent(opt_returnValue)}};var testForm,realGet,realSet,nativeFormSubmit,dialogPolyfill={reposition:function(element){var scrollTop=document.body.scrollTop||document.documentElement.scrollTop,topValue=scrollTop+(window.innerHeight-element.offsetHeight)/2;element.style.top=Math.max(scrollTop,topValue)+"px"}};dialogPolyfill.isInlinePositionSetByStylesheet=function(element){for(var i=0;i<document.styleSheets.length;++i){var styleSheet=document.styleSheets[i],cssRules=null;try{cssRules=styleSheet.cssRules}catch(e){}if(cssRules)for(var j=0;j<cssRules.length;++j){var rule=cssRules[j],selectedNodes=null;try{selectedNodes=document.querySelectorAll(rule.selectorText)}catch(e){}if(selectedNodes&&((nodeList,node)=>{for(var i=0;i<nodeList.length;++i)if(nodeList[i]===node)return 1})(selectedNodes,element)){selectedNodes=rule.style.getPropertyValue("top"),rule=rule.style.getPropertyValue("bottom");if(selectedNodes&&"auto"!==selectedNodes||rule&&"auto"!==rule)return!0}}}return!1},dialogPolyfill.needsCentering=function(dialog){return"absolute"===window.getComputedStyle(dialog).position&&!("auto"!==dialog.style.top&&""!==dialog.style.top||"auto"!==dialog.style.bottom&&""!==dialog.style.bottom||dialogPolyfill.isInlinePositionSetByStylesheet(dialog))},dialogPolyfill.forceRegisterDialog=function(element){if((window.HTMLDialogElement||element.showModal)&&console.warn("This browser already supports <dialog>, the polyfill may not work correctly",element),"dialog"!==element.localName)throw new Error("Failed to register dialog: The element is not a dialog.");new dialogPolyfillInfo(element)},dialogPolyfill.registerDialog=function(element){element.showModal||dialogPolyfill.forceRegisterDialog(element)},dialogPolyfill.DialogManager=function(){this.pendingDialogStack=[];var checkDOM=this.checkDOM_.bind(this);this.overlay=document.createElement("div"),this.overlay.className="_dialog_overlay",this.overlay.addEventListener("click",function(e){this.forwardTab_=void 0,e.stopPropagation(),checkDOM([])}.bind(this)),this.handleKey_=this.handleKey_.bind(this),this.handleFocus_=this.handleFocus_.bind(this),this.zIndexLow_=1e5,this.zIndexHigh_=100150,this.forwardTab_=void 0,"MutationObserver"in window&&(this.mo_=new MutationObserver(function(records){var removed=[];records.forEach(function(rec){for(var c,i=0;c=rec.removedNodes[i];++i)c instanceof Element&&("dialog"===c.localName&&removed.push(c),removed=removed.concat(c.querySelectorAll("dialog")))}),removed.length&&checkDOM(removed)}))},dialogPolyfill.DialogManager.prototype.blockDocument=function(){document.documentElement.addEventListener("focus",this.handleFocus_,!0),document.addEventListener("keydown",this.handleKey_),this.mo_&&this.mo_.observe(document,{childList:!0,subtree:!0})},dialogPolyfill.DialogManager.prototype.unblockDocument=function(){document.documentElement.removeEventListener("focus",this.handleFocus_,!0),document.removeEventListener("keydown",this.handleKey_),this.mo_&&this.mo_.disconnect()},dialogPolyfill.DialogManager.prototype.updateStacking=function(){for(var dpi,zIndex=this.zIndexHigh_,i=0;dpi=this.pendingDialogStack[i];++i)dpi.updateZIndex(--zIndex,--zIndex),0===i&&(this.overlay.style.zIndex=--zIndex);var last=this.pendingDialogStack[0];last?(last.dialog.parentNode||document.body).appendChild(this.overlay):this.overlay.parentNode&&this.overlay.parentNode.removeChild(this.overlay)},dialogPolyfill.DialogManager.prototype.containedByTopDialog_=function(candidate){for(;candidate=findNearestDialog(candidate);){for(var dpi,i=0;dpi=this.pendingDialogStack[i];++i)if(dpi.dialog===candidate)return 0===i;candidate=candidate.parentElement}return!1},dialogPolyfill.DialogManager.prototype.handleFocus_=function(event){var dpi;if(!this.containedByTopDialog_(event.target)&&(event.preventDefault(),event.stopPropagation(),safeBlur(event.target),void 0!==this.forwardTab_))return(dpi=this.pendingDialogStack[0]).dialog.compareDocumentPosition(event.target)&Node.DOCUMENT_POSITION_PRECEDING&&(this.forwardTab_?dpi.focus_():document.documentElement.focus()),!1},dialogPolyfill.DialogManager.prototype.handleKey_=function(event){var cancelEvent,dpi;this.forwardTab_=void 0,27===event.keyCode?(event.preventDefault(),event.stopPropagation(),cancelEvent=new supportCustomEvent("cancel",{bubbles:!1,cancelable:!0}),(dpi=this.pendingDialogStack[0])&&dpi.dialog.dispatchEvent(cancelEvent)&&dpi.dialog.close()):9===event.keyCode&&(this.forwardTab_=!event.shiftKey)},dialogPolyfill.DialogManager.prototype.checkDOM_=function(removed){this.pendingDialogStack.slice().forEach(function(dpi){-1!==removed.indexOf(dpi.dialog)?dpi.downgradeModal():dpi.maybeHideModal()})},dialogPolyfill.DialogManager.prototype.pushDialog=function(dpi){var allowed=(this.zIndexHigh_-this.zIndexLow_)/2-1;return!(this.pendingDialogStack.length>=allowed||(1===this.pendingDialogStack.unshift(dpi)&&this.blockDocument(),this.updateStacking(),0))},dialogPolyfill.DialogManager.prototype.removeDialog=function(dpi){dpi=this.pendingDialogStack.indexOf(dpi);-1!==dpi&&(this.pendingDialogStack.splice(dpi,1),0===this.pendingDialogStack.length&&this.unblockDocument(),this.updateStacking())},dialogPolyfill.dm=new dialogPolyfill.DialogManager,dialogPolyfill.formSubmitter=null,dialogPolyfill.useValue=null,void 0===window.HTMLDialogElement&&((testForm=document.createElement("form")).setAttribute("method","dialog"),"dialog"!==testForm.method&&(testForm=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"method"))&&(realGet=testForm.get,testForm.get=function(){return isFormMethodDialog(this)?"dialog":realGet.call(this)},realSet=testForm.set,testForm.set=function(v){return"string"==typeof v&&"dialog"===v.toLowerCase()?this.setAttribute("method",v):realSet.call(this,v)},Object.defineProperty(HTMLFormElement.prototype,"method",testForm)),document.addEventListener("click",function(ev){if(dialogPolyfill.formSubmitter=null,dialogPolyfill.useValue=null,!ev.defaultPrevented){var target=ev.target;if(target&&isFormMethodDialog(target.form)){if(!("submit"===target.type&&-1<["button","input"].indexOf(target.localName))){if("input"!==target.localName||"image"!==target.type)return;dialogPolyfill.useValue=ev.offsetX+","+ev.offsetY}findNearestDialog(target)&&(dialogPolyfill.formSubmitter=target)}}},!1),nativeFormSubmit=HTMLFormElement.prototype.submit,HTMLFormElement.prototype.submit=function(){if(!isFormMethodDialog(this))return nativeFormSubmit.call(this);var dialog=findNearestDialog(this);dialog&&dialog.close()},document.addEventListener("submit",function(ev){var s,form=ev.target;isFormMethodDialog(form)&&(ev.preventDefault(),ev=findNearestDialog(form))&&((s=dialogPolyfill.formSubmitter)&&s.form===form?ev.close(dialogPolyfill.useValue||s.value):ev.close(),dialogPolyfill.formSubmitter=null)},!0)),dialogPolyfill.forceRegisterDialog=dialogPolyfill.forceRegisterDialog,dialogPolyfill.registerDialog=dialogPolyfill.registerDialog,"function"==typeof define&&"amd"in define?define(function(){return dialogPolyfill}):"object"==typeof module&&"object"==typeof module.exports?module.exports=dialogPolyfill:window.dialogPolyfill=dialogPolyfill})();
//# sourceMappingURL=plugins.min.js.map