// source --> https://www.researchjobs.cz/wp-content/themes/jobify/inc/integrations/wp-job-manager/js/wp-job-manager-map.min.js?ver=6.1.10 
function InfoBubble(a){this.extend(InfoBubble,google.maps.OverlayView),this.tabs_=[],this.activeTab_=null,this.baseZIndex_=100,this.isOpen_=!1;var b=a||{};void 0==b.backgroundColor&&(b.backgroundColor=this.BACKGROUND_COLOR_),void 0==b.borderColor&&(b.borderColor=this.BORDER_COLOR_),void 0==b.borderRadius&&(b.borderRadius=this.BORDER_RADIUS_),void 0==b.borderWidth&&(b.borderWidth=this.BORDER_WIDTH_),void 0==b.padding&&(b.padding=this.PADDING_),void 0==b.arrowPosition&&(b.arrowPosition=this.ARROW_POSITION_),void 0==b.disableAutoPan&&(b.disableAutoPan=!1),void 0==b.disableAnimation&&(b.disableAnimation=!1),void 0==b.minWidth&&(b.minWidth=this.MIN_WIDTH_),void 0==b.shadowStyle&&(b.shadowStyle=this.SHADOW_STYLE_),void 0==b.arrowSize&&(b.arrowSize=this.ARROW_SIZE_),void 0==b.arrowStyle&&(b.arrowStyle=this.ARROW_STYLE_),this.buildDom_(),this.setValues(b)}function ClusterIcon(a,b){a.getMarkerClusterer().extend(ClusterIcon,google.maps.OverlayView),this.cluster_=a,this.className_=a.getMarkerClusterer().getClusterClass(),this.styles_=b,this.center_=null,this.div_=null,this.sums_=null,this.visible_=!1,this.setMap(a.getMap())}function Cluster(a){this.markerClusterer_=a,this.map_=a.getMap(),this.gridSize_=a.getGridSize(),this.minClusterSize_=a.getMinimumClusterSize(),this.averageCenter_=a.getAverageCenter(),this.markers_=[],this.center_=null,this.bounds_=null,this.clusterIcon_=new ClusterIcon(this,a.getStyles())}function MarkerClusterer(a,b,c){this.extend(MarkerClusterer,google.maps.OverlayView),b=b||[],c=c||{},this.markers_=[],this.clusters_=[],this.listeners_=[],this.activeMap_=null,this.ready_=!1,this.gridSize_=c.gridSize||60,this.minClusterSize_=c.minimumClusterSize||2,this.maxZoom_=c.maxZoom||null,this.styles_=c.styles||[],this.title_=c.title||"",this.zoomOnClick_=!0,void 0!==c.zoomOnClick&&(this.zoomOnClick_=c.zoomOnClick),this.averageCenter_=!1,void 0!==c.averageCenter&&(this.averageCenter_=c.averageCenter),this.ignoreHidden_=!1,void 0!==c.ignoreHidden&&(this.ignoreHidden_=c.ignoreHidden),this.enableRetinaIcons_=!1,void 0!==c.enableRetinaIcons&&(this.enableRetinaIcons_=c.enableRetinaIcons),this.imagePath_=c.imagePath||MarkerClusterer.IMAGE_PATH,this.imageExtension_=c.imageExtension||MarkerClusterer.IMAGE_EXTENSION,this.imageSizes_=c.imageSizes||MarkerClusterer.IMAGE_SIZES,this.calculator_=c.calculator||MarkerClusterer.CALCULATOR,this.batchSize_=c.batchSize||MarkerClusterer.BATCH_SIZE,this.batchSizeIE_=c.batchSizeIE||MarkerClusterer.BATCH_SIZE_IE,this.clusterClass_=c.clusterClass||"cluster",-1!==navigator.userAgent.toLowerCase().indexOf("msie")&&(this.batchSize_=this.batchSizeIE_),this.setupStyles_(),this.addMarkers(b,!0),this.setMap(a)}function RichMarker(a){var b=a||{};this.ready_=!1,this.dragging_=!1,void 0==a.visible&&(a.visible=!0),void 0==a.shadow&&(a.shadow="7px -3px 5px rgba(88,88,88,0.7)"),void 0==a.anchor&&(a.anchor=RichMarkerPosition.BOTTOM),this.setValues(b)}window.InfoBubble=InfoBubble,InfoBubble.prototype.ARROW_SIZE_=15,InfoBubble.prototype.ARROW_STYLE_=0,InfoBubble.prototype.SHADOW_STYLE_=1,InfoBubble.prototype.MIN_WIDTH_=50,InfoBubble.prototype.ARROW_POSITION_=50,InfoBubble.prototype.PADDING_=10,InfoBubble.prototype.BORDER_WIDTH_=1,InfoBubble.prototype.BORDER_COLOR_="#ccc",InfoBubble.prototype.BORDER_RADIUS_=10,InfoBubble.prototype.BACKGROUND_COLOR_="#fff",InfoBubble.prototype.extend=function(a,b){return function(a){for(var b in a.prototype)this.prototype[b]=a.prototype[b];return this}.apply(a,[b])},InfoBubble.prototype.buildDom_=function(){var a=this.bubble_=document.createElement("DIV");a.style.position="absolute",a.style.zIndex=this.baseZIndex_;var b=this.tabsContainer_=document.createElement("DIV");b.style.position="relative";var c=this.close_=document.createElement("IMG");c.style.position="absolute",c.style.width=this.px(12),c.style.height=this.px(12),c.style.border=0,c.style.zIndex=this.baseZIndex_+1,c.style.cursor="pointer",c.src="http://maps.gstatic.com/intl/en_us/mapfiles/iw_close.gif";var d=this;google.maps.event.addDomListener(c,"click",function(){d.close(),google.maps.event.trigger(d,"closeclick")});var e=this.contentContainer_=document.createElement("DIV");e.style.overflowX="auto",e.style.overflowY="auto",e.style.cursor="default",e.style.clear="both",e.style.position="relative";var f=this.content_=document.createElement("DIV");e.appendChild(f);var g=this.arrow_=document.createElement("DIV");g.style.position="relative";var h=this.arrowOuter_=document.createElement("DIV"),i=this.arrowInner_=document.createElement("DIV"),j=this.getArrowSize_();h.style.position=i.style.position="absolute",h.style.left=i.style.left="50%",h.style.height=i.style.height="0",h.style.width=i.style.width="0",h.style.marginLeft=this.px(-j),h.style.borderWidth=this.px(j),h.style.borderBottomWidth=0;var k=this.bubbleShadow_=document.createElement("DIV");k.style.position="absolute",a.style.display=k.style.display="none",a.appendChild(this.tabsContainer_),a.appendChild(c),a.appendChild(e),g.appendChild(h),g.appendChild(i),a.appendChild(g);var l=document.createElement("style");l.setAttribute("type","text/css"),this.animationName_="_ibani_"+Math.round(1e4*Math.random());var m="."+this.animationName_+"{-webkit-animation-name:"+this.animationName_+";-webkit-animation-duration:0.5s;-webkit-animation-iteration-count:1;}@-webkit-keyframes "+this.animationName_+" {from {-webkit-transform: scale(0)}50% {-webkit-transform: scale(1.2)}90% {-webkit-transform: scale(0.95)}to {-webkit-transform: scale(1)}}";l.textContent=m,document.getElementsByTagName("head")[0].appendChild(l)},InfoBubble.prototype.setBackgroundClassName=function(a){this.set("backgroundClassName",a)},InfoBubble.prototype.setBackgroundClassName=InfoBubble.prototype.setBackgroundClassName,InfoBubble.prototype.backgroundClassName_changed=function(){this.content_.className=this.get("backgroundClassName")},InfoBubble.prototype.backgroundClassName_changed=InfoBubble.prototype.backgroundClassName_changed,InfoBubble.prototype.setTabClassName=function(a){this.set("tabClassName",a)},InfoBubble.prototype.setTabClassName=InfoBubble.prototype.setTabClassName,InfoBubble.prototype.tabClassName_changed=function(){this.updateTabStyles_()},InfoBubble.prototype.tabClassName_changed=InfoBubble.prototype.tabClassName_changed,InfoBubble.prototype.getArrowStyle_=function(){return parseInt(this.get("arrowStyle"),10)||0},InfoBubble.prototype.setArrowStyle=function(a){this.set("arrowStyle",a)},InfoBubble.prototype.setArrowStyle=InfoBubble.prototype.setArrowStyle,InfoBubble.prototype.arrowStyle_changed=function(){this.arrowSize_changed()},InfoBubble.prototype.arrowStyle_changed=InfoBubble.prototype.arrowStyle_changed,InfoBubble.prototype.getArrowSize_=function(){return parseInt(this.get("arrowSize"),10)||0},InfoBubble.prototype.setArrowSize=function(a){this.set("arrowSize",a)},InfoBubble.prototype.setArrowSize=InfoBubble.prototype.setArrowSize,InfoBubble.prototype.arrowSize_changed=function(){this.borderWidth_changed()},InfoBubble.prototype.arrowSize_changed=InfoBubble.prototype.arrowSize_changed,InfoBubble.prototype.setArrowPosition=function(a){this.set("arrowPosition",a)},InfoBubble.prototype.setArrowPosition=InfoBubble.prototype.setArrowPosition,InfoBubble.prototype.getArrowPosition_=function(){return parseInt(this.get("arrowPosition"),10)||0},InfoBubble.prototype.arrowPosition_changed=function(){var a=this.getArrowPosition_();this.arrowOuter_.style.left=this.arrowInner_.style.left=a+"%",this.redraw_()},InfoBubble.prototype.arrowPosition_changed=InfoBubble.prototype.arrowPosition_changed,InfoBubble.prototype.setZIndex=function(a){this.set("zIndex",a)},InfoBubble.prototype.setZIndex=InfoBubble.prototype.setZIndex,InfoBubble.prototype.getZIndex=function(){return parseInt(this.get("zIndex"),10)||this.baseZIndex_},InfoBubble.prototype.zIndex_changed=function(){var a=this.getZIndex();this.bubble_.style.zIndex=this.baseZIndex_=a,this.close_.style.zIndex=a+1},InfoBubble.prototype.zIndex_changed=InfoBubble.prototype.zIndex_changed,InfoBubble.prototype.setShadowStyle=function(a){this.set("shadowStyle",a)},InfoBubble.prototype.setShadowStyle=InfoBubble.prototype.setShadowStyle,InfoBubble.prototype.getShadowStyle_=function(){return parseInt(this.get("shadowStyle"),10)||0},InfoBubble.prototype.shadowStyle_changed=function(){var a=this.getShadowStyle_(),b="",c="",d="";switch(a){case 0:b="none";break;case 1:c="40px 15px 10px rgba(33,33,33,0.3)",d="transparent";break;case 2:c="0 0 2px rgba(33,33,33,0.3)",d="rgba(33,33,33,0.35)"}this.bubbleShadow_.style.boxShadow=this.bubbleShadow_.style.webkitBoxShadow=this.bubbleShadow_.style.MozBoxShadow=c,this.bubbleShadow_.style.backgroundColor=d,this.isOpen_&&(this.bubbleShadow_.style.display=b,this.draw())},InfoBubble.prototype.shadowStyle_changed=InfoBubble.prototype.shadowStyle_changed,InfoBubble.prototype.showCloseButton=function(){this.set("hideCloseButton",!1)},InfoBubble.prototype.showCloseButton=InfoBubble.prototype.showCloseButton,InfoBubble.prototype.hideCloseButton=function(){this.set("hideCloseButton",!0)},InfoBubble.prototype.hideCloseButton=InfoBubble.prototype.hideCloseButton,InfoBubble.prototype.hideCloseButton_changed=function(){this.close_.style.display=this.get("hideCloseButton")?"none":""},InfoBubble.prototype.hideCloseButton_changed=InfoBubble.prototype.hideCloseButton_changed,InfoBubble.prototype.setBackgroundColor=function(a){a&&this.set("backgroundColor",a)},InfoBubble.prototype.setBackgroundColor=InfoBubble.prototype.setBackgroundColor,InfoBubble.prototype.backgroundColor_changed=function(){var a=this.get("backgroundColor");this.contentContainer_.style.backgroundColor=a,this.arrowInner_.style.borderColor=a+" transparent transparent",this.updateTabStyles_()},InfoBubble.prototype.backgroundColor_changed=InfoBubble.prototype.backgroundColor_changed,InfoBubble.prototype.setBorderColor=function(a){a&&this.set("borderColor",a)},InfoBubble.prototype.setBorderColor=InfoBubble.prototype.setBorderColor,InfoBubble.prototype.borderColor_changed=function(){var a=this.get("borderColor"),b=this.contentContainer_,c=this.arrowOuter_;b.style.borderColor=a,c.style.borderColor=a+" transparent transparent",b.style.borderStyle=c.style.borderStyle=this.arrowInner_.style.borderStyle="solid",this.updateTabStyles_()},InfoBubble.prototype.borderColor_changed=InfoBubble.prototype.borderColor_changed,InfoBubble.prototype.setBorderRadius=function(a){this.set("borderRadius",a)},InfoBubble.prototype.setBorderRadius=InfoBubble.prototype.setBorderRadius,InfoBubble.prototype.getBorderRadius_=function(){return parseInt(this.get("borderRadius"),10)||0},InfoBubble.prototype.borderRadius_changed=function(){var a=this.getBorderRadius_(),b=this.getBorderWidth_();this.contentContainer_.style.borderRadius=this.contentContainer_.style.MozBorderRadius=this.contentContainer_.style.webkitBorderRadius=this.bubbleShadow_.style.borderRadius=this.bubbleShadow_.style.MozBorderRadius=this.bubbleShadow_.style.webkitBorderRadius=this.px(a),this.tabsContainer_.style.paddingLeft=this.tabsContainer_.style.paddingRight=this.px(a+b),this.redraw_()},InfoBubble.prototype.borderRadius_changed=InfoBubble.prototype.borderRadius_changed,InfoBubble.prototype.getBorderWidth_=function(){return parseInt(this.get("borderWidth"),10)||0},InfoBubble.prototype.setBorderWidth=function(a){this.set("borderWidth",a)},InfoBubble.prototype.setBorderWidth=InfoBubble.prototype.setBorderWidth,InfoBubble.prototype.borderWidth_changed=function(){var a=this.getBorderWidth_();this.contentContainer_.style.borderWidth=this.px(a),this.tabsContainer_.style.top=this.px(a),this.updateArrowStyle_(),this.updateTabStyles_(),this.borderRadius_changed(),this.redraw_()},InfoBubble.prototype.borderWidth_changed=InfoBubble.prototype.borderWidth_changed,InfoBubble.prototype.updateArrowStyle_=function(){var a=this.getBorderWidth_(),b=this.getArrowSize_(),c=this.getArrowStyle_(),d=this.px(b),e=this.px(Math.max(0,b-a)),f=this.arrowOuter_,g=this.arrowInner_;this.arrow_.style.marginTop=this.px(-a),f.style.borderTopWidth=d,g.style.borderTopWidth=e,0==c||1==c?(f.style.borderLeftWidth=d,g.style.borderLeftWidth=e):f.style.borderLeftWidth=g.style.borderLeftWidth=0,0==c||2==c?(f.style.borderRightWidth=d,g.style.borderRightWidth=e):f.style.borderRightWidth=g.style.borderRightWidth=0,2>c?(f.style.marginLeft=this.px(-b),g.style.marginLeft=this.px(-(b-a))):f.style.marginLeft=g.style.marginLeft=0,0==a?f.style.display="none":f.style.display=""},InfoBubble.prototype.setPadding=function(a){this.set("padding",a)},InfoBubble.prototype.setPadding=InfoBubble.prototype.setPadding,InfoBubble.prototype.getPadding_=function(){return parseInt(this.get("padding"),10)||0},InfoBubble.prototype.padding_changed=function(){var a=this.getPadding_();this.contentContainer_.style.padding=this.px(a),this.updateTabStyles_(),this.redraw_()},InfoBubble.prototype.padding_changed=InfoBubble.prototype.padding_changed,InfoBubble.prototype.px=function(a){return a?a+"px":a},InfoBubble.prototype.addEvents_=function(){var a=["mousedown","mousemove","mouseover","mouseout","mouseup","mousewheel","DOMMouseScroll","touchstart","touchend","touchmove","dblclick","contextmenu","click"],b=this.bubble_;this.listeners_=[];for(var c,d=0;c=a[d];d++)this.listeners_.push(google.maps.event.addDomListener(b,c,function(a){a.cancelBubble=!0,a.stopPropagation&&a.stopPropagation()}))},InfoBubble.prototype.onAdd=function(){this.bubble_||this.buildDom_(),this.addEvents_();var a=this.getPanes();a&&(a.floatPane.appendChild(this.bubble_),a.floatShadow.appendChild(this.bubbleShadow_))},InfoBubble.prototype.onAdd=InfoBubble.prototype.onAdd,InfoBubble.prototype.draw=function(){var a=this.getProjection();if(a){var b=this.get("position");if(!b)return void this.close();var c=0;this.activeTab_&&(c=this.activeTab_.offsetHeight);var d=this.getAnchorHeight_(),e=this.getArrowSize_(),f=this.getArrowPosition_();f/=100;var g=a.fromLatLngToDivPixel(b),h=this.contentContainer_.offsetWidth,i=this.bubble_.offsetHeight;if(h){var j=g.y-(i+e);d&&(j-=d);var k=g.x-h*f;this.bubble_.style.top=this.px(j),this.bubble_.style.left=this.px(k);var l=parseInt(this.get("shadowStyle"),10);switch(l){case 1:this.bubbleShadow_.style.top=this.px(j+c-1),this.bubbleShadow_.style.left=this.px(k),this.bubbleShadow_.style.width=this.px(h),this.bubbleShadow_.style.height=this.px(this.contentContainer_.offsetHeight-e);break;case 2:h=.8*h,d?this.bubbleShadow_.style.top=this.px(g.y):this.bubbleShadow_.style.top=this.px(g.y+e),this.bubbleShadow_.style.left=this.px(g.x-h*f),this.bubbleShadow_.style.width=this.px(h),this.bubbleShadow_.style.height=this.px(2)}}}},InfoBubble.prototype.draw=InfoBubble.prototype.draw,InfoBubble.prototype.onRemove=function(){this.bubble_&&this.bubble_.parentNode&&this.bubble_.parentNode.removeChild(this.bubble_),this.bubbleShadow_&&this.bubbleShadow_.parentNode&&this.bubbleShadow_.parentNode.removeChild(this.bubbleShadow_);for(var a,b=0;a=this.listeners_[b];b++)google.maps.event.removeListener(a)},InfoBubble.prototype.onRemove=InfoBubble.prototype.onRemove,InfoBubble.prototype.isOpen=function(){return this.isOpen_},InfoBubble.prototype.isOpen=InfoBubble.prototype.isOpen,InfoBubble.prototype.close=function(){this.bubble_&&(this.bubble_.style.display="none",this.bubble_.className=this.bubble_.className.replace(this.animationName_,"")),this.bubbleShadow_&&(this.bubbleShadow_.style.display="none",this.bubbleShadow_.className=this.bubbleShadow_.className.replace(this.animationName_,"")),this.isOpen_=!1},InfoBubble.prototype.close=InfoBubble.prototype.close,InfoBubble.prototype.open=function(a,b){var c=this;window.setTimeout(function(){c.open_(a,b)},0)},InfoBubble.prototype.open_=function(a,b){this.updateContent_(),a&&this.setMap(a),b&&(this.set("anchor",b),this.bindTo("anchorPoint",b),this.bindTo("position",b)),this.bubble_.style.display=this.bubbleShadow_.style.display="";var c=!this.get("disableAnimation");c&&(this.bubble_.className+=" "+this.animationName_,this.bubbleShadow_.className+=" "+this.animationName_),this.redraw_(),this.isOpen_=!0;var d=!this.get("disableAutoPan");if(d){var e=this;window.setTimeout(function(){e.panToView()},200)}},InfoBubble.prototype.open=InfoBubble.prototype.open,InfoBubble.prototype.setPosition=function(a){a&&this.set("position",a)},InfoBubble.prototype.setPosition=InfoBubble.prototype.setPosition,InfoBubble.prototype.getPosition=function(){return this.get("position")},InfoBubble.prototype.getPosition=InfoBubble.prototype.getPosition,InfoBubble.prototype.position_changed=function(){this.draw()},InfoBubble.prototype.position_changed=InfoBubble.prototype.position_changed,InfoBubble.prototype.panToView=function(){var a=this.getProjection();if(a&&this.bubble_){var b=this.getAnchorHeight_(),c=this.bubble_.offsetHeight+b,d=this.get("map"),e=d.getDiv(),f=e.offsetHeight,g=this.getPosition(),h=a.fromLatLngToContainerPixel(d.getCenter()),i=a.fromLatLngToContainerPixel(g),j=h.y-c,k=f-h.y,l=0>j,m=0;l&&(j*=-1,m=(j+k)/2),i.y-=m,g=a.fromContainerPixelToLatLng(i),d.getCenter()!=g&&d.panTo(g)}},InfoBubble.prototype.panToView=InfoBubble.prototype.panToView,InfoBubble.prototype.htmlToDocumentFragment_=function(a){a=a.replace(/^\s*([\S\s]*)\b\s*$/,"$1");var b=document.createElement("DIV");if(b.innerHTML=a,1==b.childNodes.length)return b.removeChild(b.firstChild);for(var c=document.createDocumentFragment();b.firstChild;)c.appendChild(b.firstChild);return c},InfoBubble.prototype.removeChildren_=function(a){if(a)for(var b;b=a.firstChild;)a.removeChild(b)},InfoBubble.prototype.setContent=function(a){this.set("content",a)},InfoBubble.prototype.setContent=InfoBubble.prototype.setContent,InfoBubble.prototype.getContent=function(){return this.get("content")},InfoBubble.prototype.getContent=InfoBubble.prototype.getContent,InfoBubble.prototype.updateContent_=function(){if(this.content_){this.removeChildren_(this.content_);var a=this.getContent();if(a){"string"==typeof a&&(a=this.htmlToDocumentFragment_(a)),this.content_.appendChild(a);for(var b,c=this,d=this.content_.getElementsByTagName("IMG"),e=0;b=d[e];e++)google.maps.event.addDomListener(b,"load",function(){c.imageLoaded_()});google.maps.event.trigger(this,"domready")}this.redraw_()}},InfoBubble.prototype.imageLoaded_=function(){var a=!this.get("disableAutoPan");this.redraw_(),!a||0!=this.tabs_.length&&0!=this.activeTab_.index||this.panToView()},InfoBubble.prototype.updateTabStyles_=function(){if(this.tabs_&&this.tabs_.length){for(var a,b=0;a=this.tabs_[b];b++)this.setTabStyle_(a.tab);this.activeTab_.style.zIndex=this.baseZIndex_;var c=this.getBorderWidth_(),d=this.getPadding_()/2;this.activeTab_.style.borderBottomWidth=0,this.activeTab_.style.paddingBottom=this.px(d+c)}},InfoBubble.prototype.setTabStyle_=function(a){var b=this.get("backgroundColor"),c=this.get("borderColor"),d=this.getBorderRadius_(),e=this.getBorderWidth_(),f=this.getPadding_(),g=this.px(-Math.max(f,d)),h=this.px(d),i=this.baseZIndex_;a.index&&(i-=a.index);var j={cssFloat:"left",position:"relative",cursor:"pointer",backgroundColor:b,border:this.px(e)+" solid "+c,padding:this.px(f/2)+" "+this.px(f),marginRight:g,whiteSpace:"nowrap",borderRadiusTopLeft:h,MozBorderRadiusTopleft:h,webkitBorderTopLeftRadius:h,borderRadiusTopRight:h,MozBorderRadiusTopright:h,webkitBorderTopRightRadius:h,zIndex:i,display:"inline"};for(var k in j)a.style[k]=j[k];var l=this.get("tabClassName");void 0!=l&&(a.className+=" "+l)},InfoBubble.prototype.addTabActions_=function(a){var b=this;a.listener_=google.maps.event.addDomListener(a,"click",function(){b.setTabActive_(this)})},InfoBubble.prototype.setTabActive=function(a){var b=this.tabs_[a-1];b&&this.setTabActive_(b.tab)},InfoBubble.prototype.setTabActive=InfoBubble.prototype.setTabActive,InfoBubble.prototype.setTabActive_=function(a){if(!a)return this.setContent(""),void this.updateContent_();var b=this.getPadding_()/2,c=this.getBorderWidth_();if(this.activeTab_){var d=this.activeTab_;d.style.zIndex=this.baseZIndex_-d.index,d.style.paddingBottom=this.px(b),d.style.borderBottomWidth=this.px(c)}a.style.zIndex=this.baseZIndex_,a.style.borderBottomWidth=0,a.style.marginBottomWidth="-10px",a.style.paddingBottom=this.px(b+c),this.setContent(this.tabs_[a.index].content),this.updateContent_(),this.activeTab_=a,this.redraw_()},InfoBubble.prototype.setMaxWidth=function(a){this.set("maxWidth",a)},InfoBubble.prototype.setMaxWidth=InfoBubble.prototype.setMaxWidth,InfoBubble.prototype.maxWidth_changed=function(){this.redraw_()},InfoBubble.prototype.maxWidth_changed=InfoBubble.prototype.maxWidth_changed,InfoBubble.prototype.setMaxHeight=function(a){this.set("maxHeight",a)},InfoBubble.prototype.setMaxHeight=InfoBubble.prototype.setMaxHeight,InfoBubble.prototype.maxHeight_changed=function(){this.redraw_()},InfoBubble.prototype.maxHeight_changed=InfoBubble.prototype.maxHeight_changed,InfoBubble.prototype.setMinWidth=function(a){this.set("minWidth",a)},InfoBubble.prototype.setMinWidth=InfoBubble.prototype.setMinWidth,InfoBubble.prototype.minWidth_changed=function(){this.redraw_()},InfoBubble.prototype.minWidth_changed=InfoBubble.prototype.minWidth_changed,InfoBubble.prototype.setMinHeight=function(a){this.set("minHeight",a)},InfoBubble.prototype.setMinHeight=InfoBubble.prototype.setMinHeight,InfoBubble.prototype.minHeight_changed=function(){this.redraw_()},InfoBubble.prototype.minHeight_changed=InfoBubble.prototype.minHeight_changed,InfoBubble.prototype.addTab=function(a,b){var c=document.createElement("DIV");c.innerHTML=a,this.setTabStyle_(c),this.addTabActions_(c),this.tabsContainer_.appendChild(c),this.tabs_.push({label:a,content:b,tab:c}),c.index=this.tabs_.length-1,c.style.zIndex=this.baseZIndex_-c.index,this.activeTab_||this.setTabActive_(c),c.className=c.className+" "+this.animationName_,this.redraw_()},InfoBubble.prototype.addTab=InfoBubble.prototype.addTab,InfoBubble.prototype.updateTab=function(a,b,c){if(!(!this.tabs_.length||0>a||a>=this.tabs_.length)){var d=this.tabs_[a];void 0!=b&&(d.tab.innerHTML=d.label=b),void 0!=c&&(d.content=c),this.activeTab_==d.tab&&(this.setContent(d.content),this.updateContent_()),this.redraw_()}},InfoBubble.prototype.updateTab=InfoBubble.prototype.updateTab,InfoBubble.prototype.removeTab=function(a){if(!(!this.tabs_.length||0>a||a>=this.tabs_.length)){var b=this.tabs_[a];b.tab.parentNode.removeChild(b.tab),google.maps.event.removeListener(b.tab.listener_),this.tabs_.splice(a,1),delete b;for(var c,d=0;c=this.tabs_[d];d++)c.tab.index=d;b.tab==this.activeTab_&&(this.tabs_[a]?this.activeTab_=this.tabs_[a].tab:this.tabs_[a-1]?this.activeTab_=this.tabs_[a-1].tab:this.activeTab_=void 0,this.setTabActive_(this.activeTab_)),this.redraw_()}},InfoBubble.prototype.removeTab=InfoBubble.prototype.removeTab,InfoBubble.prototype.getElementSize_=function(a,b,c){var d=document.createElement("DIV");d.style.display="inline",d.style.position="absolute",d.style.visibility="hidden","string"==typeof a?d.innerHTML=a:d.appendChild(a.cloneNode(!0)),document.body.appendChild(d);var e=new google.maps.Size(d.offsetWidth,d.offsetHeight);return b&&e.width>b&&(d.style.width=this.px(b),e=new google.maps.Size(d.offsetWidth,d.offsetHeight)),c&&e.height>c&&(d.style.height=this.px(c),e=new google.maps.Size(d.offsetWidth,d.offsetHeight)),document.body.removeChild(d),delete d,e},InfoBubble.prototype.redraw_=function(){this.figureOutSize_(),this.positionCloseButton_(),this.draw()},InfoBubble.prototype.figureOutSize_=function(){var a=this.get("map");if(a){var b=this.getPadding_(),c=(this.getBorderWidth_(),this.getBorderRadius_(),this.getArrowSize_()),d=a.getDiv(),e=2*c,f=d.offsetWidth-e,g=d.offsetHeight-e-this.getAnchorHeight_(),h=0,i=this.get("minWidth")||0,j=this.get("minHeight")||0,k=this.get("maxWidth")||0,l=this.get("maxHeight")||0;k=Math.min(f,k),l=Math.min(g,l);var m=0;if(this.tabs_.length)for(var n,o=0;n=this.tabs_[o];o++){var p=this.getElementSize_(n.tab,k,l),q=this.getElementSize_(n.content,k,l);i<p.width&&(i=p.width),m+=p.width,j<p.height&&(j=p.height),p.height>h&&(h=p.height),i<q.width&&(i=q.width),j<q.height&&(j=q.height)}else{var r=this.get("content");if("string"==typeof r&&(r=this.htmlToDocumentFragment_(r)),r){var q=this.getElementSize_(r,k,l);i<q.width&&(i=q.width),j<q.height&&(j=q.height)}}k&&(i=Math.min(i,k)),l&&(j=Math.min(j,l)),i=Math.max(i,m),i==m&&(i+=2*b),c=2*c,i=Math.max(i,c),i>f&&(i=f),j>g&&(j=g-h),this.tabsContainer_&&(this.tabHeight_=h,this.tabsContainer_.style.width=this.px(m)),this.contentContainer_.style.width=this.px(i),this.contentContainer_.style.height=this.px(j)}},InfoBubble.prototype.getAnchorHeight_=function(){return 12},InfoBubble.prototype.anchorPoint_changed=function(){this.draw()},InfoBubble.prototype.anchorPoint_changed=InfoBubble.prototype.anchorPoint_changed,InfoBubble.prototype.positionCloseButton_=function(){var a=(this.getBorderRadius_(),this.getBorderWidth_()),b=2,c=2;this.tabs_.length&&this.tabHeight_&&(c+=this.tabHeight_),c+=a,b+=a;var d=this.contentContainer_;d&&d.clientHeight<d.scrollHeight&&(b+=15),this.close_.style.right=this.px(b),this.close_.style.top=this.px(c)},!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){function b(a){if(a.minTime&&(a.minTime=s(a.minTime)),a.maxTime&&(a.maxTime=s(a.maxTime)),a.durationTime&&"function"!=typeof a.durationTime&&(a.durationTime=s(a.durationTime)),a.disableTimeRanges.length>0){for(var b in a.disableTimeRanges)a.disableTimeRanges[b]=[s(a.disableTimeRanges[b][0]),s(a.disableTimeRanges[b][1])];a.disableTimeRanges=a.disableTimeRanges.sort(function(a,b){return a[0]-b[0]});for(var b=a.disableTimeRanges.length-1;b>0;b--)a.disableTimeRanges[b][0]<=a.disableTimeRanges[b-1][1]&&(a.disableTimeRanges[b-1]=[Math.min(a.disableTimeRanges[b][0],a.disableTimeRanges[b-1][0]),Math.max(a.disableTimeRanges[b][1],a.disableTimeRanges[b-1][1])],a.disableTimeRanges.splice(b,1))}return a}function c(b){var c=b.data("timepicker-settings"),f=b.data("timepicker-list");if(f&&f.length&&(f.remove(),b.data("timepicker-list",!1)),c.useSelect){f=a("<select />",{"class":"ui-timepicker-select"});var g=f}else{f=a("<ul />",{"class":"ui-timepicker-list"});var g=a("<div />",{"class":"ui-timepicker-wrapper",tabindex:-1});g.css({display:"none",position:"absolute"}).append(f)}if(c.noneOption)if(c.noneOption===!0&&(c.noneOption=c.useSelect?"Time...":"None"),a.isArray(c.noneOption)){for(var i in c.noneOption)if(parseInt(i,10)===i){var k=d(c.noneOption[i],c.useSelect);f.append(k)}}else{var k=d(c.noneOption,c.useSelect);f.append(k)}c.className&&g.addClass(c.className),null===c.minTime&&null===c.durationTime||!c.showDuration||(g.addClass("ui-timepicker-with-duration"),g.addClass("ui-timepicker-step-"+c.step));var l=c.minTime;"function"==typeof c.durationTime?l=s(c.durationTime()):null!==c.durationTime&&(l=c.durationTime);var n=null!==c.minTime?c.minTime:0,o=null!==c.maxTime?c.maxTime:n+v-1;n>=o&&(o+=v),o===v-1&&-1!==c.timeFormat.indexOf("H")&&(o=v);for(var t=c.disableTimeRanges,u=0,w=t.length,i=n;o>=i;i+=60*c.step){var x=i,z=r(x,c.timeFormat);if(c.useSelect){var A=a("<option />",{value:z});A.text(z)}else{var A=a("<li />");A.data("time",86400>=x?x:x%86400),A.text(z)}if((null!==c.minTime||null!==c.durationTime)&&c.showDuration){var B=q(i-l,c.step);if(c.useSelect)A.text(A.text()+" ("+B+")");else{var C=a("<span />",{"class":"ui-timepicker-duration"});C.text(" ("+B+")"),A.append(C)}}w>u&&(x>=t[u][1]&&(u+=1),t[u]&&x>=t[u][0]&&x<t[u][1]&&(c.useSelect?A.prop("disabled",!0):A.addClass("ui-timepicker-disabled"))),f.append(A)}if(g.data("timepicker-input",b),b.data("timepicker-list",g),c.useSelect)f.val(e(b.val(),c)),f.on("focus",function(){a(this).data("timepicker-input").trigger("showTimepicker")}),f.on("blur",function(){a(this).data("timepicker-input").trigger("hideTimepicker")}),f.on("change",function(){m(b,a(this).val(),"select")}),b.hide().after(f);else{var D=c.appendTo;"string"==typeof D?D=a(D):"function"==typeof D&&(D=D(b)),D.append(g),j(b,f),f.on("click","li",function(){b.off("focus.timepicker"),b.on("focus.timepicker-ie-hack",function(){b.off("focus.timepicker-ie-hack"),b.on("focus.timepicker",y.show)}),h(b)||b[0].focus(),f.find("li").removeClass("ui-timepicker-selected"),a(this).addClass("ui-timepicker-selected"),p(b)&&(b.trigger("hideTimepicker"),g.hide())})}}function d(b,c){var d,e,f;return"object"==typeof b?(d=b.label,e=b.className,f=b.value):"string"==typeof b?d=b:a.error("Invalid noneOption value"),c?a("<option />",{value:f,"class":e,text:d}):a("<li />",{"class":e,text:d}).data("time",f)}function e(b,c){if(a.isNumeric(b)||(b=s(b)),null===b)return null;var d=60*c.step;return r(Math.round(b/d)*d,c.timeFormat)}function f(){return new Date(1970,1,1,0,0,0)}function g(b){var c=a(b.target),d=c.closest(".ui-timepicker-input");0===d.length&&0===c.closest(".ui-timepicker-wrapper").length&&(y.hide(),a(document).unbind(".ui-timepicker"))}function h(a){var b=a.data("timepicker-settings");return(window.navigator.msMaxTouchPoints||"ontouchstart"in document)&&b.disableTouchKeyboard}function i(b,c,d){if(!d&&0!==d)return!1;var e=b.data("timepicker-settings"),f=!1,g=30*e.step;return c.find("li").each(function(b,c){var e=a(c);if("number"==typeof e.data("time")){var h=e.data("time")-d;return Math.abs(h)<g||h==g?(f=e,!1):void 0}}),f}function j(a,b){b.find("li").removeClass("ui-timepicker-selected");var c=s(l(a));if(null!==c){var d=i(a,b,c);if(d){var e=d.offset().top-b.offset().top;(e+d.outerHeight()>b.outerHeight()||0>e)&&b.scrollTop(b.scrollTop()+d.position().top-d.outerHeight()),d.addClass("ui-timepicker-selected")}}}function k(b){if(""!==this.value){var c=a(this);if(c.data("timepicker-list"),!c.is(":focus")||b&&"change"==b.type){var d=s(this.value);if(null===d)return void c.trigger("timeFormatError");var e=c.data("timepicker-settings"),f=!1;if(null!==e.minTime&&d<e.minTime?f=!0:null!==e.maxTime&&d>e.maxTime&&(f=!0),a.each(e.disableTimeRanges,function(){return d>=this[0]&&d<this[1]?(f=!0,!1):void 0}),e.forceRoundTime){var g=d%(60*e.step);g>=30*e.step?d+=60*e.step-g:d-=g}var h=r(d,e.timeFormat);f?m(c,h,"error")&&c.trigger("timeRangeError"):m(c,h)}}}function l(a){return a.is("input")?a.val():a.data("ui-timepicker-value")}function m(a,b,c){if(a.is("input")){a.val(b);var d=a.data("timepicker-settings");d.useSelect&&a.data("timepicker-list").val(e(b,d))}return a.data("ui-timepicker-value")!=b?(a.data("ui-timepicker-value",b),"select"==c?a.trigger("selectTime").trigger("changeTime").trigger("change"):"error"!=c&&a.trigger("changeTime"),!0):(a.trigger("selectTime"),!1)}function n(b){var c=a(this),d=c.data("timepicker-list");if(!d||!d.is(":visible")){if(40!=b.keyCode)return!0;h(c)||c.focus()}switch(b.keyCode){case 13:return p(c)&&y.hide.apply(this),b.preventDefault(),!1;case 38:var e=d.find(".ui-timepicker-selected");return e.length?e.is(":first-child")||(e.removeClass("ui-timepicker-selected"),e.prev().addClass("ui-timepicker-selected"),e.prev().position().top<e.outerHeight()&&d.scrollTop(d.scrollTop()-e.outerHeight())):(d.find("li").each(function(b,c){return a(c).position().top>0?(e=a(c),!1):void 0}),e.addClass("ui-timepicker-selected")),!1;case 40:return e=d.find(".ui-timepicker-selected"),0===e.length?(d.find("li").each(function(b,c){return a(c).position().top>0?(e=a(c),!1):void 0}),e.addClass("ui-timepicker-selected")):e.is(":last-child")||(e.removeClass("ui-timepicker-selected"),e.next().addClass("ui-timepicker-selected"),e.next().position().top+2*e.outerHeight()>d.outerHeight()&&d.scrollTop(d.scrollTop()+e.outerHeight())),!1;case 27:d.find("li").removeClass("ui-timepicker-selected"),y.hide();break;case 9:y.hide();break;default:return!0}}function o(b){var c=a(this),d=c.data("timepicker-list");if(!d||!d.is(":visible"))return!0;if(!c.data("timepicker-settings").typeaheadHighlight)return d.find("li").removeClass("ui-timepicker-selected"),!0;switch(b.keyCode){case 96:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 65:case 77:case 80:case 186:case 8:case 46:j(c,d);break;default:return}}function p(a){var b=a.data("timepicker-settings"),c=a.data("timepicker-list"),d=null,e=c.find(".ui-timepicker-selected");
if(e.hasClass("ui-timepicker-disabled"))return!1;if(e.length&&(d=e.data("time")),null!==d)if("string"==typeof d)a.val(d);else{var f=r(d,b.timeFormat);m(a,f,"select")}return!0}function q(a,b){var c,d,e=Math.round(a/60),f=[];return 60>e?f=[e,x.mins]:(c=Math.floor(e/60),d=e%60,30==b&&30==d&&(c+=x.decimal+5),f.push(c),f.push(1==c?x.hr:x.hrs),30!=b&&d&&(f.push(d),f.push(x.mins))),f.join(" ")}function r(a,b){if(null!==a){var c=new Date(u.valueOf()+1e3*a);if(!isNaN(c.getTime())){for(var d,e,f="",g=0;g<b.length;g++)switch(e=b.charAt(g)){case"a":f+=c.getHours()>11?x.pm:x.am;break;case"A":f+=c.getHours()>11?x.PM:x.AM;break;case"g":d=c.getHours()%12,f+=0===d?"12":d;break;case"G":f+=c.getHours();break;case"h":d=c.getHours()%12,0!==d&&10>d&&(d="0"+d),f+=0===d?"12":d;break;case"H":d=c.getHours(),a===v&&(d=24),f+=d>9?d:"0"+d;break;case"i":var h=c.getMinutes();f+=h>9?h:"0"+h;break;case"s":a=c.getSeconds(),f+=a>9?a:"0"+a;break;default:f+=e}return f}}}function s(a){if(""===a)return null;if(!a||a+0==a)return a;"object"==typeof a&&(a=a.getHours()+":"+t(a.getMinutes())+":"+t(a.getSeconds())),a=a.toLowerCase(),new Date(0);var b;if(-1===a.indexOf(":")?(b=a.match(/^([0-9]):?([0-5][0-9])?:?([0-5][0-9])?\s*([pa]?)m?$/),b||(b=a.match(/^([0-2][0-9]):?([0-5][0-9])?:?([0-5][0-9])?\s*([pa]?)m?$/))):b=a.match(/^(\d{1,2})(?::([0-5][0-9]))?(?::([0-5][0-9]))?\s*([pa]?)m?$/),!b)return null;var c,d=parseInt(1*b[1],10);c=b[4]?12==d?"p"==b[4]?12:0:d+("p"==b[4]?12:0):d;var e=1*b[2]||0,f=1*b[3]||0;return 3600*c+60*e+f}function t(a){return("0"+a).slice(-2)}var u=f(),v=86400,w={className:null,minTime:null,maxTime:null,durationTime:null,step:30,showDuration:!1,timeFormat:"g:ia",scrollDefaultNow:!1,scrollDefaultTime:!1,selectOnBlur:!1,disableTouchKeyboard:!1,forceRoundTime:!1,appendTo:"body",orientation:"ltr",disableTimeRanges:[],closeOnWindowScroll:!1,typeaheadHighlight:!0,noneOption:!1},x={am:"am",pm:"pm",AM:"AM",PM:"PM",decimal:".",mins:"mins",hr:"hr",hrs:"hrs"},y={init:function(d){return this.each(function(){var e=a(this),f=[];for(var g in w)e.data(g)&&(f[g]=e.data(g));var h=a.extend({},w,f,d);h.lang&&(x=a.extend(x,h.lang)),h=b(h),e.data("timepicker-settings",h),e.addClass("ui-timepicker-input"),h.useSelect?c(e):(e.prop("autocomplete","off"),e.on("click.timepicker focus.timepicker",y.show),e.on("change.timepicker",k),e.on("keydown.timepicker",n),e.on("keyup.timepicker",o),k.call(e.get(0)))})},show:function(b){b&&b.preventDefault();var d=a(this),e=d.data("timepicker-settings");if(e.useSelect)return void d.data("timepicker-list").focus();h(d)&&d.blur();var f=d.data("timepicker-list");if(!d.prop("readonly")&&(f&&0!==f.length&&"function"!=typeof e.durationTime||(c(d),f=d.data("timepicker-list")),!f.is(":visible"))){y.hide(),f.show();var j={};j.left="rtl"==e.orientation?d.offset().left+d.outerWidth()-f.outerWidth()+parseInt(f.css("marginLeft").replace("px",""),10):d.offset().left+parseInt(f.css("marginLeft").replace("px",""),10),j.top=d.offset().top+d.outerHeight(!0)+f.outerHeight()>a(window).height()+a(window).scrollTop()?d.offset().top-f.outerHeight()+parseInt(f.css("marginTop").replace("px",""),10):d.offset().top+d.outerHeight()+parseInt(f.css("marginTop").replace("px",""),10),f.offset(j);var k=f.find(".ui-timepicker-selected");if(k.length||(l(d)?k=i(d,f,s(l(d))):e.scrollDefaultNow?k=i(d,f,s(new Date)):e.scrollDefaultTime!==!1&&(k=i(d,f,s(e.scrollDefaultTime)))),k&&k.length){var m=f.scrollTop()+k.position().top-k.outerHeight();f.scrollTop(m)}else f.scrollTop(0);return a(document).on("touchstart.ui-timepicker mousedown.ui-timepicker",g),e.closeOnWindowScroll&&a(document).on("scroll.ui-timepicker",g),d.trigger("showTimepicker"),this}},hide:function(){var b=a(this),c=b.data("timepicker-settings");return c&&c.useSelect&&b.blur(),a(".ui-timepicker-wrapper:visible").each(function(){var b=a(this),c=b.data("timepicker-input"),d=c.data("timepicker-settings");d&&d.selectOnBlur&&p(c),b.hide(),c.trigger("hideTimepicker")}),this},option:function(d,e){var f=this,g=f.data("timepicker-settings"),h=f.data("timepicker-list");if("object"==typeof d)g=a.extend(g,d);else if("string"==typeof d&&"undefined"!=typeof e)g[d]=e;else if("string"==typeof d)return g[d];return g=b(g),f.data("timepicker-settings",g),h&&(h.remove(),f.data("timepicker-list",!1)),g.useSelect&&c(f),this},getSecondsFromMidnight:function(){return s(l(this))},getTime:function(a){var b=this,c=l(b);if(!c)return null;a||(a=new Date);var d=s(c),e=new Date(a);return e.setHours(d/3600),e.setMinutes(d%3600/60),e.setSeconds(d%60),e.setMilliseconds(0),e},setTime:function(a){var b=this,c=r(s(a),b.data("timepicker-settings").timeFormat);return m(b,c),b.data("timepicker-list")&&j(b,b.data("timepicker-list")),this},remove:function(){var a=this;if(a.hasClass("ui-timepicker-input")){var b=a.data("timepicker-settings");return a.removeAttr("autocomplete","off"),a.removeClass("ui-timepicker-input"),a.removeData("timepicker-settings"),a.off(".timepicker"),a.data("timepicker-list")&&a.data("timepicker-list").remove(),b.useSelect&&a.show(),a.removeData("timepicker-list"),this}}};a.fn.timepicker=function(b){return this.length?y[b]?this.hasClass("ui-timepicker-input")?y[b].apply(this,Array.prototype.slice.call(arguments,1)):this:"object"!=typeof b&&b?void a.error("Method "+b+" does not exist on jQuery.timepicker"):y.init.apply(this,arguments):this}}),ClusterIcon.prototype.onAdd=function(){var a,b,c=this;this.div_=document.createElement("div"),this.div_.className=this.className_,this.visible_&&this.show(),this.getPanes().overlayMouseTarget.appendChild(this.div_),this.boundsChangedListener_=google.maps.event.addListener(this.getMap(),"bounds_changed",function(){b=a}),google.maps.event.addDomListener(this.div_,"mousedown",function(){a=!0,b=!1}),google.maps.event.addDomListener(this.div_,"click",function(d){if(a=!1,!b){var e,f,g=c.cluster_.getMarkerClusterer();google.maps.event.trigger(g,"click",c.cluster_),google.maps.event.trigger(g,"clusterclick",c.cluster_),g.getZoomOnClick()&&(f=g.getMaxZoom(),e=c.cluster_.getBounds(),g.getMap().fitBounds(e),setTimeout(function(){g.getMap().fitBounds(e),null!==f&&g.getMap().getZoom()>f&&g.getMap().setZoom(f+1);var a=g.getMap().getMapTypeId(),b=g.getMap().getZoom();(21==b&&"roadmap"==a||20==b&&"hybrid"==a)&&g.repaint()},100)),d.cancelBubble=!0,d.stopPropagation&&d.stopPropagation()}}),google.maps.event.addDomListener(this.div_,"mouseover",function(){var a=c.cluster_.getMarkerClusterer();google.maps.event.trigger(a,"mouseover",c.cluster_)}),google.maps.event.addDomListener(this.div_,"mouseout",function(){var a=c.cluster_.getMarkerClusterer();google.maps.event.trigger(a,"mouseout",c.cluster_)})},ClusterIcon.prototype.onRemove=function(){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 a=this.getPosFromLatLng_(this.center_);this.div_.style.top=a.y+"px",this.div_.style.left=a.x+"px"}},ClusterIcon.prototype.hide=function(){this.div_&&(this.div_.style.display="none"),this.visible_=!1},ClusterIcon.prototype.show=function(){if(this.div_){var a="",b=this.backgroundPosition_.split(" "),c=parseInt(b[0].replace(/^\s+|\s+$/g,""),10),d=parseInt(b[1].replace(/^\s+|\s+$/g,""),10),e=this.getPosFromLatLng_(this.center_);this.div_.style.cssText=this.createCss(e),a="<img src='"+this.url_+"' style='position: absolute; top: "+d+"px; left: "+c+"px; ",this.cluster_.getMarkerClusterer().enableRetinaIcons_||(a+="clip: rect("+-1*d+"px, "+(-1*c+this.width_)+"px, "+(-1*d+this.height_)+"px, "+-1*c+"px);"),a+="'>",this.div_.innerHTML=a+"<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>","undefined"==typeof this.sums_.title||""===this.sums_.title?this.div_.title=this.cluster_.getMarkerClusterer().getTitle():this.div_.title=this.sums_.title,this.div_.style.display=""}this.visible_=!0},ClusterIcon.prototype.useStyle=function(a){this.sums_=a;var b=Math.max(0,a.index-1);b=Math.min(this.styles_.length-1,b);var c=this.styles_[b];this.url_=c.url,this.height_=c.height,this.width_=c.width,this.anchorText_=c.anchorText||[0,0],this.anchorIcon_=c.anchorIcon||[parseInt(this.height_/2,10),parseInt(this.width_/2,10)],this.textColor_=c.textColor||"black",this.textSize_=c.textSize||11,this.textDecoration_=c.textDecoration||"none",this.fontWeight_=c.fontWeight||"bold",this.fontStyle_=c.fontStyle||"normal",this.fontFamily_=c.fontFamily||"Arial,sans-serif",this.backgroundPosition_=c.backgroundPosition||"0 0"},ClusterIcon.prototype.setCenter=function(a){this.center_=a},ClusterIcon.prototype.createCss=function(a){var b=[];return b.push("cursor: pointer;"),b.push("position: absolute; top: "+a.y+"px; left: "+a.x+"px;"),b.push("width: "+this.width_+"px; height: "+this.height_+"px;"),b.join("")},ClusterIcon.prototype.getPosFromLatLng_=function(a){var b=this.getProjection().fromLatLngToDivPixel(a);return b.x-=this.anchorIcon_[1],b.y-=this.anchorIcon_[0],b.x=parseInt(b.x,10),b.y=parseInt(b.y,10),b},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 a,b=new google.maps.LatLngBounds(this.center_,this.center_),c=this.getMarkers();for(a=0;a<c.length;a++)b.extend(c[a].getPosition());return b},Cluster.prototype.remove=function(){this.clusterIcon_.setMap(null),this.markers_=[],delete this.markers_},Cluster.prototype.addMarker=function(a){var b,c,d;if(this.isMarkerAlreadyAdded_(a))return!1;if(this.center_){if(this.averageCenter_){var e=this.markers_.length+1,f=(this.center_.lat()*(e-1)+a.getPosition().lat())/e,g=(this.center_.lng()*(e-1)+a.getPosition().lng())/e;this.center_=new google.maps.LatLng(f,g),this.calculateBounds_()}}else this.center_=a.getPosition(),this.calculateBounds_();if(a.isAdded=!0,this.markers_.push(a),c=this.markers_.length,d=this.markerClusterer_.getMaxZoom(),null!==d&&this.map_.getZoom()>d)a.getMap()!==this.map_&&a.setMap(this.map_);else if(c<this.minClusterSize_)a.getMap()!==this.map_&&a.setMap(this.map_);else if(c===this.minClusterSize_)for(b=0;c>b;b++)this.markers_[b].setMap(null);else a.setMap(null);return this.updateIcon_(),!0},Cluster.prototype.isMarkerInClusterBounds=function(a){return this.bounds_.contains(a.getPosition())},Cluster.prototype.calculateBounds_=function(){var a=new google.maps.LatLngBounds(this.center_,this.center_);this.bounds_=this.markerClusterer_.getExtendedBounds(a)},Cluster.prototype.updateIcon_=function(){var a=this.markers_.length,b=this.markerClusterer_.getMaxZoom();if(null!==b&&this.map_.getZoom()>b)return void this.clusterIcon_.hide();if(a<this.minClusterSize_)return void this.clusterIcon_.hide();var c=this.markerClusterer_.getStyles().length,d=this.markerClusterer_.getCalculator()(this.markers_,c);this.clusterIcon_.setCenter(this.center_),this.clusterIcon_.useStyle(d),this.clusterIcon_.show()},Cluster.prototype.isMarkerAlreadyAdded_=function(a){var b;if(this.markers_.indexOf)return-1!==this.markers_.indexOf(a);for(b=0;b<this.markers_.length;b++)if(a===this.markers_[b])return!0;return!1},MarkerClusterer.prototype.onAdd=function(){var a=this;this.activeMap_=this.getMap(),this.ready_=!0,this.repaint(),this.listeners_=[google.maps.event.addListener(this.getMap(),"zoom_changed",function(){a.resetViewport_(!1),(this.getZoom()===(this.get("minZoom")||0)||this.getZoom()===this.get("maxZoom"))&&google.maps.event.trigger(this,"idle")}),google.maps.event.addListener(this.getMap(),"idle",function(){a.redraw_()})]},MarkerClusterer.prototype.onRemove=function(){var a;for(a=0;a<this.markers_.length;a++)this.markers_[a].getMap()!==this.activeMap_&&this.markers_[a].setMap(this.activeMap_);for(a=0;a<this.clusters_.length;a++)this.clusters_[a].remove();for(this.clusters_=[],a=0;a<this.listeners_.length;a++)google.maps.event.removeListener(this.listeners_[a]);this.listeners_=[],this.activeMap_=null,this.ready_=!1},MarkerClusterer.prototype.draw=function(){},MarkerClusterer.prototype.setupStyles_=function(){var a,b;if(!(this.styles_.length>0))for(a=0;a<this.imageSizes_.length;a++)b=this.imageSizes_[a],this.styles_.push({url:this.imagePath_+(a+1)+"."+this.imageExtension_,height:b,width:b})},MarkerClusterer.prototype.fitMapToMarkers=function(){var a,b=this.getMarkers(),c=new google.maps.LatLngBounds;for(a=0;a<b.length;a++)c.extend(b[a].getPosition());this.getMap().fitBounds(c)},MarkerClusterer.prototype.getGridSize=function(){return this.gridSize_},MarkerClusterer.prototype.setGridSize=function(a){this.gridSize_=a},MarkerClusterer.prototype.getMinimumClusterSize=function(){return this.minClusterSize_},MarkerClusterer.prototype.setMinimumClusterSize=function(a){this.minClusterSize_=a},MarkerClusterer.prototype.getMaxZoom=function(){return this.maxZoom_},MarkerClusterer.prototype.setMaxZoom=function(a){this.maxZoom_=a},MarkerClusterer.prototype.getStyles=function(){return this.styles_},MarkerClusterer.prototype.setStyles=function(a){this.styles_=a},MarkerClusterer.prototype.getTitle=function(){return this.title_},MarkerClusterer.prototype.setTitle=function(a){this.title_=a},MarkerClusterer.prototype.getZoomOnClick=function(){return this.zoomOnClick_},MarkerClusterer.prototype.setZoomOnClick=function(a){this.zoomOnClick_=a},MarkerClusterer.prototype.getAverageCenter=function(){return this.averageCenter_},MarkerClusterer.prototype.setAverageCenter=function(a){this.averageCenter_=a},MarkerClusterer.prototype.getIgnoreHidden=function(){return this.ignoreHidden_},MarkerClusterer.prototype.setIgnoreHidden=function(a){this.ignoreHidden_=a},MarkerClusterer.prototype.getEnableRetinaIcons=function(){return this.enableRetinaIcons_},MarkerClusterer.prototype.setEnableRetinaIcons=function(a){this.enableRetinaIcons_=a},MarkerClusterer.prototype.getImageExtension=function(){return this.imageExtension_},MarkerClusterer.prototype.setImageExtension=function(a){this.imageExtension_=a},MarkerClusterer.prototype.getImagePath=function(){return this.imagePath_},MarkerClusterer.prototype.setImagePath=function(a){this.imagePath_=a},MarkerClusterer.prototype.getImageSizes=function(){return this.imageSizes_},MarkerClusterer.prototype.setImageSizes=function(a){this.imageSizes_=a},MarkerClusterer.prototype.getCalculator=function(){return this.calculator_},MarkerClusterer.prototype.setCalculator=function(a){this.calculator_=a},MarkerClusterer.prototype.getBatchSizeIE=function(){return this.batchSizeIE_},MarkerClusterer.prototype.setBatchSizeIE=function(a){this.batchSizeIE_=a},MarkerClusterer.prototype.getClusterClass=function(){return this.clusterClass_},MarkerClusterer.prototype.setClusterClass=function(a){this.clusterClass_=a},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(a,b){this.pushMarkerTo_(a),b||this.redraw_()},MarkerClusterer.prototype.addMarkers=function(a,b){var c;for(c in a)a.hasOwnProperty(c)&&this.pushMarkerTo_(a[c]);b||this.redraw_()},MarkerClusterer.prototype.pushMarkerTo_=function(a){if(a.getDraggable()){var b=this;google.maps.event.addListener(a,"dragend",function(){b.ready_&&(this.isAdded=!1,b.repaint())})}a.isAdded=!1,this.markers_.push(a)},MarkerClusterer.prototype.removeMarker=function(a,b){var c=this.removeMarker_(a);return!b&&c&&this.repaint(),c},MarkerClusterer.prototype.removeMarkers=function(a,b){var c,d,e=!1;for(c=0;c<a.length;c++)d=this.removeMarker_(a[c]),e=e||d;return!b&&e&&this.repaint(),e},MarkerClusterer.prototype.removeMarker_=function(a){var b,c=-1;if(this.markers_.indexOf)c=this.markers_.indexOf(a);else for(b=0;b<this.markers_.length;b++)if(a===this.markers_[b]){c=b;break}return-1===c?!1:(a.setMap(null),this.markers_.splice(c,1),!0)},MarkerClusterer.prototype.clearMarkers=function(){this.resetViewport_(!0),this.markers_=[]},MarkerClusterer.prototype.repaint=function(){var a=this.clusters_.slice();this.clusters_=[],this.resetViewport_(!1),this.redraw_(),setTimeout(function(){var b;for(b=0;b<a.length;b++)a[b].remove()},0)},MarkerClusterer.prototype.getExtendedBounds=function(a){var b=this.getProjection(),c=new google.maps.LatLng(a.getNorthEast().lat(),a.getNorthEast().lng()),d=new google.maps.LatLng(a.getSouthWest().lat(),a.getSouthWest().lng()),e=b.fromLatLngToDivPixel(c);e.x+=this.gridSize_,e.y-=this.gridSize_;var f=b.fromLatLngToDivPixel(d);f.x-=this.gridSize_,f.y+=this.gridSize_;var g=b.fromDivPixelToLatLng(e),h=b.fromDivPixelToLatLng(f);return a.extend(g),a.extend(h),a},MarkerClusterer.prototype.redraw_=function(){this.createClusters_(0)},MarkerClusterer.prototype.resetViewport_=function(a){var b,c;for(b=0;b<this.clusters_.length;b++)this.clusters_[b].remove();for(this.clusters_=[],b=0;b<this.markers_.length;b++)c=this.markers_[b],c.isAdded=!1,a&&c.setMap(null)},MarkerClusterer.prototype.distanceBetweenPoints_=function(a,b){var c=6371,d=(b.lat()-a.lat())*Math.PI/180,e=(b.lng()-a.lng())*Math.PI/180,f=Math.sin(d/2)*Math.sin(d/2)+Math.cos(a.lat()*Math.PI/180)*Math.cos(b.lat()*Math.PI/180)*Math.sin(e/2)*Math.sin(e/2),g=2*Math.atan2(Math.sqrt(f),Math.sqrt(1-f)),h=c*g;return h},MarkerClusterer.prototype.isMarkerInBounds_=function(a,b){return b.contains(a.getPosition())},MarkerClusterer.prototype.addToClosestCluster_=function(a){var b,c,d,e,f=4e4,g=null;for(b=0;b<this.clusters_.length;b++)d=this.clusters_[b],e=d.getCenter(),e&&(c=this.distanceBetweenPoints_(e,a.getPosition()),f>c&&(f=c,g=d));g&&g.isMarkerInClusterBounds(a)?g.addMarker(a):(d=new Cluster(this),d.addMarker(a),this.clusters_.push(d))},MarkerClusterer.prototype.createClusters_=function(a){var b,c,d,e=this;if(this.ready_){0===a&&(google.maps.event.trigger(this,"clusteringbegin",this),"undefined"!=typeof this.timerRefStatic&&(clearTimeout(this.timerRefStatic),delete this.timerRefStatic)),d=this.getMap().getZoom()>3?new google.maps.LatLngBounds(this.getMap().getBounds().getSouthWest(),this.getMap().getBounds().getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,-178.48388434375),new google.maps.LatLng(-85.08136444384544,178.00048865625));var f=this.getExtendedBounds(d),g=Math.min(a+this.batchSize_,this.markers_.length);for(b=a;g>b;b++)c=this.markers_[b],!c.isAdded&&this.isMarkerInBounds_(c,f)&&(!this.ignoreHidden_||this.ignoreHidden_&&c.getVisible())&&this.addToClosestCluster_(c);g<this.markers_.length?this.timerRefStatic=setTimeout(function(){e.createClusters_(g)},0):(delete this.timerRefStatic,google.maps.event.trigger(this,"clusteringend",this))}},MarkerClusterer.prototype.extend=function(a,b){return function(a){var b;for(b in a.prototype)this.prototype[b]=a.prototype[b];return this}.apply(a,[b])},MarkerClusterer.CALCULATOR=function(a,b){for(var c=0,d="",e=a.length.toString(),f=e;0!==f;)f=parseInt(f/10,10),c++;return c=Math.min(c,b),{text:e,index:c,title:d}},MarkerClusterer.BATCH_SIZE=2e3,MarkerClusterer.BATCH_SIZE_IE=500,MarkerClusterer.IMAGE_PATH="http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclustererplus/images/m",MarkerClusterer.IMAGE_EXTENSION="png",MarkerClusterer.IMAGE_SIZES=[53,56,66,78,90],RichMarker.prototype=new google.maps.OverlayView,window.RichMarker=RichMarker,RichMarker.prototype.getVisible=function(){return this.get("visible")},RichMarker.prototype.getVisible=RichMarker.prototype.getVisible,RichMarker.prototype.setVisible=function(a){this.set("visible",a)},RichMarker.prototype.setVisible=RichMarker.prototype.setVisible,RichMarker.prototype.visible_changed=function(){this.ready_&&(this.markerWrapper_.style.display=this.getVisible()?"":"none",this.draw())},RichMarker.prototype.visible_changed=RichMarker.prototype.visible_changed,RichMarker.prototype.setFlat=function(a){this.set("flat",!!a)},RichMarker.prototype.setFlat=RichMarker.prototype.setFlat,RichMarker.prototype.getFlat=function(){return this.get("flat")},RichMarker.prototype.getFlat=RichMarker.prototype.getFlat,RichMarker.prototype.getWidth=function(){return this.get("width")},RichMarker.prototype.getWidth=RichMarker.prototype.getWidth,RichMarker.prototype.getHeight=function(){return this.get("height")},RichMarker.prototype.getHeight=RichMarker.prototype.getHeight,RichMarker.prototype.setShadow=function(a){this.set("shadow",a),this.flat_changed()},RichMarker.prototype.setShadow=RichMarker.prototype.setShadow,RichMarker.prototype.getShadow=function(){return this.get("shadow")},RichMarker.prototype.getShadow=RichMarker.prototype.getShadow,RichMarker.prototype.flat_changed=function(){this.ready_&&(this.markerWrapper_.style.boxShadow=this.markerWrapper_.style.webkitBoxShadow=this.markerWrapper_.style.MozBoxShadow=this.getFlat()?"":this.getShadow())},RichMarker.prototype.flat_changed=RichMarker.prototype.flat_changed,RichMarker.prototype.setZIndex=function(a){this.set("zIndex",a)},RichMarker.prototype.setZIndex=RichMarker.prototype.setZIndex,RichMarker.prototype.getZIndex=function(){return this.get("zIndex")},RichMarker.prototype.getZIndex=RichMarker.prototype.getZIndex,RichMarker.prototype.zIndex_changed=function(){this.getZIndex()&&this.ready_&&(this.markerWrapper_.style.zIndex=this.getZIndex())},RichMarker.prototype.zIndex_changed=RichMarker.prototype.zIndex_changed,RichMarker.prototype.getDraggable=function(){return this.get("draggable")},RichMarker.prototype.getDraggable=RichMarker.prototype.getDraggable,RichMarker.prototype.setDraggable=function(a){this.set("draggable",!!a)},RichMarker.prototype.setDraggable=RichMarker.prototype.setDraggable,RichMarker.prototype.draggable_changed=function(){this.ready_&&(this.getDraggable()?this.addDragging_(this.markerWrapper_):this.removeDragListeners_())},RichMarker.prototype.draggable_changed=RichMarker.prototype.draggable_changed,RichMarker.prototype.getPosition=function(){return this.get("position")},RichMarker.prototype.getPosition=RichMarker.prototype.getPosition,RichMarker.prototype.setPosition=function(a){this.set("position",a)},RichMarker.prototype.setPosition=RichMarker.prototype.setPosition,RichMarker.prototype.position_changed=function(){this.draw()},RichMarker.prototype.position_changed=RichMarker.prototype.position_changed,RichMarker.prototype.getAnchor=function(){return this.get("anchor")},RichMarker.prototype.getAnchor=RichMarker.prototype.getAnchor,RichMarker.prototype.setAnchor=function(a){this.set("anchor",a)},RichMarker.prototype.setAnchor=RichMarker.prototype.setAnchor,RichMarker.prototype.anchor_changed=function(){this.draw()},RichMarker.prototype.anchor_changed=RichMarker.prototype.anchor_changed,RichMarker.prototype.htmlToDocumentFragment_=function(a){var b=document.createElement("DIV");if(b.innerHTML=a,1==b.childNodes.length)return b.removeChild(b.firstChild);for(var c=document.createDocumentFragment();b.firstChild;)c.appendChild(b.firstChild);return c},RichMarker.prototype.removeChildren_=function(a){if(a)for(var b;b=a.firstChild;)a.removeChild(b)},RichMarker.prototype.setContent=function(a){this.set("content",a)},RichMarker.prototype.setContent=RichMarker.prototype.setContent,RichMarker.prototype.getContent=function(){return this.get("content")},RichMarker.prototype.getContent=RichMarker.prototype.getContent,RichMarker.prototype.content_changed=function(){if(this.markerContent_){this.removeChildren_(this.markerContent_);var a=this.getContent();if(a){"string"==typeof a&&(a=a.replace(/^\s*([\S\s]*)\b\s*$/,"$1"),a=this.htmlToDocumentFragment_(a)),this.markerContent_.appendChild(a);for(var b,c=this,d=this.markerContent_.getElementsByTagName("IMG"),e=0;b=d[e];e++)google.maps.event.addDomListener(b,"mousedown",function(a){c.getDraggable()&&(a.preventDefault&&a.preventDefault(),a.returnValue=!1)}),google.maps.event.addDomListener(b,"load",function(){c.draw()});google.maps.event.trigger(this,"domready")}this.ready_&&this.draw()}},RichMarker.prototype.content_changed=RichMarker.prototype.content_changed,RichMarker.prototype.setCursor_=function(a){if(this.ready_){var b="";-1!==navigator.userAgent.indexOf("Gecko/")?("dragging"==a&&(b="-moz-grabbing"),"dragready"==a&&(b="-moz-grab"),"draggable"==a&&(b="pointer")):(("dragging"==a||"dragready"==a)&&(b="move"),"draggable"==a&&(b="pointer")),this.markerWrapper_.style.cursor!=b&&(this.markerWrapper_.style.cursor=b)}},RichMarker.prototype.startDrag=function(a){if(this.getDraggable()&&!this.dragging_){this.dragging_=!0;var b=this.getMap();this.mapDraggable_=b.get("draggable"),b.set("draggable",!1),this.mouseX_=a.clientX,this.mouseY_=a.clientY,this.setCursor_("dragready"),this.markerWrapper_.style.MozUserSelect="none",this.markerWrapper_.style.KhtmlUserSelect="none",this.markerWrapper_.style.WebkitUserSelect="none",this.markerWrapper_.unselectable="on",this.markerWrapper_.onselectstart=function(){return!1},this.addDraggingListeners_(),google.maps.event.trigger(this,"dragstart")}},RichMarker.prototype.stopDrag=function(){this.getDraggable()&&this.dragging_&&(this.dragging_=!1,this.getMap().set("draggable",this.mapDraggable_),this.mouseX_=this.mouseY_=this.mapDraggable_=null,this.markerWrapper_.style.MozUserSelect="",this.markerWrapper_.style.KhtmlUserSelect="",this.markerWrapper_.style.WebkitUserSelect="",this.markerWrapper_.unselectable="off",this.markerWrapper_.onselectstart=function(){},this.removeDraggingListeners_(),this.setCursor_("draggable"),google.maps.event.trigger(this,"dragend"),this.draw())},RichMarker.prototype.drag=function(a){if(!this.getDraggable()||!this.dragging_)return void this.stopDrag();var b=this.mouseX_-a.clientX,c=this.mouseY_-a.clientY;this.mouseX_=a.clientX,this.mouseY_=a.clientY;var d=parseInt(this.markerWrapper_.style.left,10)-b,e=parseInt(this.markerWrapper_.style.top,10)-c;this.markerWrapper_.style.left=d+"px",this.markerWrapper_.style.top=e+"px";var f=this.getOffset_(),g=new google.maps.Point(d-f.width,e-f.height),h=this.getProjection();this.setPosition(h.fromDivPixelToLatLng(g)),this.setCursor_("dragging"),google.maps.event.trigger(this,"drag")},RichMarker.prototype.removeDragListeners_=function(){this.draggableListener_&&(google.maps.event.removeListener(this.draggableListener_),delete this.draggableListener_),this.setCursor_("")},RichMarker.prototype.addDragging_=function(a){if(a){var b=this;this.draggableListener_=google.maps.event.addDomListener(a,"mousedown",function(a){b.startDrag(a)}),this.setCursor_("draggable")}},RichMarker.prototype.addDraggingListeners_=function(){var a=this;this.markerWrapper_.setCapture?(this.markerWrapper_.setCapture(!0),this.draggingListeners_=[google.maps.event.addDomListener(this.markerWrapper_,"mousemove",function(b){a.drag(b)},!0),google.maps.event.addDomListener(this.markerWrapper_,"mouseup",function(){a.stopDrag(),a.markerWrapper_.releaseCapture()},!0)]):this.draggingListeners_=[google.maps.event.addDomListener(window,"mousemove",function(b){a.drag(b)},!0),google.maps.event.addDomListener(window,"mouseup",function(){a.stopDrag()},!0)]},RichMarker.prototype.removeDraggingListeners_=function(){if(this.draggingListeners_){for(var a,b=0;a=this.draggingListeners_[b];b++)google.maps.event.removeListener(a);this.draggingListeners_.length=0}},RichMarker.prototype.getOffset_=function(){var a=this.getAnchor();if("object"==typeof a)return a;var b=new google.maps.Size(0,0);if(!this.markerContent_)return b;var c=this.markerContent_.offsetWidth,d=this.markerContent_.offsetHeight;switch(a){case RichMarkerPosition.TOP_LEFT:break;case RichMarkerPosition.TOP:b.width=-c/2;break;case RichMarkerPosition.TOP_RIGHT:b.width=-c;break;case RichMarkerPosition.LEFT:b.height=-d/2;break;case RichMarkerPosition.MIDDLE:b.width=-c/2,b.height=-d/2;break;case RichMarkerPosition.RIGHT:b.width=-c,b.height=-d/2;break;case RichMarkerPosition.BOTTOM_LEFT:b.height=-d;break;case RichMarkerPosition.BOTTOM:b.width=-c/2,b.height=-d;break;case RichMarkerPosition.BOTTOM_RIGHT:b.width=-c,b.height=-d}return b},RichMarker.prototype.onAdd=function(){if(this.markerWrapper_||(this.markerWrapper_=document.createElement("DIV"),this.markerWrapper_.style.position="absolute"),this.getZIndex()&&(this.markerWrapper_.style.zIndex=this.getZIndex()),this.markerWrapper_.style.display=this.getVisible()?"":"none",!this.markerContent_){this.markerContent_=document.createElement("DIV"),this.markerWrapper_.appendChild(this.markerContent_);var a=this;google.maps.event.addDomListener(this.markerContent_,"click",function(b){google.maps.event.trigger(a,"click")}),google.maps.event.addDomListener(this.markerContent_,"mouseover",function(b){google.maps.event.trigger(a,"mouseover")}),google.maps.event.addDomListener(this.markerContent_,"mouseout",function(b){google.maps.event.trigger(a,"mouseout")})}this.ready_=!0,this.content_changed(),this.flat_changed(),this.draggable_changed();var b=this.getPanes();b&&b.overlayMouseTarget.appendChild(this.markerWrapper_),google.maps.event.trigger(this,"ready")},RichMarker.prototype.onAdd=RichMarker.prototype.onAdd,RichMarker.prototype.draw=function(){if(this.ready_&&!this.dragging_){var a=this.getProjection();if(a){var b=this.get("position"),c=a.fromLatLngToDivPixel(b),d=this.getOffset_();this.markerWrapper_.style.top=c.y+d.height+"px",this.markerWrapper_.style.left=c.x+d.width+"px";var e=this.markerContent_.offsetHeight,f=this.markerContent_.offsetWidth;f!=this.get("width")&&this.set("width",f),e!=this.get("height")&&this.set("height",e)}}},RichMarker.prototype.draw=RichMarker.prototype.draw,RichMarker.prototype.onRemove=function(){this.markerWrapper_&&this.markerWrapper_.parentNode&&this.markerWrapper_.parentNode.removeChild(this.markerWrapper_),this.removeDragListeners_()},RichMarker.prototype.onRemove=RichMarker.prototype.onRemove;var RichMarkerPosition={TOP_LEFT:1,TOP:2,TOP_RIGHT:3,LEFT:4,MIDDLE:5,RIGHT:6,BOTTOM_LEFT:7,BOTTOM:8,BOTTOM_RIGHT:9};window.RichMarkerPosition=RichMarkerPosition,function(a){window.cLocator=window.cLocator||{};var b=b||{Map:{},markers:{},located:{},infoBubble:!1,bounds:new google.maps.LatLngBounds,markerClusterer:!1,needsFit:!0,isPanned:!1,formIndex:0};cLocator.Marker=function(a,c){return b.markers.hasOwnProperty(a)?(this.data=b.markers[a].meta,this.marker=b.markers[a],this.marker.setVisible(!0)):(this.data=c,this.create()),this.setBounds(),{marker:this.marker,infoBubble:this.getInfoBubbleContent()}},cLocator.Marker.prototype.create=function(){this.data&&this.data.lat&&(this.marker=new google.maps.Marker({position:new google.maps.LatLng(this.data.lat,this.data.lng),meta:this.data}),this.setInfoBubble())},cLocator.Marker.prototype.setBounds=function(){b.bounds.extend(this.marker.getPosition())},cLocator.Marker.prototype.setInfoBubble=function(){var a=this;google.maps.event.addListener(this.marker,"click",function(){window.location.href=this.meta.link}),google.maps.event.addListener(this.marker,"mouseover",function(){b.infoBubble.isOpen_&&b.infoBubble.getContent()==a.getInfoBubbleContent()||(b.infoBubble.setContent(a.getInfoBubbleContent()),b.infoBubble.open(b.Map,a.marker))})},cLocator.Marker.prototype.getInfoBubbleContent=function(){var a='<a href="'+this.data.link+'">'+this.data.title+"</a>";return a},cLocator.Markers=function(){b.infoBubble||(b.infoBubble=new InfoBubble({backgroundClassName:"map-marker-info",borderRadius:4,padding:0,borderColor:"#ffffff",shadowStyle:0,minWidth:250,maxWidth:250,minHeight:67,hideCloseButton:!0,flat:!0}))},cLocator.Markers.prototype.hideAll=function(){
a.isEmptyObject(b.markers)||(b.bounds=new google.maps.LatLngBounds,b.infoBubble.close(),b.markerClusterer&&b.markerClusterer.clearMarkers(),a.each(b.markers,function(a,c){b.markers[a].setVisible(!1)}))},cLocator.Markers.prototype.place=function(c){return this.hideAll(),this.results=c,a.isEmptyObject(this.results)?b.Stage.showDefault():(a.each(this.results,function(a,c){var d=new cLocator.Marker(a,c);b.markers[a]=d.marker,b.markers[a].getVisible()?b.markers[a].setMap(b.Map):b.markers[a].setMap(null)}),b.needsFit===!0&&this.fitBounds(),void(b.Stage.settings.useClusters&&this.createClusters()))},cLocator.Markers.prototype.fitBounds=function(){b.Map.fitBounds(b.bounds),b.Map.setZoom(b.Map.getZoom())},cLocator.Markers.prototype.createClusters=function(){var a=this;b.markerClusterer=new MarkerClusterer(b.Map,b.markers,{ignoreHidden:!0,maxZoom:b.Stage.settings.mapOptions.maxZoom,gridSize:parseInt(b.Stage.settings.gridSize),imagePath:""}),google.maps.event.addListener(b.markerClusterer,"click",function(b){a.clusterOverlay(b)})},cLocator.Markers.prototype.clusterOverlay=function(c){var d=c.getMarkers(),e=b.Map.getZoom();if(!(e<b.Stage.settings.mapOptions.maxZoom)){var f=[];for(i=0;i<d.length;i++){var g=new cLocator.Marker(d[i].meta.id,d[i]);f.push(g.infoBubble)}var h=b.Stage.settings.title.replace("%d",f.length);a.magnificPopup.open({items:{src:'<div class="modal"><h2 class="modal-title">'+h+'</h2><ul class="cluster-items"><li class="map-marker-info">'+f.join('</li><li class="map-marker-info">')+"</li></ul></div>",type:"inline"}})}},cLocator.Results=function(){},cLocator.Results.prototype.parse=function(){var c=this,d=b.Stage.$target.eq(b.formIndex);this.results={},this.items=d.find(".type-"+b.Stage.type),a.each(this.items,function(b,d){var e=a(d);if(e.data("longitude")&&e.data("latitude")){var f={id:e.attr("id"),lat:e.data("latitude"),lng:e.data("longitude"),link:e.data("href"),title:e.data("title")};c.results[f.id]=f}}),b.Markers.place(this.results)},cLocator.Results.prototype.refresh=function(){b.Stage.$target.trigger("update_results",[1,!1])},cLocator.Stage=function(c,d){var e={useClusters:!0,mapOptions:{center:new google.maps.LatLng(41.850033,-87.6500523),zoom:3,maxZoom:17,scrollwheel:!1,panControl:!1,scaleControl:!1,overviewMapControl:!1,zoomControlOptions:{position:google.maps.ControlPosition.RIGHT_TOP},streetViewControl:!0,streetViewControlOptions:{position:google.maps.ControlPosition.RIGHT_TOP}}};if(this.settings=a.extend(!0,{},e,d),this.type=c,this.$target=a("div."+this.type+'s[data-show_filters="true"]'),this.$results=a("ul."+this.type+"s"),this.canvas=this.type+"-map-canvas",this.settings.mapOptions.zoom=parseInt(this.settings.mapOptions.zoom),this.settings.mapOptions.maxZoom=parseInt(this.settings.mapOptions.maxZoom),a.isArray(this.settings.mapOptions.center)){var f=this.settings.mapOptions.center;b.needsFit=!1,this.settings.mapOptions.center=new google.maps.LatLng(f[0],f[1])}document.getElementById(this.canvas)&&(google.maps.event.addDomListener(window,"load",this.create()),b.currentLocation=this.$target.find(a("#search_location")).val(),b.Results=new cLocator.Results,b.Markers=new cLocator.Markers,b.Stage=this)},cLocator.Stage.prototype.create=function(){b.Map=new google.maps.Map(document.getElementById(this.canvas),this.settings.mapOptions);var c=this;this.adjustSize(),a(window).on("resize",function(){c.adjustSize()}),this.bindEvents()},cLocator.Stage.prototype.adjustSize=function(){var b=a("#"+this.canvas),c=b.outerHeight(),d=a(window),e=d.outerHeight(),f=0;if(f=a("body").hasClass("page-template-page-templatesmap-jobs-php")||a("body").hasClass("page-template-page-templatesmap-resumes-php")?a(".site-header").outerHeight()+80:a(".site-header").outerHeight()+a(".job_filters").outerHeight()+50,c+f>e){var g=e-f;if(g>500)return;a(".job_listing-map-wrapper, .job_listing-map, .resume-map-wrapper, .resume-map").css("height",g)}},cLocator.Stage.prototype.showDefault=function(){""==b.GeoCode.getCurrentLocation()?(b.Map.setCenter(b.Stage.settings.mapOptions.center),b.Map.setZoom(b.Stage.settings.mapOptions.zoom)):b.Map.setCenter(b.GeoCode.getCurrentLocation())},cLocator.Stage.prototype.bindEvents=function(){var c=this;a(".load_more_jobs").click(function(a){b.needsFit=!0}),c.$target.on("update_results",function(a){b.formIndex=c.$target.index(this)}),c.$target.on("updated_results",function(a,c){b.Results.parse()}),google.maps.event.addListener(b.Map,"click",function(){b.action="click",b.infoBubble.close()}),google.maps.event.addListener(b.Map,"zoom_changed",function(){b.infoBubble.close()})},InfoBubble.prototype.getAnchorHeight_=function(){return 45}}(jQuery);
//# sourceMappingURL=wp-job-manager-map.min.map;
// source --> https://www.researchjobs.cz/wp-content/themes/researchjobs/third-party/czarma/muniweb.js?ver=6.1.10 
/*! For license information please see muniweb.2dfa1e8bca263c429059.js.LICENSE.txt */
!function(){var t={3779:function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}!function(t){function e(o){if(n[o])return n[o].exports;var i=n[o]={exports:{},id:o,loaded:!1};return t[o].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){n(1),null==window.jQuery&&(window.jQuery=$),window.App={doComponents:function(t,e,n){var o,i,r,s;for(i=0,r=t.length;i<r;i++)"function"==typeof(o=t[i])[s=e&&o.ajax?"ajax":"init"]&&o[s]({$target:n.$target,options:this.options});return this},run:function(t){this.options=t,this.globalComponents=[n(2),n(4),n(5),n(6),n(7),n(8),n(9),n(10),n(13),n(14),n(15),n(16)],this.components=[n(17),n(19),n(23),n(26),n(28),n(30),n(32),n(34),n(35),n(36)],this.doComponents(this.globalComponents,!1,{$target:$(document)}),this.doComponents(this.components,!1,{$target:$(document)}),$(document).on("ajax-init",function(t){return function(e){return t.doComponents(t.components,!0,{$target:$(e.target)})}}(this)),!!window.MSInputMethodContext&&!!document.documentMode&&$("body").addClass("ie11")}}},function(e,n){!function(){"use strict";function e(t){try{return t.defaultView&&t.defaultView.frameElement||null}catch(t){return null}}function n(t){this.time=t.time,this.target=t.target,this.rootBounds=l(t.rootBounds),this.boundingClientRect=l(t.boundingClientRect),this.intersectionRect=l(t.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,n=e.width*e.height,o=this.intersectionRect,i=o.width*o.height;this.intersectionRatio=n?Number((i/n).toFixed(4)):this.isIntersecting?1:0}function o(t,e){var n=e||{};if("function"!=typeof t)throw new Error("callback must be a function");if(n.root&&1!=n.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=function(t,e){var n=null;return function(){n||(n=setTimeout((function(){t(),n=null}),e))}}(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(n.rootMargin),this.thresholds=this._initThresholds(n.threshold),this.root=n.root||null,this.rootMargin=this._rootMarginValues.map((function(t){return t.value+t.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function i(t,e,n,o){"function"==typeof t.addEventListener?t.addEventListener(e,n,o||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,n)}function r(t,e,n,o){"function"==typeof t.removeEventListener?t.removeEventListener(e,n,o||!1):"function"==typeof t.detatchEvent&&t.detatchEvent("on"+e,n)}function s(t,e){var n=Math.max(t.top,e.top),o=Math.min(t.bottom,e.bottom),i=Math.max(t.left,e.left),r=Math.min(t.right,e.right),s=r-i,a=o-n;return s>=0&&a>=0&&{top:n,bottom:o,left:i,right:r,width:s,height:a}||null}function a(t){var e;try{e=t.getBoundingClientRect()}catch(t){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function l(t){return!t||"x"in t?t:{top:t.top,y:t.top,bottom:t.bottom,left:t.left,x:t.left,right:t.right,width:t.width,height:t.height}}function c(t,e){var n=e.top-t.top,o=e.left-t.left;return{top:n,left:o,height:e.height,width:e.width,bottom:n+e.height,right:o+e.width}}function d(t,e){for(var n=e;n;){if(n==t)return!0;n=u(n)}return!1}function u(t){var n=t.parentNode;return 9==t.nodeType&&t!=p?e(t):n&&11==n.nodeType&&n.host?n.host:n&&n.assignedSlot?n.assignedSlot.parentNode:n}if("object"==("undefined"==typeof window?"undefined":t(window))){if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)return void("isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}}));var p=function(t){for(var n=window.document,o=e(n);o;)o=e(n=o.ownerDocument);return n}(),f=[],h=null,g=null;o.prototype.THROTTLE_TIMEOUT=100,o.prototype.POLL_INTERVAL=null,o.prototype.USE_MUTATION_OBSERVER=!0,o._setupCrossOriginUpdater=function(){return h||(h=function(t,e){g=t&&e?c(t,e):{top:0,bottom:0,left:0,right:0,width:0,height:0},f.forEach((function(t){t._checkForIntersections()}))}),h},o._resetCrossOriginUpdater=function(){h=null,g=null},o.prototype.observe=function(t){if(!this._observationTargets.some((function(e){return e.element==t}))){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(t.ownerDocument),this._checkForIntersections()}},o.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter((function(e){return e.element!=t})),this._unmonitorIntersections(t.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},o.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},o.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},o.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter((function(t,e,n){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==n[e-1]}))},o.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map((function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}}));return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},o.prototype._monitorIntersections=function(t){var n=t.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(t)){var o=this._checkForIntersections,s=null,a=null;if(this.POLL_INTERVAL?s=n.setInterval(o,this.POLL_INTERVAL):(i(n,"resize",o,!0),i(t,"scroll",o,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(a=new n.MutationObserver(o)).observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(t),this._monitoringUnsubscribes.push((function(){var e=t.defaultView;e&&(s&&e.clearInterval(s),r(e,"resize",o,!0)),r(t,"scroll",o,!0),a&&a.disconnect()})),t!=(this.root&&this.root.ownerDocument||p)){var l=e(t);l&&this._monitorIntersections(l.ownerDocument)}}},o.prototype._unmonitorIntersections=function(t){var n=this._monitoringDocuments.indexOf(t);if(-1!=n){var o=this.root&&this.root.ownerDocument||p,i=this._observationTargets.some((function(n){var i=n.element.ownerDocument;if(i==t)return!0;for(;i&&i!=o;){var r=e(i);if((i=r&&r.ownerDocument)==t)return!0}return!1}));if(!i){var r=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),r(),t!=o){var s=e(t);s&&this._unmonitorIntersections(s.ownerDocument)}}}},o.prototype._unmonitorAllIntersections=function(){var t=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var e=0;e<t.length;e++)t[e]()},o.prototype._checkForIntersections=function(){if(this.root||!h||g){var t=this._rootIsInDom(),e=t?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(o){var i=o.element,r=a(i),s=this._rootContainsTarget(i),l=o.entry,c=t&&s&&this._computeTargetAndRootIntersection(i,r,e),d=o.entry=new n({time:window.performance&&performance.now&&performance.now(),target:i,boundingClientRect:r,rootBounds:h&&!this.root?null:e,intersectionRect:c});l?t&&s?this._hasCrossedThreshold(l,d)&&this._queuedEntries.push(d):l&&l.isIntersecting&&this._queuedEntries.push(d):this._queuedEntries.push(d)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},o.prototype._computeTargetAndRootIntersection=function(t,e,n){if("none"!=window.getComputedStyle(t).display){for(var o=e,i=u(t),r=!1;!r&&i;){var l=null,d=1==i.nodeType?window.getComputedStyle(i):{};if("none"==d.display)return null;if(i==this.root||9==i.nodeType)if(r=!0,i==this.root||i==p)h&&!this.root?!g||0==g.width&&0==g.height?(i=null,l=null,o=null):l=g:l=n;else{var f=u(i),m=f&&a(f),v=f&&this._computeTargetAndRootIntersection(f,m,n);m&&v?(i=f,l=c(m,v)):(i=null,o=null)}else{var y=i.ownerDocument;i!=y.body&&i!=y.documentElement&&"visible"!=d.overflow&&(l=a(i))}if(l&&(o=s(l,o)),!o)break;i=i&&u(i)}return o}},o.prototype._getRootRect=function(){var t;if(this.root)t=a(this.root);else{var e=p.documentElement,n=p.body;t={top:0,left:0,right:e.clientWidth||n.clientWidth,width:e.clientWidth||n.clientWidth,bottom:e.clientHeight||n.clientHeight,height:e.clientHeight||n.clientHeight}}return this._expandRectByRootMargin(t)},o.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map((function(e,n){return"px"==e.unit?e.value:e.value*(n%2?t.width:t.height)/100})),n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},o.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1,o=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==o)for(var i=0;i<this.thresholds.length;i++){var r=this.thresholds[i];if(r==n||r==o||r<n!=r<o)return!0}},o.prototype._rootIsInDom=function(){return!this.root||d(p,this.root)},o.prototype._rootContainsTarget=function(t){return d(this.root||p,t)&&(!this.root||this.root.ownerDocument==t.ownerDocument)},o.prototype._registerInstance=function(){f.indexOf(this)<0&&f.push(this)},o.prototype._unregisterInstance=function(){var t=f.indexOf(this);-1!=t&&f.splice(t,1)},window.IntersectionObserver=o,window.IntersectionObserverEntry=n}}()},function(t,e,n){var o;o=n(3),t.exports={init:function(){return o(document).on("click",".tr-clickable",(function(t){return t.preventDefault(),window.location=o(this).find("a").first().attr("href")}))}}},function(t,e){t.exports=jQuery},function(t,e,n){var o;o=n(3),t.exports={init:function(){return o(document).on("click",".share__btn",(function(t){return t.preventDefault(),o(this).closest(".share").toggleClass("is-open")}))}}},function(t,e,n){var o;o=n(3),t.exports={init:function(t){return t.$target,o(document).on("click",".link-slide",(function(t){var e,n;return t.preventDefault(),n=o(this).attr("href"),(e=o(n)).hasClass("box-accordion__box")?e.closest(".box-accordion__item").hasClass("is-open")||o(".box-accordion__title__link[href="+n+"]").trigger("click"):e.hasClass("box-tabs__fragment")&&(e.hasClass("is-active")||o(".box-tabs .js-tab-links[href="+n+"]").trigger("click")),o("body, html").animate({scrollTop:e.offset().top},500)}))}}},function(t,e,n){var o;o=n(3),t.exports={init:function(t){return t.$target,o(document).on("click",".box-deaf__toggle",(function(t){return t.preventDefault(),o(this).parents(".box-deaf").toggleClass("is-open")}))}}},function(t,e,n){var o;o=n(3),t.exports={init:function(t){return t.$target,o(document).on("click",".menu-side__toggle",(function(t){return t.preventDefault(),o(this).closest(".menu-side__item").toggleClass("is-open")}))}}},function(t,e,n){var o;o=n(3),t.exports={init:function(t){var e;return t.$target,e=null,o(document).on("click",(function(t){if(o(t.target).closest("[data-href]").data("href")!==e)return o('[data-href="'+e+'"]').removeClass("is-open")})).on("click",".btn-dropdown > a:first-child",(function(t){var n;return t.preventDefault(),(n=o("[data-href].is-open")).find("a").data("href")!==o(this).data("href")&&n.removeClass("is-open"),o(this).closest(".btn-dropdown").toggleClass("is-open"),e=o(this).data("href")}))}}},function(t,e,n){var o;o=n(3),t.exports={init:function(){return o(document).on("click",".footer__menu__title__toggle",(function(t){return t.preventDefault(),o(this).closest(".footer__menu__toggle").toggleClass("is-open")})).on("click",".js-toggle-jsHide",(function(t){return t.preventDefault(),o(o(this).attr("href")).toggleClass("jsHide")})).on("click",".box-code__title__close",(function(t){return t.preventDefault(),o(this).closest(".box-code").addClass("jsHide")})).on("click",".tooltip",(function(t){return t.preventDefault()})).on("click",".anchor",(function(t){var e;if(t.preventDefault(),e=o(o(this).attr("href")))return o("html, body").animate({scrollTop:e.offset().top-o(".header").innerHeight()},300)})).on("click","[data-notifications]",(function(t){return t.preventDefault(),o(this).closest(".ins-box-notifications__head").toggleClass("is-open")}))}}},function(t,e,n){var o;o=n(3),n(11),n(12),t.exports={init:function(t){var e,n,i,r,s;return i=t.$target,s=null,r=o("html").hasClass("touch"),n=o(".header-fixed-wrap"),e=o(document),n.length&&(o(window).on("scroll",(function(){return e.scrollTop()<s-300&&n.find(".headroom").addClass("header--full"),e.scrollTop()>200?n.addClass("is-fixed"):n.removeClass("is-fixed")})),document.querySelector(".header"),new Headroom(document.querySelector(".header"),{tolerance:10,offset:200,onPin:function(){return s=e.scrollTop()},onUnpin:function(){return s=null,n.find(".headroom").removeClass("header--full")}}).init()),o(document).on("click",".menu-mobile__link--search",(function(t){return t.preventDefault(),t.stopPropagation(),o(this).closest(".header").find(".header__search").toggleClass("is-open").find(".inp-text").focus(),o(this).closest(".header").find(".menu-primary").removeClass("is-open"),o(this).closest(".header").find(".menu-mobile__item").removeClass("is-open")})).on("click",(function(t){if(o(".header__search").hasClass("is-open")&&!o(t.target).closest(".header__search").length)return o(".header__search").removeClass("is-open")})).on("focusout",".menu-lang__selected__link, .menu-lang__popup__link",(function(t){if(!r&&!o(t.relatedTarget).closest(".menu-lang").length)return o(this).closest(".menu-lang").removeClass("is-hover")})).on("click",".menu-lang--select .menu-lang__selected__link",(function(t){return t.preventDefault(),o(this).closest(".menu-lang").toggleClass("is-hover")})).on("focusout",".menu-subbox a, .menu-submenu__link",(function(t){var e,n;if(n=o(this),e=o(t.relatedTarget).closest(".menu-primary__item"),t.relatedTarget&&(!e.length||!e.hasClass("is-open")))return n.closest(".menu-primary__item").removeClass("is-open")})).on("click",(function(t){if(!o(t.target).closest(".menu-primary").length)return o(".menu-primary__item").removeClass("is-open")})).on("click",".with-submenu .menu-primary__link, .with-subbox .menu-primary__link",(function(t){var e;if(t.preventDefault(),e=o(this).closest(".menu-primary__item"),o(".menu-primary__item").not(e).removeClass("is-open"),e.toggleClass("is-open"),0===t.clientX&&0===t.clientY)return o.tabNext()})).on("keydown",(function(t){if((i=o(t.target)).closest(".menu-primary").length){if(27===t.keyCode)return o(".menu-primary__item").removeClass("is-open");if(!i.hasClass("menu-primary__link")&&!i.hasClass("menu-primary__title")||i.closest(".menu-primary__main-toggle").length){if(i.closest(".menu-primary__main-toggle").length){if(37===t.keyCode)return o.tabPrev();if(39===t.keyCode)return o.tabNext();if(38===t.keyCode)return t.preventDefault(),o.tabPrev();if(40===t.keyCode)return t.preventDefault(),o.tabNext()}else if(i.closest(".menu-primary__item").length){if(37===t.keyCode)return i.closest(".menu-primary__item").find(".menu-primary__link").focus().trigger("click"),o.tabPrev();if(39===t.keyCode)return i.closest(".menu-primary__item").find(".menu-primary__link").focus().trigger("click"),o.tabNext();if(38===t.keyCode)return t.preventDefault(),o.tabPrev();if(40===t.keyCode)return t.preventDefault(),o.tabNext()}}else{if(37===t.keyCode)return o.tabPrev();if(39===t.keyCode)return o.tabNext();if(38===t.keyCode)return t.preventDefault(),i.trigger("click"),o.tabPrev();if(40===t.keyCode)return t.preventDefault(),i.trigger("click"),o.tabNext()}}})).on("click",".menu-primary__title",(function(t){if(t.preventDefault(),o(this).closest(".menu-primary").toggleClass("is-open"),o(".menu-primary__item").removeClass("is-hover"),0===t.clientX&&0===t.clientY)return o.tabNext()})).on("click",(function(t){if(o(t.target).closest(".menu-primary__main-toggle, .menu-primary__title").length||(o(".menu-primary").removeClass("is-open"),o(".menu-mobile__item").removeClass("is-open")),r&&!o(t.target).closest(".menu-primary__wrap").length)return o(".menu-primary__item").removeClass("is-hover")})).on("click",".menu-primary__toggle",(function(t){var e;if(t.preventDefault(),(e=o(this).closest(".menu-primary__item")).toggleClass("is-open"),e.hasClass("with-subbox"))return o(this).closest(".menu-primary__main-toggle")})).on("click",".menu-subbox__close",(function(t){return t.preventDefault(),o(this).closest(".menu-primary__item").removeClass("is-open")})).on("click",".menu-subbox__title__toggle",(function(t){return t.preventDefault(),o(this).closest(".menu-subbox__toggle").toggleClass("is-open")})).on("click",".menu-mobile__link--burger",(function(t){var e;return t.preventDefault(),t.stopPropagation(),(e=o(this)).closest(".menu-mobile__item").toggleClass("is-open"),e.closest(".header").find(".menu-primary").toggleClass("is-open"),e.closest(".header").find(".header__search").removeClass("is-open")}))}}},function(e,n){!function(e,n){"use strict";function o(t){this.callback=t,this.ticking=!1}function i(t){return t&&void 0!==e&&(t===e||t.nodeType)}function r(e){if(arguments.length<=0)throw new Error("Missing arguments in extend function");var n,o,s=e||{};for(o=1;o<arguments.length;o++){var a=arguments[o]||{};for(n in a)"object"!=t(s[n])||i(s[n])?s[n]=s[n]||a[n]:s[n]=r(s[n],a[n])}return s}function s(t,e){e=r(e,s.options),this.lastKnownScrollY=0,this.elem=t,this.debouncer=new o(this.update.bind(this)),this.tolerance=function(t){return t===Object(t)?t:{down:t,up:t}}(e.tolerance),this.classes=e.classes,this.offset=e.offset,this.scroller=e.scroller,this.initialised=!1,this.onPin=e.onPin,this.onUnpin=e.onUnpin,this.onTop=e.onTop,this.onNotTop=e.onNotTop}var a={bind:!!function(){}.bind,classList:"classList"in n.documentElement,rAF:!!(e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame)};e.requestAnimationFrame=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame,o.prototype={constructor:o,update:function(){this.callback&&this.callback(),this.ticking=!1},requestTick:function(){this.ticking||(requestAnimationFrame(this.rafCallback||(this.rafCallback=this.update.bind(this))),this.ticking=!0)},handleEvent:function(){this.requestTick()}},s.prototype={constructor:s,init:function(){if(s.cutsTheMustard)return this.elem.classList.add(this.classes.initial),setTimeout(this.attachEvent.bind(this),100),this},destroy:function(){var t=this.classes;this.initialised=!1,this.elem.classList.remove(t.unpinned,t.pinned,t.top,t.initial),this.scroller.removeEventListener("scroll",this.debouncer,!1)},attachEvent:function(){this.initialised||(this.lastKnownScrollY=this.getScrollY(),this.initialised=!0,this.scroller.addEventListener("scroll",this.debouncer,!1),this.debouncer.handleEvent())},unpin:function(){var t=this.elem.classList,e=this.classes;!t.contains(e.pinned)&&t.contains(e.unpinned)||(t.add(e.unpinned),t.remove(e.pinned),this.onUnpin&&this.onUnpin.call(this))},pin:function(){var t=this.elem.classList,e=this.classes;t.contains(e.unpinned)&&(t.remove(e.unpinned),t.add(e.pinned),this.onPin&&this.onPin.call(this))},top:function(){var t=this.elem.classList,e=this.classes;t.contains(e.top)||(t.add(e.top),t.remove(e.notTop),this.onTop&&this.onTop.call(this))},notTop:function(){var t=this.elem.classList,e=this.classes;t.contains(e.notTop)||(t.add(e.notTop),t.remove(e.top),this.onNotTop&&this.onNotTop.call(this))},getScrollY:function(){return void 0!==this.scroller.pageYOffset?this.scroller.pageYOffset:void 0!==this.scroller.scrollTop?this.scroller.scrollTop:(n.documentElement||n.body.parentNode||n.body).scrollTop},getViewportHeight:function(){return e.innerHeight||n.documentElement.clientHeight||n.body.clientHeight},getDocumentHeight:function(){var t=n.body,e=n.documentElement;return Math.max(t.scrollHeight,e.scrollHeight,t.offsetHeight,e.offsetHeight,t.clientHeight,e.clientHeight)},getElementHeight:function(t){return Math.max(t.scrollHeight,t.offsetHeight,t.clientHeight)},getScrollerHeight:function(){return this.scroller===e||this.scroller===n.body?this.getDocumentHeight():this.getElementHeight(this.scroller)},isOutOfBounds:function(t){var e=t<0,n=t+this.getViewportHeight()>this.getScrollerHeight();return e||n},toleranceExceeded:function(t,e){return Math.abs(t-this.lastKnownScrollY)>=this.tolerance[e]},shouldUnpin:function(t,e){var n=t>this.lastKnownScrollY,o=t>=this.offset;return n&&o&&e},shouldPin:function(t,e){var n=t<this.lastKnownScrollY,o=t<=this.offset;return n&&e||o},update:function(){var t=this.getScrollY(),e=t>this.lastKnownScrollY?"down":"up",n=this.toleranceExceeded(t,e);this.isOutOfBounds(t)||(t<=this.offset?this.top():this.notTop(),this.shouldUnpin(t,n)?this.unpin():this.shouldPin(t,n)&&this.pin(),this.lastKnownScrollY=t)}},s.options={tolerance:{up:0,down:0},offset:0,scroller:e,classes:{pinned:"headroom--pinned",unpinned:"headroom--unpinned",top:"headroom--top",notTop:"headroom--not-top",initial:"headroom"}},s.cutsTheMustard=void 0!==a&&a.rAF&&a.bind&&a.classList,e.Headroom=s}(window,document)},function(t,e){!function(t){"use strict";function e(e){var n=t(e),o=t(":focus"),i=0;if(1===o.length){var r=n.index(o);r+1<n.length&&(i=r+1)}n.eq(i).focus()}function n(e){var n=t(e),o=t(":focus"),i=n.length-1;if(1===o.length){var r=n.index(o);r>0&&(i=r-1)}n.eq(i).focus()}function o(e){function n(e){return t.expr.filters.visible(e)&&!t(e).parents().addBack().filter((function(){return"hidden"===t.css(this,"visibility")})).length}var o,i,r,s=e.nodeName.toLowerCase(),a=!isNaN(t.attr(e,"tabindex"));return"area"===s?(i=(o=e.parentNode).name,!(!e.href||!i||"map"!==o.nodeName.toLowerCase())&&(!!(r=t("img[usemap=#"+i+"]")[0])&&n(r))):(/input|select|textarea|button|object/.test(s)?!e.disabled:"a"===s&&e.href||a)&&n(e)}t.focusNext=function(){e(":focusable")},t.focusPrev=function(){n(":focusable")},t.tabNext=function(){e(":tabbable")},t.tabPrev=function(){n(":tabbable")},t.extend(t.expr[":"],{data:t.expr.createPseudo?t.expr.createPseudo((function(e){return function(n){return!!t.data(n,e)}})):function(e,n,o){return!!t.data(e,o[3])},focusable:function(e){return o(e,isNaN(t.attr(e,"tabindex")))},tabbable:function(e){var n=t.attr(e,"tabindex"),i=isNaN(n);return(i||n>=0)&&o(e)}})}(jQuery)},function(t,e,n){var o;o=n(3),t.exports={init:function(t){var e;return o("html").hasClass("touch"),e=o(window),o(document),o(".menu-primary").each((function(){var t,n,i,r,s,a,l,c,d,u;return(t=o(this)).find(".menu-primary__title"),i=t.find(".menu-primary__wrap"),(s=t.find(".menu-primary__main-toggle")).html(i.html()),n=i.find(" > ul > li"),r=s.find(" > ul > li"),100,c=null,d=null,u=function(){c=n.map((function(){return o(this).outerWidth(!0)})).get(),d=c.reduce((function(t,e,n,o){var i;return i=n>0?t[n-1]:0,t.push(i+e),t}),[])},l=function(t,e){return e.filter((function(e){return e<t})).length},a=function(){var e,o,s;return window.matchMedia("(max-width: 767px)").matches?(o=0,s=!0):(e=i.outerWidth(),(s=(o=l(e,d))<n.length)&&(o=l(e-100,d))),t.toggleClass("has-toggle",s),s||t.removeClass("is-open"),n.slice(0,o).css("display",""),n.slice(o).css("display","none"),r.slice(0,o).css("display","none"),r.slice(o).css("display","")},u(),a(),e.on("load",(function(){return u(),a()})).on("resize",(function(){return a()})),t.css("visibility","visible"),s.addClass("js-ready")}))}}},function(t,e,n){var o;o=n(3),t.exports={init:function(){return o(document).on("click","[data-dropdown]",(function(t){var e,n;return t.preventDefault(),e=(n=o(t.target)).closest(".ins-dropdown"),n.toggleClass("is-active"),e.toggleClass("is-opened")})).on("click",(function(t){var e,n,i,r;return i=(e=o(t.target).closest(".ins-dropdown")).find("[data-dropdown]"),r=(n=o(".ins-dropdown")).find("[data-dropdown]"),n.not(e).removeClass("is-opened"),r.not(i).removeClass("is-active")}))}}},function(t,e,n){var o;o=n(3),t.exports={init:function(){return o(document).on("touchstart",".box-rotate",(function(t){return o(this).toggleClass("hover")}))}}},function(t,e,n){var o;o=n(3),t.exports={init:function(t){var e;return(e=t.$target).find(".box-showmore--partial").each((function(){var t;if((t=o(this)).get(0).scrollHeight<=250)return t.addClass("is-open"),t.css("height","auto"),e.find(".btn-showmore[href=#"+t.attr("id")+"]").css("display","none")})),e.on("click",".btn-showmore",(function(t){var e,n;return t.preventDefault(),n=o(this),(e=o(n.attr("href"))).hasClass("is-open")?(e.removeClass("is-open"),e.addClass("is-opening"),e.css("height",e.get(0).scrollHeight),e.animate({height:e.hasClass("box-showmore--partial")?250:0},400,"swing",(function(){return n.removeClass("is-open")}))):(e.addClass("is-opening"),e.animate({height:e.get(0).scrollHeight},400,"swing",(function(){return e.addClass("is-open"),e.removeClass("is-opening"),e.css("height",""),n.addClass("is-open")})))}))}}},function(t,e,n){var o;o=n(3),n(18),t.exports={init:function(t){var e,n;return n={byRow:!0,property:"min-height",target:null,remove:!1},(e=t.$target).find(".box-grid__inner").matchHeight(n),e.find(".box-event").not(".box-event--side").find(".box-event__content").matchHeight(n),e.find(".match-height").matchHeight(n),e.find(".crossroad-std").each((function(){return o(this).find(".box-category").matchHeight()}))}}},function(e,n,o){var i,r,s;!function(a){"use strict";r=[o(3)],i=function(e){var n=-1,o=-1,i=function(t){return parseFloat(t)||0},r=function(t){var n=1,o=e(t),r=null,s=[];return o.each((function(){var t=e(this),o=t.offset().top-i(t.css("margin-top")),a=s.length>0?s[s.length-1]:null;null===a?s.push(t):Math.floor(Math.abs(r-o))<=n?s[s.length-1]=a.add(t):s.push(t),r=o})),s},s=function(n){var o={byRow:!0,property:"height",target:null,remove:!1};return"object"==t(n)?e.extend(o,n):("boolean"==typeof n?o.byRow=n:"remove"===n&&(o.remove=!0),o)},a=e.fn.matchHeight=function(t){var n=s(t);if(n.remove){var o=this;return this.css(n.property,""),e.each(a._groups,(function(t,e){e.elements=e.elements.not(o)})),this}return this.length<=1&&!n.target||(a._groups.push({elements:this,options:n}),a._apply(this,n)),this};a.version="0.7.0",a._groups=[],a._throttle=80,a._maintainScroll=!1,a._beforeUpdate=null,a._afterUpdate=null,a._rows=r,a._parse=i,a._parseOptions=s,a._apply=function(t,n){var o=s(n),l=e(t),c=[l],d=e(window).scrollTop(),u=e("html").outerHeight(!0),p=l.parents().filter(":hidden");return p.each((function(){var t=e(this);t.data("style-cache",t.attr("style"))})),p.css("display","block"),o.byRow&&!o.target&&(l.each((function(){var t=e(this),n=t.css("display");"inline-block"!==n&&"flex"!==n&&"inline-flex"!==n&&(n="block"),t.data("style-cache",t.attr("style")),t.css({display:n,"padding-top":"0","padding-bottom":"0","margin-top":"0","margin-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px",overflow:"hidden"})})),c=r(l),l.each((function(){var t=e(this);t.attr("style",t.data("style-cache")||"")}))),e.each(c,(function(t,n){var r=e(n),s=0;if(o.target)s=o.target.outerHeight(!1);else{if(o.byRow&&r.length<=1)return void r.css(o.property,"");r.each((function(){var t=e(this),n=t.attr("style"),i=t.css("display");"inline-block"!==i&&"flex"!==i&&"inline-flex"!==i&&(i="block");var r={display:i};r[o.property]="",t.css(r),t.outerHeight(!1)>s&&(s=t.outerHeight(!1)),n?t.attr("style",n):t.css("display","")}))}r.each((function(){var t=e(this),n=0;o.target&&t.is(o.target)||("border-box"!==t.css("box-sizing")&&(n+=i(t.css("border-top-width"))+i(t.css("border-bottom-width")),n+=i(t.css("padding-top"))+i(t.css("padding-bottom"))),t.css(o.property,s-n+"px"))}))})),p.each((function(){var t=e(this);t.attr("style",t.data("style-cache")||null)})),a._maintainScroll&&e(window).scrollTop(d/u*e("html").outerHeight(!0)),this},a._applyDataApi=function(){var t={};e("[data-match-height], [data-mh]").each((function(){var n=e(this),o=n.attr("data-mh")||n.attr("data-match-height");t[o]=o in t?t[o].add(n):n})),e.each(t,(function(){this.matchHeight(!0)}))};var l=function(t){a._beforeUpdate&&a._beforeUpdate(t,a._groups),e.each(a._groups,(function(){a._apply(this.elements,this.options)})),a._afterUpdate&&a._afterUpdate(t,a._groups)};a._update=function(t,i){if(i&&"resize"===i.type){var r=e(window).width();if(r===n)return;n=r}t?-1===o&&(o=setTimeout((function(){l(i),o=-1}),a._throttle)):l(i)},e(a._applyDataApi),e(window).bind("load",(function(t){a._update(!1,t)})),e(window).bind("resize orientationchange",(function(t){a._update(!0,t)}))},void 0===(s="function"==typeof i?i.apply(n,r):i)||(e.exports=s)}()},function(t,e,n){var o;o=n(3),n(20),t.exports={init:function(t){var e;return(e=t.$target).find(".js-select").selectize({copyClassesToDropdown:!1,onChange:function(t){if(/[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&\/\/=]*)/.test(t))return window.location.href=t}}),e.find(".js-suggest").each((function(){var t,e,n;return t=o(this),e=t.data("suggest"),n=[{name:"Kategorie",id:"category"},{name:"Textové výsledky",id:"item"}],t.selectize({copyClassesToDropdown:!1,plugins:["restore_on_backspace"],maxItems:1,valueField:"value",labelField:"text",searchField:["text"],optgroupField:"field",optgroupValueField:"id",optgroupLabelField:"name",preload:!0,options:[],optgroups:null!=e.optgroups?e.optgroups:n,create:!0,persist:!1,render:{option_create:function(t,e){return'<div class="create">Vyhledat <strong>'+e(t.input)+"</strong>&hellip;</div>"},optgroup:function(t,e){return'<div class="optgroup'+("category"===t.id?" optgroup-category":"")+'">'+t.html+"</div>"},optgroup_header:function(t,e){return'<div class="optgroup-header">'+e(t.name)+"</div>"},option:function(t,e){return"<div>"+e(t.text)+"</div>"}},load:function(t,n){return o.ajax({url:e.url+"?"+encodeURIComponent(t),type:"GET",success:function(t){return n(JSON.parse(t))}})},onChange:function(e){return t[0].form.submit()}})}))}}},function(e,n,o){var i,r,s;r=[o(3),o(21),o(22)],i=function(e,n,o){"use strict";var i=function(t,e){if("string"!=typeof e||e.length){var n="string"==typeof e?new RegExp(e,"i"):e,o=function t(e){var o=0;if(3===e.nodeType){var i=e.data.search(n);if(i>=0&&e.data.length>0){var r=e.data.match(n),s=document.createElement("span");s.className="highlight";var a=e.splitText(i),l=(a.splitText(r[0].length),a.cloneNode(!0));s.appendChild(l),a.parentNode.replaceChild(s,a),o=1}}else if(1===e.nodeType&&e.childNodes&&!/(script|style)/i.test(e.tagName)&&("highlight"!==e.className||"SPAN"!==e.tagName))for(var c=0;c<e.childNodes.length;++c)c+=t(e.childNodes[c]);return o};return t.each((function(){o(this)}))}};e.fn.removeHighlight=function(){return this.find("span.highlight").each((function(){this.parentNode.firstChild.nodeName;var t=this.parentNode;t.replaceChild(this.firstChild,this),t.normalize()})).end()};var r=function(){};r.prototype={on:function(t,e){this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(e)},off:function(t,e){var n=arguments.length;return 0===n?delete this._events:1===n?delete this._events[t]:(this._events=this._events||{},void(t in this._events!=0&&this._events[t].splice(this._events[t].indexOf(e),1)))},trigger:function(t){if(this._events=this._events||{},t in this._events!=0)for(var e=0;e<this._events[t].length;e++)this._events[t][e].apply(this,Array.prototype.slice.call(arguments,1))}},r.mixin=function(t){for(var e=["on","off","trigger"],n=0;n<e.length;n++)t.prototype[e[n]]=r.prototype[e[n]]};var s=/Mac/.test(navigator.userAgent),a=65,l=13,c=27,d=37,u=38,p=80,f=39,h=40,g=78,m=8,v=46,y=16,b=s?91:17,w=s?18:17,x=9,C=1,T=2,k=!/android/i.test(window.navigator.userAgent)&&!!document.createElement("input").validity,S=function(t){return void 0!==t},$=function(t){return null==t?null:"boolean"==typeof t?t?"1":"0":t+""},_=function(t){return(t+"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")},E={before:function(t,e,n){var o=t[e];t[e]=function(){return n.apply(t,arguments),o.apply(t,arguments)}},after:function(t,e,n){var o=t[e];t[e]=function(){var e=o.apply(t,arguments);return n.apply(t,arguments),e}}},O=function(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}},A=function(t,e){var n;return function(){var o=this,i=arguments;window.clearTimeout(n),n=window.setTimeout((function(){t.apply(o,i)}),e)}},P=function(t,e,n){var o,i=t.trigger,r={};for(o in t.trigger=function(){var n=arguments[0];return-1===e.indexOf(n)?i.apply(t,arguments):void(r[n]=arguments)},n.apply(t,[]),t.trigger=i,r)r.hasOwnProperty(o)&&i.apply(t,r[o])},I=function(t,e,n,o){t.on(e,n,(function(e){for(var n=e.target;n&&n.parentNode!==t[0];)n=n.parentNode;return e.currentTarget=n,o.apply(this,[e])}))},D=function(t){var e={};if("selectionStart"in t)e.start=t.selectionStart,e.length=t.selectionEnd-e.start;else if(document.selection){t.focus();var n=document.selection.createRange(),o=document.selection.createRange().text.length;n.moveStart("character",-t.value.length),e.start=n.text.length-o,e.length=o}return e},L=function(t,e,n){var o,i,r={};if(n)for(o=0,i=n.length;o<i;o++)r[n[o]]=t.css(n[o]);else r=t.css();e.css(r)},z=function(t,n){return t?(F.$testInput||(F.$testInput=e("<span />").css({position:"absolute",top:-99999,left:-99999,width:"auto",padding:0,whiteSpace:"pre"}).appendTo("body")),F.$testInput.text(t),L(n,F.$testInput,["letterSpacing","fontSize","fontFamily","fontWeight","textTransform"]),F.$testInput.width()):0},j=function(t){var e=null,n=function(n,o){var i,r,s,a,l,c,d,u;o=o||{},(n=n||window.event||{}).metaKey||n.altKey||(o.force||!1!==t.data("grow"))&&(i=t.val(),n.type&&"keydown"===n.type.toLowerCase()&&(s=(r=n.keyCode)>=48&&r<=57||r>=65&&r<=90||r>=96&&r<=111||r>=186&&r<=222||32===r,r===v||r===m?(u=D(t[0])).length?i=i.substring(0,u.start)+i.substring(u.start+u.length):r===m&&u.start?i=i.substring(0,u.start-1)+i.substring(u.start+1):r===v&&void 0!==u.start&&(i=i.substring(0,u.start)+i.substring(u.start+1)):s&&(c=n.shiftKey,d=String.fromCharCode(n.keyCode),i+=d=c?d.toUpperCase():d.toLowerCase())),a=t.attr("placeholder"),!i&&a&&(i=a),(l=z(i,t)+4)!==e&&(e=l,t.width(l),t.triggerHandler("resize")))};t.on("keydown keyup update blur",n),n()},N=function(t){var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML},M=function(t,e){e||(e={}),e.explanation&&(console.group,console.group)},F=function t(o,i){var r,s,a,l,c=this;(l=o[0]).selectize=c;var d=window.getComputedStyle&&window.getComputedStyle(l,null);if(a=(a=d?d.getPropertyValue("direction"):l.currentStyle&&l.currentStyle.direction)||o.parents("[dir]:first").attr("dir")||"",e.extend(c,{order:0,settings:i,$input:o,tabIndex:o.attr("tabindex")||"",tagType:"select"===l.tagName.toLowerCase()?C:T,rtl:/rtl/i.test(a),eventNS:".selectize"+ ++t.count,highlightedValue:null,isBlurring:!1,isOpen:!1,isDisabled:!1,isRequired:o.is("[required]"),isInvalid:!1,isLocked:!1,isFocused:!1,isInputHidden:!1,isSetup:!1,isShiftDown:!1,isCmdDown:!1,isCtrlDown:!1,ignoreFocus:!1,ignoreBlur:!1,ignoreHover:!1,hasOptions:!1,currentResults:null,lastValue:"",caretPos:0,loading:0,loadedSearches:{},$activeOption:null,$activeItems:[],optgroups:{},options:{},userOptions:{},items:[],renderCache:{},onSearchChange:null===i.loadThrottle?c.onSearchChange:A(c.onSearchChange,i.loadThrottle)}),c.sifter=new n(this.options,{diacritics:i.diacritics}),c.settings.options){for(r=0,s=c.settings.options.length;r<s;r++)c.registerOption(c.settings.options[r]);delete c.settings.options}if(c.settings.optgroups){for(r=0,s=c.settings.optgroups.length;r<s;r++)c.registerOptionGroup(c.settings.optgroups[r]);delete c.settings.optgroups}c.settings.mode=c.settings.mode||(1===c.settings.maxItems?"single":"multi"),"boolean"!=typeof c.settings.hideSelected&&(c.settings.hideSelected="multi"===c.settings.mode),c.initializePlugins(c.settings.plugins),c.setupCallbacks(),c.setupTemplates(),c.setup()};return r.mixin(F),void 0!==o?o.mixin(F):M("Dependency MicroPlugin is missing",{explanation:'Make sure you either: (1) are using the "standalone" version of Selectize, or (2) require MicroPlugin before you load Selectize.'}),e.extend(F.prototype,{setup:function(){var t,n,o,i,r,a,l,c,d,u,p=this,f=p.settings,h=p.eventNS,g=e(window),m=e(document),v=p.$input;if(l=p.settings.mode,c=v.attr("class")||"",t=e("<div>").addClass(f.wrapperClass).addClass(c).addClass(l),n=e("<div>").addClass(f.inputClass).addClass("items").appendTo(t),o=e('<input type="text" autocomplete="off" />').appendTo(n).attr("tabindex",v.is(":disabled")?"-1":p.tabIndex),a=e(f.dropdownParent||t),i=e("<div>").addClass(f.dropdownClass).addClass(l).hide().appendTo(a),r=e("<div>").addClass(f.dropdownContentClass).appendTo(i),(u=v.attr("id"))&&(o.attr("id",u+"-selectized"),e("label[for='"+u+"']").attr("for",u+"-selectized")),p.settings.copyClassesToDropdown&&i.addClass(c),t.css({width:v[0].style.width}),p.plugins.names.length&&(d="plugin-"+p.plugins.names.join(" plugin-"),t.addClass(d),i.addClass(d)),(null===f.maxItems||f.maxItems>1)&&p.tagType===C&&v.attr("multiple","multiple"),p.settings.placeholder&&o.attr("placeholder",f.placeholder),!p.settings.splitOn&&p.settings.delimiter){var x=p.settings.delimiter.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");p.settings.splitOn=new RegExp("\\s*"+x+"+\\s*")}v.attr("autocorrect")&&o.attr("autocorrect",v.attr("autocorrect")),v.attr("autocapitalize")&&o.attr("autocapitalize",v.attr("autocapitalize")),o[0].type=v[0].type,p.$wrapper=t,p.$control=n,p.$control_input=o,p.$dropdown=i,p.$dropdown_content=r,i.on("mouseenter mousedown click","[data-disabled]>[data-selectable]",(function(t){t.stopImmediatePropagation()})),i.on("mouseenter","[data-selectable]",(function(){return p.onOptionHover.apply(p,arguments)})),i.on("mousedown click","[data-selectable]",(function(){return p.onOptionSelect.apply(p,arguments)})),I(n,"mousedown","*:not(input)",(function(){return p.onItemSelect.apply(p,arguments)})),j(o),n.on({mousedown:function(){return p.onMouseDown.apply(p,arguments)},click:function(){return p.onClick.apply(p,arguments)}}),o.on({mousedown:function(t){t.stopPropagation()},keydown:function(){return p.onKeyDown.apply(p,arguments)},keyup:function(){return p.onKeyUp.apply(p,arguments)},keypress:function(){return p.onKeyPress.apply(p,arguments)},resize:function(){p.positionDropdown.apply(p,[])},blur:function(){return p.onBlur.apply(p,arguments)},focus:function(){return p.ignoreBlur=!1,p.onFocus.apply(p,arguments)},paste:function(){return p.onPaste.apply(p,arguments)}}),m.on("keydown"+h,(function(t){p.isCmdDown=t[s?"metaKey":"ctrlKey"],p.isCtrlDown=t[s?"altKey":"ctrlKey"],p.isShiftDown=t.shiftKey})),m.on("keyup"+h,(function(t){t.keyCode===w&&(p.isCtrlDown=!1),t.keyCode===y&&(p.isShiftDown=!1),t.keyCode===b&&(p.isCmdDown=!1)})),m.on("mousedown"+h,(function(t){if(p.isFocused){if(t.target===p.$dropdown[0]||t.target.parentNode===p.$dropdown[0])return!1;p.$control.has(t.target).length||t.target===p.$control[0]||p.blur(t.target)}})),g.on(["scroll"+h,"resize"+h].join(" "),(function(){p.isOpen&&p.positionDropdown.apply(p,arguments)})),g.on("mousemove"+h,(function(){p.ignoreHover=!1})),this.revertSettings={$children:v.children().detach(),tabindex:v.attr("tabindex")},v.attr("tabindex",-1).hide().after(p.$wrapper),e.isArray(f.items)&&(p.setValue(f.items),delete f.items),k&&v.on("invalid"+h,(function(t){t.preventDefault(),p.isInvalid=!0,p.refreshState()})),p.updateOriginalInput(),p.refreshItems(),p.refreshState(),p.updatePlaceholder(),p.isSetup=!0,v.is(":disabled")&&p.disable(),p.on("change",this.onChange),v.data("selectize",p),v.addClass("selectized"),p.trigger("initialize"),!0===f.preload&&p.onSearchChange("")},setupTemplates:function(){var t=this,n=t.settings.labelField,o=t.settings.optgroupLabelField,i={optgroup:function(t){return'<div class="optgroup">'+t.html+"</div>"},optgroup_header:function(t,e){return'<div class="optgroup-header">'+e(t[o])+"</div>"},option:function(t,e){return'<div class="option">'+e(t[n])+"</div>"},item:function(t,e){return'<div class="item">'+e(t[n])+"</div>"},option_create:function(t,e){return'<div class="create">Add <strong>'+e(t.input)+"</strong>&hellip;</div>"}};t.settings.render=e.extend({},i,t.settings.render)},setupCallbacks:function(){var t,e,n={initialize:"onInitialize",change:"onChange",item_add:"onItemAdd",item_remove:"onItemRemove",clear:"onClear",option_add:"onOptionAdd",option_remove:"onOptionRemove",option_clear:"onOptionClear",optgroup_add:"onOptionGroupAdd",optgroup_remove:"onOptionGroupRemove",optgroup_clear:"onOptionGroupClear",dropdown_open:"onDropdownOpen",dropdown_close:"onDropdownClose",type:"onType",load:"onLoad",focus:"onFocus",blur:"onBlur"};for(t in n)n.hasOwnProperty(t)&&(e=this.settings[n[t]])&&this.on(t,e)},onClick:function(t){var e=this;e.isFocused&&e.isOpen||(e.focus(),t.preventDefault())},onMouseDown:function(t){var n=this,o=t.isDefaultPrevented();if(e(t.target),n.isFocused){if(t.target!==n.$control_input[0])return"single"===n.settings.mode?n.isOpen?n.close():n.open():o||n.setActiveItem(null),!1}else o||window.setTimeout((function(){n.focus()}),0)},onChange:function(){this.$input.trigger("change")},onPaste:function(t){var n=this;return n.isFull()||n.isInputHidden||n.isLocked?void t.preventDefault():void(n.settings.splitOn&&setTimeout((function(){var t=n.$control_input.val();if(t.match(n.settings.splitOn))for(var o=e.trim(t).split(n.settings.splitOn),i=0,r=o.length;i<r;i++)n.createItem(o[i])}),0))},onKeyPress:function(t){if(this.isLocked)return t&&t.preventDefault();var e=String.fromCharCode(t.keyCode||t.which);return this.settings.create&&"multi"===this.settings.mode&&e===this.settings.delimiter?(this.createItem(),t.preventDefault(),!1):void 0},onKeyDown:function(t){var e=(t.target,this.$control_input[0],this);if(!e.isLocked){switch(t.keyCode){case a:if(e.isCmdDown)return void e.selectAll();break;case c:return void(e.isOpen&&(t.preventDefault(),t.stopPropagation(),e.close()));case g:if(!t.ctrlKey||t.altKey)break;case h:if(!e.isOpen&&e.hasOptions)e.open();else if(e.$activeOption){e.ignoreHover=!0;var n=e.getAdjacentOption(e.$activeOption,1);n.length&&e.setActiveOption(n,!0,!0)}return void t.preventDefault();case p:if(!t.ctrlKey||t.altKey)break;case u:if(e.$activeOption){e.ignoreHover=!0;var o=e.getAdjacentOption(e.$activeOption,-1);o.length&&e.setActiveOption(o,!0,!0)}return void t.preventDefault();case l:return void(e.isOpen&&e.$activeOption&&(e.onOptionSelect({currentTarget:e.$activeOption}),t.preventDefault()));case d:return void e.advanceSelection(-1,t);case f:return void e.advanceSelection(1,t);case x:return e.settings.selectOnTab&&e.isOpen&&e.$activeOption&&(e.onOptionSelect({currentTarget:e.$activeOption}),e.isFull()||t.preventDefault()),void(e.settings.create&&e.createItem()&&t.preventDefault());case m:case v:return void e.deleteSelection(t)}return!e.isFull()&&!e.isInputHidden||(s?t.metaKey:t.ctrlKey)?void 0:void t.preventDefault()}t.keyCode!==x&&t.preventDefault()},onKeyUp:function(t){var e=this;if(e.isLocked)return t&&t.preventDefault();var n=e.$control_input.val()||"";e.lastValue!==n&&(e.lastValue=n,e.onSearchChange(n),e.refreshOptions(),e.trigger("type",n))},onSearchChange:function(t){var e=this,n=e.settings.load;n&&(e.loadedSearches.hasOwnProperty(t)||(e.loadedSearches[t]=!0,e.load((function(o){n.apply(e,[t,o])}))))},onFocus:function(t){var e=this,n=e.isFocused;return e.isDisabled?(e.blur(),t&&t.preventDefault(),!1):void(e.ignoreFocus||(e.isFocused=!0,"focus"===e.settings.preload&&e.onSearchChange(""),n||e.trigger("focus"),e.$activeItems.length||(e.showInput(),e.setActiveItem(null),e.refreshOptions(!!e.settings.openOnFocus)),e.refreshState()))},onBlur:function(t,e){var n=this;if(n.isFocused&&(n.isFocused=!1,!n.ignoreFocus)){if(!n.ignoreBlur&&document.activeElement===n.$dropdown_content[0])return n.ignoreBlur=!0,void n.onFocus(t);var o=function(){n.close(),n.setTextboxValue(""),n.setActiveItem(null),n.setActiveOption(null),n.setCaret(n.items.length),n.refreshState(),e&&e.focus&&e.focus(),n.isBlurring=!1,n.ignoreFocus=!1,n.trigger("blur")};n.isBlurring=!0,n.ignoreFocus=!0,n.settings.create&&n.settings.createOnBlur?n.createItem(null,!1,o):o()}},onOptionHover:function(t){this.ignoreHover||this.setActiveOption(t.currentTarget,!1)},onOptionSelect:function(t){var n,o,i=this;t.preventDefault&&(t.preventDefault(),t.stopPropagation()),(o=e(t.currentTarget)).hasClass("create")?i.createItem(null,(function(){i.settings.closeAfterSelect&&i.close()})):void 0!==(n=o.attr("data-value"))&&(i.lastQuery=null,i.setTextboxValue(""),i.addItem(n),i.settings.closeAfterSelect?i.close():!i.settings.hideSelected&&t.type&&/mouse/.test(t.type)&&i.setActiveOption(i.getOption(n)))},onItemSelect:function(t){var e=this;e.isLocked||"multi"===e.settings.mode&&(t.preventDefault(),e.setActiveItem(t.currentTarget,t))},load:function(t){var e=this,n=e.$wrapper.addClass(e.settings.loadingClass);e.loading++,t.apply(e,[function(t){e.loading=Math.max(e.loading-1,0),t&&t.length&&(e.addOption(t),e.refreshOptions(e.isFocused&&!e.isInputHidden)),e.loading||n.removeClass(e.settings.loadingClass),e.trigger("load",t)}])},setTextboxValue:function(t){var e=this.$control_input;e.val()!==t&&(e.val(t).triggerHandler("update"),this.lastValue=t)},getValue:function(){return this.tagType===C&&this.$input.attr("multiple")?this.items:this.items.join(this.settings.delimiter)},setValue:function(t,e){P(this,e?[]:["change"],(function(){this.clear(e),this.addItems(t,e)}))},setActiveItem:function(t,n){var o,i,r,s,a,l,c,d,u=this;if("single"!==u.settings.mode){if(!(t=e(t)).length)return e(u.$activeItems).removeClass("active"),u.$activeItems=[],void(u.isFocused&&u.showInput());if("mousedown"===(o=n&&n.type.toLowerCase())&&u.isShiftDown&&u.$activeItems.length){for(d=u.$control.children(".active:last"),(s=Array.prototype.indexOf.apply(u.$control[0].childNodes,[d[0]]))>(a=Array.prototype.indexOf.apply(u.$control[0].childNodes,[t[0]]))&&(c=s,s=a,a=c),i=s;i<=a;i++)l=u.$control[0].childNodes[i],-1===u.$activeItems.indexOf(l)&&(e(l).addClass("active"),u.$activeItems.push(l));n.preventDefault()}else"mousedown"===o&&u.isCtrlDown||"keydown"===o&&this.isShiftDown?t.hasClass("active")?(r=u.$activeItems.indexOf(t[0]),u.$activeItems.splice(r,1),t.removeClass("active")):u.$activeItems.push(t.addClass("active")[0]):(e(u.$activeItems).removeClass("active"),u.$activeItems=[t.addClass("active")[0]]);u.hideInput(),this.isFocused||u.focus()}},setActiveOption:function(t,n,o){var i,r,s,a,l,c=this;c.$activeOption&&c.$activeOption.removeClass("active"),c.$activeOption=null,(t=e(t)).length&&(c.$activeOption=t.addClass("active"),!n&&S(n)||(i=c.$dropdown_content.height(),r=c.$activeOption.outerHeight(!0),n=c.$dropdown_content.scrollTop()||0,a=s=c.$activeOption.offset().top-c.$dropdown_content.offset().top+n,l=s-i+r,s+r>i+n?c.$dropdown_content.stop().animate({scrollTop:l},o?c.settings.scrollDuration:0):s<n&&c.$dropdown_content.stop().animate({scrollTop:a},o?c.settings.scrollDuration:0)))},selectAll:function(){var t=this;"single"!==t.settings.mode&&(t.$activeItems=Array.prototype.slice.apply(t.$control.children(":not(input)").addClass("active")),t.$activeItems.length&&(t.hideInput(),t.close()),t.focus())},hideInput:function(){var t=this;t.setTextboxValue(""),t.$control_input.css({opacity:0,position:"absolute",left:t.rtl?1e4:-1e4}),t.isInputHidden=!0},showInput:function(){this.$control_input.css({opacity:1,position:"relative",left:0}),this.isInputHidden=!1},focus:function(){var t=this;t.isDisabled||(t.ignoreFocus=!0,t.$control_input[0].focus(),window.setTimeout((function(){t.ignoreFocus=!1,t.onFocus()}),0))},blur:function(t){this.$control_input[0].blur(),this.onBlur(null,t)},getScoreFunction:function(t){return this.sifter.getScoreFunction(t,this.getSearchOptions())},getSearchOptions:function(){var t=this.settings,e=t.sortField;return"string"==typeof e&&(e=[{field:e}]),{fields:t.searchField,conjunction:t.searchConjunction,sort:e,nesting:t.nesting}},search:function(t){var n,o,i,r=this,s=r.settings,a=this.getSearchOptions();if(s.score&&"function"!=typeof(i=r.settings.score.apply(this,[t])))throw new Error('Selectize "score" setting must be a function that returns a function');if(t!==r.lastQuery?(r.lastQuery=t,o=r.sifter.search(t,e.extend(a,{score:i})),r.currentResults=o):o=e.extend(!0,{},r.currentResults),s.hideSelected)for(n=o.items.length-1;n>=0;n--)-1!==r.items.indexOf($(o.items[n].id))&&o.items.splice(n,1);return o},refreshOptions:function(t){var n,o,r,s,a,l,c,d,u,p,f,h,g,m,v,y;void 0===t&&(t=!0);var b=this,w=e.trim(b.$control_input.val()),x=b.search(w),C=b.$dropdown_content,T=b.$activeOption&&$(b.$activeOption.attr("data-value"));for(s=x.items.length,"number"==typeof b.settings.maxOptions&&(s=Math.min(s,b.settings.maxOptions)),a={},l=[],n=0;n<s;n++)for(c=b.options[x.items[n].id],d=b.render("option",c),u=c[b.settings.optgroupField]||"",o=0,r=(p=e.isArray(u)?u:[u])&&p.length;o<r;o++)u=p[o],b.optgroups.hasOwnProperty(u)||(u=""),a.hasOwnProperty(u)||(a[u]=document.createDocumentFragment(),l.push(u)),a[u].appendChild(d);for(this.settings.lockOptgroupOrder&&l.sort((function(t,e){return(b.optgroups[t].$order||0)-(b.optgroups[e].$order||0)})),f=document.createDocumentFragment(),n=0,s=l.length;n<s;n++)u=l[n],b.optgroups.hasOwnProperty(u)&&a[u].childNodes.length?((h=document.createDocumentFragment()).appendChild(b.render("optgroup_header",b.optgroups[u])),h.appendChild(a[u]),f.appendChild(b.render("optgroup",e.extend({},b.optgroups[u],{html:N(h),dom:h})))):f.appendChild(a[u]);if(C.html(f),b.settings.highlight&&(C.removeHighlight(),x.query.length&&x.tokens.length))for(n=0,s=x.tokens.length;n<s;n++)i(C,x.tokens[n].regex);if(!b.settings.hideSelected)for(n=0,s=b.items.length;n<s;n++)b.getOption(b.items[n]).addClass("selected");(g=b.canCreate(w))&&(C.prepend(b.render("option_create",{input:w})),y=e(C[0].childNodes[0])),b.hasOptions=x.items.length>0||g,b.hasOptions?(x.items.length>0?((v=T&&b.getOption(T))&&v.length?m=v:"single"===b.settings.mode&&b.items.length&&(m=b.getOption(b.items[0])),m&&m.length||(m=y&&!b.settings.addPrecedence?b.getAdjacentOption(y,1):C.find("[data-selectable]:first"))):m=y,b.setActiveOption(m),t&&!b.isOpen&&b.open()):(b.setActiveOption(null),t&&b.isOpen&&b.close())},addOption:function(t){var n,o,i,r=this;if(e.isArray(t))for(n=0,o=t.length;n<o;n++)r.addOption(t[n]);else(i=r.registerOption(t))&&(r.userOptions[i]=!0,r.lastQuery=null,r.trigger("option_add",i,t))},registerOption:function(t){var e=$(t[this.settings.valueField]);return null!=e&&!this.options.hasOwnProperty(e)&&(t.$order=t.$order||++this.order,this.options[e]=t,e)},registerOptionGroup:function(t){var e=$(t[this.settings.optgroupValueField]);return!!e&&(t.$order=t.$order||++this.order,this.optgroups[e]=t,e)},addOptionGroup:function(t,e){e[this.settings.optgroupValueField]=t,(t=this.registerOptionGroup(e))&&this.trigger("optgroup_add",t,e)},removeOptionGroup:function(t){this.optgroups.hasOwnProperty(t)&&(delete this.optgroups[t],this.renderCache={},this.trigger("optgroup_remove",t))},clearOptionGroups:function(){this.optgroups={},this.renderCache={},this.trigger("optgroup_clear")},updateOption:function(t,n){var o,i,r,s,a,l,c,d=this;if(t=$(t),r=$(n[d.settings.valueField]),null!==t&&d.options.hasOwnProperty(t)){if("string"!=typeof r)throw new Error("Value must be set in option data");c=d.options[t].$order,r!==t&&(delete d.options[t],-1!==(s=d.items.indexOf(t))&&d.items.splice(s,1,r)),n.$order=n.$order||c,d.options[r]=n,a=d.renderCache.item,l=d.renderCache.option,a&&(delete a[t],delete a[r]),l&&(delete l[t],delete l[r]),-1!==d.items.indexOf(r)&&(o=d.getItem(t),i=e(d.render("item",n)),o.hasClass("active")&&i.addClass("active"),o.replaceWith(i)),d.lastQuery=null,d.isOpen&&d.refreshOptions(!1)}},removeOption:function(t,e){var n=this;t=$(t);var o=n.renderCache.item,i=n.renderCache.option;o&&delete o[t],i&&delete i[t],delete n.userOptions[t],delete n.options[t],n.lastQuery=null,n.trigger("option_remove",t),n.removeItem(t,e)},clearOptions:function(){var t=this;t.loadedSearches={},t.userOptions={},t.renderCache={};var n=t.options;e.each(t.options,(function(e,o){-1==t.items.indexOf(e)&&delete n[e]})),t.options=t.sifter.items=n,t.lastQuery=null,t.trigger("option_clear")},getOption:function(t){return this.getElementWithValue(t,this.$dropdown_content.find("[data-selectable]"))},getAdjacentOption:function(t,n){var o=this.$dropdown.find("[data-selectable]"),i=o.index(t)+n;return i>=0&&i<o.length?o.eq(i):e()},getElementWithValue:function(t,n){if(null!=(t=$(t)))for(var o=0,i=n.length;o<i;o++)if(n[o].getAttribute("data-value")===t)return e(n[o]);return e()},getItem:function(t){return this.getElementWithValue(t,this.$control.children())},addItems:function(t,n){this.buffer=document.createDocumentFragment();for(var o=this.$control[0].childNodes,i=0;i<o.length;i++)this.buffer.appendChild(o[i]);for(var r=e.isArray(t)?t:[t],s=(i=0,r.length);i<s;i++)this.isPending=i<s-1,this.addItem(r[i],n);var a=this.$control[0];a.insertBefore(this.buffer,a.firstChild),this.buffer=null},addItem:function(t,n){P(this,n?[]:["change"],(function(){var o,i,r,s,a,l=this,c=l.settings.mode;return t=$(t),-1!==l.items.indexOf(t)?void("single"===c&&l.close()):void(l.options.hasOwnProperty(t)&&("single"===c&&l.clear(n),"multi"===c&&l.isFull()||(o=e(l.render("item",l.options[t])),a=l.isFull(),l.items.splice(l.caretPos,0,t),l.insertAtCaret(o),(!l.isPending||!a&&l.isFull())&&l.refreshState(),l.isSetup&&(r=l.$dropdown_content.find("[data-selectable]"),l.isPending||(i=l.getOption(t),s=l.getAdjacentOption(i,1).attr("data-value"),l.refreshOptions(l.isFocused&&"single"!==c),s&&l.setActiveOption(l.getOption(s))),!r.length||l.isFull()?l.close():l.isPending||l.positionDropdown(),l.updatePlaceholder(),l.trigger("item_add",t,o),l.isPending||l.updateOriginalInput({silent:n})))))}))},removeItem:function(t,n){var o,i,r,s=this;o=t instanceof e?t:s.getItem(t),t=$(o.attr("data-value")),-1!==(i=s.items.indexOf(t))&&(o.remove(),o.hasClass("active")&&(r=s.$activeItems.indexOf(o[0]),s.$activeItems.splice(r,1)),s.items.splice(i,1),s.lastQuery=null,!s.settings.persist&&s.userOptions.hasOwnProperty(t)&&s.removeOption(t,n),i<s.caretPos&&s.setCaret(s.caretPos-1),s.refreshState(),s.updatePlaceholder(),s.updateOriginalInput({silent:n}),s.positionDropdown(),s.trigger("item_remove",t,o))},createItem:function(n,o){var i=this,r=i.caretPos;n=n||e.trim(i.$control_input.val()||"");var s=arguments[arguments.length-1];if("function"!=typeof s&&(s=function(){}),"boolean"!=typeof o&&(o=!0),!i.canCreate(n))return s(),!1;i.lock();var a="function"==typeof i.settings.create?this.settings.create:function(t){var e={};return e[i.settings.labelField]=t,e[i.settings.valueField]=t,e},l=O((function(e){if(i.unlock(),!e||"object"!=t(e))return s();var n=$(e[i.settings.valueField]);return"string"!=typeof n?s():(i.setTextboxValue(""),i.addOption(e),i.setCaret(r),i.addItem(n),i.refreshOptions(o&&"single"!==i.settings.mode),void s(e))})),c=a.apply(this,[n,l]);return void 0!==c&&l(c),!0},refreshItems:function(){this.lastQuery=null,this.isSetup&&this.addItem(this.items),this.refreshState(),this.updateOriginalInput()},refreshState:function(){this.refreshValidityState(),this.refreshClasses()},refreshValidityState:function(){if(!this.isRequired)return!1;var t=!this.items.length;this.isInvalid=t,this.$control_input.prop("required",t),this.$input.prop("required",!t)},refreshClasses:function(){var t=this,n=t.isFull(),o=t.isLocked;t.$wrapper.toggleClass("rtl",t.rtl),t.$control.toggleClass("focus",t.isFocused).toggleClass("disabled",t.isDisabled).toggleClass("required",t.isRequired).toggleClass("invalid",t.isInvalid).toggleClass("locked",o).toggleClass("full",n).toggleClass("not-full",!n).toggleClass("input-active",t.isFocused&&!t.isInputHidden).toggleClass("dropdown-active",t.isOpen).toggleClass("has-options",!e.isEmptyObject(t.options)).toggleClass("has-items",t.items.length>0),t.$control_input.data("grow",!n&&!o)},isFull:function(){return null!==this.settings.maxItems&&this.items.length>=this.settings.maxItems},updateOriginalInput:function(t){var e,n,o,i,r=this;if(t=t||{},r.tagType===C){for(o=[],e=0,n=r.items.length;e<n;e++)i=r.options[r.items[e]][r.settings.labelField]||"",o.push('<option value="'+_(r.items[e])+'" selected="selected">'+_(i)+"</option>");o.length||this.$input.attr("multiple")||o.push('<option value="" selected="selected"></option>'),r.$input.html(o.join(""))}else r.$input.val(r.getValue()),r.$input.attr("value",r.$input.val());r.isSetup&&(t.silent||r.trigger("change",r.$input.val()))},updatePlaceholder:function(){if(this.settings.placeholder){var t=this.$control_input;this.items.length?t.removeAttr("placeholder"):t.attr("placeholder",this.settings.placeholder),t.triggerHandler("update",{force:!0})}},open:function(){var t=this;t.isLocked||t.isOpen||"multi"===t.settings.mode&&t.isFull()||(t.focus(),t.isOpen=!0,t.refreshState(),t.$dropdown.css({visibility:"hidden",display:"block"}),t.positionDropdown(),t.$dropdown.css({visibility:"visible"}),t.trigger("dropdown_open",t.$dropdown))},close:function(){var t=this,e=t.isOpen;"single"===t.settings.mode&&t.items.length&&(t.hideInput(),t.isBlurring||t.$control_input.blur()),t.isOpen=!1,t.$dropdown.hide(),t.setActiveOption(null),t.refreshState(),e&&t.trigger("dropdown_close",t.$dropdown)},positionDropdown:function(){var t=this.$control,e="body"===this.settings.dropdownParent?t.offset():t.position();e.top+=t.outerHeight(!0),this.$dropdown.css({width:t[0].getBoundingClientRect().width,top:e.top,left:e.left})},clear:function(t){var e=this;e.items.length&&(e.$control.children(":not(input)").remove(),e.items=[],e.lastQuery=null,e.setCaret(0),e.setActiveItem(null),e.updatePlaceholder(),e.updateOriginalInput({silent:t}),e.refreshState(),e.showInput(),e.trigger("clear"))},insertAtCaret:function(t){var e=Math.min(this.caretPos,this.items.length),n=t[0],o=this.buffer||this.$control[0];0===e?o.insertBefore(n,o.firstChild):o.insertBefore(n,o.childNodes[e]),this.setCaret(e+1)},deleteSelection:function(t){var n,o,i,r,s,a,l,c,d,u=this;if(i=t&&t.keyCode===m?-1:1,r=D(u.$control_input[0]),u.$activeOption&&!u.settings.hideSelected&&(l=u.getAdjacentOption(u.$activeOption,-1).attr("data-value")),s=[],u.$activeItems.length){for(d=u.$control.children(".active:"+(i>0?"last":"first")),a=u.$control.children(":not(input)").index(d),i>0&&a++,n=0,o=u.$activeItems.length;n<o;n++)s.push(e(u.$activeItems[n]).attr("data-value"));t&&(t.preventDefault(),t.stopPropagation())}else(u.isFocused||"single"===u.settings.mode)&&u.items.length&&(i<0&&0===r.start&&0===r.length?s.push(u.items[u.caretPos-1]):i>0&&r.start===u.$control_input.val().length&&s.push(u.items[u.caretPos]));if(!s.length||"function"==typeof u.settings.onDelete&&!1===u.settings.onDelete.apply(u,[s]))return!1;for(void 0!==a&&u.setCaret(a);s.length;)u.removeItem(s.pop());return u.showInput(),u.positionDropdown(),u.refreshOptions(!0),l&&(c=u.getOption(l)).length&&u.setActiveOption(c),!0},advanceSelection:function(t,e){var n,o,i,r,s,a=this;0!==t&&(a.rtl&&(t*=-1),n=t>0?"last":"first",o=D(a.$control_input[0]),a.isFocused&&!a.isInputHidden?(r=a.$control_input.val().length,(t<0?0===o.start&&0===o.length:o.start===r)&&!r&&a.advanceCaret(t,e)):(s=a.$control.children(".active:"+n)).length&&(i=a.$control.children(":not(input)").index(s),a.setActiveItem(null),a.setCaret(t>0?i+1:i)))},advanceCaret:function(t,e){var n,o,i=this;0!==t&&(n=t>0?"next":"prev",i.isShiftDown?(o=i.$control_input[n]()).length&&(i.hideInput(),i.setActiveItem(o),e&&e.preventDefault()):i.setCaret(i.caretPos+t))},setCaret:function(t){var n,o,i,r,s=this;if(t="single"===s.settings.mode?s.items.length:Math.max(0,Math.min(s.items.length,t)),!s.isPending)for(n=0,o=(i=s.$control.children(":not(input)")).length;n<o;n++)r=e(i[n]).detach(),n<t?s.$control_input.before(r):s.$control.append(r);s.caretPos=t},lock:function(){this.close(),this.isLocked=!0,this.refreshState()},unlock:function(){this.isLocked=!1,this.refreshState()},disable:function(){var t=this;t.$input.prop("disabled",!0),t.$control_input.prop("disabled",!0).prop("tabindex",-1),t.isDisabled=!0,t.lock()},enable:function(){var t=this;t.$input.prop("disabled",!1),t.$control_input.prop("disabled",!1).prop("tabindex",t.tabIndex),t.isDisabled=!1,t.unlock()},destroy:function(){var t=this,n=t.eventNS,o=t.revertSettings;t.trigger("destroy"),t.off(),t.$wrapper.remove(),t.$dropdown.remove(),t.$input.html("").append(o.$children).removeAttr("tabindex").removeClass("selectized").attr({tabindex:o.tabindex}).show(),t.$control_input.removeData("grow"),t.$input.removeData("selectize"),0==--F.count&&F.$testInput&&(F.$testInput.remove(),F.$testInput=void 0),e(window).off(n),e(document).off(n),e(document.body).off(n),delete t.$input[0].selectize},render:function(t,n){var o,i,r="",s=!1,a=this;return"option"!==t&&"item"!==t||(s=!!(o=$(n[a.settings.valueField]))),s&&(S(a.renderCache[t])||(a.renderCache[t]={}),a.renderCache[t].hasOwnProperty(o))?a.renderCache[t][o]:(r=e(a.settings.render[t].apply(this,[n,_])),"option"===t||"option_create"===t?n[a.settings.disabledField]||r.attr("data-selectable",""):"optgroup"===t&&(i=n[a.settings.optgroupValueField]||"",r.attr("data-group",i),n[a.settings.disabledField]&&r.attr("data-disabled","")),"option"!==t&&"item"!==t||r.attr("data-value",o||""),s&&(a.renderCache[t][o]=r[0]),r[0])},clearCache:function(t){var e=this;void 0===t?e.renderCache={}:delete e.renderCache[t]},canCreate:function(t){var e=this;if(!e.settings.create)return!1;var n=e.settings.createFilter;return t.length&&("function"!=typeof n||n.apply(e,[t]))&&("string"!=typeof n||new RegExp(n).test(t))&&(!(n instanceof RegExp)||n.test(t))}}),F.count=0,F.defaults={options:[],optgroups:[],plugins:[],delimiter:",",splitOn:null,persist:!0,diacritics:!0,create:!1,createOnBlur:!1,createFilter:null,highlight:!0,openOnFocus:!0,maxOptions:1e3,maxItems:null,hideSelected:null,addPrecedence:!1,selectOnTab:!1,preload:!1,allowEmptyOption:!1,closeAfterSelect:!1,scrollDuration:60,loadThrottle:300,loadingClass:"loading",dataAttr:"data-data",optgroupField:"optgroup",valueField:"value",labelField:"text",disabledField:"disabled",optgroupLabelField:"label",optgroupValueField:"value",lockOptgroupOrder:!1,sortField:"$order",searchField:["text"],searchConjunction:"and",mode:null,wrapperClass:"selectize-control",inputClass:"selectize-input",dropdownClass:"selectize-dropdown",dropdownContentClass:"selectize-dropdown-content",dropdownParent:null,copyClassesToDropdown:!0,render:{}},e.fn.selectize=function(t){var n=e.fn.selectize.defaults,o=e.extend({},n,t),i=o.dataAttr,r=o.labelField,s=o.valueField,a=o.disabledField,l=o.optgroupField,c=o.optgroupLabelField,d=o.optgroupValueField,u=function(t,n){var a,l,c,d,u=t.attr(i);if(u)for(n.options=JSON.parse(u),a=0,l=n.options.length;a<l;a++)n.items.push(n.options[a][s]);else{var p=e.trim(t.val()||"");if(!o.allowEmptyOption&&!p.length)return;for(a=0,l=(c=p.split(o.delimiter)).length;a<l;a++)(d={})[r]=c[a],d[s]=c[a],n.options.push(d);n.items=c}},p=function(t,n){var u,p,f,h,g=n.options,m={},v=function(t){var e=i&&t.attr(i);return"string"==typeof e&&e.length?JSON.parse(e):null},y=function(t,i){t=e(t);var c=$(t.val());if(c||o.allowEmptyOption)if(m.hasOwnProperty(c)){if(i){var d=m[c][l];d?e.isArray(d)?d.push(i):m[c][l]=[d,i]:m[c][l]=i}}else{var u=v(t)||{};u[r]=u[r]||t.text(),u[s]=u[s]||c,u[a]=u[a]||t.prop("disabled"),u[l]=u[l]||i,m[c]=u,g.push(u),t.is(":selected")&&n.items.push(c)}},b=function(t){var o,i,r,s,l;for((r=(t=e(t)).attr("label"))&&((s=v(t)||{})[c]=r,s[d]=r,s[a]=t.prop("disabled"),n.optgroups.push(s)),o=0,i=(l=e("option",t)).length;o<i;o++)y(l[o],r)};for(n.maxItems=t.attr("multiple")?null:1,u=0,p=(h=t.children()).length;u<p;u++)"optgroup"===(f=h[u].tagName.toLowerCase())?b(h[u]):"option"===f&&y(h[u])};return this.each((function(){if(!this.selectize){var i=e(this),r=this.tagName.toLowerCase(),s=i.attr("placeholder")||i.attr("data-placeholder");s||o.allowEmptyOption||(s=i.children('option[value=""]').text());var a={placeholder:s,options:[],optgroups:[],items:[]};"select"===r?p(i,a):u(i,a),new F(i,e.extend(!0,{},n,a,t))}}))},e.fn.selectize.defaults=F.defaults,e.fn.selectize.support={validity:k},F.define("drag_drop",(function(t){if(!e.fn.sortable)throw new Error('The "drag_drop" plugin requires jQuery UI "sortable".');if("multi"===this.settings.mode){var n=this;n.lock=function(){var t=n.lock;return function(){var e=n.$control.data("sortable");return e&&e.disable(),t.apply(n,arguments)}}(),n.unlock=function(){var t=n.unlock;return function(){var e=n.$control.data("sortable");return e&&e.enable(),t.apply(n,arguments)}}(),n.setup=function(){var t=n.setup;return function(){t.apply(this,arguments);var o=n.$control.sortable({items:"[data-value]",forcePlaceholderSize:!0,disabled:n.isLocked,start:function(t,e){e.placeholder.css("width",e.helper.css("width")),o.css({overflow:"visible"})},stop:function(){o.css({overflow:"hidden"});var t=n.$activeItems?n.$activeItems.slice():null,i=[];o.children("[data-value]").each((function(){i.push(e(this).attr("data-value"))})),n.setValue(i),n.setActiveItem(t)}})}}()}})),F.define("dropdown_header",(function(t){var n=this;t=e.extend({title:"Untitled",headerClass:"selectize-dropdown-header",titleRowClass:"selectize-dropdown-header-title",labelClass:"selectize-dropdown-header-label",closeClass:"selectize-dropdown-header-close",html:function(t){return'<div class="'+t.headerClass+'"><div class="'+t.titleRowClass+'"><span class="'+t.labelClass+'">'+t.title+'</span><a href="javascript:void(0)" class="'+t.closeClass+'">&times;</a></div></div>'}},t),n.setup=function(){var o=n.setup;return function(){o.apply(n,arguments),n.$dropdown_header=e(t.html(t)),n.$dropdown.prepend(n.$dropdown_header)}}()})),F.define("optgroup_columns",(function(t){var n=this;t=e.extend({equalizeWidth:!0,equalizeHeight:!0},t),this.getAdjacentOption=function(t,n){var o=t.closest("[data-group]").find("[data-selectable]"),i=o.index(t)+n;return i>=0&&i<o.length?o.eq(i):e()},this.onKeyDown=function(){var t=n.onKeyDown;return function(e){var o,i,r,s;return!this.isOpen||e.keyCode!==d&&e.keyCode!==f?t.apply(this,arguments):(n.ignoreHover=!0,o=(s=this.$activeOption.closest("[data-group]")).find("[data-selectable]").index(this.$activeOption),void((i=(r=(s=e.keyCode===d?s.prev("[data-group]"):s.next("[data-group]")).find("[data-selectable]")).eq(Math.min(r.length-1,o))).length&&this.setActiveOption(i)))}}();var o=function t(){var e,n=t.width,o=document;return void 0===n&&((e=o.createElement("div")).innerHTML='<div style="width:50px;height:50px;position:absolute;left:-50px;top:-50px;overflow:auto;"><div style="width:1px;height:100px;"></div></div>',e=e.firstChild,o.body.appendChild(e),n=t.width=e.offsetWidth-e.clientWidth,o.body.removeChild(e)),n},i=function(){var i,r,s,a,l,c,d;if((r=(d=e("[data-group]",n.$dropdown_content)).length)&&n.$dropdown_content.width()){if(t.equalizeHeight){for(s=0,i=0;i<r;i++)s=Math.max(s,d.eq(i).height());d.css({height:s})}t.equalizeWidth&&(c=n.$dropdown_content.innerWidth()-o(),a=Math.round(c/r),d.css({width:a}),r>1&&(l=c-a*(r-1),d.eq(r-1).css({width:l})))}};(t.equalizeHeight||t.equalizeWidth)&&(E.after(this,"positionDropdown",i),E.after(this,"refreshOptions",i))})),F.define("remove_button",(function(t){t=e.extend({label:"&times;",title:"Remove",className:"remove",append:!0},t);var n=function(t,n){n.className="remove-single";var o=t,i='<a href="javascript:void(0)" class="'+n.className+'" tabindex="-1" title="'+_(n.title)+'">'+n.label+"</a>",r=function(t,n){return e("<span>").append(t).append(n)};t.setup=function(){var s=o.setup;return function(){if(n.append){var a=e(o.$input.context).attr("id"),l=(e("#"+a),o.settings.render.item);o.settings.render.item=function(e){return r(l.apply(t,arguments),i)}}s.apply(t,arguments),t.$control.on("click","."+n.className,(function(t){t.preventDefault(),o.isLocked||o.clear()}))}}()},o=function(t,n){var o=t,i='<a href="javascript:void(0)" class="'+n.className+'" tabindex="-1" title="'+_(n.title)+'">'+n.label+"</a>",r=function(t,e){var n=t.search(/(<\/[^>]+>\s*)$/);return t.substring(0,n)+e+t.substring(n)};t.setup=function(){var s=o.setup;return function(){if(n.append){var a=o.settings.render.item;o.settings.render.item=function(e){return r(a.apply(t,arguments),i)}}s.apply(t,arguments),t.$control.on("click","."+n.className,(function(t){if(t.preventDefault(),!o.isLocked){var n=e(t.currentTarget).parent();o.setActiveItem(n),o.deleteSelection()&&o.setCaret(o.items.length)}}))}}()};return"single"===this.settings.mode?void n(this,t):void o(this,t)})),F.define("restore_on_backspace",(function(t){var e=this;t.text=t.text||function(t){return t[this.settings.labelField]},this.onKeyDown=function(){var n=e.onKeyDown;return function(e){var o,i;return e.keyCode===m&&""===this.$control_input.val()&&!this.$activeItems.length&&(o=this.caretPos-1)>=0&&o<this.items.length?(i=this.options[this.items[o]],this.deleteSelection(e)&&(this.setTextboxValue(t.text.apply(this,[i])),this.refreshOptions(!0)),void e.preventDefault()):n.apply(this,arguments)}}()})),F},void 0===(s="function"==typeof i?i.apply(n,r):i)||(e.exports=s)},function(e,n,o){var i,r;i=function(){var e=function(t,e){this.items=t,this.settings=e||{diacritics:!0}};e.prototype.tokenize=function(t){if(!(t=r(String(t||"").toLowerCase()))||!t.length)return[];var e,n,o,i,a=[],c=t.split(/ +/);for(e=0,n=c.length;e<n;e++){if(o=s(c[e]),this.settings.diacritics)for(i in l)l.hasOwnProperty(i)&&(o=o.replace(new RegExp(i,"g"),l[i]));a.push({string:c[e],regex:new RegExp(o,"i")})}return a},e.prototype.iterator=function(t,e){var n;n=a(t)?Array.prototype.forEach||function(t){for(var e=0,n=this.length;e<n;e++)t(this[e],e,this)}:function(t){for(var e in this)this.hasOwnProperty(e)&&t(this[e],e,this)},n.apply(t,[e])},e.prototype.getScoreFunction=function(t,e){var n,o,r,s;t=this.prepareSearch(t,e),o=t.tokens,n=t.options.fields,r=o.length,s=t.options.nesting;var a=function(t,e){var n,o;return t?-1===(o=(t=String(t||"")).search(e.regex))?0:(n=e.string.length/t.length,0===o&&(n+=.5),n):0},l=function(){var t=n.length;return t?1===t?function(t,e){return a(i(e,n[0],s),t)}:function(e,o){for(var r=0,l=0;r<t;r++)l+=a(i(o,n[r],s),e);return l/t}:function(){return 0}}();return r?1===r?function(t){return l(o[0],t)}:"and"===t.options.conjunction?function(t){for(var e,n=0,i=0;n<r;n++){if((e=l(o[n],t))<=0)return 0;i+=e}return i/r}:function(t){for(var e=0,n=0;e<r;e++)n+=l(o[e],t);return n/r}:function(){return 0}},e.prototype.getSortFunction=function(t,e){var o,r,s,a,l,c,d,u,p,f,h;if(h=!(t=(s=this).prepareSearch(t,e)).query&&e.sort_empty||e.sort,p=function(t,n){return"$score"===t?n.score:i(s.items[n.id],t,e.nesting)},l=[],h)for(o=0,r=h.length;o<r;o++)(t.query||"$score"!==h[o].field)&&l.push(h[o]);if(t.query){for(f=!0,o=0,r=l.length;o<r;o++)if("$score"===l[o].field){f=!1;break}f&&l.unshift({field:"$score",direction:"desc"})}else for(o=0,r=l.length;o<r;o++)if("$score"===l[o].field){l.splice(o,1);break}for(u=[],o=0,r=l.length;o<r;o++)u.push("desc"===l[o].direction?-1:1);return(c=l.length)?1===c?(a=l[0].field,d=u[0],function(t,e){return d*n(p(a,t),p(a,e))}):function(t,e){var o,i,r;for(o=0;o<c;o++)if(r=l[o].field,i=u[o]*n(p(r,t),p(r,e)))return i;return 0}:null},e.prototype.prepareSearch=function(e,n){if("object"==t(e))return e;var i=(n=o({},n)).fields,r=n.sort,s=n.sort_empty;return i&&!a(i)&&(n.fields=[i]),r&&!a(r)&&(n.sort=[r]),s&&!a(s)&&(n.sort_empty=[s]),{options:n,query:String(e||"").toLowerCase(),tokens:this.tokenize(e),total:0,items:[]}},e.prototype.search=function(t,e){var n,o,i,r,s=this;return o=this.prepareSearch(t,e),e=o.options,t=o.query,r=e.score||s.getScoreFunction(o),t.length?s.iterator(s.items,(function(t,i){n=r(t),(!1===e.filter||n>0)&&o.items.push({score:n,id:i})})):s.iterator(s.items,(function(t,e){o.items.push({score:1,id:e})})),(i=s.getSortFunction(o,e))&&o.items.sort(i),o.total=o.items.length,"number"==typeof e.limit&&(o.items=o.items.slice(0,e.limit)),o};var n=function(t,e){return"number"==typeof t&&"number"==typeof e?t>e?1:t<e?-1:0:(t=c(String(t||"")))>(e=c(String(e||"")))?1:e>t?-1:0},o=function(t,e){var n,o,i,r;for(n=1,o=arguments.length;n<o;n++)if(r=arguments[n])for(i in r)r.hasOwnProperty(i)&&(t[i]=r[i]);return t},i=function(t,e,n){if(t&&e){if(!n)return t[e];for(var o=e.split(".");o.length&&(t=t[o.shift()]););return t}},r=function(t){return(t+"").replace(/^\s+|\s+$|/g,"")},s=function(t){return(t+"").replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")},a=Array.isArray||"undefined"!=typeof $&&$.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},l={a:"[aḀḁĂăÂâǍǎȺⱥȦȧẠạÄäÀàÁáĀāÃãÅåąĄÃąĄ]",b:"[b␢βΒB฿𐌁ᛒ]",c:"[cĆćĈĉČčĊċC̄c̄ÇçḈḉȻȼƇƈɕᴄＣｃ]",d:"[dĎďḊḋḐḑḌḍḒḓḎḏĐđD̦d̦ƉɖƊɗƋƌᵭᶁᶑȡᴅＤｄð]",e:"[eÉéÈèÊêḘḙĚěĔĕẼẽḚḛẺẻĖėËëĒēȨȩĘęᶒɆɇȄȅẾếỀềỄễỂểḜḝḖḗḔḕȆȇẸẹỆệⱸᴇＥｅɘǝƏƐε]",f:"[fƑƒḞḟ]",g:"[gɢ₲ǤǥĜĝĞğĢģƓɠĠġ]",h:"[hĤĥĦħḨḩẖẖḤḥḢḣɦʰǶƕ]",i:"[iÍíÌìĬĭÎîǏǐÏïḮḯĨĩĮįĪīỈỉȈȉȊȋỊịḬḭƗɨɨ̆ᵻᶖİiIıɪＩｉ]",j:"[jȷĴĵɈɉʝɟʲ]",k:"[kƘƙꝀꝁḰḱǨǩḲḳḴḵκϰ₭]",l:"[lŁłĽľĻļĹĺḶḷḸḹḼḽḺḻĿŀȽƚⱠⱡⱢɫɬᶅɭȴʟＬｌ]",n:"[nŃńǸǹŇňÑñṄṅŅņṆṇṊṋṈṉN̈n̈ƝɲȠƞᵰᶇɳȵɴＮｎŊŋ]",o:"[oØøÖöÓóÒòÔôǑǒŐőŎŏȮȯỌọƟɵƠơỎỏŌōÕõǪǫȌȍՕօ]",p:"[pṔṕṖṗⱣᵽƤƥᵱ]",q:"[qꝖꝗʠɊɋꝘꝙq̃]",r:"[rŔŕɌɍŘřŖŗṘṙȐȑȒȓṚṛⱤɽ]",s:"[sŚśṠṡṢṣꞨꞩŜŝŠšŞşȘșS̈s̈]",t:"[tŤťṪṫŢţṬṭƮʈȚțṰṱṮṯƬƭ]",u:"[uŬŭɄʉỤụÜüÚúÙùÛûǓǔŰűŬŭƯưỦủŪūŨũŲųȔȕ∪]",v:"[vṼṽṾṿƲʋꝞꝟⱱʋ]",w:"[wẂẃẀẁŴŵẄẅẆẇẈẉ]",x:"[xẌẍẊẋχ]",y:"[yÝýỲỳŶŷŸÿỸỹẎẏỴỵɎɏƳƴ]",z:"[zŹźẐẑŽžŻżẒẓẔẕƵƶ]"},c=function(){var t,e,n,o,i="",r={};for(n in l)if(l.hasOwnProperty(n))for(i+=o=l[n].substring(2,l[n].length-1),t=0,e=o.length;t<e;t++)r[o.charAt(t)]=n;var s=new RegExp("["+i+"]","g");return function(t){return t.replace(s,(function(t){return r[t]})).toLowerCase()}}();return e},void 0===(r="function"==typeof i?i.call(n,o,n,e):i)||(e.exports=r)},function(t,e,n){var o,i;o=function(){var t={mixin:function(t){t.plugins={},t.prototype.initializePlugins=function(t){var n,o,i,r=this,s=[];if(r.plugins={names:[],settings:{},requested:{},loaded:{}},e.isArray(t))for(n=0,o=t.length;n<o;n++)"string"==typeof t[n]?s.push(t[n]):(r.plugins.settings[t[n].name]=t[n].options,s.push(t[n].name));else if(t)for(i in t)t.hasOwnProperty(i)&&(r.plugins.settings[i]=t[i],s.push(i));for(;s.length;)r.require(s.shift())},t.prototype.loadPlugin=function(e){var n=this,o=n.plugins,i=t.plugins[e];if(!t.plugins.hasOwnProperty(e))throw new Error('Unable to find "'+e+'" plugin');o.requested[e]=!0,o.loaded[e]=i.fn.apply(n,[n.plugins.settings[e]||{}]),o.names.push(e)},t.prototype.require=function(t){var e=this,n=e.plugins;if(!e.plugins.loaded.hasOwnProperty(t)){if(n.requested[t])throw new Error('Plugin has circular dependency ("'+t+'")');e.loadPlugin(t)}return n.loaded[t]},t.define=function(e,n){t.plugins[e]={name:e,fn:n}}}},e={isArray:Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}};return t},void 0===(i="function"==typeof o?o.call(e,n,e,t):o)||(t.exports=i)},function(t,e,n){var o,i;o=n(3),n(24),i=n(25),t.exports={init:function(t){var e,n,r;return r=function(t,e){var n,o,i;return t?(n=e.attr("data-count-desktop"),o=e.attr("data-count-laptop"),i=e.attr("data-count-mobile"),window.matchMedia("(min-width: 1000px)").matches?null!=n?n:4:window.matchMedia("(min-width: 700px)").matches?null!=o?o:3:null!=i?i:1):1},e=function(t,e,n){var i,r,s;return i=o(this).find('[data-slick-index="'+e.currentSlide+'"] .box-slider__item'),r=o(this).parent().parent().find(".box-slider__overlay"),s="",i.attr("data-title")&&(s=s+'<h2 class="box-slider__title">'+i.attr("data-title")+"</h2>"),i.attr("data-desc")&&(s=s+"<p>"+i.attr("data-desc")+"</p>"),i.is("a")?r.addClass("is-clickable"):r.removeClass("is-clickable"),r.html(s),null},function(){return parseInt(o("body").attr("data-slick-pager-id"))?parseInt(o("body").attr("data-slick-pager-id"))+1:1},n=function(t){return t?t.find(".box-slider__list"):null},t.$target.find(".js-slider:not(.box-slider--carousel)").each(i((function(){var t,i,s,a,l,c,d,u,p,f;if(c=o(this),i=c.find(".box-slider__list"),s=c.find(".box-slider__overlay"),t=c.attr("data-timeout"),d=c.hasClass("box-slider--multiple"),u=!!c.closest(".box-slider-pager").length,l=c.find(".box-slider__list .box-slider__item"),f=r(d,i),l.css("width",100/f+"%"),p={byRow:!0,property:"min-height",target:null,remove:!1},l.matchHeight(p),f>=l.length&&c.addClass("no-arrows"),u&&(a=c.closest(".box-slider-pager").find(".box-slider--carousel")),i.on("init",e),i.slick({dots:!u&&!d,arrows:!0,prevArrow:c.find(".box-slider__prev"),nextArrow:c.find(".box-slider__next"),slidesToShow:f,asNavFor:n(a),autoplay:void 0!==t,autoplaySpeed:void 0!==t?t:0}),s.on("click",(function(){if(o(this).hasClass("is-clickable"))return window.location=c.find(".slick-active.slick-current").find(".box-slider__item").attr("href")})),i.on("afterChange",e),u)return a.find(".box-slider__list").slick({arrows:!0,prevArrow:a.find(".box-slider__prev"),nextArrow:a.find(".box-slider__next"),slidesToShow:3,asNavFor:i}),a.find(".slick-slide").click((function(t){return t.preventDefault(),i.slick("slickGoTo",o(this).attr("data-slick-index"))}))})))}}},function(e,n,o){var i,r,s;!function(a){"use strict";r=[o(3)],i=function(e){var n=window.Slick||{};n=function(){function t(t,o){var i,r=this;r.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:e(t),appendDots:e(t),arrows:!0,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:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(t,n){return e('<button type="button" />').text(n+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},r.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},e.extend(r,r.initials),r.activeBreakpoint=null,r.animType=null,r.animProp=null,r.breakpoints=[],r.breakpointSettings=[],r.cssTransitions=!1,r.focussed=!1,r.interrupted=!1,r.hidden="hidden",r.paused=!0,r.positionProp=null,r.respondTo=null,r.rowCount=1,r.shouldClick=!0,r.$slider=e(t),r.$slidesCache=null,r.transformType=null,r.transitionType=null,r.visibilityChange="visibilitychange",r.windowWidth=0,r.windowTimer=null,i=e(t).data("slick")||{},r.options=e.extend({},r.defaults,o,i),r.currentSlide=r.options.initialSlide,r.originalSettings=r.options,void 0!==document.mozHidden?(r.hidden="mozHidden",r.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(r.hidden="webkitHidden",r.visibilityChange="webkitvisibilitychange"),r.autoPlay=e.proxy(r.autoPlay,r),r.autoPlayClear=e.proxy(r.autoPlayClear,r),r.autoPlayIterator=e.proxy(r.autoPlayIterator,r),r.changeSlide=e.proxy(r.changeSlide,r),r.clickHandler=e.proxy(r.clickHandler,r),r.selectHandler=e.proxy(r.selectHandler,r),r.setPosition=e.proxy(r.setPosition,r),r.swipeHandler=e.proxy(r.swipeHandler,r),r.dragHandler=e.proxy(r.dragHandler,r),r.keyHandler=e.proxy(r.keyHandler,r),r.instanceUid=n++,r.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,r.registerBreakpoints(),r.init(!0)}var n=0;return t}(),n.prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},n.prototype.addSlide=n.prototype.slickAdd=function(t,n,o){var i=this;if("boolean"==typeof n)o=n,n=null;else if(n<0||n>=i.slideCount)return!1;i.unload(),"number"==typeof n?0===n&&0===i.$slides.length?e(t).appendTo(i.$slideTrack):o?e(t).insertBefore(i.$slides.eq(n)):e(t).insertAfter(i.$slides.eq(n)):!0===o?e(t).prependTo(i.$slideTrack):e(t).appendTo(i.$slideTrack),i.$slides=i.$slideTrack.children(this.options.slide),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.append(i.$slides),i.$slides.each((function(t,n){e(n).attr("data-slick-index",t)})),i.$slidesCache=i.$slides,i.reinit()},n.prototype.animateHeight=function(){var t=this;if(1===t.options.slidesToShow&&!0===t.options.adaptiveHeight&&!1===t.options.vertical){var e=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.animate({height:e},t.options.speed)}},n.prototype.animateSlide=function(t,n){var o={},i=this;i.animateHeight(),!0===i.options.rtl&&!1===i.options.vertical&&(t=-t),!1===i.transformsEnabled?!1===i.options.vertical?i.$slideTrack.animate({left:t},i.options.speed,i.options.easing,n):i.$slideTrack.animate({top:t},i.options.speed,i.options.easing,n):!1===i.cssTransitions?(!0===i.options.rtl&&(i.currentLeft=-i.currentLeft),e({animStart:i.currentLeft}).animate({animStart:t},{duration:i.options.speed,easing:i.options.easing,step:function(t){t=Math.ceil(t),!1===i.options.vertical?(o[i.animType]="translate("+t+"px, 0px)",i.$slideTrack.css(o)):(o[i.animType]="translate(0px,"+t+"px)",i.$slideTrack.css(o))},complete:function(){n&&n.call()}})):(i.applyTransition(),t=Math.ceil(t),!1===i.options.vertical?o[i.animType]="translate3d("+t+"px, 0px, 0px)":o[i.animType]="translate3d(0px,"+t+"px, 0px)",i.$slideTrack.css(o),n&&setTimeout((function(){i.disableTransition(),n.call()}),i.options.speed))},n.prototype.getNavTarget=function(){var t=this,n=t.options.asNavFor;return n&&null!==n&&(n=e(n).not(t.$slider)),n},n.prototype.asNavFor=function(n){var o=this.getNavTarget();null!==o&&"object"==t(o)&&o.each((function(){var t=e(this).slick("getSlick");t.unslicked||t.slideHandler(n,!0)}))},n.prototype.applyTransition=function(t){var e=this,n={};!1===e.options.fade?n[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:n[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,!1===e.options.fade?e.$slideTrack.css(n):e.$slides.eq(t).css(n)},n.prototype.autoPlay=function(){var t=this;t.autoPlayClear(),t.slideCount>t.options.slidesToShow&&(t.autoPlayTimer=setInterval(t.autoPlayIterator,t.options.autoplaySpeed))},n.prototype.autoPlayClear=function(){var t=this;t.autoPlayTimer&&clearInterval(t.autoPlayTimer)},n.prototype.autoPlayIterator=function(){var t=this,e=t.currentSlide+t.options.slidesToScroll;t.paused||t.interrupted||t.focussed||(!1===t.options.infinite&&(1===t.direction&&t.currentSlide+1===t.slideCount-1?t.direction=0:0===t.direction&&(e=t.currentSlide-t.options.slidesToScroll,t.currentSlide-1==0&&(t.direction=1))),t.slideHandler(e))},n.prototype.buildArrows=function(){var t=this;!0===t.options.arrows&&(t.$prevArrow=e(t.options.prevArrow).addClass("slick-arrow"),t.$nextArrow=e(t.options.nextArrow).addClass("slick-arrow"),t.slideCount>t.options.slidesToShow?(t.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.prependTo(t.options.appendArrows),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.appendTo(t.options.appendArrows),!0!==t.options.infinite&&t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):t.$prevArrow.add(t.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},n.prototype.buildDots=function(){var t,n,o=this;if(!0===o.options.dots&&o.slideCount>o.options.slidesToShow){for(o.$slider.addClass("slick-dotted"),n=e("<ul />").addClass(o.options.dotsClass),t=0;t<=o.getDotCount();t+=1)n.append(e("<li />").append(o.options.customPaging.call(this,o,t)));o.$dots=n.appendTo(o.options.appendDots),o.$dots.find("li").first().addClass("slick-active")}},n.prototype.buildOut=function(){var t=this;t.$slides=t.$slider.children(t.options.slide+":not(.slick-cloned)").addClass("slick-slide"),t.slideCount=t.$slides.length,t.$slides.each((function(t,n){e(n).attr("data-slick-index",t).data("originalStyling",e(n).attr("style")||"")})),t.$slider.addClass("slick-slider"),t.$slideTrack=0===t.slideCount?e('<div class="slick-track"/>').appendTo(t.$slider):t.$slides.wrapAll('<div class="slick-track"/>').parent(),t.$list=t.$slideTrack.wrap('<div class="slick-list"/>').parent(),t.$slideTrack.css("opacity",0),!0!==t.options.centerMode&&!0!==t.options.swipeToSlide||(t.options.slidesToScroll=1),e("img[data-lazy]",t.$slider).not("[src]").addClass("slick-loading"),t.setupInfinite(),t.buildArrows(),t.buildDots(),t.updateDots(),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),!0===t.options.draggable&&t.$list.addClass("draggable")},n.prototype.buildRows=function(){var t,e,n,o,i,r,s,a=this;if(o=document.createDocumentFragment(),r=a.$slider.children(),a.options.rows>0){for(s=a.options.slidesPerRow*a.options.rows,i=Math.ceil(r.length/s),t=0;t<i;t++){var l=document.createElement("div");for(e=0;e<a.options.rows;e++){var c=document.createElement("div");for(n=0;n<a.options.slidesPerRow;n++){var d=t*s+(e*a.options.slidesPerRow+n);r.get(d)&&c.appendChild(r.get(d))}l.appendChild(c)}o.appendChild(l)}a.$slider.empty().append(o),a.$slider.children().children().children().css({width:100/a.options.slidesPerRow+"%",display:"inline-block"})}},n.prototype.checkResponsive=function(t,n){var o,i,r,s=this,a=!1,l=s.$slider.width(),c=window.innerWidth||e(window).width();if("window"===s.respondTo?r=c:"slider"===s.respondTo?r=l:"min"===s.respondTo&&(r=Math.min(c,l)),s.options.responsive&&s.options.responsive.length&&null!==s.options.responsive){for(o in i=null,s.breakpoints)s.breakpoints.hasOwnProperty(o)&&(!1===s.originalSettings.mobileFirst?r<s.breakpoints[o]&&(i=s.breakpoints[o]):r>s.breakpoints[o]&&(i=s.breakpoints[o]));null!==i?null!==s.activeBreakpoint?(i!==s.activeBreakpoint||n)&&(s.activeBreakpoint=i,"unslick"===s.breakpointSettings[i]?s.unslick(i):(s.options=e.extend({},s.originalSettings,s.breakpointSettings[i]),!0===t&&(s.currentSlide=s.options.initialSlide),s.refresh(t)),a=i):(s.activeBreakpoint=i,"unslick"===s.breakpointSettings[i]?s.unslick(i):(s.options=e.extend({},s.originalSettings,s.breakpointSettings[i]),!0===t&&(s.currentSlide=s.options.initialSlide),s.refresh(t)),a=i):null!==s.activeBreakpoint&&(s.activeBreakpoint=null,s.options=s.originalSettings,!0===t&&(s.currentSlide=s.options.initialSlide),s.refresh(t),a=i),t||!1===a||s.$slider.trigger("breakpoint",[s,a])}},n.prototype.changeSlide=function(t,n){var o,i,r=this,s=e(t.currentTarget);switch(s.is("a")&&t.preventDefault(),s.is("li")||(s=s.closest("li")),o=r.slideCount%r.options.slidesToScroll!=0?0:(r.slideCount-r.currentSlide)%r.options.slidesToScroll,t.data.message){case"previous":i=0===o?r.options.slidesToScroll:r.options.slidesToShow-o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide-i,!1,n);break;case"next":i=0===o?r.options.slidesToScroll:o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide+i,!1,n);break;case"index":var a=0===t.data.index?0:t.data.index||s.index()*r.options.slidesToScroll;r.slideHandler(r.checkNavigable(a),!1,n),s.children().trigger("focus");break;default:return}},n.prototype.checkNavigable=function(t){var e,n;if(n=0,t>(e=this.getNavigableIndexes())[e.length-1])t=e[e.length-1];else for(var o in e){if(t<e[o]){t=n;break}n=e[o]}return t},n.prototype.cleanUpEvents=function(){var t=this;t.options.dots&&null!==t.$dots&&(e("li",t.$dots).off("click.slick",t.changeSlide).off("mouseenter.slick",e.proxy(t.interrupt,t,!0)).off("mouseleave.slick",e.proxy(t.interrupt,t,!1)),!0===t.options.accessibility&&t.$dots.off("keydown.slick",t.keyHandler)),t.$slider.off("focus.slick blur.slick"),!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow&&t.$prevArrow.off("click.slick",t.changeSlide),t.$nextArrow&&t.$nextArrow.off("click.slick",t.changeSlide),!0===t.options.accessibility&&(t.$prevArrow&&t.$prevArrow.off("keydown.slick",t.keyHandler),t.$nextArrow&&t.$nextArrow.off("keydown.slick",t.keyHandler))),t.$list.off("touchstart.slick mousedown.slick",t.swipeHandler),t.$list.off("touchmove.slick mousemove.slick",t.swipeHandler),t.$list.off("touchend.slick mouseup.slick",t.swipeHandler),t.$list.off("touchcancel.slick mouseleave.slick",t.swipeHandler),t.$list.off("click.slick",t.clickHandler),e(document).off(t.visibilityChange,t.visibility),t.cleanUpSlideEvents(),!0===t.options.accessibility&&t.$list.off("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&e(t.$slideTrack).children().off("click.slick",t.selectHandler),e(window).off("orientationchange.slick.slick-"+t.instanceUid,t.orientationChange),e(window).off("resize.slick.slick-"+t.instanceUid,t.resize),e("[draggable!=true]",t.$slideTrack).off("dragstart",t.preventDefault),e(window).off("load.slick.slick-"+t.instanceUid,t.setPosition)},n.prototype.cleanUpSlideEvents=function(){var t=this;t.$list.off("mouseenter.slick",e.proxy(t.interrupt,t,!0)),t.$list.off("mouseleave.slick",e.proxy(t.interrupt,t,!1))},n.prototype.cleanUpRows=function(){var t,e=this;e.options.rows>0&&((t=e.$slides.children().children()).removeAttr("style"),e.$slider.empty().append(t))},n.prototype.clickHandler=function(t){!1===this.shouldClick&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault())},n.prototype.destroy=function(t){var n=this;n.autoPlayClear(),n.touchObject={},n.cleanUpEvents(),e(".slick-cloned",n.$slider).detach(),n.$dots&&n.$dots.remove(),n.$prevArrow&&n.$prevArrow.length&&(n.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),n.htmlExpr.test(n.options.prevArrow)&&n.$prevArrow.remove()),n.$nextArrow&&n.$nextArrow.length&&(n.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),n.htmlExpr.test(n.options.nextArrow)&&n.$nextArrow.remove()),n.$slides&&(n.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each((function(){e(this).attr("style",e(this).data("originalStyling"))})),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.detach(),n.$list.detach(),n.$slider.append(n.$slides)),n.cleanUpRows(),n.$slider.removeClass("slick-slider"),n.$slider.removeClass("slick-initialized"),n.$slider.removeClass("slick-dotted"),n.unslicked=!0,t||n.$slider.trigger("destroy",[n])},n.prototype.disableTransition=function(t){var e=this,n={};n[e.transitionType]="",!1===e.options.fade?e.$slideTrack.css(n):e.$slides.eq(t).css(n)},n.prototype.fadeSlide=function(t,e){var n=this;!1===n.cssTransitions?(n.$slides.eq(t).css({zIndex:n.options.zIndex}),n.$slides.eq(t).animate({opacity:1},n.options.speed,n.options.easing,e)):(n.applyTransition(t),n.$slides.eq(t).css({opacity:1,zIndex:n.options.zIndex}),e&&setTimeout((function(){n.disableTransition(t),e.call()}),n.options.speed))},n.prototype.fadeSlideOut=function(t){var e=this;!1===e.cssTransitions?e.$slides.eq(t).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(t),e.$slides.eq(t).css({opacity:0,zIndex:e.options.zIndex-2}))},n.prototype.filterSlides=n.prototype.slickFilter=function(t){var e=this;null!==t&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(t).appendTo(e.$slideTrack),e.reinit())},n.prototype.focusHandler=function(){var t=this;t.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",(function(n){n.stopImmediatePropagation();var o=e(this);setTimeout((function(){t.options.pauseOnFocus&&(t.focussed=o.is(":focus"),t.autoPlay())}),0)}))},n.prototype.getCurrent=n.prototype.slickCurrentSlide=function(){return this.currentSlide},n.prototype.getDotCount=function(){var t=this,e=0,n=0,o=0;if(!0===t.options.infinite)if(t.slideCount<=t.options.slidesToShow)++o;else for(;e<t.slideCount;)++o,e=n+t.options.slidesToScroll,n+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else if(!0===t.options.centerMode)o=t.slideCount;else if(t.options.asNavFor)for(;e<t.slideCount;)++o,e=n+t.options.slidesToScroll,n+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else o=1+Math.ceil((t.slideCount-t.options.slidesToShow)/t.options.slidesToScroll);return o-1},n.prototype.getLeft=function(t){var e,n,o,i,r=this,s=0;return r.slideOffset=0,n=r.$slides.first().outerHeight(!0),!0===r.options.infinite?(r.slideCount>r.options.slidesToShow&&(r.slideOffset=r.slideWidth*r.options.slidesToShow*-1,i=-1,!0===r.options.vertical&&!0===r.options.centerMode&&(2===r.options.slidesToShow?i=-1.5:1===r.options.slidesToShow&&(i=-2)),s=n*r.options.slidesToShow*i),r.slideCount%r.options.slidesToScroll!=0&&t+r.options.slidesToScroll>r.slideCount&&r.slideCount>r.options.slidesToShow&&(t>r.slideCount?(r.slideOffset=(r.options.slidesToShow-(t-r.slideCount))*r.slideWidth*-1,s=(r.options.slidesToShow-(t-r.slideCount))*n*-1):(r.slideOffset=r.slideCount%r.options.slidesToScroll*r.slideWidth*-1,s=r.slideCount%r.options.slidesToScroll*n*-1))):t+r.options.slidesToShow>r.slideCount&&(r.slideOffset=(t+r.options.slidesToShow-r.slideCount)*r.slideWidth,s=(t+r.options.slidesToShow-r.slideCount)*n),r.slideCount<=r.options.slidesToShow&&(r.slideOffset=0,s=0),!0===r.options.centerMode&&r.slideCount<=r.options.slidesToShow?r.slideOffset=r.slideWidth*Math.floor(r.options.slidesToShow)/2-r.slideWidth*r.slideCount/2:!0===r.options.centerMode&&!0===r.options.infinite?r.slideOffset+=r.slideWidth*Math.floor(r.options.slidesToShow/2)-r.slideWidth:!0===r.options.centerMode&&(r.slideOffset=0,r.slideOffset+=r.slideWidth*Math.floor(r.options.slidesToShow/2)),e=!1===r.options.vertical?t*r.slideWidth*-1+r.slideOffset:t*n*-1+s,!0===r.options.variableWidth&&(o=r.slideCount<=r.options.slidesToShow||!1===r.options.infinite?r.$slideTrack.children(".slick-slide").eq(t):r.$slideTrack.children(".slick-slide").eq(t+r.options.slidesToShow),e=!0===r.options.rtl?o[0]?-1*(r.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,!0===r.options.centerMode&&(o=r.slideCount<=r.options.slidesToShow||!1===r.options.infinite?r.$slideTrack.children(".slick-slide").eq(t):r.$slideTrack.children(".slick-slide").eq(t+r.options.slidesToShow+1),e=!0===r.options.rtl?o[0]?-1*(r.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,e+=(r.$list.width()-o.outerWidth())/2)),e},n.prototype.getOption=n.prototype.slickGetOption=function(t){return this.options[t]},n.prototype.getNavigableIndexes=function(){var t,e=this,n=0,o=0,i=[];for(!1===e.options.infinite?t=e.slideCount:(n=-1*e.options.slidesToScroll,o=-1*e.options.slidesToScroll,t=2*e.slideCount);n<t;)i.push(n),n=o+e.options.slidesToScroll,o+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return i},n.prototype.getSlick=function(){return this},n.prototype.getSlideCount=function(){var t,n,o=this;return n=!0===o.options.centerMode?o.slideWidth*Math.floor(o.options.slidesToShow/2):0,!0===o.options.swipeToSlide?(o.$slideTrack.find(".slick-slide").each((function(i,r){if(r.offsetLeft-n+e(r).outerWidth()/2>-1*o.swipeLeft)return t=r,!1})),Math.abs(e(t).attr("data-slick-index")-o.currentSlide)||1):o.options.slidesToScroll},n.prototype.goTo=n.prototype.slickGoTo=function(t,e){this.changeSlide({data:{message:"index",index:parseInt(t)}},e)},n.prototype.init=function(t){var n=this;e(n.$slider).hasClass("slick-initialized")||(e(n.$slider).addClass("slick-initialized"),n.buildRows(),n.buildOut(),n.setProps(),n.startLoad(),n.loadSlider(),n.initializeEvents(),n.updateArrows(),n.updateDots(),n.checkResponsive(!0),n.focusHandler()),t&&n.$slider.trigger("init",[n]),!0===n.options.accessibility&&n.initADA(),n.options.autoplay&&(n.paused=!1,n.autoPlay())},n.prototype.initADA=function(){var t=this,n=Math.ceil(t.slideCount/t.options.slidesToShow),o=t.getNavigableIndexes().filter((function(e){return e>=0&&e<t.slideCount}));t.$slides.add(t.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==t.$dots&&(t.$slides.not(t.$slideTrack.find(".slick-cloned")).each((function(n){var i=o.indexOf(n);if(e(this).attr({role:"tabpanel",id:"slick-slide"+t.instanceUid+n,tabindex:-1}),-1!==i){var r="slick-slide-control"+t.instanceUid+i;e("#"+r).length&&e(this).attr({"aria-describedby":r})}})),t.$dots.attr("role","tablist").find("li").each((function(i){var r=o[i];e(this).attr({role:"presentation"}),e(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+t.instanceUid+i,"aria-controls":"slick-slide"+t.instanceUid+r,"aria-label":i+1+" of "+n,"aria-selected":null,tabindex:"-1"})})).eq(t.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var i=t.currentSlide,r=i+t.options.slidesToShow;i<r;i++)t.options.focusOnChange?t.$slides.eq(i).attr({tabindex:"0"}):t.$slides.eq(i).removeAttr("tabindex");t.activateADA()},n.prototype.initArrowEvents=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},t.changeSlide),t.$nextArrow.off("click.slick").on("click.slick",{message:"next"},t.changeSlide),!0===t.options.accessibility&&(t.$prevArrow.on("keydown.slick",t.keyHandler),t.$nextArrow.on("keydown.slick",t.keyHandler)))},n.prototype.initDotEvents=function(){var t=this;!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&(e("li",t.$dots).on("click.slick",{message:"index"},t.changeSlide),!0===t.options.accessibility&&t.$dots.on("keydown.slick",t.keyHandler)),!0===t.options.dots&&!0===t.options.pauseOnDotsHover&&t.slideCount>t.options.slidesToShow&&e("li",t.$dots).on("mouseenter.slick",e.proxy(t.interrupt,t,!0)).on("mouseleave.slick",e.proxy(t.interrupt,t,!1))},n.prototype.initSlideEvents=function(){var t=this;t.options.pauseOnHover&&(t.$list.on("mouseenter.slick",e.proxy(t.interrupt,t,!0)),t.$list.on("mouseleave.slick",e.proxy(t.interrupt,t,!1)))},n.prototype.initializeEvents=function(){var t=this;t.initArrowEvents(),t.initDotEvents(),t.initSlideEvents(),t.$list.on("touchstart.slick mousedown.slick",{action:"start"},t.swipeHandler),t.$list.on("touchmove.slick mousemove.slick",{action:"move"},t.swipeHandler),t.$list.on("touchend.slick mouseup.slick",{action:"end"},t.swipeHandler),t.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},t.swipeHandler),t.$list.on("click.slick",t.clickHandler),e(document).on(t.visibilityChange,e.proxy(t.visibility,t)),!0===t.options.accessibility&&t.$list.on("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&e(t.$slideTrack).children().on("click.slick",t.selectHandler),e(window).on("orientationchange.slick.slick-"+t.instanceUid,e.proxy(t.orientationChange,t)),e(window).on("resize.slick.slick-"+t.instanceUid,e.proxy(t.resize,t)),e("[draggable!=true]",t.$slideTrack).on("dragstart",t.preventDefault),e(window).on("load.slick.slick-"+t.instanceUid,t.setPosition),e(t.setPosition)},n.prototype.initUI=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.show(),t.$nextArrow.show()),!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&t.$dots.show()},n.prototype.keyHandler=function(t){var e=this;t.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===t.keyCode&&!0===e.options.accessibility?e.changeSlide({data:{message:!0===e.options.rtl?"next":"previous"}}):39===t.keyCode&&!0===e.options.accessibility&&e.changeSlide({data:{message:!0===e.options.rtl?"previous":"next"}}))},n.prototype.lazyLoad=function(){function t(t){e("img[data-lazy]",t).each((function(){var t=e(this),n=e(this).attr("data-lazy"),o=e(this).attr("data-srcset"),i=e(this).attr("data-sizes")||r.$slider.attr("data-sizes"),s=document.createElement("img");s.onload=function(){t.animate({opacity:0},100,(function(){o&&(t.attr("srcset",o),i&&t.attr("sizes",i)),t.attr("src",n).animate({opacity:1},200,(function(){t.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")})),r.$slider.trigger("lazyLoaded",[r,t,n])}))},s.onerror=function(){t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),r.$slider.trigger("lazyLoadError",[r,t,n])},s.src=n}))}var n,o,i,r=this;if(!0===r.options.centerMode?!0===r.options.infinite?i=(o=r.currentSlide+(r.options.slidesToShow/2+1))+r.options.slidesToShow+2:(o=Math.max(0,r.currentSlide-(r.options.slidesToShow/2+1)),i=r.options.slidesToShow/2+1+2+r.currentSlide):(o=r.options.infinite?r.options.slidesToShow+r.currentSlide:r.currentSlide,i=Math.ceil(o+r.options.slidesToShow),!0===r.options.fade&&(o>0&&o--,i<=r.slideCount&&i++)),n=r.$slider.find(".slick-slide").slice(o,i),"anticipated"===r.options.lazyLoad)for(var s=o-1,a=i,l=r.$slider.find(".slick-slide"),c=0;c<r.options.slidesToScroll;c++)s<0&&(s=r.slideCount-1),n=(n=n.add(l.eq(s))).add(l.eq(a)),s--,a++;t(n),r.slideCount<=r.options.slidesToShow?t(r.$slider.find(".slick-slide")):r.currentSlide>=r.slideCount-r.options.slidesToShow?t(r.$slider.find(".slick-cloned").slice(0,r.options.slidesToShow)):0===r.currentSlide&&t(r.$slider.find(".slick-cloned").slice(-1*r.options.slidesToShow))},n.prototype.loadSlider=function(){var t=this;t.setPosition(),t.$slideTrack.css({opacity:1}),t.$slider.removeClass("slick-loading"),t.initUI(),"progressive"===t.options.lazyLoad&&t.progressiveLazyLoad()},n.prototype.next=n.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},n.prototype.orientationChange=function(){var t=this;t.checkResponsive(),t.setPosition()},n.prototype.pause=n.prototype.slickPause=function(){var t=this;t.autoPlayClear(),t.paused=!0},n.prototype.play=n.prototype.slickPlay=function(){var t=this;t.autoPlay(),t.options.autoplay=!0,t.paused=!1,t.focussed=!1,t.interrupted=!1},n.prototype.postSlide=function(t){var n=this;!n.unslicked&&(n.$slider.trigger("afterChange",[n,t]),n.animating=!1,n.slideCount>n.options.slidesToShow&&n.setPosition(),n.swipeLeft=null,n.options.autoplay&&n.autoPlay(),!0===n.options.accessibility&&(n.initADA(),n.options.focusOnChange))&&e(n.$slides.get(n.currentSlide)).attr("tabindex",0).focus()},n.prototype.prev=n.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},n.prototype.preventDefault=function(t){t.preventDefault()},n.prototype.progressiveLazyLoad=function(t){t=t||1;var n,o,i,r,s,a=this,l=e("img[data-lazy]",a.$slider);l.length?(n=l.first(),o=n.attr("data-lazy"),i=n.attr("data-srcset"),r=n.attr("data-sizes")||a.$slider.attr("data-sizes"),(s=document.createElement("img")).onload=function(){i&&(n.attr("srcset",i),r&&n.attr("sizes",r)),n.attr("src",o).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===a.options.adaptiveHeight&&a.setPosition(),a.$slider.trigger("lazyLoaded",[a,n,o]),a.progressiveLazyLoad()},s.onerror=function(){t<3?setTimeout((function(){a.progressiveLazyLoad(t+1)}),500):(n.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),a.$slider.trigger("lazyLoadError",[a,n,o]),a.progressiveLazyLoad())},s.src=o):a.$slider.trigger("allImagesLoaded",[a])},n.prototype.refresh=function(t){var n,o,i=this;o=i.slideCount-i.options.slidesToShow,!i.options.infinite&&i.currentSlide>o&&(i.currentSlide=o),i.slideCount<=i.options.slidesToShow&&(i.currentSlide=0),n=i.currentSlide,i.destroy(!0),e.extend(i,i.initials,{currentSlide:n}),i.init(),t||i.changeSlide({data:{message:"index",index:n}},!1)},n.prototype.registerBreakpoints=function(){var t,n,o,i=this,r=i.options.responsive||null;if("array"===e.type(r)&&r.length){for(t in i.respondTo=i.options.respondTo||"window",r)if(o=i.breakpoints.length-1,r.hasOwnProperty(t)){for(n=r[t].breakpoint;o>=0;)i.breakpoints[o]&&i.breakpoints[o]===n&&i.breakpoints.splice(o,1),o--;i.breakpoints.push(n),i.breakpointSettings[n]=r[t].settings}i.breakpoints.sort((function(t,e){return i.options.mobileFirst?t-e:e-t}))}},n.prototype.reinit=function(){var t=this;t.$slides=t.$slideTrack.children(t.options.slide).addClass("slick-slide"),t.slideCount=t.$slides.length,t.currentSlide>=t.slideCount&&0!==t.currentSlide&&(t.currentSlide=t.currentSlide-t.options.slidesToScroll),t.slideCount<=t.options.slidesToShow&&(t.currentSlide=0),t.registerBreakpoints(),t.setProps(),t.setupInfinite(),t.buildArrows(),t.updateArrows(),t.initArrowEvents(),t.buildDots(),t.updateDots(),t.initDotEvents(),t.cleanUpSlideEvents(),t.initSlideEvents(),t.checkResponsive(!1,!0),!0===t.options.focusOnSelect&&e(t.$slideTrack).children().on("click.slick",t.selectHandler),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),t.setPosition(),t.focusHandler(),t.paused=!t.options.autoplay,t.autoPlay(),t.$slider.trigger("reInit",[t])},n.prototype.resize=function(){var t=this;e(window).width()!==t.windowWidth&&(clearTimeout(t.windowDelay),t.windowDelay=window.setTimeout((function(){t.windowWidth=e(window).width(),t.checkResponsive(),t.unslicked||t.setPosition()}),50))},n.prototype.removeSlide=n.prototype.slickRemove=function(t,e,n){var o=this;return"boolean"==typeof t?t=!0===(e=t)?0:o.slideCount-1:t=!0===e?--t:t,!(o.slideCount<1||t<0||t>o.slideCount-1)&&(o.unload(),!0===n?o.$slideTrack.children().remove():o.$slideTrack.children(this.options.slide).eq(t).remove(),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slidesCache=o.$slides,void o.reinit())},n.prototype.setCSS=function(t){var e,n,o=this,i={};!0===o.options.rtl&&(t=-t),e="left"==o.positionProp?Math.ceil(t)+"px":"0px",n="top"==o.positionProp?Math.ceil(t)+"px":"0px",i[o.positionProp]=t,!1===o.transformsEnabled?o.$slideTrack.css(i):(i={},!1===o.cssTransitions?(i[o.animType]="translate("+e+", "+n+")",o.$slideTrack.css(i)):(i[o.animType]="translate3d("+e+", "+n+", 0px)",o.$slideTrack.css(i)))},n.prototype.setDimensions=function(){var t=this;!1===t.options.vertical?!0===t.options.centerMode&&t.$list.css({padding:"0px "+t.options.centerPadding}):(t.$list.height(t.$slides.first().outerHeight(!0)*t.options.slidesToShow),!0===t.options.centerMode&&t.$list.css({padding:t.options.centerPadding+" 0px"})),t.listWidth=t.$list.width(),t.listHeight=t.$list.height(),!1===t.options.vertical&&!1===t.options.variableWidth?(t.slideWidth=Math.ceil(t.listWidth/t.options.slidesToShow),t.$slideTrack.width(Math.ceil(t.slideWidth*t.$slideTrack.children(".slick-slide").length))):!0===t.options.variableWidth?t.$slideTrack.width(5e3*t.slideCount):(t.slideWidth=Math.ceil(t.listWidth),t.$slideTrack.height(Math.ceil(t.$slides.first().outerHeight(!0)*t.$slideTrack.children(".slick-slide").length)));var e=t.$slides.first().outerWidth(!0)-t.$slides.first().width();!1===t.options.variableWidth&&t.$slideTrack.children(".slick-slide").width(t.slideWidth-e)},n.prototype.setFade=function(){var t,n=this;n.$slides.each((function(o,i){t=n.slideWidth*o*-1,!0===n.options.rtl?e(i).css({position:"relative",right:t,top:0,zIndex:n.options.zIndex-2,opacity:0}):e(i).css({position:"relative",left:t,top:0,zIndex:n.options.zIndex-2,opacity:0})})),n.$slides.eq(n.currentSlide).css({zIndex:n.options.zIndex-1,opacity:1})},n.prototype.setHeight=function(){var t=this;if(1===t.options.slidesToShow&&!0===t.options.adaptiveHeight&&!1===t.options.vertical){var e=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.css("height",e)}},n.prototype.setOption=n.prototype.slickSetOption=function(){var t,n,o,i,r,s=this,a=!1;if("object"===e.type(arguments[0])?(o=arguments[0],a=arguments[1],r="multiple"):"string"===e.type(arguments[0])&&(o=arguments[0],i=arguments[1],a=arguments[2],"responsive"===arguments[0]&&"array"===e.type(arguments[1])?r="responsive":void 0!==arguments[1]&&(r="single")),"single"===r)s.options[o]=i;else if("multiple"===r)e.each(o,(function(t,e){s.options[t]=e}));else if("responsive"===r)for(n in i)if("array"!==e.type(s.options.responsive))s.options.responsive=[i[n]];else{for(t=s.options.responsive.length-1;t>=0;)s.options.responsive[t].breakpoint===i[n].breakpoint&&s.options.responsive.splice(t,1),t--;s.options.responsive.push(i[n])}a&&(s.unload(),s.reinit())},n.prototype.setPosition=function(){var t=this;t.setDimensions(),t.setHeight(),!1===t.options.fade?t.setCSS(t.getLeft(t.currentSlide)):t.setFade(),t.$slider.trigger("setPosition",[t])},n.prototype.setProps=function(){var t=this,e=document.body.style;t.positionProp=!0===t.options.vertical?"top":"left","top"===t.positionProp?t.$slider.addClass("slick-vertical"):t.$slider.removeClass("slick-vertical"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||!0===t.options.useCSS&&(t.cssTransitions=!0),t.options.fade&&("number"==typeof t.options.zIndex?t.options.zIndex<3&&(t.options.zIndex=3):t.options.zIndex=t.defaults.zIndex),void 0!==e.OTransform&&(t.animType="OTransform",t.transformType="-o-transform",t.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.MozTransform&&(t.animType="MozTransform",t.transformType="-moz-transform",t.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(t.animType=!1)),void 0!==e.webkitTransform&&(t.animType="webkitTransform",t.transformType="-webkit-transform",t.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.msTransform&&(t.animType="msTransform",t.transformType="-ms-transform",t.transitionType="msTransition",void 0===e.msTransform&&(t.animType=!1)),void 0!==e.transform&&!1!==t.animType&&(t.animType="transform",t.transformType="transform",t.transitionType="transition"),t.transformsEnabled=t.options.useTransform&&null!==t.animType&&!1!==t.animType},n.prototype.setSlideClasses=function(t){var e,n,o,i,r=this;if(n=r.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),r.$slides.eq(t).addClass("slick-current"),!0===r.options.centerMode){var s=r.options.slidesToShow%2==0?1:0;e=Math.floor(r.options.slidesToShow/2),!0===r.options.infinite&&(t>=e&&t<=r.slideCount-1-e?r.$slides.slice(t-e+s,t+e+1).addClass("slick-active").attr("aria-hidden","false"):(o=r.options.slidesToShow+t,n.slice(o-e+1+s,o+e+2).addClass("slick-active").attr("aria-hidden","false")),0===t?n.eq(n.length-1-r.options.slidesToShow).addClass("slick-center"):t===r.slideCount-1&&n.eq(r.options.slidesToShow).addClass("slick-center")),r.$slides.eq(t).addClass("slick-center")}else t>=0&&t<=r.slideCount-r.options.slidesToShow?r.$slides.slice(t,t+r.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):n.length<=r.options.slidesToShow?n.addClass("slick-active").attr("aria-hidden","false"):(i=r.slideCount%r.options.slidesToShow,o=!0===r.options.infinite?r.options.slidesToShow+t:t,r.options.slidesToShow==r.options.slidesToScroll&&r.slideCount-t<r.options.slidesToShow?n.slice(o-(r.options.slidesToShow-i),o+i).addClass("slick-active").attr("aria-hidden","false"):n.slice(o,o+r.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==r.options.lazyLoad&&"anticipated"!==r.options.lazyLoad||r.lazyLoad()},n.prototype.setupInfinite=function(){var t,n,o,i=this;if(!0===i.options.fade&&(i.options.centerMode=!1),!0===i.options.infinite&&!1===i.options.fade&&(n=null,i.slideCount>i.options.slidesToShow)){for(o=!0===i.options.centerMode?i.options.slidesToShow+1:i.options.slidesToShow,t=i.slideCount;t>i.slideCount-o;t-=1)n=t-1,e(i.$slides[n]).clone(!0).attr("id","").attr("data-slick-index",n-i.slideCount).prependTo(i.$slideTrack).addClass("slick-cloned");for(t=0;t<o+i.slideCount;t+=1)n=t,e(i.$slides[n]).clone(!0).attr("id","").attr("data-slick-index",n+i.slideCount).appendTo(i.$slideTrack).addClass("slick-cloned");i.$slideTrack.find(".slick-cloned").find("[id]").each((function(){e(this).attr("id","")}))}},n.prototype.interrupt=function(t){var e=this;t||e.autoPlay(),e.interrupted=t},n.prototype.selectHandler=function(t){var n=this,o=e(t.target).is(".slick-slide")?e(t.target):e(t.target).parents(".slick-slide"),i=parseInt(o.attr("data-slick-index"));return i||(i=0),n.slideCount<=n.options.slidesToShow?void n.slideHandler(i,!1,!0):void n.slideHandler(i)},n.prototype.slideHandler=function(t,e,n){var o,i,r,s,a,l=null,c=this;if(e=e||!1,!(!0===c.animating&&!0===c.options.waitForAnimate||!0===c.options.fade&&c.currentSlide===t))return!1===e&&c.asNavFor(t),o=t,l=c.getLeft(o),s=c.getLeft(c.currentSlide),c.currentLeft=null===c.swipeLeft?s:c.swipeLeft,!1===c.options.infinite&&!1===c.options.centerMode&&(t<0||t>c.getDotCount()*c.options.slidesToScroll)||!1===c.options.infinite&&!0===c.options.centerMode&&(t<0||t>c.slideCount-c.options.slidesToScroll)?void(!1===c.options.fade&&(o=c.currentSlide,!0!==n&&c.slideCount>c.options.slidesToShow?c.animateSlide(s,(function(){c.postSlide(o)})):c.postSlide(o))):(c.options.autoplay&&clearInterval(c.autoPlayTimer),i=o<0?c.slideCount%c.options.slidesToScroll!=0?c.slideCount-c.slideCount%c.options.slidesToScroll:c.slideCount+o:o>=c.slideCount?c.slideCount%c.options.slidesToScroll!=0?0:o-c.slideCount:o,c.animating=!0,c.$slider.trigger("beforeChange",[c,c.currentSlide,i]),r=c.currentSlide,c.currentSlide=i,c.setSlideClasses(c.currentSlide),c.options.asNavFor&&((a=(a=c.getNavTarget()).slick("getSlick")).slideCount<=a.options.slidesToShow&&a.setSlideClasses(c.currentSlide)),c.updateDots(),c.updateArrows(),!0===c.options.fade?(!0!==n?(c.fadeSlideOut(r),c.fadeSlide(i,(function(){c.postSlide(i)}))):c.postSlide(i),void c.animateHeight()):void(!0!==n&&c.slideCount>c.options.slidesToShow?c.animateSlide(l,(function(){c.postSlide(i)})):c.postSlide(i)))},n.prototype.startLoad=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.hide(),t.$nextArrow.hide()),!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&t.$dots.hide(),t.$slider.addClass("slick-loading")},n.prototype.swipeDirection=function(){var t,e,n,o,i=this;return t=i.touchObject.startX-i.touchObject.curX,e=i.touchObject.startY-i.touchObject.curY,n=Math.atan2(e,t),(o=Math.round(180*n/Math.PI))<0&&(o=360-Math.abs(o)),o<=45&&o>=0||o<=360&&o>=315?!1===i.options.rtl?"left":"right":o>=135&&o<=225?!1===i.options.rtl?"right":"left":!0===i.options.verticalSwiping?o>=35&&o<=135?"down":"up":"vertical"},n.prototype.swipeEnd=function(t){var e,n,o=this;if(o.dragging=!1,o.swiping=!1,o.scrolling)return o.scrolling=!1,!1;if(o.interrupted=!1,o.shouldClick=!(o.touchObject.swipeLength>10),void 0===o.touchObject.curX)return!1;if(!0===o.touchObject.edgeHit&&o.$slider.trigger("edge",[o,o.swipeDirection()]),o.touchObject.swipeLength>=o.touchObject.minSwipe){switch(n=o.swipeDirection()){case"left":case"down":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide+o.getSlideCount()):o.currentSlide+o.getSlideCount(),o.currentDirection=0;break;case"right":case"up":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide-o.getSlideCount()):o.currentSlide-o.getSlideCount(),o.currentDirection=1}"vertical"!=n&&(o.slideHandler(e),o.touchObject={},o.$slider.trigger("swipe",[o,n]))}else o.touchObject.startX!==o.touchObject.curX&&(o.slideHandler(o.currentSlide),o.touchObject={})},n.prototype.swipeHandler=function(t){var e=this;if(!(!1===e.options.swipe||"ontouchend"in document&&!1===e.options.swipe||!1===e.options.draggable&&-1!==t.type.indexOf("mouse")))switch(e.touchObject.fingerCount=t.originalEvent&&void 0!==t.originalEvent.touches?t.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,!0===e.options.verticalSwiping&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),t.data.action){case"start":e.swipeStart(t);break;case"move":e.swipeMove(t);break;case"end":e.swipeEnd(t)}},n.prototype.swipeMove=function(t){var e,n,o,i,r,s,a=this;return r=void 0!==t.originalEvent?t.originalEvent.touches:null,!(!a.dragging||a.scrolling||r&&1!==r.length)&&(e=a.getLeft(a.currentSlide),a.touchObject.curX=void 0!==r?r[0].pageX:t.clientX,a.touchObject.curY=void 0!==r?r[0].pageY:t.clientY,a.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(a.touchObject.curX-a.touchObject.startX,2))),s=Math.round(Math.sqrt(Math.pow(a.touchObject.curY-a.touchObject.startY,2))),!a.options.verticalSwiping&&!a.swiping&&s>4?(a.scrolling=!0,!1):(!0===a.options.verticalSwiping&&(a.touchObject.swipeLength=s),n=a.swipeDirection(),void 0!==t.originalEvent&&a.touchObject.swipeLength>4&&(a.swiping=!0,t.preventDefault()),i=(!1===a.options.rtl?1:-1)*(a.touchObject.curX>a.touchObject.startX?1:-1),!0===a.options.verticalSwiping&&(i=a.touchObject.curY>a.touchObject.startY?1:-1),o=a.touchObject.swipeLength,a.touchObject.edgeHit=!1,!1===a.options.infinite&&(0===a.currentSlide&&"right"===n||a.currentSlide>=a.getDotCount()&&"left"===n)&&(o=a.touchObject.swipeLength*a.options.edgeFriction,a.touchObject.edgeHit=!0),!1===a.options.vertical?a.swipeLeft=e+o*i:a.swipeLeft=e+o*(a.$list.height()/a.listWidth)*i,!0===a.options.verticalSwiping&&(a.swipeLeft=e+o*i),!0!==a.options.fade&&!1!==a.options.touchMove&&(!0===a.animating?(a.swipeLeft=null,!1):void a.setCSS(a.swipeLeft))))},n.prototype.swipeStart=function(t){var e,n=this;return n.interrupted=!0,1!==n.touchObject.fingerCount||n.slideCount<=n.options.slidesToShow?(n.touchObject={},!1):(void 0!==t.originalEvent&&void 0!==t.originalEvent.touches&&(e=t.originalEvent.touches[0]),n.touchObject.startX=n.touchObject.curX=void 0!==e?e.pageX:t.clientX,n.touchObject.startY=n.touchObject.curY=void 0!==e?e.pageY:t.clientY,void(n.dragging=!0))},n.prototype.unfilterSlides=n.prototype.slickUnfilter=function(){var t=this;null!==t.$slidesCache&&(t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.appendTo(t.$slideTrack),t.reinit())},n.prototype.unload=function(){var t=this;e(".slick-cloned",t.$slider).remove(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove(),t.$nextArrow&&t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove(),t.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},n.prototype.unslick=function(t){var e=this;e.$slider.trigger("unslick",[e,t]),e.destroy()},n.prototype.updateArrows=function(){var t=this;Math.floor(t.options.slidesToShow/2),!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&!t.options.infinite&&(t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===t.currentSlide?(t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):(t.currentSlide>=t.slideCount-t.options.slidesToShow&&!1===t.options.centerMode||t.currentSlide>=t.slideCount-1&&!0===t.options.centerMode)&&(t.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},n.prototype.updateDots=function(){var t=this;null!==t.$dots&&(t.$dots.find("li").removeClass("slick-active").end(),t.$dots.find("li").eq(Math.floor(t.currentSlide/t.options.slidesToScroll)).addClass("slick-active"))},n.prototype.visibility=function(){var t=this;t.options.autoplay&&(document[t.hidden]?t.interrupted=!0:t.interrupted=!1)},e.fn.slick=function(){var e,o,i=this,r=arguments[0],s=Array.prototype.slice.call(arguments,1),a=i.length;for(e=0;e<a;e++)if("object"==t(r)||void 0===r?i[e].slick=new n(i[e],r):o=i[e].slick[r].apply(i[e].slick,s),void 0!==o)return o;return i}},void 0===(s="function"==typeof i?i.apply(n,r):i)||(e.exports=s)}()},function(t,e,n){var o,i,r,s,a;o=n(3),i=function(t){return Array.prototype.slice.call(t)},r=function(t){return function(){t.apply(this,i(arguments))}},IntersectionObserver&&(a=function(t){return t.forEach((function(t){if(t.intersectionRatio>0)return o(t.target).data("lazyInit")(),s.unobserve(t.target)}))},s=new IntersectionObserver(a,{threshold:0}),r=function(t){return function(){var e;return e=i(arguments),s.observe(this),o(this).data("lazyInit",function(n){return function(){return t.apply(n,e)}}(this))}}),t.exports=r},function(t,e,n){n(3),n(27),t.exports={init:function(t){return t.$target.find(".tooltip").tipso({position:"top-right",background:"#fff",color:"#000",useTitle:!0,tooltipHover:!0})}}},function(e,n,o){var i,r,s;r=[o(3)],i=function(e){function n(n,o){this.element=n,this.$element=e(this.element),this.doc=e(document),this.win=e(window),this.settings=e.extend({},a,o),"object"==t(this.$element.data("tipso"))&&e.extend(this.settings,this.$element.data("tipso"));for(var i=Object.keys(this.$element.data()),r={},c=0;c<i.length;c++){var d=i[c].replace(s,"");if(""!==d)for(var u in r[d=d.charAt(0).toLowerCase()+d.slice(1)]=this.$element.data(i[c]),this.settings)u.toLowerCase()==d&&(this.settings[u]=r[d])}this._defaults=a,this._name=s,this._title=this.$element.attr("title"),this.mode="hide",this.ieFade=!l,this.settings.preferedPosition=this.settings.position,this.init()}function o(t){var n=t.clone();n.css("visibility","hidden"),e("body").append(n);var o=n.outerHeight(),i=n.outerWidth();return n.remove(),{width:i,height:o}}function i(t){t.removeClass("top_right_corner bottom_right_corner top_left_corner bottom_left_corner"),t.find(".tipso_title").removeClass("top_right_corner bottom_right_corner top_left_corner bottom_left_corner")}function r(t){var n,s,a,l=t.tooltip(),c=t.$element,d=t,u=e(window),p=10,f=d.settings.background,h=d.titleContent();switch(void 0!==h&&""!==h&&(f=d.settings.titleBackground),c.parent().outerWidth()>u.outerWidth()&&(u=c.parent()),d.settings.position){case"top-right":s=c.offset().left+c.outerWidth(),n=c.offset().top-o(l).height-p,l.find(".tipso_arrow").css({marginLeft:-d.settings.arrowWidth,marginTop:""}),n<u.scrollTop()?(n=c.offset().top+c.outerHeight()+p,l.find(".tipso_arrow").css({"border-bottom-color":f,"border-top-color":"transparent","border-left-color":"transparent","border-right-color":"transparent"}),i(l),l.addClass("bottom_right_corner"),l.find(".tipso_title").addClass("bottom_right_corner"),l.find(".tipso_arrow").css({"border-left-color":f}),l.removeClass("top-right top bottom left right"),l.addClass("bottom")):(l.find(".tipso_arrow").css({"border-top-color":d.settings.background,"border-bottom-color":"transparent ","border-left-color":"transparent","border-right-color":"transparent"}),i(l),l.addClass("top_right_corner"),l.find(".tipso_arrow").css({"border-left-color":d.settings.background}),l.removeClass("top bottom left right"),l.addClass("top"));break;case"top-left":s=c.offset().left-o(l).width,n=c.offset().top-o(l).height-p,l.find(".tipso_arrow").css({marginLeft:-d.settings.arrowWidth,marginTop:""}),n<u.scrollTop()?(n=c.offset().top+c.outerHeight()+p,l.find(".tipso_arrow").css({"border-bottom-color":f,"border-top-color":"transparent","border-left-color":"transparent","border-right-color":"transparent"}),i(l),l.addClass("bottom_left_corner"),l.find(".tipso_title").addClass("bottom_left_corner"),l.find(".tipso_arrow").css({"border-right-color":f}),l.removeClass("top-right top bottom left right"),l.addClass("bottom")):(l.find(".tipso_arrow").css({"border-top-color":d.settings.background,"border-bottom-color":"transparent ","border-left-color":"transparent","border-right-color":"transparent"}),i(l),l.addClass("top_left_corner"),l.find(".tipso_arrow").css({"border-right-color":d.settings.background}),l.removeClass("top bottom left right"),l.addClass("top"));break;case"bottom-right":s=c.offset().left+c.outerWidth(),n=c.offset().top+c.outerHeight()+p,l.find(".tipso_arrow").css({marginLeft:-d.settings.arrowWidth,marginTop:""}),n+o(l).height>u.scrollTop()+u.outerHeight()?(n=c.offset().top-o(l).height-p,l.find(".tipso_arrow").css({"border-bottom-color":"transparent","border-top-color":d.settings.background,"border-left-color":"transparent","border-right-color":"transparent"}),i(l),l.addClass("top_right_corner"),l.find(".tipso_title").addClass("top_left_corner"),l.find(".tipso_arrow").css({"border-left-color":d.settings.background}),l.removeClass("top-right top bottom left right"),l.addClass("top")):(l.find(".tipso_arrow").css({"border-top-color":"transparent","border-bottom-color":f,"border-left-color":"transparent","border-right-color":"transparent"}),i(l),l.addClass("bottom_right_corner"),l.find(".tipso_title").addClass("bottom_right_corner"),l.find(".tipso_arrow").css({"border-left-color":f}),l.removeClass("top bottom left right"),l.addClass("bottom"));break;case"bottom-left":s=c.offset().left-o(l).width,n=c.offset().top+c.outerHeight()+p,l.find(".tipso_arrow").css({marginLeft:-d.settings.arrowWidth,marginTop:""}),n+o(l).height>u.scrollTop()+u.outerHeight()?(n=c.offset().top-o(l).height-p,l.find(".tipso_arrow").css({"border-bottom-color":"transparent","border-top-color":d.settings.background,"border-left-color":"transparent","border-right-color":"transparent"}),i(l),l.addClass("top_left_corner"),l.find(".tipso_title").addClass("top_left_corner"),l.find(".tipso_arrow").css({"border-right-color":d.settings.background}),l.removeClass("top-right top bottom left right"),l.addClass("top")):(l.find(".tipso_arrow").css({"border-top-color":"transparent","border-bottom-color":f,"border-left-color":"transparent","border-right-color":"transparent"}),i(l),l.addClass("bottom_left_corner"),l.find(".tipso_title").addClass("bottom_left_corner"),l.find(".tipso_arrow").css({"border-right-color":f}),l.removeClass("top bottom left right"),l.addClass("bottom"));break;case"top":s=c.offset().left+c.outerWidth()/2-o(l).width/2,n=c.offset().top-o(l).height-p,l.find(".tipso_arrow").css({marginLeft:-d.settings.arrowWidth,marginTop:""}),n<u.scrollTop()?(n=c.offset().top+c.outerHeight()+p,l.find(".tipso_arrow").css({"border-bottom-color":f,"border-top-color":"transparent","border-left-color":"transparent","border-right-color":"transparent"}),l.removeClass("top bottom left right"),l.addClass("bottom")):(l.find(".tipso_arrow").css({"border-top-color":d.settings.background,"border-bottom-color":"transparent","border-left-color":"transparent","border-right-color":"transparent"}),l.removeClass("top bottom left right"),l.addClass("top"));break;case"bottom":s=c.offset().left+c.outerWidth()/2-o(l).width/2,n=c.offset().top+c.outerHeight()+p,l.find(".tipso_arrow").css({marginLeft:-d.settings.arrowWidth,marginTop:""}),n+o(l).height>u.scrollTop()+u.outerHeight()?(n=c.offset().top-o(l).height-p,l.find(".tipso_arrow").css({"border-top-color":d.settings.background,"border-bottom-color":"transparent","border-left-color":"transparent","border-right-color":"transparent"}),l.removeClass("top bottom left right"),l.addClass("top")):(l.find(".tipso_arrow").css({"border-bottom-color":f,"border-top-color":"transparent","border-left-color":"transparent","border-right-color":"transparent"}),l.removeClass("top bottom left right"),l.addClass(d.settings.position));break;case"left":s=c.offset().left-o(l).width-p,n=c.offset().top+c.outerHeight()/2-o(l).height/2,l.find(".tipso_arrow").css({marginTop:-d.settings.arrowWidth,marginLeft:""}),s<u.scrollLeft()?(s=c.offset().left+c.outerWidth()+p,l.find(".tipso_arrow").css({"border-right-color":d.settings.background,"border-left-color":"transparent","border-top-color":"transparent","border-bottom-color":"transparent"}),l.removeClass("top bottom left right"),l.addClass("right")):(l.find(".tipso_arrow").css({"border-left-color":d.settings.background,"border-right-color":"transparent","border-top-color":"transparent","border-bottom-color":"transparent"}),l.removeClass("top bottom left right"),l.addClass(d.settings.position));break;case"right":s=c.offset().left+c.outerWidth()+p,n=c.offset().top+c.outerHeight()/2-o(l).height/2,l.find(".tipso_arrow").css({marginTop:-d.settings.arrowWidth,marginLeft:""}),s+p+d.settings.width>u.scrollLeft()+u.outerWidth()?(s=c.offset().left-o(l).width-p,l.find(".tipso_arrow").css({"border-left-color":d.settings.background,"border-right-color":"transparent","border-top-color":"transparent","border-bottom-color":"transparent"}),l.removeClass("top bottom left right"),l.addClass("left")):(l.find(".tipso_arrow").css({"border-right-color":d.settings.background,"border-left-color":"transparent","border-top-color":"transparent","border-bottom-color":"transparent"}),l.removeClass("top bottom left right"),l.addClass(d.settings.position))}"top-right"===d.settings.position&&l.find(".tipso_arrow").css({"margin-left":-d.settings.width/2}),"top-left"===d.settings.position&&l.find(".tipso_arrow").eq(0).css({"margin-left":d.settings.width/2-2*d.settings.arrowWidth}),"bottom-right"===d.settings.position&&l.find(".tipso_arrow").eq(0).css({"margin-left":-d.settings.width/2,"margin-top":""}),"bottom-left"===d.settings.position&&l.find(".tipso_arrow").eq(0).css({"margin-left":d.settings.width/2-2*d.settings.arrowWidth,"margin-top":""}),s<u.scrollLeft()&&("bottom"===d.settings.position||"top"===d.settings.position)&&(l.find(".tipso_arrow").css({marginLeft:s-d.settings.arrowWidth}),s=0),s+d.settings.width>u.outerWidth()&&("bottom"===d.settings.position||"top"===d.settings.position)&&(a=u.outerWidth()-(s+d.settings.width),l.find(".tipso_arrow").css({marginLeft:-a-d.settings.arrowWidth,marginTop:""}),s+=a),s<u.scrollLeft()&&("left"===d.settings.position||"right"===d.settings.position||"top-right"===d.settings.position||"top-left"===d.settings.position||"bottom-right"===d.settings.position||"bottom-left"===d.settings.position)&&(s=c.offset().left+c.outerWidth()/2-o(l).width/2,l.find(".tipso_arrow").css({marginLeft:-d.settings.arrowWidth,marginTop:""}),(n=c.offset().top-o(l).height-p)<u.scrollTop()?(n=c.offset().top+c.outerHeight()+p,l.find(".tipso_arrow").css({"border-bottom-color":f,"border-top-color":"transparent","border-left-color":"transparent","border-right-color":"transparent"}),l.removeClass("top bottom left right"),i(l),l.addClass("bottom")):(l.find(".tipso_arrow").css({"border-top-color":d.settings.background,"border-bottom-color":"transparent","border-left-color":"transparent","border-right-color":"transparent"}),l.removeClass("top bottom left right"),i(l),l.addClass("top")),s+d.settings.width>u.outerWidth()&&(a=u.outerWidth()-(s+d.settings.width),l.find(".tipso_arrow").css({marginLeft:-a-d.settings.arrowWidth,marginTop:""}),s+=a),s<u.scrollLeft()&&(l.find(".tipso_arrow").css({marginLeft:s-d.settings.arrowWidth}),s=0)),s+d.settings.width>u.outerWidth()&&("left"===d.settings.position||"right"===d.settings.position||"top-right"===d.settings.position||"top-left"===d.settings.position||"bottom-right"===d.settings.position||"bottom-right"===d.settings.position)&&(s=c.offset().left+c.outerWidth()/2-o(l).width/2,l.find(".tipso_arrow").css({marginLeft:-d.settings.arrowWidth,marginTop:""}),(n=c.offset().top-o(l).height-p)<u.scrollTop()?(n=c.offset().top+c.outerHeight()+p,l.find(".tipso_arrow").css({"border-bottom-color":f,"border-top-color":"transparent","border-left-color":"transparent","border-right-color":"transparent"}),i(l),l.removeClass("top bottom left right"),l.addClass("bottom")):(l.find(".tipso_arrow").css({"border-top-color":d.settings.background,"border-bottom-color":"transparent","border-left-color":"transparent","border-right-color":"transparent"}),i(l),l.removeClass("top bottom left right"),l.addClass("top")),s+d.settings.width>u.outerWidth()&&(a=u.outerWidth()-(s+d.settings.width),l.find(".tipso_arrow").css({marginLeft:-a-d.settings.arrowWidth,marginTop:""}),s+=a),s<u.scrollLeft()&&(l.find(".tipso_arrow").css({marginLeft:s-d.settings.arrowWidth}),s=0)),l.css({left:s+d.settings.offsetX,top:n+d.settings.offsetY}),n<u.scrollTop()&&("right"===d.settings.position||"left"===d.settings.position)&&(c.tipso("update","position","bottom"),r(d)),n+o(l).height>u.scrollTop()+u.outerHeight()&&("right"===d.settings.position||"left"===d.settings.position)&&(c.tipso("update","position","top"),r(d))}var s="tipso",a={speed:400,background:"#55b555",titleBackground:"#333333",color:"#ffffff",titleColor:"#ffffff",titleContent:"",showArrow:!0,position:"top",width:200,maxWidth:"",delay:200,hideDelay:0,animationIn:"",animationOut:"",offsetX:0,offsetY:0,arrowWidth:8,tooltipHover:!1,content:null,ajaxContentUrl:null,ajaxContentBuffer:0,contentElementId:null,useTitle:!1,templateEngineFunc:null,onBeforeShow:null,onShow:null,onHide:null};e.extend(n.prototype,{init:function(){var t=this,e=this.$element;if(this.doc,e.addClass("tipso_style").removeAttr("title"),t.settings.tooltipHover){var n=null,o=null;e.on("mouseover."+s,(function(){clearTimeout(n),clearTimeout(o),o=setTimeout((function(){t.show()}),150)})),e.on("mouseout."+s,(function(){clearTimeout(n),clearTimeout(o),n=setTimeout((function(){t.hide()}),200),t.tooltip().on("mouseover."+s,(function(){t.mode="tooltipHover"})).on("mouseout."+s,(function(){t.mode="show",clearTimeout(n),n=setTimeout((function(){t.hide()}),200)}))}))}else e.on("mouseover."+s,(function(){t.show()})),e.on("mouseout."+s,(function(){t.hide()}));t.settings.ajaxContentUrl&&(t.ajaxContent=null)},tooltip:function(){return this.tipso_bubble||(this.tipso_bubble=e('<div class="tipso_bubble"><div class="tipso_title"></div><div class="tipso_content"></div><div class="tipso_arrow"></div></div>')),this.tipso_bubble},show:function(){var t=this.tooltip(),n=this,o=this.win;!1===n.settings.showArrow?t.find(".tipso_arrow").hide():t.find(".tipso_arrow").show(),"hide"===n.mode&&(e.isFunction(n.settings.onBeforeShow)&&n.settings.onBeforeShow(n.$element,n.element,n),n.settings.size&&t.addClass(n.settings.size),n.settings.width?t.css({background:n.settings.background,color:n.settings.color,width:n.settings.width}).hide():n.settings.maxWidth?t.css({background:n.settings.background,color:n.settings.color,maxWidth:n.settings.maxWidth}).hide():t.css({background:n.settings.background,color:n.settings.color,width:200}).hide(),t.find(".tipso_title").css({background:n.settings.titleBackground,color:n.settings.titleColor}),t.find(".tipso_content").html(n.content()),t.find(".tipso_title").html(n.titleContent()),r(n),o.on("resize."+s,(function(){n.settings.position=n.settings.preferedPosition,r(n)})),window.clearTimeout(n.timeout),n.timeout=null,n.timeout=window.setTimeout((function(){n.ieFade||""===n.settings.animationIn||""===n.settings.animationOut?t.appendTo("body").stop(!0,!0).fadeIn(n.settings.speed,(function(){n.mode="show",e.isFunction(n.settings.onShow)&&n.settings.onShow(n.$element,n.element,n)})):t.remove().appendTo("body").stop(!0,!0).removeClass("animated "+n.settings.animationOut).addClass("noAnimation").removeClass("noAnimation").addClass("animated "+n.settings.animationIn).fadeIn(n.settings.speed,(function(){e(this).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",(function(){e(this).removeClass("animated "+n.settings.animationIn)})),n.mode="show",e.isFunction(n.settings.onShow)&&n.settings.onShow(n.$element,n.element,n),o.off("resize."+s,null,"tipsoResizeHandler")}))}),n.settings.delay))},hide:function(t){var n=this,o=this.win,i=this.tooltip(),r=n.settings.hideDelay;t&&(r=0,n.mode="show"),window.clearTimeout(n.timeout),n.timeout=null,n.timeout=window.setTimeout((function(){"tooltipHover"!==n.mode&&(n.ieFade||""===n.settings.animationIn||""===n.settings.animationOut?i.stop(!0,!0).fadeOut(n.settings.speed,(function(){e(this).remove(),e.isFunction(n.settings.onHide)&&"show"===n.mode&&n.settings.onHide(n.$element,n.element,n),n.mode="hide",o.off("resize."+s,null,"tipsoResizeHandler")})):i.stop(!0,!0).removeClass("animated "+n.settings.animationIn).addClass("noAnimation").removeClass("noAnimation").addClass("animated "+n.settings.animationOut).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",(function(){e(this).removeClass("animated "+n.settings.animationOut).remove(),e.isFunction(n.settings.onHide)&&"show"===n.mode&&n.settings.onHide(n.$element,n.element,n),n.mode="hide",o.off("resize."+s,null,"tipsoResizeHandler")})))}),r)},close:function(){this.hide(!0)},destroy:function(){var t=this.$element,e=this.win;this.doc,t.off("."+s),e.off("resize."+s,null,"tipsoResizeHandler"),t.removeData(s),t.removeClass("tipso_style").attr("title",this._title)},titleContent:function(){var t=this.$element,e=this;return e.settings.titleContent?e.settings.titleContent:t.data("tipso-title")},content:function(){var t,n=this.$element,o=this,i=this._title;return o.settings.ajaxContentUrl?o._ajaxContent?t=o._ajaxContent:(o._ajaxContent=t=e.ajax({type:"GET",url:o.settings.ajaxContentUrl,async:!1}).responseText,o.settings.ajaxContentBuffer>0?setTimeout((function(){o._ajaxContent=null}),o.settings.ajaxContentBuffer):o._ajaxContent=null):o.settings.contentElementId?t=e("#"+o.settings.contentElementId).text():o.settings.content?t=o.settings.content:!0===o.settings.useTitle?t=i:"string"==typeof n.data("tipso")&&(t=n.data("tipso")),null!==o.settings.templateEngineFunc&&(t=o.settings.templateEngineFunc(t)),t},update:function(t,e){var n=this;return e?void(n.settings[t]=e):n.settings[t]}});var l=function(){var t=document.createElement("p").style,e=["ms","O","Moz","Webkit"];if(""===t.transition)return!0;for(;e.length;)if(e.pop()+"Transition"in t)return!0;return!1}();e[s]=e.fn[s]=function(o){var i,r=arguments;return void 0===o||"object"==t(o)?(this instanceof e||e.extend(a,o),this.each((function(){e.data(this,"plugin_"+s)||e.data(this,"plugin_"+s,new n(this,o))}))):"string"==typeof o&&"_"!==o[0]&&"init"!==o?(this.each((function(){var t=e.data(this,"plugin_"+s);t||(t=e.data(this,"plugin_"+s,new n(this,o))),t instanceof n&&"function"==typeof t[o]&&(i=t[o].apply(t,Array.prototype.slice.call(r,1))),"destroy"===o&&e.data(this,"plugin_"+s,null)})),void 0!==i?i:this):void 0}},void 0===(s="function"==typeof i?i.apply(n,r):i)||(e.exports=s)},function(t,e,n){var o,i;o=n(3),i=n(29),t.exports={init:function(t){return t.$target.find(".js-scroll-nav").each((function(){var t,e,n,r,s,a,l,c,d,u,p,f,h,g,m,v;if(t=o(this),e=t.parent(),p=!1,m=0,v=t.get(0).scrollWidth,c=!1,r=function(t){var e;return e="scroll-nav scroll-nav--"+t,c&&(e+=" scroll-nav--background"),"<a href='#' class='"+e+"'><span class='icon icon-chevron-"+t+"'></span></a>"},d=function(){return Math.abs(v-t.innerWidth())>2},u=function(){var r;if(p=!0,t.filter(".menu-secondary__list").length&&(c=!0),n("right"),t.css("marginBottom",-i()),e.on("mousedown touchstart",".scroll-nav",(function(t){return t.preventDefault(),o(this).hasClass("scroll-nav--right")?f("right"):o(this).hasClass("scroll-nav--left")?f("left"):void 0})).on("mouseup touchend",".scroll-nav",(function(){return t.stop()})).on("click",".scroll-nav",(function(t){return t.preventDefault()})),t.on("scroll",(function(){return l()})),t.find(".menu-secondary__link.is-active").length&&((r=t.find(".menu-secondary__link.is-active").parent()).closest(".menu-secondary__wrap"),r.offset().left+r.outerWidth()>t.width()))return t.scrollLeft(r.offset().left+r.outerWidth()),e.find(".scroll-nav--right").trigger("mousedown")},h=function(){return v=t.get(0).scrollWidth,l()},s=function(){return p=!1,m=0,g("left"),g("right"),t.css("marginBottom",""),e.off("mousedown touchstart mouseup touchend",".scroll-nav"),t.off("scroll")},n=function(n){if(!e.find(".scroll-nav--"+n).length)return t.after(r(n))},g=function(t){var n;if((n=e.find(".scroll-nav--"+t)).length)return n.remove()},l=function(){return(m=t.scrollLeft())>=5?n("left"):g("left"),v-t.innerWidth()-m<=5?g("right"):n("right")},a=function(){return d()?p?h():u():p?s():void 0},f=function(e){var n,o,i;return.31,0,n=0,"right"===e?(i=v,n=v-t.innerWidth()):"left"===e&&(i=0,n=m),o=n/.31,t.stop().animate({scrollLeft:i},o,"linear")},o(window).on("resize",a),d())return u()}))}}},function(t,e,n){var o,i,r;i=[],o=function(){"use strict";function t(){var t,e=document.body,n=document.createElement("div"),o=n.style;return o.position="absolute",o.top=o.left="-9999px",o.width=o.height="100px",o.overflow="scroll",e.appendChild(n),t=n.offsetWidth-n.clientWidth,e.removeChild(n),t}return t},void 0===(r="function"==typeof o?o.apply(e,i):o)||(t.exports=r)},function(t,e,n){n(3),n(31),t.exports={init:function(t){var e;return(e=t.$target).find(".js-scrollbar--y").tinyscrollbar(),e.find(".js-scrollbar--x").tinyscrollbar({axis:"x"})}}},function(t,e,n){var o,i,r;i=[n(3)],o=function(t){"use strict";function e(e,i){function r(){return h.update(),a(),h}function s(){b.css(k,h.thumbPosition),m.css(k,-h.contentPosition),v.css(T,h.trackSize),y.css(T,h.trackSize),b.css(T,h.thumbSize)}function a(){w&&(g[0].ontouchstart=function(t){1===t.touches.length&&(t.stopPropagation(),d(t.touches[0]))}),b.bind("mousedown",(function(t){t.stopPropagation(),d(t)})),y.bind("mousedown",(function(t){d(t,!0)})),t(window).resize((function(){h.update("relative")})),h.options.wheel&&window.addEventListener?e[0].addEventListener(x,u,!1):h.options.wheel&&(e[0].onmousewheel=u)}function l(){return h.contentPosition>0}function c(){return h.contentPosition<=h.contentSize-h.viewportSize-5}function d(e,o){h.hasContentToSroll&&(t("body").addClass("noSelect"),S=o?b.offset()[k]:C?e.pageX:e.pageY,w&&(document.ontouchmove=function(t){(h.options.touchLock||l()&&c())&&t.preventDefault(),t.touches[0][n+"Touch"]=1,p(t.touches[0])},document.ontouchend=f),t(document).bind("mousemove",p),t(document).bind("mouseup",f),b.bind("mouseup",f),y.bind("mouseup",f),p(e))}function u(n){if(h.hasContentToSroll){var o=n||window.event,i=-(o.deltaY||o.detail||-1/3*o.wheelDelta)/40,r=1===o.deltaMode?h.options.wheelSpeed:1;h.contentPosition-=i*r*h.options.wheelSpeed,h.contentPosition=Math.min(h.contentSize-h.viewportSize,Math.max(0,h.contentPosition)),h.thumbPosition=h.contentPosition/h.trackRatio,e.trigger("move"),b.css(k,h.thumbPosition),m.css(k,-h.contentPosition),(h.options.wheelLock||l()&&c())&&(o=t.event.fix(o)).preventDefault()}n.stopPropagation()}function p(t){if(h.hasContentToSroll){var o=C?t.pageX:t.pageY,i=t[n+"Touch"]?S-o:o-S,r=Math.min(h.trackSize-h.thumbSize,Math.max(0,h.thumbPosition+i));h.contentPosition=r*h.trackRatio,e.trigger("move"),b.css(k,r),m.css(k,-h.contentPosition)}}function f(){h.thumbPosition=parseInt(b.css(k),10)||0,t("body").removeClass("noSelect"),t(document).unbind("mousemove",p),t(document).unbind("mouseup",f),b.unbind("mouseup",f),y.unbind("mouseup",f),document.ontouchmove=document.ontouchend=null}this.options=t.extend({},o,i),this._defaults=o,this._name=n;var h=this,g=e.find(".viewport"),m=e.find(".overview"),v=e.find(".scrollbar"),y=v.find(".track"),b=v.find(".thumb"),w="ontouchstart"in document.documentElement,x="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll",C="x"===this.options.axis,T=C?"width":"height",k=C?"left":"top",S=0;return this.contentPosition=0,this.viewportSize=0,this.contentSize=0,this.contentRatio=0,this.trackSize=0,this.trackRatio=0,this.thumbSize=0,this.thumbPosition=0,this.hasContentToSroll=!1,this.update=function(t){var e=T.charAt(0).toUpperCase()+T.slice(1).toLowerCase();switch(this.viewportSize=g[0]["offset"+e],this.contentSize=m[0]["scroll"+e],this.contentRatio=this.viewportSize/this.contentSize,this.trackSize=this.options.trackSize||this.viewportSize,this.thumbSize=Math.min(this.trackSize,Math.max(this.options.thumbSizeMin,this.options.thumbSize||this.trackSize*this.contentRatio)),this.trackRatio=(this.contentSize-this.viewportSize)/(this.trackSize-this.thumbSize),this.hasContentToSroll=this.contentRatio<1,v.toggleClass("disable",!this.hasContentToSroll),t){case"bottom":this.contentPosition=Math.max(this.contentSize-this.viewportSize,0);break;case"relative":this.contentPosition=Math.min(Math.max(this.contentSize-this.viewportSize,0),Math.max(0,this.contentPosition));break;default:this.contentPosition=parseInt(t,10)||0}return this.thumbPosition=this.contentPosition/this.trackRatio,s(),h},r()}var n="tinyscrollbar",o={axis:"y",wheel:!0,wheelSpeed:40,wheelLock:!0,touchLock:!0,trackSize:!1,thumbSize:!1,thumbSizeMin:20};t.fn[n]=function(o){return this.each((function(){t.data(this,"plugin_"+n)||t.data(this,"plugin_"+n,new e(t(this),o))}))}},void 0===(r="function"==typeof o?o.apply(e,i):o)||(t.exports=r)},function(t,e,n){var o;o=n(3),n(33),t.exports={init:function(t){return t.$target.find(".js-lightbox").fancybox({padding:0,animationEffect:"fade",keyboard:!0,arrows:!0,idleTime:0,buttons:["close"],thumbs:{autoStart:!0,axis:"x"},btnTpl:{arrowRight:'<a href="javascript:;" data-fancybox-prev class="fancybox-button fancybox-button--arrow_left"><span class="vhide">Další</span><span class="icon icon-angle-left"></span></a>',arrowLeft:'<a href="javascript:;" data-fancybox-next class="fancybox-button fancybox-button--arrow_right"><span class="vhide">Předchozí</span><span class="icon icon-angle-right"></span></a>'},caption:function(t,e){var n,i,r;return i="",null!=(r=o(this).data("title"))&&(i+="<p class='h5'>"+r+"</p>"),null!=(n=o(this).data("caption"))&&(i+="<p>"+n+"</p>"),i},beforeShow:function(t,e,n){if(null!=o(e.opts.$orig).data("fullscreen"))return o("html").addClass("fancybox-fullscreen")},afterShow:function(){return o(".modal__close").click((function(){return o.fancybox.close()}))},afterClose:function(){return o(".fancybox-fullscreen").removeClass("fancybox-fullscreen")}})}}},function(t,e){!function(t,e,n,o){"use strict";function i(t,e){var o,i,r,s=[],a=0;t&&t.isDefaultPrevented()||(t.preventDefault(),e=e||{},t&&t.data&&(e=f(t.data.options,e)),o=e.$target||n(t.currentTarget).trigger("blur"),(r=n.fancybox.getInstance())&&r.$trigger&&r.$trigger.is(o)||(e.selector?s=n(e.selector):(i=o.attr("data-fancybox")||"")?s=(s=t.data?t.data.items:[]).length?s.filter('[data-fancybox="'+i+'"]'):n('[data-fancybox="'+i+'"]'):s=[o],(a=n(s).index(o))<0&&(a=0),(r=n.fancybox.open(s,e,a)).$trigger=o))}if(t.console=t.console||{info:function(t){}},n&&!n.fn.fancybox){var r={closeExisting:!1,loop:!1,gutter:50,keyboard:!0,preventCaptionOverlap:!0,arrows:!0,infobar:!0,smallBtn:"auto",toolbar:"auto",buttons:["zoom","slideShow","thumbs","close"],idleTime:3,protect:!1,modal:!1,image:{preload:!1},ajax:{settings:{data:{fancybox:!0}}},iframe:{tpl:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" allowfullscreen="allowfullscreen" allow="autoplay; fullscreen" src=""></iframe>',preload:!0,css:{},attr:{scrolling:"auto"}},video:{tpl:'<video class="fancybox-video" controls controlsList="nodownload" poster="{{poster}}"><source src="{{src}}" type="{{format}}" />Sorry, your browser doesn\'t support embedded videos, <a href="{{src}}">download</a> and watch with your favorite video player!</video>',format:"",autoStart:!0},defaultType:"image",animationEffect:"zoom",animationDuration:366,zoomOpacity:"auto",transitionEffect:"fade",transitionDuration:366,slideClass:"",baseClass:"",baseTpl:'<div class="fancybox-container" role="dialog" tabindex="-1"><div class="fancybox-bg"></div><div class="fancybox-inner"><div class="fancybox-infobar"><span data-fancybox-index></span>&nbsp;/&nbsp;<span data-fancybox-count></span></div><div class="fancybox-toolbar">{{buttons}}</div><div class="fancybox-navigation">{{arrows}}</div><div class="fancybox-stage"></div><div class="fancybox-caption"><div class="fancybox-caption__body"></div></div></div></div>',spinnerTpl:'<div class="fancybox-loading"></div>',errorTpl:'<div class="fancybox-error"><p>{{ERROR}}</p></div>',btnTpl:{download:'<a download data-fancybox-download class="fancybox-button fancybox-button--download" title="{{DOWNLOAD}}" href="javascript:;"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.62 17.09V19H5.38v-1.91zm-2.97-6.96L17 11.45l-5 4.87-5-4.87 1.36-1.32 2.68 2.64V5h1.92v7.77z"/></svg></a>',zoom:'<button data-fancybox-zoom class="fancybox-button fancybox-button--zoom" title="{{ZOOM}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.7 17.3l-3-3a5.9 5.9 0 0 0-.6-7.6 5.9 5.9 0 0 0-8.4 0 5.9 5.9 0 0 0 0 8.4 5.9 5.9 0 0 0 7.7.7l3 3a1 1 0 0 0 1.3 0c.4-.5.4-1 0-1.5zM8.1 13.8a4 4 0 0 1 0-5.7 4 4 0 0 1 5.7 0 4 4 0 0 1 0 5.7 4 4 0 0 1-5.7 0z"/></svg></button>',close:'<button data-fancybox-close class="fancybox-button fancybox-button--close" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 10.6L6.6 5.2 5.2 6.6l5.4 5.4-5.4 5.4 1.4 1.4 5.4-5.4 5.4 5.4 1.4-1.4-5.4-5.4 5.4-5.4-1.4-1.4-5.4 5.4z"/></svg></button>',arrowLeft:'<button data-fancybox-prev class="fancybox-button fancybox-button--arrow_left" title="{{PREV}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11.28 15.7l-1.34 1.37L5 12l4.94-5.07 1.34 1.38-2.68 2.72H19v1.94H8.6z"/></svg></div></button>',arrowRight:'<button data-fancybox-next class="fancybox-button fancybox-button--arrow_right" title="{{NEXT}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.4 12.97l-2.68 2.72 1.34 1.38L19 12l-4.94-5.07-1.34 1.38 2.68 2.72H5v1.94z"/></svg></div></button>',smallBtn:'<button type="button" data-fancybox-close class="fancybox-button fancybox-close-small" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" version="1" viewBox="0 0 24 24"><path d="M13 12l5-5-1-1-5 5-5-5-1 1 5 5-5 5 1 1 5-5 5 5 1-1z"/></svg></button>'},parentEl:"body",hideScrollbar:!0,autoFocus:!0,backFocus:!0,trapFocus:!0,fullScreen:{autoStart:!1},touch:{vertical:!0,momentum:!0},hash:null,media:{},slideShow:{autoStart:!1,speed:3e3},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"},wheel:"auto",onInit:n.noop,beforeLoad:n.noop,afterLoad:n.noop,beforeShow:n.noop,afterShow:n.noop,beforeClose:n.noop,afterClose:n.noop,onActivate:n.noop,onDeactivate:n.noop,clickContent:function(t,e){return"image"===t.type&&"zoom"},clickSlide:"close",clickOutside:"close",dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1,mobile:{preventCaptionOverlap:!1,idleTime:!1,clickContent:function(t,e){return"image"===t.type&&"toggleControls"},clickSlide:function(t,e){return"image"===t.type?"toggleControls":"close"},dblclickContent:function(t,e){return"image"===t.type&&"zoom"},dblclickSlide:function(t,e){return"image"===t.type&&"zoom"}},lang:"en",i18n:{en:{CLOSE:"Close",NEXT:"Next",PREV:"Previous",ERROR:"The requested content cannot be loaded. <br/> Please try again later.",PLAY_START:"Start slideshow",PLAY_STOP:"Pause slideshow",FULL_SCREEN:"Full screen",THUMBS:"Thumbnails",DOWNLOAD:"Download",SHARE:"Share",ZOOM:"Zoom"},de:{CLOSE:"Schlie&szlig;en",NEXT:"Weiter",PREV:"Zur&uuml;ck",ERROR:"Die angeforderten Daten konnten nicht geladen werden. <br/> Bitte versuchen Sie es sp&auml;ter nochmal.",PLAY_START:"Diaschau starten",PLAY_STOP:"Diaschau beenden",FULL_SCREEN:"Vollbild",THUMBS:"Vorschaubilder",DOWNLOAD:"Herunterladen",SHARE:"Teilen",ZOOM:"Vergr&ouml;&szlig;ern"}}},s=n(t),a=n(e),l=0,c=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||function(e){return t.setTimeout(e,1e3/60)},d=t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.mozCancelAnimationFrame||t.oCancelAnimationFrame||function(e){t.clearTimeout(e)},u=function(){var t,n=e.createElement("fakeelement"),i={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(t in i)if(n.style[t]!==o)return i[t];return"transitionend"}(),p=function(t){return t&&t.length&&t[0].offsetHeight},f=function(t,e){var o=n.extend(!0,{},t,e);return n.each(e,(function(t,e){n.isArray(e)&&(o[t]=e)})),o},h=function(t){var o,i;return!(!t||t.ownerDocument!==e)&&(n(".fancybox-container").css("pointer-events","none"),o={x:t.getBoundingClientRect().left+t.offsetWidth/2,y:t.getBoundingClientRect().top+t.offsetHeight/2},i=e.elementFromPoint(o.x,o.y)===t,n(".fancybox-container").css("pointer-events",""),i)},g=function(t,e,o){var i=this;i.opts=f({index:o},n.fancybox.defaults),n.isPlainObject(e)&&(i.opts=f(i.opts,e)),n.fancybox.isMobile&&(i.opts=f(i.opts,i.opts.mobile)),i.id=i.opts.id||++l,i.currIndex=parseInt(i.opts.index,10)||0,i.prevIndex=null,i.prevPos=null,i.currPos=0,i.firstRun=!0,i.group=[],i.slides={},i.addContent(t),i.group.length&&i.init()};n.extend(g.prototype,{init:function(){var o,i,r=this,s=r.group[r.currIndex].opts;s.closeExisting&&n.fancybox.close(!0),n("body").addClass("fancybox-active"),!n.fancybox.getInstance()&&!1!==s.hideScrollbar&&!n.fancybox.isMobile&&e.body.scrollHeight>t.innerHeight&&(n("head").append('<style id="fancybox-style-noscroll" type="text/css">.compensate-for-scrollbar{margin-right:'+(t.innerWidth-e.documentElement.clientWidth)+"px;}</style>"),n("body").addClass("compensate-for-scrollbar")),i="",n.each(s.buttons,(function(t,e){i+=s.btnTpl[e]||""})),o=n(r.translate(r,s.baseTpl.replace("{{buttons}}",i).replace("{{arrows}}",s.btnTpl.arrowLeft+s.btnTpl.arrowRight))).attr("id","fancybox-container-"+r.id).addClass(s.baseClass).data("FancyBox",r).appendTo(s.parentEl),r.$refs={container:o},["bg","inner","infobar","toolbar","stage","caption","navigation"].forEach((function(t){r.$refs[t]=o.find(".fancybox-"+t)})),r.trigger("onInit"),r.activate(),r.jumpTo(r.currIndex)},translate:function(t,e){var n=t.opts.i18n[t.opts.lang]||t.opts.i18n.en;return e.replace(/\{\{(\w+)\}\}/g,(function(t,e){return n[e]===o?t:n[e]}))},addContent:function(t){var e,i=this,r=n.makeArray(t);n.each(r,(function(t,e){var r,s,a,l,c,d={},u={};n.isPlainObject(e)?(d=e,u=e.opts||e):"object"===n.type(e)&&n(e).length?(u=(r=n(e)).data()||{},(u=n.extend(!0,{},u,u.options)).$orig=r,d.src=i.opts.src||u.src||r.attr("href"),d.type||d.src||(d.type="inline",d.src=e)):d={type:"html",src:e+""},d.opts=n.extend(!0,{},i.opts,u),n.isArray(u.buttons)&&(d.opts.buttons=u.buttons),n.fancybox.isMobile&&d.opts.mobile&&(d.opts=f(d.opts,d.opts.mobile)),s=d.type||d.opts.type,l=d.src||"",!s&&l&&((a=l.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(s="video",d.opts.video.format||(d.opts.video.format="video/"+("ogv"===a[1]?"ogg":a[1]))):l.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?s="image":l.match(/\.(pdf)((\?|#).*)?$/i)?(s="iframe",d=n.extend(!0,d,{contentType:"pdf",opts:{iframe:{preload:!1}}})):"#"===l.charAt(0)&&(s="inline")),s?d.type=s:i.trigger("objectNeedsType",d),d.contentType||(d.contentType=n.inArray(d.type,["html","inline","ajax"])>-1?"html":d.type),d.index=i.group.length,"auto"==d.opts.smallBtn&&(d.opts.smallBtn=n.inArray(d.type,["html","inline","ajax"])>-1),"auto"===d.opts.toolbar&&(d.opts.toolbar=!d.opts.smallBtn),d.$thumb=d.opts.$thumb||null,d.opts.$trigger&&d.index===i.opts.index&&(d.$thumb=d.opts.$trigger.find("img:first"),d.$thumb.length&&(d.opts.$orig=d.opts.$trigger)),d.$thumb&&d.$thumb.length||!d.opts.$orig||(d.$thumb=d.opts.$orig.find("img:first")),d.$thumb&&!d.$thumb.length&&(d.$thumb=null),d.thumb=d.opts.thumb||(d.$thumb?d.$thumb[0].src:null),"function"===n.type(d.opts.caption)&&(d.opts.caption=d.opts.caption.apply(e,[i,d])),"function"===n.type(i.opts.caption)&&(d.opts.caption=i.opts.caption.apply(e,[i,d])),d.opts.caption instanceof n||(d.opts.caption=d.opts.caption===o?"":d.opts.caption+""),"ajax"===d.type&&((c=l.split(/\s+/,2)).length>1&&(d.src=c.shift(),d.opts.filter=c.shift())),d.opts.modal&&(d.opts=n.extend(!0,d.opts,{trapFocus:!0,infobar:0,toolbar:0,smallBtn:0,keyboard:0,slideShow:0,fullScreen:0,thumbs:0,touch:0,clickContent:!1,clickSlide:!1,clickOutside:!1,dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1})),i.group.push(d)})),Object.keys(i.slides).length&&(i.updateControls(),(e=i.Thumbs)&&e.isActive&&(e.create(),e.focus()))},addEvents:function(){var e=this;e.removeEvents(),e.$refs.container.on("click.fb-close","[data-fancybox-close]",(function(t){t.stopPropagation(),t.preventDefault(),e.close(t)})).on("touchstart.fb-prev click.fb-prev","[data-fancybox-prev]",(function(t){t.stopPropagation(),t.preventDefault(),e.previous()})).on("touchstart.fb-next click.fb-next","[data-fancybox-next]",(function(t){t.stopPropagation(),t.preventDefault(),e.next()})).on("click.fb","[data-fancybox-zoom]",(function(t){e[e.isScaledDown()?"scaleToActual":"scaleToFit"]()})),s.on("orientationchange.fb resize.fb",(function(t){t&&t.originalEvent&&"resize"===t.originalEvent.type?(e.requestId&&d(e.requestId),e.requestId=c((function(){e.update(t)}))):(e.current&&"iframe"===e.current.type&&e.$refs.stage.hide(),setTimeout((function(){e.$refs.stage.show(),e.update(t)}),n.fancybox.isMobile?600:250))})),a.on("keydown.fb",(function(t){var o=(n.fancybox?n.fancybox.getInstance():null).current,i=t.keyCode||t.which;if(9!=i)return!o.opts.keyboard||t.ctrlKey||t.altKey||t.shiftKey||n(t.target).is("input,textarea,video,audio,select")?void 0:8===i||27===i?(t.preventDefault(),void e.close(t)):37===i||38===i?(t.preventDefault(),void e.previous()):39===i||40===i?(t.preventDefault(),void e.next()):void e.trigger("afterKeydown",t,i);o.opts.trapFocus&&e.focus(t)})),e.group[e.currIndex].opts.idleTime&&(e.idleSecondsCounter=0,a.on("mousemove.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle",(function(t){e.idleSecondsCounter=0,e.isIdle&&e.showControls(),e.isIdle=!1})),e.idleInterval=t.setInterval((function(){e.idleSecondsCounter++,e.idleSecondsCounter>=e.group[e.currIndex].opts.idleTime&&!e.isDragging&&(e.isIdle=!0,e.idleSecondsCounter=0,e.hideControls())}),1e3))},removeEvents:function(){var e=this;s.off("orientationchange.fb resize.fb"),a.off("keydown.fb .fb-idle"),this.$refs.container.off(".fb-close .fb-prev .fb-next"),e.idleInterval&&(t.clearInterval(e.idleInterval),e.idleInterval=null)},previous:function(t){return this.jumpTo(this.currPos-1,t)},next:function(t){return this.jumpTo(this.currPos+1,t)},jumpTo:function(t,e){var i,r,s,a,l,c,d,u,f,h=this,g=h.group.length;if(!(h.isDragging||h.isClosing||h.isAnimating&&h.firstRun)){if(t=parseInt(t,10),!(s=h.current?h.current.opts.loop:h.opts.loop)&&(t<0||t>=g))return!1;if(i=h.firstRun=!Object.keys(h.slides).length,l=h.current,h.prevIndex=h.currIndex,h.prevPos=h.currPos,a=h.createSlide(t),g>1&&((s||a.index<g-1)&&h.createSlide(t+1),(s||a.index>0)&&h.createSlide(t-1)),h.current=a,h.currIndex=a.index,h.currPos=a.pos,h.trigger("beforeShow",i),h.updateControls(),a.forcedDuration=o,n.isNumeric(e)?a.forcedDuration=e:e=a.opts[i?"animationDuration":"transitionDuration"],e=parseInt(e,10),r=h.isMoved(a),a.$slide.addClass("fancybox-slide--current"),i)return a.opts.animationEffect&&e&&h.$refs.container.css("transition-duration",e+"ms"),h.$refs.container.addClass("fancybox-is-open").trigger("focus"),h.loadSlide(a),void h.preload("image");c=n.fancybox.getTranslate(l.$slide),d=n.fancybox.getTranslate(h.$refs.stage),n.each(h.slides,(function(t,e){n.fancybox.stop(e.$slide,!0)})),l.pos!==a.pos&&(l.isComplete=!1),l.$slide.removeClass("fancybox-slide--complete fancybox-slide--current"),r?(f=c.left-(l.pos*c.width+l.pos*l.opts.gutter),n.each(h.slides,(function(t,o){o.$slide.removeClass("fancybox-animated").removeClass((function(t,e){return(e.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")}));var i=o.pos*c.width+o.pos*o.opts.gutter;n.fancybox.setTranslate(o.$slide,{top:0,left:i-d.left+f}),o.pos!==a.pos&&o.$slide.addClass("fancybox-slide--"+(o.pos>a.pos?"next":"previous")),p(o.$slide),n.fancybox.animate(o.$slide,{top:0,left:(o.pos-a.pos)*c.width+(o.pos-a.pos)*o.opts.gutter},e,(function(){o.$slide.css({transform:"",opacity:""}).removeClass("fancybox-slide--next fancybox-slide--previous"),o.pos===h.currPos&&h.complete()}))}))):e&&a.opts.transitionEffect&&(u="fancybox-animated fancybox-fx-"+a.opts.transitionEffect,l.$slide.addClass("fancybox-slide--"+(l.pos>a.pos?"next":"previous")),n.fancybox.animate(l.$slide,u,e,(function(){l.$slide.removeClass(u).removeClass("fancybox-slide--next fancybox-slide--previous")}),!1)),a.isLoaded?h.revealContent(a):h.loadSlide(a),h.preload("image")}},createSlide:function(t){var e,o,i=this;return o=(o=t%i.group.length)<0?i.group.length+o:o,!i.slides[t]&&i.group[o]&&(e=n('<div class="fancybox-slide"></div>').appendTo(i.$refs.stage),i.slides[t]=n.extend(!0,{},i.group[o],{pos:t,$slide:e,isLoaded:!1}),i.updateSlide(i.slides[t])),i.slides[t]},scaleToActual:function(t,e,i){var r,s,a,l,c,d=this,u=d.current,p=u.$content,f=n.fancybox.getTranslate(u.$slide).width,h=n.fancybox.getTranslate(u.$slide).height,g=u.width,m=u.height;d.isAnimating||d.isMoved()||!p||"image"!=u.type||!u.isLoaded||u.hasError||(d.isAnimating=!0,n.fancybox.stop(p),t=t===o?.5*f:t,e=e===o?.5*h:e,(r=n.fancybox.getTranslate(p)).top-=n.fancybox.getTranslate(u.$slide).top,r.left-=n.fancybox.getTranslate(u.$slide).left,l=g/r.width,c=m/r.height,s=.5*f-.5*g,a=.5*h-.5*m,g>f&&((s=r.left*l-(t*l-t))>0&&(s=0),s<f-g&&(s=f-g)),m>h&&((a=r.top*c-(e*c-e))>0&&(a=0),a<h-m&&(a=h-m)),d.updateCursor(g,m),n.fancybox.animate(p,{top:a,left:s,scaleX:l,scaleY:c},i||366,(function(){d.isAnimating=!1})),d.SlideShow&&d.SlideShow.isActive&&d.SlideShow.stop())},scaleToFit:function(t){var e,o=this,i=o.current,r=i.$content;o.isAnimating||o.isMoved()||!r||"image"!=i.type||!i.isLoaded||i.hasError||(o.isAnimating=!0,n.fancybox.stop(r),e=o.getFitPos(i),o.updateCursor(e.width,e.height),n.fancybox.animate(r,{top:e.top,left:e.left,scaleX:e.width/r.width(),scaleY:e.height/r.height()},t||366,(function(){o.isAnimating=!1})))},getFitPos:function(t){var e,o,i,r,s=t.$content,a=t.$slide,l=t.width||t.opts.width,c=t.height||t.opts.height,d={};return!!(t.isLoaded&&s&&s.length)&&(e=n.fancybox.getTranslate(this.$refs.stage).width,o=n.fancybox.getTranslate(this.$refs.stage).height,e-=parseFloat(a.css("paddingLeft"))+parseFloat(a.css("paddingRight"))+parseFloat(s.css("marginLeft"))+parseFloat(s.css("marginRight")),o-=parseFloat(a.css("paddingTop"))+parseFloat(a.css("paddingBottom"))+parseFloat(s.css("marginTop"))+parseFloat(s.css("marginBottom")),l&&c||(l=e,c=o),(l*=i=Math.min(1,e/l,o/c))>e-.5&&(l=e),(c*=i)>o-.5&&(c=o),"image"===t.type?(d.top=Math.floor(.5*(o-c))+parseFloat(a.css("paddingTop")),d.left=Math.floor(.5*(e-l))+parseFloat(a.css("paddingLeft"))):"video"===t.contentType&&(c>l/(r=t.opts.width&&t.opts.height?l/c:t.opts.ratio||16/9)?c=l/r:l>c*r&&(l=c*r)),d.width=l,d.height=c,d)},update:function(t){var e=this;n.each(e.slides,(function(n,o){e.updateSlide(o,t)}))},updateSlide:function(t,e){var o=this,i=t&&t.$content,r=t.width||t.opts.width,s=t.height||t.opts.height,a=t.$slide;o.adjustCaption(t),i&&(r||s||"video"===t.contentType)&&!t.hasError&&(n.fancybox.stop(i),n.fancybox.setTranslate(i,o.getFitPos(t)),t.pos===o.currPos&&(o.isAnimating=!1,o.updateCursor())),o.adjustLayout(t),a.length&&(a.trigger("refresh"),t.pos===o.currPos&&o.$refs.toolbar.add(o.$refs.navigation.find(".fancybox-button--arrow_right")).toggleClass("compensate-for-scrollbar",a.get(0).scrollHeight>a.get(0).clientHeight)),o.trigger("onUpdate",t,e)},centerSlide:function(t){var e=this,i=e.current,r=i.$slide;!e.isClosing&&i&&(r.siblings().css({transform:"",opacity:""}),r.parent().children().removeClass("fancybox-slide--previous fancybox-slide--next"),n.fancybox.animate(r,{top:0,left:0,opacity:1},t===o?0:t,(function(){r.css({transform:"",opacity:""}),i.isComplete||e.complete()}),!1))},isMoved:function(t){var e,o,i=t||this.current;return!!i&&(o=n.fancybox.getTranslate(this.$refs.stage),e=n.fancybox.getTranslate(i.$slide),!i.$slide.hasClass("fancybox-animated")&&(Math.abs(e.top-o.top)>.5||Math.abs(e.left-o.left)>.5))},updateCursor:function(t,e){var o,i,r=this,s=r.current,a=r.$refs.container;s&&!r.isClosing&&r.Guestures&&(a.removeClass("fancybox-is-zoomable fancybox-can-zoomIn fancybox-can-zoomOut fancybox-can-swipe fancybox-can-pan"),i=!!(o=r.canPan(t,e))||r.isZoomable(),a.toggleClass("fancybox-is-zoomable",i),n("[data-fancybox-zoom]").prop("disabled",!i),o?a.addClass("fancybox-can-pan"):i&&("zoom"===s.opts.clickContent||n.isFunction(s.opts.clickContent)&&"zoom"==s.opts.clickContent(s))?a.addClass("fancybox-can-zoomIn"):s.opts.touch&&(s.opts.touch.vertical||r.group.length>1)&&"video"!==s.contentType&&a.addClass("fancybox-can-swipe"))},isZoomable:function(){var t,e=this,n=e.current;if(n&&!e.isClosing&&"image"===n.type&&!n.hasError){if(!n.isLoaded)return!0;if((t=e.getFitPos(n))&&(n.width>t.width||n.height>t.height))return!0}return!1},isScaledDown:function(t,e){var i=!1,r=this.current,s=r.$content;return t!==o&&e!==o?i=t<r.width&&e<r.height:s&&(i=(i=n.fancybox.getTranslate(s)).width<r.width&&i.height<r.height),i},canPan:function(t,e){var i=this.current,r=null,s=!1;return"image"===i.type&&(i.isComplete||t&&e)&&!i.hasError&&(s=this.getFitPos(i),t!==o&&e!==o?r={width:t,height:e}:i.isComplete&&(r=n.fancybox.getTranslate(i.$content)),r&&s&&(s=Math.abs(r.width-s.width)>1.5||Math.abs(r.height-s.height)>1.5)),s},loadSlide:function(t){var e,o,i,r=this;if(!t.isLoading&&!t.isLoaded){if(t.isLoading=!0,!1===r.trigger("beforeLoad",t))return t.isLoading=!1,!1;switch(e=t.type,(o=t.$slide).off("refresh").trigger("onReset").addClass(t.opts.slideClass),e){case"image":r.setImage(t);break;case"iframe":r.setIframe(t);break;case"html":r.setContent(t,t.src||t.content);break;case"video":r.setContent(t,t.opts.video.tpl.replace(/\{\{src\}\}/gi,t.src).replace("{{format}}",t.opts.videoFormat||t.opts.video.format||"").replace("{{poster}}",t.thumb||""));break;case"inline":n(t.src).length?r.setContent(t,n(t.src)):r.setError(t);break;case"ajax":r.showLoading(t),i=n.ajax(n.extend({},t.opts.ajax.settings,{url:t.src,success:function(e,n){"success"===n&&r.setContent(t,e)},error:function(e,n){e&&"abort"!==n&&r.setError(t)}})),o.one("onReset",(function(){i.abort()}));break;default:r.setError(t)}return!0}},setImage:function(t){var o,i=this;setTimeout((function(){var e=t.$image;i.isClosing||!t.isLoading||e&&e.length&&e[0].complete||t.hasError||i.showLoading(t)}),50),i.checkSrcset(t),t.$content=n('<div class="fancybox-content"></div>').addClass("fancybox-is-hidden").appendTo(t.$slide.addClass("fancybox-slide--image")),!1!==t.opts.preload&&t.opts.width&&t.opts.height&&t.thumb&&(t.width=t.opts.width,t.height=t.opts.height,(o=e.createElement("img")).onerror=function(){n(this).remove(),t.$ghost=null},o.onload=function(){i.afterLoad(t)},t.$ghost=n(o).addClass("fancybox-image").appendTo(t.$content).attr("src",t.thumb)),i.setBigImage(t)},checkSrcset:function(e){var n,o,i,r,s=e.opts.srcset||e.opts.image.srcset;if(s){i=t.devicePixelRatio||1,r=t.innerWidth*i,o=s.split(",").map((function(t){var e={};return t.trim().split(/\s+/).forEach((function(t,n){var o=parseInt(t.substring(0,t.length-1),10);return 0===n?e.url=t:void(o&&(e.value=o,e.postfix=t[t.length-1]))})),e})),o.sort((function(t,e){return t.value-e.value}));for(var a=0;a<o.length;a++){var l=o[a];if("w"===l.postfix&&l.value>=r||"x"===l.postfix&&l.value>=i){n=l;break}}!n&&o.length&&(n=o[o.length-1]),n&&(e.src=n.url,e.width&&e.height&&"w"==n.postfix&&(e.height=e.width/e.height*n.value,e.width=n.value),e.opts.srcset=s)}},setBigImage:function(t){var o=this,i=e.createElement("img"),r=n(i);t.$image=r.one("error",(function(){o.setError(t)})).one("load",(function(){var e;t.$ghost||(o.resolveImageSlideSize(t,this.naturalWidth,this.naturalHeight),o.afterLoad(t)),o.isClosing||(t.opts.srcset&&((e=t.opts.sizes)&&"auto"!==e||(e=(t.width/t.height>1&&s.width()/s.height()>1?"100":Math.round(t.width/t.height*100))+"vw"),r.attr("sizes",e).attr("srcset",t.opts.srcset)),t.$ghost&&setTimeout((function(){t.$ghost&&!o.isClosing&&t.$ghost.hide()}),Math.min(300,Math.max(1e3,t.height/1600))),o.hideLoading(t))})).addClass("fancybox-image").attr("src",t.src).appendTo(t.$content),(i.complete||"complete"==i.readyState)&&r.naturalWidth&&r.naturalHeight?r.trigger("load"):i.error&&r.trigger("error")},resolveImageSlideSize:function(t,e,n){var o=parseInt(t.opts.width,10),i=parseInt(t.opts.height,10);t.width=e,t.height=n,o>0&&(t.width=o,t.height=Math.floor(o*n/e)),i>0&&(t.width=Math.floor(i*e/n),t.height=i)},setIframe:function(t){var e,i=this,r=t.opts.iframe,s=t.$slide;t.$content=n('<div class="fancybox-content'+(r.preload?" fancybox-is-hidden":"")+'"></div>').css(r.css).appendTo(s),s.addClass("fancybox-slide--"+t.contentType),t.$iframe=e=n(r.tpl.replace(/\{rnd\}/g,(new Date).getTime())).attr(r.attr).appendTo(t.$content),r.preload?(i.showLoading(t),e.on("load.fb error.fb",(function(e){this.isReady=1,t.$slide.trigger("refresh"),i.afterLoad(t)})),s.on("refresh.fb",(function(){var n,i=t.$content,a=r.css.width,l=r.css.height;if(1===e[0].isReady){try{n=e.contents().find("body")}catch(t){}n&&n.length&&n.children().length&&(s.css("overflow","visible"),i.css({width:"100%","max-width":"100%",height:"9999px"}),a===o&&(a=Math.ceil(Math.max(n[0].clientWidth,n.outerWidth(!0)))),i.css("width",a||"").css("max-width",""),l===o&&(l=Math.ceil(Math.max(n[0].clientHeight,n.outerHeight(!0)))),i.css("height",l||""),s.css("overflow","auto")),i.removeClass("fancybox-is-hidden")}}))):i.afterLoad(t),e.attr("src",t.src),s.one("onReset",(function(){try{n(this).find("iframe").hide().unbind().attr("src","//about:blank")}catch(t){}n(this).off("refresh.fb").empty(),t.isLoaded=!1,t.isRevealed=!1}))},setContent:function(t,e){var o=this;o.isClosing||(o.hideLoading(t),t.$content&&n.fancybox.stop(t.$content),t.$slide.empty(),function(t){return t&&t.hasOwnProperty&&t instanceof n}(e)&&e.parent().length?((e.hasClass("fancybox-content")||e.parent().hasClass("fancybox-content"))&&e.parents(".fancybox-slide").trigger("onReset"),t.$placeholder=n("<div>").hide().insertAfter(e),e.css("display","inline-block")):t.hasError||("string"===n.type(e)&&(e=n("<div>").append(n.trim(e)).contents()),t.opts.filter&&(e=n("<div>").html(e).find(t.opts.filter))),t.$slide.one("onReset",(function(){n(this).find("video,audio").trigger("pause"),t.$placeholder&&(t.$placeholder.after(e.removeClass("fancybox-content").hide()).remove(),t.$placeholder=null),t.$smallBtn&&(t.$smallBtn.remove(),t.$smallBtn=null),t.hasError||(n(this).empty(),t.isLoaded=!1,t.isRevealed=!1)})),n(e).appendTo(t.$slide),n(e).is("video,audio")&&(n(e).addClass("fancybox-video"),n(e).wrap("<div></div>"),t.contentType="video",t.opts.width=t.opts.width||n(e).attr("width"),t.opts.height=t.opts.height||n(e).attr("height")),t.$content=t.$slide.children().filter("div,form,main,video,audio,article,.fancybox-content").first(),t.$content.siblings().hide(),t.$content.length||(t.$content=t.$slide.wrapInner("<div></div>").children().first()),t.$content.addClass("fancybox-content"),t.$slide.addClass("fancybox-slide--"+t.contentType),o.afterLoad(t))},setError:function(t){t.hasError=!0,t.$slide.trigger("onReset").removeClass("fancybox-slide--"+t.contentType).addClass("fancybox-slide--error"),t.contentType="html",this.setContent(t,this.translate(t,t.opts.errorTpl)),t.pos===this.currPos&&(this.isAnimating=!1)},showLoading:function(t){var e=this;(t=t||e.current)&&!t.$spinner&&(t.$spinner=n(e.translate(e,e.opts.spinnerTpl)).appendTo(t.$slide).hide().fadeIn("fast"))},hideLoading:function(t){(t=t||this.current)&&t.$spinner&&(t.$spinner.stop().remove(),delete t.$spinner)},afterLoad:function(t){var e=this;e.isClosing||(t.isLoading=!1,t.isLoaded=!0,e.trigger("afterLoad",t),e.hideLoading(t),!t.opts.smallBtn||t.$smallBtn&&t.$smallBtn.length||(t.$smallBtn=n(e.translate(t,t.opts.btnTpl.smallBtn)).appendTo(t.$content)),t.opts.protect&&t.$content&&!t.hasError&&(t.$content.on("contextmenu.fb",(function(t){return 2==t.button&&t.preventDefault(),!0})),"image"===t.type&&n('<div class="fancybox-spaceball"></div>').appendTo(t.$content)),e.adjustCaption(t),e.adjustLayout(t),t.pos===e.currPos&&e.updateCursor(),e.revealContent(t))},adjustCaption:function(t){var e,n=this,o=t||n.current,i=o.opts.caption,r=o.opts.preventCaptionOverlap,s=n.$refs.caption,a=!1;s.toggleClass("fancybox-caption--separate",r),r&&i&&i.length&&(o.pos!==n.currPos?((e=s.clone().appendTo(s.parent())).children().eq(0).empty().html(i),a=e.outerHeight(!0),e.empty().remove()):n.$caption&&(a=n.$caption.outerHeight(!0)),o.$slide.css("padding-bottom",a||""))},adjustLayout:function(t){var e,n,o,i,r=t||this.current;r.isLoaded&&!0!==r.opts.disableLayoutFix&&(r.$content.css("margin-bottom",""),r.$content.outerHeight()>r.$slide.height()+.5&&(o=r.$slide[0].style["padding-bottom"],i=r.$slide.css("padding-bottom"),parseFloat(i)>0&&(e=r.$slide[0].scrollHeight,r.$slide.css("padding-bottom",0),Math.abs(e-r.$slide[0].scrollHeight)<1&&(n=i),r.$slide.css("padding-bottom",o))),r.$content.css("margin-bottom",n))},revealContent:function(t){var e,i,r,s,a=this,l=t.$slide,c=!1,d=!1,u=a.isMoved(t),f=t.isRevealed;return t.isRevealed=!0,e=t.opts[a.firstRun?"animationEffect":"transitionEffect"],r=t.opts[a.firstRun?"animationDuration":"transitionDuration"],r=parseInt(t.forcedDuration===o?r:t.forcedDuration,10),!u&&t.pos===a.currPos&&r||(e=!1),"zoom"===e&&(t.pos===a.currPos&&r&&"image"===t.type&&!t.hasError&&(d=a.getThumbPos(t))?c=a.getFitPos(t):e="fade"),"zoom"===e?(a.isAnimating=!0,c.scaleX=c.width/d.width,c.scaleY=c.height/d.height,"auto"==(s=t.opts.zoomOpacity)&&(s=Math.abs(t.width/t.height-d.width/d.height)>.1),s&&(d.opacity=.1,c.opacity=1),n.fancybox.setTranslate(t.$content.removeClass("fancybox-is-hidden"),d),p(t.$content),void n.fancybox.animate(t.$content,c,r,(function(){a.isAnimating=!1,a.complete()}))):(a.updateSlide(t),e?(n.fancybox.stop(l),i="fancybox-slide--"+(t.pos>=a.prevPos?"next":"previous")+" fancybox-animated fancybox-fx-"+e,l.addClass(i).removeClass("fancybox-slide--current"),t.$content.removeClass("fancybox-is-hidden"),p(l),"image"!==t.type&&t.$content.hide().show(0),void n.fancybox.animate(l,"fancybox-slide--current",r,(function(){l.removeClass(i).css({transform:"",opacity:""}),t.pos===a.currPos&&a.complete()}),!0)):(t.$content.removeClass("fancybox-is-hidden"),f||!u||"image"!==t.type||t.hasError||t.$content.hide().fadeIn("fast"),void(t.pos===a.currPos&&a.complete())))},getThumbPos:function(t){var e,o,i,r,s,a=!1,l=t.$thumb;return!(!l||!h(l[0]))&&(e=n.fancybox.getTranslate(l),o=parseFloat(l.css("border-top-width")||0),i=parseFloat(l.css("border-right-width")||0),r=parseFloat(l.css("border-bottom-width")||0),s=parseFloat(l.css("border-left-width")||0),a={top:e.top+o,left:e.left+s,width:e.width-i-s,height:e.height-o-r,scaleX:1,scaleY:1},e.width>0&&e.height>0&&a)},complete:function(){var t,e=this,o=e.current,i={};!e.isMoved()&&o.isLoaded&&(o.isComplete||(o.isComplete=!0,o.$slide.siblings().trigger("onReset"),e.preload("inline"),p(o.$slide),o.$slide.addClass("fancybox-slide--complete"),n.each(e.slides,(function(t,o){o.pos>=e.currPos-1&&o.pos<=e.currPos+1?i[o.pos]=o:o&&(n.fancybox.stop(o.$slide),o.$slide.off().remove())})),e.slides=i),e.isAnimating=!1,e.updateCursor(),e.trigger("afterShow"),o.opts.video.autoStart&&o.$slide.find("video,audio").filter(":visible:first").trigger("play").one("ended",(function(){Document.exitFullscreen?Document.exitFullscreen():this.webkitExitFullscreen&&this.webkitExitFullscreen(),e.next()})),o.opts.autoFocus&&"html"===o.contentType&&((t=o.$content.find("input[autofocus]:enabled:visible:first")).length?t.trigger("focus"):e.focus(null,!0)),o.$slide.scrollTop(0).scrollLeft(0))},preload:function(t){var e,n,o=this;o.group.length<2||(n=o.slides[o.currPos+1],(e=o.slides[o.currPos-1])&&e.type===t&&o.loadSlide(e),n&&n.type===t&&o.loadSlide(n))},focus:function(t,o){var i,r,s=this,a=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not([tabindex^="-"])'].join(",");s.isClosing||((i=(i=!t&&s.current&&s.current.isComplete?s.current.$slide.find("*:visible"+(o?":not(.fancybox-close-small)":"")):s.$refs.container.find("*:visible")).filter(a).filter((function(){return"hidden"!==n(this).css("visibility")&&!n(this).hasClass("disabled")}))).length?(r=i.index(e.activeElement),t&&t.shiftKey?(r<0||0==r)&&(t.preventDefault(),i.eq(i.length-1).trigger("focus")):(r<0||r==i.length-1)&&(t&&t.preventDefault(),i.eq(0).trigger("focus"))):s.$refs.container.trigger("focus"))},activate:function(){var t=this;n(".fancybox-container").each((function(){var e=n(this).data("FancyBox");e&&e.id!==t.id&&!e.isClosing&&(e.trigger("onDeactivate"),e.removeEvents(),e.isVisible=!1)})),t.isVisible=!0,(t.current||t.isIdle)&&(t.update(),t.updateControls()),t.trigger("onActivate"),t.addEvents()},close:function(t,e){var o,i,r,s,a,l,d,u=this,f=u.current,h=function(){u.cleanUp(t)};return!(u.isClosing||(u.isClosing=!0,!1===u.trigger("beforeClose",t)?(u.isClosing=!1,c((function(){u.update()})),1):(u.removeEvents(),r=f.$content,o=f.opts.animationEffect,i=n.isNumeric(e)?e:o?f.opts.animationDuration:0,f.$slide.removeClass("fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated"),!0!==t?n.fancybox.stop(f.$slide):o=!1,f.$slide.siblings().trigger("onReset").remove(),i&&u.$refs.container.removeClass("fancybox-is-open").addClass("fancybox-is-closing").css("transition-duration",i+"ms"),u.hideLoading(f),u.hideControls(!0),u.updateCursor(),"zoom"!==o||r&&i&&"image"===f.type&&!u.isMoved()&&!f.hasError&&(d=u.getThumbPos(f))||(o="fade"),"zoom"===o?(n.fancybox.stop(r),s=n.fancybox.getTranslate(r),l={top:s.top,left:s.left,scaleX:s.width/d.width,scaleY:s.height/d.height,width:d.width,height:d.height},a=f.opts.zoomOpacity,"auto"==a&&(a=Math.abs(f.width/f.height-d.width/d.height)>.1),a&&(d.opacity=0),n.fancybox.setTranslate(r,l),p(r),n.fancybox.animate(r,d,i,h),0):(o&&i?n.fancybox.animate(f.$slide.addClass("fancybox-slide--previous").removeClass("fancybox-slide--current"),"fancybox-animated fancybox-fx-"+o,i,h):!0===t?setTimeout(h,i):h(),0))))},cleanUp:function(e){var o,i,r,s=this,a=s.current.opts.$orig;s.current.$slide.trigger("onReset"),s.$refs.container.empty().remove(),s.trigger("afterClose",e),s.current.opts.backFocus&&(a&&a.length&&a.is(":visible")||(a=s.$trigger),a&&a.length&&(i=t.scrollX,r=t.scrollY,a.trigger("focus"),n("html, body").scrollTop(r).scrollLeft(i))),s.current=null,(o=n.fancybox.getInstance())?o.activate():(n("body").removeClass("fancybox-active compensate-for-scrollbar"),n("#fancybox-style-noscroll").remove())},trigger:function(t,e){var o,i=Array.prototype.slice.call(arguments,1),r=this,s=e&&e.opts?e:r.current;return s?i.unshift(s):s=r,i.unshift(r),n.isFunction(s.opts[t])&&(o=s.opts[t].apply(s,i)),!1===o?o:void("afterClose"!==t&&r.$refs?r.$refs.container.trigger(t+".fb",i):a.trigger(t+".fb",i))},updateControls:function(){var t=this,o=t.current,i=o.index,r=t.$refs.container,s=t.$refs.caption,a=o.opts.caption;o.$slide.trigger("refresh"),a&&a.length?(t.$caption=s,s.children().eq(0).html(a)):t.$caption=null,t.hasHiddenControls||t.isIdle||t.showControls(),r.find("[data-fancybox-count]").html(t.group.length),r.find("[data-fancybox-index]").html(i+1),r.find("[data-fancybox-prev]").prop("disabled",!o.opts.loop&&i<=0),r.find("[data-fancybox-next]").prop("disabled",!o.opts.loop&&i>=t.group.length-1),"image"===o.type?r.find("[data-fancybox-zoom]").show().end().find("[data-fancybox-download]").attr("href",o.opts.image.src||o.src).show():o.opts.toolbar&&r.find("[data-fancybox-download],[data-fancybox-zoom]").hide(),n(e.activeElement).is(":hidden,[disabled]")&&t.$refs.container.trigger("focus")},hideControls:function(t){var e=["infobar","toolbar","nav"];!t&&this.current.opts.preventCaptionOverlap||e.push("caption"),this.$refs.container.removeClass(e.map((function(t){return"fancybox-show-"+t})).join(" ")),this.hasHiddenControls=!0},showControls:function(){var t=this,e=t.current?t.current.opts:t.opts,n=t.$refs.container;t.hasHiddenControls=!1,t.idleSecondsCounter=0,n.toggleClass("fancybox-show-toolbar",!(!e.toolbar||!e.buttons)).toggleClass("fancybox-show-infobar",!!(e.infobar&&t.group.length>1)).toggleClass("fancybox-show-caption",!!t.$caption).toggleClass("fancybox-show-nav",!!(e.arrows&&t.group.length>1)).toggleClass("fancybox-is-modal",!!e.modal)},toggleControls:function(){this.hasHiddenControls?this.showControls():this.hideControls()}}),n.fancybox={version:"3.5.7",defaults:r,getInstance:function(t){var e=n('.fancybox-container:not(".fancybox-is-closing"):last').data("FancyBox"),o=Array.prototype.slice.call(arguments,1);return e instanceof g&&("string"===n.type(t)?e[t].apply(e,o):"function"===n.type(t)&&t.apply(e,o),e)},open:function(t,e,n){return new g(t,e,n)},close:function(t){var e=this.getInstance();e&&(e.close(),!0===t&&this.close(t))},destroy:function(){this.close(!0),a.add("body").off("click.fb-start","**")},isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),use3d:function(){var n=e.createElement("div");return t.getComputedStyle&&t.getComputedStyle(n)&&t.getComputedStyle(n).getPropertyValue("transform")&&!(e.documentMode&&e.documentMode<11)}(),getTranslate:function(t){var e;return!(!t||!t.length)&&{top:(e=t[0].getBoundingClientRect()).top||0,left:e.left||0,width:e.width,height:e.height,opacity:parseFloat(t.css("opacity"))}},setTranslate:function(t,e){var n="",i={};if(t&&e)return e.left===o&&e.top===o||(n=(e.left===o?t.position().left:e.left)+"px, "+(e.top===o?t.position().top:e.top)+"px",n=this.use3d?"translate3d("+n+", 0px)":"translate("+n+")"),e.scaleX!==o&&e.scaleY!==o?n+=" scale("+e.scaleX+", "+e.scaleY+")":e.scaleX!==o&&(n+=" scaleX("+e.scaleX+")"),n.length&&(i.transform=n),e.opacity!==o&&(i.opacity=e.opacity),e.width!==o&&(i.width=e.width),e.height!==o&&(i.height=e.height),t.css(i)},animate:function(t,e,i,r,s){var a,l=this;n.isFunction(i)&&(r=i,i=null),l.stop(t),a=l.getTranslate(t),t.on(u,(function(c){(!c||!c.originalEvent||t.is(c.originalEvent.target)&&"z-index"!=c.originalEvent.propertyName)&&(l.stop(t),n.isNumeric(i)&&t.css("transition-duration",""),n.isPlainObject(e)?e.scaleX!==o&&e.scaleY!==o&&l.setTranslate(t,{top:e.top,left:e.left,width:a.width*e.scaleX,height:a.height*e.scaleY,scaleX:1,scaleY:1}):!0!==s&&t.removeClass(e),n.isFunction(r)&&r(c))})),n.isNumeric(i)&&t.css("transition-duration",i+"ms"),n.isPlainObject(e)?(e.scaleX!==o&&e.scaleY!==o&&(delete e.width,delete e.height,t.parent().hasClass("fancybox-slide--image")&&t.parent().addClass("fancybox-is-scaling")),n.fancybox.setTranslate(t,e)):t.addClass(e),t.data("timer",setTimeout((function(){t.trigger(u)}),i+33))},stop:function(t,e){t&&t.length&&(clearTimeout(t.data("timer")),e&&t.trigger(u),t.off(u).css("transition-duration",""),t.parent().removeClass("fancybox-is-scaling"))}},n.fn.fancybox=function(t){var e;return(e=(t=t||{}).selector||!1)?n("body").off("click.fb-start",e).on("click.fb-start",e,{options:t},i):this.off("click.fb-start").on("click.fb-start",{items:this,options:t},i),this},a.on("click.fb-start","[data-fancybox]",i),a.on("click.fb-start","[data-fancybox-trigger]",(function(t){n('[data-fancybox="'+n(this).attr("data-fancybox-trigger")+'"]').eq(n(this).attr("data-fancybox-index")||0).trigger("click.fb-start",{$trigger:n(this)})})),function(){var t=".fancybox-button",e="fancybox-focus",o=null;a.on("mousedown mouseup focus blur",t,(function(i){switch(i.type){case"mousedown":o=n(this);break;case"mouseup":o=null;break;case"focusin":n(t).removeClass(e),n(this).is(o)||n(this).is("[disabled]")||n(this).addClass(e);break;case"focusout":n(t).removeClass(e)}}))}()}}(window,document,jQuery),function(t){"use strict";var e={youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramPlace:8,type:"iframe",url:"https://www.youtube-nocookie.com/embed/$4",thumb:"https://img.youtube.com/vi/$4/hqdefault.jpg"},vimeo:{matcher:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1},paramPlace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},gmap_place:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/?ll="+(t[9]?t[9]+"&z="+Math.floor(t[10])+(t[12]?t[12].replace(/^\//,"&"):""):t[12]+"").replace(/\?/,"&")+"&output="+(t[12]&&t[12].indexOf("layer=c")>0?"svembed":"embed")}},gmap_search:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/maps?q="+t[5].replace("query=","q=").replace("api=1","")+"&output=embed"}}},n=function(e,n,o){if(e)return o=o||"","object"===t.type(o)&&(o=t.param(o,!0)),t.each(n,(function(t,n){e=e.replace("$"+t,n||"")})),o.length&&(e+=(e.indexOf("?")>0?"&":"?")+o),e};t(document).on("objectNeedsType.fb",(function(o,i,r){var s,a,l,c,d,u,p,f=r.src||"",h=!1;s=t.extend(!0,{},e,r.opts.media),t.each(s,(function(e,o){if(l=f.match(o.matcher)){if(h=o.type,p=e,u={},o.paramPlace&&l[o.paramPlace]){"?"==(d=l[o.paramPlace])[0]&&(d=d.substring(1)),d=d.split("&");for(var i=0;i<d.length;++i){var s=d[i].split("=",2);2==s.length&&(u[s[0]]=decodeURIComponent(s[1].replace(/\+/g," ")))}}return c=t.extend(!0,{},o.params,r.opts[e],u),f="function"===t.type(o.url)?o.url.call(this,l,c,r):n(o.url,l,c),a="function"===t.type(o.thumb)?o.thumb.call(this,l,c,r):n(o.thumb,l),"youtube"===e?f=f.replace(/&t=((\d+)m)?(\d+)s/,(function(t,e,n,o){return"&start="+((n?60*parseInt(n,10):0)+parseInt(o,10))})):"vimeo"===e&&(f=f.replace("&%23","#")),!1}})),h?(r.opts.thumb||r.opts.$thumb&&r.opts.$thumb.length||(r.opts.thumb=a),"iframe"===h&&(r.opts=t.extend(!0,r.opts,{iframe:{preload:!1,attr:{scrolling:"no"}}})),t.extend(r,{type:h,src:f,origSrc:r.src,contentSource:p,contentType:"image"===h?"image":"gmap_place"==p||"gmap_search"==p?"map":"video"})):f&&(r.type=r.opts.defaultType)}));var o={youtube:{src:"https://www.youtube.com/iframe_api",class:"YT",loading:!1,loaded:!1},vimeo:{src:"https://player.vimeo.com/api/player.js",class:"Vimeo",loading:!1,loaded:!1},load:function(t){var e,n=this;return this[t].loaded?void setTimeout((function(){n.done(t)})):void(this[t].loading||(this[t].loading=!0,e=document.createElement("script"),e.type="text/javascript",e.src=this[t].src,"youtube"===t?window.onYouTubeIframeAPIReady=function(){n[t].loaded=!0,n.done(t)}:e.onload=function(){n[t].loaded=!0,n.done(t)},document.body.appendChild(e)))},done:function(e){var n,o;"youtube"===e&&delete window.onYouTubeIframeAPIReady,(n=t.fancybox.getInstance())&&(o=n.current.$content.find("iframe"),"youtube"===e&&void 0!==YT&&YT?new YT.Player(o.attr("id"),{events:{onStateChange:function(t){0==t.data&&n.next()}}}):"vimeo"===e&&void 0!==Vimeo&&Vimeo&&new Vimeo.Player(o).on("ended",(function(){n.next()})))}};t(document).on({"afterShow.fb":function(t,e,n){e.group.length>1&&("youtube"===n.contentSource||"vimeo"===n.contentSource)&&o.load(n.contentSource)}})}(jQuery),function(t,e,n){"use strict";var o=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||function(e){return t.setTimeout(e,1e3/60)},i=t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.mozCancelAnimationFrame||t.oCancelAnimationFrame||function(e){t.clearTimeout(e)},r=function(e){var n=[];for(var o in e=(e=e.originalEvent||e||t.e).touches&&e.touches.length?e.touches:e.changedTouches&&e.changedTouches.length?e.changedTouches:[e])e[o].pageX?n.push({x:e[o].pageX,y:e[o].pageY}):e[o].clientX&&n.push({x:e[o].clientX,y:e[o].clientY});return n},s=function(t,e,n){return e&&t?"x"===n?t.x-e.x:"y"===n?t.y-e.y:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0},a=function(t){if(t.is('a,area,button,[role="button"],input,label,select,summary,textarea,video,audio,iframe')||n.isFunction(t.get(0).onclick)||t.data("selectable"))return!0;for(var e=0,o=t[0].attributes,i=o.length;e<i;e++)if("data-fancybox-"===o[e].nodeName.substr(0,14))return!0;return!1},l=function(e){var n=t.getComputedStyle(e)["overflow-y"],o=t.getComputedStyle(e)["overflow-x"],i=("scroll"===n||"auto"===n)&&e.scrollHeight>e.clientHeight,r=("scroll"===o||"auto"===o)&&e.scrollWidth>e.clientWidth;return i||r},c=function(t){for(var e=!1;!(e=l(t.get(0)))&&((t=t.parent()).length&&!t.hasClass("fancybox-stage")&&!t.is("body")););return e},d=function(t){var e=this;e.instance=t,e.$bg=t.$refs.bg,e.$stage=t.$refs.stage,e.$container=t.$refs.container,e.destroy(),e.$container.on("touchstart.fb.touch mousedown.fb.touch",n.proxy(e,"ontouchstart"))};d.prototype.destroy=function(){var t=this;t.$container.off(".fb.touch"),n(e).off(".fb.touch"),t.requestId&&(i(t.requestId),t.requestId=null),t.tapped&&(clearTimeout(t.tapped),t.tapped=null)},d.prototype.ontouchstart=function(o){var i=this,l=n(o.target),d=i.instance,u=d.current,p=u.$slide,f=u.$content,h="touchstart"==o.type;if(h&&i.$container.off("mousedown.fb.touch"),(!o.originalEvent||2!=o.originalEvent.button)&&p.length&&l.length&&!a(l)&&!a(l.parent())&&(l.is("img")||!(o.originalEvent.clientX>l[0].clientWidth+l.offset().left))){if(!u||d.isAnimating||u.$slide.hasClass("fancybox-animated"))return o.stopPropagation(),void o.preventDefault();i.realPoints=i.startPoints=r(o),i.startPoints.length&&(u.touch&&o.stopPropagation(),i.startEvent=o,i.canTap=!0,i.$target=l,i.$content=f,i.opts=u.opts.touch,i.isPanning=!1,i.isSwiping=!1,i.isZooming=!1,i.isScrolling=!1,i.canPan=d.canPan(),i.startTime=(new Date).getTime(),i.distanceX=i.distanceY=i.distance=0,i.canvasWidth=Math.round(p[0].clientWidth),i.canvasHeight=Math.round(p[0].clientHeight),i.contentLastPos=null,i.contentStartPos=n.fancybox.getTranslate(i.$content)||{top:0,left:0},i.sliderStartPos=n.fancybox.getTranslate(p),i.stagePos=n.fancybox.getTranslate(d.$refs.stage),i.sliderStartPos.top-=i.stagePos.top,i.sliderStartPos.left-=i.stagePos.left,i.contentStartPos.top-=i.stagePos.top,i.contentStartPos.left-=i.stagePos.left,n(e).off(".fb.touch").on(h?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",n.proxy(i,"ontouchend")).on(h?"touchmove.fb.touch":"mousemove.fb.touch",n.proxy(i,"ontouchmove")),n.fancybox.isMobile&&e.addEventListener("scroll",i.onscroll,!0),((i.opts||i.canPan)&&(l.is(i.$stage)||i.$stage.find(l).length)||(l.is(".fancybox-image")&&o.preventDefault(),n.fancybox.isMobile&&l.parents(".fancybox-caption").length))&&(i.isScrollable=c(l)||c(l.parent()),n.fancybox.isMobile&&i.isScrollable||o.preventDefault(),(1===i.startPoints.length||u.hasError)&&(i.canPan?(n.fancybox.stop(i.$content),i.isPanning=!0):i.isSwiping=!0,i.$container.addClass("fancybox-is-grabbing")),2===i.startPoints.length&&"image"===u.type&&(u.isLoaded||u.$ghost)&&(i.canTap=!1,i.isSwiping=!1,i.isPanning=!1,i.isZooming=!0,n.fancybox.stop(i.$content),i.centerPointStartX=.5*(i.startPoints[0].x+i.startPoints[1].x)-n(t).scrollLeft(),i.centerPointStartY=.5*(i.startPoints[0].y+i.startPoints[1].y)-n(t).scrollTop(),i.percentageOfImageAtPinchPointX=(i.centerPointStartX-i.contentStartPos.left)/i.contentStartPos.width,i.percentageOfImageAtPinchPointY=(i.centerPointStartY-i.contentStartPos.top)/i.contentStartPos.height,i.startDistanceBetweenFingers=s(i.startPoints[0],i.startPoints[1]))))}},d.prototype.onscroll=function(t){this.isScrolling=!0,e.removeEventListener("scroll",this.onscroll,!0)},d.prototype.ontouchmove=function(t){var e=this;return void 0!==t.originalEvent.buttons&&0===t.originalEvent.buttons?void e.ontouchend(t):e.isScrolling?void(e.canTap=!1):(e.newPoints=r(t),void((e.opts||e.canPan)&&e.newPoints.length&&e.newPoints.length&&(e.isSwiping&&!0===e.isSwiping||t.preventDefault(),e.distanceX=s(e.newPoints[0],e.startPoints[0],"x"),e.distanceY=s(e.newPoints[0],e.startPoints[0],"y"),e.distance=s(e.newPoints[0],e.startPoints[0]),e.distance>0&&(e.isSwiping?e.onSwipe(t):e.isPanning?e.onPan():e.isZooming&&e.onZoom()))))},d.prototype.onSwipe=function(e){var r,s=this,a=s.instance,l=s.isSwiping,c=s.sliderStartPos.left||0;if(!0!==l)"x"==l&&(s.distanceX>0&&(s.instance.group.length<2||0===s.instance.current.index&&!s.instance.current.opts.loop)?c+=Math.pow(s.distanceX,.8):s.distanceX<0&&(s.instance.group.length<2||s.instance.current.index===s.instance.group.length-1&&!s.instance.current.opts.loop)?c-=Math.pow(-s.distanceX,.8):c+=s.distanceX),s.sliderLastPos={top:"x"==l?0:s.sliderStartPos.top+s.distanceY,left:c},s.requestId&&(i(s.requestId),s.requestId=null),s.requestId=o((function(){s.sliderLastPos&&(n.each(s.instance.slides,(function(t,e){var o=e.pos-s.instance.currPos;n.fancybox.setTranslate(e.$slide,{top:s.sliderLastPos.top,left:s.sliderLastPos.left+o*s.canvasWidth+o*e.opts.gutter})})),s.$container.addClass("fancybox-is-sliding"))}));else if(Math.abs(s.distance)>10){if(s.canTap=!1,a.group.length<2&&s.opts.vertical?s.isSwiping="y":a.isDragging||!1===s.opts.vertical||"auto"===s.opts.vertical&&n(t).width()>800?s.isSwiping="x":(r=Math.abs(180*Math.atan2(s.distanceY,s.distanceX)/Math.PI),s.isSwiping=r>45&&r<135?"y":"x"),"y"===s.isSwiping&&n.fancybox.isMobile&&s.isScrollable)return void(s.isScrolling=!0);a.isDragging=s.isSwiping,s.startPoints=s.newPoints,n.each(a.slides,(function(t,e){var o,i;n.fancybox.stop(e.$slide),o=n.fancybox.getTranslate(e.$slide),i=n.fancybox.getTranslate(a.$refs.stage),e.$slide.css({transform:"",opacity:"","transition-duration":""}).removeClass("fancybox-animated").removeClass((function(t,e){return(e.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")})),e.pos===a.current.pos&&(s.sliderStartPos.top=o.top-i.top,s.sliderStartPos.left=o.left-i.left),n.fancybox.setTranslate(e.$slide,{top:o.top-i.top,left:o.left-i.left})})),a.SlideShow&&a.SlideShow.isActive&&a.SlideShow.stop()}},d.prototype.onPan=function(){var t=this;return s(t.newPoints[0],t.realPoints[0])<(n.fancybox.isMobile?10:5)?void(t.startPoints=t.newPoints):(t.canTap=!1,t.contentLastPos=t.limitMovement(),t.requestId&&i(t.requestId),void(t.requestId=o((function(){n.fancybox.setTranslate(t.$content,t.contentLastPos)}))))},d.prototype.limitMovement=function(){var t,e,n,o,i,r,s=this,a=s.canvasWidth,l=s.canvasHeight,c=s.distanceX,d=s.distanceY,u=s.contentStartPos,p=u.left,f=u.top,h=u.width,g=u.height;return i=h>a?p+c:p,r=f+d,t=Math.max(0,.5*a-.5*h),e=Math.max(0,.5*l-.5*g),n=Math.min(a-h,.5*a-.5*h),o=Math.min(l-g,.5*l-.5*g),c>0&&i>t&&(i=t-1+Math.pow(-t+p+c,.8)||0),c<0&&i<n&&(i=n+1-Math.pow(n-p-c,.8)||0),d>0&&r>e&&(r=e-1+Math.pow(-e+f+d,.8)||0),d<0&&r<o&&(r=o+1-Math.pow(o-f-d,.8)||0),{top:r,left:i}},d.prototype.limitPosition=function(t,e,n,o){var i=this.canvasWidth,r=this.canvasHeight;return n>i?t=(t=t>0?0:t)<i-n?i-n:t:t=Math.max(0,i/2-n/2),o>r?e=(e=e>0?0:e)<r-o?r-o:e:e=Math.max(0,r/2-o/2),{top:e,left:t}},d.prototype.onZoom=function(){var e=this,r=e.contentStartPos,a=r.width,l=r.height,c=r.left,d=r.top,u=s(e.newPoints[0],e.newPoints[1])/e.startDistanceBetweenFingers,p=Math.floor(a*u),f=Math.floor(l*u),h=(a-p)*e.percentageOfImageAtPinchPointX,g=(l-f)*e.percentageOfImageAtPinchPointY,m=(e.newPoints[0].x+e.newPoints[1].x)/2-n(t).scrollLeft(),v=(e.newPoints[0].y+e.newPoints[1].y)/2-n(t).scrollTop(),y=m-e.centerPointStartX,b={top:d+(g+(v-e.centerPointStartY)),left:c+(h+y),scaleX:u,scaleY:u};e.canTap=!1,e.newWidth=p,e.newHeight=f,e.contentLastPos=b,e.requestId&&i(e.requestId),e.requestId=o((function(){n.fancybox.setTranslate(e.$content,e.contentLastPos)}))},d.prototype.ontouchend=function(t){var o=this,s=o.isSwiping,a=o.isPanning,l=o.isZooming,c=o.isScrolling;return o.endPoints=r(t),o.dMs=Math.max((new Date).getTime()-o.startTime,1),o.$container.removeClass("fancybox-is-grabbing"),n(e).off(".fb.touch"),e.removeEventListener("scroll",o.onscroll,!0),o.requestId&&(i(o.requestId),o.requestId=null),o.isSwiping=!1,o.isPanning=!1,o.isZooming=!1,o.isScrolling=!1,o.instance.isDragging=!1,o.canTap?o.onTap(t):(o.speed=100,o.velocityX=o.distanceX/o.dMs*.5,o.velocityY=o.distanceY/o.dMs*.5,void(a?o.endPanning():l?o.endZooming():o.endSwiping(s,c)))},d.prototype.endSwiping=function(t,e){var o=this,i=!1,r=o.instance.group.length,s=Math.abs(o.distanceX),a="x"==t&&r>1&&(o.dMs>130&&s>10||s>50);o.sliderLastPos=null,"y"==t&&!e&&Math.abs(o.distanceY)>50?(n.fancybox.animate(o.instance.current.$slide,{top:o.sliderStartPos.top+o.distanceY+150*o.velocityY,opacity:0},200),i=o.instance.close(!0,250)):a&&o.distanceX>0?i=o.instance.previous(300):a&&o.distanceX<0&&(i=o.instance.next(300)),!1!==i||"x"!=t&&"y"!=t||o.instance.centerSlide(200),o.$container.removeClass("fancybox-is-sliding")},d.prototype.endPanning=function(){var t,e,o,i=this;i.contentLastPos&&(!1===i.opts.momentum||i.dMs>350?(t=i.contentLastPos.left,e=i.contentLastPos.top):(t=i.contentLastPos.left+500*i.velocityX,e=i.contentLastPos.top+500*i.velocityY),(o=i.limitPosition(t,e,i.contentStartPos.width,i.contentStartPos.height)).width=i.contentStartPos.width,o.height=i.contentStartPos.height,n.fancybox.animate(i.$content,o,366))},d.prototype.endZooming=function(){var t,e,o,i,r=this,s=r.instance.current,a=r.newWidth,l=r.newHeight;r.contentLastPos&&(t=r.contentLastPos.left,i={top:e=r.contentLastPos.top,left:t,width:a,height:l,scaleX:1,scaleY:1},n.fancybox.setTranslate(r.$content,i),a<r.canvasWidth&&l<r.canvasHeight?r.instance.scaleToFit(150):a>s.width||l>s.height?r.instance.scaleToActual(r.centerPointStartX,r.centerPointStartY,150):(o=r.limitPosition(t,e,a,l),n.fancybox.animate(r.$content,o,150)))},d.prototype.onTap=function(e){var o,i=this,s=n(e.target),a=i.instance,l=a.current,c=e&&r(e)||i.startPoints,d=c[0]?c[0].x-n(t).scrollLeft()-i.stagePos.left:0,u=c[0]?c[0].y-n(t).scrollTop()-i.stagePos.top:0,p=function(t){var o=l.opts[t];if(n.isFunction(o)&&(o=o.apply(a,[l,e])),o)switch(o){case"close":a.close(i.startEvent);break;case"toggleControls":a.toggleControls();break;case"next":a.next();break;case"nextOrClose":a.group.length>1?a.next():a.close(i.startEvent);break;case"zoom":"image"==l.type&&(l.isLoaded||l.$ghost)&&(a.canPan()?a.scaleToFit():a.isScaledDown()?a.scaleToActual(d,u):a.group.length<2&&a.close(i.startEvent))}};if((!e.originalEvent||2!=e.originalEvent.button)&&(s.is("img")||!(d>s[0].clientWidth+s.offset().left))){if(s.is(".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container"))o="Outside";else if(s.is(".fancybox-slide"))o="Slide";else{if(!a.current.$content||!a.current.$content.find(s).addBack().filter(s).length)return;o="Content"}if(i.tapped){if(clearTimeout(i.tapped),i.tapped=null,Math.abs(d-i.tapX)>50||Math.abs(u-i.tapY)>50)return this;p("dblclick"+o)}else i.tapX=d,i.tapY=u,l.opts["dblclick"+o]&&l.opts["dblclick"+o]!==l.opts["click"+o]?i.tapped=setTimeout((function(){i.tapped=null,a.isAnimating||p("click"+o)}),500):p("click"+o);return this}},n(e).on("onActivate.fb",(function(t,e){e&&!e.Guestures&&(e.Guestures=new d(e))})).on("beforeClose.fb",(function(t,e){e&&e.Guestures&&e.Guestures.destroy()}))}(window,document,jQuery),function(t,e){"use strict";e.extend(!0,e.fancybox.defaults,{btnTpl:{slideShow:'<button data-fancybox-play class="fancybox-button fancybox-button--play" title="{{PLAY_START}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.5 5.4v13.2l11-6.6z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.33 5.75h2.2v12.5h-2.2V5.75zm5.15 0h2.2v12.5h-2.2V5.75z"/></svg></button>'},slideShow:{autoStart:!1,speed:3e3,progress:!0}});var n=function(t){this.instance=t,this.init()};e.extend(n.prototype,{timer:null,isActive:!1,$button:null,init:function(){var t=this,n=t.instance,o=n.group[n.currIndex].opts.slideShow;t.$button=n.$refs.toolbar.find("[data-fancybox-play]").on("click",(function(){t.toggle()})),n.group.length<2||!o?t.$button.hide():o.progress&&(t.$progress=e('<div class="fancybox-progress"></div>').appendTo(n.$refs.inner))},set:function(t){var n=this,o=n.instance,i=o.current;i&&(!0===t||i.opts.loop||o.currIndex<o.group.length-1)?n.isActive&&"video"!==i.contentType&&(n.$progress&&e.fancybox.animate(n.$progress.show(),{scaleX:1},i.opts.slideShow.speed),n.timer=setTimeout((function(){o.current.opts.loop||o.current.index!=o.group.length-1?o.next():o.jumpTo(0)}),i.opts.slideShow.speed)):(n.stop(),o.idleSecondsCounter=0,o.showControls())},clear:function(){var t=this;clearTimeout(t.timer),t.timer=null,t.$progress&&t.$progress.removeAttr("style").hide()},start:function(){var t=this,e=t.instance.current;e&&(t.$button.attr("title",(e.opts.i18n[e.opts.lang]||e.opts.i18n.en).PLAY_STOP).removeClass("fancybox-button--play").addClass("fancybox-button--pause"),t.isActive=!0,e.isComplete&&t.set(!0),t.instance.trigger("onSlideShowChange",!0))},stop:function(){var t=this,e=t.instance.current;t.clear(),t.$button.attr("title",(e.opts.i18n[e.opts.lang]||e.opts.i18n.en).PLAY_START).removeClass("fancybox-button--pause").addClass("fancybox-button--play"),t.isActive=!1,t.instance.trigger("onSlideShowChange",!1),t.$progress&&t.$progress.removeAttr("style").hide()},toggle:function(){var t=this;t.isActive?t.stop():t.start()}}),e(t).on({"onInit.fb":function(t,e){e&&!e.SlideShow&&(e.SlideShow=new n(e))},"beforeShow.fb":function(t,e,n,o){var i=e&&e.SlideShow;o?i&&n.opts.slideShow.autoStart&&i.start():i&&i.isActive&&i.clear()},"afterShow.fb":function(t,e,n){var o=e&&e.SlideShow;o&&o.isActive&&o.set()},"afterKeydown.fb":function(n,o,i,r,s){var a=o&&o.SlideShow;!a||!i.opts.slideShow||80!==s&&32!==s||e(t.activeElement).is("button,a,input")||(r.preventDefault(),a.toggle())},"beforeClose.fb onDeactivate.fb":function(t,e){var n=e&&e.SlideShow;n&&n.stop()}}),e(t).on("visibilitychange",(function(){var n=e.fancybox.getInstance(),o=n&&n.SlideShow;o&&o.isActive&&(t.hidden?o.clear():o.set())}))}(document,jQuery),function(t,e){"use strict";var n=function(){for(var e=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],n={},o=0;o<e.length;o++){var i=e[o];if(i&&i[1]in t){for(var r=0;r<i.length;r++)n[e[0][r]]=i[r];return n}}return!1}();if(n){var o={request:function(e){(e=e||t.documentElement)[n.requestFullscreen](e.ALLOW_KEYBOARD_INPUT)},exit:function(){t[n.exitFullscreen]()},toggle:function(e){e=e||t.documentElement,this.isFullscreen()?this.exit():this.request(e)},isFullscreen:function(){return Boolean(t[n.fullscreenElement])},enabled:function(){return Boolean(t[n.fullscreenEnabled])}};e.extend(!0,e.fancybox.defaults,{btnTpl:{fullScreen:'<button data-fancybox-fullscreen class="fancybox-button fancybox-button--fsenter" title="{{FULL_SCREEN}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"/></svg></button>'},fullScreen:{autoStart:!1}}),e(t).on(n.fullscreenchange,(function(){var t=o.isFullscreen(),n=e.fancybox.getInstance();n&&(n.current&&"image"===n.current.type&&n.isAnimating&&(n.isAnimating=!1,n.update(!0,!0,0),n.isComplete||n.complete()),n.trigger("onFullscreenChange",t),n.$refs.container.toggleClass("fancybox-is-fullscreen",t),n.$refs.toolbar.find("[data-fancybox-fullscreen]").toggleClass("fancybox-button--fsenter",!t).toggleClass("fancybox-button--fsexit",t))}))}e(t).on({"onInit.fb":function(t,e){var i;return n?void(e&&e.group[e.currIndex].opts.fullScreen?(i=e.$refs.container,i.on("click.fb-fullscreen","[data-fancybox-fullscreen]",(function(t){t.stopPropagation(),t.preventDefault(),o.toggle()})),e.opts.fullScreen&&!0===e.opts.fullScreen.autoStart&&o.request(),e.FullScreen=o):e&&e.$refs.toolbar.find("[data-fancybox-fullscreen]").hide()):void e.$refs.toolbar.find("[data-fancybox-fullscreen]").remove()},"afterKeydown.fb":function(t,e,n,o,i){e&&e.FullScreen&&70===i&&(o.preventDefault(),e.FullScreen.toggle())},"beforeClose.fb":function(t,e){e&&e.FullScreen&&e.$refs.container.hasClass("fancybox-is-fullscreen")&&o.exit()}})}(document,jQuery),function(t,e){"use strict";var n="fancybox-thumbs",o=n+"-active";e.fancybox.defaults=e.extend(!0,{btnTpl:{thumbs:'<button data-fancybox-thumbs class="fancybox-button fancybox-button--thumbs" title="{{THUMBS}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14.59 14.59h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76H5.65V5.65z"/></svg></button>'},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"}},e.fancybox.defaults);var i=function(t){this.init(t)};e.extend(i.prototype,{$button:null,$grid:null,$list:null,isVisible:!1,isActive:!1,init:function(t){var e=this,n=t.group,o=0;e.instance=t,e.opts=n[t.currIndex].opts.thumbs,t.Thumbs=e,e.$button=t.$refs.toolbar.find("[data-fancybox-thumbs]");for(var i=0,r=n.length;i<r&&(n[i].thumb&&o++,!(o>1));i++);o>1&&e.opts?(e.$button.removeAttr("style").on("click",(function(){e.toggle()})),e.isActive=!0):e.$button.hide()},create:function(){var t,o=this,i=o.instance,r=o.opts.parentEl,s=[];o.$grid||(o.$grid=e('<div class="'+n+" "+n+"-"+o.opts.axis+'"></div>').appendTo(i.$refs.container.find(r).addBack().filter(r)),o.$grid.on("click","a",(function(){i.jumpTo(e(this).attr("data-index"))}))),o.$list||(o.$list=e('<div class="'+n+'__list">').appendTo(o.$grid)),e.each(i.group,(function(e,n){(t=n.thumb)||"image"!==n.type||(t=n.src),s.push('<a href="javascript:;" tabindex="0" data-index="'+e+'"'+(t&&t.length?' style="background-image:url('+t+')"':'class="fancybox-thumbs-missing"')+"></a>")})),o.$list[0].innerHTML=s.join(""),"x"===o.opts.axis&&o.$list.width(parseInt(o.$grid.css("padding-right"),10)+i.group.length*o.$list.children().eq(0).outerWidth(!0))},focus:function(t){var e,n,i=this,r=i.$list,s=i.$grid;i.instance.current&&(n=(e=r.children().removeClass(o).filter('[data-index="'+i.instance.current.index+'"]').addClass(o)).position(),"y"===i.opts.axis&&(n.top<0||n.top>r.height()-e.outerHeight())?r.stop().animate({scrollTop:r.scrollTop()+n.top},t):"x"===i.opts.axis&&(n.left<s.scrollLeft()||n.left>s.scrollLeft()+(s.width()-e.outerWidth()))&&r.parent().stop().animate({scrollLeft:n.left},t))},update:function(){var t=this;t.instance.$refs.container.toggleClass("fancybox-show-thumbs",this.isVisible),t.isVisible?(t.$grid||t.create(),t.instance.trigger("onThumbsShow"),t.focus(0)):t.$grid&&t.instance.trigger("onThumbsHide"),t.instance.update()},hide:function(){this.isVisible=!1,this.update()},show:function(){this.isVisible=!0,this.update()},toggle:function(){this.isVisible=!this.isVisible,this.update()}}),e(t).on({"onInit.fb":function(t,e){var n;e&&!e.Thumbs&&((n=new i(e)).isActive&&!0===n.opts.autoStart&&n.show())},"beforeShow.fb":function(t,e,n,o){var i=e&&e.Thumbs;i&&i.isVisible&&i.focus(o?0:250)},"afterKeydown.fb":function(t,e,n,o,i){var r=e&&e.Thumbs;r&&r.isActive&&71===i&&(o.preventDefault(),r.toggle())},"beforeClose.fb":function(t,e){var n=e&&e.Thumbs;n&&n.isVisible&&!1!==n.opts.hideOnClose&&n.$grid.hide()}})}(document,jQuery),function(t,e){"use strict";e.extend(!0,e.fancybox.defaults,{btnTpl:{share:'<button data-fancybox-share class="fancybox-button fancybox-button--share" title="{{SHARE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M2.55 19c1.4-8.4 9.1-9.8 11.9-9.8V5l7 7-7 6.3v-3.5c-2.8 0-10.5 2.1-11.9 4.2z"/></svg></button>'},share:{url:function(t,e){return!t.currentHash&&"inline"!==e.type&&"html"!==e.type&&(e.origSrc||e.src)||window.location},tpl:'<div class="fancybox-share"><h1>{{SHARE}}</h1><p><a class="fancybox-share__button fancybox-share__button--fb" href="https://www.facebook.com/sharer/sharer.php?u={{url}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m287 456v-299c0-21 6-35 35-35h38v-63c-7-1-29-3-55-3-54 0-91 33-91 94v306m143-254h-205v72h196" /></svg><span>Facebook</span></a><a class="fancybox-share__button fancybox-share__button--tw" href="https://twitter.com/intent/tweet?url={{url}}&text={{descr}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m456 133c-14 7-31 11-47 13 17-10 30-27 37-46-15 10-34 16-52 20-61-62-157-7-141 75-68-3-129-35-169-85-22 37-11 86 26 109-13 0-26-4-37-9 0 39 28 72 65 80-12 3-25 4-37 2 10 33 41 57 77 57-42 30-77 38-122 34 170 111 378-32 359-208 16-11 30-25 41-42z" /></svg><span>Twitter</span></a><a class="fancybox-share__button fancybox-share__button--pt" href="https://www.pinterest.com/pin/create/button/?url={{url}}&description={{descr}}&media={{media}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m265 56c-109 0-164 78-164 144 0 39 15 74 47 87 5 2 10 0 12-5l4-19c2-6 1-8-3-13-9-11-15-25-15-45 0-58 43-110 113-110 62 0 96 38 96 88 0 67-30 122-73 122-24 0-42-19-36-44 6-29 20-60 20-81 0-19-10-35-31-35-25 0-44 26-44 60 0 21 7 36 7 36l-30 125c-8 37-1 83 0 87 0 3 4 4 5 2 2-3 32-39 42-75l16-64c8 16 31 29 56 29 74 0 124-67 124-157 0-69-58-132-146-132z" fill="#fff"/></svg><span>Pinterest</span></a></p><p><input class="fancybox-share__input" type="text" value="{{url_raw}}" onclick="select()" /></p></div>'}}),e(t).on("click","[data-fancybox-share]",(function(){var t,n,o=e.fancybox.getInstance(),i=o.current||null;i&&("function"===e.type(i.opts.share.url)&&(t=i.opts.share.url.apply(i,[o,i])),n=i.opts.share.tpl.replace(/\{\{media\}\}/g,"image"===i.type?encodeURIComponent(i.src):"").replace(/\{\{url\}\}/g,encodeURIComponent(t)).replace(/\{\{url_raw\}\}/g,function(t){var e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};return String(t).replace(/[&<>"'`=\/]/g,(function(t){return e[t]}))}(t)).replace(/\{\{descr\}\}/g,o.$caption?encodeURIComponent(o.$caption.text()):""),e.fancybox.open({src:o.translate(o,n),type:"html",opts:{touch:!1,animationEffect:!1,afterLoad:function(t,e){o.$refs.container.one("beforeClose.fb",(function(){t.close(null,0)})),e.$content.find(".fancybox-share__button").click((function(){return window.open(this.href,"Share","width=550, height=450"),!1}))},mobile:{autoFocus:!1}}}))}))}(document,jQuery),function(t,e,n){"use strict";function o(){var e=t.location.hash.substr(1),n=e.split("-"),o=n.length>1&&/^\+?\d+$/.test(n[n.length-1])&&parseInt(n.pop(-1),10)||1;return{hash:e,index:o<1?1:o,gallery:n.join("-")}}function i(t){""!==t.gallery&&n("[data-fancybox='"+n.escapeSelector(t.gallery)+"']").eq(t.index-1).focus().trigger("click.fb-start")}function r(t){var e,n;return!!t&&(""!==(n=(e=t.current?t.current.opts:t.opts).hash||(e.$orig?e.$orig.data("fancybox")||e.$orig.data("fancybox-trigger"):""))&&n)}n.escapeSelector||(n.escapeSelector=function(t){return(t+"").replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,(function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}))}),n((function(){!1!==n.fancybox.defaults.hash&&(n(e).on({"onInit.fb":function(t,e){var n,i;!1!==e.group[e.currIndex].opts.hash&&(n=o(),(i=r(e))&&n.gallery&&i==n.gallery&&(e.currIndex=n.index-1))},"beforeShow.fb":function(n,o,i,s){var a;i&&!1!==i.opts.hash&&((a=r(o))&&(o.currentHash=a+(o.group.length>1?"-"+(i.index+1):""),t.location.hash!=="#"+o.currentHash&&(s&&!o.origHash&&(o.origHash=t.location.hash),o.hashTimer&&clearTimeout(o.hashTimer),o.hashTimer=setTimeout((function(){"replaceState"in t.history?(t.history[s?"pushState":"replaceState"]({},e.title,t.location.pathname+t.location.search+"#"+o.currentHash),s&&(o.hasCreatedHistory=!0)):t.location.hash=o.currentHash,o.hashTimer=null}),300))))},"beforeClose.fb":function(n,o,i){i&&!1!==i.opts.hash&&(clearTimeout(o.hashTimer),o.currentHash&&o.hasCreatedHistory?t.history.back():o.currentHash&&("replaceState"in t.history?t.history.replaceState({},e.title,t.location.pathname+t.location.search+(o.origHash||"")):t.location.hash=o.origHash),o.currentHash=null)}}),n(t).on("hashchange.fb",(function(){var t=o(),e=null;n.each(n(".fancybox-container").get().reverse(),(function(t,o){var i=n(o).data("FancyBox");if(i&&i.currentHash)return e=i,!1})),e?e.currentHash===t.gallery+"-"+t.index||1===t.index&&e.currentHash==t.gallery||(e.currentHash=null,e.close()):""!==t.gallery&&i(t)})),setTimeout((function(){n.fancybox.getInstance()||i(o())}),50))}))}(window,document,jQuery),function(t,e){"use strict";var n=(new Date).getTime();e(t).on({"onInit.fb":function(t,e,o){e.$refs.stage.on("mousewheel DOMMouseScroll wheel MozMousePixelScroll",(function(t){var o=e.current,i=(new Date).getTime();e.group.length<2||!1===o.opts.wheel||"auto"===o.opts.wheel&&"image"!==o.type||(t.preventDefault(),t.stopPropagation(),o.$slide.hasClass("fancybox-animated")||(t=t.originalEvent||t,i-n<250||(n=i,e[(-t.deltaY||-t.deltaX||t.wheelDelta||-t.detail)<0?"next":"previous"]())))}))}})}(document,jQuery)},function(t,e,n){var o;o=n(3),t.exports={init:function(t){var e,n,i;if(e=t.$target,i=o("html").hasClass("touch"),n=function(t){if(!o(t.target).closest(".menu-secondary__submenu").length&&!o(t.target).closest(".menu-secondary__link").length)return o(".menu-secondary__wrap .menu-secondary__link.is-open").length&&(t.preventDefault(),o(".menu-secondary__wrap .menu-secondary__link.is-open").each((function(){return o(this).removeClass("is-open"),o(this).parent().find(".menu-secondary__submenu").removeClass("is-open")}))),o(".menu-secondary__submenu.is-open").length?(t.preventDefault(),o(".menu-secondary__submenu.is-open").remove()):void 0},e.find(".menu-secondary__link").length&&(o(".menu-secondary__link").on("click",(function(t){var e;if(e=o(this).parent().find(".menu-secondary__submenu"),o(this).hasClass("is-open")&&e.length){if(t.preventDefault(),o(this).removeClass("is-open"),e.removeClass("is-open"),i&&o(".menu-secondary__submenu.is-open").length)return o(".menu-secondary__submenu.is-open").remove()}else if(!o(this).hasClass("is-open")&&e.length)return t.preventDefault(),t.stopPropagation(),i&&o(".menu-secondary__submenu.is-open").length&&o(".menu-secondary__submenu.is-open").remove(),o(".menu-secondary__link.is-open").each((function(){return o(this).removeClass("is-open"),o(this).parent().find(".menu-secondary__submenu").removeClass("is-open")})),i?(o(this).addClass("is-open"),e.parents(".menu-secondary__wrap").after(e.clone().addClass("is-open"))):(o(this).addClass("is-open"),e.addClass("is-open").css("left",o(this).position().left))})),o(document).on("click",n),i))return o(document).on("touchend",n)}}},function(t,e,n){var o,i,r;o=n(3),r=!0,i=function(){var t;return r=!1,""!==location.hash&&((t=o(".box-accordion .box-accordion__title__link[href$="+location.hash+"]")).length>0&&(t.click(),t.closest(".box-accordion").hasClass("is-simple")&&history.pushState(null,null,window.location.pathname+window.location.search),o("html, body").animate({scrollTop:t.offset().top+"px"},300))),r=!0},t.exports={ajax:function(t){return i()},init:function(t){return t.$target.on("click",".box-accordion__title__link",(function(t){var e,n,i,s,a,l;return t.preventDefault(),a=o(this),e=a.closest(".box-accordion"),i=(n=a.closest(".box-accordion__item")).find("> .box-accordion__box"),s=n.siblings(".box-accordion__item"),l="#"+i.attr("id"),n.hasClass("is-open")&&r?(e.hasClass("with-history")&&r&&history.pushState(null,null,window.location.pathname+window.location.search),i.slideUp((function(){return n.removeClass("is-open")}))):(e.hasClass("is-simple")||s.find("> .box-accordion__box").slideUp((function(){return s.removeClass("is-open")})),i.slideDown((function(){if(n.addClass("is-open"),n.offset().top<o(window).scrollTop()&&o("body, html").animate({scrollTop:n.offset().top},250),e.hasClass("with-history")&&r)return history.pushState(null,null,l)})))})),o(window).on("hashchange",i),i()}}},function(t,e,n){var o,i,r,s;o=n(3),n(18),s=!0,r=function(t){return"",s=!1,""!==location.hash?o(".box-tabs .js-tab-links[href$="+location.hash+"]").click():t&&o(".box-tabs .box-tabs__menu").not(":has(.is-active)").find(".box-tabs__menu__item:first-child .js-tab-links").click(),s=!0},i=function(){return o(".box-tabs").each((function(){if(o(this).hasClass("mobile-hide")&&o(window).width()<700)return o(this).find(".is-active").removeClass("is-active")}))},t.exports={ajax:function(t){return r(),i()},init:function(t){var e,n,a;return e=t.$target,a=function(t){var e;return(e=t.indexOf("#"))>-1?t.substring(0,e):t},n=function(t){var e;return t&&(e=t.indexOf("#"))>=0?t.substring(e):""},e.on("click",".js-tab-links",(function(t){var e,i,r,a,l,c,d;if(t.preventDefault(),!(r=o(this)).is(".is-active")&&!r.is(".is-disabled"))return c=n(r.attr("href")),a=o(c+".box-tabs__fragment"),e=r.closest("ul").find(".js-tab-links.is-active"),i=o(n(e.attr("href")+".box-tabs__fragment")),l=a.closest(".box-tabs"),a.addClass("is-active"),i.removeClass("is-active"),e.removeClass("is-active"),e.attr("aria-selected","false"),r.addClass("is-active"),r.attr("aria-selected","true"),d={byRow:!0,property:"min-height",target:null,remove:!1},a.find(".box-grid__inner").matchHeight(d),l.hasClass("with-history")&&s&&history.pushState(null,null,c),r.hasClass("is-ajax")&&!r.data("ajaxed")?o.ajax({url:r.data("ajax")}).done((function(t){return a.find(".box-tabs__content").html(t),r.data("ajaxed",!0)})):void 0})).on("click",".box-tabs__responsive-link",(function(t){var n,i,r,s;return t.preventDefault(),r=(s=o(this)).closest(".box-tabs"),i=s.closest(".box-tabs__fragment"),n=r.find(".js-tab-links"),(e=n.filter('[href$="#'+i.attr("id")+'"]')).hasClass("is-active")?(e.removeClass("is-active"),i.removeClass("is-active")):(e.trigger("click"),i.offset().top<o(window).scrollTop()?o("body, html").animate({scrollTop:i.offset().top},250):void 0)})).on("click","a[href*='#']:not([href='#']):not(.box-tabs__menu__link):not(.box-tabs__responsive-link):not(.menu-filter__link)",(function(t){var e,n;if(a(window.location.href)===a(this.href)&&"_blank"!==this.target&&(n=this.hash,(e=o(".box-tabs .js-tab-links[href$="+n+"]")).length>0))return t.preventDefault(),history.pushState(null,null,n),e.click(),e.is(":visible")||(e=o(n)),o("html, body").animate({scrollTop:e.offset().top+"px"},500)})),o(window).on("hashchange",r),r(!0),i()}}}])},5149:function(t,e,n){var o,i,r;function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}t=n.nmd(t),i="undefined"!=typeof window?window:this,r=function(n,i){var r=[],a=r.slice,l=r.concat,c=r.push,d=r.indexOf,u={},p=u.toString,f=u.hasOwnProperty,h={},g="1.11.3",m=function t(e,n){return new t.fn.init(e,n)},v=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,y=/^-ms-/,b=/-([\da-z])/gi,w=function(t,e){return e.toUpperCase()};function x(t){var e="length"in t&&t.length,n=m.type(t);return"function"!==n&&!m.isWindow(t)&&(!(1!==t.nodeType||!e)||"array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}m.fn=m.prototype={jquery:g,constructor:m,selector:"",length:0,toArray:function(){return a.call(this)},get:function(t){return null!=t?t<0?this[t+this.length]:this[t]:a.call(this)},pushStack:function(t){var e=m.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t,e){return m.each(this,t,e)},map:function(t){return this.pushStack(m.map(this,(function(e,n){return t.call(e,n,e)})))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:c,sort:r.sort,splice:r.splice},m.extend=m.fn.extend=function(){var t,e,n,o,i,r,a=arguments[0]||{},l=1,c=arguments.length,d=!1;for("boolean"==typeof a&&(d=a,a=arguments[l]||{},l++),"object"===s(a)||m.isFunction(a)||(a={}),l===c&&(a=this,l--);l<c;l++)if(null!=(i=arguments[l]))for(o in i)t=a[o],a!==(n=i[o])&&(d&&n&&(m.isPlainObject(n)||(e=m.isArray(n)))?(e?(e=!1,r=t&&m.isArray(t)?t:[]):r=t&&m.isPlainObject(t)?t:{},a[o]=m.extend(d,r,n)):void 0!==n&&(a[o]=n));return a},m.extend({expando:"jQuery"+(g+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===m.type(t)},isArray:Array.isArray||function(t){return"array"===m.type(t)},isWindow:function(t){return null!=t&&t==t.window},isNumeric:function(t){return!m.isArray(t)&&t-parseFloat(t)+1>=0},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},isPlainObject:function(t){var e;if(!t||"object"!==m.type(t)||t.nodeType||m.isWindow(t))return!1;try{if(t.constructor&&!f.call(t,"constructor")&&!f.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}if(h.ownLast)for(e in t)return f.call(t,e);for(e in t);return void 0===e||f.call(t,e)},type:function(t){return null==t?t+"":"object"===s(t)||"function"==typeof t?u[p.call(t)]||"object":s(t)},globalEval:function(t){t&&m.trim(t)&&(n.execScript||function(t){n.eval.call(n,t)})(t)},camelCase:function(t){return t.replace(y,"ms-").replace(b,w)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,n){var o=0,i=t.length,r=x(t);if(n){if(r)for(;o<i&&!1!==e.apply(t[o],n);o++);else for(o in t)if(!1===e.apply(t[o],n))break}else if(r)for(;o<i&&!1!==e.call(t[o],o,t[o]);o++);else for(o in t)if(!1===e.call(t[o],o,t[o]))break;return t},trim:function(t){return null==t?"":(t+"").replace(v,"")},makeArray:function(t,e){var n=e||[];return null!=t&&(x(Object(t))?m.merge(n,"string"==typeof t?[t]:t):c.call(n,t)),n},inArray:function(t,e,n){var o;if(e){if(d)return d.call(e,t,n);for(o=e.length,n=n?n<0?Math.max(0,o+n):n:0;n<o;n++)if(n in e&&e[n]===t)return n}return-1},merge:function(t,e){for(var n=+e.length,o=0,i=t.length;o<n;)t[i++]=e[o++];if(n!=n)for(;void 0!==e[o];)t[i++]=e[o++];return t.length=i,t},grep:function(t,e,n){for(var o=[],i=0,r=t.length,s=!n;i<r;i++)!e(t[i],i)!==s&&o.push(t[i]);return o},map:function(t,e,n){var o,i=0,r=t.length,s=[];if(x(t))for(;i<r;i++)null!=(o=e(t[i],i,n))&&s.push(o);else for(i in t)null!=(o=e(t[i],i,n))&&s.push(o);return l.apply([],s)},guid:1,proxy:function(t,e){var n,o,i;if("string"==typeof e&&(i=t[e],e=t,t=i),m.isFunction(t))return n=a.call(arguments,2),o=function(){return t.apply(e||this,n.concat(a.call(arguments)))},o.guid=t.guid=t.guid||m.guid++,o},now:function(){return+new Date},support:h}),m.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),(function(t,e){u["[object "+e+"]"]=e.toLowerCase()}));var C=function(t){var e,n,o,i,r,s,a,l,c,d,u,p,f,h,g,m,v,y,b,w="sizzle"+1*new Date,x=t.document,C=0,T=0,k=st(),S=st(),$=st(),_=function(t,e){return t===e&&(u=!0),0},E=1<<31,O={}.hasOwnProperty,A=[],P=A.pop,I=A.push,D=A.push,L=A.slice,z=function(t,e){for(var n=0,o=t.length;n<o;n++)if(t[n]===e)return n;return-1},j="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",N="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",F=M.replace("w","w#"),H="\\[[\\x20\\t\\r\\n\\f]*("+M+")(?:"+N+"*([*^$|!~]?=)"+N+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+F+"))|)"+N+"*\\]",R=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+H+")*)|.*)\\)|)",q=new RegExp(N+"+","g"),W=new RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g"),B=new RegExp("^[\\x20\\t\\r\\n\\f]*,[\\x20\\t\\r\\n\\f]*"),U=new RegExp("^[\\x20\\t\\r\\n\\f]*([>+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),X=new RegExp("=[\\x20\\t\\r\\n\\f]*([^\\]'\"]*?)[\\x20\\t\\r\\n\\f]*\\]","g"),V=new RegExp(R),Y=new RegExp("^"+F+"$"),K={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M.replace("w","w*")+")"),ATTR:new RegExp("^"+H),PSEUDO:new RegExp("^"+R),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+j+")$","i"),needsContext:new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},Q=/^(?:input|select|textarea|button)$/i,G=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=/'|\\/g,nt=new RegExp("\\\\([\\da-f]{1,6}[\\x20\\t\\r\\n\\f]?|([\\x20\\t\\r\\n\\f])|.)","ig"),ot=function(t,e,n){var o="0x"+e-65536;return o!=o||n?e:o<0?String.fromCharCode(o+65536):String.fromCharCode(o>>10|55296,1023&o|56320)},it=function(){p()};try{D.apply(A=L.call(x.childNodes),x.childNodes),A[x.childNodes.length].nodeType}catch(t){D={apply:A.length?function(t,e){I.apply(t,L.call(e))}:function(t,e){for(var n=t.length,o=0;t[n++]=e[o++];);t.length=n-1}}}function rt(t,e,o,i){var r,a,c,d,u,h,v,y,C,T;if((e?e.ownerDocument||e:x)!==f&&p(e),o=o||[],d=(e=e||f).nodeType,"string"!=typeof t||!t||1!==d&&9!==d&&11!==d)return o;if(!i&&g){if(11!==d&&(r=Z.exec(t)))if(c=r[1]){if(9===d){if(!(a=e.getElementById(c))||!a.parentNode)return o;if(a.id===c)return o.push(a),o}else if(e.ownerDocument&&(a=e.ownerDocument.getElementById(c))&&b(e,a)&&a.id===c)return o.push(a),o}else{if(r[2])return D.apply(o,e.getElementsByTagName(t)),o;if((c=r[3])&&n.getElementsByClassName)return D.apply(o,e.getElementsByClassName(c)),o}if(n.qsa&&(!m||!m.test(t))){if(y=v=w,C=e,T=1!==d&&t,1===d&&"object"!==e.nodeName.toLowerCase()){for(h=s(t),(v=e.getAttribute("id"))?y=v.replace(et,"\\$&"):e.setAttribute("id",y),y="[id='"+y+"'] ",u=h.length;u--;)h[u]=y+mt(h[u]);C=tt.test(t)&&ht(e.parentNode)||e,T=h.join(",")}if(T)try{return D.apply(o,C.querySelectorAll(T)),o}catch(t){}finally{v||e.removeAttribute("id")}}}return l(t.replace(W,"$1"),e,o,i)}function st(){var t=[];return function e(n,i){return t.push(n+" ")>o.cacheLength&&delete e[t.shift()],e[n+" "]=i}}function at(t){return t[w]=!0,t}function lt(t){var e=f.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ct(t,e){for(var n=t.split("|"),i=t.length;i--;)o.attrHandle[n[i]]=e}function dt(t,e){var n=e&&t,o=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||E)-(~t.sourceIndex||E);if(o)return o;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function ut(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function pt(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function ft(t){return at((function(e){return e=+e,at((function(n,o){for(var i,r=t([],n.length,e),s=r.length;s--;)n[i=r[s]]&&(n[i]=!(o[i]=n[i]))}))}))}function ht(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in n=rt.support={},r=rt.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},p=rt.setDocument=function(t){var e,i,s=t?t.ownerDocument||t:x;return s!==f&&9===s.nodeType&&s.documentElement?(f=s,h=s.documentElement,(i=s.defaultView)&&i!==i.top&&(i.addEventListener?i.addEventListener("unload",it,!1):i.attachEvent&&i.attachEvent("onunload",it)),g=!r(s),n.attributes=lt((function(t){return t.className="i",!t.getAttribute("className")})),n.getElementsByTagName=lt((function(t){return t.appendChild(s.createComment("")),!t.getElementsByTagName("*").length})),n.getElementsByClassName=J.test(s.getElementsByClassName),n.getById=lt((function(t){return h.appendChild(t).id=w,!s.getElementsByName||!s.getElementsByName(w).length})),n.getById?(o.find.ID=function(t,e){if(void 0!==e.getElementById&&g){var n=e.getElementById(t);return n&&n.parentNode?[n]:[]}},o.filter.ID=function(t){var e=t.replace(nt,ot);return function(t){return t.getAttribute("id")===e}}):(delete o.find.ID,o.filter.ID=function(t){var e=t.replace(nt,ot);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}}),o.find.TAG=n.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):n.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,o=[],i=0,r=e.getElementsByTagName(t);if("*"===t){for(;n=r[i++];)1===n.nodeType&&o.push(n);return o}return r},o.find.CLASS=n.getElementsByClassName&&function(t,e){if(g)return e.getElementsByClassName(t)},v=[],m=[],(n.qsa=J.test(s.querySelectorAll))&&(lt((function(t){h.appendChild(t).innerHTML="<a id='"+w+"'></a><select id='"+w+"-\f]' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),t.querySelectorAll("[selected]").length||m.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+j+")"),t.querySelectorAll("[id~="+w+"-]").length||m.push("~="),t.querySelectorAll(":checked").length||m.push(":checked"),t.querySelectorAll("a#"+w+"+*").length||m.push(".#.+[+~]")})),lt((function(t){var e=s.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&m.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),t.querySelectorAll(":enabled").length||m.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),m.push(",.*:")}))),(n.matchesSelector=J.test(y=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&lt((function(t){n.disconnectedMatch=y.call(t,"div"),y.call(t,"[s!='']:x"),v.push("!=",R)})),m=m.length&&new RegExp(m.join("|")),v=v.length&&new RegExp(v.join("|")),e=J.test(h.compareDocumentPosition),b=e||J.test(h.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,o=e&&e.parentNode;return t===o||!(!o||1!==o.nodeType||!(n.contains?n.contains(o):t.compareDocumentPosition&&16&t.compareDocumentPosition(o)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},_=e?function(t,e){if(t===e)return u=!0,0;var o=!t.compareDocumentPosition-!e.compareDocumentPosition;return o||(1&(o=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!n.sortDetached&&e.compareDocumentPosition(t)===o?t===s||t.ownerDocument===x&&b(x,t)?-1:e===s||e.ownerDocument===x&&b(x,e)?1:d?z(d,t)-z(d,e):0:4&o?-1:1)}:function(t,e){if(t===e)return u=!0,0;var n,o=0,i=t.parentNode,r=e.parentNode,a=[t],l=[e];if(!i||!r)return t===s?-1:e===s?1:i?-1:r?1:d?z(d,t)-z(d,e):0;if(i===r)return dt(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)l.unshift(n);for(;a[o]===l[o];)o++;return o?dt(a[o],l[o]):a[o]===x?-1:l[o]===x?1:0},s):f},rt.matches=function(t,e){return rt(t,null,null,e)},rt.matchesSelector=function(t,e){if((t.ownerDocument||t)!==f&&p(t),e=e.replace(X,"='$1']"),n.matchesSelector&&g&&(!v||!v.test(e))&&(!m||!m.test(e)))try{var o=y.call(t,e);if(o||n.disconnectedMatch||t.document&&11!==t.document.nodeType)return o}catch(t){}return rt(e,f,null,[t]).length>0},rt.contains=function(t,e){return(t.ownerDocument||t)!==f&&p(t),b(t,e)},rt.attr=function(t,e){(t.ownerDocument||t)!==f&&p(t);var i=o.attrHandle[e.toLowerCase()],r=i&&O.call(o.attrHandle,e.toLowerCase())?i(t,e,!g):void 0;return void 0!==r?r:n.attributes||!g?t.getAttribute(e):(r=t.getAttributeNode(e))&&r.specified?r.value:null},rt.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},rt.uniqueSort=function(t){var e,o=[],i=0,r=0;if(u=!n.detectDuplicates,d=!n.sortStable&&t.slice(0),t.sort(_),u){for(;e=t[r++];)e===t[r]&&(i=o.push(r));for(;i--;)t.splice(o[i],1)}return d=null,t},i=rt.getText=function(t){var e,n="",o=0,r=t.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=i(t)}else if(3===r||4===r)return t.nodeValue}else for(;e=t[o++];)n+=i(e);return n},o=rt.selectors={cacheLength:50,createPseudo:at,match:K,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(nt,ot),t[3]=(t[3]||t[4]||t[5]||"").replace(nt,ot),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||rt.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&rt.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return K.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&V.test(n)&&(e=s(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(nt,ot).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=k[t+" "];return e||(e=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+t+"("+N+"|$)"))&&k(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,n){return function(o){var i=rt.attr(o,t);return null==i?"!="===e:!e||(i+="","="===e?i===n:"!="===e?i!==n:"^="===e?n&&0===i.indexOf(n):"*="===e?n&&i.indexOf(n)>-1:"$="===e?n&&i.slice(-n.length)===n:"~="===e?(" "+i.replace(q," ")+" ").indexOf(n)>-1:"|="===e&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,o,i){var r="nth"!==t.slice(0,3),s="last"!==t.slice(-4),a="of-type"===e;return 1===o&&0===i?function(t){return!!t.parentNode}:function(e,n,l){var c,d,u,p,f,h,g=r!==s?"nextSibling":"previousSibling",m=e.parentNode,v=a&&e.nodeName.toLowerCase(),y=!l&&!a;if(m){if(r){for(;g;){for(u=e;u=u[g];)if(a?u.nodeName.toLowerCase()===v:1===u.nodeType)return!1;h=g="only"===t&&!h&&"nextSibling"}return!0}if(h=[s?m.firstChild:m.lastChild],s&&y){for(f=(c=(d=m[w]||(m[w]={}))[t]||[])[0]===C&&c[1],p=c[0]===C&&c[2],u=f&&m.childNodes[f];u=++f&&u&&u[g]||(p=f=0)||h.pop();)if(1===u.nodeType&&++p&&u===e){d[t]=[C,f,p];break}}else if(y&&(c=(e[w]||(e[w]={}))[t])&&c[0]===C)p=c[1];else for(;(u=++f&&u&&u[g]||(p=f=0)||h.pop())&&((a?u.nodeName.toLowerCase()!==v:1!==u.nodeType)||!++p||(y&&((u[w]||(u[w]={}))[t]=[C,p]),u!==e)););return(p-=i)===o||p%o==0&&p/o>=0}}},PSEUDO:function(t,e){var n,i=o.pseudos[t]||o.setFilters[t.toLowerCase()]||rt.error("unsupported pseudo: "+t);return i[w]?i(e):i.length>1?(n=[t,t,"",e],o.setFilters.hasOwnProperty(t.toLowerCase())?at((function(t,n){for(var o,r=i(t,e),s=r.length;s--;)t[o=z(t,r[s])]=!(n[o]=r[s])})):function(t){return i(t,0,n)}):i}},pseudos:{not:at((function(t){var e=[],n=[],o=a(t.replace(W,"$1"));return o[w]?at((function(t,e,n,i){for(var r,s=o(t,null,i,[]),a=t.length;a--;)(r=s[a])&&(t[a]=!(e[a]=r))})):function(t,i,r){return e[0]=t,o(e,null,r,n),e[0]=null,!n.pop()}})),has:at((function(t){return function(e){return rt(t,e).length>0}})),contains:at((function(t){return t=t.replace(nt,ot),function(e){return(e.textContent||e.innerText||i(e)).indexOf(t)>-1}})),lang:at((function(t){return Y.test(t||"")||rt.error("unsupported lang: "+t),t=t.replace(nt,ot).toLowerCase(),function(e){var n;do{if(n=g?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===h},focus:function(t){return t===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return!1===t.disabled},disabled:function(t){return!0===t.disabled},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!o.pseudos.empty(t)},header:function(t){return G.test(t.nodeName)},input:function(t){return Q.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:ft((function(){return[0]})),last:ft((function(t,e){return[e-1]})),eq:ft((function(t,e,n){return[n<0?n+e:n]})),even:ft((function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t})),odd:ft((function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t})),lt:ft((function(t,e,n){for(var o=n<0?n+e:n;--o>=0;)t.push(o);return t})),gt:ft((function(t,e,n){for(var o=n<0?n+e:n;++o<e;)t.push(o);return t}))}},o.pseudos.nth=o.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})o.pseudos[e]=ut(e);for(e in{submit:!0,reset:!0})o.pseudos[e]=pt(e);function gt(){}function mt(t){for(var e=0,n=t.length,o="";e<n;e++)o+=t[e].value;return o}function vt(t,e,n){var o=e.dir,i=n&&"parentNode"===o,r=T++;return e.first?function(e,n,r){for(;e=e[o];)if(1===e.nodeType||i)return t(e,n,r)}:function(e,n,s){var a,l,c=[C,r];if(s){for(;e=e[o];)if((1===e.nodeType||i)&&t(e,n,s))return!0}else for(;e=e[o];)if(1===e.nodeType||i){if((a=(l=e[w]||(e[w]={}))[o])&&a[0]===C&&a[1]===r)return c[2]=a[2];if(l[o]=c,c[2]=t(e,n,s))return!0}}}function yt(t){return t.length>1?function(e,n,o){for(var i=t.length;i--;)if(!t[i](e,n,o))return!1;return!0}:t[0]}function bt(t,e,n,o,i){for(var r,s=[],a=0,l=t.length,c=null!=e;a<l;a++)(r=t[a])&&(n&&!n(r,o,i)||(s.push(r),c&&e.push(a)));return s}function wt(t,e,n,o,i,r){return o&&!o[w]&&(o=wt(o)),i&&!i[w]&&(i=wt(i,r)),at((function(r,s,a,l){var c,d,u,p=[],f=[],h=s.length,g=r||function(t,e,n){for(var o=0,i=e.length;o<i;o++)rt(t,e[o],n);return n}(e||"*",a.nodeType?[a]:a,[]),m=!t||!r&&e?g:bt(g,p,t,a,l),v=n?i||(r?t:h||o)?[]:s:m;if(n&&n(m,v,a,l),o)for(c=bt(v,f),o(c,[],a,l),d=c.length;d--;)(u=c[d])&&(v[f[d]]=!(m[f[d]]=u));if(r){if(i||t){if(i){for(c=[],d=v.length;d--;)(u=v[d])&&c.push(m[d]=u);i(null,v=[],c,l)}for(d=v.length;d--;)(u=v[d])&&(c=i?z(r,u):p[d])>-1&&(r[c]=!(s[c]=u))}}else v=bt(v===s?v.splice(h,v.length):v),i?i(null,s,v,l):D.apply(s,v)}))}function xt(t){for(var e,n,i,r=t.length,s=o.relative[t[0].type],a=s||o.relative[" "],l=s?1:0,d=vt((function(t){return t===e}),a,!0),u=vt((function(t){return z(e,t)>-1}),a,!0),p=[function(t,n,o){var i=!s&&(o||n!==c)||((e=n).nodeType?d(t,n,o):u(t,n,o));return e=null,i}];l<r;l++)if(n=o.relative[t[l].type])p=[vt(yt(p),n)];else{if((n=o.filter[t[l].type].apply(null,t[l].matches))[w]){for(i=++l;i<r&&!o.relative[t[i].type];i++);return wt(l>1&&yt(p),l>1&&mt(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(W,"$1"),n,l<i&&xt(t.slice(l,i)),i<r&&xt(t=t.slice(i)),i<r&&mt(t))}p.push(n)}return yt(p)}return gt.prototype=o.filters=o.pseudos,o.setFilters=new gt,s=rt.tokenize=function(t,e){var n,i,r,s,a,l,c,d=S[t+" "];if(d)return e?0:d.slice(0);for(a=t,l=[],c=o.preFilter;a;){for(s in n&&!(i=B.exec(a))||(i&&(a=a.slice(i[0].length)||a),l.push(r=[])),n=!1,(i=U.exec(a))&&(n=i.shift(),r.push({value:n,type:i[0].replace(W," ")}),a=a.slice(n.length)),o.filter)!(i=K[s].exec(a))||c[s]&&!(i=c[s](i))||(n=i.shift(),r.push({value:n,type:s,matches:i}),a=a.slice(n.length));if(!n)break}return e?a.length:a?rt.error(t):S(t,l).slice(0)},a=rt.compile=function(t,e){var n,i=[],r=[],a=$[t+" "];if(!a){for(e||(e=s(t)),n=e.length;n--;)(a=xt(e[n]))[w]?i.push(a):r.push(a);a=$(t,function(t,e){var n=e.length>0,i=t.length>0,r=function(r,s,a,l,d){var u,p,h,g=0,m="0",v=r&&[],y=[],b=c,w=r||i&&o.find.TAG("*",d),x=C+=null==b?1:Math.random()||.1,T=w.length;for(d&&(c=s!==f&&s);m!==T&&null!=(u=w[m]);m++){if(i&&u){for(p=0;h=t[p++];)if(h(u,s,a)){l.push(u);break}d&&(C=x)}n&&((u=!h&&u)&&g--,r&&v.push(u))}if(g+=m,n&&m!==g){for(p=0;h=e[p++];)h(v,y,s,a);if(r){if(g>0)for(;m--;)v[m]||y[m]||(y[m]=P.call(l));y=bt(y)}D.apply(l,y),d&&!r&&y.length>0&&g+e.length>1&&rt.uniqueSort(l)}return d&&(C=x,c=b),v};return n?at(r):r}(r,i)),a.selector=t}return a},l=rt.select=function(t,e,i,r){var l,c,d,u,p,f="function"==typeof t&&t,h=!r&&s(t=f.selector||t);if(i=i||[],1===h.length){if((c=h[0]=h[0].slice(0)).length>2&&"ID"===(d=c[0]).type&&n.getById&&9===e.nodeType&&g&&o.relative[c[1].type]){if(!(e=(o.find.ID(d.matches[0].replace(nt,ot),e)||[])[0]))return i;f&&(e=e.parentNode),t=t.slice(c.shift().value.length)}for(l=K.needsContext.test(t)?0:c.length;l--&&(d=c[l],!o.relative[u=d.type]);)if((p=o.find[u])&&(r=p(d.matches[0].replace(nt,ot),tt.test(c[0].type)&&ht(e.parentNode)||e))){if(c.splice(l,1),!(t=r.length&&mt(c)))return D.apply(i,r),i;break}}return(f||a(t,h))(r,e,!g,i,tt.test(t)&&ht(e.parentNode)||e),i},n.sortStable=w.split("").sort(_).join("")===w,n.detectDuplicates=!!u,p(),n.sortDetached=lt((function(t){return 1&t.compareDocumentPosition(f.createElement("div"))})),lt((function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")}))||ct("type|href|height|width",(function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)})),n.attributes&&lt((function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}))||ct("value",(function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue})),lt((function(t){return null==t.getAttribute("disabled")}))||ct(j,(function(t,e,n){var o;if(!n)return!0===t[e]?e.toLowerCase():(o=t.getAttributeNode(e))&&o.specified?o.value:null})),rt}(n);m.find=C,(m.expr=C.selectors)[":"]=m.expr.pseudos,m.unique=C.uniqueSort,m.text=C.getText,m.isXMLDoc=C.isXML,m.contains=C.contains;var T=m.expr.match.needsContext,k=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,S=/^.[^:#\[\.,]*$/;function $(t,e,n){if(m.isFunction(e))return m.grep(t,(function(t,o){return!!e.call(t,o,t)!==n}));if(e.nodeType)return m.grep(t,(function(t){return t===e!==n}));if("string"==typeof e){if(S.test(e))return m.filter(e,t,n);e=m.filter(e,t)}return m.grep(t,(function(t){return m.inArray(t,e)>=0!==n}))}m.filter=function(t,e,n){var o=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===o.nodeType?m.find.matchesSelector(o,t)?[o]:[]:m.find.matches(t,m.grep(e,(function(t){return 1===t.nodeType})))},m.fn.extend({find:function(t){var e,n=[],o=this,i=o.length;if("string"!=typeof t)return this.pushStack(m(t).filter((function(){for(e=0;e<i;e++)if(m.contains(o[e],this))return!0})));for(e=0;e<i;e++)m.find(t,o[e],n);return(n=this.pushStack(i>1?m.unique(n):n)).selector=this.selector?this.selector+" "+t:t,n},filter:function(t){return this.pushStack($(this,t||[],!1))},not:function(t){return this.pushStack($(this,t||[],!0))},is:function(t){return!!$(this,"string"==typeof t&&T.test(t)?m(t):t||[],!1).length}});var _,E=n.document,O=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(m.fn.init=function(t,e){var n,o;if(!t)return this;if("string"==typeof t){if(!(n="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&t.length>=3?[null,t,null]:O.exec(t))||!n[1]&&e)return!e||e.jquery?(e||_).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof m?e[0]:e,m.merge(this,m.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:E,!0)),k.test(n[1])&&m.isPlainObject(e))for(n in e)m.isFunction(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}if((o=E.getElementById(n[2]))&&o.parentNode){if(o.id!==n[2])return _.find(t);this.length=1,this[0]=o}return this.context=E,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):m.isFunction(t)?void 0!==_.ready?_.ready(t):t(m):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),m.makeArray(t,this))}).prototype=m.fn,_=m(E);var A=/^(?:parents|prev(?:Until|All))/,P={children:!0,contents:!0,next:!0,prev:!0};function I(t,e){do{t=t[e]}while(t&&1!==t.nodeType);return t}m.extend({dir:function(t,e,n){for(var o=[],i=t[e];i&&9!==i.nodeType&&(void 0===n||1!==i.nodeType||!m(i).is(n));)1===i.nodeType&&o.push(i),i=i[e];return o},sibling:function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}}),m.fn.extend({has:function(t){var e,n=m(t,this),o=n.length;return this.filter((function(){for(e=0;e<o;e++)if(m.contains(this,n[e]))return!0}))},closest:function(t,e){for(var n,o=0,i=this.length,r=[],s=T.test(t)||"string"!=typeof t?m(t,e||this.context):0;o<i;o++)for(n=this[o];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&m.find.matchesSelector(n,t))){r.push(n);break}return this.pushStack(r.length>1?m.unique(r):r)},index:function(t){return t?"string"==typeof t?m.inArray(this[0],m(t)):m.inArray(t.jquery?t[0]:t,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(m.unique(m.merge(this.get(),m(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),m.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return m.dir(t,"parentNode")},parentsUntil:function(t,e,n){return m.dir(t,"parentNode",n)},next:function(t){return I(t,"nextSibling")},prev:function(t){return I(t,"previousSibling")},nextAll:function(t){return m.dir(t,"nextSibling")},prevAll:function(t){return m.dir(t,"previousSibling")},nextUntil:function(t,e,n){return m.dir(t,"nextSibling",n)},prevUntil:function(t,e,n){return m.dir(t,"previousSibling",n)},siblings:function(t){return m.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return m.sibling(t.firstChild)},contents:function(t){return m.nodeName(t,"iframe")?t.contentDocument||t.contentWindow.document:m.merge([],t.childNodes)}},(function(t,e){m.fn[t]=function(n,o){var i=m.map(this,e,n);return"Until"!==t.slice(-5)&&(o=n),o&&"string"==typeof o&&(i=m.filter(o,i)),this.length>1&&(P[t]||(i=m.unique(i)),A.test(t)&&(i=i.reverse())),this.pushStack(i)}}));var D,L=/\S+/g,z={};function j(){E.addEventListener?(E.removeEventListener("DOMContentLoaded",N,!1),n.removeEventListener("load",N,!1)):(E.detachEvent("onreadystatechange",N),n.detachEvent("onload",N))}function N(){(E.addEventListener||"load"===event.type||"complete"===E.readyState)&&(j(),m.ready())}m.Callbacks=function(t){t="string"==typeof t?z[t]||function(t){var e=z[t]={};return m.each(t.match(L)||[],(function(t,n){e[n]=!0})),e}(t):m.extend({},t);var e,n,o,i,r,s,a=[],l=!t.once&&[],c=function c(u){for(n=t.memory&&u,o=!0,r=s||0,s=0,i=a.length,e=!0;a&&r<i;r++)if(!1===a[r].apply(u[0],u[1])&&t.stopOnFalse){n=!1;break}e=!1,a&&(l?l.length&&c(l.shift()):n?a=[]:d.disable())},d={add:function(){if(a){var o=a.length;!function e(n){m.each(n,(function(n,o){var i=m.type(o);"function"===i?t.unique&&d.has(o)||a.push(o):o&&o.length&&"string"!==i&&e(o)}))}(arguments),e?i=a.length:n&&(s=o,c(n))}return this},remove:function(){return a&&m.each(arguments,(function(t,n){for(var o;(o=m.inArray(n,a,o))>-1;)a.splice(o,1),e&&(o<=i&&i--,o<=r&&r--)})),this},has:function(t){return t?m.inArray(t,a)>-1:!(!a||!a.length)},empty:function(){return a=[],i=0,this},disable:function(){return a=l=n=void 0,this},disabled:function(){return!a},lock:function(){return l=void 0,n||d.disable(),this},locked:function(){return!l},fireWith:function(t,n){return!a||o&&!l||(n=[t,(n=n||[]).slice?n.slice():n],e?l.push(n):c(n)),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!o}};return d},m.extend({Deferred:function(t){var e=[["resolve","done",m.Callbacks("once memory"),"resolved"],["reject","fail",m.Callbacks("once memory"),"rejected"],["notify","progress",m.Callbacks("memory")]],n="pending",o={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var t=arguments;return m.Deferred((function(n){m.each(e,(function(e,r){var s=m.isFunction(t[e])&&t[e];i[r[1]]((function(){var t=s&&s.apply(this,arguments);t&&m.isFunction(t.promise)?t.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[r[0]+"With"](this===o?n.promise():this,s?[t]:arguments)}))})),t=null})).promise()},promise:function(t){return null!=t?m.extend(t,o):o}},i={};return o.pipe=o.then,m.each(e,(function(t,r){var s=r[2],a=r[3];o[r[1]]=s.add,a&&s.add((function(){n=a}),e[1^t][2].disable,e[2][2].lock),i[r[0]]=function(){return i[r[0]+"With"](this===i?o:this,arguments),this},i[r[0]+"With"]=s.fireWith})),o.promise(i),t&&t.call(i,i),i},when:function(t){var e,n,o,i=0,r=a.call(arguments),s=r.length,l=1!==s||t&&m.isFunction(t.promise)?s:0,c=1===l?t:m.Deferred(),d=function(t,n,o){return function(i){n[t]=this,o[t]=arguments.length>1?a.call(arguments):i,o===e?c.notifyWith(n,o):--l||c.resolveWith(n,o)}};if(s>1)for(e=new Array(s),n=new Array(s),o=new Array(s);i<s;i++)r[i]&&m.isFunction(r[i].promise)?r[i].promise().done(d(i,o,r)).fail(c.reject).progress(d(i,n,e)):--l;return l||c.resolveWith(o,r),c.promise()}}),m.fn.ready=function(t){return m.ready.promise().done(t),this},m.extend({isReady:!1,readyWait:1,holdReady:function(t){t?m.readyWait++:m.ready(!0)},ready:function(t){if(!(!0===t?--m.readyWait:m.isReady)){if(!E.body)return setTimeout(m.ready);m.isReady=!0,!0!==t&&--m.readyWait>0||(D.resolveWith(E,[m]),m.fn.triggerHandler&&(m(E).triggerHandler("ready"),m(E).off("ready")))}}}),m.ready.promise=function(t){if(!D)if(D=m.Deferred(),"complete"===E.readyState)setTimeout(m.ready);else if(E.addEventListener)E.addEventListener("DOMContentLoaded",N,!1),n.addEventListener("load",N,!1);else{E.attachEvent("onreadystatechange",N),n.attachEvent("onload",N);var e=!1;try{e=null==n.frameElement&&E.documentElement}catch(t){}e&&e.doScroll&&function t(){if(!m.isReady){try{e.doScroll("left")}catch(e){return setTimeout(t,50)}j(),m.ready()}}()}return D.promise(t)};var M,F="undefined";for(M in m(h))break;h.ownLast="0"!==M,h.inlineBlockNeedsLayout=!1,m((function(){var t,e,n,o;(n=E.getElementsByTagName("body")[0])&&n.style&&(e=E.createElement("div"),(o=E.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(o).appendChild(e),s(e.style.zoom)!==F&&(e.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",h.inlineBlockNeedsLayout=t=3===e.offsetWidth,t&&(n.style.zoom=1)),n.removeChild(o))})),function(){var t=E.createElement("div");if(null==h.deleteExpando){h.deleteExpando=!0;try{delete t.test}catch(t){h.deleteExpando=!1}}t=null}(),m.acceptData=function(t){var e=m.noData[(t.nodeName+" ").toLowerCase()],n=+t.nodeType||1;return(1===n||9===n)&&(!e||!0!==e&&t.getAttribute("classid")===e)};var H=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,R=/([A-Z])/g;function q(t,e,n){if(void 0===n&&1===t.nodeType){var o="data-"+e.replace(R,"-$1").toLowerCase();if("string"==typeof(n=t.getAttribute(o))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:H.test(n)?m.parseJSON(n):n)}catch(t){}m.data(t,e,n)}else n=void 0}return n}function W(t){var e;for(e in t)if(("data"!==e||!m.isEmptyObject(t[e]))&&"toJSON"!==e)return!1;return!0}function B(t,e,n,o){if(m.acceptData(t)){var i,a,l=m.expando,c=t.nodeType,d=c?m.cache:t,u=c?t[l]:t[l]&&l;if(u&&d[u]&&(o||d[u].data)||void 0!==n||"string"!=typeof e)return u||(u=c?t[l]=r.pop()||m.guid++:l),d[u]||(d[u]=c?{}:{toJSON:m.noop}),"object"!==s(e)&&"function"!=typeof e||(o?d[u]=m.extend(d[u],e):d[u].data=m.extend(d[u].data,e)),a=d[u],o||(a.data||(a.data={}),a=a.data),void 0!==n&&(a[m.camelCase(e)]=n),"string"==typeof e?null==(i=a[e])&&(i=a[m.camelCase(e)]):i=a,i}}function U(t,e,n){if(m.acceptData(t)){var o,i,r=t.nodeType,s=r?m.cache:t,a=r?t[m.expando]:m.expando;if(s[a]){if(e&&(o=n?s[a]:s[a].data)){i=(e=m.isArray(e)?e.concat(m.map(e,m.camelCase)):e in o||(e=m.camelCase(e))in o?[e]:e.split(" ")).length;for(;i--;)delete o[e[i]];if(n?!W(o):!m.isEmptyObject(o))return}(n||(delete s[a].data,W(s[a])))&&(r?m.cleanData([t],!0):h.deleteExpando||s!=s.window?delete s[a]:s[a]=null)}}}m.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(t){return!!(t=t.nodeType?m.cache[t[m.expando]]:t[m.expando])&&!W(t)},data:function(t,e,n){return B(t,e,n)},removeData:function(t,e){return U(t,e)},_data:function(t,e,n){return B(t,e,n,!0)},_removeData:function(t,e){return U(t,e,!0)}}),m.fn.extend({data:function(t,e){var n,o,i,r=this[0],a=r&&r.attributes;if(void 0===t){if(this.length&&(i=m.data(r),1===r.nodeType&&!m._data(r,"parsedAttrs"))){for(n=a.length;n--;)a[n]&&0===(o=a[n].name).indexOf("data-")&&q(r,o=m.camelCase(o.slice(5)),i[o]);m._data(r,"parsedAttrs",!0)}return i}return"object"===s(t)?this.each((function(){m.data(this,t)})):arguments.length>1?this.each((function(){m.data(this,t,e)})):r?q(r,t,m.data(r,t)):void 0},removeData:function(t){return this.each((function(){m.removeData(this,t)}))}}),m.extend({queue:function(t,e,n){var o;if(t)return o=m._data(t,e=(e||"fx")+"queue"),n&&(!o||m.isArray(n)?o=m._data(t,e,m.makeArray(n)):o.push(n)),o||[]},dequeue:function(t,e){var n=m.queue(t,e=e||"fx"),o=n.length,i=n.shift(),r=m._queueHooks(t,e);"inprogress"===i&&(i=n.shift(),o--),i&&("fx"===e&&n.unshift("inprogress"),delete r.stop,i.call(t,(function(){m.dequeue(t,e)}),r)),!o&&r&&r.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return m._data(t,n)||m._data(t,n,{empty:m.Callbacks("once memory").add((function(){m._removeData(t,e+"queue"),m._removeData(t,n)}))})}}),m.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?m.queue(this[0],t):void 0===e?this:this.each((function(){var n=m.queue(this,t,e);m._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&m.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){m.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,o=1,i=m.Deferred(),r=this,s=this.length,a=function(){--o||i.resolveWith(r,[r])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";s--;)(n=m._data(r[s],t+"queueHooks"))&&n.empty&&(o++,n.empty.add(a));return a(),i.promise(e)}});var X=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,V=["Top","Right","Bottom","Left"],Y=function(t,e){return"none"===m.css(t=e||t,"display")||!m.contains(t.ownerDocument,t)},K=m.access=function(t,e,n,o,i,r,s){var a=0,l=t.length,c=null==n;if("object"===m.type(n))for(a in i=!0,n)m.access(t,e,a,n[a],!0,r,s);else if(void 0!==o&&(i=!0,m.isFunction(o)||(s=!0),c&&(s?(e.call(t,o),e=null):(c=e,e=function(t,e,n){return c.call(m(t),n)})),e))for(;a<l;a++)e(t[a],n,s?o:o.call(t[a],a,e(t[a],n)));return i?t:c?e.call(t):l?e(t[0],n):r},Q=/^(?:checkbox|radio)$/i;!function(){var t=E.createElement("input"),e=E.createElement("div"),n=E.createDocumentFragment();if(e.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",h.leadingWhitespace=3===e.firstChild.nodeType,h.tbody=!e.getElementsByTagName("tbody").length,h.htmlSerialize=!!e.getElementsByTagName("link").length,h.html5Clone="<:nav></:nav>"!==E.createElement("nav").cloneNode(!0).outerHTML,t.type="checkbox",t.checked=!0,n.appendChild(t),h.appendChecked=t.checked,e.innerHTML="<textarea>x</textarea>",h.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,n.appendChild(e),e.innerHTML="<input type='radio' checked='checked' name='t'/>",h.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,h.noCloneEvent=!0,e.attachEvent&&(e.attachEvent("onclick",(function(){h.noCloneEvent=!1})),e.cloneNode(!0).click()),null==h.deleteExpando){h.deleteExpando=!0;try{delete e.test}catch(t){h.deleteExpando=!1}}}(),function(){var t,e,o=E.createElement("div");for(t in{submit:!0,change:!0,focusin:!0})e="on"+t,(h[t+"Bubbles"]=e in n)||(o.setAttribute(e,"t"),h[t+"Bubbles"]=!1===o.attributes[e].expando);o=null}();var G=/^(?:input|select|textarea)$/i,J=/^key/,Z=/^(?:mouse|pointer|contextmenu)|click/,tt=/^(?:focusinfocus|focusoutblur)$/,et=/^([^.]*)(?:\.(.+)|)$/;function nt(){return!0}function ot(){return!1}function it(){try{return E.activeElement}catch(t){}}function rt(t){var e=st.split("|"),n=t.createDocumentFragment();if(n.createElement)for(;e.length;)n.createElement(e.pop());return n}m.event={global:{},add:function(t,e,n,o,i){var r,a,l,c,d,u,p,f,h,g,v,y=m._data(t);if(y){for(n.handler&&(n=(c=n).handler,i=c.selector),n.guid||(n.guid=m.guid++),(a=y.events)||(a=y.events={}),(u=y.handle)||(u=y.handle=function(t){return s(m)===F||t&&m.event.triggered===t.type?void 0:m.event.dispatch.apply(u.elem,arguments)},u.elem=t),l=(e=(e||"").match(L)||[""]).length;l--;)h=v=(r=et.exec(e[l])||[])[1],g=(r[2]||"").split(".").sort(),h&&(d=m.event.special[h]||{},h=(i?d.delegateType:d.bindType)||h,d=m.event.special[h]||{},p=m.extend({type:h,origType:v,data:o,handler:n,guid:n.guid,selector:i,needsContext:i&&m.expr.match.needsContext.test(i),namespace:g.join(".")},c),(f=a[h])||((f=a[h]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,o,g,u)||(t.addEventListener?t.addEventListener(h,u,!1):t.attachEvent&&t.attachEvent("on"+h,u))),d.add&&(d.add.call(t,p),p.handler.guid||(p.handler.guid=n.guid)),i?f.splice(f.delegateCount++,0,p):f.push(p),m.event.global[h]=!0);t=null}},remove:function(t,e,n,o,i){var r,s,a,l,c,d,u,p,f,h,g,v=m.hasData(t)&&m._data(t);if(v&&(d=v.events)){for(c=(e=(e||"").match(L)||[""]).length;c--;)if(f=g=(a=et.exec(e[c])||[])[1],h=(a[2]||"").split(".").sort(),f){for(u=m.event.special[f]||{},p=d[f=(o?u.delegateType:u.bindType)||f]||[],a=a[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=r=p.length;r--;)s=p[r],!i&&g!==s.origType||n&&n.guid!==s.guid||a&&!a.test(s.namespace)||o&&o!==s.selector&&("**"!==o||!s.selector)||(p.splice(r,1),s.selector&&p.delegateCount--,u.remove&&u.remove.call(t,s));l&&!p.length&&(u.teardown&&!1!==u.teardown.call(t,h,v.handle)||m.removeEvent(t,f,v.handle),delete d[f])}else for(f in d)m.event.remove(t,f+e[c],n,o,!0);m.isEmptyObject(d)&&(delete v.handle,m._removeData(t,"events"))}},trigger:function(t,e,o,i){var r,a,l,c,d,u,p,h=[o||E],g=f.call(t,"type")?t.type:t,v=f.call(t,"namespace")?t.namespace.split("."):[];if(l=u=o=o||E,3!==o.nodeType&&8!==o.nodeType&&!tt.test(g+m.event.triggered)&&(g.indexOf(".")>=0&&(v=g.split("."),g=v.shift(),v.sort()),a=g.indexOf(":")<0&&"on"+g,(t=t[m.expando]?t:new m.Event(g,"object"===s(t)&&t)).isTrigger=i?2:3,t.namespace=v.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=o),e=null==e?[t]:m.makeArray(e,[t]),d=m.event.special[g]||{},i||!d.trigger||!1!==d.trigger.apply(o,e))){if(!i&&!d.noBubble&&!m.isWindow(o)){for(c=d.delegateType||g,tt.test(c+g)||(l=l.parentNode);l;l=l.parentNode)h.push(l),u=l;u===(o.ownerDocument||E)&&h.push(u.defaultView||u.parentWindow||n)}for(p=0;(l=h[p++])&&!t.isPropagationStopped();)t.type=p>1?c:d.bindType||g,(r=(m._data(l,"events")||{})[t.type]&&m._data(l,"handle"))&&r.apply(l,e),(r=a&&l[a])&&r.apply&&m.acceptData(l)&&(t.result=r.apply(l,e),!1===t.result&&t.preventDefault());if(t.type=g,!i&&!t.isDefaultPrevented()&&(!d._default||!1===d._default.apply(h.pop(),e))&&m.acceptData(o)&&a&&o[g]&&!m.isWindow(o)){(u=o[a])&&(o[a]=null),m.event.triggered=g;try{o[g]()}catch(t){}m.event.triggered=void 0,u&&(o[a]=u)}return t.result}},dispatch:function(t){t=m.event.fix(t);var e,n,o,i,r,s=[],l=a.call(arguments),c=(m._data(this,"events")||{})[t.type]||[],d=m.event.special[t.type]||{};if(l[0]=t,t.delegateTarget=this,!d.preDispatch||!1!==d.preDispatch.call(this,t)){for(s=m.event.handlers.call(this,t,c),e=0;(i=s[e++])&&!t.isPropagationStopped();)for(t.currentTarget=i.elem,r=0;(o=i.handlers[r++])&&!t.isImmediatePropagationStopped();)t.namespace_re&&!t.namespace_re.test(o.namespace)||(t.handleObj=o,t.data=o.data,void 0!==(n=((m.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,l))&&!1===(t.result=n)&&(t.preventDefault(),t.stopPropagation()));return d.postDispatch&&d.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,o,i,r,s=[],a=e.delegateCount,l=t.target;if(a&&l.nodeType&&(!t.button||"click"!==t.type))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==t.type)){for(i=[],r=0;r<a;r++)void 0===i[n=(o=e[r]).selector+" "]&&(i[n]=o.needsContext?m(n,this).index(l)>=0:m.find(n,this,null,[l]).length),i[n]&&i.push(o);i.length&&s.push({elem:l,handlers:i})}return a<e.length&&s.push({elem:this,handlers:e.slice(a)}),s},fix:function(t){if(t[m.expando])return t;var e,n,o,i=t.type,r=t,s=this.fixHooks[i];for(s||(this.fixHooks[i]=s=Z.test(i)?this.mouseHooks:J.test(i)?this.keyHooks:{}),o=s.props?this.props.concat(s.props):this.props,t=new m.Event(r),e=o.length;e--;)t[n=o[e]]=r[n];return t.target||(t.target=r.srcElement||E),3===t.target.nodeType&&(t.target=t.target.parentNode),t.metaKey=!!t.metaKey,s.filter?s.filter(t,r):t},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var n,o,i,r=e.button,s=e.fromElement;return null==t.pageX&&null!=e.clientX&&(i=(o=t.target.ownerDocument||E).documentElement,n=o.body,t.pageX=e.clientX+(i&&i.scrollLeft||n&&n.scrollLeft||0)-(i&&i.clientLeft||n&&n.clientLeft||0),t.pageY=e.clientY+(i&&i.scrollTop||n&&n.scrollTop||0)-(i&&i.clientTop||n&&n.clientTop||0)),!t.relatedTarget&&s&&(t.relatedTarget=s===t.target?e.toElement:s),t.which||void 0===r||(t.which=1&r?1:2&r?3:4&r?2:0),t}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==it()&&this.focus)try{return this.focus(),!1}catch(t){}},delegateType:"focusin"},blur:{trigger:function(){if(this===it()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(m.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return this.click(),!1},_default:function(t){return m.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,n,o){var i=m.extend(new m.Event,n,{type:t,isSimulated:!0,originalEvent:{}});o?m.event.trigger(i,null,e):m.event.dispatch.call(e,i),i.isDefaultPrevented()&&n.preventDefault()}},m.removeEvent=E.removeEventListener?function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n,!1)}:function(t,e,n){var o="on"+e;t.detachEvent&&(s(t[o])===F&&(t[o]=null),t.detachEvent(o,n))},(m.Event=function(t,e){if(!(this instanceof m.Event))return new m.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?nt:ot):this.type=t,e&&m.extend(this,e),this.timeStamp=t&&t.timeStamp||m.now(),this[m.expando]=!0}).prototype={isDefaultPrevented:ot,isPropagationStopped:ot,isImmediatePropagationStopped:ot,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=nt,t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=nt,t&&(t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0)},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=nt,t&&t.stopImmediatePropagation&&t.stopImmediatePropagation(),this.stopPropagation()}},m.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){m.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,o=this,i=t.relatedTarget,r=t.handleObj;return i&&(i===o||m.contains(o,i))||(t.type=r.origType,n=r.handler.apply(this,arguments),t.type=e),n}}})),h.submitBubbles||(m.event.special.submit={setup:function(){if(m.nodeName(this,"form"))return!1;m.event.add(this,"click._submit keypress._submit",(function(t){var e=t.target,n=m.nodeName(e,"input")||m.nodeName(e,"button")?e.form:void 0;n&&!m._data(n,"submitBubbles")&&(m.event.add(n,"submit._submit",(function(t){t._submit_bubble=!0})),m._data(n,"submitBubbles",!0))}))},postDispatch:function(t){t._submit_bubble&&(delete t._submit_bubble,this.parentNode&&!t.isTrigger&&m.event.simulate("submit",this.parentNode,t,!0))},teardown:function(){if(m.nodeName(this,"form"))return!1;m.event.remove(this,"._submit")}}),h.changeBubbles||(m.event.special.change={setup:function(){if(G.test(this.nodeName))return"checkbox"!==this.type&&"radio"!==this.type||(m.event.add(this,"propertychange._change",(function(t){"checked"===t.originalEvent.propertyName&&(this._just_changed=!0)})),m.event.add(this,"click._change",(function(t){this._just_changed&&!t.isTrigger&&(this._just_changed=!1),m.event.simulate("change",this,t,!0)}))),!1;m.event.add(this,"beforeactivate._change",(function(t){var e=t.target;G.test(e.nodeName)&&!m._data(e,"changeBubbles")&&(m.event.add(e,"change._change",(function(t){!this.parentNode||t.isSimulated||t.isTrigger||m.event.simulate("change",this.parentNode,t,!0)})),m._data(e,"changeBubbles",!0))}))},handle:function(t){var e=t.target;if(this!==e||t.isSimulated||t.isTrigger||"radio"!==e.type&&"checkbox"!==e.type)return t.handleObj.handler.apply(this,arguments)},teardown:function(){return m.event.remove(this,"._change"),!G.test(this.nodeName)}}),h.focusinBubbles||m.each({focus:"focusin",blur:"focusout"},(function(t,e){var n=function(t){m.event.simulate(e,t.target,m.event.fix(t),!0)};m.event.special[e]={setup:function(){var o=this.ownerDocument||this,i=m._data(o,e);i||o.addEventListener(t,n,!0),m._data(o,e,(i||0)+1)},teardown:function(){var o=this.ownerDocument||this,i=m._data(o,e)-1;i?m._data(o,e,i):(o.removeEventListener(t,n,!0),m._removeData(o,e))}}})),m.fn.extend({on:function(t,e,n,o,i){var r,a;if("object"===s(t)){for(r in"string"!=typeof e&&(n=n||e,e=void 0),t)this.on(r,e,n,t[r],i);return this}if(null==n&&null==o?(o=e,n=e=void 0):null==o&&("string"==typeof e?(o=n,n=void 0):(o=n,n=e,e=void 0)),!1===o)o=ot;else if(!o)return this;return 1===i&&(a=o,o=function(t){return m().off(t),a.apply(this,arguments)},o.guid=a.guid||(a.guid=m.guid++)),this.each((function(){m.event.add(this,t,o,n,e)}))},one:function(t,e,n,o){return this.on(t,e,n,o,1)},off:function(t,e,n){var o,i;if(t&&t.preventDefault&&t.handleObj)return o=t.handleObj,m(t.delegateTarget).off(o.namespace?o.origType+"."+o.namespace:o.origType,o.selector,o.handler),this;if("object"===s(t)){for(i in t)this.off(i,e,t[i]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=ot),this.each((function(){m.event.remove(this,t,n,e)}))},trigger:function(t,e){return this.each((function(){m.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return m.event.trigger(t,e,n,!0)}});var st="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",at=/ jQuery\d+="(?:null|\d+)"/g,lt=new RegExp("<(?:"+st+")[\\s/>]","i"),ct=/^\s+/,dt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ut=/<([\w:]+)/,pt=/<tbody/i,ft=/<|&#?\w+;/,ht=/<(?:script|style|link)/i,gt=/checked\s*(?:[^=]|=\s*.checked.)/i,mt=/^$|\/(?:java|ecma)script/i,vt=/^true\/(.*)/,yt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,bt={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:h.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},wt=rt(E).appendChild(E.createElement("div"));function xt(t,e){var n,o,i=0,r=s(t.getElementsByTagName)!==F?t.getElementsByTagName(e||"*"):s(t.querySelectorAll)!==F?t.querySelectorAll(e||"*"):void 0;if(!r)for(r=[],n=t.childNodes||t;null!=(o=n[i]);i++)!e||m.nodeName(o,e)?r.push(o):m.merge(r,xt(o,e));return void 0===e||e&&m.nodeName(t,e)?m.merge([t],r):r}function Ct(t){Q.test(t.type)&&(t.defaultChecked=t.checked)}function Tt(t,e){return m.nodeName(t,"table")&&m.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function kt(t){return t.type=(null!==m.find.attr(t,"type"))+"/"+t.type,t}function St(t){var e=vt.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function $t(t,e){for(var n,o=0;null!=(n=t[o]);o++)m._data(n,"globalEval",!e||m._data(e[o],"globalEval"))}function _t(t,e){if(1===e.nodeType&&m.hasData(t)){var n,o,i,r=m._data(t),s=m._data(e,r),a=r.events;if(a)for(n in delete s.handle,s.events={},a)for(o=0,i=a[n].length;o<i;o++)m.event.add(e,n,a[n][o]);s.data&&(s.data=m.extend({},s.data))}}function Et(t,e){var n,o,i;if(1===e.nodeType){if(n=e.nodeName.toLowerCase(),!h.noCloneEvent&&e[m.expando]){for(o in(i=m._data(e)).events)m.removeEvent(e,o,i.handle);e.removeAttribute(m.expando)}"script"===n&&e.text!==t.text?(kt(e).text=t.text,St(e)):"object"===n?(e.parentNode&&(e.outerHTML=t.outerHTML),h.html5Clone&&t.innerHTML&&!m.trim(e.innerHTML)&&(e.innerHTML=t.innerHTML)):"input"===n&&Q.test(t.type)?(e.defaultChecked=e.checked=t.checked,e.value!==t.value&&(e.value=t.value)):"option"===n?e.defaultSelected=e.selected=t.defaultSelected:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}}bt.optgroup=bt.option,bt.tbody=bt.tfoot=bt.colgroup=bt.caption=bt.thead,bt.th=bt.td,m.extend({clone:function(t,e,n){var o,i,r,s,a,l=m.contains(t.ownerDocument,t);if(h.html5Clone||m.isXMLDoc(t)||!lt.test("<"+t.nodeName+">")?r=t.cloneNode(!0):(wt.innerHTML=t.outerHTML,wt.removeChild(r=wt.firstChild)),!(h.noCloneEvent&&h.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||m.isXMLDoc(t)))for(o=xt(r),a=xt(t),s=0;null!=(i=a[s]);++s)o[s]&&Et(i,o[s]);if(e)if(n)for(a=a||xt(t),o=o||xt(r),s=0;null!=(i=a[s]);s++)_t(i,o[s]);else _t(t,r);return(o=xt(r,"script")).length>0&&$t(o,!l&&xt(t,"script")),o=a=i=null,r},buildFragment:function(t,e,n,o){for(var i,r,s,a,l,c,d,u=t.length,p=rt(e),f=[],g=0;g<u;g++)if((r=t[g])||0===r)if("object"===m.type(r))m.merge(f,r.nodeType?[r]:r);else if(ft.test(r)){for(a=a||p.appendChild(e.createElement("div")),l=(ut.exec(r)||["",""])[1].toLowerCase(),d=bt[l]||bt._default,a.innerHTML=d[1]+r.replace(dt,"<$1></$2>")+d[2],i=d[0];i--;)a=a.lastChild;if(!h.leadingWhitespace&&ct.test(r)&&f.push(e.createTextNode(ct.exec(r)[0])),!h.tbody)for(i=(r="table"!==l||pt.test(r)?"<table>"!==d[1]||pt.test(r)?0:a:a.firstChild)&&r.childNodes.length;i--;)m.nodeName(c=r.childNodes[i],"tbody")&&!c.childNodes.length&&r.removeChild(c);for(m.merge(f,a.childNodes),a.textContent="";a.firstChild;)a.removeChild(a.firstChild);a=p.lastChild}else f.push(e.createTextNode(r));for(a&&p.removeChild(a),h.appendChecked||m.grep(xt(f,"input"),Ct),g=0;r=f[g++];)if((!o||-1===m.inArray(r,o))&&(s=m.contains(r.ownerDocument,r),a=xt(p.appendChild(r),"script"),s&&$t(a),n))for(i=0;r=a[i++];)mt.test(r.type||"")&&n.push(r);return a=null,p},cleanData:function(t,e){for(var n,o,i,a,l=0,c=m.expando,d=m.cache,u=h.deleteExpando,p=m.event.special;null!=(n=t[l]);l++)if((e||m.acceptData(n))&&(a=(i=n[c])&&d[i])){if(a.events)for(o in a.events)p[o]?m.event.remove(n,o):m.removeEvent(n,o,a.handle);d[i]&&(delete d[i],u?delete n[c]:s(n.removeAttribute)!==F?n.removeAttribute(c):n[c]=null,r.push(i))}}}),m.fn.extend({text:function(t){return K(this,(function(t){return void 0===t?m.text(this):this.empty().append((this[0]&&this[0].ownerDocument||E).createTextNode(t))}),null,t,arguments.length)},append:function(){return this.domManip(arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Tt(this,t).appendChild(t)}))},prepend:function(){return this.domManip(arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Tt(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return this.domManip(arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return this.domManip(arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},remove:function(t,e){for(var n,o=t?m.filter(t,this):this,i=0;null!=(n=o[i]);i++)e||1!==n.nodeType||m.cleanData(xt(n)),n.parentNode&&(e&&m.contains(n.ownerDocument,n)&&$t(xt(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++){for(1===t.nodeType&&m.cleanData(xt(t,!1));t.firstChild;)t.removeChild(t.firstChild);t.options&&m.nodeName(t,"select")&&(t.options.length=0)}return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return m.clone(this,t,e)}))},html:function(t){return K(this,(function(t){var e=this[0]||{},n=0,o=this.length;if(void 0===t)return 1===e.nodeType?e.innerHTML.replace(at,""):void 0;if("string"==typeof t&&!ht.test(t)&&(h.htmlSerialize||!lt.test(t))&&(h.leadingWhitespace||!ct.test(t))&&!bt[(ut.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(dt,"<$1></$2>");try{for(;n<o;n++)1===(e=this[n]||{}).nodeType&&(m.cleanData(xt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=arguments[0];return this.domManip(arguments,(function(e){t=this.parentNode,m.cleanData(xt(this)),t&&t.replaceChild(e,this)})),t&&(t.length||t.nodeType)?this:this.remove()},detach:function(t){return this.remove(t,!0)},domManip:function(t,e){t=l.apply([],t);var n,o,i,r,s,a,c=0,d=this.length,u=this,p=d-1,f=t[0],g=m.isFunction(f);if(g||d>1&&"string"==typeof f&&!h.checkClone&&gt.test(f))return this.each((function(n){var o=u.eq(n);g&&(t[0]=f.call(this,n,o.html())),o.domManip(t,e)}));if(d&&(n=(a=m.buildFragment(t,this[0].ownerDocument,!1,this)).firstChild,1===a.childNodes.length&&(a=n),n)){for(i=(r=m.map(xt(a,"script"),kt)).length;c<d;c++)o=a,c!==p&&(o=m.clone(o,!0,!0),i&&m.merge(r,xt(o,"script"))),e.call(this[c],o,c);if(i)for(s=r[r.length-1].ownerDocument,m.map(r,St),c=0;c<i;c++)o=r[c],mt.test(o.type||"")&&!m._data(o,"globalEval")&&m.contains(s,o)&&(o.src?m._evalUrl&&m._evalUrl(o.src):m.globalEval((o.text||o.textContent||o.innerHTML||"").replace(yt,"")));a=n=null}return this}}),m.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){m.fn[t]=function(t){for(var n,o=0,i=[],r=m(t),s=r.length-1;o<=s;o++)n=o===s?this:this.clone(!0),m(r[o])[e](n),c.apply(i,n.get());return this.pushStack(i)}}));var Ot,At,Pt={};function It(t,e){var o,i=m(e.createElement(t)).appendTo(e.body),r=n.getDefaultComputedStyle&&(o=n.getDefaultComputedStyle(i[0]))?o.display:m.css(i[0],"display");return i.detach(),r}function Dt(t){var e=E,n=Pt[t];return n||("none"!==(n=It(t,e))&&n||((e=((Ot=(Ot||m("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement))[0].contentWindow||Ot[0].contentDocument).document).write(),e.close(),n=It(t,e),Ot.detach()),Pt[t]=n),n}h.shrinkWrapBlocks=function(){return null!=At?At:(At=!1,(e=E.getElementsByTagName("body")[0])&&e.style?(t=E.createElement("div"),(n=E.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",e.appendChild(n).appendChild(t),s(t.style.zoom)!==F&&(t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",t.appendChild(E.createElement("div")).style.width="5px",At=3!==t.offsetWidth),e.removeChild(n),At):void 0);var t,e,n};var Lt,zt,jt=/^margin/,Nt=new RegExp("^("+X+")(?!px)[a-z%]+$","i"),Mt=/^(top|right|bottom|left)$/;function Ft(t,e){return{get:function(){var n=t();if(null!=n){if(!n)return(this.get=e).apply(this,arguments);delete this.get}}}}n.getComputedStyle?(Lt=function(t){return t.ownerDocument.defaultView.opener?t.ownerDocument.defaultView.getComputedStyle(t,null):n.getComputedStyle(t,null)},zt=function(t,e,n){var o,i,r,s,a=t.style;return s=(n=n||Lt(t))?n.getPropertyValue(e)||n[e]:void 0,n&&(""!==s||m.contains(t.ownerDocument,t)||(s=m.style(t,e)),Nt.test(s)&&jt.test(e)&&(o=a.width,i=a.minWidth,r=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=o,a.minWidth=i,a.maxWidth=r)),void 0===s?s:s+""}):E.documentElement.currentStyle&&(Lt=function(t){return t.currentStyle},zt=function(t,e,n){var o,i,r,s,a=t.style;return null==(s=(n=n||Lt(t))?n[e]:void 0)&&a&&a[e]&&(s=a[e]),Nt.test(s)&&!Mt.test(e)&&(o=a.left,(r=(i=t.runtimeStyle)&&i.left)&&(i.left=t.currentStyle.left),a.left="fontSize"===e?"1em":s,s=a.pixelLeft+"px",a.left=o,r&&(i.left=r)),void 0===s?s:s+""||"auto"}),function(){var t,e,o,i,r,s,a;function l(){var t,e,o,l;(e=E.getElementsByTagName("body")[0])&&e.style&&(t=E.createElement("div"),(o=E.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",e.appendChild(o).appendChild(t),t.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",i=r=!1,a=!0,n.getComputedStyle&&(i="1%"!==(n.getComputedStyle(t,null)||{}).top,r="4px"===(n.getComputedStyle(t,null)||{width:"4px"}).width,(l=t.appendChild(E.createElement("div"))).style.cssText=t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",l.style.marginRight=l.style.width="0",t.style.width="1px",a=!parseFloat((n.getComputedStyle(l,null)||{}).marginRight),t.removeChild(l)),t.innerHTML="<table><tr><td></td><td>t</td></tr></table>",(l=t.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",(s=0===l[0].offsetHeight)&&(l[0].style.display="",l[1].style.display="none",s=0===l[0].offsetHeight),e.removeChild(o))}(t=E.createElement("div")).innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",(e=(o=t.getElementsByTagName("a")[0])&&o.style)&&(e.cssText="float:left;opacity:.5",h.opacity="0.5"===e.opacity,h.cssFloat=!!e.cssFloat,t.style.backgroundClip="content-box",t.cloneNode(!0).style.backgroundClip="",h.clearCloneStyle="content-box"===t.style.backgroundClip,h.boxSizing=""===e.boxSizing||""===e.MozBoxSizing||""===e.WebkitBoxSizing,m.extend(h,{reliableHiddenOffsets:function(){return null==s&&l(),s},boxSizingReliable:function(){return null==r&&l(),r},pixelPosition:function(){return null==i&&l(),i},reliableMarginRight:function(){return null==a&&l(),a}}))}(),m.swap=function(t,e,n,o){var i,r,s={};for(r in e)s[r]=t.style[r],t.style[r]=e[r];for(r in i=n.apply(t,o||[]),e)t.style[r]=s[r];return i};var Ht=/alpha\([^)]*\)/i,Rt=/opacity\s*=\s*([^)]*)/,qt=/^(none|table(?!-c[ea]).+)/,Wt=new RegExp("^("+X+")(.*)$","i"),Bt=new RegExp("^([+-])=("+X+")","i"),Ut={position:"absolute",visibility:"hidden",display:"block"},Xt={letterSpacing:"0",fontWeight:"400"},Vt=["Webkit","O","Moz","ms"];function Yt(t,e){if(e in t)return e;for(var n=e.charAt(0).toUpperCase()+e.slice(1),o=e,i=Vt.length;i--;)if((e=Vt[i]+n)in t)return e;return o}function Kt(t,e){for(var n,o,i,r=[],s=0,a=t.length;s<a;s++)(o=t[s]).style&&(r[s]=m._data(o,"olddisplay"),n=o.style.display,e?(r[s]||"none"!==n||(o.style.display=""),""===o.style.display&&Y(o)&&(r[s]=m._data(o,"olddisplay",Dt(o.nodeName)))):(i=Y(o),(n&&"none"!==n||!i)&&m._data(o,"olddisplay",i?n:m.css(o,"display"))));for(s=0;s<a;s++)(o=t[s]).style&&(e&&"none"!==o.style.display&&""!==o.style.display||(o.style.display=e?r[s]||"":"none"));return t}function Qt(t,e,n){var o=Wt.exec(e);return o?Math.max(0,o[1]-(n||0))+(o[2]||"px"):e}function Gt(t,e,n,o,i){for(var r=n===(o?"border":"content")?4:"width"===e?1:0,s=0;r<4;r+=2)"margin"===n&&(s+=m.css(t,n+V[r],!0,i)),o?("content"===n&&(s-=m.css(t,"padding"+V[r],!0,i)),"margin"!==n&&(s-=m.css(t,"border"+V[r]+"Width",!0,i))):(s+=m.css(t,"padding"+V[r],!0,i),"padding"!==n&&(s+=m.css(t,"border"+V[r]+"Width",!0,i)));return s}function Jt(t,e,n){var o=!0,i="width"===e?t.offsetWidth:t.offsetHeight,r=Lt(t),s=h.boxSizing&&"border-box"===m.css(t,"boxSizing",!1,r);if(i<=0||null==i){if(((i=zt(t,e,r))<0||null==i)&&(i=t.style[e]),Nt.test(i))return i;o=s&&(h.boxSizingReliable()||i===t.style[e]),i=parseFloat(i)||0}return i+Gt(t,e,n||(s?"border":"content"),o,r)+"px"}function Zt(t,e,n,o,i){return new Zt.prototype.init(t,e,n,o,i)}m.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=zt(t,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:h.cssFloat?"cssFloat":"styleFloat"},style:function(t,e,n,o){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,r,a,l=m.camelCase(e),c=t.style;if(e=m.cssProps[l]||(m.cssProps[l]=Yt(c,l)),a=m.cssHooks[e]||m.cssHooks[l],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(t,!1,o))?i:c[e];if("string"===(r=s(n))&&(i=Bt.exec(n))&&(n=(i[1]+1)*i[2]+parseFloat(m.css(t,e)),r="number"),null!=n&&n==n&&("number"!==r||m.cssNumber[l]||(n+="px"),h.clearCloneStyle||""!==n||0!==e.indexOf("background")||(c[e]="inherit"),!a||!("set"in a)||void 0!==(n=a.set(t,n,o))))try{c[e]=n}catch(t){}}},css:function(t,e,n,o){var i,r,s,a=m.camelCase(e);return e=m.cssProps[a]||(m.cssProps[a]=Yt(t.style,a)),(s=m.cssHooks[e]||m.cssHooks[a])&&"get"in s&&(r=s.get(t,!0,n)),void 0===r&&(r=zt(t,e,o)),"normal"===r&&e in Xt&&(r=Xt[e]),""===n||n?(i=parseFloat(r),!0===n||m.isNumeric(i)?i||0:r):r}}),m.each(["height","width"],(function(t,e){m.cssHooks[e]={get:function(t,n,o){if(n)return qt.test(m.css(t,"display"))&&0===t.offsetWidth?m.swap(t,Ut,(function(){return Jt(t,e,o)})):Jt(t,e,o)},set:function(t,n,o){var i=o&&Lt(t);return Qt(0,n,o?Gt(t,e,o,h.boxSizing&&"border-box"===m.css(t,"boxSizing",!1,i),i):0)}}})),h.opacity||(m.cssHooks.opacity={get:function(t,e){return Rt.test((e&&t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":e?"1":""},set:function(t,e){var n=t.style,o=t.currentStyle,i=m.isNumeric(e)?"alpha(opacity="+100*e+")":"",r=o&&o.filter||n.filter||"";n.zoom=1,(e>=1||""===e)&&""===m.trim(r.replace(Ht,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===e||o&&!o.filter)||(n.filter=Ht.test(r)?r.replace(Ht,i):r+" "+i)}}),m.cssHooks.marginRight=Ft(h.reliableMarginRight,(function(t,e){if(e)return m.swap(t,{display:"inline-block"},zt,[t,"marginRight"])})),m.each({margin:"",padding:"",border:"Width"},(function(t,e){m.cssHooks[t+e]={expand:function(n){for(var o=0,i={},r="string"==typeof n?n.split(" "):[n];o<4;o++)i[t+V[o]+e]=r[o]||r[o-2]||r[0];return i}},jt.test(t)||(m.cssHooks[t+e].set=Qt)})),m.fn.extend({css:function(t,e){return K(this,(function(t,e,n){var o,i,r={},s=0;if(m.isArray(e)){for(o=Lt(t),i=e.length;s<i;s++)r[e[s]]=m.css(t,e[s],!1,o);return r}return void 0!==n?m.style(t,e,n):m.css(t,e)}),t,e,arguments.length>1)},show:function(){return Kt(this,!0)},hide:function(){return Kt(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){Y(this)?m(this).show():m(this).hide()}))}}),m.Tween=Zt,Zt.prototype={constructor:Zt,init:function(t,e,n,o,i,r){this.elem=t,this.prop=n,this.easing=i||"swing",this.options=e,this.start=this.now=this.cur(),this.end=o,this.unit=r||(m.cssNumber[n]?"":"px")},cur:function(){var t=Zt.propHooks[this.prop];return t&&t.get?t.get(this):Zt.propHooks._default.get(this)},run:function(t){var e,n=Zt.propHooks[this.prop];return this.options.duration?this.pos=e=m.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Zt.propHooks._default.set(this),this}},Zt.prototype.init.prototype=Zt.prototype,Zt.propHooks={_default:{get:function(t){var e;return null==t.elem[t.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(e=m.css(t.elem,t.prop,""))&&"auto"!==e?e:0:t.elem[t.prop]},set:function(t){m.fx.step[t.prop]?m.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[m.cssProps[t.prop]]||m.cssHooks[t.prop])?m.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}},Zt.propHooks.scrollTop=Zt.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},m.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},(m.fx=Zt.prototype.init).step={};var te,ee,ne,oe,ie,re,se,ae=/^(?:toggle|show|hide)$/,le=new RegExp("^(?:([+-])=|)("+X+")([a-z%]*)$","i"),ce=/queueHooks$/,de=[function(t,e,n){var o,i,r,s,a,l,c,d=this,u={},p=t.style,f=t.nodeType&&Y(t),g=m._data(t,"fxshow");for(o in n.queue||(null==(a=m._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,l=a.empty.fire,a.empty.fire=function(){a.unqueued||l()}),a.unqueued++,d.always((function(){d.always((function(){a.unqueued--,m.queue(t,"fx").length||a.empty.fire()}))}))),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],"inline"===("none"===(c=m.css(t,"display"))?m._data(t,"olddisplay")||Dt(t.nodeName):c)&&"none"===m.css(t,"float")&&(h.inlineBlockNeedsLayout&&"inline"!==Dt(t.nodeName)?p.zoom=1:p.display="inline-block")),n.overflow&&(p.overflow="hidden",h.shrinkWrapBlocks()||d.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}))),e)if(i=e[o],ae.exec(i)){if(delete e[o],r=r||"toggle"===i,i===(f?"hide":"show")){if("show"!==i||!g||void 0===g[o])continue;f=!0}u[o]=g&&g[o]||m.style(t,o)}else c=void 0;if(m.isEmptyObject(u))"inline"===("none"===c?Dt(t.nodeName):c)&&(p.display=c);else for(o in g?"hidden"in g&&(f=g.hidden):g=m._data(t,"fxshow",{}),r&&(g.hidden=!f),f?m(t).show():d.done((function(){m(t).hide()})),d.done((function(){var e;for(e in m._removeData(t,"fxshow"),u)m.style(t,e,u[e])})),u)s=he(f?g[o]:0,o,d),o in g||(g[o]=s.start,f&&(s.end=s.start,s.start="width"===o||"height"===o?1:0))}],ue={"*":[function(t,e){var n=this.createTween(t,e),o=n.cur(),i=le.exec(e),r=i&&i[3]||(m.cssNumber[t]?"":"px"),s=(m.cssNumber[t]||"px"!==r&&+o)&&le.exec(m.css(n.elem,t)),a=1,l=20;if(s&&s[3]!==r){r=r||s[3],i=i||[],s=+o||1;do{s/=a=a||".5",m.style(n.elem,t,s+r)}while(a!==(a=n.cur()/o)&&1!==a&&--l)}return i&&(s=n.start=+s||+o||0,n.unit=r,n.end=i[1]?s+(i[1]+1)*i[2]:+i[2]),n}]};function pe(){return setTimeout((function(){te=void 0})),te=m.now()}function fe(t,e){var n,o={height:t},i=0;for(e=e?1:0;i<4;i+=2-e)o["margin"+(n=V[i])]=o["padding"+n]=t;return e&&(o.opacity=o.width=t),o}function he(t,e,n){for(var o,i=(ue[e]||[]).concat(ue["*"]),r=0,s=i.length;r<s;r++)if(o=i[r].call(n,e,t))return o}function ge(t,e,n){var o,i,r=0,s=de.length,a=m.Deferred().always((function(){delete l.elem})),l=function(){if(i)return!1;for(var e=te||pe(),n=Math.max(0,c.startTime+c.duration-e),o=1-(n/c.duration||0),r=0,s=c.tweens.length;r<s;r++)c.tweens[r].run(o);return a.notifyWith(t,[c,o,n]),o<1&&s?n:(a.resolveWith(t,[c]),!1)},c=a.promise({elem:t,props:m.extend({},e),opts:m.extend(!0,{specialEasing:{}},n),originalProperties:e,originalOptions:n,startTime:te||pe(),duration:n.duration,tweens:[],createTween:function(e,n){var o=m.Tween(t,c.opts,e,n,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(o),o},stop:function(e){var n=0,o=e?c.tweens.length:0;if(i)return this;for(i=!0;n<o;n++)c.tweens[n].run(1);return e?a.resolveWith(t,[c,e]):a.rejectWith(t,[c,e]),this}}),d=c.props;for(function(t,e){var n,o,i,r,s;for(n in t)if(i=e[o=m.camelCase(n)],r=t[n],m.isArray(r)&&(i=r[1],r=t[n]=r[0]),n!==o&&(t[o]=r,delete t[n]),(s=m.cssHooks[o])&&"expand"in s)for(n in r=s.expand(r),delete t[o],r)n in t||(t[n]=r[n],e[n]=i);else e[o]=i}(d,c.opts.specialEasing);r<s;r++)if(o=de[r].call(c,t,d,c.opts))return o;return m.map(d,he,c),m.isFunction(c.opts.start)&&c.opts.start.call(t,c),m.fx.timer(m.extend(l,{elem:t,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}m.Animation=m.extend(ge,{tweener:function(t,e){m.isFunction(t)?(e=t,t=["*"]):t=t.split(" ");for(var n,o=0,i=t.length;o<i;o++)n=t[o],ue[n]=ue[n]||[],ue[n].unshift(e)},prefilter:function(t,e){e?de.unshift(t):de.push(t)}}),m.speed=function(t,e,n){var o=t&&"object"===s(t)?m.extend({},t):{complete:n||!n&&e||m.isFunction(t)&&t,duration:t,easing:n&&e||e&&!m.isFunction(e)&&e};return o.duration=m.fx.off?0:"number"==typeof o.duration?o.duration:o.duration in m.fx.speeds?m.fx.speeds[o.duration]:m.fx.speeds._default,null!=o.queue&&!0!==o.queue||(o.queue="fx"),o.old=o.complete,o.complete=function(){m.isFunction(o.old)&&o.old.call(this),o.queue&&m.dequeue(this,o.queue)},o},m.fn.extend({fadeTo:function(t,e,n,o){return this.filter(Y).css("opacity",0).show().end().animate({opacity:e},t,n,o)},animate:function(t,e,n,o){var i=m.isEmptyObject(t),r=m.speed(e,n,o),s=function(){var e=ge(this,m.extend({},t),r);(i||m._data(this,"finish"))&&e.stop(!0)};return s.finish=s,i||!1===r.queue?this.each(s):this.queue(r.queue,s)},stop:function(t,e,n){var o=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&!1!==t&&this.queue(t||"fx",[]),this.each((function(){var e=!0,i=null!=t&&t+"queueHooks",r=m.timers,s=m._data(this);if(i)s[i]&&s[i].stop&&o(s[i]);else for(i in s)s[i]&&s[i].stop&&ce.test(i)&&o(s[i]);for(i=r.length;i--;)r[i].elem!==this||null!=t&&r[i].queue!==t||(r[i].anim.stop(n),e=!1,r.splice(i,1));!e&&n||m.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,n=m._data(this),o=n[t+"queue"],i=n[t+"queueHooks"],r=m.timers,s=o?o.length:0;for(n.finish=!0,m.queue(this,t,[]),i&&i.stop&&i.stop.call(this,!0),e=r.length;e--;)r[e].elem===this&&r[e].queue===t&&(r[e].anim.stop(!0),r.splice(e,1));for(e=0;e<s;e++)o[e]&&o[e].finish&&o[e].finish.call(this);delete n.finish}))}}),m.each(["toggle","show","hide"],(function(t,e){var n=m.fn[e];m.fn[e]=function(t,o,i){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(fe(e,!0),t,o,i)}})),m.each({slideDown:fe("show"),slideUp:fe("hide"),slideToggle:fe("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){m.fn[t]=function(t,n,o){return this.animate(e,t,n,o)}})),m.timers=[],m.fx.tick=function(){var t,e=m.timers,n=0;for(te=m.now();n<e.length;n++)(t=e[n])()||e[n]!==t||e.splice(n--,1);e.length||m.fx.stop(),te=void 0},m.fx.timer=function(t){m.timers.push(t),t()?m.fx.start():m.timers.pop()},m.fx.interval=13,m.fx.start=function(){ee||(ee=setInterval(m.fx.tick,m.fx.interval))},m.fx.stop=function(){clearInterval(ee),ee=null},m.fx.speeds={slow:600,fast:200,_default:400},m.fn.delay=function(t,e){return t=m.fx&&m.fx.speeds[t]||t,e=e||"fx",this.queue(e,(function(e,n){var o=setTimeout(e,t);n.stop=function(){clearTimeout(o)}}))},(oe=E.createElement("div")).setAttribute("className","t"),oe.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",re=oe.getElementsByTagName("a")[0],se=(ie=E.createElement("select")).appendChild(E.createElement("option")),ne=oe.getElementsByTagName("input")[0],re.style.cssText="top:1px",h.getSetAttribute="t"!==oe.className,h.style=/top/.test(re.getAttribute("style")),h.hrefNormalized="/a"===re.getAttribute("href"),h.checkOn=!!ne.value,h.optSelected=se.selected,h.enctype=!!E.createElement("form").enctype,ie.disabled=!0,h.optDisabled=!se.disabled,(ne=E.createElement("input")).setAttribute("value",""),h.input=""===ne.getAttribute("value"),ne.value="t",ne.setAttribute("type","radio"),h.radioValue="t"===ne.value;var me=/\r/g;m.fn.extend({val:function(t){var e,n,o,i=this[0];return arguments.length?(o=m.isFunction(t),this.each((function(n){var i;1===this.nodeType&&(null==(i=o?t.call(this,n,m(this).val()):t)?i="":"number"==typeof i?i+="":m.isArray(i)&&(i=m.map(i,(function(t){return null==t?"":t+""}))),(e=m.valHooks[this.type]||m.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))}))):i?(e=m.valHooks[i.type]||m.valHooks[i.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(me,""):null==n?"":n:void 0}}),m.extend({valHooks:{option:{get:function(t){var e=m.find.attr(t,"value");return null!=e?e:m.trim(m.text(t))}},select:{get:function(t){for(var e,n,o=t.options,i=t.selectedIndex,r="select-one"===t.type||i<0,s=r?null:[],a=r?i+1:o.length,l=i<0?a:r?i:0;l<a;l++)if(((n=o[l]).selected||l===i)&&(h.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!m.nodeName(n.parentNode,"optgroup"))){if(e=m(n).val(),r)return e;s.push(e)}return s},set:function(t,e){for(var n,o,i=t.options,r=m.makeArray(e),s=i.length;s--;)if(o=i[s],m.inArray(m.valHooks.option.get(o),r)>=0)try{o.selected=n=!0}catch(t){o.scrollHeight}else o.selected=!1;return n||(t.selectedIndex=-1),i}}}}),m.each(["radio","checkbox"],(function(){m.valHooks[this]={set:function(t,e){if(m.isArray(e))return t.checked=m.inArray(m(t).val(),e)>=0}},h.checkOn||(m.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}));var ve,ye,be=m.expr.attrHandle,we=/^(?:checked|selected)$/i,xe=h.getSetAttribute,Ce=h.input;m.fn.extend({attr:function(t,e){return K(this,m.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){m.removeAttr(this,t)}))}}),m.extend({attr:function(t,e,n){var o,i,r=t.nodeType;if(t&&3!==r&&8!==r&&2!==r)return s(t.getAttribute)===F?m.prop(t,e,n):(1===r&&m.isXMLDoc(t)||(e=e.toLowerCase(),o=m.attrHooks[e]||(m.expr.match.bool.test(e)?ye:ve)),void 0===n?o&&"get"in o&&null!==(i=o.get(t,e))?i:null==(i=m.find.attr(t,e))?void 0:i:null!==n?o&&"set"in o&&void 0!==(i=o.set(t,n,e))?i:(t.setAttribute(e,n+""),n):void m.removeAttr(t,e))},removeAttr:function(t,e){var n,o,i=0,r=e&&e.match(L);if(r&&1===t.nodeType)for(;n=r[i++];)o=m.propFix[n]||n,m.expr.match.bool.test(n)?Ce&&xe||!we.test(n)?t[o]=!1:t[m.camelCase("default-"+n)]=t[o]=!1:m.attr(t,n,""),t.removeAttribute(xe?n:o)},attrHooks:{type:{set:function(t,e){if(!h.radioValue&&"radio"===e&&m.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}}}),ye={set:function(t,e,n){return!1===e?m.removeAttr(t,n):Ce&&xe||!we.test(n)?t.setAttribute(!xe&&m.propFix[n]||n,n):t[m.camelCase("default-"+n)]=t[n]=!0,n}},m.each(m.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=be[e]||m.find.attr;be[e]=Ce&&xe||!we.test(e)?function(t,e,o){var i,r;return o||(r=be[e],be[e]=i,i=null!=n(t,e,o)?e.toLowerCase():null,be[e]=r),i}:function(t,e,n){if(!n)return t[m.camelCase("default-"+e)]?e.toLowerCase():null}})),Ce&&xe||(m.attrHooks.value={set:function(t,e,n){if(!m.nodeName(t,"input"))return ve&&ve.set(t,e,n);t.defaultValue=e}}),xe||(ve={set:function(t,e,n){var o=t.getAttributeNode(n);if(o||t.setAttributeNode(o=t.ownerDocument.createAttribute(n)),o.value=e+="","value"===n||e===t.getAttribute(n))return e}},be.id=be.name=be.coords=function(t,e,n){var o;if(!n)return(o=t.getAttributeNode(e))&&""!==o.value?o.value:null},m.valHooks.button={get:function(t,e){var n=t.getAttributeNode(e);if(n&&n.specified)return n.value},set:ve.set},m.attrHooks.contenteditable={set:function(t,e,n){ve.set(t,""!==e&&e,n)}},m.each(["width","height"],(function(t,e){m.attrHooks[e]={set:function(t,n){if(""===n)return t.setAttribute(e,"auto"),n}}}))),h.style||(m.attrHooks.style={get:function(t){return t.style.cssText||void 0},set:function(t,e){return t.style.cssText=e+""}});var Te=/^(?:input|select|textarea|button|object)$/i,ke=/^(?:a|area)$/i;m.fn.extend({prop:function(t,e){return K(this,m.prop,t,e,arguments.length>1)},removeProp:function(t){return t=m.propFix[t]||t,this.each((function(){try{this[t]=void 0,delete this[t]}catch(t){}}))}}),m.extend({propFix:{for:"htmlFor",class:"className"},prop:function(t,e,n){var o,i,r=t.nodeType;if(t&&3!==r&&8!==r&&2!==r)return(1!==r||!m.isXMLDoc(t))&&(e=m.propFix[e]||e,i=m.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(o=i.set(t,n,e))?o:t[e]=n:i&&"get"in i&&null!==(o=i.get(t,e))?o:t[e]},propHooks:{tabIndex:{get:function(t){var e=m.find.attr(t,"tabindex");return e?parseInt(e,10):Te.test(t.nodeName)||ke.test(t.nodeName)&&t.href?0:-1}}}}),h.hrefNormalized||m.each(["href","src"],(function(t,e){m.propHooks[e]={get:function(t){return t.getAttribute(e,4)}}})),h.optSelected||(m.propHooks.selected={get:function(t){var e=t.parentNode;return e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex),null}}),m.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){m.propFix[this.toLowerCase()]=this})),h.enctype||(m.propFix.enctype="encoding");var Se=/[\t\r\n\f]/g;m.fn.extend({addClass:function(t){var e,n,o,i,r,s,a=0,l=this.length,c="string"==typeof t&&t;if(m.isFunction(t))return this.each((function(e){m(this).addClass(t.call(this,e,this.className))}));if(c)for(e=(t||"").match(L)||[];a<l;a++)if(o=1===(n=this[a]).nodeType&&(n.className?(" "+n.className+" ").replace(Se," "):" ")){for(r=0;i=e[r++];)o.indexOf(" "+i+" ")<0&&(o+=i+" ");s=m.trim(o),n.className!==s&&(n.className=s)}return this},removeClass:function(t){var e,n,o,i,r,s,a=0,l=this.length,c=0===arguments.length||"string"==typeof t&&t;if(m.isFunction(t))return this.each((function(e){m(this).removeClass(t.call(this,e,this.className))}));if(c)for(e=(t||"").match(L)||[];a<l;a++)if(o=1===(n=this[a]).nodeType&&(n.className?(" "+n.className+" ").replace(Se," "):"")){for(r=0;i=e[r++];)for(;o.indexOf(" "+i+" ")>=0;)o=o.replace(" "+i+" "," ");s=t?m.trim(o):"",n.className!==s&&(n.className=s)}return this},toggleClass:function(t,e){var n=s(t);return"boolean"==typeof e&&"string"===n?e?this.addClass(t):this.removeClass(t):m.isFunction(t)?this.each((function(n){m(this).toggleClass(t.call(this,n,this.className,e),e)})):this.each((function(){if("string"===n)for(var e,o=0,i=m(this),r=t.match(L)||[];e=r[o++];)i.hasClass(e)?i.removeClass(e):i.addClass(e);else n!==F&&"boolean"!==n||(this.className&&m._data(this,"__className__",this.className),this.className=this.className||!1===t?"":m._data(this,"__className__")||"")}))},hasClass:function(t){for(var e=" "+t+" ",n=0,o=this.length;n<o;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(Se," ").indexOf(e)>=0)return!0;return!1}}),m.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),(function(t,e){m.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}})),m.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)},bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,o){return this.on(e,t,n,o)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)}});var $e=m.now(),_e=/\?/,Ee=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;m.parseJSON=function(t){if(n.JSON&&n.JSON.parse)return n.JSON.parse(t+"");var e,o=null,i=m.trim(t+"");return i&&!m.trim(i.replace(Ee,(function(t,n,i,r){return e&&n&&(o=0),0===o?t:(e=i||n,o+=!r-!i,"")})))?Function("return "+i)():m.error("Invalid JSON: "+t)},m.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{n.DOMParser?e=(new DOMParser).parseFromString(t,"text/xml"):((e=new ActiveXObject("Microsoft.XMLDOM")).async="false",e.loadXML(t))}catch(t){e=void 0}return e&&e.documentElement&&!e.getElementsByTagName("parsererror").length||m.error("Invalid XML: "+t),e};var Oe,Ae,Pe=/#.*$/,Ie=/([?&])_=[^&]*/,De=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Le=/^(?:GET|HEAD)$/,ze=/^\/\//,je=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Ne={},Me={},Fe="*/".concat("*");try{Ae=location.href}catch(t){(Ae=E.createElement("a")).href="",Ae=Ae.href}function He(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var o,i=0,r=e.toLowerCase().match(L)||[];if(m.isFunction(n))for(;o=r[i++];)"+"===o.charAt(0)?(o=o.slice(1)||"*",(t[o]=t[o]||[]).unshift(n)):(t[o]=t[o]||[]).push(n)}}function Re(t,e,n,o){var i={},r=t===Me;function s(a){var l;return i[a]=!0,m.each(t[a]||[],(function(t,a){var c=a(e,n,o);return"string"!=typeof c||r||i[c]?r?!(l=c):void 0:(e.dataTypes.unshift(c),s(c),!1)})),l}return s(e.dataTypes[0])||!i["*"]&&s("*")}function qe(t,e){var n,o,i=m.ajaxSettings.flatOptions||{};for(o in e)void 0!==e[o]&&((i[o]?t:n||(n={}))[o]=e[o]);return n&&m.extend(!0,t,n),t}Oe=je.exec(Ae.toLowerCase())||[],m.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ae,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Oe[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Fe,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":m.parseJSON,"text xml":m.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?qe(qe(t,m.ajaxSettings),e):qe(m.ajaxSettings,t)},ajaxPrefilter:He(Ne),ajaxTransport:He(Me),ajax:function(t,e){"object"===s(t)&&(e=t,t=void 0);var n,o,i,r,a,l,c,d,u=m.ajaxSetup({},e=e||{}),p=u.context||u,f=u.context&&(p.nodeType||p.jquery)?m(p):m.event,h=m.Deferred(),g=m.Callbacks("once memory"),v=u.statusCode||{},y={},b={},w=0,x="canceled",C={readyState:0,getResponseHeader:function(t){var e;if(2===w){if(!d)for(d={};e=De.exec(r);)d[e[1].toLowerCase()]=e[2];e=d[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===w?r:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return w||(t=b[n]=b[n]||t,y[t]=e),this},overrideMimeType:function(t){return w||(u.mimeType=t),this},statusCode:function(t){var e;if(t)if(w<2)for(e in t)v[e]=[v[e],t[e]];else C.always(t[C.status]);return this},abort:function(t){var e=t||x;return c&&c.abort(e),T(0,e),this}};if(h.promise(C).complete=g.add,C.success=C.done,C.error=C.fail,u.url=((t||u.url||Ae)+"").replace(Pe,"").replace(ze,Oe[1]+"//"),u.type=e.method||e.type||u.method||u.type,u.dataTypes=m.trim(u.dataType||"*").toLowerCase().match(L)||[""],null==u.crossDomain&&(n=je.exec(u.url.toLowerCase()),u.crossDomain=!(!n||n[1]===Oe[1]&&n[2]===Oe[2]&&(n[3]||("http:"===n[1]?"80":"443"))===(Oe[3]||("http:"===Oe[1]?"80":"443")))),u.data&&u.processData&&"string"!=typeof u.data&&(u.data=m.param(u.data,u.traditional)),Re(Ne,u,e,C),2===w)return C;for(o in(l=m.event&&u.global)&&0==m.active++&&m.event.trigger("ajaxStart"),u.type=u.type.toUpperCase(),u.hasContent=!Le.test(u.type),i=u.url,u.hasContent||(u.data&&(i=u.url+=(_e.test(i)?"&":"?")+u.data,delete u.data),!1===u.cache&&(u.url=Ie.test(i)?i.replace(Ie,"$1_="+$e++):i+(_e.test(i)?"&":"?")+"_="+$e++)),u.ifModified&&(m.lastModified[i]&&C.setRequestHeader("If-Modified-Since",m.lastModified[i]),m.etag[i]&&C.setRequestHeader("If-None-Match",m.etag[i])),(u.data&&u.hasContent&&!1!==u.contentType||e.contentType)&&C.setRequestHeader("Content-Type",u.contentType),C.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+("*"!==u.dataTypes[0]?", "+Fe+"; q=0.01":""):u.accepts["*"]),u.headers)C.setRequestHeader(o,u.headers[o]);if(u.beforeSend&&(!1===u.beforeSend.call(p,C,u)||2===w))return C.abort();for(o in x="abort",{success:1,error:1,complete:1})C[o](u[o]);if(c=Re(Me,u,e,C)){C.readyState=1,l&&f.trigger("ajaxSend",[C,u]),u.async&&u.timeout>0&&(a=setTimeout((function(){C.abort("timeout")}),u.timeout));try{w=1,c.send(y,T)}catch(t){if(!(w<2))throw t;T(-1,t)}}else T(-1,"No Transport");function T(t,e,n,o){var s,d,y,b,x,T=e;2!==w&&(w=2,a&&clearTimeout(a),c=void 0,r=o||"",C.readyState=t>0?4:0,s=t>=200&&t<300||304===t,n&&(b=function(t,e,n){for(var o,i,r,s,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(s in a)if(a[s]&&a[s].test(i)){l.unshift(s);break}if(l[0]in n)r=l[0];else{for(s in n){if(!l[0]||t.converters[s+" "+l[0]]){r=s;break}o||(o=s)}r=r||o}if(r)return r!==l[0]&&l.unshift(r),n[r]}(u,C,n)),b=function(t,e,n,o){var i,r,s,a,l,c={},d=t.dataTypes.slice();if(d[1])for(s in t.converters)c[s.toLowerCase()]=t.converters[s];for(r=d.shift();r;)if(t.responseFields[r]&&(n[t.responseFields[r]]=e),!l&&o&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=r,r=d.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(s=c[l+" "+r]||c["* "+r]))for(i in c)if((a=i.split(" "))[1]===r&&(s=c[l+" "+a[0]]||c["* "+a[0]])){!0===s?s=c[i]:!0!==c[i]&&(r=a[0],d.unshift(a[1]));break}if(!0!==s)if(s&&t.throws)e=s(e);else try{e=s(e)}catch(t){return{state:"parsererror",error:s?t:"No conversion from "+l+" to "+r}}}return{state:"success",data:e}}(u,b,C,s),s?(u.ifModified&&((x=C.getResponseHeader("Last-Modified"))&&(m.lastModified[i]=x),(x=C.getResponseHeader("etag"))&&(m.etag[i]=x)),204===t||"HEAD"===u.type?T="nocontent":304===t?T="notmodified":(T=b.state,d=b.data,s=!(y=b.error))):(y=T,!t&&T||(T="error",t<0&&(t=0))),C.status=t,C.statusText=(e||T)+"",s?h.resolveWith(p,[d,T,C]):h.rejectWith(p,[C,T,y]),C.statusCode(v),v=void 0,l&&f.trigger(s?"ajaxSuccess":"ajaxError",[C,u,s?d:y]),g.fireWith(p,[C,T]),l&&(f.trigger("ajaxComplete",[C,u]),--m.active||m.event.trigger("ajaxStop")))}return C},getJSON:function(t,e,n){return m.get(t,e,n,"json")},getScript:function(t,e){return m.get(t,void 0,e,"script")}}),m.each(["get","post"],(function(t,e){m[e]=function(t,n,o,i){return m.isFunction(n)&&(i=i||o,o=n,n=void 0),m.ajax({url:t,type:e,dataType:i,data:n,success:o})}})),m._evalUrl=function(t){return m.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},m.fn.extend({wrapAll:function(t){if(m.isFunction(t))return this.each((function(e){m(this).wrapAll(t.call(this,e))}));if(this[0]){var e=m(t,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstChild&&1===t.firstChild.nodeType;)t=t.firstChild;return t})).append(this)}return this},wrapInner:function(t){return m.isFunction(t)?this.each((function(e){m(this).wrapInner(t.call(this,e))})):this.each((function(){var e=m(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=m.isFunction(t);return this.each((function(n){m(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(){return this.parent().each((function(){m.nodeName(this,"body")||m(this).replaceWith(this.childNodes)})).end()}}),m.expr.filters.hidden=function(t){return t.offsetWidth<=0&&t.offsetHeight<=0||!h.reliableHiddenOffsets()&&"none"===(t.style&&t.style.display||m.css(t,"display"))},m.expr.filters.visible=function(t){return!m.expr.filters.hidden(t)};var We=/%20/g,Be=/\[\]$/,Ue=/\r?\n/g,Xe=/^(?:submit|button|image|reset|file)$/i,Ve=/^(?:input|select|textarea|keygen)/i;function Ye(t,e,n,o){var i;if(m.isArray(e))m.each(e,(function(e,i){n||Be.test(t)?o(t,i):Ye(t+"["+("object"===s(i)?e:"")+"]",i,n,o)}));else if(n||"object"!==m.type(e))o(t,e);else for(i in e)Ye(t+"["+i+"]",e[i],n,o)}m.param=function(t,e){var n,o=[],i=function(t,e){e=m.isFunction(e)?e():null==e?"":e,o[o.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=m.ajaxSettings&&m.ajaxSettings.traditional),m.isArray(t)||t.jquery&&!m.isPlainObject(t))m.each(t,(function(){i(this.name,this.value)}));else for(n in t)Ye(n,t[n],e,i);return o.join("&").replace(We,"+")},m.fn.extend({serialize:function(){return m.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=m.prop(this,"elements");return t?m.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!m(this).is(":disabled")&&Ve.test(this.nodeName)&&!Xe.test(t)&&(this.checked||!Q.test(t))})).map((function(t,e){var n=m(this).val();return null==n?null:m.isArray(n)?m.map(n,(function(t){return{name:e.name,value:t.replace(Ue,"\r\n")}})):{name:e.name,value:n.replace(Ue,"\r\n")}})).get()}}),m.ajaxSettings.xhr=void 0!==n.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&Je()||function(){try{return new n.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}()}:Je;var Ke=0,Qe={},Ge=m.ajaxSettings.xhr();function Je(){try{return new n.XMLHttpRequest}catch(t){}}n.attachEvent&&n.attachEvent("onunload",(function(){for(var t in Qe)Qe[t](void 0,!0)})),h.cors=!!Ge&&"withCredentials"in Ge,(Ge=h.ajax=!!Ge)&&m.ajaxTransport((function(t){var e;if(!t.crossDomain||h.cors)return{send:function(n,o){var i,r=t.xhr(),s=++Ke;if(r.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(i in t.xhrFields)r[i]=t.xhrFields[i];for(i in t.mimeType&&r.overrideMimeType&&r.overrideMimeType(t.mimeType),t.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest"),n)void 0!==n[i]&&r.setRequestHeader(i,n[i]+"");r.send(t.hasContent&&t.data||null),e=function(n,i){var a,l,c;if(e&&(i||4===r.readyState))if(delete Qe[s],e=void 0,r.onreadystatechange=m.noop,i)4!==r.readyState&&r.abort();else{c={},a=r.status,"string"==typeof r.responseText&&(c.text=r.responseText);try{l=r.statusText}catch(t){l=""}a||!t.isLocal||t.crossDomain?1223===a&&(a=204):a=c.text?200:404}c&&o(a,l,c,r.getAllResponseHeaders())},t.async?4===r.readyState?setTimeout(e):r.onreadystatechange=Qe[s]=e:e()},abort:function(){e&&e(void 0,!0)}}})),m.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return m.globalEval(t),t}}}),m.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET",t.global=!1)})),m.ajaxTransport("script",(function(t){if(t.crossDomain){var e,n=E.head||m("head")[0]||E.documentElement;return{send:function(o,i){(e=E.createElement("script")).async=!0,t.scriptCharset&&(e.charset=t.scriptCharset),e.src=t.url,e.onload=e.onreadystatechange=function(t,n){(n||!e.readyState||/loaded|complete/.test(e.readyState))&&(e.onload=e.onreadystatechange=null,e.parentNode&&e.parentNode.removeChild(e),e=null,n||i(200,"success"))},n.insertBefore(e,n.firstChild)},abort:function(){e&&e.onload(void 0,!0)}}}}));var Ze=[],tn=/(=)\?(?=&|$)|\?\?/;m.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Ze.pop()||m.expando+"_"+$e++;return this[t]=!0,t}}),m.ajaxPrefilter("json jsonp",(function(t,e,o){var i,r,s,a=!1!==t.jsonp&&(tn.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&tn.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=m.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(tn,"$1"+i):!1!==t.jsonp&&(t.url+=(_e.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return s||m.error(i+" was not called"),s[0]},t.dataTypes[0]="json",r=n[i],n[i]=function(){s=arguments},o.always((function(){n[i]=r,t[i]&&(t.jsonpCallback=e.jsonpCallback,Ze.push(i)),s&&m.isFunction(r)&&r(s[0]),s=r=void 0})),"script"})),m.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||E;var o=k.exec(t),i=!n&&[];return o?[e.createElement(o[1])]:(o=m.buildFragment([t],e,i),i&&i.length&&m(i).remove(),m.merge([],o.childNodes))};var en=m.fn.load;m.fn.load=function(t,e,n){if("string"!=typeof t&&en)return en.apply(this,arguments);var o,i,r,a=this,l=t.indexOf(" ");return l>=0&&(o=m.trim(t.slice(l,t.length)),t=t.slice(0,l)),m.isFunction(e)?(n=e,e=void 0):e&&"object"===s(e)&&(r="POST"),a.length>0&&m.ajax({url:t,type:r,dataType:"html",data:e}).done((function(t){i=arguments,a.html(o?m("<div>").append(m.parseHTML(t)).find(o):t)})).complete(n&&function(t,e){a.each(n,i||[t.responseText,e,t])}),this},m.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){m.fn[e]=function(t){return this.on(e,t)}})),m.expr.filters.animated=function(t){return m.grep(m.timers,(function(e){return t===e.elem})).length};var nn=n.document.documentElement;function on(t){return m.isWindow(t)?t:9===t.nodeType&&(t.defaultView||t.parentWindow)}m.offset={setOffset:function(t,e,n){var o,i,r,s,a,l,c=m.css(t,"position"),d=m(t),u={};"static"===c&&(t.style.position="relative"),a=d.offset(),r=m.css(t,"top"),l=m.css(t,"left"),("absolute"===c||"fixed"===c)&&m.inArray("auto",[r,l])>-1?(s=(o=d.position()).top,i=o.left):(s=parseFloat(r)||0,i=parseFloat(l)||0),m.isFunction(e)&&(e=e.call(t,n,a)),null!=e.top&&(u.top=e.top-a.top+s),null!=e.left&&(u.left=e.left-a.left+i),"using"in e?e.using.call(t,u):d.css(u)}},m.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){m.offset.setOffset(this,t,e)}));var e,n,o={top:0,left:0},i=this[0],r=i&&i.ownerDocument;return r?(e=r.documentElement,m.contains(e,i)?(s(i.getBoundingClientRect)!==F&&(o=i.getBoundingClientRect()),n=on(r),{top:o.top+(n.pageYOffset||e.scrollTop)-(e.clientTop||0),left:o.left+(n.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}):o):void 0},position:function(){if(this[0]){var t,e,n={top:0,left:0},o=this[0];return"fixed"===m.css(o,"position")?e=o.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),m.nodeName(t[0],"html")||(n=t.offset()),n.top+=m.css(t[0],"borderTopWidth",!0),n.left+=m.css(t[0],"borderLeftWidth",!0)),{top:e.top-n.top-m.css(o,"marginTop",!0),left:e.left-n.left-m.css(o,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent||nn;t&&!m.nodeName(t,"html")&&"static"===m.css(t,"position");)t=t.offsetParent;return t||nn}))}}),m.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var n=/Y/.test(e);m.fn[t]=function(o){return K(this,(function(t,o,i){var r=on(t);if(void 0===i)return r?e in r?r[e]:r.document.documentElement[o]:t[o];r?r.scrollTo(n?m(r).scrollLeft():i,n?i:m(r).scrollTop()):t[o]=i}),t,o,arguments.length,null)}})),m.each(["top","left"],(function(t,e){m.cssHooks[e]=Ft(h.pixelPosition,(function(t,n){if(n)return n=zt(t,e),Nt.test(n)?m(t).position()[e]+"px":n}))})),m.each({Height:"height",Width:"width"},(function(t,e){m.each({padding:"inner"+t,content:e,"":"outer"+t},(function(n,o){m.fn[o]=function(o,i){var r=arguments.length&&(n||"boolean"!=typeof o),s=n||(!0===o||!0===i?"margin":"border");return K(this,(function(e,n,o){var i;return m.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+t],i["scroll"+t],e.body["offset"+t],i["offset"+t],i["client"+t])):void 0===o?m.css(e,n,s):m.style(e,n,o,s)}),e,r?o:void 0,r,null)}}))})),m.fn.size=function(){return this.length},m.fn.andSelf=m.fn.addBack,void 0===(o=function(){return m}.apply(e,[]))||(t.exports=o);var rn=n.jQuery,sn=n.$;return m.noConflict=function(t){return n.$===m&&(n.$=sn),t&&n.jQuery===m&&(n.jQuery=rn),m},s(i)===F&&(n.jQuery=n.$=m),m},"object"===s(t)&&"object"===s(t.exports)?t.exports=i.document?r(i,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return r(t)}:r(i)},1368:function(){"use strict";var t=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},e={lines:12,length:7,width:5,radius:10,scale:1,corners:1,color:"#000",fadeColor:"transparent",animation:"spinner-line-fade-default",rotate:0,direction:1,speed:1,zIndex:2e9,className:"spinner",top:"50%",left:"50%",shadow:"0 0 1px transparent",position:"absolute"},n=function(){function n(n){void 0===n&&(n={}),this.opts=t({},e,n)}return n.prototype.spin=function(t){return this.stop(),this.el=document.createElement("div"),this.el.className=this.opts.className,this.el.setAttribute("role","progressbar"),o(this.el,{position:this.opts.position,width:0,zIndex:this.opts.zIndex,left:this.opts.left,top:this.opts.top,transform:"scale("+this.opts.scale+")"}),t&&t.insertBefore(this.el,t.firstChild||null),function(t,e){var n=Math.round(e.corners*e.width*500)/1e3+"px",s="none";!0===e.shadow?s="0 2px 4px #000":"string"==typeof e.shadow&&(s=e.shadow);for(var a=function(t){for(var e=/^\s*([a-zA-Z]+\s+)?(-?\d+(\.\d+)?)([a-zA-Z]*)\s+(-?\d+(\.\d+)?)([a-zA-Z]*)(.*)$/,n=[],o=0,i=t.split(",");o<i.length;o++){var r=i[o].match(e);if(null!==r){var s=+r[2],a=+r[5],l=r[4],c=r[7];0!==s||l||(l=c),0!==a||c||(c=l),l===c&&n.push({prefix:r[1]||"",x:s,y:a,xUnits:l,yUnits:c,end:r[8]})}}return n}(s),l=0;l<e.lines;l++){var c=~~(360/e.lines*l+e.rotate),d=o(document.createElement("div"),{position:"absolute",top:-e.width/2+"px",width:e.length+e.width+"px",height:e.width+"px",background:i(e.fadeColor,l),borderRadius:n,transformOrigin:"left",transform:"rotate("+c+"deg) translateX("+e.radius+"px)"}),u=l*e.direction/e.lines/e.speed;u-=1/e.speed;var p=o(document.createElement("div"),{width:"100%",height:"100%",background:i(e.color,l),borderRadius:n,boxShadow:r(a,c),animation:1/e.speed+"s linear "+u+"s infinite "+e.animation});d.appendChild(p),t.appendChild(d)}}(this.el,this.opts),this},n.prototype.stop=function(){return this.el&&("undefined"!=typeof requestAnimationFrame?cancelAnimationFrame(this.animateId):clearTimeout(this.animateId),this.el.parentNode&&this.el.parentNode.removeChild(this.el),this.el=void 0),this},n}();function o(t,e){for(var n in e)t.style[n]=e[n];return t}function i(t,e){return"string"==typeof t?t:t[e%t.length]}function r(t,e){for(var n=[],o=0,i=t;o<i.length;o++){var r=i[o],a=s(r.x,r.y,e);n.push(r.prefix+a[0]+r.xUnits+" "+a[1]+r.yUnits+r.end)}return n.join(", ")}function s(t,e,n){var o=n*Math.PI/180,i=Math.sin(o),r=Math.cos(o);return[Math.round(1e3*(t*r+e*i))/1e3,Math.round(1e3*(-t*i+e*r))/1e3]}!function(t){t.spinner={};var e='<div id="spin" style="position: {{position}}; width: 100%; height: 100%; left: 0; top: 0; background-color: rgba(0,0,0,{{opacity}}); display: none; z-index: 2000000000"><div id="spin_bg_layout" style="position: {{position}}; left: 50%; top: 50%"><div id="spin_bg" style="min-width: {{size}}px; max-width: 250px; min-height: {{size}}px; background-color: rgba(100,100,100,{{bg-opacity}}); top: -{{sizeHalf}}px; left: -50%; border-radius: 20px; position: relative"><div id="text" style="padding: {{textPadding}}px 20px 10px 20px; text-align: center; color: #ddd; text-shadow: 1px 1px 0 #000;">{{text}}</div></div></div><div id="spin_container" style="top: 50%; left: 50%; position: {{position}}"></div></div>',o={lines:11,length:12,width:10,radius:22,corners:1,rotate:0,direction:1,color:"#fff",speed:1,trail:60,shadow:!0,hwaccel:!1,zIndex:2e9,top:"auto",left:"auto"};t.spinner.start=function(t){switch(t.target||(t.target=$(document.body)),(t=$.extend({},t,o)).size){case"Small":t.length=3,t.width=3,t.radius=6,t.boxSize=40,t.shadow=!1;break;case"Medium":t.length=6,t.width=6,t.radius=14,t.boxSize=90;break;default:t.length=12,t.width=10,t.boxSize=150}t.background||(t.color="#000");var i=new n(t),r=e.replace(/{{bg-opacity}}/,!0===t.background?.8:0).replace(/{{opacity}}/,!0===t.overlay?.2:0).replace(/{{text}}/,t.text||"").replace(/{{position}}/g,t.target[0]===document.body?"fixed":"absolute").replace(/{{size}}/g,t.boxSize).replace(/{{sizeHalf}}/g,t.boxSize/2).replace(/{{textPadding}}/g,t.boxSize-10);!1===t.background&&(t.color="#808080");var s=$(r).appendTo(t.target);return i.spin(s.children("#spin_container")[0]),s.toggle(!0),i.spinDiv=s,i},t.spinner.stop=function(t){t.stop(),t.spinDiv.toggle(!1)}}(window.ClientControls=window.ClientControls||{})},5604:function(){!function(){function t(t){if("iframe"===t.tagName.toLowerCase()){t.parentElement.style.display="block";var e=t.getAttribute("data-wc-placeholder-id");e&&$("."+e).css("position","absolute");var n=t.getAttribute("data-wc-consent-id");n&&$("."+n).css("display","none")}}window.addEventListener("mc-consent-run-content",(function(e){t(e.detail.elem)})),window.addEventListener("mc-can-save-consent",(function(t){fetch("/redakce/api/cookiesapi/savecookie")})),window.addEventListener("mc-consent",(function(t){if(t.detail.includes("mc-socials"))for(var e=document.getElementsByClassName("wc-yt-image"),n=0;n<e.length;n++){var o=e[n].getAttribute("data-wc-consent-id"),i=e[n].getAttribute("data-wc-placeholder-id");$("."+o).css("display","none"),$("."+i).css("display","block")}})),ytPlays=document.getElementsByClassName("wc-yt-play");for(var e=0;e<ytPlays.length;e++)ytPlays[e].onclick=function(e){var n=document.getElementById(this.getAttribute("data-wc-yt-id")),o=n.getAttribute("data-mc-src")+"&autoplay=1";return n.src=o,t(n),e.preventDefault(),!1}}()},9899:function(t){var e;t.exports=function(t,n){return function(){for(var o=arguments.length,i=new Array(o),r=0;r<o;r++)i[r]=arguments[r];var s=function(){clearTimeout(e),t.apply(void 0,i)};clearTimeout(e),e=setTimeout(s,n)}}},9403:function(){Page.elementsReady((function(){for(var t=document.getElementsByClassName("a-obf"),e=t.length-1;e>=0;e--){var n=t[e];if(null!=window.atob){var o=atob(n.firstChild.data.match(/\?a=(.*)"/)[1]),i=document.createElement("a"),r="";i.setAttribute("href","mailto:"+o),n.className.indexOf("nowrap")>-1||(r="force-wrap ");var s=document.createTextNode(o.replace(/;.*/,""));i.appendChild(s),n.className.indexOf("e")>-1&&(r+="link-icon link-icon--after",i.innerHTML+='<span class="icon icon-envelope"></span>'),""!=r&&i.setAttribute("class",r),n.parentNode.replaceChild(i,n)}else{var a=document.createElement("img");a.setAttribute("src",n.firstChild.data.match(/src="(.*)"/)[1]),n.parentNode.replaceChild(a,n)}}}),!1)},2623:function(t,e,n){"use strict";var o=n(5303),i=n(4741);!function(){var t=[];function e(){for(var e=0;e<t.length;e++)t[e].sendMessage({vh:document.documentElement.clientHeight})}function n(n){(0,o.iframeResize)({onInit:function(n){t.push(n.iFrameResizer),e()}},n)}Page.elementsReady((function(){for(var t=document.querySelectorAll(".iframe-container--autosize > iframe"),e=0;e<t.length;e++)t[e].parentElement.classList.contains("iframe-container--autosize-nolazy")?setTimeout((function(){n(t[e])})):i((function(t){n(t)}))(t[e])})),window.onresize=function(){e()}}()},8282:function(){var t;t=new IntersectionObserver((function(t){t.forEach((function(t){var e=t.target;t.isIntersecting&&!e.classList.contains("is-visible")&&(function(t){var e=5e3,n=parseFloat(t.textContent,10),o=parseFloat(t.dataset.counter,10),i=document.documentElement.getAttribute("lang"),r=Number.isInteger(o)?0:t.dataset.counter.length-t.dataset.counter.indexOf(".")-1;if(n!==o){var s=n,a=Date.now();requestAnimationFrame((function l(){var c=Date.now()-a;c>e&&(c=e);var d,u,p,f=(d=c,u=n,p=o,(d/=e/2)<1?p/2*d*d*d*d+u:-p/2*((d-=2)*d*d*d-2)+u);s=n+f,t.textContent=Number(s.toFixed(r)).toLocaleString(i,{minimumFractionDigits:r}),c<e&&requestAnimationFrame(l)}))}}(e),e.classList.add("is-visible"))}))}),{threshold:.25}),Page.elementsReady((function(e){e.detail.$elements.descendantsOrSelf(".number-animation").each((function(e,n){t.observe(n)}))}))},4741:function(t){getArgs=function(t){return Array.prototype.slice.call(t)},lazyInit=function(t){return function(){t.apply(this,getArgs(arguments))}},"IntersectionObserver"in window&&(onIntersect=function(t){return t.forEach((function(t){if(t.isIntersecting)return $(t.target).data("lazyInit")(),observer.unobserve(t.target)}))},observer=new IntersectionObserver(onIntersect,{threshold:0}),lazyInit=function(t){return function(e){var n,o;return n=getArgs(arguments),observer.observe(e),$(e).data("lazyInit",(o=e,function(){return t.apply(o,n)}))}}),t.exports=lazyInit},5453:function(t){t.exports={init:function(){function t(t){jQuery.fancybox.open({src:t,type:"inline",opts:{keyboard:!0,buttons:[],hideScrollbar:!0,afterShow:function(){$(".modal__close").click((function(t){return $.fancybox.close(),t.preventDefault(),!1}))},beforeShow:function(){$("html").addClass("fancybox-open")},afterClose:function(){$("html").removeClass("fancybox-open"),history.replaceState(null,null,window.location.pathname+window.location.search),window.dispatchEvent(new Event("popupclose"))}}})}function e(){""!=location.hash&&($(location.hash+".modal").length&&t(location.hash))}e();for(var n=$("a[href^='#popup-window-']"),o=function(){var e=$(n[i]);e.on("click",(function(){var n=e.attr("href");t(n),history.replaceState(null,null,window.location.pathname+window.location.search+n),window.dispatchEvent(new Event("popupopen"))}))},i=0;i<n.length;i++)o();$(window).on("hashchange",e)}}},979:function(t,e,n){function o(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var o=0,r=function(){};return{s:r,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){l=!0,s=t},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw s}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}var r=n(5453),s=n(9899);function a(t){var e=t instanceof HTMLElement;if(!e||!t)return null;var n=e&&window.getComputedStyle(t).overflowY,o=!(n.includes("hidden")||n.includes("visible"));return t?o&&t.scrollHeight>t.clientHeight?t:a(t.parentNode)||void 0:null}$.fn.descendantsOrSelf=function(t){return $(this).find(t).addBack(t)},$.fn.outerHTML=function(t){return t?this.before(t).remove():$("<p>").append(this.eq(0).clone()).html()},$.fn.isScrolledIntoView=function(){var t=$(this),e=$(window),n=e.scrollTop(),o=n+e.height(),i=t.offset().top;t.height();return n<i&&o>i},function(){function t(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n}t.prototype=window.Event.prototype,window.CustomEvent=t}(),function(t){function e(t,e){var n,o=!0;t?n=$($.map(t,(function(t){return document.getElementById("ajax-form-container"+t)}))):e&&(n=(o=0!==(n=e.find(".ajax-form-container")).length)?n.first():e.closest(".ajax-form-container"));for(var i=$.map(n,(function(t){return t.id})),r=0;r<i.length;r++)i[r]="#"+i[r];return{toReplace:n=i.join(),containerIsChild:o}}function n(t,e,n,o){i(void 0===t.attr("ajax-no-scroll"),void 0===t.attr("ajax-no-history"),e,n,o=o||t.attr("href")||t.val(),t.attr("data-ajax-remove-query")?$.parseJSON(t.attr("data-ajax-remove-query").replace(/'/g,'"')):void 0)}function i(t,n,i,r,s,a){a=a||(i.attr("data-ajax-remove-query")?$.parseJSON(i.attr("data-ajax-remove-query")):void 0);var c=l(window.location.href);if(a){var u,p=o(a);try{for(p.s();!(u=p.n()).done;){var f=u.value;c.query[f]&&delete c.query[f]}}catch(t){p.e(t)}finally{p.f()}}var h=l(s,a?c.query:void 0);h.query.ufprt=i.find('input[name="ufprt"]').val();var g=e(i.attr("data-ajax-parts")?$.parseJSON(i.attr("data-ajax-parts")):void 0,i);d(void 0,h.address,g.toReplace,g.containerIsChild,h.query,t,(function(t,e){if(h.hash&&$("html, body").animate({scrollTop:$("#"+h.hash).offset().top},500),n){if(window.history.lastUrl=window.history.lastUrl||{},window.history.ajaxPosted){if(window.history.state&&window.history.state.current&&window.history.state.current.ajaxParts.toReplace!==g.toReplace&&0==$(g.toReplace).parents(window.history.state.current.ajaxParts.toReplace).length){var o;(o=l(window.history.lastUrl[g.toReplace]||r)).query.ufprt=h.query.ufprt,history.replaceState({current:{url:o.address,query:o.query,ajaxParts:g},switched:{url:history.state.current.url,query:history.state.current.query,ajaxParts:history.state.current.ajaxParts}},document.title,o.fullUrl)}}else(o=l(window.location.href)).query.ufprt=h.query.ufprt,history.replaceState({current:{url:o.address,query:o.query,ajaxParts:g}},document.title,window.location.href),window.history.ajaxPosted=!0;h.query.ufprt=i.find('input[name="ufprt"]').val(),history.pushState({current:{url:h.address,query:h.query,ajaxParts:g}},document.title,h.fullUrl),window.history.lastUrl[g.toReplace]=h.fullUrl}}))}function l(t,e){var n={query:{}},o=t.split("#");if(2==o.length&&(n.hash=o[1]),2==(o=t.split("?")).length)for(var i=o[1].split("&"),r=0;r<i.length;r++){var s=i[r].split("=");2===s.length&&(n.query[s[0]]=s[1])}if(e)for(var a in e)e.hasOwnProperty(a)&&!n.query.hasOwnProperty(a)&&(n.query[a]=e[a]);return o[0]?n.address=o[0]:n.address=window.location.pathname,n.fullUrl=n.address+(Object.keys(n.query).length?"?"+function(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e.join("&")}(n.query):""),n}function c(t,e,n,o,i){window.lastAjaxId||(window.lastAjaxId=1);var r=++window.lastAjaxId;$.ajax({url:e.replace(/\/(\?|$)/,"$1"),type:t,data:n,processData:!1,contentType:!1,success:function(t,i,s){window.lastAjaxId==r&&(null!=s.getResponseHeader("webcentrum_redirect")?window.location=s.getResponseHeader("webcentrum_redirect"):o(t,e,n))},error:function(t){if(window.lastAjaxId==r)return i(t),!1}})}function d(e,n,o,i,r,s,l){var d,u=e?new FormData(e[0]):new FormData;e&&e.data("button")&&(e.data("button").data("ajax-spinner")&&(d=t.getFunctionByName(e.data("button").data("ajax-spinner"))()),u.append(e.data("button").attr("name"),"1")),d||(d=ClientControls.spinner.start({background:!0,overlay:!1,size:"Medium"}));var p=$(o),f=$(a(p[0])||"html, body");s&&(p.isScrolledIntoView()||f.animate({scrollTop:p.offset().top-f.offset().top},500)),e&&e.data("data")&&$.each(e.data("data"),(function(t,e){u.append(t,e)})),r&&$.each(r,(function(t,e){u.append(t,e)})),c("POST",n,u,(function(n){var r=e?e.validate():void 0,a=null!=r,c=a?r.settings.ignore:void 0;a&&(r.settings.ignore="*");var u,h=$(n).not("script[data-gtm], scripts");if(i?(u=$($.map(p,(function(t){if(newDiv=h.descendantsOrSelf("#"+t.id),newDiv.length>0)return newDiv.replaceAll(t)[0]}))),a&&(r.settings.ignore=c)):(u=h.replaceAll(p),a&&$.validator.unobtrusive.parse(u)),$(n).filter("scripts").children().each((function(t,e){if(0==document.querySelectorAll('script[src="'+e.src+'"]').length){var n=document.createElement("script");n.type="text/javascript",n.src=e.src,document.head.appendChild(n)}})),null!=d&&ClientControls.spinner.stop(d),t.prepareElements(u,o,!0),!s){var g=u.find("*[ajax-scroll-here]");g.length>0&&(!g.isScrolledIntoView()||"force"===g.attr("ajax-scroll-here"))&&f.animate({scrollTop:g.offset().top-f.offset().top},500)}l&&l(p,u);var m=$(n).filter("script[data-gtm]");m.length>0&&u.last().after(m),window.App&&window.App.doComponents&&setTimeout((function(){u.trigger("ajax-init")}),500)}),(function(t){null!=d&&ClientControls.spinner.stop(d),0===t.status?ClientControls.modal.show({title:"Error",body:"Nelze se připojit k serveru - zkontrolujte prosím své internetové připojení / Unable to connect to the server - please check your Internet connection",modalType:"Content",size:"Large"}):ClientControls.modal.show({title:"Error",body:t.responseText,modalType:"Iframe",size:"Large"})}))}$(document).ready((function(){t.prepareElements(),document.dispatchEvent(new CustomEvent("DocumentReady")),window.addEventListener("popstate",(function(t){if((history.ajaxPosted||t.state&&t.state.current)&&(d(void 0,t.state.current.url,t.state.current.ajaxParts.toReplace,t.state.current.ajaxParts.containerIsChild,t.state.current.query),t.state.switched)){var e=t.state.switched;t.state.switched=t.state.current,t.state.current=e,history.replaceState(t.state,"")}}))})),t.run=function(){r.init()},t.prepareElements=function(t,o,i){(function(t){t.descendantsOrSelf(".is-js-hidden").hide(),t.descendantsOrSelf(".no-js-hidden").removeClass("no-js-hidden")})(t=t||$(document)),void 0!==window.FormData&&void 0!==window.history&&function(t){t.descendantsOrSelf("form.ajax-form").each((function(){var t=$(this);$("input").keypress((function(e){if(13==e.which){var n=t.find('input[type="submit"][data-default-submit], button[type="submit"][data-default-submit]')[0]||t.find('input[type="submit"], button[type="submit"]')[0];t.data("button",$(n))}})),t.find('input[type="submit"], button[type="submit"]').mousedown((function(){t.data("button",$(this))}));var o=t.find('a[data-post-ajax][data-post-ajax!="no"]'),i=t.find('select[data-post-ajax][data-post-ajax!="no"]'),r=t.find('input[type="checkbox"][data-post-ajax][data-post-ajax!="no"]'),a=t.find('input[type="text"][data-post-ajax][data-post-ajax!="no"]'),l=t.find(".angular-mvc-component");t.attr("id")&&(o=o.add($.find('a[data-post-ajax="'+t.attr("id")+'"]')),i=i.add($.find('select[data-post-ajax="'+t.attr("id")+'"]')),r=r.add($.find('input[type="checkbox"][data-post-ajax="'+t.attr("id")+'"]'))),o.off("click"),i.off("change"),r.off("click"),a.off("change");var c=window.location.href;function u(e){n(e,t,c,"?"+e.attr("name")+"="+e.val())}o.click((function(){return n($(this),t,c),!1})),i.change((function(){return n($(this),t,c),!1})),r.click((function(){return n($(this),t,c),!1})),a.each((function(t,e){var n=$(e),o=n.val();n.on("change keyup paste click",(function(){return o!=n.val()&&(o=n.val(),s(u,600)(n)),!1}))})),l.on("angular-mvc-change",(function(e){n($(this),t,c,e.originalEvent.detail)})),t.submit((function(n){var o=t.validate(),i=null!=o,r=!1;if(t.data("button")){if(0==t.data("button").data("ajax-submit"))return;t.data("button").hasClass("cancel")&&(r=!0)}if(!i||r||o.form()){var s=e(t.attr("data-ajax-parts")?$.parseJSON(t.attr("data-ajax-parts")):void 0,t);d(t,t.attr("action"),s.toReplace,s.containerIsChild,void 0,!0),n.preventDefault()}else n.preventDefault()}))}))}(t),function(t){t.descendantsOrSelf("*[data-replace-ajax]").each((function(){var t,e;t=$(this).data("replace-ajax"),e=$(this),spinner=ClientControls.spinner.start({target:e,background:!1,overlay:!1,size:"Small"}),c("GET","/Redakce/Api/"+t,void 0,(function(t){e.parent().text(t)}),(function(t){e.parent().text("Chyba/Error")}))}))}(t),function(t){var e;t.descendantsOrSelf("*[data-focus-order]").each((function(t,n){(null==e||parseInt($(n).attr("data-focus-order"))<parseInt(e.attr("data-focus-order")))&&(e=$(n))})),null!=e&&e.focus()}(t);var r=new CustomEvent("ElementsReady",{detail:{$elements:t,isAjax:i}});document.dispatchEvent(r),o&&t.descendantsOrSelf(o).each((function(t,e){r=new CustomEvent("ElementsReady."+e.id,{detail:{$elements:$(e)}}),document.dispatchEvent(r)}))},t.submitForm=function(t,e,n,o){e&&t.data("button",e),n&&t.data("data",n),o&&t.attr("action",o),t.submit()},t.getFunctionByName=function(t,e){if("string"!=typeof t)return t;null==e&&(e=window);Array.prototype.slice.call(arguments,2);for(var n=t.split("."),o=n.pop(),i=0;i<n.length;i++)e=e[n[i]];return e[o]},t.mvcAjaxCall=function(t,e,n,o){i(o,n,e,window.location.href,t)},t.debounce=s,t.waitForMunimap=function(t){if(window.munimap)t();else{!function e(){setTimeout((function(){window.munimap?t():e()}),100)}()}},$(".box-accordion__title__link").bind("click",(function(){setTimeout((function(){var t=new CustomEvent("AccordionOpen");document.dispatchEvent(t)}),0)})),$(".js-tab-links").bind("click",(function(){setTimeout((function(){var t=new CustomEvent("TabOpen");document.dispatchEvent(t)}),0)}))}(window.Page=window.Page||{})},4701:function(t,e,n){var o=n(5149),i=n(7672);void 0===i.$&&(i.$=o),void 0===i.jQuery&&(i.jQuery=o),t.exports=o},214:function(t,e,n){var o=n(3779),i=n(7672);void 0===i.a&&(i.a=o),t.exports=o},7672:function(t,e,n){"use strict";t.exports=function(){if("object"==typeof globalThis)return globalThis;var t;try{t=this||new Function("return this")()}catch(t){if("object"==typeof window)return window;if("object"==typeof self)return self;if(void 0!==n.g)return n.g}return t}()},5303:function(t,e,n){t.exports=n(9457)},9402:function(t){!function(e){if("undefined"!=typeof window){var n=!0,o="",i=0,r="",s=null,a="",l=!1,c={resize:1,click:1},d=128,u=!0,p=1,f="bodyOffset",h=f,g=!0,m="",v={},y=32,b=null,w=!1,x=!1,C="[iFrameSizer]",T=C.length,k="",S={max:1,min:1,bodyScroll:1,documentElementScroll:1},$="child",_=window.parent,E="*",O=0,A=!1,P=null,I=16,D=1,L="scroll",z=L,j=window,N=function(){rt("onMessage function not defined")},M=function(){},F=function(){},H={height:function(){return rt("Custom height calculation function not defined"),document.documentElement.offsetHeight},width:function(){return rt("Custom width calculation function not defined"),document.body.scrollWidth}},R={},q=!1;try{var W=Object.create({},{passive:{get:function(){q=!0}}});window.addEventListener("test",tt,W),window.removeEventListener("test",tt,W)}catch(t){}var B,U,X,V,Y,K,Q,G={bodyOffset:function(){return document.body.offsetHeight+mt("marginTop")+mt("marginBottom")},offset:function(){return G.bodyOffset()},bodyScroll:function(){return document.body.scrollHeight},custom:function(){return H.height()},documentElementOffset:function(){return document.documentElement.offsetHeight},documentElementScroll:function(){return document.documentElement.scrollHeight},max:function(){return Math.max.apply(null,yt(G))},min:function(){return Math.min.apply(null,yt(G))},grow:function(){return G.max()},lowestElement:function(){return Math.max(G.bodyOffset()||G.documentElementOffset(),vt("bottom",wt()))},taggedElement:function(){return bt("bottom","data-iframe-height")}},J={bodyScroll:function(){return document.body.scrollWidth},bodyOffset:function(){return document.body.offsetWidth},custom:function(){return H.width()},documentElementScroll:function(){return document.documentElement.scrollWidth},documentElementOffset:function(){return document.documentElement.offsetWidth},scroll:function(){return Math.max(J.bodyScroll(),J.documentElementScroll())},max:function(){return Math.max.apply(null,yt(J))},min:function(){return Math.min.apply(null,yt(J))},rightMostElement:function(){return vt("right",wt())},taggedElement:function(){return bt("right","data-iframe-width")}},Z=(B=xt,Y=null,K=0,Q=function(){K=Date.now(),Y=null,V=B.apply(U,X),Y||(U=X=null)},function(){var t=Date.now();K||(K=t);var e=I-(t-K);return U=this,X=arguments,e<=0||e>I?(Y&&(clearTimeout(Y),Y=null),K=t,V=B.apply(U,X),Y||(U=X=null)):Y||(Y=setTimeout(Q,e)),V});et(window,"message",(function(e){var n={init:function(){m=e.data,_=e.source,st(),u=!1,setTimeout((function(){g=!1}),d)},reset:function(){g?it("Page reset ignored by init"):(it("Page size reset by host page"),kt("resetPage"))},resize:function(){Ct("resizeParent","Parent window requested size check")},moveToAnchor:function(){v.findTarget(i())},inPageLink:function(){this.moveToAnchor()},pageInfo:function(){var t=i();it("PageInfoFromParent called from parent: "+t),F(JSON.parse(t)),it(" --")},message:function(){var t=i();it("onMessage called from parent: "+t),N(JSON.parse(t)),it(" --")}};function o(){return e.data.split("]")[1].split(":")[0]}function i(){return e.data.substr(e.data.indexOf(":")+1)}function r(){return e.data.split(":")[2]in{true:1,false:1}}function s(){var i=o();i in n?n[i]():!t.exports&&"iFrameResize"in window||"jQuery"in window&&"iFrameResize"in window.jQuery.prototype||r()||rt("Unexpected message ("+e.data+")")}C===(""+e.data).substr(0,T)&&(!1===u?s():r()?n.init():it('Ignored message of type "'+o()+'". Received before initialization.'))})),et(window,"readystatechange",_t),_t()}function tt(){}function et(t,e,n,o){t.addEventListener(e,n,!!q&&(o||{}))}function nt(t){return t.charAt(0).toUpperCase()+t.slice(1)}function ot(t){return C+"["+k+"] "+t}function it(t){w&&"object"==typeof window.console&&console.log(ot(t))}function rt(t){"object"==typeof window.console&&console.warn(ot(t))}function st(){var t;!function(){function t(t){return"true"===t}var s=m.substr(T).split(":");k=s[0],i=e!==s[1]?Number(s[1]):i,l=e!==s[2]?t(s[2]):l,w=e!==s[3]?t(s[3]):w,y=e!==s[4]?Number(s[4]):y,n=e!==s[6]?t(s[6]):n,r=s[7],h=e!==s[8]?s[8]:h,o=s[9],a=s[10],O=e!==s[11]?Number(s[11]):O,v.enable=e!==s[12]&&t(s[12]),$=e!==s[13]?s[13]:$,z=e!==s[14]?s[14]:z,x=e!==s[15]?Boolean(s[15]):x}(),it("Initialising iFrame ("+window.location.href+")"),function(){function t(){var t=window.iFrameResizer;it("Reading data from page: "+JSON.stringify(t)),Object.keys(t).forEach(at,t),N="onMessage"in t?t.onMessage:N,M="onReady"in t?t.onReady:M,E="targetOrigin"in t?t.targetOrigin:E,h="heightCalculationMethod"in t?t.heightCalculationMethod:h,z="widthCalculationMethod"in t?t.widthCalculationMethod:z}function e(t,e){return"function"==typeof t&&(it("Setup custom "+e+"CalcMethod"),H[e]=t,t="custom"),t}"iFrameResizer"in window&&Object===window.iFrameResizer.constructor&&(t(),h=e(h,"height"),z=e(z,"width"));it("TargetOrigin for parent set to: "+E)}(),function(){e===r&&(r=i+"px");lt("margin",function(t,e){-1!==e.indexOf("-")&&(rt("Negative CSS value ignored for "+t),e="");return e}("margin",r))}(),lt("background",o),lt("padding",a),(t=document.createElement("div")).style.clear="both",t.style.display="block",t.style.height="0",document.body.appendChild(t),pt(),ft(),document.documentElement.style.height="",document.body.style.height="",it('HTML & body height set to "auto"'),it("Enable public methods"),j.parentIFrame={autoResize:function(t){return!0===t&&!1===n?(n=!0,ht()):!1===t&&!0===n&&(n=!1,dt("remove"),null!==s&&s.disconnect(),clearInterval(b)),$t(0,0,"autoResize",JSON.stringify(n)),n},close:function(){$t(0,0,"close")},getId:function(){return k},getPageInfo:function(t){"function"==typeof t?(F=t,$t(0,0,"pageInfo")):(F=function(){},$t(0,0,"pageInfoStop"))},moveToAnchor:function(t){v.findTarget(t)},reset:function(){St("parentIFrame.reset")},scrollTo:function(t,e){$t(e,t,"scrollTo")},scrollToOffset:function(t,e){$t(e,t,"scrollToOffset")},sendMessage:function(t,e){$t(0,0,"message",JSON.stringify(t),e)},setHeightCalculationMethod:function(t){h=t,pt()},setWidthCalculationMethod:function(t){z=t,ft()},setTargetOrigin:function(t){it("Set targetOrigin: "+t),E=t},size:function(t,e){Ct("size","parentIFrame.size("+(t||"")+(e?","+e:"")+")",t,e)}},function(){if(!0!==x)return;function t(t){$t(0,0,t.type,t.screenY+":"+t.screenX)}function e(e,n){it("Add event listener: "+n),et(window.document,e,t)}e("mouseenter","Mouse Enter"),e("mouseleave","Mouse Leave")}(),ht(),v=function(){function t(){return{x:window.pageXOffset!==e?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==e?window.pageYOffset:document.documentElement.scrollTop}}function n(e){var n=e.getBoundingClientRect(),o=t();return{x:parseInt(n.left,10)+parseInt(o.x,10),y:parseInt(n.top,10)+parseInt(o.y,10)}}function o(t){function o(t){var e=n(t);it("Moving to in page link (#"+i+") at x: "+e.x+" y: "+e.y),$t(e.y,e.x,"scrollToOffset")}var i=t.split("#")[1]||t,r=decodeURIComponent(i),s=document.getElementById(r)||document.getElementsByName(r)[0];e!==s?o(s):(it("In page link (#"+i+") not found in iFrame, so sending to parent"),$t(0,0,"inPageLink","#"+i))}function i(){var t=window.location.hash,e=window.location.href;""!==t&&"#"!==t&&o(e)}function r(){function t(t){function e(t){t.preventDefault(),o(this.getAttribute("href"))}"#"!==t.getAttribute("href")&&et(t,"click",e)}Array.prototype.forEach.call(document.querySelectorAll('a[href^="#"]'),t)}function s(){et(window,"hashchange",i)}function a(){setTimeout(i,d)}function l(){Array.prototype.forEach&&document.querySelectorAll?(it("Setting up location.hash handlers"),r(),s(),a()):rt("In page linking not fully supported in this browser! (See README.md for IE8 workaround)")}v.enable?l():it("In page linking not enabled");return{findTarget:o}}(),Ct("init","Init message from host page"),M()}function at(t){var e=t.split("Callback");if(2===e.length){var n="on"+e[0].charAt(0).toUpperCase()+e[0].slice(1);this[n]=this[t],delete this[t],rt("Deprecated: '"+t+"' has been renamed '"+n+"'. The old method will be removed in the next major version.")}}function lt(t,n){e!==n&&""!==n&&"null"!==n&&(document.body.style[t]=n,it("Body "+t+' set to "'+n+'"'))}function ct(t){var e={add:function(e){function n(){Ct(t.eventName,t.eventType)}R[e]=n,et(window,e,n,{passive:!0})},remove:function(t){var e,n,o,i=R[t];delete R[t],e=window,n=t,o=i,e.removeEventListener(n,o,!1)}};t.eventNames&&Array.prototype.map?(t.eventName=t.eventNames[0],t.eventNames.map(e[t.method])):e[t.method](t.eventName),it(nt(t.method)+" event listener: "+t.eventType)}function dt(t){ct({method:t,eventType:"Animation Start",eventNames:["animationstart","webkitAnimationStart"]}),ct({method:t,eventType:"Animation Iteration",eventNames:["animationiteration","webkitAnimationIteration"]}),ct({method:t,eventType:"Animation End",eventNames:["animationend","webkitAnimationEnd"]}),ct({method:t,eventType:"Input",eventName:"input"}),ct({method:t,eventType:"Mouse Up",eventName:"mouseup"}),ct({method:t,eventType:"Mouse Down",eventName:"mousedown"}),ct({method:t,eventType:"Orientation Change",eventName:"orientationchange"}),ct({method:t,eventType:"Print",eventName:["afterprint","beforeprint"]}),ct({method:t,eventType:"Ready State Change",eventName:"readystatechange"}),ct({method:t,eventType:"Touch Start",eventName:"touchstart"}),ct({method:t,eventType:"Touch End",eventName:"touchend"}),ct({method:t,eventType:"Touch Cancel",eventName:"touchcancel"}),ct({method:t,eventType:"Transition Start",eventNames:["transitionstart","webkitTransitionStart","MSTransitionStart","oTransitionStart","otransitionstart"]}),ct({method:t,eventType:"Transition Iteration",eventNames:["transitioniteration","webkitTransitionIteration","MSTransitionIteration","oTransitionIteration","otransitioniteration"]}),ct({method:t,eventType:"Transition End",eventNames:["transitionend","webkitTransitionEnd","MSTransitionEnd","oTransitionEnd","otransitionend"]}),"child"===$&&ct({method:t,eventType:"IFrame Resized",eventName:"resize"})}function ut(t,e,n,o){return e!==t&&(t in n||(rt(t+" is not a valid option for "+o+"CalculationMethod."),t=e),it(o+' calculation method set to "'+t+'"')),t}function pt(){h=ut(h,f,G,"height")}function ft(){z=ut(z,L,J,"width")}function ht(){var t;!0===n?(dt("add"),t=0>y,window.MutationObserver||window.WebKitMutationObserver?t?gt():s=function(){function t(t){function e(t){!1===t.complete&&(it("Attach listeners to "+t.src),t.addEventListener("load",i,!1),t.addEventListener("error",r,!1),l.push(t))}"attributes"===t.type&&"src"===t.attributeName?e(t.target):"childList"===t.type&&Array.prototype.forEach.call(t.target.querySelectorAll("img"),e)}function e(t){l.splice(l.indexOf(t),1)}function n(t){it("Remove listeners from "+t.src),t.removeEventListener("load",i,!1),t.removeEventListener("error",r,!1),e(t)}function o(t,e,o){n(t.target),Ct(e,o+": "+t.target.src)}function i(t){o(t,"imageLoad","Image loaded")}function r(t){o(t,"imageLoadFailed","Image load failed")}function s(e){Ct("mutationObserver","mutationObserver: "+e[0].target+" "+e[0].type),e.forEach(t)}function a(){var t=document.querySelector("body"),e={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0};return d=new c(s),it("Create body MutationObserver"),d.observe(t,e),d}var l=[],c=window.MutationObserver||window.WebKitMutationObserver,d=a();return{disconnect:function(){"disconnect"in d&&(it("Disconnect body MutationObserver"),d.disconnect(),l.forEach(n))}}}():(it("MutationObserver not supported in this browser!"),gt())):it("Auto Resize disabled")}function gt(){0!==y&&(it("setInterval: "+y+"ms"),b=setInterval((function(){Ct("interval","setInterval: "+y)}),Math.abs(y)))}function mt(t,e){var n=0;return e=e||document.body,n=null!==(n=document.defaultView.getComputedStyle(e,null))?n[t]:0,parseInt(n,10)}function vt(t,e){for(var n=e.length,o=0,i=0,r=nt(t),s=Date.now(),a=0;a<n;a++)(o=e[a].getBoundingClientRect()[t]+mt("margin"+r,e[a]))>i&&(i=o);return s=Date.now()-s,it("Parsed "+n+" HTML elements"),it("Element position calculated in "+s+"ms"),function(t){t>I/2&&it("Event throttle increased to "+(I=2*t)+"ms")}(s),i}function yt(t){return[t.bodyOffset(),t.bodyScroll(),t.documentElementOffset(),t.documentElementScroll()]}function bt(t,e){var n=document.querySelectorAll("["+e+"]");return 0===n.length&&(rt("No tagged elements ("+e+") found on page"),document.querySelectorAll("body *")),vt(t,n)}function wt(){return document.querySelectorAll("body *")}function xt(t,n,o,i){var r,s;!function(){function t(t,e){return!(Math.abs(t-e)<=O)}return r=e!==o?o:G[h](),s=e!==i?i:J[z](),t(p,r)||l&&t(D,s)}()&&"init"!==t?!(t in{init:1,interval:1,size:1})&&(h in S||l&&z in S)?St(n):t in{interval:1}||it("No change in size detected"):(Tt(),$t(p=r,D=s,t))}function Ct(t,e,n,o){A&&t in c?it("Trigger event cancelled: "+t):(t in{reset:1,resetPage:1,init:1}||it("Trigger event: "+e),"init"===t?xt(t,e,n,o):Z(t,e,n,o))}function Tt(){A||(A=!0,it("Trigger event lock on")),clearTimeout(P),P=setTimeout((function(){A=!1,it("Trigger event lock off"),it("--")}),d)}function kt(t){p=G[h](),D=J[z](),$t(p,D,t)}function St(t){var e=h;h=f,it("Reset trigger event: "+t),Tt(),kt("reset"),h=e}function $t(t,n,o,i,r){var s;e===r?r=E:it("Message targetOrigin: "+r),it("Sending message to host page ("+(s=k+":"+t+":"+n+":"+o+(e!==i?":"+i:""))+")"),_.postMessage(C+s,r)}function _t(){"loading"!==document.readyState&&window.parent.postMessage("[iFrameResizerChild]Ready","*")}}()},6702:function(t,e){var n,o,i;!function(r){if("undefined"!=typeof window){var s=0,a=!1,l=!1,c="message".length,d="[iFrameSizer]",u=d.length,p=null,f=window.requestAnimationFrame,h={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},g={},m=null,v={autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,mouseEvents:!0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){$("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}},y={};window.jQuery&&function(t){t.fn?t.fn.iFrameResize||(t.fn.iFrameResize=function(t){return this.filter("iframe").each((function(e,n){H(n,t)})).end()}):S("","Unable to bind to jQuery, it is not fully loaded.")}(window.jQuery),o=[],(i="function"==typeof(n=U)?n.apply(e,o):n)===r||(t.exports=i),window.iFrameResize=window.iFrameResize||U()}function b(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function w(t,e,n){t.addEventListener(e,n,!1)}function x(t,e,n){t.removeEventListener(e,n,!1)}function C(t){return d+"["+function(t){var e="Host page: "+t;return window.top!==window.self&&(e=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+t:"Nested host page: "+t),e}(t)+"]"}function T(t){return g[t]?g[t].log:a}function k(t,e){_("log",t,e,T(t))}function S(t,e){_("info",t,e,T(t))}function $(t,e){_("warn",t,e,!0)}function _(t,e,n,o){!0===o&&"object"==typeof window.console&&console[t](C(e),n)}function E(t){function e(){i("Height"),i("Width"),N((function(){j(H),D(R),m("onResized",H)}),H,"init")}function n(t){return"border-box"!==t.boxSizing?0:(t.paddingTop?parseInt(t.paddingTop,10):0)+(t.paddingBottom?parseInt(t.paddingBottom,10):0)}function o(t){return"border-box"!==t.boxSizing?0:(t.borderTopWidth?parseInt(t.borderTopWidth,10):0)+(t.borderBottomWidth?parseInt(t.borderBottomWidth,10):0)}function i(t){var e=Number(g[R]["max"+t]),n=Number(g[R]["min"+t]),o=t.toLowerCase(),i=Number(H[o]);k(R,"Checking "+o+" is in range "+n+"-"+e),i<n&&(i=n,k(R,"Set "+o+" to min value")),i>e&&(i=e,k(R,"Set "+o+" to max value")),H[o]=""+i}function r(t){return A.substr(A.indexOf(":")+c+t)}function s(t,e){var n,o,i;n=function(){var n,o;M("Send Page Info","pageInfo:"+(n=document.body.getBoundingClientRect(),o=H.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:o.height,iframeWidth:o.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(o.top-n.top,10),offsetLeft:parseInt(o.left-n.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),t,e)},o=32,y[i=e]||(y[i]=setTimeout((function(){y[i]=null,n()}),o))}function a(t){var e=t.getBoundingClientRect();return I(R),{x:Math.floor(Number(e.left)+Number(p.x)),y:Math.floor(Number(e.top)+Number(p.y))}}function l(t){var e=t?a(H.iframe):{x:0,y:0},n={x:Number(H.width)+e.x,y:Number(H.height)+e.y};k(R,"Reposition requested from iFrame (offset x:"+e.x+" y:"+e.y+")"),window.top!==window.self?window.parentIFrame?window.parentIFrame["scrollTo"+(t?"Offset":"")](n.x,n.y):$(R,"Unable to scroll to requested position, window.parentIFrame not found"):(p=n,f(),k(R,"--"))}function f(){!1!==m("onScroll",p)?D(R):L()}function h(t){var e={};if(0===Number(H.width)&&0===Number(H.height)){var n=r(9).split(":");e={x:n[1],y:n[0]}}else e={x:H.width,y:H.height};m(t,{iframe:H.iframe,screenX:Number(e.x),screenY:Number(e.y),type:H.type})}function m(t,e){return O(R,t,e)}var v,b,C,T,_,E,A=t.data,H={},R=null;"[iFrameResizerChild]Ready"===A?function(){for(var t in g)M("iFrame requested init",F(t),g[t].iframe,t)}():d===(""+A).substr(0,u)&&A.substr(u).split(":")[0]in g?(C=A.substr(u).split(":"),T=C[1]?parseInt(C[1],10):0,_=g[C[0]]&&g[C[0]].iframe,E=getComputedStyle(_),H={iframe:_,id:C[0],height:T+n(E)+o(E),width:C[2],type:C[3]},R=H.id,g[R]&&(g[R].loaded=!0),(b=H.type in{true:1,false:1,undefined:1})&&k(R,"Ignoring init message from meta parent page"),!b&&function(t){var e=!0;return g[t]||(e=!1,$(H.type+" No settings for "+t+". Message was: "+A)),e}(R)&&(k(R,"Received: "+A),v=!0,null===H.iframe&&($(R,"IFrame ("+H.id+") not found"),v=!1),v&&function(){var e,n=t.origin,o=g[R]&&g[R].checkOrigin;if(o&&""+n!="null"&&!(o.constructor===Array?function(){var t=0,e=!1;for(k(R,"Checking connection is from allowed list of origins: "+o);t<o.length;t++)if(o[t]===n){e=!0;break}return e}():(e=g[R]&&g[R].remoteHost,k(R,"Checking connection is from: "+e),n===e)))throw new Error("Unexpected message received from: "+n+" for "+H.iframe.id+". Message was: "+t.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}()&&function(){switch(g[R]&&g[R].firstRun&&g[R]&&(g[R].firstRun=!1),H.type){case"close":P(H.iframe);break;case"message":t=r(6),k(R,"onMessage passed: {iframe: "+H.iframe.id+", message: "+t+"}"),m("onMessage",{iframe:H.iframe,message:JSON.parse(t)}),k(R,"--");break;case"mouseenter":h("onMouseEnter");break;case"mouseleave":h("onMouseLeave");break;case"autoResize":g[R].autoResize=JSON.parse(r(9));break;case"scrollTo":l(!1);break;case"scrollToOffset":l(!0);break;case"pageInfo":s(g[R]&&g[R].iframe,R),function(){function t(t,o){function i(){g[n]?s(g[n].iframe,n):e()}["scroll","resize"].forEach((function(e){k(n,t+e+" listener for sendPageInfo"),o(window,e,i)}))}function e(){t("Remove ",x)}var n=R;t("Add ",w),g[n]&&(g[n].stopPageInfo=e)}();break;case"pageInfoStop":g[R]&&g[R].stopPageInfo&&(g[R].stopPageInfo(),delete g[R].stopPageInfo);break;case"inPageLink":!function(t){var e,n=t.split("#")[1]||"",o=decodeURIComponent(n),i=document.getElementById(o)||document.getElementsByName(o)[0];i?(e=a(i),k(R,"Moving to in page link (#"+n+") at x: "+e.x+" y: "+e.y),p={x:e.x,y:e.y},f(),k(R,"--")):window.top!==window.self?window.parentIFrame?window.parentIFrame.moveToAnchor(n):k(R,"In page link #"+n+" not found and window.parentIFrame not found"):k(R,"In page link #"+n+" not found")}(r(9));break;case"reset":z(H);break;case"init":e(),m("onInit",H.iframe);break;default:0===Number(H.width)&&0===Number(H.height)?$("Unsupported message received ("+H.type+"), this is likely due to the iframe containing a later version of iframe-resizer than the parent page"):e()}var t}())):S(R,"Ignored: "+A)}function O(t,e,n){var o=null,i=null;if(g[t]){if("function"!=typeof(o=g[t][e]))throw new TypeError(e+" on iFrame["+t+"] is not a function");i=o(n)}return i}function A(t){var e=t.id;delete g[e]}function P(t){var e=t.id;if(!1!==O(e,"onClose",e)){k(e,"Removing iFrame: "+e);try{t.parentNode&&t.parentNode.removeChild(t)}catch(t){$(t)}O(e,"onClosed",e),k(e,"--"),A(t)}else k(e,"Close iframe cancelled by onClose event")}function I(t){null===p&&k(t,"Get page position: "+(p={x:window.pageXOffset!==r?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==r?window.pageYOffset:document.documentElement.scrollTop}).x+","+p.y)}function D(t){null!==p&&(window.scrollTo(p.x,p.y),k(t,"Set page position: "+p.x+","+p.y),L())}function L(){p=null}function z(t){k(t.id,"Size reset requested by "+("init"===t.type?"host page":"iFrame")),I(t.id),N((function(){j(t),M("reset","reset",t.iframe,t.id)}),t,"reset")}function j(t){function e(e){l||"0"!==t[e]||(l=!0,k(o,"Hidden iFrame detected, creating visibility listener"),function(){function t(){function t(t){function e(e){return"0px"===(g[t]&&g[t].iframe.style[e])}function n(t){return null!==t.offsetParent}g[t]&&n(g[t].iframe)&&(e("height")||e("width"))&&M("Visibility change","resize",g[t].iframe,t)}Object.keys(g).forEach((function(e){t(e)}))}function e(e){k("window","Mutation observed: "+e[0].target+" "+e[0].type),R(t,16)}function n(){var t=document.querySelector("body"),n={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0};new o(e).observe(t,n)}var o=b();o&&n()}())}function n(n){!function(e){t.id?(t.iframe.style[e]=t[e]+"px",k(t.id,"IFrame ("+o+") "+e+" set to "+t[e]+"px")):k("undefined","messageData id not set")}(n),e(n)}var o=t.iframe.id;g[o]&&(g[o].sizeHeight&&n("height"),g[o].sizeWidth&&n("width"))}function N(t,e,n){n!==e.type&&f&&!window.jasmine?(k(e.id,"Requesting animation frame"),f(t)):t()}function M(t,e,n,o,i){var r,s=!1;o=o||n.id,g[o]&&(n&&"contentWindow"in n&&null!==n.contentWindow?(r=g[o]&&g[o].targetOrigin,k(o,"["+t+"] Sending msg to iframe["+o+"] ("+e+") targetOrigin: "+r),n.contentWindow.postMessage(d+e,r)):$(o,"["+t+"] IFrame("+o+") not found"),i&&g[o]&&g[o].warningTimeout&&(g[o].msgTimeout=setTimeout((function(){!g[o]||g[o].loaded||s||(s=!0,$(o,"IFrame has not responded within "+g[o].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))}),g[o].warningTimeout)))}function F(t){return t+":"+g[t].bodyMarginV1+":"+g[t].sizeWidth+":"+g[t].log+":"+g[t].interval+":"+g[t].enablePublicMethods+":"+g[t].autoResize+":"+g[t].bodyMargin+":"+g[t].heightCalculationMethod+":"+g[t].bodyBackground+":"+g[t].bodyPadding+":"+g[t].tolerance+":"+g[t].inPageLinks+":"+g[t].resizeFrom+":"+g[t].widthCalculationMethod+":"+g[t].mouseEvents}function H(t,e){function n(t){var e=t.split("Callback");if(2===e.length){var n="on"+e[0].charAt(0).toUpperCase()+e[0].slice(1);this[n]=this[t],delete this[t],$(l,"Deprecated: '"+t+"' has been renamed '"+n+"'. The old method will be removed in the next major version.")}}var o,i,l=function(n){var o;return""===n&&(t.id=(o=e&&e.id||v.id+s++,null!==document.getElementById(o)&&(o+=s++),n=o),a=(e||{}).log,k(n,"Added missing iframe ID: "+n+" ("+t.src+")")),n}(t.id);l in g&&"iFrameResizer"in t?$(l,"Ignored iFrame, already setup."):(!function(e){var o;e=e||{},g[l]={firstRun:!0,iframe:t,remoteHost:t.src&&t.src.split("/").slice(0,3).join("/")},function(t){if("object"!=typeof t)throw new TypeError("Options is not an object")}(e),Object.keys(e).forEach(n,e),function(t){for(var e in v)Object.prototype.hasOwnProperty.call(v,e)&&(g[l][e]=Object.prototype.hasOwnProperty.call(t,e)?t[e]:v[e])}(e),g[l]&&(g[l].targetOrigin=!0===g[l].checkOrigin?""===(o=g[l].remoteHost)||null!==o.match(/^(about:blank|javascript:|file:\/\/)/)?"*":o:"*")}(e),function(){switch(k(l,"IFrame scrolling "+(g[l]&&g[l].scrolling?"enabled":"disabled")+" for "+l),t.style.overflow=!1===(g[l]&&g[l].scrolling)?"hidden":"auto",g[l]&&g[l].scrolling){case"omit":break;case!0:t.scrolling="yes";break;case!1:t.scrolling="no";break;default:t.scrolling=g[l]?g[l].scrolling:"no"}}(),function(){function e(e){var n=g[l][e];1/0!==n&&0!==n&&(t.style[e]="number"==typeof n?n+"px":n,k(l,"Set "+e+" = "+t.style[e]))}function n(t){if(g[l]["min"+t]>g[l]["max"+t])throw new Error("Value for min"+t+" can not be greater than max"+t)}n("Height"),n("Width"),e("maxHeight"),e("minHeight"),e("maxWidth"),e("minWidth")}(),"number"!=typeof(g[l]&&g[l].bodyMargin)&&"0"!==(g[l]&&g[l].bodyMargin)||(g[l].bodyMarginV1=g[l].bodyMargin,g[l].bodyMargin=g[l].bodyMargin+"px"),o=F(l),(i=b())&&function(e){t.parentNode&&new e((function(e){e.forEach((function(e){Array.prototype.slice.call(e.removedNodes).forEach((function(e){e===t&&P(t)}))}))})).observe(t.parentNode,{childList:!0})}(i),w(t,"load",(function(){var e,n;M("iFrame.onload",o,t,r,!0),e=g[l]&&g[l].firstRun,n=g[l]&&g[l].heightCalculationMethod in h,!e&&n&&z({iframe:t,height:0,width:0,type:"init"})})),M("init",o,t,r,!0),g[l]&&(g[l].iframe.iFrameResizer={close:P.bind(null,g[l].iframe),removeListeners:A.bind(null,g[l].iframe),resize:M.bind(null,"Window resize","resize",g[l].iframe),moveToAnchor:function(t){M("Move to anchor","moveToAnchor:"+t,g[l].iframe,l)},sendMessage:function(t){M("Send Message","message:"+(t=JSON.stringify(t)),g[l].iframe,l)}}))}function R(t,e){null===m&&(m=setTimeout((function(){m=null,t()}),e))}function q(){"hidden"!==document.visibilityState&&(k("document","Trigger event: Visiblity change"),R((function(){W("Tab Visable","resize")}),16))}function W(t,e){Object.keys(g).forEach((function(n){(function(t){return g[t]&&"parent"===g[t].resizeFrom&&g[t].autoResize&&!g[t].firstRun})(n)&&M(t,e,g[n].iframe,n)}))}function B(){w(window,"message",E),w(window,"resize",(function(){!function(t){k("window","Trigger event: "+t),R((function(){W("Window "+t,"resize")}),16)}("resize")})),w(document,"visibilitychange",q),w(document,"-webkit-visibilitychange",q)}function U(){function t(t,n){n&&(!function(){if(!n.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==n.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+n.tagName+">")}(),H(n,t),e.push(n))}var e;return function(){var t,e=["moz","webkit","o","ms"];for(t=0;t<e.length&&!f;t+=1)f=window[e[t]+"RequestAnimationFrame"];f?f=f.bind(window):k("setup","RequestAnimationFrame not supported")}(),B(),function(n,o){switch(e=[],function(t){t&&t.enablePublicMethods&&$("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(n),typeof o){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(o||"iframe"),t.bind(r,n));break;case"object":t(n,o);break;default:throw new TypeError("Unexpected data type ("+typeof o+")")}return e}}}()},9457:function(t,e,n){var o=n(6702);e.iframeResize=o,n(9402)}},e={};function n(o){var i=e[o];if(void 0!==i)return i.exports;var r=e[o]={id:o,loaded:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},n(4741),n(9899),n(4701),n(214),n(1368),n(9403),n(979),n(2623),n(8282),n(5604);n(5453)}();