function ClusterIcon(cluster,styles){cluster.getMarkerClusterer().extend(ClusterIcon,google.maps.OverlayView);this.cluster_=cluster;this.className_=cluster.getMarkerClusterer().getClusterClass();this.styles_=styles;this.center_=null;this.div_=null;this.sums_=null;this.visible_=false;this.setMap(cluster.getMap())}ClusterIcon.prototype.onAdd=function(){var cClusterIcon=this;var cMouseDownInCluster;var cDraggingMapByCluster;var gmVersion=google.maps.version.split(".");gmVersion=parseInt(gmVersion[0]*100,10)+parseInt(gmVersion[1],10);this.div_=document.createElement("div");this.div_.className=this.className_;if(this.visible_){this.show()}this.getPanes().overlayMouseTarget.appendChild(this.div_);this.boundsChangedListener_=google.maps.event.addListener(this.getMap(),"bounds_changed",function(){cDraggingMapByCluster=cMouseDownInCluster});google.maps.event.addDomListener(this.div_,"mousedown",function(){cMouseDownInCluster=true;cDraggingMapByCluster=false});if(gmVersion>=332){google.maps.event.addDomListener(this.div_,"touchstart",function(e){e.stopPropagation()})}google.maps.event.addDomListener(this.div_,"click",function(e){cMouseDownInCluster=false;if(!cDraggingMapByCluster){var theBounds;var mz;var mc=cClusterIcon.cluster_.getMarkerClusterer();google.maps.event.trigger(mc,"click",cClusterIcon.cluster_);google.maps.event.trigger(mc,"clusterclick",cClusterIcon.cluster_);if(mc.getZoomOnClick()){mz=mc.getMaxZoom();theBounds=cClusterIcon.cluster_.getBounds();mc.getMap().fitBounds(theBounds);setTimeout(function(){mc.getMap().fitBounds(theBounds);if(mz!==null&&mc.getMap().getZoom()>mz){mc.getMap().setZoom(mz+1)}},100)}e.cancelBubble=true;if(e.stopPropagation){e.stopPropagation()}}});google.maps.event.addDomListener(this.div_,"mouseover",function(){var mc=cClusterIcon.cluster_.getMarkerClusterer();google.maps.event.trigger(mc,"mouseover",cClusterIcon.cluster_)});google.maps.event.addDomListener(this.div_,"mouseout",function(){var mc=cClusterIcon.cluster_.getMarkerClusterer();google.maps.event.trigger(mc,"mouseout",cClusterIcon.cluster_)})};ClusterIcon.prototype.onRemove=function(){if(this.div_&&this.div_.parentNode){this.hide();google.maps.event.removeListener(this.boundsChangedListener_);google.maps.event.clearInstanceListeners(this.div_);this.div_.parentNode.removeChild(this.div_);this.div_=null}};ClusterIcon.prototype.draw=function(){if(this.visible_){var pos=this.getPosFromLatLng_(this.center_);this.div_.style.top=pos.y+"px";this.div_.style.left=pos.x+"px";this.div_.style.zIndex=google.maps.Marker.MAX_ZINDEX+1}};ClusterIcon.prototype.hide=function(){if(this.div_){this.div_.style.display="none"}this.visible_=false};ClusterIcon.prototype.show=function(){if(this.div_){var img="";var bp=this.backgroundPosition_.split(" ");var spriteH=parseInt(bp[0].replace(/^\s+|\s+$/g,""),10);var spriteV=parseInt(bp[1].replace(/^\s+|\s+$/g,""),10);var pos=this.getPosFromLatLng_(this.center_);this.div_.style.cssText=this.createCss(pos);if(typeof this.url_!="undefined"){img="<img src='"+this.url_+"' style='position: absolute; top: "+spriteV+"px; left: "+spriteH+"px; ";if(this.cluster_.getMarkerClusterer().enableRetinaIcons_){img+="width: "+this.width_+"px; height: "+this.height_+"px;"}else{img+="clip: rect("+-1*spriteV+"px, "+(-1*spriteH+this.width_)+"px, "+(-1*spriteV+this.height_)+"px, "+-1*spriteH+"px);"}img+="'>"}this.div_.innerHTML=img+"<div style='"+"position: absolute;"+"top: "+this.anchorText_[0]+"px;"+"left: "+this.anchorText_[1]+"px;"+"color: "+this.textColor_+";"+"font-size: "+this.textSize_+"px;"+"font-family: "+this.fontFamily_+";"+"font-weight: "+this.fontWeight_+";"+"font-style: "+this.fontStyle_+";"+"text-decoration: "+this.textDecoration_+";"+"text-align: center;"+"width: "+this.width_+"px;"+"line-height:"+this.height_+"px;"+"'>"+this.sums_.text+"</div>";if(typeof this.sums_.title==="undefined"||this.sums_.title===""){this.div_.title=this.cluster_.getMarkerClusterer().getTitle()}else{this.div_.title=this.sums_.title}this.div_.style.display=""}this.visible_=true};ClusterIcon.prototype.useStyle=function(sums){this.sums_=sums;var index=Math.max(0,sums.index-1);index=Math.min(this.styles_.length-1,index);var style=this.styles_[index];this.url_=style.url;this.height_=style.height;this.width_=style.width;this.anchorText_=style.anchorText||[0,0];this.anchorIcon_=style.anchorIcon||[parseInt(this.height_/2,10),parseInt(this.width_/2,10)];this.textColor_=style.textColor||"black";this.textSize_=style.textSize||11;this.textDecoration_=style.textDecoration||"none";this.fontWeight_=style.fontWeight||"bold";this.fontStyle_=style.fontStyle||"normal";this.fontFamily_=style.fontFamily||"Arial,sans-serif";this.backgroundPosition_=style.backgroundPosition||"0 0"};ClusterIcon.prototype.setCenter=function(center){this.center_=center};ClusterIcon.prototype.createCss=function(pos){var style=[];style.push("cursor: pointer;");style.push("position: absolute; top: "+pos.y+"px; left: "+pos.x+"px;");style.push("width: "+this.width_+"px; height: "+this.height_+"px;");style.push("-webkit-user-select: none;");style.push("-khtml-user-select: none;");style.push("-moz-user-select: none;");style.push("-o-user-select: none;");style.push("user-select: none;");return style.join("")};ClusterIcon.prototype.getPosFromLatLng_=function(latlng){var pos=this.getProjection().fromLatLngToDivPixel(latlng);pos.x-=this.anchorIcon_[1];pos.y-=this.anchorIcon_[0];pos.x=parseInt(pos.x,10);pos.y=parseInt(pos.y,10);return pos};function Cluster(mc){this.markerClusterer_=mc;this.map_=mc.getMap();this.gridSize_=mc.getGridSize();this.minClusterSize_=mc.getMinimumClusterSize();this.averageCenter_=mc.getAverageCenter();this.markers_=[];this.center_=null;this.bounds_=null;this.clusterIcon_=new ClusterIcon(this,mc.getStyles())}Cluster.prototype.getSize=function(){return this.markers_.length};Cluster.prototype.getMarkers=function(){return this.markers_};Cluster.prototype.getCenter=function(){return this.center_};Cluster.prototype.getMap=function(){return this.map_};Cluster.prototype.getMarkerClusterer=function(){return this.markerClusterer_};Cluster.prototype.getBounds=function(){var i;var bounds=new google.maps.LatLngBounds(this.center_,this.center_);var markers=this.getMarkers();for(i=0;i<markers.length;i++){bounds.extend(markers[i].getPosition())}return bounds};Cluster.prototype.remove=function(){this.clusterIcon_.setMap(null);this.markers_=[];delete this.markers_};Cluster.prototype.addMarker=function(marker){var i;var mCount;var mz;if(this.isMarkerAlreadyAdded_(marker)){return false}if(!this.center_){this.center_=marker.getPosition();this.calculateBounds_()}else{if(this.averageCenter_){var l=this.markers_.length+1;var lat=(this.center_.lat()*(l-1)+marker.getPosition().lat())/l;var lng=(this.center_.lng()*(l-1)+marker.getPosition().lng())/l;this.center_=new google.maps.LatLng(lat,lng);this.calculateBounds_()}}marker.isAdded=true;this.markers_.push(marker);mCount=this.markers_.length;mz=this.markerClusterer_.getMaxZoom();if(mz!==null&&this.map_.getZoom()>mz){if(marker.getMap()!==this.map_){marker.setMap(this.map_)}}else if(mCount<this.minClusterSize_){if(marker.getMap()!==this.map_){marker.setMap(this.map_)}}else if(mCount===this.minClusterSize_){for(i=0;i<mCount;i++){this.markers_[i].setMap(null)}}else{marker.setMap(null)}this.updateIcon_();return true};Cluster.prototype.isMarkerInClusterBounds=function(marker){return this.bounds_.contains(marker.getPosition())};Cluster.prototype.calculateBounds_=function(){var bounds=new google.maps.LatLngBounds(this.center_,this.center_);this.bounds_=this.markerClusterer_.getExtendedBounds(bounds)};Cluster.prototype.updateIcon_=function(){var mCount=this.markers_.length;var mz=this.markerClusterer_.getMaxZoom();if(mz!==null&&this.map_.getZoom()>mz){this.clusterIcon_.hide();return}if(mCount<this.minClusterSize_){this.clusterIcon_.hide();return}var numStyles=this.markerClusterer_.getStyles().length;var sums=this.markerClusterer_.getCalculator()(this.markers_,numStyles);this.clusterIcon_.setCenter(this.center_);this.clusterIcon_.useStyle(sums);this.clusterIcon_.show()};Cluster.prototype.isMarkerAlreadyAdded_=function(marker){var i;if(this.markers_.indexOf){return this.markers_.indexOf(marker)!==-1}else{for(i=0;i<this.markers_.length;i++){if(marker===this.markers_[i]){return true}}}return false};function MarkerClusterer(map,opt_markers,opt_options){this.extend(MarkerClusterer,google.maps.OverlayView);opt_markers=opt_markers||[];opt_options=opt_options||{};this.markers_=[];this.clusters_=[];this.listeners_=[];this.activeMap_=null;this.ready_=false;this.gridSize_=opt_options.gridSize||60;this.minClusterSize_=opt_options.minimumClusterSize||2;this.maxZoom_=opt_options.maxZoom||null;this.styles_=opt_options.styles||[];this.title_=opt_options.title||"";this.zoomOnClick_=true;if(opt_options.zoomOnClick!==undefined){this.zoomOnClick_=opt_options.zoomOnClick}this.averageCenter_=false;if(opt_options.averageCenter!==undefined){this.averageCenter_=opt_options.averageCenter}this.ignoreHidden_=false;if(opt_options.ignoreHidden!==undefined){this.ignoreHidden_=opt_options.ignoreHidden}this.enableRetinaIcons_=false;if(opt_options.enableRetinaIcons!==undefined){this.enableRetinaIcons_=opt_options.enableRetinaIcons}this.imagePath_=opt_options.imagePath||MarkerClusterer.IMAGE_PATH;this.imageExtension_=opt_options.imageExtension||MarkerClusterer.IMAGE_EXTENSION;this.imageSizes_=opt_options.imageSizes||MarkerClusterer.IMAGE_SIZES;this.calculator_=opt_options.calculator||MarkerClusterer.CALCULATOR;this.batchSize_=opt_options.batchSize||MarkerClusterer.BATCH_SIZE;this.batchSizeIE_=opt_options.batchSizeIE||MarkerClusterer.BATCH_SIZE_IE;this.clusterClass_=opt_options.clusterClass||"cluster";if(navigator.userAgent.toLowerCase().indexOf("msie")!==-1){this.batchSize_=this.batchSizeIE_}this.setupStyles_();this.addMarkers(opt_markers,true);this.setMap(map)}MarkerClusterer.prototype.onAdd=function(){var cMarkerClusterer=this;this.activeMap_=this.getMap();this.ready_=true;this.repaint();this.prevZoom_=this.getMap().getZoom();this.listeners_=[google.maps.event.addListener(this.getMap(),"zoom_changed",function(){var zoom=this.getMap().getZoom();var minZoom=this.getMap().minZoom||0;var maxZoom=Math.min(this.getMap().maxZoom||100,this.getMap().mapTypes[this.getMap().getMapTypeId()].maxZoom);zoom=Math.min(Math.max(zoom,minZoom),maxZoom);if(this.prevZoom_!=zoom){this.prevZoom_=zoom;this.resetViewport_(false)}}.bind(this)),google.maps.event.addListener(this.getMap(),"idle",function(){cMarkerClusterer.redraw_()})]};MarkerClusterer.prototype.onRemove=function(){var i;for(i=0;i<this.markers_.length;i++){if(this.markers_[i].getMap()!==this.activeMap_){this.markers_[i].setMap(this.activeMap_)}}for(i=0;i<this.clusters_.length;i++){this.clusters_[i].remove()}this.clusters_=[];for(i=0;i<this.listeners_.length;i++){google.maps.event.removeListener(this.listeners_[i])}this.listeners_=[];this.activeMap_=null;this.ready_=false};MarkerClusterer.prototype.draw=function(){};MarkerClusterer.prototype.setupStyles_=function(){var i,size;if(this.styles_.length>0){return}for(i=0;i<this.imageSizes_.length;i++){size=this.imageSizes_[i];this.styles_.push({url:this.imagePath_+(i+1)+"."+this.imageExtension_,height:size,width:size})}};MarkerClusterer.prototype.fitMapToMarkers=function(){var i;var markers=this.getMarkers();var bounds=new google.maps.LatLngBounds;for(i=0;i<markers.length;i++){if(markers[i].getVisible()||!this.getIgnoreHidden()){bounds.extend(markers[i].getPosition())}}this.getMap().fitBounds(bounds)};MarkerClusterer.prototype.getGridSize=function(){return this.gridSize_};MarkerClusterer.prototype.setGridSize=function(gridSize){this.gridSize_=gridSize};MarkerClusterer.prototype.getMinimumClusterSize=function(){return this.minClusterSize_};MarkerClusterer.prototype.setMinimumClusterSize=function(minimumClusterSize){this.minClusterSize_=minimumClusterSize};MarkerClusterer.prototype.getMaxZoom=function(){return this.maxZoom_};MarkerClusterer.prototype.setMaxZoom=function(maxZoom){this.maxZoom_=maxZoom};MarkerClusterer.prototype.getStyles=function(){return this.styles_};MarkerClusterer.prototype.setStyles=function(styles){this.styles_=styles};MarkerClusterer.prototype.getTitle=function(){return this.title_};MarkerClusterer.prototype.setTitle=function(title){this.title_=title};MarkerClusterer.prototype.getZoomOnClick=function(){return this.zoomOnClick_};MarkerClusterer.prototype.setZoomOnClick=function(zoomOnClick){this.zoomOnClick_=zoomOnClick};MarkerClusterer.prototype.getAverageCenter=function(){return this.averageCenter_};MarkerClusterer.prototype.setAverageCenter=function(averageCenter){this.averageCenter_=averageCenter};MarkerClusterer.prototype.getIgnoreHidden=function(){return this.ignoreHidden_};MarkerClusterer.prototype.setIgnoreHidden=function(ignoreHidden){this.ignoreHidden_=ignoreHidden};MarkerClusterer.prototype.getEnableRetinaIcons=function(){return this.enableRetinaIcons_};MarkerClusterer.prototype.setEnableRetinaIcons=function(enableRetinaIcons){this.enableRetinaIcons_=enableRetinaIcons};MarkerClusterer.prototype.getImageExtension=function(){return this.imageExtension_};MarkerClusterer.prototype.setImageExtension=function(imageExtension){this.imageExtension_=imageExtension};MarkerClusterer.prototype.getImagePath=function(){return this.imagePath_};MarkerClusterer.prototype.setImagePath=function(imagePath){this.imagePath_=imagePath};MarkerClusterer.prototype.getImageSizes=function(){return this.imageSizes_};MarkerClusterer.prototype.setImageSizes=function(imageSizes){this.imageSizes_=imageSizes};MarkerClusterer.prototype.getCalculator=function(){return this.calculator_};MarkerClusterer.prototype.setCalculator=function(calculator){this.calculator_=calculator};MarkerClusterer.prototype.getBatchSizeIE=function(){return this.batchSizeIE_};MarkerClusterer.prototype.setBatchSizeIE=function(batchSizeIE){this.batchSizeIE_=batchSizeIE};MarkerClusterer.prototype.getClusterClass=function(){return this.clusterClass_};MarkerClusterer.prototype.setClusterClass=function(clusterClass){this.clusterClass_=clusterClass};MarkerClusterer.prototype.getMarkers=function(){return this.markers_};MarkerClusterer.prototype.getTotalMarkers=function(){return this.markers_.length};MarkerClusterer.prototype.getClusters=function(){return this.clusters_};MarkerClusterer.prototype.getTotalClusters=function(){return this.clusters_.length};MarkerClusterer.prototype.addMarker=function(marker,opt_nodraw){this.pushMarkerTo_(marker);if(!opt_nodraw){this.redraw_()}};MarkerClusterer.prototype.addMarkers=function(markers,opt_nodraw){var key;for(key in markers){if(markers.hasOwnProperty(key)){this.pushMarkerTo_(markers[key])}}if(!opt_nodraw){this.redraw_()}};MarkerClusterer.prototype.pushMarkerTo_=function(marker){if(marker.getDraggable()){var cMarkerClusterer=this;google.maps.event.addListener(marker,"dragend",function(){if(cMarkerClusterer.ready_){this.isAdded=false;cMarkerClusterer.repaint()}})}marker.isAdded=false;this.markers_.push(marker)};MarkerClusterer.prototype.removeMarker=function(marker,opt_nodraw){var removed=this.removeMarker_(marker);if(!opt_nodraw&&removed){this.repaint()}return removed};MarkerClusterer.prototype.removeMarkers=function(markers,opt_nodraw){var i,r;var removed=false;for(i=0;i<markers.length;i++){r=this.removeMarker_(markers[i]);removed=removed||r}if(!opt_nodraw&&removed){this.repaint()}return removed};MarkerClusterer.prototype.removeMarker_=function(marker){var i;var index=-1;if(this.markers_.indexOf){index=this.markers_.indexOf(marker)}else{for(i=0;i<this.markers_.length;i++){if(marker===this.markers_[i]){index=i;break}}}if(index===-1){return false}marker.setMap(null);this.markers_.splice(index,1);return true};MarkerClusterer.prototype.clearMarkers=function(){this.resetViewport_(true);this.markers_=[]};MarkerClusterer.prototype.repaint=function(){var oldClusters=this.clusters_.slice();this.clusters_=[];this.resetViewport_(false);this.redraw_();setTimeout(function(){var i;for(i=0;i<oldClusters.length;i++){oldClusters[i].remove()}},0)};MarkerClusterer.prototype.getExtendedBounds=function(bounds){var projection=this.getProjection();var tr=new google.maps.LatLng(bounds.getNorthEast().lat(),bounds.getNorthEast().lng());var bl=new google.maps.LatLng(bounds.getSouthWest().lat(),bounds.getSouthWest().lng());var trPix=projection.fromLatLngToDivPixel(tr);trPix.x+=this.gridSize_;trPix.y-=this.gridSize_;var blPix=projection.fromLatLngToDivPixel(bl);blPix.x-=this.gridSize_;blPix.y+=this.gridSize_;var ne=projection.fromDivPixelToLatLng(trPix);var sw=projection.fromDivPixelToLatLng(blPix);bounds.extend(ne);bounds.extend(sw);return bounds};MarkerClusterer.prototype.redraw_=function(){this.createClusters_(0)};MarkerClusterer.prototype.resetViewport_=function(opt_hide){var i,marker;for(i=0;i<this.clusters_.length;i++){this.clusters_[i].remove()}this.clusters_=[];for(i=0;i<this.markers_.length;i++){marker=this.markers_[i];marker.isAdded=false;if(opt_hide){marker.setMap(null)}}};MarkerClusterer.prototype.distanceBetweenPoints_=function(p1,p2){var R=6371;var dLat=(p2.lat()-p1.lat())*Math.PI/180;var dLon=(p2.lng()-p1.lng())*Math.PI/180;var a=Math.sin(dLat/2)*Math.sin(dLat/2)+Math.cos(p1.lat()*Math.PI/180)*Math.cos(p2.lat()*Math.PI/180)*Math.sin(dLon/2)*Math.sin(dLon/2);var c=2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a));var d=R*c;return d};MarkerClusterer.prototype.isMarkerInBounds_=function(marker,bounds){return bounds.contains(marker.getPosition())};MarkerClusterer.prototype.addToClosestCluster_=function(marker){var i,d,cluster,center;var distance=4e4;var clusterToAddTo=null;for(i=0;i<this.clusters_.length;i++){cluster=this.clusters_[i];center=cluster.getCenter();if(center){d=this.distanceBetweenPoints_(center,marker.getPosition());if(d<distance){distance=d;clusterToAddTo=cluster}}}if(clusterToAddTo&&clusterToAddTo.isMarkerInClusterBounds(marker)){clusterToAddTo.addMarker(marker)}else{cluster=new Cluster(this);cluster.addMarker(marker);this.clusters_.push(cluster)}};MarkerClusterer.prototype.createClusters_=function(iFirst){var i,marker;var mapBounds;var cMarkerClusterer=this;if(!this.ready_){return}if(iFirst===0){google.maps.event.trigger(this,"clusteringbegin",this);if(typeof this.timerRefStatic!=="undefined"){clearTimeout(this.timerRefStatic);delete this.timerRefStatic}}if(this.getMap().getZoom()>3){mapBounds=new google.maps.LatLngBounds(this.getMap().getBounds().getSouthWest(),this.getMap().getBounds().getNorthEast())}else{mapBounds=new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,-178.48388434375),new google.maps.LatLng(-85.08136444384544,178.00048865625))}var bounds=this.getExtendedBounds(mapBounds);var iLast=Math.min(iFirst+this.batchSize_,this.markers_.length);for(i=iFirst;i<iLast;i++){marker=this.markers_[i];if(!marker.isAdded&&this.isMarkerInBounds_(marker,bounds)){if(!this.ignoreHidden_||this.ignoreHidden_&&marker.getVisible()){this.addToClosestCluster_(marker)}}}if(iLast<this.markers_.length){this.timerRefStatic=setTimeout(function(){cMarkerClusterer.createClusters_(iLast)},0)}else{delete this.timerRefStatic;google.maps.event.trigger(this,"clusteringend",this)}};MarkerClusterer.prototype.extend=function(obj1,obj2){return function(object){var property;for(property in object.prototype){this.prototype[property]=object.prototype[property]}return this}.apply(obj1,[obj2])};MarkerClusterer.CALCULATOR=function(markers,numStyles){var index=0;var title="";var count=markers.length.toString();var dv=count;while(dv!==0){dv=parseInt(dv/10,10);index++}index=Math.min(index,numStyles);return{text:count,index:index,title:title}};MarkerClusterer.BATCH_SIZE=2e3;MarkerClusterer.BATCH_SIZE_IE=500;MarkerClusterer.IMAGE_PATH="../images/m";MarkerClusterer.IMAGE_EXTENSION="png";MarkerClusterer.IMAGE_SIZES=[53,56,66,78,90];if(typeof module=="object"){module.exports=MarkerClusterer};
function InfoBox(opt_opts){opt_opts=opt_opts||{};google.maps.OverlayView.apply(this,arguments);this.content_=opt_opts.content||"";this.disableAutoPan_=opt_opts.disableAutoPan||false;this.maxWidth_=opt_opts.maxWidth||0;this.pixelOffset_=opt_opts.pixelOffset||new google.maps.Size(0,0);this.position_=opt_opts.position||new google.maps.LatLng(0,0);this.zIndex_=opt_opts.zIndex||null;this.boxClass_=opt_opts.boxClass||"infoBox";this.boxStyle_=opt_opts.boxStyle||{};this.closeBoxMargin_=opt_opts.closeBoxMargin||"2px";this.closeBoxURL_=opt_opts.closeBoxURL||"//www.google.com/intl/en_us/mapfiles/close.gif";if(opt_opts.closeBoxURL===""){this.closeBoxURL_=""}this.closeBoxTitle_=opt_opts.closeBoxTitle||" Close ";this.infoBoxClearance_=opt_opts.infoBoxClearance||new google.maps.Size(1,1);if(typeof opt_opts.visible==="undefined"){if(typeof opt_opts.isHidden==="undefined"){opt_opts.visible=true}else{opt_opts.visible=!opt_opts.isHidden}}this.isHidden_=!opt_opts.visible;this.alignBottom_=opt_opts.alignBottom||false;this.pane_=opt_opts.pane||"floatPane";this.enableEventPropagation_=opt_opts.enableEventPropagation||false;this.div_=null;this.closeListener_=null;this.moveListener_=null;this.contextListener_=null;this.eventListeners_=null;this.fixedWidthSet_=null}InfoBox.prototype=new google.maps.OverlayView;InfoBox.prototype.createInfoBoxDiv_=function(){var i;var events;var bw;var me=this;var cancelHandler=function(e){e.cancelBubble=true;if(e.stopPropagation){e.stopPropagation()}};var ignoreHandler=function(e){e.returnValue=false;if(e.preventDefault){e.preventDefault()}if(!me.enableEventPropagation_){cancelHandler(e)}};if(!this.div_){this.div_=document.createElement("div");this.setBoxStyle_();if(typeof this.content_.nodeType==="undefined"){this.div_.innerHTML=this.getCloseBoxImg_()+this.content_}else{this.div_.innerHTML=this.getCloseBoxImg_();this.div_.appendChild(this.content_)}this.getPanes()[this.pane_].appendChild(this.div_);this.addClickHandler_();if(this.div_.style.width){this.fixedWidthSet_=true}else{if(this.maxWidth_!==0&&this.div_.offsetWidth>this.maxWidth_){this.div_.style.width=this.maxWidth_;this.div_.style.overflow="auto";this.fixedWidthSet_=true}else{bw=this.getBoxWidths_();this.div_.style.width=this.div_.offsetWidth-bw.left-bw.right+"px";this.fixedWidthSet_=false}}this.panBox_(this.disableAutoPan_);if(!this.enableEventPropagation_){this.eventListeners_=[];events=["mousedown","mouseover","mouseout","mouseup","click","dblclick","touchstart","touchend","touchmove"];for(i=0;i<events.length;i++){this.eventListeners_.push(google.maps.event.addDomListener(this.div_,events[i],cancelHandler))}this.eventListeners_.push(google.maps.event.addDomListener(this.div_,"mouseover",function(e){this.style.cursor="default"}))}this.contextListener_=google.maps.event.addDomListener(this.div_,"contextmenu",ignoreHandler);google.maps.event.trigger(this,"domready")}};InfoBox.prototype.getCloseBoxImg_=function(){var img="";if(this.closeBoxURL_!==""){img="<img";img+=" src='"+this.closeBoxURL_+"'";img+=" align=right";img+=" title='"+this.closeBoxTitle_+"'";img+=" style='";img+=" position: relative;";img+=" cursor: pointer;";img+=" margin: "+this.closeBoxMargin_+";";img+="'>"}return img};InfoBox.prototype.addClickHandler_=function(){var closeBox;if(this.closeBoxURL_!==""){closeBox=this.div_.firstChild;this.closeListener_=google.maps.event.addDomListener(closeBox,"click",this.getCloseClickHandler_())}else{this.closeListener_=null}};InfoBox.prototype.getCloseClickHandler_=function(){var me=this;return function(e){e.cancelBubble=true;if(e.stopPropagation){e.stopPropagation()}google.maps.event.trigger(me,"closeclick");me.close()}};InfoBox.prototype.panBox_=function(disablePan){var map;var bounds;var xOffset=0,yOffset=0;if(!disablePan){map=this.getMap();if(map instanceof google.maps.Map){if(!map.getBounds().contains(this.position_)){map.setCenter(this.position_)}var iwOffsetX=this.pixelOffset_.width;var iwOffsetY=this.pixelOffset_.height;var iwWidth=this.div_.offsetWidth;var iwHeight=this.div_.offsetHeight;var padX=this.infoBoxClearance_.width;var padY=this.infoBoxClearance_.height;if(map.panToBounds.length==2){var padding={left:0,right:0,top:0,bottom:0};padding.left=-iwOffsetX+padX;padding.right=iwOffsetX+iwWidth+padX;if(this.alignBottom_){padding.top=-iwOffsetY+padY+iwHeight;padding.bottom=iwOffsetY+padY}else{padding.top=-iwOffsetY+padY;padding.bottom=iwOffsetY+iwHeight+padY}map.panToBounds(new google.maps.LatLngBounds(this.position_),padding)}else{var mapDiv=map.getDiv();var mapWidth=mapDiv.offsetWidth;var mapHeight=mapDiv.offsetHeight;var pixPosition=this.getProjection().fromLatLngToContainerPixel(this.position_);if(pixPosition.x<-iwOffsetX+padX){xOffset=pixPosition.x+iwOffsetX-padX}else if(pixPosition.x+iwWidth+iwOffsetX+padX>mapWidth){xOffset=pixPosition.x+iwWidth+iwOffsetX+padX-mapWidth}if(this.alignBottom_){if(pixPosition.y<-iwOffsetY+padY+iwHeight){yOffset=pixPosition.y+iwOffsetY-padY-iwHeight}else if(pixPosition.y+iwOffsetY+padY>mapHeight){yOffset=pixPosition.y+iwOffsetY+padY-mapHeight}}else{if(pixPosition.y<-iwOffsetY+padY){yOffset=pixPosition.y+iwOffsetY-padY}else if(pixPosition.y+iwHeight+iwOffsetY+padY>mapHeight){yOffset=pixPosition.y+iwHeight+iwOffsetY+padY-mapHeight}}if(!(xOffset===0&&yOffset===0)){var c=map.getCenter();map.panBy(xOffset,yOffset)}}}}};InfoBox.prototype.setBoxStyle_=function(){var i,boxStyle;if(this.div_){this.div_.className=this.boxClass_;this.div_.style.cssText="";boxStyle=this.boxStyle_;for(i in boxStyle){if(boxStyle.hasOwnProperty(i)){this.div_.style[i]=boxStyle[i]}}if(typeof this.div_.style.WebkitTransform==="undefined"||this.div_.style.WebkitTransform.indexOf("translateZ")===-1&&this.div_.style.WebkitTransform.indexOf("matrix")===-1){this.div_.style.WebkitTransform="translateZ(0)"}if(typeof this.div_.style.opacity!=="undefined"&&this.div_.style.opacity!==""){this.div_.style.MsFilter='"progid:DXImageTransform.Microsoft.Alpha(Opacity='+this.div_.style.opacity*100+')"';this.div_.style.filter="alpha(opacity="+this.div_.style.opacity*100+")"}this.div_.style.position="absolute";this.div_.style.visibility="hidden";if(this.zIndex_!==null){this.div_.style.zIndex=this.zIndex_}}};InfoBox.prototype.getBoxWidths_=function(){var computedStyle;var bw={top:0,bottom:0,left:0,right:0};var box=this.div_;if(document.defaultView&&document.defaultView.getComputedStyle){computedStyle=box.ownerDocument.defaultView.getComputedStyle(box,"");if(computedStyle){bw.top=parseInt(computedStyle.borderTopWidth,10)||0;bw.bottom=parseInt(computedStyle.borderBottomWidth,10)||0;bw.left=parseInt(computedStyle.borderLeftWidth,10)||0;bw.right=parseInt(computedStyle.borderRightWidth,10)||0}}else if(document.documentElement.currentStyle){if(box.currentStyle){bw.top=parseInt(box.currentStyle.borderTopWidth,10)||0;bw.bottom=parseInt(box.currentStyle.borderBottomWidth,10)||0;bw.left=parseInt(box.currentStyle.borderLeftWidth,10)||0;bw.right=parseInt(box.currentStyle.borderRightWidth,10)||0}}return bw};InfoBox.prototype.onRemove=function(){if(this.div_){this.div_.parentNode.removeChild(this.div_);this.div_=null}};InfoBox.prototype.draw=function(){this.createInfoBoxDiv_();var pixPosition=this.getProjection().fromLatLngToDivPixel(this.position_);this.div_.style.left=pixPosition.x+this.pixelOffset_.width+"px";if(this.alignBottom_){this.div_.style.bottom=-(pixPosition.y+this.pixelOffset_.height)+"px"}else{this.div_.style.top=pixPosition.y+this.pixelOffset_.height+"px"}if(this.isHidden_){this.div_.style.visibility="hidden"}else{this.div_.style.visibility="visible"}};InfoBox.prototype.setOptions=function(opt_opts){if(typeof opt_opts.boxClass!=="undefined"){this.boxClass_=opt_opts.boxClass;this.setBoxStyle_()}if(typeof opt_opts.boxStyle!=="undefined"){this.boxStyle_=opt_opts.boxStyle;this.setBoxStyle_()}if(typeof opt_opts.content!=="undefined"){this.setContent(opt_opts.content)}if(typeof opt_opts.disableAutoPan!=="undefined"){this.disableAutoPan_=opt_opts.disableAutoPan}if(typeof opt_opts.maxWidth!=="undefined"){this.maxWidth_=opt_opts.maxWidth}if(typeof opt_opts.pixelOffset!=="undefined"){this.pixelOffset_=opt_opts.pixelOffset}if(typeof opt_opts.alignBottom!=="undefined"){this.alignBottom_=opt_opts.alignBottom}if(typeof opt_opts.position!=="undefined"){this.setPosition(opt_opts.position)}if(typeof opt_opts.zIndex!=="undefined"){this.setZIndex(opt_opts.zIndex)}if(typeof opt_opts.closeBoxMargin!=="undefined"){this.closeBoxMargin_=opt_opts.closeBoxMargin}if(typeof opt_opts.closeBoxURL!=="undefined"){this.closeBoxURL_=opt_opts.closeBoxURL}if(typeof opt_opts.closeBoxTitle!=="undefined"){this.closeBoxTitle_=opt_opts.closeBoxTitle}if(typeof opt_opts.infoBoxClearance!=="undefined"){this.infoBoxClearance_=opt_opts.infoBoxClearance}if(typeof opt_opts.isHidden!=="undefined"){this.isHidden_=opt_opts.isHidden}if(typeof opt_opts.visible!=="undefined"){this.isHidden_=!opt_opts.visible}if(typeof opt_opts.enableEventPropagation!=="undefined"){this.enableEventPropagation_=opt_opts.enableEventPropagation}if(this.div_){this.draw()}};InfoBox.prototype.setContent=function(content){this.content_=content;if(this.div_){if(this.closeListener_){google.maps.event.removeListener(this.closeListener_);this.closeListener_=null}if(!this.fixedWidthSet_){this.div_.style.width=""}if(typeof content.nodeType==="undefined"){this.div_.innerHTML=this.getCloseBoxImg_()+content}else{this.div_.innerHTML=this.getCloseBoxImg_();this.div_.appendChild(content)}if(!this.fixedWidthSet_){this.div_.style.width=this.div_.offsetWidth+"px";if(typeof content.nodeType==="undefined"){this.div_.innerHTML=this.getCloseBoxImg_()+content}else{this.div_.innerHTML=this.getCloseBoxImg_();this.div_.appendChild(content)}}this.addClickHandler_()}google.maps.event.trigger(this,"content_changed")};InfoBox.prototype.setPosition=function(latlng){this.position_=latlng;if(this.div_){this.draw()}google.maps.event.trigger(this,"position_changed")};InfoBox.prototype.setZIndex=function(index){this.zIndex_=index;if(this.div_){this.div_.style.zIndex=index}google.maps.event.trigger(this,"zindex_changed")};InfoBox.prototype.setVisible=function(isVisible){this.isHidden_=!isVisible;if(this.div_){this.div_.style.visibility=this.isHidden_?"hidden":"visible"}};InfoBox.prototype.getContent=function(){return this.content_};InfoBox.prototype.getPosition=function(){return this.position_};InfoBox.prototype.getZIndex=function(){return this.zIndex_};InfoBox.prototype.getVisible=function(){var isVisible;if(typeof this.getMap()==="undefined"||this.getMap()===null){isVisible=false}else{isVisible=!this.isHidden_}return isVisible};InfoBox.prototype.getWidth=function(){var width=null;if(this.div_){width=this.div_.offsetWidth}return width};InfoBox.prototype.getHeight=function(){var height=null;if(this.div_){height=this.div_.offsetHeight}return height};InfoBox.prototype.show=function(){this.isHidden_=false;if(this.div_){this.div_.style.visibility="visible"}};InfoBox.prototype.hide=function(){this.isHidden_=true;if(this.div_){this.div_.style.visibility="hidden"}};InfoBox.prototype.open=function(map,anchor){var me=this;if(anchor){this.setPosition(anchor.getPosition());this.moveListener_=google.maps.event.addListener(anchor,"position_changed",function(){me.setPosition(this.getPosition())})}this.setMap(map);if(this.div_){this.panBox_(this.disableAutoPan_)}};InfoBox.prototype.close=function(){var i;if(this.closeListener_){google.maps.event.removeListener(this.closeListener_);this.closeListener_=null}if(this.eventListeners_){for(i=0;i<this.eventListeners_.length;i++){google.maps.event.removeListener(this.eventListeners_[i])}this.eventListeners_=null}if(this.moveListener_){google.maps.event.removeListener(this.moveListener_);this.moveListener_=null}if(this.contextListener_){google.maps.event.removeListener(this.contextListener_);this.contextListener_=null}this.setMap(null)};
var ERE_MAP=ERE_MAP||{};
(function ($){
'use strict';
ERE_MAP={
type: 'google',
options: {
locations: [],
zoom: !isNaN(parseInt(ere_map_vars.zoom, 10)) ? parseInt(ere_map_vars.zoom, 10):12,
minZoom: 0,
skin: ere_map_vars.skin,
gestureHandling: 'cooperative',// "greedy",
cluster_marker_enable: ere_map_vars.cluster_marker_enable,
draggable: true,
navigationControl: true,
mapTypeControl: true,
streetViewControl: true,
},
instances: [],
skins: [],
getInstance: function (id){
for (var i=0; i < this.instances.length; i++){
if(this.instances[i].id===id){
return this.instances[i];
}}
return false;
},
getSkin: function (skin){
return ERE_MAP.skins[skin] ? ERE_MAP.skins[skin]:''
},
addListener: function (el, e, t){
google.maps.event.addListener(el, e, function (e){
t(e);
}
)
}};
ERE_MAP.skins={
skin1: [{
featureType: "all",
elementType: "labels.icon",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "administrative",
elementType: "geometry.fill",
stylers: [{
color: "#eeeeee"
}
]
}
,
{
featureType: "administrative.country",
elementType: "geometry",
stylers: [{
lightness: "100"
}
]
}
,
{
featureType: "administrative.country",
elementType: "geometry.stroke",
stylers: [{
lightness: "0"
}
,
{
color: "#d0ecff"
}
]
}
,
{
featureType: "administrative.country",
elementType: "labels",
stylers: [{
visibility: "on"
}
]
}
,
{
featureType: "administrative.province",
elementType: "all",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "administrative.locality",
elementType: "labels.text",
stylers: [{
visibility: "simplified"
}
,
{
color: "#777777"
}
]
}
,
{
featureType: "administrative.locality",
elementType: "labels.icon",
stylers: [{
visibility: "simplified"
}
,
{
lightness: 60
}
]
}
,
{
featureType: "administrative.neighborhood",
elementType: "all",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "administrative.land_parcel",
elementType: "all",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "landscape.man_made",
elementType: "all",
stylers: [{
visibility: "simplified"
}
,
{
color: "#f5f5f5"
}
]
}
,
{
featureType: "landscape.natural",
elementType: "geometry",
stylers: [{
color: "#fafafa"
}
]
}
,
{
featureType: "landscape.natural",
elementType: "labels",
stylers: [{
visibility: "simplified"
}
]
}
,
{
featureType: "poi",
elementType: "geometry",
stylers: [{
color: "#eeeeee"
}
]
}
,
{
featureType: "poi",
elementType: "labels.icon",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "poi.attraction",
elementType: "geometry",
stylers: [{
color: "#e2e8cf"
}
]
}
,
{
featureType: "poi.business",
elementType: "all",
stylers: [{
visibility: "simplified"
}
]
}
,
{
featureType: "poi.business",
elementType: "labels.icon",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "poi.medical",
elementType: "all",
stylers: [{
color: "#eeeeee"
}
]
}
,
{
featureType: "poi.park",
elementType: "geometry",
stylers: [{
color: "#ecf4d7"
}
]
}
,
{
featureType: "poi.park",
elementType: "labels",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "poi.place_of_worship",
elementType: "geometry",
stylers: [{
color: "#eeeeee"
}
]
}
,
{
featureType: "poi.school",
elementType: "geometry",
stylers: [{
color: "#eeeeee"
}
]
}
,
{
featureType: "poi.sports_complex",
elementType: "geometry",
stylers: [{
color: "#eeeeee"
}
]
}
,
{
featureType: "road.highway",
elementType: "geometry",
stylers: [{
color: "#e5e5e5"
}
,
{
visibility: "simplified"
}
]
}
,
{
featureType: "road.highway",
elementType: "labels",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "road.arterial",
elementType: "geometry.stroke",
stylers: [{
color: "#eeeeee"
}
]
}
,
{
featureType: "road.arterial",
elementType: "labels.icon",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "road.local",
elementType: "geometry.fill",
stylers: [{
color: "#ffffff"
}
]
}
,
{
featureType: "road.local",
elementType: "geometry.stroke",
stylers: [{
visibility: "on"
}
,
{
color: "#eeeeee"
}
]
}
,
{
featureType: "road.local",
elementType: "labels",
stylers: [{
visibility: "simplified"
}
]
}
,
{
featureType: "road.local",
elementType: "labels.text",
stylers: [{
color: "#777777"
}
]
}
,
{
featureType: "road.local",
elementType: "labels.icon",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "transit.line",
elementType: "labels",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "transit.station",
elementType: "geometry.fill",
stylers: [{
color: "#eeeeee"
}
]
}
,
{
featureType: "water",
elementType: "all",
stylers: [{
visibility: "simplified"
}
]
}
,
{
featureType: "water",
elementType: "geometry.fill",
stylers: [{
color: "#d0ecff"
}
]
}
,
{
featureType: "water",
elementType: "labels",
stylers: [{
visibility: "off"
}
]
}
],
skin2: [{
featureType: "all",
elementType: "labels.text.fill",
stylers: [{
saturation: "0"
}
,
{
color: "#f3f3f3"
}
,
{
lightness: "-40"
}
,
{
gamma: "1"
}
]
}
,
{
featureType: "all",
elementType: "labels.text.stroke",
stylers: [{
visibility: "on"
}
,
{
color: "#000000"
}
,
{
lightness: "12"
}
]
}
,
{
featureType: "all",
elementType: "labels.icon",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "administrative",
elementType: "geometry.fill",
stylers: [{
color: "#2c2d37"
}
,
{
lightness: "4"
}
]
}
,
{
featureType: "administrative",
elementType: "geometry.stroke",
stylers: [{
color: "#2c2d37"
}
,
{
lightness: 17
}
,
{
weight: 1.2
}
]
}
,
{
featureType: "landscape",
elementType: "geometry",
stylers: [{
color: "#2c2d37"
}
,
{
lightness: "25"
}
,
{
gamma: "0.60"
}
]
}
,
{
featureType: "poi",
elementType: "geometry",
stylers: [{
color: "#2c2d37"
}
,
{
lightness: "26"
}
,
{
gamma: "0.49"
}
]
}
,
{
featureType: "road.highway",
elementType: "geometry.fill",
stylers: [{
color: "#2c2d37"
}
,
{
lightness: 17
}
,
{
gamma: "0.60"
}
]
}
,
{
featureType: "road.highway",
elementType: "geometry.stroke",
stylers: [{
color: "#2c2d37"
}
,
{
lightness: 29
}
,
{
weight: .2
}
,
{
gamma: "0.60"
}
]
}
,
{
featureType: "road.arterial",
elementType: "geometry",
stylers: [{
color: "#2c2d37"
}
,
{
lightness: 18
}
,
{
gamma: "0.60"
}
]
}
,
{
featureType: "road.local",
elementType: "geometry",
stylers: [{
color: "#2c2d37"
}
,
{
lightness: 16
}
,
{
gamma: "0.60"
}
]
}
,
{
featureType: "transit",
elementType: "geometry",
stylers: [{
color: "#2c2d37"
}
,
{
lightness: "29"
}
,
{
gamma: "0.60"
}
]
}
,
{
featureType: "water",
elementType: "geometry",
stylers: [{
color: "#3c3d47"
}
,
{
lightness: "16"
}
,
{
gamma: "0.50"
}
]
}
],
skin3: [{
featureType: "water",
elementType: "geometry",
stylers: [{
color: "#e9e9e9"
}
,
{
lightness: 17
}
]
}
,
{
featureType: "landscape",
elementType: "geometry",
stylers: [{
color: "#f5f5f5"
}
,
{
lightness: 20
}
]
}
,
{
featureType: "road.highway",
elementType: "geometry.fill",
stylers: [{
color: "#ffffff"
}
,
{
lightness: 17
}
]
}
,
{
featureType: "road.highway",
elementType: "geometry.stroke",
stylers: [{
color: "#ffffff"
}
,
{
lightness: 29
}
,
{
weight: .2
}
]
}
,
{
featureType: "road.arterial",
elementType: "geometry",
stylers: [{
color: "#ffffff"
}
,
{
lightness: 18
}
]
}
,
{
featureType: "road.local",
elementType: "geometry",
stylers: [{
color: "#ffffff"
}
,
{
lightness: 16
}
]
}
,
{
featureType: "poi",
elementType: "geometry",
stylers: [{
color: "#f5f5f5"
}
,
{
lightness: 21
}
]
}
,
{
featureType: "poi.park",
elementType: "geometry",
stylers: [{
color: "#dedede"
}
,
{
lightness: 21
}
]
}
,
{
elementType: "labels.text.stroke",
stylers: [{
visibility: "on"
}
,
{
color: "#ffffff"
}
,
{
lightness: 16
}
]
}
,
{
elementType: "labels.text.fill",
stylers: [{
saturation: 36
}
,
{
color: "#333333"
}
,
{
lightness: 40
}
]
}
,
{
elementType: "labels.icon",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "transit",
elementType: "geometry",
stylers: [{
color: "#f2f2f2"
}
,
{
lightness: 19
}
]
}
,
{
featureType: "administrative",
elementType: "geometry.fill",
stylers: [{
color: "#fefefe"
}
,
{
lightness: 20
}
]
}
,
{
featureType: "administrative",
elementType: "geometry.stroke",
stylers: [{
color: "#fefefe"
}
,
{
lightness: 17
}
,
{
weight: 1.2
}
]
}
],
skin4: [{
featureType: "administrative",
elementType: "labels.text.fill",
stylers: [{
color: "#444444"
}
]
}
,
{
featureType: "landscape",
elementType: "all",
stylers: [{
color: "#f2f2f2"
}
]
}
,
{
featureType: "poi",
elementType: "all",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "road",
elementType: "all",
stylers: [{
saturation: -100
}
,
{
lightness: 45
}
]
}
,
{
featureType: "road.highway",
elementType: "all",
stylers: [{
visibility: "simplified"
}
]
}
,
{
featureType: "road.arterial",
elementType: "labels.icon",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "transit",
elementType: "all",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "water",
elementType: "all",
stylers: [{
color: "#46bcec"
}
,
{
visibility: "on"
}
]
}
],
skin5: [{
featureType: "landscape.man_made",
elementType: "geometry",
stylers: [{
color: "#f7f1df"
}
]
}
,
{
featureType: "landscape.natural",
elementType: "geometry",
stylers: [{
color: "#d0e3b4"
}
]
}
,
{
featureType: "landscape.natural.terrain",
elementType: "geometry",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "poi",
elementType: "labels",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "poi.business",
elementType: "all",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "poi.medical",
elementType: "geometry",
stylers: [{
color: "#fbd3da"
}
]
}
,
{
featureType: "poi.park",
elementType: "geometry",
stylers: [{
color: "#bde6ab"
}
]
}
,
{
featureType: "road",
elementType: "geometry.stroke",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "road",
elementType: "labels",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "road.highway",
elementType: "geometry.fill",
stylers: [{
color: "#ffe15f"
}
]
}
,
{
featureType: "road.highway",
elementType: "geometry.stroke",
stylers: [{
color: "#efd151"
}
]
}
,
{
featureType: "road.arterial",
elementType: "geometry.fill",
stylers: [{
color: "#ffffff"
}
]
}
,
{
featureType: "road.local",
elementType: "geometry.fill",
stylers: [{
color: "black"
}
]
}
,
{
featureType: "transit.station.airport",
elementType: "geometry.fill",
stylers: [{
color: "#cfb2db"
}
]
}
,
{
featureType: "water",
elementType: "geometry",
stylers: [{
color: "#a2daf2"
}
]
}
],
skin6: [{
featureType: "administrative",
elementType: "all",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "landscape",
elementType: "all",
stylers: [{
visibility: "simplified"
}
,
{
hue: "#0066ff"
}
,
{
saturation: 74
}
,
{
lightness: 100
}
]
}
,
{
featureType: "poi",
elementType: "all",
stylers: [{
visibility: "simplified"
}
]
}
,
{
featureType: "road",
elementType: "all",
stylers: [{
visibility: "simplified"
}
]
}
,
{
featureType: "road.highway",
elementType: "all",
stylers: [{
visibility: "off"
}
,
{
weight: .6
}
,
{
saturation: -85
}
,
{
lightness: 61
}
]
}
,
{
featureType: "road.highway",
elementType: "geometry",
stylers: [{
visibility: "on"
}
]
}
,
{
featureType: "road.arterial",
elementType: "all",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "road.local",
elementType: "all",
stylers: [{
visibility: "on"
}
]
}
,
{
featureType: "transit",
elementType: "all",
stylers: [{
visibility: "simplified"
}
]
}
,
{
featureType: "water",
elementType: "all",
stylers: [{
visibility: "simplified"
}
,
{
color: "#5f94ff"
}
,
{
lightness: 26
}
,
{
gamma: 5.86
}
]
}
],
skin7: [{
featureType: "water",
elementType: "geometry",
stylers: [{
color: "#a0d6d1"
}
,
{
lightness: 17
}
]
}
,
{
featureType: "landscape",
elementType: "geometry",
stylers: [{
color: "#ffffff"
}
,
{
lightness: 20
}
]
}
,
{
featureType: "road.highway",
elementType: "geometry.fill",
stylers: [{
color: "#dedede"
}
,
{
lightness: 17
}
]
}
,
{
featureType: "road.highway",
elementType: "geometry.stroke",
stylers: [{
color: "#dedede"
}
,
{
lightness: 29
}
,
{
weight: .2
}
]
}
,
{
featureType: "road.arterial",
elementType: "geometry",
stylers: [{
color: "#dedede"
}
,
{
lightness: 18
}
]
}
,
{
featureType: "road.local",
elementType: "geometry",
stylers: [{
color: "#ffffff"
}
,
{
lightness: 16
}
]
}
,
{
featureType: "poi",
elementType: "geometry",
stylers: [{
color: "#f1f1f1"
}
,
{
lightness: 21
}
]
}
,
{
elementType: "labels.text.stroke",
stylers: [{
visibility: "on"
}
,
{
color: "#ffffff"
}
,
{
lightness: 16
}
]
}
,
{
elementType: "labels.text.fill",
stylers: [{
saturation: 36
}
,
{
color: "#333333"
}
,
{
lightness: 40
}
]
}
,
{
elementType: "labels.icon",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "transit",
elementType: "geometry",
stylers: [{
color: "#f2f2f2"
}
,
{
lightness: 19
}
]
}
,
{
featureType: "administrative",
elementType: "geometry.fill",
stylers: [{
color: "#fefefe"
}
,
{
lightness: 20
}
]
}
,
{
featureType: "administrative",
elementType: "geometry.stroke",
stylers: [{
color: "#fefefe"
}
,
{
lightness: 17
}
,
{
weight: 1.2
}
]
}
],
skin8: [{
featureType: "all",
stylers: [{
saturation: 0
}
,
{
hue: "#e7ecf0"
}
]
}
,
{
featureType: "road",
stylers: [{
saturation: -70
}
]
}
,
{
featureType: "transit",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "poi",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "water",
stylers: [{
visibility: "simplified"
}
,
{
saturation: -60
}
]
}
],
skin9: [{
featureType: "all",
elementType: "labels",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "all",
elementType: "labels",
stylers: [{
visibility: "on"
}
]
}
,
{
featureType: "administrative.country",
elementType: "labels",
stylers: [{
visibility: "on"
}
]
}
,
{
featureType: "administrative.country",
elementType: "labels.text",
stylers: [{
visibility: "on"
}
]
}
,
{
featureType: "administrative.province",
elementType: "labels",
stylers: [{
visibility: "on"
}
]
}
,
{
featureType: "administrative.province",
elementType: "labels.text",
stylers: [{
visibility: "on"
}
]
}
,
{
featureType: "administrative.locality",
elementType: "labels",
stylers: [{
visibility: "on"
}
]
}
,
{
featureType: "administrative.neighborhood",
elementType: "labels",
stylers: [{
visibility: "on"
}
]
}
,
{
featureType: "administrative.land_parcel",
elementType: "labels",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "landscape",
elementType: "all",
stylers: [{
hue: "#FFBB00"
}
,
{
saturation: 43.400000000000006
}
,
{
lightness: 37.599999999999994
}
,
{
gamma: 1
}
]
}
,
{
featureType: "landscape",
elementType: "geometry.fill",
stylers: [{
saturation: "-40"
}
,
{
lightness: "36"
}
]
}
,
{
featureType: "landscape.man_made",
elementType: "geometry",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "landscape.natural",
elementType: "geometry.fill",
stylers: [{
saturation: "-77"
}
,
{
lightness: "28"
}
]
}
,
{
featureType: "landscape.natural",
elementType: "labels",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "poi",
elementType: "all",
stylers: [{
hue: "#ff0091"
}
,
{
saturation: -44
}
,
{
lightness: 11.200000000000017
}
,
{
gamma: 1
}
]
}
,
{
featureType: "poi",
elementType: "labels",
stylers: [{
visibility: "off"
}
,
{
saturation: -81
}
]
}
,
{
featureType: "poi.attraction",
elementType: "labels",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "poi.park",
elementType: "geometry.fill",
stylers: [{
saturation: "-24"
}
,
{
lightness: "61"
}
]
}
,
{
featureType: "road",
elementType: "labels",
stylers: [{
visibility: "on"
}
]
}
,
{
featureType: "road",
elementType: "labels.text.fill",
stylers: [{
visibility: "on"
}
]
}
,
{
featureType: "road",
elementType: "labels.icon",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "road.highway",
elementType: "all",
stylers: [{
hue: "#ff0048"
}
,
{
saturation: -78
}
,
{
lightness: 45.599999999999994
}
,
{
gamma: 1
}
]
}
,
{
featureType: "road.highway",
elementType: "labels.icon",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "road.highway.controlled_access",
elementType: "labels.icon",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "road.arterial",
elementType: "all",
stylers: [{
hue: "#FF0300"
}
,
{
saturation: -100
}
,
{
lightness: 51.19999999999999
}
,
{
gamma: 1
}
]
}
,
{
featureType: "road.local",
elementType: "all",
stylers: [{
hue: "#ff0300"
}
,
{
saturation: -100
}
,
{
lightness: 52
}
,
{
gamma: 1
}
]
}
,
{
featureType: "road.local",
elementType: "labels.icon",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "transit",
elementType: "geometry",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "transit",
elementType: "geometry.stroke",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "transit",
elementType: "labels",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "transit",
elementType: "labels.icon",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "transit.line",
elementType: "labels",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "transit.station",
elementType: "labels.icon",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "water",
elementType: "all",
stylers: [{
hue: "#789cdb"
}
,
{
saturation: -66
}
,
{
lightness: 2.4000000000000057
}
,
{
gamma: 1
}
]
}
,
{
featureType: "water",
elementType: "labels",
stylers: [{
visibility: "off"
}
]
}
],
skin10: [{
featureType: "all",
elementType: "labels",
stylers: [{
visibility: "on"
}
]
}
,
{
featureType: "administrative.country",
elementType: "labels",
stylers: [{
visibility: "on"
}
]
}
,
{
featureType: "administrative.country",
elementType: "labels.text",
stylers: [{
visibility: "on"
}
]
}
,
{
featureType: "administrative.province",
elementType: "labels",
stylers: [{
visibility: "on"
}
]
}
,
{
featureType: "administrative.province",
elementType: "labels.text",
stylers: [{
visibility: "on"
}
]
}
,
{
featureType: "administrative.locality",
elementType: "labels",
stylers: [{
visibility: "on"
}
]
}
,
{
featureType: "administrative.neighborhood",
elementType: "labels",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "administrative.land_parcel",
elementType: "labels",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "landscape",
elementType: "all",
stylers: [{
hue: "#FFBB00"
}
,
{
saturation: 43.400000000000006
}
,
{
lightness: 37.599999999999994
}
,
{
gamma: 1
}
]
}
,
{
featureType: "landscape",
elementType: "geometry.fill",
stylers: [{
saturation: "-40"
}
,
{
lightness: "36"
}
]
}
,
{
featureType: "landscape.man_made",
elementType: "geometry",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "landscape.natural",
elementType: "geometry.fill",
stylers: [{
saturation: "-77"
}
,
{
lightness: "28"
}
]
}
,
{
featureType: "landscape.natural",
elementType: "labels",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "poi",
elementType: "all",
stylers: [{
hue: "#00FF6A"
}
,
{
saturation: -1.0989010989011234
}
,
{
lightness: 11.200000000000017
}
,
{
gamma: 1
}
]
}
,
{
featureType: "poi",
elementType: "labels",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "poi.attraction",
elementType: "labels",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "poi.park",
elementType: "geometry.fill",
stylers: [{
saturation: "-24"
}
,
{
lightness: "61"
}
]
}
,
{
featureType: "road",
elementType: "labels",
stylers: [{
visibility: "on"
}
]
}
,
{
featureType: "road",
elementType: "labels.text.fill",
stylers: [{
visibility: "on"
}
]
}
,
{
featureType: "road",
elementType: "labels.icon",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "road.highway",
elementType: "all",
stylers: [{
hue: "#FFC200"
}
,
{
saturation: -61.8
}
,
{
lightness: 45.599999999999994
}
,
{
gamma: 1
}
]
}
,
{
featureType: "road.highway",
elementType: "labels.icon",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "road.highway.controlled_access",
elementType: "labels.icon",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "road.arterial",
elementType: "all",
stylers: [{
hue: "#FF0300"
}
,
{
saturation: -100
}
,
{
lightness: 51.19999999999999
}
,
{
gamma: 1
}
]
}
,
{
featureType: "road.local",
elementType: "all",
stylers: [{
hue: "#ff0300"
}
,
{
saturation: -100
}
,
{
lightness: 52
}
,
{
gamma: 1
}
]
}
,
{
featureType: "road.local",
elementType: "labels.icon",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "transit",
elementType: "geometry",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "transit",
elementType: "geometry.stroke",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "transit",
elementType: "labels",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "transit",
elementType: "labels.icon",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "transit.line",
elementType: "labels",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "transit.station",
elementType: "labels.icon",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "water",
elementType: "all",
stylers: [{
hue: "#0078FF"
}
,
{
saturation: -13.200000000000003
}
,
{
lightness: 2.4000000000000057
}
,
{
gamma: 1
}
]
}
,
{
featureType: "water",
elementType: "labels",
stylers: [{
visibility: "off"
}
]
}
],
skin11: [{
featureType: "all",
elementType: "labels",
stylers: [{
visibility: "on"
}
]
}
,
{
featureType: "administrative.country",
elementType: "labels",
stylers: [{
visibility: "on"
}
]
}
,
{
featureType: "administrative.country",
elementType: "labels.text",
stylers: [{
visibility: "on"
}
]
}
,
{
featureType: "all",
elementType: "geometry",
stylers: [{
color: "#262c33"
}
]
}
,
{
featureType: "all",
elementType: "labels.text.fill",
stylers: [{
gamma: .01
}
,
{
lightness: 20
}
,
{
color: "#949aa6"
}
]
}
,
{
featureType: "all",
elementType: "labels.text.stroke",
stylers: [{
saturation: -31
}
,
{
lightness: -33
}
,
{
weight: 2
}
,
{
gamma: "0.00"
}
,
{
visibility: "off"
}
]
}
,
{
featureType: "all",
elementType: "labels.icon",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "administrative.province",
elementType: "all",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "administrative.locality",
elementType: "all",
stylers: [{
visibility: "simplified"
}
]
}
,
{
featureType: "administrative.locality",
elementType: "labels.icon",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "administrative.neighborhood",
elementType: "all",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "administrative.land_parcel",
elementType: "all",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "landscape",
elementType: "geometry",
stylers: [{
lightness: 30
}
,
{
saturation: 30
}
,
{
color: "#353c44"
}
,
{
visibility: "on"
}
]
}
,
{
featureType: "poi",
elementType: "geometry",
stylers: [{
saturation: "0"
}
,
{
lightness: "0"
}
,
{
gamma: "0.30"
}
,
{
weight: "0.01"
}
,
{
visibility: "off"
}
]
}
,
{
featureType: "poi.park",
elementType: "geometry",
stylers: [{
lightness: "100"
}
,
{
saturation: -20
}
,
{
visibility: "simplified"
}
,
{
color: "#31383f"
}
]
}
,
{
featureType: "road",
elementType: "geometry",
stylers: [{
lightness: 10
}
,
{
saturation: -30
}
,
{
color: "#2a3037"
}
]
}
,
{
featureType: "road",
elementType: "geometry.stroke",
stylers: [{
saturation: "-100"
}
,
{
lightness: "-100"
}
,
{
gamma: "0.00"
}
,
{
color: "#2a3037"
}
]
}
,
{
featureType: "road",
elementType: "labels",
stylers: [{
visibility: "on"
}
]
}
,
{
featureType: "road",
elementType: "labels.text",
stylers: [{
visibility: "on"
}
,
{
color: "#575e6b"
}
]
}
,
{
featureType: "road",
elementType: "labels.text.stroke",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "road",
elementType: "labels.icon",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "road.highway",
elementType: "geometry.fill",
stylers: [{
color: "#4c5561"
}
,
{
visibility: "on"
}
]
}
,
{
featureType: "road.highway",
elementType: "geometry.stroke",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "transit",
elementType: "all",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "transit.station.airport",
elementType: "all",
stylers: [{
visibility: "off"
}
]
}
,
{
featureType: "water",
elementType: "all",
stylers: [{
lightness: -20
}
,
{
color: "#2a3037"
}
]
}
],
skin12: []
};
ERE_MAP.LatLng=function (latitude, longitude){
this.init(latitude, longitude);
};
ERE_MAP.LatLng.prototype.init=function (latitude, longitude){
this.latitude=latitude;
this.longitude=longitude;
this.latlng=new google.maps.LatLng(latitude, longitude)
};
ERE_MAP.LatLng.prototype.getLatitude=function (){
return this.latlng.lat();
};
ERE_MAP.LatLng.prototype.getLongitude=function (){
return this.latlng.lng();
};
ERE_MAP.LatLng.prototype.toGeocoderFormat=function (){
return this.latlng;
};
ERE_MAP.LatLng.prototype.getSourceObject=function (){
return this.latlng;
};
ERE_MAP.LatLngBounds=function (southwest, northeast){
this.init(southwest, northeast)
};
ERE_MAP.LatLngBounds.prototype.init=function (southwest, northeast){
this.southwest=southwest;
this.northeast=northeast;
this.bounds=new google.maps.LatLngBounds(southwest, northeast);
};
ERE_MAP.LatLngBounds.prototype.getSourceObject=function (){
return this.bounds;
};
ERE_MAP.LatLngBounds.prototype.extend=function (e){
this.bounds.extend(e.getSourceObject());
};
ERE_MAP.Clusterer=function (e){
this.init(e);
};
ERE_MAP.Clusterer.prototype.init=function (e){
this.map=e;
var options={
clusterClass: 'ere__cluster',
styles: [
{
textColor: "#fff",
height: 35,
width: 35
}
]
};
this.clusterer=new MarkerClusterer(this.map.getSourceObject(), this.getMarkers(), options);
};
ERE_MAP.Clusterer.prototype.getMarkers=function (){
return this.map.markers.map(function (e){
return e.getSourceObject();
}
)
};
ERE_MAP.Clusterer.prototype.update=function (){
this.clusterer.clearMarkers();
this.clusterer.addMarkers(this.getMarkers());
};
ERE_MAP.Clusterer.prototype.setMaxZoom=function (e){
this.clusterer.setMaxZoom(e);
};
ERE_MAP.Clusterer.prototype.repaint=function (){
this.clusterer.repaint();
}
ERE_MAP.Marker=function (options){
var newConfigMarker=$.parseJSON(JSON.stringify(ere_map_vars.marker));
this.options=$.extend(true, {
position: false,
map: false,
popup: false,
animation: false,
draggable: false,
template: {
type: 'basic', // 'simple'| 'basic'
marker: newConfigMarker,
id: ''
}}, options);
this.init();
};
ERE_MAP.Marker.prototype.init=function (){
if(this.options.template.type==='basic'){
this.marker=new ERE_MAP.MarkerOverLay(this);
}else{
this.marker=new google.maps.Marker({
position: this.options.position.latlng,
map: this.options.map.map,
draggable: this.options.draggable,
animation: this.options.animation
});
}
if(this.options.position){
this.setPosition(this.options.position);
}
if(this.options.map){
this.setMap(this.options.map);
}};
ERE_MAP.Marker.prototype.setPosition=function (e){
this.marker.setPosition(e.getSourceObject());
return this;
};
ERE_MAP.Marker.prototype.getPosition=function (){
return this.options.position;
};
ERE_MAP.Marker.prototype.setMap=function (e){
this.marker.setMap(e.getSourceObject());
return this;
};
ERE_MAP.Marker.prototype.remove=function (){
if(this.options.popup){
this.options.popup.remove();
}
this.marker.setMap(null);
this.marker.remove();
return this;
};
ERE_MAP.Marker.prototype.getSourceObject=function (){
return this.marker;
};
ERE_MAP.Marker.prototype.getTemplate=function (){
var e=document.createElement("div");
e.className="ere__marker-container ere__marker-" +  this.options.template.marker.type;
e.id=this.options.template.id;
var template=wp.template('ere__marker_template');
var t=template({
icon:this.options.template.marker.html
});
$(e).append(t);
this.$element=$(e);
return e;
};
ERE_MAP.Marker.prototype.active=function (){
this.$element.addClass('active');
$(this.marker.args.template).trigger('click');
};
ERE_MAP.Marker.prototype.hide=function (){
this.$element.addClass('hide');
};
ERE_MAP.Marker.prototype.show=function (){
this.$element.removeClass('hide');
};
ERE_MAP.MarkerOverLay=function (e){
this.args={
marker: e,
template: null,
position: e.getPosition().getSourceObject(),
map: e.options.map,
animation: e.options.animation,
popup: e.options.popup,
draggable: e.options.draggable
};
if(this.args.map&&this.args.popup){
this.args.popup.setMap(this.args.map);
}};
"undefined"!=typeof google&&(ERE_MAP.MarkerOverLay.prototype=new google.maps.OverlayView);
ERE_MAP.MarkerOverLay.prototype.onAdd=function (){
var self=this;
if(!this.args.template){
this.args.template=this.args.marker.getTemplate();
if(this.args.map&&this.args.popup){
google.maps.event.addDomListener(this.args.template, 'click', function (e){
e.preventDefault();
e.stopPropagation();
self.args.map.closePopups();
self.args.popup.setPosition(self.args.marker.getPosition());
var $marker=$(this).find('.ere__pin-wrap'),
marker_bottom=parseInt($marker.css('bottom').replace('px', '')),
marker_height=$marker.height();
if(!isNaN(marker_bottom)){
marker_height=marker_height + marker_bottom;
}
self.args.popup.popup.setOptions({
boxStyle: {
margin: '0 0 ' + marker_height + 'px 0'
}});
self.args.popup.show();
self.args.marker.active();
});
}
this.getPanes().overlayMouseTarget.appendChild(this.args.template);
}};
ERE_MAP.MarkerOverLay.prototype.draw=function (){
this.setPosition();
};
ERE_MAP.MarkerOverLay.prototype.remove=function (){
if(this.args.template){
this.args.template.parentNode.removeChild(this.args.template);
this.args.template=null;
}};
ERE_MAP.MarkerOverLay.prototype.getPosition=function (){
return this.args.position;
};
ERE_MAP.MarkerOverLay.prototype.setPosition=function (){
if(this.args.template&&!(!this.args.position instanceof google.maps.LatLng)){
var projection=this.getProjection();
var position=projection.fromLatLngToDivPixel(this.args.position);
this.args.template.style.left=position.x + "px";
this.args.template.style.top=position.y + "px";
}};
ERE_MAP.MarkerOverLay.prototype.getDraggable=function (){
return this.args.draggable;
};
ERE_MAP.Geocoder=function (){
this.init();
};
ERE_MAP.Geocoder.prototype.init=function (){
this.geocoder=new google.maps.Geocoder();
};
ERE_MAP.Geocoder.prototype.setMap=function (e){
this.map=e;
};
ERE_MAP.Geocoder.prototype.geocode=function (e, t, i){
var self=this,
r={},
o=false;
if(typeof t==='function'){
i=t;
t={};}
if(e instanceof google.maps.LatLng){
r.location=e;
}else if(e instanceof ERE_MAP.LatLng){
r.location=e.getSourceObject();
}else{
if("string"!=typeof e||!e.length) return i(o);
r.address=e;
}
t=$.extend({
limit: 1
}, t);
this.geocoder.geocode(r, function (results, status){
if(status==='OK'&&results&&results.length){
o=t.limit===1 ? self.formatFeature(results[0]):results.map(self.formatFeature);
}
return i(o);
});
};
ERE_MAP.Geocoder.prototype.formatFeature=function (e){
return {
location: new ERE_MAP.LatLng(e.geometry.location.lat(), e.geometry.location.lng()),
latitude: e.geometry.location.lat(),
longitude: e.geometry.location.lng(),
address: e.formatted_address
}};
ERE_MAP.Autocomplete=function (e){
$(e).data('autocomplete', this);
this.init(e);
};
ERE_MAP.Autocomplete.prototype.init=function (e){
if(!(e instanceof Element)) return false;
this.element=e;
this.$element=$(e);
this.options={};
if(ere_map_vars.types.length){
this.options.types=[ere_map_vars.types];
}
if(ere_map_vars.countries.length){
this.options.componentRestrictions={
country: ere_map_vars.countries
};}
this.geocoder=new ERE_MAP.Geocoder();
this.autocomplete=new google.maps.places.Autocomplete(this.element, this.options);
this.$element.on('keydown', function (e){
if(e.which===13){
e.preventDefault();
}});
};
ERE_MAP.Autocomplete.prototype.change=function (t){
var self=this;
this.autocomplete.addListener('place_changed', function (){
var place=self.autocomplete.getPlace();
var e=false;
if(typeof place.geometry!=="undefined"){
e=self.geocoder.formatFeature(self.autocomplete.getPlace());
}else if(typeof place.name!=='undefined'){
self.geocoder.geocode(place.name, function (e){
if(e){
self.$element.val(e.address);
t(e);
}});
}
t(e);
});
};
ERE_MAP.Popup=function (e){
this.options=$.extend(true, {
content: "",
classes: "ere__map-popup-wrap ere__map-popup-google",
position: false,
map: false,
width: false,
type: ''
}, e);
if(this.options.type!==''){
this.options.classes=this.options.classes + ' ' + this.options.type
}
this.init(e);
};
ERE_MAP.Popup.prototype.init=function (e){
this.template_name="default";
this.popup=new InfoBox({
content: "",
disableAutoPan: false,
maxWidth: 0,
zIndex: 5e8,
boxClass: this._getBoxClass(),
boxStyle: {
width: this.options.width ? this.options.width:"300px",
zIndex: 5e6
},
infoBoxClearance: new google.maps.Size(1, 1),
isHidden: false,
pane: "floatPane",
enableEventPropagation: false,
alignBottom: true
}
);
if(this.options.position){
this.setPosition(this.options.position);
}
if(this.options.content){
this.setContent(this.options.content);
}
if(this.options.map){
this.setMap(this.options.map);
}};
ERE_MAP.Popup.prototype.setContent=function (e){
this.popup.setContent(e);
return this;
};
ERE_MAP.Popup.prototype.setPosition=function (e){
this.popup.setPosition(e.getSourceObject());
return this;
};
ERE_MAP.Popup.prototype.setMap=function (e){
this.map=e;
return this;
};
ERE_MAP.Popup.prototype.remove=function (){
this.popup.close();
return this;
};
ERE_MAP.Popup.prototype.show=function (){
return this.popup.getVisible() ? this:(this.popup.open(this.map.getSourceObject()), setTimeout(function (){
this.popup.setOptions({
boxClass: this._getBoxClass() + " show"
}
)
}
.bind(this), 5), this)
};
ERE_MAP.Popup.prototype.hide=function (){
return this.popup.getVisible() ? (this.remove(), this.popup.setOptions({
boxClass: this._getBoxClass()
}
), this):this
};
ERE_MAP.Popup.prototype._getBoxClass=function (){
return [this.options.classes ? this.options.classes:"", "tpl-" + this.template_name].join(" ");
};
ERE_MAP.MAP=function (element){
this.$element=$(element);
this.element=element;
this.init();
};
ERE_MAP.MAP.prototype.init=function (){
this.options=$.extend({}, ERE_MAP.options, this.$element.data('options'));
this.markers=[];
this.bounds=new ERE_MAP.LatLngBounds;
this.id=typeof (this.$element.attr('id'))!=='undefined' ? this.$element.attr('id'):false;
this.events={};
var map_options={
zoom: parseInt(this.options.zoom, 10),
minZoom: this.options.minZoom,
draggable: this.options.draggable,
navigationControl: this.options.navigationControl,
mapTypeControl: this.options.mapTypeControl,
streetViewControl: this.options.streetViewControl,
}
var map_styles=ERE_MAP.getSkin(this.options.skin);
if(map_styles!==''){
map_options.styles=map_styles;
}
this.map=new google.maps.Map(this.element, map_options);
this.setCenter(new ERE_MAP.LatLng(0, 0));
this.maybeAddMarkers();
if(this.options.cluster_marker_enable){
this.clusterer=new ERE_MAP.Clusterer(this);
this.addListener('updated_markers', this._updateCluster.bind(this));
}
this.addListener("zoom_changed", this.closePopups.bind(this));
this.addListener("click", this.closePopups.bind(this));
this.addListener("click", this.deactiveMarker.bind(this));
ERE_MAP.instances.push({
id: this.id,
map: this.map,
instance: this
});
};
ERE_MAP.MAP.prototype.maybeAddMarkers=function(){
var location=this.$element.data('location');
if(location&&location.position){
this.trigger('updating_markers');
var position=new ERE_MAP.LatLng(location.position.lat, location.position.lng);
var marker_option={
position: position,
map: this,
template: {
}};
if(location.marker){
marker_option.template.marker=location.marker;
}
if(location.marker_type){
marker_option.template.type=location.marker_type;
}
if(location.id){
marker_option.template.id=location.id;
}
if(location.popup){
var template=wp.template('ere__map_popup_template');
var content_popup=template({
title: location.popup.title,
url:location.popup.url,
thumb: location.popup.thumb,
price: location.popup.price,
address: location.popup.address
});
marker_option.popup=new ERE_MAP.Popup({
content: content_popup
});
}
var marker=new ERE_MAP.Marker(marker_option);
this.markers.push(marker);
this.setCenter(position);
this.trigger("updated_markers");
}};
ERE_MAP.MAP.prototype.setZoom=function (e){
this.map.setZoom(e);
};
ERE_MAP.MAP.prototype.resetZoom=function (e){
this.setZoom(this.options.zoom);
};
ERE_MAP.MAP.prototype.getZoom=function (){
return this.map.getZoom();
};
ERE_MAP.MAP.prototype.setCenter=function (e){
this.map.setCenter(e.getSourceObject());
};
ERE_MAP.MAP.prototype.fitBounds=function (e){
this.map.fitBounds(e.getSourceObject());
};
ERE_MAP.MAP.prototype.panTo=function (e){
this.map.panTo(e.getSourceObject());
};
ERE_MAP.MAP.prototype.getClickPosition=function (e){
return new ERE_MAP.LatLng(e.latLng.lat(), e.latLng.lng());
};
ERE_MAP.MAP.prototype.getDragPosition=function (e){
return new ERE_MAP.LatLng(e.latLng.lat(), e.latLng.lng());
};
ERE_MAP.MAP.prototype.addListener=function (e, t){
google.maps.event.addListener(this.map, this.getSourceEvent(e), function (e){
t(e);
}
)
};
ERE_MAP.MAP.prototype.addListenerOnce=function (e, t){
google.maps.event.addListenerOnce(this.map, this.getSourceEvent(e), function (e){
t(e);
}
);
};
ERE_MAP.MAP.prototype.trigger=function (e){
google.maps.event.trigger(this.map, this.getSourceEvent(e));
};
ERE_MAP.MAP.prototype.getSourceObject=function (){
return this.map;
};
ERE_MAP.MAP.prototype.getSourceEvent=function (e){
return void 0!==this.events[e] ? this.events[e]:e;
};
ERE_MAP.MAP.prototype.closePopups=function (){
for (var i=0; i < this.markers.length; i++){
if("object"===typeof (this.markers[i].options.popup)){
this.markers[i].options.popup.hide();
}}
};
ERE_MAP.MAP.prototype.removeMarkers=function (){
for (var i=0; i < this.markers.length; i++){
this.markers[i].remove();
}
this.markers.length=0;
this.markers=[];
};
ERE_MAP.MAP.prototype._updateCluster=function (){
this.clusterer||(this.clusterer=new ERE_MAP.Clusterer(this));
setTimeout(function (){
this.clusterer.update();
}.bind(this), 5);
};
ERE_MAP.MAP.prototype.refresh=function (){
};
ERE_MAP.MAP.prototype.activeMarker=function(id){
if(this.options.cluster_markers){
this.clusterer.setMaxZoom(1);
this.clusterer.repaint();
}
var self=this;
clearTimeout(this.timeOutActive);
this.timeOutActive=setTimeout(function (){
for (var i=0; i < self.markers.length; i++){
if(self.markers[i].options.template.id==id){
self.markers[i].active();
break;
}}
},10);
};
ERE_MAP.MAP.prototype.deactiveMarker=function(){
var self=this;
if(self.options.cluster_markers){
self.clusterer.setMaxZoom(13);
self.clusterer.repaint();
}
self.$element.find('.ere__marker-container').removeClass('active');
self.closePopups();
};
ERE_MAP.DirectionsService=function (){
this.init();
};
ERE_MAP.DirectionsService.prototype.init=function (){
this.directionsService=new google.maps.DirectionsService;
};
ERE_MAP.DirectionsService.prototype.route=function (request, i){
var result=false;
request=$.extend(true, {
travelMode: 'DRIVING',
origin: '',
destination: ''
}, request);
if(request.origin instanceof ERE_MAP.LatLng){
request.origin=request.origin.getSourceObject();
}
if(request.destination instanceof ERE_MAP.LatLng){
request.destination=request.destination.getSourceObject();
}
this.directionsService.route(request, function(response,status){
if(status===google.maps.DirectionsStatus.OK){
result=response;
}
return  i(result);
});
};
ERE_MAP.DirectionsService.prototype.getSourceObject=function (){
return this.directionsService;
};
ERE_MAP.DirectionsRenderer=function (){
this.init();
};
ERE_MAP.DirectionsRenderer.prototype.init=function (){
this.directionsRenderer=new google.maps.DirectionsRenderer;
};
ERE_MAP.DirectionsRenderer.prototype.getSourceObject=function (){
return this.directionsRenderer;
};
ERE_MAP.DirectionsRenderer.prototype.setMap=function (e){
this.directionsRenderer.setMap(e.getSourceObject());
return this;
};
ERE_MAP.DirectionsRenderer.prototype.setDirections=function (directions){
this.directionsRenderer.setDirections(directions);
return this;
};
ERE_MAP.DirectionsRenderer.prototype.getDirections=function (){
return  this.directionsRenderer.getDirections();
};
ERE_MAP.DirectionsRenderer.prototype.change=function (t){
var self=this;
self.directionsRenderer.addListener('directions_changed', function (){
var total=0;
var myroute=self.directionsRenderer.getDirections().routes[0];
for (var i=0; i < myroute.legs.length; i++){
total +=myroute.legs[i].distance.value;
}
t(total);
});
};
ERE_MAP.DirectionsRenderer.prototype.clear=function (){
this.directionsRenderer.setMap(null);
};
ERE_MAP.PlacesService=function (options){
this.options=$.extend({
maxResultCount: 20,
includedTypes:[],
radius: 5000,
rankPreference: '',
position: false,
map: false,
}, options);
this.init();
};
ERE_MAP.PlacesService.prototype.init=function (){
if(this.options.map){
this.setMap(this.options.map);
}
if(this.options.position){
this.setPosition(this.options.position);
}};
ERE_MAP.PlacesService.prototype.setMap=function (e){
this.map=e;
return this;
};
ERE_MAP.PlacesService.prototype.setPosition=function (e){
this.position=e;
return this;
};
ERE_MAP.PlacesService.prototype.nearbySearch=function (t){
var self=this;
var requestUrl='https://places.googleapis.com/v1/places:searchNearby';
var request={
maxResultCount: this.options.maxResultCount,
includedTypes: this.options.includedTypes,
locationRestriction:{
circle:{
center:{
latitude:this.position.getLatitude(),
longitude:this.position.getLongitude()
},
radius:  this.options.radius
}},
};
if(this.options.rankPreference==='distance'){
request.rankPreference="DISTANCE";
}
$.ajax({
type: "POST",
url: requestUrl,
data: JSON.stringify(request),
dataType: 'json',
crossDomain: true,
headers: {
"X-Goog-Api-Key": ere_map_vars.api_key,
'Content-Type':'application/json',
'X-Goog-FieldMask': '*'
},
success: function(response){
var result=false;
if(response.places){
result=[];
$.each(response.places,function (index, value){
var place=self.getPlace(value);
result.push(place);
});
}
t(result);
},
error: function(response){
t(false);
}});
};
ERE_MAP.PlacesService.prototype.getPlace=function (place){
return {
types: place.types,
displayName: place.displayName.text,
lat: place.location.latitude,
lng: place.location.longitude
}};
typeof (google)!=='undefined'&&typeof (ere_map_vars)!=='undefined'&&google.maps.event.addDomListener(window, 'load', function (){
if(typeof ere_map_vars.skin_custom==='object'&&ere_map_vars.skin==='custom'){
try {
ERE_MAP.skins.custom=JSON.parse(ere_map_vars.skin_custom);
} catch (e){
ERE_MAP.skins.custom=[];
}}
$('.ere__map-canvas:not(.manual)').each(function (){
new ERE_MAP.MAP(this);
});
$(document).trigger("maps:loaded");
});
})(jQuery);
function ClusterIcon(cluster,styles){cluster.getMarkerClusterer().extend(ClusterIcon,google.maps.OverlayView);this.cluster_=cluster;this.className_=cluster.getMarkerClusterer().getClusterClass();this.styles_=styles;this.center_=null;this.div_=null;this.sums_=null;this.visible_=false;this.setMap(cluster.getMap())}ClusterIcon.prototype.onAdd=function(){var cClusterIcon=this;var cMouseDownInCluster;var cDraggingMapByCluster;var gmVersion=google.maps.version.split(".");gmVersion=parseInt(gmVersion[0]*100,10)+parseInt(gmVersion[1],10);this.div_=document.createElement("div");this.div_.className=this.className_;if(this.visible_){this.show()}this.getPanes().overlayMouseTarget.appendChild(this.div_);this.boundsChangedListener_=google.maps.event.addListener(this.getMap(),"bounds_changed",function(){cDraggingMapByCluster=cMouseDownInCluster});google.maps.event.addDomListener(this.div_,"mousedown",function(){cMouseDownInCluster=true;cDraggingMapByCluster=false});if(gmVersion>=332){google.maps.event.addDomListener(this.div_,"touchstart",function(e){e.stopPropagation()})}google.maps.event.addDomListener(this.div_,"click",function(e){cMouseDownInCluster=false;if(!cDraggingMapByCluster){var theBounds;var mz;var mc=cClusterIcon.cluster_.getMarkerClusterer();google.maps.event.trigger(mc,"click",cClusterIcon.cluster_);google.maps.event.trigger(mc,"clusterclick",cClusterIcon.cluster_);if(mc.getZoomOnClick()){mz=mc.getMaxZoom();theBounds=cClusterIcon.cluster_.getBounds();mc.getMap().fitBounds(theBounds);setTimeout(function(){mc.getMap().fitBounds(theBounds);if(mz!==null&&mc.getMap().getZoom()>mz){mc.getMap().setZoom(mz+1)}},100)}e.cancelBubble=true;if(e.stopPropagation){e.stopPropagation()}}});google.maps.event.addDomListener(this.div_,"mouseover",function(){var mc=cClusterIcon.cluster_.getMarkerClusterer();google.maps.event.trigger(mc,"mouseover",cClusterIcon.cluster_)});google.maps.event.addDomListener(this.div_,"mouseout",function(){var mc=cClusterIcon.cluster_.getMarkerClusterer();google.maps.event.trigger(mc,"mouseout",cClusterIcon.cluster_)})};ClusterIcon.prototype.onRemove=function(){if(this.div_&&this.div_.parentNode){this.hide();google.maps.event.removeListener(this.boundsChangedListener_);google.maps.event.clearInstanceListeners(this.div_);this.div_.parentNode.removeChild(this.div_);this.div_=null}};ClusterIcon.prototype.draw=function(){if(this.visible_){var pos=this.getPosFromLatLng_(this.center_);this.div_.style.top=pos.y+"px";this.div_.style.left=pos.x+"px";this.div_.style.zIndex=google.maps.Marker.MAX_ZINDEX+1}};ClusterIcon.prototype.hide=function(){if(this.div_){this.div_.style.display="none"}this.visible_=false};ClusterIcon.prototype.show=function(){if(this.div_){var img="";var bp=this.backgroundPosition_.split(" ");var spriteH=parseInt(bp[0].replace(/^\s+|\s+$/g,""),10);var spriteV=parseInt(bp[1].replace(/^\s+|\s+$/g,""),10);var pos=this.getPosFromLatLng_(this.center_);this.div_.style.cssText=this.createCss(pos);if(typeof this.url_!="undefined"){img="<img src='"+this.url_+"' style='position: absolute; top: "+spriteV+"px; left: "+spriteH+"px; ";if(this.cluster_.getMarkerClusterer().enableRetinaIcons_){img+="width: "+this.width_+"px; height: "+this.height_+"px;"}else{img+="clip: rect("+-1*spriteV+"px, "+(-1*spriteH+this.width_)+"px, "+(-1*spriteV+this.height_)+"px, "+-1*spriteH+"px);"}img+="'>"}this.div_.innerHTML=img+"<div style='"+"position: absolute;"+"top: "+this.anchorText_[0]+"px;"+"left: "+this.anchorText_[1]+"px;"+"color: "+this.textColor_+";"+"font-size: "+this.textSize_+"px;"+"font-family: "+this.fontFamily_+";"+"font-weight: "+this.fontWeight_+";"+"font-style: "+this.fontStyle_+";"+"text-decoration: "+this.textDecoration_+";"+"text-align: center;"+"width: "+this.width_+"px;"+"line-height:"+this.height_+"px;"+"'>"+this.sums_.text+"</div>";if(typeof this.sums_.title==="undefined"||this.sums_.title===""){this.div_.title=this.cluster_.getMarkerClusterer().getTitle()}else{this.div_.title=this.sums_.title}this.div_.style.display=""}this.visible_=true};ClusterIcon.prototype.useStyle=function(sums){this.sums_=sums;var index=Math.max(0,sums.index-1);index=Math.min(this.styles_.length-1,index);var style=this.styles_[index];this.url_=style.url;this.height_=style.height;this.width_=style.width;this.anchorText_=style.anchorText||[0,0];this.anchorIcon_=style.anchorIcon||[parseInt(this.height_/2,10),parseInt(this.width_/2,10)];this.textColor_=style.textColor||"black";this.textSize_=style.textSize||11;this.textDecoration_=style.textDecoration||"none";this.fontWeight_=style.fontWeight||"bold";this.fontStyle_=style.fontStyle||"normal";this.fontFamily_=style.fontFamily||"Arial,sans-serif";this.backgroundPosition_=style.backgroundPosition||"0 0"};ClusterIcon.prototype.setCenter=function(center){this.center_=center};ClusterIcon.prototype.createCss=function(pos){var style=[];style.push("cursor: pointer;");style.push("position: absolute; top: "+pos.y+"px; left: "+pos.x+"px;");style.push("width: "+(this.width_+10)+"px; height: "+(this.height_+10)+"px;");style.push("-webkit-user-select: none;");style.push("-khtml-user-select: none;");style.push("-moz-user-select: none;");style.push("-o-user-select: none;");style.push("user-select: none;");return style.join("")};ClusterIcon.prototype.getPosFromLatLng_=function(latlng){var pos=this.getProjection().fromLatLngToDivPixel(latlng);pos.x-=this.anchorIcon_[1];pos.y-=this.anchorIcon_[0];pos.x=parseInt(pos.x,10);pos.y=parseInt(pos.y,10);return pos};function Cluster(mc){this.markerClusterer_=mc;this.map_=mc.getMap();this.gridSize_=mc.getGridSize();this.minClusterSize_=mc.getMinimumClusterSize();this.averageCenter_=mc.getAverageCenter();this.markers_=[];this.center_=null;this.bounds_=null;this.clusterIcon_=new ClusterIcon(this,mc.getStyles())}Cluster.prototype.getSize=function(){return this.markers_.length};Cluster.prototype.getMarkers=function(){return this.markers_};Cluster.prototype.getCenter=function(){return this.center_};Cluster.prototype.getMap=function(){return this.map_};Cluster.prototype.getMarkerClusterer=function(){return this.markerClusterer_};Cluster.prototype.getBounds=function(){var i;var bounds=new google.maps.LatLngBounds(this.center_,this.center_);var markers=this.getMarkers();for(i=0;i<markers.length;i++){bounds.extend(markers[i].getPosition())}return bounds};Cluster.prototype.remove=function(){this.clusterIcon_.setMap(null);this.markers_=[];delete this.markers_};Cluster.prototype.addMarker=function(marker){var i;var mCount;var mz;if(this.isMarkerAlreadyAdded_(marker)){return false}if(!this.center_){this.center_=marker.getPosition();this.calculateBounds_()}else{if(this.averageCenter_){var l=this.markers_.length+1;var lat=(this.center_.lat()*(l-1)+marker.getPosition().lat())/l;var lng=(this.center_.lng()*(l-1)+marker.getPosition().lng())/l;this.center_=new google.maps.LatLng(lat,lng);this.calculateBounds_()}}marker.isAdded=true;this.markers_.push(marker);mCount=this.markers_.length;mz=this.markerClusterer_.getMaxZoom();if(mz!==null&&this.map_.getZoom()>mz){if(marker.getMap()!==this.map_){marker.setMap(this.map_)}}else if(mCount<this.minClusterSize_){if(marker.getMap()!==this.map_){marker.setMap(this.map_)}}else if(mCount===this.minClusterSize_){for(i=0;i<mCount;i++){this.markers_[i].setMap(null)}}else{marker.setMap(null)}this.updateIcon_();return true};Cluster.prototype.isMarkerInClusterBounds=function(marker){return this.bounds_.contains(marker.getPosition())};Cluster.prototype.calculateBounds_=function(){var bounds=new google.maps.LatLngBounds(this.center_,this.center_);this.bounds_=this.markerClusterer_.getExtendedBounds(bounds)};Cluster.prototype.updateIcon_=function(){var mCount=this.markers_.length;var mz=this.markerClusterer_.getMaxZoom();if(mz!==null&&this.map_.getZoom()>mz){this.clusterIcon_.hide();return}if(mCount<this.minClusterSize_){this.clusterIcon_.hide();return}var numStyles=this.markerClusterer_.getStyles().length;var sums=this.markerClusterer_.getCalculator()(this.markers_,numStyles);this.clusterIcon_.setCenter(this.center_);this.clusterIcon_.useStyle(sums);this.clusterIcon_.show()};Cluster.prototype.isMarkerAlreadyAdded_=function(marker){var i;if(this.markers_.indexOf){return this.markers_.indexOf(marker)!==-1}else{for(i=0;i<this.markers_.length;i++){if(marker===this.markers_[i]){return true}}}return false};function MarkerClusterer(map,opt_markers,opt_options){this.extend(MarkerClusterer,google.maps.OverlayView);opt_markers=opt_markers||[];opt_options=opt_options||{};this.markers_=[];this.clusters_=[];this.listeners_=[];this.activeMap_=null;this.ready_=false;this.gridSize_=opt_options.gridSize||60;this.minClusterSize_=opt_options.minimumClusterSize||2;this.maxZoom_=opt_options.maxZoom||null;this.styles_=opt_options.styles||[];this.title_=opt_options.title||"";this.zoomOnClick_=true;if(opt_options.zoomOnClick!==undefined){this.zoomOnClick_=opt_options.zoomOnClick}this.averageCenter_=false;if(opt_options.averageCenter!==undefined){this.averageCenter_=opt_options.averageCenter}this.ignoreHidden_=false;if(opt_options.ignoreHidden!==undefined){this.ignoreHidden_=opt_options.ignoreHidden}this.enableRetinaIcons_=false;if(opt_options.enableRetinaIcons!==undefined){this.enableRetinaIcons_=opt_options.enableRetinaIcons}this.imagePath_=opt_options.imagePath||MarkerClusterer.IMAGE_PATH;this.imageExtension_=opt_options.imageExtension||MarkerClusterer.IMAGE_EXTENSION;this.imageSizes_=opt_options.imageSizes||MarkerClusterer.IMAGE_SIZES;this.calculator_=opt_options.calculator||MarkerClusterer.CALCULATOR;this.batchSize_=opt_options.batchSize||MarkerClusterer.BATCH_SIZE;this.batchSizeIE_=opt_options.batchSizeIE||MarkerClusterer.BATCH_SIZE_IE;this.clusterClass_=opt_options.clusterClass||"cluster";if(navigator.userAgent.toLowerCase().indexOf("msie")!==-1){this.batchSize_=this.batchSizeIE_}this.setupStyles_();this.addMarkers(opt_markers,true);this.setMap(map)}MarkerClusterer.prototype.onAdd=function(){var cMarkerClusterer=this;this.activeMap_=this.getMap();this.ready_=true;this.repaint();this.prevZoom_=this.getMap().getZoom();this.listeners_=[google.maps.event.addListener(this.getMap(),"zoom_changed",function(){var zoom=this.getMap().getZoom();var minZoom=this.getMap().minZoom||0;var maxZoom=Math.min(this.getMap().maxZoom||100,this.getMap().mapTypes[this.getMap().getMapTypeId()].maxZoom);zoom=Math.min(Math.max(zoom,minZoom),maxZoom);if(this.prevZoom_!=zoom){this.prevZoom_=zoom;this.resetViewport_(false)}}.bind(this)),google.maps.event.addListener(this.getMap(),"idle",function(){cMarkerClusterer.redraw_()})]};MarkerClusterer.prototype.onRemove=function(){var i;for(i=0;i<this.markers_.length;i++){if(this.markers_[i].getMap()!==this.activeMap_){this.markers_[i].setMap(this.activeMap_)}}for(i=0;i<this.clusters_.length;i++){this.clusters_[i].remove()}this.clusters_=[];for(i=0;i<this.listeners_.length;i++){google.maps.event.removeListener(this.listeners_[i])}this.listeners_=[];this.activeMap_=null;this.ready_=false};MarkerClusterer.prototype.draw=function(){};MarkerClusterer.prototype.setupStyles_=function(){var i,size;if(this.styles_.length>0){return}for(i=0;i<this.imageSizes_.length;i++){size=this.imageSizes_[i];this.styles_.push({url:this.imagePath_+(i+1)+"."+this.imageExtension_,height:size,width:size})}};MarkerClusterer.prototype.fitMapToMarkers=function(){var i;var markers=this.getMarkers();var bounds=new google.maps.LatLngBounds;for(i=0;i<markers.length;i++){if(markers[i].getVisible()||!this.getIgnoreHidden()){bounds.extend(markers[i].getPosition())}}this.getMap().fitBounds(bounds)};MarkerClusterer.prototype.getGridSize=function(){return this.gridSize_};MarkerClusterer.prototype.setGridSize=function(gridSize){this.gridSize_=gridSize};MarkerClusterer.prototype.getMinimumClusterSize=function(){return this.minClusterSize_};MarkerClusterer.prototype.setMinimumClusterSize=function(minimumClusterSize){this.minClusterSize_=minimumClusterSize};MarkerClusterer.prototype.getMaxZoom=function(){return this.maxZoom_};MarkerClusterer.prototype.setMaxZoom=function(maxZoom){this.maxZoom_=maxZoom};MarkerClusterer.prototype.getStyles=function(){return this.styles_};MarkerClusterer.prototype.setStyles=function(styles){this.styles_=styles};MarkerClusterer.prototype.getTitle=function(){return this.title_};MarkerClusterer.prototype.setTitle=function(title){this.title_=title};MarkerClusterer.prototype.getZoomOnClick=function(){return this.zoomOnClick_};MarkerClusterer.prototype.setZoomOnClick=function(zoomOnClick){this.zoomOnClick_=zoomOnClick};MarkerClusterer.prototype.getAverageCenter=function(){return this.averageCenter_};MarkerClusterer.prototype.setAverageCenter=function(averageCenter){this.averageCenter_=averageCenter};MarkerClusterer.prototype.getIgnoreHidden=function(){return this.ignoreHidden_};MarkerClusterer.prototype.setIgnoreHidden=function(ignoreHidden){this.ignoreHidden_=ignoreHidden};MarkerClusterer.prototype.getEnableRetinaIcons=function(){return this.enableRetinaIcons_};MarkerClusterer.prototype.setEnableRetinaIcons=function(enableRetinaIcons){this.enableRetinaIcons_=enableRetinaIcons};MarkerClusterer.prototype.getImageExtension=function(){return this.imageExtension_};MarkerClusterer.prototype.setImageExtension=function(imageExtension){this.imageExtension_=imageExtension};MarkerClusterer.prototype.getImagePath=function(){return this.imagePath_};MarkerClusterer.prototype.setImagePath=function(imagePath){this.imagePath_=imagePath};MarkerClusterer.prototype.getImageSizes=function(){return this.imageSizes_};MarkerClusterer.prototype.setImageSizes=function(imageSizes){this.imageSizes_=imageSizes};MarkerClusterer.prototype.getCalculator=function(){return this.calculator_};MarkerClusterer.prototype.setCalculator=function(calculator){this.calculator_=calculator};MarkerClusterer.prototype.getBatchSizeIE=function(){return this.batchSizeIE_};MarkerClusterer.prototype.setBatchSizeIE=function(batchSizeIE){this.batchSizeIE_=batchSizeIE};MarkerClusterer.prototype.getClusterClass=function(){return this.clusterClass_};MarkerClusterer.prototype.setClusterClass=function(clusterClass){this.clusterClass_=clusterClass};MarkerClusterer.prototype.getMarkers=function(){return this.markers_};MarkerClusterer.prototype.getTotalMarkers=function(){return this.markers_.length};MarkerClusterer.prototype.getClusters=function(){return this.clusters_};MarkerClusterer.prototype.getTotalClusters=function(){return this.clusters_.length};MarkerClusterer.prototype.addMarker=function(marker,opt_nodraw){this.pushMarkerTo_(marker);if(!opt_nodraw){this.redraw_()}};MarkerClusterer.prototype.addMarkers=function(markers,opt_nodraw){var key;for(key in markers){if(markers.hasOwnProperty(key)){this.pushMarkerTo_(markers[key])}}if(!opt_nodraw){this.redraw_()}};MarkerClusterer.prototype.pushMarkerTo_=function(marker){if(marker.getDraggable()){var cMarkerClusterer=this;google.maps.event.addListener(marker,"dragend",function(){if(cMarkerClusterer.ready_){this.isAdded=false;cMarkerClusterer.repaint()}})}marker.isAdded=false;this.markers_.push(marker)};MarkerClusterer.prototype.removeMarker=function(marker,opt_nodraw){var removed=this.removeMarker_(marker);if(!opt_nodraw&&removed){this.repaint()}return removed};MarkerClusterer.prototype.removeMarkers=function(markers,opt_nodraw){var i,r;var removed=false;for(i=0;i<markers.length;i++){r=this.removeMarker_(markers[i]);removed=removed||r}if(!opt_nodraw&&removed){this.repaint()}return removed};MarkerClusterer.prototype.removeMarker_=function(marker){var i;var index=-1;if(this.markers_.indexOf){index=this.markers_.indexOf(marker)}else{for(i=0;i<this.markers_.length;i++){if(marker===this.markers_[i]){index=i;break}}}if(index===-1){return false}marker.setMap(null);this.markers_.splice(index,1);return true};MarkerClusterer.prototype.clearMarkers=function(){this.resetViewport_(true);this.markers_=[]};MarkerClusterer.prototype.repaint=function(){var oldClusters=this.clusters_.slice();this.clusters_=[];this.resetViewport_(false);this.redraw_();setTimeout(function(){var i;for(i=0;i<oldClusters.length;i++){oldClusters[i].remove()}},0)};MarkerClusterer.prototype.getExtendedBounds=function(bounds){var projection=this.getProjection();var tr=new google.maps.LatLng(bounds.getNorthEast().lat(),bounds.getNorthEast().lng());var bl=new google.maps.LatLng(bounds.getSouthWest().lat(),bounds.getSouthWest().lng());var trPix=projection.fromLatLngToDivPixel(tr);trPix.x+=this.gridSize_;trPix.y-=this.gridSize_;var blPix=projection.fromLatLngToDivPixel(bl);blPix.x-=this.gridSize_;blPix.y+=this.gridSize_;var ne=projection.fromDivPixelToLatLng(trPix);var sw=projection.fromDivPixelToLatLng(blPix);bounds.extend(ne);bounds.extend(sw);return bounds};MarkerClusterer.prototype.redraw_=function(){this.createClusters_(0)};MarkerClusterer.prototype.resetViewport_=function(opt_hide){var i,marker;for(i=0;i<this.clusters_.length;i++){this.clusters_[i].remove()}this.clusters_=[];for(i=0;i<this.markers_.length;i++){marker=this.markers_[i];marker.isAdded=false;if(opt_hide){marker.setMap(null)}}};MarkerClusterer.prototype.distanceBetweenPoints_=function(p1,p2){var R=6371;var dLat=(p2.lat()-p1.lat())*Math.PI/180;var dLon=(p2.lng()-p1.lng())*Math.PI/180;var a=Math.sin(dLat/2)*Math.sin(dLat/2)+Math.cos(p1.lat()*Math.PI/180)*Math.cos(p2.lat()*Math.PI/180)*Math.sin(dLon/2)*Math.sin(dLon/2);var c=2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a));var d=R*c;return d};MarkerClusterer.prototype.isMarkerInBounds_=function(marker,bounds){return bounds.contains(marker.getPosition())};MarkerClusterer.prototype.addToClosestCluster_=function(marker){var i,d,cluster,center;var distance=4e4;var clusterToAddTo=null;for(i=0;i<this.clusters_.length;i++){cluster=this.clusters_[i];center=cluster.getCenter();if(center){d=this.distanceBetweenPoints_(center,marker.getPosition());if(d<distance){distance=d;clusterToAddTo=cluster}}}if(clusterToAddTo&&clusterToAddTo.isMarkerInClusterBounds(marker)){clusterToAddTo.addMarker(marker)}else{cluster=new Cluster(this);cluster.addMarker(marker);this.clusters_.push(cluster)}};MarkerClusterer.prototype.createClusters_=function(iFirst){var i,marker;var mapBounds;var cMarkerClusterer=this;if(!this.ready_){return}if(iFirst===0){google.maps.event.trigger(this,"clusteringbegin",this);if(typeof this.timerRefStatic!=="undefined"){clearTimeout(this.timerRefStatic);delete this.timerRefStatic}}if(this.getMap().getZoom()>3){mapBounds=new google.maps.LatLngBounds(this.getMap().getBounds().getSouthWest(),this.getMap().getBounds().getNorthEast())}else{mapBounds=new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,-178.48388434375),new google.maps.LatLng(-85.08136444384544,178.00048865625))}var bounds=this.getExtendedBounds(mapBounds);var iLast=Math.min(iFirst+this.batchSize_,this.markers_.length);for(i=iFirst;i<iLast;i++){marker=this.markers_[i];if(!marker.isAdded&&this.isMarkerInBounds_(marker,bounds)){if(!this.ignoreHidden_||this.ignoreHidden_&&marker.getVisible()){this.addToClosestCluster_(marker)}}}if(iLast<this.markers_.length){this.timerRefStatic=setTimeout(function(){cMarkerClusterer.createClusters_(iLast)},0)}else{delete this.timerRefStatic;google.maps.event.trigger(this,"clusteringend",this)}};MarkerClusterer.prototype.extend=function(obj1,obj2){return function(object){var property;for(property in object.prototype){this.prototype[property]=object.prototype[property]}return this}.apply(obj1,[obj2])};MarkerClusterer.CALCULATOR=function(markers,numStyles){var index=0;var title="";var count=markers.length.toString();var dv=count;while(dv!==0){dv=parseInt(dv/10,10);index++}index=Math.min(index,numStyles);return{text:count,index:index,title:title}};MarkerClusterer.BATCH_SIZE=2e3;MarkerClusterer.BATCH_SIZE_IE=500;MarkerClusterer.IMAGE_PATH="../images/m";MarkerClusterer.IMAGE_EXTENSION="png";MarkerClusterer.IMAGE_SIZES=[53,56,66,78,90];if(typeof module=="object"){module.exports=MarkerClusterer};
!function(n,t){var r,e;"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define("underscore",t):(n="undefined"!=typeof globalThis?globalThis:n||self,r=n._,(e=n._=t()).noConflict=function(){return n._=r,e})}(this,function(){var n="1.13.7",t="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},e=Array.prototype,V=Object.prototype,F="undefined"!=typeof Symbol?Symbol.prototype:null,P=e.push,f=e.slice,s=V.toString,q=V.hasOwnProperty,r="undefined"!=typeof ArrayBuffer,u="undefined"!=typeof DataView,U=Array.isArray,W=Object.keys,z=Object.create,L=r&&ArrayBuffer.isView,$=isNaN,C=isFinite,K=!{toString:null}.propertyIsEnumerable("toString"),J=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],G=Math.pow(2,53)-1;function l(u,o){return o=null==o?u.length-1:+o,function(){for(var n=Math.max(arguments.length-o,0),t=Array(n),r=0;r<n;r++)t[r]=arguments[r+o];switch(o){case 0:return u.call(this,t);case 1:return u.call(this,arguments[0],t);case 2:return u.call(this,arguments[0],arguments[1],t)}for(var e=Array(o+1),r=0;r<o;r++)e[r]=arguments[r];return e[o]=t,u.apply(this,e)}}function o(n){var t=typeof n;return"function"==t||"object"==t&&!!n}function H(n){return void 0===n}function Q(n){return!0===n||!1===n||"[object Boolean]"===s.call(n)}function i(n){var t="[object "+n+"]";return function(n){return s.call(n)===t}}var X=i("String"),Y=i("Number"),Z=i("Date"),nn=i("RegExp"),tn=i("Error"),rn=i("Symbol"),en=i("ArrayBuffer"),a=i("Function"),t=t.document&&t.document.childNodes,p=a="function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof t?function(n){return"function"==typeof n||!1}:a,t=i("Object"),un=u&&(!/\[native code\]/.test(String(DataView))||t(new DataView(new ArrayBuffer(8)))),a="undefined"!=typeof Map&&t(new Map),u=i("DataView");var h=un?function(n){return null!=n&&p(n.getInt8)&&en(n.buffer)}:u,v=U||i("Array");function y(n,t){return null!=n&&q.call(n,t)}var on=i("Arguments"),an=(!function(){on(arguments)||(on=function(n){return y(n,"callee")})}(),on);function fn(n){return Y(n)&&$(n)}function cn(n){return function(){return n}}function ln(t){return function(n){n=t(n);return"number"==typeof n&&0<=n&&n<=G}}function sn(t){return function(n){return null==n?void 0:n[t]}}var d=sn("byteLength"),pn=ln(d),hn=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var vn=r?function(n){return L?L(n)&&!h(n):pn(n)&&hn.test(s.call(n))}:cn(!1),g=sn("length");function yn(n,t){t=function(t){for(var r={},n=t.length,e=0;e<n;++e)r[t[e]]=!0;return{contains:function(n){return!0===r[n]},push:function(n){return r[n]=!0,t.push(n)}}}(t);var r=J.length,e=n.constructor,u=p(e)&&e.prototype||V,o="constructor";for(y(n,o)&&!t.contains(o)&&t.push(o);r--;)(o=J[r])in n&&n[o]!==u[o]&&!t.contains(o)&&t.push(o)}function b(n){if(!o(n))return[];if(W)return W(n);var t,r=[];for(t in n)y(n,t)&&r.push(t);return K&&yn(n,r),r}function dn(n,t){var r=b(t),e=r.length;if(null==n)return!e;for(var u=Object(n),o=0;o<e;o++){var i=r[o];if(t[i]!==u[i]||!(i in u))return!1}return!0}function m(n){return n instanceof m?n:this instanceof m?void(this._wrapped=n):new m(n)}function gn(n){return new Uint8Array(n.buffer||n,n.byteOffset||0,d(n))}m.VERSION=n,m.prototype.valueOf=m.prototype.toJSON=m.prototype.value=function(){return this._wrapped},m.prototype.toString=function(){return String(this._wrapped)};var bn="[object DataView]";function mn(n,t,r,e){var u;return n===t?0!==n||1/n==1/t:null!=n&&null!=t&&(n!=n?t!=t:("function"==(u=typeof n)||"object"==u||"object"==typeof t)&&function n(t,r,e,u){t instanceof m&&(t=t._wrapped);r instanceof m&&(r=r._wrapped);var o=s.call(t);if(o!==s.call(r))return!1;if(un&&"[object Object]"==o&&h(t)){if(!h(r))return!1;o=bn}switch(o){case"[object RegExp]":case"[object String]":return""+t==""+r;case"[object Number]":return+t!=+t?+r!=+r:0==+t?1/+t==1/r:+t==+r;case"[object Date]":case"[object Boolean]":return+t==+r;case"[object Symbol]":return F.valueOf.call(t)===F.valueOf.call(r);case"[object ArrayBuffer]":case bn:return n(gn(t),gn(r),e,u)}o="[object Array]"===o;if(!o&&vn(t)){var i=d(t);if(i!==d(r))return!1;if(t.buffer===r.buffer&&t.byteOffset===r.byteOffset)return!0;o=!0}if(!o){if("object"!=typeof t||"object"!=typeof r)return!1;var i=t.constructor,a=r.constructor;if(i!==a&&!(p(i)&&i instanceof i&&p(a)&&a instanceof a)&&"constructor"in t&&"constructor"in r)return!1}e=e||[];u=u||[];var f=e.length;for(;f--;)if(e[f]===t)return u[f]===r;e.push(t);u.push(r);if(o){if((f=t.length)!==r.length)return!1;for(;f--;)if(!mn(t[f],r[f],e,u))return!1}else{var c,l=b(t);if(f=l.length,b(r).length!==f)return!1;for(;f--;)if(c=l[f],!y(r,c)||!mn(t[c],r[c],e,u))return!1}e.pop();u.pop();return!0}(n,t,r,e))}function c(n){if(!o(n))return[];var t,r=[];for(t in n)r.push(t);return K&&yn(n,r),r}function jn(e){var u=g(e);return function(n){if(null==n)return!1;var t=c(n);if(g(t))return!1;for(var r=0;r<u;r++)if(!p(n[e[r]]))return!1;return e!==_n||!p(n[wn])}}var wn="forEach",t=["clear","delete"],u=["get","has","set"],U=t.concat(wn,u),_n=t.concat(u),r=["add"].concat(t,wn,"has"),u=a?jn(U):i("Map"),t=a?jn(_n):i("WeakMap"),U=a?jn(r):i("Set"),a=i("WeakSet");function j(n){for(var t=b(n),r=t.length,e=Array(r),u=0;u<r;u++)e[u]=n[t[u]];return e}function An(n){for(var t={},r=b(n),e=0,u=r.length;e<u;e++)t[n[r[e]]]=r[e];return t}function xn(n){var t,r=[];for(t in n)p(n[t])&&r.push(t);return r.sort()}function Sn(f,c){return function(n){var t=arguments.length;if(c&&(n=Object(n)),!(t<2||null==n))for(var r=1;r<t;r++)for(var e=arguments[r],u=f(e),o=u.length,i=0;i<o;i++){var a=u[i];c&&void 0!==n[a]||(n[a]=e[a])}return n}}var On=Sn(c),w=Sn(b),Mn=Sn(c,!0);function En(n){var t;return o(n)?z?z(n):((t=function(){}).prototype=n,n=new t,t.prototype=null,n):{}}function Bn(n){return v(n)?n:[n]}function _(n){return m.toPath(n)}function Nn(n,t){for(var r=t.length,e=0;e<r;e++){if(null==n)return;n=n[t[e]]}return r?n:void 0}function In(n,t,r){n=Nn(n,_(t));return H(n)?r:n}function Tn(n){return n}function A(t){return t=w({},t),function(n){return dn(n,t)}}function kn(t){return t=_(t),function(n){return Nn(n,t)}}function x(u,o,n){if(void 0===o)return u;switch(null==n?3:n){case 1:return function(n){return u.call(o,n)};case 3:return function(n,t,r){return u.call(o,n,t,r)};case 4:return function(n,t,r,e){return u.call(o,n,t,r,e)}}return function(){return u.apply(o,arguments)}}function Dn(n,t,r){return null==n?Tn:p(n)?x(n,t,r):(o(n)&&!v(n)?A:kn)(n)}function Rn(n,t){return Dn(n,t,1/0)}function S(n,t,r){return m.iteratee!==Rn?m.iteratee(n,t):Dn(n,t,r)}function Vn(){}function Fn(n,t){return null==t&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))}m.toPath=Bn,m.iteratee=Rn;var O=Date.now||function(){return(new Date).getTime()};function Pn(t){function r(n){return t[n]}var n="(?:"+b(t).join("|")+")",e=RegExp(n),u=RegExp(n,"g");return function(n){return e.test(n=null==n?"":""+n)?n.replace(u,r):n}}var r={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},qn=Pn(r),r=Pn(An(r)),Un=m.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Wn=/(.)^/,zn={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Ln=/\\|'|\r|\n|\u2028|\u2029/g;function $n(n){return"\\"+zn[n]}var Cn=/^\s*(\w|\$)+\s*$/;var Kn=0;function Jn(n,t,r,e,u){return e instanceof t?(e=En(n.prototype),o(t=n.apply(e,u))?t:e):n.apply(r,u)}var M=l(function(u,o){function i(){for(var n=0,t=o.length,r=Array(t),e=0;e<t;e++)r[e]=o[e]===a?arguments[n++]:o[e];for(;n<arguments.length;)r.push(arguments[n++]);return Jn(u,i,this,this,r)}var a=M.placeholder;return i}),Gn=(M.placeholder=m,l(function(t,r,e){var u;if(p(t))return u=l(function(n){return Jn(t,u,r,this,e.concat(n))});throw new TypeError("Bind must be called on a function")})),E=ln(g);function B(n,t,r,e){if(e=e||[],t||0===t){if(t<=0)return e.concat(n)}else t=1/0;for(var u=e.length,o=0,i=g(n);o<i;o++){var a=n[o];if(E(a)&&(v(a)||an(a)))if(1<t)B(a,t-1,r,e),u=e.length;else for(var f=0,c=a.length;f<c;)e[u++]=a[f++];else r||(e[u++]=a)}return e}var Hn=l(function(n,t){var r=(t=B(t,!1,!1)).length;if(r<1)throw new Error("bindAll must be passed function names");for(;r--;){var e=t[r];n[e]=Gn(n[e],n)}return n});var Qn=l(function(n,t,r){return setTimeout(function(){return n.apply(null,r)},t)}),Xn=M(Qn,m,1);function Yn(n){return function(){return!n.apply(this,arguments)}}function Zn(n,t){var r;return function(){return 0<--n&&(r=t.apply(this,arguments)),n<=1&&(t=null),r}}var nt=M(Zn,2);function tt(n,t,r){t=S(t,r);for(var e,u=b(n),o=0,i=u.length;o<i;o++)if(t(n[e=u[o]],e,n))return e}function rt(o){return function(n,t,r){t=S(t,r);for(var e=g(n),u=0<o?0:e-1;0<=u&&u<e;u+=o)if(t(n[u],u,n))return u;return-1}}var et=rt(1),ut=rt(-1);function ot(n,t,r,e){for(var u=(r=S(r,e,1))(t),o=0,i=g(n);o<i;){var a=Math.floor((o+i)/2);r(n[a])<u?o=a+1:i=a}return o}function it(o,i,a){return function(n,t,r){var e=0,u=g(n);if("number"==typeof r)0<o?e=0<=r?r:Math.max(r+u,e):u=0<=r?Math.min(r+1,u):r+u+1;else if(a&&r&&u)return n[r=a(n,t)]===t?r:-1;if(t!=t)return 0<=(r=i(f.call(n,e,u),fn))?r+e:-1;for(r=0<o?e:u-1;0<=r&&r<u;r+=o)if(n[r]===t)return r;return-1}}var at=it(1,et,ot),ft=it(-1,ut);function ct(n,t,r){t=(E(n)?et:tt)(n,t,r);if(void 0!==t&&-1!==t)return n[t]}function N(n,t,r){if(t=x(t,r),E(n))for(u=0,o=n.length;u<o;u++)t(n[u],u,n);else for(var e=b(n),u=0,o=e.length;u<o;u++)t(n[e[u]],e[u],n);return n}function I(n,t,r){t=S(t,r);for(var e=!E(n)&&b(n),u=(e||n).length,o=Array(u),i=0;i<u;i++){var a=e?e[i]:i;o[i]=t(n[a],a,n)}return o}function lt(f){return function(n,t,r,e){var u=3<=arguments.length;return function(n,t,r,e){var u=!E(n)&&b(n),o=(u||n).length,i=0<f?0:o-1;for(e||(r=n[u?u[i]:i],i+=f);0<=i&&i<o;i+=f){var a=u?u[i]:i;r=t(r,n[a],a,n)}return r}(n,x(t,e,4),r,u)}}var st=lt(1),pt=lt(-1);function T(n,e,t){var u=[];return e=S(e,t),N(n,function(n,t,r){e(n,t,r)&&u.push(n)}),u}function ht(n,t,r){t=S(t,r);for(var e=!E(n)&&b(n),u=(e||n).length,o=0;o<u;o++){var i=e?e[o]:o;if(!t(n[i],i,n))return!1}return!0}function vt(n,t,r){t=S(t,r);for(var e=!E(n)&&b(n),u=(e||n).length,o=0;o<u;o++){var i=e?e[o]:o;if(t(n[i],i,n))return!0}return!1}function k(n,t,r,e){return E(n)||(n=j(n)),0<=at(n,t,r="number"==typeof r&&!e?r:0)}var yt=l(function(n,r,e){var u,o;return p(r)?o=r:(r=_(r),u=r.slice(0,-1),r=r[r.length-1]),I(n,function(n){var t=o;if(!t){if(null==(n=u&&u.length?Nn(n,u):n))return;t=n[r]}return null==t?t:t.apply(n,e)})});function dt(n,t){return I(n,kn(t))}function gt(n,e,t){var r,u,o=-1/0,i=-1/0;if(null==e||"number"==typeof e&&"object"!=typeof n[0]&&null!=n)for(var a=0,f=(n=E(n)?n:j(n)).length;a<f;a++)null!=(r=n[a])&&o<r&&(o=r);else e=S(e,t),N(n,function(n,t,r){u=e(n,t,r),(i<u||u===-1/0&&o===-1/0)&&(o=n,i=u)});return o}var bt=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function mt(n){return n?v(n)?f.call(n):X(n)?n.match(bt):E(n)?I(n,Tn):j(n):[]}function jt(n,t,r){if(null==t||r)return(n=E(n)?n:j(n))[Fn(n.length-1)];for(var e=mt(n),r=g(e),u=(t=Math.max(Math.min(t,r),0),r-1),o=0;o<t;o++){var i=Fn(o,u),a=e[o];e[o]=e[i],e[i]=a}return e.slice(0,t)}function D(o,t){return function(r,e,n){var u=t?[[],[]]:{};return e=S(e,n),N(r,function(n,t){t=e(n,t,r);o(u,n,t)}),u}}var wt=D(function(n,t,r){y(n,r)?n[r].push(t):n[r]=[t]}),_t=D(function(n,t,r){n[r]=t}),At=D(function(n,t,r){y(n,r)?n[r]++:n[r]=1}),xt=D(function(n,t,r){n[r?0:1].push(t)},!0);function St(n,t,r){return t in r}var Ot=l(function(n,t){var r={},e=t[0];if(null!=n){p(e)?(1<t.length&&(e=x(e,t[1])),t=c(n)):(e=St,t=B(t,!1,!1),n=Object(n));for(var u=0,o=t.length;u<o;u++){var i=t[u],a=n[i];e(a,i,n)&&(r[i]=a)}}return r}),Mt=l(function(n,r){var t,e=r[0];return p(e)?(e=Yn(e),1<r.length&&(t=r[1])):(r=I(B(r,!1,!1),String),e=function(n,t){return!k(r,t)}),Ot(n,e,t)});function Et(n,t,r){return f.call(n,0,Math.max(0,n.length-(null==t||r?1:t)))}function Bt(n,t,r){return null==n||n.length<1?null==t||r?void 0:[]:null==t||r?n[0]:Et(n,n.length-t)}function R(n,t,r){return f.call(n,null==t||r?1:t)}var Nt=l(function(n,t){return t=B(t,!0,!0),T(n,function(n){return!k(t,n)})}),It=l(function(n,t){return Nt(n,t)});function Tt(n,t,r,e){Q(t)||(e=r,r=t,t=!1),null!=r&&(r=S(r,e));for(var u=[],o=[],i=0,a=g(n);i<a;i++){var f=n[i],c=r?r(f,i,n):f;t&&!r?(i&&o===c||u.push(f),o=c):r?k(o,c)||(o.push(c),u.push(f)):k(u,f)||u.push(f)}return u}var kt=l(function(n){return Tt(B(n,!0,!0))});function Dt(n){for(var t=n&&gt(n,g).length||0,r=Array(t),e=0;e<t;e++)r[e]=dt(n,e);return r}var Rt=l(Dt);function Vt(n,t){return n._chain?m(t).chain():t}function Ft(r){return N(xn(r),function(n){var t=m[n]=r[n];m.prototype[n]=function(){var n=[this._wrapped];return P.apply(n,arguments),Vt(this,t.apply(m,n))}}),m}N(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var r=e[t];m.prototype[t]=function(){var n=this._wrapped;return null!=n&&(r.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0]),Vt(this,n)}}),N(["concat","join","slice"],function(n){var t=e[n];m.prototype[n]=function(){var n=this._wrapped;return Vt(this,n=null!=n?t.apply(n,arguments):n)}});n=Ft({__proto__:null,VERSION:n,restArguments:l,isObject:o,isNull:function(n){return null===n},isUndefined:H,isBoolean:Q,isElement:function(n){return!(!n||1!==n.nodeType)},isString:X,isNumber:Y,isDate:Z,isRegExp:nn,isError:tn,isSymbol:rn,isArrayBuffer:en,isDataView:h,isArray:v,isFunction:p,isArguments:an,isFinite:function(n){return!rn(n)&&C(n)&&!isNaN(parseFloat(n))},isNaN:fn,isTypedArray:vn,isEmpty:function(n){var t;return null==n||("number"==typeof(t=g(n))&&(v(n)||X(n)||an(n))?0===t:0===g(b(n)))},isMatch:dn,isEqual:function(n,t){return mn(n,t)},isMap:u,isWeakMap:t,isSet:U,isWeakSet:a,keys:b,allKeys:c,values:j,pairs:function(n){for(var t=b(n),r=t.length,e=Array(r),u=0;u<r;u++)e[u]=[t[u],n[t[u]]];return e},invert:An,functions:xn,methods:xn,extend:On,extendOwn:w,assign:w,defaults:Mn,create:function(n,t){return n=En(n),t&&w(n,t),n},clone:function(n){return o(n)?v(n)?n.slice():On({},n):n},tap:function(n,t){return t(n),n},get:In,has:function(n,t){for(var r=(t=_(t)).length,e=0;e<r;e++){var u=t[e];if(!y(n,u))return!1;n=n[u]}return!!r},mapObject:function(n,t,r){t=S(t,r);for(var e=b(n),u=e.length,o={},i=0;i<u;i++){var a=e[i];o[a]=t(n[a],a,n)}return o},identity:Tn,constant:cn,noop:Vn,toPath:Bn,property:kn,propertyOf:function(t){return null==t?Vn:function(n){return In(t,n)}},matcher:A,matches:A,times:function(n,t,r){var e=Array(Math.max(0,n));t=x(t,r,1);for(var u=0;u<n;u++)e[u]=t(u);return e},random:Fn,now:O,escape:qn,unescape:r,templateSettings:Un,template:function(o,n,t){n=Mn({},n=!n&&t?t:n,m.templateSettings);var r,t=RegExp([(n.escape||Wn).source,(n.interpolate||Wn).source,(n.evaluate||Wn).source].join("|")+"|$","g"),i=0,a="__p+='";if(o.replace(t,function(n,t,r,e,u){return a+=o.slice(i,u).replace(Ln,$n),i=u+n.length,t?a+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":r?a+="'+\n((__t=("+r+"))==null?'':__t)+\n'":e&&(a+="';\n"+e+"\n__p+='"),n}),a+="';\n",t=n.variable){if(!Cn.test(t))throw new Error("variable is not a bare identifier: "+t)}else a="with(obj||{}){\n"+a+"}\n",t="obj";a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{r=new Function(t,"_",a)}catch(n){throw n.source=a,n}function e(n){return r.call(this,n,m)}return e.source="function("+t+"){\n"+a+"}",e},result:function(n,t,r){var e=(t=_(t)).length;if(!e)return p(r)?r.call(n):r;for(var u=0;u<e;u++){var o=null==n?void 0:n[t[u]];void 0===o&&(o=r,u=e),n=p(o)?o.call(n):o}return n},uniqueId:function(n){var t=++Kn+"";return n?n+t:t},chain:function(n){return(n=m(n))._chain=!0,n},iteratee:Rn,partial:M,bind:Gn,bindAll:Hn,memoize:function(e,u){function o(n){var t=o.cache,r=""+(u?u.apply(this,arguments):n);return y(t,r)||(t[r]=e.apply(this,arguments)),t[r]}return o.cache={},o},delay:Qn,defer:Xn,throttle:function(r,e,u){function o(){l=!1===u.leading?0:O(),i=null,c=r.apply(a,f),i||(a=f=null)}function n(){var n=O(),t=(l||!1!==u.leading||(l=n),e-(n-l));return a=this,f=arguments,t<=0||e<t?(i&&(clearTimeout(i),i=null),l=n,c=r.apply(a,f),i||(a=f=null)):i||!1===u.trailing||(i=setTimeout(o,t)),c}var i,a,f,c,l=0;return u=u||{},n.cancel=function(){clearTimeout(i),l=0,i=a=f=null},n},debounce:function(t,r,e){function u(){var n=O()-i;n<r?o=setTimeout(u,r-n):(o=null,e||(f=t.apply(c,a)),o||(a=c=null))}var o,i,a,f,c,n=l(function(n){return c=this,a=n,i=O(),o||(o=setTimeout(u,r),e&&(f=t.apply(c,a))),f});return n.cancel=function(){clearTimeout(o),o=a=c=null},n},wrap:function(n,t){return M(t,n)},negate:Yn,compose:function(){var r=arguments,e=r.length-1;return function(){for(var n=e,t=r[e].apply(this,arguments);n--;)t=r[n].call(this,t);return t}},after:function(n,t){return function(){if(--n<1)return t.apply(this,arguments)}},before:Zn,once:nt,findKey:tt,findIndex:et,findLastIndex:ut,sortedIndex:ot,indexOf:at,lastIndexOf:ft,find:ct,detect:ct,findWhere:function(n,t){return ct(n,A(t))},each:N,forEach:N,map:I,collect:I,reduce:st,foldl:st,inject:st,reduceRight:pt,foldr:pt,filter:T,select:T,reject:function(n,t,r){return T(n,Yn(S(t)),r)},every:ht,all:ht,some:vt,any:vt,contains:k,includes:k,include:k,invoke:yt,pluck:dt,where:function(n,t){return T(n,A(t))},max:gt,min:function(n,e,t){var r,u,o=1/0,i=1/0;if(null==e||"number"==typeof e&&"object"!=typeof n[0]&&null!=n)for(var a=0,f=(n=E(n)?n:j(n)).length;a<f;a++)null!=(r=n[a])&&r<o&&(o=r);else e=S(e,t),N(n,function(n,t,r){((u=e(n,t,r))<i||u===1/0&&o===1/0)&&(o=n,i=u)});return o},shuffle:function(n){return jt(n,1/0)},sample:jt,sortBy:function(n,e,t){var u=0;return e=S(e,t),dt(I(n,function(n,t,r){return{value:n,index:u++,criteria:e(n,t,r)}}).sort(function(n,t){var r=n.criteria,e=t.criteria;if(r!==e){if(e<r||void 0===r)return 1;if(r<e||void 0===e)return-1}return n.index-t.index}),"value")},groupBy:wt,indexBy:_t,countBy:At,partition:xt,toArray:mt,size:function(n){return null==n?0:(E(n)?n:b(n)).length},pick:Ot,omit:Mt,first:Bt,head:Bt,take:Bt,initial:Et,last:function(n,t,r){return null==n||n.length<1?null==t||r?void 0:[]:null==t||r?n[n.length-1]:R(n,Math.max(0,n.length-t))},rest:R,tail:R,drop:R,compact:function(n){return T(n,Boolean)},flatten:function(n,t){return B(n,t,!1)},without:It,uniq:Tt,unique:Tt,union:kt,intersection:function(n){for(var t=[],r=arguments.length,e=0,u=g(n);e<u;e++){var o=n[e];if(!k(t,o)){for(var i=1;i<r&&k(arguments[i],o);i++);i===r&&t.push(o)}}return t},difference:Nt,unzip:Dt,transpose:Dt,zip:Rt,object:function(n,t){for(var r={},e=0,u=g(n);e<u;e++)t?r[n[e]]=t[e]:r[n[e][0]]=n[e][1];return r},range:function(n,t,r){null==t&&(t=n||0,n=0),r=r||(t<n?-1:1);for(var e=Math.max(Math.ceil((t-n)/r),0),u=Array(e),o=0;o<e;o++,n+=r)u[o]=n;return u},chunk:function(n,t){if(null==t||t<1)return[];for(var r=[],e=0,u=n.length;e<u;)r.push(f.call(n,e,e+=t));return r},mixin:Ft,default:m});return n._=n});
var G5ERE_MAP=G5ERE_MAP||{};(function($){"use strict";G5ERE_MAP={options:{locations:[],zoom:!isNaN(parseInt(g5ere_map_config.zoom,10))?parseInt(g5ere_map_config.zoom,10):12,minZoom:0,skin:g5ere_map_config.skin,gestureHandling:"cooperative",cluster_markers:g5ere_map_config.cluster_markers,draggable:true,navigationControl:true,mapTypeControl:false,streetViewControl:false},instances:[],skins:[],getInstance:function(id){for(var i=0;i<this.instances.length;i++){if(this.instances[i].id===id){return this.instances[i]}}return false},getSkin:function(skin){return G5ERE_MAP.skins[skin]?G5ERE_MAP.skins[skin]:G5ERE_MAP.skins.skin1},addListener:function(el,e,t){google.maps.event.addListener(el,e,function(e){t(e)})}};G5ERE_MAP.skins={skin1:[{featureType:"all",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"administrative",elementType:"geometry.fill",stylers:[{color:"#eeeeee"}]},{featureType:"administrative.country",elementType:"geometry",stylers:[{lightness:"100"}]},{featureType:"administrative.country",elementType:"geometry.stroke",stylers:[{lightness:"0"},{color:"#d0ecff"}]},{featureType:"administrative.country",elementType:"labels",stylers:[{visibility:"on"}]},{featureType:"administrative.province",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"administrative.locality",elementType:"labels.text",stylers:[{visibility:"simplified"},{color:"#777777"}]},{featureType:"administrative.locality",elementType:"labels.icon",stylers:[{visibility:"simplified"},{lightness:60}]},{featureType:"administrative.neighborhood",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"administrative.land_parcel",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"landscape.man_made",elementType:"all",stylers:[{visibility:"simplified"},{color:"#f5f5f5"}]},{featureType:"landscape.natural",elementType:"geometry",stylers:[{color:"#fafafa"}]},{featureType:"landscape.natural",elementType:"labels",stylers:[{visibility:"simplified"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"poi",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"poi.attraction",elementType:"geometry",stylers:[{color:"#e2e8cf"}]},{featureType:"poi.business",elementType:"all",stylers:[{visibility:"simplified"}]},{featureType:"poi.business",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"poi.medical",elementType:"all",stylers:[{color:"#eeeeee"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#ecf4d7"}]},{featureType:"poi.park",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"poi.place_of_worship",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"poi.school",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"poi.sports_complex",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#e5e5e5"},{visibility:"simplified"}]},{featureType:"road.highway",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"road.arterial",elementType:"geometry.stroke",stylers:[{color:"#eeeeee"}]},{featureType:"road.arterial",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"road.local",elementType:"geometry.fill",stylers:[{color:"#ffffff"}]},{featureType:"road.local",elementType:"geometry.stroke",stylers:[{visibility:"on"},{color:"#eeeeee"}]},{featureType:"road.local",elementType:"labels",stylers:[{visibility:"simplified"}]},{featureType:"road.local",elementType:"labels.text",stylers:[{color:"#777777"}]},{featureType:"road.local",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"transit.line",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"transit.station",elementType:"geometry.fill",stylers:[{color:"#eeeeee"}]},{featureType:"water",elementType:"all",stylers:[{visibility:"simplified"}]},{featureType:"water",elementType:"geometry.fill",stylers:[{color:"#d0ecff"}]},{featureType:"water",elementType:"labels",stylers:[{visibility:"off"}]}],skin2:[{featureType:"all",elementType:"labels.text.fill",stylers:[{saturation:"0"},{color:"#f3f3f3"},{lightness:"-40"},{gamma:"1"}]},{featureType:"all",elementType:"labels.text.stroke",stylers:[{visibility:"on"},{color:"#000000"},{lightness:"12"}]},{featureType:"all",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"administrative",elementType:"geometry.fill",stylers:[{color:"#2c2d37"},{lightness:"4"}]},{featureType:"administrative",elementType:"geometry.stroke",stylers:[{color:"#2c2d37"},{lightness:17},{weight:1.2}]},{featureType:"landscape",elementType:"geometry",stylers:[{color:"#2c2d37"},{lightness:"25"},{gamma:"0.60"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#2c2d37"},{lightness:"26"},{gamma:"0.49"}]},{featureType:"road.highway",elementType:"geometry.fill",stylers:[{color:"#2c2d37"},{lightness:17},{gamma:"0.60"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#2c2d37"},{lightness:29},{weight:.2},{gamma:"0.60"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#2c2d37"},{lightness:18},{gamma:"0.60"}]},{featureType:"road.local",elementType:"geometry",stylers:[{color:"#2c2d37"},{lightness:16},{gamma:"0.60"}]},{featureType:"transit",elementType:"geometry",stylers:[{color:"#2c2d37"},{lightness:"29"},{gamma:"0.60"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#3c3d47"},{lightness:"16"},{gamma:"0.50"}]}],skin3:[{featureType:"water",elementType:"geometry",stylers:[{color:"#e9e9e9"},{lightness:17}]},{featureType:"landscape",elementType:"geometry",stylers:[{color:"#f5f5f5"},{lightness:20}]},{featureType:"road.highway",elementType:"geometry.fill",stylers:[{color:"#ffffff"},{lightness:17}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#ffffff"},{lightness:29},{weight:.2}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#ffffff"},{lightness:18}]},{featureType:"road.local",elementType:"geometry",stylers:[{color:"#ffffff"},{lightness:16}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#f5f5f5"},{lightness:21}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#dedede"},{lightness:21}]},{elementType:"labels.text.stroke",stylers:[{visibility:"on"},{color:"#ffffff"},{lightness:16}]},{elementType:"labels.text.fill",stylers:[{saturation:36},{color:"#333333"},{lightness:40}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"transit",elementType:"geometry",stylers:[{color:"#f2f2f2"},{lightness:19}]},{featureType:"administrative",elementType:"geometry.fill",stylers:[{color:"#fefefe"},{lightness:20}]},{featureType:"administrative",elementType:"geometry.stroke",stylers:[{color:"#fefefe"},{lightness:17},{weight:1.2}]}],skin4:[{featureType:"administrative",elementType:"labels.text.fill",stylers:[{color:"#444444"}]},{featureType:"landscape",elementType:"all",stylers:[{color:"#f2f2f2"}]},{featureType:"poi",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"road",elementType:"all",stylers:[{saturation:-100},{lightness:45}]},{featureType:"road.highway",elementType:"all",stylers:[{visibility:"simplified"}]},{featureType:"road.arterial",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"transit",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"water",elementType:"all",stylers:[{color:"#46bcec"},{visibility:"on"}]}],skin5:[{featureType:"landscape.man_made",elementType:"geometry",stylers:[{color:"#f7f1df"}]},{featureType:"landscape.natural",elementType:"geometry",stylers:[{color:"#d0e3b4"}]},{featureType:"landscape.natural.terrain",elementType:"geometry",stylers:[{visibility:"off"}]},{featureType:"poi",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"poi.business",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"poi.medical",elementType:"geometry",stylers:[{color:"#fbd3da"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#bde6ab"}]},{featureType:"road",elementType:"geometry.stroke",stylers:[{visibility:"off"}]},{featureType:"road",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"road.highway",elementType:"geometry.fill",stylers:[{color:"#ffe15f"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#efd151"}]},{featureType:"road.arterial",elementType:"geometry.fill",stylers:[{color:"#ffffff"}]},{featureType:"road.local",elementType:"geometry.fill",stylers:[{color:"black"}]},{featureType:"transit.station.airport",elementType:"geometry.fill",stylers:[{color:"#cfb2db"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#a2daf2"}]}],skin6:[{featureType:"administrative",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"landscape",elementType:"all",stylers:[{visibility:"simplified"},{hue:"#0066ff"},{saturation:74},{lightness:100}]},{featureType:"poi",elementType:"all",stylers:[{visibility:"simplified"}]},{featureType:"road",elementType:"all",stylers:[{visibility:"simplified"}]},{featureType:"road.highway",elementType:"all",stylers:[{visibility:"off"},{weight:.6},{saturation:-85},{lightness:61}]},{featureType:"road.highway",elementType:"geometry",stylers:[{visibility:"on"}]},{featureType:"road.arterial",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"road.local",elementType:"all",stylers:[{visibility:"on"}]},{featureType:"transit",elementType:"all",stylers:[{visibility:"simplified"}]},{featureType:"water",elementType:"all",stylers:[{visibility:"simplified"},{color:"#5f94ff"},{lightness:26},{gamma:5.86}]}],skin7:[{featureType:"water",elementType:"geometry",stylers:[{color:"#a0d6d1"},{lightness:17}]},{featureType:"landscape",elementType:"geometry",stylers:[{color:"#ffffff"},{lightness:20}]},{featureType:"road.highway",elementType:"geometry.fill",stylers:[{color:"#dedede"},{lightness:17}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#dedede"},{lightness:29},{weight:.2}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#dedede"},{lightness:18}]},{featureType:"road.local",elementType:"geometry",stylers:[{color:"#ffffff"},{lightness:16}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#f1f1f1"},{lightness:21}]},{elementType:"labels.text.stroke",stylers:[{visibility:"on"},{color:"#ffffff"},{lightness:16}]},{elementType:"labels.text.fill",stylers:[{saturation:36},{color:"#333333"},{lightness:40}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"transit",elementType:"geometry",stylers:[{color:"#f2f2f2"},{lightness:19}]},{featureType:"administrative",elementType:"geometry.fill",stylers:[{color:"#fefefe"},{lightness:20}]},{featureType:"administrative",elementType:"geometry.stroke",stylers:[{color:"#fefefe"},{lightness:17},{weight:1.2}]}],skin8:[{featureType:"all",stylers:[{saturation:0},{hue:"#e7ecf0"}]},{featureType:"road",stylers:[{saturation:-70}]},{featureType:"transit",stylers:[{visibility:"off"}]},{featureType:"poi",stylers:[{visibility:"off"}]},{featureType:"water",stylers:[{visibility:"simplified"},{saturation:-60}]}],skin9:[{featureType:"all",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"all",elementType:"labels",stylers:[{visibility:"on"}]},{featureType:"administrative.country",elementType:"labels",stylers:[{visibility:"on"}]},{featureType:"administrative.country",elementType:"labels.text",stylers:[{visibility:"on"}]},{featureType:"administrative.province",elementType:"labels",stylers:[{visibility:"on"}]},{featureType:"administrative.province",elementType:"labels.text",stylers:[{visibility:"on"}]},{featureType:"administrative.locality",elementType:"labels",stylers:[{visibility:"on"}]},{featureType:"administrative.neighborhood",elementType:"labels",stylers:[{visibility:"on"}]},{featureType:"administrative.land_parcel",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"landscape",elementType:"all",stylers:[{hue:"#FFBB00"},{saturation:43.400000000000006},{lightness:37.599999999999994},{gamma:1}]},{featureType:"landscape",elementType:"geometry.fill",stylers:[{saturation:"-40"},{lightness:"36"}]},{featureType:"landscape.man_made",elementType:"geometry",stylers:[{visibility:"off"}]},{featureType:"landscape.natural",elementType:"geometry.fill",stylers:[{saturation:"-77"},{lightness:"28"}]},{featureType:"landscape.natural",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"poi",elementType:"all",stylers:[{hue:"#ff0091"},{saturation:-44},{lightness:11.200000000000017},{gamma:1}]},{featureType:"poi",elementType:"labels",stylers:[{visibility:"off"},{saturation:-81}]},{featureType:"poi.attraction",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"poi.park",elementType:"geometry.fill",stylers:[{saturation:"-24"},{lightness:"61"}]},{featureType:"road",elementType:"labels",stylers:[{visibility:"on"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{visibility:"on"}]},{featureType:"road",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"road.highway",elementType:"all",stylers:[{hue:"#ff0048"},{saturation:-78},{lightness:45.599999999999994},{gamma:1}]},{featureType:"road.highway",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"road.highway.controlled_access",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"road.arterial",elementType:"all",stylers:[{hue:"#FF0300"},{saturation:-100},{lightness:51.19999999999999},{gamma:1}]},{featureType:"road.local",elementType:"all",stylers:[{hue:"#ff0300"},{saturation:-100},{lightness:52},{gamma:1}]},{featureType:"road.local",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"transit",elementType:"geometry",stylers:[{visibility:"off"}]},{featureType:"transit",elementType:"geometry.stroke",stylers:[{visibility:"off"}]},{featureType:"transit",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"transit",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"transit.line",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"transit.station",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"water",elementType:"all",stylers:[{hue:"#789cdb"},{saturation:-66},{lightness:2.4000000000000057},{gamma:1}]},{featureType:"water",elementType:"labels",stylers:[{visibility:"off"}]}],skin10:[{featureType:"all",elementType:"labels",stylers:[{visibility:"on"}]},{featureType:"administrative.country",elementType:"labels",stylers:[{visibility:"on"}]},{featureType:"administrative.country",elementType:"labels.text",stylers:[{visibility:"on"}]},{featureType:"administrative.province",elementType:"labels",stylers:[{visibility:"on"}]},{featureType:"administrative.province",elementType:"labels.text",stylers:[{visibility:"on"}]},{featureType:"administrative.locality",elementType:"labels",stylers:[{visibility:"on"}]},{featureType:"administrative.neighborhood",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"administrative.land_parcel",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"landscape",elementType:"all",stylers:[{hue:"#FFBB00"},{saturation:43.400000000000006},{lightness:37.599999999999994},{gamma:1}]},{featureType:"landscape",elementType:"geometry.fill",stylers:[{saturation:"-40"},{lightness:"36"}]},{featureType:"landscape.man_made",elementType:"geometry",stylers:[{visibility:"off"}]},{featureType:"landscape.natural",elementType:"geometry.fill",stylers:[{saturation:"-77"},{lightness:"28"}]},{featureType:"landscape.natural",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"poi",elementType:"all",stylers:[{hue:"#00FF6A"},{saturation:-1.0989010989011234},{lightness:11.200000000000017},{gamma:1}]},{featureType:"poi",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"poi.attraction",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"poi.park",elementType:"geometry.fill",stylers:[{saturation:"-24"},{lightness:"61"}]},{featureType:"road",elementType:"labels",stylers:[{visibility:"on"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{visibility:"on"}]},{featureType:"road",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"road.highway",elementType:"all",stylers:[{hue:"#FFC200"},{saturation:-61.8},{lightness:45.599999999999994},{gamma:1}]},{featureType:"road.highway",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"road.highway.controlled_access",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"road.arterial",elementType:"all",stylers:[{hue:"#FF0300"},{saturation:-100},{lightness:51.19999999999999},{gamma:1}]},{featureType:"road.local",elementType:"all",stylers:[{hue:"#ff0300"},{saturation:-100},{lightness:52},{gamma:1}]},{featureType:"road.local",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"transit",elementType:"geometry",stylers:[{visibility:"off"}]},{featureType:"transit",elementType:"geometry.stroke",stylers:[{visibility:"off"}]},{featureType:"transit",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"transit",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"transit.line",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"transit.station",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"water",elementType:"all",stylers:[{hue:"#0078FF"},{saturation:-13.200000000000003},{lightness:2.4000000000000057},{gamma:1}]},{featureType:"water",elementType:"labels",stylers:[{visibility:"off"}]}],skin11:[{featureType:"all",elementType:"labels",stylers:[{visibility:"on"}]},{featureType:"administrative.country",elementType:"labels",stylers:[{visibility:"on"}]},{featureType:"administrative.country",elementType:"labels.text",stylers:[{visibility:"on"}]},{featureType:"all",elementType:"geometry",stylers:[{color:"#262c33"}]},{featureType:"all",elementType:"labels.text.fill",stylers:[{gamma:.01},{lightness:20},{color:"#949aa6"}]},{featureType:"all",elementType:"labels.text.stroke",stylers:[{saturation:-31},{lightness:-33},{weight:2},{gamma:"0.00"},{visibility:"off"}]},{featureType:"all",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"administrative.province",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"administrative.locality",elementType:"all",stylers:[{visibility:"simplified"}]},{featureType:"administrative.locality",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"administrative.neighborhood",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"administrative.land_parcel",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"landscape",elementType:"geometry",stylers:[{lightness:30},{saturation:30},{color:"#353c44"},{visibility:"on"}]},{featureType:"poi",elementType:"geometry",stylers:[{saturation:"0"},{lightness:"0"},{gamma:"0.30"},{weight:"0.01"},{visibility:"off"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{lightness:"100"},{saturation:-20},{visibility:"simplified"},{color:"#31383f"}]},{featureType:"road",elementType:"geometry",stylers:[{lightness:10},{saturation:-30},{color:"#2a3037"}]},{featureType:"road",elementType:"geometry.stroke",stylers:[{saturation:"-100"},{lightness:"-100"},{gamma:"0.00"},{color:"#2a3037"}]},{featureType:"road",elementType:"labels",stylers:[{visibility:"on"}]},{featureType:"road",elementType:"labels.text",stylers:[{visibility:"on"},{color:"#575e6b"}]},{featureType:"road",elementType:"labels.text.stroke",stylers:[{visibility:"off"}]},{featureType:"road",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"road.highway",elementType:"geometry.fill",stylers:[{color:"#4c5561"},{visibility:"on"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{visibility:"off"}]},{featureType:"transit",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"transit.station.airport",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"water",elementType:"all",stylers:[{lightness:-20},{color:"#2a3037"}]}],skin12:[]};G5ERE_MAP.LatLng=function(latitude,longitude){this.init(latitude,longitude)};G5ERE_MAP.LatLng.prototype.init=function(latitude,longitude){this.latitude=latitude;this.longitude=longitude;this.latlng=new google.maps.LatLng(latitude,longitude)};G5ERE_MAP.LatLng.prototype.getLatitude=function(){return this.latlng.lat()};G5ERE_MAP.LatLng.prototype.getLongitude=function(){return this.latlng.lng()};G5ERE_MAP.LatLng.prototype.toGeocoderFormat=function(){return this.latlng};G5ERE_MAP.LatLng.prototype.getSourceObject=function(){return this.latlng};G5ERE_MAP.LatLngBounds=function(southwest,northeast){this.init(southwest,northeast)};G5ERE_MAP.LatLngBounds.prototype.init=function(southwest,northeast){this.southwest=southwest;this.northeast=northeast;this.bounds=new google.maps.LatLngBounds(southwest,northeast)};G5ERE_MAP.LatLngBounds.prototype.extend=function(e){this.bounds.extend(e.getSourceObject())};G5ERE_MAP.LatLngBounds.prototype.getSourceObject=function(){return this.bounds};G5ERE_MAP.Clusterer=function(e){this.init(e)};G5ERE_MAP.Clusterer.prototype.init=function(e){this.map=e;var options={clusterClass:"g5ere__cluster",styles:[{textColor:"#fff",height:35,width:35}]};this.clusterer=new MarkerClusterer(this.map.getSourceObject(),this.getMarkers(),options)};G5ERE_MAP.Clusterer.prototype.getMarkers=function(){return this.map.markers.map(function(e){return e.getSourceObject()})};G5ERE_MAP.Clusterer.prototype.update=function(){this.clusterer.clearMarkers();this.clusterer.addMarkers(this.getMarkers())};G5ERE_MAP.Clusterer.prototype.setMaxZoom=function(e){this.clusterer.setMaxZoom(e)};G5ERE_MAP.Clusterer.prototype.repaint=function(){this.clusterer.repaint()};G5ERE_MAP.Marker=function(e){var newConfigMarker=$.parseJSON(JSON.stringify(g5ere_map_config.marker));this.options=$.extend(true,{position:false,map:false,popup:false,animation:false,draggable:false,template:{type:"basic",marker:newConfigMarker,id:""}},e);this.init(e)};G5ERE_MAP.Marker.prototype.init=function(e){if(this.options.template.type==="basic"){this.marker=new G5ERE_MAP.MarkerOverLay(this)}else{this.marker=new google.maps.Marker({position:this.options.position.latlng,map:this.options.map.map,draggable:this.options.draggable,animation:this.options.animation})}this.options.position&&this.setPosition(this.options.position);this.options.map&&this.setMap(this.options.map)};G5ERE_MAP.Marker.prototype.setPosition=function(e){this.marker.setPosition(e.getSourceObject());return this};G5ERE_MAP.Marker.prototype.getPosition=function(){return this.options.position};G5ERE_MAP.Marker.prototype.setMap=function(e){this.marker.setMap(e.getSourceObject());return this};G5ERE_MAP.Marker.prototype.remove=function(){if(this.options.popup){this.options.popup.remove()}this.marker.setMap(null);this.marker.remove();return this};G5ERE_MAP.Marker.prototype.getSourceObject=function(){return this.marker};G5ERE_MAP.Marker.prototype.getTemplate=function(){var e=document.createElement("div");e.className="g5ere__marker-container";e.style.position="absolute";e.style.cursor="pointer";e.style.zIndex=10;e.id=this.options.template.id;var t=$("#g5ere__marker_template").html().replace("{{icon}}",this.options.template.marker.html).replace("{{type}}",this.options.template.marker.type);$(e).append(t);return e};G5ERE_MAP.Marker.prototype.active=function(){var self=this;if("object"===typeof self.options.map){var $markerElement=self.options.map.$element.find("#"+self.options.template.id);if($markerElement.length>0){$markerElement.addClass("active")}}$(self.marker.args.template).trigger("click")};G5ERE_MAP.MarkerOverLay=function(e){this.args={marker:e,template:null,latlng:e.getPosition().getSourceObject(),map:e.options.map,animation:e.options.animation,popup:e.options.popup,draggable:e.options.draggable};if(this.args.map&&this.args.popup){this.args.popup.setMap(this.args.map)}};"undefined"!=typeof google&&(G5ERE_MAP.MarkerOverLay.prototype=new google.maps.OverlayView);G5ERE_MAP.MarkerOverLay.prototype.onAdd=function(){var self=this;if(!this.args.template){this.args.template=this.args.marker.getTemplate();if(this.args.map&&this.args.popup){google.maps.event.addDomListener(this.args.template,"click",function(e){e.preventDefault();e.stopPropagation();self.args.map.closePopups();self.args.popup.setPosition(self.args.marker.getPosition());var $marker=$(this).find(".g5ere__pin-wrap"),marker_bottom=parseInt($marker.css("bottom").replace("px","")),marker_height=$marker.height()+marker_bottom;self.args.popup.popup.setOptions({boxStyle:{width:self.args.popup.options.width?self.args.popup.options.width:"300px",zIndex:5e6,margin:"0 0 "+marker_height+"px 0"}});self.args.popup.show()})}this.getPanes().overlayImage.appendChild(this.args.template)}};G5ERE_MAP.MarkerOverLay.prototype.draw=function(){this.setPosition(this.args.latlng)};G5ERE_MAP.MarkerOverLay.prototype.remove=function(){if(this.args.template){this.args.template.parentNode.removeChild(this.args.template);this.args.template=null}};G5ERE_MAP.MarkerOverLay.prototype.getPosition=function(){return this.args.latlng};G5ERE_MAP.MarkerOverLay.prototype.setPosition=function(e){this.args.latlng=e;if(this.args.template&&!(!this.args.latlng instanceof google.maps.LatLng)){var t=this.getProjection().fromLatLngToDivPixel(this.args.latlng);this.args.template.style.left=t.x+"px";this.args.template.style.top=t.y+"px"}};G5ERE_MAP.MarkerOverLay.prototype.getDraggable=function(){return this.args.draggable};G5ERE_MAP.Geocoder=function(){this.init()};G5ERE_MAP.Geocoder.prototype.init=function(){this.geocoder=new google.maps.Geocoder};G5ERE_MAP.Geocoder.prototype.setMap=function(e){this.map=e};G5ERE_MAP.Geocoder.prototype.geocode=function(e,t,i){var self=this,r={},o=false;if(typeof t==="function"){i=t;t={}}if(e instanceof google.maps.LatLng){r.location=e}else if(e instanceof G5ERE_MAP.LatLng){r.location=e.getSourceObject()}else{if("string"!=typeof e||!e.length)return i(o);r.address=e}t=$.extend({limit:1},t);this.geocoder.geocode(r,function(results,status){if(status==="OK"&&results&&results.length){o=t.limit===1?self.formatFeature(results[0]):results.map(self.formatFeature)}return i(o)})};G5ERE_MAP.Geocoder.prototype.formatFeature=function(e){return{location:new G5ERE_MAP.LatLng(e.geometry.location.lat(),e.geometry.location.lng()),latitude:e.geometry.location.lat(),longitude:e.geometry.location.lng(),address:e.formatted_address}};G5ERE_MAP.Autocomplete=function(e){$(e).data("autocomplete",this);this.init(e)};G5ERE_MAP.Autocomplete.prototype.init=function(e){if(!(e instanceof Element))return false;this.element=e;this.$element=$(e);this.options={};if(g5ere_map_config.types.length){this.options.types=[g5ere_map_config.types]}if(g5ere_map_config.countries.length){this.options.componentRestrictions={country:g5ere_map_config.countries}}this.geocoder=new G5ERE_MAP.Geocoder;this.autocomplete=new google.maps.places.Autocomplete(this.element,this.options);this.$element.on("keydown",function(e){if(e.which===13){e.preventDefault()}})};G5ERE_MAP.Autocomplete.prototype.change=function(t){var self=this;this.autocomplete.addListener("place_changed",function(){var place=self.autocomplete.getPlace();var e=false;if(typeof place.geometry!=="undefined"){e=self.geocoder.formatFeature(self.autocomplete.getPlace())}else if(typeof place.name!=="undefined"){self.geocoder.geocode(place.name,function(e){if(e){self.$element.val(e.address);t(e)}})}t(e)})};G5ERE_MAP.Popup=function(e){this.options=$.extend(true,{content:"",classes:"g5ere__map-popup-wrap g5ere__map-popup-google",position:false,map:false,width:false},e);this.init(e)};G5ERE_MAP.Popup.prototype.init=function(e){this.template_name="default";this.popup=new InfoBox({content:"",disableAutoPan:false,maxWidth:0,zIndex:5e8,boxClass:this._getBoxClass(),boxStyle:{width:this.options.width?this.options.width:"300px",zIndex:5e6},infoBoxClearance:new google.maps.Size(1,1),isHidden:false,pane:"floatPane",enableEventPropagation:false,alignBottom:true});if(this.options.position){this.setPosition(this.options.position)}if(this.options.content){this.setContent(this.options.content)}if(this.options.map){this.setMap(this.options.map)}};G5ERE_MAP.Popup.prototype.setContent=function(e){this.popup.setContent(e);return this};G5ERE_MAP.Popup.prototype.setPosition=function(e){this.popup.setPosition(e.getSourceObject());return this};G5ERE_MAP.Popup.prototype.setMap=function(e){this.map=e;return this};G5ERE_MAP.Popup.prototype.remove=function(){this.popup.close();return this};G5ERE_MAP.Popup.prototype.show=function(){return this.popup.getVisible()?this:(this.popup.open(this.map.getSourceObject()),setTimeout(function(){this.popup.setOptions({boxClass:this._getBoxClass()+" show"})}.bind(this),5),this)};G5ERE_MAP.Popup.prototype.hide=function(){return this.popup.getVisible()?(this.remove(),this.popup.setOptions({boxClass:this._getBoxClass()}),this):this};G5ERE_MAP.Popup.prototype._getBoxClass=function(){return[this.options.classes?this.options.classes:"","tpl-"+this.template_name].join(" ")};G5ERE_MAP.MAP=function(element){this.$element=$(element);this.element=element;this.init()};G5ERE_MAP.MAP.prototype.init=function(){this.options=$.extend({},G5ERE_MAP.options,this.$element.data("options"));this.markers=[];this.bounds=new G5ERE_MAP.LatLngBounds;this.id=typeof this.$element.attr("id")!=="undefined"?this.$element.attr("id"):false;this.events={};this.map=new google.maps.Map(this.element,{zoom:parseInt(this.options.zoom,10),minZoom:this.options.minZoom,styles:G5ERE_MAP.getSkin(this.options.skin),gestureHandling:this.options.gestureHandling,draggable:this.options.draggable,navigationControl:this.options.navigationControl,mapTypeControl:this.options.mapTypeControl,streetViewControl:this.options.streetViewControl});this.setCenter(new G5ERE_MAP.LatLng(0,0));this.maybeAddMarkers();if(this.options.cluster_markers){this.clusterer=new G5ERE_MAP.Clusterer(this);this.addListener("updated_markers",this._updateCluster.bind(this))}this.addListener("zoom_changed",this.closePopups.bind(this));this.addListener("click",this.closePopups.bind(this));G5ERE_MAP.instances.push({id:this.id,map:this.map,instance:this})};G5ERE_MAP.MAP.prototype.maybeAddMarkers=function(){if(this.options._type==="single-location"){var location=this.$element.data("location");if(location&&location.position){this.trigger("updating_markers");var position=new G5ERE_MAP.LatLng(location.position.lat,location.position.lng);var marker_option={position:position,map:this,template:{}};if(location.marker){marker_option.template.marker=location.marker;marker_option.template.id=location.id}if(location.popup){var template=wp.template("g5ere__map_popup_template");var content_popup=template(location);marker_option.popup=new G5ERE_MAP.Popup({content:content_popup})}var marker=new G5ERE_MAP.Marker(marker_option);this.markers.push(marker);this.setCenter(position);this.trigger("updated_markers")}}};G5ERE_MAP.MAP.prototype.setZoom=function(e){this.map.setZoom(e)};G5ERE_MAP.MAP.prototype.resetZoom=function(e){this.setZoom(this.options.zoom)};G5ERE_MAP.MAP.prototype.getZoom=function(){return this.map.getZoom()};G5ERE_MAP.MAP.prototype.setCenter=function(e){this.map.setCenter(e.getSourceObject())};G5ERE_MAP.MAP.prototype.fitBounds=function(e){this.map.fitBounds(e.getSourceObject())};G5ERE_MAP.MAP.prototype.panTo=function(e){this.map.panTo(e.getSourceObject())};G5ERE_MAP.MAP.prototype.getClickPosition=function(e){return new G5ERE_MAP.LatLng(e.latLng.lat(),e.latLng.lng())};G5ERE_MAP.MAP.prototype.getDragPosition=function(e){return new G5ERE_MAP.LatLng(e.latLng.lat(),e.latLng.lng())};G5ERE_MAP.MAP.prototype.addListener=function(e,t){google.maps.event.addListener(this.map,this.getSourceEvent(e),function(e){t(e)})};G5ERE_MAP.MAP.prototype.addListenerOnce=function(e,t){google.maps.event.addListenerOnce(this.map,this.getSourceEvent(e),function(e){t(e)})};G5ERE_MAP.MAP.prototype.trigger=function(e){google.maps.event.trigger(this.map,this.getSourceEvent(e))};G5ERE_MAP.MAP.prototype.getSourceObject=function(){return this.map};G5ERE_MAP.MAP.prototype.getSourceEvent=function(e){return void 0!==this.events[e]?this.events[e]:e};G5ERE_MAP.MAP.prototype.closePopups=function(){for(var i=0;i<this.markers.length;i++){if("object"===typeof this.markers[i].options.popup){this.markers[i].options.popup.hide()}}};G5ERE_MAP.MAP.prototype.removeMarkers=function(){for(var i=0;i<this.markers.length;i++){this.markers[i].remove()}this.markers.length=0;this.markers=[]};G5ERE_MAP.MAP.prototype._updateCluster=function(){this.clusterer||(this.clusterer=new G5ERE_MAP.Clusterer(this));setTimeout(function(){this.clusterer.update()}.bind(this),5)};G5ERE_MAP.MAP.prototype.refresh=function(){};G5ERE_MAP.MAP.prototype.activeMarker=function(id){if(this.options.cluster_markers){this.clusterer.setMaxZoom(1);this.clusterer.repaint()}var self=this;clearTimeout(this.timeOutActive);this.timeOutActive=setTimeout(function(){for(var i=0;i<self.markers.length;i++){if(self.markers[i].options.template.id==id){self.markers[i].active();break}}},10)};G5ERE_MAP.MAP.prototype.deactiveMarker=function(){var self=this;if(self.options.cluster_markers){self.clusterer.setMaxZoom(13);self.clusterer.repaint()}self.$element.find(".g5ere__marker-container").removeClass("active");self.closePopups()};typeof google!=="undefined"&&typeof g5ere_map_config!=="undefined"&&google.maps.event.addDomListener(window,"load",function(){if(typeof g5ere_map_config.skin_custom==="object"&&g5ere_map_config.skin==="custom"){try{G5ERE_MAP.skins.custom=JSON.parse(g5ere_map_config.skin_custom)}catch(e){G5ERE_MAP.skins.custom=[]}}$(".g5ere__map-canvas:not(.manual)").each(function(){new G5ERE_MAP.MAP(this)});$(document).trigger("maps:loaded")})})(jQuery);
jQuery.easing["jswing"]=jQuery.easing["swing"];jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(x,t,b,c,d){return jQuery.easing[jQuery.easing.def](x,t,b,c,d)},easeInQuad:function(x,t,b,c,d){return c*(t/=d)*t+b},easeOutQuad:function(x,t,b,c,d){return-c*(t/=d)*(t-2)+b},easeInOutQuad:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t+b;return-c/2*(--t*(t-2)-1)+b},easeInCubic:function(x,t,b,c,d){return c*(t/=d)*t*t+b},easeOutCubic:function(x,t,b,c,d){return c*((t=t/d-1)*t*t+1)+b},easeInOutCubic:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t+b;return c/2*((t-=2)*t*t+2)+b},easeInQuart:function(x,t,b,c,d){return c*(t/=d)*t*t*t+b},easeOutQuart:function(x,t,b,c,d){return-c*((t=t/d-1)*t*t*t-1)+b},easeInOutQuart:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t+b;return-c/2*((t-=2)*t*t*t-2)+b},easeInQuint:function(x,t,b,c,d){return c*(t/=d)*t*t*t*t+b},easeOutQuint:function(x,t,b,c,d){return c*((t=t/d-1)*t*t*t*t+1)+b},easeInOutQuint:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t*t+b;return c/2*((t-=2)*t*t*t*t+2)+b},easeInSine:function(x,t,b,c,d){return-c*Math.cos(t/d*(Math.PI/2))+c+b},easeOutSine:function(x,t,b,c,d){return c*Math.sin(t/d*(Math.PI/2))+b},easeInOutSine:function(x,t,b,c,d){return-c/2*(Math.cos(Math.PI*t/d)-1)+b},easeInExpo:function(x,t,b,c,d){return t==0?b:c*Math.pow(2,10*(t/d-1))+b},easeOutExpo:function(x,t,b,c,d){return t==d?b+c:c*(-Math.pow(2,-10*t/d)+1)+b},easeInOutExpo:function(x,t,b,c,d){if(t==0)return b;if(t==d)return b+c;if((t/=d/2)<1)return c/2*Math.pow(2,10*(t-1))+b;return c/2*(-Math.pow(2,-10*--t)+2)+b},easeInCirc:function(x,t,b,c,d){return-c*(Math.sqrt(1-(t/=d)*t)-1)+b},easeOutCirc:function(x,t,b,c,d){return c*Math.sqrt(1-(t=t/d-1)*t)+b},easeInOutCirc:function(x,t,b,c,d){if((t/=d/2)<1)return-c/2*(Math.sqrt(1-t*t)-1)+b;return c/2*(Math.sqrt(1-(t-=2)*t)+1)+b},easeInElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);return-(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b},easeOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);return a*Math.pow(2,-10*t)*Math.sin((t*d-s)*(2*Math.PI)/p)+c+b},easeInOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d/2)==2)return b+c;if(!p)p=d*(.3*1.5);if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);if(t<1)return-.5*(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;return a*Math.pow(2,-10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p)*.5+c+b},easeInBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*(t/=d)*t*((s+1)*t-s)+b},easeOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},easeInOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;if((t/=d/2)<1)return c/2*(t*t*(((s*=1.525)+1)*t-s))+b;return c/2*((t-=2)*t*(((s*=1.525)+1)*t+s)+2)+b},easeInBounce:function(x,t,b,c,d){return c-jQuery.easing.easeOutBounce(x,d-t,0,c,d)+b},easeOutBounce:function(x,t,b,c,d){if((t/=d)<1/2.75){return c*(7.5625*t*t)+b}else if(t<2/2.75){return c*(7.5625*(t-=1.5/2.75)*t+.75)+b}else if(t<2.5/2.75){return c*(7.5625*(t-=2.25/2.75)*t+.9375)+b}else{return c*(7.5625*(t-=2.625/2.75)*t+.984375)+b}},easeInOutBounce:function(x,t,b,c,d){if(t<d/2)return jQuery.easing.easeInBounce(x,t*2,0,c,d)*.5+b;return jQuery.easing.easeOutBounce(x,t*2-d,0,c,d)*.5+c*.5+b}});
(function(global,factory){typeof exports==="object"&&typeof module!=="undefined"?factory(exports,require("jquery")):typeof define==="function"&&define.amd?define(["exports","jquery"],factory):(global=typeof globalThis!=="undefined"?globalThis:global||self,factory(global.bootstrap={},global.jQuery))})(this,function(exports,$){"use strict";function _interopDefaultLegacy(e){return e&&typeof e==="object"&&"default"in e?e:{default:e}}var $__default=_interopDefaultLegacy($);function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);return Constructor}function _extends(){_extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key]}}}return target};return _extends.apply(this,arguments)}function _inheritsLoose(subClass,superClass){subClass.prototype=Object.create(superClass.prototype);subClass.prototype.constructor=subClass;subClass.__proto__=superClass}var TRANSITION_END="transitionend";var MAX_UID=1e6;var MILLISECONDS_MULTIPLIER=1e3;function toType(obj){if(obj===null||typeof obj==="undefined"){return""+obj}return{}.toString.call(obj).match(/\s([a-z]+)/i)[1].toLowerCase()}function getSpecialTransitionEndEvent(){return{bindType:TRANSITION_END,delegateType:TRANSITION_END,handle:function handle(event){if($__default["default"](event.target).is(this)){return event.handleObj.handler.apply(this,arguments)}return undefined}}}function transitionEndEmulator(duration){var _this=this;var called=false;$__default["default"](this).one(Util.TRANSITION_END,function(){called=true});setTimeout(function(){if(!called){Util.triggerTransitionEnd(_this)}},duration);return this}function setTransitionEndSupport(){$__default["default"].fn.emulateTransitionEnd=transitionEndEmulator;$__default["default"].event.special[Util.TRANSITION_END]=getSpecialTransitionEndEvent()}var Util={TRANSITION_END:"bsTransitionEnd",getUID:function getUID(prefix){do{prefix+=~~(Math.random()*MAX_UID)}while(document.getElementById(prefix));return prefix},getSelectorFromElement:function getSelectorFromElement(element){var selector=element.getAttribute("data-target");if(!selector||selector==="#"){var hrefAttr=element.getAttribute("href");selector=hrefAttr&&hrefAttr!=="#"?hrefAttr.trim():""}try{return document.querySelector(selector)?selector:null}catch(_){return null}},getTransitionDurationFromElement:function getTransitionDurationFromElement(element){if(!element){return 0}var transitionDuration=$__default["default"](element).css("transition-duration");var transitionDelay=$__default["default"](element).css("transition-delay");var floatTransitionDuration=parseFloat(transitionDuration);var floatTransitionDelay=parseFloat(transitionDelay);if(!floatTransitionDuration&&!floatTransitionDelay){return 0}transitionDuration=transitionDuration.split(",")[0];transitionDelay=transitionDelay.split(",")[0];return(parseFloat(transitionDuration)+parseFloat(transitionDelay))*MILLISECONDS_MULTIPLIER},reflow:function reflow(element){return element.offsetHeight},triggerTransitionEnd:function triggerTransitionEnd(element){$__default["default"](element).trigger(TRANSITION_END)},supportsTransitionEnd:function supportsTransitionEnd(){return Boolean(TRANSITION_END)},isElement:function isElement(obj){return(obj[0]||obj).nodeType},typeCheckConfig:function typeCheckConfig(componentName,config,configTypes){for(var property in configTypes){if(Object.prototype.hasOwnProperty.call(configTypes,property)){var expectedTypes=configTypes[property];var value=config[property];var valueType=value&&Util.isElement(value)?"element":toType(value);if(!new RegExp(expectedTypes).test(valueType)){throw new Error(componentName.toUpperCase()+": "+('Option "'+property+'" provided type "'+valueType+'" ')+('but expected type "'+expectedTypes+'".'))}}}},findShadowRoot:function findShadowRoot(element){if(!document.documentElement.attachShadow){return null}if(typeof element.getRootNode==="function"){var root=element.getRootNode();return root instanceof ShadowRoot?root:null}if(element instanceof ShadowRoot){return element}if(!element.parentNode){return null}return Util.findShadowRoot(element.parentNode)},jQueryDetection:function jQueryDetection(){if(typeof $__default["default"]==="undefined"){throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.")}var version=$__default["default"].fn.jquery.split(" ")[0].split(".");var minMajor=1;var ltMajor=2;var minMinor=9;var minPatch=1;var maxMajor=4;if(version[0]<ltMajor&&version[1]<minMinor||version[0]===minMajor&&version[1]===minMinor&&version[2]<minPatch||version[0]>=maxMajor){throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}}};Util.jQueryDetection();setTransitionEndSupport();var NAME="alert";var VERSION="4.6.0";var DATA_KEY="bs.alert";var EVENT_KEY="."+DATA_KEY;var DATA_API_KEY=".data-api";var JQUERY_NO_CONFLICT=$__default["default"].fn[NAME];var SELECTOR_DISMISS='[data-dismiss="alert"]';var EVENT_CLOSE="close"+EVENT_KEY;var EVENT_CLOSED="closed"+EVENT_KEY;var EVENT_CLICK_DATA_API="click"+EVENT_KEY+DATA_API_KEY;var CLASS_NAME_ALERT="alert";var CLASS_NAME_FADE="fade";var CLASS_NAME_SHOW="show";var Alert=function(){function Alert(element){this._element=element}var _proto=Alert.prototype;_proto.close=function close(element){var rootElement=this._element;if(element){rootElement=this._getRootElement(element)}var customEvent=this._triggerCloseEvent(rootElement);if(customEvent.isDefaultPrevented()){return}this._removeElement(rootElement)};_proto.dispose=function dispose(){$__default["default"].removeData(this._element,DATA_KEY);this._element=null};_proto._getRootElement=function _getRootElement(element){var selector=Util.getSelectorFromElement(element);var parent=false;if(selector){parent=document.querySelector(selector)}if(!parent){parent=$__default["default"](element).closest("."+CLASS_NAME_ALERT)[0]}return parent};_proto._triggerCloseEvent=function _triggerCloseEvent(element){var closeEvent=$__default["default"].Event(EVENT_CLOSE);$__default["default"](element).trigger(closeEvent);return closeEvent};_proto._removeElement=function _removeElement(element){var _this=this;$__default["default"](element).removeClass(CLASS_NAME_SHOW);if(!$__default["default"](element).hasClass(CLASS_NAME_FADE)){this._destroyElement(element);return}var transitionDuration=Util.getTransitionDurationFromElement(element);$__default["default"](element).one(Util.TRANSITION_END,function(event){return _this._destroyElement(element,event)}).emulateTransitionEnd(transitionDuration)};_proto._destroyElement=function _destroyElement(element){$__default["default"](element).detach().trigger(EVENT_CLOSED).remove()};Alert._jQueryInterface=function _jQueryInterface(config){return this.each(function(){var $element=$__default["default"](this);var data=$element.data(DATA_KEY);if(!data){data=new Alert(this);$element.data(DATA_KEY,data)}if(config==="close"){data[config](this)}})};Alert._handleDismiss=function _handleDismiss(alertInstance){return function(event){if(event){event.preventDefault()}alertInstance.close(this)}};_createClass(Alert,null,[{key:"VERSION",get:function get(){return VERSION}}]);return Alert}();$__default["default"](document).on(EVENT_CLICK_DATA_API,SELECTOR_DISMISS,Alert._handleDismiss(new Alert));$__default["default"].fn[NAME]=Alert._jQueryInterface;$__default["default"].fn[NAME].Constructor=Alert;$__default["default"].fn[NAME].noConflict=function(){$__default["default"].fn[NAME]=JQUERY_NO_CONFLICT;return Alert._jQueryInterface};var NAME$1="button";var VERSION$1="4.6.0";var DATA_KEY$1="bs.button";var EVENT_KEY$1="."+DATA_KEY$1;var DATA_API_KEY$1=".data-api";var JQUERY_NO_CONFLICT$1=$__default["default"].fn[NAME$1];var CLASS_NAME_ACTIVE="active";var CLASS_NAME_BUTTON="btn";var CLASS_NAME_FOCUS="focus";var SELECTOR_DATA_TOGGLE_CARROT='[data-toggle^="button"]';var SELECTOR_DATA_TOGGLES='[data-toggle="buttons"]';var SELECTOR_DATA_TOGGLE='[data-toggle="button"]';var SELECTOR_DATA_TOGGLES_BUTTONS='[data-toggle="buttons"] .btn';var SELECTOR_INPUT='input:not([type="hidden"])';var SELECTOR_ACTIVE=".active";var SELECTOR_BUTTON=".btn";var EVENT_CLICK_DATA_API$1="click"+EVENT_KEY$1+DATA_API_KEY$1;var EVENT_FOCUS_BLUR_DATA_API="focus"+EVENT_KEY$1+DATA_API_KEY$1+" "+("blur"+EVENT_KEY$1+DATA_API_KEY$1);var EVENT_LOAD_DATA_API="load"+EVENT_KEY$1+DATA_API_KEY$1;var Button=function(){function Button(element){this._element=element;this.shouldAvoidTriggerChange=false}var _proto=Button.prototype;_proto.toggle=function toggle(){var triggerChangeEvent=true;var addAriaPressed=true;var rootElement=$__default["default"](this._element).closest(SELECTOR_DATA_TOGGLES)[0];if(rootElement){var input=this._element.querySelector(SELECTOR_INPUT);if(input){if(input.type==="radio"){if(input.checked&&this._element.classList.contains(CLASS_NAME_ACTIVE)){triggerChangeEvent=false}else{var activeElement=rootElement.querySelector(SELECTOR_ACTIVE);if(activeElement){$__default["default"](activeElement).removeClass(CLASS_NAME_ACTIVE)}}}if(triggerChangeEvent){if(input.type==="checkbox"||input.type==="radio"){input.checked=!this._element.classList.contains(CLASS_NAME_ACTIVE)}if(!this.shouldAvoidTriggerChange){$__default["default"](input).trigger("change")}}input.focus();addAriaPressed=false}}if(!(this._element.hasAttribute("disabled")||this._element.classList.contains("disabled"))){if(addAriaPressed){this._element.setAttribute("aria-pressed",!this._element.classList.contains(CLASS_NAME_ACTIVE))}if(triggerChangeEvent){$__default["default"](this._element).toggleClass(CLASS_NAME_ACTIVE)}}};_proto.dispose=function dispose(){$__default["default"].removeData(this._element,DATA_KEY$1);this._element=null};Button._jQueryInterface=function _jQueryInterface(config,avoidTriggerChange){return this.each(function(){var $element=$__default["default"](this);var data=$element.data(DATA_KEY$1);if(!data){data=new Button(this);$element.data(DATA_KEY$1,data)}data.shouldAvoidTriggerChange=avoidTriggerChange;if(config==="toggle"){data[config]()}})};_createClass(Button,null,[{key:"VERSION",get:function get(){return VERSION$1}}]);return Button}();$__default["default"](document).on(EVENT_CLICK_DATA_API$1,SELECTOR_DATA_TOGGLE_CARROT,function(event){var button=event.target;var initialButton=button;if(!$__default["default"](button).hasClass(CLASS_NAME_BUTTON)){button=$__default["default"](button).closest(SELECTOR_BUTTON)[0]}if(!button||button.hasAttribute("disabled")||button.classList.contains("disabled")){event.preventDefault()}else{var inputBtn=button.querySelector(SELECTOR_INPUT);if(inputBtn&&(inputBtn.hasAttribute("disabled")||inputBtn.classList.contains("disabled"))){event.preventDefault();return}if(initialButton.tagName==="INPUT"||button.tagName!=="LABEL"){Button._jQueryInterface.call($__default["default"](button),"toggle",initialButton.tagName==="INPUT")}}}).on(EVENT_FOCUS_BLUR_DATA_API,SELECTOR_DATA_TOGGLE_CARROT,function(event){var button=$__default["default"](event.target).closest(SELECTOR_BUTTON)[0];$__default["default"](button).toggleClass(CLASS_NAME_FOCUS,/^focus(in)?$/.test(event.type))});$__default["default"](window).on(EVENT_LOAD_DATA_API,function(){var buttons=[].slice.call(document.querySelectorAll(SELECTOR_DATA_TOGGLES_BUTTONS));for(var i=0,len=buttons.length;i<len;i++){var button=buttons[i];var input=button.querySelector(SELECTOR_INPUT);if(input.checked||input.hasAttribute("checked")){button.classList.add(CLASS_NAME_ACTIVE)}else{button.classList.remove(CLASS_NAME_ACTIVE)}}buttons=[].slice.call(document.querySelectorAll(SELECTOR_DATA_TOGGLE));for(var _i=0,_len=buttons.length;_i<_len;_i++){var _button=buttons[_i];if(_button.getAttribute("aria-pressed")==="true"){_button.classList.add(CLASS_NAME_ACTIVE)}else{_button.classList.remove(CLASS_NAME_ACTIVE)}}});$__default["default"].fn[NAME$1]=Button._jQueryInterface;$__default["default"].fn[NAME$1].Constructor=Button;$__default["default"].fn[NAME$1].noConflict=function(){$__default["default"].fn[NAME$1]=JQUERY_NO_CONFLICT$1;return Button._jQueryInterface};var NAME$2="carousel";var VERSION$2="4.6.0";var DATA_KEY$2="bs.carousel";var EVENT_KEY$2="."+DATA_KEY$2;var DATA_API_KEY$2=".data-api";var JQUERY_NO_CONFLICT$2=$__default["default"].fn[NAME$2];var ARROW_LEFT_KEYCODE=37;var ARROW_RIGHT_KEYCODE=39;var TOUCHEVENT_COMPAT_WAIT=500;var SWIPE_THRESHOLD=40;var Default={interval:5e3,keyboard:true,slide:false,pause:"hover",wrap:true,touch:true};var DefaultType={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"};var DIRECTION_NEXT="next";var DIRECTION_PREV="prev";var DIRECTION_LEFT="left";var DIRECTION_RIGHT="right";var EVENT_SLIDE="slide"+EVENT_KEY$2;var EVENT_SLID="slid"+EVENT_KEY$2;var EVENT_KEYDOWN="keydown"+EVENT_KEY$2;var EVENT_MOUSEENTER="mouseenter"+EVENT_KEY$2;var EVENT_MOUSELEAVE="mouseleave"+EVENT_KEY$2;var EVENT_TOUCHSTART="touchstart"+EVENT_KEY$2;var EVENT_TOUCHMOVE="touchmove"+EVENT_KEY$2;var EVENT_TOUCHEND="touchend"+EVENT_KEY$2;var EVENT_POINTERDOWN="pointerdown"+EVENT_KEY$2;var EVENT_POINTERUP="pointerup"+EVENT_KEY$2;var EVENT_DRAG_START="dragstart"+EVENT_KEY$2;var EVENT_LOAD_DATA_API$1="load"+EVENT_KEY$2+DATA_API_KEY$2;var EVENT_CLICK_DATA_API$2="click"+EVENT_KEY$2+DATA_API_KEY$2;var CLASS_NAME_CAROUSEL="carousel";var CLASS_NAME_ACTIVE$1="active";var CLASS_NAME_SLIDE="slide";var CLASS_NAME_RIGHT="carousel-item-right";var CLASS_NAME_LEFT="carousel-item-left";var CLASS_NAME_NEXT="carousel-item-next";var CLASS_NAME_PREV="carousel-item-prev";var CLASS_NAME_POINTER_EVENT="pointer-event";var SELECTOR_ACTIVE$1=".active";var SELECTOR_ACTIVE_ITEM=".active.carousel-item";var SELECTOR_ITEM=".carousel-item";var SELECTOR_ITEM_IMG=".carousel-item img";var SELECTOR_NEXT_PREV=".carousel-item-next, .carousel-item-prev";var SELECTOR_INDICATORS=".carousel-indicators";var SELECTOR_DATA_SLIDE="[data-slide], [data-slide-to]";var SELECTOR_DATA_RIDE='[data-ride="carousel"]';var PointerType={TOUCH:"touch",PEN:"pen"};var Carousel=function(){function Carousel(element,config){this._items=null;this._interval=null;this._activeElement=null;this._isPaused=false;this._isSliding=false;this.touchTimeout=null;this.touchStartX=0;this.touchDeltaX=0;this._config=this._getConfig(config);this._element=element;this._indicatorsElement=this._element.querySelector(SELECTOR_INDICATORS);this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0;this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent);this._addEventListeners()}var _proto=Carousel.prototype;_proto.next=function next(){if(!this._isSliding){this._slide(DIRECTION_NEXT)}};_proto.nextWhenVisible=function nextWhenVisible(){var $element=$__default["default"](this._element);if(!document.hidden&&$element.is(":visible")&&$element.css("visibility")!=="hidden"){this.next()}};_proto.prev=function prev(){if(!this._isSliding){this._slide(DIRECTION_PREV)}};_proto.pause=function pause(event){if(!event){this._isPaused=true}if(this._element.querySelector(SELECTOR_NEXT_PREV)){Util.triggerTransitionEnd(this._element);this.cycle(true)}clearInterval(this._interval);this._interval=null};_proto.cycle=function cycle(event){if(!event){this._isPaused=false}if(this._interval){clearInterval(this._interval);this._interval=null}if(this._config.interval&&!this._isPaused){this._updateInterval();this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval)}};_proto.to=function to(index){var _this=this;this._activeElement=this._element.querySelector(SELECTOR_ACTIVE_ITEM);var activeIndex=this._getItemIndex(this._activeElement);if(index>this._items.length-1||index<0){return}if(this._isSliding){$__default["default"](this._element).one(EVENT_SLID,function(){return _this.to(index)});return}if(activeIndex===index){this.pause();this.cycle();return}var direction=index>activeIndex?DIRECTION_NEXT:DIRECTION_PREV;this._slide(direction,this._items[index])};_proto.dispose=function dispose(){$__default["default"](this._element).off(EVENT_KEY$2);$__default["default"].removeData(this._element,DATA_KEY$2);this._items=null;this._config=null;this._element=null;this._interval=null;this._isPaused=null;this._isSliding=null;this._activeElement=null;this._indicatorsElement=null};_proto._getConfig=function _getConfig(config){config=_extends({},Default,config);Util.typeCheckConfig(NAME$2,config,DefaultType);return config};_proto._handleSwipe=function _handleSwipe(){var absDeltax=Math.abs(this.touchDeltaX);if(absDeltax<=SWIPE_THRESHOLD){return}var direction=absDeltax/this.touchDeltaX;this.touchDeltaX=0;if(direction>0){this.prev()}if(direction<0){this.next()}};_proto._addEventListeners=function _addEventListeners(){var _this2=this;if(this._config.keyboard){$__default["default"](this._element).on(EVENT_KEYDOWN,function(event){return _this2._keydown(event)})}if(this._config.pause==="hover"){$__default["default"](this._element).on(EVENT_MOUSEENTER,function(event){return _this2.pause(event)}).on(EVENT_MOUSELEAVE,function(event){return _this2.cycle(event)})}if(this._config.touch){this._addTouchEventListeners()}};_proto._addTouchEventListeners=function _addTouchEventListeners(){var _this3=this;if(!this._touchSupported){return}var start=function start(event){if(_this3._pointerEvent&&PointerType[event.originalEvent.pointerType.toUpperCase()]){_this3.touchStartX=event.originalEvent.clientX}else if(!_this3._pointerEvent){_this3.touchStartX=event.originalEvent.touches[0].clientX}};var move=function move(event){if(event.originalEvent.touches&&event.originalEvent.touches.length>1){_this3.touchDeltaX=0}else{_this3.touchDeltaX=event.originalEvent.touches[0].clientX-_this3.touchStartX}};var end=function end(event){if(_this3._pointerEvent&&PointerType[event.originalEvent.pointerType.toUpperCase()]){_this3.touchDeltaX=event.originalEvent.clientX-_this3.touchStartX}_this3._handleSwipe();if(_this3._config.pause==="hover"){_this3.pause();if(_this3.touchTimeout){clearTimeout(_this3.touchTimeout)}_this3.touchTimeout=setTimeout(function(event){return _this3.cycle(event)},TOUCHEVENT_COMPAT_WAIT+_this3._config.interval)}};$__default["default"](this._element.querySelectorAll(SELECTOR_ITEM_IMG)).on(EVENT_DRAG_START,function(e){return e.preventDefault()});if(this._pointerEvent){$__default["default"](this._element).on(EVENT_POINTERDOWN,function(event){return start(event)});$__default["default"](this._element).on(EVENT_POINTERUP,function(event){return end(event)});this._element.classList.add(CLASS_NAME_POINTER_EVENT)}else{$__default["default"](this._element).on(EVENT_TOUCHSTART,function(event){return start(event)});$__default["default"](this._element).on(EVENT_TOUCHMOVE,function(event){return move(event)});$__default["default"](this._element).on(EVENT_TOUCHEND,function(event){return end(event)})}};_proto._keydown=function _keydown(event){if(/input|textarea/i.test(event.target.tagName)){return}switch(event.which){case ARROW_LEFT_KEYCODE:event.preventDefault();this.prev();break;case ARROW_RIGHT_KEYCODE:event.preventDefault();this.next();break}};_proto._getItemIndex=function _getItemIndex(element){this._items=element&&element.parentNode?[].slice.call(element.parentNode.querySelectorAll(SELECTOR_ITEM)):[];return this._items.indexOf(element)};_proto._getItemByDirection=function _getItemByDirection(direction,activeElement){var isNextDirection=direction===DIRECTION_NEXT;var isPrevDirection=direction===DIRECTION_PREV;var activeIndex=this._getItemIndex(activeElement);var lastItemIndex=this._items.length-1;var isGoingToWrap=isPrevDirection&&activeIndex===0||isNextDirection&&activeIndex===lastItemIndex;if(isGoingToWrap&&!this._config.wrap){return activeElement}var delta=direction===DIRECTION_PREV?-1:1;var itemIndex=(activeIndex+delta)%this._items.length;return itemIndex===-1?this._items[this._items.length-1]:this._items[itemIndex]};_proto._triggerSlideEvent=function _triggerSlideEvent(relatedTarget,eventDirectionName){var targetIndex=this._getItemIndex(relatedTarget);var fromIndex=this._getItemIndex(this._element.querySelector(SELECTOR_ACTIVE_ITEM));var slideEvent=$__default["default"].Event(EVENT_SLIDE,{relatedTarget:relatedTarget,direction:eventDirectionName,from:fromIndex,to:targetIndex});$__default["default"](this._element).trigger(slideEvent);return slideEvent};_proto._setActiveIndicatorElement=function _setActiveIndicatorElement(element){if(this._indicatorsElement){var indicators=[].slice.call(this._indicatorsElement.querySelectorAll(SELECTOR_ACTIVE$1));$__default["default"](indicators).removeClass(CLASS_NAME_ACTIVE$1);var nextIndicator=this._indicatorsElement.children[this._getItemIndex(element)];if(nextIndicator){$__default["default"](nextIndicator).addClass(CLASS_NAME_ACTIVE$1)}}};_proto._updateInterval=function _updateInterval(){var element=this._activeElement||this._element.querySelector(SELECTOR_ACTIVE_ITEM);if(!element){return}var elementInterval=parseInt(element.getAttribute("data-interval"),10);if(elementInterval){this._config.defaultInterval=this._config.defaultInterval||this._config.interval;this._config.interval=elementInterval}else{this._config.interval=this._config.defaultInterval||this._config.interval}};_proto._slide=function _slide(direction,element){var _this4=this;var activeElement=this._element.querySelector(SELECTOR_ACTIVE_ITEM);var activeElementIndex=this._getItemIndex(activeElement);var nextElement=element||activeElement&&this._getItemByDirection(direction,activeElement);var nextElementIndex=this._getItemIndex(nextElement);var isCycling=Boolean(this._interval);var directionalClassName;var orderClassName;var eventDirectionName;if(direction===DIRECTION_NEXT){directionalClassName=CLASS_NAME_LEFT;orderClassName=CLASS_NAME_NEXT;eventDirectionName=DIRECTION_LEFT}else{directionalClassName=CLASS_NAME_RIGHT;orderClassName=CLASS_NAME_PREV;eventDirectionName=DIRECTION_RIGHT}if(nextElement&&$__default["default"](nextElement).hasClass(CLASS_NAME_ACTIVE$1)){this._isSliding=false;return}var slideEvent=this._triggerSlideEvent(nextElement,eventDirectionName);if(slideEvent.isDefaultPrevented()){return}if(!activeElement||!nextElement){return}this._isSliding=true;if(isCycling){this.pause()}this._setActiveIndicatorElement(nextElement);this._activeElement=nextElement;var slidEvent=$__default["default"].Event(EVENT_SLID,{relatedTarget:nextElement,direction:eventDirectionName,from:activeElementIndex,to:nextElementIndex});if($__default["default"](this._element).hasClass(CLASS_NAME_SLIDE)){$__default["default"](nextElement).addClass(orderClassName);Util.reflow(nextElement);$__default["default"](activeElement).addClass(directionalClassName);$__default["default"](nextElement).addClass(directionalClassName);var transitionDuration=Util.getTransitionDurationFromElement(activeElement);$__default["default"](activeElement).one(Util.TRANSITION_END,function(){$__default["default"](nextElement).removeClass(directionalClassName+" "+orderClassName).addClass(CLASS_NAME_ACTIVE$1);$__default["default"](activeElement).removeClass(CLASS_NAME_ACTIVE$1+" "+orderClassName+" "+directionalClassName);_this4._isSliding=false;setTimeout(function(){return $__default["default"](_this4._element).trigger(slidEvent)},0)}).emulateTransitionEnd(transitionDuration)}else{$__default["default"](activeElement).removeClass(CLASS_NAME_ACTIVE$1);$__default["default"](nextElement).addClass(CLASS_NAME_ACTIVE$1);this._isSliding=false;$__default["default"](this._element).trigger(slidEvent)}if(isCycling){this.cycle()}};Carousel._jQueryInterface=function _jQueryInterface(config){return this.each(function(){var data=$__default["default"](this).data(DATA_KEY$2);var _config=_extends({},Default,$__default["default"](this).data());if(typeof config==="object"){_config=_extends({},_config,config)}var action=typeof config==="string"?config:_config.slide;if(!data){data=new Carousel(this,_config);$__default["default"](this).data(DATA_KEY$2,data)}if(typeof config==="number"){data.to(config)}else if(typeof action==="string"){if(typeof data[action]==="undefined"){throw new TypeError('No method named "'+action+'"')}data[action]()}else if(_config.interval&&_config.ride){data.pause();data.cycle()}})};Carousel._dataApiClickHandler=function _dataApiClickHandler(event){var selector=Util.getSelectorFromElement(this);if(!selector){return}var target=$__default["default"](selector)[0];if(!target||!$__default["default"](target).hasClass(CLASS_NAME_CAROUSEL)){return}var config=_extends({},$__default["default"](target).data(),$__default["default"](this).data());var slideIndex=this.getAttribute("data-slide-to");if(slideIndex){config.interval=false}Carousel._jQueryInterface.call($__default["default"](target),config);if(slideIndex){$__default["default"](target).data(DATA_KEY$2).to(slideIndex)}event.preventDefault()};_createClass(Carousel,null,[{key:"VERSION",get:function get(){return VERSION$2}},{key:"Default",get:function get(){return Default}}]);return Carousel}();$__default["default"](document).on(EVENT_CLICK_DATA_API$2,SELECTOR_DATA_SLIDE,Carousel._dataApiClickHandler);$__default["default"](window).on(EVENT_LOAD_DATA_API$1,function(){var carousels=[].slice.call(document.querySelectorAll(SELECTOR_DATA_RIDE));for(var i=0,len=carousels.length;i<len;i++){var $carousel=$__default["default"](carousels[i]);Carousel._jQueryInterface.call($carousel,$carousel.data())}});$__default["default"].fn[NAME$2]=Carousel._jQueryInterface;$__default["default"].fn[NAME$2].Constructor=Carousel;$__default["default"].fn[NAME$2].noConflict=function(){$__default["default"].fn[NAME$2]=JQUERY_NO_CONFLICT$2;return Carousel._jQueryInterface};var NAME$3="collapse";var VERSION$3="4.6.0";var DATA_KEY$3="bs.collapse";var EVENT_KEY$3="."+DATA_KEY$3;var DATA_API_KEY$3=".data-api";var JQUERY_NO_CONFLICT$3=$__default["default"].fn[NAME$3];var Default$1={toggle:true,parent:""};var DefaultType$1={toggle:"boolean",parent:"(string|element)"};var EVENT_SHOW="show"+EVENT_KEY$3;var EVENT_SHOWN="shown"+EVENT_KEY$3;var EVENT_HIDE="hide"+EVENT_KEY$3;var EVENT_HIDDEN="hidden"+EVENT_KEY$3;var EVENT_CLICK_DATA_API$3="click"+EVENT_KEY$3+DATA_API_KEY$3;var CLASS_NAME_SHOW$1="show";var CLASS_NAME_COLLAPSE="collapse";var CLASS_NAME_COLLAPSING="collapsing";var CLASS_NAME_COLLAPSED="collapsed";var DIMENSION_WIDTH="width";var DIMENSION_HEIGHT="height";var SELECTOR_ACTIVES=".show, .collapsing";var SELECTOR_DATA_TOGGLE$1='[data-toggle="collapse"]';var Collapse=function(){function Collapse(element,config){this._isTransitioning=false;this._element=element;this._config=this._getConfig(config);this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+element.id+'"],'+('[data-toggle="collapse"][data-target="#'+element.id+'"]')));var toggleList=[].slice.call(document.querySelectorAll(SELECTOR_DATA_TOGGLE$1));for(var i=0,len=toggleList.length;i<len;i++){var elem=toggleList[i];var selector=Util.getSelectorFromElement(elem);var filterElement=[].slice.call(document.querySelectorAll(selector)).filter(function(foundElem){return foundElem===element});if(selector!==null&&filterElement.length>0){this._selector=selector;this._triggerArray.push(elem)}}this._parent=this._config.parent?this._getParent():null;if(!this._config.parent){this._addAriaAndCollapsedClass(this._element,this._triggerArray)}if(this._config.toggle){this.toggle()}}var _proto=Collapse.prototype;_proto.toggle=function toggle(){if($__default["default"](this._element).hasClass(CLASS_NAME_SHOW$1)){this.hide()}else{this.show()}};_proto.show=function show(){var _this=this;if(this._isTransitioning||$__default["default"](this._element).hasClass(CLASS_NAME_SHOW$1)){return}var actives;var activesData;if(this._parent){actives=[].slice.call(this._parent.querySelectorAll(SELECTOR_ACTIVES)).filter(function(elem){if(typeof _this._config.parent==="string"){return elem.getAttribute("data-parent")===_this._config.parent}return elem.classList.contains(CLASS_NAME_COLLAPSE)});if(actives.length===0){actives=null}}if(actives){activesData=$__default["default"](actives).not(this._selector).data(DATA_KEY$3);if(activesData&&activesData._isTransitioning){return}}var startEvent=$__default["default"].Event(EVENT_SHOW);$__default["default"](this._element).trigger(startEvent);if(startEvent.isDefaultPrevented()){return}if(actives){Collapse._jQueryInterface.call($__default["default"](actives).not(this._selector),"hide");if(!activesData){$__default["default"](actives).data(DATA_KEY$3,null)}}var dimension=this._getDimension();$__default["default"](this._element).removeClass(CLASS_NAME_COLLAPSE).addClass(CLASS_NAME_COLLAPSING);this._element.style[dimension]=0;if(this._triggerArray.length){$__default["default"](this._triggerArray).removeClass(CLASS_NAME_COLLAPSED).attr("aria-expanded",true)}this.setTransitioning(true);var complete=function complete(){$__default["default"](_this._element).removeClass(CLASS_NAME_COLLAPSING).addClass(CLASS_NAME_COLLAPSE+" "+CLASS_NAME_SHOW$1);_this._element.style[dimension]="";_this.setTransitioning(false);$__default["default"](_this._element).trigger(EVENT_SHOWN)};var capitalizedDimension=dimension[0].toUpperCase()+dimension.slice(1);var scrollSize="scroll"+capitalizedDimension;var transitionDuration=Util.getTransitionDurationFromElement(this._element);$__default["default"](this._element).one(Util.TRANSITION_END,complete).emulateTransitionEnd(transitionDuration);this._element.style[dimension]=this._element[scrollSize]+"px"};_proto.hide=function hide(){var _this2=this;if(this._isTransitioning||!$__default["default"](this._element).hasClass(CLASS_NAME_SHOW$1)){return}var startEvent=$__default["default"].Event(EVENT_HIDE);$__default["default"](this._element).trigger(startEvent);if(startEvent.isDefaultPrevented()){return}var dimension=this._getDimension();this._element.style[dimension]=this._element.getBoundingClientRect()[dimension]+"px";Util.reflow(this._element);$__default["default"](this._element).addClass(CLASS_NAME_COLLAPSING).removeClass(CLASS_NAME_COLLAPSE+" "+CLASS_NAME_SHOW$1);var triggerArrayLength=this._triggerArray.length;if(triggerArrayLength>0){for(var i=0;i<triggerArrayLength;i++){var trigger=this._triggerArray[i];var selector=Util.getSelectorFromElement(trigger);if(selector!==null){var $elem=$__default["default"]([].slice.call(document.querySelectorAll(selector)));if(!$elem.hasClass(CLASS_NAME_SHOW$1)){$__default["default"](trigger).addClass(CLASS_NAME_COLLAPSED).attr("aria-expanded",false)}}}}this.setTransitioning(true);var complete=function complete(){_this2.setTransitioning(false);$__default["default"](_this2._element).removeClass(CLASS_NAME_COLLAPSING).addClass(CLASS_NAME_COLLAPSE).trigger(EVENT_HIDDEN)};this._element.style[dimension]="";var transitionDuration=Util.getTransitionDurationFromElement(this._element);$__default["default"](this._element).one(Util.TRANSITION_END,complete).emulateTransitionEnd(transitionDuration)};_proto.setTransitioning=function setTransitioning(isTransitioning){this._isTransitioning=isTransitioning};_proto.dispose=function dispose(){$__default["default"].removeData(this._element,DATA_KEY$3);this._config=null;this._parent=null;this._element=null;this._triggerArray=null;this._isTransitioning=null};_proto._getConfig=function _getConfig(config){config=_extends({},Default$1,config);config.toggle=Boolean(config.toggle);Util.typeCheckConfig(NAME$3,config,DefaultType$1);return config};_proto._getDimension=function _getDimension(){var hasWidth=$__default["default"](this._element).hasClass(DIMENSION_WIDTH);return hasWidth?DIMENSION_WIDTH:DIMENSION_HEIGHT};_proto._getParent=function _getParent(){var _this3=this;var parent;if(Util.isElement(this._config.parent)){parent=this._config.parent;if(typeof this._config.parent.jquery!=="undefined"){parent=this._config.parent[0]}}else{parent=document.querySelector(this._config.parent)}var selector='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]';var children=[].slice.call(parent.querySelectorAll(selector));$__default["default"](children).each(function(i,element){_this3._addAriaAndCollapsedClass(Collapse._getTargetFromElement(element),[element])});return parent};_proto._addAriaAndCollapsedClass=function _addAriaAndCollapsedClass(element,triggerArray){var isOpen=$__default["default"](element).hasClass(CLASS_NAME_SHOW$1);if(triggerArray.length){$__default["default"](triggerArray).toggleClass(CLASS_NAME_COLLAPSED,!isOpen).attr("aria-expanded",isOpen)}};Collapse._getTargetFromElement=function _getTargetFromElement(element){var selector=Util.getSelectorFromElement(element);return selector?document.querySelector(selector):null};Collapse._jQueryInterface=function _jQueryInterface(config){return this.each(function(){var $element=$__default["default"](this);var data=$element.data(DATA_KEY$3);var _config=_extends({},Default$1,$element.data(),typeof config==="object"&&config?config:{});if(!data&&_config.toggle&&typeof config==="string"&&/show|hide/.test(config)){_config.toggle=false}if(!data){data=new Collapse(this,_config);$element.data(DATA_KEY$3,data)}if(typeof config==="string"){if(typeof data[config]==="undefined"){throw new TypeError('No method named "'+config+'"')}data[config]()}})};_createClass(Collapse,null,[{key:"VERSION",get:function get(){return VERSION$3}},{key:"Default",get:function get(){return Default$1}}]);return Collapse}();$__default["default"](document).on(EVENT_CLICK_DATA_API$3,SELECTOR_DATA_TOGGLE$1,function(event){if(event.currentTarget.tagName==="A"){event.preventDefault()}var $trigger=$__default["default"](this);var selector=Util.getSelectorFromElement(this);var selectors=[].slice.call(document.querySelectorAll(selector));$__default["default"](selectors).each(function(){var $target=$__default["default"](this);var data=$target.data(DATA_KEY$3);var config=data?"toggle":$trigger.data();Collapse._jQueryInterface.call($target,config)})});$__default["default"].fn[NAME$3]=Collapse._jQueryInterface;$__default["default"].fn[NAME$3].Constructor=Collapse;$__default["default"].fn[NAME$3].noConflict=function(){$__default["default"].fn[NAME$3]=JQUERY_NO_CONFLICT$3;return Collapse._jQueryInterface};var isBrowser=typeof window!=="undefined"&&typeof document!=="undefined"&&typeof navigator!=="undefined";var timeoutDuration=function(){var longerTimeoutBrowsers=["Edge","Trident","Firefox"];for(var i=0;i<longerTimeoutBrowsers.length;i+=1){if(isBrowser&&navigator.userAgent.indexOf(longerTimeoutBrowsers[i])>=0){return 1}}return 0}();function microtaskDebounce(fn){var called=false;return function(){if(called){return}called=true;window.Promise.resolve().then(function(){called=false;fn()})}}function taskDebounce(fn){var scheduled=false;return function(){if(!scheduled){scheduled=true;setTimeout(function(){scheduled=false;fn()},timeoutDuration)}}}var supportsMicroTasks=isBrowser&&window.Promise;var debounce=supportsMicroTasks?microtaskDebounce:taskDebounce;function isFunction(functionToCheck){var getType={};return functionToCheck&&getType.toString.call(functionToCheck)==="[object Function]"}function getStyleComputedProperty(element,property){if(element.nodeType!==1){return[]}var window=element.ownerDocument.defaultView;var css=window.getComputedStyle(element,null);return property?css[property]:css}function getParentNode(element){if(element.nodeName==="HTML"){return element}return element.parentNode||element.host}function getScrollParent(element){if(!element){return document.body}switch(element.nodeName){case"HTML":case"BODY":return element.ownerDocument.body;case"#document":return element.body}var _getStyleComputedProp=getStyleComputedProperty(element),overflow=_getStyleComputedProp.overflow,overflowX=_getStyleComputedProp.overflowX,overflowY=_getStyleComputedProp.overflowY;if(/(auto|scroll|overlay)/.test(overflow+overflowY+overflowX)){return element}return getScrollParent(getParentNode(element))}function getReferenceNode(reference){return reference&&reference.referenceNode?reference.referenceNode:reference}var isIE11=isBrowser&&!!(window.MSInputMethodContext&&document.documentMode);var isIE10=isBrowser&&/MSIE 10/.test(navigator.userAgent);function isIE(version){if(version===11){return isIE11}if(version===10){return isIE10}return isIE11||isIE10}function getOffsetParent(element){if(!element){return document.documentElement}var noOffsetParent=isIE(10)?document.body:null;var offsetParent=element.offsetParent||null;while(offsetParent===noOffsetParent&&element.nextElementSibling){offsetParent=(element=element.nextElementSibling).offsetParent}var nodeName=offsetParent&&offsetParent.nodeName;if(!nodeName||nodeName==="BODY"||nodeName==="HTML"){return element?element.ownerDocument.documentElement:document.documentElement}if(["TH","TD","TABLE"].indexOf(offsetParent.nodeName)!==-1&&getStyleComputedProperty(offsetParent,"position")==="static"){return getOffsetParent(offsetParent)}return offsetParent}function isOffsetContainer(element){var nodeName=element.nodeName;if(nodeName==="BODY"){return false}return nodeName==="HTML"||getOffsetParent(element.firstElementChild)===element}function getRoot(node){if(node.parentNode!==null){return getRoot(node.parentNode)}return node}function findCommonOffsetParent(element1,element2){if(!element1||!element1.nodeType||!element2||!element2.nodeType){return document.documentElement}var order=element1.compareDocumentPosition(element2)&Node.DOCUMENT_POSITION_FOLLOWING;var start=order?element1:element2;var end=order?element2:element1;var range=document.createRange();range.setStart(start,0);range.setEnd(end,0);var commonAncestorContainer=range.commonAncestorContainer;if(element1!==commonAncestorContainer&&element2!==commonAncestorContainer||start.contains(end)){if(isOffsetContainer(commonAncestorContainer)){return commonAncestorContainer}return getOffsetParent(commonAncestorContainer)}var element1root=getRoot(element1);if(element1root.host){return findCommonOffsetParent(element1root.host,element2)}else{return findCommonOffsetParent(element1,getRoot(element2).host)}}function getScroll(element){var side=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"top";var upperSide=side==="top"?"scrollTop":"scrollLeft";var nodeName=element.nodeName;if(nodeName==="BODY"||nodeName==="HTML"){var html=element.ownerDocument.documentElement;var scrollingElement=element.ownerDocument.scrollingElement||html;return scrollingElement[upperSide]}return element[upperSide]}function includeScroll(rect,element){var subtract=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var scrollTop=getScroll(element,"top");var scrollLeft=getScroll(element,"left");var modifier=subtract?-1:1;rect.top+=scrollTop*modifier;rect.bottom+=scrollTop*modifier;rect.left+=scrollLeft*modifier;rect.right+=scrollLeft*modifier;return rect}function getBordersSize(styles,axis){var sideA=axis==="x"?"Left":"Top";var sideB=sideA==="Left"?"Right":"Bottom";return parseFloat(styles["border"+sideA+"Width"])+parseFloat(styles["border"+sideB+"Width"])}function getSize(axis,body,html,computedStyle){return Math.max(body["offset"+axis],body["scroll"+axis],html["client"+axis],html["offset"+axis],html["scroll"+axis],isIE(10)?parseInt(html["offset"+axis])+parseInt(computedStyle["margin"+(axis==="Height"?"Top":"Left")])+parseInt(computedStyle["margin"+(axis==="Height"?"Bottom":"Right")]):0)}function getWindowSizes(document){var body=document.body;var html=document.documentElement;var computedStyle=isIE(10)&&getComputedStyle(html);return{height:getSize("Height",body,html,computedStyle),width:getSize("Width",body,html,computedStyle)}}var classCallCheck=function(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}};var createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor}}();var defineProperty=function(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true})}else{obj[key]=value}return obj};var _extends$1=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key]}}}return target};function getClientRect(offsets){return _extends$1({},offsets,{right:offsets.left+offsets.width,bottom:offsets.top+offsets.height})}function getBoundingClientRect(element){var rect={};try{if(isIE(10)){rect=element.getBoundingClientRect();var scrollTop=getScroll(element,"top");var scrollLeft=getScroll(element,"left");rect.top+=scrollTop;rect.left+=scrollLeft;rect.bottom+=scrollTop;rect.right+=scrollLeft}else{rect=element.getBoundingClientRect()}}catch(e){}var result={left:rect.left,top:rect.top,width:rect.right-rect.left,height:rect.bottom-rect.top};var sizes=element.nodeName==="HTML"?getWindowSizes(element.ownerDocument):{};var width=sizes.width||element.clientWidth||result.width;var height=sizes.height||element.clientHeight||result.height;var horizScrollbar=element.offsetWidth-width;var vertScrollbar=element.offsetHeight-height;if(horizScrollbar||vertScrollbar){var styles=getStyleComputedProperty(element);horizScrollbar-=getBordersSize(styles,"x");vertScrollbar-=getBordersSize(styles,"y");result.width-=horizScrollbar;result.height-=vertScrollbar}return getClientRect(result)}function getOffsetRectRelativeToArbitraryNode(children,parent){var fixedPosition=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var isIE10=isIE(10);var isHTML=parent.nodeName==="HTML";var childrenRect=getBoundingClientRect(children);var parentRect=getBoundingClientRect(parent);var scrollParent=getScrollParent(children);var styles=getStyleComputedProperty(parent);var borderTopWidth=parseFloat(styles.borderTopWidth);var borderLeftWidth=parseFloat(styles.borderLeftWidth);if(fixedPosition&&isHTML){parentRect.top=Math.max(parentRect.top,0);parentRect.left=Math.max(parentRect.left,0)}var offsets=getClientRect({top:childrenRect.top-parentRect.top-borderTopWidth,left:childrenRect.left-parentRect.left-borderLeftWidth,width:childrenRect.width,height:childrenRect.height});offsets.marginTop=0;offsets.marginLeft=0;if(!isIE10&&isHTML){var marginTop=parseFloat(styles.marginTop);var marginLeft=parseFloat(styles.marginLeft);offsets.top-=borderTopWidth-marginTop;offsets.bottom-=borderTopWidth-marginTop;offsets.left-=borderLeftWidth-marginLeft;offsets.right-=borderLeftWidth-marginLeft;offsets.marginTop=marginTop;offsets.marginLeft=marginLeft}if(isIE10&&!fixedPosition?parent.contains(scrollParent):parent===scrollParent&&scrollParent.nodeName!=="BODY"){offsets=includeScroll(offsets,parent)}return offsets}function getViewportOffsetRectRelativeToArtbitraryNode(element){var excludeScroll=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var html=element.ownerDocument.documentElement;var relativeOffset=getOffsetRectRelativeToArbitraryNode(element,html);var width=Math.max(html.clientWidth,window.innerWidth||0);var height=Math.max(html.clientHeight,window.innerHeight||0);var scrollTop=!excludeScroll?getScroll(html):0;var scrollLeft=!excludeScroll?getScroll(html,"left"):0;var offset={top:scrollTop-relativeOffset.top+relativeOffset.marginTop,left:scrollLeft-relativeOffset.left+relativeOffset.marginLeft,width:width,height:height};return getClientRect(offset)}function isFixed(element){var nodeName=element.nodeName;if(nodeName==="BODY"||nodeName==="HTML"){return false}if(getStyleComputedProperty(element,"position")==="fixed"){return true}var parentNode=getParentNode(element);if(!parentNode){return false}return isFixed(parentNode)}function getFixedPositionOffsetParent(element){if(!element||!element.parentElement||isIE()){return document.documentElement}var el=element.parentElement;while(el&&getStyleComputedProperty(el,"transform")==="none"){el=el.parentElement}return el||document.documentElement}function getBoundaries(popper,reference,padding,boundariesElement){var fixedPosition=arguments.length>4&&arguments[4]!==undefined?arguments[4]:false;var boundaries={top:0,left:0};var offsetParent=fixedPosition?getFixedPositionOffsetParent(popper):findCommonOffsetParent(popper,getReferenceNode(reference));if(boundariesElement==="viewport"){boundaries=getViewportOffsetRectRelativeToArtbitraryNode(offsetParent,fixedPosition)}else{var boundariesNode=void 0;if(boundariesElement==="scrollParent"){boundariesNode=getScrollParent(getParentNode(reference));if(boundariesNode.nodeName==="BODY"){boundariesNode=popper.ownerDocument.documentElement}}else if(boundariesElement==="window"){boundariesNode=popper.ownerDocument.documentElement}else{boundariesNode=boundariesElement}var offsets=getOffsetRectRelativeToArbitraryNode(boundariesNode,offsetParent,fixedPosition);if(boundariesNode.nodeName==="HTML"&&!isFixed(offsetParent)){var _getWindowSizes=getWindowSizes(popper.ownerDocument),height=_getWindowSizes.height,width=_getWindowSizes.width;boundaries.top+=offsets.top-offsets.marginTop;boundaries.bottom=height+offsets.top;boundaries.left+=offsets.left-offsets.marginLeft;boundaries.right=width+offsets.left}else{boundaries=offsets}}padding=padding||0;var isPaddingNumber=typeof padding==="number";boundaries.left+=isPaddingNumber?padding:padding.left||0;boundaries.top+=isPaddingNumber?padding:padding.top||0;boundaries.right-=isPaddingNumber?padding:padding.right||0;boundaries.bottom-=isPaddingNumber?padding:padding.bottom||0;return boundaries}function getArea(_ref){var width=_ref.width,height=_ref.height;return width*height}function computeAutoPlacement(placement,refRect,popper,reference,boundariesElement){var padding=arguments.length>5&&arguments[5]!==undefined?arguments[5]:0;if(placement.indexOf("auto")===-1){return placement}var boundaries=getBoundaries(popper,reference,padding,boundariesElement);var rects={top:{width:boundaries.width,height:refRect.top-boundaries.top},right:{width:boundaries.right-refRect.right,height:boundaries.height},bottom:{width:boundaries.width,height:boundaries.bottom-refRect.bottom},left:{width:refRect.left-boundaries.left,height:boundaries.height}};var sortedAreas=Object.keys(rects).map(function(key){return _extends$1({key:key},rects[key],{area:getArea(rects[key])})}).sort(function(a,b){return b.area-a.area});var filteredAreas=sortedAreas.filter(function(_ref2){var width=_ref2.width,height=_ref2.height;return width>=popper.clientWidth&&height>=popper.clientHeight});var computedPlacement=filteredAreas.length>0?filteredAreas[0].key:sortedAreas[0].key;var variation=placement.split("-")[1];return computedPlacement+(variation?"-"+variation:"")}function getReferenceOffsets(state,popper,reference){var fixedPosition=arguments.length>3&&arguments[3]!==undefined?arguments[3]:null;var commonOffsetParent=fixedPosition?getFixedPositionOffsetParent(popper):findCommonOffsetParent(popper,getReferenceNode(reference));return getOffsetRectRelativeToArbitraryNode(reference,commonOffsetParent,fixedPosition)}function getOuterSizes(element){var window=element.ownerDocument.defaultView;var styles=window.getComputedStyle(element);var x=parseFloat(styles.marginTop||0)+parseFloat(styles.marginBottom||0);var y=parseFloat(styles.marginLeft||0)+parseFloat(styles.marginRight||0);var result={width:element.offsetWidth+y,height:element.offsetHeight+x};return result}function getOppositePlacement(placement){var hash={left:"right",right:"left",bottom:"top",top:"bottom"};return placement.replace(/left|right|bottom|top/g,function(matched){return hash[matched]})}function getPopperOffsets(popper,referenceOffsets,placement){placement=placement.split("-")[0];var popperRect=getOuterSizes(popper);var popperOffsets={width:popperRect.width,height:popperRect.height};var isHoriz=["right","left"].indexOf(placement)!==-1;var mainSide=isHoriz?"top":"left";var secondarySide=isHoriz?"left":"top";var measurement=isHoriz?"height":"width";var secondaryMeasurement=!isHoriz?"height":"width";popperOffsets[mainSide]=referenceOffsets[mainSide]+referenceOffsets[measurement]/2-popperRect[measurement]/2;if(placement===secondarySide){popperOffsets[secondarySide]=referenceOffsets[secondarySide]-popperRect[secondaryMeasurement]}else{popperOffsets[secondarySide]=referenceOffsets[getOppositePlacement(secondarySide)]}return popperOffsets}function find(arr,check){if(Array.prototype.find){return arr.find(check)}return arr.filter(check)[0]}function findIndex(arr,prop,value){if(Array.prototype.findIndex){return arr.findIndex(function(cur){return cur[prop]===value})}var match=find(arr,function(obj){return obj[prop]===value});return arr.indexOf(match)}function runModifiers(modifiers,data,ends){var modifiersToRun=ends===undefined?modifiers:modifiers.slice(0,findIndex(modifiers,"name",ends));modifiersToRun.forEach(function(modifier){if(modifier["function"]){console.warn("`modifier.function` is deprecated, use `modifier.fn`!")}var fn=modifier["function"]||modifier.fn;if(modifier.enabled&&isFunction(fn)){data.offsets.popper=getClientRect(data.offsets.popper);data.offsets.reference=getClientRect(data.offsets.reference);data=fn(data,modifier)}});return data}function update(){if(this.state.isDestroyed){return}var data={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:false,offsets:{}};data.offsets.reference=getReferenceOffsets(this.state,this.popper,this.reference,this.options.positionFixed);data.placement=computeAutoPlacement(this.options.placement,data.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding);data.originalPlacement=data.placement;data.positionFixed=this.options.positionFixed;data.offsets.popper=getPopperOffsets(this.popper,data.offsets.reference,data.placement);data.offsets.popper.position=this.options.positionFixed?"fixed":"absolute";data=runModifiers(this.modifiers,data);if(!this.state.isCreated){this.state.isCreated=true;this.options.onCreate(data)}else{this.options.onUpdate(data)}}function isModifierEnabled(modifiers,modifierName){return modifiers.some(function(_ref){var name=_ref.name,enabled=_ref.enabled;return enabled&&name===modifierName})}function getSupportedPropertyName(property){var prefixes=[false,"ms","Webkit","Moz","O"];var upperProp=property.charAt(0).toUpperCase()+property.slice(1);for(var i=0;i<prefixes.length;i++){var prefix=prefixes[i];var toCheck=prefix?""+prefix+upperProp:property;if(typeof document.body.style[toCheck]!=="undefined"){return toCheck}}return null}function destroy(){this.state.isDestroyed=true;if(isModifierEnabled(this.modifiers,"applyStyle")){this.popper.removeAttribute("x-placement");this.popper.style.position="";this.popper.style.top="";this.popper.style.left="";this.popper.style.right="";this.popper.style.bottom="";this.popper.style.willChange="";this.popper.style[getSupportedPropertyName("transform")]=""}this.disableEventListeners();if(this.options.removeOnDestroy){this.popper.parentNode.removeChild(this.popper)}return this}function getWindow(element){var ownerDocument=element.ownerDocument;return ownerDocument?ownerDocument.defaultView:window}function attachToScrollParents(scrollParent,event,callback,scrollParents){var isBody=scrollParent.nodeName==="BODY";var target=isBody?scrollParent.ownerDocument.defaultView:scrollParent;target.addEventListener(event,callback,{passive:true});if(!isBody){attachToScrollParents(getScrollParent(target.parentNode),event,callback,scrollParents)}scrollParents.push(target)}function setupEventListeners(reference,options,state,updateBound){state.updateBound=updateBound;getWindow(reference).addEventListener("resize",state.updateBound,{passive:true});var scrollElement=getScrollParent(reference);attachToScrollParents(scrollElement,"scroll",state.updateBound,state.scrollParents);state.scrollElement=scrollElement;state.eventsEnabled=true;return state}function enableEventListeners(){if(!this.state.eventsEnabled){this.state=setupEventListeners(this.reference,this.options,this.state,this.scheduleUpdate)}}function removeEventListeners(reference,state){getWindow(reference).removeEventListener("resize",state.updateBound);state.scrollParents.forEach(function(target){target.removeEventListener("scroll",state.updateBound)});state.updateBound=null;state.scrollParents=[];state.scrollElement=null;state.eventsEnabled=false;return state}function disableEventListeners(){if(this.state.eventsEnabled){cancelAnimationFrame(this.scheduleUpdate);this.state=removeEventListeners(this.reference,this.state)}}function isNumeric(n){return n!==""&&!isNaN(parseFloat(n))&&isFinite(n)}function setStyles(element,styles){Object.keys(styles).forEach(function(prop){var unit="";if(["width","height","top","right","bottom","left"].indexOf(prop)!==-1&&isNumeric(styles[prop])){unit="px"}element.style[prop]=styles[prop]+unit})}function setAttributes(element,attributes){Object.keys(attributes).forEach(function(prop){var value=attributes[prop];if(value!==false){element.setAttribute(prop,attributes[prop])}else{element.removeAttribute(prop)}})}function applyStyle(data){setStyles(data.instance.popper,data.styles);setAttributes(data.instance.popper,data.attributes);if(data.arrowElement&&Object.keys(data.arrowStyles).length){setStyles(data.arrowElement,data.arrowStyles)}return data}function applyStyleOnLoad(reference,popper,options,modifierOptions,state){var referenceOffsets=getReferenceOffsets(state,popper,reference,options.positionFixed);var placement=computeAutoPlacement(options.placement,referenceOffsets,popper,reference,options.modifiers.flip.boundariesElement,options.modifiers.flip.padding);popper.setAttribute("x-placement",placement);setStyles(popper,{position:options.positionFixed?"fixed":"absolute"});return options}function getRoundedOffsets(data,shouldRound){var _data$offsets=data.offsets,popper=_data$offsets.popper,reference=_data$offsets.reference;var round=Math.round,floor=Math.floor;var noRound=function noRound(v){return v};var referenceWidth=round(reference.width);var popperWidth=round(popper.width);var isVertical=["left","right"].indexOf(data.placement)!==-1;var isVariation=data.placement.indexOf("-")!==-1;var sameWidthParity=referenceWidth%2===popperWidth%2;var bothOddWidth=referenceWidth%2===1&&popperWidth%2===1;var horizontalToInteger=!shouldRound?noRound:isVertical||isVariation||sameWidthParity?round:floor;var verticalToInteger=!shouldRound?noRound:round;return{left:horizontalToInteger(bothOddWidth&&!isVariation&&shouldRound?popper.left-1:popper.left),top:verticalToInteger(popper.top),bottom:verticalToInteger(popper.bottom),right:horizontalToInteger(popper.right)}}var isFirefox=isBrowser&&/Firefox/i.test(navigator.userAgent);function computeStyle(data,options){var x=options.x,y=options.y;var popper=data.offsets.popper;var legacyGpuAccelerationOption=find(data.instance.modifiers,function(modifier){return modifier.name==="applyStyle"}).gpuAcceleration;if(legacyGpuAccelerationOption!==undefined){console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!")}var gpuAcceleration=legacyGpuAccelerationOption!==undefined?legacyGpuAccelerationOption:options.gpuAcceleration;var offsetParent=getOffsetParent(data.instance.popper);var offsetParentRect=getBoundingClientRect(offsetParent);var styles={position:popper.position};var offsets=getRoundedOffsets(data,window.devicePixelRatio<2||!isFirefox);var sideA=x==="bottom"?"top":"bottom";var sideB=y==="right"?"left":"right";var prefixedProperty=getSupportedPropertyName("transform");var left=void 0,top=void 0;if(sideA==="bottom"){if(offsetParent.nodeName==="HTML"){top=-offsetParent.clientHeight+offsets.bottom}else{top=-offsetParentRect.height+offsets.bottom}}else{top=offsets.top}if(sideB==="right"){if(offsetParent.nodeName==="HTML"){left=-offsetParent.clientWidth+offsets.right}else{left=-offsetParentRect.width+offsets.right}}else{left=offsets.left}if(gpuAcceleration&&prefixedProperty){styles[prefixedProperty]="translate3d("+left+"px, "+top+"px, 0)";styles[sideA]=0;styles[sideB]=0;styles.willChange="transform"}else{var invertTop=sideA==="bottom"?-1:1;var invertLeft=sideB==="right"?-1:1;styles[sideA]=top*invertTop;styles[sideB]=left*invertLeft;styles.willChange=sideA+", "+sideB}var attributes={"x-placement":data.placement};data.attributes=_extends$1({},attributes,data.attributes);data.styles=_extends$1({},styles,data.styles);data.arrowStyles=_extends$1({},data.offsets.arrow,data.arrowStyles);return data}function isModifierRequired(modifiers,requestingName,requestedName){var requesting=find(modifiers,function(_ref){var name=_ref.name;return name===requestingName});var isRequired=!!requesting&&modifiers.some(function(modifier){return modifier.name===requestedName&&modifier.enabled&&modifier.order<requesting.order});if(!isRequired){var _requesting="`"+requestingName+"`";var requested="`"+requestedName+"`";console.warn(requested+" modifier is required by "+_requesting+" modifier in order to work, be sure to include it before "+_requesting+"!")}return isRequired}function arrow(data,options){var _data$offsets$arrow;if(!isModifierRequired(data.instance.modifiers,"arrow","keepTogether")){return data}var arrowElement=options.element;if(typeof arrowElement==="string"){arrowElement=data.instance.popper.querySelector(arrowElement);if(!arrowElement){return data}}else{if(!data.instance.popper.contains(arrowElement)){console.warn("WARNING: `arrow.element` must be child of its popper element!");return data}}var placement=data.placement.split("-")[0];var _data$offsets=data.offsets,popper=_data$offsets.popper,reference=_data$offsets.reference;var isVertical=["left","right"].indexOf(placement)!==-1;var len=isVertical?"height":"width";var sideCapitalized=isVertical?"Top":"Left";var side=sideCapitalized.toLowerCase();var altSide=isVertical?"left":"top";var opSide=isVertical?"bottom":"right";var arrowElementSize=getOuterSizes(arrowElement)[len];if(reference[opSide]-arrowElementSize<popper[side]){data.offsets.popper[side]-=popper[side]-(reference[opSide]-arrowElementSize)}if(reference[side]+arrowElementSize>popper[opSide]){data.offsets.popper[side]+=reference[side]+arrowElementSize-popper[opSide]}data.offsets.popper=getClientRect(data.offsets.popper);var center=reference[side]+reference[len]/2-arrowElementSize/2;var css=getStyleComputedProperty(data.instance.popper);var popperMarginSide=parseFloat(css["margin"+sideCapitalized]);var popperBorderSide=parseFloat(css["border"+sideCapitalized+"Width"]);var sideValue=center-data.offsets.popper[side]-popperMarginSide-popperBorderSide;sideValue=Math.max(Math.min(popper[len]-arrowElementSize,sideValue),0);data.arrowElement=arrowElement;data.offsets.arrow=(_data$offsets$arrow={},defineProperty(_data$offsets$arrow,side,Math.round(sideValue)),defineProperty(_data$offsets$arrow,altSide,""),_data$offsets$arrow);return data}function getOppositeVariation(variation){if(variation==="end"){return"start"}else if(variation==="start"){return"end"}return variation}var placements=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"];var validPlacements=placements.slice(3);function clockwise(placement){var counter=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var index=validPlacements.indexOf(placement);var arr=validPlacements.slice(index+1).concat(validPlacements.slice(0,index));return counter?arr.reverse():arr}var BEHAVIORS={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function flip(data,options){if(isModifierEnabled(data.instance.modifiers,"inner")){return data}if(data.flipped&&data.placement===data.originalPlacement){return data}var boundaries=getBoundaries(data.instance.popper,data.instance.reference,options.padding,options.boundariesElement,data.positionFixed);var placement=data.placement.split("-")[0];var placementOpposite=getOppositePlacement(placement);var variation=data.placement.split("-")[1]||"";var flipOrder=[];switch(options.behavior){case BEHAVIORS.FLIP:flipOrder=[placement,placementOpposite];break;case BEHAVIORS.CLOCKWISE:flipOrder=clockwise(placement);break;case BEHAVIORS.COUNTERCLOCKWISE:flipOrder=clockwise(placement,true);break;default:flipOrder=options.behavior}flipOrder.forEach(function(step,index){if(placement!==step||flipOrder.length===index+1){return data}placement=data.placement.split("-")[0];placementOpposite=getOppositePlacement(placement);var popperOffsets=data.offsets.popper;var refOffsets=data.offsets.reference;var floor=Math.floor;var overlapsRef=placement==="left"&&floor(popperOffsets.right)>floor(refOffsets.left)||placement==="right"&&floor(popperOffsets.left)<floor(refOffsets.right)||placement==="top"&&floor(popperOffsets.bottom)>floor(refOffsets.top)||placement==="bottom"&&floor(popperOffsets.top)<floor(refOffsets.bottom);var overflowsLeft=floor(popperOffsets.left)<floor(boundaries.left);var overflowsRight=floor(popperOffsets.right)>floor(boundaries.right);var overflowsTop=floor(popperOffsets.top)<floor(boundaries.top);var overflowsBottom=floor(popperOffsets.bottom)>floor(boundaries.bottom);var overflowsBoundaries=placement==="left"&&overflowsLeft||placement==="right"&&overflowsRight||placement==="top"&&overflowsTop||placement==="bottom"&&overflowsBottom;var isVertical=["top","bottom"].indexOf(placement)!==-1;var flippedVariationByRef=!!options.flipVariations&&(isVertical&&variation==="start"&&overflowsLeft||isVertical&&variation==="end"&&overflowsRight||!isVertical&&variation==="start"&&overflowsTop||!isVertical&&variation==="end"&&overflowsBottom);var flippedVariationByContent=!!options.flipVariationsByContent&&(isVertical&&variation==="start"&&overflowsRight||isVertical&&variation==="end"&&overflowsLeft||!isVertical&&variation==="start"&&overflowsBottom||!isVertical&&variation==="end"&&overflowsTop);var flippedVariation=flippedVariationByRef||flippedVariationByContent;if(overlapsRef||overflowsBoundaries||flippedVariation){data.flipped=true;if(overlapsRef||overflowsBoundaries){placement=flipOrder[index+1]}if(flippedVariation){variation=getOppositeVariation(variation)}data.placement=placement+(variation?"-"+variation:"");data.offsets.popper=_extends$1({},data.offsets.popper,getPopperOffsets(data.instance.popper,data.offsets.reference,data.placement));data=runModifiers(data.instance.modifiers,data,"flip")}});return data}function keepTogether(data){var _data$offsets=data.offsets,popper=_data$offsets.popper,reference=_data$offsets.reference;var placement=data.placement.split("-")[0];var floor=Math.floor;var isVertical=["top","bottom"].indexOf(placement)!==-1;var side=isVertical?"right":"bottom";var opSide=isVertical?"left":"top";var measurement=isVertical?"width":"height";if(popper[side]<floor(reference[opSide])){data.offsets.popper[opSide]=floor(reference[opSide])-popper[measurement]}if(popper[opSide]>floor(reference[side])){data.offsets.popper[opSide]=floor(reference[side])}return data}function toValue(str,measurement,popperOffsets,referenceOffsets){var split=str.match(/((?:\-|\+)?\d*\.?\d*)(.*)/);var value=+split[1];var unit=split[2];if(!value){return str}if(unit.indexOf("%")===0){var element=void 0;switch(unit){case"%p":element=popperOffsets;break;case"%":case"%r":default:element=referenceOffsets}var rect=getClientRect(element);return rect[measurement]/100*value}else if(unit==="vh"||unit==="vw"){var size=void 0;if(unit==="vh"){size=Math.max(document.documentElement.clientHeight,window.innerHeight||0)}else{size=Math.max(document.documentElement.clientWidth,window.innerWidth||0)}return size/100*value}else{return value}}function parseOffset(offset,popperOffsets,referenceOffsets,basePlacement){var offsets=[0,0];var useHeight=["right","left"].indexOf(basePlacement)!==-1;var fragments=offset.split(/(\+|\-)/).map(function(frag){return frag.trim()});var divider=fragments.indexOf(find(fragments,function(frag){return frag.search(/,|\s/)!==-1}));if(fragments[divider]&&fragments[divider].indexOf(",")===-1){console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.")}var splitRegex=/\s*,\s*|\s+/;var ops=divider!==-1?[fragments.slice(0,divider).concat([fragments[divider].split(splitRegex)[0]]),[fragments[divider].split(splitRegex)[1]].concat(fragments.slice(divider+1))]:[fragments];ops=ops.map(function(op,index){var measurement=(index===1?!useHeight:useHeight)?"height":"width";var mergeWithPrevious=false;return op.reduce(function(a,b){if(a[a.length-1]===""&&["+","-"].indexOf(b)!==-1){a[a.length-1]=b;mergeWithPrevious=true;return a}else if(mergeWithPrevious){a[a.length-1]+=b;mergeWithPrevious=false;return a}else{return a.concat(b)}},[]).map(function(str){return toValue(str,measurement,popperOffsets,referenceOffsets)})});ops.forEach(function(op,index){op.forEach(function(frag,index2){if(isNumeric(frag)){offsets[index]+=frag*(op[index2-1]==="-"?-1:1)}})});return offsets}function offset(data,_ref){var offset=_ref.offset;var placement=data.placement,_data$offsets=data.offsets,popper=_data$offsets.popper,reference=_data$offsets.reference;var basePlacement=placement.split("-")[0];var offsets=void 0;if(isNumeric(+offset)){offsets=[+offset,0]}else{offsets=parseOffset(offset,popper,reference,basePlacement)}if(basePlacement==="left"){popper.top+=offsets[0];popper.left-=offsets[1]}else if(basePlacement==="right"){popper.top+=offsets[0];popper.left+=offsets[1]}else if(basePlacement==="top"){popper.left+=offsets[0];popper.top-=offsets[1]}else if(basePlacement==="bottom"){popper.left+=offsets[0];popper.top+=offsets[1]}data.popper=popper;return data}function preventOverflow(data,options){var boundariesElement=options.boundariesElement||getOffsetParent(data.instance.popper);if(data.instance.reference===boundariesElement){boundariesElement=getOffsetParent(boundariesElement)}var transformProp=getSupportedPropertyName("transform");var popperStyles=data.instance.popper.style;var top=popperStyles.top,left=popperStyles.left,transform=popperStyles[transformProp];popperStyles.top="";popperStyles.left="";popperStyles[transformProp]="";var boundaries=getBoundaries(data.instance.popper,data.instance.reference,options.padding,boundariesElement,data.positionFixed);popperStyles.top=top;popperStyles.left=left;popperStyles[transformProp]=transform;options.boundaries=boundaries;var order=options.priority;var popper=data.offsets.popper;var check={primary:function primary(placement){var value=popper[placement];if(popper[placement]<boundaries[placement]&&!options.escapeWithReference){value=Math.max(popper[placement],boundaries[placement])}return defineProperty({},placement,value)},secondary:function secondary(placement){var mainSide=placement==="right"?"left":"top";var value=popper[mainSide];if(popper[placement]>boundaries[placement]&&!options.escapeWithReference){value=Math.min(popper[mainSide],boundaries[placement]-(placement==="right"?popper.width:popper.height))}return defineProperty({},mainSide,value)}};order.forEach(function(placement){var side=["left","top"].indexOf(placement)!==-1?"primary":"secondary";popper=_extends$1({},popper,check[side](placement))});data.offsets.popper=popper;return data}function shift(data){var placement=data.placement;var basePlacement=placement.split("-")[0];var shiftvariation=placement.split("-")[1];if(shiftvariation){var _data$offsets=data.offsets,reference=_data$offsets.reference,popper=_data$offsets.popper;var isVertical=["bottom","top"].indexOf(basePlacement)!==-1;var side=isVertical?"left":"top";var measurement=isVertical?"width":"height";var shiftOffsets={start:defineProperty({},side,reference[side]),end:defineProperty({},side,reference[side]+reference[measurement]-popper[measurement])};data.offsets.popper=_extends$1({},popper,shiftOffsets[shiftvariation])}return data}function hide(data){if(!isModifierRequired(data.instance.modifiers,"hide","preventOverflow")){return data}var refRect=data.offsets.reference;var bound=find(data.instance.modifiers,function(modifier){return modifier.name==="preventOverflow"}).boundaries;if(refRect.bottom<bound.top||refRect.left>bound.right||refRect.top>bound.bottom||refRect.right<bound.left){if(data.hide===true){return data}data.hide=true;data.attributes["x-out-of-boundaries"]=""}else{if(data.hide===false){return data}data.hide=false;data.attributes["x-out-of-boundaries"]=false}return data}function inner(data){var placement=data.placement;var basePlacement=placement.split("-")[0];var _data$offsets=data.offsets,popper=_data$offsets.popper,reference=_data$offsets.reference;var isHoriz=["left","right"].indexOf(basePlacement)!==-1;var subtractLength=["top","left"].indexOf(basePlacement)===-1;popper[isHoriz?"left":"top"]=reference[basePlacement]-(subtractLength?popper[isHoriz?"width":"height"]:0);data.placement=getOppositePlacement(placement);data.offsets.popper=getClientRect(popper);return data}var modifiers={shift:{order:100,enabled:true,fn:shift},offset:{order:200,enabled:true,fn:offset,offset:0},preventOverflow:{order:300,enabled:true,fn:preventOverflow,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:true,fn:keepTogether},arrow:{order:500,enabled:true,fn:arrow,element:"[x-arrow]"},flip:{order:600,enabled:true,fn:flip,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:false,flipVariationsByContent:false},inner:{order:700,enabled:false,fn:inner},hide:{order:800,enabled:true,fn:hide},computeStyle:{order:850,enabled:true,fn:computeStyle,gpuAcceleration:true,x:"bottom",y:"right"},applyStyle:{order:900,enabled:true,fn:applyStyle,onLoad:applyStyleOnLoad,gpuAcceleration:undefined}};var Defaults={placement:"bottom",positionFixed:false,eventsEnabled:true,removeOnDestroy:false,onCreate:function onCreate(){},onUpdate:function onUpdate(){},modifiers:modifiers};var Popper=function(){function Popper(reference,popper){var _this=this;var options=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};classCallCheck(this,Popper);this.scheduleUpdate=function(){return requestAnimationFrame(_this.update)};this.update=debounce(this.update.bind(this));this.options=_extends$1({},Popper.Defaults,options);this.state={isDestroyed:false,isCreated:false,scrollParents:[]};this.reference=reference&&reference.jquery?reference[0]:reference;this.popper=popper&&popper.jquery?popper[0]:popper;this.options.modifiers={};Object.keys(_extends$1({},Popper.Defaults.modifiers,options.modifiers)).forEach(function(name){_this.options.modifiers[name]=_extends$1({},Popper.Defaults.modifiers[name]||{},options.modifiers?options.modifiers[name]:{})});this.modifiers=Object.keys(this.options.modifiers).map(function(name){return _extends$1({name:name},_this.options.modifiers[name])}).sort(function(a,b){return a.order-b.order});this.modifiers.forEach(function(modifierOptions){if(modifierOptions.enabled&&isFunction(modifierOptions.onLoad)){modifierOptions.onLoad(_this.reference,_this.popper,_this.options,modifierOptions,_this.state)}});this.update();var eventsEnabled=this.options.eventsEnabled;if(eventsEnabled){this.enableEventListeners()}this.state.eventsEnabled=eventsEnabled}createClass(Popper,[{key:"update",value:function update$$1(){return update.call(this)}},{key:"destroy",value:function destroy$$1(){return destroy.call(this)}},{key:"enableEventListeners",value:function enableEventListeners$$1(){return enableEventListeners.call(this)}},{key:"disableEventListeners",value:function disableEventListeners$$1(){return disableEventListeners.call(this)}}]);return Popper}();Popper.Utils=(typeof window!=="undefined"?window:global).PopperUtils;Popper.placements=placements;Popper.Defaults=Defaults;var NAME$4="dropdown";var VERSION$4="4.6.0";var DATA_KEY$4="bs.dropdown";var EVENT_KEY$4="."+DATA_KEY$4;var DATA_API_KEY$4=".data-api";var JQUERY_NO_CONFLICT$4=$__default["default"].fn[NAME$4];var ESCAPE_KEYCODE=27;var SPACE_KEYCODE=32;var TAB_KEYCODE=9;var ARROW_UP_KEYCODE=38;var ARROW_DOWN_KEYCODE=40;var RIGHT_MOUSE_BUTTON_WHICH=3;var REGEXP_KEYDOWN=new RegExp(ARROW_UP_KEYCODE+"|"+ARROW_DOWN_KEYCODE+"|"+ESCAPE_KEYCODE);var EVENT_HIDE$1="hide"+EVENT_KEY$4;var EVENT_HIDDEN$1="hidden"+EVENT_KEY$4;var EVENT_SHOW$1="show"+EVENT_KEY$4;var EVENT_SHOWN$1="shown"+EVENT_KEY$4;var EVENT_CLICK="click"+EVENT_KEY$4;var EVENT_CLICK_DATA_API$4="click"+EVENT_KEY$4+DATA_API_KEY$4;var EVENT_KEYDOWN_DATA_API="keydown"+EVENT_KEY$4+DATA_API_KEY$4;var EVENT_KEYUP_DATA_API="keyup"+EVENT_KEY$4+DATA_API_KEY$4;var CLASS_NAME_DISABLED="disabled";var CLASS_NAME_SHOW$2="show";var CLASS_NAME_DROPUP="dropup";var CLASS_NAME_DROPRIGHT="dropright";var CLASS_NAME_DROPLEFT="dropleft";var CLASS_NAME_MENURIGHT="dropdown-menu-right";var CLASS_NAME_POSITION_STATIC="position-static";var SELECTOR_DATA_TOGGLE$2='[data-toggle="dropdown"]';var SELECTOR_FORM_CHILD=".dropdown form";var SELECTOR_MENU=".dropdown-menu";var SELECTOR_NAVBAR_NAV=".navbar-nav";var SELECTOR_VISIBLE_ITEMS=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)";var PLACEMENT_TOP="top-start";var PLACEMENT_TOPEND="top-end";var PLACEMENT_BOTTOM="bottom-start";var PLACEMENT_BOTTOMEND="bottom-end";var PLACEMENT_RIGHT="right-start";var PLACEMENT_LEFT="left-start";var Default$2={offset:0,flip:true,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null};var DefaultType$2={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"};var Dropdown=function(){function Dropdown(element,config){this._element=element;this._popper=null;this._config=this._getConfig(config);this._menu=this._getMenuElement();this._inNavbar=this._detectNavbar();this._addEventListeners()}var _proto=Dropdown.prototype;_proto.toggle=function toggle(){if(this._element.disabled||$__default["default"](this._element).hasClass(CLASS_NAME_DISABLED)){return}var isActive=$__default["default"](this._menu).hasClass(CLASS_NAME_SHOW$2);Dropdown._clearMenus();if(isActive){return}this.show(true)};_proto.show=function show(usePopper){if(usePopper===void 0){usePopper=false}if(this._element.disabled||$__default["default"](this._element).hasClass(CLASS_NAME_DISABLED)||$__default["default"](this._menu).hasClass(CLASS_NAME_SHOW$2)){return}var relatedTarget={relatedTarget:this._element};var showEvent=$__default["default"].Event(EVENT_SHOW$1,relatedTarget);var parent=Dropdown._getParentFromElement(this._element);$__default["default"](parent).trigger(showEvent);if(showEvent.isDefaultPrevented()){return}if(!this._inNavbar&&usePopper){if(typeof Popper==="undefined"){throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)")}var referenceElement=this._element;if(this._config.reference==="parent"){referenceElement=parent}else if(Util.isElement(this._config.reference)){referenceElement=this._config.reference;if(typeof this._config.reference.jquery!=="undefined"){referenceElement=this._config.reference[0]}}if(this._config.boundary!=="scrollParent"){$__default["default"](parent).addClass(CLASS_NAME_POSITION_STATIC)}this._popper=new Popper(referenceElement,this._menu,this._getPopperConfig())}if("ontouchstart"in document.documentElement&&$__default["default"](parent).closest(SELECTOR_NAVBAR_NAV).length===0){$__default["default"](document.body).children().on("mouseover",null,$__default["default"].noop)}this._element.focus();this._element.setAttribute("aria-expanded",true);$__default["default"](this._menu).toggleClass(CLASS_NAME_SHOW$2);$__default["default"](parent).toggleClass(CLASS_NAME_SHOW$2).trigger($__default["default"].Event(EVENT_SHOWN$1,relatedTarget))};_proto.hide=function hide(){if(this._element.disabled||$__default["default"](this._element).hasClass(CLASS_NAME_DISABLED)||!$__default["default"](this._menu).hasClass(CLASS_NAME_SHOW$2)){return}var relatedTarget={relatedTarget:this._element};var hideEvent=$__default["default"].Event(EVENT_HIDE$1,relatedTarget);var parent=Dropdown._getParentFromElement(this._element);$__default["default"](parent).trigger(hideEvent);if(hideEvent.isDefaultPrevented()){return}if(this._popper){this._popper.destroy()}$__default["default"](this._menu).toggleClass(CLASS_NAME_SHOW$2);$__default["default"](parent).toggleClass(CLASS_NAME_SHOW$2).trigger($__default["default"].Event(EVENT_HIDDEN$1,relatedTarget))};_proto.dispose=function dispose(){$__default["default"].removeData(this._element,DATA_KEY$4);$__default["default"](this._element).off(EVENT_KEY$4);this._element=null;this._menu=null;if(this._popper!==null){this._popper.destroy();this._popper=null}};_proto.update=function update(){this._inNavbar=this._detectNavbar();if(this._popper!==null){this._popper.scheduleUpdate()}};_proto._addEventListeners=function _addEventListeners(){var _this=this;$__default["default"](this._element).on(EVENT_CLICK,function(event){event.preventDefault();event.stopPropagation();_this.toggle()})};_proto._getConfig=function _getConfig(config){config=_extends({},this.constructor.Default,$__default["default"](this._element).data(),config);Util.typeCheckConfig(NAME$4,config,this.constructor.DefaultType);return config};_proto._getMenuElement=function _getMenuElement(){if(!this._menu){var parent=Dropdown._getParentFromElement(this._element);if(parent){this._menu=parent.querySelector(SELECTOR_MENU)}}return this._menu};_proto._getPlacement=function _getPlacement(){var $parentDropdown=$__default["default"](this._element.parentNode);var placement=PLACEMENT_BOTTOM;if($parentDropdown.hasClass(CLASS_NAME_DROPUP)){placement=$__default["default"](this._menu).hasClass(CLASS_NAME_MENURIGHT)?PLACEMENT_TOPEND:PLACEMENT_TOP}else if($parentDropdown.hasClass(CLASS_NAME_DROPRIGHT)){placement=PLACEMENT_RIGHT}else if($parentDropdown.hasClass(CLASS_NAME_DROPLEFT)){placement=PLACEMENT_LEFT}else if($__default["default"](this._menu).hasClass(CLASS_NAME_MENURIGHT)){placement=PLACEMENT_BOTTOMEND}return placement};_proto._detectNavbar=function _detectNavbar(){return $__default["default"](this._element).closest(".navbar").length>0};_proto._getOffset=function _getOffset(){var _this2=this;var offset={};if(typeof this._config.offset==="function"){offset.fn=function(data){data.offsets=_extends({},data.offsets,_this2._config.offset(data.offsets,_this2._element)||{});return data}}else{offset.offset=this._config.offset}return offset};_proto._getPopperConfig=function _getPopperConfig(){var popperConfig={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};if(this._config.display==="static"){popperConfig.modifiers.applyStyle={enabled:false}}return _extends({},popperConfig,this._config.popperConfig)};Dropdown._jQueryInterface=function _jQueryInterface(config){return this.each(function(){var data=$__default["default"](this).data(DATA_KEY$4);var _config=typeof config==="object"?config:null;if(!data){data=new Dropdown(this,_config);$__default["default"](this).data(DATA_KEY$4,data)}if(typeof config==="string"){if(typeof data[config]==="undefined"){throw new TypeError('No method named "'+config+'"')}data[config]()}})};Dropdown._clearMenus=function _clearMenus(event){if(event&&(event.which===RIGHT_MOUSE_BUTTON_WHICH||event.type==="keyup"&&event.which!==TAB_KEYCODE)){return}var toggles=[].slice.call(document.querySelectorAll(SELECTOR_DATA_TOGGLE$2));for(var i=0,len=toggles.length;i<len;i++){var parent=Dropdown._getParentFromElement(toggles[i]);var context=$__default["default"](toggles[i]).data(DATA_KEY$4);var relatedTarget={relatedTarget:toggles[i]};if(event&&event.type==="click"){relatedTarget.clickEvent=event}if(!context){continue}var dropdownMenu=context._menu;if(!$__default["default"](parent).hasClass(CLASS_NAME_SHOW$2)){continue}if(event&&(event.type==="click"&&/input|textarea/i.test(event.target.tagName)||event.type==="keyup"&&event.which===TAB_KEYCODE)&&$__default["default"].contains(parent,event.target)){continue}var hideEvent=$__default["default"].Event(EVENT_HIDE$1,relatedTarget);$__default["default"](parent).trigger(hideEvent);if(hideEvent.isDefaultPrevented()){continue}if("ontouchstart"in document.documentElement){$__default["default"](document.body).children().off("mouseover",null,$__default["default"].noop)}toggles[i].setAttribute("aria-expanded","false");if(context._popper){context._popper.destroy()}$__default["default"](dropdownMenu).removeClass(CLASS_NAME_SHOW$2);$__default["default"](parent).removeClass(CLASS_NAME_SHOW$2).trigger($__default["default"].Event(EVENT_HIDDEN$1,relatedTarget))}};Dropdown._getParentFromElement=function _getParentFromElement(element){var parent;var selector=Util.getSelectorFromElement(element);if(selector){parent=document.querySelector(selector)}return parent||element.parentNode};Dropdown._dataApiKeydownHandler=function _dataApiKeydownHandler(event){if(/input|textarea/i.test(event.target.tagName)?event.which===SPACE_KEYCODE||event.which!==ESCAPE_KEYCODE&&(event.which!==ARROW_DOWN_KEYCODE&&event.which!==ARROW_UP_KEYCODE||$__default["default"](event.target).closest(SELECTOR_MENU).length):!REGEXP_KEYDOWN.test(event.which)){return}if(this.disabled||$__default["default"](this).hasClass(CLASS_NAME_DISABLED)){return}var parent=Dropdown._getParentFromElement(this);var isActive=$__default["default"](parent).hasClass(CLASS_NAME_SHOW$2);if(!isActive&&event.which===ESCAPE_KEYCODE){return}event.preventDefault();event.stopPropagation();if(!isActive||event.which===ESCAPE_KEYCODE||event.which===SPACE_KEYCODE){if(event.which===ESCAPE_KEYCODE){$__default["default"](parent.querySelector(SELECTOR_DATA_TOGGLE$2)).trigger("focus")}$__default["default"](this).trigger("click");return}var items=[].slice.call(parent.querySelectorAll(SELECTOR_VISIBLE_ITEMS)).filter(function(item){return $__default["default"](item).is(":visible")});if(items.length===0){return}var index=items.indexOf(event.target);if(event.which===ARROW_UP_KEYCODE&&index>0){index--}if(event.which===ARROW_DOWN_KEYCODE&&index<items.length-1){index++}if(index<0){index=0}items[index].focus()};_createClass(Dropdown,null,[{key:"VERSION",get:function get(){return VERSION$4}},{key:"Default",get:function get(){return Default$2}},{key:"DefaultType",get:function get(){return DefaultType$2}}]);return Dropdown}();$__default["default"](document).on(EVENT_KEYDOWN_DATA_API,SELECTOR_DATA_TOGGLE$2,Dropdown._dataApiKeydownHandler).on(EVENT_KEYDOWN_DATA_API,SELECTOR_MENU,Dropdown._dataApiKeydownHandler).on(EVENT_CLICK_DATA_API$4+" "+EVENT_KEYUP_DATA_API,Dropdown._clearMenus).on(EVENT_CLICK_DATA_API$4,SELECTOR_DATA_TOGGLE$2,function(event){event.preventDefault();event.stopPropagation();Dropdown._jQueryInterface.call($__default["default"](this),"toggle")}).on(EVENT_CLICK_DATA_API$4,SELECTOR_FORM_CHILD,function(e){e.stopPropagation()});$__default["default"].fn[NAME$4]=Dropdown._jQueryInterface;$__default["default"].fn[NAME$4].Constructor=Dropdown;$__default["default"].fn[NAME$4].noConflict=function(){$__default["default"].fn[NAME$4]=JQUERY_NO_CONFLICT$4;return Dropdown._jQueryInterface};var NAME$5="modal";var VERSION$5="4.6.0";var DATA_KEY$5="bs.modal";var EVENT_KEY$5="."+DATA_KEY$5;var DATA_API_KEY$5=".data-api";var JQUERY_NO_CONFLICT$5=$__default["default"].fn[NAME$5];var ESCAPE_KEYCODE$1=27;var Default$3={backdrop:true,keyboard:true,focus:true,show:true};var DefaultType$3={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"};var EVENT_HIDE$2="hide"+EVENT_KEY$5;var EVENT_HIDE_PREVENTED="hidePrevented"+EVENT_KEY$5;var EVENT_HIDDEN$2="hidden"+EVENT_KEY$5;var EVENT_SHOW$2="show"+EVENT_KEY$5;var EVENT_SHOWN$2="shown"+EVENT_KEY$5;var EVENT_FOCUSIN="focusin"+EVENT_KEY$5;var EVENT_RESIZE="resize"+EVENT_KEY$5;var EVENT_CLICK_DISMISS="click.dismiss"+EVENT_KEY$5;var EVENT_KEYDOWN_DISMISS="keydown.dismiss"+EVENT_KEY$5;var EVENT_MOUSEUP_DISMISS="mouseup.dismiss"+EVENT_KEY$5;var EVENT_MOUSEDOWN_DISMISS="mousedown.dismiss"+EVENT_KEY$5;var EVENT_CLICK_DATA_API$5="click"+EVENT_KEY$5+DATA_API_KEY$5;var CLASS_NAME_SCROLLABLE="modal-dialog-scrollable";var CLASS_NAME_SCROLLBAR_MEASURER="modal-scrollbar-measure";var CLASS_NAME_BACKDROP="modal-backdrop";var CLASS_NAME_OPEN="modal-open";var CLASS_NAME_FADE$1="fade";var CLASS_NAME_SHOW$3="show";var CLASS_NAME_STATIC="modal-static";var SELECTOR_DIALOG=".modal-dialog";var SELECTOR_MODAL_BODY=".modal-body";var SELECTOR_DATA_TOGGLE$3='[data-toggle="modal"]';var SELECTOR_DATA_DISMISS='[data-dismiss="modal"]';var SELECTOR_FIXED_CONTENT=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top";var SELECTOR_STICKY_CONTENT=".sticky-top";var Modal=function(){function Modal(element,config){this._config=this._getConfig(config);this._element=element;this._dialog=element.querySelector(SELECTOR_DIALOG);this._backdrop=null;this._isShown=false;this._isBodyOverflowing=false;this._ignoreBackdropClick=false;this._isTransitioning=false;this._scrollbarWidth=0}var _proto=Modal.prototype;_proto.toggle=function toggle(relatedTarget){return this._isShown?this.hide():this.show(relatedTarget)};_proto.show=function show(relatedTarget){var _this=this;if(this._isShown||this._isTransitioning){return}if($__default["default"](this._element).hasClass(CLASS_NAME_FADE$1)){this._isTransitioning=true}var showEvent=$__default["default"].Event(EVENT_SHOW$2,{relatedTarget:relatedTarget});$__default["default"](this._element).trigger(showEvent);if(this._isShown||showEvent.isDefaultPrevented()){return}this._isShown=true;this._checkScrollbar();this._setScrollbar();this._adjustDialog();this._setEscapeEvent();this._setResizeEvent();$__default["default"](this._element).on(EVENT_CLICK_DISMISS,SELECTOR_DATA_DISMISS,function(event){return _this.hide(event)});$__default["default"](this._dialog).on(EVENT_MOUSEDOWN_DISMISS,function(){$__default["default"](_this._element).one(EVENT_MOUSEUP_DISMISS,function(event){if($__default["default"](event.target).is(_this._element)){_this._ignoreBackdropClick=true}})});this._showBackdrop(function(){return _this._showElement(relatedTarget)})};_proto.hide=function hide(event){var _this2=this;if(event){event.preventDefault()}if(!this._isShown||this._isTransitioning){return}var hideEvent=$__default["default"].Event(EVENT_HIDE$2);$__default["default"](this._element).trigger(hideEvent);if(!this._isShown||hideEvent.isDefaultPrevented()){return}this._isShown=false;var transition=$__default["default"](this._element).hasClass(CLASS_NAME_FADE$1);if(transition){this._isTransitioning=true}this._setEscapeEvent();this._setResizeEvent();$__default["default"](document).off(EVENT_FOCUSIN);$__default["default"](this._element).removeClass(CLASS_NAME_SHOW$3);$__default["default"](this._element).off(EVENT_CLICK_DISMISS);$__default["default"](this._dialog).off(EVENT_MOUSEDOWN_DISMISS);if(transition){var transitionDuration=Util.getTransitionDurationFromElement(this._element);$__default["default"](this._element).one(Util.TRANSITION_END,function(event){return _this2._hideModal(event)}).emulateTransitionEnd(transitionDuration)}else{this._hideModal()}};_proto.dispose=function dispose(){[window,this._element,this._dialog].forEach(function(htmlElement){return $__default["default"](htmlElement).off(EVENT_KEY$5)});$__default["default"](document).off(EVENT_FOCUSIN);$__default["default"].removeData(this._element,DATA_KEY$5);this._config=null;this._element=null;this._dialog=null;this._backdrop=null;this._isShown=null;this._isBodyOverflowing=null;this._ignoreBackdropClick=null;this._isTransitioning=null;this._scrollbarWidth=null};_proto.handleUpdate=function handleUpdate(){this._adjustDialog()};_proto._getConfig=function _getConfig(config){config=_extends({},Default$3,config);Util.typeCheckConfig(NAME$5,config,DefaultType$3);return config};_proto._triggerBackdropTransition=function _triggerBackdropTransition(){var _this3=this;var hideEventPrevented=$__default["default"].Event(EVENT_HIDE_PREVENTED);$__default["default"](this._element).trigger(hideEventPrevented);if(hideEventPrevented.isDefaultPrevented()){return}var isModalOverflowing=this._element.scrollHeight>document.documentElement.clientHeight;if(!isModalOverflowing){this._element.style.overflowY="hidden"}this._element.classList.add(CLASS_NAME_STATIC);var modalTransitionDuration=Util.getTransitionDurationFromElement(this._dialog);$__default["default"](this._element).off(Util.TRANSITION_END);$__default["default"](this._element).one(Util.TRANSITION_END,function(){_this3._element.classList.remove(CLASS_NAME_STATIC);if(!isModalOverflowing){$__default["default"](_this3._element).one(Util.TRANSITION_END,function(){_this3._element.style.overflowY=""}).emulateTransitionEnd(_this3._element,modalTransitionDuration)}}).emulateTransitionEnd(modalTransitionDuration);this._element.focus()};_proto._showElement=function _showElement(relatedTarget){var _this4=this;var transition=$__default["default"](this._element).hasClass(CLASS_NAME_FADE$1);var modalBody=this._dialog?this._dialog.querySelector(SELECTOR_MODAL_BODY):null;if(!this._element.parentNode||this._element.parentNode.nodeType!==Node.ELEMENT_NODE){document.body.appendChild(this._element)}this._element.style.display="block";this._element.removeAttribute("aria-hidden");this._element.setAttribute("aria-modal",true);this._element.setAttribute("role","dialog");if($__default["default"](this._dialog).hasClass(CLASS_NAME_SCROLLABLE)&&modalBody){modalBody.scrollTop=0}else{this._element.scrollTop=0}if(transition){Util.reflow(this._element)}$__default["default"](this._element).addClass(CLASS_NAME_SHOW$3);if(this._config.focus){this._enforceFocus()}var shownEvent=$__default["default"].Event(EVENT_SHOWN$2,{relatedTarget:relatedTarget});var transitionComplete=function transitionComplete(){if(_this4._config.focus){_this4._element.focus()}_this4._isTransitioning=false;$__default["default"](_this4._element).trigger(shownEvent)};if(transition){var transitionDuration=Util.getTransitionDurationFromElement(this._dialog);$__default["default"](this._dialog).one(Util.TRANSITION_END,transitionComplete).emulateTransitionEnd(transitionDuration)}else{transitionComplete()}};_proto._enforceFocus=function _enforceFocus(){var _this5=this;$__default["default"](document).off(EVENT_FOCUSIN).on(EVENT_FOCUSIN,function(event){if(document!==event.target&&_this5._element!==event.target&&$__default["default"](_this5._element).has(event.target).length===0){_this5._element.focus()}})};_proto._setEscapeEvent=function _setEscapeEvent(){var _this6=this;if(this._isShown){$__default["default"](this._element).on(EVENT_KEYDOWN_DISMISS,function(event){if(_this6._config.keyboard&&event.which===ESCAPE_KEYCODE$1){event.preventDefault();_this6.hide()}else if(!_this6._config.keyboard&&event.which===ESCAPE_KEYCODE$1){_this6._triggerBackdropTransition()}})}else if(!this._isShown){$__default["default"](this._element).off(EVENT_KEYDOWN_DISMISS)}};_proto._setResizeEvent=function _setResizeEvent(){var _this7=this;if(this._isShown){$__default["default"](window).on(EVENT_RESIZE,function(event){return _this7.handleUpdate(event)})}else{$__default["default"](window).off(EVENT_RESIZE)}};_proto._hideModal=function _hideModal(){var _this8=this;this._element.style.display="none";this._element.setAttribute("aria-hidden",true);this._element.removeAttribute("aria-modal");this._element.removeAttribute("role");this._isTransitioning=false;this._showBackdrop(function(){$__default["default"](document.body).removeClass(CLASS_NAME_OPEN);_this8._resetAdjustments();_this8._resetScrollbar();$__default["default"](_this8._element).trigger(EVENT_HIDDEN$2)})};_proto._removeBackdrop=function _removeBackdrop(){if(this._backdrop){$__default["default"](this._backdrop).remove();this._backdrop=null}};_proto._showBackdrop=function _showBackdrop(callback){var _this9=this;var animate=$__default["default"](this._element).hasClass(CLASS_NAME_FADE$1)?CLASS_NAME_FADE$1:"";if(this._isShown&&this._config.backdrop){this._backdrop=document.createElement("div");this._backdrop.className=CLASS_NAME_BACKDROP;if(animate){this._backdrop.classList.add(animate)}$__default["default"](this._backdrop).appendTo(document.body);$__default["default"](this._element).on(EVENT_CLICK_DISMISS,function(event){if(_this9._ignoreBackdropClick){_this9._ignoreBackdropClick=false;return}if(event.target!==event.currentTarget){return}if(_this9._config.backdrop==="static"){_this9._triggerBackdropTransition()}else{_this9.hide()}});if(animate){Util.reflow(this._backdrop)}$__default["default"](this._backdrop).addClass(CLASS_NAME_SHOW$3);if(!callback){return}if(!animate){callback();return}var backdropTransitionDuration=Util.getTransitionDurationFromElement(this._backdrop);$__default["default"](this._backdrop).one(Util.TRANSITION_END,callback).emulateTransitionEnd(backdropTransitionDuration)}else if(!this._isShown&&this._backdrop){$__default["default"](this._backdrop).removeClass(CLASS_NAME_SHOW$3);var callbackRemove=function callbackRemove(){_this9._removeBackdrop();if(callback){callback()}};if($__default["default"](this._element).hasClass(CLASS_NAME_FADE$1)){var _backdropTransitionDuration=Util.getTransitionDurationFromElement(this._backdrop);$__default["default"](this._backdrop).one(Util.TRANSITION_END,callbackRemove).emulateTransitionEnd(_backdropTransitionDuration)}else{callbackRemove()}}else if(callback){callback()}};_proto._adjustDialog=function _adjustDialog(){var isModalOverflowing=this._element.scrollHeight>document.documentElement.clientHeight;if(!this._isBodyOverflowing&&isModalOverflowing){this._element.style.paddingLeft=this._scrollbarWidth+"px"}if(this._isBodyOverflowing&&!isModalOverflowing){this._element.style.paddingRight=this._scrollbarWidth+"px"}};_proto._resetAdjustments=function _resetAdjustments(){this._element.style.paddingLeft="";this._element.style.paddingRight=""};_proto._checkScrollbar=function _checkScrollbar(){var rect=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(rect.left+rect.right)<window.innerWidth;this._scrollbarWidth=this._getScrollbarWidth()};_proto._setScrollbar=function _setScrollbar(){var _this10=this;if(this._isBodyOverflowing){var fixedContent=[].slice.call(document.querySelectorAll(SELECTOR_FIXED_CONTENT));var stickyContent=[].slice.call(document.querySelectorAll(SELECTOR_STICKY_CONTENT));$__default["default"](fixedContent).each(function(index,element){var actualPadding=element.style.paddingRight;var calculatedPadding=$__default["default"](element).css("padding-right");$__default["default"](element).data("padding-right",actualPadding).css("padding-right",parseFloat(calculatedPadding)+_this10._scrollbarWidth+"px")});$__default["default"](stickyContent).each(function(index,element){var actualMargin=element.style.marginRight;var calculatedMargin=$__default["default"](element).css("margin-right");$__default["default"](element).data("margin-right",actualMargin).css("margin-right",parseFloat(calculatedMargin)-_this10._scrollbarWidth+"px")});var actualPadding=document.body.style.paddingRight;var calculatedPadding=$__default["default"](document.body).css("padding-right");$__default["default"](document.body).data("padding-right",actualPadding).css("padding-right",parseFloat(calculatedPadding)+this._scrollbarWidth+"px")}$__default["default"](document.body).addClass(CLASS_NAME_OPEN)};_proto._resetScrollbar=function _resetScrollbar(){var fixedContent=[].slice.call(document.querySelectorAll(SELECTOR_FIXED_CONTENT));$__default["default"](fixedContent).each(function(index,element){var padding=$__default["default"](element).data("padding-right");$__default["default"](element).removeData("padding-right");element.style.paddingRight=padding?padding:""});var elements=[].slice.call(document.querySelectorAll(""+SELECTOR_STICKY_CONTENT));$__default["default"](elements).each(function(index,element){var margin=$__default["default"](element).data("margin-right");if(typeof margin!=="undefined"){$__default["default"](element).css("margin-right",margin).removeData("margin-right")}});var padding=$__default["default"](document.body).data("padding-right");$__default["default"](document.body).removeData("padding-right");document.body.style.paddingRight=padding?padding:""};_proto._getScrollbarWidth=function _getScrollbarWidth(){var scrollDiv=document.createElement("div");scrollDiv.className=CLASS_NAME_SCROLLBAR_MEASURER;document.body.appendChild(scrollDiv);var scrollbarWidth=scrollDiv.getBoundingClientRect().width-scrollDiv.clientWidth;document.body.removeChild(scrollDiv);return scrollbarWidth};Modal._jQueryInterface=function _jQueryInterface(config,relatedTarget){return this.each(function(){var data=$__default["default"](this).data(DATA_KEY$5);var _config=_extends({},Default$3,$__default["default"](this).data(),typeof config==="object"&&config?config:{});if(!data){data=new Modal(this,_config);$__default["default"](this).data(DATA_KEY$5,data)}if(typeof config==="string"){if(typeof data[config]==="undefined"){throw new TypeError('No method named "'+config+'"')}data[config](relatedTarget)}else if(_config.show){data.show(relatedTarget)}})};_createClass(Modal,null,[{key:"VERSION",get:function get(){return VERSION$5}},{key:"Default",get:function get(){return Default$3}}]);return Modal}();$__default["default"](document).on(EVENT_CLICK_DATA_API$5,SELECTOR_DATA_TOGGLE$3,function(event){var _this11=this;var target;var selector=Util.getSelectorFromElement(this);if(selector){target=document.querySelector(selector)}var config=$__default["default"](target).data(DATA_KEY$5)?"toggle":_extends({},$__default["default"](target).data(),$__default["default"](this).data());if(this.tagName==="A"||this.tagName==="AREA"){event.preventDefault()}var $target=$__default["default"](target).one(EVENT_SHOW$2,function(showEvent){if(showEvent.isDefaultPrevented()){return}$target.one(EVENT_HIDDEN$2,function(){if($__default["default"](_this11).is(":visible")){_this11.focus()}})});Modal._jQueryInterface.call($__default["default"](target),config,this)});$__default["default"].fn[NAME$5]=Modal._jQueryInterface;$__default["default"].fn[NAME$5].Constructor=Modal;$__default["default"].fn[NAME$5].noConflict=function(){$__default["default"].fn[NAME$5]=JQUERY_NO_CONFLICT$5;return Modal._jQueryInterface};var uriAttrs=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"];var ARIA_ATTRIBUTE_PATTERN=/^aria-[\w-]*$/i;var DefaultWhitelist={"*":["class","dir","id","lang","role",ARIA_ATTRIBUTE_PATTERN],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]};var SAFE_URL_PATTERN=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/gi;var DATA_URL_PATTERN=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;function allowedAttribute(attr,allowedAttributeList){var attrName=attr.nodeName.toLowerCase();if(allowedAttributeList.indexOf(attrName)!==-1){if(uriAttrs.indexOf(attrName)!==-1){return Boolean(attr.nodeValue.match(SAFE_URL_PATTERN)||attr.nodeValue.match(DATA_URL_PATTERN))}return true}var regExp=allowedAttributeList.filter(function(attrRegex){return attrRegex instanceof RegExp});for(var i=0,len=regExp.length;i<len;i++){if(attrName.match(regExp[i])){return true}}return false}function sanitizeHtml(unsafeHtml,whiteList,sanitizeFn){if(unsafeHtml.length===0){return unsafeHtml}if(sanitizeFn&&typeof sanitizeFn==="function"){return sanitizeFn(unsafeHtml)}var domParser=new window.DOMParser;var createdDocument=domParser.parseFromString(unsafeHtml,"text/html");var whitelistKeys=Object.keys(whiteList);var elements=[].slice.call(createdDocument.body.querySelectorAll("*"));var _loop=function _loop(i,len){var el=elements[i];var elName=el.nodeName.toLowerCase();if(whitelistKeys.indexOf(el.nodeName.toLowerCase())===-1){el.parentNode.removeChild(el);return"continue"}var attributeList=[].slice.call(el.attributes);var whitelistedAttributes=[].concat(whiteList["*"]||[],whiteList[elName]||[]);attributeList.forEach(function(attr){if(!allowedAttribute(attr,whitelistedAttributes)){el.removeAttribute(attr.nodeName)}})};for(var i=0,len=elements.length;i<len;i++){var _ret=_loop(i);if(_ret==="continue")continue}return createdDocument.body.innerHTML}var NAME$6="tooltip";var VERSION$6="4.6.0";var DATA_KEY$6="bs.tooltip";var EVENT_KEY$6="."+DATA_KEY$6;var JQUERY_NO_CONFLICT$6=$__default["default"].fn[NAME$6];var CLASS_PREFIX="bs-tooltip";var BSCLS_PREFIX_REGEX=new RegExp("(^|\\s)"+CLASS_PREFIX+"\\S+","g");var DISALLOWED_ATTRIBUTES=["sanitize","whiteList","sanitizeFn"];var DefaultType$4={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"};var AttachmentMap={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"};var Default$4={animation:true,template:'<div class="tooltip" role="tooltip">'+'<div class="arrow"></div>'+'<div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:false,selector:false,placement:"top",offset:0,container:false,fallbackPlacement:"flip",boundary:"scrollParent",customClass:"",sanitize:true,sanitizeFn:null,whiteList:DefaultWhitelist,popperConfig:null};var HOVER_STATE_SHOW="show";var HOVER_STATE_OUT="out";var Event={HIDE:"hide"+EVENT_KEY$6,HIDDEN:"hidden"+EVENT_KEY$6,SHOW:"show"+EVENT_KEY$6,SHOWN:"shown"+EVENT_KEY$6,INSERTED:"inserted"+EVENT_KEY$6,CLICK:"click"+EVENT_KEY$6,FOCUSIN:"focusin"+EVENT_KEY$6,FOCUSOUT:"focusout"+EVENT_KEY$6,MOUSEENTER:"mouseenter"+EVENT_KEY$6,MOUSELEAVE:"mouseleave"+EVENT_KEY$6};var CLASS_NAME_FADE$2="fade";var CLASS_NAME_SHOW$4="show";var SELECTOR_TOOLTIP_INNER=".tooltip-inner";var SELECTOR_ARROW=".arrow";var TRIGGER_HOVER="hover";var TRIGGER_FOCUS="focus";var TRIGGER_CLICK="click";var TRIGGER_MANUAL="manual";var Tooltip=function(){function Tooltip(element,config){if(typeof Popper==="undefined"){throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)")}this._isEnabled=true;this._timeout=0;this._hoverState="";this._activeTrigger={};this._popper=null;this.element=element;this.config=this._getConfig(config);this.tip=null;this._setListeners()}var _proto=Tooltip.prototype;_proto.enable=function enable(){this._isEnabled=true};_proto.disable=function disable(){this._isEnabled=false};_proto.toggleEnabled=function toggleEnabled(){this._isEnabled=!this._isEnabled};_proto.toggle=function toggle(event){if(!this._isEnabled){return}if(event){var dataKey=this.constructor.DATA_KEY;var context=$__default["default"](event.currentTarget).data(dataKey);if(!context){context=new this.constructor(event.currentTarget,this._getDelegateConfig());$__default["default"](event.currentTarget).data(dataKey,context)}context._activeTrigger.click=!context._activeTrigger.click;if(context._isWithActiveTrigger()){context._enter(null,context)}else{context._leave(null,context)}}else{if($__default["default"](this.getTipElement()).hasClass(CLASS_NAME_SHOW$4)){this._leave(null,this);return}this._enter(null,this)}};_proto.dispose=function dispose(){clearTimeout(this._timeout);$__default["default"].removeData(this.element,this.constructor.DATA_KEY);$__default["default"](this.element).off(this.constructor.EVENT_KEY);$__default["default"](this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler);if(this.tip){$__default["default"](this.tip).remove()}this._isEnabled=null;this._timeout=null;this._hoverState=null;this._activeTrigger=null;if(this._popper){this._popper.destroy()}this._popper=null;this.element=null;this.config=null;this.tip=null};_proto.show=function show(){var _this=this;if($__default["default"](this.element).css("display")==="none"){throw new Error("Please use show on visible elements")}var showEvent=$__default["default"].Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){$__default["default"](this.element).trigger(showEvent);var shadowRoot=Util.findShadowRoot(this.element);var isInTheDom=$__default["default"].contains(shadowRoot!==null?shadowRoot:this.element.ownerDocument.documentElement,this.element);if(showEvent.isDefaultPrevented()||!isInTheDom){return}var tip=this.getTipElement();var tipId=Util.getUID(this.constructor.NAME);tip.setAttribute("id",tipId);this.element.setAttribute("aria-describedby",tipId);this.setContent();if(this.config.animation){$__default["default"](tip).addClass(CLASS_NAME_FADE$2)}var placement=typeof this.config.placement==="function"?this.config.placement.call(this,tip,this.element):this.config.placement;var attachment=this._getAttachment(placement);this.addAttachmentClass(attachment);var container=this._getContainer();$__default["default"](tip).data(this.constructor.DATA_KEY,this);if(!$__default["default"].contains(this.element.ownerDocument.documentElement,this.tip)){$__default["default"](tip).appendTo(container)}$__default["default"](this.element).trigger(this.constructor.Event.INSERTED);this._popper=new Popper(this.element,tip,this._getPopperConfig(attachment));$__default["default"](tip).addClass(CLASS_NAME_SHOW$4);$__default["default"](tip).addClass(this.config.customClass);if("ontouchstart"in document.documentElement){$__default["default"](document.body).children().on("mouseover",null,$__default["default"].noop)}var complete=function complete(){if(_this.config.animation){_this._fixTransition()}var prevHoverState=_this._hoverState;_this._hoverState=null;$__default["default"](_this.element).trigger(_this.constructor.Event.SHOWN);if(prevHoverState===HOVER_STATE_OUT){_this._leave(null,_this)}};if($__default["default"](this.tip).hasClass(CLASS_NAME_FADE$2)){var transitionDuration=Util.getTransitionDurationFromElement(this.tip);$__default["default"](this.tip).one(Util.TRANSITION_END,complete).emulateTransitionEnd(transitionDuration)}else{complete()}}};_proto.hide=function hide(callback){var _this2=this;var tip=this.getTipElement();var hideEvent=$__default["default"].Event(this.constructor.Event.HIDE);var complete=function complete(){if(_this2._hoverState!==HOVER_STATE_SHOW&&tip.parentNode){tip.parentNode.removeChild(tip)}_this2._cleanTipClass();_this2.element.removeAttribute("aria-describedby");$__default["default"](_this2.element).trigger(_this2.constructor.Event.HIDDEN);if(_this2._popper!==null){_this2._popper.destroy()}if(callback){callback()}};$__default["default"](this.element).trigger(hideEvent);if(hideEvent.isDefaultPrevented()){return}$__default["default"](tip).removeClass(CLASS_NAME_SHOW$4);if("ontouchstart"in document.documentElement){$__default["default"](document.body).children().off("mouseover",null,$__default["default"].noop)}this._activeTrigger[TRIGGER_CLICK]=false;this._activeTrigger[TRIGGER_FOCUS]=false;this._activeTrigger[TRIGGER_HOVER]=false;if($__default["default"](this.tip).hasClass(CLASS_NAME_FADE$2)){var transitionDuration=Util.getTransitionDurationFromElement(tip);$__default["default"](tip).one(Util.TRANSITION_END,complete).emulateTransitionEnd(transitionDuration)}else{complete()}this._hoverState=""};_proto.update=function update(){if(this._popper!==null){this._popper.scheduleUpdate()}};_proto.isWithContent=function isWithContent(){return Boolean(this.getTitle())};_proto.addAttachmentClass=function addAttachmentClass(attachment){$__default["default"](this.getTipElement()).addClass(CLASS_PREFIX+"-"+attachment)};_proto.getTipElement=function getTipElement(){this.tip=this.tip||$__default["default"](this.config.template)[0];return this.tip};_proto.setContent=function setContent(){var tip=this.getTipElement();this.setElementContent($__default["default"](tip.querySelectorAll(SELECTOR_TOOLTIP_INNER)),this.getTitle());$__default["default"](tip).removeClass(CLASS_NAME_FADE$2+" "+CLASS_NAME_SHOW$4)};_proto.setElementContent=function setElementContent($element,content){if(typeof content==="object"&&(content.nodeType||content.jquery)){if(this.config.html){if(!$__default["default"](content).parent().is($element)){$element.empty().append(content)}}else{$element.text($__default["default"](content).text())}return}if(this.config.html){if(this.config.sanitize){content=sanitizeHtml(content,this.config.whiteList,this.config.sanitizeFn)}$element.html(content)}else{$element.text(content)}};_proto.getTitle=function getTitle(){var title=this.element.getAttribute("data-original-title");if(!title){title=typeof this.config.title==="function"?this.config.title.call(this.element):this.config.title}return title};_proto._getPopperConfig=function _getPopperConfig(attachment){var _this3=this;var defaultBsConfig={placement:attachment,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:SELECTOR_ARROW},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function onCreate(data){if(data.originalPlacement!==data.placement){_this3._handlePopperPlacementChange(data)}},onUpdate:function onUpdate(data){return _this3._handlePopperPlacementChange(data)}};return _extends({},defaultBsConfig,this.config.popperConfig)};_proto._getOffset=function _getOffset(){var _this4=this;var offset={};if(typeof this.config.offset==="function"){offset.fn=function(data){data.offsets=_extends({},data.offsets,_this4.config.offset(data.offsets,_this4.element)||{});return data}}else{offset.offset=this.config.offset}return offset};_proto._getContainer=function _getContainer(){if(this.config.container===false){return document.body}if(Util.isElement(this.config.container)){return $__default["default"](this.config.container)}return $__default["default"](document).find(this.config.container)};_proto._getAttachment=function _getAttachment(placement){return AttachmentMap[placement.toUpperCase()]};_proto._setListeners=function _setListeners(){var _this5=this;var triggers=this.config.trigger.split(" ");triggers.forEach(function(trigger){if(trigger==="click"){$__default["default"](_this5.element).on(_this5.constructor.Event.CLICK,_this5.config.selector,function(event){return _this5.toggle(event)})}else if(trigger!==TRIGGER_MANUAL){var eventIn=trigger===TRIGGER_HOVER?_this5.constructor.Event.MOUSEENTER:_this5.constructor.Event.FOCUSIN;var eventOut=trigger===TRIGGER_HOVER?_this5.constructor.Event.MOUSELEAVE:_this5.constructor.Event.FOCUSOUT;$__default["default"](_this5.element).on(eventIn,_this5.config.selector,function(event){return _this5._enter(event)}).on(eventOut,_this5.config.selector,function(event){return _this5._leave(event)})}});this._hideModalHandler=function(){if(_this5.element){_this5.hide()}};$__default["default"](this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler);if(this.config.selector){this.config=_extends({},this.config,{trigger:"manual",selector:""})}else{this._fixTitle()}};_proto._fixTitle=function _fixTitle(){var titleType=typeof this.element.getAttribute("data-original-title");if(this.element.getAttribute("title")||titleType!=="string"){this.element.setAttribute("data-original-title",this.element.getAttribute("title")||"");this.element.setAttribute("title","")}};_proto._enter=function _enter(event,context){var dataKey=this.constructor.DATA_KEY;context=context||$__default["default"](event.currentTarget).data(dataKey);if(!context){context=new this.constructor(event.currentTarget,this._getDelegateConfig());$__default["default"](event.currentTarget).data(dataKey,context)}if(event){context._activeTrigger[event.type==="focusin"?TRIGGER_FOCUS:TRIGGER_HOVER]=true}if($__default["default"](context.getTipElement()).hasClass(CLASS_NAME_SHOW$4)||context._hoverState===HOVER_STATE_SHOW){context._hoverState=HOVER_STATE_SHOW;return}clearTimeout(context._timeout);context._hoverState=HOVER_STATE_SHOW;if(!context.config.delay||!context.config.delay.show){context.show();return}context._timeout=setTimeout(function(){if(context._hoverState===HOVER_STATE_SHOW){context.show()}},context.config.delay.show)};_proto._leave=function _leave(event,context){var dataKey=this.constructor.DATA_KEY;context=context||$__default["default"](event.currentTarget).data(dataKey);if(!context){context=new this.constructor(event.currentTarget,this._getDelegateConfig());$__default["default"](event.currentTarget).data(dataKey,context)}if(event){context._activeTrigger[event.type==="focusout"?TRIGGER_FOCUS:TRIGGER_HOVER]=false}if(context._isWithActiveTrigger()){return}clearTimeout(context._timeout);context._hoverState=HOVER_STATE_OUT;if(!context.config.delay||!context.config.delay.hide){context.hide();return}context._timeout=setTimeout(function(){if(context._hoverState===HOVER_STATE_OUT){context.hide()}},context.config.delay.hide)};_proto._isWithActiveTrigger=function _isWithActiveTrigger(){for(var trigger in this._activeTrigger){if(this._activeTrigger[trigger]){return true}}return false};_proto._getConfig=function _getConfig(config){var dataAttributes=$__default["default"](this.element).data();Object.keys(dataAttributes).forEach(function(dataAttr){if(DISALLOWED_ATTRIBUTES.indexOf(dataAttr)!==-1){delete dataAttributes[dataAttr]}});config=_extends({},this.constructor.Default,dataAttributes,typeof config==="object"&&config?config:{});if(typeof config.delay==="number"){config.delay={show:config.delay,hide:config.delay}}if(typeof config.title==="number"){config.title=config.title.toString()}if(typeof config.content==="number"){config.content=config.content.toString()}Util.typeCheckConfig(NAME$6,config,this.constructor.DefaultType);if(config.sanitize){config.template=sanitizeHtml(config.template,config.whiteList,config.sanitizeFn)}return config};_proto._getDelegateConfig=function _getDelegateConfig(){var config={};if(this.config){for(var key in this.config){if(this.constructor.Default[key]!==this.config[key]){config[key]=this.config[key]}}}return config};_proto._cleanTipClass=function _cleanTipClass(){var $tip=$__default["default"](this.getTipElement());var tabClass=$tip.attr("class").match(BSCLS_PREFIX_REGEX);if(tabClass!==null&&tabClass.length){$tip.removeClass(tabClass.join(""))}};_proto._handlePopperPlacementChange=function _handlePopperPlacementChange(popperData){this.tip=popperData.instance.popper;this._cleanTipClass();this.addAttachmentClass(this._getAttachment(popperData.placement))};_proto._fixTransition=function _fixTransition(){var tip=this.getTipElement();var initConfigAnimation=this.config.animation;if(tip.getAttribute("x-placement")!==null){return}$__default["default"](tip).removeClass(CLASS_NAME_FADE$2);this.config.animation=false;this.hide();this.show();this.config.animation=initConfigAnimation};Tooltip._jQueryInterface=function _jQueryInterface(config){return this.each(function(){var $element=$__default["default"](this);var data=$element.data(DATA_KEY$6);var _config=typeof config==="object"&&config;if(!data&&/dispose|hide/.test(config)){return}if(!data){data=new Tooltip(this,_config);$element.data(DATA_KEY$6,data)}if(typeof config==="string"){if(typeof data[config]==="undefined"){throw new TypeError('No method named "'+config+'"')}data[config]()}})};_createClass(Tooltip,null,[{key:"VERSION",get:function get(){return VERSION$6}},{key:"Default",get:function get(){return Default$4}},{key:"NAME",get:function get(){return NAME$6}},{key:"DATA_KEY",get:function get(){return DATA_KEY$6}},{key:"Event",get:function get(){return Event}},{key:"EVENT_KEY",get:function get(){return EVENT_KEY$6}},{key:"DefaultType",get:function get(){return DefaultType$4}}]);return Tooltip}();$__default["default"].fn[NAME$6]=Tooltip._jQueryInterface;$__default["default"].fn[NAME$6].Constructor=Tooltip;$__default["default"].fn[NAME$6].noConflict=function(){$__default["default"].fn[NAME$6]=JQUERY_NO_CONFLICT$6;return Tooltip._jQueryInterface};var NAME$7="popover";var VERSION$7="4.6.0";var DATA_KEY$7="bs.popover";var EVENT_KEY$7="."+DATA_KEY$7;var JQUERY_NO_CONFLICT$7=$__default["default"].fn[NAME$7];var CLASS_PREFIX$1="bs-popover";var BSCLS_PREFIX_REGEX$1=new RegExp("(^|\\s)"+CLASS_PREFIX$1+"\\S+","g");var Default$5=_extends({},Tooltip.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip">'+'<div class="arrow"></div>'+'<h3 class="popover-header"></h3>'+'<div class="popover-body"></div></div>'});var DefaultType$5=_extends({},Tooltip.DefaultType,{content:"(string|element|function)"});var CLASS_NAME_FADE$3="fade";var CLASS_NAME_SHOW$5="show";var SELECTOR_TITLE=".popover-header";var SELECTOR_CONTENT=".popover-body";var Event$1={HIDE:"hide"+EVENT_KEY$7,HIDDEN:"hidden"+EVENT_KEY$7,SHOW:"show"+EVENT_KEY$7,SHOWN:"shown"+EVENT_KEY$7,INSERTED:"inserted"+EVENT_KEY$7,CLICK:"click"+EVENT_KEY$7,FOCUSIN:"focusin"+EVENT_KEY$7,FOCUSOUT:"focusout"+EVENT_KEY$7,MOUSEENTER:"mouseenter"+EVENT_KEY$7,MOUSELEAVE:"mouseleave"+EVENT_KEY$7};var Popover=function(_Tooltip){_inheritsLoose(Popover,_Tooltip);function Popover(){return _Tooltip.apply(this,arguments)||this}var _proto=Popover.prototype;_proto.isWithContent=function isWithContent(){return this.getTitle()||this._getContent()};_proto.addAttachmentClass=function addAttachmentClass(attachment){$__default["default"](this.getTipElement()).addClass(CLASS_PREFIX$1+"-"+attachment)};_proto.getTipElement=function getTipElement(){this.tip=this.tip||$__default["default"](this.config.template)[0];return this.tip};_proto.setContent=function setContent(){var $tip=$__default["default"](this.getTipElement());this.setElementContent($tip.find(SELECTOR_TITLE),this.getTitle());var content=this._getContent();if(typeof content==="function"){content=content.call(this.element)}this.setElementContent($tip.find(SELECTOR_CONTENT),content);$tip.removeClass(CLASS_NAME_FADE$3+" "+CLASS_NAME_SHOW$5)};_proto._getContent=function _getContent(){return this.element.getAttribute("data-content")||this.config.content};_proto._cleanTipClass=function _cleanTipClass(){var $tip=$__default["default"](this.getTipElement());var tabClass=$tip.attr("class").match(BSCLS_PREFIX_REGEX$1);if(tabClass!==null&&tabClass.length>0){$tip.removeClass(tabClass.join(""))}};Popover._jQueryInterface=function _jQueryInterface(config){return this.each(function(){var data=$__default["default"](this).data(DATA_KEY$7);var _config=typeof config==="object"?config:null;if(!data&&/dispose|hide/.test(config)){return}if(!data){data=new Popover(this,_config);$__default["default"](this).data(DATA_KEY$7,data)}if(typeof config==="string"){if(typeof data[config]==="undefined"){throw new TypeError('No method named "'+config+'"')}data[config]()}})};_createClass(Popover,null,[{key:"VERSION",get:function get(){return VERSION$7}},{key:"Default",get:function get(){return Default$5}},{key:"NAME",get:function get(){return NAME$7}},{key:"DATA_KEY",get:function get(){return DATA_KEY$7}},{key:"Event",get:function get(){return Event$1}},{key:"EVENT_KEY",get:function get(){return EVENT_KEY$7}},{key:"DefaultType",get:function get(){return DefaultType$5}}]);return Popover}(Tooltip);$__default["default"].fn[NAME$7]=Popover._jQueryInterface;$__default["default"].fn[NAME$7].Constructor=Popover;$__default["default"].fn[NAME$7].noConflict=function(){$__default["default"].fn[NAME$7]=JQUERY_NO_CONFLICT$7;return Popover._jQueryInterface};var NAME$8="scrollspy";var VERSION$8="4.6.0";var DATA_KEY$8="bs.scrollspy";var EVENT_KEY$8="."+DATA_KEY$8;var DATA_API_KEY$6=".data-api";var JQUERY_NO_CONFLICT$8=$__default["default"].fn[NAME$8];var Default$6={offset:10,method:"auto",target:""};var DefaultType$6={offset:"number",method:"string",target:"(string|element)"};var EVENT_ACTIVATE="activate"+EVENT_KEY$8;var EVENT_SCROLL="scroll"+EVENT_KEY$8;var EVENT_LOAD_DATA_API$2="load"+EVENT_KEY$8+DATA_API_KEY$6;var CLASS_NAME_DROPDOWN_ITEM="dropdown-item";var CLASS_NAME_ACTIVE$2="active";var SELECTOR_DATA_SPY='[data-spy="scroll"]';var SELECTOR_NAV_LIST_GROUP=".nav, .list-group";var SELECTOR_NAV_LINKS=".nav-link";var SELECTOR_NAV_ITEMS=".nav-item";var SELECTOR_LIST_ITEMS=".list-group-item";var SELECTOR_DROPDOWN=".dropdown";var SELECTOR_DROPDOWN_ITEMS=".dropdown-item";var SELECTOR_DROPDOWN_TOGGLE=".dropdown-toggle";var METHOD_OFFSET="offset";var METHOD_POSITION="position";var ScrollSpy=function(){function ScrollSpy(element,config){var _this=this;this._element=element;this._scrollElement=element.tagName==="BODY"?window:element;this._config=this._getConfig(config);this._selector=this._config.target+" "+SELECTOR_NAV_LINKS+","+(this._config.target+" "+SELECTOR_LIST_ITEMS+",")+(this._config.target+" "+SELECTOR_DROPDOWN_ITEMS);this._offsets=[];this._targets=[];this._activeTarget=null;this._scrollHeight=0;$__default["default"](this._scrollElement).on(EVENT_SCROLL,function(event){return _this._process(event)});this.refresh();this._process()}var _proto=ScrollSpy.prototype;_proto.refresh=function refresh(){var _this2=this;var autoMethod=this._scrollElement===this._scrollElement.window?METHOD_OFFSET:METHOD_POSITION;var offsetMethod=this._config.method==="auto"?autoMethod:this._config.method;var offsetBase=offsetMethod===METHOD_POSITION?this._getScrollTop():0;this._offsets=[];this._targets=[];this._scrollHeight=this._getScrollHeight();var targets=[].slice.call(document.querySelectorAll(this._selector));targets.map(function(element){var target;var targetSelector=Util.getSelectorFromElement(element);if(targetSelector){target=document.querySelector(targetSelector)}if(target){var targetBCR=target.getBoundingClientRect();if(targetBCR.width||targetBCR.height){return[$__default["default"](target)[offsetMethod]().top+offsetBase,targetSelector]}}return null}).filter(function(item){return item}).sort(function(a,b){return a[0]-b[0]}).forEach(function(item){_this2._offsets.push(item[0]);_this2._targets.push(item[1])})};_proto.dispose=function dispose(){$__default["default"].removeData(this._element,DATA_KEY$8);$__default["default"](this._scrollElement).off(EVENT_KEY$8);this._element=null;this._scrollElement=null;this._config=null;this._selector=null;this._offsets=null;this._targets=null;this._activeTarget=null;this._scrollHeight=null};_proto._getConfig=function _getConfig(config){config=_extends({},Default$6,typeof config==="object"&&config?config:{});if(typeof config.target!=="string"&&Util.isElement(config.target)){var id=$__default["default"](config.target).attr("id");if(!id){id=Util.getUID(NAME$8);$__default["default"](config.target).attr("id",id)}config.target="#"+id}Util.typeCheckConfig(NAME$8,config,DefaultType$6);return config};_proto._getScrollTop=function _getScrollTop(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop};_proto._getScrollHeight=function _getScrollHeight(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)};_proto._getOffsetHeight=function _getOffsetHeight(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height};_proto._process=function _process(){var scrollTop=this._getScrollTop()+this._config.offset;var scrollHeight=this._getScrollHeight();var maxScroll=this._config.offset+scrollHeight-this._getOffsetHeight();if(this._scrollHeight!==scrollHeight){this.refresh()}if(scrollTop>=maxScroll){var target=this._targets[this._targets.length-1];if(this._activeTarget!==target){this._activate(target)}return}if(this._activeTarget&&scrollTop<this._offsets[0]&&this._offsets[0]>0){this._activeTarget=null;this._clear();return}for(var i=this._offsets.length;i--;){var isActiveTarget=this._activeTarget!==this._targets[i]&&scrollTop>=this._offsets[i]&&(typeof this._offsets[i+1]==="undefined"||scrollTop<this._offsets[i+1]);if(isActiveTarget){this._activate(this._targets[i])}}};_proto._activate=function _activate(target){this._activeTarget=target;this._clear();var queries=this._selector.split(",").map(function(selector){return selector+'[data-target="'+target+'"],'+selector+'[href="'+target+'"]'});var $link=$__default["default"]([].slice.call(document.querySelectorAll(queries.join(","))));if($link.hasClass(CLASS_NAME_DROPDOWN_ITEM)){$link.closest(SELECTOR_DROPDOWN).find(SELECTOR_DROPDOWN_TOGGLE).addClass(CLASS_NAME_ACTIVE$2);$link.addClass(CLASS_NAME_ACTIVE$2)}else{$link.addClass(CLASS_NAME_ACTIVE$2);$link.parents(SELECTOR_NAV_LIST_GROUP).prev(SELECTOR_NAV_LINKS+", "+SELECTOR_LIST_ITEMS).addClass(CLASS_NAME_ACTIVE$2);$link.parents(SELECTOR_NAV_LIST_GROUP).prev(SELECTOR_NAV_ITEMS).children(SELECTOR_NAV_LINKS).addClass(CLASS_NAME_ACTIVE$2)}$__default["default"](this._scrollElement).trigger(EVENT_ACTIVATE,{relatedTarget:target})};_proto._clear=function _clear(){[].slice.call(document.querySelectorAll(this._selector)).filter(function(node){return node.classList.contains(CLASS_NAME_ACTIVE$2)}).forEach(function(node){return node.classList.remove(CLASS_NAME_ACTIVE$2)})};ScrollSpy._jQueryInterface=function _jQueryInterface(config){return this.each(function(){var data=$__default["default"](this).data(DATA_KEY$8);var _config=typeof config==="object"&&config;if(!data){data=new ScrollSpy(this,_config);$__default["default"](this).data(DATA_KEY$8,data)}if(typeof config==="string"){if(typeof data[config]==="undefined"){throw new TypeError('No method named "'+config+'"')}data[config]()}})};_createClass(ScrollSpy,null,[{key:"VERSION",get:function get(){return VERSION$8}},{key:"Default",get:function get(){return Default$6}}]);return ScrollSpy}();$__default["default"](window).on(EVENT_LOAD_DATA_API$2,function(){var scrollSpys=[].slice.call(document.querySelectorAll(SELECTOR_DATA_SPY));var scrollSpysLength=scrollSpys.length;for(var i=scrollSpysLength;i--;){var $spy=$__default["default"](scrollSpys[i]);ScrollSpy._jQueryInterface.call($spy,$spy.data())}});$__default["default"].fn[NAME$8]=ScrollSpy._jQueryInterface;$__default["default"].fn[NAME$8].Constructor=ScrollSpy;$__default["default"].fn[NAME$8].noConflict=function(){$__default["default"].fn[NAME$8]=JQUERY_NO_CONFLICT$8;return ScrollSpy._jQueryInterface};var NAME$9="tab";var VERSION$9="4.6.0";var DATA_KEY$9="bs.tab";var EVENT_KEY$9="."+DATA_KEY$9;var DATA_API_KEY$7=".data-api";var JQUERY_NO_CONFLICT$9=$__default["default"].fn[NAME$9];var EVENT_HIDE$3="hide"+EVENT_KEY$9;var EVENT_HIDDEN$3="hidden"+EVENT_KEY$9;var EVENT_SHOW$3="show"+EVENT_KEY$9;var EVENT_SHOWN$3="shown"+EVENT_KEY$9;var EVENT_CLICK_DATA_API$6="click"+EVENT_KEY$9+DATA_API_KEY$7;var CLASS_NAME_DROPDOWN_MENU="dropdown-menu";var CLASS_NAME_ACTIVE$3="active";var CLASS_NAME_DISABLED$1="disabled";var CLASS_NAME_FADE$4="fade";var CLASS_NAME_SHOW$6="show";var SELECTOR_DROPDOWN$1=".dropdown";var SELECTOR_NAV_LIST_GROUP$1=".nav, .list-group";var SELECTOR_ACTIVE$2=".active";var SELECTOR_ACTIVE_UL="> li > .active";var SELECTOR_DATA_TOGGLE$4='[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]';var SELECTOR_DROPDOWN_TOGGLE$1=".dropdown-toggle";var SELECTOR_DROPDOWN_ACTIVE_CHILD="> .dropdown-menu .active";var Tab=function(){function Tab(element){this._element=element}var _proto=Tab.prototype;_proto.show=function show(){var _this=this;if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&$__default["default"](this._element).hasClass(CLASS_NAME_ACTIVE$3)||$__default["default"](this._element).hasClass(CLASS_NAME_DISABLED$1)){return}var target;var previous;var listElement=$__default["default"](this._element).closest(SELECTOR_NAV_LIST_GROUP$1)[0];var selector=Util.getSelectorFromElement(this._element);if(listElement){var itemSelector=listElement.nodeName==="UL"||listElement.nodeName==="OL"?SELECTOR_ACTIVE_UL:SELECTOR_ACTIVE$2;previous=$__default["default"].makeArray($__default["default"](listElement).find(itemSelector));previous=previous[previous.length-1]}var hideEvent=$__default["default"].Event(EVENT_HIDE$3,{relatedTarget:this._element});var showEvent=$__default["default"].Event(EVENT_SHOW$3,{relatedTarget:previous});if(previous){$__default["default"](previous).trigger(hideEvent)}$__default["default"](this._element).trigger(showEvent);if(showEvent.isDefaultPrevented()||hideEvent.isDefaultPrevented()){return}if(selector){target=document.querySelector(selector)}this._activate(this._element,listElement);var complete=function complete(){var hiddenEvent=$__default["default"].Event(EVENT_HIDDEN$3,{relatedTarget:_this._element});var shownEvent=$__default["default"].Event(EVENT_SHOWN$3,{relatedTarget:previous});$__default["default"](previous).trigger(hiddenEvent);$__default["default"](_this._element).trigger(shownEvent)};if(target){this._activate(target,target.parentNode,complete)}else{complete()}};_proto.dispose=function dispose(){$__default["default"].removeData(this._element,DATA_KEY$9);this._element=null};_proto._activate=function _activate(element,container,callback){var _this2=this;var activeElements=container&&(container.nodeName==="UL"||container.nodeName==="OL")?$__default["default"](container).find(SELECTOR_ACTIVE_UL):$__default["default"](container).children(SELECTOR_ACTIVE$2);var active=activeElements[0];var isTransitioning=callback&&active&&$__default["default"](active).hasClass(CLASS_NAME_FADE$4);var complete=function complete(){return _this2._transitionComplete(element,active,callback)};if(active&&isTransitioning){var transitionDuration=Util.getTransitionDurationFromElement(active);$__default["default"](active).removeClass(CLASS_NAME_SHOW$6).one(Util.TRANSITION_END,complete).emulateTransitionEnd(transitionDuration)}else{complete()}};_proto._transitionComplete=function _transitionComplete(element,active,callback){if(active){$__default["default"](active).removeClass(CLASS_NAME_ACTIVE$3);var dropdownChild=$__default["default"](active.parentNode).find(SELECTOR_DROPDOWN_ACTIVE_CHILD)[0];if(dropdownChild){$__default["default"](dropdownChild).removeClass(CLASS_NAME_ACTIVE$3)}if(active.getAttribute("role")==="tab"){active.setAttribute("aria-selected",false)}}$__default["default"](element).addClass(CLASS_NAME_ACTIVE$3);if(element.getAttribute("role")==="tab"){element.setAttribute("aria-selected",true)}Util.reflow(element);if(element.classList.contains(CLASS_NAME_FADE$4)){element.classList.add(CLASS_NAME_SHOW$6)}if(element.parentNode&&$__default["default"](element.parentNode).hasClass(CLASS_NAME_DROPDOWN_MENU)){var dropdownElement=$__default["default"](element).closest(SELECTOR_DROPDOWN$1)[0];if(dropdownElement){var dropdownToggleList=[].slice.call(dropdownElement.querySelectorAll(SELECTOR_DROPDOWN_TOGGLE$1));$__default["default"](dropdownToggleList).addClass(CLASS_NAME_ACTIVE$3)}element.setAttribute("aria-expanded",true)}if(callback){callback()}};Tab._jQueryInterface=function _jQueryInterface(config){return this.each(function(){var $this=$__default["default"](this);var data=$this.data(DATA_KEY$9);if(!data){data=new Tab(this);$this.data(DATA_KEY$9,data)}if(typeof config==="string"){if(typeof data[config]==="undefined"){throw new TypeError('No method named "'+config+'"')}data[config]()}})};_createClass(Tab,null,[{key:"VERSION",get:function get(){return VERSION$9}}]);return Tab}();$__default["default"](document).on(EVENT_CLICK_DATA_API$6,SELECTOR_DATA_TOGGLE$4,function(event){event.preventDefault();Tab._jQueryInterface.call($__default["default"](this),"show")});$__default["default"].fn[NAME$9]=Tab._jQueryInterface;$__default["default"].fn[NAME$9].Constructor=Tab;$__default["default"].fn[NAME$9].noConflict=function(){$__default["default"].fn[NAME$9]=JQUERY_NO_CONFLICT$9;return Tab._jQueryInterface};var NAME$a="toast";var VERSION$a="4.6.0";var DATA_KEY$a="bs.toast";var EVENT_KEY$a="."+DATA_KEY$a;var JQUERY_NO_CONFLICT$a=$__default["default"].fn[NAME$a];var EVENT_CLICK_DISMISS$1="click.dismiss"+EVENT_KEY$a;var EVENT_HIDE$4="hide"+EVENT_KEY$a;var EVENT_HIDDEN$4="hidden"+EVENT_KEY$a;var EVENT_SHOW$4="show"+EVENT_KEY$a;var EVENT_SHOWN$4="shown"+EVENT_KEY$a;var CLASS_NAME_FADE$5="fade";var CLASS_NAME_HIDE="hide";var CLASS_NAME_SHOW$7="show";var CLASS_NAME_SHOWING="showing";var DefaultType$7={animation:"boolean",autohide:"boolean",delay:"number"};var Default$7={animation:true,autohide:true,delay:500};var SELECTOR_DATA_DISMISS$1='[data-dismiss="toast"]';var Toast=function(){function Toast(element,config){this._element=element;this._config=this._getConfig(config);this._timeout=null;this._setListeners()}var _proto=Toast.prototype;_proto.show=function show(){var _this=this;var showEvent=$__default["default"].Event(EVENT_SHOW$4);$__default["default"](this._element).trigger(showEvent);if(showEvent.isDefaultPrevented()){return}this._clearTimeout();if(this._config.animation){this._element.classList.add(CLASS_NAME_FADE$5)}var complete=function complete(){_this._element.classList.remove(CLASS_NAME_SHOWING);_this._element.classList.add(CLASS_NAME_SHOW$7);$__default["default"](_this._element).trigger(EVENT_SHOWN$4);if(_this._config.autohide){_this._timeout=setTimeout(function(){_this.hide()},_this._config.delay)}};this._element.classList.remove(CLASS_NAME_HIDE);Util.reflow(this._element);this._element.classList.add(CLASS_NAME_SHOWING);if(this._config.animation){var transitionDuration=Util.getTransitionDurationFromElement(this._element);$__default["default"](this._element).one(Util.TRANSITION_END,complete).emulateTransitionEnd(transitionDuration)}else{complete()}};_proto.hide=function hide(){if(!this._element.classList.contains(CLASS_NAME_SHOW$7)){return}var hideEvent=$__default["default"].Event(EVENT_HIDE$4);$__default["default"](this._element).trigger(hideEvent);if(hideEvent.isDefaultPrevented()){return}this._close()};_proto.dispose=function dispose(){this._clearTimeout();if(this._element.classList.contains(CLASS_NAME_SHOW$7)){this._element.classList.remove(CLASS_NAME_SHOW$7)}$__default["default"](this._element).off(EVENT_CLICK_DISMISS$1);$__default["default"].removeData(this._element,DATA_KEY$a);this._element=null;this._config=null};_proto._getConfig=function _getConfig(config){config=_extends({},Default$7,$__default["default"](this._element).data(),typeof config==="object"&&config?config:{});Util.typeCheckConfig(NAME$a,config,this.constructor.DefaultType);return config};_proto._setListeners=function _setListeners(){var _this2=this;$__default["default"](this._element).on(EVENT_CLICK_DISMISS$1,SELECTOR_DATA_DISMISS$1,function(){return _this2.hide()})};_proto._close=function _close(){var _this3=this;var complete=function complete(){_this3._element.classList.add(CLASS_NAME_HIDE);$__default["default"](_this3._element).trigger(EVENT_HIDDEN$4)};this._element.classList.remove(CLASS_NAME_SHOW$7);if(this._config.animation){var transitionDuration=Util.getTransitionDurationFromElement(this._element);$__default["default"](this._element).one(Util.TRANSITION_END,complete).emulateTransitionEnd(transitionDuration)}else{complete()}};_proto._clearTimeout=function _clearTimeout(){clearTimeout(this._timeout);this._timeout=null};Toast._jQueryInterface=function _jQueryInterface(config){return this.each(function(){var $element=$__default["default"](this);var data=$element.data(DATA_KEY$a);var _config=typeof config==="object"&&config;if(!data){data=new Toast(this,_config);$element.data(DATA_KEY$a,data)}if(typeof config==="string"){if(typeof data[config]==="undefined"){throw new TypeError('No method named "'+config+'"')}data[config](this)}})};_createClass(Toast,null,[{key:"VERSION",get:function get(){return VERSION$a}},{key:"DefaultType",get:function get(){return DefaultType$7}},{key:"Default",get:function get(){return Default$7}}]);return Toast}();$__default["default"].fn[NAME$a]=Toast._jQueryInterface;$__default["default"].fn[NAME$a].Constructor=Toast;$__default["default"].fn[NAME$a].noConflict=function(){$__default["default"].fn[NAME$a]=JQUERY_NO_CONFLICT$a;return Toast._jQueryInterface};exports.Alert=Alert;exports.Button=Button;exports.Carousel=Carousel;exports.Collapse=Collapse;exports.Dropdown=Dropdown;exports.Modal=Modal;exports.Popover=Popover;exports.Scrollspy=ScrollSpy;exports.Tab=Tab;exports.Toast=Toast;exports.Tooltip=Tooltip;exports.Util=Util;Object.defineProperty(exports,"__esModule",{value:true})});
(function(root,factory){if(root===undefined&&window!==undefined)root=window;if(typeof define==="function"&&define.amd){define(["jquery"],function(a0){return factory(a0)})}else if(typeof module==="object"&&module.exports){module.exports=factory(require("jquery"))}else{factory(root["jQuery"])}})(this,function(jQuery){(function($){"use strict";var DISALLOWED_ATTRIBUTES=["sanitize","whiteList","sanitizeFn"];var uriAttrs=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"];var ARIA_ATTRIBUTE_PATTERN=/^aria-[\w-]*$/i;var DefaultWhitelist={"*":["class","dir","id","lang","role","tabindex","style",ARIA_ATTRIBUTE_PATTERN],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]};var SAFE_URL_PATTERN=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi;var DATA_URL_PATTERN=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function allowedAttribute(attr,allowedAttributeList){var attrName=attr.nodeName.toLowerCase();if($.inArray(attrName,allowedAttributeList)!==-1){if($.inArray(attrName,uriAttrs)!==-1){return Boolean(attr.nodeValue.match(SAFE_URL_PATTERN)||attr.nodeValue.match(DATA_URL_PATTERN))}return true}var regExp=$(allowedAttributeList).filter(function(index,value){return value instanceof RegExp});for(var i=0,l=regExp.length;i<l;i++){if(attrName.match(regExp[i])){return true}}return false}function sanitizeHtml(unsafeElements,whiteList,sanitizeFn){if(sanitizeFn&&typeof sanitizeFn==="function"){return sanitizeFn(unsafeElements)}var whitelistKeys=Object.keys(whiteList);for(var i=0,len=unsafeElements.length;i<len;i++){var elements=unsafeElements[i].querySelectorAll("*");for(var j=0,len2=elements.length;j<len2;j++){var el=elements[j];var elName=el.nodeName.toLowerCase();if(whitelistKeys.indexOf(elName)===-1){el.parentNode.removeChild(el);continue}var attributeList=[].slice.call(el.attributes);var whitelistedAttributes=[].concat(whiteList["*"]||[],whiteList[elName]||[]);for(var k=0,len3=attributeList.length;k<len3;k++){var attr=attributeList[k];if(!allowedAttribute(attr,whitelistedAttributes)){el.removeAttribute(attr.nodeName)}}}}}if(!("classList"in document.createElement("_"))){(function(view){if(!("Element"in view))return;var classListProp="classList",protoProp="prototype",elemCtrProto=view.Element[protoProp],objCtr=Object,classListGetter=function(){var $elem=$(this);return{add:function(classes){classes=Array.prototype.slice.call(arguments).join(" ");return $elem.addClass(classes)},remove:function(classes){classes=Array.prototype.slice.call(arguments).join(" ");return $elem.removeClass(classes)},toggle:function(classes,force){return $elem.toggleClass(classes,force)},contains:function(classes){return $elem.hasClass(classes)}}};if(objCtr.defineProperty){var classListPropDesc={get:classListGetter,enumerable:true,configurable:true};try{objCtr.defineProperty(elemCtrProto,classListProp,classListPropDesc)}catch(ex){if(ex.number===undefined||ex.number===-2146823252){classListPropDesc.enumerable=false;objCtr.defineProperty(elemCtrProto,classListProp,classListPropDesc)}}}else if(objCtr[protoProp].__defineGetter__){elemCtrProto.__defineGetter__(classListProp,classListGetter)}})(window)}var testElement=document.createElement("_");testElement.classList.add("c1","c2");if(!testElement.classList.contains("c2")){var _add=DOMTokenList.prototype.add,_remove=DOMTokenList.prototype.remove;DOMTokenList.prototype.add=function(){Array.prototype.forEach.call(arguments,_add.bind(this))};DOMTokenList.prototype.remove=function(){Array.prototype.forEach.call(arguments,_remove.bind(this))}}testElement.classList.toggle("c3",false);if(testElement.classList.contains("c3")){var _toggle=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(token,force){if(1 in arguments&&!this.contains(token)===!force){return force}else{return _toggle.call(this,token)}}}testElement=null;function isEqual(array1,array2){return array1.length===array2.length&&array1.every(function(element,index){return element===array2[index]})}if(!String.prototype.startsWith){(function(){"use strict";var defineProperty=function(){try{var object={};var $defineProperty=Object.defineProperty;var result=$defineProperty(object,object,object)&&$defineProperty}catch(error){}return result}();var toString={}.toString;var startsWith=function(search){if(this==null){throw new TypeError}var string=String(this);if(search&&toString.call(search)=="[object RegExp]"){throw new TypeError}var stringLength=string.length;var searchString=String(search);var searchLength=searchString.length;var position=arguments.length>1?arguments[1]:undefined;var pos=position?Number(position):0;if(pos!=pos){pos=0}var start=Math.min(Math.max(pos,0),stringLength);if(searchLength+start>stringLength){return false}var index=-1;while(++index<searchLength){if(string.charCodeAt(start+index)!=searchString.charCodeAt(index)){return false}}return true};if(defineProperty){defineProperty(String.prototype,"startsWith",{value:startsWith,configurable:true,writable:true})}else{String.prototype.startsWith=startsWith}})()}if(!Object.keys){Object.keys=function(o,k,r){r=[];for(k in o){r.hasOwnProperty.call(o,k)&&r.push(k)}return r}}if(HTMLSelectElement&&!HTMLSelectElement.prototype.hasOwnProperty("selectedOptions")){Object.defineProperty(HTMLSelectElement.prototype,"selectedOptions",{get:function(){return this.querySelectorAll(":checked")}})}function getSelectedOptions(select,ignoreDisabled){var selectedOptions=select.selectedOptions,options=[],opt;if(ignoreDisabled){for(var i=0,len=selectedOptions.length;i<len;i++){opt=selectedOptions[i];if(!(opt.disabled||opt.parentNode.tagName==="OPTGROUP"&&opt.parentNode.disabled)){options.push(opt)}}return options}return selectedOptions}function getSelectValues(select,selectedOptions){var value=[],options=selectedOptions||select.selectedOptions,opt;for(var i=0,len=options.length;i<len;i++){opt=options[i];if(!(opt.disabled||opt.parentNode.tagName==="OPTGROUP"&&opt.parentNode.disabled)){value.push(opt.value)}}if(!select.multiple){return!value.length?null:value[0]}return value}var valHooks={useDefault:false,_set:$.valHooks.select.set};$.valHooks.select.set=function(elem,value){if(value&&!valHooks.useDefault)$(elem).data("selected",true);return valHooks._set.apply(this,arguments)};var changedArguments=null;var EventIsSupported=function(){try{new Event("change");return true}catch(e){return false}}();$.fn.triggerNative=function(eventName){var el=this[0],event;if(el.dispatchEvent){if(EventIsSupported){event=new Event(eventName,{bubbles:true})}else{event=document.createEvent("Event");event.initEvent(eventName,true,false)}el.dispatchEvent(event)}else if(el.fireEvent){event=document.createEventObject();event.eventType=eventName;el.fireEvent("on"+eventName,event)}else{this.trigger(eventName)}};function stringSearch(li,searchString,method,normalize){var stringTypes=["display","subtext","tokens"],searchSuccess=false;for(var i=0;i<stringTypes.length;i++){var stringType=stringTypes[i],string=li[stringType];if(string){string=string.toString();if(stringType==="display"){string=string.replace(/<[^>]+>/g,"")}if(normalize)string=normalizeToBase(string);string=string.toUpperCase();if(method==="contains"){searchSuccess=string.indexOf(searchString)>=0}else{searchSuccess=string.startsWith(searchString)}if(searchSuccess)break}}return searchSuccess}function toInteger(value){return parseInt(value,10)||0}var deburredLetters={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","Ĳ":"IJ","ĳ":"ij","Œ":"Oe","œ":"oe","ŉ":"'n","ſ":"s"};var reLatin=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;var rsComboMarksRange="\\u0300-\\u036f",reComboHalfMarksRange="\\ufe20-\\ufe2f",rsComboSymbolsRange="\\u20d0-\\u20ff",rsComboMarksExtendedRange="\\u1ab0-\\u1aff",rsComboMarksSupplementRange="\\u1dc0-\\u1dff",rsComboRange=rsComboMarksRange+reComboHalfMarksRange+rsComboSymbolsRange+rsComboMarksExtendedRange+rsComboMarksSupplementRange;var rsCombo="["+rsComboRange+"]";var reComboMark=RegExp(rsCombo,"g");function deburrLetter(key){return deburredLetters[key]}function normalizeToBase(string){string=string.toString();return string&&string.replace(reLatin,deburrLetter).replace(reComboMark,"")}var escapeMap={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"};var createEscaper=function(map){var escaper=function(match){return map[match]};var source="(?:"+Object.keys(map).join("|")+")";var testRegexp=RegExp(source);var replaceRegexp=RegExp(source,"g");return function(string){string=string==null?"":""+string;return testRegexp.test(string)?string.replace(replaceRegexp,escaper):string}};var htmlEscape=createEscaper(escapeMap);var keyCodeMap={32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9"};var keyCodes={ESCAPE:27,ENTER:13,SPACE:32,TAB:9,ARROW_UP:38,ARROW_DOWN:40};var version={success:false,major:"3"};try{version.full=($.fn.dropdown.Constructor.VERSION||"").split(" ")[0].split(".");version.major=version.full[0];version.success=true}catch(err){}var selectId=0;var EVENT_KEY=".bs.select";var classNames={DISABLED:"disabled",DIVIDER:"divider",SHOW:"open",DROPUP:"dropup",MENU:"dropdown-menu",MENURIGHT:"dropdown-menu-right",MENULEFT:"dropdown-menu-left",BUTTONCLASS:"btn-default",POPOVERHEADER:"popover-title",ICONBASE:"glyphicon",TICKICON:"glyphicon-ok"};var Selector={MENU:"."+classNames.MENU};var elementTemplates={span:document.createElement("span"),i:document.createElement("i"),subtext:document.createElement("small"),a:document.createElement("a"),li:document.createElement("li"),whitespace:document.createTextNode(" "),fragment:document.createDocumentFragment()};elementTemplates.a.setAttribute("role","option");if(version.major==="4")elementTemplates.a.className="dropdown-item";elementTemplates.subtext.className="text-muted";elementTemplates.text=elementTemplates.span.cloneNode(false);elementTemplates.text.className="text";elementTemplates.checkMark=elementTemplates.span.cloneNode(false);var REGEXP_ARROW=new RegExp(keyCodes.ARROW_UP+"|"+keyCodes.ARROW_DOWN);var REGEXP_TAB_OR_ESCAPE=new RegExp("^"+keyCodes.TAB+"$|"+keyCodes.ESCAPE);var generateOption={li:function(content,classes,optgroup){var li=elementTemplates.li.cloneNode(false);if(content){if(content.nodeType===1||content.nodeType===11){li.appendChild(content)}else{li.innerHTML=content}}if(typeof classes!=="undefined"&&classes!=="")li.className=classes;if(typeof optgroup!=="undefined"&&optgroup!==null)li.classList.add("optgroup-"+optgroup);return li},a:function(text,classes,inline){var a=elementTemplates.a.cloneNode(true);if(text){if(text.nodeType===11){a.appendChild(text)}else{a.insertAdjacentHTML("beforeend",text)}}if(typeof classes!=="undefined"&&classes!=="")a.classList.add.apply(a.classList,classes.split(" "));if(inline)a.setAttribute("style",inline);return a},text:function(options,useFragment){var textElement=elementTemplates.text.cloneNode(false),subtextElement,iconElement;if(options.content){textElement.innerHTML=options.content}else{textElement.textContent=options.text;if(options.icon){var whitespace=elementTemplates.whitespace.cloneNode(false);iconElement=(useFragment===true?elementTemplates.i:elementTemplates.span).cloneNode(false);iconElement.className=this.options.iconBase+" "+options.icon;elementTemplates.fragment.appendChild(iconElement);elementTemplates.fragment.appendChild(whitespace)}if(options.subtext){subtextElement=elementTemplates.subtext.cloneNode(false);subtextElement.textContent=options.subtext;textElement.appendChild(subtextElement)}}if(useFragment===true){while(textElement.childNodes.length>0){elementTemplates.fragment.appendChild(textElement.childNodes[0])}}else{elementTemplates.fragment.appendChild(textElement)}return elementTemplates.fragment},label:function(options){var textElement=elementTemplates.text.cloneNode(false),subtextElement,iconElement;textElement.innerHTML=options.display;if(options.icon){var whitespace=elementTemplates.whitespace.cloneNode(false);iconElement=elementTemplates.span.cloneNode(false);iconElement.className=this.options.iconBase+" "+options.icon;elementTemplates.fragment.appendChild(iconElement);elementTemplates.fragment.appendChild(whitespace)}if(options.subtext){subtextElement=elementTemplates.subtext.cloneNode(false);subtextElement.textContent=options.subtext;textElement.appendChild(subtextElement)}elementTemplates.fragment.appendChild(textElement);return elementTemplates.fragment}};var Selectpicker=function(element,options){var that=this;if(!valHooks.useDefault){$.valHooks.select.set=valHooks._set;valHooks.useDefault=true}this.$element=$(element);this.$newElement=null;this.$button=null;this.$menu=null;this.options=options;this.selectpicker={main:{},search:{},current:{},view:{},isSearching:false,keydown:{keyHistory:"",resetKeyHistory:{start:function(){return setTimeout(function(){that.selectpicker.keydown.keyHistory=""},800)}}}};this.sizeInfo={};if(this.options.title===null){this.options.title=this.$element.attr("title")}var winPad=this.options.windowPadding;if(typeof winPad==="number"){this.options.windowPadding=[winPad,winPad,winPad,winPad]}this.val=Selectpicker.prototype.val;this.render=Selectpicker.prototype.render;this.refresh=Selectpicker.prototype.refresh;this.setStyle=Selectpicker.prototype.setStyle;this.selectAll=Selectpicker.prototype.selectAll;this.deselectAll=Selectpicker.prototype.deselectAll;this.destroy=Selectpicker.prototype.destroy;this.remove=Selectpicker.prototype.remove;this.show=Selectpicker.prototype.show;this.hide=Selectpicker.prototype.hide;this.init()};Selectpicker.VERSION="1.13.14";Selectpicker.DEFAULTS={noneSelectedText:"Nothing selected",noneResultsText:"No results matched {0}",countSelectedText:function(numSelected,numTotal){return numSelected==1?"{0} item selected":"{0} items selected"},maxOptionsText:function(numAll,numGroup){return[numAll==1?"Limit reached ({n} item max)":"Limit reached ({n} items max)",numGroup==1?"Group limit reached ({n} item max)":"Group limit reached ({n} items max)"]},selectAllText:"Select All",deselectAllText:"Deselect All",doneButton:false,doneButtonText:"Close",multipleSeparator:", ",styleBase:"btn",style:classNames.BUTTONCLASS,size:"auto",title:null,selectedTextFormat:"values",width:false,container:false,hideDisabled:false,showSubtext:false,showIcon:true,showContent:true,dropupAuto:true,header:false,liveSearch:false,liveSearchPlaceholder:null,liveSearchNormalize:false,liveSearchStyle:"contains",actionsBox:false,iconBase:classNames.ICONBASE,tickIcon:classNames.TICKICON,showTick:false,template:{caret:'<span class="caret"></span>'},maxOptions:false,mobile:false,selectOnTab:false,dropdownAlignRight:false,windowPadding:0,virtualScroll:600,display:false,sanitize:true,sanitizeFn:null,whiteList:DefaultWhitelist};Selectpicker.prototype={constructor:Selectpicker,init:function(){var that=this,id=this.$element.attr("id");selectId++;this.selectId="bs-select-"+selectId;this.$element[0].classList.add("bs-select-hidden");this.multiple=this.$element.prop("multiple");this.autofocus=this.$element.prop("autofocus");if(this.$element[0].classList.contains("show-tick")){this.options.showTick=true}this.$newElement=this.createDropdown();this.buildData();this.$element.after(this.$newElement).prependTo(this.$newElement);this.$button=this.$newElement.children("button");this.$menu=this.$newElement.children(Selector.MENU);this.$menuInner=this.$menu.children(".inner");this.$searchbox=this.$menu.find("input");this.$element[0].classList.remove("bs-select-hidden");if(this.options.dropdownAlignRight===true)this.$menu[0].classList.add(classNames.MENURIGHT);if(typeof id!=="undefined"){this.$button.attr("data-id",id)}this.checkDisabled();this.clickListener();if(this.options.liveSearch){this.liveSearchListener();this.focusedParent=this.$searchbox[0]}else{this.focusedParent=this.$menuInner[0]}this.setStyle();this.render();this.setWidth();if(this.options.container){this.selectPosition()}else{this.$element.on("hide"+EVENT_KEY,function(){if(that.isVirtual()){var menuInner=that.$menuInner[0],emptyMenu=menuInner.firstChild.cloneNode(false);menuInner.replaceChild(emptyMenu,menuInner.firstChild);menuInner.scrollTop=0}})}this.$menu.data("this",this);this.$newElement.data("this",this);if(this.options.mobile)this.mobile();this.$newElement.on({"hide.bs.dropdown":function(e){that.$element.trigger("hide"+EVENT_KEY,e)},"hidden.bs.dropdown":function(e){that.$element.trigger("hidden"+EVENT_KEY,e)},"show.bs.dropdown":function(e){that.$element.trigger("show"+EVENT_KEY,e)},"shown.bs.dropdown":function(e){that.$element.trigger("shown"+EVENT_KEY,e)}});if(that.$element[0].hasAttribute("required")){this.$element.on("invalid"+EVENT_KEY,function(){that.$button[0].classList.add("bs-invalid");that.$element.on("shown"+EVENT_KEY+".invalid",function(){that.$element.val(that.$element.val()).off("shown"+EVENT_KEY+".invalid")}).on("rendered"+EVENT_KEY,function(){if(this.validity.valid)that.$button[0].classList.remove("bs-invalid");that.$element.off("rendered"+EVENT_KEY)});that.$button.on("blur"+EVENT_KEY,function(){that.$element.trigger("focus").trigger("blur");that.$button.off("blur"+EVENT_KEY)})})}setTimeout(function(){that.buildList();that.$element.trigger("loaded"+EVENT_KEY)})},createDropdown:function(){var showTick=this.multiple||this.options.showTick?" show-tick":"",multiselectable=this.multiple?' aria-multiselectable="true"':"",inputGroup="",autofocus=this.autofocus?" autofocus":"";if(version.major<4&&this.$element.parent().hasClass("input-group")){inputGroup=" input-group-btn"}var drop,header="",searchbox="",actionsbox="",donebutton="";if(this.options.header){header='<div class="'+classNames.POPOVERHEADER+'">'+'<button type="button" class="close" aria-hidden="true">&times;</button>'+this.options.header+"</div>"}if(this.options.liveSearch){searchbox='<div class="bs-searchbox">'+'<input type="search" class="form-control" autocomplete="off"'+(this.options.liveSearchPlaceholder===null?"":' placeholder="'+htmlEscape(this.options.liveSearchPlaceholder)+'"')+' role="combobox" aria-label="Search" aria-controls="'+this.selectId+'" aria-autocomplete="list">'+"</div>"}if(this.multiple&&this.options.actionsBox){actionsbox='<div class="bs-actionsbox">'+'<div class="btn-group btn-group-sm btn-block">'+'<button type="button" class="actions-btn bs-select-all btn '+classNames.BUTTONCLASS+'">'+this.options.selectAllText+"</button>"+'<button type="button" class="actions-btn bs-deselect-all btn '+classNames.BUTTONCLASS+'">'+this.options.deselectAllText+"</button>"+"</div>"+"</div>"}if(this.multiple&&this.options.doneButton){donebutton='<div class="bs-donebutton">'+'<div class="btn-group btn-block">'+'<button type="button" class="btn btn-sm '+classNames.BUTTONCLASS+'">'+this.options.doneButtonText+"</button>"+"</div>"+"</div>"}drop='<div class="dropdown bootstrap-select'+showTick+inputGroup+'">'+'<button type="button" class="'+this.options.styleBase+' dropdown-toggle" '+(this.options.display==="static"?'data-display="static"':"")+'data-toggle="dropdown"'+autofocus+' role="combobox" aria-owns="'+this.selectId+'" aria-haspopup="listbox" aria-expanded="false">'+'<div class="filter-option">'+'<div class="filter-option-inner">'+'<div class="filter-option-inner-inner"></div>'+"</div> "+"</div>"+(version.major==="4"?"":'<span class="bs-caret">'+this.options.template.caret+"</span>")+"</button>"+'<div class="'+classNames.MENU+" "+(version.major==="4"?"":classNames.SHOW)+'">'+header+searchbox+actionsbox+'<div class="inner '+classNames.SHOW+'" role="listbox" id="'+this.selectId+'" tabindex="-1" '+multiselectable+">"+'<ul class="'+classNames.MENU+" inner "+(version.major==="4"?classNames.SHOW:"")+'" role="presentation">'+"</ul>"+"</div>"+donebutton+"</div>"+"</div>";return $(drop)},setPositionData:function(){this.selectpicker.view.canHighlight=[];this.selectpicker.view.size=0;for(var i=0;i<this.selectpicker.current.data.length;i++){var li=this.selectpicker.current.data[i],canHighlight=true;if(li.type==="divider"){canHighlight=false;li.height=this.sizeInfo.dividerHeight}else if(li.type==="optgroup-label"){canHighlight=false;li.height=this.sizeInfo.dropdownHeaderHeight}else{li.height=this.sizeInfo.liHeight}if(li.disabled)canHighlight=false;this.selectpicker.view.canHighlight.push(canHighlight);if(canHighlight){this.selectpicker.view.size++;li.posinset=this.selectpicker.view.size}li.position=(i===0?0:this.selectpicker.current.data[i-1].position)+li.height}},isVirtual:function(){return this.options.virtualScroll!==false&&this.selectpicker.main.elements.length>=this.options.virtualScroll||this.options.virtualScroll===true},createView:function(isSearching,setSize,refresh){var that=this,scrollTop=0,active=[],selected,prevActive;this.selectpicker.isSearching=isSearching;this.selectpicker.current=isSearching?this.selectpicker.search:this.selectpicker.main;this.setPositionData();if(setSize){if(refresh){scrollTop=this.$menuInner[0].scrollTop}else if(!that.multiple){var element=that.$element[0],selectedIndex=(element.options[element.selectedIndex]||{}).liIndex;if(typeof selectedIndex==="number"&&that.options.size!==false){var selectedData=that.selectpicker.main.data[selectedIndex],position=selectedData&&selectedData.position;if(position){scrollTop=position-(that.sizeInfo.menuInnerHeight+that.sizeInfo.liHeight)/2}}}}scroll(scrollTop,true);this.$menuInner.off("scroll.createView").on("scroll.createView",function(e,updateValue){if(!that.noScroll)scroll(this.scrollTop,updateValue);that.noScroll=false});function scroll(scrollTop,init){var size=that.selectpicker.current.elements.length,chunks=[],chunkSize,chunkCount,firstChunk,lastChunk,currentChunk,prevPositions,positionIsDifferent,previousElements,menuIsDifferent=true,isVirtual=that.isVirtual();that.selectpicker.view.scrollTop=scrollTop;chunkSize=Math.ceil(that.sizeInfo.menuInnerHeight/that.sizeInfo.liHeight*1.5);chunkCount=Math.round(size/chunkSize)||1;for(var i=0;i<chunkCount;i++){var endOfChunk=(i+1)*chunkSize;if(i===chunkCount-1){endOfChunk=size}chunks[i]=[i*chunkSize+(!i?0:1),endOfChunk];if(!size)break;if(currentChunk===undefined&&scrollTop-1<=that.selectpicker.current.data[endOfChunk-1].position-that.sizeInfo.menuInnerHeight){currentChunk=i}}if(currentChunk===undefined)currentChunk=0;prevPositions=[that.selectpicker.view.position0,that.selectpicker.view.position1];firstChunk=Math.max(0,currentChunk-1);lastChunk=Math.min(chunkCount-1,currentChunk+1);that.selectpicker.view.position0=isVirtual===false?0:Math.max(0,chunks[firstChunk][0])||0;that.selectpicker.view.position1=isVirtual===false?size:Math.min(size,chunks[lastChunk][1])||0;positionIsDifferent=prevPositions[0]!==that.selectpicker.view.position0||prevPositions[1]!==that.selectpicker.view.position1;if(that.activeIndex!==undefined){prevActive=that.selectpicker.main.elements[that.prevActiveIndex];active=that.selectpicker.main.elements[that.activeIndex];selected=that.selectpicker.main.elements[that.selectedIndex];if(init){if(that.activeIndex!==that.selectedIndex){that.defocusItem(active)}that.activeIndex=undefined}if(that.activeIndex&&that.activeIndex!==that.selectedIndex){that.defocusItem(selected)}}if(that.prevActiveIndex!==undefined&&that.prevActiveIndex!==that.activeIndex&&that.prevActiveIndex!==that.selectedIndex){that.defocusItem(prevActive)}if(init||positionIsDifferent){previousElements=that.selectpicker.view.visibleElements?that.selectpicker.view.visibleElements.slice():[];if(isVirtual===false){that.selectpicker.view.visibleElements=that.selectpicker.current.elements}else{that.selectpicker.view.visibleElements=that.selectpicker.current.elements.slice(that.selectpicker.view.position0,that.selectpicker.view.position1)}that.setOptionStatus();if(isSearching||isVirtual===false&&init)menuIsDifferent=!isEqual(previousElements,that.selectpicker.view.visibleElements);if((init||isVirtual===true)&&menuIsDifferent){var menuInner=that.$menuInner[0],menuFragment=document.createDocumentFragment(),emptyMenu=menuInner.firstChild.cloneNode(false),marginTop,marginBottom,elements=that.selectpicker.view.visibleElements,toSanitize=[];menuInner.replaceChild(emptyMenu,menuInner.firstChild);for(var i=0,visibleElementsLen=elements.length;i<visibleElementsLen;i++){var element=elements[i],elText,elementData;if(that.options.sanitize){elText=element.lastChild;if(elText){elementData=that.selectpicker.current.data[i+that.selectpicker.view.position0];if(elementData&&elementData.content&&!elementData.sanitized){toSanitize.push(elText);elementData.sanitized=true}}}menuFragment.appendChild(element)}if(that.options.sanitize&&toSanitize.length){sanitizeHtml(toSanitize,that.options.whiteList,that.options.sanitizeFn)}if(isVirtual===true){marginTop=that.selectpicker.view.position0===0?0:that.selectpicker.current.data[that.selectpicker.view.position0-1].position;marginBottom=that.selectpicker.view.position1>size-1?0:that.selectpicker.current.data[size-1].position-that.selectpicker.current.data[that.selectpicker.view.position1-1].position;menuInner.firstChild.style.marginTop=marginTop+"px";menuInner.firstChild.style.marginBottom=marginBottom+"px"}else{menuInner.firstChild.style.marginTop=0;menuInner.firstChild.style.marginBottom=0}menuInner.firstChild.appendChild(menuFragment);if(isVirtual===true&&that.sizeInfo.hasScrollBar){var menuInnerInnerWidth=menuInner.firstChild.offsetWidth;if(init&&menuInnerInnerWidth<that.sizeInfo.menuInnerInnerWidth&&that.sizeInfo.totalMenuWidth>that.sizeInfo.selectWidth){menuInner.firstChild.style.minWidth=that.sizeInfo.menuInnerInnerWidth+"px"}else if(menuInnerInnerWidth>that.sizeInfo.menuInnerInnerWidth){that.$menu[0].style.minWidth=0;var actualMenuWidth=menuInner.firstChild.offsetWidth;if(actualMenuWidth>that.sizeInfo.menuInnerInnerWidth){that.sizeInfo.menuInnerInnerWidth=actualMenuWidth;menuInner.firstChild.style.minWidth=that.sizeInfo.menuInnerInnerWidth+"px"}that.$menu[0].style.minWidth=""}}}}that.prevActiveIndex=that.activeIndex;if(!that.options.liveSearch){that.$menuInner.trigger("focus")}else if(isSearching&&init){var index=0,newActive;if(!that.selectpicker.view.canHighlight[index]){index=1+that.selectpicker.view.canHighlight.slice(1).indexOf(true)}newActive=that.selectpicker.view.visibleElements[index];that.defocusItem(that.selectpicker.view.currentActive);that.activeIndex=(that.selectpicker.current.data[index]||{}).index;that.focusItem(newActive)}}$(window).off("resize"+EVENT_KEY+"."+this.selectId+".createView").on("resize"+EVENT_KEY+"."+this.selectId+".createView",function(){var isActive=that.$newElement.hasClass(classNames.SHOW);if(isActive)scroll(that.$menuInner[0].scrollTop)})},focusItem:function(li,liData,noStyle){if(li){liData=liData||this.selectpicker.main.data[this.activeIndex];var a=li.firstChild;if(a){a.setAttribute("aria-setsize",this.selectpicker.view.size);a.setAttribute("aria-posinset",liData.posinset);if(noStyle!==true){this.focusedParent.setAttribute("aria-activedescendant",a.id);li.classList.add("active");a.classList.add("active")}}}},defocusItem:function(li){if(li){li.classList.remove("active");if(li.firstChild)li.firstChild.classList.remove("active")}},setPlaceholder:function(){var updateIndex=false;if(this.options.title&&!this.multiple){if(!this.selectpicker.view.titleOption)this.selectpicker.view.titleOption=document.createElement("option");updateIndex=true;var element=this.$element[0],isSelected=false,titleNotAppended=!this.selectpicker.view.titleOption.parentNode;if(titleNotAppended){this.selectpicker.view.titleOption.className="bs-title-option";this.selectpicker.view.titleOption.value="";var $opt=$(element.options[element.selectedIndex]);isSelected=$opt.attr("selected")===undefined&&this.$element.data("selected")===undefined}if(titleNotAppended||this.selectpicker.view.titleOption.index!==0){element.insertBefore(this.selectpicker.view.titleOption,element.firstChild)}if(isSelected)element.selectedIndex=0}return updateIndex},buildData:function(){var optionSelector=':not([hidden]):not([data-hidden="true"])',mainData=[],optID=0,startIndex=this.setPlaceholder()?1:0;if(this.options.hideDisabled)optionSelector+=":not(:disabled)";var selectOptions=this.$element[0].querySelectorAll("select > *"+optionSelector);function addDivider(config){var previousData=mainData[mainData.length-1];if(previousData&&previousData.type==="divider"&&(previousData.optID||config.optID)){return}config=config||{};config.type="divider";mainData.push(config)}function addOption(option,config){config=config||{};config.divider=option.getAttribute("data-divider")==="true";if(config.divider){addDivider({optID:config.optID})}else{var liIndex=mainData.length,cssText=option.style.cssText,inlineStyle=cssText?htmlEscape(cssText):"",optionClass=(option.className||"")+(config.optgroupClass||"");if(config.optID)optionClass="opt "+optionClass;config.optionClass=optionClass.trim();config.inlineStyle=inlineStyle;config.text=option.textContent;config.content=option.getAttribute("data-content");config.tokens=option.getAttribute("data-tokens");config.subtext=option.getAttribute("data-subtext");config.icon=option.getAttribute("data-icon");option.liIndex=liIndex;config.display=config.content||config.text;config.type="option";config.index=liIndex;config.option=option;config.selected=!!option.selected;config.disabled=config.disabled||!!option.disabled;mainData.push(config)}}function addOptgroup(index,selectOptions){var optgroup=selectOptions[index],previous=selectOptions[index-1],next=selectOptions[index+1],options=optgroup.querySelectorAll("option"+optionSelector);if(!options.length)return;var config={display:htmlEscape(optgroup.label),subtext:optgroup.getAttribute("data-subtext"),icon:optgroup.getAttribute("data-icon"),type:"optgroup-label",optgroupClass:" "+(optgroup.className||"")},headerIndex,lastIndex;optID++;if(previous){addDivider({optID:optID})}config.optID=optID;mainData.push(config);for(var j=0,len=options.length;j<len;j++){var option=options[j];if(j===0){headerIndex=mainData.length-1;lastIndex=headerIndex+len}addOption(option,{headerIndex:headerIndex,lastIndex:lastIndex,optID:config.optID,optgroupClass:config.optgroupClass,disabled:optgroup.disabled})}if(next){addDivider({optID:optID})}}for(var len=selectOptions.length;startIndex<len;startIndex++){var item=selectOptions[startIndex];if(item.tagName!=="OPTGROUP"){addOption(item,{})}else{addOptgroup(startIndex,selectOptions)}}this.selectpicker.main.data=this.selectpicker.current.data=mainData},buildList:function(){var that=this,selectData=this.selectpicker.main.data,mainElements=[],widestOptionLength=0;if((that.options.showTick||that.multiple)&&!elementTemplates.checkMark.parentNode){elementTemplates.checkMark.className=this.options.iconBase+" "+that.options.tickIcon+" check-mark";elementTemplates.a.appendChild(elementTemplates.checkMark)}function buildElement(item){var liElement,combinedLength=0;switch(item.type){case"divider":liElement=generateOption.li(false,classNames.DIVIDER,item.optID?item.optID+"div":undefined);break;case"option":liElement=generateOption.li(generateOption.a(generateOption.text.call(that,item),item.optionClass,item.inlineStyle),"",item.optID);if(liElement.firstChild){liElement.firstChild.id=that.selectId+"-"+item.index}break;case"optgroup-label":liElement=generateOption.li(generateOption.label.call(that,item),"dropdown-header"+item.optgroupClass,item.optID);break}mainElements.push(liElement);if(item.display)combinedLength+=item.display.length;if(item.subtext)combinedLength+=item.subtext.length;if(item.icon)combinedLength+=1;if(combinedLength>widestOptionLength){widestOptionLength=combinedLength;that.selectpicker.view.widestOption=mainElements[mainElements.length-1]}}for(var len=selectData.length,i=0;i<len;i++){var item=selectData[i];buildElement(item)}this.selectpicker.main.elements=this.selectpicker.current.elements=mainElements},findLis:function(){return this.$menuInner.find(".inner > li")},render:function(){var that=this,element=this.$element[0],placeholderSelected=this.setPlaceholder()&&element.selectedIndex===0,selectedOptions=getSelectedOptions(element,this.options.hideDisabled),selectedCount=selectedOptions.length,button=this.$button[0],buttonInner=button.querySelector(".filter-option-inner-inner"),multipleSeparator=document.createTextNode(this.options.multipleSeparator),titleFragment=elementTemplates.fragment.cloneNode(false),showCount,countMax,hasContent=false;button.classList.toggle("bs-placeholder",that.multiple?!selectedCount:!getSelectValues(element,selectedOptions));this.tabIndex();if(this.options.selectedTextFormat==="static"){titleFragment=generateOption.text.call(this,{text:this.options.title},true)}else{showCount=this.multiple&&this.options.selectedTextFormat.indexOf("count")!==-1&&selectedCount>1;if(showCount){countMax=this.options.selectedTextFormat.split(">");showCount=countMax.length>1&&selectedCount>countMax[1]||countMax.length===1&&selectedCount>=2}if(showCount===false){if(!placeholderSelected){for(var selectedIndex=0;selectedIndex<selectedCount;selectedIndex++){if(selectedIndex<50){var option=selectedOptions[selectedIndex],thisData=this.selectpicker.main.data[option.liIndex],titleOptions={};if(this.multiple&&selectedIndex>0){titleFragment.appendChild(multipleSeparator.cloneNode(false))}if(option.title){titleOptions.text=option.title}else if(thisData){if(thisData.content&&that.options.showContent){titleOptions.content=thisData.content.toString();hasContent=true}else{if(that.options.showIcon){titleOptions.icon=thisData.icon}if(that.options.showSubtext&&!that.multiple&&thisData.subtext)titleOptions.subtext=" "+thisData.subtext;titleOptions.text=option.textContent.trim()}}titleFragment.appendChild(generateOption.text.call(this,titleOptions,true))}else{break}}if(selectedCount>49){titleFragment.appendChild(document.createTextNode("..."))}}}else{var optionSelector=':not([hidden]):not([data-hidden="true"]):not([data-divider="true"])';if(this.options.hideDisabled)optionSelector+=":not(:disabled)";var totalCount=this.$element[0].querySelectorAll("select > option"+optionSelector+", optgroup"+optionSelector+" option"+optionSelector).length,tr8nText=typeof this.options.countSelectedText==="function"?this.options.countSelectedText(selectedCount,totalCount):this.options.countSelectedText;titleFragment=generateOption.text.call(this,{text:tr8nText.replace("{0}",selectedCount.toString()).replace("{1}",totalCount.toString())},true)}}if(this.options.title==undefined){this.options.title=this.$element.attr("title")}if(!titleFragment.childNodes.length){titleFragment=generateOption.text.call(this,{text:typeof this.options.title!=="undefined"?this.options.title:this.options.noneSelectedText},true)}button.title=titleFragment.textContent.replace(/<[^>]*>?/g,"").trim();if(this.options.sanitize&&hasContent){sanitizeHtml([titleFragment],that.options.whiteList,that.options.sanitizeFn)}buttonInner.innerHTML="";buttonInner.appendChild(titleFragment);if(version.major<4&&this.$newElement[0].classList.contains("bs3-has-addon")){var filterExpand=button.querySelector(".filter-expand"),clone=buttonInner.cloneNode(true);clone.className="filter-expand";if(filterExpand){button.replaceChild(clone,filterExpand)}else{button.appendChild(clone)}}this.$element.trigger("rendered"+EVENT_KEY)},setStyle:function(newStyle,status){var button=this.$button[0],newElement=this.$newElement[0],style=this.options.style.trim(),buttonClass;if(this.$element.attr("class")){this.$newElement.addClass(this.$element.attr("class").replace(/selectpicker|mobile-device|bs-select-hidden|validate\[.*\]/gi,""))}if(version.major<4){newElement.classList.add("bs3");if(newElement.parentNode.classList.contains("input-group")&&(newElement.previousElementSibling||newElement.nextElementSibling)&&(newElement.previousElementSibling||newElement.nextElementSibling).classList.contains("input-group-addon")){newElement.classList.add("bs3-has-addon")}}if(newStyle){buttonClass=newStyle.trim()}else{buttonClass=style}if(status=="add"){if(buttonClass)button.classList.add.apply(button.classList,buttonClass.split(" "))}else if(status=="remove"){if(buttonClass)button.classList.remove.apply(button.classList,buttonClass.split(" "))}else{if(style)button.classList.remove.apply(button.classList,style.split(" "));if(buttonClass)button.classList.add.apply(button.classList,buttonClass.split(" "))}},liHeight:function(refresh){if(!refresh&&(this.options.size===false||Object.keys(this.sizeInfo).length))return;var newElement=document.createElement("div"),menu=document.createElement("div"),menuInner=document.createElement("div"),menuInnerInner=document.createElement("ul"),divider=document.createElement("li"),dropdownHeader=document.createElement("li"),li=document.createElement("li"),a=document.createElement("a"),text=document.createElement("span"),header=this.options.header&&this.$menu.find("."+classNames.POPOVERHEADER).length>0?this.$menu.find("."+classNames.POPOVERHEADER)[0].cloneNode(true):null,search=this.options.liveSearch?document.createElement("div"):null,actions=this.options.actionsBox&&this.multiple&&this.$menu.find(".bs-actionsbox").length>0?this.$menu.find(".bs-actionsbox")[0].cloneNode(true):null,doneButton=this.options.doneButton&&this.multiple&&this.$menu.find(".bs-donebutton").length>0?this.$menu.find(".bs-donebutton")[0].cloneNode(true):null,firstOption=this.$element.find("option")[0];this.sizeInfo.selectWidth=this.$newElement[0].offsetWidth;text.className="text";a.className="dropdown-item "+(firstOption?firstOption.className:"");newElement.className=this.$menu[0].parentNode.className+" "+classNames.SHOW;newElement.style.width=0;if(this.options.width==="auto")menu.style.minWidth=0;menu.className=classNames.MENU+" "+classNames.SHOW;menuInner.className="inner "+classNames.SHOW;menuInnerInner.className=classNames.MENU+" inner "+(version.major==="4"?classNames.SHOW:"");divider.className=classNames.DIVIDER;dropdownHeader.className="dropdown-header";text.appendChild(document.createTextNode("​"));a.appendChild(text);li.appendChild(a);dropdownHeader.appendChild(text.cloneNode(true));if(this.selectpicker.view.widestOption){menuInnerInner.appendChild(this.selectpicker.view.widestOption.cloneNode(true))}menuInnerInner.appendChild(li);menuInnerInner.appendChild(divider);menuInnerInner.appendChild(dropdownHeader);if(header)menu.appendChild(header);if(search){var input=document.createElement("input");search.className="bs-searchbox";input.className="form-control";search.appendChild(input);menu.appendChild(search)}if(actions)menu.appendChild(actions);menuInner.appendChild(menuInnerInner);menu.appendChild(menuInner);if(doneButton)menu.appendChild(doneButton);newElement.appendChild(menu);document.body.appendChild(newElement);var liHeight=li.offsetHeight,dropdownHeaderHeight=dropdownHeader?dropdownHeader.offsetHeight:0,headerHeight=header?header.offsetHeight:0,searchHeight=search?search.offsetHeight:0,actionsHeight=actions?actions.offsetHeight:0,doneButtonHeight=doneButton?doneButton.offsetHeight:0,dividerHeight=$(divider).outerHeight(true),menuStyle=window.getComputedStyle?window.getComputedStyle(menu):false,menuWidth=menu.offsetWidth,$menu=menuStyle?null:$(menu),menuPadding={vert:toInteger(menuStyle?menuStyle.paddingTop:$menu.css("paddingTop"))+toInteger(menuStyle?menuStyle.paddingBottom:$menu.css("paddingBottom"))+toInteger(menuStyle?menuStyle.borderTopWidth:$menu.css("borderTopWidth"))+toInteger(menuStyle?menuStyle.borderBottomWidth:$menu.css("borderBottomWidth")),horiz:toInteger(menuStyle?menuStyle.paddingLeft:$menu.css("paddingLeft"))+toInteger(menuStyle?menuStyle.paddingRight:$menu.css("paddingRight"))+toInteger(menuStyle?menuStyle.borderLeftWidth:$menu.css("borderLeftWidth"))+toInteger(menuStyle?menuStyle.borderRightWidth:$menu.css("borderRightWidth"))},menuExtras={vert:menuPadding.vert+toInteger(menuStyle?menuStyle.marginTop:$menu.css("marginTop"))+toInteger(menuStyle?menuStyle.marginBottom:$menu.css("marginBottom"))+2,horiz:menuPadding.horiz+toInteger(menuStyle?menuStyle.marginLeft:$menu.css("marginLeft"))+toInteger(menuStyle?menuStyle.marginRight:$menu.css("marginRight"))+2},scrollBarWidth;menuInner.style.overflowY="scroll";scrollBarWidth=menu.offsetWidth-menuWidth;document.body.removeChild(newElement);this.sizeInfo.liHeight=liHeight;this.sizeInfo.dropdownHeaderHeight=dropdownHeaderHeight;this.sizeInfo.headerHeight=headerHeight;this.sizeInfo.searchHeight=searchHeight;this.sizeInfo.actionsHeight=actionsHeight;this.sizeInfo.doneButtonHeight=doneButtonHeight;this.sizeInfo.dividerHeight=dividerHeight;this.sizeInfo.menuPadding=menuPadding;this.sizeInfo.menuExtras=menuExtras;this.sizeInfo.menuWidth=menuWidth;this.sizeInfo.menuInnerInnerWidth=menuWidth-menuPadding.horiz;this.sizeInfo.totalMenuWidth=this.sizeInfo.menuWidth;this.sizeInfo.scrollBarWidth=scrollBarWidth;this.sizeInfo.selectHeight=this.$newElement[0].offsetHeight;this.setPositionData()},getSelectPosition:function(){var that=this,$window=$(window),pos=that.$newElement.offset(),$container=$(that.options.container),containerPos;if(that.options.container&&$container.length&&!$container.is("body")){containerPos=$container.offset();containerPos.top+=parseInt($container.css("borderTopWidth"));containerPos.left+=parseInt($container.css("borderLeftWidth"))}else{containerPos={top:0,left:0}}var winPad=that.options.windowPadding;this.sizeInfo.selectOffsetTop=pos.top-containerPos.top-$window.scrollTop();this.sizeInfo.selectOffsetBot=$window.height()-this.sizeInfo.selectOffsetTop-this.sizeInfo.selectHeight-containerPos.top-winPad[2];this.sizeInfo.selectOffsetLeft=pos.left-containerPos.left-$window.scrollLeft();this.sizeInfo.selectOffsetRight=$window.width()-this.sizeInfo.selectOffsetLeft-this.sizeInfo.selectWidth-containerPos.left-winPad[1];this.sizeInfo.selectOffsetTop-=winPad[0];this.sizeInfo.selectOffsetLeft-=winPad[3]},setMenuSize:function(isAuto){this.getSelectPosition();var selectWidth=this.sizeInfo.selectWidth,liHeight=this.sizeInfo.liHeight,headerHeight=this.sizeInfo.headerHeight,searchHeight=this.sizeInfo.searchHeight,actionsHeight=this.sizeInfo.actionsHeight,doneButtonHeight=this.sizeInfo.doneButtonHeight,divHeight=this.sizeInfo.dividerHeight,menuPadding=this.sizeInfo.menuPadding,menuInnerHeight,menuHeight,divLength=0,minHeight,_minHeight,maxHeight,menuInnerMinHeight,estimate,isDropup;if(this.options.dropupAuto){estimate=liHeight*this.selectpicker.current.elements.length+menuPadding.vert;isDropup=this.sizeInfo.selectOffsetTop-this.sizeInfo.selectOffsetBot>this.sizeInfo.menuExtras.vert&&estimate+this.sizeInfo.menuExtras.vert+50>this.sizeInfo.selectOffsetBot;if(this.selectpicker.isSearching===true){isDropup=this.selectpicker.dropup}this.$newElement.toggleClass(classNames.DROPUP,isDropup);this.selectpicker.dropup=isDropup}if(this.options.size==="auto"){_minHeight=this.selectpicker.current.elements.length>3?this.sizeInfo.liHeight*3+this.sizeInfo.menuExtras.vert-2:0;menuHeight=this.sizeInfo.selectOffsetBot-this.sizeInfo.menuExtras.vert;minHeight=_minHeight+headerHeight+searchHeight+actionsHeight+doneButtonHeight;menuInnerMinHeight=Math.max(_minHeight-menuPadding.vert,0);if(this.$newElement.hasClass(classNames.DROPUP)){menuHeight=this.sizeInfo.selectOffsetTop-this.sizeInfo.menuExtras.vert}maxHeight=menuHeight;menuInnerHeight=menuHeight-headerHeight-searchHeight-actionsHeight-doneButtonHeight-menuPadding.vert}else if(this.options.size&&this.options.size!="auto"&&this.selectpicker.current.elements.length>this.options.size){for(var i=0;i<this.options.size;i++){if(this.selectpicker.current.data[i].type==="divider")divLength++}menuHeight=liHeight*this.options.size+divLength*divHeight+menuPadding.vert;menuInnerHeight=menuHeight-menuPadding.vert;maxHeight=menuHeight+headerHeight+searchHeight+actionsHeight+doneButtonHeight;minHeight=menuInnerMinHeight=""}this.$menu.css({"max-height":maxHeight+"px",overflow:"hidden","min-height":minHeight+"px"});this.$menuInner.css({"max-height":menuInnerHeight+"px","overflow-y":"auto","min-height":menuInnerMinHeight+"px"});this.sizeInfo.menuInnerHeight=Math.max(menuInnerHeight,1);if(this.selectpicker.current.data.length&&this.selectpicker.current.data[this.selectpicker.current.data.length-1].position>this.sizeInfo.menuInnerHeight){this.sizeInfo.hasScrollBar=true;this.sizeInfo.totalMenuWidth=this.sizeInfo.menuWidth+this.sizeInfo.scrollBarWidth}if(this.options.dropdownAlignRight==="auto"){this.$menu.toggleClass(classNames.MENURIGHT,this.sizeInfo.selectOffsetLeft>this.sizeInfo.selectOffsetRight&&this.sizeInfo.selectOffsetRight<this.sizeInfo.totalMenuWidth-selectWidth)}if(this.dropdown&&this.dropdown._popper)this.dropdown._popper.update()},setSize:function(refresh){this.liHeight(refresh);if(this.options.header)this.$menu.css("padding-top",0);if(this.options.size!==false){var that=this,$window=$(window);this.setMenuSize();if(this.options.liveSearch){this.$searchbox.off("input.setMenuSize propertychange.setMenuSize").on("input.setMenuSize propertychange.setMenuSize",function(){return that.setMenuSize()})}if(this.options.size==="auto"){$window.off("resize"+EVENT_KEY+"."+this.selectId+".setMenuSize"+" scroll"+EVENT_KEY+"."+this.selectId+".setMenuSize").on("resize"+EVENT_KEY+"."+this.selectId+".setMenuSize"+" scroll"+EVENT_KEY+"."+this.selectId+".setMenuSize",function(){return that.setMenuSize()})}else if(this.options.size&&this.options.size!="auto"&&this.selectpicker.current.elements.length>this.options.size){$window.off("resize"+EVENT_KEY+"."+this.selectId+".setMenuSize"+" scroll"+EVENT_KEY+"."+this.selectId+".setMenuSize")}}this.createView(false,true,refresh)},setWidth:function(){var that=this;if(this.options.width==="auto"){requestAnimationFrame(function(){that.$menu.css("min-width","0");that.$element.on("loaded"+EVENT_KEY,function(){that.liHeight();that.setMenuSize();var $selectClone=that.$newElement.clone().appendTo("body"),btnWidth=$selectClone.css("width","auto").children("button").outerWidth();$selectClone.remove();that.sizeInfo.selectWidth=Math.max(that.sizeInfo.totalMenuWidth,btnWidth);that.$newElement.css("width",that.sizeInfo.selectWidth+"px")})})}else if(this.options.width==="fit"){this.$menu.css("min-width","");this.$newElement.css("width","").addClass("fit-width")}else if(this.options.width){this.$menu.css("min-width","");this.$newElement.css("width",this.options.width)}else{this.$menu.css("min-width","");this.$newElement.css("width","")}if(this.$newElement.hasClass("fit-width")&&this.options.width!=="fit"){this.$newElement[0].classList.remove("fit-width")}},selectPosition:function(){this.$bsContainer=$('<div class="bs-container" />');var that=this,$container=$(this.options.container),pos,containerPos,actualHeight,getPlacement=function($element){var containerPosition={},display=that.options.display||($.fn.dropdown.Constructor.Default?$.fn.dropdown.Constructor.Default.display:false);that.$bsContainer.addClass($element.attr("class").replace(/form-control|fit-width/gi,"")).toggleClass(classNames.DROPUP,$element.hasClass(classNames.DROPUP));pos=$element.offset();if(!$container.is("body")){containerPos=$container.offset();containerPos.top+=parseInt($container.css("borderTopWidth"))-$container.scrollTop();containerPos.left+=parseInt($container.css("borderLeftWidth"))-$container.scrollLeft()}else{containerPos={top:0,left:0}}actualHeight=$element.hasClass(classNames.DROPUP)?0:$element[0].offsetHeight;if(version.major<4||display==="static"){containerPosition.top=pos.top-containerPos.top+actualHeight;containerPosition.left=pos.left-containerPos.left}containerPosition.width=$element[0].offsetWidth;that.$bsContainer.css(containerPosition)};this.$button.on("click.bs.dropdown.data-api",function(){if(that.isDisabled()){return}getPlacement(that.$newElement);that.$bsContainer.appendTo(that.options.container).toggleClass(classNames.SHOW,!that.$button.hasClass(classNames.SHOW)).append(that.$menu)});$(window).off("resize"+EVENT_KEY+"."+this.selectId+" scroll"+EVENT_KEY+"."+this.selectId).on("resize"+EVENT_KEY+"."+this.selectId+" scroll"+EVENT_KEY+"."+this.selectId,function(){var isActive=that.$newElement.hasClass(classNames.SHOW);if(isActive)getPlacement(that.$newElement)});this.$element.on("hide"+EVENT_KEY,function(){that.$menu.data("height",that.$menu.height());that.$bsContainer.detach()})},setOptionStatus:function(selectedOnly){var that=this;that.noScroll=false;if(that.selectpicker.view.visibleElements&&that.selectpicker.view.visibleElements.length){for(var i=0;i<that.selectpicker.view.visibleElements.length;i++){var liData=that.selectpicker.current.data[i+that.selectpicker.view.position0],option=liData.option;if(option){if(selectedOnly!==true){that.setDisabled(liData.index,liData.disabled)}that.setSelected(liData.index,option.selected)}}}},setSelected:function(index,selected){var li=this.selectpicker.main.elements[index],liData=this.selectpicker.main.data[index],activeIndexIsSet=this.activeIndex!==undefined,thisIsActive=this.activeIndex===index,prevActive,a,keepActive=thisIsActive||selected&&!this.multiple&&!activeIndexIsSet;liData.selected=selected;a=li.firstChild;if(selected){this.selectedIndex=index}li.classList.toggle("selected",selected);if(keepActive){this.focusItem(li,liData);this.selectpicker.view.currentActive=li;this.activeIndex=index}else{this.defocusItem(li)}if(a){a.classList.toggle("selected",selected);if(selected){a.setAttribute("aria-selected",true)}else{if(this.multiple){a.setAttribute("aria-selected",false)}else{a.removeAttribute("aria-selected")}}}if(!keepActive&&!activeIndexIsSet&&selected&&this.prevActiveIndex!==undefined){prevActive=this.selectpicker.main.elements[this.prevActiveIndex];this.defocusItem(prevActive)}},setDisabled:function(index,disabled){var li=this.selectpicker.main.elements[index],a;this.selectpicker.main.data[index].disabled=disabled;a=li.firstChild;li.classList.toggle(classNames.DISABLED,disabled);if(a){if(version.major==="4")a.classList.toggle(classNames.DISABLED,disabled);if(disabled){a.setAttribute("aria-disabled",disabled);a.setAttribute("tabindex",-1)}else{a.removeAttribute("aria-disabled");a.setAttribute("tabindex",0)}}},isDisabled:function(){return this.$element[0].disabled},checkDisabled:function(){if(this.isDisabled()){this.$newElement[0].classList.add(classNames.DISABLED);this.$button.addClass(classNames.DISABLED).attr("tabindex",-1).attr("aria-disabled",true)}else{if(this.$button[0].classList.contains(classNames.DISABLED)){this.$newElement[0].classList.remove(classNames.DISABLED);this.$button.removeClass(classNames.DISABLED).attr("aria-disabled",false)}if(this.$button.attr("tabindex")==-1&&!this.$element.data("tabindex")){this.$button.removeAttr("tabindex")}}},tabIndex:function(){if(this.$element.data("tabindex")!==this.$element.attr("tabindex")&&(this.$element.attr("tabindex")!==-98&&this.$element.attr("tabindex")!=="-98")){this.$element.data("tabindex",this.$element.attr("tabindex"));this.$button.attr("tabindex",this.$element.data("tabindex"))}this.$element.attr("tabindex",-98)},clickListener:function(){var that=this,$document=$(document);$document.data("spaceSelect",false);this.$button.on("keyup",function(e){if(/(32)/.test(e.keyCode.toString(10))&&$document.data("spaceSelect")){e.preventDefault();$document.data("spaceSelect",false)}});this.$newElement.on("show.bs.dropdown",function(){if(version.major>3&&!that.dropdown){that.dropdown=that.$button.data("bs.dropdown");that.dropdown._menu=that.$menu[0]}});this.$button.on("click.bs.dropdown.data-api",function(){if(!that.$newElement.hasClass(classNames.SHOW)){that.setSize()}});function setFocus(){if(that.options.liveSearch){that.$searchbox.trigger("focus")}else{that.$menuInner.trigger("focus")}}function checkPopperExists(){if(that.dropdown&&that.dropdown._popper&&that.dropdown._popper.state.isCreated){setFocus()}else{requestAnimationFrame(checkPopperExists)}}this.$element.on("shown"+EVENT_KEY,function(){if(that.$menuInner[0].scrollTop!==that.selectpicker.view.scrollTop){that.$menuInner[0].scrollTop=that.selectpicker.view.scrollTop}if(version.major>3){requestAnimationFrame(checkPopperExists)}else{setFocus()}});this.$menuInner.on("mouseenter","li a",function(e){var hoverLi=this.parentElement,position0=that.isVirtual()?that.selectpicker.view.position0:0,index=Array.prototype.indexOf.call(hoverLi.parentElement.children,hoverLi),hoverData=that.selectpicker.current.data[index+position0];that.focusItem(hoverLi,hoverData,true)});this.$menuInner.on("click","li a",function(e,retainActive){var $this=$(this),element=that.$element[0],position0=that.isVirtual()?that.selectpicker.view.position0:0,clickedData=that.selectpicker.current.data[$this.parent().index()+position0],clickedIndex=clickedData.index,prevValue=getSelectValues(element),prevIndex=element.selectedIndex,prevOption=element.options[prevIndex],triggerChange=true;if(that.multiple&&that.options.maxOptions!==1){e.stopPropagation()}e.preventDefault();if(!that.isDisabled()&&!$this.parent().hasClass(classNames.DISABLED)){var option=clickedData.option,$option=$(option),state=option.selected,$optgroup=$option.parent("optgroup"),$optgroupOptions=$optgroup.find("option"),maxOptions=that.options.maxOptions,maxOptionsGrp=$optgroup.data("maxOptions")||false;if(clickedIndex===that.activeIndex)retainActive=true;if(!retainActive){that.prevActiveIndex=that.activeIndex;that.activeIndex=undefined}if(!that.multiple){if(prevOption)prevOption.selected=false;option.selected=true;that.setSelected(clickedIndex,true)}else{option.selected=!state;that.setSelected(clickedIndex,!state);$this.trigger("blur");if(maxOptions!==false||maxOptionsGrp!==false){var maxReached=maxOptions<getSelectedOptions(element).length,maxReachedGrp=maxOptionsGrp<$optgroup.find("option:selected").length;if(maxOptions&&maxReached||maxOptionsGrp&&maxReachedGrp){if(maxOptions&&maxOptions==1){element.selectedIndex=-1;option.selected=true;that.setOptionStatus(true)}else if(maxOptionsGrp&&maxOptionsGrp==1){for(var i=0;i<$optgroupOptions.length;i++){var _option=$optgroupOptions[i];_option.selected=false;that.setSelected(_option.liIndex,false)}option.selected=true;that.setSelected(clickedIndex,true)}else{var maxOptionsText=typeof that.options.maxOptionsText==="string"?[that.options.maxOptionsText,that.options.maxOptionsText]:that.options.maxOptionsText,maxOptionsArr=typeof maxOptionsText==="function"?maxOptionsText(maxOptions,maxOptionsGrp):maxOptionsText,maxTxt=maxOptionsArr[0].replace("{n}",maxOptions),maxTxtGrp=maxOptionsArr[1].replace("{n}",maxOptionsGrp),$notify=$('<div class="notify"></div>');if(maxOptionsArr[2]){maxTxt=maxTxt.replace("{var}",maxOptionsArr[2][maxOptions>1?0:1]);maxTxtGrp=maxTxtGrp.replace("{var}",maxOptionsArr[2][maxOptionsGrp>1?0:1])}option.selected=false;that.$menu.append($notify);if(maxOptions&&maxReached){$notify.append($("<div>"+maxTxt+"</div>"));triggerChange=false;that.$element.trigger("maxReached"+EVENT_KEY)}if(maxOptionsGrp&&maxReachedGrp){$notify.append($("<div>"+maxTxtGrp+"</div>"));triggerChange=false;that.$element.trigger("maxReachedGrp"+EVENT_KEY)}setTimeout(function(){that.setSelected(clickedIndex,false)},10);$notify[0].classList.add("fadeOut");setTimeout(function(){$notify.remove()},1050)}}}}if(!that.multiple||that.multiple&&that.options.maxOptions===1){that.$button.trigger("focus")}else if(that.options.liveSearch){that.$searchbox.trigger("focus")}if(triggerChange){if(that.multiple||prevIndex!==element.selectedIndex){changedArguments=[option.index,$option.prop("selected"),prevValue];that.$element.triggerNative("change")}}}});this.$menu.on("click","li."+classNames.DISABLED+" a, ."+classNames.POPOVERHEADER+", ."+classNames.POPOVERHEADER+" :not(.close)",function(e){if(e.currentTarget==this){e.preventDefault();e.stopPropagation();if(that.options.liveSearch&&!$(e.target).hasClass("close")){that.$searchbox.trigger("focus")}else{that.$button.trigger("focus")}}});this.$menuInner.on("click",".divider, .dropdown-header",function(e){e.preventDefault();e.stopPropagation();if(that.options.liveSearch){that.$searchbox.trigger("focus")}else{that.$button.trigger("focus")}});this.$menu.on("click","."+classNames.POPOVERHEADER+" .close",function(){that.$button.trigger("click")});this.$searchbox.on("click",function(e){e.stopPropagation()});this.$menu.on("click",".actions-btn",function(e){if(that.options.liveSearch){that.$searchbox.trigger("focus")}else{that.$button.trigger("focus")}e.preventDefault();e.stopPropagation();if($(this).hasClass("bs-select-all")){that.selectAll()}else{that.deselectAll()}});this.$element.on("change"+EVENT_KEY,function(){that.render();that.$element.trigger("changed"+EVENT_KEY,changedArguments);changedArguments=null}).on("focus"+EVENT_KEY,function(){if(!that.options.mobile)that.$button.trigger("focus")})},liveSearchListener:function(){var that=this,noResults=document.createElement("li");this.$button.on("click.bs.dropdown.data-api",function(){if(!!that.$searchbox.val()){that.$searchbox.val("")}});this.$searchbox.on("click.bs.dropdown.data-api focus.bs.dropdown.data-api touchend.bs.dropdown.data-api",function(e){e.stopPropagation()});this.$searchbox.on("input propertychange",function(){var searchValue=that.$searchbox.val();that.selectpicker.search.elements=[];that.selectpicker.search.data=[];if(searchValue){var i,searchMatch=[],q=searchValue.toUpperCase(),cache={},cacheArr=[],searchStyle=that._searchStyle(),normalizeSearch=that.options.liveSearchNormalize;if(normalizeSearch)q=normalizeToBase(q);for(var i=0;i<that.selectpicker.main.data.length;i++){var li=that.selectpicker.main.data[i];if(!cache[i]){cache[i]=stringSearch(li,q,searchStyle,normalizeSearch)}if(cache[i]&&li.headerIndex!==undefined&&cacheArr.indexOf(li.headerIndex)===-1){if(li.headerIndex>0){cache[li.headerIndex-1]=true;cacheArr.push(li.headerIndex-1)}cache[li.headerIndex]=true;cacheArr.push(li.headerIndex);cache[li.lastIndex+1]=true}if(cache[i]&&li.type!=="optgroup-label")cacheArr.push(i)}for(var i=0,cacheLen=cacheArr.length;i<cacheLen;i++){var index=cacheArr[i],prevIndex=cacheArr[i-1],li=that.selectpicker.main.data[index],liPrev=that.selectpicker.main.data[prevIndex];if(li.type!=="divider"||li.type==="divider"&&liPrev&&liPrev.type!=="divider"&&cacheLen-1!==i){that.selectpicker.search.data.push(li);searchMatch.push(that.selectpicker.main.elements[index])}}that.activeIndex=undefined;that.noScroll=true;that.$menuInner.scrollTop(0);that.selectpicker.search.elements=searchMatch;that.createView(true);if(!searchMatch.length){noResults.className="no-results";noResults.innerHTML=that.options.noneResultsText.replace("{0}",'"'+htmlEscape(searchValue)+'"');that.$menuInner[0].firstChild.appendChild(noResults)}}else{that.$menuInner.scrollTop(0);that.createView(false)}})},_searchStyle:function(){return this.options.liveSearchStyle||"contains"},val:function(value){var element=this.$element[0];if(typeof value!=="undefined"){var prevValue=getSelectValues(element);changedArguments=[null,null,prevValue];this.$element.val(value).trigger("changed"+EVENT_KEY,changedArguments);if(this.$newElement.hasClass(classNames.SHOW)){if(this.multiple){this.setOptionStatus(true)}else{var liSelectedIndex=(element.options[element.selectedIndex]||{}).liIndex;if(typeof liSelectedIndex==="number"){this.setSelected(this.selectedIndex,false);this.setSelected(liSelectedIndex,true)}}}this.render();changedArguments=null;return this.$element}else{return this.$element.val()}},changeAll:function(status){if(!this.multiple)return;if(typeof status==="undefined")status=true;var element=this.$element[0],previousSelected=0,currentSelected=0,prevValue=getSelectValues(element);element.classList.add("bs-select-hidden");for(var i=0,data=this.selectpicker.current.data,len=data.length;i<len;i++){var liData=data[i],option=liData.option;if(option&&!liData.disabled&&liData.type!=="divider"){if(liData.selected)previousSelected++;option.selected=status;if(status===true)currentSelected++}}element.classList.remove("bs-select-hidden");if(previousSelected===currentSelected)return;this.setOptionStatus();changedArguments=[null,null,prevValue];this.$element.triggerNative("change")},selectAll:function(){return this.changeAll(true)},deselectAll:function(){return this.changeAll(false)},toggle:function(e){e=e||window.event;if(e)e.stopPropagation();this.$button.trigger("click.bs.dropdown.data-api")},keydown:function(e){var $this=$(this),isToggle=$this.hasClass("dropdown-toggle"),$parent=isToggle?$this.closest(".dropdown"):$this.closest(Selector.MENU),that=$parent.data("this"),$items=that.findLis(),index,isActive,liActive,activeLi,offset,updateScroll=false,downOnTab=e.which===keyCodes.TAB&&!isToggle&&!that.options.selectOnTab,isArrowKey=REGEXP_ARROW.test(e.which)||downOnTab,scrollTop=that.$menuInner[0].scrollTop,isVirtual=that.isVirtual(),position0=isVirtual===true?that.selectpicker.view.position0:0;if(e.which>=112&&e.which<=123)return;isActive=that.$newElement.hasClass(classNames.SHOW);if(!isActive&&(isArrowKey||e.which>=48&&e.which<=57||e.which>=96&&e.which<=105||e.which>=65&&e.which<=90)){that.$button.trigger("click.bs.dropdown.data-api");if(that.options.liveSearch){that.$searchbox.trigger("focus");return}}if(e.which===keyCodes.ESCAPE&&isActive){e.preventDefault();that.$button.trigger("click.bs.dropdown.data-api").trigger("focus")}if(isArrowKey){if(!$items.length)return;liActive=that.selectpicker.main.elements[that.activeIndex];index=liActive?Array.prototype.indexOf.call(liActive.parentElement.children,liActive):-1;if(index!==-1){that.defocusItem(liActive)}if(e.which===keyCodes.ARROW_UP){if(index!==-1)index--;if(index+position0<0)index+=$items.length;if(!that.selectpicker.view.canHighlight[index+position0]){index=that.selectpicker.view.canHighlight.slice(0,index+position0).lastIndexOf(true)-position0;if(index===-1)index=$items.length-1}}else if(e.which===keyCodes.ARROW_DOWN||downOnTab){index++;if(index+position0>=that.selectpicker.view.canHighlight.length)index=0;if(!that.selectpicker.view.canHighlight[index+position0]){index=index+1+that.selectpicker.view.canHighlight.slice(index+position0+1).indexOf(true)}}e.preventDefault();var liActiveIndex=position0+index;if(e.which===keyCodes.ARROW_UP){if(position0===0&&index===$items.length-1){that.$menuInner[0].scrollTop=that.$menuInner[0].scrollHeight;liActiveIndex=that.selectpicker.current.elements.length-1}else{activeLi=that.selectpicker.current.data[liActiveIndex];offset=activeLi.position-activeLi.height;updateScroll=offset<scrollTop}}else if(e.which===keyCodes.ARROW_DOWN||downOnTab){if(index===0){that.$menuInner[0].scrollTop=0;liActiveIndex=0}else{activeLi=that.selectpicker.current.data[liActiveIndex];offset=activeLi.position-that.sizeInfo.menuInnerHeight;updateScroll=offset>scrollTop}}liActive=that.selectpicker.current.elements[liActiveIndex];that.activeIndex=that.selectpicker.current.data[liActiveIndex].index;that.focusItem(liActive);that.selectpicker.view.currentActive=liActive;if(updateScroll)that.$menuInner[0].scrollTop=offset;if(that.options.liveSearch){that.$searchbox.trigger("focus")}else{$this.trigger("focus")}}else if(!$this.is("input")&&!REGEXP_TAB_OR_ESCAPE.test(e.which)||e.which===keyCodes.SPACE&&that.selectpicker.keydown.keyHistory){var searchMatch,matches=[],keyHistory;e.preventDefault();that.selectpicker.keydown.keyHistory+=keyCodeMap[e.which];if(that.selectpicker.keydown.resetKeyHistory.cancel)clearTimeout(that.selectpicker.keydown.resetKeyHistory.cancel);that.selectpicker.keydown.resetKeyHistory.cancel=that.selectpicker.keydown.resetKeyHistory.start();keyHistory=that.selectpicker.keydown.keyHistory;if(/^(.)\1+$/.test(keyHistory)){keyHistory=keyHistory.charAt(0)}for(var i=0;i<that.selectpicker.current.data.length;i++){var li=that.selectpicker.current.data[i],hasMatch;hasMatch=stringSearch(li,keyHistory,"startsWith",true);if(hasMatch&&that.selectpicker.view.canHighlight[i]){matches.push(li.index)}}if(matches.length){var matchIndex=0;$items.removeClass("active").find("a").removeClass("active");if(keyHistory.length===1){matchIndex=matches.indexOf(that.activeIndex);if(matchIndex===-1||matchIndex===matches.length-1){matchIndex=0}else{matchIndex++}}searchMatch=matches[matchIndex];activeLi=that.selectpicker.main.data[searchMatch];if(scrollTop-activeLi.position>0){offset=activeLi.position-activeLi.height;updateScroll=true}else{offset=activeLi.position-that.sizeInfo.menuInnerHeight;updateScroll=activeLi.position>scrollTop+that.sizeInfo.menuInnerHeight}liActive=that.selectpicker.main.elements[searchMatch];that.activeIndex=matches[matchIndex];that.focusItem(liActive);if(liActive)liActive.firstChild.focus();if(updateScroll)that.$menuInner[0].scrollTop=offset;$this.trigger("focus")}}if(isActive&&(e.which===keyCodes.SPACE&&!that.selectpicker.keydown.keyHistory||e.which===keyCodes.ENTER||e.which===keyCodes.TAB&&that.options.selectOnTab)){if(e.which!==keyCodes.SPACE)e.preventDefault();if(!that.options.liveSearch||e.which!==keyCodes.SPACE){that.$menuInner.find(".active a").trigger("click",true);$this.trigger("focus");if(!that.options.liveSearch){e.preventDefault();$(document).data("spaceSelect",true)}}}},mobile:function(){this.$element[0].classList.add("mobile-device")},refresh:function(){var config=$.extend({},this.options,this.$element.data());this.options=config;this.checkDisabled();this.setStyle();this.render();this.buildData();this.buildList();this.setWidth();this.setSize(true);this.$element.trigger("refreshed"+EVENT_KEY)},hide:function(){this.$newElement.hide()},show:function(){this.$newElement.show()},remove:function(){this.$newElement.remove();this.$element.remove()},destroy:function(){this.$newElement.before(this.$element).remove();if(this.$bsContainer){this.$bsContainer.remove()}else{this.$menu.remove()}this.$element.off(EVENT_KEY).removeData("selectpicker").removeClass("bs-select-hidden selectpicker");$(window).off(EVENT_KEY+"."+this.selectId)}};function Plugin(option){var args=arguments;var _option=option;[].shift.apply(args);if(!version.success){try{version.full=($.fn.dropdown.Constructor.VERSION||"").split(" ")[0].split(".")}catch(err){if(Selectpicker.BootstrapVersion){version.full=Selectpicker.BootstrapVersion.split(" ")[0].split(".")}else{version.full=[version.major,"0","0"];console.warn("There was an issue retrieving Bootstrap's version. "+"Ensure Bootstrap is being loaded before bootstrap-select and there is no namespace collision. "+"If loading Bootstrap asynchronously, the version may need to be manually specified via $.fn.selectpicker.Constructor.BootstrapVersion.",err)}}version.major=version.full[0];version.success=true}if(version.major==="4"){var toUpdate=[];if(Selectpicker.DEFAULTS.style===classNames.BUTTONCLASS)toUpdate.push({name:"style",className:"BUTTONCLASS"});if(Selectpicker.DEFAULTS.iconBase===classNames.ICONBASE)toUpdate.push({name:"iconBase",className:"ICONBASE"});if(Selectpicker.DEFAULTS.tickIcon===classNames.TICKICON)toUpdate.push({name:"tickIcon",className:"TICKICON"});classNames.DIVIDER="dropdown-divider";classNames.SHOW="show";classNames.BUTTONCLASS="btn-light";classNames.POPOVERHEADER="popover-header";classNames.ICONBASE="";classNames.TICKICON="bs-ok-default";for(var i=0;i<toUpdate.length;i++){var option=toUpdate[i];Selectpicker.DEFAULTS[option.name]=classNames[option.className]}}var value;var chain=this.each(function(){var $this=$(this);if($this.is("select")){var data=$this.data("selectpicker"),options=typeof _option=="object"&&_option;if(!data){var dataAttributes=$this.data();for(var dataAttr in dataAttributes){if(dataAttributes.hasOwnProperty(dataAttr)&&$.inArray(dataAttr,DISALLOWED_ATTRIBUTES)!==-1){delete dataAttributes[dataAttr]}}var config=$.extend({},Selectpicker.DEFAULTS,$.fn.selectpicker.defaults||{},dataAttributes,options);config.template=$.extend({},Selectpicker.DEFAULTS.template,$.fn.selectpicker.defaults?$.fn.selectpicker.defaults.template:{},dataAttributes.template,options.template);$this.data("selectpicker",data=new Selectpicker(this,config))}else if(options){for(var i in options){if(options.hasOwnProperty(i)){data.options[i]=options[i]}}}if(typeof _option=="string"){if(data[_option]instanceof Function){value=data[_option].apply(data,args)}else{value=data.options[_option]}}}});if(typeof value!=="undefined"){return value}else{return chain}}var old=$.fn.selectpicker;$.fn.selectpicker=Plugin;$.fn.selectpicker.Constructor=Selectpicker;$.fn.selectpicker.noConflict=function(){$.fn.selectpicker=old;return this};var bootstrapKeydown=$.fn.dropdown.Constructor._dataApiKeydownHandler||$.fn.dropdown.Constructor.prototype.keydown;$(document).off("keydown.bs.dropdown.data-api").on("keydown.bs.dropdown.data-api",':not(.bootstrap-select) > [data-toggle="dropdown"]',bootstrapKeydown).on("keydown.bs.dropdown.data-api",":not(.bootstrap-select) > .dropdown-menu",bootstrapKeydown).on("keydown"+EVENT_KEY,'.bootstrap-select [data-toggle="dropdown"], .bootstrap-select [role="listbox"], .bootstrap-select .bs-searchbox input',Selectpicker.prototype.keydown).on("focusin.modal",'.bootstrap-select [data-toggle="dropdown"], .bootstrap-select [role="listbox"], .bootstrap-select .bs-searchbox input',function(e){e.stopPropagation()});$(window).on("load"+EVENT_KEY+".data-api",function(){$(".selectpicker").each(function(){var $selectpicker=$(this);Plugin.call($selectpicker,$selectpicker.data())})})})(jQuery)});
(function (root, factory){
if(root===undefined&&window!==undefined) root=window;
if(typeof define==='function'&&define.amd){
define(["jquery"], function (a0){
return (factory(a0));
});
}else if(typeof module==='object'&&module.exports){
module.exports=factory(require("jquery"));
}else{
factory(root["jQuery"]);
}}(this, function (jQuery){
(function ($){
$.fn.selectpicker.defaults={
noneSelectedText: bootstrap_select_i18n.noneSelectedText,
noneResultsText: bootstrap_select_i18n.noneResultsText,
countSelectedText: function (numSelected, numTotal){
return (numSelected==1) ? bootstrap_select_i18n.countSelectedText.single:bootstrap_select_i18n.countSelectedText.multi;
},
maxOptionsText: function (numAll, numGroup){
return [
(numAll==1) ? bootstrap_select_i18n.maxOptionsText.numAll.single:bootstrap_select_i18n.maxOptionsText.numAll.multi,
(numGroup==1) ? bootstrap_select_i18n.maxOptionsText.numGroup.single:bootstrap_select_i18n.maxOptionsText.numGroup.multi
];
},
selectAllText: bootstrap_select_i18n.selectAllText,
deselectAllText: bootstrap_select_i18n.deselectAllText,
doneButtonText: bootstrap_select_i18n.doneButtonText,
multipleSeparator: bootstrap_select_i18n.multipleSeparator
};})(jQuery);
}));
(function(factory){"use strict";if(typeof define==="function"&&define.amd){define(["jquery"],factory)}else if(typeof exports!=="undefined"){module.exports=factory(require("jquery"))}else{factory(jQuery)}})(function($){"use strict";var Slick=window.Slick||{};Slick=function(){var instanceUid=0;function Slick(element,settings){var _=this,dataSettings;_.defaults={accessibility:true,adaptiveHeight:false,appendArrows:$(element),appendDots:$(element),arrows:true,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:false,autoplaySpeed:3e3,centerMode:false,centerPadding:"50px",cssEase:"ease",customPaging:function(slider,i){return $('<button type="button" />').text(i+1)},dots:false,dotsClass:"slick-dots",draggable:true,easing:"linear",edgeFriction:.35,fade:false,focusOnSelect:false,focusOnChange:false,infinite:true,initialSlide:0,lazyLoad:"ondemand",mobileFirst:false,pauseOnHover:true,pauseOnFocus:true,pauseOnDotsHover:false,respondTo:"window",responsive:null,rows:1,rtl:false,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:true,swipeToSlide:false,touchMove:true,touchThreshold:5,useCSS:true,useTransform:true,variableWidth:false,vertical:false,verticalSwiping:false,waitForAnimate:true,zIndex:1e3};_.initials={animating:false,dragging:false,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:false,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:false,slideOffset:0,swipeLeft:null,swiping:false,$list:null,touchObject:{},transformsEnabled:false,unslicked:false};$.extend(_,_.initials);_.activeBreakpoint=null;_.animType=null;_.animProp=null;_.breakpoints=[];_.breakpointSettings=[];_.cssTransitions=false;_.focussed=false;_.interrupted=false;_.hidden="hidden";_.paused=true;_.positionProp=null;_.respondTo=null;_.rowCount=1;_.shouldClick=true;_.$slider=$(element);_.$slidesCache=null;_.transformType=null;_.transitionType=null;_.visibilityChange="visibilitychange";_.windowWidth=0;_.windowTimer=null;dataSettings=$(element).data("slick")||{};_.options=$.extend({},_.defaults,settings,dataSettings);_.currentSlide=_.options.initialSlide;_.originalSettings=_.options;if(typeof document.mozHidden!=="undefined"){_.hidden="mozHidden";_.visibilityChange="mozvisibilitychange"}else if(typeof document.webkitHidden!=="undefined"){_.hidden="webkitHidden";_.visibilityChange="webkitvisibilitychange"}_.autoPlay=$.proxy(_.autoPlay,_);_.autoPlayClear=$.proxy(_.autoPlayClear,_);_.autoPlayIterator=$.proxy(_.autoPlayIterator,_);_.changeSlide=$.proxy(_.changeSlide,_);_.clickHandler=$.proxy(_.clickHandler,_);_.selectHandler=$.proxy(_.selectHandler,_);_.setPosition=$.proxy(_.setPosition,_);_.swipeHandler=$.proxy(_.swipeHandler,_);_.dragHandler=$.proxy(_.dragHandler,_);_.keyHandler=$.proxy(_.keyHandler,_);_.instanceUid=instanceUid++;_.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/;_.registerBreakpoints();_.init(true)}return Slick}();Slick.prototype.activateADA=function(){var _=this;_.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})};Slick.prototype.addSlide=Slick.prototype.slickAdd=function(markup,index,addBefore){var _=this;if(typeof index==="boolean"){addBefore=index;index=null}else if(index<0||index>=_.slideCount){return false}_.unload();if(typeof index==="number"){if(index===0&&_.$slides.length===0){$(markup).appendTo(_.$slideTrack)}else if(addBefore){$(markup).insertBefore(_.$slides.eq(index))}else{$(markup).insertAfter(_.$slides.eq(index))}}else{if(addBefore===true){$(markup).prependTo(_.$slideTrack)}else{$(markup).appendTo(_.$slideTrack)}}_.$slides=_.$slideTrack.children(this.options.slide);_.$slideTrack.children(this.options.slide).detach();_.$slideTrack.append(_.$slides);_.$slides.each(function(index,element){$(element).attr("data-slick-index",index)});_.$slidesCache=_.$slides;_.reinit()};Slick.prototype.animateHeight=function(){var _=this;if(_.options.slidesToShow===1&&_.options.adaptiveHeight===true&&_.options.vertical===false){var targetHeight=_.$slides.eq(_.currentSlide).outerHeight(true);_.$list.animate({height:targetHeight},_.options.speed)}};Slick.prototype.animateSlide=function(targetLeft,callback){var animProps={},_=this;_.animateHeight();if(_.options.rtl===true&&_.options.vertical===false){targetLeft=-targetLeft}if(_.transformsEnabled===false){if(_.options.vertical===false){_.$slideTrack.animate({left:targetLeft},_.options.speed,_.options.easing,callback)}else{_.$slideTrack.animate({top:targetLeft},_.options.speed,_.options.easing,callback)}}else{if(_.cssTransitions===false){if(_.options.rtl===true){_.currentLeft=-_.currentLeft}$({animStart:_.currentLeft}).animate({animStart:targetLeft},{duration:_.options.speed,easing:_.options.easing,step:function(now){now=Math.ceil(now);if(_.options.vertical===false){animProps[_.animType]="translate("+now+"px, 0px)";_.$slideTrack.css(animProps)}else{animProps[_.animType]="translate(0px,"+now+"px)";_.$slideTrack.css(animProps)}},complete:function(){if(callback){callback.call()}}})}else{_.applyTransition();targetLeft=Math.ceil(targetLeft);if(_.options.vertical===false){animProps[_.animType]="translate3d("+targetLeft+"px, 0px, 0px)"}else{animProps[_.animType]="translate3d(0px,"+targetLeft+"px, 0px)"}_.$slideTrack.css(animProps);if(callback){setTimeout(function(){_.disableTransition();callback.call()},_.options.speed)}}}};Slick.prototype.getNavTarget=function(){var _=this,asNavFor=_.options.asNavFor;if(asNavFor&&asNavFor!==null){asNavFor=$(asNavFor).not(_.$slider)}return asNavFor};Slick.prototype.asNavFor=function(index){var _=this,asNavFor=_.getNavTarget();if(asNavFor!==null&&typeof asNavFor==="object"){asNavFor.each(function(){var target=$(this).slick("getSlick");if(!target.unslicked){target.slideHandler(index,true)}})}};Slick.prototype.applyTransition=function(slide){var _=this,transition={};if(_.options.fade===false){transition[_.transitionType]=_.transformType+" "+_.options.speed+"ms "+_.options.cssEase}else{transition[_.transitionType]="opacity "+_.options.speed+"ms "+_.options.cssEase}if(_.options.fade===false){_.$slideTrack.css(transition)}else{_.$slides.eq(slide).css(transition)}};Slick.prototype.autoPlay=function(){var _=this;_.autoPlayClear();if(_.slideCount>_.options.slidesToShow){_.autoPlayTimer=setInterval(_.autoPlayIterator,_.options.autoplaySpeed)}};Slick.prototype.autoPlayClear=function(){var _=this;if(_.autoPlayTimer){clearInterval(_.autoPlayTimer)}};Slick.prototype.autoPlayIterator=function(){var _=this,slideTo=_.currentSlide+_.options.slidesToScroll;if(!_.paused&&!_.interrupted&&!_.focussed){if(_.options.infinite===false){if(_.direction===1&&_.currentSlide+1===_.slideCount-1){_.direction=0}else if(_.direction===0){slideTo=_.currentSlide-_.options.slidesToScroll;if(_.currentSlide-1===0){_.direction=1}}}_.slideHandler(slideTo)}};Slick.prototype.buildArrows=function(){var _=this;if(this.$appendArrowBefore===undefined){this.$appendArrowBefore=_.options.appendArrows}_.options.appendArrows=this.$appendArrowBefore;if($(this.$appendArrowBefore).find(" > .slick-arrows").length){$(this.$appendArrowBefore).find(" > .slick-arrows").remove()}var $arrows_inner=$('<div class="slick-arrows"></div>');$(_.options.appendArrows).append($arrows_inner);_.options.appendArrows=$arrows_inner;if(_.options.arrows===true){_.$prevArrow=$(_.options.prevArrow).addClass("slick-arrow");_.$nextArrow=$(_.options.nextArrow).addClass("slick-arrow");if(_.slideCount>_.options.slidesToShow){_.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex");_.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex");if(_.htmlExpr.test(_.options.prevArrow)){_.$prevArrow.prependTo(_.options.appendArrows)}if(_.htmlExpr.test(_.options.nextArrow)){_.$nextArrow.appendTo(_.options.appendArrows)}if(_.options.infinite!==true){_.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")}}else{_.$prevArrow.add(_.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"})}}};Slick.prototype.buildDots=function(){var _=this,i,dot;if(_.options.dots===true&&_.slideCount>_.options.slidesToShow){_.$slider.addClass("slick-dotted");dot=$("<div><ul /></div>").addClass(_.options.dotsClass);for(i=0;i<=_.getDotCount();i+=1){dot.find(" > ul").append($("<li />").append(_.options.customPaging.call(this,_,i)))}_.$dots=dot.appendTo(_.options.appendDots);_.$dots.find("li").first().addClass("slick-active")}};Slick.prototype.buildOut=function(){var _=this;_.$slides=_.$slider.children(_.options.slide+":not(.slick-cloned)").addClass("slick-slide");_.slideCount=_.$slides.length;_.$slides.each(function(index,element){$(element).attr("data-slick-index",index).data("originalStyling",$(element).attr("style")||"")});_.$slider.addClass("slick-slider");_.$slideTrack=_.slideCount===0?$('<div class="slick-track"/>').appendTo(_.$slider):_.$slides.wrapAll('<div class="slick-track"/>').parent();_.$list=_.$slideTrack.wrap('<div class="slick-list"/>').parent();_.$slideTrack.css("opacity",0);if(_.options.centerMode===true||_.options.swipeToSlide===true){_.options.slidesToScroll=1}$("img[data-lazy]",_.$slider).not("[src]").addClass("slick-loading");_.setupInfinite();_.buildArrows();_.buildDots();_.updateDots();_.setSlideClasses(typeof _.currentSlide==="number"?_.currentSlide:0);if(_.options.draggable===true){_.$list.addClass("draggable")}};Slick.prototype.buildRows=function(){var _=this,a,b,c,newSlides,numOfSlides,originalSlides,slidesPerSection;newSlides=document.createDocumentFragment();originalSlides=_.$slider.children();if(_.options.rows>0){slidesPerSection=_.options.slidesPerRow*_.options.rows;numOfSlides=Math.ceil(originalSlides.length/slidesPerSection);for(a=0;a<numOfSlides;a++){var slide=document.createElement("div");for(b=0;b<_.options.rows;b++){var row=document.createElement("div");for(c=0;c<_.options.slidesPerRow;c++){var target=a*slidesPerSection+(b*_.options.slidesPerRow+c);if(originalSlides.get(target)){row.appendChild(originalSlides.get(target))}}slide.appendChild(row)}newSlides.appendChild(slide)}_.$slider.empty().append(newSlides);if(_.options.slidesPerRow>1){var _display=_.$slider.children().children().children().css("display")=="flex"?"inline-flex":"inline-block";_.$slider.children().children().children().css({width:100/_.options.slidesPerRow+"%",display:_display})}}};Slick.prototype.checkResponsive=function(initial,forceUpdate){var _=this,breakpoint,targetBreakpoint,respondToWidth,triggerBreakpoint=false;var sliderWidth=_.$slider.width();var windowWidth=window.innerWidth||$(window).width();if(_.respondTo==="window"){respondToWidth=windowWidth}else if(_.respondTo==="slider"){respondToWidth=sliderWidth}else if(_.respondTo==="min"){respondToWidth=Math.min(windowWidth,sliderWidth)}if(_.options.responsive&&_.options.responsive.length&&_.options.responsive!==null){targetBreakpoint=null;for(breakpoint in _.breakpoints){if(_.breakpoints.hasOwnProperty(breakpoint)){if(_.originalSettings.mobileFirst===false){if(respondToWidth<_.breakpoints[breakpoint]){targetBreakpoint=_.breakpoints[breakpoint]}}else{if(respondToWidth>_.breakpoints[breakpoint]){targetBreakpoint=_.breakpoints[breakpoint]}}}}if(targetBreakpoint!==null){if(_.activeBreakpoint!==null){if(targetBreakpoint!==_.activeBreakpoint||forceUpdate){_.activeBreakpoint=targetBreakpoint;if(_.breakpointSettings[targetBreakpoint]==="unslick"){_.unslick(targetBreakpoint)}else{_.options=$.extend({},_.originalSettings,_.breakpointSettings[targetBreakpoint]);if(initial===true){_.currentSlide=_.options.initialSlide}_.refresh(initial)}triggerBreakpoint=targetBreakpoint}}else{_.activeBreakpoint=targetBreakpoint;if(_.breakpointSettings[targetBreakpoint]==="unslick"){_.unslick(targetBreakpoint)}else{_.options=$.extend({},_.originalSettings,_.breakpointSettings[targetBreakpoint]);if(initial===true){_.currentSlide=_.options.initialSlide}_.refresh(initial)}triggerBreakpoint=targetBreakpoint}}else{if(_.activeBreakpoint!==null){_.activeBreakpoint=null;_.options=_.originalSettings;if(initial===true){_.currentSlide=_.options.initialSlide}_.refresh(initial);triggerBreakpoint=targetBreakpoint}}if(!initial&&triggerBreakpoint!==false){_.$slider.trigger("breakpoint",[_,triggerBreakpoint])}}};Slick.prototype.changeSlide=function(event,dontAnimate){var _=this,$target=$(event.currentTarget),indexOffset,slideOffset,unevenOffset;if($target.is("a")){event.preventDefault()}if(!$target.is("li")){$target=$target.closest("li")}unevenOffset=_.slideCount%_.options.slidesToScroll!==0;indexOffset=unevenOffset?0:(_.slideCount-_.currentSlide)%_.options.slidesToScroll;switch(event.data.message){case"previous":slideOffset=indexOffset===0?_.options.slidesToScroll:_.options.slidesToShow-indexOffset;if(_.slideCount>_.options.slidesToShow){_.slideHandler(_.currentSlide-slideOffset,false,dontAnimate)}break;case"next":slideOffset=indexOffset===0?_.options.slidesToScroll:indexOffset;if(_.slideCount>_.options.slidesToShow){_.slideHandler(_.currentSlide+slideOffset,false,dontAnimate)}break;case"index":var index=event.data.index===0?0:event.data.index||$target.index()*_.options.slidesToScroll;_.slideHandler(_.checkNavigable(index),false,dontAnimate);$target.children().trigger("focus");break;default:return}};Slick.prototype.checkNavigable=function(index){var _=this,navigables,prevNavigable;navigables=_.getNavigableIndexes();prevNavigable=0;if(index>navigables[navigables.length-1]){index=navigables[navigables.length-1]}else{for(var n in navigables){if(index<navigables[n]){index=prevNavigable;break}prevNavigable=navigables[n]}}return index};Slick.prototype.cleanUpEvents=function(){var _=this;if(_.options.dots&&_.$dots!==null){$("li",_.$dots).off("click.slick",_.changeSlide).off("mouseenter.slick",$.proxy(_.interrupt,_,true)).off("mouseleave.slick",$.proxy(_.interrupt,_,false));if(_.options.accessibility===true){_.$dots.off("keydown.slick",_.keyHandler)}}_.$slider.off("focus.slick blur.slick");if(_.options.arrows===true&&_.slideCount>_.options.slidesToShow){_.$prevArrow&&_.$prevArrow.off("click.slick",_.changeSlide);_.$nextArrow&&_.$nextArrow.off("click.slick",_.changeSlide);if(_.options.accessibility===true){_.$prevArrow&&_.$prevArrow.off("keydown.slick",_.keyHandler);_.$nextArrow&&_.$nextArrow.off("keydown.slick",_.keyHandler)}}_.$list.off("touchstart.slick mousedown.slick",_.swipeHandler);_.$list.off("touchmove.slick mousemove.slick",_.swipeHandler);_.$list.off("touchend.slick mouseup.slick",_.swipeHandler);_.$list.off("touchcancel.slick mouseleave.slick",_.swipeHandler);_.$list.off("click.slick",_.clickHandler);$(document).off(_.visibilityChange,_.visibility);_.cleanUpSlideEvents();if(_.options.accessibility===true){_.$list.off("keydown.slick",_.keyHandler)}if(_.options.focusOnSelect===true){$(_.$slideTrack).children().off("click.slick",_.selectHandler)}$(window).off("orientationchange.slick.slick-"+_.instanceUid,_.orientationChange);$(window).off("resize.slick.slick-"+_.instanceUid,_.resize);$("[draggable!=true]",_.$slideTrack).off("dragstart",_.preventDefault);$(window).off("load.slick.slick-"+_.instanceUid,_.setPosition)};Slick.prototype.cleanUpSlideEvents=function(){var _=this;_.$list.off("mouseenter.slick",$.proxy(_.interrupt,_,true));_.$list.off("mouseleave.slick",$.proxy(_.interrupt,_,false))};Slick.prototype.cleanUpRows=function(){var _=this,originalSlides;if(_.options.rows>0){originalSlides=_.$slides.children().children();originalSlides.removeAttr("style");_.$slider.empty().append(originalSlides)}};Slick.prototype.clickHandler=function(event){var _=this;if(_.shouldClick===false){event.stopImmediatePropagation();event.stopPropagation();event.preventDefault()}};Slick.prototype.destroy=function(refresh){var _=this;_.autoPlayClear();_.touchObject={};_.cleanUpEvents();$(".slick-cloned",_.$slider).detach();if(_.$dots){_.$dots.remove()}if(_.$prevArrow&&_.$prevArrow.length){_.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display","");if(_.htmlExpr.test(_.options.prevArrow)){_.$prevArrow.remove()}}if(_.$nextArrow&&_.$nextArrow.length){_.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display","");if(_.htmlExpr.test(_.options.nextArrow)){_.$nextArrow.remove()}}if(_.$slides){_.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){$(this).attr("style",$(this).data("originalStyling"))});_.$slideTrack.children(this.options.slide).detach();_.$slideTrack.detach();_.$list.detach();_.$slider.append(_.$slides)}_.cleanUpRows();_.$slider.removeClass("slick-slider");_.$slider.removeClass("slick-initialized");_.$slider.removeClass("slick-dotted");_.unslicked=true;if(!refresh){_.$slider.trigger("destroy",[_])}};Slick.prototype.disableTransition=function(slide){var _=this,transition={};transition[_.transitionType]="";if(_.options.fade===false){_.$slideTrack.css(transition)}else{_.$slides.eq(slide).css(transition)}};Slick.prototype.fadeSlide=function(slideIndex,callback){var _=this;if(_.cssTransitions===false){_.$slides.eq(slideIndex).css({zIndex:_.options.zIndex});_.$slides.eq(slideIndex).animate({opacity:1},_.options.speed,_.options.easing,callback)}else{_.applyTransition(slideIndex);_.$slides.eq(slideIndex).css({opacity:1,zIndex:_.options.zIndex});if(callback){setTimeout(function(){_.disableTransition(slideIndex);callback.call()},_.options.speed)}}};Slick.prototype.fadeSlideOut=function(slideIndex){var _=this;if(_.cssTransitions===false){_.$slides.eq(slideIndex).animate({opacity:0,zIndex:_.options.zIndex-2},_.options.speed,_.options.easing)}else{_.applyTransition(slideIndex);_.$slides.eq(slideIndex).css({opacity:0,zIndex:_.options.zIndex-2})}};Slick.prototype.filterSlides=Slick.prototype.slickFilter=function(filter){var _=this;if(filter!==null){_.$slidesCache=_.$slides;_.unload();_.$slideTrack.children(this.options.slide).detach();_.$slidesCache.filter(filter).appendTo(_.$slideTrack);_.reinit()}};Slick.prototype.focusHandler=function(){var _=this;_.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",function(event){event.stopImmediatePropagation();var $sf=$(this);setTimeout(function(){if(_.options.pauseOnFocus){_.focussed=$sf.is(":focus");_.autoPlay()}},0)})};Slick.prototype.getCurrent=Slick.prototype.slickCurrentSlide=function(){var _=this;return _.currentSlide};Slick.prototype.getDotCount=function(){var _=this;var breakPoint=0;var counter=0;var pagerQty=0;if(_.options.infinite===true){if(_.slideCount<=_.options.slidesToShow){++pagerQty}else{while(breakPoint<_.slideCount){++pagerQty;breakPoint=counter+_.options.slidesToScroll;counter+=_.options.slidesToScroll<=_.options.slidesToShow?_.options.slidesToScroll:_.options.slidesToShow}}}else if(_.options.centerMode===true){pagerQty=_.slideCount}else if(!_.options.asNavFor){pagerQty=1+Math.ceil((_.slideCount-_.options.slidesToShow)/_.options.slidesToScroll)}else{while(breakPoint<_.slideCount){++pagerQty;breakPoint=counter+_.options.slidesToScroll;counter+=_.options.slidesToScroll<=_.options.slidesToShow?_.options.slidesToScroll:_.options.slidesToShow}}return pagerQty-1};Slick.prototype.getLeft=function(slideIndex){var _=this,targetLeft,verticalHeight,verticalOffset=0,targetSlide,coef;_.slideOffset=0;verticalHeight=_.$slides.first().outerHeight(true);if(_.options.infinite===true){if(_.slideCount>_.options.slidesToShow){_.slideOffset=_.slideWidth*_.options.slidesToShow*-1;coef=-1;if(_.options.vertical===true&&_.options.centerMode===true){if(_.options.slidesToShow===2){coef=-1.5}else if(_.options.slidesToShow===1){coef=-2}}verticalOffset=verticalHeight*_.options.slidesToShow*coef}if(_.slideCount%_.options.slidesToScroll!==0){if(slideIndex+_.options.slidesToScroll>_.slideCount&&_.slideCount>_.options.slidesToShow){if(slideIndex>_.slideCount){_.slideOffset=(_.options.slidesToShow-(slideIndex-_.slideCount))*_.slideWidth*-1;verticalOffset=(_.options.slidesToShow-(slideIndex-_.slideCount))*verticalHeight*-1}else{_.slideOffset=_.slideCount%_.options.slidesToScroll*_.slideWidth*-1;verticalOffset=_.slideCount%_.options.slidesToScroll*verticalHeight*-1}}}}else{if(slideIndex+_.options.slidesToShow>_.slideCount){_.slideOffset=(slideIndex+_.options.slidesToShow-_.slideCount)*_.slideWidth;verticalOffset=(slideIndex+_.options.slidesToShow-_.slideCount)*verticalHeight}}if(_.slideCount<=_.options.slidesToShow){_.slideOffset=0;verticalOffset=0}if(_.options.centerMode===true&&_.slideCount<=_.options.slidesToShow){_.slideOffset=_.slideWidth*Math.floor(_.options.slidesToShow)/2-_.slideWidth*_.slideCount/2}else if(_.options.centerMode===true&&_.options.infinite===true){_.slideOffset+=_.slideWidth*Math.floor(_.options.slidesToShow/2)-_.slideWidth}else if(_.options.centerMode===true){_.slideOffset=0;_.slideOffset+=_.slideWidth*Math.floor(_.options.slidesToShow/2)}if(_.options.vertical===false){targetLeft=slideIndex*_.slideWidth*-1+_.slideOffset}else{targetLeft=slideIndex*verticalHeight*-1+verticalOffset}if(_.options.variableWidth===true){if(_.slideCount<=_.options.slidesToShow||_.options.infinite===false){targetSlide=_.$slideTrack.children(".slick-slide").eq(slideIndex)}else{targetSlide=_.$slideTrack.children(".slick-slide").eq(slideIndex+_.options.slidesToShow)}if(_.options.rtl===true){if(targetSlide[0]){targetLeft=(_.$slideTrack.width()-targetSlide[0].offsetLeft-targetSlide.width())*-1}else{targetLeft=0}}else{targetLeft=targetSlide[0]?targetSlide[0].offsetLeft*-1:0}if(_.options.centerMode===true){if(_.slideCount<=_.options.slidesToShow||_.options.infinite===false){targetSlide=_.$slideTrack.children(".slick-slide").eq(slideIndex)}else{targetSlide=_.$slideTrack.children(".slick-slide").eq(slideIndex+_.options.slidesToShow+1)}if(_.options.rtl===true){if(targetSlide[0]){targetLeft=(_.$slideTrack.width()-targetSlide[0].offsetLeft-targetSlide.width())*-1}else{targetLeft=0}}else{targetLeft=targetSlide[0]?targetSlide[0].offsetLeft*-1:0}targetLeft+=(_.$list.width()-targetSlide.outerWidth())/2}}return targetLeft};Slick.prototype.getOption=Slick.prototype.slickGetOption=function(option){var _=this;return _.options[option]};Slick.prototype.getNavigableIndexes=function(){var _=this,breakPoint=0,counter=0,indexes=[],max;if(_.options.infinite===false){max=_.slideCount}else{breakPoint=_.options.slidesToScroll*-1;counter=_.options.slidesToScroll*-1;max=_.slideCount*2}while(breakPoint<max){indexes.push(breakPoint);breakPoint=counter+_.options.slidesToScroll;counter+=_.options.slidesToScroll<=_.options.slidesToShow?_.options.slidesToScroll:_.options.slidesToShow}return indexes};Slick.prototype.getSlick=function(){return this};Slick.prototype.getSlideCount=function(){var _=this,slidesTraversed,swipedSlide,centerOffset;centerOffset=_.options.centerMode===true?_.slideWidth*Math.floor(_.options.slidesToShow/2):0;if(_.options.swipeToSlide===true){_.$slideTrack.find(".slick-slide").each(function(index,slide){if(slide.offsetLeft-centerOffset+$(slide).outerWidth()/2>_.swipeLeft*-1){swipedSlide=slide;return false}});slidesTraversed=Math.abs($(swipedSlide).attr("data-slick-index")-_.currentSlide)||1;return slidesTraversed}else{return _.options.slidesToScroll}};Slick.prototype.goTo=Slick.prototype.slickGoTo=function(slide,dontAnimate){var _=this;_.changeSlide({data:{message:"index",index:parseInt(slide)}},dontAnimate)};Slick.prototype.init=function(creation){var _=this;if(!$(_.$slider).hasClass("slick-initialized")){$(_.$slider).addClass("slick-initialized");_.buildRows();_.buildOut();_.setProps();_.startLoad();_.loadSlider();_.initializeEvents();_.updateArrows();_.updateDots();_.checkResponsive(true);_.focusHandler()}if(creation){_.$slider.trigger("init",[_])}if(_.options.accessibility===true){_.initADA()}if(_.options.autoplay){_.paused=false;_.autoPlay()}};Slick.prototype.initADA=function(){var _=this,numDotGroups=Math.ceil(_.slideCount/_.options.slidesToShow),tabControlIndexes=_.getNavigableIndexes().filter(function(val){return val>=0&&val<_.slideCount});_.$slides.add(_.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"});if(_.$dots!==null){_.$slides.not(_.$slideTrack.find(".slick-cloned")).each(function(i){var slideControlIndex=tabControlIndexes.indexOf(i);$(this).attr({role:"tabpanel",id:"slick-slide"+_.instanceUid+i,tabindex:-1});if(slideControlIndex!==-1){var ariaButtonControl="slick-slide-control"+_.instanceUid+slideControlIndex;if($("#"+ariaButtonControl).length){$(this).attr({"aria-describedby":ariaButtonControl})}}});_.$dots.attr("role","tablist").find("li").each(function(i){var mappedSlideIndex=tabControlIndexes[i];$(this).attr({role:"presentation"});$(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+_.instanceUid+i,"aria-controls":"slick-slide"+_.instanceUid+mappedSlideIndex,"aria-label":i+1+" of "+numDotGroups,"aria-selected":null,tabindex:"-1"})}).eq(_.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end()}for(var i=_.currentSlide,max=i+_.options.slidesToShow;i<max;i++){if(_.options.focusOnChange){_.$slides.eq(i).attr({tabindex:"0"})}else{_.$slides.eq(i).removeAttr("tabindex")}}_.activateADA()};Slick.prototype.initArrowEvents=function(){var _=this;if(_.options.arrows===true&&_.slideCount>_.options.slidesToShow){_.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},_.changeSlide);_.$nextArrow.off("click.slick").on("click.slick",{message:"next"},_.changeSlide);if(_.options.accessibility===true){_.$prevArrow.on("keydown.slick",_.keyHandler);_.$nextArrow.on("keydown.slick",_.keyHandler)}}};Slick.prototype.initDotEvents=function(){var _=this;if(_.options.dots===true&&_.slideCount>_.options.slidesToShow){$("li",_.$dots).on("click.slick",{message:"index"},_.changeSlide);if(_.options.accessibility===true){_.$dots.on("keydown.slick",_.keyHandler)}}if(_.options.dots===true&&_.options.pauseOnDotsHover===true&&_.slideCount>_.options.slidesToShow){$("li",_.$dots).on("mouseenter.slick",$.proxy(_.interrupt,_,true)).on("mouseleave.slick",$.proxy(_.interrupt,_,false))}};Slick.prototype.initSlideEvents=function(){var _=this;if(_.options.pauseOnHover){_.$list.on("mouseenter.slick",$.proxy(_.interrupt,_,true));_.$list.on("mouseleave.slick",$.proxy(_.interrupt,_,false))}};Slick.prototype.initializeEvents=function(){var _=this;_.initArrowEvents();_.initDotEvents();_.initSlideEvents();_.$list.on("touchstart.slick mousedown.slick",{action:"start"},_.swipeHandler);_.$list.on("touchmove.slick mousemove.slick",{action:"move"},_.swipeHandler);_.$list.on("touchend.slick mouseup.slick",{action:"end"},_.swipeHandler);_.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},_.swipeHandler);_.$list.on("click.slick",_.clickHandler);$(document).on(_.visibilityChange,$.proxy(_.visibility,_));if(_.options.accessibility===true){_.$list.on("keydown.slick",_.keyHandler)}if(_.options.focusOnSelect===true){$(_.$slideTrack).children().on("click.slick",_.selectHandler)}$(window).on("orientationchange.slick.slick-"+_.instanceUid,$.proxy(_.orientationChange,_));$(window).on("resize.slick.slick-"+_.instanceUid,$.proxy(_.resize,_));$("[draggable!=true]",_.$slideTrack).on("dragstart",_.preventDefault);$(window).on("load.slick.slick-"+_.instanceUid,_.setPosition);$(_.setPosition)};Slick.prototype.initUI=function(){var _=this;if(_.options.arrows===true&&_.slideCount>_.options.slidesToShow){_.$prevArrow.show();_.$nextArrow.show()}if(_.options.dots===true&&_.slideCount>_.options.slidesToShow){_.$dots.show()}};Slick.prototype.keyHandler=function(event){var _=this;if(!event.target.tagName.match("TEXTAREA|INPUT|SELECT")){if(event.keyCode===37&&_.options.accessibility===true){_.changeSlide({data:{message:_.options.rtl===true?"next":"previous"}})}else if(event.keyCode===39&&_.options.accessibility===true){_.changeSlide({data:{message:_.options.rtl===true?"previous":"next"}})}}};Slick.prototype.lazyLoad=function(){var _=this,loadRange,cloneRange,rangeStart,rangeEnd;function loadImages(imagesScope){$("img[data-lazy]",imagesScope).each(function(){var image=$(this),imageSource=$(this).attr("data-lazy"),imageSrcSet=$(this).attr("data-srcset"),imageSizes=$(this).attr("data-sizes")||_.$slider.attr("data-sizes"),imageToLoad=document.createElement("img");imageToLoad.onload=function(){image.animate({opacity:0},100,function(){if(imageSrcSet){image.attr("srcset",imageSrcSet);if(imageSizes){image.attr("sizes",imageSizes)}}image.attr("src",imageSource).animate({opacity:1},200,function(){image.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")});_.$slider.trigger("lazyLoaded",[_,image,imageSource])})};imageToLoad.onerror=function(){image.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error");_.$slider.trigger("lazyLoadError",[_,image,imageSource])};imageToLoad.src=imageSource})}if(_.options.centerMode===true){if(_.options.infinite===true){rangeStart=_.currentSlide+(_.options.slidesToShow/2+1);rangeEnd=rangeStart+_.options.slidesToShow+2}else{rangeStart=Math.max(0,_.currentSlide-(_.options.slidesToShow/2+1));rangeEnd=2+(_.options.slidesToShow/2+1)+_.currentSlide}}else{rangeStart=_.options.infinite?_.options.slidesToShow+_.currentSlide:_.currentSlide;rangeEnd=Math.ceil(rangeStart+_.options.slidesToShow);if(_.options.fade===true){if(rangeStart>0)rangeStart--;if(rangeEnd<=_.slideCount)rangeEnd++}}loadRange=_.$slider.find(".slick-slide").slice(rangeStart,rangeEnd);if(_.options.lazyLoad==="anticipated"){var prevSlide=rangeStart-1,nextSlide=rangeEnd,$slides=_.$slider.find(".slick-slide");for(var i=0;i<_.options.slidesToScroll;i++){if(prevSlide<0)prevSlide=_.slideCount-1;loadRange=loadRange.add($slides.eq(prevSlide));loadRange=loadRange.add($slides.eq(nextSlide));prevSlide--;nextSlide++}}loadImages(loadRange);if(_.slideCount<=_.options.slidesToShow){cloneRange=_.$slider.find(".slick-slide");loadImages(cloneRange)}else if(_.currentSlide>=_.slideCount-_.options.slidesToShow){cloneRange=_.$slider.find(".slick-cloned").slice(0,_.options.slidesToShow);loadImages(cloneRange)}else if(_.currentSlide===0){cloneRange=_.$slider.find(".slick-cloned").slice(_.options.slidesToShow*-1);loadImages(cloneRange)}};Slick.prototype.loadSlider=function(){var _=this;_.setPosition();_.$slideTrack.css({opacity:1});_.$slider.removeClass("slick-loading");_.initUI();if(_.options.lazyLoad==="progressive"){_.progressiveLazyLoad()}};Slick.prototype.next=Slick.prototype.slickNext=function(){var _=this;_.changeSlide({data:{message:"next"}})};Slick.prototype.orientationChange=function(){var _=this;_.checkResponsive();_.setPosition()};Slick.prototype.pause=Slick.prototype.slickPause=function(){var _=this;_.autoPlayClear();_.paused=true};Slick.prototype.play=Slick.prototype.slickPlay=function(){var _=this;_.autoPlay();_.options.autoplay=true;_.paused=false;_.focussed=false;_.interrupted=false};Slick.prototype.postSlide=function(index){var _=this;if(!_.unslicked){_.$slider.trigger("afterChange",[_,index]);_.animating=false;if(_.slideCount>_.options.slidesToShow){_.setPosition()}_.swipeLeft=null;if(_.options.autoplay){_.autoPlay()}if(_.options.accessibility===true){_.initADA();if(_.options.focusOnChange){var $currentSlide=$(_.$slides.get(_.currentSlide));$currentSlide.attr("tabindex",0).focus()}}}};Slick.prototype.prev=Slick.prototype.slickPrev=function(){var _=this;_.changeSlide({data:{message:"previous"}})};Slick.prototype.preventDefault=function(event){event.preventDefault()};Slick.prototype.progressiveLazyLoad=function(tryCount){tryCount=tryCount||1;var _=this,$imgsToLoad=$("img[data-lazy]",_.$slider),image,imageSource,imageSrcSet,imageSizes,imageToLoad;if($imgsToLoad.length){image=$imgsToLoad.first();imageSource=image.attr("data-lazy");imageSrcSet=image.attr("data-srcset");imageSizes=image.attr("data-sizes")||_.$slider.attr("data-sizes");imageToLoad=document.createElement("img");imageToLoad.onload=function(){if(imageSrcSet){image.attr("srcset",imageSrcSet);if(imageSizes){image.attr("sizes",imageSizes)}}image.attr("src",imageSource).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading");if(_.options.adaptiveHeight===true){_.setPosition()}_.$slider.trigger("lazyLoaded",[_,image,imageSource]);_.progressiveLazyLoad()};imageToLoad.onerror=function(){if(tryCount<3){setTimeout(function(){_.progressiveLazyLoad(tryCount+1)},500)}else{image.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error");_.$slider.trigger("lazyLoadError",[_,image,imageSource]);_.progressiveLazyLoad()}};imageToLoad.src=imageSource}else{_.$slider.trigger("allImagesLoaded",[_])}};Slick.prototype.refresh=function(initializing){var _=this,currentSlide,lastVisibleIndex;lastVisibleIndex=_.slideCount-_.options.slidesToShow;if(!_.options.infinite&&_.currentSlide>lastVisibleIndex){_.currentSlide=lastVisibleIndex}if(_.slideCount<=_.options.slidesToShow){_.currentSlide=0}currentSlide=_.currentSlide;_.destroy(true);$.extend(_,_.initials,{currentSlide:currentSlide});_.init();if(!initializing){_.changeSlide({data:{message:"index",index:currentSlide}},false)}};Slick.prototype.registerBreakpoints=function(){var _=this,breakpoint,currentBreakpoint,l,responsiveSettings=_.options.responsive||null;if($.type(responsiveSettings)==="array"&&responsiveSettings.length){_.respondTo=_.options.respondTo||"window";for(breakpoint in responsiveSettings){l=_.breakpoints.length-1;if(responsiveSettings.hasOwnProperty(breakpoint)){currentBreakpoint=responsiveSettings[breakpoint].breakpoint;while(l>=0){if(_.breakpoints[l]&&_.breakpoints[l]===currentBreakpoint){_.breakpoints.splice(l,1)}l--}_.breakpoints.push(currentBreakpoint);_.breakpointSettings[currentBreakpoint]=responsiveSettings[breakpoint].settings}}_.breakpoints.sort(function(a,b){return _.options.mobileFirst?a-b:b-a})}};Slick.prototype.reinit=function(){var _=this;_.$slides=_.$slideTrack.children(_.options.slide).addClass("slick-slide");_.slideCount=_.$slides.length;if(_.currentSlide>=_.slideCount&&_.currentSlide!==0){_.currentSlide=_.currentSlide-_.options.slidesToScroll}if(_.slideCount<=_.options.slidesToShow){_.currentSlide=0}_.registerBreakpoints();_.setProps();_.setupInfinite();_.buildArrows();_.updateArrows();_.initArrowEvents();_.buildDots();_.updateDots();_.initDotEvents();_.cleanUpSlideEvents();_.initSlideEvents();_.checkResponsive(false,true);if(_.options.focusOnSelect===true){$(_.$slideTrack).children().on("click.slick",_.selectHandler)}_.setSlideClasses(typeof _.currentSlide==="number"?_.currentSlide:0);_.setPosition();_.focusHandler();_.paused=!_.options.autoplay;_.autoPlay();_.$slider.trigger("reInit",[_])};Slick.prototype.resize=function(){var _=this;if($(window).width()!==_.windowWidth){clearTimeout(_.windowDelay);_.windowDelay=window.setTimeout(function(){_.windowWidth=$(window).width();_.checkResponsive();if(!_.unslicked){_.setPosition()}},50)}};Slick.prototype.removeSlide=Slick.prototype.slickRemove=function(index,removeBefore,removeAll){var _=this;if(typeof index==="boolean"){removeBefore=index;index=removeBefore===true?0:_.slideCount-1}else{index=removeBefore===true?--index:index}if(_.slideCount<1||index<0||index>_.slideCount-1){return false}_.unload();if(removeAll===true){_.$slideTrack.children().remove()}else{_.$slideTrack.children(this.options.slide).eq(index).remove()}_.$slides=_.$slideTrack.children(this.options.slide);_.$slideTrack.children(this.options.slide).detach();_.$slideTrack.append(_.$slides);_.$slidesCache=_.$slides;_.reinit()};Slick.prototype.setCSS=function(position){var _=this,positionProps={},x,y;if(_.options.rtl===true){position=-position}x=_.positionProp=="left"?Math.ceil(position)+"px":"0px";y=_.positionProp=="top"?Math.ceil(position)+"px":"0px";positionProps[_.positionProp]=position;if(_.transformsEnabled===false){_.$slideTrack.css(positionProps)}else{positionProps={};if(_.cssTransitions===false){positionProps[_.animType]="translate("+x+", "+y+")";_.$slideTrack.css(positionProps)}else{positionProps[_.animType]="translate3d("+x+", "+y+", 0px)";_.$slideTrack.css(positionProps)}}};Slick.prototype.setDimensions=function(){var _=this;if(_.options.vertical===false){if(_.options.centerMode===true){_.$list.css({padding:"0px "+_.options.centerPadding})}}else{_.$list.height(_.$slides.first().outerHeight(true)*_.options.slidesToShow);if(_.options.centerMode===true){_.$list.css({padding:_.options.centerPadding+" 0px"})}}_.listWidth=_.$list.width();_.listHeight=_.$list.height();if(_.options.vertical===false&&_.options.variableWidth===false){_.slideWidth=Math.ceil(_.listWidth/_.options.slidesToShow);_.$slideTrack.width(Math.ceil(_.slideWidth*_.$slideTrack.children(".slick-slide").length))}else if(_.options.variableWidth===true){_.$slideTrack.width(5e3*_.slideCount)}else{_.slideWidth=Math.ceil(_.listWidth);_.$slideTrack.height(Math.ceil(_.$slides.first().outerHeight(true)*_.$slideTrack.children(".slick-slide").length))}var offset=_.$slides.first().outerWidth(true)-_.$slides.first().width();if(_.options.variableWidth===false)_.$slideTrack.children(".slick-slide").width(_.slideWidth-offset)};Slick.prototype.setFade=function(){var _=this,targetLeft;_.$slides.each(function(index,element){targetLeft=_.slideWidth*index*-1;if(_.options.rtl===true){$(element).css({position:"relative",right:targetLeft,top:0,zIndex:_.options.zIndex-2,opacity:0})}else{$(element).css({position:"relative",left:targetLeft,top:0,zIndex:_.options.zIndex-2,opacity:0})}});_.$slides.eq(_.currentSlide).css({zIndex:_.options.zIndex-1,opacity:1})};Slick.prototype.setHeight=function(){var _=this;if(_.options.slidesToShow===1&&_.options.adaptiveHeight===true&&_.options.vertical===false){var targetHeight=_.$slides.eq(_.currentSlide).outerHeight(true);_.$list.css("height",targetHeight)}};Slick.prototype.setOption=Slick.prototype.slickSetOption=function(){var _=this,l,item,option,value,refresh=false,type;if($.type(arguments[0])==="object"){option=arguments[0];refresh=arguments[1];type="multiple"}else if($.type(arguments[0])==="string"){option=arguments[0];value=arguments[1];refresh=arguments[2];if(arguments[0]==="responsive"&&$.type(arguments[1])==="array"){type="responsive"}else if(typeof arguments[1]!=="undefined"){type="single"}}if(type==="single"){_.options[option]=value}else if(type==="multiple"){$.each(option,function(opt,val){_.options[opt]=val})}else if(type==="responsive"){for(item in value){if($.type(_.options.responsive)!=="array"){_.options.responsive=[value[item]]}else{l=_.options.responsive.length-1;while(l>=0){if(_.options.responsive[l].breakpoint===value[item].breakpoint){_.options.responsive.splice(l,1)}l--}_.options.responsive.push(value[item])}}}if(refresh){_.unload();_.reinit()}};Slick.prototype.setPosition=function(){var _=this;_.setDimensions();_.setHeight();if(_.options.fade===false){_.setCSS(_.getLeft(_.currentSlide))}else{_.setFade()}_.$slider.trigger("setPosition",[_])};Slick.prototype.setProps=function(){var _=this,bodyStyle=document.body.style;_.positionProp=_.options.vertical===true?"top":"left";if(_.positionProp==="top"){_.$slider.addClass("slick-vertical")}else{_.$slider.removeClass("slick-vertical")}if(bodyStyle.WebkitTransition!==undefined||bodyStyle.MozTransition!==undefined||bodyStyle.msTransition!==undefined){if(_.options.useCSS===true){_.cssTransitions=true}}if(_.options.fade){if(typeof _.options.zIndex==="number"){if(_.options.zIndex<3){_.options.zIndex=3}}else{_.options.zIndex=_.defaults.zIndex}}if(bodyStyle.OTransform!==undefined){_.animType="OTransform";_.transformType="-o-transform";_.transitionType="OTransition";if(bodyStyle.perspectiveProperty===undefined&&bodyStyle.webkitPerspective===undefined)_.animType=false}if(bodyStyle.MozTransform!==undefined){_.animType="MozTransform";_.transformType="-moz-transform";_.transitionType="MozTransition";if(bodyStyle.perspectiveProperty===undefined&&bodyStyle.MozPerspective===undefined)_.animType=false}if(bodyStyle.webkitTransform!==undefined){_.animType="webkitTransform";_.transformType="-webkit-transform";_.transitionType="webkitTransition";if(bodyStyle.perspectiveProperty===undefined&&bodyStyle.webkitPerspective===undefined)_.animType=false}if(bodyStyle.msTransform!==undefined){_.animType="msTransform";_.transformType="-ms-transform";_.transitionType="msTransition";if(bodyStyle.msTransform===undefined)_.animType=false}if(bodyStyle.transform!==undefined&&_.animType!==false){_.animType="transform";_.transformType="transform";_.transitionType="transition"}_.transformsEnabled=_.options.useTransform&&(_.animType!==null&&_.animType!==false)};Slick.prototype.setSlideClasses=function(index){var _=this,centerOffset,allSlides,indexOffset,remainder;allSlides=_.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true");_.$slides.eq(index).addClass("slick-current");if(_.options.centerMode===true){var evenCoef=_.options.slidesToShow%2===0?1:0;centerOffset=Math.floor(_.options.slidesToShow/2);if(_.options.infinite===true){if(index>=centerOffset&&index<=_.slideCount-1-centerOffset){_.$slides.slice(index-centerOffset+evenCoef,index+centerOffset+1).addClass("slick-active").attr("aria-hidden","false")}else{indexOffset=_.options.slidesToShow+index;allSlides.slice(indexOffset-centerOffset+1+evenCoef,indexOffset+centerOffset+2).addClass("slick-active").attr("aria-hidden","false")}if(index===0){allSlides.eq(allSlides.length-1-_.options.slidesToShow).addClass("slick-center")}else if(index===_.slideCount-1){allSlides.eq(_.options.slidesToShow).addClass("slick-center")}}_.$slides.eq(index).addClass("slick-center")}else{if(index>=0&&index<=_.slideCount-_.options.slidesToShow){_.$slides.slice(index,index+_.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false")}else if(allSlides.length<=_.options.slidesToShow){allSlides.addClass("slick-active").attr("aria-hidden","false")}else{remainder=_.slideCount%_.options.slidesToShow;indexOffset=_.options.infinite===true?_.options.slidesToShow+index:index;if(_.options.slidesToShow==_.options.slidesToScroll&&_.slideCount-index<_.options.slidesToShow){allSlides.slice(indexOffset-(_.options.slidesToShow-remainder),indexOffset+remainder).addClass("slick-active").attr("aria-hidden","false")}else{allSlides.slice(indexOffset,indexOffset+_.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false")}}}if(_.options.lazyLoad==="ondemand"||_.options.lazyLoad==="anticipated"){_.lazyLoad()}};Slick.prototype.setupInfinite=function(){var _=this,i,slideIndex,infiniteCount;if(_.options.fade===true){_.options.centerMode=false}if(_.options.infinite===true&&_.options.fade===false){slideIndex=null;if(_.slideCount>_.options.slidesToShow){if(_.options.centerMode===true){infiniteCount=_.options.slidesToShow+1}else{infiniteCount=_.options.slidesToShow}for(i=_.slideCount;i>_.slideCount-infiniteCount;i-=1){slideIndex=i-1;$(_.$slides[slideIndex]).clone(true).attr("id","").attr("data-slick-index",slideIndex-_.slideCount).prependTo(_.$slideTrack).addClass("slick-cloned")}for(i=0;i<infiniteCount+_.slideCount;i+=1){slideIndex=i;$(_.$slides[slideIndex]).clone(true).attr("id","").attr("data-slick-index",slideIndex+_.slideCount).appendTo(_.$slideTrack).addClass("slick-cloned")}_.$slideTrack.find(".slick-cloned").find("[id]").each(function(){$(this).attr("id","")})}}};Slick.prototype.interrupt=function(toggle){var _=this;if(!toggle){_.autoPlay()}_.interrupted=toggle};Slick.prototype.selectHandler=function(event){var _=this;var targetElement=$(event.target).is(".slick-slide")?$(event.target):$(event.target).parents(".slick-slide");var index=parseInt(targetElement.attr("data-slick-index"));if(!index)index=0;if(_.slideCount<=_.options.slidesToShow){_.slideHandler(index,false,true);return}_.slideHandler(index)};Slick.prototype.slideHandler=function(index,sync,dontAnimate){var targetSlide,animSlide,oldSlide,slideLeft,targetLeft=null,_=this,navTarget;sync=sync||false;if(_.animating===true&&_.options.waitForAnimate===true){return}if(_.options.fade===true&&_.currentSlide===index){return}if(sync===false){_.asNavFor(index)}targetSlide=index;targetLeft=_.getLeft(targetSlide);slideLeft=_.getLeft(_.currentSlide);_.currentLeft=_.swipeLeft===null?slideLeft:_.swipeLeft;if(_.options.infinite===false&&_.options.centerMode===false&&(index<0||index>_.getDotCount()*_.options.slidesToScroll)){if(_.options.fade===false){targetSlide=_.currentSlide;if(dontAnimate!==true&&_.slideCount>_.options.slidesToShow){_.animateSlide(slideLeft,function(){_.postSlide(targetSlide)})}else{_.postSlide(targetSlide)}}return}else if(_.options.infinite===false&&_.options.centerMode===true&&(index<0||index>_.slideCount-_.options.slidesToScroll)){if(_.options.fade===false){targetSlide=_.currentSlide;if(dontAnimate!==true&&_.slideCount>_.options.slidesToShow){_.animateSlide(slideLeft,function(){_.postSlide(targetSlide)})}else{_.postSlide(targetSlide)}}return}if(_.options.autoplay){clearInterval(_.autoPlayTimer)}if(targetSlide<0){if(_.slideCount%_.options.slidesToScroll!==0){animSlide=_.slideCount-_.slideCount%_.options.slidesToScroll}else{animSlide=_.slideCount+targetSlide}}else if(targetSlide>=_.slideCount){if(_.slideCount%_.options.slidesToScroll!==0){animSlide=0}else{animSlide=targetSlide-_.slideCount}}else{animSlide=targetSlide}_.animating=true;_.$slider.trigger("beforeChange",[_,_.currentSlide,animSlide]);oldSlide=_.currentSlide;_.currentSlide=animSlide;_.setSlideClasses(_.currentSlide);if(_.options.asNavFor){navTarget=_.getNavTarget();navTarget=navTarget.slick("getSlick");if(navTarget.slideCount<=navTarget.options.slidesToShow){navTarget.setSlideClasses(_.currentSlide)}}_.updateDots();_.updateArrows();if(_.options.fade===true){if(dontAnimate!==true){_.fadeSlideOut(oldSlide);_.fadeSlide(animSlide,function(){_.postSlide(animSlide)})}else{_.postSlide(animSlide)}_.animateHeight();return}if(dontAnimate!==true&&_.slideCount>_.options.slidesToShow){_.animateSlide(targetLeft,function(){_.postSlide(animSlide)})}else{_.postSlide(animSlide)}};Slick.prototype.startLoad=function(){var _=this;if(_.options.arrows===true&&_.slideCount>_.options.slidesToShow){_.$prevArrow.hide();_.$nextArrow.hide()}if(_.options.dots===true&&_.slideCount>_.options.slidesToShow){_.$dots.hide()}_.$slider.addClass("slick-loading")};Slick.prototype.swipeDirection=function(){var xDist,yDist,r,swipeAngle,_=this;xDist=_.touchObject.startX-_.touchObject.curX;yDist=_.touchObject.startY-_.touchObject.curY;r=Math.atan2(yDist,xDist);swipeAngle=Math.round(r*180/Math.PI);if(swipeAngle<0){swipeAngle=360-Math.abs(swipeAngle)}if(swipeAngle<=45&&swipeAngle>=0){return _.options.rtl===false?"left":"right"}if(swipeAngle<=360&&swipeAngle>=315){return _.options.rtl===false?"left":"right"}if(swipeAngle>=135&&swipeAngle<=225){return _.options.rtl===false?"right":"left"}if(_.options.verticalSwiping===true){if(swipeAngle>=35&&swipeAngle<=135){return"down"}else{return"up"}}return"vertical"};Slick.prototype.swipeEnd=function(event){var _=this,slideCount,direction;_.dragging=false;_.swiping=false;if(_.scrolling){_.scrolling=false;return false}_.interrupted=false;_.shouldClick=_.touchObject.swipeLength>10?false:true;if(_.touchObject.curX===undefined){return false}if(_.touchObject.edgeHit===true){_.$slider.trigger("edge",[_,_.swipeDirection()])}if(_.touchObject.swipeLength>=_.touchObject.minSwipe){direction=_.swipeDirection();switch(direction){case"left":case"down":slideCount=_.options.swipeToSlide?_.checkNavigable(_.currentSlide+_.getSlideCount()):_.currentSlide+_.getSlideCount();_.currentDirection=0;break;case"right":case"up":slideCount=_.options.swipeToSlide?_.checkNavigable(_.currentSlide-_.getSlideCount()):_.currentSlide-_.getSlideCount();_.currentDirection=1;break;default:}if(direction!="vertical"){_.slideHandler(slideCount);_.touchObject={};_.$slider.trigger("swipe",[_,direction])}}else{if(_.touchObject.startX!==_.touchObject.curX){_.slideHandler(_.currentSlide);_.touchObject={}}}};Slick.prototype.swipeHandler=function(event){var _=this;if(_.options.swipe===false||"ontouchend"in document&&_.options.swipe===false){return}else if(_.options.draggable===false&&event.type.indexOf("mouse")!==-1){return}_.touchObject.fingerCount=event.originalEvent&&event.originalEvent.touches!==undefined?event.originalEvent.touches.length:1;_.touchObject.minSwipe=_.listWidth/_.options.touchThreshold;if(_.options.verticalSwiping===true){_.touchObject.minSwipe=_.listHeight/_.options.touchThreshold}switch(event.data.action){case"start":_.swipeStart(event);break;case"move":_.swipeMove(event);break;case"end":_.swipeEnd(event);break}};Slick.prototype.swipeMove=function(event){var _=this,edgeWasHit=false,curLeft,swipeDirection,swipeLength,positionOffset,touches,verticalSwipeLength;touches=event.originalEvent!==undefined?event.originalEvent.touches:null;if(!_.dragging||_.scrolling||touches&&touches.length!==1){return false}curLeft=_.getLeft(_.currentSlide);_.touchObject.curX=touches!==undefined?touches[0].pageX:event.clientX;_.touchObject.curY=touches!==undefined?touches[0].pageY:event.clientY;_.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(_.touchObject.curX-_.touchObject.startX,2)));verticalSwipeLength=Math.round(Math.sqrt(Math.pow(_.touchObject.curY-_.touchObject.startY,2)));if(!_.options.verticalSwiping&&!_.swiping&&verticalSwipeLength>4){_.scrolling=true;return false}if(_.options.verticalSwiping===true){_.touchObject.swipeLength=verticalSwipeLength}swipeDirection=_.swipeDirection();if(event.originalEvent!==undefined&&_.touchObject.swipeLength>4){_.swiping=true;event.preventDefault()}positionOffset=(_.options.rtl===false?1:-1)*(_.touchObject.curX>_.touchObject.startX?1:-1);if(_.options.verticalSwiping===true){positionOffset=_.touchObject.curY>_.touchObject.startY?1:-1}swipeLength=_.touchObject.swipeLength;_.touchObject.edgeHit=false;if(_.options.infinite===false){if(_.currentSlide===0&&swipeDirection==="right"||_.currentSlide>=_.getDotCount()&&swipeDirection==="left"){swipeLength=_.touchObject.swipeLength*_.options.edgeFriction;_.touchObject.edgeHit=true}}if(_.options.vertical===false){_.swipeLeft=curLeft+swipeLength*positionOffset}else{_.swipeLeft=curLeft+swipeLength*(_.$list.height()/_.listWidth)*positionOffset}if(_.options.verticalSwiping===true){_.swipeLeft=curLeft+swipeLength*positionOffset}if(_.options.fade===true||_.options.touchMove===false){return false}if(_.animating===true){_.swipeLeft=null;return false}_.setCSS(_.swipeLeft)};Slick.prototype.swipeStart=function(event){var _=this,touches;_.interrupted=true;if(_.touchObject.fingerCount!==1||_.slideCount<=_.options.slidesToShow){_.touchObject={};return false}if(event.originalEvent!==undefined&&event.originalEvent.touches!==undefined){touches=event.originalEvent.touches[0]}_.touchObject.startX=_.touchObject.curX=touches!==undefined?touches.pageX:event.clientX;_.touchObject.startY=_.touchObject.curY=touches!==undefined?touches.pageY:event.clientY;_.dragging=true};Slick.prototype.unfilterSlides=Slick.prototype.slickUnfilter=function(){var _=this;if(_.$slidesCache!==null){_.unload();_.$slideTrack.children(this.options.slide).detach();_.$slidesCache.appendTo(_.$slideTrack);_.reinit()}};Slick.prototype.unload=function(){var _=this;$(".slick-cloned",_.$slider).remove();if(_.$dots){_.$dots.remove()}if(_.$prevArrow&&_.htmlExpr.test(_.options.prevArrow)){_.$prevArrow.remove()}if(_.$nextArrow&&_.htmlExpr.test(_.options.nextArrow)){_.$nextArrow.remove()}_.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")};Slick.prototype.unslick=function(fromBreakpoint){var _=this;_.$slider.trigger("unslick",[_,fromBreakpoint]);_.destroy()};Slick.prototype.updateArrows=function(){var _=this,centerOffset;centerOffset=Math.floor(_.options.slidesToShow/2);if(_.options.arrows===true&&_.slideCount>_.options.slidesToShow&&!_.options.infinite){_.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false");_.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false");if(_.currentSlide===0){_.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true");_.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")}else if(_.currentSlide>=_.slideCount-_.options.slidesToShow&&_.options.centerMode===false){_.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true");_.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")}else if(_.currentSlide>=_.slideCount-1&&_.options.centerMode===true){_.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true");_.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")}}};Slick.prototype.updateDots=function(){var _=this;if(_.$dots!==null){_.$dots.find("li").removeClass("slick-active").end();_.$dots.find("li").eq(Math.floor(_.currentSlide/_.options.slidesToScroll)).addClass("slick-active")}};Slick.prototype.visibility=function(){var _=this;if(_.options.autoplay){if(document[_.hidden]){_.interrupted=true}else{_.interrupted=false}}};$.fn.slick=function(){var _=this,opt=arguments[0],args=Array.prototype.slice.call(arguments,1),l=_.length,i,ret;for(i=0;i<l;i++){if(typeof opt=="object"||typeof opt=="undefined")_[i].slick=new Slick(_[i],opt);else ret=_[i].slick[opt].apply(_[i].slick,args);if(typeof ret!="undefined")return ret}return _}});
(function(factory){if(typeof define==="function"&&define.amd){define(["jquery"],factory)}else if(typeof exports==="object"){factory(require("jquery"))}else{factory(window.jQuery||window.Zepto)}})(function($){var CLOSE_EVENT="Close",BEFORE_CLOSE_EVENT="BeforeClose",AFTER_CLOSE_EVENT="AfterClose",BEFORE_APPEND_EVENT="BeforeAppend",MARKUP_PARSE_EVENT="MarkupParse",OPEN_EVENT="Open",CHANGE_EVENT="Change",NS="mfp",EVENT_NS="."+NS,READY_CLASS="mfp-ready",REMOVING_CLASS="mfp-removing",PREVENT_CLOSE_CLASS="mfp-prevent-close";var mfp,MagnificPopup=function(){},_isJQ=!!window.jQuery,_prevStatus,_window=$(window),_document,_prevContentType,_wrapClasses,_currPopupType;var _mfpOn=function(name,f){mfp.ev.on(NS+name+EVENT_NS,f)},_getEl=function(className,appendTo,html,raw){var el=document.createElement("div");el.className="mfp-"+className;if(html){el.innerHTML=html}if(!raw){el=$(el);if(appendTo){el.appendTo(appendTo)}}else if(appendTo){appendTo.appendChild(el)}return el},_mfpTrigger=function(e,data){mfp.ev.triggerHandler(NS+e,data);if(mfp.st.callbacks){e=e.charAt(0).toLowerCase()+e.slice(1);if(mfp.st.callbacks[e]){mfp.st.callbacks[e].apply(mfp,$.isArray(data)?data:[data])}}},_getCloseBtn=function(type){if(type!==_currPopupType||!mfp.currTemplate.closeBtn){mfp.currTemplate.closeBtn=$(mfp.st.closeMarkup.replace("%title%",mfp.st.tClose));_currPopupType=type}return mfp.currTemplate.closeBtn},_checkInstance=function(){if(!$.magnificPopup.instance){mfp=new MagnificPopup;mfp.init();$.magnificPopup.instance=mfp}},supportsTransitions=function(){var s=document.createElement("p").style,v=["ms","O","Moz","Webkit"];if(s["transition"]!==undefined){return true}while(v.length){if(v.pop()+"Transition"in s){return true}}return false};MagnificPopup.prototype={constructor:MagnificPopup,init:function(){var appVersion=navigator.appVersion;mfp.isLowIE=mfp.isIE8=document.all&&!document.addEventListener;mfp.isAndroid=/android/gi.test(appVersion);mfp.isIOS=/iphone|ipad|ipod/gi.test(appVersion);mfp.supportsTransition=supportsTransitions();mfp.probablyMobile=mfp.isAndroid||mfp.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent);_document=$(document);mfp.popupsCache={}},open:function(data){var i;if(data.isObj===false){mfp.items=data.items.toArray();mfp.index=0;var items=data.items,item;for(i=0;i<items.length;i++){item=items[i];if(item.parsed){item=item.el[0]}if(item===data.el[0]){mfp.index=i;break}}}else{mfp.items=$.isArray(data.items)?data.items:[data.items];mfp.index=data.index||0}if(mfp.isOpen){mfp.updateItemHTML();return}mfp.types=[];_wrapClasses="";if(data.mainEl&&data.mainEl.length){mfp.ev=data.mainEl.eq(0)}else{mfp.ev=_document}if(data.key){if(!mfp.popupsCache[data.key]){mfp.popupsCache[data.key]={}}mfp.currTemplate=mfp.popupsCache[data.key]}else{mfp.currTemplate={}}mfp.st=$.extend(true,{},$.magnificPopup.defaults,data);mfp.fixedContentPos=mfp.st.fixedContentPos==="auto"?!mfp.probablyMobile:mfp.st.fixedContentPos;if(mfp.st.modal){mfp.st.closeOnContentClick=false;mfp.st.closeOnBgClick=false;mfp.st.showCloseBtn=false;mfp.st.enableEscapeKey=false}if(!mfp.bgOverlay){mfp.bgOverlay=_getEl("bg").on("click"+EVENT_NS,function(){mfp.close()});mfp.wrap=_getEl("wrap").attr("tabindex",-1).on("click"+EVENT_NS,function(e){if(mfp._checkIfClose(e.target)){mfp.close()}});mfp.container=_getEl("container",mfp.wrap)}mfp.contentContainer=_getEl("content");if(mfp.st.preloader){mfp.preloader=_getEl("preloader",mfp.container,mfp.st.tLoading)}var modules=$.magnificPopup.modules;for(i=0;i<modules.length;i++){var n=modules[i];n=n.charAt(0).toUpperCase()+n.slice(1);mfp["init"+n].call(mfp)}_mfpTrigger("BeforeOpen");if(mfp.st.showCloseBtn){if(!mfp.st.closeBtnInside){mfp.wrap.append(_getCloseBtn())}else{_mfpOn(MARKUP_PARSE_EVENT,function(e,template,values,item){values.close_replaceWith=_getCloseBtn(item.type)});_wrapClasses+=" mfp-close-btn-in"}}if(mfp.st.alignTop){_wrapClasses+=" mfp-align-top"}if(mfp.fixedContentPos){mfp.wrap.css({overflow:mfp.st.overflowY,overflowX:"hidden",overflowY:mfp.st.overflowY})}else{mfp.wrap.css({top:_window.scrollTop(),position:"absolute"})}if(mfp.st.fixedBgPos===false||mfp.st.fixedBgPos==="auto"&&!mfp.fixedContentPos){mfp.bgOverlay.css({height:_document.height(),position:"absolute"})}if(mfp.st.enableEscapeKey){_document.on("keyup"+EVENT_NS,function(e){if(e.keyCode===27){mfp.close()}})}_window.on("resize"+EVENT_NS,function(){mfp.updateSize()});if(!mfp.st.closeOnContentClick){_wrapClasses+=" mfp-auto-cursor"}if(_wrapClasses)mfp.wrap.addClass(_wrapClasses);var windowHeight=mfp.wH=_window.height();var windowStyles={};if(mfp.fixedContentPos){if(mfp._hasScrollBar(windowHeight)){var s=mfp._getScrollbarSize();if(s){windowStyles.marginRight=s}}}if(mfp.fixedContentPos){if(!mfp.isIE7){windowStyles.overflow="hidden"}else{$("body, html").css("overflow","hidden")}}var classesToadd=mfp.st.mainClass;if(mfp.isIE7){classesToadd+=" mfp-ie7"}if(classesToadd){mfp._addClassToMFP(classesToadd)}mfp.updateItemHTML();_mfpTrigger("BuildControls");$("html").css(windowStyles);mfp.bgOverlay.add(mfp.wrap).prependTo(mfp.st.prependTo||$(document.body));mfp._lastFocusedEl=document.activeElement;setTimeout(function(){if(mfp.content){mfp._addClassToMFP(READY_CLASS);mfp._setFocus()}else{mfp.bgOverlay.addClass(READY_CLASS)}_document.on("focusin"+EVENT_NS,mfp._onFocusIn)},16);mfp.isOpen=true;mfp.updateSize(windowHeight);_mfpTrigger(OPEN_EVENT);return data},close:function(){if(!mfp.isOpen)return;_mfpTrigger(BEFORE_CLOSE_EVENT);mfp.isOpen=false;if(mfp.st.removalDelay&&!mfp.isLowIE&&mfp.supportsTransition){mfp._addClassToMFP(REMOVING_CLASS);setTimeout(function(){mfp._close()},mfp.st.removalDelay)}else{mfp._close()}},_close:function(){_mfpTrigger(CLOSE_EVENT);var classesToRemove=REMOVING_CLASS+" "+READY_CLASS+" ";mfp.bgOverlay.detach();mfp.wrap.detach();mfp.container.empty();if(mfp.st.mainClass){classesToRemove+=mfp.st.mainClass+" "}mfp._removeClassFromMFP(classesToRemove);if(mfp.fixedContentPos){var windowStyles={marginRight:""};if(mfp.isIE7){$("body, html").css("overflow","")}else{windowStyles.overflow=""}$("html").css(windowStyles)}_document.off("keyup"+EVENT_NS+" focusin"+EVENT_NS);mfp.ev.off(EVENT_NS);mfp.wrap.attr("class","mfp-wrap").removeAttr("style");mfp.bgOverlay.attr("class","mfp-bg");mfp.container.attr("class","mfp-container");if(mfp.st.showCloseBtn&&(!mfp.st.closeBtnInside||mfp.currTemplate[mfp.currItem.type]===true)){if(mfp.currTemplate.closeBtn)mfp.currTemplate.closeBtn.detach()}if(mfp.st.autoFocusLast&&mfp._lastFocusedEl){$(mfp._lastFocusedEl).focus()}mfp.currItem=null;mfp.content=null;mfp.currTemplate=null;mfp.prevHeight=0;_mfpTrigger(AFTER_CLOSE_EVENT)},updateSize:function(winHeight){if(mfp.isIOS){var zoomLevel=document.documentElement.clientWidth/window.innerWidth;var height=window.innerHeight*zoomLevel;mfp.wrap.css("height",height);mfp.wH=height}else{mfp.wH=winHeight||_window.height()}if(!mfp.fixedContentPos){mfp.wrap.css("height",mfp.wH)}_mfpTrigger("Resize")},updateItemHTML:function(){var item=mfp.items[mfp.index];mfp.contentContainer.detach();if(mfp.content)mfp.content.detach();if(!item.parsed){item=mfp.parseEl(mfp.index)}var type=item.type;_mfpTrigger("BeforeChange",[mfp.currItem?mfp.currItem.type:"",type]);mfp.currItem=item;if(!mfp.currTemplate[type]){var markup=mfp.st[type]?mfp.st[type].markup:false;_mfpTrigger("FirstMarkupParse",markup);if(markup){mfp.currTemplate[type]=$(markup)}else{mfp.currTemplate[type]=true}}if(_prevContentType&&_prevContentType!==item.type){mfp.container.removeClass("mfp-"+_prevContentType+"-holder")}var newContent=mfp["get"+type.charAt(0).toUpperCase()+type.slice(1)](item,mfp.currTemplate[type]);mfp.appendContent(newContent,type);item.preloaded=true;_mfpTrigger(CHANGE_EVENT,item);_prevContentType=item.type;mfp.container.prepend(mfp.contentContainer);_mfpTrigger("AfterChange")},appendContent:function(newContent,type){mfp.content=newContent;if(newContent){if(mfp.st.showCloseBtn&&mfp.st.closeBtnInside&&mfp.currTemplate[type]===true){if(!mfp.content.find(".mfp-close").length){mfp.content.append(_getCloseBtn())}}else{mfp.content=newContent}}else{mfp.content=""}_mfpTrigger(BEFORE_APPEND_EVENT);mfp.container.addClass("mfp-"+type+"-holder");mfp.contentContainer.append(mfp.content)},parseEl:function(index){var item=mfp.items[index],type;if(item.tagName){item={el:$(item)}}else{type=item.type;item={data:item,src:item.src}}if(item.el){var types=mfp.types;for(var i=0;i<types.length;i++){if(item.el.hasClass("mfp-"+types[i])){type=types[i];break}}item.src=item.el.attr("data-mfp-src");if(!item.src){item.src=item.el.attr("href")}}item.type=type||mfp.st.type||"inline";item.index=index;item.parsed=true;mfp.items[index]=item;_mfpTrigger("ElementParse",item);return mfp.items[index]},addGroup:function(el,options){var eHandler=function(e){e.mfpEl=this;mfp._openClick(e,el,options)};if(!options){options={}}var eName="click.magnificPopup";options.mainEl=el;if(options.items){options.isObj=true;el.off(eName).on(eName,eHandler)}else{options.isObj=false;if(options.delegate){el.off(eName).on(eName,options.delegate,eHandler)}else{options.items=el;el.off(eName).on(eName,eHandler)}}},_openClick:function(e,el,options){var midClick=options.midClick!==undefined?options.midClick:$.magnificPopup.defaults.midClick;if(!midClick&&(e.which===2||e.ctrlKey||e.metaKey||e.altKey||e.shiftKey)){return}var disableOn=options.disableOn!==undefined?options.disableOn:$.magnificPopup.defaults.disableOn;if(disableOn){if($.isFunction(disableOn)){if(!disableOn.call(mfp)){return true}}else{if(_window.width()<disableOn){return true}}}if(e.type){e.preventDefault();if(mfp.isOpen){e.stopPropagation()}}options.el=$(e.mfpEl);if(options.delegate){options.items=el.find(options.delegate)}mfp.open(options)},updateStatus:function(status,text){if(mfp.preloader){if(_prevStatus!==status){mfp.container.removeClass("mfp-s-"+_prevStatus)}if(!text&&status==="loading"){text=mfp.st.tLoading}var data={status:status,text:text};_mfpTrigger("UpdateStatus",data);status=data.status;text=data.text;mfp.preloader.html(text);mfp.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()});mfp.container.addClass("mfp-s-"+status);_prevStatus=status}},_checkIfClose:function(target){if($(target).hasClass(PREVENT_CLOSE_CLASS)){return}var closeOnContent=mfp.st.closeOnContentClick;var closeOnBg=mfp.st.closeOnBgClick;if(closeOnContent&&closeOnBg){return true}else{if(!mfp.content||$(target).hasClass("mfp-close")||mfp.preloader&&target===mfp.preloader[0]){return true}if(target!==mfp.content[0]&&!$.contains(mfp.content[0],target)){if(closeOnBg){if($.contains(document,target)){return true}}}else if(closeOnContent){return true}}return false},_addClassToMFP:function(cName){mfp.bgOverlay.addClass(cName);mfp.wrap.addClass(cName)},_removeClassFromMFP:function(cName){this.bgOverlay.removeClass(cName);mfp.wrap.removeClass(cName)},_hasScrollBar:function(winHeight){return(mfp.isIE7?_document.height():document.body.scrollHeight)>(winHeight||_window.height())},_setFocus:function(){(mfp.st.focus?mfp.content.find(mfp.st.focus).eq(0):mfp.wrap).focus()},_onFocusIn:function(e){if(e.target!==mfp.wrap[0]&&!$.contains(mfp.wrap[0],e.target)){mfp._setFocus();return false}},_parseMarkup:function(template,values,item){var arr;if(item.data){values=$.extend(item.data,values)}_mfpTrigger(MARKUP_PARSE_EVENT,[template,values,item]);$.each(values,function(key,value){if(value===undefined||value===false){return true}arr=key.split("_");if(arr.length>1){var el=template.find(EVENT_NS+"-"+arr[0]);if(el.length>0){var attr=arr[1];if(attr==="replaceWith"){if(el[0]!==value[0]){el.replaceWith(value)}}else if(attr==="img"){if(el.is("img")){el.attr("src",value)}else{el.replaceWith($("<img>").attr("src",value).attr("class",el.attr("class")))}}else{el.attr(arr[1],value)}}}else{template.find(EVENT_NS+"-"+key).html(value)}})},_getScrollbarSize:function(){if(mfp.scrollbarSize===undefined){var scrollDiv=document.createElement("div");scrollDiv.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;";document.body.appendChild(scrollDiv);mfp.scrollbarSize=scrollDiv.offsetWidth-scrollDiv.clientWidth;document.body.removeChild(scrollDiv)}return mfp.scrollbarSize}};$.magnificPopup={instance:null,proto:MagnificPopup.prototype,modules:[],open:function(options,index){_checkInstance();if(!options){options={}}else{options=$.extend(true,{},options)}options.isObj=true;options.index=index||0;return this.instance.open(options)},close:function(){return $.magnificPopup.instance&&$.magnificPopup.instance.close()},registerModule:function(name,module){if(module.options){$.magnificPopup.defaults[name]=module.options}$.extend(this.proto,module.proto);this.modules.push(name)},defaults:{disableOn:0,key:null,midClick:false,mainClass:"",preloader:true,focus:"",closeOnContentClick:false,closeOnBgClick:true,closeBtnInside:true,showCloseBtn:true,enableEscapeKey:true,modal:false,alignTop:false,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&#215;</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:true}};$.fn.magnificPopup=function(options){_checkInstance();var jqEl=$(this);if(typeof options==="string"){if(options==="open"){var items,itemOpts=_isJQ?jqEl.data("magnificPopup"):jqEl[0].magnificPopup,index=parseInt(arguments[1],10)||0;if(itemOpts.items){items=itemOpts.items[index]}else{items=jqEl;if(itemOpts.delegate){items=items.find(itemOpts.delegate)}items=items.eq(index)}mfp._openClick({mfpEl:items},jqEl,itemOpts)}else{if(mfp.isOpen)mfp[options].apply(mfp,Array.prototype.slice.call(arguments,1))}}else{options=$.extend(true,{},options);if(_isJQ){jqEl.data("magnificPopup",options)}else{jqEl[0].magnificPopup=options}mfp.addGroup(jqEl,options)}return jqEl};var INLINE_NS="inline",_hiddenClass,_inlinePlaceholder,_lastInlineElement,_putInlineElementsBack=function(){if(_lastInlineElement){_inlinePlaceholder.after(_lastInlineElement.addClass(_hiddenClass)).detach();_lastInlineElement=null}};$.magnificPopup.registerModule(INLINE_NS,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){mfp.types.push(INLINE_NS);_mfpOn(CLOSE_EVENT+"."+INLINE_NS,function(){_putInlineElementsBack()})},getInline:function(item,template){_putInlineElementsBack();if(item.src){var inlineSt=mfp.st.inline,el=$(item.src);if(el.length){var parent=el[0].parentNode;if(parent&&parent.tagName){if(!_inlinePlaceholder){_hiddenClass=inlineSt.hiddenClass;_inlinePlaceholder=_getEl(_hiddenClass);_hiddenClass="mfp-"+_hiddenClass}_lastInlineElement=el.after(_inlinePlaceholder).detach().removeClass(_hiddenClass)}mfp.updateStatus("ready")}else{mfp.updateStatus("error",inlineSt.tNotFound);el=$("<div>")}item.inlineElement=el;return el}mfp.updateStatus("ready");mfp._parseMarkup(template,{},item);return template}}});var AJAX_NS="ajax",_ajaxCur,_removeAjaxCursor=function(){if(_ajaxCur){$(document.body).removeClass(_ajaxCur)}},_destroyAjaxRequest=function(){_removeAjaxCursor();if(mfp.req){mfp.req.abort()}};$.magnificPopup.registerModule(AJAX_NS,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){mfp.types.push(AJAX_NS);_ajaxCur=mfp.st.ajax.cursor;_mfpOn(CLOSE_EVENT+"."+AJAX_NS,_destroyAjaxRequest);_mfpOn("BeforeChange."+AJAX_NS,_destroyAjaxRequest)},getAjax:function(item){if(_ajaxCur){$(document.body).addClass(_ajaxCur)}mfp.updateStatus("loading");var opts=$.extend({url:item.src,success:function(data,textStatus,jqXHR){var temp={data:data,xhr:jqXHR};_mfpTrigger("ParseAjax",temp);mfp.appendContent($(temp.data),AJAX_NS);item.finished=true;_removeAjaxCursor();mfp._setFocus();setTimeout(function(){mfp.wrap.addClass(READY_CLASS)},16);mfp.updateStatus("ready");_mfpTrigger("AjaxContentAdded")},error:function(){_removeAjaxCursor();item.finished=item.loadError=true;mfp.updateStatus("error",mfp.st.ajax.tError.replace("%url%",item.src))}},mfp.st.ajax.settings);mfp.req=$.ajax(opts);return""}}});var _imgInterval,_getTitle=function(item){if(item.data&&item.data.title!==undefined)return item.data.title;var src=mfp.st.image.titleSrc;if(src){if($.isFunction(src)){return src.call(mfp,item)}else if(item.el){return item.el.attr(src)||""}}return""};$.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure">'+'<div class="mfp-close"></div>'+"<figure>"+'<div class="mfp-img"></div>'+"<figcaption>"+'<div class="mfp-bottom-bar">'+'<div class="mfp-title"></div>'+'<div class="mfp-counter"></div>'+"</div>"+"</figcaption>"+"</figure>"+"</div>",cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:true,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var imgSt=mfp.st.image,ns=".image";mfp.types.push("image");_mfpOn(OPEN_EVENT+ns,function(){if(mfp.currItem.type==="image"&&imgSt.cursor){$(document.body).addClass(imgSt.cursor)}});_mfpOn(CLOSE_EVENT+ns,function(){if(imgSt.cursor){$(document.body).removeClass(imgSt.cursor)}_window.off("resize"+EVENT_NS)});_mfpOn("Resize"+ns,mfp.resizeImage);if(mfp.isLowIE){_mfpOn("AfterChange",mfp.resizeImage)}},resizeImage:function(){var item=mfp.currItem;if(!item||!item.img)return;if(mfp.st.image.verticalFit){var decr=0;if(mfp.isLowIE){decr=parseInt(item.img.css("padding-top"),10)+parseInt(item.img.css("padding-bottom"),10)}item.img.css("max-height",mfp.wH-decr)}},_onImageHasSize:function(item){if(item.img){item.hasSize=true;if(_imgInterval){clearInterval(_imgInterval)}item.isCheckingImgSize=false;_mfpTrigger("ImageHasSize",item);if(item.imgHidden){if(mfp.content)mfp.content.removeClass("mfp-loading");item.imgHidden=false}}},findImageSize:function(item){var counter=0,img=item.img[0],mfpSetInterval=function(delay){if(_imgInterval){clearInterval(_imgInterval)}_imgInterval=setInterval(function(){if(img.naturalWidth>0){mfp._onImageHasSize(item);return}if(counter>200){clearInterval(_imgInterval)}counter++;if(counter===3){mfpSetInterval(10)}else if(counter===40){mfpSetInterval(50)}else if(counter===100){mfpSetInterval(500)}},delay)};mfpSetInterval(1)},getImage:function(item,template){var guard=0,onLoadComplete=function(){if(item){if(item.img[0].complete){item.img.off(".mfploader");if(item===mfp.currItem){mfp._onImageHasSize(item);mfp.updateStatus("ready")}item.hasSize=true;item.loaded=true;_mfpTrigger("ImageLoadComplete")}else{guard++;if(guard<200){setTimeout(onLoadComplete,100)}else{onLoadError()}}}},onLoadError=function(){if(item){item.img.off(".mfploader");if(item===mfp.currItem){mfp._onImageHasSize(item);mfp.updateStatus("error",imgSt.tError.replace("%url%",item.src))}item.hasSize=true;item.loaded=true;item.loadError=true}},imgSt=mfp.st.image;var el=template.find(".mfp-img");if(el.length){var img=document.createElement("img");img.className="mfp-img";if(item.el&&item.el.find("img").length){img.alt=item.el.find("img").attr("alt")}item.img=$(img).on("load.mfploader",onLoadComplete).on("error.mfploader",onLoadError);img.src=item.src;if(el.is("img")){item.img=item.img.clone()}img=item.img[0];if(img.naturalWidth>0){item.hasSize=true}else if(!img.width){item.hasSize=false}}mfp._parseMarkup(template,{title:_getTitle(item),img_replaceWith:item.img},item);mfp.resizeImage();if(item.hasSize){if(_imgInterval)clearInterval(_imgInterval);if(item.loadError){template.addClass("mfp-loading");mfp.updateStatus("error",imgSt.tError.replace("%url%",item.src))}else{template.removeClass("mfp-loading");mfp.updateStatus("ready")}return template}mfp.updateStatus("loading");item.loading=true;if(!item.hasSize){item.imgHidden=true;template.addClass("mfp-loading");mfp.findImageSize(item)}return template}}});var hasMozTransform,getHasMozTransform=function(){if(hasMozTransform===undefined){hasMozTransform=document.createElement("p").style.MozTransform!==undefined}return hasMozTransform};$.magnificPopup.registerModule("zoom",{options:{enabled:false,easing:"ease-in-out",duration:300,opener:function(element){return element.is("img")?element:element.find("img")}},proto:{initZoom:function(){var zoomSt=mfp.st.zoom,ns=".zoom",image;if(!zoomSt.enabled||!mfp.supportsTransition){return}var duration=zoomSt.duration,getElToAnimate=function(image){var newImg=image.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),transition="all "+zoomSt.duration/1e3+"s "+zoomSt.easing,cssObj={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},t="transition";cssObj["-webkit-"+t]=cssObj["-moz-"+t]=cssObj["-o-"+t]=cssObj[t]=transition;newImg.css(cssObj);return newImg},showMainContent=function(){mfp.content.css("visibility","visible")},openTimeout,animatedImg;_mfpOn("BuildControls"+ns,function(){if(mfp._allowZoom()){clearTimeout(openTimeout);mfp.content.css("visibility","hidden");image=mfp._getItemToZoom();if(!image){showMainContent();return}animatedImg=getElToAnimate(image);animatedImg.css(mfp._getOffset());mfp.wrap.append(animatedImg);openTimeout=setTimeout(function(){animatedImg.css(mfp._getOffset(true));openTimeout=setTimeout(function(){showMainContent();setTimeout(function(){animatedImg.remove();image=animatedImg=null;_mfpTrigger("ZoomAnimationEnded")},16)},duration)},16)}});_mfpOn(BEFORE_CLOSE_EVENT+ns,function(){if(mfp._allowZoom()){clearTimeout(openTimeout);mfp.st.removalDelay=duration;if(!image){image=mfp._getItemToZoom();if(!image){return}animatedImg=getElToAnimate(image)}animatedImg.css(mfp._getOffset(true));mfp.wrap.append(animatedImg);mfp.content.css("visibility","hidden");setTimeout(function(){animatedImg.css(mfp._getOffset())},16)}});_mfpOn(CLOSE_EVENT+ns,function(){if(mfp._allowZoom()){showMainContent();if(animatedImg){animatedImg.remove()}image=null}})},_allowZoom:function(){return mfp.currItem.type==="image"},_getItemToZoom:function(){if(mfp.currItem.hasSize){return mfp.currItem.img}else{return false}},_getOffset:function(isLarge){var el;if(isLarge){el=mfp.currItem.img}else{el=mfp.st.zoom.opener(mfp.currItem.el||mfp.currItem)}var offset=el.offset();var paddingTop=parseInt(el.css("padding-top"),10);var paddingBottom=parseInt(el.css("padding-bottom"),10);offset.top-=$(window).scrollTop()-paddingTop;var obj={width:el.width(),height:(_isJQ?el.innerHeight():el[0].offsetHeight)-paddingBottom-paddingTop};if(getHasMozTransform()){obj["-moz-transform"]=obj["transform"]="translate("+offset.left+"px,"+offset.top+"px)"}else{obj.left=offset.left;obj.top=offset.top}return obj}}});var IFRAME_NS="iframe",_emptyPage="//about:blank",_fixIframeBugs=function(isShowing){if(mfp.currTemplate[IFRAME_NS]){var el=mfp.currTemplate[IFRAME_NS].find("iframe");if(el.length){if(!isShowing){el[0].src=_emptyPage}if(mfp.isIE8){el.css("display",isShowing?"block":"none")}}}};$.magnificPopup.registerModule(IFRAME_NS,{options:{markup:'<div class="mfp-iframe-scaler">'+'<div class="mfp-close"></div>'+'<iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe>'+"</div>",srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},youtube2:{index:"youtu.be/",id:"/",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){mfp.types.push(IFRAME_NS);_mfpOn("BeforeChange",function(e,prevType,newType){if(prevType!==newType){if(prevType===IFRAME_NS){_fixIframeBugs()}else if(newType===IFRAME_NS){_fixIframeBugs(true)}}});_mfpOn(CLOSE_EVENT+"."+IFRAME_NS,function(){_fixIframeBugs()})},getIframe:function(item,template){var embedSrc=item.src;var iframeSt=mfp.st.iframe;$.each(iframeSt.patterns,function(){if(embedSrc.indexOf(this.index)>-1){if(this.id){if(typeof this.id==="string"){embedSrc=embedSrc.substr(embedSrc.lastIndexOf(this.id)+this.id.length,embedSrc.length)}else{embedSrc=this.id.call(this,embedSrc)}}embedSrc=this.src.replace("%id%",embedSrc);return false}});var dataObj={};if(iframeSt.srcAction){dataObj[iframeSt.srcAction]=embedSrc}mfp._parseMarkup(template,dataObj,item);mfp.updateStatus("ready");return template}}});var _getLoopedId=function(index){var numSlides=mfp.items.length;if(index>numSlides-1){return index-numSlides}else if(index<0){return numSlides+index}return index},_replaceCurrTotal=function(text,curr,total){return text.replace(/%curr%/gi,curr+1).replace(/%total%/gi,total)};$.magnificPopup.registerModule("gallery",{options:{enabled:false,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:true,arrows:true,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var gSt=mfp.st.gallery,ns=".mfp-gallery";mfp.direction=true;if(!gSt||!gSt.enabled)return false;_wrapClasses+=" mfp-gallery";_mfpOn(OPEN_EVENT+ns,function(){if(gSt.navigateByImgClick){mfp.wrap.on("click"+ns,".mfp-img",function(){if(mfp.items.length>1){mfp.next();return false}})}_document.on("keydown"+ns,function(e){if(e.keyCode===37){mfp.prev()}else if(e.keyCode===39){mfp.next()}})});_mfpOn("UpdateStatus"+ns,function(e,data){if(data.text){data.text=_replaceCurrTotal(data.text,mfp.currItem.index,mfp.items.length)}});_mfpOn(MARKUP_PARSE_EVENT+ns,function(e,element,values,item){var l=mfp.items.length;values.counter=l>1?_replaceCurrTotal(gSt.tCounter,item.index,l):""});_mfpOn("BuildControls"+ns,function(){if(mfp.items.length>1&&gSt.arrows&&!mfp.arrowLeft){var markup=gSt.arrowMarkup,arrowLeft=mfp.arrowLeft=$(markup.replace(/%title%/gi,gSt.tPrev).replace(/%dir%/gi,"left")).addClass(PREVENT_CLOSE_CLASS),arrowRight=mfp.arrowRight=$(markup.replace(/%title%/gi,gSt.tNext).replace(/%dir%/gi,"right")).addClass(PREVENT_CLOSE_CLASS);arrowLeft.click(function(){mfp.prev()});arrowRight.click(function(){mfp.next()});mfp.container.append(arrowLeft.add(arrowRight))}});_mfpOn(CHANGE_EVENT+ns,function(){if(mfp._preloadTimeout)clearTimeout(mfp._preloadTimeout);mfp._preloadTimeout=setTimeout(function(){mfp.preloadNearbyImages();mfp._preloadTimeout=null},16)});_mfpOn(CLOSE_EVENT+ns,function(){_document.off(ns);mfp.wrap.off("click"+ns);mfp.arrowRight=mfp.arrowLeft=null})},next:function(){mfp.direction=true;mfp.index=_getLoopedId(mfp.index+1);mfp.updateItemHTML()},prev:function(){mfp.direction=false;mfp.index=_getLoopedId(mfp.index-1);mfp.updateItemHTML()},goTo:function(newIndex){mfp.direction=newIndex>=mfp.index;mfp.index=newIndex;mfp.updateItemHTML()},preloadNearbyImages:function(){var p=mfp.st.gallery.preload,preloadBefore=Math.min(p[0],mfp.items.length),preloadAfter=Math.min(p[1],mfp.items.length),i;for(i=1;i<=(mfp.direction?preloadAfter:preloadBefore);i++){mfp._preloadItem(mfp.index+i)}for(i=1;i<=(mfp.direction?preloadBefore:preloadAfter);i++){mfp._preloadItem(mfp.index-i)}},_preloadItem:function(index){index=_getLoopedId(index);if(mfp.items[index].preloaded){return}var item=mfp.items[index];if(!item.parsed){item=mfp.parseEl(index)}_mfpTrigger("LazyLoad",item);if(item.type==="image"){item.img=$('<img class="mfp-img" />').on("load.mfploader",function(){item.hasSize=true}).on("error.mfploader",function(){item.hasSize=true;item.loadError=true;_mfpTrigger("LazyLoadError",item)}).attr("src",item.src)}item.preloaded=true}}});var RETINA_NS="retina";$.magnificPopup.registerModule(RETINA_NS,{options:{replaceSrc:function(item){return item.src.replace(/\.\w+$/,function(m){return"@2x"+m})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var st=mfp.st.retina,ratio=st.ratio;ratio=!isNaN(ratio)?ratio:ratio();if(ratio>1){_mfpOn("ImageHasSize"+"."+RETINA_NS,function(e,item){item.img.css({"max-width":item.img[0].naturalWidth/ratio,width:"100%"})});_mfpOn("ElementParse"+"."+RETINA_NS,function(e,item){item.src=st.replaceSrc(item,ratio)})}}}}});_checkInstance()});
!function(t,i){"object"==typeof exports?module.exports=i():"function"==typeof define&&define.amd?define(i):t.Spinner=i()}(this,function(){"use strict";function t(t,i){var e,o=document.createElement(t||"div");for(e in i)o[e]=i[e];return o}function i(t){for(var i=1,e=arguments.length;i<e;i++)t.appendChild(arguments[i]);return t}function e(t,i,e,o){var n=["opacity",i,~~(100*t),e,o].join("-"),r=.01+e/o*100,s=Math.max(1-(1-t)/i*(100-r),t),a=l.substring(0,l.indexOf("Animation")).toLowerCase(),c=a&&"-"+a+"-"||"";return d[n]||(p.insertRule("@"+c+"keyframes "+n+"{0%{opacity:"+s+"}"+r+"%{opacity:"+t+"}"+(r+.01)+"%{opacity:1}"+(r+i)%100+"%{opacity:"+t+"}100%{opacity:"+s+"}}",p.cssRules.length),d[n]=1),n}function o(t,i){var e,o,n=t.style;for(i=i.charAt(0).toUpperCase()+i.slice(1),o=0;o<c.length;o++)if(e=c[o]+i,void 0!==n[e])return e;if(void 0!==n[i])return i}function n(t,i){for(var e in i)t.style[o(t,e)||e]=i[e];return t}function r(t){for(var i=1;i<arguments.length;i++){var e=arguments[i];for(var o in e)void 0===t[o]&&(t[o]=e[o])}return t}function s(t,i){return"string"==typeof t?t:t[i%t.length]}function a(t){this.opts=r(t||{},a.defaults,u)}var l,c=["webkit","Moz","ms","O"],d={},p=function(){var e=t("style",{type:"text/css"});return i(document.getElementsByTagName("head")[0],e),e.sheet||e.styleSheet}(),u={lines:12,length:7,width:5,radius:10,rotate:0,corners:1,color:"#000",direction:1,speed:1,trail:100,opacity:.25,fps:20,zIndex:2e9,className:"spinner",top:"50%",left:"50%",position:"absolute"};a.defaults={},r(a.prototype,{spin:function(i){this.stop();var e=this,o=e.opts,r=e.el=n(t(0,{className:o.className}),{position:o.position,width:0,zIndex:o.zIndex});o.radius,o.length,o.width;if(n(r,{left:o.left,top:o.top}),i&&i.insertBefore(r,i.firstChild||null),r.setAttribute("role","progressbar"),e.lines(r,e.opts),!l){var s,a=0,c=(o.lines-1)*(1-o.direction)/2,d=o.fps,p=d/o.speed,u=(1-o.opacity)/(p*o.trail/100),f=p/o.lines;!function t(){a++;for(var i=0;i<o.lines;i++)s=Math.max(1-(a+(o.lines-i)*f)%p*u,o.opacity),e.opacity(r,i*o.direction+c,s,o);e.timeout=e.el&&setTimeout(t,~~(1e3/d))}()}return e},stop:function(){var t=this.el;return t&&(clearTimeout(this.timeout),t.parentNode&&t.parentNode.removeChild(t),this.el=void 0),this},lines:function(o,r){function a(i,e){return n(t(),{position:"absolute",width:r.length+r.width+"px",height:r.width+"px",background:i,boxShadow:e,transformOrigin:"left",transform:"rotate("+~~(360/r.lines*d+r.rotate)+"deg) translate("+r.radius+"px,0)",borderRadius:(r.corners*r.width>>1)+"px"})}for(var c,d=0,p=(r.lines-1)*(1-r.direction)/2;d<r.lines;d++)c=n(t(),{position:"absolute",top:1+~(r.width/2)+"px",transform:r.hwaccel?"translate3d(0,0,0)":"",opacity:r.opacity,animation:l&&e(r.opacity,r.trail,p+d*r.direction,r.lines)+" "+1/r.speed+"s linear infinite"}),r.shadow&&i(c,n(a("#000","0 0 4px #000"),{top:"2px"})),i(o,i(c,a(s(r.color,d),"0 0 1px rgba(0,0,0,.1)")));return o},opacity:function(t,i,e){i<t.childNodes.length&&(t.childNodes[i].style.opacity=e)}});var f=n(t("group"),{behavior:"url(#default#VML)"});return!o(f,"transform")&&f.adj?function(){function e(i,e){return t("<"+i+' xmlns="urn:schemas-microsoft.com:vml" class="spin-vml">',e)}p.addRule(".spin-vml","behavior:url(#default#VML)"),a.prototype.lines=function(t,o){function r(){return n(e("group",{coordsize:d+" "+d,coordorigin:-c+" "+-c}),{width:d,height:d})}function a(t,a,l){i(u,i(n(r(),{rotation:360/o.lines*t+"deg",left:~~a}),i(n(e("roundrect",{arcsize:o.corners}),{width:c,height:o.width,left:o.radius,top:-o.width>>1,filter:l}),e("fill",{color:s(o.color,t),opacity:o.opacity}),e("stroke",{opacity:0}))))}var l,c=o.length+o.width,d=2*c,p=2*-(o.width+o.length)+"px",u=n(r(),{position:"absolute",top:p,left:p});if(o.shadow)for(l=1;l<=o.lines;l++)a(l,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(l=1;l<=o.lines;l++)a(l);return i(t,u)},a.prototype.opacity=function(t,i,e,o){var n=t.firstChild;o=o.shadow&&o.lines||0,n&&i+o<n.childNodes.length&&(n=(n=(n=n.childNodes[i+o])&&n.firstChild)&&n.firstChild)&&(n.opacity=e)}}():l=o(f,"animation"),a});
!function(t,e){"use strict";"object"==typeof exports?module.exports=e(require("spin.js")):"function"==typeof define&&define.amd?define(["spin"],e):t.Ladda=e(t.Spinner)}(this,function(t){"use strict";function e(t){if(void 0!==t){if(/ladda-button/i.test(t.className)||(t.className+=" ladda-button"),t.hasAttribute("data-style")||t.setAttribute("data-style","expand-right"),!t.querySelector(".ladda-label")){var e=document.createElement("span");e.className="ladda-label",r(t,e)}var a,u=t.querySelector(".ladda-spinner");u||((u=document.createElement("span")).className="ladda-spinner"),t.appendChild(u);var i,o={start:function(){return a||(a=n(t)),t.disabled=!0,t.setAttribute("data-loading",""),clearTimeout(i),a.spin(u),this.setProgress(0),this},startAfter:function(t){return clearTimeout(i),i=setTimeout(function(){o.start()},t),this},stop:function(){return o.isLoading()&&(t.disabled=!1,t.removeAttribute("data-loading")),clearTimeout(i),a&&(i=setTimeout(function(){a.stop()},1e3)),this},toggle:function(){return this.isLoading()?this.stop():this.start()},setProgress:function(e){e=Math.max(Math.min(e,1),0);var a=t.querySelector(".ladda-progress");0===e&&a&&a.parentNode?a.parentNode.removeChild(a):(a||((a=document.createElement("div")).className="ladda-progress",t.appendChild(a)),a.style.width=(e||0)*t.offsetWidth+"px")},enable:function(){return this.stop()},disable:function(){return this.stop(),t.disabled=!0,this},isLoading:function(){return t.hasAttribute("data-loading")},remove:function(){clearTimeout(i),t.disabled=!1,t.removeAttribute("data-loading"),a&&(a.stop(),a=null),d.splice(d.indexOf(o),1)}};return d.push(o),o}console.warn("Ladda button target must be defined.")}function a(t,e){for(;t.parentNode&&t.tagName!==e;)t=t.parentNode;return e===t.tagName?t:void 0}function u(t){var e=[];return["input","textarea","select"].forEach(function(a){for(var u=t.getElementsByTagName(a),n=0;n<u.length;n++)u[n].hasAttribute("required")&&e.push(u[n])}),e}function n(e){var a,u,n=e.offsetHeight;0===n&&(n=parseFloat(window.getComputedStyle(e).height)),n>32&&(n*=.8),e.hasAttribute("data-spinner-size")&&(n=parseInt(e.getAttribute("data-spinner-size"),10)),e.hasAttribute("data-spinner-color")&&(a=e.getAttribute("data-spinner-color")),e.hasAttribute("data-spinner-lines")&&(u=parseInt(e.getAttribute("data-spinner-lines"),10));var r=.2*n,i=.6*r,d=r<7?2:3;return new t({color:a||"#fff",lines:u||12,radius:r,length:i,width:d,zIndex:"auto",top:"auto",left:"auto",className:""})}function r(t,e){var a=document.createRange();a.selectNodeContents(t),a.surroundContents(e),t.appendChild(e)}function i(t,n){if("function"==typeof t.addEventListener){var r=e(t),i=-1;t.addEventListener("click",function(){var e=!0,d=a(t,"FORM");if(void 0!==d)if("function"==typeof d.checkValidity)e=d.checkValidity();else for(var o=u(d),s=0;s<o.length;s++){var F=o[s],l=F.getAttribute("type");if(""===F.value.replace(/^\s+|\s+$/g,"")&&(e=!1),"checkbox"!==l&&"radio"!==l||F.checked||(e=!1),"email"===l&&(e=/^[a-z0-9!#$%&'*+/=?^_`{|}~.-]+@[a-z0-9-]+(\.[a-z0-9-]+)*$/i.test(F.value)),"url"===l&&(e=/^([a-z]([a-z]|\d|\+|-|\.)*):(\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?((\[(|(v[\da-f]{1,}\.(([a-z]|\d|-|\.|_|~)|[!\$&'\(\)\*\+,;=]|:)+))\])|((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=])*)(:\d*)?)(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*|(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)|((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)|((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)){0})(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(F.value)),!e)break}e&&(r.startAfter(1),"number"==typeof n.timeout&&(clearTimeout(i),i=setTimeout(r.stop,n.timeout)),"function"==typeof n.callback&&n.callback.apply(null,[r]))},!1)}}var d=[];return{bind:function(t,e){var a;if("string"==typeof t)a=document.querySelectorAll(t);else{if("object"!=typeof t)throw new Error("target must be string or object");a=[t]}e=e||{};for(var u=0;u<a.length;u++)i(a[u],e)},create:e,stopAll:function(){for(var t=0,e=d.length;t<e;t++)d[t].stop()}}});
!function(a,i){"use strict";if(void 0===i)return console.error("jQuery required for Ladda.jQuery");var t=[];(i=i.extend(i,{ladda:function(i){"stopAll"===i&&a.stopAll()}})).fn=i.extend(i.fn,{ladda:function(d){var e=t.slice.call(arguments,1);if("bind"===d)e.unshift(i(this).selector),a.bind.apply(a,e);else{if("isLoading"===d)return i(this).data("ladda").isLoading();i(this).each(function(){var t,n=i(this);void 0===d?n.data("ladda",a.create(this)):(t=n.data("ladda"))[d].apply(t,e)})}return this}})}(this.Ladda,this.jQuery);
var _slice=Array.prototype.slice;var _slicedToArray=function(){function sliceIterator(arr,i){var _arr=[];var _n=true;var _d=false;var _e=undefined;try{for(var _i=arr[Symbol.iterator](),_s;!(_n=(_s=_i.next()).done);_n=true){_arr.push(_s.value);if(i&&_arr.length===i)break}}catch(err){_d=true;_e=err}finally{try{if(!_n&&_i["return"])_i["return"]()}finally{if(_d)throw _e}}return _arr}return function(arr,i){if(Array.isArray(arr)){return arr}else if(Symbol.iterator in Object(arr)){return sliceIterator(arr,i)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key]}}}return target};function _toConsumableArray(arr){if(Array.isArray(arr)){for(var i=0,arr2=Array(arr.length);i<arr.length;i++)arr2[i]=arr[i];return arr2}else{return Array.from(arr)}}(function(global,factory){typeof exports==="object"&&typeof module!=="undefined"?module.exports=factory(require("jquery")):typeof define==="function"&&define.amd?define(["jquery"],factory):global.parsley=factory(global.jQuery)})(this,function($){"use strict";var globalID=1;var pastWarnings={};var Utils={attr:function attr(element,namespace,obj){var i;var attribute;var attributes;var regex=new RegExp("^"+namespace,"i");if("undefined"===typeof obj)obj={};else{for(i in obj){if(obj.hasOwnProperty(i))delete obj[i]}}if(!element)return obj;attributes=element.attributes;for(i=attributes.length;i--;){attribute=attributes[i];if(attribute&&attribute.specified&&regex.test(attribute.name)){obj[this.camelize(attribute.name.slice(namespace.length))]=this.deserializeValue(attribute.value)}}return obj},checkAttr:function checkAttr(element,namespace,_checkAttr){return element.hasAttribute(namespace+_checkAttr)},setAttr:function setAttr(element,namespace,attr,value){element.setAttribute(this.dasherize(namespace+attr),String(value))},getType:function getType(element){return element.getAttribute("type")||"text"},generateID:function generateID(){return""+globalID++},deserializeValue:function deserializeValue(value){var num;try{return value?value=="true"||(value=="false"?false:value=="null"?null:!isNaN(num=Number(value))?num:/^[\[\{]/.test(value)?JSON.parse(value):value):value}catch(e){return value}},camelize:function camelize(str){return str.replace(/-+(.)?/g,function(match,chr){return chr?chr.toUpperCase():""})},dasherize:function dasherize(str){return str.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()},warn:function warn(){var _window$console;if(window.console&&"function"===typeof window.console.warn)(_window$console=window.console).warn.apply(_window$console,arguments)},warnOnce:function warnOnce(msg){if(!pastWarnings[msg]){pastWarnings[msg]=true;this.warn.apply(this,arguments)}},_resetWarnings:function _resetWarnings(){pastWarnings={}},trimString:function trimString(string){return string.replace(/^\s+|\s+$/g,"")},parse:{date:function date(string){var parsed=string.match(/^(\d{4,})-(\d\d)-(\d\d)$/);if(!parsed)return null;var _parsed$map=parsed.map(function(x){return parseInt(x,10)});var _parsed$map2=_slicedToArray(_parsed$map,4);var _=_parsed$map2[0];var year=_parsed$map2[1];var month=_parsed$map2[2];var day=_parsed$map2[3];var date=new Date(year,month-1,day);if(date.getFullYear()!==year||date.getMonth()+1!==month||date.getDate()!==day)return null;return date},string:function string(_string){return _string},integer:function integer(string){if(isNaN(string))return null;return parseInt(string,10)},number:function number(string){if(isNaN(string))throw null;return parseFloat(string)},boolean:function _boolean(string){return!/^\s*false\s*$/i.test(string)},object:function object(string){return Utils.deserializeValue(string)},regexp:function regexp(_regexp){var flags="";if(/^\/.*\/(?:[gimy]*)$/.test(_regexp)){flags=_regexp.replace(/.*\/([gimy]*)$/,"$1");_regexp=_regexp.replace(new RegExp("^/(.*?)/"+flags+"$"),"$1")}else{_regexp="^"+_regexp+"$"}return new RegExp(_regexp,flags)}},parseRequirement:function parseRequirement(requirementType,string){var converter=this.parse[requirementType||"string"];if(!converter)throw'Unknown requirement specification: "'+requirementType+'"';var converted=converter(string);if(converted===null)throw"Requirement is not a "+requirementType+': "'+string+'"';return converted},namespaceEvents:function namespaceEvents(events,namespace){events=this.trimString(events||"").split(/\s+/);if(!events[0])return"";return $.map(events,function(evt){return evt+"."+namespace}).join(" ")},difference:function difference(array,remove){var result=[];$.each(array,function(_,elem){if(remove.indexOf(elem)==-1)result.push(elem)});return result},all:function all(promises){return $.when.apply($,_toConsumableArray(promises).concat([42,42]))},objectCreate:Object.create||function(){var Object=function Object(){};return function(prototype){if(arguments.length>1){throw Error("Second argument not supported")}if(typeof prototype!="object"){throw TypeError("Argument must be an object")}Object.prototype=prototype;var result=new Object;Object.prototype=null;return result}}(),_SubmitSelector:'input[type="submit"], button:submit'};var Defaults={namespace:"data-parsley-",inputs:"input, textarea, select",excluded:"input[type=button], input[type=submit], input[type=reset], input[type=hidden]",priorityEnabled:true,multiple:null,group:null,uiEnabled:true,validationThreshold:3,focus:"first",trigger:false,triggerAfterFailure:"input",errorClass:"parsley-error",successClass:"parsley-success",classHandler:function classHandler(Field){},errorsContainer:function errorsContainer(Field){},errorsWrapper:'<ul class="parsley-errors-list"></ul>',errorTemplate:"<li></li>"};var Base=function Base(){this.__id__=Utils.generateID()};Base.prototype={asyncSupport:true,_pipeAccordingToValidationResult:function _pipeAccordingToValidationResult(){var _this=this;var pipe=function pipe(){var r=$.Deferred();if(true!==_this.validationResult)r.reject();return r.resolve().promise()};return[pipe,pipe]},actualizeOptions:function actualizeOptions(){Utils.attr(this.element,this.options.namespace,this.domOptions);if(this.parent&&this.parent.actualizeOptions)this.parent.actualizeOptions();return this},_resetOptions:function _resetOptions(initOptions){this.domOptions=Utils.objectCreate(this.parent.options);this.options=Utils.objectCreate(this.domOptions);for(var i in initOptions){if(initOptions.hasOwnProperty(i))this.options[i]=initOptions[i]}this.actualizeOptions()},_listeners:null,on:function on(name,fn){this._listeners=this._listeners||{};var queue=this._listeners[name]=this._listeners[name]||[];queue.push(fn);return this},subscribe:function subscribe(name,fn){$.listenTo(this,name.toLowerCase(),fn)},off:function off(name,fn){var queue=this._listeners&&this._listeners[name];if(queue){if(!fn){delete this._listeners[name]}else{for(var i=queue.length;i--;)if(queue[i]===fn)queue.splice(i,1)}}return this},unsubscribe:function unsubscribe(name,fn){$.unsubscribeTo(this,name.toLowerCase())},trigger:function trigger(name,target,extraArg){target=target||this;var queue=this._listeners&&this._listeners[name];var result;var parentResult;if(queue){for(var i=queue.length;i--;){result=queue[i].call(target,target,extraArg);if(result===false)return result}}if(this.parent){return this.parent.trigger(name,target,extraArg)}return true},asyncIsValid:function asyncIsValid(group,force){Utils.warnOnce("asyncIsValid is deprecated; please use whenValid instead");return this.whenValid({group:group,force:force})},_findRelated:function _findRelated(){return this.options.multiple?$(this.parent.element.querySelectorAll("["+this.options.namespace+'multiple="'+this.options.multiple+'"]')):this.$element}};var convertArrayRequirement=function convertArrayRequirement(string,length){var m=string.match(/^\s*\[(.*)\]\s*$/);if(!m)throw'Requirement is not an array: "'+string+'"';var values=m[1].split(",").map(Utils.trimString);if(values.length!==length)throw"Requirement has "+values.length+" values when "+length+" are needed";return values};var convertExtraOptionRequirement=function convertExtraOptionRequirement(requirementSpec,string,extraOptionReader){var main=null;var extra={};for(var key in requirementSpec){if(key){var value=extraOptionReader(key);if("string"===typeof value)value=Utils.parseRequirement(requirementSpec[key],value);extra[key]=value}else{main=Utils.parseRequirement(requirementSpec[key],string)}}return[main,extra]};var Validator=function Validator(spec){$.extend(true,this,spec)};Validator.prototype={validate:function validate(value,requirementFirstArg){if(this.fn){if(arguments.length>3)requirementFirstArg=[].slice.call(arguments,1,-1);return this.fn(value,requirementFirstArg)}if(Array.isArray(value)){if(!this.validateMultiple)throw"Validator `"+this.name+"` does not handle multiple values";return this.validateMultiple.apply(this,arguments)}else{var instance=arguments[arguments.length-1];if(this.validateDate&&instance._isDateInput()){arguments[0]=Utils.parse.date(arguments[0]);if(arguments[0]===null)return false;return this.validateDate.apply(this,arguments)}if(this.validateNumber){if(isNaN(value))return false;arguments[0]=parseFloat(arguments[0]);return this.validateNumber.apply(this,arguments)}if(this.validateString){return this.validateString.apply(this,arguments)}throw"Validator `"+this.name+"` only handles multiple values"}},parseRequirements:function parseRequirements(requirements,extraOptionReader){if("string"!==typeof requirements){return Array.isArray(requirements)?requirements:[requirements]}var type=this.requirementType;if(Array.isArray(type)){var values=convertArrayRequirement(requirements,type.length);for(var i=0;i<values.length;i++)values[i]=Utils.parseRequirement(type[i],values[i]);return values}else if($.isPlainObject(type)){return convertExtraOptionRequirement(type,requirements,extraOptionReader)}else{return[Utils.parseRequirement(type,requirements)]}},requirementType:"string",priority:2};var ValidatorRegistry=function ValidatorRegistry(validators,catalog){this.__class__="ValidatorRegistry";this.locale="en";this.init(validators||{},catalog||{})};var typeTesters={email:/^((([a-zA-Z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-zA-Z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/,number:/^-?(\d*\.)?\d+(e[-+]?\d+)?$/i,integer:/^-?\d+$/,digits:/^\d+$/,alphanum:/^\w+$/i,date:{test:function test(value){return Utils.parse.date(value)!==null}},url:new RegExp("^"+"(?:(?:https?|ftp)://)?"+"(?:\\S+(?::\\S*)?@)?"+"(?:"+"(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])"+"(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}"+"(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))"+"|"+"(?:(?:[a-zA-Z\\u00a1-\\uffff0-9]-*)*[a-zA-Z\\u00a1-\\uffff0-9]+)"+"(?:\\.(?:[a-zA-Z\\u00a1-\\uffff0-9]-*)*[a-zA-Z\\u00a1-\\uffff0-9]+)*"+"(?:\\.(?:[a-zA-Z\\u00a1-\\uffff]{2,}))"+")"+"(?::\\d{2,5})?"+"(?:/\\S*)?"+"$")};typeTesters.range=typeTesters.number;var decimalPlaces=function decimalPlaces(num){var match=(""+num).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);if(!match){return 0}return Math.max(0,(match[1]?match[1].length:0)-(match[2]?+match[2]:0))};var ValidatorRegistry__parseArguments=function ValidatorRegistry__parseArguments(type,args){return args.map(Utils.parse[type])};var ValidatorRegistry__operatorToValidator=function ValidatorRegistry__operatorToValidator(type,operator){return function(value){for(var _len=arguments.length,requirementsAndInput=Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){requirementsAndInput[_key-1]=arguments[_key]}requirementsAndInput.pop();return operator.apply(undefined,[value].concat(_toConsumableArray(ValidatorRegistry__parseArguments(type,requirementsAndInput))))}};var ValidatorRegistry__comparisonOperator=function ValidatorRegistry__comparisonOperator(operator){return{validateDate:ValidatorRegistry__operatorToValidator("date",operator),validateNumber:ValidatorRegistry__operatorToValidator("number",operator),requirementType:operator.length<=2?"string":["string","string"],priority:30}};ValidatorRegistry.prototype={init:function init(validators,catalog){this.catalog=catalog;this.validators=_extends({},this.validators);for(var name in validators)this.addValidator(name,validators[name].fn,validators[name].priority);window.Parsley.trigger("parsley:validator:init")},setLocale:function setLocale(locale){if("undefined"===typeof this.catalog[locale])throw new Error(locale+" is not available in the catalog");this.locale=locale;return this},addCatalog:function addCatalog(locale,messages,set){if("object"===typeof messages)this.catalog[locale]=messages;if(true===set)return this.setLocale(locale);return this},addMessage:function addMessage(locale,name,message){if("undefined"===typeof this.catalog[locale])this.catalog[locale]={};this.catalog[locale][name]=message;return this},addMessages:function addMessages(locale,nameMessageObject){for(var name in nameMessageObject)this.addMessage(locale,name,nameMessageObject[name]);return this},addValidator:function addValidator(name,arg1,arg2){if(this.validators[name])Utils.warn('Validator "'+name+'" is already defined.');else if(Defaults.hasOwnProperty(name)){Utils.warn('"'+name+'" is a restricted keyword and is not a valid validator name.');return}return this._setValidator.apply(this,arguments)},hasValidator:function hasValidator(name){return!!this.validators[name]},updateValidator:function updateValidator(name,arg1,arg2){if(!this.validators[name]){Utils.warn('Validator "'+name+'" is not already defined.');return this.addValidator.apply(this,arguments)}return this._setValidator.apply(this,arguments)},removeValidator:function removeValidator(name){if(!this.validators[name])Utils.warn('Validator "'+name+'" is not defined.');delete this.validators[name];return this},_setValidator:function _setValidator(name,validator,priority){if("object"!==typeof validator){validator={fn:validator,priority:priority}}if(!validator.validate){validator=new Validator(validator)}this.validators[name]=validator;for(var locale in validator.messages||{})this.addMessage(locale,name,validator.messages[locale]);return this},getErrorMessage:function getErrorMessage(constraint){var message;if("type"===constraint.name){var typeMessages=this.catalog[this.locale][constraint.name]||{};message=typeMessages[constraint.requirements]}else message=this.formatMessage(this.catalog[this.locale][constraint.name],constraint.requirements);return message||this.catalog[this.locale].defaultMessage||this.catalog.en.defaultMessage},formatMessage:function formatMessage(string,parameters){if("object"===typeof parameters){for(var i in parameters)string=this.formatMessage(string,parameters[i]);return string}return"string"===typeof string?string.replace(/%s/i,parameters):""},validators:{notblank:{validateString:function validateString(value){return/\S/.test(value)},priority:2},required:{validateMultiple:function validateMultiple(values){return values.length>0},validateString:function validateString(value){return/\S/.test(value)},priority:512},type:{validateString:function validateString(value,type){var _ref=arguments.length<=2||arguments[2]===undefined?{}:arguments[2];var _ref$step=_ref.step;var step=_ref$step===undefined?"any":_ref$step;var _ref$base=_ref.base;var base=_ref$base===undefined?0:_ref$base;var tester=typeTesters[type];if(!tester){throw new Error("validator type `"+type+"` is not supported")}if(!tester.test(value))return false;if("number"===type){if(!/^any$/i.test(step||"")){var nb=Number(value);var decimals=Math.max(decimalPlaces(step),decimalPlaces(base));if(decimalPlaces(nb)>decimals)return false;var toInt=function toInt(f){return Math.round(f*Math.pow(10,decimals))};if((toInt(nb)-toInt(base))%toInt(step)!=0)return false}}return true},requirementType:{"":"string",step:"string",base:"number"},priority:256},pattern:{validateString:function validateString(value,regexp){return regexp.test(value)},requirementType:"regexp",priority:64},minlength:{validateString:function validateString(value,requirement){return value.length>=requirement},requirementType:"integer",priority:30},maxlength:{validateString:function validateString(value,requirement){return value.length<=requirement},requirementType:"integer",priority:30},length:{validateString:function validateString(value,min,max){return value.length>=min&&value.length<=max},requirementType:["integer","integer"],priority:30},mincheck:{validateMultiple:function validateMultiple(values,requirement){return values.length>=requirement},requirementType:"integer",priority:30},maxcheck:{validateMultiple:function validateMultiple(values,requirement){return values.length<=requirement},requirementType:"integer",priority:30},check:{validateMultiple:function validateMultiple(values,min,max){return values.length>=min&&values.length<=max},requirementType:["integer","integer"],priority:30},min:ValidatorRegistry__comparisonOperator(function(value,requirement){return value>=requirement}),max:ValidatorRegistry__comparisonOperator(function(value,requirement){return value<=requirement}),range:ValidatorRegistry__comparisonOperator(function(value,min,max){return value>=min&&value<=max}),equalto:{validateString:function validateString(value,refOrValue){var $reference=$(refOrValue);if($reference.length)return value===$reference.val();else return value===refOrValue},priority:256}}};var UI={};var diffResults=function diffResults(newResult,oldResult,deep){var added=[];var kept=[];for(var i=0;i<newResult.length;i++){var found=false;for(var j=0;j<oldResult.length;j++)if(newResult[i].assert.name===oldResult[j].assert.name){found=true;break}if(found)kept.push(newResult[i]);else added.push(newResult[i])}return{kept:kept,added:added,removed:!deep?diffResults(oldResult,newResult,true).added:[]}};UI.Form={_actualizeTriggers:function _actualizeTriggers(){var _this2=this;this.$element.on("submit.Parsley",function(evt){_this2.onSubmitValidate(evt)});this.$element.on("click.Parsley",Utils._SubmitSelector,function(evt){_this2.onSubmitButton(evt)});if(false===this.options.uiEnabled)return;this.element.setAttribute("novalidate","")},focus:function focus(){this._focusedField=null;if(true===this.validationResult||"none"===this.options.focus)return null;for(var i=0;i<this.fields.length;i++){var field=this.fields[i];if(true!==field.validationResult&&field.validationResult.length>0&&"undefined"===typeof field.options.noFocus){this._focusedField=field.$element;if("first"===this.options.focus)break}}if(null===this._focusedField)return null;return this._focusedField.focus()},_destroyUI:function _destroyUI(){this.$element.off(".Parsley")}};UI.Field={_reflowUI:function _reflowUI(){this._buildUI();if(!this._ui)return;var diff=diffResults(this.validationResult,this._ui.lastValidationResult);this._ui.lastValidationResult=this.validationResult;this._manageStatusClass();this._manageErrorsMessages(diff);this._actualizeTriggers();if((diff.kept.length||diff.added.length)&&!this._failedOnce){this._failedOnce=true;this._actualizeTriggers()}},getErrorsMessages:function getErrorsMessages(){if(true===this.validationResult)return[];var messages=[];for(var i=0;i<this.validationResult.length;i++)messages.push(this.validationResult[i].errorMessage||this._getErrorMessage(this.validationResult[i].assert));return messages},addError:function addError(name){var _ref2=arguments.length<=1||arguments[1]===undefined?{}:arguments[1];var message=_ref2.message;var assert=_ref2.assert;var _ref2$updateClass=_ref2.updateClass;var updateClass=_ref2$updateClass===undefined?true:_ref2$updateClass;this._buildUI();this._addError(name,{message:message,assert:assert});if(updateClass)this._errorClass()},updateError:function updateError(name){var _ref3=arguments.length<=1||arguments[1]===undefined?{}:arguments[1];var message=_ref3.message;var assert=_ref3.assert;var _ref3$updateClass=_ref3.updateClass;var updateClass=_ref3$updateClass===undefined?true:_ref3$updateClass;this._buildUI();this._updateError(name,{message:message,assert:assert});if(updateClass)this._errorClass()},removeError:function removeError(name){var _ref4=arguments.length<=1||arguments[1]===undefined?{}:arguments[1];var _ref4$updateClass=_ref4.updateClass;var updateClass=_ref4$updateClass===undefined?true:_ref4$updateClass;this._buildUI();this._removeError(name);if(updateClass)this._manageStatusClass()},_manageStatusClass:function _manageStatusClass(){if(this.hasConstraints()&&this.needsValidation()&&true===this.validationResult)this._successClass();else if(this.validationResult.length>0)this._errorClass();else this._resetClass()},_manageErrorsMessages:function _manageErrorsMessages(diff){if("undefined"!==typeof this.options.errorsMessagesDisabled)return;if("undefined"!==typeof this.options.errorMessage){if(diff.added.length||diff.kept.length){this._insertErrorWrapper();if(0===this._ui.$errorsWrapper.find(".parsley-custom-error-message").length)this._ui.$errorsWrapper.append($(this.options.errorTemplate).addClass("parsley-custom-error-message"));return this._ui.$errorsWrapper.addClass("filled").find(".parsley-custom-error-message").html(this.options.errorMessage)}return this._ui.$errorsWrapper.removeClass("filled").find(".parsley-custom-error-message").remove()}for(var i=0;i<diff.removed.length;i++)this._removeError(diff.removed[i].assert.name);for(i=0;i<diff.added.length;i++)this._addError(diff.added[i].assert.name,{message:diff.added[i].errorMessage,assert:diff.added[i].assert});for(i=0;i<diff.kept.length;i++)this._updateError(diff.kept[i].assert.name,{message:diff.kept[i].errorMessage,assert:diff.kept[i].assert})},_addError:function _addError(name,_ref5){var message=_ref5.message;var assert=_ref5.assert;this._insertErrorWrapper();this._ui.$errorClassHandler.attr("aria-describedby",this._ui.errorsWrapperId);this._ui.$errorsWrapper.addClass("filled").append($(this.options.errorTemplate).addClass("parsley-"+name).html(message||this._getErrorMessage(assert)))},_updateError:function _updateError(name,_ref6){var message=_ref6.message;var assert=_ref6.assert;this._ui.$errorsWrapper.addClass("filled").find(".parsley-"+name).html(message||this._getErrorMessage(assert))},_removeError:function _removeError(name){this._ui.$errorClassHandler.removeAttr("aria-describedby");this._ui.$errorsWrapper.removeClass("filled").find(".parsley-"+name).remove()},_getErrorMessage:function _getErrorMessage(constraint){var customConstraintErrorMessage=constraint.name+"Message";if("undefined"!==typeof this.options[customConstraintErrorMessage])return window.Parsley.formatMessage(this.options[customConstraintErrorMessage],constraint.requirements);return window.Parsley.getErrorMessage(constraint)},_buildUI:function _buildUI(){if(this._ui||false===this.options.uiEnabled)return;var _ui={};this.element.setAttribute(this.options.namespace+"id",this.__id__);_ui.$errorClassHandler=this._manageClassHandler();_ui.errorsWrapperId="parsley-id-"+(this.options.multiple?"multiple-"+this.options.multiple:this.__id__);_ui.$errorsWrapper=$(this.options.errorsWrapper).attr("id",_ui.errorsWrapperId);_ui.lastValidationResult=[];_ui.validationInformationVisible=false;this._ui=_ui},_manageClassHandler:function _manageClassHandler(){if("string"===typeof this.options.classHandler&&$(this.options.classHandler).length)return $(this.options.classHandler);var $handlerFunction=this.options.classHandler;if("string"===typeof this.options.classHandler&&"function"===typeof window[this.options.classHandler])$handlerFunction=window[this.options.classHandler];if("function"===typeof $handlerFunction){var $handler=$handlerFunction.call(this,this);if("undefined"!==typeof $handler&&$handler.length)return $handler}else if("object"===typeof $handlerFunction&&$handlerFunction instanceof jQuery&&$handlerFunction.length){return $handlerFunction}else if($handlerFunction){Utils.warn("The class handler `"+$handlerFunction+"` does not exist in DOM nor as a global JS function")}return this._inputHolder()},_inputHolder:function _inputHolder(){if(!this.options.multiple||this.element.nodeName==="SELECT")return this.$element;return this.$element.parent()},_insertErrorWrapper:function _insertErrorWrapper(){var $errorsContainer=this.options.errorsContainer;if(0!==this._ui.$errorsWrapper.parent().length)return this._ui.$errorsWrapper.parent();if("string"===typeof $errorsContainer){if($($errorsContainer).length)return $($errorsContainer).append(this._ui.$errorsWrapper);else if("function"===typeof window[$errorsContainer])$errorsContainer=window[$errorsContainer];else Utils.warn("The errors container `"+$errorsContainer+"` does not exist in DOM nor as a global JS function")}if("function"===typeof $errorsContainer)$errorsContainer=$errorsContainer.call(this,this);if("object"===typeof $errorsContainer&&$errorsContainer.length)return $errorsContainer.append(this._ui.$errorsWrapper);return this._inputHolder().after(this._ui.$errorsWrapper)},_actualizeTriggers:function _actualizeTriggers(){var _this3=this;var $toBind=this._findRelated();var trigger;$toBind.off(".Parsley");if(this._failedOnce)$toBind.on(Utils.namespaceEvents(this.options.triggerAfterFailure,"Parsley"),function(){_this3._validateIfNeeded()});else if(trigger=Utils.namespaceEvents(this.options.trigger,"Parsley")){$toBind.on(trigger,function(event){_this3._validateIfNeeded(event)})}},_validateIfNeeded:function _validateIfNeeded(event){var _this4=this;if(event&&/key|input/.test(event.type))if(!(this._ui&&this._ui.validationInformationVisible)&&this.getValue().length<=this.options.validationThreshold)return;if(this.options.debounce){window.clearTimeout(this._debounced);this._debounced=window.setTimeout(function(){return _this4.validate()},this.options.debounce)}else this.validate()},_resetUI:function _resetUI(){this._failedOnce=false;this._actualizeTriggers();if("undefined"===typeof this._ui)return;this._ui.$errorsWrapper.removeClass("filled").children().remove();this._resetClass();this._ui.lastValidationResult=[];this._ui.validationInformationVisible=false},_destroyUI:function _destroyUI(){this._resetUI();if("undefined"!==typeof this._ui)this._ui.$errorsWrapper.remove();delete this._ui},_successClass:function _successClass(){this._ui.validationInformationVisible=true;this._ui.$errorClassHandler.removeClass(this.options.errorClass).addClass(this.options.successClass)},_errorClass:function _errorClass(){this._ui.validationInformationVisible=true;this._ui.$errorClassHandler.removeClass(this.options.successClass).addClass(this.options.errorClass)},_resetClass:function _resetClass(){this._ui.$errorClassHandler.removeClass(this.options.successClass).removeClass(this.options.errorClass)}};var Form=function Form(element,domOptions,options){this.__class__="Form";this.element=element;this.$element=$(element);this.domOptions=domOptions;this.options=options;this.parent=window.Parsley;this.fields=[];this.validationResult=null};var Form__statusMapping={pending:null,resolved:true,rejected:false};Form.prototype={onSubmitValidate:function onSubmitValidate(event){var _this5=this;if(true===event.parsley)return;var submitSource=this._submitSource||this.$element.find(Utils._SubmitSelector)[0];this._submitSource=null;this.$element.find(".parsley-synthetic-submit-button").prop("disabled",true);if(submitSource&&null!==submitSource.getAttribute("formnovalidate"))return;window.Parsley._remoteCache={};var promise=this.whenValidate({event:event});if("resolved"===promise.state()&&false!==this._trigger("submit")){}else{event.stopImmediatePropagation();event.preventDefault();if("pending"===promise.state())promise.done(function(){_this5._submit(submitSource)})}},onSubmitButton:function onSubmitButton(event){this._submitSource=event.currentTarget},_submit:function _submit(submitSource){if(false===this._trigger("submit"))return;if(submitSource){var $synthetic=this.$element.find(".parsley-synthetic-submit-button").prop("disabled",false);if(0===$synthetic.length)$synthetic=$('<input class="parsley-synthetic-submit-button" type="hidden">').appendTo(this.$element);$synthetic.attr({name:submitSource.getAttribute("name"),value:submitSource.getAttribute("value")})}this.$element.trigger(_extends($.Event("submit"),{parsley:true}))},validate:function validate(options){if(arguments.length>=1&&!$.isPlainObject(options)){Utils.warnOnce("Calling validate on a parsley form without passing arguments as an object is deprecated.");var _arguments=_slice.call(arguments);var group=_arguments[0];var force=_arguments[1];var event=_arguments[2];options={group:group,force:force,event:event}}return Form__statusMapping[this.whenValidate(options).state()]},whenValidate:function whenValidate(){var _Utils$all$done$fail$always,_this6=this;var _ref7=arguments.length<=0||arguments[0]===undefined?{}:arguments[0];var group=_ref7.group;var force=_ref7.force;var event=_ref7.event;this.submitEvent=event;if(event){this.submitEvent=_extends({},event,{preventDefault:function preventDefault(){Utils.warnOnce("Using `this.submitEvent.preventDefault()` is deprecated; instead, call `this.validationResult=false`");_this6.validationResult=false}})}this.validationResult=true;this._trigger("validate");this._refreshFields();var promises=this._withoutReactualizingFormOptions(function(){return $.map(_this6.fields,function(field){return field.whenValidate({force:force,group:group})})});return(_Utils$all$done$fail$always=Utils.all(promises).done(function(){_this6._trigger("success")}).fail(function(){_this6.validationResult=false;_this6.focus();_this6._trigger("error")}).always(function(){_this6._trigger("validated")})).pipe.apply(_Utils$all$done$fail$always,_toConsumableArray(this._pipeAccordingToValidationResult()))},isValid:function isValid(options){if(arguments.length>=1&&!$.isPlainObject(options)){Utils.warnOnce("Calling isValid on a parsley form without passing arguments as an object is deprecated.");var _arguments2=_slice.call(arguments);var group=_arguments2[0];var force=_arguments2[1];options={group:group,force:force}}return Form__statusMapping[this.whenValid(options).state()]},whenValid:function whenValid(){var _this7=this;var _ref8=arguments.length<=0||arguments[0]===undefined?{}:arguments[0];var group=_ref8.group;var force=_ref8.force;this._refreshFields();var promises=this._withoutReactualizingFormOptions(function(){return $.map(_this7.fields,function(field){return field.whenValid({group:group,force:force})})});return Utils.all(promises)},refresh:function refresh(){this._refreshFields();return this},reset:function reset(){for(var i=0;i<this.fields.length;i++)this.fields[i].reset();this._trigger("reset")},destroy:function destroy(){this._destroyUI();for(var i=0;i<this.fields.length;i++)this.fields[i].destroy();this.$element.removeData("Parsley");this._trigger("destroy")},_refreshFields:function _refreshFields(){return this.actualizeOptions()._bindFields()},_bindFields:function _bindFields(){var _this8=this;var oldFields=this.fields;this.fields=[];this.fieldsMappedById={};this._withoutReactualizingFormOptions(function(){_this8.$element.find(_this8.options.inputs).not(_this8.options.excluded).each(function(_,element){var fieldInstance=new window.Parsley.Factory(element,{},_this8);if(("Field"===fieldInstance.__class__||"FieldMultiple"===fieldInstance.__class__)&&true!==fieldInstance.options.excluded){var uniqueId=fieldInstance.__class__+"-"+fieldInstance.__id__;if("undefined"===typeof _this8.fieldsMappedById[uniqueId]){_this8.fieldsMappedById[uniqueId]=fieldInstance;_this8.fields.push(fieldInstance)}}});$.each(Utils.difference(oldFields,_this8.fields),function(_,field){field.reset()})});return this},_withoutReactualizingFormOptions:function _withoutReactualizingFormOptions(fn){var oldActualizeOptions=this.actualizeOptions;this.actualizeOptions=function(){return this};var result=fn();this.actualizeOptions=oldActualizeOptions;return result},_trigger:function _trigger(eventName){return this.trigger("form:"+eventName)}};var Constraint=function Constraint(parsleyField,name,requirements,priority,isDomConstraint){var validatorSpec=window.Parsley._validatorRegistry.validators[name];var validator=new Validator(validatorSpec);priority=priority||parsleyField.options[name+"Priority"]||validator.priority;isDomConstraint=true===isDomConstraint;_extends(this,{validator:validator,name:name,requirements:requirements,priority:priority,isDomConstraint:isDomConstraint});this._parseRequirements(parsleyField.options)};var capitalize=function capitalize(str){var cap=str[0].toUpperCase();return cap+str.slice(1)};Constraint.prototype={validate:function validate(value,instance){var _validator;return(_validator=this.validator).validate.apply(_validator,[value].concat(_toConsumableArray(this.requirementList),[instance]))},_parseRequirements:function _parseRequirements(options){var _this9=this;this.requirementList=this.validator.parseRequirements(this.requirements,function(key){return options[_this9.name+capitalize(key)]})}};var Field=function Field(field,domOptions,options,parsleyFormInstance){this.__class__="Field";this.element=field;this.$element=$(field);if("undefined"!==typeof parsleyFormInstance){this.parent=parsleyFormInstance}this.options=options;this.domOptions=domOptions;this.constraints=[];this.constraintsByName={};this.validationResult=true;this._bindConstraints()};var parsley_field__statusMapping={pending:null,resolved:true,rejected:false};Field.prototype={validate:function validate(options){if(arguments.length>=1&&!$.isPlainObject(options)){Utils.warnOnce("Calling validate on a parsley field without passing arguments as an object is deprecated.");options={options:options}}var promise=this.whenValidate(options);if(!promise)return true;switch(promise.state()){case"pending":return null;case"resolved":return true;case"rejected":return this.validationResult}},whenValidate:function whenValidate(){var _whenValid$always$done$fail$always,_this10=this;var _ref9=arguments.length<=0||arguments[0]===undefined?{}:arguments[0];var force=_ref9.force;var group=_ref9.group;this.refresh();if(group&&!this._isInGroup(group))return;this.value=this.getValue();this._trigger("validate");return(_whenValid$always$done$fail$always=this.whenValid({force:force,value:this.value,_refreshed:true}).always(function(){_this10._reflowUI()}).done(function(){_this10._trigger("success")}).fail(function(){_this10._trigger("error")}).always(function(){_this10._trigger("validated")})).pipe.apply(_whenValid$always$done$fail$always,_toConsumableArray(this._pipeAccordingToValidationResult()))},hasConstraints:function hasConstraints(){return 0!==this.constraints.length},needsValidation:function needsValidation(value){if("undefined"===typeof value)value=this.getValue();if(!value.length&&!this._isRequired()&&"undefined"===typeof this.options.validateIfEmpty)return false;return true},_isInGroup:function _isInGroup(group){if(Array.isArray(this.options.group))return-1!==$.inArray(group,this.options.group);return this.options.group===group},isValid:function isValid(options){if(arguments.length>=1&&!$.isPlainObject(options)){Utils.warnOnce("Calling isValid on a parsley field without passing arguments as an object is deprecated.");var _arguments3=_slice.call(arguments);var force=_arguments3[0];var value=_arguments3[1];options={force:force,value:value}}var promise=this.whenValid(options);if(!promise)return true;return parsley_field__statusMapping[promise.state()]},whenValid:function whenValid(){var _this11=this;var _ref10=arguments.length<=0||arguments[0]===undefined?{}:arguments[0];var _ref10$force=_ref10.force;var force=_ref10$force===undefined?false:_ref10$force;var value=_ref10.value;var group=_ref10.group;var _refreshed=_ref10._refreshed;if(!_refreshed)this.refresh();if(group&&!this._isInGroup(group))return;this.validationResult=true;if(!this.hasConstraints())return $.when();if("undefined"===typeof value||null===value)value=this.getValue();if(!this.needsValidation(value)&&true!==force)return $.when();var groupedConstraints=this._getGroupedConstraints();var promises=[];$.each(groupedConstraints,function(_,constraints){var promise=Utils.all($.map(constraints,function(constraint){return _this11._validateConstraint(value,constraint)}));promises.push(promise);if(promise.state()==="rejected")return false});return Utils.all(promises)},_validateConstraint:function _validateConstraint(value,constraint){var _this12=this;var result=constraint.validate(value,this);if(false===result)result=$.Deferred().reject();return Utils.all([result]).fail(function(errorMessage){if(!(_this12.validationResult instanceof Array))_this12.validationResult=[];_this12.validationResult.push({assert:constraint,errorMessage:"string"===typeof errorMessage&&errorMessage})})},getValue:function getValue(){var value;if("function"===typeof this.options.value)value=this.options.value(this);else if("undefined"!==typeof this.options.value)value=this.options.value;else value=this.$element.val();if("undefined"===typeof value||null===value)return"";return this._handleWhitespace(value)},reset:function reset(){this._resetUI();return this._trigger("reset")},destroy:function destroy(){this._destroyUI();this.$element.removeData("Parsley");this.$element.removeData("FieldMultiple");this._trigger("destroy")},refresh:function refresh(){this._refreshConstraints();return this},_refreshConstraints:function _refreshConstraints(){return this.actualizeOptions()._bindConstraints()},refreshConstraints:function refreshConstraints(){Utils.warnOnce("Parsley's refreshConstraints is deprecated. Please use refresh");return this.refresh()},addConstraint:function addConstraint(name,requirements,priority,isDomConstraint){if(window.Parsley._validatorRegistry.validators[name]){var constraint=new Constraint(this,name,requirements,priority,isDomConstraint);if("undefined"!==this.constraintsByName[constraint.name])this.removeConstraint(constraint.name);this.constraints.push(constraint);this.constraintsByName[constraint.name]=constraint}return this},removeConstraint:function removeConstraint(name){for(var i=0;i<this.constraints.length;i++)if(name===this.constraints[i].name){this.constraints.splice(i,1);break}delete this.constraintsByName[name];return this},updateConstraint:function updateConstraint(name,parameters,priority){return this.removeConstraint(name).addConstraint(name,parameters,priority)},_bindConstraints:function _bindConstraints(){var constraints=[];var constraintsByName={};for(var i=0;i<this.constraints.length;i++)if(false===this.constraints[i].isDomConstraint){constraints.push(this.constraints[i]);constraintsByName[this.constraints[i].name]=this.constraints[i]}this.constraints=constraints;this.constraintsByName=constraintsByName;for(var name in this.options)this.addConstraint(name,this.options[name],undefined,true);return this._bindHtml5Constraints()},_bindHtml5Constraints:function _bindHtml5Constraints(){if(null!==this.element.getAttribute("required"))this.addConstraint("required",true,undefined,true);if(null!==this.element.getAttribute("pattern"))this.addConstraint("pattern",this.element.getAttribute("pattern"),undefined,true);var min=this.element.getAttribute("min");var max=this.element.getAttribute("max");if(null!==min&&null!==max)this.addConstraint("range",[min,max],undefined,true);else if(null!==min)this.addConstraint("min",min,undefined,true);else if(null!==max)this.addConstraint("max",max,undefined,true);if(null!==this.element.getAttribute("minlength")&&null!==this.element.getAttribute("maxlength"))this.addConstraint("length",[this.element.getAttribute("minlength"),this.element.getAttribute("maxlength")],undefined,true);else if(null!==this.element.getAttribute("minlength"))this.addConstraint("minlength",this.element.getAttribute("minlength"),undefined,true);else if(null!==this.element.getAttribute("maxlength"))this.addConstraint("maxlength",this.element.getAttribute("maxlength"),undefined,true);var type=Utils.getType(this.element);if("number"===type){return this.addConstraint("type",["number",{step:this.element.getAttribute("step")||"1",base:min||this.element.getAttribute("value")}],undefined,true)}else if(/^(email|url|range|date)$/i.test(type)){return this.addConstraint("type",type,undefined,true)}return this},_isRequired:function _isRequired(){if("undefined"===typeof this.constraintsByName.required)return false;return false!==this.constraintsByName.required.requirements},_trigger:function _trigger(eventName){return this.trigger("field:"+eventName)},_handleWhitespace:function _handleWhitespace(value){if(true===this.options.trimValue)Utils.warnOnce('data-parsley-trim-value="true" is deprecated, please use data-parsley-whitespace="trim"');if("squish"===this.options.whitespace)value=value.replace(/\s{2,}/g," ");if("trim"===this.options.whitespace||"squish"===this.options.whitespace||true===this.options.trimValue)value=Utils.trimString(value);return value},_isDateInput:function _isDateInput(){var c=this.constraintsByName.type;return c&&c.requirements==="date"},_getGroupedConstraints:function _getGroupedConstraints(){if(false===this.options.priorityEnabled)return[this.constraints];var groupedConstraints=[];var index={};for(var i=0;i<this.constraints.length;i++){var p=this.constraints[i].priority;if(!index[p])groupedConstraints.push(index[p]=[]);index[p].push(this.constraints[i])}groupedConstraints.sort(function(a,b){return b[0].priority-a[0].priority});return groupedConstraints}};var parsley_field=Field;var Multiple=function Multiple(){this.__class__="FieldMultiple"};Multiple.prototype={addElement:function addElement($element){this.$elements.push($element);return this},_refreshConstraints:function _refreshConstraints(){var fieldConstraints;this.constraints=[];if(this.element.nodeName==="SELECT"){this.actualizeOptions()._bindConstraints();return this}for(var i=0;i<this.$elements.length;i++){if(!$("html").has(this.$elements[i]).length){this.$elements.splice(i,1);continue}fieldConstraints=this.$elements[i].data("FieldMultiple")._refreshConstraints().constraints;for(var j=0;j<fieldConstraints.length;j++)this.addConstraint(fieldConstraints[j].name,fieldConstraints[j].requirements,fieldConstraints[j].priority,fieldConstraints[j].isDomConstraint)}return this},getValue:function getValue(){if("function"===typeof this.options.value)return this.options.value(this);else if("undefined"!==typeof this.options.value)return this.options.value;if(this.element.nodeName==="INPUT"){var type=Utils.getType(this.element);if(type==="radio")return this._findRelated().filter(":checked").val()||"";if(type==="checkbox"){var values=[];this._findRelated().filter(":checked").each(function(){values.push($(this).val())});return values}}if(this.element.nodeName==="SELECT"&&null===this.$element.val())return[];return this.$element.val()},_init:function _init(){this.$elements=[this.$element];return this}};var Factory=function Factory(element,options,parsleyFormInstance){this.element=element;this.$element=$(element);var savedparsleyFormInstance=this.$element.data("Parsley");if(savedparsleyFormInstance){if("undefined"!==typeof parsleyFormInstance&&savedparsleyFormInstance.parent===window.Parsley){savedparsleyFormInstance.parent=parsleyFormInstance;savedparsleyFormInstance._resetOptions(savedparsleyFormInstance.options)}if("object"===typeof options){_extends(savedparsleyFormInstance.options,options)}return savedparsleyFormInstance}if(!this.$element.length)throw new Error("You must bind Parsley on an existing element.");if("undefined"!==typeof parsleyFormInstance&&"Form"!==parsleyFormInstance.__class__)throw new Error("Parent instance must be a Form instance");this.parent=parsleyFormInstance||window.Parsley;return this.init(options)};Factory.prototype={init:function init(options){this.__class__="Parsley";this.__version__="2.8.1";this.__id__=Utils.generateID();this._resetOptions(options);if(this.element.nodeName==="FORM"||Utils.checkAttr(this.element,this.options.namespace,"validate")&&!this.$element.is(this.options.inputs))return this.bind("parsleyForm");return this.isMultiple()?this.handleMultiple():this.bind("parsleyField")},isMultiple:function isMultiple(){var type=Utils.getType(this.element);return type==="radio"||type==="checkbox"||this.element.nodeName==="SELECT"&&null!==this.element.getAttribute("multiple")},handleMultiple:function handleMultiple(){var _this13=this;var name;var multiple;var parsleyMultipleInstance;this.options.multiple=this.options.multiple||(name=this.element.getAttribute("name"))||this.element.getAttribute("id");if(this.element.nodeName==="SELECT"&&null!==this.element.getAttribute("multiple")){this.options.multiple=this.options.multiple||this.__id__;return this.bind("parsleyFieldMultiple")}else if(!this.options.multiple){Utils.warn("To be bound by Parsley, a radio, a checkbox and a multiple select input must have either a name or a multiple option.",this.$element);return this}this.options.multiple=this.options.multiple.replace(/(:|\.|\[|\]|\{|\}|\$)/g,"");if(name){$('input[name="'+name+'"]').each(function(i,input){var type=Utils.getType(input);if(type==="radio"||type==="checkbox")input.setAttribute(_this13.options.namespace+"multiple",_this13.options.multiple)})}var $previouslyRelated=this._findRelated();for(var i=0;i<$previouslyRelated.length;i++){parsleyMultipleInstance=$($previouslyRelated.get(i)).data("Parsley");if("undefined"!==typeof parsleyMultipleInstance){if(!this.$element.data("FieldMultiple")){parsleyMultipleInstance.addElement(this.$element)}break}}this.bind("parsleyField",true);return parsleyMultipleInstance||this.bind("parsleyFieldMultiple")},bind:function bind(type,doNotStore){var parsleyInstance;switch(type){case"parsleyForm":parsleyInstance=$.extend(new Form(this.element,this.domOptions,this.options),new Base,window.ParsleyExtend)._bindFields();break;case"parsleyField":parsleyInstance=$.extend(new parsley_field(this.element,this.domOptions,this.options,this.parent),new Base,window.ParsleyExtend);break;case"parsleyFieldMultiple":parsleyInstance=$.extend(new parsley_field(this.element,this.domOptions,this.options,this.parent),new Multiple,new Base,window.ParsleyExtend)._init();break;default:throw new Error(type+"is not a supported Parsley type")}if(this.options.multiple)Utils.setAttr(this.element,this.options.namespace,"multiple",this.options.multiple);if("undefined"!==typeof doNotStore){this.$element.data("FieldMultiple",parsleyInstance);return parsleyInstance}this.$element.data("Parsley",parsleyInstance);parsleyInstance._actualizeTriggers();parsleyInstance._trigger("init");return parsleyInstance}};var vernums=$.fn.jquery.split(".");if(parseInt(vernums[0])<=1&&parseInt(vernums[1])<8){throw"The loaded version of jQuery is too old. Please upgrade to 1.8.x or better."}if(!vernums.forEach){Utils.warn("Parsley requires ES5 to run properly. Please include https://github.com/es-shims/es5-shim")}var Parsley=_extends(new Base,{element:document,$element:$(document),actualizeOptions:null,_resetOptions:null,Factory:Factory,version:"2.8.1"});_extends(parsley_field.prototype,UI.Field,Base.prototype);_extends(Form.prototype,UI.Form,Base.prototype);_extends(Factory.prototype,Base.prototype);$.fn.parsley=$.fn.psly=function(options){if(this.length>1){var instances=[];this.each(function(){instances.push($(this).parsley(options))});return instances}if(this.length==0){return}return new Factory(this[0],options)};if("undefined"===typeof window.ParsleyExtend)window.ParsleyExtend={};Parsley.options=_extends(Utils.objectCreate(Defaults),window.ParsleyConfig);window.ParsleyConfig=Parsley.options;window.Parsley=window.psly=Parsley;Parsley.Utils=Utils;window.ParsleyUtils={};$.each(Utils,function(key,value){if("function"===typeof value){window.ParsleyUtils[key]=function(){Utils.warnOnce("Accessing `window.ParsleyUtils` is deprecated. Use `window.Parsley.Utils` instead.");return Utils[key].apply(Utils,arguments)}}});var registry=window.Parsley._validatorRegistry=new ValidatorRegistry(window.ParsleyConfig.validators,window.ParsleyConfig.i18n);window.ParsleyValidator={};$.each("setLocale addCatalog addMessage addMessages getErrorMessage formatMessage addValidator updateValidator removeValidator hasValidator".split(" "),function(i,method){window.Parsley[method]=function(){return registry[method].apply(registry,arguments)};window.ParsleyValidator[method]=function(){var _window$Parsley;Utils.warnOnce("Accessing the method '"+method+"' through Validator is deprecated. Simply call 'window.Parsley."+method+"(...)'");return(_window$Parsley=window.Parsley)[method].apply(_window$Parsley,arguments)}});window.Parsley.UI=UI;window.ParsleyUI={removeError:function removeError(instance,name,doNotUpdateClass){var updateClass=true!==doNotUpdateClass;Utils.warnOnce("Accessing UI is deprecated. Call 'removeError' on the instance directly. Please comment in issue 1073 as to your need to call this method.");return instance.removeError(name,{updateClass:updateClass})},getErrorsMessages:function getErrorsMessages(instance){Utils.warnOnce("Accessing UI is deprecated. Call 'getErrorsMessages' on the instance directly.");return instance.getErrorsMessages()}};$.each("addError updateError".split(" "),function(i,method){window.ParsleyUI[method]=function(instance,name,message,assert,doNotUpdateClass){var updateClass=true!==doNotUpdateClass;Utils.warnOnce("Accessing UI is deprecated. Call '"+method+"' on the instance directly. Please comment in issue 1073 as to your need to call this method.");return instance[method](name,{message:message,assert:assert,updateClass:updateClass})}});if(false!==window.ParsleyConfig.autoBind){$(function(){if($("[data-parsley-validate]").length)$("[data-parsley-validate]").parsley()})}var o=$({});var deprecated=function deprecated(){Utils.warnOnce("Parsley's pubsub module is deprecated; use the 'on' and 'off' methods on parsley instances or window.Parsley")};function adapt(fn,context){if(!fn.parsleyAdaptedCallback){fn.parsleyAdaptedCallback=function(){var args=Array.prototype.slice.call(arguments,0);args.unshift(this);fn.apply(context||o,args)}}return fn.parsleyAdaptedCallback}var eventPrefix="parsley:";function eventName(name){if(name.lastIndexOf(eventPrefix,0)===0)return name.substr(eventPrefix.length);return name}$.listen=function(name,callback){var context;deprecated();if("object"===typeof arguments[1]&&"function"===typeof arguments[2]){context=arguments[1];callback=arguments[2]}if("function"!==typeof callback)throw new Error("Wrong parameters");window.Parsley.on(eventName(name),adapt(callback,context))};$.listenTo=function(instance,name,fn){deprecated();if(!(instance instanceof parsley_field)&&!(instance instanceof Form))throw new Error("Must give Parsley instance");if("string"!==typeof name||"function"!==typeof fn)throw new Error("Wrong parameters");instance.on(eventName(name),adapt(fn))};$.unsubscribe=function(name,fn){deprecated();if("string"!==typeof name||"function"!==typeof fn)throw new Error("Wrong arguments");window.Parsley.off(eventName(name),fn.parsleyAdaptedCallback)};$.unsubscribeTo=function(instance,name){deprecated();if(!(instance instanceof parsley_field)&&!(instance instanceof Form))throw new Error("Must give Parsley instance");instance.off(eventName(name))};$.unsubscribeAll=function(name){deprecated();window.Parsley.off(eventName(name));$("form,input,textarea,select").each(function(){var instance=$(this).data("Parsley");if(instance){instance.off(eventName(name))}})};$.emit=function(name,instance){var _instance;deprecated();var instanceGiven=instance instanceof parsley_field||instance instanceof Form;var args=Array.prototype.slice.call(arguments,instanceGiven?2:1);args.unshift(eventName(name));if(!instanceGiven){instance=window.Parsley}(_instance=instance).trigger.apply(_instance,_toConsumableArray(args))};var pubsub={};$.extend(true,Parsley,{asyncValidators:{default:{fn:function fn(xhr){return xhr.status>=200&&xhr.status<300},url:false},reverse:{fn:function fn(xhr){return xhr.status<200||xhr.status>=300},url:false}},addAsyncValidator:function addAsyncValidator(name,fn,url,options){Parsley.asyncValidators[name]={fn:fn,url:url||false,options:options||{}};return this}});Parsley.addValidator("remote",{requirementType:{"":"string",validator:"string",reverse:"boolean",options:"object"},validateString:function validateString(value,url,options,instance){var data={};var ajaxOptions;var csr;var validator=options.validator||(true===options.reverse?"reverse":"default");if("undefined"===typeof Parsley.asyncValidators[validator])throw new Error("Calling an undefined async validator: `"+validator+"`");url=Parsley.asyncValidators[validator].url||url;if(url.indexOf("{value}")>-1){url=url.replace("{value}",encodeURIComponent(value))}else{data[instance.element.getAttribute("name")||instance.element.getAttribute("id")]=value}var remoteOptions=$.extend(true,options.options||{},Parsley.asyncValidators[validator].options);ajaxOptions=$.extend(true,{},{url:url,data:data,type:"GET"},remoteOptions);instance.trigger("field:ajaxoptions",instance,ajaxOptions);csr=$.param(ajaxOptions);if("undefined"===typeof Parsley._remoteCache)Parsley._remoteCache={};var xhr=Parsley._remoteCache[csr]=Parsley._remoteCache[csr]||$.ajax(ajaxOptions);var handleXhr=function handleXhr(){var result=Parsley.asyncValidators[validator].fn.call(instance,xhr,url,options);if(!result)result=$.Deferred().reject();return $.when(result)};return xhr.then(handleXhr,handleXhr)},priority:-1});Parsley.on("form:submit",function(){Parsley._remoteCache={}});Base.prototype.addAsyncValidator=function(){Utils.warnOnce("Accessing the method `addAsyncValidator` through an instance is deprecated. Simply call `Parsley.addAsyncValidator(...)`");return Parsley.addAsyncValidator.apply(Parsley,arguments)};Parsley.addMessages("en",{defaultMessage:"This value seems to be invalid.",type:{email:"This value should be a valid email.",url:"This value should be a valid url.",number:"This value should be a valid number.",integer:"This value should be a valid integer.",digits:"This value should be digits.",alphanum:"This value should be alphanumeric."},notblank:"This value should not be blank.",required:"This value is required.",pattern:"This value seems to be invalid.",min:"This value should be greater than or equal to %s.",max:"This value should be lower than or equal to %s.",range:"This value should be between %s and %s.",minlength:"This value is too short. It should have %s characters or more.",maxlength:"This value is too long. It should have %s characters or fewer.",length:"This value length is invalid. It should be between %s and %s characters long.",mincheck:"You must select at least %s choices.",maxcheck:"You must select %s choices or fewer.",check:"You must select between %s and %s choices.",equalto:"This value should be the same."});Parsley.setLocale("en");function InputEvent(){var _this14=this;var globals=window||global;_extends(this,{isNativeEvent:function isNativeEvent(evt){return evt.originalEvent&&evt.originalEvent.isTrusted!==false},fakeInputEvent:function fakeInputEvent(evt){if(_this14.isNativeEvent(evt)){$(evt.target).trigger("input")}},misbehaves:function misbehaves(evt){if(_this14.isNativeEvent(evt)){_this14.behavesOk(evt);$(document).on("change.inputevent",evt.data.selector,_this14.fakeInputEvent);_this14.fakeInputEvent(evt)}},behavesOk:function behavesOk(evt){if(_this14.isNativeEvent(evt)){$(document).off("input.inputevent",evt.data.selector,_this14.behavesOk).off("change.inputevent",evt.data.selector,_this14.misbehaves)}},install:function install(){if(globals.inputEventPatched){return}globals.inputEventPatched="0.0.3";var _arr=["select",'input[type="checkbox"]','input[type="radio"]','input[type="file"]'];for(var _i=0;_i<_arr.length;_i++){var selector=_arr[_i];$(document).on("input.inputevent",selector,{selector:selector},_this14.behavesOk).on("change.inputevent",selector,{selector:selector},_this14.misbehaves)}},uninstall:function uninstall(){delete globals.inputEventPatched;$(document).off(".inputevent")}})}var inputevent=new InputEvent;inputevent.install();var parsley=Parsley;return parsley});