function disposeMap(){map=null}function initializeAdminMap(){var n,t,i,r,u;try{n=46.044054;t=14.509083;$("#iuLat").val()!=null&&(n=$("#iuLat").val().replace(",","."));$("#iuLng").val()!=null&&(t=$("#iuLng").val().replace(",","."));i=new google.maps.LatLng(n,t);geocoder=new google.maps.Geocoder;r={zoom:12,center:i,mapTypeId:google.maps.MapTypeId.ROADMAP,mapTypeControlOptions:{style:google.maps.MapTypeControlStyle.DROPDOWN_MENU},zoomControl:!0,zoomControlOptions:{style:google.maps.ZoomControlStyle.TINY},panControl:!1,zoomControl:!1,mapTypeControl:!1,scaleControl:!1,streetViewControl:!1,overviewMapControl:!1};map=new google.maps.Map(document.getElementById("document-map"),r);u=new google.maps.Marker({position:i,map:map,icon:mapIcon})}catch(f){}}function connectImage(){$(".image_rollover_top").unbind("hover").conRollover("top");$(".image_rollover_right").unbind("hover").conRollover("right");$(".image_rollover_bottom").unbind("hover").conRollover("bottom");$(".image_rollover_left").unbind("hover").conRollover("left")}function InfoBox(n){n=n||{};google.maps.OverlayView.apply(this,arguments);this.content_=n.content||"";this.disableAutoPan_=n.disableAutoPan||!1;this.maxWidth_=n.maxWidth||0;this.pixelOffset_=n.pixelOffset||new google.maps.Size(0,0);this.position_=n.position||new google.maps.LatLng(0,0);this.zIndex_=n.zIndex||null;this.boxClass_=n.boxClass||"infoBox";this.boxStyle_=n.boxStyle||{};this.closeBoxMargin_=n.closeBoxMargin||"2px";this.closeBoxURL_=n.closeBoxURL||"http://www.google.com/intl/en_us/mapfiles/close.gif";n.closeBoxURL===""&&(this.closeBoxURL_="");this.infoBoxClearance_=n.infoBoxClearance||new google.maps.Size(1,1);this.isHidden_=n.isHidden||!1;this.alignBottom_=n.alignBottom||!1;this.pane_=n.pane||"floatPane";this.enableEventPropagation_=n.enableEventPropagation||!1;this.div_=null;this.closeListener_=null;this.moveListener_=null;this.contextListener_=null;this.eventListeners_=null;this.fixedWidthSet_=null}function loadMore(){var n=$("#loadMoreLnk").attr("itemref");$("#loadMoreLnk").text("Loading...");$.ajax({url:"/social/MoreComments",data:{url:n},cache:!1,success:function(n){$("#loadMoreLnk").remove();$("#commentsList").append(n)}})}function replaceURLWithHTMLLinks(n){return n.replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig,"<a href='$1'>$1<\/a>")}function initExternalLinks(){$("a[href^=http]").each(function(){this.href.indexOf(location.hostname)==-1&&$(this).attr("target","_blank")})}function initPostMore(){$("#whatsNewSocial img, #whatsNewSocial .more").click(function(){$("#social-overlay").fadeIn();$("#socialPopupCloseButton").show();$("body").css("overflow","hidden");$("#social-popup-content").html(ajaxLoad).load("/social/getpost/"+$(this).attr("itemid"),function(){initSocialLinks()})})}function initSocialLinks(){$("#whatsNewSocial div.content, #social-popup div.content").each(function(){var n=$(this).html(),t=replaceURLWithHTMLLinks(n);$(this).html(t);initExternalLinks()})}function scrollToAnchor(n){var t=$("div[id='"+n+"']");$("html,body").animate({scrollTop:t.offset().top-100},"slow")}function enchanceEuropeanaImages(){}function initCollectionPagination(){$("#artwork-list div.artwork-list-content").gridalicious({selector:".artwork",gutter:15,width:240});$("div.other-objects").gridalicious({selector:".artwork",gutter:15,width:240});$("#collection-pagination a").click(collectionPaginationClick)}function collectionPaginationClick(n){n.preventDefault();$(this).parent().parent().find("li").removeClass("active");$(this).parent().addClass("active");$("#artwork-list").append('<div class="loading"><\/div>');scrollToAnchor("artwork-list");$.get($(this).attr("href"),function(n){$("#artwork-list div.loading").remove();$("#artwork-list").html(n).find("div.artwork-list-content").gridalicious({selector:".artwork",gutter:15,width:240}).fadeIn("slow");$("#collection-pagination a").click(collectionPaginationClick);scrollToAnchor("artwork-list");enchanceEuropeanaImages()})}function initFb(){if(document.getElementById("fb-root")!=undefined){window.fbAsyncInit=function(){FB.init({appId:FB_APPID,status:!0,cookie:!0,xfbml:!0,oauth:!0});FB.Event.subscribe("xfbml.render",function(){if($("#thisFullUrl").length>0){var n=$("#thisFullUrl").val();$.get("/social/FacebookCountUrl?url="+n,function(n){$("#count-fb").text(n);$("#count-ofb").css("visibility","visible")});$.get("/social/TwitterCountUrl?url="+n,function(n){$("#count-tw").text(n);$("#count-otw").css("visibility","visible")})}})};var n=document.createElement("script");n.type="text/javascript";n.src=document.location.protocol+"//connect.facebook.net/en_US/all.js";n.async=!0;document.getElementById("fb-root").appendChild(n)}}function initTimeline(){try{if(window.location.pathname.indexOf("/museum/details")<0){$(".tl1").timeline({openTriggerClass:".read_more",startItem:"4",closeText:"x",ajaxFailMessage:""});$(".tl1").on("ajaxLoaded.timeline",function(n){var t=n.element.height()-60-n.element.find("h2").height();n.element.find(".timeline_open_content span").css("max-height",t).mCustomScrollbar({autoHideScrollbar:!0,theme:"light-thin"})});$("span.timeline-message-text").each(function(){var n=$(this).html();$(this).html(replaceURLWithHTMLLinks(n))})}}catch(n){}}function replaceURLWithHTMLLinks(n){return n.replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig,"<a href='$1' target='_blank'>$1<\/a>")}function loadSocialPopup(n){var t=$("#socialpostmodal-content-"+n).data("loaded");if(t!="true"&&$("#socialpostmodal-content-"+n).html('<div id="social-content-loading-'+n+'" class="loading" style="height:480px; background-color:#fff; z-index:auto;"><\/div><div id="socialpostmodal-content-in-'+n+'" style="visibility:hidden;"><\/div>'),$("#socialpostmodal-"+n).modal(),t!="true")$("#socialpostmodal-"+n).on("shown.bs.modal",function(){var t="/Social/GetPopupPost?id="+n;$.ajax({cache:!1,type:"GET",async:!1,url:t,dataType:"text/html",success:function(){},error:function(t){$("#socialpostmodal-content-"+n).data("loaded","true");$("#socialpostmodal-content-in-"+n).html(t.responseText);imagesLoaded("#socialpostmodal-content-in-"+n+" div.social-picture img",function(){var t=$("#socialpostmodal-content-in-"+n+" div.social-picture img").height(),i;t<480&&(t=$("#socialpostmodal-content-in-"+n+" div.social-data").hasClass("Twitter")?240:480);$("#socialpostmodal-content-in-"+n+" div.social-data").height(t-20);$(".social-data").enscroll({showOnHover:!0,verticalTrackClass:"track3",verticalHandleClass:"handle3"});$("#social-content-loading-"+n).hide();$("#socialpostmodal-content-in-"+n).css("visibility","visible");i=$("#socialpostmodal-content-in-"+n+" p.social-post-description").html();$("#socialpostmodal-content-in-"+n+" p.social-post-description").html(replaceURLWithHTMLLinks(i))})}})})}function initDocMorePictures(){$("div.more-pictures a").click(function(){$("a#mainPicture img:first").attr("src",$(this).attr("rel"));$("a#mainPicture").attr("href",$(this).attr("data-originalurl"));var n=$(this).attr("data-description");$("a#mainPicture").attr("data-description",n);$("a#mainPicture img.info-image").remove();n.length>0&&$("#mainPicture").append('<img src="/Areas/Eu/Content/img/info-32.png" class="info-image" />')});$("select.exhibitions-events-doctype").change(function(){$("#exhibitions-events-doctype-hidden").val($(this).find(":selected").data("doctype"))})}function initReadMoreCollection(){$("a.collection-readmore").click(function(){$("div.collection-description-short").hide();$("div.collection-description-all").show()})}function initLoadMoreAll(){$("a.show-more-button").click(function(n){var t=$(this);n.preventDefault();$.get($(t).attr("href"),function(n){t.parent().append(n);t.remove()})})}function fblogin(){FB.login(function(n){if(n.authResponse){var t=FB.getAuthResponse().accessToken;window.location="/account/FacebookLogin?token="+t}},{perms:"email"})}function correntHonOwl(){var n=$("#topDocuments .owl-wrapper-outer").height();$("#topDocuments .owl-item").height(n)}function initTopDocsHomePage(){var n=$("#topDocuments");n.length>0&&n.owlCarousel({itemsCustom:[[0,1],[450,1],[600,2],[700,2],[1e3,2],[1200,4],[1400,4],[1600,5]],navigation:!0,pagination:!1,navigationText:["<i class='fa fa-chevron-left'><\/i>","<i class='fa fa-chevron-right'><\/i>"],afterUpdate:correntHonOwl,afterInit:correntHonOwl})}function expandMapAndRemoveElements(){$("div.btn-expand-map a").length>0&&($("div.btn-expand-map a").remove(),$("#gmcKN-map-container").height(650),setTimeout(function(){var t,n,i;google.maps.event.trigger(gmcKN.map,"resize");$("#maploading").height(650);$("#maploading").css("z-index","99999");$("#maploading").show();$("#mainSearchBoxWrapper").css("bottom",20);t=new google.maps.LatLng(48.303251145229041,14.765625);gmcKN.map.setCenter(t);n=$("#gmcKN-map-minzoomlevel");try{n.length>0?(i=parseInt(n.val()),gmcKN.map.setZoom(i)):gmcKN.map.setZoom(4)}catch(r){}},100))}function initExpadnMapbtn(){$("div.btn-expand-map a").click(function(){expandMapAndRemoveElements()})}function initCityFilters(){$("#cityIdMuseums").tokenInput(museumsCountryCodeUrl,{theme:"facebook",tokenLimit:1,prePopulate:[],hintText:"Enter city name",placeHolderText:"City"});$("#cityIdCollections").tokenInput(collectionsCountryCodeUrl,{theme:"facebook",tokenLimit:1,prePopulate:[],hintText:"Enter city name",placeHolderText:"City"});$("#cityIdExhibitionsAndEvents").tokenInput(exhibitionsAndEventsCountryCodeUrl,{theme:"facebook",tokenLimit:1,prePopulate:[],hintText:"Enter city name",placeHolderText:"City"});$("#cityIdActivities").tokenInput(activitiesCountryCodeUrl,{theme:"facebook",tokenLimit:1,prePopulate:[],hintText:"Enter city name",placeHolderText:"City"});$("select[name='countrycode']").on("change",function(){$(this).parent().parent().find(".token-input-token-facebook p").text().indexOf($(this).find(":selected").text())<0&&$(this).parent().parent().find(".token-input-delete-token-facebook").click()})}function initMainImage(){$("#mainPicutre").click(function(n){n.preventDefault()});var t=function(){$('<div id="imagelightbox-loading"><div><\/div><\/div>').appendTo("body")},n=function(){var t,n;try{$("#imagelightbox-loading").remove();t=$('<div id="imagelightbox_wrapper"><\/div>');$("#imagelightbox").wrap(t.wrap("<div>").parent().html());$("#imagelightbox_wrapper").css({width:$("#imagelightbox").width(),height:$("#imagelightbox").height(),top:$("#imagelightbox").css("top"),left:$("#imagelightbox").css("left"),"z-index":$("#imagelightbox").css("z-index"),position:"fixed"});n=$("#mainPicture").attr("data-description");n.length>0&&($("#imagelightbox_wrapper").append('<div id="image_description"><\/div>'),$("div#image_description").html('<div class="image_descripton_content">'+n+'<\/div><a class="image_description_expander"><\/a>'),$("#image_description").css("background","none"),$("#image_description div.image_descripton_content").hide(),$("a.image_description_expander").click(function(n){$("#image_description div.image_descripton_content").is(":visible")?($("#image_description").css("background","none"),$("#image_description div.image_descripton_content").hide()):($("#image_description").css("background","#ffffff"),$("#image_description div.image_descripton_content").show());n.stopPropagation()}))}catch(i){}},i=function(){$('<div id="imagelightbox-overlay"><\/div>').appendTo("body")},r=function(){$("#imagelightbox-overlay").remove();$("#imagelightbox_wrapper").remove()},u=$("#mainPicture").imageLightbox({quitOnEnd:!0,quitOnImgClick:!0,quitOnDocClick:!0,onStart:function(){i()},onLoadStart:function(){t()},onLoadEnd:function(){n()},onEnd:function(){r();n()}})}function removeFavorite(n){var t=Math.round((new Date).getTime()/1e3);$.get("/favorite/remove?documentid="+n+"&_ts="+t,function(){window.location.reload()})}function addFavorite(n){var t=Math.round((new Date).getTime()/1e3);$.get("/favorite/add?documentid="+n+"&_ts="+t,function(){window.location.reload()})}function clickLogin(){$(".login-menu i.fa-sign-in").parent().click()}var museumseu,rating,reviews,suggestAndUpdate,gmcKN;!function(n,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=n.document?t(n,!0):function(n){if(!n.document)throw new Error("jQuery requires a window with a document");return t(n)}:t(n)}("undefined"!=typeof window?window:this,function(n,t){function ri(n){var t=n.length,r=i.type(n);return"function"===r||i.isWindow(n)?!1:1===n.nodeType&&t?!0:"array"===r||0===t||"number"==typeof t&&t>0&&t-1 in n}function ui(n,t,r){if(i.isFunction(t))return i.grep(n,function(n,i){return!!t.call(n,i,n)!==r});if(t.nodeType)return i.grep(n,function(n){return n===t!==r});if("string"==typeof t){if(ue.test(t))return i.filter(t,n,r);t=i.filter(t,n)}return i.grep(n,function(n){return i.inArray(n,t)>=0!==r})}function hr(n,t){do n=n[t];while(n&&1!==n.nodeType);return n}function oe(n){var t=fi[n]={};return i.each(n.match(h)||[],function(n,i){t[i]=!0}),t}function cr(){u.addEventListener?(u.removeEventListener("DOMContentLoaded",a,!1),n.removeEventListener("load",a,!1)):(u.detachEvent("onreadystatechange",a),n.detachEvent("onload",a))}function a(){(u.addEventListener||"load"===event.type||"complete"===u.readyState)&&(cr(),i.ready())}function yr(n,t,r){if(void 0===r&&1===n.nodeType){var u="data-"+t.replace(vr,"-$1").toLowerCase();if(r=n.getAttribute(u),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:ar.test(r)?i.parseJSON(r):r}catch(f){}i.data(n,t,r)}else r=void 0}return r}function ei(n){var t;for(t in n)if(("data"!==t||!i.isEmptyObject(n[t]))&&"toJSON"!==t)return!1;return!0}function pr(n,t,r,u){if(i.acceptData(n)){var s,e,h=i.expando,l=n.nodeType,o=l?i.cache:n,f=l?n[h]:n[h]&&h;if(f&&o[f]&&(u||o[f].data)||void 0!==r||"string"!=typeof t)return f||(f=l?n[h]=c.pop()||i.guid++:h),o[f]||(o[f]=l?{}:{toJSON:i.noop}),("object"==typeof t||"function"==typeof t)&&(u?o[f]=i.extend(o[f],t):o[f].data=i.extend(o[f].data,t)),e=o[f],u||(e.data||(e.data={}),e=e.data),void 0!==r&&(e[i.camelCase(t)]=r),"string"==typeof t?(s=e[t],null==s&&(s=e[i.camelCase(t)])):s=e,s}}function wr(n,t,u){if(i.acceptData(n)){var o,s,h=n.nodeType,f=h?i.cache:n,e=h?n[i.expando]:i.expando;if(f[e]){if(t&&(o=u?f[e]:f[e].data)){for(i.isArray(t)?t=t.concat(i.map(t,i.camelCase)):(t in o)?t=[t]:(t=i.camelCase(t),t=(t in o)?[t]:t.split(" ")),s=t.length;s--;)delete o[t[s]];if(u?!ei(o):!i.isEmptyObject(o))return}(u||(delete f[e].data,ei(f[e])))&&(h?i.cleanData([n],!0):r.deleteExpando||f!=f.window?delete f[e]:f[e]=null)}}}function vt(){return!0}function it(){return!1}function dr(){try{return u.activeElement}catch(n){}}function gr(n){var i=nu.split("|"),t=n.createDocumentFragment();if(t.createElement)while(i.length)t.createElement(i.pop());return t}function f(n,t){var e,u,s=0,r=typeof n.getElementsByTagName!==o?n.getElementsByTagName(t||"*"):typeof n.querySelectorAll!==o?n.querySelectorAll(t||"*"):void 0;if(!r)for(r=[],e=n.childNodes||n;null!=(u=e[s]);s++)!t||i.nodeName(u,t)?r.push(u):i.merge(r,f(u,t));return void 0===t||t&&i.nodeName(n,t)?i.merge([n],r):r}function be(n){oi.test(n.type)&&(n.defaultChecked=n.checked)}function eu(n,t){return i.nodeName(n,"table")&&i.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?n.getElementsByTagName("tbody")[0]||n.appendChild(n.ownerDocument.createElement("tbody")):n}function ou(n){return n.type=(null!==i.find.attr(n,"type"))+"/"+n.type,n}function su(n){var t=ye.exec(n.type);return t?n.type=t[1]:n.removeAttribute("type"),n}function li(n,t){for(var u,r=0;null!=(u=n[r]);r++)i._data(u,"globalEval",!t||i._data(t[r],"globalEval"))}function hu(n,t){if(1===t.nodeType&&i.hasData(n)){var u,f,o,s=i._data(n),r=i._data(t,s),e=s.events;if(e){delete r.handle;r.events={};for(u in e)for(f=0,o=e[u].length;o>f;f++)i.event.add(t,u,e[u][f])}r.data&&(r.data=i.extend({},r.data))}}function ke(n,t){var u,e,f;if(1===t.nodeType){if(u=t.nodeName.toLowerCase(),!r.noCloneEvent&&t[i.expando]){f=i._data(t);for(e in f.events)i.removeEvent(t,e,f.handle);t.removeAttribute(i.expando)}"script"===u&&t.text!==n.text?(ou(t).text=n.text,su(t)):"object"===u?(t.parentNode&&(t.outerHTML=n.outerHTML),r.html5Clone&&n.innerHTML&&!i.trim(t.innerHTML)&&(t.innerHTML=n.innerHTML)):"input"===u&&oi.test(n.type)?(t.defaultChecked=t.checked=n.checked,t.value!==n.value&&(t.value=n.value)):"option"===u?t.defaultSelected=t.selected=n.defaultSelected:("input"===u||"textarea"===u)&&(t.defaultValue=n.defaultValue)}}function cu(t,r){var u=i(r.createElement(t)).appendTo(r.body),f=n.getDefaultComputedStyle?n.getDefaultComputedStyle(u[0]).display:i.css(u[0],"display");return u.detach(),f}function lu(n){var r=u,t=ai[n];return t||(t=cu(n,r),"none"!==t&&t||(ot=(ot||i("<iframe frameborder='0' width='0' height='0'/>")).appendTo(r.documentElement),r=(ot[0].contentWindow||ot[0].contentDocument).document,r.write(),r.close(),t=cu(n,r),ot.detach()),ai[n]=t),t}function vu(n,t){return{get:function(){var i=n();if(null!=i)return i?void delete this.get:(this.get=t).apply(this,arguments)}}}function wu(n,t){if(t in n)return t;for(var r=t.charAt(0).toUpperCase()+t.slice(1),u=t,i=pu.length;i--;)if(t=pu[i]+r,t in n)return t;return u}function bu(n,t){for(var f,r,o,e=[],u=0,s=n.length;s>u;u++)r=n[u],r.style&&(e[u]=i._data(r,"olddisplay"),f=r.style.display,t?(e[u]||"none"!==f||(r.style.display=""),""===r.style.display&&et(r)&&(e[u]=i._data(r,"olddisplay",lu(r.nodeName)))):e[u]||(o=et(r),(f&&"none"!==f||!o)&&i._data(r,"olddisplay",o?f:i.css(r,"display"))));for(u=0;s>u;u++)r=n[u],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?e[u]||"":"none"));return n}function ku(n,t,i){var r=to.exec(t);return r?Math.max(0,r[1]-(i||0))+(r[2]||"px"):t}function du(n,t,r,u,f){for(var e=r===(u?"border":"content")?4:"width"===t?1:0,o=0;4>e;e+=2)"margin"===r&&(o+=i.css(n,r+w[e],!0,f)),u?("content"===r&&(o-=i.css(n,"padding"+w[e],!0,f)),"margin"!==r&&(o-=i.css(n,"border"+w[e]+"Width",!0,f))):(o+=i.css(n,"padding"+w[e],!0,f),"padding"!==r&&(o+=i.css(n,"border"+w[e]+"Width",!0,f)));return o}function gu(n,t,u){var o=!0,f="width"===t?n.offsetWidth:n.offsetHeight,e=k(n),s=r.boxSizing()&&"border-box"===i.css(n,"boxSizing",!1,e);if(0>=f||null==f){if(f=d(n,t,e),(0>f||null==f)&&(f=n.style[t]),yt.test(f))return f;o=s&&(r.boxSizingReliable()||f===n.style[t]);f=parseFloat(f)||0}return f+du(n,t,u||(s?"border":"content"),o,e)+"px"}function e(n,t,i,r,u){return new e.prototype.init(n,t,i,r,u)}function tf(){return setTimeout(function(){rt=void 0}),rt=i.now()}function bt(n,t){var r,i={height:n},u=0;for(t=t?1:0;4>u;u+=2-t)r=w[u],i["margin"+r]=i["padding"+r]=n;return t&&(i.opacity=i.width=n),i}function rf(n,t,i){for(var u,f=(st[t]||[]).concat(st["*"]),r=0,e=f.length;e>r;r++)if(u=f[r].call(i,t,n))return u}function eo(n,t,u){var f,l,p,a,o,b,y,w,c=this,v={},s=n.style,h=n.nodeType&&et(n),e=i._data(n,"fxshow");u.queue||(o=i._queueHooks(n,"fx"),null==o.unqueued&&(o.unqueued=0,b=o.empty.fire,o.empty.fire=function(){o.unqueued||b()}),o.unqueued++,c.always(function(){c.always(function(){o.unqueued--;i.queue(n,"fx").length||o.empty.fire()})}));1===n.nodeType&&("height"in t||"width"in t)&&(u.overflow=[s.overflow,s.overflowX,s.overflowY],y=i.css(n,"display"),w=lu(n.nodeName),"none"===y&&(y=w),"inline"===y&&"none"===i.css(n,"float")&&(r.inlineBlockNeedsLayout&&"inline"!==w?s.zoom=1:s.display="inline-block"));u.overflow&&(s.overflow="hidden",r.shrinkWrapBlocks()||c.always(function(){s.overflow=u.overflow[0];s.overflowX=u.overflow[1];s.overflowY=u.overflow[2]}));for(f in t)if(l=t[f],uo.exec(l)){if(delete t[f],p=p||"toggle"===l,l===(h?"hide":"show")){if("show"!==l||!e||void 0===e[f])continue;h=!0}v[f]=e&&e[f]||i.style(n,f)}if(!i.isEmptyObject(v)){e?"hidden"in e&&(h=e.hidden):e=i._data(n,"fxshow",{});p&&(e.hidden=!h);h?i(n).show():c.done(function(){i(n).hide()});c.done(function(){var t;i._removeData(n,"fxshow");for(t in v)i.style(n,t,v[t])});for(f in v)a=rf(h?e[f]:0,f,c),f in e||(e[f]=a.start,h&&(a.end=a.start,a.start="width"===f||"height"===f?1:0))}}function oo(n,t){var r,f,e,u,o;for(r in n)if(f=i.camelCase(r),e=t[f],u=n[r],i.isArray(u)&&(e=u[1],u=n[r]=u[0]),r!==f&&(n[f]=u,delete n[r]),o=i.cssHooks[f],o&&"expand"in o){u=o.expand(u);delete n[f];for(r in u)r in n||(n[r]=u[r],t[r]=e)}else t[f]=e}function uf(n,t,r){var h,e,o=0,l=wt.length,f=i.Deferred().always(function(){delete c.elem}),c=function(){if(e)return!1;for(var s=rt||tf(),t=Math.max(0,u.startTime+u.duration-s),h=t/u.duration||0,i=1-h,r=0,o=u.tweens.length;o>r;r++)u.tweens[r].run(i);return f.notifyWith(n,[u,i,t]),1>i&&o?t:(f.resolveWith(n,[u]),!1)},u=f.promise({elem:n,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{}},r),originalProperties:t,originalOptions:r,startTime:rt||tf(),duration:r.duration,tweens:[],createTween:function(t,r){var f=i.Tween(n,u.opts,t,r,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(f),f},stop:function(t){var i=0,r=t?u.tweens.length:0;if(e)return this;for(e=!0;r>i;i++)u.tweens[i].run(1);return t?f.resolveWith(n,[u,t]):f.rejectWith(n,[u,t]),this}}),s=u.props;for(oo(s,u.opts.specialEasing);l>o;o++)if(h=wt[o].call(u,n,s,u.opts))return h;return i.map(s,rf,u),i.isFunction(u.opts.start)&&u.opts.start.call(n,u),i.fx.timer(i.extend(c,{elem:n,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function vf(n){return function(t,r){"string"!=typeof t&&(r=t,t="*");var u,f=0,e=t.toLowerCase().match(h)||[];if(i.isFunction(r))while(u=e[f++])"+"===u.charAt(0)?(u=u.slice(1)||"*",(n[u]=n[u]||[]).unshift(r)):(n[u]=n[u]||[]).push(r)}}function yf(n,t,r,u){function e(s){var h;return f[s]=!0,i.each(n[s]||[],function(n,i){var s=i(t,r,u);return"string"!=typeof s||o||f[s]?o?!(h=s):void 0:(t.dataTypes.unshift(s),e(s),!1)}),h}var f={},o=n===bi;return e(t.dataTypes[0])||!f["*"]&&e("*")}function ki(n,t){var u,r,f=i.ajaxSettings.flatOptions||{};for(r in t)void 0!==t[r]&&((f[r]?n:u||(u={}))[r]=t[r]);return u&&i.extend(!0,n,u),n}function vo(n,t,i){for(var o,e,u,f,s=n.contents,r=n.dataTypes;"*"===r[0];)r.shift(),void 0===e&&(e=n.mimeType||t.getResponseHeader("Content-Type"));if(e)for(f in s)if(s[f]&&s[f].test(e)){r.unshift(f);break}if(r[0]in i)u=r[0];else{for(f in i){if(!r[0]||n.converters[f+" "+r[0]]){u=f;break}o||(o=f)}u=u||o}if(u)return(u!==r[0]&&r.unshift(u),i[u])}function yo(n,t,i,r){var h,u,f,s,e,o={},c=n.dataTypes.slice();if(c[1])for(f in n.converters)o[f.toLowerCase()]=n.converters[f];for(u=c.shift();u;)if(n.responseFields[u]&&(i[n.responseFields[u]]=t),!e&&r&&n.dataFilter&&(t=n.dataFilter(t,n.dataType)),e=u,u=c.shift())if("*"===u)u=e;else if("*"!==e&&e!==u){if(f=o[e+" "+u]||o["* "+u],!f)for(h in o)if(s=h.split(" "),s[1]===u&&(f=o[e+" "+s[0]]||o["* "+s[0]])){f===!0?f=o[h]:o[h]!==!0&&(u=s[0],c.unshift(s[1]));break}if(f!==!0)if(f&&n.throws)t=f(t);else try{t=f(t)}catch(l){return{state:"parsererror",error:f?l:"No conversion from "+e+" to "+u}}}return{state:"success",data:t}}function di(n,t,r,u){var f;if(i.isArray(t))i.each(t,function(t,i){r||wo.test(n)?u(n,i):di(n+"["+("object"==typeof i?t:"")+"]",i,r,u)});else if(r||"object"!==i.type(t))u(n,t);else for(f in t)di(n+"["+f+"]",t[f],r,u)}function wf(){try{return new n.XMLHttpRequest}catch(t){}}function ns(){try{return new n.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function bf(n){return i.isWindow(n)?n:9===n.nodeType?n.defaultView||n.parentWindow:!1}var c=[],l=c.slice,ir=c.concat,ti=c.push,rr=c.indexOf,ct={},gf=ct.toString,tt=ct.hasOwnProperty,ii="".trim,r={},ur="1.11.0",i=function(n,t){return new i.fn.init(n,t)},ne=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,te=/^-ms-/,ie=/-([\da-z])/gi,re=function(n,t){return t.toUpperCase()},p,or,sr,h,fi,lt,o,lr,ar,vr,ot,ai,ff,of,sf,dt,gi,ni,nr,tr,kf,df;i.fn=i.prototype={jquery:ur,constructor:i,selector:"",length:0,toArray:function(){return l.call(this)},get:function(n){return null!=n?0>n?this[n+this.length]:this[n]:l.call(this)},pushStack:function(n){var t=i.merge(this.constructor(),n);return t.prevObject=this,t.context=this.context,t},each:function(n,t){return i.each(this,n,t)},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(n){var i=this.length,t=+n+(0>n?i:0);return this.pushStack(t>=0&&i>t?[this[t]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:ti,sort:c.sort,splice:c.splice};i.extend=i.fn.extend=function(){var r,e,t,f,o,s,n=arguments[0]||{},u=1,c=arguments.length,h=!1;for("boolean"==typeof n&&(h=n,n=arguments[u]||{},u++),"object"==typeof n||i.isFunction(n)||(n={}),u===c&&(n=this,u--);c>u;u++)if(null!=(o=arguments[u]))for(f in o)r=n[f],t=o[f],n!==t&&(h&&t&&(i.isPlainObject(t)||(e=i.isArray(t)))?(e?(e=!1,s=r&&i.isArray(r)?r:[]):s=r&&i.isPlainObject(r)?r:{},n[f]=i.extend(h,s,t)):void 0!==t&&(n[f]=t));return n};i.extend({expando:"jQuery"+(ur+Math.random()).replace(/\D/g,""),isReady:!0,error:function(n){throw new Error(n);},noop:function(){},isFunction:function(n){return"function"===i.type(n)},isArray:Array.isArray||function(n){return"array"===i.type(n)},isWindow:function(n){return null!=n&&n==n.window},isNumeric:function(n){return n-parseFloat(n)>=0},isEmptyObject:function(n){var t;for(t in n)return!1;return!0},isPlainObject:function(n){var t;if(!n||"object"!==i.type(n)||n.nodeType||i.isWindow(n))return!1;try{if(n.constructor&&!tt.call(n,"constructor")&&!tt.call(n.constructor.prototype,"isPrototypeOf"))return!1}catch(u){return!1}if(r.ownLast)for(t in n)return tt.call(n,t);for(t in n);return void 0===t||tt.call(n,t)},type:function(n){return null==n?n+"":"object"==typeof n||"function"==typeof n?ct[gf.call(n)]||"object":typeof n},globalEval:function(t){t&&i.trim(t)&&(n.execScript||function(t){n.eval.call(n,t)})(t)},camelCase:function(n){return n.replace(te,"ms-").replace(ie,re)},nodeName:function(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()},each:function(n,t,i){var u,r=0,f=n.length,e=ri(n);if(i){if(e){for(;f>r;r++)if(u=t.apply(n[r],i),u===!1)break}else for(r in n)if(u=t.apply(n[r],i),u===!1)break}else if(e){for(;f>r;r++)if(u=t.call(n[r],r,n[r]),u===!1)break}else for(r in n)if(u=t.call(n[r],r,n[r]),u===!1)break;return n},trim:ii&&!ii.call("﻿ ")?function(n){return null==n?"":ii.call(n)}:function(n){return null==n?"":(n+"").replace(ne,"")},makeArray:function(n,t){var r=t||[];return null!=n&&(ri(Object(n))?i.merge(r,"string"==typeof n?[n]:n):ti.call(r,n)),r},inArray:function(n,t,i){var r;if(t){if(rr)return rr.call(t,n,i);for(r=t.length,i=i?0>i?Math.max(0,r+i):i:0;r>i;i++)if(i in t&&t[i]===n)return i}return-1},merge:function(n,t){for(var r=+t.length,i=0,u=n.length;r>i;)n[u++]=t[i++];if(r!==r)while(void 0!==t[i])n[u++]=t[i++];return n.length=u,n},grep:function(n,t,i){for(var u,f=[],r=0,e=n.length,o=!i;e>r;r++)u=!t(n[r],r),u!==o&&f.push(n[r]);return f},map:function(n,t,i){var u,r=0,e=n.length,o=ri(n),f=[];if(o)for(;e>r;r++)u=t(n[r],r,i),null!=u&&f.push(u);else for(r in n)u=t(n[r],r,i),null!=u&&f.push(u);return ir.apply([],f)},guid:1,proxy:function(n,t){var u,r,f;return"string"==typeof t&&(f=n[t],t=n,n=f),i.isFunction(n)?(u=l.call(arguments,2),r=function(){return n.apply(t||this,u.concat(l.call(arguments)))},r.guid=n.guid=n.guid||i.guid++,r):void 0},now:function(){return+new Date},support:r});i.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(n,t){ct["[object "+t+"]"]=t.toLowerCase()});p=function(n){function u(n,t,i,u){var w,h,c,v,k,y,d,a,nt,g;if((t?t.ownerDocument||t:s)!==e&&p(t),t=t||e,i=i||[],!n||"string"!=typeof n)return i;if(1!==(v=t.nodeType)&&9!==v)return[];if(l&&!u){if(w=or.exec(n))if(c=w[1]){if(9===v){if(h=t.getElementById(c),!h||!h.parentNode)return i;if(h.id===c)return i.push(h),i}else if(t.ownerDocument&&(h=t.ownerDocument.getElementById(c))&&et(t,h)&&h.id===c)return i.push(h),i}else{if(w[2])return b.apply(i,t.getElementsByTagName(n)),i;if((c=w[3])&&r.getElementsByClassName&&t.getElementsByClassName)return b.apply(i,t.getElementsByClassName(c)),i}if(r.qsa&&(!o||!o.test(n))){if(a=d=f,nt=t,g=9===v&&n,1===v&&"object"!==t.nodeName.toLowerCase()){for(y=vt(n),(d=t.getAttribute("id"))?a=d.replace(sr,"\\$&"):t.setAttribute("id",a),a="[id='"+a+"'] ",k=y.length;k--;)y[k]=a+yt(y[k]);nt=gt.test(n)&&ii(t.parentNode)||t;g=y.join(",")}if(g)try{return b.apply(i,nt.querySelectorAll(g)),i}catch(tt){}finally{d||t.removeAttribute("id")}}}return vr(n.replace(lt,"$1"),t,i,u)}function ni(){function n(r,u){return i.push(r+" ")>t.cacheLength&&delete n[i.shift()],n[r+" "]=u}var i=[];return n}function h(n){return n[f]=!0,n}function c(n){var t=e.createElement("div");try{return!!n(t)}catch(i){return!1}finally{t.parentNode&&t.parentNode.removeChild(t);t=null}}function ti(n,i){for(var u=n.split("|"),r=n.length;r--;)t.attrHandle[u[r]]=i}function pi(n,t){var i=t&&n,r=i&&1===n.nodeType&&1===t.nodeType&&(~t.sourceIndex||li)-(~n.sourceIndex||li);if(r)return r;if(i)while(i=i.nextSibling)if(i===t)return-1;return n?1:-1}function hr(n){return function(t){var i=t.nodeName.toLowerCase();return"input"===i&&t.type===n}}function cr(n){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===n}}function tt(n){return h(function(t){return t=+t,h(function(i,r){for(var u,f=n([],i.length,t),e=f.length;e--;)i[u=f[e]]&&(i[u]=!(r[u]=i[u]))})})}function ii(n){return n&&typeof n.getElementsByTagName!==ut&&n}function wi(){}function vt(n,i){var e,f,s,o,r,h,c,l=hi[n+" "];if(l)return i?0:l.slice(0);for(r=n,h=[],c=t.preFilter;r;){(!e||(f=nr.exec(r)))&&(f&&(r=r.slice(f[0].length)||r),h.push(s=[]));e=!1;(f=tr.exec(r))&&(e=f.shift(),s.push({value:e,type:f[0].replace(lt," ")}),r=r.slice(e.length));for(o in t.filter)(f=at[o].exec(r))&&(!c[o]||(f=c[o](f)))&&(e=f.shift(),s.push({value:e,type:o,matches:f}),r=r.slice(e.length));if(!e)break}return i?r.length:r?u.error(n):hi(n,h).slice(0)}function yt(n){for(var t=0,r=n.length,i="";r>t;t++)i+=n[t].value;return i}function ri(n,t,i){var r=t.dir,u=i&&"parentNode"===r,e=bi++;return t.first?function(t,i,f){while(t=t[r])if(1===t.nodeType||u)return n(t,i,f)}:function(t,i,o){var s,h,c=[a,e];if(o){while(t=t[r])if((1===t.nodeType||u)&&n(t,i,o))return!0}else while(t=t[r])if(1===t.nodeType||u){if(h=t[f]||(t[f]={}),(s=h[r])&&s[0]===a&&s[1]===e)return c[2]=s[2];if(h[r]=c,c[2]=n(t,i,o))return!0}}}function ui(n){return n.length>1?function(t,i,r){for(var u=n.length;u--;)if(!n[u](t,i,r))return!1;return!0}:n[0]}function pt(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=null!=t;s>f;f++)(e=n[f])&&(!i||i(e,r,u))&&(o.push(e),h&&t.push(f));return o}function fi(n,t,i,r,u,e){return r&&!r[f]&&(r=fi(r)),u&&!u[f]&&(u=fi(u,e)),h(function(f,e,o,s){var l,c,a,p=[],y=[],w=e.length,k=f||ar(t||"*",o.nodeType?[o]:o,[]),v=!n||!f&&t?k:pt(k,p,n,o,s),h=i?u||(f?n:w||r)?[]:e:v;if(i&&i(v,h,o,s),r)for(l=pt(h,y),r(l,[],o,s),c=l.length;c--;)(a=l[c])&&(h[y[c]]=!(v[y[c]]=a));if(f){if(u||n){if(u){for(l=[],c=h.length;c--;)(a=h[c])&&l.push(v[c]=a);u(null,h=[],l,s)}for(c=h.length;c--;)(a=h[c])&&(l=u?nt.call(f,a):p[c])>-1&&(f[l]=!(e[l]=a))}}else h=pt(h===e?h.splice(w,h.length):h),u?u(null,e,h,s):b.apply(e,h)})}function ei(n){for(var s,u,r,o=n.length,h=t.relative[n[0].type],c=h||t.relative[" "],i=h?1:0,l=ri(function(n){return n===s},c,!0),a=ri(function(n){return nt.call(s,n)>-1},c,!0),e=[function(n,t,i){return!h&&(i||t!==ht)||((s=t).nodeType?l(n,t,i):a(n,t,i))}];o>i;i++)if(u=t.relative[n[i].type])e=[ri(ui(e),u)];else{if(u=t.filter[n[i].type].apply(null,n[i].matches),u[f]){for(r=++i;o>r;r++)if(t.relative[n[r].type])break;return fi(i>1&&ui(e),i>1&&yt(n.slice(0,i-1).concat({value:" "===n[i-2].type?"*":""})).replace(lt,"$1"),u,r>i&&ei(n.slice(i,r)),o>r&&ei(n=n.slice(r)),o>r&&yt(n))}e.push(u)}return ui(e)}function lr(n,i){var r=i.length>0,f=n.length>0,o=function(o,s,h,c,l){var y,d,w,k=0,v="0",g=o&&[],p=[],nt=ht,tt=o||f&&t.find.TAG("*",l),it=a+=null==nt?1:Math.random()||.1,rt=tt.length;for(l&&(ht=s!==e&&s);v!==rt&&null!=(y=tt[v]);v++){if(f&&y){for(d=0;w=n[d++];)if(w(y,s,h)){c.push(y);break}l&&(a=it)}r&&((y=!w&&y)&&k--,o&&g.push(y))}if(k+=v,r&&v!==k){for(d=0;w=i[d++];)w(g,p,s,h);if(o){if(k>0)while(v--)g[v]||p[v]||(p[v]=di.call(c));p=pt(p)}b.apply(c,p);l&&!o&&p.length>0&&k+i.length>1&&u.uniqueSort(c)}return l&&(a=it,ht=nt),g};return r?h(o):o}function ar(n,t,i){for(var r=0,f=t.length;f>r;r++)u(n,t[r],i);return i}function vr(n,i,u,f){var s,e,o,c,a,h=vt(n);if(!f&&1===h.length){if(e=h[0]=h[0].slice(0),e.length>2&&"ID"===(o=e[0]).type&&r.getById&&9===i.nodeType&&l&&t.relative[e[1].type]){if(i=(t.find.ID(o.matches[0].replace(k,d),i)||[])[0],!i)return u;n=n.slice(e.shift().value.length)}for(s=at.needsContext.test(n)?0:e.length;s--;){if(o=e[s],t.relative[c=o.type])break;if((a=t.find[c])&&(f=a(o.matches[0].replace(k,d),gt.test(e[0].type)&&ii(i.parentNode)||i))){if(e.splice(s,1),n=f.length&&yt(e),!n)return b.apply(u,f),u;break}}}return wt(n,h)(f,i,!l,u,gt.test(n)&&ii(i.parentNode)||i),u}var it,r,t,st,oi,wt,ht,y,rt,p,e,v,l,o,g,ct,et,f="sizzle"+-new Date,s=n.document,a=0,bi=0,si=ni(),hi=ni(),ci=ni(),bt=function(n,t){return n===t&&(rt=!0),0},ut="undefined",li=-2147483648,ki={}.hasOwnProperty,w=[],di=w.pop,gi=w.push,b=w.push,ai=w.slice,nt=w.indexOf||function(n){for(var t=0,i=this.length;i>t;t++)if(this[t]===n)return t;return-1},kt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",i="[\\x20\\t\\r\\n\\f]",ft="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",vi=ft.replace("w","w#"),yi="\\["+i+"*("+ft+")"+i+"*(?:([*^$|!~]?=)"+i+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+vi+")|)|)"+i+"*\\]",dt=":("+ft+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+yi.replace(3,8)+")*)|.*)\\)|)",lt=new RegExp("^"+i+"+|((?:^|[^\\\\])(?:\\\\.)*)"+i+"+$","g"),nr=new RegExp("^"+i+"*,"+i+"*"),tr=new RegExp("^"+i+"*([>+~]|"+i+")"+i+"*"),ir=new RegExp("="+i+"*([^\\]'\"]*?)"+i+"*\\]","g"),rr=new RegExp(dt),ur=new RegExp("^"+vi+"$"),at={ID:new RegExp("^#("+ft+")"),CLASS:new RegExp("^\\.("+ft+")"),TAG:new RegExp("^("+ft.replace("w","w*")+")"),ATTR:new RegExp("^"+yi),PSEUDO:new RegExp("^"+dt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+i+"*(even|odd|(([+-]|)(\\d*)n|)"+i+"*(?:([+-]|)"+i+"*(\\d+)|))"+i+"*\\)|)","i"),bool:new RegExp("^(?:"+kt+")$","i"),needsContext:new RegExp("^"+i+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+i+"*((?:-\\d)?\\d*)"+i+"*\\)|)(?=[^-]|$)","i")},fr=/^(?:input|select|textarea|button)$/i,er=/^h\d$/i,ot=/^[^{]+\{\s*\[native \w/,or=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,gt=/[+~]/,sr=/'|\\/g,k=new RegExp("\\\\([\\da-f]{1,6}"+i+"?|("+i+")|.)","ig"),d=function(n,t,i){var r="0x"+t-65536;return r!==r||i?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)};try{b.apply(w=ai.call(s.childNodes),s.childNodes);w[s.childNodes.length].nodeType}catch(yr){b={apply:w.length?function(n,t){gi.apply(n,ai.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}r=u.support={};oi=u.isXML=function(n){var t=n&&(n.ownerDocument||n).documentElement;return t?"HTML"!==t.nodeName:!1};p=u.setDocument=function(n){var a,u=n?n.ownerDocument||n:s,h=u.defaultView;return u!==e&&9===u.nodeType&&u.documentElement?(e=u,v=u.documentElement,l=!oi(u),h&&h!==h.top&&(h.addEventListener?h.addEventListener("unload",function(){p()},!1):h.attachEvent&&h.attachEvent("onunload",function(){p()})),r.attributes=c(function(n){return n.className="i",!n.getAttribute("className")}),r.getElementsByTagName=c(function(n){return n.appendChild(u.createComment("")),!n.getElementsByTagName("*").length}),r.getElementsByClassName=ot.test(u.getElementsByClassName)&&c(function(n){return n.innerHTML="<div class='a'><\/div><div class='a i'><\/div>",n.firstChild.className="i",2===n.getElementsByClassName("i").length}),r.getById=c(function(n){return v.appendChild(n).id=f,!u.getElementsByName||!u.getElementsByName(f).length}),r.getById?(t.find.ID=function(n,t){if(typeof t.getElementById!==ut&&l){var i=t.getElementById(n);return i&&i.parentNode?[i]:[]}},t.filter.ID=function(n){var t=n.replace(k,d);return function(n){return n.getAttribute("id")===t}}):(delete t.find.ID,t.filter.ID=function(n){var t=n.replace(k,d);return function(n){var i=typeof n.getAttributeNode!==ut&&n.getAttributeNode("id");return i&&i.value===t}}),t.find.TAG=r.getElementsByTagName?function(n,t){if(typeof t.getElementsByTagName!==ut)return t.getElementsByTagName(n)}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if("*"===n){while(i=u[f++])1===i.nodeType&&r.push(i);return r}return u},t.find.CLASS=r.getElementsByClassName&&function(n,t){if(typeof t.getElementsByClassName!==ut&&l)return t.getElementsByClassName(n)},g=[],o=[],(r.qsa=ot.test(u.querySelectorAll))&&(c(function(n){n.innerHTML="<select t=''><option selected=''><\/option><\/select>";n.querySelectorAll("[t^='']").length&&o.push("[*^$]="+i+"*(?:''|\"\")");n.querySelectorAll("[selected]").length||o.push("\\["+i+"*(?:value|"+kt+")");n.querySelectorAll(":checked").length||o.push(":checked")}),c(function(n){var t=u.createElement("input");t.setAttribute("type","hidden");n.appendChild(t).setAttribute("name","D");n.querySelectorAll("[name=d]").length&&o.push("name"+i+"*[*^$|!~]?=");n.querySelectorAll(":enabled").length||o.push(":enabled",":disabled");n.querySelectorAll("*,:x");o.push(",.*:")})),(r.matchesSelector=ot.test(ct=v.webkitMatchesSelector||v.mozMatchesSelector||v.oMatchesSelector||v.msMatchesSelector))&&c(function(n){r.disconnectedMatch=ct.call(n,"div");ct.call(n,"[s!='']:x");g.push("!=",dt)}),o=o.length&&new RegExp(o.join("|")),g=g.length&&new RegExp(g.join("|")),a=ot.test(v.compareDocumentPosition),et=a||ot.test(v.contains)?function(n,t){var r=9===n.nodeType?n.documentElement:n,i=t&&t.parentNode;return n===i||!(!i||1!==i.nodeType||!(r.contains?r.contains(i):n.compareDocumentPosition&&16&n.compareDocumentPosition(i)))}:function(n,t){if(t)while(t=t.parentNode)if(t===n)return!0;return!1},bt=a?function(n,t){if(n===t)return rt=!0,0;var i=!n.compareDocumentPosition-!t.compareDocumentPosition;return i?i:(i=(n.ownerDocument||n)===(t.ownerDocument||t)?n.compareDocumentPosition(t):1,1&i||!r.sortDetached&&t.compareDocumentPosition(n)===i?n===u||n.ownerDocument===s&&et(s,n)?-1:t===u||t.ownerDocument===s&&et(s,t)?1:y?nt.call(y,n)-nt.call(y,t):0:4&i?-1:1)}:function(n,t){if(n===t)return rt=!0,0;var i,r=0,o=n.parentNode,h=t.parentNode,f=[n],e=[t];if(!o||!h)return n===u?-1:t===u?1:o?-1:h?1:y?nt.call(y,n)-nt.call(y,t):0;if(o===h)return pi(n,t);for(i=n;i=i.parentNode;)f.unshift(i);for(i=t;i=i.parentNode;)e.unshift(i);while(f[r]===e[r])r++;return r?pi(f[r],e[r]):f[r]===s?-1:e[r]===s?1:0},u):e};u.matches=function(n,t){return u(n,null,null,t)};u.matchesSelector=function(n,t){if((n.ownerDocument||n)!==e&&p(n),t=t.replace(ir,"='$1']"),!(!r.matchesSelector||!l||g&&g.test(t)||o&&o.test(t)))try{var i=ct.call(n,t);if(i||r.disconnectedMatch||n.document&&11!==n.document.nodeType)return i}catch(f){}return u(t,e,null,[n]).length>0};u.contains=function(n,t){return(n.ownerDocument||n)!==e&&p(n),et(n,t)};u.attr=function(n,i){(n.ownerDocument||n)!==e&&p(n);var f=t.attrHandle[i.toLowerCase()],u=f&&ki.call(t.attrHandle,i.toLowerCase())?f(n,i,!l):void 0;return void 0!==u?u:r.attributes||!l?n.getAttribute(i):(u=n.getAttributeNode(i))&&u.specified?u.value:null};u.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n);};u.uniqueSort=function(n){var u,f=[],t=0,i=0;if(rt=!r.detectDuplicates,y=!r.sortStable&&n.slice(0),n.sort(bt),rt){while(u=n[i++])u===n[i]&&(t=f.push(i));while(t--)n.splice(f[t],1)}return y=null,n};st=u.getText=function(n){var r,i="",u=0,t=n.nodeType;if(t){if(1===t||9===t||11===t){if("string"==typeof n.textContent)return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=st(n)}else if(3===t||4===t)return n.nodeValue}else while(r=n[u++])i+=st(r);return i};t=u.selectors={cacheLength:50,createPseudo:h,match:at,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(n){return n[1]=n[1].replace(k,d),n[3]=(n[4]||n[5]||"").replace(k,d),"~="===n[2]&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),"nth"===n[1].slice(0,3)?(n[3]||u.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*("even"===n[3]||"odd"===n[3])),n[5]=+(n[7]+n[8]||"odd"===n[3])):n[3]&&u.error(n[0]),n},PSEUDO:function(n){var i,t=!n[5]&&n[2];return at.CHILD.test(n[0])?null:(n[3]&&void 0!==n[4]?n[2]=n[4]:t&&rr.test(t)&&(i=vt(t,!0))&&(i=t.indexOf(")",t.length-i)-t.length)&&(n[0]=n[0].slice(0,i),n[2]=t.slice(0,i)),n.slice(0,3))}},filter:{TAG:function(n){var t=n.replace(k,d).toLowerCase();return"*"===n?function(){return!0}:function(n){return n.nodeName&&n.nodeName.toLowerCase()===t}},CLASS:function(n){var t=si[n+" "];return t||(t=new RegExp("(^|"+i+")"+n+"("+i+"|$)"))&&si(n,function(n){return t.test("string"==typeof n.className&&n.className||typeof n.getAttribute!==ut&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(r){var f=u.attr(r,n);return null==f?"!="===t:t?(f+="","="===t?f===i:"!="===t?f!==i:"^="===t?i&&0===f.indexOf(i):"*="===t?i&&f.indexOf(i)>-1:"$="===t?i&&f.slice(-i.length)===i:"~="===t?(" "+f+" ").indexOf(i)>-1:"|="===t?f===i||f.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(n,t,i,r,u){var s="nth"!==n.slice(0,3),o="last"!==n.slice(-4),e="of-type"===t;return 1===r&&0===u?function(n){return!!n.parentNode}:function(t,i,h){var v,k,c,l,y,w,b=s!==o?"nextSibling":"previousSibling",p=t.parentNode,g=e&&t.nodeName.toLowerCase(),d=!h&&!e;if(p){if(s){while(b){for(c=t;c=c[b];)if(e?c.nodeName.toLowerCase()===g:1===c.nodeType)return!1;w=b="only"===n&&!w&&"nextSibling"}return!0}if(w=[o?p.firstChild:p.lastChild],o&&d){for(k=p[f]||(p[f]={}),v=k[n]||[],y=v[0]===a&&v[1],l=v[0]===a&&v[2],c=y&&p.childNodes[y];c=++y&&c&&c[b]||(l=y=0)||w.pop();)if(1===c.nodeType&&++l&&c===t){k[n]=[a,y,l];break}}else if(d&&(v=(t[f]||(t[f]={}))[n])&&v[0]===a)l=v[1];else while(c=++y&&c&&c[b]||(l=y=0)||w.pop())if((e?c.nodeName.toLowerCase()===g:1===c.nodeType)&&++l&&(d&&((c[f]||(c[f]={}))[n]=[a,l]),c===t))break;return l-=u,l===r||l%r==0&&l/r>=0}}},PSEUDO:function(n,i){var e,r=t.pseudos[n]||t.setFilters[n.toLowerCase()]||u.error("unsupported pseudo: "+n);return r[f]?r(i):r.length>1?(e=[n,n,"",i],t.setFilters.hasOwnProperty(n.toLowerCase())?h(function(n,t){for(var u,f=r(n,i),e=f.length;e--;)u=nt.call(n,f[e]),n[u]=!(t[u]=f[e])}):function(n){return r(n,0,e)}):r}},pseudos:{not:h(function(n){var i=[],r=[],t=wt(n.replace(lt,"$1"));return t[f]?h(function(n,i,r,u){for(var e,o=t(n,null,u,[]),f=n.length;f--;)(e=o[f])&&(n[f]=!(i[f]=e))}):function(n,u,f){return i[0]=n,t(i,null,f,r),!r.pop()}}),has:h(function(n){return function(t){return u(n,t).length>0}}),contains:h(function(n){return function(t){return(t.textContent||t.innerText||st(t)).indexOf(n)>-1}}),lang:h(function(n){return ur.test(n||"")||u.error("unsupported lang: "+n),n=n.replace(k,d).toLowerCase(),function(t){var i;do if(i=l?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return i=i.toLowerCase(),i===n||0===i.indexOf(n+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var i=n.location&&n.location.hash;return i&&i.slice(1)===t.id},root:function(n){return n===v},focus:function(n){return n===e.activeElement&&(!e.hasFocus||e.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:function(n){return n.disabled===!1},disabled:function(n){return n.disabled===!0},checked:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&!!n.checked||"option"===t&&!!n.selected},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,n.selected===!0},empty:function(n){for(n=n.firstChild;n;n=n.nextSibling)if(n.nodeType<6)return!1;return!0},parent:function(n){return!t.pseudos.empty(n)},header:function(n){return er.test(n.nodeName)},input:function(n){return fr.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&"button"===n.type||"button"===t},text:function(n){var t;return"input"===n.nodeName.toLowerCase()&&"text"===n.type&&(null==(t=n.getAttribute("type"))||"text"===t.toLowerCase())},first:tt(function(){return[0]}),last:tt(function(n,t){return[t-1]}),eq:tt(function(n,t,i){return[0>i?i+t:i]}),even:tt(function(n,t){for(var i=0;t>i;i+=2)n.push(i);return n}),odd:tt(function(n,t){for(var i=1;t>i;i+=2)n.push(i);return n}),lt:tt(function(n,t,i){for(var r=0>i?i+t:i;--r>=0;)n.push(r);return n}),gt:tt(function(n,t,i){for(var r=0>i?i+t:i;++r<t;)n.push(r);return n})}};t.pseudos.nth=t.pseudos.eq;for(it in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[it]=hr(it);for(it in{submit:!0,reset:!0})t.pseudos[it]=cr(it);return wi.prototype=t.filters=t.pseudos,t.setFilters=new wi,wt=u.compile=function(n,t){var r,u=[],e=[],i=ci[n+" "];if(!i){for(t||(t=vt(n)),r=t.length;r--;)i=ei(t[r]),i[f]?u.push(i):e.push(i);i=ci(n,lr(e,u))}return i},r.sortStable=f.split("").sort(bt).join("")===f,r.detectDuplicates=!!rt,p(),r.sortDetached=c(function(n){return 1&n.compareDocumentPosition(e.createElement("div"))}),c(function(n){return n.innerHTML="<a href='#'><\/a>","#"===n.firstChild.getAttribute("href")})||ti("type|href|height|width",function(n,t,i){if(!i)return n.getAttribute(t,"type"===t.toLowerCase()?1:2)}),r.attributes&&c(function(n){return n.innerHTML="<input/>",n.firstChild.setAttribute("value",""),""===n.firstChild.getAttribute("value")})||ti("value",function(n,t,i){if(!i&&"input"===n.nodeName.toLowerCase())return n.defaultValue}),c(function(n){return null==n.getAttribute("disabled")})||ti(kt,function(n,t,i){var r;if(!i)return n[t]===!0?t.toLowerCase():(r=n.getAttributeNode(t))&&r.specified?r.value:null}),u}(n);i.find=p;i.expr=p.selectors;i.expr[":"]=i.expr.pseudos;i.unique=p.uniqueSort;i.text=p.getText;i.isXMLDoc=p.isXML;i.contains=p.contains;var fr=i.expr.match.needsContext,er=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,ue=/^.[^:#\[\.,]*$/;i.filter=function(n,t,r){var u=t[0];return r&&(n=":not("+n+")"),1===t.length&&1===u.nodeType?i.find.matchesSelector(u,n)?[u]:[]:i.find.matches(n,i.grep(t,function(n){return 1===n.nodeType}))};i.fn.extend({find:function(n){var t,r=[],u=this,f=u.length;if("string"!=typeof n)return this.pushStack(i(n).filter(function(){for(t=0;f>t;t++)if(i.contains(u[t],this))return!0}));for(t=0;f>t;t++)i.find(n,u[t],r);return r=this.pushStack(f>1?i.unique(r):r),r.selector=this.selector?this.selector+" "+n:n,r},filter:function(n){return this.pushStack(ui(this,n||[],!1))},not:function(n){return this.pushStack(ui(this,n||[],!0))},is:function(n){return!!ui(this,"string"==typeof n&&fr.test(n)?i(n):n||[],!1).length}});var ft,u=n.document,fe=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,ee=i.fn.init=function(n,t){var r,f;if(!n)return this;if("string"==typeof n){if(r="<"===n.charAt(0)&&">"===n.charAt(n.length-1)&&n.length>=3?[null,n,null]:fe.exec(n),!r||!r[1]&&t)return!t||t.jquery?(t||ft).find(n):this.constructor(t).find(n);if(r[1]){if(t=t instanceof i?t[0]:t,i.merge(this,i.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:u,!0)),er.test(r[1])&&i.isPlainObject(t))for(r in t)i.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}if(f=u.getElementById(r[2]),f&&f.parentNode){if(f.id!==r[2])return ft.find(n);this.length=1;this[0]=f}return this.context=u,this.selector=n,this}return n.nodeType?(this.context=this[0]=n,this.length=1,this):i.isFunction(n)?"undefined"!=typeof ft.ready?ft.ready(n):n(i):(void 0!==n.selector&&(this.selector=n.selector,this.context=n.context),i.makeArray(n,this))};ee.prototype=i.fn;ft=i(u);or=/^(?:parents|prev(?:Until|All))/;sr={children:!0,contents:!0,next:!0,prev:!0};i.extend({dir:function(n,t,r){for(var f=[],u=n[t];u&&9!==u.nodeType&&(void 0===r||1!==u.nodeType||!i(u).is(r));)1===u.nodeType&&f.push(u),u=u[t];return f},sibling:function(n,t){for(var i=[];n;n=n.nextSibling)1===n.nodeType&&n!==t&&i.push(n);return i}});i.fn.extend({has:function(n){var t,r=i(n,this),u=r.length;return this.filter(function(){for(t=0;u>t;t++)if(i.contains(this,r[t]))return!0})},closest:function(n,t){for(var r,f=0,o=this.length,u=[],e=fr.test(n)||"string"!=typeof n?i(n,t||this.context):0;o>f;f++)for(r=this[f];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(e?e.index(r)>-1:1===r.nodeType&&i.find.matchesSelector(r,n))){u.push(r);break}return this.pushStack(u.length>1?i.unique(u):u)},index:function(n){return n?"string"==typeof n?i.inArray(this[0],i(n)):i.inArray(n.jquery?n[0]:n,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(n,t){return this.pushStack(i.unique(i.merge(this.get(),i(n,t))))},addBack:function(n){return this.add(null==n?this.prevObject:this.prevObject.filter(n))}});i.each({parent:function(n){var t=n.parentNode;return t&&11!==t.nodeType?t:null},parents:function(n){return i.dir(n,"parentNode")},parentsUntil:function(n,t,r){return i.dir(n,"parentNode",r)},next:function(n){return hr(n,"nextSibling")},prev:function(n){return hr(n,"previousSibling")},nextAll:function(n){return i.dir(n,"nextSibling")},prevAll:function(n){return i.dir(n,"previousSibling")},nextUntil:function(n,t,r){return i.dir(n,"nextSibling",r)},prevUntil:function(n,t,r){return i.dir(n,"previousSibling",r)},siblings:function(n){return i.sibling((n.parentNode||{}).firstChild,n)},children:function(n){return i.sibling(n.firstChild)},contents:function(n){return i.nodeName(n,"iframe")?n.contentDocument||n.contentWindow.document:i.merge([],n.childNodes)}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r);return"Until"!==n.slice(-5)&&(u=r),u&&"string"==typeof u&&(f=i.filter(u,f)),this.length>1&&(sr[n]||(f=i.unique(f)),or.test(n)&&(f=f.reverse())),this.pushStack(f)}});h=/\S+/g;fi={};i.Callbacks=function(n){n="string"==typeof n?fi[n]||oe(n):i.extend({},n);var o,u,h,f,e,c,t=[],r=!n.once&&[],l=function(i){for(u=n.memory&&i,h=!0,e=c||0,c=0,f=t.length,o=!0;t&&f>e;e++)if(t[e].apply(i[0],i[1])===!1&&n.stopOnFalse){u=!1;break}o=!1;t&&(r?r.length&&l(r.shift()):u?t=[]:s.disable())},s={add:function(){if(t){var r=t.length;!function e(r){i.each(r,function(r,u){var f=i.type(u);"function"===f?n.unique&&s.has(u)||t.push(u):u&&u.length&&"string"!==f&&e(u)})}(arguments);o?f=t.length:u&&(c=r,l(u))}return this},remove:function(){return t&&i.each(arguments,function(n,r){for(var u;(u=i.inArray(r,t,u))>-1;)t.splice(u,1),o&&(f>=u&&f--,e>=u&&e--)}),this},has:function(n){return n?i.inArray(n,t)>-1:!(!t||!t.length)},empty:function(){return t=[],f=0,this},disable:function(){return t=r=u=void 0,this},disabled:function(){return!t},lock:function(){return r=void 0,u||s.disable(),this},locked:function(){return!r},fireWith:function(n,i){return!t||h&&!r||(i=i||[],i=[n,i.slice?i.slice():i],o?r.push(i):l(i)),this},fire:function(){return s.fireWith(this,arguments),this},fired:function(){return!!h}};return s};i.extend({Deferred:function(n){var u=[["resolve","done",i.Callbacks("once memory"),"resolved"],["reject","fail",i.Callbacks("once memory"),"rejected"],["notify","progress",i.Callbacks("memory")]],f="pending",r={state:function(){return f},always:function(){return t.done(arguments).fail(arguments),this},then:function(){var n=arguments;return i.Deferred(function(f){i.each(u,function(u,e){var o=i.isFunction(n[u])&&n[u];t[e[1]](function(){var n=o&&o.apply(this,arguments);n&&i.isFunction(n.promise)?n.promise().done(f.resolve).fail(f.reject).progress(f.notify):f[e[0]+"With"](this===r?f.promise():this,o?[n]:arguments)})});n=null}).promise()},promise:function(n){return null!=n?i.extend(n,r):r}},t={};return r.pipe=r.then,i.each(u,function(n,i){var e=i[2],o=i[3];r[i[1]]=e.add;o&&e.add(function(){f=o},u[1^n][2].disable,u[2][2].lock);t[i[0]]=function(){return t[i[0]+"With"](this===t?r:this,arguments),this};t[i[0]+"With"]=e.fireWith}),r.promise(t),n&&n.call(t,t),t},when:function(n){var t=0,u=l.call(arguments),r=u.length,e=1!==r||n&&i.isFunction(n.promise)?r:0,f=1===e?n:i.Deferred(),h=function(n,t,i){return function(r){t[n]=this;i[n]=arguments.length>1?l.call(arguments):r;i===o?f.notifyWith(t,i):--e||f.resolveWith(t,i)}},o,c,s;if(r>1)for(o=new Array(r),c=new Array(r),s=new Array(r);r>t;t++)u[t]&&i.isFunction(u[t].promise)?u[t].promise().done(h(t,s,u)).fail(f.reject).progress(h(t,c,o)):--e;return e||f.resolveWith(s,u),f.promise()}});i.fn.ready=function(n){return i.ready.promise().done(n),this};i.extend({isReady:!1,readyWait:1,holdReady:function(n){n?i.readyWait++:i.ready(!0)},ready:function(n){if(n===!0?!--i.readyWait:!i.isReady){if(!u.body)return setTimeout(i.ready);i.isReady=!0;n!==!0&&--i.readyWait>0||(lt.resolveWith(u,[i]),i.fn.trigger&&i(u).trigger("ready").off("ready"))}}});i.ready.promise=function(t){if(!lt)if(lt=i.Deferred(),"complete"===u.readyState)setTimeout(i.ready);else if(u.addEventListener)u.addEventListener("DOMContentLoaded",a,!1),n.addEventListener("load",a,!1);else{u.attachEvent("onreadystatechange",a);n.attachEvent("onload",a);var r=!1;try{r=null==n.frameElement&&u.documentElement}catch(e){}r&&r.doScroll&&!function f(){if(!i.isReady){try{r.doScroll("left")}catch(n){return setTimeout(f,50)}cr();i.ready()}}()}return lt.promise(t)};o="undefined";for(lr in i(r))break;r.ownLast="0"!==lr;r.inlineBlockNeedsLayout=!1;i(function(){var t,n,i=u.getElementsByTagName("body")[0];i&&(t=u.createElement("div"),t.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",n=u.createElement("div"),i.appendChild(t).appendChild(n),typeof n.style.zoom!==o&&(n.style.cssText="border:0;margin:0;width:1px;padding:1px;display:inline;zoom:1",(r.inlineBlockNeedsLayout=3===n.offsetWidth)&&(i.style.zoom=1)),i.removeChild(t),t=n=null)}),function(){var n=u.createElement("div");if(null==r.deleteExpando){r.deleteExpando=!0;try{delete n.test}catch(t){r.deleteExpando=!1}}n=null}();i.acceptData=function(n){var t=i.noData[(n.nodeName+" ").toLowerCase()],r=+n.nodeType||1;return 1!==r&&9!==r?!1:!t||t!==!0&&n.getAttribute("classid")===t};ar=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/;vr=/([A-Z])/g;i.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(n){return n=n.nodeType?i.cache[n[i.expando]]:n[i.expando],!!n&&!ei(n)},data:function(n,t,i){return pr(n,t,i)},removeData:function(n,t){return wr(n,t)},_data:function(n,t,i){return pr(n,t,i,!0)},_removeData:function(n,t){return wr(n,t,!0)}});i.fn.extend({data:function(n,t){var f,u,e,r=this[0],o=r&&r.attributes;if(void 0===n){if(this.length&&(e=i.data(r),1===r.nodeType&&!i._data(r,"parsedAttrs"))){for(f=o.length;f--;)u=o[f].name,0===u.indexOf("data-")&&(u=i.camelCase(u.slice(5)),yr(r,u,e[u]));i._data(r,"parsedAttrs",!0)}return e}return"object"==typeof n?this.each(function(){i.data(this,n)}):arguments.length>1?this.each(function(){i.data(this,n,t)}):r?yr(r,n,i.data(r,n)):void 0},removeData:function(n){return this.each(function(){i.removeData(this,n)})}});i.extend({queue:function(n,t,r){var u;if(n)return(t=(t||"fx")+"queue",u=i._data(n,t),r&&(!u||i.isArray(r)?u=i._data(n,t,i.makeArray(r)):u.push(r)),u||[])},dequeue:function(n,t){t=t||"fx";var r=i.queue(n,t),e=r.length,u=r.shift(),f=i._queueHooks(n,t),o=function(){i.dequeue(n,t)};"inprogress"===u&&(u=r.shift(),e--);u&&("fx"===t&&r.unshift("inprogress"),delete f.stop,u.call(n,o,f));!e&&f&&f.empty.fire()},_queueHooks:function(n,t){var r=t+"queueHooks";return i._data(n,r)||i._data(n,r,{empty:i.Callbacks("once memory").add(function(){i._removeData(n,t+"queue");i._removeData(n,r)})})}});i.fn.extend({queue:function(n,t){var r=2;return"string"!=typeof n&&(t=n,n="fx",r--),arguments.length<r?i.queue(this[0],n):void 0===t?this:this.each(function(){var r=i.queue(this,n,t);i._queueHooks(this,n);"fx"===n&&"inprogress"!==r[0]&&i.dequeue(this,n)})},dequeue:function(n){return this.each(function(){i.dequeue(this,n)})},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,t){var r,f=1,e=i.Deferred(),u=this,o=this.length,s=function(){--f||e.resolveWith(u,[u])};for("string"!=typeof n&&(t=n,n=void 0),n=n||"fx";o--;)r=i._data(u[o],n+"queueHooks"),r&&r.empty&&(f++,r.empty.add(s));return s(),e.promise(t)}});var at=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,w=["Top","Right","Bottom","Left"],et=function(n,t){return n=t||n,"none"===i.css(n,"display")||!i.contains(n.ownerDocument,n)},b=i.access=function(n,t,r,u,f,e,o){var s=0,c=n.length,h=null==r;if("object"===i.type(r)){f=!0;for(s in r)i.access(n,t,s,r[s],!0,e,o)}else if(void 0!==u&&(f=!0,i.isFunction(u)||(o=!0),h&&(o?(t.call(n,u),t=null):(h=t,t=function(n,t,r){return h.call(i(n),r)})),t))for(;c>s;s++)t(n[s],r,o?u:u.call(n[s],s,t(n[s],r)));return f?n:h?t.call(n):c?t(n[0],r):e},oi=/^(?:checkbox|radio)$/i;!function(){var i=u.createDocumentFragment(),n=u.createElement("div"),t=u.createElement("input");if(n.setAttribute("className","t"),n.innerHTML="  <link/><table><\/table><a href='/a'>a<\/a>",r.leadingWhitespace=3===n.firstChild.nodeType,r.tbody=!n.getElementsByTagName("tbody").length,r.htmlSerialize=!!n.getElementsByTagName("link").length,r.html5Clone="<:nav><\/:nav>"!==u.createElement("nav").cloneNode(!0).outerHTML,t.type="checkbox",t.checked=!0,i.appendChild(t),r.appendChecked=t.checked,n.innerHTML="<textarea>x<\/textarea>",r.noCloneChecked=!!n.cloneNode(!0).lastChild.defaultValue,i.appendChild(n),n.innerHTML="<input type='radio' checked='checked' name='t'/>",r.checkClone=n.cloneNode(!0).cloneNode(!0).lastChild.checked,r.noCloneEvent=!0,n.attachEvent&&(n.attachEvent("onclick",function(){r.noCloneEvent=!1}),n.cloneNode(!0).click()),null==r.deleteExpando){r.deleteExpando=!0;try{delete n.test}catch(f){r.deleteExpando=!1}}i=n=t=null}(),function(){var t,i,f=u.createElement("div");for(t in{submit:!0,change:!0,focusin:!0})i="on"+t,(r[t+"Bubbles"]=i in n)||(f.setAttribute(i,"t"),r[t+"Bubbles"]=f.attributes[i].expando===!1);f=null}();var si=/^(?:input|select|textarea)$/i,se=/^key/,he=/^(?:mouse|contextmenu)|click/,br=/^(?:focusinfocus|focusoutblur)$/,kr=/^([^.]*)(?:\.(.+)|)$/;i.event={global:{},add:function(n,t,r,u,f){var w,y,b,p,s,c,l,a,e,k,d,v=i._data(n);if(v){for(r.handler&&(p=r,r=p.handler,f=p.selector),r.guid||(r.guid=i.guid++),(y=v.events)||(y=v.events={}),(c=v.handle)||(c=v.handle=function(n){if(typeof i!==o&&(!n||i.event.triggered!==n.type))return i.event.dispatch.apply(c.elem,arguments)},c.elem=n),t=(t||"").match(h)||[""],b=t.length;b--;)w=kr.exec(t[b])||[],e=d=w[1],k=(w[2]||"").split(".").sort(),e&&(s=i.event.special[e]||{},e=(f?s.delegateType:s.bindType)||e,s=i.event.special[e]||{},l=i.extend({type:e,origType:d,data:u,handler:r,guid:r.guid,selector:f,needsContext:f&&i.expr.match.needsContext.test(f),namespace:k.join(".")},p),(a=y[e])||(a=y[e]=[],a.delegateCount=0,s.setup&&s.setup.call(n,u,k,c)!==!1||(n.addEventListener?n.addEventListener(e,c,!1):n.attachEvent&&n.attachEvent("on"+e,c))),s.add&&(s.add.call(n,l),l.handler.guid||(l.handler.guid=r.guid)),f?a.splice(a.delegateCount++,0,l):a.push(l),i.event.global[e]=!0);n=null}},remove:function(n,t,r,u,f){var y,o,s,b,p,a,c,l,e,w,k,v=i.hasData(n)&&i._data(n);if(v&&(a=v.events)){for(t=(t||"").match(h)||[""],p=t.length;p--;)if(s=kr.exec(t[p])||[],e=k=s[1],w=(s[2]||"").split(".").sort(),e){for(c=i.event.special[e]||{},e=(u?c.delegateType:c.bindType)||e,l=a[e]||[],s=s[2]&&new RegExp("(^|\\.)"+w.join("\\.(?:.*\\.|)")+"(\\.|$)"),b=y=l.length;y--;)o=l[y],!f&&k!==o.origType||r&&r.guid!==o.guid||s&&!s.test(o.namespace)||u&&u!==o.selector&&("**"!==u||!o.selector)||(l.splice(y,1),o.selector&&l.delegateCount--,c.remove&&c.remove.call(n,o));b&&!l.length&&(c.teardown&&c.teardown.call(n,w,v.handle)!==!1||i.removeEvent(n,e,v.handle),delete a[e])}else for(e in a)i.event.remove(n,e+t[p],r,u,!0);i.isEmptyObject(a)&&(delete v.handle,i._removeData(n,"events"))}},trigger:function(t,r,f,e){var l,a,o,p,c,h,w,y=[f||u],s=tt.call(t,"type")?t.type:t,v=tt.call(t,"namespace")?t.namespace.split("."):[];if(o=h=f=f||u,3!==f.nodeType&&8!==f.nodeType&&!br.test(s+i.event.triggered)&&(s.indexOf(".")>=0&&(v=s.split("."),s=v.shift(),v.sort()),a=s.indexOf(":")<0&&"on"+s,t=t[i.expando]?t:new i.Event(s,"object"==typeof t&&t),t.isTrigger=e?2:3,t.namespace=v.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=f),r=null==r?[t]:i.makeArray(r,[t]),c=i.event.special[s]||{},e||!c.trigger||c.trigger.apply(f,r)!==!1)){if(!e&&!c.noBubble&&!i.isWindow(f)){for(p=c.delegateType||s,br.test(p+s)||(o=o.parentNode);o;o=o.parentNode)y.push(o),h=o;h===(f.ownerDocument||u)&&y.push(h.defaultView||h.parentWindow||n)}for(w=0;(o=y[w++])&&!t.isPropagationStopped();)t.type=w>1?p:c.bindType||s,l=(i._data(o,"events")||{})[t.type]&&i._data(o,"handle"),l&&l.apply(o,r),l=a&&o[a],l&&l.apply&&i.acceptData(o)&&(t.result=l.apply(o,r),t.result===!1&&t.preventDefault());if(t.type=s,!e&&!t.isDefaultPrevented()&&(!c._default||c._default.apply(y.pop(),r)===!1)&&i.acceptData(f)&&a&&f[s]&&!i.isWindow(f)){h=f[a];h&&(f[a]=null);i.event.triggered=s;try{f[s]()}catch(b){}i.event.triggered=void 0;h&&(f[a]=h)}return t.result}},dispatch:function(n){n=i.event.fix(n);var e,f,t,r,o,s=[],h=l.call(arguments),c=(i._data(this,"events")||{})[n.type]||[],u=i.event.special[n.type]||{};if(h[0]=n,n.delegateTarget=this,!u.preDispatch||u.preDispatch.call(this,n)!==!1){for(s=i.event.handlers.call(this,n,c),e=0;(r=s[e++])&&!n.isPropagationStopped();)for(n.currentTarget=r.elem,o=0;(t=r.handlers[o++])&&!n.isImmediatePropagationStopped();)(!n.namespace_re||n.namespace_re.test(t.namespace))&&(n.handleObj=t,n.data=t.data,f=((i.event.special[t.origType]||{}).handle||t.handler).apply(r.elem,h),void 0!==f&&(n.result=f)===!1&&(n.preventDefault(),n.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,n),n.result}},handlers:function(n,t){var f,e,u,o,h=[],s=t.delegateCount,r=n.target;if(s&&r.nodeType&&(!n.button||"click"!==n.type))for(;r!=this;r=r.parentNode||this)if(1===r.nodeType&&(r.disabled!==!0||"click"!==n.type)){for(u=[],o=0;s>o;o++)e=t[o],f=e.selector+" ",void 0===u[f]&&(u[f]=e.needsContext?i(f,this).index(r)>=0:i.find(f,this,null,[r]).length),u[f]&&u.push(e);u.length&&h.push({elem:r,handlers:u})}return s<t.length&&h.push({elem:this,handlers:t.slice(s)}),h},fix:function(n){if(n[i.expando])return n;var e,o,s,r=n.type,f=n,t=this.fixHooks[r];for(t||(this.fixHooks[r]=t=he.test(r)?this.mouseHooks:se.test(r)?this.keyHooks:{}),s=t.props?this.props.concat(t.props):this.props,n=new i.Event(f),e=s.length;e--;)o=s[e],n[o]=f[o];return n.target||(n.target=f.srcElement||u),3===n.target.nodeType&&(n.target=n.target.parentNode),n.metaKey=!!n.metaKey,t.filter?t.filter(n,f):n},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(n,t){return null==n.which&&(n.which=null!=t.charCode?t.charCode:t.keyCode),n}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(n,t){var i,e,r,f=t.button,o=t.fromElement;return null==n.pageX&&null!=t.clientX&&(e=n.target.ownerDocument||u,r=e.documentElement,i=e.body,n.pageX=t.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),n.pageY=t.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),!n.relatedTarget&&o&&(n.relatedTarget=o===n.target?t.toElement:o),n.which||void 0===f||(n.which=1&f?1:2&f?3:4&f?2:0),n}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==dr()&&this.focus)try{return this.focus(),!1}catch(n){}},delegateType:"focusin"},blur:{trigger:function(){if(this===dr()&&this.blur)return(this.blur(),!1)},delegateType:"focusout"},click:{trigger:function(){if(i.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return(this.click(),!1)},_default:function(n){return i.nodeName(n.target,"a")}},beforeunload:{postDispatch:function(n){void 0!==n.result&&(n.originalEvent.returnValue=n.result)}}},simulate:function(n,t,r,u){var f=i.extend(new i.Event,r,{type:n,isSimulated:!0,originalEvent:{}});u?i.event.trigger(f,null,t):i.event.dispatch.call(t,f);f.isDefaultPrevented()&&r.preventDefault()}};i.removeEvent=u.removeEventListener?function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i,!1)}:function(n,t,i){var r="on"+t;n.detachEvent&&(typeof n[r]===o&&(n[r]=null),n.detachEvent(r,i))};i.Event=function(n,t){return this instanceof i.Event?(n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||void 0===n.defaultPrevented&&(n.returnValue===!1||n.getPreventDefault&&n.getPreventDefault())?vt:it):this.type=n,t&&i.extend(this,t),this.timeStamp=n&&n.timeStamp||i.now(),void(this[i.expando]=!0)):new i.Event(n,t)};i.Event.prototype={isDefaultPrevented:it,isPropagationStopped:it,isImmediatePropagationStopped:it,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=vt;n&&(n.preventDefault?n.preventDefault():n.returnValue=!1)},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=vt;n&&(n.stopPropagation&&n.stopPropagation(),n.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=vt;this.stopPropagation()}};i.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(n,t){i.event.special[n]={delegateType:t,bindType:t,handle:function(n){var u,f=this,r=n.relatedTarget,e=n.handleObj;return(!r||r!==f&&!i.contains(f,r))&&(n.type=e.origType,u=e.handler.apply(this,arguments),n.type=t),u}}});r.submitBubbles||(i.event.special.submit={setup:function(){return i.nodeName(this,"form")?!1:void i.event.add(this,"click._submit keypress._submit",function(n){var r=n.target,t=i.nodeName(r,"input")||i.nodeName(r,"button")?r.form:void 0;t&&!i._data(t,"submitBubbles")&&(i.event.add(t,"submit._submit",function(n){n._submit_bubble=!0}),i._data(t,"submitBubbles",!0))})},postDispatch:function(n){n._submit_bubble&&(delete n._submit_bubble,this.parentNode&&!n.isTrigger&&i.event.simulate("submit",this.parentNode,n,!0))},teardown:function(){return i.nodeName(this,"form")?!1:void i.event.remove(this,"._submit")}});r.changeBubbles||(i.event.special.change={setup:function(){return si.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(i.event.add(this,"propertychange._change",function(n){"checked"===n.originalEvent.propertyName&&(this._just_changed=!0)}),i.event.add(this,"click._change",function(n){this._just_changed&&!n.isTrigger&&(this._just_changed=!1);i.event.simulate("change",this,n,!0)})),!1):void i.event.add(this,"beforeactivate._change",function(n){var t=n.target;si.test(t.nodeName)&&!i._data(t,"changeBubbles")&&(i.event.add(t,"change._change",function(n){!this.parentNode||n.isSimulated||n.isTrigger||i.event.simulate("change",this.parentNode,n,!0)}),i._data(t,"changeBubbles",!0))})},handle:function(n){var t=n.target;if(this!==t||n.isSimulated||n.isTrigger||"radio"!==t.type&&"checkbox"!==t.type)return n.handleObj.handler.apply(this,arguments)},teardown:function(){return i.event.remove(this,"._change"),!si.test(this.nodeName)}});r.focusinBubbles||i.each({focus:"focusin",blur:"focusout"},function(n,t){var r=function(n){i.event.simulate(t,n.target,i.event.fix(n),!0)};i.event.special[t]={setup:function(){var u=this.ownerDocument||this,f=i._data(u,t);f||u.addEventListener(n,r,!0);i._data(u,t,(f||0)+1)},teardown:function(){var u=this.ownerDocument||this,f=i._data(u,t)-1;f?i._data(u,t,f):(u.removeEventListener(n,r,!0),i._removeData(u,t))}}});i.fn.extend({on:function(n,t,r,u,f){var o,e;if("object"==typeof n){"string"!=typeof t&&(r=r||t,t=void 0);for(o in n)this.on(o,t,r,n[o],f);return this}if(null==r&&null==u?(u=t,r=t=void 0):null==u&&("string"==typeof t?(u=r,r=void 0):(u=r,r=t,t=void 0)),u===!1)u=it;else if(!u)return this;return 1===f&&(e=u,u=function(n){return i().off(n),e.apply(this,arguments)},u.guid=e.guid||(e.guid=i.guid++)),this.each(function(){i.event.add(this,n,u,r,t)})},one:function(n,t,i,r){return this.on(n,t,i,r,1)},off:function(n,t,r){var u,f;if(n&&n.preventDefault&&n.handleObj)return u=n.handleObj,i(n.delegateTarget).off(u.namespace?u.origType+"."+u.namespace:u.origType,u.selector,u.handler),this;if("object"==typeof n){for(f in n)this.off(f,t,n[f]);return this}return(t===!1||"function"==typeof t)&&(r=t,t=void 0),r===!1&&(r=it),this.each(function(){i.event.remove(this,n,r,t)})},trigger:function(n,t){return this.each(function(){i.event.trigger(n,t,this)})},triggerHandler:function(n,t){var r=this[0];if(r)return i.event.trigger(n,t,r,!0)}});var nu="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ce=/ jQuery\d+="(?:null|\d+)"/g,tu=new RegExp("<(?:"+nu+")[\\s/>]","i"),hi=/^\s+/,iu=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ru=/<([\w:]+)/,uu=/<tbody/i,le=/<|&#?\w+;/,ae=/<(?:script|style|link)/i,ve=/checked\s*(?:[^=]|=\s*.checked.)/i,fu=/^$|\/(?:java|ecma)script/i,ye=/^true\/(.*)/,pe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,s={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:r.htmlSerialize?[0,"",""]:[1,"X<div>","<\/div>"]},we=gr(u),ci=we.appendChild(u.createElement("div"));s.optgroup=s.option;s.tbody=s.tfoot=s.colgroup=s.caption=s.thead;s.th=s.td;i.extend({clone:function(n,t,u){var e,c,s,o,h,l=i.contains(n.ownerDocument,n);if(r.html5Clone||i.isXMLDoc(n)||!tu.test("<"+n.nodeName+">")?s=n.cloneNode(!0):(ci.innerHTML=n.outerHTML,ci.removeChild(s=ci.firstChild)),!(r.noCloneEvent&&r.noCloneChecked||1!==n.nodeType&&11!==n.nodeType||i.isXMLDoc(n)))for(e=f(s),h=f(n),o=0;null!=(c=h[o]);++o)e[o]&&ke(c,e[o]);if(t)if(u)for(h=h||f(n),e=e||f(s),o=0;null!=(c=h[o]);o++)hu(c,e[o]);else hu(n,s);return e=f(s,"script"),e.length>0&&li(e,!l&&f(n,"script")),e=h=c=null,s},buildFragment:function(n,t,u,e){for(var c,o,b,h,p,w,a,k=n.length,v=gr(t),l=[],y=0;k>y;y++)if(o=n[y],o||0===o)if("object"===i.type(o))i.merge(l,o.nodeType?[o]:o);else if(le.test(o)){for(h=h||v.appendChild(t.createElement("div")),p=(ru.exec(o)||["",""])[1].toLowerCase(),a=s[p]||s._default,h.innerHTML=a[1]+o.replace(iu,"<$1><\/$2>")+a[2],c=a[0];c--;)h=h.lastChild;if(!r.leadingWhitespace&&hi.test(o)&&l.push(t.createTextNode(hi.exec(o)[0])),!r.tbody)for(o="table"!==p||uu.test(o)?"<table>"!==a[1]||uu.test(o)?0:h:h.firstChild,c=o&&o.childNodes.length;c--;)i.nodeName(w=o.childNodes[c],"tbody")&&!w.childNodes.length&&o.removeChild(w);for(i.merge(l,h.childNodes),h.textContent="";h.firstChild;)h.removeChild(h.firstChild);h=v.lastChild}else l.push(t.createTextNode(o));for(h&&v.removeChild(h),r.appendChecked||i.grep(f(l,"input"),be),y=0;o=l[y++];)if((!e||-1===i.inArray(o,e))&&(b=i.contains(o.ownerDocument,o),h=f(v.appendChild(o),"script"),b&&li(h),u))for(c=0;o=h[c++];)fu.test(o.type||"")&&u.push(o);return h=null,v},cleanData:function(n,t){for(var u,e,f,s,a=0,h=i.expando,l=i.cache,v=r.deleteExpando,y=i.event.special;null!=(u=n[a]);a++)if((t||i.acceptData(u))&&(f=u[h],s=f&&l[f])){if(s.events)for(e in s.events)y[e]?i.event.remove(u,e):i.removeEvent(u,e,s.handle);l[f]&&(delete l[f],v?delete u[h]:typeof u.removeAttribute!==o?u.removeAttribute(h):u[h]=null,c.push(f))}}});i.fn.extend({text:function(n){return b(this,function(n){return void 0===n?i.text(this):this.empty().append((this[0]&&this[0].ownerDocument||u).createTextNode(n))},null,n,arguments.length)},append:function(){return this.domManip(arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=eu(this,n);t.appendChild(n)}})},prepend:function(){return this.domManip(arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=eu(this,n);t.insertBefore(n,t.firstChild)}})},before:function(){return this.domManip(arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return this.domManip(arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},remove:function(n,t){for(var r,e=n?i.filter(n,this):this,u=0;null!=(r=e[u]);u++)t||1!==r.nodeType||i.cleanData(f(r)),r.parentNode&&(t&&i.contains(r.ownerDocument,r)&&li(f(r,"script")),r.parentNode.removeChild(r));return this},empty:function(){for(var n,t=0;null!=(n=this[t]);t++){for(1===n.nodeType&&i.cleanData(f(n,!1));n.firstChild;)n.removeChild(n.firstChild);n.options&&i.nodeName(n,"select")&&(n.options.length=0)}return this},clone:function(n,t){return n=null==n?!1:n,t=null==t?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){return b(this,function(n){var t=this[0]||{},u=0,e=this.length;if(void 0===n)return 1===t.nodeType?t.innerHTML.replace(ce,""):void 0;if(!("string"!=typeof n||ae.test(n)||!r.htmlSerialize&&tu.test(n)||!r.leadingWhitespace&&hi.test(n)||s[(ru.exec(n)||["",""])[1].toLowerCase()])){n=n.replace(iu,"<$1><\/$2>");try{for(;e>u;u++)t=this[u]||{},1===t.nodeType&&(i.cleanData(f(t,!1)),t.innerHTML=n);t=0}catch(o){}}t&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(){var n=arguments[0];return this.domManip(arguments,function(t){n=this.parentNode;i.cleanData(f(this));n&&n.replaceChild(t,this)}),n&&(n.length||n.nodeType)?this:this.remove()},detach:function(n){return this.remove(n,!0)},domManip:function(n,t){n=ir.apply([],n);var h,u,c,o,v,s,e=0,l=this.length,p=this,w=l-1,a=n[0],y=i.isFunction(a);if(y||l>1&&"string"==typeof a&&!r.checkClone&&ve.test(a))return this.each(function(i){var r=p.eq(i);y&&(n[0]=a.call(this,i,r.html()));r.domManip(n,t)});if(l&&(s=i.buildFragment(n,this[0].ownerDocument,!1,this),h=s.firstChild,1===s.childNodes.length&&(s=h),h)){for(o=i.map(f(s,"script"),ou),c=o.length;l>e;e++)u=s,e!==w&&(u=i.clone(u,!0,!0),c&&i.merge(o,f(u,"script"))),t.call(this[e],u,e);if(c)for(v=o[o.length-1].ownerDocument,i.map(o,su),e=0;c>e;e++)u=o[e],fu.test(u.type||"")&&!i._data(u,"globalEval")&&i.contains(v,u)&&(u.src?i._evalUrl&&i._evalUrl(u.src):i.globalEval((u.text||u.textContent||u.innerHTML||"").replace(pe,"")));s=h=null}return this}});i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,t){i.fn[n]=function(n){for(var u,r=0,f=[],e=i(n),o=e.length-1;o>=r;r++)u=r===o?this:this.clone(!0),i(e[r])[t](u),ti.apply(f,u.get());return this.pushStack(f)}});ai={};!function(){var t,i,n=u.createElement("div"),f="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;padding:0;margin:0;border:0";n.innerHTML="  <link/><table><\/table><a href='/a'>a<\/a><input type='checkbox'/>";t=n.getElementsByTagName("a")[0];t.style.cssText="float:left;opacity:.5";r.opacity=/^0.5/.test(t.style.opacity);r.cssFloat=!!t.style.cssFloat;n.style.backgroundClip="content-box";n.cloneNode(!0).style.backgroundClip="";r.clearCloneStyle="content-box"===n.style.backgroundClip;t=n=null;r.shrinkWrapBlocks=function(){var t,r,n,e;if(null==i){if(t=u.getElementsByTagName("body")[0],!t)return;e="border:0;width:0;height:0;position:absolute;top:0;left:-9999px";r=u.createElement("div");n=u.createElement("div");t.appendChild(r).appendChild(n);i=!1;typeof n.style.zoom!==o&&(n.style.cssText=f+";width:1px;padding:1px;zoom:1",n.innerHTML="<div><\/div>",n.firstChild.style.width="5px",i=3!==n.offsetWidth);t.removeChild(r);t=r=n=null}return i}}();var au=/^margin/,yt=new RegExp("^("+at+")(?!px)[a-z%]+$","i"),k,d,de=/^(top|right|bottom|left)$/;n.getComputedStyle?(k=function(n){return n.ownerDocument.defaultView.getComputedStyle(n,null)},d=function(n,t,r){var e,o,s,u,f=n.style;return r=r||k(n),u=r?r.getPropertyValue(t)||r[t]:void 0,r&&(""!==u||i.contains(n.ownerDocument,n)||(u=i.style(n,t)),yt.test(u)&&au.test(t)&&(e=f.width,o=f.minWidth,s=f.maxWidth,f.minWidth=f.maxWidth=f.width=u,u=r.width,f.width=e,f.minWidth=o,f.maxWidth=s)),void 0===u?u:u+""}):u.documentElement.currentStyle&&(k=function(n){return n.currentStyle},d=function(n,t,i){var o,f,e,r,u=n.style;return i=i||k(n),r=i?i[t]:void 0,null==r&&u&&u[t]&&(r=u[t]),yt.test(r)&&!de.test(t)&&(o=u.left,f=n.runtimeStyle,e=f&&f.left,e&&(f.left=n.currentStyle.left),u.left="fontSize"===t?"1em":r,r=u.pixelLeft+"px",u.left=o,e&&(f.left=e)),void 0===r?r:r+""||"auto"});!function(){function a(){var f,t,r=u.getElementsByTagName("body")[0];r&&(f=u.createElement("div"),t=u.createElement("div"),f.style.cssText=l,r.appendChild(f).appendChild(t),t.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:absolute;display:block;padding:1px;border:1px;width:4px;margin-top:1%;top:1%",i.swap(r,null!=r.style.zoom?{zoom:1}:{},function(){c=4===t.offsetWidth}),o=!0,s=!1,h=!0,n.getComputedStyle&&(s="1%"!==(n.getComputedStyle(t,null)||{}).top,o="4px"===(n.getComputedStyle(t,null)||{width:"4px"}).width),r.removeChild(f),t=r=null)}var f,e,c,o,s,h,t=u.createElement("div"),l="border:0;width:0;height:0;position:absolute;top:0;left:-9999px",v="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;padding:0;margin:0;border:0";t.innerHTML="  <link/><table><\/table><a href='/a'>a<\/a><input type='checkbox'/>";f=t.getElementsByTagName("a")[0];f.style.cssText="float:left;opacity:.5";r.opacity=/^0.5/.test(f.style.opacity);r.cssFloat=!!f.style.cssFloat;t.style.backgroundClip="content-box";t.cloneNode(!0).style.backgroundClip="";r.clearCloneStyle="content-box"===t.style.backgroundClip;f=t=null;i.extend(r,{reliableHiddenOffsets:function(){if(null!=e)return e;var i,n,f,t=u.createElement("div"),r=u.getElementsByTagName("body")[0];if(r)return t.setAttribute("className","t"),t.innerHTML="  <link/><table><\/table><a href='/a'>a<\/a><input type='checkbox'/>",i=u.createElement("div"),i.style.cssText=l,r.appendChild(i).appendChild(t),t.innerHTML="<table><tr><td><\/td><td>t<\/td><\/tr><\/table>",n=t.getElementsByTagName("td"),n[0].style.cssText="padding:0;margin:0;border:0;display:none",f=0===n[0].offsetHeight,n[0].style.display="",n[1].style.display="none",e=f&&0===n[0].offsetHeight,r.removeChild(i),t=r=null,e},boxSizing:function(){return null==c&&a(),c},boxSizingReliable:function(){return null==o&&a(),o},pixelPosition:function(){return null==s&&a(),s},reliableMarginRight:function(){var r,f,t,i;if(null==h&&n.getComputedStyle){if(r=u.getElementsByTagName("body")[0],!r)return;f=u.createElement("div");t=u.createElement("div");f.style.cssText=l;r.appendChild(f).appendChild(t);i=t.appendChild(u.createElement("div"));i.style.cssText=t.style.cssText=v;i.style.marginRight=i.style.width="0";t.style.width="1px";h=!parseFloat((n.getComputedStyle(i,null)||{}).marginRight);r.removeChild(f)}return h}})}();i.swap=function(n,t,i,r){var f,u,e={};for(u in t)e[u]=n.style[u],n.style[u]=t[u];f=i.apply(n,r||[]);for(u in t)n.style[u]=e[u];return f};var vi=/alpha\([^)]*\)/i,ge=/opacity\s*=\s*([^)]*)/,no=/^(none|table(?!-c[ea]).+)/,to=new RegExp("^("+at+")(.*)$","i"),io=new RegExp("^([+-])=("+at+")","i"),ro={position:"absolute",visibility:"hidden",display:"block"},yu={letterSpacing:0,fontWeight:400},pu=["Webkit","O","Moz","ms"];i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=d(n,"opacity");return""===i?"1":i}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:r.cssFloat?"cssFloat":"styleFloat"},style:function(n,t,u,f){if(n&&3!==n.nodeType&&8!==n.nodeType&&n.style){var o,c,e,s=i.camelCase(t),h=n.style;if(t=i.cssProps[s]||(i.cssProps[s]=wu(h,s)),e=i.cssHooks[t]||i.cssHooks[s],void 0===u)return e&&"get"in e&&void 0!==(o=e.get(n,!1,f))?o:h[t];if(c=typeof u,"string"===c&&(o=io.exec(u))&&(u=(o[1]+1)*o[2]+parseFloat(i.css(n,t)),c="number"),null!=u&&u===u&&("number"!==c||i.cssNumber[s]||(u+="px"),r.clearCloneStyle||""!==u||0!==t.indexOf("background")||(h[t]="inherit"),!(e&&"set"in e&&void 0===(u=e.set(n,u,f)))))try{h[t]="";h[t]=u}catch(l){}}},css:function(n,t,r,u){var s,f,e,o=i.camelCase(t);return t=i.cssProps[o]||(i.cssProps[o]=wu(n.style,o)),e=i.cssHooks[t]||i.cssHooks[o],e&&"get"in e&&(f=e.get(n,!0,r)),void 0===f&&(f=d(n,t,u)),"normal"===f&&t in yu&&(f=yu[t]),""===r||r?(s=parseFloat(f),r===!0||i.isNumeric(s)?s||0:f):f}});i.each(["height","width"],function(n,t){i.cssHooks[t]={get:function(n,r,u){if(r)return 0===n.offsetWidth&&no.test(i.css(n,"display"))?i.swap(n,ro,function(){return gu(n,t,u)}):gu(n,t,u)},set:function(n,u,f){var e=f&&k(n);return ku(n,u,f?du(n,t,f,r.boxSizing()&&"border-box"===i.css(n,"boxSizing",!1,e),e):0)}}});r.opacity||(i.cssHooks.opacity={get:function(n,t){return ge.test((t&&n.currentStyle?n.currentStyle.filter:n.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(n,t){var r=n.style,u=n.currentStyle,e=i.isNumeric(t)?"alpha(opacity="+100*t+")":"",f=u&&u.filter||r.filter||"";r.zoom=1;(t>=1||""===t)&&""===i.trim(f.replace(vi,""))&&r.removeAttribute&&(r.removeAttribute("filter"),""===t||u&&!u.filter)||(r.filter=vi.test(f)?f.replace(vi,e):f+" "+e)}});i.cssHooks.marginRight=vu(r.reliableMarginRight,function(n,t){if(t)return i.swap(n,{display:"inline-block"},d,[n,"marginRight"])});i.each({margin:"",padding:"",border:"Width"},function(n,t){i.cssHooks[n+t]={expand:function(i){for(var r=0,f={},u="string"==typeof i?i.split(" "):[i];4>r;r++)f[n+w[r]+t]=u[r]||u[r-2]||u[0];return f}};au.test(n)||(i.cssHooks[n+t].set=ku)});i.fn.extend({css:function(n,t){return b(this,function(n,t,r){var f,e,o={},u=0;if(i.isArray(t)){for(f=k(n),e=t.length;e>u;u++)o[t[u]]=i.css(n,t[u],!1,f);return o}return void 0!==r?i.style(n,t,r):i.css(n,t)},n,t,arguments.length>1)},show:function(){return bu(this,!0)},hide:function(){return bu(this)},toggle:function(n){return"boolean"==typeof n?n?this.show():this.hide():this.each(function(){et(this)?i(this).show():i(this).hide()})}});i.Tween=e;e.prototype={constructor:e,init:function(n,t,r,u,f,e){this.elem=n;this.prop=r;this.easing=f||"swing";this.options=t;this.start=this.now=this.cur();this.end=u;this.unit=e||(i.cssNumber[r]?"":"px")},cur:function(){var n=e.propHooks[this.prop];return n&&n.get?n.get(this):e.propHooks._default.get(this)},run:function(n){var r,t=e.propHooks[this.prop];return this.pos=r=this.options.duration?i.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):n,this.now=(this.end-this.start)*r+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),t&&t.set?t.set(this):e.propHooks._default.set(this),this}};e.prototype.init.prototype=e.prototype;e.propHooks={_default:{get:function(n){var t;return null==n.elem[n.prop]||n.elem.style&&null!=n.elem.style[n.prop]?(t=i.css(n.elem,n.prop,""),t&&"auto"!==t?t:0):n.elem[n.prop]},set:function(n){i.fx.step[n.prop]?i.fx.step[n.prop](n):n.elem.style&&(null!=n.elem.style[i.cssProps[n.prop]]||i.cssHooks[n.prop])?i.style(n.elem,n.prop,n.now+n.unit):n.elem[n.prop]=n.now}}};e.propHooks.scrollTop=e.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}};i.easing={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2}};i.fx=e.prototype.init;i.fx.step={};var rt,pt,uo=/^(?:toggle|show|hide)$/,nf=new RegExp("^(?:([+-])=|)("+at+")([a-z%]*)$","i"),fo=/queueHooks$/,wt=[eo],st={"*":[function(n,t){var f=this.createTween(n,t),s=f.cur(),r=nf.exec(t),e=r&&r[3]||(i.cssNumber[n]?"":"px"),u=(i.cssNumber[n]||"px"!==e&&+s)&&nf.exec(i.css(f.elem,n)),o=1,h=20;if(u&&u[3]!==e){e=e||u[3];r=r||[];u=+s||1;do o=o||".5",u/=o,i.style(f.elem,n,u+e);while(o!==(o=f.cur()/s)&&1!==o&&--h)}return r&&(u=f.start=+u||+s||0,f.unit=e,f.end=r[1]?u+(r[1]+1)*r[2]:+r[2]),f}]};i.Animation=i.extend(uf,{tweener:function(n,t){i.isFunction(n)?(t=n,n=["*"]):n=n.split(" ");for(var r,u=0,f=n.length;f>u;u++)r=n[u],st[r]=st[r]||[],st[r].unshift(t)},prefilter:function(n,t){t?wt.unshift(n):wt.push(n)}});i.speed=function(n,t,r){var u=n&&"object"==typeof n?i.extend({},n):{complete:r||!r&&t||i.isFunction(n)&&n,duration:n,easing:r&&t||t&&!i.isFunction(t)&&t};return u.duration=i.fx.off?0:"number"==typeof u.duration?u.duration:u.duration in i.fx.speeds?i.fx.speeds[u.duration]:i.fx.speeds._default,(null==u.queue||u.queue===!0)&&(u.queue="fx"),u.old=u.complete,u.complete=function(){i.isFunction(u.old)&&u.old.call(this);u.queue&&i.dequeue(this,u.queue)},u};i.fn.extend({fadeTo:function(n,t,i,r){return this.filter(et).css("opacity",0).show().end().animate({opacity:t},n,i,r)},animate:function(n,t,r,u){var o=i.isEmptyObject(n),e=i.speed(t,r,u),f=function(){var t=uf(this,i.extend({},n),e);(o||i._data(this,"finish"))&&t.stop(!0)};return f.finish=f,o||e.queue===!1?this.each(f):this.queue(e.queue,f)},stop:function(n,t,r){var u=function(n){var t=n.stop;delete n.stop;t(r)};return"string"!=typeof n&&(r=t,t=n,n=void 0),t&&n!==!1&&this.queue(n||"fx",[]),this.each(function(){var o=!0,t=null!=n&&n+"queueHooks",e=i.timers,f=i._data(this);if(t)f[t]&&f[t].stop&&u(f[t]);else for(t in f)f[t]&&f[t].stop&&fo.test(t)&&u(f[t]);for(t=e.length;t--;)e[t].elem!==this||null!=n&&e[t].queue!==n||(e[t].anim.stop(r),o=!1,e.splice(t,1));(o||!r)&&i.dequeue(this,n)})},finish:function(n){return n!==!1&&(n=n||"fx"),this.each(function(){var t,f=i._data(this),r=f[n+"queue"],e=f[n+"queueHooks"],u=i.timers,o=r?r.length:0;for(f.finish=!0,i.queue(this,n,[]),e&&e.stop&&e.stop.call(this,!0),t=u.length;t--;)u[t].elem===this&&u[t].queue===n&&(u[t].anim.stop(!0),u.splice(t,1));for(t=0;o>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete f.finish})}});i.each(["toggle","show","hide"],function(n,t){var r=i.fn[t];i.fn[t]=function(n,i,u){return null==n||"boolean"==typeof n?r.apply(this,arguments):this.animate(bt(t,!0),n,i,u)}});i.each({slideDown:bt("show"),slideUp:bt("hide"),slideToggle:bt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,t){i.fn[n]=function(n,i,r){return this.animate(t,n,i,r)}});i.timers=[];i.fx.tick=function(){var r,n=i.timers,t=0;for(rt=i.now();t<n.length;t++)r=n[t],r()||n[t]!==r||n.splice(t--,1);n.length||i.fx.stop();rt=void 0};i.fx.timer=function(n){i.timers.push(n);n()?i.fx.start():i.timers.pop()};i.fx.interval=13;i.fx.start=function(){pt||(pt=setInterval(i.fx.tick,i.fx.interval))};i.fx.stop=function(){clearInterval(pt);pt=null};i.fx.speeds={slow:600,fast:200,_default:400};i.fn.delay=function(n,t){return n=i.fx?i.fx.speeds[n]||n:n,t=t||"fx",this.queue(t,function(t,i){var r=setTimeout(t,n);i.stop=function(){clearTimeout(r)}})},function(){var i,n,f,e,t=u.createElement("div");t.setAttribute("className","t");t.innerHTML="  <link/><table><\/table><a href='/a'>a<\/a><input type='checkbox'/>";i=t.getElementsByTagName("a")[0];f=u.createElement("select");e=f.appendChild(u.createElement("option"));n=t.getElementsByTagName("input")[0];i.style.cssText="top:1px";r.getSetAttribute="t"!==t.className;r.style=/top/.test(i.getAttribute("style"));r.hrefNormalized="/a"===i.getAttribute("href");r.checkOn=!!n.value;r.optSelected=e.selected;r.enctype=!!u.createElement("form").enctype;f.disabled=!0;r.optDisabled=!e.disabled;n=u.createElement("input");n.setAttribute("value","");r.input=""===n.getAttribute("value");n.value="t";n.setAttribute("type","radio");r.radioValue="t"===n.value;i=n=f=e=t=null}();ff=/\r/g;i.fn.extend({val:function(n){var t,r,f,u=this[0];return arguments.length?(f=i.isFunction(n),this.each(function(r){var u;1===this.nodeType&&(u=f?n.call(this,r,i(this).val()):n,null==u?u="":"number"==typeof u?u+="":i.isArray(u)&&(u=i.map(u,function(n){return null==n?"":n+""})),t=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,u,"value")||(this.value=u))})):u?(t=i.valHooks[u.type]||i.valHooks[u.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(r=t.get(u,"value"))?r:(r=u.value,"string"==typeof r?r.replace(ff,""):null==r?"":r)):void 0}});i.extend({valHooks:{option:{get:function(n){var t=i.find.attr(n,"value");return null!=t?t:i.text(n)}},select:{get:function(n){for(var o,t,s=n.options,u=n.selectedIndex,f="select-one"===n.type||0>u,h=f?null:[],c=f?u+1:s.length,e=0>u?c:f?u:0;c>e;e++)if(t=s[e],!(!t.selected&&e!==u||(r.optDisabled?t.disabled:null!==t.getAttribute("disabled"))||t.parentNode.disabled&&i.nodeName(t.parentNode,"optgroup"))){if(o=i(t).val(),f)return o;h.push(o)}return h},set:function(n,t){for(var f,r,u=n.options,o=i.makeArray(t),e=u.length;e--;)if(r=u[e],i.inArray(i.valHooks.option.get(r),o)>=0)try{r.selected=f=!0}catch(s){r.scrollHeight}else r.selected=!1;return f||(n.selectedIndex=-1),u}}}});i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(n,t){if(i.isArray(t))return n.checked=i.inArray(i(n).val(),t)>=0}};r.checkOn||(i.valHooks[this].get=function(n){return null===n.getAttribute("value")?"on":n.value})});var ut,ef,v=i.expr.attrHandle,yi=/^(?:checked|selected)$/i,g=r.getSetAttribute,kt=r.input;i.fn.extend({attr:function(n,t){return b(this,i.attr,n,t,arguments.length>1)},removeAttr:function(n){return this.each(function(){i.removeAttr(this,n)})}});i.extend({attr:function(n,t,r){var u,f,e=n.nodeType;if(n&&3!==e&&8!==e&&2!==e)return typeof n.getAttribute===o?i.prop(n,t,r):(1===e&&i.isXMLDoc(n)||(t=t.toLowerCase(),u=i.attrHooks[t]||(i.expr.match.bool.test(t)?ef:ut)),void 0===r?u&&"get"in u&&null!==(f=u.get(n,t))?f:(f=i.find.attr(n,t),null==f?void 0:f):null!==r?u&&"set"in u&&void 0!==(f=u.set(n,r,t))?f:(n.setAttribute(t,r+""),r):void i.removeAttr(n,t))},removeAttr:function(n,t){var r,u,e=0,f=t&&t.match(h);if(f&&1===n.nodeType)while(r=f[e++])u=i.propFix[r]||r,i.expr.match.bool.test(r)?kt&&g||!yi.test(r)?n[u]=!1:n[i.camelCase("default-"+r)]=n[u]=!1:i.attr(n,r,""),n.removeAttribute(g?r:u)},attrHooks:{type:{set:function(n,t){if(!r.radioValue&&"radio"===t&&i.nodeName(n,"input")){var u=n.value;return n.setAttribute("type",t),u&&(n.value=u),t}}}}});ef={set:function(n,t,r){return t===!1?i.removeAttr(n,r):kt&&g||!yi.test(r)?n.setAttribute(!g&&i.propFix[r]||r,r):n[i.camelCase("default-"+r)]=n[r]=!0,r}};i.each(i.expr.match.bool.source.match(/\w+/g),function(n,t){var r=v[t]||i.find.attr;v[t]=kt&&g||!yi.test(t)?function(n,t,i){var u,f;return i||(f=v[t],v[t]=u,u=null!=r(n,t,i)?t.toLowerCase():null,v[t]=f),u}:function(n,t,r){if(!r)return n[i.camelCase("default-"+t)]?t.toLowerCase():null}});kt&&g||(i.attrHooks.value={set:function(n,t,r){return i.nodeName(n,"input")?void(n.defaultValue=t):ut&&ut.set(n,t,r)}});g||(ut={set:function(n,t,i){var r=n.getAttributeNode(i);return r||n.setAttributeNode(r=n.ownerDocument.createAttribute(i)),r.value=t+="","value"===i||t===n.getAttribute(i)?t:void 0}},v.id=v.name=v.coords=function(n,t,i){var r;if(!i)return(r=n.getAttributeNode(t))&&""!==r.value?r.value:null},i.valHooks.button={get:function(n,t){var i=n.getAttributeNode(t);if(i&&i.specified)return i.value},set:ut.set},i.attrHooks.contenteditable={set:function(n,t,i){ut.set(n,""===t?!1:t,i)}},i.each(["width","height"],function(n,t){i.attrHooks[t]={set:function(n,i){if(""===i)return(n.setAttribute(t,"auto"),i)}}}));r.style||(i.attrHooks.style={get:function(n){return n.style.cssText||void 0},set:function(n,t){return n.style.cssText=t+""}});of=/^(?:input|select|textarea|button|object)$/i;sf=/^(?:a|area)$/i;i.fn.extend({prop:function(n,t){return b(this,i.prop,n,t,arguments.length>1)},removeProp:function(n){return n=i.propFix[n]||n,this.each(function(){try{this[n]=void 0;delete this[n]}catch(t){}})}});i.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(n,t,r){var f,u,o,e=n.nodeType;if(n&&3!==e&&8!==e&&2!==e)return o=1!==e||!i.isXMLDoc(n),o&&(t=i.propFix[t]||t,u=i.propHooks[t]),void 0!==r?u&&"set"in u&&void 0!==(f=u.set(n,r,t))?f:n[t]=r:u&&"get"in u&&null!==(f=u.get(n,t))?f:n[t]},propHooks:{tabIndex:{get:function(n){var t=i.find.attr(n,"tabindex");return t?parseInt(t,10):of.test(n.nodeName)||sf.test(n.nodeName)&&n.href?0:-1}}}});r.hrefNormalized||i.each(["href","src"],function(n,t){i.propHooks[t]={get:function(n){return n.getAttribute(t,4)}}});r.optSelected||(i.propHooks.selected={get:function(n){var t=n.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}});i.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){i.propFix[this.toLowerCase()]=this});r.enctype||(i.propFix.enctype="encoding");dt=/[\t\r\n\f]/g;i.fn.extend({addClass:function(n){var o,t,r,u,s,f,e=0,c=this.length,l="string"==typeof n&&n;if(i.isFunction(n))return this.each(function(t){i(this).addClass(n.call(this,t,this.className))});if(l)for(o=(n||"").match(h)||[];c>e;e++)if(t=this[e],r=1===t.nodeType&&(t.className?(" "+t.className+" ").replace(dt," "):" ")){for(s=0;u=o[s++];)r.indexOf(" "+u+" ")<0&&(r+=u+" ");f=i.trim(r);t.className!==f&&(t.className=f)}return this},removeClass:function(n){var o,t,r,u,s,f,e=0,c=this.length,l=0===arguments.length||"string"==typeof n&&n;if(i.isFunction(n))return this.each(function(t){i(this).removeClass(n.call(this,t,this.className))});if(l)for(o=(n||"").match(h)||[];c>e;e++)if(t=this[e],r=1===t.nodeType&&(t.className?(" "+t.className+" ").replace(dt," "):"")){for(s=0;u=o[s++];)while(r.indexOf(" "+u+" ")>=0)r=r.replace(" "+u+" "," ");f=n?i.trim(r):"";t.className!==f&&(t.className=f)}return this},toggleClass:function(n,t){var r=typeof n;return"boolean"==typeof t&&"string"===r?t?this.addClass(n):this.removeClass(n):this.each(i.isFunction(n)?function(r){i(this).toggleClass(n.call(this,r,this.className,t),t)}:function(){if("string"===r)for(var t,f=0,u=i(this),e=n.match(h)||[];t=e[f++];)u.hasClass(t)?u.removeClass(t):u.addClass(t);else(r===o||"boolean"===r)&&(this.className&&i._data(this,"__className__",this.className),this.className=this.className||n===!1?"":i._data(this,"__className__")||"")})},hasClass:function(n){for(var i=" "+n+" ",t=0,r=this.length;r>t;t++)if(1===this[t].nodeType&&(" "+this[t].className+" ").replace(dt," ").indexOf(i)>=0)return!0;return!1}});i.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(n,t){i.fn[t]=function(n,i){return arguments.length>0?this.on(t,null,n,i):this.trigger(t)}});i.fn.extend({hover:function(n,t){return this.mouseenter(n).mouseleave(t||n)},bind:function(n,t,i){return this.on(n,null,t,i)},unbind:function(n,t){return this.off(n,null,t)},delegate:function(n,t,i,r){return this.on(t,n,i,r)},undelegate:function(n,t,i){return 1===arguments.length?this.off(n,"**"):this.off(t,n||"**",i)}});var pi=i.now(),wi=/\?/,so=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;i.parseJSON=function(t){if(n.JSON&&n.JSON.parse)return n.JSON.parse(t+"");var f,r=null,u=i.trim(t+"");return u&&!i.trim(u.replace(so,function(n,t,i,u){return f&&t&&(r=0),0===r?n:(f=i||t,r+=!u-!i,"")}))?Function("return "+u)():i.error("Invalid JSON: "+t)};i.parseXML=function(t){var r,u;if(!t||"string"!=typeof t)return null;try{n.DOMParser?(u=new DOMParser,r=u.parseFromString(t,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(t))}catch(f){r=void 0}return r&&r.documentElement&&!r.getElementsByTagName("parsererror").length||i.error("Invalid XML: "+t),r};var nt,y,ho=/#.*$/,hf=/([?&])_=[^&]*/,co=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,lo=/^(?:GET|HEAD)$/,ao=/^\/\//,cf=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,lf={},bi={},af="*/".concat("*");try{y=location.href}catch(ts){y=u.createElement("a");y.href="";y=y.href}nt=cf.exec(y.toLowerCase())||[];i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:y,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(nt[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":af,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":i.parseJSON,"text xml":i.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,t){return t?ki(ki(n,i.ajaxSettings),t):ki(i.ajaxSettings,n)},ajaxPrefilter:vf(lf),ajaxTransport:vf(bi),ajax:function(n,t){function w(n,t,s,h){var v,it,nt,y,w,c=t;2!==e&&(e=2,k&&clearTimeout(k),a=void 0,b=h||"",u.readyState=n>0?4:0,v=n>=200&&300>n||304===n,s&&(y=vo(r,u,s)),y=yo(r,y,u,v),v?(r.ifModified&&(w=u.getResponseHeader("Last-Modified"),w&&(i.lastModified[f]=w),w=u.getResponseHeader("etag"),w&&(i.etag[f]=w)),204===n||"HEAD"===r.type?c="nocontent":304===n?c="notmodified":(c=y.state,it=y.data,nt=y.error,v=!nt)):(nt=c,(n||!c)&&(c="error",0>n&&(n=0))),u.status=n,u.statusText=(t||c)+"",v?g.resolveWith(o,[it,c,u]):g.rejectWith(o,[u,c,nt]),u.statusCode(p),p=void 0,l&&d.trigger(v?"ajaxSuccess":"ajaxError",[u,r,v?it:nt]),tt.fireWith(o,[u,c]),l&&(d.trigger("ajaxComplete",[u,r]),--i.active||i.event.trigger("ajaxStop")))}"object"==typeof n&&(t=n,n=void 0);t=t||{};var s,c,f,b,k,l,a,v,r=i.ajaxSetup({},t),o=r.context||r,d=r.context&&(o.nodeType||o.jquery)?i(o):i.event,g=i.Deferred(),tt=i.Callbacks("once memory"),p=r.statusCode||{},it={},rt={},e=0,ut="canceled",u={readyState:0,getResponseHeader:function(n){var t;if(2===e){if(!v)for(v={};t=co.exec(b);)v[t[1].toLowerCase()]=t[2];t=v[n.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===e?b:null},setRequestHeader:function(n,t){var i=n.toLowerCase();return e||(n=rt[i]=rt[i]||n,it[n]=t),this},overrideMimeType:function(n){return e||(r.mimeType=n),this},statusCode:function(n){var t;if(n)if(2>e)for(t in n)p[t]=[p[t],n[t]];else u.always(n[u.status]);return this},abort:function(n){var t=n||ut;return a&&a.abort(t),w(0,t),this}};if(g.promise(u).complete=tt.add,u.success=u.done,u.error=u.fail,r.url=((n||r.url||y)+"").replace(ho,"").replace(ao,nt[1]+"//"),r.type=t.method||t.type||r.method||r.type,r.dataTypes=i.trim(r.dataType||"*").toLowerCase().match(h)||[""],null==r.crossDomain&&(s=cf.exec(r.url.toLowerCase()),r.crossDomain=!(!s||s[1]===nt[1]&&s[2]===nt[2]&&(s[3]||("http:"===s[1]?"80":"443"))===(nt[3]||("http:"===nt[1]?"80":"443")))),r.data&&r.processData&&"string"!=typeof r.data&&(r.data=i.param(r.data,r.traditional)),yf(lf,r,t,u),2===e)return u;l=r.global;l&&0==i.active++&&i.event.trigger("ajaxStart");r.type=r.type.toUpperCase();r.hasContent=!lo.test(r.type);f=r.url;r.hasContent||(r.data&&(f=r.url+=(wi.test(f)?"&":"?")+r.data,delete r.data),r.cache===!1&&(r.url=hf.test(f)?f.replace(hf,"$1_="+pi++):f+(wi.test(f)?"&":"?")+"_="+pi++));r.ifModified&&(i.lastModified[f]&&u.setRequestHeader("If-Modified-Since",i.lastModified[f]),i.etag[f]&&u.setRequestHeader("If-None-Match",i.etag[f]));(r.data&&r.hasContent&&r.contentType!==!1||t.contentType)&&u.setRequestHeader("Content-Type",r.contentType);u.setRequestHeader("Accept",r.dataTypes[0]&&r.accepts[r.dataTypes[0]]?r.accepts[r.dataTypes[0]]+("*"!==r.dataTypes[0]?", "+af+"; q=0.01":""):r.accepts["*"]);for(c in r.headers)u.setRequestHeader(c,r.headers[c]);if(r.beforeSend&&(r.beforeSend.call(o,u,r)===!1||2===e))return u.abort();ut="abort";for(c in{success:1,error:1,complete:1})u[c](r[c]);if(a=yf(bi,r,t,u)){u.readyState=1;l&&d.trigger("ajaxSend",[u,r]);r.async&&r.timeout>0&&(k=setTimeout(function(){u.abort("timeout")},r.timeout));try{e=1;a.send(it,w)}catch(ft){if(!(2>e))throw ft;w(-1,ft)}}else w(-1,"No Transport");return u},getJSON:function(n,t,r){return i.get(n,t,r,"json")},getScript:function(n,t){return i.get(n,void 0,t,"script")}});i.each(["get","post"],function(n,t){i[t]=function(n,r,u,f){return i.isFunction(r)&&(f=f||u,u=r,r=void 0),i.ajax({url:n,type:t,dataType:f,data:r,success:u})}});i.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,t){i.fn[t]=function(n){return this.on(t,n)}});i._evalUrl=function(n){return i.ajax({url:n,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})};i.fn.extend({wrapAll:function(n){if(i.isFunction(n))return this.each(function(t){i(this).wrapAll(n.call(this,t))});if(this[0]){var t=i(n,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]);t.map(function(){for(var n=this;n.firstChild&&1===n.firstChild.nodeType;)n=n.firstChild;return n}).append(this)}return this},wrapInner:function(n){return this.each(i.isFunction(n)?function(t){i(this).wrapInner(n.call(this,t))}:function(){var t=i(this),r=t.contents();r.length?r.wrapAll(n):t.append(n)})},wrap:function(n){var t=i.isFunction(n);return this.each(function(r){i(this).wrapAll(t?n.call(this,r):n)})},unwrap:function(){return this.parent().each(function(){i.nodeName(this,"body")||i(this).replaceWith(this.childNodes)}).end()}});i.expr.filters.hidden=function(n){return n.offsetWidth<=0&&n.offsetHeight<=0||!r.reliableHiddenOffsets()&&"none"===(n.style&&n.style.display||i.css(n,"display"))};i.expr.filters.visible=function(n){return!i.expr.filters.hidden(n)};var po=/%20/g,wo=/\[\]$/,pf=/\r?\n/g,bo=/^(?:submit|button|image|reset|file)$/i,ko=/^(?:input|select|textarea|keygen)/i;i.param=function(n,t){var r,u=[],f=function(n,t){t=i.isFunction(t)?t():null==t?"":t;u[u.length]=encodeURIComponent(n)+"="+encodeURIComponent(t)};if(void 0===t&&(t=i.ajaxSettings&&i.ajaxSettings.traditional),i.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){f(this.name,this.value)});else for(r in n)di(r,n[r],t,f);return u.join("&").replace(po,"+")};i.fn.extend({serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var n=i.prop(this,"elements");return n?i.makeArray(n):this}).filter(function(){var n=this.type;return this.name&&!i(this).is(":disabled")&&ko.test(this.nodeName)&&!bo.test(n)&&(this.checked||!oi.test(n))}).map(function(n,t){var r=i(this).val();return null==r?null:i.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(pf,"\r\n")}}):{name:t.name,value:r.replace(pf,"\r\n")}}).get()}});i.ajaxSettings.xhr=void 0!==n.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&wf()||ns()}:wf;var go=0,gt={},ht=i.ajaxSettings.xhr();return n.ActiveXObject&&i(n).on("unload",function(){for(var n in gt)gt[n](void 0,!0)}),r.cors=!!ht&&"withCredentials"in ht,ht=r.ajax=!!ht,ht&&i.ajaxTransport(function(n){if(!n.crossDomain||r.cors){var t;return{send:function(r,u){var e,f=n.xhr(),o=++go;if(f.open(n.type,n.url,n.async,n.username,n.password),n.xhrFields)for(e in n.xhrFields)f[e]=n.xhrFields[e];n.mimeType&&f.overrideMimeType&&f.overrideMimeType(n.mimeType);n.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");for(e in r)void 0!==r[e]&&f.setRequestHeader(e,r[e]+"");f.send(n.hasContent&&n.data||null);t=function(r,e){var s,c,h;if(t&&(e||4===f.readyState))if(delete gt[o],t=void 0,f.onreadystatechange=i.noop,e)4!==f.readyState&&f.abort();else{h={};s=f.status;"string"==typeof f.responseText&&(h.text=f.responseText);try{c=f.statusText}catch(l){c=""}s||!n.isLocal||n.crossDomain?1223===s&&(s=204):s=h.text?200:404}h&&u(s,c,h,f.getAllResponseHeaders())};n.async?4===f.readyState?setTimeout(t):f.onreadystatechange=gt[o]=t:t()},abort:function(){t&&t(void 0,!0)}}}}),i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(n){return i.globalEval(n),n}}}),i.ajaxPrefilter("script",function(n){void 0===n.cache&&(n.cache=!1);n.crossDomain&&(n.type="GET",n.global=!1)}),i.ajaxTransport("script",function(n){if(n.crossDomain){var t,r=u.head||i("head")[0]||u.documentElement;return{send:function(i,f){t=u.createElement("script");t.async=!0;n.scriptCharset&&(t.charset=n.scriptCharset);t.src=n.url;t.onload=t.onreadystatechange=function(n,i){(i||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,i||f(200,"success"))};r.insertBefore(t,r.firstChild)},abort:function(){t&&t.onload(void 0,!0)}}}}),gi=[],ni=/(=)\?(?=&|$)|\?\?/,i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=gi.pop()||i.expando+"_"+pi++;return this[n]=!0,n}}),i.ajaxPrefilter("json jsonp",function(t,r,u){var f,o,e,s=t.jsonp!==!1&&(ni.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&ni.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return(f=t.jsonpCallback=i.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(ni,"$1"+f):t.jsonp!==!1&&(t.url+=(wi.test(t.url)?"&":"?")+t.jsonp+"="+f),t.converters["script json"]=function(){return e||i.error(f+" was not called"),e[0]},t.dataTypes[0]="json",o=n[f],n[f]=function(){e=arguments},u.always(function(){n[f]=o;t[f]&&(t.jsonpCallback=r.jsonpCallback,gi.push(f));e&&i.isFunction(o)&&o(e[0]);e=o=void 0}),"script")}),i.parseHTML=function(n,t,r){if(!n||"string"!=typeof n)return null;"boolean"==typeof t&&(r=t,t=!1);t=t||u;var f=er.exec(n),e=!r&&[];return f?[t.createElement(f[1])]:(f=i.buildFragment([n],t,e),e&&e.length&&i(e).remove(),i.merge([],f.childNodes))},nr=i.fn.load,i.fn.load=function(n,t,r){if("string"!=typeof n&&nr)return nr.apply(this,arguments);var u,o,s,f=this,e=n.indexOf(" ");return e>=0&&(u=n.slice(e,n.length),n=n.slice(0,e)),i.isFunction(t)?(r=t,t=void 0):t&&"object"==typeof t&&(s="POST"),f.length>0&&i.ajax({url:n,type:s,dataType:"html",data:t}).done(function(n){o=arguments;f.html(u?i("<div>").append(i.parseHTML(n)).find(u):n)}).complete(r&&function(n,t){f.each(r,o||[n.responseText,t,n])}),this},i.expr.filters.animated=function(n){return i.grep(i.timers,function(t){return n===t.elem}).length},tr=n.document.documentElement,i.offset={setOffset:function(n,t,r){var e,o,s,h,u,c,v,l=i.css(n,"position"),a=i(n),f={};"static"===l&&(n.style.position="relative");u=a.offset();s=i.css(n,"top");c=i.css(n,"left");v=("absolute"===l||"fixed"===l)&&i.inArray("auto",[s,c])>-1;v?(e=a.position(),h=e.top,o=e.left):(h=parseFloat(s)||0,o=parseFloat(c)||0);i.isFunction(t)&&(t=t.call(n,r,u));null!=t.top&&(f.top=t.top-u.top+h);null!=t.left&&(f.left=t.left-u.left+o);"using"in t?t.using.call(n,f):a.css(f)}},i.fn.extend({offset:function(n){if(arguments.length)return void 0===n?this:this.each(function(t){i.offset.setOffset(this,n,t)});var t,f,u={top:0,left:0},r=this[0],e=r&&r.ownerDocument;if(e)return t=e.documentElement,i.contains(t,r)?(typeof r.getBoundingClientRect!==o&&(u=r.getBoundingClientRect()),f=bf(e),{top:u.top+(f.pageYOffset||t.scrollTop)-(t.clientTop||0),left:u.left+(f.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):u},position:function(){if(this[0]){var n,r,t={top:0,left:0},u=this[0];return"fixed"===i.css(u,"position")?r=u.getBoundingClientRect():(n=this.offsetParent(),r=this.offset(),i.nodeName(n[0],"html")||(t=n.offset()),t.top+=i.css(n[0],"borderTopWidth",!0),t.left+=i.css(n[0],"borderLeftWidth",!0)),{top:r.top-t.top-i.css(u,"marginTop",!0),left:r.left-t.left-i.css(u,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent||tr;n&&!i.nodeName(n,"html")&&"static"===i.css(n,"position");)n=n.offsetParent;return n||tr})}}),i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,t){var r=/Y/.test(t);i.fn[n]=function(u){return b(this,function(n,u,f){var e=bf(n);return void 0===f?e?t in e?e[t]:e.document.documentElement[u]:n[u]:void(e?e.scrollTo(r?i(e).scrollLeft():f,r?f:i(e).scrollTop()):n[u]=f)},n,u,arguments.length,null)}}),i.each(["top","left"],function(n,t){i.cssHooks[t]=vu(r.pixelPosition,function(n,r){if(r)return(r=d(n,t),yt.test(r)?i(n).position()[t]+"px":r)})}),i.each({Height:"height",Width:"width"},function(n,t){i.each({padding:"inner"+n,content:t,"":"outer"+n},function(r,u){i.fn[u]=function(u,f){var e=arguments.length&&(r||"boolean"!=typeof u),o=r||(u===!0||f===!0?"margin":"border");return b(this,function(t,r,u){var f;return i.isWindow(t)?t.document.documentElement["client"+n]:9===t.nodeType?(f=t.documentElement,Math.max(t.body["scroll"+n],f["scroll"+n],t.body["offset"+n],f["offset"+n],f["client"+n])):void 0===u?i.css(t,r,o):i.style(t,r,u,o)},t,e?u:void 0,e,null)}})}),i.fn.size=function(){return this.length},i.fn.andSelf=i.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return i}),kf=n.jQuery,df=n.$,i.noConflict=function(t){return n.$===i&&(n.$=df),t&&n.jQuery===i&&(n.jQuery=kf),i},typeof t===o&&(n.jQuery=n.$=i),i}),function(n){n.extend(n.fn,{validate:function(t){if(!this.length){t&&t.debug&&window.console&&console.warn("nothing selected, can't validate, returning nothing");return}var i=n.data(this[0],"validator");return i?i:(i=new n.validator(t,this[0]),n.data(this[0],"validator",i),i.settings.onsubmit&&(this.find("input, button").filter(".cancel").click(function(){i.cancelSubmit=!0}),i.settings.submitHandler&&this.find("input, button").filter(":submit").click(function(){i.submitButton=this}),this.submit(function(t){function r(){if(i.settings.submitHandler){if(i.submitButton)var t=n("<input type='hidden'/>").attr("name",i.submitButton.name).val(i.submitButton.value).appendTo(i.currentForm);return i.settings.submitHandler.call(i,i.currentForm),i.submitButton&&t.remove(),!1}return!0}return(i.settings.debug&&t.preventDefault(),i.cancelSubmit)?(i.cancelSubmit=!1,r()):i.form()?i.pendingRequest?(i.formSubmitted=!0,!1):r():(i.focusInvalid(),!1)})),i)},valid:function(){if(n(this[0]).is("form"))return this.validate().form();var t=!0,i=n(this[0].form).validate();return this.each(function(){t&=i.element(this)}),t},removeAttrs:function(t){var i={},r=this;return n.each(t.split(/\s/),function(n,t){i[t]=r.attr(t);r.removeAttr(t)}),i},rules:function(t,i){var r=this[0],o,u,h;if(t){var e=n.data(r.form,"validator").settings,s=e.rules,f=n.validator.staticRules(r);switch(t){case"add":n.extend(f,n.validator.normalizeRule(i));s[r.name]=f;i.messages&&(e.messages[r.name]=n.extend(e.messages[r.name],i.messages));break;case"remove":return i?(o={},n.each(i.split(/\s/),function(n,t){o[t]=f[t];delete f[t]}),o):(delete s[r.name],f)}}return u=n.validator.normalizeRules(n.extend({},n.validator.metadataRules(r),n.validator.classRules(r),n.validator.attributeRules(r),n.validator.staticRules(r)),r),u.required&&(h=u.required,delete u.required,u=n.extend({required:h},u)),u}});n.extend(n.expr[":"],{blank:function(t){return!n.trim(""+t.value)},filled:function(t){return!!n.trim(""+t.value)},unchecked:function(n){return!n.checked}});n.validator=function(t,i){this.settings=n.extend(!0,{},n.validator.defaults,t);this.currentForm=i;this.init()};n.validator.format=function(t,i){return arguments.length==1?function(){var i=n.makeArray(arguments);return i.unshift(t),n.validator.format.apply(this,i)}:(arguments.length>2&&i.constructor!=Array&&(i=n.makeArray(arguments).slice(1)),i.constructor!=Array&&(i=[i]),n.each(i,function(n,i){t=t.replace(new RegExp("\\{"+n+"\\}","g"),i)}),t)};n.extend(n.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusInvalid:!0,errorContainer:n([]),errorLabelContainer:n([]),onsubmit:!0,ignore:[],ignoreTitle:!1,onfocusin:function(n){this.lastActive=n;this.settings.focusCleanup&&!this.blockFocusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,n,this.settings.errorClass,this.settings.validClass),this.addWrapper(this.errorsFor(n)).hide())},onfocusout:function(n){!this.checkable(n)&&(n.name in this.submitted||!this.optional(n))&&this.element(n)},onkeyup:function(n){(n.name in this.submitted||n==this.lastElement)&&this.element(n)},onclick:function(n){n.name in this.submitted?this.element(n):n.parentNode.name in this.submitted&&this.element(n.parentNode)},highlight:function(t,i,r){t.type==="radio"?this.findByName(t.name).addClass(i).removeClass(r):n(t).addClass(i).removeClass(r)},unhighlight:function(t,i,r){t.type==="radio"?this.findByName(t.name).removeClass(i).addClass(r):n(t).removeClass(i).addClass(r)}},setDefaults:function(t){n.extend(n.validator.defaults,t)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",accept:"Please enter a value with a valid extension.",maxlength:n.validator.format("Please enter no more than {0} characters."),minlength:n.validator.format("Please enter at least {0} characters."),rangelength:n.validator.format("Please enter a value between {0} and {1} characters long."),range:n.validator.format("Please enter a value between {0} and {1}."),max:n.validator.format("Please enter a value less than or equal to {0}."),min:n.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:!1,prototype:{init:function(){function r(t){var i=n.data(this[0].form,"validator"),r="on"+t.type.replace(/^validate/,"");i.settings[r]&&i.settings[r].call(i,this[0])}var i,t;this.labelContainer=n(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&&this.labelContainer||n(this.currentForm);this.containers=n(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};this.reset();i=this.groups={};n.each(this.settings.groups,function(t,r){n.each(r.split(/\s/),function(n,r){i[r]=t})});t=this.settings.rules;n.each(t,function(i,r){t[i]=n.validator.normalizeRule(r)});n(this.currentForm).validateDelegate(":text, :password, :file, select, textarea","focusin focusout keyup",r).validateDelegate(":radio, :checkbox, select, option","click",r);this.settings.invalidHandler&&n(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler)},form:function(){return this.checkForm(),n.extend(this.submitted,this.errorMap),this.invalid=n.extend({},this.errorMap),this.valid()||n(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var n=0,t=this.currentElements=this.elements();t[n];n++)this.check(t[n]);return this.valid()},element:function(t){t=this.clean(t);this.lastElement=t;this.prepareElement(t);this.currentElements=n(t);var i=this.check(t);return i?delete this.invalid[t.name]:this.invalid[t.name]=!0,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),i},showErrors:function(t){if(t){n.extend(this.errorMap,t);this.errorList=[];for(var i in t)this.errorList.push({message:t[i],element:this.findByName(i)[0]});this.successList=n.grep(this.successList,function(n){return!(n.name in t)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){n.fn.resetForm&&n(this.currentForm).resetForm();this.submitted={};this.prepareForm();this.hideErrors();this.elements().removeClass(this.settings.errorClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(n){var t=0,i;for(i in n)t++;return t},hideErrors:function(){this.addWrapper(this.toHide).hide()},valid:function(){return this.size()==0},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{n(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(t){}},findLastActive:function(){var t=this.lastActive;return t&&n.grep(this.errorList,function(n){return n.element.name==t.name}).length==1&&t},elements:function(){var t=this,i={};return n(this.currentForm).find("input, select, textarea").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){return(!this.name&&t.settings.debug&&window.console&&console.error("%o has no name assigned",this),this.name in i||!t.objectLength(n(this).rules()))?!1:(i[this.name]=!0,!0)})},clean:function(t){return n(t)[0]},errors:function(){return n(this.settings.errorElement+"."+this.settings.errorClass,this.errorContext)},reset:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=n([]);this.toHide=n([]);this.currentElements=n([])},prepareForm:function(){this.reset();this.toHide=this.errors().add(this.containers)},prepareElement:function(n){this.reset();this.toHide=this.errorsFor(n)},check:function(t){var i,r,u,f,e;t=this.clean(t);this.checkable(t)&&(t=this.findByName(t.name).not(this.settings.ignore)[0]);i=n(t).rules();r=!1;for(u in i){f={method:u,parameters:i[u]};try{if(e=n.validator.methods[u].call(this,t.value.replace(/\r/g,""),t,f.parameters),e=="dependency-mismatch"){r=!0;continue}if(r=!1,e=="pending"){this.toHide=this.toHide.not(this.errorsFor(t));return}if(!e)return this.formatAndAdd(t,f),!1}catch(o){this.settings.debug&&window.console&&console.log("exception occured when checking element "+t.id+", check the '"+f.method+"' method",o);throw o;}}if(!r)return this.objectLength(i)&&this.successList.push(t),!0},customMetaMessage:function(t,i){if(n.metadata){var r=this.settings.meta?n(t).metadata()[this.settings.meta]:n(t).metadata();return r&&r.messages&&r.messages[i]}},customMessage:function(n,t){var i=this.settings.messages[n];return i&&(i.constructor==String?i:i[t])},findDefined:function(){for(var n=0;n<arguments.length;n++)if(arguments[n]!==undefined)return arguments[n];return undefined},defaultMessage:function(t,i){return this.findDefined(this.customMessage(t.name,i),this.customMetaMessage(t,i),!this.settings.ignoreTitle&&t.title||undefined,n.validator.messages[i],"<strong>Warning: No message defined for "+t.name+"<\/strong>")},formatAndAdd:function(n,t){var i=this.defaultMessage(n,t.method),r=/\$?\{(\d+)\}/g;typeof i=="function"?i=i.call(this,t.parameters,n):r.test(i)&&(i=jQuery.format(i.replace(r,"{$1}"),t.parameters));this.errorList.push({message:i,element:n});this.errorMap[n.name]=i;this.submitted[n.name]=i},addWrapper:function(n){return this.settings.wrapper&&(n=n.add(n.parent(this.settings.wrapper))),n},defaultShowErrors:function(){for(var t,i,n=0;this.errorList[n];n++)t=this.errorList[n],this.settings.highlight&&this.settings.highlight.call(this,t.element,this.settings.errorClass,this.settings.validClass),this.showLabel(t.element,t.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(n=0;this.successList[n];n++)this.showLabel(this.successList[n]);if(this.settings.unhighlight)for(n=0,i=this.validElements();i[n];n++)this.settings.unhighlight.call(this,i[n],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow);this.hideErrors();this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return n(this.errorList).map(function(){return this.element})},showLabel:function(t,i){var r=this.errorsFor(t);r.length?(r.removeClass().addClass(this.settings.errorClass),r.attr("generated")&&r.html(i)):(r=n("<"+this.settings.errorElement+"/>").attr({"for":this.idOrName(t),generated:!0}).addClass(this.settings.errorClass).html(i||""),this.settings.wrapper&&(r=r.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.append(r).length||(this.settings.errorPlacement?this.settings.errorPlacement(r,n(t)):r.insertAfter(t)));!i&&this.settings.success&&(r.text(""),typeof this.settings.success=="string"?r.addClass(this.settings.success):this.settings.success(r));this.toShow=this.toShow.add(r)},errorsFor:function(t){var i=this.idOrName(t);return this.errors().filter(function(){return n(this).attr("for")==i})},idOrName:function(n){return this.groups[n.name]||(this.checkable(n)?n.name:n.id||n.name)},checkable:function(n){return/radio|checkbox/i.test(n.type)},findByName:function(t){var i=this.currentForm;return n(document.getElementsByName(t)).map(function(n,r){return r.form==i&&r.name==t&&r||null})},getLength:function(t,i){switch(i.nodeName.toLowerCase()){case"select":return n("option:selected",i).length;case"input":if(this.checkable(i))return this.findByName(i.name).filter(":checked").length}return t.length},depend:function(n,t){return this.dependTypes[typeof n]?this.dependTypes[typeof n](n,t):!0},dependTypes:{boolean:function(n){return n},string:function(t,i){return!!n(t,i.form).length},"function":function(n,t){return n(t)}},optional:function(t){return!n.validator.methods.required.call(this,n.trim(t.value),t)&&"dependency-mismatch"},startRequest:function(n){this.pending[n.name]||(this.pendingRequest++,this.pending[n.name]=!0)},stopRequest:function(t,i){this.pendingRequest--;this.pendingRequest<0&&(this.pendingRequest=0);delete this.pending[t.name];i&&this.pendingRequest==0&&this.formSubmitted&&this.form()?(n(this.currentForm).submit(),this.formSubmitted=!1):!i&&this.pendingRequest==0&&this.formSubmitted&&(n(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(t){return n.data(t,"previousValue")||n.data(t,"previousValue",{old:null,valid:!0,message:this.defaultMessage(t,"remote")})}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},dateDE:{dateDE:!0},number:{number:!0},numberDE:{numberDE:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(t,i){t.constructor==String?this.classRuleSettings[t]=i:n.extend(this.classRuleSettings,t)},classRules:function(t){var i={},r=n(t).attr("class");return r&&n.each(r.split(" "),function(){this in n.validator.classRuleSettings&&n.extend(i,n.validator.classRuleSettings[this])}),i},attributeRules:function(t){var i={},f=n(t),r,u;for(r in n.validator.methods)u=f.attr(r),u&&(i[r]=u);return i.maxlength&&/-1|2147483647|524288/.test(i.maxlength)&&delete i.maxlength,i},metadataRules:function(t){if(!n.metadata)return{};var i=n.data(t.form,"validator").settings.meta;return i?n(t).metadata()[i]:n(t).metadata()},staticRules:function(t){var i={},r=n.data(t.form,"validator");return r.settings.rules&&(i=n.validator.normalizeRule(r.settings.rules[t.name])||{}),i},normalizeRules:function(t,i){return n.each(t,function(r,u){if(u===!1){delete t[r];return}if(u.param||u.depends){var f=!0;switch(typeof u.depends){case"string":f=!!n(u.depends,i.form).length;break;case"function":f=u.depends.call(i,i)}f?t[r]=u.param!==undefined?u.param:!0:delete t[r]}}),n.each(t,function(r,u){t[r]=n.isFunction(u)?u(i):u}),n.each(["minlength","maxlength","min","max"],function(){t[this]&&(t[this]=Number(t[this]))}),n.each(["rangelength","range"],function(){t[this]&&(t[this]=[Number(t[this][0]),Number(t[this][1])])}),n.validator.autoCreateRanges&&(t.min&&t.max&&(t.range=[t.min,t.max],delete t.min,delete t.max),t.minlength&&t.maxlength&&(t.rangelength=[t.minlength,t.maxlength],delete t.minlength,delete t.maxlength)),t.messages&&delete t.messages,t},normalizeRule:function(t){if(typeof t=="string"){var i={};n.each(t.split(/\s/),function(){i[this]=!0});t=i}return t},addMethod:function(t,i,r){n.validator.methods[t]=i;n.validator.messages[t]=r!=undefined?r:n.validator.messages[t];i.length<3&&n.validator.addClassRules(t,n.validator.normalizeRule(t))},methods:{required:function(t,i,r){if(!this.depend(r,i))return"dependency-mismatch";switch(i.nodeName.toLowerCase()){case"select":var u=n(i).val();return u&&u.length>0;case"input":if(this.checkable(i))return this.getLength(t,i)>0;default:return n.trim(t).length>0}},remote:function(t,i,r){var f,u,e;return this.optional(i)?"dependency-mismatch":(f=this.previousValue(i),this.settings.messages[i.name]||(this.settings.messages[i.name]={}),f.originalMessage=this.settings.messages[i.name].remote,this.settings.messages[i.name].remote=f.message,r=typeof r=="string"&&{url:r}||r,this.pending[i.name])?"pending":f.old===t?f.valid:(f.old=t,u=this,this.startRequest(i),e={},e[i.name]=t,n.ajax(n.extend(!0,{url:r,mode:"abort",port:"validate"+i.name,dataType:"json",data:e,success:function(r){var e,h,s,o;u.settings.messages[i.name].remote=f.originalMessage;e=r===!0;e?(h=u.formSubmitted,u.prepareElement(i),u.formSubmitted=h,u.successList.push(i),u.showErrors()):(s={},o=r||u.defaultMessage(i,"remote"),s[i.name]=f.message=n.isFunction(o)?o(t):o,u.showErrors(s));f.valid=e;u.stopRequest(i,e)}},r)),"pending")},minlength:function(t,i,r){return this.optional(i)||this.getLength(n.trim(t),i)>=r},maxlength:function(t,i,r){return this.optional(i)||this.getLength(n.trim(t),i)<=r},rangelength:function(t,i,r){var u=this.getLength(n.trim(t),i);return this.optional(i)||u>=r[0]&&u<=r[1]},min:function(n,t,i){return this.optional(t)||n>=i},max:function(n,t,i){return this.optional(t)||n<=i},range:function(n,t,i){return this.optional(t)||n>=i[0]&&n<=i[1]},email:function(n,t){return this.optional(t)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(n)},url:function(n,t){return this.optional(t)||/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(n)},date:function(n,t){return this.optional(t)||!/Invalid|NaN/.test(new Date(n))},dateISO:function(n,t){return this.optional(t)||/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(n)},number:function(n,t){return this.optional(t)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(n)},digits:function(n,t){return this.optional(t)||/^\d+$/.test(n)},creditcard:function(n,t){var r,e,i;if(this.optional(t))return"dependency-mismatch";if(/[^0-9-]+/.test(n))return!1;var f=0,i=0,u=!1;for(n=n.replace(/\D/g,""),r=n.length-1;r>=0;r--)e=n.charAt(r),i=parseInt(e,10),u&&(i*=2)>9&&(i-=9),f+=i,u=!u;return f%10==0},accept:function(n,t,i){return i=typeof i=="string"?i.replace(/,/g,"|"):"png|jpe?g|gif",this.optional(t)||n.match(new RegExp(".("+i+")$","i"))},equalTo:function(t,i,r){var u=n(r).unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){n(i).valid()});return t==u.val()}}});n.format=n.validator.format}(jQuery),function(n){var t={},i;n.ajaxPrefilter?n.ajaxPrefilter(function(n,i,r){var u=n.port;n.mode=="abort"&&(t[u]&&t[u].abort(),t[u]=r)}):(i=n.ajax,n.ajax=function(r){var f=("mode"in r?r:n.ajaxSettings).mode,u=("port"in r?r:n.ajaxSettings).port;return f=="abort"?(t[u]&&t[u].abort(),t[u]=i.apply(this,arguments)):i.apply(this,arguments)})}(jQuery),function(n){jQuery.event.special.focusin||jQuery.event.special.focusout||!document.addEventListener||n.each({focus:"focusin",blur:"focusout"},function(t,i){function r(t){return t=n.event.fix(t),t.type=i,n.event.handle.call(this,t)}n.event.special[i]={setup:function(){this.addEventListener(t,r,!0)},teardown:function(){this.removeEventListener(t,r,!0)},handler:function(t){return arguments[0]=n.event.fix(t),arguments[0].type=i,n.event.handle.apply(this,arguments)}}});n.extend(n.fn,{validateDelegate:function(t,i,r){return this.bind(i,function(i){var u=n(i.target);if(u.is(t))return r.apply(u,arguments)})}})}(jQuery),function(n){function i(n,t,i){n.rules[t]=i;n.message&&(n.messages[t]=n.message)}function h(n){return n.replace(/^\s+|\s+$/g,"").split(/\s*,\s*/g)}function f(n){return n.replace(/([!"#$%&'()*+,./:;<=>?@\[\\\]^`{|}~])/g,"\\$1")}function e(n){return n.substr(0,n.lastIndexOf(".")+1)}function o(n,t){return n.indexOf("*.")===0&&(n=n.replace("*.",t)),n}function c(t,i){var r=n(this).find("[data-valmsg-for='"+f(i[0].name)+"']"),u=r.attr("data-valmsg-replace"),e=u?n.parseJSON(u)!==!1:null;r.removeClass("field-validation-valid").addClass("field-validation-error");t.data("unobtrusiveContainer",r);e?(r.empty(),t.removeClass("input-validation-error").appendTo(r)):t.hide()}function l(t,i){var u=n(this).find("[data-valmsg-summary=true]"),r=u.find("ul");r&&r.length&&i.errorList.length&&(r.empty(),u.addClass("validation-summary-errors").removeClass("validation-summary-valid"),n.each(i.errorList,function(){n("<li />").html(this.message).appendTo(r)}))}function a(t){var i=t.data("unobtrusiveContainer"),r=i.attr("data-valmsg-replace"),u=r?n.parseJSON(r):null;i&&(i.addClass("field-validation-valid").removeClass("field-validation-error"),t.removeData("unobtrusiveContainer"),u&&i.empty())}function v(){var t=n(this);t.data("validator").resetForm();t.find(".validation-summary-errors").addClass("validation-summary-valid").removeClass("validation-summary-errors");t.find(".field-validation-error").addClass("field-validation-valid").removeClass("field-validation-error").removeData("unobtrusiveContainer").find(">*").removeData("unobtrusiveContainer")}function s(t){var i=n(t),f=i.data(u),s=n.proxy(v,t),e=r.unobtrusive.options||{},o=function(i,r){var u=e[i];u&&n.isFunction(u)&&u.apply(t,r)};return f||(f={options:{errorClass:e.errorClass||"input-validation-error",errorElement:e.errorElement||"span",errorPlacement:function(){c.apply(t,arguments);o("errorPlacement",arguments)},invalidHandler:function(){l.apply(t,arguments);o("invalidHandler",arguments)},messages:{},rules:{},success:function(){a.apply(t,arguments);o("success",arguments)}},attachValidation:function(){i.off("reset."+u,s).on("reset."+u,s).validate(this.options)},validate:function(){return i.validate(),i.valid()}},i.data(u,f)),f}var r=n.validator,t,u="unobtrusiveValidation";r.unobtrusive={adapters:[],parseElement:function(t,i){var u=n(t),f=u.parents("form")[0],r,e,o;f&&(r=s(f),r.options.rules[t.name]=e={},r.options.messages[t.name]=o={},n.each(this.adapters,function(){var i="data-val-"+this.name,r=u.attr(i),s={};r!==undefined&&(i+="-",n.each(this.params,function(){s[this]=u.attr(i+this)}),this.adapt({element:t,form:f,message:r,params:s,rules:e,messages:o}))}),n.extend(e,{__dummy__:!0}),i||r.attachValidation())},parse:function(t){var i=n(t),u=i.parents().addBack().filter("form").add(i.find("form")).has("[data-val=true]");i.find("[data-val=true]").each(function(){r.unobtrusive.parseElement(this,!0)});u.each(function(){var n=s(this);n&&n.attachValidation()})}};t=r.unobtrusive.adapters;t.add=function(n,t,i){return i||(i=t,t=[]),this.push({name:n,params:t,adapt:i}),this};t.addBool=function(n,t){return this.add(n,function(r){i(r,t||n,!0)})};t.addMinMax=function(n,t,r,u,f,e){return this.add(n,[f||"min",e||"max"],function(n){var f=n.params.min,e=n.params.max;f&&e?i(n,u,[f,e]):f?i(n,t,f):e&&i(n,r,e)})};t.addSingleVal=function(n,t,r){return this.add(n,[t||"val"],function(u){i(u,r||n,u.params[t])})};r.addMethod("__dummy__",function(){return!0});r.addMethod("regex",function(n,t,i){var r;return this.optional(t)?!0:(r=new RegExp(i).exec(n),r&&r.index===0&&r[0].length===n.length)});r.addMethod("nonalphamin",function(n,t,i){var r;return i&&(r=n.match(/\W/g),r=r&&r.length>=i),r});r.methods.extension?(t.addSingleVal("accept","mimtype"),t.addSingleVal("extension","extension")):t.addSingleVal("extension","extension","accept");t.addSingleVal("regex","pattern");t.addBool("creditcard").addBool("date").addBool("digits").addBool("email").addBool("number").addBool("url");t.addMinMax("length","minlength","maxlength","rangelength").addMinMax("range","min","max","range");t.addMinMax("minlength","minlength").addMinMax("maxlength","minlength","maxlength");t.add("equalto",["other"],function(t){var r=e(t.element.name),u=t.params.other,s=o(u,r),h=n(t.form).find(":input").filter("[name='"+f(s)+"']")[0];i(t,"equalTo",h)});t.add("required",function(n){(n.element.tagName.toUpperCase()!=="INPUT"||n.element.type.toUpperCase()!=="CHECKBOX")&&i(n,"required",!0)});t.add("remote",["url","type","additionalfields"],function(t){var r={url:t.params.url,type:t.params.type||"GET",data:{}},u=e(t.element.name);n.each(h(t.params.additionalfields||t.element.name),function(i,e){var s=o(e,u);r.data[s]=function(){return n(t.form).find(":input").filter("[name='"+f(s)+"']").val()}});i(t,"remote",r)});t.add("password",["min","nonalphamin","regex"],function(n){n.params.min&&i(n,"minlength",n.params.min);n.params.nonalphamin&&i(n,"nonalphamin",n.params.nonalphamin);n.params.regex&&i(n,"regex",n.params.regex)});n(function(){r.unobtrusive.parse(document)})}(jQuery),function(n){function i(n,t){for(var i=window,r=(n||"").split(".");i&&r.length;)i=i[r.shift()];return typeof i=="function"?i:(t.push(n),Function.constructor.apply(null,t))}function u(n){return n==="GET"||n==="POST"}function o(n,t){u(t)||n.setRequestHeader("X-HTTP-Method-Override",t)}function s(t,i,r){var u;r.indexOf("application/x-javascript")===-1&&(u=(t.getAttribute("data-ajax-mode")||"").toUpperCase(),n(t.getAttribute("data-ajax-update")).each(function(t,r){var f;switch(u){case"BEFORE":f=r.firstChild;n("<div />").html(i).contents().each(function(){r.insertBefore(this,f)});break;case"AFTER":n("<div />").html(i).contents().each(function(){r.appendChild(this)});break;case"REPLACE-WITH":n(r).replaceWith(i);break;default:n(r).html(i)}}))}function f(t,r){var e,h,f,c;(e=t.getAttribute("data-ajax-confirm"),!e||window.confirm(e))&&(h=n(t.getAttribute("data-ajax-loading")),c=parseInt(t.getAttribute("data-ajax-loading-duration"),10)||0,n.extend(r,{type:t.getAttribute("data-ajax-method")||undefined,url:t.getAttribute("data-ajax-url")||undefined,cache:!!t.getAttribute("data-ajax-cache"),beforeSend:function(n){var r;return o(n,f),r=i(t.getAttribute("data-ajax-begin"),["xhr"]).apply(t,arguments),r!==!1&&h.show(c),r},complete:function(){h.hide(c);i(t.getAttribute("data-ajax-complete"),["xhr","status"]).apply(t,arguments)},success:function(n,r,u){s(t,n,u.getResponseHeader("Content-Type")||"text/html");i(t.getAttribute("data-ajax-success"),["data","status","xhr"]).apply(t,arguments)},error:function(){i(t.getAttribute("data-ajax-failure"),["xhr","status","error"]).apply(t,arguments)}}),r.data.push({name:"X-Requested-With",value:"XMLHttpRequest"}),f=r.type.toUpperCase(),u(f)||(r.type="POST",r.data.push({name:"X-HTTP-Method-Override",value:f})),n.ajax(r))}function h(t){var i=n(t).data(e);return!i||!i.validate||i.validate()}var t="unobtrusiveAjaxClick",r="unobtrusiveAjaxClickTarget",e="unobtrusiveValidation";n(document).on("click","a[data-ajax=true]",function(n){n.preventDefault();f(this,{url:this.href,type:"GET",data:[]})});n(document).on("click","form[data-ajax=true] input[type=image]",function(i){var r=i.target.name,u=n(i.target),f=n(u.parents("form")[0]),e=u.offset();f.data(t,[{name:r+".x",value:Math.round(i.pageX-e.left)},{name:r+".y",value:Math.round(i.pageY-e.top)}]);setTimeout(function(){f.removeData(t)},0)});n(document).on("click","form[data-ajax=true] :submit",function(i){var f=i.currentTarget.name,e=n(i.target),u=n(e.parents("form")[0]);u.data(t,f?[{name:f,value:i.currentTarget.value}]:[]);u.data(r,e);setTimeout(function(){u.removeData(t);u.removeData(r)},0)});n(document).on("submit","form[data-ajax=true]",function(i){var e=n(this).data(t)||[],u=n(this).data(r),o=u&&u.hasClass("cancel");(i.preventDefault(),o||h(this))&&f(this,{url:this.action,type:this.method||"GET",data:e.concat(n(this).serializeArray())})})}(jQuery),function(n,t){typeof exports=="object"&&typeof module!="undefined"?module.exports=t():typeof define=="function"&&define.amd?define(t):n.moment=t()}(this,function(){"use strict";function i(){return nu.apply(null,arguments)}function uo(n){nu=n}function ui(n){return Object.prototype.toString.call(n)==="[object Array]"}function fi(n){return n instanceof Date||Object.prototype.toString.call(n)==="[object Date]"}function fo(n,t){for(var r=[],i=0;i<n.length;++i)r.push(t(n[i],i));return r}function ut(n,t){return Object.prototype.hasOwnProperty.call(n,t)}function ei(n,t){for(var i in t)ut(t,i)&&(n[i]=t[i]);return ut(t,"toString")&&(n.toString=t.toString),ut(t,"valueOf")&&(n.valueOf=t.valueOf),n}function kt(n,t,i,r){return ff(n,t,i,r,!0).utc()}function eo(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function o(n){return n._pf==null&&(n._pf=eo()),n._pf}function tu(n){if(n._isValid==null){var t=o(n);n._isValid=!isNaN(n._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated;n._strict&&(n._isValid=n._isValid&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===undefined)}return n._isValid}function iu(n){var t=kt(NaN);return n!=null?ei(o(t),n):o(t).userInvalidated=!0,t}function ru(n,t){var u,i,r;if(typeof t._isAMomentObject!="undefined"&&(n._isAMomentObject=t._isAMomentObject),typeof t._i!="undefined"&&(n._i=t._i),typeof t._f!="undefined"&&(n._f=t._f),typeof t._l!="undefined"&&(n._l=t._l),typeof t._strict!="undefined"&&(n._strict=t._strict),typeof t._tzm!="undefined"&&(n._tzm=t._tzm),typeof t._isUTC!="undefined"&&(n._isUTC=t._isUTC),typeof t._offset!="undefined"&&(n._offset=t._offset),typeof t._pf!="undefined"&&(n._pf=o(t)),typeof t._locale!="undefined"&&(n._locale=t._locale),ki.length>0)for(u in ki)i=ki[u],r=t[i],typeof r!="undefined"&&(n[i]=r);return n}function dt(n){ru(this,n);this._d=new Date(+n._d);di===!1&&(di=!0,i.updateOffset(this),di=!1)}function tt(n){return n instanceof dt||n!=null&&n._isAMomentObject!=null}function s(n){var t=+n,i=0;return t!==0&&isFinite(t)&&(i=t>=0?Math.floor(t):Math.ceil(t)),i}function uu(n,t,i){for(var f=Math.min(n.length,t.length),e=Math.abs(n.length-t.length),u=0,r=0;r<f;r++)(i&&n[r]!==t[r]||!i&&s(n[r])!==s(t[r]))&&u++;return u+e}function fu(){}function eu(n){return n?n.toLowerCase().replace("_","-"):n}function oo(n){for(var r=0,i,t,f,u;r<n.length;){for(u=eu(n[r]).split("-"),i=u.length,t=eu(n[r+1]),t=t?t.split("-"):null;i>0;){if(f=ou(u.slice(0,i).join("-")),f)return f;if(t&&t.length>=i&&uu(u,t,!0)>=i-1)break;i--}r++}return null}function ou(n){var t=null;if(!ft[n]&&typeof module!="undefined"&&module&&module.exports)try{t=oi._abbr;require("./locale/"+n);gt(t)}catch(i){}return ft[n]}function gt(n,t){var i;return n&&(i=typeof t=="undefined"?et(n):su(n,t),i&&(oi=i)),oi._abbr}function su(n,t){return t!==null?(t.abbr=n,ft[n]||(ft[n]=new fu),ft[n].set(t),gt(n),ft[n]):(delete ft[n],null)}function et(n){var t;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return oi;if(!ui(n)){if(t=ou(n),t)return t;n=[n]}return oo(n)}function l(n,t){var i=n.toLowerCase();ni[i]=ni[i+"s"]=ni[t]=n}function y(n){return typeof n=="string"?ni[n]||ni[n.toLowerCase()]:undefined}function hu(n){var r={},i,t;for(t in n)ut(n,t)&&(i=y(t),i&&(r[i]=n[t]));return r}function pt(n,t){return function(r){return r!=null?(cu(this,n,r),i.updateOffset(this,t),this):si(this,n)}}function si(n,t){return n._d["get"+(n._isUTC?"UTC":"")+t]()}function cu(n,t,i){return n._d["set"+(n._isUTC?"UTC":"")+t](i)}function lu(n,t){var i;if(typeof n=="object")for(i in n)this.set(i,n[i]);else if(n=y(n),typeof this[n]=="function")return this[n](t);return this}function gi(n,t,i){for(var r=""+Math.abs(n),u=n>=0;r.length<t;)r="0"+r;return(u?i?"+":"":"-")+r}function u(n,t,i,r){var u=r;typeof r=="string"&&(u=function(){return this[r]()});n&&(wt[n]=u);t&&(wt[t[0]]=function(){return gi(u.apply(this,arguments),t[1],t[2])});i&&(wt[i]=function(){return this.localeData().ordinal(u.apply(this,arguments),n)})}function so(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function ho(n){for(var i=n.match(au),t=0,r=i.length;t<r;t++)i[t]=wt[i[t]]?wt[i[t]]:so(i[t]);return function(u){var f="";for(t=0;t<r;t++)f+=i[t]instanceof Function?i[t].call(u,n):i[t];return f}}function tr(n,t){return n.isValid()?(t=vu(t,n.localeData()),nr[t]||(nr[t]=ho(t)),nr[t](n)):n.localeData().invalidDate()}function vu(n,t){function r(n){return t.longDateFormat(n)||n}var i=5;for(hi.lastIndex=0;i>=0&&hi.test(n);)n=n.replace(hi,r),hi.lastIndex=0,i-=1;return n}function t(n,t,i){ur[n]=typeof t=="function"?t:function(n){return n&&i?i:t}}function co(n,t){return ut(ur,n)?ur[n](t._strict,t._locale):new RegExp(lo(n))}function lo(n){return n.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,t,i,r,u){return t||i||r||u}).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function c(n,t){var i,r=t;for(typeof n=="string"&&(n=[n]),typeof t=="number"&&(r=function(n,i){i[t]=s(n)}),i=0;i<n.length;i++)fr[n[i]]=r}function ii(n,t){c(n,function(n,i,r,u){r._w=r._w||{};t(n,r._w,r,u)})}function ao(n,t,i){t!=null&&ut(fr,n)&&fr[n](t,i._a,i,n)}function er(n,t){return new Date(Date.UTC(n,t+1,0)).getUTCDate()}function vo(n){return this._months[n.month()]}function yo(n){return this._monthsShort[n.month()]}function po(n,t,i){var r,u,f;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++)if((u=kt([2e3,r]),i&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(u,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(u,"").replace(".","")+"$","i")),i||this._monthsParse[r]||(f="^"+this.months(u,"")+"|^"+this.monthsShort(u,""),this._monthsParse[r]=new RegExp(f.replace(".",""),"i")),i&&t==="MMMM"&&this._longMonthsParse[r].test(n))||i&&t==="MMM"&&this._shortMonthsParse[r].test(n)||!i&&this._monthsParse[r].test(n))return r}function ku(n,t){var i;return typeof t=="string"&&(t=n.localeData().monthsParse(t),typeof t!="number")?n:(i=Math.min(n.date(),er(n.year(),t)),n._d["set"+(n._isUTC?"UTC":"")+"Month"](t,i),n)}function du(n){return n!=null?(ku(this,n),i.updateOffset(this,!0),this):si(this,"Month")}function wo(){return er(this.year(),this.month())}function or(n){var i,t=n._a;return t&&o(n).overflow===-2&&(i=t[g]<0||t[g]>11?g:t[w]<1||t[w]>er(t[d],t[g])?w:t[a]<0||t[a]>24||t[a]===24&&(t[ot]!==0||t[st]!==0||t[ht]!==0)?a:t[ot]<0||t[ot]>59?ot:t[st]<0||t[st]>59?st:t[ht]<0||t[ht]>999?ht:-1,o(n)._overflowDayOfYear&&(i<d||i>w)&&(i=w),o(n).overflow=i),n}function gu(n){i.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+n)}function p(n,t){var i=!0,r=n+"\n"+(new Error).stack;return ei(function(){return i&&(gu(r),i=!1),t.apply(this,arguments)},t)}function bo(n,t){sr[n]||(gu(t),sr[n]=!0)}function nf(n){var t,i,r=n._i,u=ko.exec(r);if(u){for(o(n).iso=!0,t=0,i=hr.length;t<i;t++)if(hr[t][1].exec(r)){n._f=hr[t][0]+(u[6]||" ");break}for(t=0,i=cr.length;t<i;t++)if(cr[t][1].exec(r)){n._f+=cr[t][0];break}r.match(yi)&&(n._f+="Z");yr(n)}else n._isValid=!1}function ns(n){var t=go.exec(n._i);if(t!==null){n._d=new Date(+t[1]);return}nf(n);n._isValid===!1&&(delete n._isValid,i.createFromInputFallback(n))}function ts(n,t,i,r,u,f,e){var o=new Date(n,t,i,r,u,f,e);return n<1970&&o.setFullYear(n),o}function lr(n){var t=new Date(Date.UTC.apply(null,arguments));return n<1970&&t.setUTCFullYear(n),t}function tf(n){return rf(n)?366:365}function rf(n){return n%4==0&&n%100!=0||n%400==0}function is(){return rf(this.year())}function ct(n,t,i){var f=i-t,r=i-n.day(),u;return r>f&&(r-=7),r<f-7&&(r+=7),u=e(n).add(r,"d"),{week:Math.ceil(u.dayOfYear()/7),year:u.year()}}function rs(n){return ct(n,this._week.dow,this._week.doy).week}function us(){return this._week.dow}function fs(){return this._week.doy}function es(n){var t=this.localeData().week(this);return n==null?t:this.add((n-t)*7,"d")}function os(n){var t=ct(this,1,4).week;return n==null?t:this.add((n-t)*7,"d")}function ss(n,t,i,r,u){var f=lr(n,0,1).getUTCDay(),o,e;return f=f===0?7:f,i=i!=null?i:u,o=u-f+(f>r?7:0)-(f<u?7:0),e=7*(t-1)+(i-u)+o+1,{year:e>0?n:n-1,dayOfYear:e>0?e:tf(n-1)+e}}function hs(n){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return n==null?t:this.add(n-t,"d")}function bt(n,t,i){return n!=null?n:t!=null?t:i}function cs(n){var t=new Date;return n._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function vr(n){var t,i,r=[],u,f;if(!n._d){for(u=cs(n),n._w&&n._a[w]==null&&n._a[g]==null&&ls(n),n._dayOfYear&&(f=bt(n._a[d],u[d]),n._dayOfYear>tf(f)&&(o(n)._overflowDayOfYear=!0),i=lr(f,0,n._dayOfYear),n._a[g]=i.getUTCMonth(),n._a[w]=i.getUTCDate()),t=0;t<3&&n._a[t]==null;++t)n._a[t]=r[t]=u[t];for(;t<7;t++)n._a[t]=r[t]=n._a[t]==null?t===2?1:0:n._a[t];n._a[a]===24&&n._a[ot]===0&&n._a[st]===0&&n._a[ht]===0&&(n._nextDay=!0,n._a[a]=0);n._d=(n._useUTC?lr:ts).apply(null,r);n._tzm!=null&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm);n._nextDay&&(n._a[a]=24)}}function ls(n){var t,o,u,r,i,f,s;t=n._w;t.GG!=null||t.W!=null||t.E!=null?(i=1,f=4,o=bt(t.GG,n._a[d],ct(e(),1,4).year),u=bt(t.W,1),r=bt(t.E,1)):(i=n._locale._week.dow,f=n._locale._week.doy,o=bt(t.gg,n._a[d],ct(e(),i,f).year),u=bt(t.w,1),t.d!=null?(r=t.d,r<i&&++u):r=t.e!=null?t.e+i:i);s=ss(o,u,r,f,i);n._a[d]=s.year;n._dayOfYear=s.dayOfYear}function yr(n){if(n._f===i.ISO_8601){nf(n);return}n._a=[];o(n).empty=!0;for(var t=""+n._i,r,u,s,c=t.length,h=0,e=vu(n._f,n._locale).match(au)||[],f=0;f<e.length;f++)u=e[f],r=(t.match(co(u,n))||[])[0],r&&(s=t.substr(0,t.indexOf(r)),s.length>0&&o(n).unusedInput.push(s),t=t.slice(t.indexOf(r)+r.length),h+=r.length),wt[u]?(r?o(n).empty=!1:o(n).unusedTokens.push(u),ao(u,r,n)):n._strict&&!r&&o(n).unusedTokens.push(u);o(n).charsLeftOver=c-h;t.length>0&&o(n).unusedInput.push(t);o(n).bigHour===!0&&n._a[a]<=12&&n._a[a]>0&&(o(n).bigHour=undefined);n._a[a]=as(n._locale,n._a[a],n._meridiem);vr(n);or(n)}function as(n,t,i){var r;return i==null?t:n.meridiemHour!=null?n.meridiemHour(t,i):n.isPM!=null?(r=n.isPM(i),r&&t<12&&(t+=12),r||t!==12||(t=0),t):t}function vs(n){var t,f,u,r,i;if(n._f.length===0){o(n).invalidFormat=!0;n._d=new Date(NaN);return}for(r=0;r<n._f.length;r++)(i=0,t=ru({},n),n._useUTC!=null&&(t._useUTC=n._useUTC),t._f=n._f[r],yr(t),tu(t))&&(i+=o(t).charsLeftOver,i+=o(t).unusedTokens.length*10,o(t).score=i,(u==null||i<u)&&(u=i,f=t));ei(n,f||t)}function ys(n){if(!n._d){var t=hu(n._i);n._a=[t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond];vr(n)}}function ps(n){var t=n._i,r=n._f,i;return(n._locale=n._locale||et(n._l),t===null||r===undefined&&t==="")?iu({nullInput:!0}):(typeof t=="string"&&(n._i=t=n._locale.preparse(t)),tt(t))?new dt(or(t)):(ui(r)?vs(n):r?yr(n):fi(t)?n._d=t:ws(n),i=new dt(or(n)),i._nextDay&&(i.add(1,"d"),i._nextDay=undefined),i)}function ws(n){var t=n._i;t===undefined?n._d=new Date:fi(t)?n._d=new Date(+t):typeof t=="string"?ns(n):ui(t)?(n._a=fo(t.slice(0),function(n){return parseInt(n,10)}),vr(n)):typeof t=="object"?ys(n):typeof t=="number"?n._d=new Date(t):i.createFromInputFallback(n)}function ff(n,t,i,r,u){var f={};return typeof i=="boolean"&&(r=i,i=undefined),f._isAMomentObject=!0,f._useUTC=f._isUTC=u,f._l=i,f._i=n,f._f=t,f._strict=r,ps(f)}function e(n,t,i,r){return ff(n,t,i,r,!1)}function sf(n,t){var r,i;if(t.length===1&&ui(t[0])&&(t=t[0]),!t.length)return e();for(r=t[0],i=1;i<t.length;++i)t[i][n](r)&&(r=t[i]);return r}function bs(){var n=[].slice.call(arguments,0);return sf("isBefore",n)}function ks(){var n=[].slice.call(arguments,0);return sf("isAfter",n)}function pi(n){var t=hu(n),i=t.year||0,r=t.quarter||0,u=t.month||0,f=t.week||0,e=t.day||0,o=t.hour||0,s=t.minute||0,h=t.second||0,c=t.millisecond||0;this._milliseconds=+c+h*1e3+s*6e4+o*36e5;this._days=+e+f*7;this._months=+u+r*3+i*12;this._data={};this._locale=et();this._bubble()}function pr(n){return n instanceof pi}function hf(n,t){u(n,0,0,function(){var n=this.utcOffset(),i="+";return n<0&&(n=-n,i="-"),i+gi(~~(n/60),2)+t+gi(~~n%60,2)})}function wr(n){var i=(n||"").match(yi)||[],u=i[i.length-1]||[],t=(u+"").match(cf)||["-",0,0],r=+(t[1]*60)+s(t[2]);return t[0]==="+"?r:-r}function br(n,t){var r,u;return t._isUTC?(r=t.clone(),u=(tt(n)||fi(n)?+n:+e(n))-+r,r._d.setTime(+r._d+u),i.updateOffset(r,!1),r):e(n).local()}function kr(n){return-Math.round(n._d.getTimezoneOffset()/15)*15}function ds(n,t){var r=this._offset||0,u;return n!=null?(typeof n=="string"&&(n=wr(n)),Math.abs(n)<16&&(n=n*60),!this._isUTC&&t&&(u=kr(this)),this._offset=n,this._isUTC=!0,u!=null&&this.add(u,"m"),r!==n&&(!t||this._changeInProgress?wf(this,it(n-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?r:kr(this)}function gs(n,t){return n!=null?(typeof n!="string"&&(n=-n),this.utcOffset(n,t),this):-this.utcOffset()}function nh(n){return this.utcOffset(0,n)}function th(n){return this._isUTC&&(this.utcOffset(0,n),this._isUTC=!1,n&&this.subtract(kr(this),"m")),this}function ih(){return this._tzm?this.utcOffset(this._tzm):typeof this._i=="string"&&this.utcOffset(wr(this._i)),this}function rh(n){return n=n?e(n).utcOffset():0,(this.utcOffset()-n)%60==0}function uh(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function fh(){if(this._a){var n=this._isUTC?kt(this._a):e(this._a);return this.isValid()&&uu(this._a,n.toArray())>0}return!1}function eh(){return!this._isUTC}function oh(){return this._isUTC}function lf(){return this._isUTC&&this._offset===0}function it(n,t){var i=n,r=null,u,f,o;return pr(n)?i={ms:n._milliseconds,d:n._days,M:n._months}:typeof n=="number"?(i={},t?i[t]=n:i.milliseconds=n):(r=af.exec(n))?(u=r[1]==="-"?-1:1,i={y:0,d:s(r[w])*u,h:s(r[a])*u,m:s(r[ot])*u,s:s(r[st])*u,ms:s(r[ht])*u}):(r=vf.exec(n))?(u=r[1]==="-"?-1:1,i={y:lt(r[2],u),M:lt(r[3],u),d:lt(r[4],u),h:lt(r[5],u),m:lt(r[6],u),s:lt(r[7],u),w:lt(r[8],u)}):i==null?i={}:typeof i=="object"&&("from"in i||"to"in i)&&(o=sh(e(i.from),e(i.to)),i={},i.ms=o.milliseconds,i.M=o.months),f=new pi(i),pr(n)&&ut(n,"_locale")&&(f._locale=n._locale),f}function lt(n,t){var i=n&&parseFloat(n.replace(",","."));return(isNaN(i)?0:i)*t}function yf(n,t){var i={milliseconds:0,months:0};return i.months=t.month()-n.month()+(t.year()-n.year())*12,n.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+n.clone().add(i.months,"M"),i}function sh(n,t){var i;return t=br(t,n),n.isBefore(t)?i=yf(n,t):(i=yf(t,n),i.milliseconds=-i.milliseconds,i.months=-i.months),i}function pf(n,t){return function(i,r){var u,f;return r===null||isNaN(+r)||(bo(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period)."),f=i,i=r,r=f),i=typeof i=="string"?+i:i,u=it(i,r),wf(this,u,n),this}}function wf(n,t,r,u){var o=t._milliseconds,f=t._days,e=t._months;u=u==null?!0:u;o&&n._d.setTime(+n._d+o*r);f&&cu(n,"Date",si(n,"Date")+f*r);e&&ku(n,si(n,"Month")+e*r);u&&i.updateOffset(n,f||e)}function hh(n){var i=n||e(),r=br(i,this).startOf("day"),t=this.diff(r,"days",!0),u=t<-6?"sameElse":t<-1?"lastWeek":t<0?"lastDay":t<1?"sameDay":t<2?"nextDay":t<7?"nextWeek":"sameElse";return this.format(this.localeData().calendar(u,this,e(i)))}function ch(){return new dt(this)}function lh(n,t){var i;return t=y(typeof t!="undefined"?t:"millisecond"),t==="millisecond"?(n=tt(n)?n:e(n),+this>+n):(i=tt(n)?+n:+e(n),i<+this.clone().startOf(t))}function ah(n,t){var i;return t=y(typeof t!="undefined"?t:"millisecond"),t==="millisecond"?(n=tt(n)?n:e(n),+this<+n):(i=tt(n)?+n:+e(n),+this.clone().endOf(t)<i)}function vh(n,t,i){return this.isAfter(n,i)&&this.isBefore(t,i)}function yh(n,t){var i;return t=y(t||"millisecond"),t==="millisecond"?(n=tt(n)?n:e(n),+this==+n):(i=+e(n),+this.clone().startOf(t)<=i&&i<=+this.clone().endOf(t))}function b(n){return n<0?Math.ceil(n):Math.floor(n)}function ph(n,t,i){var f=br(n,this),e=(f.utcOffset()-this.utcOffset())*6e4,u,r;return t=y(t),t==="year"||t==="month"||t==="quarter"?(r=wh(this,f),t==="quarter"?r=r/3:t==="year"&&(r=r/12)):(u=this-f,r=t==="second"?u/1e3:t==="minute"?u/6e4:t==="hour"?u/36e5:t==="day"?(u-e)/864e5:t==="week"?(u-e)/6048e5:u),i?r:b(r)}function wh(n,t){var r=(t.year()-n.year())*12+(t.month()-n.month()),i=n.clone().add(r,"months"),u,f;return t-i<0?(u=n.clone().add(r-1,"months"),f=(t-i)/(i-u)):(u=n.clone().add(r+1,"months"),f=(t-i)/(u-i)),-(r+f)}function bh(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function df(){var n=this.clone().utc();return 0<n.year()&&n.year()<=9999?"function"==typeof Date.prototype.toISOString?this.toDate().toISOString():tr(n,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):tr(n,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function kh(n){var t=tr(this,n||i.defaultFormat);return this.localeData().postformat(t)}function dh(n,t){return this.isValid()?it({to:this,from:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function gh(n){return this.from(e(),n)}function nc(n,t){return this.isValid()?it({from:this,to:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function tc(n){return this.to(e(),n)}function gf(n){var t;return n===undefined?this._locale._abbr:(t=et(n),t!=null&&(this._locale=t),this)}function ne(){return this._locale}function ic(n){n=y(n);switch(n){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return n==="week"&&this.weekday(0),n==="isoWeek"&&this.isoWeekday(1),n==="quarter"&&this.month(Math.floor(this.month()/3)*3),this}function rc(n){return(n=y(n),n===undefined||n==="millisecond")?this:this.startOf(n).add(1,n==="isoWeek"?"week":n).subtract(1,"ms")}function uc(){return+this._d-(this._offset||0)*6e4}function fc(){return Math.floor(+this/1e3)}function ec(){return this._offset?new Date(+this):this._d}function oc(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond()]}function sc(){return tu(this)}function hc(){return ei({},o(this))}function cc(){return o(this).overflow}function wi(n,t){u(0,[n,n.length],0,t)}function te(n,t,i){return ct(e([n,11,31+t-i]),t,i).week}function lc(n){var t=ct(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return n==null?t:this.add(n-t,"y")}function ac(n){var t=ct(this,1,4).year;return n==null?t:this.add(n-t,"y")}function vc(){return te(this.year(),1,4)}function yc(){var n=this.localeData()._week;return te(this.year(),n.dow,n.doy)}function pc(n){return n==null?Math.ceil((this.month()+1)/3):this.month((n-1)*3+this.month()%3)}function wc(n,t){if(typeof n=="string")if(isNaN(n)){if(n=t.weekdaysParse(n),typeof n!="number")return null}else n=parseInt(n,10);return n}function bc(n){return this._weekdays[n.day()]}function kc(n){return this._weekdaysShort[n.day()]}function dc(n){return this._weekdaysMin[n.day()]}function gc(n){var t,i,r;for(this._weekdaysParse||(this._weekdaysParse=[]),t=0;t<7;t++)if(this._weekdaysParse[t]||(i=e([2e3,1]).day(t),r="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[t]=new RegExp(r.replace(".",""),"i")),this._weekdaysParse[t].test(n))return t}function nl(n){var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return n!=null?(n=wc(n,this.localeData()),this.add(n-t,"d")):t}function tl(n){var t=(this.day()+7-this.localeData()._week.dow)%7;return n==null?t:this.add(n-t,"d")}function il(n){return n==null?this.day()||7:this.day(this.day()%7?n:n-7)}function fe(n,t){u(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function ee(n,t){return t._meridiemParse}function rl(n){return(n+"").toLowerCase().charAt(0)==="p"}function ul(n,t,i){return n>11?i?"pm":"PM":i?"am":"AM"}function le(n){u(0,[n,3],0,"millisecond")}function fl(){return this._isUTC?"UTC":""}function el(){return this._isUTC?"Coordinated Universal Time":""}function ol(n){return e(n*1e3)}function sl(){return e.apply(null,arguments).parseZone()}function hl(n,t,i){var r=this._calendar[n];return typeof r=="function"?r.call(t,i):r}function cl(n){var t=this._longDateFormat[n];return!t&&this._longDateFormat[n.toUpperCase()]&&(t=this._longDateFormat[n.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(n){return n.slice(1)}),this._longDateFormat[n]=t),t}function ll(){return this._invalidDate}function al(n){return this._ordinal.replace("%d",n)}function de(n){return n}function vl(n,t,i,r){var u=this._relativeTime[i];return typeof u=="function"?u(n,t,i,r):u.replace(/%d/i,n)}function yl(n,t){var i=this._relativeTime[n>0?"future":"past"];return typeof i=="function"?i(t):i.replace(/%s/i,t)}function pl(n){var t,i;for(i in n)t=n[i],typeof t=="function"?this[i]=t:this["_"+i]=t;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function no(n,t,i,r){var u=et(),f=kt().set(r,t);return u[i](f,n)}function ri(n,t,i,r,u){if(typeof n=="number"&&(t=n,n=undefined),n=n||"",t!=null)return no(n,t,i,u);for(var e=[],f=0;f<r;f++)e[f]=no(n,f,i,u);return e}function wl(n,t){return ri(n,t,"months",12,"month")}function bl(n,t){return ri(n,t,"monthsShort",12,"month")}function kl(n,t){return ri(n,t,"weekdays",7,"day")}function dl(n,t){return ri(n,t,"weekdaysShort",7,"day")}function gl(n,t){return ri(n,t,"weekdaysMin",7,"day")}function na(){var n=this._data;return this._milliseconds=k(this._milliseconds),this._days=k(this._days),this._months=k(this._months),n.milliseconds=k(n.milliseconds),n.seconds=k(n.seconds),n.minutes=k(n.minutes),n.hours=k(n.hours),n.months=k(n.months),n.years=k(n.years),this}function to(n,t,i,r){var u=it(t,i);return n._milliseconds+=r*u._milliseconds,n._days+=r*u._days,n._months+=r*u._months,n._bubble()}function ta(n,t){return to(this,n,t,1)}function ia(n,t){return to(this,n,t,-1)}function ra(){var o=this._milliseconds,t=this._days,i=this._months,n=this._data,u,f,e,r=0;return n.milliseconds=o%1e3,u=b(o/1e3),n.seconds=u%60,f=b(u/60),n.minutes=f%60,e=b(f/60),n.hours=e%24,t+=b(e/24),r=b(io(t)),t-=b(ro(r)),i+=b(t/30),t%=30,r+=b(i/12),i%=12,n.days=t,n.months=i,n.years=r,this}function io(n){return n*400/146097}function ro(n){return n*146097/400}function ua(n){var t,r,i=this._milliseconds;if(n=y(n),n==="month"||n==="year")return t=this._days+i/864e5,r=this._months+io(t)*12,n==="month"?r:r/12;t=this._days+Math.round(ro(this._months/12));switch(n){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return t*24+i/36e5;case"minute":return t*1440+i/6e4;case"second":return t*86400+i/1e3;case"millisecond":return Math.floor(t*864e5)+i;default:throw new Error("Unknown unit "+n);}}function fa(){return this._milliseconds+this._days*864e5+this._months%12*2592e6+s(this._months/12)*31536e6}function rt(n){return function(){return this.as(n)}}function ya(n){return n=y(n),this[n+"s"]()}function at(n){return function(){return this._data[n]}}function tv(){return b(this.days()/7)}function iv(n,t,i,r,u){return u.relativeTime(t||1,!!i,n,r)}function rv(n,t,i){var r=it(n).abs(),h=vt(r.as("s")),f=vt(r.as("m")),e=vt(r.as("h")),o=vt(r.as("d")),s=vt(r.as("M")),c=vt(r.as("y")),u=h<nt.s&&["s",h]||f===1&&["m"]||f<nt.m&&["mm",f]||e===1&&["h"]||e<nt.h&&["hh",e]||o===1&&["d"]||o<nt.d&&["dd",o]||s===1&&["M"]||s<nt.M&&["MM",s]||c===1&&["y"]||["yy",c];return u[2]=t,u[3]=+n>0,u[4]=i,iv.apply(null,u)}function uv(n,t){return nt[n]===undefined?!1:t===undefined?nt[n]:(nt[n]=t,!0)}function fv(n){var t=this.localeData(),i=rv(this,!n,t);return n&&(i=t.pastFuture(+this,i)),t.postformat(i)}function bi(){var r=yt(this.years()),u=yt(this.months()),f=yt(this.days()),n=yt(this.hours()),t=yt(this.minutes()),i=yt(this.seconds()+this.milliseconds()/1e3),e=this.asSeconds();return e?(e<0?"-":"")+"P"+(r?r+"Y":"")+(u?u+"M":"")+(f?f+"D":"")+(n||t||i?"T":"")+(n?n+"H":"")+(t?t+"M":"")+(i?i+"S":""):"P0D"}var nu,ki=i.momentProperties=[],di=!1,ft={},oi,ni={},au=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|x|X|zz?|ZZ?|.)/g,hi=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,nr={},wt={},yu=/\d/,v=/\d\d/,pu=/\d{3}/,ir=/\d{4}/,ci=/[+-]?\d{6}/,h=/\d\d?/,li=/\d{1,3}/,rr=/\d{1,4}/,ai=/[+-]?\d{1,6}/,vi=/[+-]?\d+/,yi=/Z|[+-]\d\d:?\d\d/gi,ti=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,ur={},fr={},d=0,g=1,w=2,a=3,ot=4,st=5,ht=6,wu,bu,sr,ar,uf,ef,of,cf,af,vf,bf,kf,dr,gr,ie,re,ue,oe,se,he,ce,ae,n,ve,ye,pe,we,be,ke,ge,r,k,vt,nt,yt,f;u("M",["MM",2],"Mo",function(){return this.month()+1});u("MMM",0,0,function(n){return this.localeData().monthsShort(this,n)});u("MMMM",0,0,function(n){return this.localeData().months(this,n)});l("month","M");t("M",h);t("MM",h,v);t("MMM",ti);t("MMMM",ti);c(["M","MM"],function(n,t){t[g]=s(n)-1});c(["MMM","MMMM"],function(n,t,i,r){var u=i._locale.monthsParse(n,r,i._strict);u!=null?t[g]=u:o(i).invalidMonth=n});wu="January_February_March_April_May_June_July_August_September_October_November_December".split("_");bu="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");sr={};i.suppressDeprecationWarnings=!1;var ko=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,hr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],cr=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],go=/^\/?Date\((\-?\d+)/i;i.createFromInputFallback=p("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(n){n._d=new Date(n._i+(n._useUTC?" UTC":""))});u(0,["YY",2],0,function(){return this.year()%100});u(0,["YYYY",4],0,"year");u(0,["YYYYY",5],0,"year");u(0,["YYYYYY",6,!0],0,"year");l("year","y");t("Y",vi);t("YY",h,v);t("YYYY",rr,ir);t("YYYYY",ai,ci);t("YYYYYY",ai,ci);c(["YYYY","YYYYY","YYYYYY"],d);c("YY",function(n,t){t[d]=i.parseTwoDigitYear(n)});i.parseTwoDigitYear=function(n){return s(n)+(s(n)>68?1900:2e3)};ar=pt("FullYear",!1);u("w",["ww",2],"wo","week");u("W",["WW",2],"Wo","isoWeek");l("week","w");l("isoWeek","W");t("w",h);t("ww",h,v);t("W",h);t("WW",h,v);ii(["w","ww","W","WW"],function(n,t,i,r){t[r.substr(0,1)]=s(n)});uf={dow:0,doy:6};u("DDD",["DDDD",3],"DDDo","dayOfYear");l("dayOfYear","DDD");t("DDD",li);t("DDDD",pu);c(["DDD","DDDD"],function(n,t,i){i._dayOfYear=s(n)});i.ISO_8601=function(){};ef=p("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(){var n=e.apply(null,arguments);return n<this?this:n});of=p("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(){var n=e.apply(null,arguments);return n>this?this:n});hf("Z",":");hf("ZZ","");t("Z",yi);t("ZZ",yi);c(["Z","ZZ"],function(n,t,i){i._useUTC=!0;i._tzm=wr(n)});cf=/([\+\-]|\d\d)/gi;i.updateOffset=function(){};af=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/;vf=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/;it.fn=pi.prototype;bf=pf(1,"add");kf=pf(-1,"subtract");i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";dr=p("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(n){return n===undefined?this.localeData():this.locale(n)});u(0,["gg",2],0,function(){return this.weekYear()%100});u(0,["GG",2],0,function(){return this.isoWeekYear()%100});wi("gggg","weekYear");wi("ggggg","weekYear");wi("GGGG","isoWeekYear");wi("GGGGG","isoWeekYear");l("weekYear","gg");l("isoWeekYear","GG");t("G",vi);t("g",vi);t("GG",h,v);t("gg",h,v);t("GGGG",rr,ir);t("gggg",rr,ir);t("GGGGG",ai,ci);t("ggggg",ai,ci);ii(["gggg","ggggg","GGGG","GGGGG"],function(n,t,i,r){t[r.substr(0,2)]=s(n)});ii(["gg","GG"],function(n,t,r,u){t[u]=i.parseTwoDigitYear(n)});u("Q",0,0,"quarter");l("quarter","Q");t("Q",yu);c("Q",function(n,t){t[g]=(s(n)-1)*3});u("D",["DD",2],"Do","date");l("date","D");t("D",h);t("DD",h,v);t("Do",function(n,t){return n?t._ordinalParse:t._ordinalParseLenient});c(["D","DD"],w);c("Do",function(n,t){t[w]=s(n.match(h)[0],10)});gr=pt("Date",!0);u("d",0,"do","day");u("dd",0,0,function(n){return this.localeData().weekdaysMin(this,n)});u("ddd",0,0,function(n){return this.localeData().weekdaysShort(this,n)});u("dddd",0,0,function(n){return this.localeData().weekdays(this,n)});u("e",0,0,"weekday");u("E",0,0,"isoWeekday");l("day","d");l("weekday","e");l("isoWeekday","E");t("d",h);t("e",h);t("E",h);t("dd",ti);t("ddd",ti);t("dddd",ti);ii(["dd","ddd","dddd"],function(n,t,i){var r=i._locale.weekdaysParse(n);r!=null?t.d=r:o(i).invalidWeekday=n});ii(["d","e","E"],function(n,t,i,r){t[r]=s(n)});ie="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");re="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");ue="Su_Mo_Tu_We_Th_Fr_Sa".split("_");u("H",["HH",2],0,"hour");u("h",["hh",2],0,function(){return this.hours()%12||12});fe("a",!0);fe("A",!1);l("hour","h");t("a",ee);t("A",ee);t("H",h);t("h",h);t("HH",h,v);t("hh",h,v);c(["H","HH"],a);c(["a","A"],function(n,t,i){i._isPm=i._locale.isPM(n);i._meridiem=n});c(["h","hh"],function(n,t,i){t[a]=s(n);o(i).bigHour=!0});oe=/[ap]\.?m?\.?/i;se=pt("Hours",!0);u("m",["mm",2],0,"minute");l("minute","m");t("m",h);t("mm",h,v);c(["m","mm"],ot);he=pt("Minutes",!1);u("s",["ss",2],0,"second");l("second","s");t("s",h);t("ss",h,v);c(["s","ss"],st);ce=pt("Seconds",!1);u("S",0,0,function(){return~~(this.millisecond()/100)});u(0,["SS",2],0,function(){return~~(this.millisecond()/10)});le("SSS");le("SSSS");l("millisecond","ms");t("S",li,yu);t("SS",li,v);t("SSS",li,pu);t("SSSS",/\d+/);c(["S","SS","SSS","SSSS"],function(n,t){t[ht]=s(("0."+n)*1e3)});ae=pt("Milliseconds",!1);u("z",0,0,"zoneAbbr");u("zz",0,0,"zoneName");n=dt.prototype;n.add=bf;n.calendar=hh;n.clone=ch;n.diff=ph;n.endOf=rc;n.format=kh;n.from=dh;n.fromNow=gh;n.to=nc;n.toNow=tc;n.get=lu;n.invalidAt=cc;n.isAfter=lh;n.isBefore=ah;n.isBetween=vh;n.isSame=yh;n.isValid=sc;n.lang=dr;n.locale=gf;n.localeData=ne;n.max=of;n.min=ef;n.parsingFlags=hc;n.set=lu;n.startOf=ic;n.subtract=kf;n.toArray=oc;n.toDate=ec;n.toISOString=df;n.toJSON=df;n.toString=bh;n.unix=fc;n.valueOf=uc;n.year=ar;n.isLeapYear=is;n.weekYear=lc;n.isoWeekYear=ac;n.quarter=n.quarters=pc;n.month=du;n.daysInMonth=wo;n.week=n.weeks=es;n.isoWeek=n.isoWeeks=os;n.weeksInYear=yc;n.isoWeeksInYear=vc;n.date=gr;n.day=n.days=nl;n.weekday=tl;n.isoWeekday=il;n.dayOfYear=hs;n.hour=n.hours=se;n.minute=n.minutes=he;n.second=n.seconds=ce;n.millisecond=n.milliseconds=ae;n.utcOffset=ds;n.utc=nh;n.local=th;n.parseZone=ih;n.hasAlignedHourOffset=rh;n.isDST=uh;n.isDSTShifted=fh;n.isLocal=eh;n.isUtcOffset=oh;n.isUtc=lf;n.isUTC=lf;n.zoneAbbr=fl;n.zoneName=el;n.dates=p("dates accessor is deprecated. Use date instead.",gr);n.months=p("months accessor is deprecated. Use month instead",du);n.years=p("years accessor is deprecated. Use year instead",ar);n.zone=p("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",gs);ve=n;ye={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};pe={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY LT",LLLL:"dddd, MMMM D, YYYY LT"};we="Invalid date";be="%d";ke=/\d{1,2}/;ge={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};r=fu.prototype;r._calendar=ye;r.calendar=hl;r._longDateFormat=pe;r.longDateFormat=cl;r._invalidDate=we;r.invalidDate=ll;r._ordinal=be;r.ordinal=al;r._ordinalParse=ke;r.preparse=de;r.postformat=de;r._relativeTime=ge;r.relativeTime=vl;r.pastFuture=yl;r.set=pl;r.months=vo;r._months=wu;r.monthsShort=yo;r._monthsShort=bu;r.monthsParse=po;r.week=rs;r._week=uf;r.firstDayOfYear=fs;r.firstDayOfWeek=us;r.weekdays=bc;r._weekdays=ie;r.weekdaysMin=dc;r._weekdaysMin=ue;r.weekdaysShort=kc;r._weekdaysShort=re;r.weekdaysParse=gc;r.isPM=rl;r._meridiemParse=oe;r.meridiem=ul;gt("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var t=n%10,i=s(n%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return n+i}});i.lang=p("moment.lang is deprecated. Use moment.locale instead.",gt);i.langData=p("moment.langData is deprecated. Use moment.localeData instead.",et);k=Math.abs;var ea=rt("ms"),oa=rt("s"),sa=rt("m"),ha=rt("h"),ca=rt("d"),la=rt("w"),aa=rt("M"),va=rt("y");var pa=at("milliseconds"),wa=at("seconds"),ba=at("minutes"),ka=at("hours"),da=at("days"),ga=at("months"),nv=at("years");return vt=Math.round,nt={s:45,m:45,h:22,d:26,M:11},yt=Math.abs,f=pi.prototype,f.abs=na,f.add=ta,f.subtract=ia,f.as=ua,f.asMilliseconds=ea,f.asSeconds=oa,f.asMinutes=sa,f.asHours=ha,f.asDays=ca,f.asWeeks=la,f.asMonths=aa,f.asYears=va,f.valueOf=fa,f._bubble=ra,f.get=ya,f.milliseconds=pa,f.seconds=wa,f.minutes=ba,f.hours=ka,f.days=da,f.weeks=tv,f.months=ga,f.years=nv,f.humanize=fv,f.toISOString=bi,f.toString=bi,f.toJSON=bi,f.locale=gf,f.localeData=ne,f.toIsoString=p("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",bi),f.lang=dr,u("X",0,0,"unix"),u("x",0,0,"valueOf"),t("x",vi),t("X",/[+-]?\d+(\.\d{1,3})?/),c("X",function(n,t,i){i._d=new Date(parseFloat(n,10)*1e3)}),c("x",function(n,t,i){i._d=new Date(s(n))}),i.version="2.10.3",uo(e),i.fn=ve,i.min=bs,i.max=ks,i.utc=kt,i.unix=ol,i.months=wl,i.isDate=fi,i.locale=gt,i.invalid=iu,i.duration=it,i.isMoment=tt,i.weekdays=kl,i.parseZone=sl,i.localeData=et,i.isDuration=pr,i.monthsShort=bl,i.weekdaysMin=gl,i.defineLocale=su,i.weekdaysShort=dl,i.normalizeUnits=y,i.relativeTimeThreshold=uv,i}),function(n){function a(n){return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function r(n,t,i){return t<n.length?n:Array(t-n.length+1).join(i||" ")+n}function y(n,i,r,u,f,o){return i&&r?'<div class="bootstrap-datetimepicker-widget dropdown-menu"><ul><li'+(o?' class="collapse in"':"")+'><div class="datepicker">'+t.template+'<\/div><\/li><li class="picker-switch accordion-toggle"><a><i class="'+n+'"><\/i><\/a><\/li><li'+(o?' class="collapse"':"")+'><div class="timepicker">'+e.getTemplate(u,f)+"<\/div><\/li><\/ul><\/div>":r?'<div class="bootstrap-datetimepicker-widget dropdown-menu"><div class="timepicker">'+e.getTemplate(u,f)+"<\/div><\/div>":'<div class="bootstrap-datetimepicker-widget dropdown-menu"><div class="datepicker">'+t.template+"<\/div><\/div>"}function i(){return new Date(Date.UTC.apply(Date,arguments))}var p=window.orientation!=undefined,o=function(n,t){this.id=v++;this.init(n,t)},w=function(n){return typeof n=="string"?new Date(n):n},h,c,l,t,e;o.prototype={constructor:o,init:function(t,i){var r;if(!(i.pickTime||i.pickDate))throw new Error("Must choose at least one picker");if(this.options=i,this.$element=n(t),this.language=i.language in s?i.language:"en",this.pickDate=i.pickDate,this.pickTime=i.pickTime,this.isInput=this.$element.is("input"),this.component=!1,(this.$element.find(".input-append")||this.$element.find(".input-prepend"))&&(this.component=this.$element.find(".add-on")),this.format=i.format,this.format||(this.format=this.isInput?this.$element.data("format"):this.$element.find("input").data("format"),this.format||(this.format="MM/dd/yyyy")),this._compileFormat(),this.component&&(r=this.component.find("i")),this.pickTime&&(r&&r.length&&(this.timeIcon=r.data("time-icon")),this.timeIcon||(this.timeIcon="icon-time"),r.addClass(this.timeIcon)),this.pickDate&&(r&&r.length&&(this.dateIcon=r.data("date-icon")),this.dateIcon||(this.dateIcon="icon-calendar"),r.removeClass(this.timeIcon),r.addClass(this.dateIcon)),this.widget=n(y(this.timeIcon,i.pickDate,i.pickTime,i.pick12HourFormat,i.pickSeconds,i.collapse)).appendTo("body"),this.minViewMode=i.minViewMode||this.$element.data("date-minviewmode")||0,typeof this.minViewMode=="string")switch(this.minViewMode){case"months":this.minViewMode=1;break;case"years":this.minViewMode=2;break;default:this.minViewMode=0}if(this.viewMode=i.viewMode||this.$element.data("date-viewmode")||0,typeof this.viewMode=="string")switch(this.viewMode){case"months":this.viewMode=1;break;case"years":this.viewMode=2;break;default:this.viewMode=0}this.startViewMode=this.viewMode;this.weekStart=i.weekStart||this.$element.data("date-weekstart")||0;this.weekEnd=this.weekStart===0?6:this.weekStart-1;this.setStartDate(i.startDate||this.$element.data("date-startdate"));this.setEndDate(i.endDate||this.$element.data("date-enddate"));this.fillDow();this.fillMonths();this.fillHours();this.fillMinutes();this.fillSeconds();this.update();this.showMode();this._attachDatePickerEvents()},show:function(n){this.widget.show();this.height=this.component?this.component.outerHeight():this.$element.outerHeight();this.place();this.$element.trigger({type:"show",date:this._date});this._attachDatePickerGlobalEvents();n&&(n.stopPropagation(),n.preventDefault())},disable:function(){this.$element.find("input").prop("disabled",!0);this._detachDatePickerEvents()},enable:function(){this.$element.find("input").prop("disabled",!1);this._attachDatePickerEvents()},hide:function(){for(var i=this.widget.find(".collapse"),t,n=0;n<i.length;n++)if(t=i.eq(n).data("collapse"),t&&t.transitioning)return;this.widget.hide();this.viewMode=this.startViewMode;this.showMode();this.set();this.$element.trigger({type:"hide",date:this._date});this._detachDatePickerGlobalEvents()},set:function(){var n="",t;this._unset||(n=this.formatDate(this._date));this.isInput?(this.$element.val(n),this._resetMaskPos(this.$element)):(this.component&&(t=this.$element.find("input"),t.val(n),this._resetMaskPos(t)),this.$element.data("date",n))},setValue:function(n){this._unset=n?!1:!0;typeof n=="string"?this._date=this.parseDate(n):n&&(this._date=new Date(n));this.set();this.viewDate=i(this._date.getUTCFullYear(),this._date.getUTCMonth(),1,0,0,0,0);this.fillDate();this.fillTime()},getDate:function(){return this._unset?null:new Date(this._date.valueOf())},setDate:function(n){n?this.setValue(n.valueOf()):this.setValue(null)},setStartDate:function(n){n instanceof Date?this.startDate=n:typeof n=="string"?(this.startDate=new i(n),this.startDate.getUTCFullYear()||(this.startDate=-Infinity)):this.startDate=-Infinity;this.viewDate&&this.update()},setEndDate:function(n){n instanceof Date?this.endDate=n:typeof n=="string"?(this.endDate=new i(n),this.endDate.getUTCFullYear()||(this.endDate=Infinity)):this.endDate=Infinity;this.viewDate&&this.update()},getLocalDate:function(){if(this._unset)return null;var n=this._date;return new Date(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds(),n.getUTCMilliseconds())},setLocalDate:function(n){n?this.setValue(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds())):this.setValue(null)},place:function(){var r="absolute",t=this.component?this.component.offset():this.$element.offset(),i;this.width=this.component?this.component.outerWidth():this.$element.outerWidth();t.top=t.top+this.height;i=n(window);this.options.width!=undefined&&this.widget.width(this.options.width);this.options.orientation=="left"&&(this.widget.addClass("left-oriented"),t.left=t.left-this.widget.width()+20);this._isInFixed()&&(r="fixed",t.top-=i.scrollTop(),t.left-=i.scrollLeft());i.width()<t.left+this.widget.outerWidth()?(t.right=i.width()-t.left-this.width,t.left="auto",this.widget.addClass("pull-right")):(t.right="auto",this.widget.removeClass("pull-right"));this.widget.css({position:r,top:t.top,left:t.left,right:t.right})},notifyChange:function(){this.$element.trigger({type:"changeDate",date:this.getDate(),localDate:this.getLocalDate()})},update:function(n){var r=n,t;r||(r=this.isInput?this.$element.val():this.$element.find("input").val(),r&&(this._date=this.parseDate(r)),this._date||(t=new Date,this._date=i(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())));this.viewDate=i(this._date.getUTCFullYear(),this._date.getUTCMonth(),1,0,0,0,0);this.fillDate();this.fillTime()},fillDow:function(){for(var t=this.weekStart,i=n("<tr>");t<this.weekStart+7;)i.append('<th class="dow">'+s[this.language].daysMin[t++%7]+"<\/th>");this.widget.find(".datepicker-days thead").append(i)},fillMonths:function(){for(var n="",t=0;t<12;)n+='<span class="month">'+s[this.language].monthsShort[t++]+"<\/span>";this.widget.find(".datepicker-months td").append(n)},fillDate:function(){var r=this.viewDate.getUTCFullYear(),c=this.viewDate.getUTCMonth(),g=i(this._date.getUTCFullYear(),this._date.getUTCMonth(),this._date.getUTCDate(),0,0,0,0),e=typeof this.startDate=="object"?this.startDate.getUTCFullYear():-Infinity,b=typeof this.startDate=="object"?this.startDate.getUTCMonth():-1,o=typeof this.endDate=="object"?this.endDate.getUTCFullYear():Infinity,k=typeof this.endDate=="object"?this.endDate.getUTCMonth():12,u,p,l,a,w,h,v,y,d,f;for(this.widget.find(".datepicker-days").find(".disabled").removeClass("disabled"),this.widget.find(".datepicker-months").find(".disabled").removeClass("disabled"),this.widget.find(".datepicker-years").find(".disabled").removeClass("disabled"),this.widget.find(".datepicker-days th:eq(1)").text(s[this.language].months[c]+" "+r),u=i(r,c-1,28,0,0,0,0),p=t.getDaysInMonth(u.getUTCFullYear(),u.getUTCMonth()),u.setUTCDate(p),u.setUTCDate(p-(u.getUTCDay()-this.weekStart+7)%7),(r==e&&c<=b||r<e)&&this.widget.find(".datepicker-days th:eq(0)").addClass("disabled"),(r==o&&c>=k||r>o)&&this.widget.find(".datepicker-days th:eq(2)").addClass("disabled"),l=new Date(u.valueOf()),l.setUTCDate(l.getUTCDate()+42),l=l.valueOf(),a=[];u.valueOf()<l;)u.getUTCDay()===this.weekStart&&(w=n("<tr>"),a.push(w)),h="",u.getUTCFullYear()<r||u.getUTCFullYear()==r&&u.getUTCMonth()<c?h+=" old":(u.getUTCFullYear()>r||u.getUTCFullYear()==r&&u.getUTCMonth()>c)&&(h+=" new"),u.valueOf()===g.valueOf()&&(h+=" active"),u.valueOf()+864e5<=this.startDate&&(h+=" disabled"),u.valueOf()>this.endDate&&(h+=" disabled"),w.append('<td class="day'+h+'">'+u.getUTCDate()+"<\/td>"),u.setUTCDate(u.getUTCDate()+1);for(this.widget.find(".datepicker-days tbody").empty().append(a),v=this._date.getUTCFullYear(),y=this.widget.find(".datepicker-months").find("th:eq(1)").text(r).end().find("span").removeClass("active"),v===r&&y.eq(this._date.getUTCMonth()).addClass("active"),v-1<e&&this.widget.find(".datepicker-months th:eq(0)").addClass("disabled"),v+1>o&&this.widget.find(".datepicker-months th:eq(2)").addClass("disabled"),f=0;f<12;f++)r==e&&b>f||r<e?n(y[f]).addClass("disabled"):(r==o&&k<f||r>o)&&n(y[f]).addClass("disabled");for(a="",r=parseInt(r/10,10)*10,d=this.widget.find(".datepicker-years").find("th:eq(1)").text(r+"-"+(r+9)).end().find("td"),this.widget.find(".datepicker-years").find("th").removeClass("disabled"),e>r&&this.widget.find(".datepicker-years").find("th:eq(0)").addClass("disabled"),o<r+9&&this.widget.find(".datepicker-years").find("th:eq(2)").addClass("disabled"),r-=1,f=-1;f<11;f++)a+='<span class="year'+(f===-1||f===10?" old":"")+(v===r?" active":"")+(r<e||r>o?" disabled":"")+'">'+r+"<\/span>",r+=1;d.html(a)},fillHours:function(){var e=this.widget.find(".timepicker .timepicker-hours table"),n,t,i,u,f;if(e.parent().hide(),n="",this.options.pick12HourFormat)for(t=1,i=0;i<3;i+=1){for(n+="<tr>",u=0;u<4;u+=1)f=t.toString(),n+='<td class="hour">'+r(f,2,"0")+"<\/td>",t++;n+="<\/tr>"}else for(t=0,i=0;i<6;i+=1){for(n+="<tr>",u=0;u<4;u+=1)f=t.toString(),n+='<td class="hour">'+r(f,2,"0")+"<\/td>",t++;n+="<\/tr>"}e.html(n)},fillMinutes:function(){var f=this.widget.find(".timepicker .timepicker-minutes table"),n,t,i,u,e;for(f.parent().hide(),n="",t=0,i=0;i<5;i++){for(n+="<tr>",u=0;u<4;u+=1)e=t.toString(),n+='<td class="minute">'+r(e,2,"0")+"<\/td>",t+=3;n+="<\/tr>"}f.html(n)},fillSeconds:function(){var f=this.widget.find(".timepicker .timepicker-seconds table"),n,t,i,u,e;for(f.parent().hide(),n="",t=0,i=0;i<5;i++){for(n+="<tr>",u=0;u<4;u+=1)e=t.toString(),n+='<td class="second">'+r(e,2,"0")+"<\/td>",t+=3;n+="<\/tr>"}f.html(n)},fillTime:function(){var u,f;if(this._date){var t=this.widget.find(".timepicker span[data-time-component]"),o=t.closest("table"),e=this.options.pick12HourFormat,n=this._date.getUTCHours(),i="AM";e&&(n>=12&&(i="PM"),n===0?n=12:n!=12&&(n=n%12),this.widget.find(".timepicker [data-action=togglePeriod]").text(i));n=r(n.toString(),2,"0");u=r(this._date.getUTCMinutes().toString(),2,"0");f=r(this._date.getUTCSeconds().toString(),2,"0");t.filter("[data-time-component=hours]").text(n);t.filter("[data-time-component=minutes]").text(u);t.filter("[data-time-component=seconds]").text(f)}},click:function(r){var u,f,e;if(r.stopPropagation(),r.preventDefault(),this._unset=!1,u=n(r.target).closest("span, td, th"),u.length===1&&!u.is(".disabled"))switch(u[0].nodeName.toLowerCase()){case"th":switch(u[0].className){case"switch":this.showMode(1);break;case"prev":case"next":var s=this.viewDate,h=t.modes[this.viewMode].navFnc,o=t.modes[this.viewMode].navStep;u[0].className==="prev"&&(o=o*-1);s["set"+h](s["get"+h]()+o);this.fillDate();this.set()}break;case"span":u.is(".month")?(f=u.parent().find("span").index(u),this.viewDate.setUTCMonth(f)):(e=parseInt(u.text(),10)||0,this.viewDate.setUTCFullYear(e));this.viewMode!==0&&(this._date=i(this.viewDate.getUTCFullYear(),this.viewDate.getUTCMonth(),this.viewDate.getUTCDate(),this._date.getUTCHours(),this._date.getUTCMinutes(),this._date.getUTCSeconds(),this._date.getUTCMilliseconds()),this.notifyChange());this.showMode(-1);this.fillDate();this.set();break;case"td":if(u.is(".day")){var c=parseInt(u.text(),10)||1,f=this.viewDate.getUTCMonth(),e=this.viewDate.getUTCFullYear();u.is(".old")?f===0?(f=11,e-=1):f-=1:u.is(".new")&&(f==11?(f=0,e+=1):f+=1);this._date=i(e,f,c,this._date.getUTCHours(),this._date.getUTCMinutes(),this._date.getUTCSeconds(),this._date.getUTCMilliseconds());this.viewDate=i(e,f,Math.min(28,c),0,0,0,0);this.fillDate();this.set();this.notifyChange()}}},actions:{incrementHours:function(){this._date.setUTCHours(this._date.getUTCHours()+1)},incrementMinutes:function(){this._date.setUTCMinutes(this._date.getUTCMinutes()+1)},incrementSeconds:function(){this._date.setUTCSeconds(this._date.getUTCSeconds()+1)},decrementHours:function(){this._date.setUTCHours(this._date.getUTCHours()-1)},decrementMinutes:function(){this._date.setUTCMinutes(this._date.getUTCMinutes()-1)},decrementSeconds:function(){this._date.setUTCSeconds(this._date.getUTCSeconds()-1)},togglePeriod:function(){var n=this._date.getUTCHours();n>=12?n-=12:n+=12;this._date.setUTCHours(n)},showPicker:function(){this.widget.find(".timepicker > div:not(.timepicker-picker)").hide();this.widget.find(".timepicker .timepicker-picker").show()},showHours:function(){this.widget.find(".timepicker .timepicker-picker").hide();this.widget.find(".timepicker .timepicker-hours").show()},showMinutes:function(){this.widget.find(".timepicker .timepicker-picker").hide();this.widget.find(".timepicker .timepicker-minutes").show()},showSeconds:function(){this.widget.find(".timepicker .timepicker-picker").hide();this.widget.find(".timepicker .timepicker-seconds").show()},selectHour:function(t){var u=n(t.target),i=parseInt(u.text(),10),r;this.options.pick12HourFormat&&(r=this._date.getUTCHours(),r>=12?i!=12&&(i=(i+12)%24):i=i===12?0:i%12);this._date.setUTCHours(i);this.actions.showPicker.call(this)},selectMinute:function(t){var i=n(t.target),r=parseInt(i.text(),10);this._date.setUTCMinutes(r);this.actions.showPicker.call(this)},selectSecond:function(t){var i=n(t.target),r=parseInt(i.text(),10);this._date.setUTCSeconds(r);this.actions.showPicker.call(this)}},doAction:function(t){t.stopPropagation();t.preventDefault();this._date||(this._date=i(1970,0,0,0,0,0,0));var r=n(t.currentTarget).data("action"),u=this.actions[r].apply(this,arguments);return this.set(),this.fillTime(),this.notifyChange(),u},stopEvent:function(n){n.stopPropagation();n.preventDefault()},keydown:function(t){var r=this,i=t.which,u=n(t.target);(i==8||i==46)&&setTimeout(function(){r._resetMaskPos(u)})},keypress:function(t){var f=t.which,r;if(f!=8&&f!=46){var u=n(t.target),e=String.fromCharCode(f),i=u.val()||"";if(i+=e,r=this._mask[this._maskPos],!r)return!1;if(r.end==i.length)if(r.pattern.test(i.slice(r.start)))this._maskPos++;else{for(i=i.slice(0,i.length-1);(r=this._mask[this._maskPos])&&r.character;)i+=r.character,this._maskPos++;return i+=e,r.end!=i.length?(u.val(i),!1):r.pattern.test(i.slice(r.start))?(u.val(i),this._maskPos++,!1):(u.val(i.slice(0,r.start)),!1)}}},change:function(t){var i=n(t.target),r=i.val();this._formatPattern.test(r)?(this.update(),this.setValue(this._date.getTime()),this.notifyChange(),this.set()):r&&r.trim()?(this.setValue(this._date.getTime()),this._date?this.set():i.val("")):this._date&&(this.setValue(null),this.notifyChange(),this._unset=!0);this._resetMaskPos(i)},showMode:function(n){n&&(this.viewMode=Math.max(this.minViewMode,Math.min(2,this.viewMode+n)));this.widget.find(".datepicker > div").hide().filter(".datepicker-"+t.modes[this.viewMode].clsName).show()},destroy:function(){this._detachDatePickerEvents();this._detachDatePickerGlobalEvents();this.widget.remove();this.$element.removeData("datetimepicker");this.component.removeData("datetimepicker")},formatDate:function(n){return this.format.replace(l,function(t){var e,f,i,o=t.length;if(t==="ms"&&(o=1),f=u[t].property,f==="Hours12")i=n.getUTCHours(),i===0?i=12:i!==12&&(i=i%12);else{if(f==="Period12")return n.getUTCHours()>=12?"PM":"AM";f==="UTCYear"?(i=n.getUTCFullYear(),i=i.toString().substr(2)):(e="get"+f,i=n[e]())}return e==="getUTCMonth"&&(i=i+1),r(i.toString(),o,"0")})},parseDate:function(n){var r,t,u,i,f={};if(!(r=this._formatPattern.exec(n)))return null;for(t=1;t<r.length;t++)(u=this._propertiesByIndex[t],u)&&(i=r[t],/^\d+$/.test(i)&&(i=parseInt(i,10)),f[u]=i);return this._finishParsingDate(f)},_resetMaskPos:function(n){for(var i=n.val(),t=0;t<this._mask.length;t++)if(this._mask[t].end>i.length){this._maskPos=t;break}else if(this._mask[t].end===i.length){this._maskPos=t+1;break}},_finishParsingDate:function(n){var r,u,f,t,e,o,s;return r=n.UTCFullYear,n.UTCYear&&(r=2e3+n.UTCYear),r||(r=1970),u=n.UTCMonth?n.UTCMonth-1:0,f=n.UTCDate||1,t=n.UTCHours||0,e=n.UTCMinutes||0,o=n.UTCSeconds||0,s=n.UTCMilliseconds||0,n.Hours12&&(t=n.Hours12),n.Period12&&(/pm/i.test(n.Period12)?t!=12&&(t=(t+12)%24):t=t%12),i(r,u,f,t,e,o,s)},_compileFormat:function(){for(var e,n,i=[],r=[],f=this.format,o={},s=0,t=0;e=c.exec(f);)n=e[0],n in u?(s++,o[s]=u[n].property,i.push("\\s*"+u[n].getPattern(this)+"\\s*"),r.push({pattern:new RegExp(u[n].getPattern(this)),property:u[n].property,start:t,end:t+=n.length})):(i.push(a(n)),r.push({pattern:new RegExp(a(n)),character:n,start:t,end:++t})),f=f.slice(n.length);this._mask=r;this._maskPos=0;this._formatPattern=new RegExp("^\\s*"+i.join("")+"\\s*$");this._propertiesByIndex=o},_attachDatePickerEvents:function(){var t=this;this.widget.on("click",".datepicker *",n.proxy(this.click,this));this.widget.on("click","[data-action]",n.proxy(this.doAction,this));this.widget.on("mousedown",n.proxy(this.stopEvent,this));if(this.pickDate&&this.pickTime)this.widget.on("click.togglePicker",".accordion-toggle",function(i){var u;i.stopPropagation();var f=n(this),e=f.closest("ul"),r=e.find(".collapse.in"),o=e.find(".collapse:not(.in)");if(r&&r.length){if(u=r.data("collapse"),u&&u.transitioning)return;r.collapse("hide");o.collapse("show");f.find("i").toggleClass(t.timeIcon+" "+t.dateIcon);t.$element.find(".add-on i").toggleClass(t.timeIcon+" "+t.dateIcon)}});if(this.isInput){this.$element.on({focus:n.proxy(this.show,this),change:n.proxy(this.change,this)});if(this.options.maskInput)this.$element.on({keydown:n.proxy(this.keydown,this),keypress:n.proxy(this.keypress,this)})}else{this.$element.on({change:n.proxy(this.change,this)},"input");if(this.options.maskInput)this.$element.on({keydown:n.proxy(this.keydown,this),keypress:n.proxy(this.keypress,this)},"input");if(this.component)this.component.on("click",n.proxy(this.show,this));else this.$element.on("click",n.proxy(this.show,this))}},_attachDatePickerGlobalEvents:function(){n(window).on("resize.datetimepicker"+this.id,n.proxy(this.place,this));if(!this.isInput)n(document).on("mousedown.datetimepicker"+this.id,n.proxy(this.hide,this))},_detachDatePickerEvents:function(){this.widget.off("click",".datepicker *",this.click);this.widget.off("click","[data-action]");this.widget.off("mousedown",this.stopEvent);this.pickDate&&this.pickTime&&this.widget.off("click.togglePicker");this.isInput?(this.$element.off({focus:this.show,change:this.change}),this.options.maskInput&&this.$element.off({keydown:this.keydown,keypress:this.keypress})):(this.$element.off({change:this.change},"input"),this.options.maskInput&&this.$element.off({keydown:this.keydown,keypress:this.keypress},"input"),this.component?this.component.off("click",this.show):this.$element.off("click",this.show))},_detachDatePickerGlobalEvents:function(){n(window).off("resize.datetimepicker"+this.id);this.isInput||n(document).off("mousedown.datetimepicker"+this.id)},_isInFixed:function(){var i,r,t;if(this.$element){for(i=this.$element.parents(),r=!1,t=0;t<i.length;t++)if(n(i[t]).css("position")=="fixed"){r=!0;break}return r}return!1}};n.fn.datetimepicker=function(t,i){return this.each(function(){var u=n(this),r=u.data("datetimepicker"),f=typeof t=="object"&&t;r||u.data("datetimepicker",r=new o(this,n.extend({},n.fn.datetimepicker.defaults,f)));typeof t=="string"&&r[t](i)})};n.fn.datetimepicker.defaults={maskInput:!1,pickDate:!0,pickTime:!0,pick12HourFormat:!1,pickSeconds:!0,startDate:-Infinity,endDate:Infinity,collapse:!0};n.fn.datetimepicker.Constructor=o;var v=0,s=n.fn.datetimepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa","Su"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}},u={dd:{property:"UTCDate",getPattern:function(){return"(0?[1-9]|[1-2][0-9]|3[0-1])\\b"}},MM:{property:"UTCMonth",getPattern:function(){return"(0?[1-9]|1[0-2])\\b"}},yy:{property:"UTCYear",getPattern:function(){return"(\\d{2})\\b"}},yyyy:{property:"UTCFullYear",getPattern:function(){return"(\\d{4})\\b"}},hh:{property:"UTCHours",getPattern:function(){return"(0?[0-9]|1[0-9]|2[0-3])\\b"}},mm:{property:"UTCMinutes",getPattern:function(){return"(0?[0-9]|[1-5][0-9])\\b"}},ss:{property:"UTCSeconds",getPattern:function(){return"(0?[0-9]|[1-5][0-9])\\b"}},ms:{property:"UTCMilliseconds",getPattern:function(){return"([0-9]{1,3})\\b"}},HH:{property:"Hours12",getPattern:function(){return"(0?[1-9]|1[0-2])\\b"}},PP:{property:"Period12",getPattern:function(){return"(AM|PM|am|pm|Am|aM|Pm|pM)\\b"}}},f=[];for(h in u)f.push(h);f[f.length-1]+="\\b";f.push(".");c=new RegExp(f.join("\\b|"));f.pop();l=new RegExp(f.join("\\b|"),"g");t={modes:[{clsName:"days",navFnc:"UTCMonth",navStep:1},{clsName:"months",navFnc:"UTCFullYear",navStep:1},{clsName:"years",navFnc:"UTCFullYear",navStep:10}],isLeapYear:function(n){return n%4==0&&n%100!=0||n%400==0},getDaysInMonth:function(n,i){return[31,t.isLeapYear(n)?29:28,31,30,31,30,31,31,30,31,30,31][i]},headTemplate:'<thead><tr><th class="prev">&lsaquo;<\/th><th colspan="5" class="switch"><\/th><th class="next">&rsaquo;<\/th><\/tr><\/thead>',contTemplate:'<tbody><tr><td colspan="7"><\/td><\/tr><\/tbody>'};t.template='<div class="datepicker-days"><table class="table-condensed">'+t.headTemplate+'<tbody><\/tbody><\/table><\/div><div class="datepicker-months"><table class="table-condensed">'+t.headTemplate+t.contTemplate+'<\/table><\/div><div class="datepicker-years"><table class="table-condensed">'+t.headTemplate+t.contTemplate+"<\/table><\/div>";e={hourTemplate:'<span data-action="showHours" data-time-component="hours" class="timepicker-hour"><\/span>',minuteTemplate:'<span data-action="showMinutes" data-time-component="minutes" class="timepicker-minute"><\/span>',secondTemplate:'<span data-action="showSeconds" data-time-component="seconds" class="timepicker-second"><\/span>'};e.getTemplate=function(n,t){return'<div class="timepicker-picker"><table class="table-condensed"'+(n?' data-hour-format="12"':"")+'><tr><td><a href="#" class="btn" data-action="incrementHours"><i class="icon-chevron-up"><\/i><\/a><\/td><td class="separator"><\/td><td><a href="#" class="btn" data-action="incrementMinutes"><i class="icon-chevron-up"><\/i><\/a><\/td>'+(t?'<td class="separator"><\/td><td><a href="#" class="btn" data-action="incrementSeconds"><i class="icon-chevron-up"><\/i><\/a><\/td>':"")+(n?'<td class="separator"><\/td>':"")+"<\/tr><tr><td>"+e.hourTemplate+'<\/td> <td class="separator">:<\/td><td>'+e.minuteTemplate+"<\/td> "+(t?'<td class="separator">:<\/td><td>'+e.secondTemplate+"<\/td>":"")+(n?'<td class="separator"><\/td><td><button type="button" class="btn btn-primary" data-action="togglePeriod"><\/button><\/td>':"")+'<\/tr><tr><td><a href="#" class="btn" data-action="decrementHours"><i class="icon-chevron-down"><\/i><\/a><\/td><td class="separator"><\/td><td><a href="#" class="btn" data-action="decrementMinutes"><i class="icon-chevron-down"><\/i><\/a><\/td>'+(t?'<td class="separator"><\/td><td><a href="#" class="btn" data-action="decrementSeconds"><i class="icon-chevron-down"><\/i><\/a><\/td>':"")+(n?'<td class="separator"><\/td>':"")+'<\/tr><\/table><\/div><div class="timepicker-hours" data-action="selectHour"><table class="table-condensed"><\/table><\/div><div class="timepicker-minutes" data-action="selectMinute"><table class="table-condensed"><\/table><\/div>'+(t?'<div class="timepicker-seconds" data-action="selectSecond"><table class="table-condensed"><\/table><\/div>':"")}}(window.jQuery);+function(n){"use strict";var i='[data-dismiss="alert"]',t=function(t){n(t).on("click",i,this.close)},r;t.prototype.close=function(t){function f(){i.trigger("closed.bs.alert").remove()}var u=n(this),r=u.attr("data-target"),i;(r||(r=u.attr("href"),r=r&&r.replace(/.*(?=#[^\s]*$)/,"")),i=n(r),t&&t.preventDefault(),i.length||(i=u.hasClass("alert")?u:u.parent()),i.trigger(t=n.Event("close.bs.alert")),t.isDefaultPrevented())||(i.removeClass("in"),n.support.transition&&i.hasClass("fade")?i.one(n.support.transition.end,f).emulateTransitionEnd(150):f())};r=n.fn.alert;n.fn.alert=function(i){return this.each(function(){var r=n(this),u=r.data("bs.alert");u||r.data("bs.alert",u=new t(this));typeof i=="string"&&u[i].call(r)})};n.fn.alert.Constructor=t;n.fn.alert.noConflict=function(){return n.fn.alert=r,this};n(document).on("click.bs.alert.data-api",i,t.prototype.close)}(jQuery);+function(n){"use strict";var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.isLoading=!1},i;t.DEFAULTS={loadingText:"loading..."};t.prototype.setState=function(t){var r="disabled",i=this.$element,u=i.is("input")?"val":"html",f=i.data();t+="Text";f.resetText||i.data("resetText",i[u]());i[u](f[t]||this.options[t]);setTimeout(n.proxy(function(){t=="loadingText"?(this.isLoading=!0,i.addClass(r).attr(r,r)):this.isLoading&&(this.isLoading=!1,i.removeClass(r).removeAttr(r))},this),0)};t.prototype.toggle=function(){var t=!0,i=this.$element.closest('[data-toggle="buttons"]'),n;i.length&&(n=this.$element.find("input"),n.prop("type")=="radio"&&(n.prop("checked")&&this.$element.hasClass("active")?t=!1:i.find(".active").removeClass("active")),t&&n.prop("checked",!this.$element.hasClass("active")).trigger("change"));t&&this.$element.toggleClass("active")};i=n.fn.button;n.fn.button=function(i){return this.each(function(){var u=n(this),r=u.data("bs.button"),f=typeof i=="object"&&i;r||u.data("bs.button",r=new t(this,f));i=="toggle"?r.toggle():i&&r.setState(i)})};n.fn.button.Constructor=t;n.fn.button.noConflict=function(){return n.fn.button=i,this};n(document).on("click.bs.button.data-api","[data-toggle^=button]",function(t){var i=n(t.target);i.hasClass("btn")||(i=i.closest(".btn"));i.button("toggle");t.preventDefault()})}(jQuery);+function(n){"use strict";var t=function(t,i){this.$element=n(t);this.$indicators=this.$element.find(".carousel-indicators");this.options=i;this.paused=this.sliding=this.interval=this.$active=this.$items=null;this.options.pause=="hover"&&this.$element.on("mouseenter",n.proxy(this.pause,this)).on("mouseleave",n.proxy(this.cycle,this))},i;t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0};t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(n.proxy(this.next,this),this.options.interval)),this};t.prototype.getActiveIndex=function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)};t.prototype.to=function(t){var r=this,i=this.getActiveIndex();if(!(t>this.$items.length-1)&&!(t<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){r.to(t)}):i==t?this.pause().cycle():this.slide(t>i?"next":"prev",n(this.$items[t]))};t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&n.support.transition&&(this.$element.trigger(n.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this};t.prototype.next=function(){if(!this.sliding)return this.slide("next")};t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")};t.prototype.slide=function(t,i){var u=this.$element.find(".item.active"),r=i||u[t](),s=this.interval,f=t=="next"?"left":"right",h=t=="next"?"first":"last",e=this,o;if(!r.length){if(!this.options.wrap)return;r=this.$element.find(".item")[h]()}return r.hasClass("active")?this.sliding=!1:(o=n.Event("slide.bs.carousel",{relatedTarget:r[0],direction:f}),this.$element.trigger(o),o.isDefaultPrevented())?void 0:(this.sliding=!0,s&&this.pause(),this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),this.$element.one("slid.bs.carousel",function(){var t=n(e.$indicators.children()[e.getActiveIndex()]);t&&t.addClass("active")})),n.support.transition&&this.$element.hasClass("slide")?(r.addClass(t),r[0].offsetWidth,u.addClass(f),r.addClass(f),u.one(n.support.transition.end,function(){r.removeClass([t,f].join(" ")).addClass("active");u.removeClass(["active",f].join(" "));e.sliding=!1;setTimeout(function(){e.$element.trigger("slid.bs.carousel")},0)}).emulateTransitionEnd(u.css("transition-duration").slice(0,-1)*1e3)):(u.removeClass("active"),r.addClass("active"),this.sliding=!1,this.$element.trigger("slid.bs.carousel")),s&&this.cycle(),this)};i=n.fn.carousel;n.fn.carousel=function(i){return this.each(function(){var u=n(this),r=u.data("bs.carousel"),f=n.extend({},t.DEFAULTS,u.data(),typeof i=="object"&&i),e=typeof i=="string"?i:f.slide;r||u.data("bs.carousel",r=new t(this,f));typeof i=="number"?r.to(i):e?r[e]():f.interval&&r.pause().cycle()})};n.fn.carousel.Constructor=t;n.fn.carousel.noConflict=function(){return n.fn.carousel=i,this};n(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(t){var i=n(this),f,r=n(i.attr("data-target")||(f=i.attr("href"))&&f.replace(/.*(?=#[^\s]+$)/,"")),e=n.extend({},r.data(),i.data()),u=i.attr("data-slide-to");u&&(e.interval=!1);r.carousel(e);(u=i.attr("data-slide-to"))&&r.data("bs.carousel").to(u);t.preventDefault()});n(window).on("load",function(){n('[data-ride="carousel"]').each(function(){var t=n(this);t.carousel(t.data())})})}(jQuery);+function(n){function r(t){n(e).remove();n(i).each(function(){var i=u(n(this)),r={relatedTarget:this};i.hasClass("open")&&((i.trigger(t=n.Event("hide.bs.dropdown",r)),t.isDefaultPrevented())||i.removeClass("open").trigger("hidden.bs.dropdown",r))})}function u(t){var i=t.attr("data-target"),r;return i||(i=t.attr("href"),i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,"")),r=i&&n(i),r&&r.length?r:t.parent()}var f;"use strict";var e=".dropdown-backdrop",i="[data-toggle=dropdown]",t=function(t){n(t).on("click.bs.dropdown",this.toggle)};t.prototype.toggle=function(t){var f=n(this),i,o,e;if(!f.is(".disabled, :disabled")){if(i=u(f),o=i.hasClass("open"),r(),!o){if("ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length&&n('<div class="dropdown-backdrop"/>').insertAfter(n(this)).on("click",r),e={relatedTarget:this},i.trigger(t=n.Event("show.bs.dropdown",e)),t.isDefaultPrevented())return;i.toggleClass("open").trigger("shown.bs.dropdown",e);f.focus()}return!1}};t.prototype.keydown=function(t){var e,o,s,h,f,r;if(/(38|40|27)/.test(t.keyCode)&&(e=n(this),t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled"))){if(o=u(e),s=o.hasClass("open"),!s||s&&t.keyCode==27)return t.which==27&&o.find(i).focus(),e.click();(h=" li:not(.divider):visible a",f=o.find("[role=menu]"+h+", [role=listbox]"+h),f.length)&&(r=f.index(f.filter(":focus")),t.keyCode==38&&r>0&&r--,t.keyCode==40&&r<f.length-1&&r++,~r||(r=0),f.eq(r).focus())}};f=n.fn.dropdown;n.fn.dropdown=function(i){return this.each(function(){var r=n(this),u=r.data("bs.dropdown");u||r.data("bs.dropdown",u=new t(this));typeof i=="string"&&u[i].call(r)})};n.fn.dropdown.Constructor=t;n.fn.dropdown.noConflict=function(){return n.fn.dropdown=f,this};n(document).on("click.bs.dropdown.data-api",r).on("click.bs.dropdown.data-api",".dropdown form",function(n){n.stopPropagation()}).on("click.bs.dropdown.data-api",i,t.prototype.toggle).on("keydown.bs.dropdown.data-api",i+", [role=menu], [role=listbox]",t.prototype.keydown)}(jQuery);+function(n){"use strict";var t=function(t,i){this.options=i;this.$element=n(t);this.$backdrop=this.isShown=null;this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,n.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))},i;t.DEFAULTS={backdrop:!0,keyboard:!0,show:!0};t.prototype.toggle=function(n){return this[this.isShown?"hide":"show"](n)};t.prototype.show=function(t){var i=this,r=n.Event("show.bs.modal",{relatedTarget:t});(this.$element.trigger(r),this.isShown||r.isDefaultPrevented())||(this.isShown=!0,this.escape(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',n.proxy(this.hide,this)),this.backdrop(function(){var u=n.support.transition&&i.$element.hasClass("fade"),r;i.$element.parent().length||i.$element.appendTo(document.body);i.$element.show().scrollTop(0);u&&i.$element[0].offsetWidth;i.$element.addClass("in").attr("aria-hidden",!1);i.enforceFocus();r=n.Event("shown.bs.modal",{relatedTarget:t});u?i.$element.find(".modal-dialog").one(n.support.transition.end,function(){i.$element.focus().trigger(r)}).emulateTransitionEnd(300):i.$element.focus().trigger(r)}))};t.prototype.hide=function(t){(t&&t.preventDefault(),t=n.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented())&&(this.isShown=!1,this.escape(),n(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal"),n.support.transition&&this.$element.hasClass("fade")?this.$element.one(n.support.transition.end,n.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal())};t.prototype.enforceFocus=function(){n(document).off("focusin.bs.modal").on("focusin.bs.modal",n.proxy(function(n){this.$element[0]===n.target||this.$element.has(n.target).length||this.$element.focus()},this))};t.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keyup.dismiss.bs.modal",n.proxy(function(n){n.which==27&&this.hide()},this)):this.isShown||this.$element.off("keyup.dismiss.bs.modal")};t.prototype.hideModal=function(){var n=this;this.$element.hide();this.backdrop(function(){n.removeBackdrop();n.$element.trigger("hidden.bs.modal")})};t.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove();this.$backdrop=null};t.prototype.backdrop=function(t){var r=this.$element.hasClass("fade")?"fade":"",i;if(this.isShown&&this.options.backdrop){if(i=n.support.transition&&r,this.$backdrop=n('<div class="modal-backdrop '+r+'" />').appendTo(document.body),this.$element.on("click.dismiss.bs.modal",n.proxy(function(n){n.target===n.currentTarget&&(this.options.backdrop=="static"?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),i&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!t)return;i?this.$backdrop.one(n.support.transition.end,t).emulateTransitionEnd(150):t()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),n.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(n.support.transition.end,t).emulateTransitionEnd(150):t()):t&&t()};i=n.fn.modal;n.fn.modal=function(i,r){return this.each(function(){var f=n(this),u=f.data("bs.modal"),e=n.extend({},t.DEFAULTS,f.data(),typeof i=="object"&&i);u||f.data("bs.modal",u=new t(this,e));typeof i=="string"?u[i](r):e.show&&u.show(r)})};n.fn.modal.Constructor=t;n.fn.modal.noConflict=function(){return n.fn.modal=i,this};n(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var i=n(this),r=i.attr("href"),u=n(i.attr("data-target")||r&&r.replace(/.*(?=#[^\s]+$)/,"")),f=u.data("bs.modal")?"toggle":n.extend({remote:!/#/.test(r)&&r},u.data(),i.data());i.is("a")&&t.preventDefault();u.modal(f,this).one("hide",function(){i.is(":visible")&&i.focus()})});n(document).on("show.bs.modal",".modal",function(){n(document.body).addClass("modal-open")}).on("hidden.bs.modal",".modal",function(){n(document.body).removeClass("modal-open")})}(jQuery);+function(n){"use strict";var t=function(n,t){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null;this.init("tooltip",n,t)},i;t.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip"><div class="tooltip-arrow"><\/div><div class="tooltip-inner"><\/div><\/div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1};t.prototype.init=function(t,i,r){var f,e,u,o,s;for(this.enabled=!0,this.type=t,this.$element=n(i),this.options=this.getOptions(r),f=this.options.trigger.split(" "),e=f.length;e--;)if(u=f[e],u=="click")this.$element.on("click."+this.type,this.options.selector,n.proxy(this.toggle,this));else u!="manual"&&(o=u=="hover"?"mouseenter":"focusin",s=u=="hover"?"mouseleave":"focusout",this.$element.on(o+"."+this.type,this.options.selector,n.proxy(this.enter,this)),this.$element.on(s+"."+this.type,this.options.selector,n.proxy(this.leave,this)));this.options.selector?this._options=n.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()};t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.getOptions=function(t){return t=n.extend({},this.getDefaults(),this.$element.data(),t),t.delay&&typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),t};t.prototype.getDelegateOptions=function(){var t={},i=this.getDefaults();return this._options&&n.each(this._options,function(n,r){i[n]!=r&&(t[n]=r)}),t};t.prototype.enter=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);if(clearTimeout(i.timeout),i.hoverState="in",!i.options.delay||!i.options.delay.show)return i.show();i.timeout=setTimeout(function(){i.hoverState=="in"&&i.show()},i.options.delay.show)};t.prototype.leave=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);if(clearTimeout(i.timeout),i.hoverState="out",!i.options.delay||!i.options.delay.hide)return i.hide();i.timeout=setTimeout(function(){i.hoverState=="out"&&i.hide()},i.options.delay.hide)};t.prototype.show=function(){var h=n.Event("show.bs."+this.type),u,i,v,s;if(this.hasContent()&&this.enabled){if(this.$element.trigger(h),h.isDefaultPrevented())return;u=this;i=this.tip();this.setContent();this.options.animation&&i.addClass("fade");var t=typeof this.options.placement=="function"?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement,c=/\s?auto?\s?/i,l=c.test(t);l&&(t=t.replace(c,"")||"top");i.detach().css({top:0,left:0,display:"block"}).addClass(t);this.options.container?i.appendTo(this.options.container):i.insertAfter(this.$element);var r=this.getPosition(),f=i[0].offsetWidth,e=i[0].offsetHeight;if(l){var o=this.$element.parent(),y=t,a=document.documentElement.scrollTop||document.body.scrollTop,p=this.options.container=="body"?window.innerWidth:o.outerWidth(),w=this.options.container=="body"?window.innerHeight:o.outerHeight(),b=this.options.container=="body"?0:o.offset().left;t=t=="bottom"&&r.top+r.height+e-a>w?"top":t=="top"&&r.top-a-e<0?"bottom":t=="right"&&r.right+f>p?"left":t=="left"&&r.left-f<b?"right":t;i.removeClass(y).addClass(t)}v=this.getCalculatedOffset(t,r,f,e);this.applyPlacement(v,t);this.hoverState=null;s=function(){u.$element.trigger("shown.bs."+u.type)};n.support.transition&&this.$tip.hasClass("fade")?i.one(n.support.transition.end,s).emulateTransitionEnd(150):s()}};t.prototype.applyPlacement=function(t,i){var c,r=this.tip(),l=r[0].offsetWidth,e=r[0].offsetHeight,o=parseInt(r.css("margin-top"),10),s=parseInt(r.css("margin-left"),10),f,u,h;isNaN(o)&&(o=0);isNaN(s)&&(s=0);t.top=t.top+o;t.left=t.left+s;n.offset.setOffset(r[0],n.extend({using:function(n){r.css({top:Math.round(n.top),left:Math.round(n.left)})}},t),0);r.addClass("in");f=r[0].offsetWidth;u=r[0].offsetHeight;i=="top"&&u!=e&&(c=!0,t.top=t.top+e-u);/bottom|top/.test(i)?(h=0,t.left<0&&(h=t.left*-2,t.left=0,r.offset(t),f=r[0].offsetWidth,u=r[0].offsetHeight),this.replaceArrow(h-l+f,f,"left")):this.replaceArrow(u-e,u,"top");c&&r.offset(t)};t.prototype.replaceArrow=function(n,t,i){this.arrow().css(i,n?50*(1-n/t)+"%":"")};t.prototype.setContent=function(){var n=this.tip(),t=this.getTitle();n.find(".tooltip-inner")[this.options.html?"html":"text"](t);n.removeClass("fade in top bottom left right")};t.prototype.hide=function(){function r(){t.hoverState!="in"&&i.detach();t.$element.trigger("hidden.bs."+t.type)}var t=this,i=this.tip(),u=n.Event("hide.bs."+this.type);if(this.$element.trigger(u),!u.isDefaultPrevented())return i.removeClass("in"),n.support.transition&&this.$tip.hasClass("fade")?i.one(n.support.transition.end,r).emulateTransitionEnd(150):r(),this.hoverState=null,this};t.prototype.fixTitle=function(){var n=this.$element;(n.attr("title")||typeof n.attr("data-original-title")!="string")&&n.attr("data-original-title",n.attr("title")||"").attr("title","")};t.prototype.hasContent=function(){return this.getTitle()};t.prototype.getPosition=function(){var t=this.$element[0];return n.extend({},typeof t.getBoundingClientRect=="function"?t.getBoundingClientRect():{width:t.offsetWidth,height:t.offsetHeight},this.$element.offset())};t.prototype.getCalculatedOffset=function(n,t,i,r){return n=="bottom"?{top:t.top+t.height,left:t.left+t.width/2-i/2}:n=="top"?{top:t.top-r,left:t.left+t.width/2-i/2}:n=="left"?{top:t.top+t.height/2-r/2,left:t.left-i}:{top:t.top+t.height/2-r/2,left:t.left+t.width}};t.prototype.getTitle=function(){var t,i=this.$element,n=this.options;return t=i.attr("data-original-title")||(typeof n.title=="function"?n.title.call(i[0]):n.title),t};t.prototype.tip=function(){return this.$tip=this.$tip||n(this.options.template)};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")};t.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)};t.prototype.enable=function(){this.enabled=!0};t.prototype.disable=function(){this.enabled=!1};t.prototype.toggleEnabled=function(){this.enabled=!this.enabled};t.prototype.toggle=function(t){var i=t?n(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type):this;i.tip().hasClass("in")?i.leave(i):i.enter(i)};t.prototype.destroy=function(){clearTimeout(this.timeout);this.hide().$element.off("."+this.type).removeData("bs."+this.type)};i=n.fn.tooltip;n.fn.tooltip=function(i){return this.each(function(){var u=n(this),r=u.data("bs.tooltip"),f=typeof i=="object"&&i;(r||i!="destroy")&&(r||u.data("bs.tooltip",r=new t(this,f)),typeof i=="string"&&r[i]())})};n.fn.tooltip.Constructor=t;n.fn.tooltip.noConflict=function(){return n.fn.tooltip=i,this}}(jQuery);+function(n){"use strict";var t=function(n,t){this.init("popover",n,t)},i;if(!n.fn.tooltip)throw new Error("Popover requires tooltip.js");t.DEFAULTS=n.extend({},n.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover"><div class="arrow"><\/div><h3 class="popover-title"><\/h3><div class="popover-content"><\/div><\/div>'});t.prototype=n.extend({},n.fn.tooltip.Constructor.prototype);t.prototype.constructor=t;t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.setContent=function(){var n=this.tip(),i=this.getTitle(),t=this.getContent();n.find(".popover-title")[this.options.html?"html":"text"](i);n.find(".popover-content")[this.options.html?typeof t=="string"?"html":"append":"text"](t);n.removeClass("fade top bottom left right in");n.find(".popover-title").html()||n.find(".popover-title").hide()};t.prototype.hasContent=function(){return this.getTitle()||this.getContent()};t.prototype.getContent=function(){var t=this.$element,n=this.options;return t.attr("data-content")||(typeof n.content=="function"?n.content.call(t[0]):n.content)};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};t.prototype.tip=function(){return this.$tip||(this.$tip=n(this.options.template)),this.$tip};i=n.fn.popover;n.fn.popover=function(i){return this.each(function(){var u=n(this),r=u.data("bs.popover"),f=typeof i=="object"&&i;(r||i!="destroy")&&(r||u.data("bs.popover",r=new t(this,f)),typeof i=="string"&&r[i]())})};n.fn.popover.Constructor=t;n.fn.popover.noConflict=function(){return n.fn.popover=i,this}}(jQuery);+function(n){"use strict";var t=function(t){this.element=n(t)},i;t.prototype.show=function(){var t=this.element,e=t.closest("ul:not(.dropdown-menu)"),i=t.data("target"),r,u,f;(i||(i=t.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),t.parent("li").hasClass("active"))||(r=e.find(".active:last a")[0],u=n.Event("show.bs.tab",{relatedTarget:r}),t.trigger(u),u.isDefaultPrevented())||(f=n(i),this.activate(t.parent("li"),e),this.activate(f,f.parent(),function(){t.trigger({type:"shown.bs.tab",relatedTarget:r})}))};t.prototype.activate=function(t,i,r){function f(){u.removeClass("active").find("> .dropdown-menu > .active").removeClass("active");t.addClass("active");e?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade");t.parent(".dropdown-menu")&&t.closest("li.dropdown").addClass("active");r&&r()}var u=i.find("> .active"),e=r&&n.support.transition&&u.hasClass("fade");e?u.one(n.support.transition.end,f).emulateTransitionEnd(150):f();u.removeClass("in")};i=n.fn.tab;n.fn.tab=function(i){return this.each(function(){var u=n(this),r=u.data("bs.tab");r||u.data("bs.tab",r=new t(this));typeof i=="string"&&r[i]()})};n.fn.tab.Constructor=t;n.fn.tab.noConflict=function(){return n.fn.tab=i,this};n(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(t){t.preventDefault();n(this).tab("show")})}(jQuery);+function(n){"use strict";var t=function(i,r){this.options=n.extend({},t.DEFAULTS,r);this.$window=n(window).on("scroll.bs.affix.data-api",n.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",n.proxy(this.checkPositionWithEventLoop,this));this.$element=n(i);this.affixed=this.unpin=this.pinnedOffset=null;this.checkPosition()},i;t.RESET="affix affix-top affix-bottom";t.DEFAULTS={offset:0};t.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass("affix");var n=this.$window.scrollTop(),i=this.$element.offset();return this.pinnedOffset=i.top-n};t.prototype.checkPositionWithEventLoop=function(){setTimeout(n.proxy(this.checkPosition,this),1)};t.prototype.checkPosition=function(){var i,e,h;if(this.$element.is(":visible")){var c=n(document).height(),o=this.$window.scrollTop(),s=this.$element.offset(),r=this.options.offset,f=r.top,u=r.bottom;(this.affixed=="top"&&(s.top+=o),typeof r!="object"&&(u=f=r),typeof f=="function"&&(f=r.top(this.$element)),typeof u=="function"&&(u=r.bottom(this.$element)),i=this.unpin!=null&&o+this.unpin<=s.top?!1:u!=null&&s.top+this.$element.height()>=c-u?"bottom":f!=null&&o<=f?"top":!1,this.affixed!==i)&&((this.unpin&&this.$element.css("top",""),e="affix"+(i?"-"+i:""),h=n.Event(e+".bs.affix"),this.$element.trigger(h),h.isDefaultPrevented())||(this.affixed=i,this.unpin=i=="bottom"?this.getPinnedOffset():null,this.$element.removeClass(t.RESET).addClass(e).trigger(n.Event(e.replace("affix","affixed"))),i=="bottom"&&this.$element.offset({top:c-u-this.$element.height()})))}};i=n.fn.affix;n.fn.affix=function(i){return this.each(function(){var u=n(this),r=u.data("bs.affix"),f=typeof i=="object"&&i;r||u.data("bs.affix",r=new t(this,f));typeof i=="string"&&r[i]()})};n.fn.affix.Constructor=t;n.fn.affix.noConflict=function(){return n.fn.affix=i,this};n(window).on("load",function(){n('[data-spy="affix"]').each(function(){var i=n(this),t=i.data();t.offset=t.offset||{};t.offsetBottom&&(t.offset.bottom=t.offsetBottom);t.offsetTop&&(t.offset.top=t.offsetTop);i.affix(t)})})}(jQuery);+function(n){"use strict";var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.transitioning=null;this.options.parent&&(this.$parent=n(this.options.parent));this.options.toggle&&this.toggle()},i;t.DEFAULTS={toggle:!0};t.prototype.dimension=function(){var n=this.$element.hasClass("width");return n?"width":"height"};t.prototype.show=function(){var u,t,r,i,f,e;if(!this.transitioning&&!this.$element.hasClass("in")&&(u=n.Event("show.bs.collapse"),this.$element.trigger(u),!u.isDefaultPrevented())){if(t=this.$parent&&this.$parent.find("> .panel > .in"),t&&t.length){if(r=t.data("bs.collapse"),r&&r.transitioning)return;t.collapse("hide");r||t.data("bs.collapse",null)}if(i=this.dimension(),this.$element.removeClass("collapse").addClass("collapsing")[i](0),this.transitioning=1,f=function(){this.$element.removeClass("collapsing").addClass("collapse in")[i]("auto");this.transitioning=0;this.$element.trigger("shown.bs.collapse")},!n.support.transition)return f.call(this);e=n.camelCase(["scroll",i].join("-"));this.$element.one(n.support.transition.end,n.proxy(f,this)).emulateTransitionEnd(350)[i](this.$element[0][e])}};t.prototype.hide=function(){var i,t,r;if(!this.transitioning&&this.$element.hasClass("in")&&(i=n.Event("hide.bs.collapse"),this.$element.trigger(i),!i.isDefaultPrevented())){if(t=this.dimension(),this.$element[t](this.$element[t]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1,r=function(){this.transitioning=0;this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")},!n.support.transition)return r.call(this);this.$element[t](0).one(n.support.transition.end,n.proxy(r,this)).emulateTransitionEnd(350)}};t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};i=n.fn.collapse;n.fn.collapse=function(i){return this.each(function(){var u=n(this),r=u.data("bs.collapse"),f=n.extend({},t.DEFAULTS,u.data(),typeof i=="object"&&i);!r&&f.toggle&&i=="show"&&(i=!i);r||u.data("bs.collapse",r=new t(this,f));typeof i=="string"&&r[i]()})};n.fn.collapse.Constructor=t;n.fn.collapse.noConflict=function(){return n.fn.collapse=i,this};n(document).on("click.bs.collapse.data-api","[data-toggle=collapse]",function(t){var i=n(this),e,s=i.attr("data-target")||t.preventDefault()||(e=i.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,""),r=n(s),u=r.data("bs.collapse"),h=u?"toggle":i.data(),f=i.attr("data-parent"),o=f&&n(f);u&&u.transitioning||(o&&o.find('[data-toggle=collapse][data-parent="'+f+'"]').not(i).addClass("collapsed"),i[r.hasClass("in")?"addClass":"removeClass"]("collapsed"));r.collapse(h)})}(jQuery);+function(n){function t(i,r){var u,f=n.proxy(this.process,this);this.$element=n(i).is("body")?n(window):n(i);this.$body=n("body");this.$scrollElement=this.$element.on("scroll.bs.scroll-spy.data-api",f);this.options=n.extend({},t.DEFAULTS,r);this.selector=(this.options.target||(u=n(i).attr("href"))&&u.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a";this.offsets=n([]);this.targets=n([]);this.activeTarget=null;this.refresh();this.process()}t.DEFAULTS={offset:10};t.prototype.refresh=function(){var i=this.$element[0]==window?"offset":"position",t,r;this.offsets=n([]);this.targets=n([]);t=this;r=this.$body.find(this.selector).map(function(){var f=n(this),u=f.data("target")||f.attr("href"),r=/^#./.test(u)&&n(u);return r&&r.length&&r.is(":visible")&&[[r[i]().top+(!n.isWindow(t.$scrollElement.get(0))&&t.$scrollElement.scrollTop()),u]]||null}).sort(function(n,t){return n[0]-t[0]}).each(function(){t.offsets.push(this[0]);t.targets.push(this[1])})};t.prototype.process=function(){var i=this.$scrollElement.scrollTop()+this.options.offset,f=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,e=f-this.$scrollElement.height(),t=this.offsets,r=this.targets,u=this.activeTarget,n;if(i>=e)return u!=(n=r.last()[0])&&this.activate(n);if(u&&i<=t[0])return u!=(n=r[0])&&this.activate(n);for(n=t.length;n--;)u!=r[n]&&i>=t[n]&&(!t[n+1]||i<=t[n+1])&&this.activate(r[n])};t.prototype.activate=function(t){this.activeTarget=t;n(this.selector).parentsUntil(this.options.target,".active").removeClass("active");var r=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',i=n(r).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active"));i.trigger("activate.bs.scrollspy")};var i=n.fn.scrollspy;n.fn.scrollspy=function(i){return this.each(function(){var u=n(this),r=u.data("bs.scrollspy"),f=typeof i=="object"&&i;r||u.data("bs.scrollspy",r=new t(this,f));typeof i=="string"&&r[i]()})};n.fn.scrollspy.Constructor=t;n.fn.scrollspy.noConflict=function(){return n.fn.scrollspy=i,this};n(window).on("load",function(){n('[data-spy="scroll"]').each(function(){var t=n(this);t.scrollspy(t.data())})})}(jQuery);+function(n){function t(){var i=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},n;for(n in t)if(i.style[n]!==undefined)return{end:t[n]};return!1}n.fn.emulateTransitionEnd=function(t){var i=!1,u=this,r;n(this).one(n.support.transition.end,function(){i=!0});return r=function(){i||n(u).trigger(n.support.transition.end)},setTimeout(r,t),this};n(function(){n.support.transition=t()})}(jQuery),function(n){"use strict";var t=function(t,i){this.options=i;this.$elementFilestyle=[];this.$element=n(t)},i;t.prototype={clear:function(){this.$element.val("");this.$elementFilestyle.find(":text").val("")},destroy:function(){this.$element.removeAttr("style").removeData("filestyle").val("");this.$elementFilestyle.remove()},disabled:function(n){if(n===!0)this.options.disabled||(this.$element.attr("disabled","true"),this.$elementFilestyle.find("label").attr("disabled","true"),this.options.disabled=!0);else if(n===!1)this.options.disabled&&(this.$element.removeAttr("disabled"),this.$elementFilestyle.find("label").removeAttr("disabled"),this.options.disabled=!1);else return this.options.disabled},buttonBefore:function(n){if(n===!0)this.options.buttonBefore||(this.options.buttonBefore=!0,this.options.input&&(this.$elementFilestyle.remove(),this.constructor(),this.pushNameFiles()));else if(n===!1)this.options.buttonBefore&&(this.options.buttonBefore=!1,this.options.input&&(this.$elementFilestyle.remove(),this.constructor(),this.pushNameFiles()));else return this.options.buttonBefore},icon:function(n){if(n===!0)this.options.icon||(this.options.icon=!0,this.$elementFilestyle.find("label").prepend(this.htmlIcon()));else if(n===!1)this.options.icon&&(this.options.icon=!1,this.$elementFilestyle.find(".glyphicon").remove());else return this.options.icon},input:function(n){var i,r,t;if(n===!0){if(!this.options.input){for(this.options.input=!0,this.options.buttonBefore?this.$elementFilestyle.append(this.htmlInput()):this.$elementFilestyle.prepend(this.htmlInput()),this.$elementFilestyle.find(".badge").remove(),i="",t=[],this.$element[0].files===undefined?t[0]={name:this.$element[0].value}:t=this.$element[0].files,r=0;r<t.length;r++)i+=t[r].name.split("\\").pop()+", ";i!==""&&this.$elementFilestyle.find(":text").val(i.replace(/\, $/g,""));this.$elementFilestyle.find(".group-span-filestyle").addClass("input-group-btn")}}else if(n===!1)this.options.input&&(this.options.input=!1,this.$elementFilestyle.find(":text").remove(),t=[],this.$element[0].files===undefined?t[0]={name:this.$element[0].value}:t=this.$element[0].files,t.length>0&&this.$elementFilestyle.find("label").append(' <span class="badge">'+t.length+"<\/span>"),this.$elementFilestyle.find(".group-span-filestyle").removeClass("input-group-btn"));else return this.options.input},size:function(n){if(n!==undefined){var t=this.$elementFilestyle.find("label"),i=this.$elementFilestyle.find("input");t.removeClass("btn-lg btn-sm");i.removeClass("input-lg input-sm");n!="nr"&&(t.addClass("btn-"+n),i.addClass("input-"+n))}else return this.options.size},buttonText:function(n){if(n!==undefined)this.options.buttonText=n,this.$elementFilestyle.find("label span").html(this.options.buttonText);else return this.options.buttonText},buttonName:function(n){if(n!==undefined)this.options.buttonName=n,this.$elementFilestyle.find("label").attr({"class":"btn "+this.options.buttonName});else return this.options.buttonName},iconName:function(n){if(n!==undefined)this.$elementFilestyle.find(".glyphicon").attr({"class":".glyphicon "+this.options.iconName});else return this.options.iconName},htmlIcon:function(){return this.options.icon?'<span class="glyphicon '+this.options.iconName+'"><\/span> ':""},htmlInput:function(){return this.options.input?'<input type="text" class="form-control '+(this.options.size=="nr"?"":"input-"+this.options.size)+'" disabled> ':""},pushNameFiles:function(){var i="",n=[],t;for(this.$element[0].files===undefined?n[0]={name:this.$element.value}:n=this.$element[0].files,t=0;t<n.length;t++)i+=n[t].name.split("\\").pop()+", ";i!==""?this.$elementFilestyle.find(":text").val(i.replace(/\, $/g,"")):this.$elementFilestyle.find(":text").val("")},constructor:function(){var t=this,e="",r=this.$element.attr("id"),i=[],u="",f,o;r!==""&&r||(r="filestyle-"+n(".bootstrap-filestyle").length,this.$element.attr({id:r}));u='<span class="group-span-filestyle '+(this.options.input?"input-group-btn":"")+'"><label for="'+r+'" class="btn '+this.options.buttonName+" "+(this.options.size=="nr"?"":"btn-"+this.options.size)+'" '+(this.options.disabled?'disabled="true"':"")+">"+this.htmlIcon()+this.options.buttonText+"<\/label><\/span>";e=this.options.buttonBefore?u+this.htmlInput():this.htmlInput()+u;this.$elementFilestyle=n('<div class="bootstrap-filestyle input-group">'+e+"<\/div>");f=this.$elementFilestyle.find("label");o=f.parent();o.attr("tabindex","0").keypress(function(n){(n.keyCode===13||n.charCode===32)&&f.click()});this.$element.css({position:"absolute",clip:"rect(0,0,0,0)"}).attr("tabindex","-1").after(this.$elementFilestyle);this.options.disabled&&this.$element.attr("disabled","true");this.$element.change(function(){var r="",n;for(this.files===undefined?i[0]={name:this.value}:i=this.files,n=0;n<i.length;n++)r+=i[n].name.split("\\").pop()+", ";r!==""?t.$elementFilestyle.find(":text").val(r.replace(/\, $/g,"")):t.$elementFilestyle.find(":text").val("");t.options.input==!1?t.$elementFilestyle.find(".badge").length==0?t.$elementFilestyle.find("label").append(' <span class="badge">'+i.length+"<\/span>"):i.length==0?t.$elementFilestyle.find(".badge").remove():t.$elementFilestyle.find(".badge").html(i.length):t.$elementFilestyle.find(".badge").remove()});window.navigator.userAgent.search(/firefox/i)>-1&&this.$elementFilestyle.find("label").click(function(){return t.$element.click(),!1})}};i=n.fn.filestyle;n.fn.filestyle=function(i,r){var u="",f=this.each(function(){if(n(this).attr("type")==="file"){var e=n(this),f=e.data("filestyle"),o=n.extend({},n.fn.filestyle.defaults,i,typeof i=="object"&&i);f||(e.data("filestyle",f=new t(this,o)),f.constructor());typeof i=="string"&&(u=f[i](r))}});return typeof u!==undefined?u:f};n.fn.filestyle.defaults={buttonText:"Choose file",iconName:"glyphicon-folder-open",buttonName:"btn-default",size:"lg",input:!0,icon:!0,buttonBefore:!1,disabled:!1};n.fn.filestyle.noConflict=function(){return n.fn.filestyle=i,this};n(function(){n(".filestyle").each(function(){var t=n(this),i={input:t.attr("data-input")==="false"?!1:!0,icon:t.attr("data-icon")==="false"?!1:!0,buttonBefore:t.attr("data-buttonBefore")==="true"?!0:!1,disabled:t.attr("data-disabled")==="true"?!0:!1,size:t.attr("data-size"),buttonText:t.attr("data-buttonText"),buttonName:t.attr("data-buttonName"),iconName:t.attr("data-iconName")};t.filestyle(i)})})}(window.jQuery);!function(n,t,i,r){var k={verticalScrolling:!0,horizontalScrolling:!1,verticalScrollerSide:"right",showOnHover:!1,scrollIncrement:20,minScrollbarLength:40,pollChanges:!0,drawCorner:!0,drawScrollButtons:!1,clickTrackToScroll:!0,easingDuration:500,propagateWheelEvent:!0,verticalTrackClass:"vertical-track",horizontalTrackClass:"horizontal-track",horizontalHandleClass:"horizontal-handle",verticalHandleClass:"vertical-handle",scrollUpButtonClass:"scroll-up-btn",scrollDownButtonClass:"scroll-down-btn",scrollLeftButtonClass:"scroll-left-btn",scrollRightButtonClass:"scroll-right-btn",cornerClass:"scrollbar-corner",zIndex:1,addPaddingToPane:!0,horizontalHandleHTML:'<div class="left"><\/div><div class="right"><\/div>',verticalHandleHTML:'<div class="top"><\/div><div class="bottom"><\/div>'},y=function(n){n.preventDefault?n.preventDefault():n.returnValue=!1;n.stopPropagation?n.stopPropagation():n.cancelBubble=!0},u=t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame||t.oRequestAnimationFrame||t.msRequestAnimationFrame||function(n){setTimeout(n,17)},f=function(t,i){var u=n(t).css(i),r=/^-?\d+/.exec(u);return r?+r[0]:0},d=function(n){var r,i,u={width:"5px",height:"1px",overflow:"hidden",padding:"8px 0",visibility:"hidden",whiteSpace:"pre-line",font:"10px/1 serif"},t=document.createElement(n),f=document.createTextNode("a\na");for(i in u)t.style[i]=u[i];return t.appendChild(f),document.body.appendChild(t),r=t.scrollHeight<28,document.body.removeChild(t),r},g=.5*Math.PI,nt=10*Math.log(2),a=function(n,t,i){var r=g/t,u=n*r;return Math.round(u*Math.cos(r*i))},tt=function(n,t,i){return Math.round(n*nt*Math.pow(2,-10*i/t+1)/t)},w=function(n,t,i,r){return 2*i/Math.PI*Math.asin((r-n)/t)},e=function(t){var i=n(this).data("enscroll"),u=this,r=i.settings,f=function(){var t=n(this).data("enscroll"),i=t.settings;t&&i.showOnHover&&(i.verticalScrolling&&n(t.verticalTrackWrapper).is(":visible")&&n(t.verticalTrackWrapper).stop().fadeTo(275,0),i.horizontalScrolling&&n(t.horizontalTrackWrapper).is(":visible")&&n(t.horizontalTrackWrapper).stop().fadeTo(275,0),t._fadeTimer=null)};i&&r.showOnHover&&(i._fadeTimer?clearTimeout(i._fadeTimer):(r.verticalScrolling&&n(i.verticalTrackWrapper).is(":visible")&&n(i.verticalTrackWrapper).stop().fadeTo(275,1),r.horizontalScrolling&&n(i.horizontalTrackWrapper).is(":visible")&&n(i.horizontalTrackWrapper).stop().fadeTo(275,1)),t!==!1&&(i._fadeTimer=setTimeout(function(){f.call(u)},1750)))},c=function(t,i){var r=n(t),u=r.data("enscroll"),f=r.scrollTop();u&&u.settings.verticalScrolling&&(r.scrollTop(f+i),u.settings.showOnHover&&e.call(t))},l=function(t,i){var r=n(t),u=r.data("enscroll"),f=r.scrollLeft();u&&u.settings.horizontalScrolling&&(r.scrollLeft(f+i),u.settings.showOnHover&&e.call(t))},it=function(t){if(1===t.which){var f,o,r,y,w,b,k,a,d,c=t.data.pane,l=n(c),h=l.data("enscroll"),v=!0,g=function(){v&&(r!==y&&(h._scrollingY||(h._scrollingY=!0,h._startY=l.scrollTop(),u(function(){s(l)})),o.style.top=r+"px",h._endY=r*d/a,y=r),u(g),h.settings.showOnHover&&e.call(c))},tt=function(n){return v&&(r=n.clientY-b-w,r=Math.min(0>r?0:r,a)),!1},nt=function(){return v=!1,i.body.style.cursor=k,this.style.cursor="",f.removeClass("dragging"),n(i.body).off("mousemove.enscroll.vertical").off("mouseup.enscroll.vertical"),n(i).off("mouseout.enscroll.vertical"),l.on("scroll.enscroll.pane",function(n){p.call(this,n)}),!1};return f=n(h.verticalTrackWrapper).find(".enscroll-track"),o=f.children().first()[0],r=parseInt(o.style.top,10),d=c.scrollHeight-(h._scrollHeightNoPadding?n(c).height():n(c).innerHeight()),w=t.clientY-n(o).offset().top,a=f.height()-n(o).outerHeight(),b=f.offset().top,l.off("scroll.enscroll.pane"),n(i.body).on({"mousemove.enscroll.vertical":tt,"mouseup.enscroll.vertical":function(n){nt.call(o,n)}}),n(i).on("mouseout.enscroll.vertical",function(n){n.target.nodeName&&"HTML"===n.target.nodeName.toUpperCase()&&nt.call(o,n)}),f.hasClass("dragging")||(f.addClass("dragging"),k=n(i.body).css("cursor"),this.style.cursor=i.body.style.cursor="ns-resize"),u(g),!1}},rt=function(t){if(1===t.which){var f,o,r,y,w,b,k,d,a,c=t.data.pane,l=n(c),h=n(c).data("enscroll"),v=!0,g=function(){v&&(r!==y&&(h._scrollingX||(h._scrollingX=!0,h._startX=l.scrollLeft(),u(function(){s(l)})),o.style.left=r+"px",h._endX=r*w/a,y=r),u(g),h.settings.showOnHover&&e.call(c))},tt=function(n){return v&&(r=n.clientX-k-b,r=Math.min(0>r?0:r,a)),!1},nt=function(){return v=!1,f.removeClass("dragging"),i.body.style.cursor=d,this.style.cursor="",f.removeClass("dragging"),n(i.body).off("mousemove.enscroll.horizontal").off("mouseup.enscroll.horizontal"),n(i).off("mouseout.enscroll.horizontal"),l.on("scroll.enscroll.pane",function(n){p.call(this,n)}),!1};return f=n(h.horizontalTrackWrapper).find(".enscroll-track"),o=f.children().first()[0],r=parseInt(o.style.left,10),w=c.scrollWidth-n(c).innerWidth(),b=t.clientX-n(o).offset().left,a=f.width()-n(o).outerWidth(),k=f.offset().left,l.off("scroll.enscroll.pane"),n(i.body).on({"mousemove.enscroll.horizontal":tt,"mouseup.enscroll.horizontal":function(n){nt.call(o,n)}}),n(i).on("mouseout.enscroll.horizontal",function(n){n.target.nodeName&&"HTML"===n.target.nodeName.toUpperCase()&&nt.call(o,n)}),f.hasClass("dragging")||(f.addClass("dragging"),d=n("body").css("cursor"),this.style.cursor=i.body.style.cursor="ew-resize"),u(g),!1}},s=function(n){var i,r,f,t=n.data("enscroll"),e=t._duration;t._scrollingX===!0&&(i=t._endX-t._startX,0===i?t._scrollingX=!1:(r=n.scrollLeft(),f=w(t._startX,i,e,r),i>0?r>=t._endX||r<t._startX?t._scrollingX=!1:(l(n,Math.max(1,a(i,e,f))),u(function(){s(n)})):r<=t._endX||r>t._startX?t._scrollingX=!1:(l(n,Math.min(-1,a(i,e,f))),u(function(){s(n)}))));t._scrollingY===!0&&(i=t._endY-t._startY,0===i?t._scrollingY=!1:(r=n.scrollTop(),f=w(t._startY,i,e,r),i>0?r>=t._endY||r<t._startY?t._scrollingY=!1:(c(n,Math.max(1,a(i,e,f))),u(function(){s(n)})):r<=t._endY||r>t._startY?t._scrollingY=!1:(c(n,Math.min(-1,a(i,e,f))),u(function(){s(n)}))))},v=function(n,t){var i=n.data("enscroll"),r=n.scrollLeft(),f=n[0].scrollWidth-n.innerWidth();return!i.settings.horizontalScrolling||i._scrollingY?!1:(i._scrollingX||(i._scrollingX=!0,i._startX=r,i._endX=i._startX,u(function(){s(n)})),i._endX=t>0?Math.min(r+t,f):Math.max(0,r+t),0>t&&r>0||t>0&&f>r)},h=function(n,t){var i=n.data("enscroll"),r=n.scrollTop(),f=n[0].scrollHeight-(i._scrollHeightNoPadding?n.height():n.innerHeight());return!i.settings.verticalScrolling||i._scrollingX?!1:(i._scrollingY||(i._scrollingY=!0,i._startY=r,i._endY=i._startY,u(function(){s(n)})),i._endY=t>0?Math.min(r+t,f):Math.max(0,r+t),0>t&&r>0||t>0&&f>r)},ut=function(t){var i,u=n(this),f=u.data("enscroll"),r=f.settings.scrollIncrement,e="deltaX"in t?-t.deltaX:"wheelDeltaX"in t?t.wheelDeltaX:0,o="deltaY"in t?-t.deltaY:"wheelDeltaY"in t?t.wheelDeltaY:"wheelDelta"in t?t.wheelDelta:0;Math.abs(e)>Math.abs(o)?(i=(e>0?-r:r)<<2,(v(u,i)||!f.settings.propagateWheelEvent)&&y(t)):(i=(o>0?-r:r)<<2,(h(u,i)||!f.settings.propagateWheelEvent)&&y(t))},p=function(){var i,r,t,u=n(this),f=u.data("enscroll");f&&(f.settings.verticalScrolling&&(r=n(f.verticalTrackWrapper).find(".enscroll-track")[0],i=r.firstChild,t=u.scrollTop()/(this.scrollHeight-(f._scrollHeightNoPadding?u.height():u.innerHeight())),t=isNaN(t)?0:t,i.style.top=t*(n(r).height()-n(i).outerHeight())+"px"),f.settings.horizontalScrolling&&(r=n(f.horizontalTrackWrapper).find(".enscroll-track")[0],i=r.firstChild,t=u.scrollLeft()/(this.scrollWidth-u.innerWidth()),t=isNaN(t)?0:t,i.style.left=t*(n(r).width()-n(i).innerWidth())+"px"))},ft=function(t){var r,i=n(this),u=i.data("enscroll");if(!/(input)|(select)|(textarea)/i.test(this.nodeName)&&t.target===this&&u){switch(r=u.settings.scrollIncrement,t.keyCode){case 32:case 34:return h(i,i.height()),!1;case 33:return h(i,-i.height()),!1;case 35:return h(i,this.scrollHeight),!1;case 36:return h(i,-this.scrollHeight),!1;case 37:return v(i,-r),!1;case 38:return h(i,-r),!1;case 39:return v(i,r),!1;case 40:return h(i,r),!1}return!0}},et=function(){var t=this,s=n(t).data("enscroll").settings,h=!0,r=0,f=0,e=n(t).offset().top,a=e+n(t).outerHeight(),o=n(t).offset().left,v=o+n(t).outerWidth(),p=function(n){var t=n.pageX,i=n.pageY;r=o>t?t-o:t>v?t-v:0;f=e>i?i-e:i>a?i-a:0},y=function(){s.horizontalScrolling&&r&&l(t,parseInt(r/4,10));s.verticalScrolling&&f&&c(t,parseInt(f/4,10));h&&u(y)},w=function(){h=!1;n(i).off("mousemove.enscroll.pane").off("mouseup.enscroll.pane")};u(y);n(i).on({"mousemove.enscroll.pane":p,"mouseup.enscroll.pane":w})},b=function(n){var t,i,o,f,e,s,h,a=this,v=function(n){t=n.touches[0].clientX;i=n.touches[0].clientY;o||(o=i===e&&t===f?r:Math.abs(e-i)>Math.abs(f-t)?"y":"x");y(n)},p=function(){s&&("y"===o?(c(a,e-i),h=e-i,e=i):"x"===o&&(l(a,f-t),h=f-t,f=t),u(p))},w=function(){var n=0,t=Math.abs(1.5*h);this.removeEventListener("touchmove",v,!1);this.removeEventListener("touchend",w,!1);s=!1;u(function i(){var r;n===t||s||(r=tt(h,t,n),isNaN(r)||0===r||(n+=1,"y"===o?c(a,r):l(a,r),u(i)))})};1===n.touches.length&&(f=n.touches[0].clientX,e=n.touches[0].clientY,s=!0,this.addEventListener("touchmove",v,!1),this.addEventListener("touchend",w,!1),u(p))},o={reposition:function(){return this.each(function(){var e,r,t,u=n(this),i=u.data("enscroll"),o=function(n,t,i){n.style.left=t+"px";n.style.top=i+"px"};i&&(t=u.position(),e=i.corner,i.settings.verticalScrolling&&(r=i.verticalTrackWrapper,o(r,"right"===i.settings.verticalScrollerSide?t.left+u.outerWidth()-n(r).width()-f(this,"border-right-width"):t.left+f(this,"border-left-width"),t.top+f(this,"border-top-width"))),i.settings.horizontalScrolling&&(r=i.horizontalTrackWrapper,o(r,t.left+f(this,"border-left-width"),t.top+u.outerHeight()-n(r).height()-f(this,"border-bottom-width"))),e&&o(e,t.left+u.outerWidth()-n(e).outerWidth()-f(this,"border-right-width"),t.top+u.outerHeight()-n(e).outerHeight()-f(this,"border-bottom-width")))})},resize:function(){return this.each(function(){var i,c,l,r,u,f,s,h,p,w,b,k,e,a,v,y,o=n(this),t=o.data("enscroll");return t?(i=t.settings,o.is(":visible")?(i.verticalScrolling&&(r=t.verticalTrackWrapper,c=o.innerHeight(),u=c/this.scrollHeight,f=n(r).find(".enscroll-track")[0],p=n(r).find("."+i.scrollUpButtonClass),w=n(r).find("."+i.scrollDownButtonClass),h=i.horizontalScrolling?c-n(t.horizontalTrackWrapper).find(".enscroll-track").outerHeight():c,h-=n(f).outerHeight()-n(f).height()+p.outerHeight()+w.outerHeight(),e=f.firstChild,v=Math.max(u*h,i.minScrollbarLength),v-=n(e).outerHeight()-n(e).height(),r.style.display="none",f.style.height=h+"px",e.style.height=v+"px",1>u&&(u=o.scrollTop()/(this.scrollHeight-o.height()),e.style.top=u*(h-v)+"px",r.style.display="block")),i.horizontalScrolling&&(r=t.horizontalTrackWrapper,l=o.innerWidth(),u=l/this.scrollWidth,f=n(r).find(".enscroll-track")[0],b=n(r).find("."+i.scrollLeftButtonClass),k=n(r).find("."+i.scrollRightButtonClass),s=i.verticalScrolling?l-n(t.verticalTrackWrapper).find(".enscroll-track").outerWidth():l,s-=n(f).outerWidth()-n(f).width()+b.outerWidth()+k.outerWidth(),e=f.firstChild,a=Math.max(u*s,i.minScrollbarLength),a-=n(e).outerWidth()-n(e).width(),r.style.display="none",f.style.width=s+"px",e.style.width=a+"px",1>u&&(u=o.scrollLeft()/(this.scrollWidth-o.width()),e.style.left=u*(s-a)+"px",r.style.display="block"),t._prybar&&(y=t._prybar,this.removeChild(y),i.verticalScrolling&&(y.style.width=this.scrollWidth+n(t.verticalTrackWrapper).find(".enscroll-track").outerWidth()+"px",this.appendChild(y)))),t.corner&&(t.corner.style.display=t.verticalTrackWrapper&&t.horizontalTrackWrapper&&n(t.verticalTrackWrapper).is(":visible")&&n(t.horizontalTrackWrapper).is(":visible")?"":"none")):(i.verticalScrolling&&(t.verticalTrackWrapper.style.display="none"),i.horizontalScrolling&&(t.horizontalTrackWrapper.style.display="none"),t.corner&&(t.corner.style.display="none")),void 0):!0})},startPolling:function(){return this.each(function(){var u,i=n(this).data("enscroll"),r=this,t=n(r),f=-1,e=-1,s=-1,h=-1,c=function(){if(i.settings.pollChanges){var v=r.scrollWidth,y=r.scrollHeight,n=t.width(),l=t.height(),a=t.offset();(i.settings.verticalScrolling&&(l!==e||y!==h)||i.settings.horizontalScrolling&&(n!==f||v!==s))&&(s=v,h=y,o.resize.call(t));(u.left!==a.left||u.top!==a.top||n!==f||l!==e)&&(u=a,f=n,e=l,o.reposition.call(t));setTimeout(c,350)}};i&&(i.settings.pollChanges=!0,h=r.scrollHeight,s=r.scrollWidth,u=t.offset(),c())})},stopPolling:function(){return this.each(function(){var t=n(this).data("enscroll");t&&(t.settings.pollChanges=!1)})},destroy:function(){return this.each(function(){var r,u,f=n(this),i=f.data("enscroll");i&&(o.stopPolling.call(f),u=i._mouseScrollHandler,i.settings.verticalScrolling&&(r=i.verticalTrackWrapper,n(r).remove(),r=null),i.settings.horizontalScrolling&&(r=i.horizontalTrackWrapper,n(r).remove(),r=null),i._fadeTimer&&clearTimeout(i._fadeTimer),i.corner&&n(i.corner).remove(),i._prybar&&i._prybar.parentNode&&i._prybar.parentNode===this&&n(i._prybar).remove(),this.setAttribute("style",i._style||""),i._hadTabIndex||f.removeAttr("tabindex"),f.off("scroll.enscroll.pane").off("keydown.enscroll.pane").off("mouseenter.enscroll.pane").off("mousedown.enscroll.pane").data("enscroll",null),this.removeEventListener?(this.removeEventListener("wheel",u,!1),this.removeEventListener("mousewheel",u,!1),this.removeEventListener("touchstart",b,!1)):this.detachEvent&&this.detachEvent("onmousewheel",u),n(t).off("resize.enscroll.window"))})}};n.fn.enscroll=function(r){var u;return o[r]?o[r].call(this):(u=n.extend({},k,r),this.each(function(){if(u.verticalScrolling||u.horizontalScrolling){var a,y,w,k,g,nt,yt,pt,wt,bt,st,tt,ht,ct,kt,lt,at,dt,r=n(this),s=this,ti=r.attr("style"),gt=!0,vt={position:"absolute","z-index":u.zIndex,margin:0,padding:0},ot=function(n){ut.call(s,n)},ni=function(t,i){"string"==typeof i?n(t).html(i):t.appendChild(i)};if(u.verticalScrolling){y=i.createElement("div");k=i.createElement("div");nt=i.createElement("a");n(k).css("position","relative").addClass("enscroll-track").addClass(u.verticalTrackClass).appendTo(y);u.drawScrollButtons&&(yt=i.createElement("a"),pt=i.createElement("a"),n(yt).css({display:"block","text-decoration":"none"}).attr("href","").html("&nbsp;").addClass(u.scrollUpButtonClass).on("click",function(){return c(s,-u.scrollIncrement),!1}).insertBefore(k),n(pt).css({display:"block","text-decoration":"none"}).attr("href","").html("&nbsp;").on("click",function(){return c(s,u.scrollIncrement),!1}).addClass(u.scrollDownButtonClass).appendTo(y));u.clickTrackToScroll&&n(k).on("click",function(t){t.target===this&&h(r,t.pageY>n(nt).offset().top?r.height():-r.height())});n(nt).css({position:"absolute","z-index":1}).attr("href","").addClass(u.verticalHandleClass).mousedown({pane:this},it).click(function(){return!1}).appendTo(k);ni(nt,u.verticalHandleHTML);n(y).css(vt).insertAfter(this);u.showOnHover&&n(y).css("opacity",0).on("mouseover.enscroll.vertical",function(){e.call(s,!1)}).on("mouseout.enscroll.vertical",function(){e.call(s)});tt=n(k).outerWidth();u.addPaddingToPane&&(dt="right"===u.verticalScrollerSide?{"padding-right":f(this,"padding-right")+tt+"px"}:{"padding-left":f(this,"padding-left")+tt+"px"},r.css(n.extend({width:r.width()-tt+"px"},dt)));try{lt=parseInt(r.css("outline-width"),10);(0===lt||isNaN(lt))&&"none"===r.css("outline-style")&&r.css("outline","none")}catch(ii){r.css("outline","none")}}u.horizontalScrolling&&(a=i.createElement("div"),w=i.createElement("div"),g=i.createElement("a"),n(w).css({position:"relative","z-index":1}).addClass("enscroll-track").addClass(u.horizontalTrackClass).appendTo(a),u.drawScrollButtons&&(wt=i.createElement("a"),bt=i.createElement("a"),n(wt).css("display","block").attr("href","").on("click",function(){return l(s,-u.scrollIncrement),!1}).addClass(u.scrollLeftButtonClass).insertBefore(w),n(bt).css("display","block").attr("href","").on("click",function(){return l(s,u.scrollIncrement),!1}).addClass(u.scrollRightButtonClass).appendTo(a)),u.clickTrackToScroll&&n(w).on("click",function(t){t.target===this&&v(r,t.pageX>n(g).offset().left?r.width():-r.width())}),n(g).css({position:"absolute","z-index":1}).attr("href","").addClass(u.horizontalHandleClass).click(function(){return!1}).mousedown({pane:this},rt).appendTo(w),ni(g,u.horizontalHandleHTML),n(a).css(vt).insertAfter(this),u.showOnHover&&n(a).css("opacity",0).on("mouseover.enscroll.horizontal",function(){e.call(s,!1)}).on("mouseout.enscroll.horizontal",function(){e.call(s)}),st=n(w).outerHeight(),u.addPaddingToPane&&r.css({height:r.height()-st+"px","padding-bottom":parseInt(r.css("padding-bottom"),10)+st+"px"}),at=document.createElement("div"),n(at).css({width:"1px",height:"1px",visibility:"hidden",padding:0,margin:"-1px"}).appendTo(this));u.verticalScrolling&&u.horizontalScrolling&&u.drawCorner&&(ht=i.createElement("div"),n(ht).addClass(u.cornerClass).css(vt).insertAfter(this));kt=r.attr("tabindex");kt||(r.attr("tabindex",0),gt=!1);try{ct=r.css("outline");(!ct||ct.length<1)&&r.css("outline","none")}catch(ii){r.css("outline","none")}r.on({"scroll.enscroll.pane":function(n){p.call(this,n)},"keydown.enscroll.pane":ft,"mousedown.enscroll.pane":et}).css("overflow","hidden").data("enscroll",{settings:u,horizontalTrackWrapper:a,verticalTrackWrapper:y,corner:ht,_prybar:at,_mouseScrollHandler:ot,_hadTabIndex:gt,_style:ti,_scrollingX:!1,_scrollingY:!1,_startX:0,_startY:0,_endX:0,_endY:0,_duration:parseInt(u.easingDuration/16.66666,10),_scrollHeightNoPadding:d(this.nodeName)});n(t).on("resize.enscroll.window",function(){o.reposition.call(r)});u.showOnHover&&r.on("mouseenter.enscroll.pane",function(){e.call(this)});this.addEventListener?("onwheel"in this||"WheelEvent"in t&&navigator.userAgent.toLowerCase().indexOf("msie")>=0?this.addEventListener("wheel",ot,!1):"onmousewheel"in this&&this.addEventListener("mousewheel",ot,!1),this.addEventListener("touchstart",b,!1)):this.attachEvent&&this.attachEvent("onmousewheel",ot);u.pollChanges&&o.startPolling.call(r);o.resize.call(r);o.reposition.call(r)}}))}}(jQuery,window,document);var LatLongArray=null,LatLong=null,mapIcon="/areas/National/Content/Images/map-pin.png",map,geocoder,marker,zoom=8,posset=0;window.addEventListener?window.addEventListener("load",initializeAdminMap,!1):window.attachEvent&&window.attachEvent("onload",initializeAdminMap);window.addEventListener?window.addEventListener("unload",disposeMap,!1):window.attachEvent&&window.attachEvent("onunload",disposeMap);$(window).load(function(){connectImage()});$.fn.conRollover=function(n){var t,r,i,u;$(this).append('\n<div class="image_roll_glass"><\/div><div class="image_roll_zoom"><\/div>');switch(n){case"top":t="0";r="0";i="-100%";u="0";break;case"right":t="100%";r="0";i="0";u="0";break;case"bottom":t="0";r="0";i="100%";u="0";break;case"left":t="-100%";r="0";i="0";u="0"}$(this).find(".image_roll_zoom").css({left:t,top:i});$(this).hover(function(){$(this).find(".image_roll_zoom").stop(!0,!0).animate({left:r,top:u},200);$(this).find(".image_roll_glass").stop(!0,!0).fadeIn(200)},function(){$(this).find(".image_roll_zoom").stop(!0).animate({left:t,top:i},200);$(this).find(".image_roll_glass").stop(!0,!0).fadeOut(200)})},function(){function t(){}function u(n,t){for(var i=n.length;i--;)if(n[i].listener===t)return i;return-1}function i(n){return function(){return this[n].apply(this,arguments)}}var n=t.prototype,r=this,f=r.EventEmitter;n.getListeners=function(n){var t=this._getEvents(),r,i;if(typeof n=="object"){r={};for(i in t)t.hasOwnProperty(i)&&n.test(i)&&(r[i]=t[i])}else r=t[n]||(t[n]=[]);return r};n.flattenListeners=function(n){for(var i=[],t=0;t<n.length;t+=1)i.push(n[t].listener);return i};n.getListenersAsObject=function(n){var t=this.getListeners(n),i;return t instanceof Array&&(i={},i[n]=t),i||t};n.addListener=function(n,t){var i=this.getListenersAsObject(n),f=typeof t=="object",r;for(r in i)i.hasOwnProperty(r)&&u(i[r],t)===-1&&i[r].push(f?t:{listener:t,once:!1});return this};n.on=i("addListener");n.addOnceListener=function(n,t){return this.addListener(n,{listener:t,once:!0})};n.once=i("addOnceListener");n.defineEvent=function(n){return this.getListeners(n),this};n.defineEvents=function(n){for(var t=0;t<n.length;t+=1)this.defineEvent(n[t]);return this};n.removeListener=function(n,t){var i=this.getListenersAsObject(n),f,r;for(r in i)i.hasOwnProperty(r)&&(f=u(i[r],t),f!==-1&&i[r].splice(f,1));return this};n.off=i("removeListener");n.addListeners=function(n,t){return this.manipulateListeners(!1,n,t)};n.removeListeners=function(n,t){return this.manipulateListeners(!0,n,t)};n.manipulateListeners=function(n,t,i){var r,u,f=n?this.removeListener:this.addListener,e=n?this.removeListeners:this.addListeners;if(typeof t!="object"||t instanceof RegExp)for(r=i.length;r--;)f.call(this,t,i[r]);else for(r in t)t.hasOwnProperty(r)&&(u=t[r])&&(typeof u=="function"?f.call(this,r,u):e.call(this,r,u));return this};n.removeEvent=function(n){var r=typeof n,t=this._getEvents(),i;if(r==="string")delete t[n];else if(r==="object")for(i in t)t.hasOwnProperty(i)&&n.test(i)&&delete t[i];else delete this._events;return this};n.removeAllListeners=i("removeEvent");n.emitEvent=function(n,t){var r=this.getListenersAsObject(n),i,f,u,e;for(u in r)if(r.hasOwnProperty(u))for(f=r[u].length;f--;)i=r[u][f],i.once===!0&&this.removeListener(n,i.listener),e=i.listener.apply(this,t||[]),e===this._getOnceReturnValue()&&this.removeListener(n,i.listener);return this};n.trigger=i("emitEvent");n.emit=function(n){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(n,t)};n.setOnceReturnValue=function(n){return this._onceReturnValue=n,this};n._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0};n._getEvents=function(){return this._events||(this._events={})};t.noConflict=function(){return r.EventEmitter=f,t};typeof define=="function"&&define.amd?define("eventEmitter/EventEmitter",[],function(){return t}):typeof module=="object"&&module.exports?module.exports=t:this.EventEmitter=t}.call(this),function(n){function f(t){var i=n.event;return i.target=i.target||i.srcElement||t,i}var t=document.documentElement,r=function(){},i,u;t.addEventListener?r=function(n,t,i){n.addEventListener(t,i,!1)}:t.attachEvent&&(r=function(n,t,i){n[t+i]=i.handleEvent?function(){var t=f(n);i.handleEvent.call(i,t)}:function(){var t=f(n);i.call(n,t)};n.attachEvent("on"+t,n[t+i])});i=function(){};t.removeEventListener?i=function(n,t,i){n.removeEventListener(t,i,!1)}:t.detachEvent&&(i=function(n,t,i){n.detachEvent("on"+t,n[t+i]);try{delete n[t+i]}catch(r){n[t+i]=undefined}});u={bind:r,unbind:i};typeof define=="function"&&define.amd?define("eventie/eventie",u):n.eventie=u}(this),function(n,t){typeof define=="function"&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(i,r){return t(n,i,r)}):typeof exports=="object"?module.exports=t(n,require("wolfy87-eventemitter"),require("eventie")):n.imagesLoaded=t(n,n.EventEmitter,n.eventie)}(window,function(n,t,i){function h(n,t){for(var i in t)n[i]=t[i];return n}function a(n){return l.call(n)==="[object Array]"}function v(n){var t=[],i,r;if(a(n))t=n;else if(typeof n.length=="number")for(i=0,r=n.length;i<r;i++)t.push(n[i]);else t.push(n);return t}function r(n,t,i){if(!(this instanceof r))return new r(n,t);if(typeof n=="string"&&(n=document.querySelectorAll(n)),this.elements=v(n),this.options=h({},this.options),typeof t=="function"?i=t:h(this.options,t),i)this.on("always",i);this.getImages();f&&(this.jqDeferred=new f.Deferred);var u=this;setTimeout(function(){u.check()})}function e(n){this.img=n}function u(n){this.src=n;o[n]=this}var f=n.jQuery,s=n.console,c=typeof s!="undefined",l=Object.prototype.toString,o;return r.prototype=new t,r.prototype.options={},r.prototype.getImages=function(){var i,f,n,t,u,r,e,o;for(this.images=[],i=0,f=this.elements.length;i<f;i++)if(n=this.elements[i],n.nodeName==="IMG"&&this.addImage(n),t=n.nodeType,t&&(t===1||t===9||t===11))for(u=n.querySelectorAll("img"),r=0,e=u.length;r<e;r++)o=u[r],this.addImage(o)},r.prototype.addImage=function(n){var t=new e(n);this.images.push(t)},r.prototype.check=function(){function f(n,r){return t.options.debug&&c&&s.log("confirm",n,r),t.progress(n),u++,u===i&&t.complete(),!0}var t=this,u=0,i=this.images.length,n,r;if(this.hasAnyBroken=!1,!i){this.complete();return}for(n=0;n<i;n++){r=this.images[n];r.on("confirm",f);r.check()}},r.prototype.progress=function(n){this.hasAnyBroken=this.hasAnyBroken||!n.isLoaded;var t=this;setTimeout(function(){t.emit("progress",t,n);t.jqDeferred&&t.jqDeferred.notify&&t.jqDeferred.notify(t,n)})},r.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done",n;this.isComplete=!0;n=this;setTimeout(function(){if(n.emit(t,n),n.emit("always",n),n.jqDeferred){var i=n.hasAnyBroken?"reject":"resolve";n.jqDeferred[i](n)}})},f&&(f.fn.imagesLoaded=function(n,t){var i=new r(this,n,t);return i.jqDeferred.promise(f(this))}),e.prototype=new t,e.prototype.check=function(){var n=o[this.img.src]||new u(this.img.src),t;if(n.isConfirmed){this.confirm(n.isLoaded,"cached was confirmed");return}if(this.img.complete&&this.img.naturalWidth!==undefined){this.confirm(this.img.naturalWidth!==0,"naturalWidth");return}t=this;n.on("confirm",function(n,i){return t.confirm(n.isLoaded,i),!0});n.check()},e.prototype.confirm=function(n,t){this.isLoaded=n;this.emit("confirm",this,t)},o={},u.prototype=new t,u.prototype.check=function(){if(!this.isChecked){var n=new Image;i.bind(n,"load",this);i.bind(n,"error",this);n.src=this.src;this.isChecked=!0}},u.prototype.handleEvent=function(n){var t="on"+n.type;this[t]&&this[t](n)},u.prototype.onload=function(n){this.confirm(!0,"onload");this.unbindProxyEvents(n)},u.prototype.onerror=function(n){this.confirm(!1,"onerror");this.unbindProxyEvents(n)},u.prototype.confirm=function(n,t){this.isConfirmed=!0;this.isLoaded=n;this.emit("confirm",this,t)},u.prototype.unbindProxyEvents=function(n){i.unbind(n.target,"load",this);i.unbind(n.target,"error",this)},r});InfoBox.prototype=new google.maps.OverlayView;InfoBox.prototype.createInfoBoxDiv_=function(){var n,t,i,u=this,r=function(n){n.cancelBubble=!0;n.stopPropagation&&n.stopPropagation()},f=function(n){n.returnValue=!1;n.preventDefault&&n.preventDefault();u.enableEventPropagation_||r(n)};if(!this.div_){if(this.div_=document.createElement("div"),this.setBoxStyle_(),typeof this.content_.nodeType=="undefined"?this.div_.innerHTML=this.getCloseBoxImg_()+this.content_:(this.div_.innerHTML=this.getCloseBoxImg_(),this.div_.appendChild(this.content_)),this.getPanes()[this.pane_].appendChild(this.div_),this.addClickHandler_(),this.div_.style.width?this.fixedWidthSet_=!0:this.maxWidth_!==0&&this.div_.offsetWidth>this.maxWidth_?(this.div_.style.width=this.maxWidth_,this.div_.style.overflow="auto",this.fixedWidthSet_=!0):(i=this.getBoxWidths_(),this.div_.style.width=this.div_.offsetWidth-i.left-i.right+"px",this.fixedWidthSet_=!1),this.panBox_(this.disableAutoPan_),!this.enableEventPropagation_){for(this.eventListeners_=[],t=["mousedown","mouseover","mouseout","mouseup","click","dblclick","touchstart","touchend","touchmove"],n=0;n<t.length;n++)this.eventListeners_.push(google.maps.event.addDomListener(this.div_,t[n],r));this.eventListeners_.push(google.maps.event.addDomListener(this.div_,"mouseover",function(){this.style.cursor="default"}))}this.contextListener_=google.maps.event.addDomListener(this.div_,"contextmenu",f);google.maps.event.trigger(this,"domready")}};InfoBox.prototype.getCloseBoxImg_=function(){var n="";return this.closeBoxURL_!==""&&(n="<img",n+=" src='"+this.closeBoxURL_+"'",n+=" align=right",n+=" style='",n+=" position: relative;",n+=" cursor: pointer;",n+=" margin: "+this.closeBoxMargin_+";",n+="'>"),n};InfoBox.prototype.addClickHandler_=function(){var n;this.closeBoxURL_!==""?(n=this.div_.firstChild,this.closeListener_=google.maps.event.addDomListener(n,"click",this.getCloseClickHandler_())):this.closeListener_=null};InfoBox.prototype.getCloseClickHandler_=function(){var n=this;return function(t){t.cancelBubble=!0;t.stopPropagation&&t.stopPropagation();google.maps.event.trigger(n,"closeclick");n.close()}};InfoBox.prototype.panBox_=function(n){var i,y,e=0,f=0,p;if(!n&&(i=this.getMap(),i instanceof google.maps.Map)){i.getBounds().contains(this.position_)||i.setCenter(this.position_);y=i.getBounds();var l=i.getDiv(),a=l.offsetWidth,o=l.offsetHeight,s=this.pixelOffset_.width,r=this.pixelOffset_.height,v=this.div_.offsetWidth,h=this.div_.offsetHeight,c=this.infoBoxClearance_.width,u=this.infoBoxClearance_.height,t=this.getProjection().fromLatLngToContainerPixel(this.position_);t.x<-s+c?e=t.x+s-c:t.x+v+s+c>a&&(e=t.x+v+s+c-a);this.alignBottom_?t.y<-r+u+h?f=t.y+r-u-h:t.y+r+u>o&&(f=t.y+r+u-o):t.y<-r+u?f=t.y+r-u:t.y+h+r+u>o&&(f=t.y+h+r+u-o);e===0&&f===0||(p=i.getCenter(),i.panBy(e,f))}};InfoBox.prototype.setBoxStyle_=function(){var n,t;if(this.div_){this.div_.className=this.boxClass_;this.div_.style.cssText="";t=this.boxStyle_;for(n in t)t.hasOwnProperty(n)&&(this.div_.style[n]=t[n]);typeof this.div_.style.opacity!="undefined"&&this.div_.style.opacity!==""&&(this.div_.style.filter="alpha(opacity="+this.div_.style.opacity*100+")");this.div_.style.position="absolute";this.div_.style.visibility="hidden";this.zIndex_!==null&&(this.div_.style.zIndex=this.zIndex_)}};InfoBox.prototype.getBoxWidths_=function(){var i,n={top:0,bottom:0,left:0,right:0},t=this.div_;return document.defaultView&&document.defaultView.getComputedStyle?(i=t.ownerDocument.defaultView.getComputedStyle(t,""),i&&(n.top=parseInt(i.borderTopWidth,10)||0,n.bottom=parseInt(i.borderBottomWidth,10)||0,n.left=parseInt(i.borderLeftWidth,10)||0,n.right=parseInt(i.borderRightWidth,10)||0)):document.documentElement.currentStyle&&t.currentStyle&&(n.top=parseInt(t.currentStyle.borderTopWidth,10)||0,n.bottom=parseInt(t.currentStyle.borderBottomWidth,10)||0,n.left=parseInt(t.currentStyle.borderLeftWidth,10)||0,n.right=parseInt(t.currentStyle.borderRightWidth,10)||0),n};InfoBox.prototype.onRemove=function(){this.div_&&(this.div_.parentNode.removeChild(this.div_),this.div_=null)};InfoBox.prototype.draw=function(){this.createInfoBoxDiv_();var n=this.getProjection().fromLatLngToDivPixel(this.position_);this.div_.style.left=n.x+this.pixelOffset_.width+"px";this.alignBottom_?this.div_.style.bottom=-(n.y+this.pixelOffset_.height)+"px":this.div_.style.top=n.y+this.pixelOffset_.height+"px";this.div_.style.visibility=this.isHidden_?"hidden":"visible"};InfoBox.prototype.setOptions=function(n){typeof n.boxClass!="undefined"&&(this.boxClass_=n.boxClass,this.setBoxStyle_());typeof n.boxStyle!="undefined"&&(this.boxStyle_=n.boxStyle,this.setBoxStyle_());typeof n.content!="undefined"&&this.setContent(n.content);typeof n.disableAutoPan!="undefined"&&(this.disableAutoPan_=n.disableAutoPan);typeof n.maxWidth!="undefined"&&(this.maxWidth_=n.maxWidth);typeof n.pixelOffset!="undefined"&&(this.pixelOffset_=n.pixelOffset);typeof n.alignBottom!="undefined"&&(this.alignBottom_=n.alignBottom);typeof n.position!="undefined"&&this.setPosition(n.position);typeof n.zIndex!="undefined"&&this.setZIndex(n.zIndex);typeof n.closeBoxMargin!="undefined"&&(this.closeBoxMargin_=n.closeBoxMargin);typeof n.closeBoxURL!="undefined"&&(this.closeBoxURL_=n.closeBoxURL);typeof n.infoBoxClearance!="undefined"&&(this.infoBoxClearance_=n.infoBoxClearance);typeof n.isHidden!="undefined"&&(this.isHidden_=n.isHidden);typeof n.enableEventPropagation!="undefined"&&(this.enableEventPropagation_=n.enableEventPropagation);this.div_&&this.draw()};InfoBox.prototype.setContent=function(n){this.content_=n;this.div_&&(this.closeListener_&&(google.maps.event.removeListener(this.closeListener_),this.closeListener_=null),this.fixedWidthSet_||(this.div_.style.width=""),typeof n.nodeType=="undefined"?this.div_.innerHTML=this.getCloseBoxImg_()+n:(this.div_.innerHTML=this.getCloseBoxImg_(),this.div_.appendChild(n)),this.fixedWidthSet_||(this.div_.style.width=this.div_.offsetWidth+"px",typeof n.nodeType=="undefined"?this.div_.innerHTML=this.getCloseBoxImg_()+n:(this.div_.innerHTML=this.getCloseBoxImg_(),this.div_.appendChild(n))),this.addClickHandler_());google.maps.event.trigger(this,"content_changed")};InfoBox.prototype.setPosition=function(n){this.position_=n;this.div_&&this.draw();google.maps.event.trigger(this,"position_changed")};InfoBox.prototype.setZIndex=function(n){this.zIndex_=n;this.div_&&(this.div_.style.zIndex=n);google.maps.event.trigger(this,"zindex_changed")};InfoBox.prototype.getContent=function(){return this.content_};InfoBox.prototype.getPosition=function(){return this.position_};InfoBox.prototype.getZIndex=function(){return this.zIndex_};InfoBox.prototype.show=function(){this.isHidden_=!1;this.div_&&(this.div_.style.visibility="visible")};InfoBox.prototype.hide=function(){this.isHidden_=!0;this.div_&&(this.div_.style.visibility="hidden")};InfoBox.prototype.open=function(n,t){var i=this;t&&(this.position_=t.getPosition(),this.moveListener_=google.maps.event.addListener(t,"position_changed",function(){i.setPosition(this.getPosition())}));this.setMap(n);this.div_&&this.panBox_()};InfoBox.prototype.close=function(){var n;if(this.closeListener_&&(google.maps.event.removeListener(this.closeListener_),this.closeListener_=null),this.eventListeners_){for(n=0;n<this.eventListeners_.length;n++)google.maps.event.removeListener(this.eventListeners_[n]);this.eventListeners_=null}this.moveListener_&&(google.maps.event.removeListener(this.moveListener_),this.moveListener_=null);this.contextListener_&&(google.maps.event.removeListener(this.contextListener_),this.contextListener_=null);this.setMap(null)},function(n){function i(){}function t(n){function u(t){t.prototype.option||(t.prototype.option=function(t){n.isPlainObject(t)&&(this.options=n.extend(!0,this.options,t))})}function f(i,u){n.fn[i]=function(f){var h,e,s;if("string"==typeof f){for(var c=r.call(arguments,1),o=0,l=this.length;l>o;o++)if(h=this[o],e=n.data(h,i),e)if(n.isFunction(e[f])&&"_"!==f.charAt(0)){if(s=e[f].apply(e,c),void 0!==s)return s}else t("no such method '"+f+"' for "+i+" instance");else t("cannot call methods on "+i+" prior to initialization; attempted to call '"+f+"'");return this}return this.each(function(){var t=n.data(this,i);t?(t.option(f),t._init()):(t=new u(this,f),n.data(this,i,t))})}}if(n){var t="undefined"==typeof console?i:function(n){console.error(n)};return n.bridget=function(n,t){u(t);f(n,t)},n.bridget}}var r=Array.prototype.slice;"function"==typeof define&&define.amd?define("jquery-bridget/jquery.bridget",["jquery"],t):t(n.jQuery)}(window),function(n){function f(t){var i=n.event;return i.target=i.target||i.srcElement||t,i}var t=document.documentElement,u=function(){},i,r;t.addEventListener?u=function(n,t,i){n.addEventListener(t,i,!1)}:t.attachEvent&&(u=function(n,t,i){n[t+i]=i.handleEvent?function(){var t=f(n);i.handleEvent.call(i,t)}:function(){var t=f(n);i.call(n,t)};n.attachEvent("on"+t,n[t+i])});i=function(){};t.removeEventListener?i=function(n,t,i){n.removeEventListener(t,i,!1)}:t.detachEvent&&(i=function(n,t,i){n.detachEvent("on"+t,n[t+i]);try{delete n[t+i]}catch(r){n[t+i]=void 0}});r={bind:u,unbind:i};"function"==typeof define&&define.amd?define("eventie/eventie",r):"object"==typeof exports?module.exports=r:n.eventie=r}(this),function(n){function t(n){"function"==typeof n&&(t.isReady?n():u.push(n))}function i(n){var o="readystatechange"===n.type&&"complete"!==r.readyState,i,f,e;if(!t.isReady&&!o)for(t.isReady=!0,i=0,f=u.length;f>i;i++)e=u[i],e()}function f(u){return u.bind(r,"DOMContentLoaded",i),u.bind(r,"readystatechange",i),u.bind(n,"load",i),t}var r=n.document,u=[];t.isReady=!1;"function"==typeof define&&define.amd?(t.isReady="function"==typeof requirejs,define("doc-ready/doc-ready",["eventie/eventie"],f)):n.docReady=f(n.eventie)}(this),function(){function t(){}function r(n,t){for(var i=n.length;i--;)if(n[i].listener===t)return i;return-1}function i(n){return function(){return this[n].apply(this,arguments)}}var n=t.prototype,u=this,f=u.EventEmitter;n.getListeners=function(n){var r,t,i=this._getEvents();if(n instanceof RegExp){r={};for(t in i)i.hasOwnProperty(t)&&n.test(t)&&(r[t]=i[t])}else r=i[n]||(i[n]=[]);return r};n.flattenListeners=function(n){for(var i=[],t=0;n.length>t;t+=1)i.push(n[t].listener);return i};n.getListenersAsObject=function(n){var t,i=this.getListeners(n);return i instanceof Array&&(t={},t[n]=i),t||i};n.addListener=function(n,t){var i,u=this.getListenersAsObject(n),f="object"==typeof t;for(i in u)u.hasOwnProperty(i)&&-1===r(u[i],t)&&u[i].push(f?t:{listener:t,once:!1});return this};n.on=i("addListener");n.addOnceListener=function(n,t){return this.addListener(n,{listener:t,once:!0})};n.once=i("addOnceListener");n.defineEvent=function(n){return this.getListeners(n),this};n.defineEvents=function(n){for(var t=0;n.length>t;t+=1)this.defineEvent(n[t]);return this};n.removeListener=function(n,t){var f,i,u=this.getListenersAsObject(n);for(i in u)u.hasOwnProperty(i)&&(f=r(u[i],t),-1!==f&&u[i].splice(f,1));return this};n.off=i("removeListener");n.addListeners=function(n,t){return this.manipulateListeners(!1,n,t)};n.removeListeners=function(n,t){return this.manipulateListeners(!0,n,t)};n.manipulateListeners=function(n,t,i){var r,u,f=n?this.removeListener:this.addListener,e=n?this.removeListeners:this.addListeners;if("object"!=typeof t||t instanceof RegExp)for(r=i.length;r--;)f.call(this,t,i[r]);else for(r in t)t.hasOwnProperty(r)&&(u=t[r])&&("function"==typeof u?f.call(this,r,u):e.call(this,r,u));return this};n.removeEvent=function(n){var t,r=typeof n,i=this._getEvents();if("string"===r)delete i[n];else if(n instanceof RegExp)for(t in i)i.hasOwnProperty(t)&&n.test(t)&&delete i[t];else delete this._events;return this};n.removeAllListeners=i("removeEvent");n.emitEvent=function(n,t){var i,f,r,e,u=this.getListenersAsObject(n);for(r in u)if(u.hasOwnProperty(r))for(f=u[r].length;f--;)i=u[r][f],i.once===!0&&this.removeListener(n,i.listener),e=i.listener.apply(this,t||[]),e===this._getOnceReturnValue()&&this.removeListener(n,i.listener);return this};n.trigger=i("emitEvent");n.emit=function(n){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(n,t)};n.setOnceReturnValue=function(n){return this._onceReturnValue=n,this};n._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0};n._getEvents=function(){return this._events||(this._events={})};t.noConflict=function(){return u.EventEmitter=f,t};"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return t}):"object"==typeof module&&module.exports?module.exports=t:this.EventEmitter=t}.call(this),function(n){function t(n){if(n){if("string"==typeof r[n])return n;n=n.charAt(0).toUpperCase()+n.slice(1);for(var t,u=0,f=i.length;f>u;u++)if(t=i[u]+n,"string"==typeof r[t])return t}}var i="Webkit Moz ms Ms O".split(" "),r=document.documentElement.style;"function"==typeof define&&define.amd?define("get-style-property/get-style-property",[],function(){return t}):"object"==typeof exports?module.exports=t:n.getStyleProperty=t}(window),function(n){function i(n){var t=parseFloat(n),i=-1===n.indexOf("%")&&!isNaN(t);return i&&t}function e(){for(var r,i={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},n=0,u=t.length;u>n;n++)r=t[n],i[r]=0;return i}function r(n){function s(n){var s,u,a,c,v,y;if("string"==typeof n&&(n=document.querySelector(n)),n&&"object"==typeof n&&n.nodeType){if(s=f(n),"none"===s.display)return e();u={};u.width=n.offsetWidth;u.height=n.offsetHeight;for(var nt=u.isBorderBox=!(!r||!s[r]||"border-box"!==s[r]),l=0,tt=t.length;tt>l;l++)a=t[l],c=s[a],c=h(n,c),v=parseFloat(c),u[a]=isNaN(v)?0:v;var p=u.paddingLeft+u.paddingRight,w=u.paddingTop+u.paddingBottom,it=u.marginLeft+u.marginRight,rt=u.marginTop+u.marginBottom,b=u.borderLeftWidth+u.borderRightWidth,k=u.borderTopWidth+u.borderBottomWidth,d=nt&&o,g=i(s.width);return g!==!1&&(u.width=g+(d?0:p+b)),y=i(s.height),y!==!1&&(u.height=y+(d?0:w+k)),u.innerWidth=u.width-(p+b),u.innerHeight=u.height-(w+k),u.outerWidth=u.width+it,u.outerHeight=u.height+rt,u}}function h(n,t){if(u||-1===t.indexOf("%"))return t;var i=n.style,e=i.left,r=n.runtimeStyle,f=r&&r.left;return f&&(r.left=n.currentStyle.left),i.left=t,t=i.pixelLeft,i.left=e,f&&(r.left=f),t}var o,r=n("boxSizing");return function(){var n,t,u;r&&(n=document.createElement("div"),n.style.width="200px",n.style.padding="1px 2px 3px 4px",n.style.borderStyle="solid",n.style.borderWidth="1px 2px 3px 4px",n.style[r]="border-box",t=document.body||document.documentElement,t.appendChild(n),u=f(n),o=200===i(u.width),t.removeChild(n))}(),s}var u=n.getComputedStyle,f=u?function(n){return u(n,null)}:function(n){return n.currentStyle},t=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];"function"==typeof define&&define.amd?define("get-size/get-size",["get-style-property/get-style-property"],r):"object"==typeof exports?module.exports=r(require("get-style-property")):n.getSize=r(n.getStyleProperty)}(window),function(n,t){function r(n,t){return n[f](t)}function u(n){if(!n.parentNode){var t=document.createDocumentFragment();t.appendChild(n)}}function s(n,t){u(n);for(var r=n.parentNode.querySelectorAll(t),i=0,f=r.length;f>i;i++)if(r[i]===n)return!0;return!1}function h(n,t){return u(n),r(n,t)}var i,f=function(){var u,i;if(t.matchesSelector)return"matchesSelector";for(var r=["webkit","moz","ms","o"],n=0,f=r.length;f>n;n++)if(u=r[n],i=u+"MatchesSelector",t[i])return i}(),e,o;f?(e=document.createElement("div"),o=r(e,"div"),i=o?r:h):i=s;"function"==typeof define&&define.amd?define("matches-selector/matches-selector",[],function(){return i}):window.matchesSelector=i}(this,Element.prototype),function(n){function r(n,t){for(var i in t)n[i]=t[i];return n}function u(n){for(var t in n)return!1;return t=null,!0}function f(n){return n.replace(/([A-Z])/g,function(n){return"-"+n.toLowerCase()})}function t(n,t,i){function o(n,t){n&&(this.element=n,this.layout=t,this.position={x:0,y:0},this._create())}var s=i("transition"),h=i("transform"),w=s&&h,b=!!i("perspective"),c={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"}[s],l=["transform","transition","transitionDuration","transitionProperty"],k=function(){for(var n,t,u={},r=0,f=l.length;f>r;r++)n=l[r],t=i(n),t&&t!==n&&(u[n]=t);return u}(),a,v,y,p;return r(o.prototype,n.prototype),o.prototype._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}};this.css({position:"absolute"})},o.prototype.handleEvent=function(n){var t="on"+n.type;this[t]&&this[t](n)},o.prototype.getSize=function(){this.size=t(this.element)},o.prototype.css=function(n){var r=this.element.style,t,i;for(t in n)i=k[t]||t,r[i]=n[t]},o.prototype.getPosition=function(){var r=e(this.element),u=this.layout.options,f=u.isOriginLeft,o=u.isOriginTop,n=parseInt(r[f?"left":"right"],10),t=parseInt(r[o?"top":"bottom"],10),i;n=isNaN(n)?0:n;t=isNaN(t)?0:t;i=this.layout.size;n-=f?i.paddingLeft:i.paddingRight;t-=o?i.paddingTop:i.paddingBottom;this.position.x=n;this.position.y=t},o.prototype.layoutPosition=function(){var t=this.layout.size,i=this.layout.options,n={};i.isOriginLeft?(n.left=this.position.x+t.paddingLeft+"px",n.right=""):(n.right=this.position.x+t.paddingRight+"px",n.left="");i.isOriginTop?(n.top=this.position.y+t.paddingTop+"px",n.bottom=""):(n.bottom=this.position.y+t.paddingBottom+"px",n.top="");this.css(n);this.emitEvent("layout",[this])},a=b?function(n,t){return"translate3d("+n+"px, "+t+"px, 0)"}:function(n,t){return"translate("+n+"px, "+t+"px)"},o.prototype._transitionTo=function(n,t){this.getPosition();var e=this.position.x,o=this.position.y,s=parseInt(n,10),h=parseInt(t,10),c=s===this.position.x&&h===this.position.y;if(this.setPosition(n,t),c&&!this.isTransitioning)return this.layoutPosition(),void 0;var i=n-e,r=t-o,u={},f=this.layout.options;i=f.isOriginLeft?i:-i;r=f.isOriginTop?r:-r;u.transform=a(i,r);this.transition({to:u,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},o.prototype.goTo=function(n,t){this.setPosition(n,t);this.layoutPosition()},o.prototype.moveTo=w?o.prototype._transitionTo:o.prototype.goTo,o.prototype.setPosition=function(n,t){this.position.x=parseInt(n,10);this.position.y=parseInt(t,10)},o.prototype._nonTransition=function(n){this.css(n.to);n.isCleaning&&this._removeStyles(n.to);for(var t in n.onTransitionEnd)n.onTransitionEnd[t].call(this)},o.prototype._transition=function(n){var i,t,r;if(!parseFloat(this.layout.options.transitionDuration))return this._nonTransition(n),void 0;i=this._transn;for(t in n.onTransitionEnd)i.onEnd[t]=n.onTransitionEnd[t];for(t in n.to)i.ingProperties[t]=!0,n.isCleaning&&(i.clean[t]=!0);n.from&&(this.css(n.from),r=this.element.offsetHeight,r=null);this.enableTransition(n.to);this.css(n.to);this.isTransitioning=!0},v=h&&f(h)+",opacity",o.prototype.enableTransition=function(){this.isTransitioning||(this.css({transitionProperty:v,transitionDuration:this.layout.options.transitionDuration}),this.element.addEventListener(c,this,!1))},o.prototype.transition=o.prototype[s?"_transition":"_nonTransition"],o.prototype.onwebkitTransitionEnd=function(n){this.ontransitionend(n)},o.prototype.onotransitionend=function(n){this.ontransitionend(n)},y={"-webkit-transform":"transform","-moz-transform":"transform","-o-transform":"transform"},o.prototype.ontransitionend=function(n){var t,i,r;n.target===this.element&&(t=this._transn,i=y[n.propertyName]||n.propertyName,(delete t.ingProperties[i],u(t.ingProperties)&&this.disableTransition(),i in t.clean&&(this.element.style[n.propertyName]="",delete t.clean[i]),i in t.onEnd)&&(r=t.onEnd[i],r.call(this),delete t.onEnd[i]),this.emitEvent("transitionEnd",[this]))},o.prototype.disableTransition=function(){this.removeTransitionStyles();this.element.removeEventListener(c,this,!1);this.isTransitioning=!1},o.prototype._removeStyles=function(n){var t={},i;for(i in n)t[i]="";this.css(t)},p={transitionProperty:"",transitionDuration:""},o.prototype.removeTransitionStyles=function(){this.css(p)},o.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element);this.emitEvent("remove",[this])},o.prototype.remove=function(){if(!s||!parseFloat(this.layout.options.transitionDuration))return this.removeElem(),void 0;var n=this;this.on("transitionEnd",function(){return n.removeElem(),!0});this.hide()},o.prototype.reveal=function(){delete this.isHidden;this.css({display:""});var n=this.layout.options;this.transition({from:n.hiddenStyle,to:n.visibleStyle,isCleaning:!0})},o.prototype.hide=function(){this.isHidden=!0;this.css({display:""});var n=this.layout.options;this.transition({from:n.visibleStyle,to:n.hiddenStyle,isCleaning:!0,onTransitionEnd:{opacity:function(){this.isHidden&&this.css({display:"none"})}}})},o.prototype.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},o}var i=n.getComputedStyle,e=i?function(n){return i(n,null)}:function(n){return n.currentStyle};"function"==typeof define&&define.amd?define("outlayer/item",["eventEmitter/EventEmitter","get-size/get-size","get-style-property/get-style-property"],t):(n.Outlayer={},n.Outlayer.Item=t(n.EventEmitter,n.getSize,n.getStyleProperty))}(window),function(n){function t(n,t){for(var i in t)n[i]=t[i];return n}function c(n){return"[object Array]"===a.call(n)}function u(n){var t=[],i,r;if(c(n))t=n;else if(n&&"number"==typeof n.length)for(i=0,r=n.length;r>i;i++)t.push(n[i]);else t.push(n);return t}function e(n,t){var i=v(t,n);-1!==i&&t.splice(i,1)}function l(n){return n.replace(/(.)([A-Z])/g,function(n,t,i){return t+"-"+i}).toLowerCase()}function o(o,c,a,v,y,p){function w(n,i){if("string"==typeof n&&(n=s.querySelector(n)),!n||!f(n))return r&&r.error("Bad "+this.constructor.namespace+" element: "+n),void 0;this.element=n;this.options=t({},this.constructor.defaults);this.option(i);var u=++k;this.element.outlayerGUID=u;b[u]=this;this._create();this.options.isInitLayout&&this.layout()}var k=0,b={};return w.namespace="outlayer",w.Item=p,w.defaults={containerStyle:{position:"relative"},isInitLayout:!0,isOriginLeft:!0,isOriginTop:!0,isResizeBound:!0,isResizingContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}},t(w.prototype,a.prototype),w.prototype.option=function(n){t(this.options,n)},w.prototype._create=function(){this.reloadItems();this.stamps=[];this.stamp(this.options.stamp);t(this.element.style,this.options.containerStyle);this.options.isResizeBound&&this.bindResize()},w.prototype.reloadItems=function(){this.items=this._itemize(this.element.children)},w.prototype._itemize=function(n){for(var u,f,i=this._filterFindItemElements(n),e=this.constructor.Item,r=[],t=0,o=i.length;o>t;t++)u=i[t],f=new e(u,this),r.push(f);return r},w.prototype._filterFindItemElements=function(n){var t;n=u(n);for(var r=this.options.itemSelector,i=[],e=0,h=n.length;h>e;e++)if(t=n[e],f(t))if(r){y(t,r)&&i.push(t);for(var s=t.querySelectorAll(r),o=0,c=s.length;c>o;o++)i.push(s[o])}else i.push(t);return i},w.prototype.getItemElements=function(){for(var t=[],n=0,i=this.items.length;i>n;n++)t.push(this.items[n].element);return t},w.prototype.layout=function(){this._resetLayout();this._manageStamps();var n=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;this.layoutItems(this.items,n);this._isLayoutInited=!0},w.prototype._init=w.prototype.layout,w.prototype._resetLayout=function(){this.getSize()},w.prototype.getSize=function(){this.size=v(this.element)},w.prototype._getMeasurement=function(n,t){var r,i=this.options[n];i?("string"==typeof i?r=this.element.querySelector(i):f(i)&&(r=i),this[n]=r?v(r)[t]:i):this[n]=0},w.prototype.layoutItems=function(n,t){n=this._getItemsForLayout(n);this._layoutItems(n,t);this._postLayout()},w.prototype._getItemsForLayout=function(n){for(var i,r=[],t=0,u=n.length;u>t;t++)i=n[t],i.isIgnored||r.push(i);return r},w.prototype._layoutItems=function(n,t){function f(){e.emitEvent("layoutComplete",[e,n])}var e=this,i,r;if(!n||!n.length)return f(),void 0;this._itemsOn(n,"layout",f);for(var o=[],u=0,s=n.length;s>u;u++)i=n[u],r=this._getItemLayoutPosition(i),r.item=i,r.isInstant=t||i.isLayoutInstant,o.push(r);this._processLayoutQueue(o)},w.prototype._getItemLayoutPosition=function(){return{x:0,y:0}},w.prototype._processLayoutQueue=function(n){for(var t,i=0,r=n.length;r>i;i++)t=n[i],this._positionItem(t.item,t.x,t.y,t.isInstant)},w.prototype._positionItem=function(n,t,i,r){r?n.goTo(t,i):n.moveTo(t,i)},w.prototype._postLayout=function(){this.resizeContainer()},w.prototype.resizeContainer=function(){if(this.options.isResizingContainer){var n=this._getContainerSize();n&&(this._setContainerMeasure(n.width,!0),this._setContainerMeasure(n.height,!1))}},w.prototype._getContainerSize=h,w.prototype._setContainerMeasure=function(n,t){if(void 0!==n){var i=this.size;i.isBorderBox&&(n+=t?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth);n=Math.max(n,0);this.element.style[t?"width":"height"]=n+"px"}},w.prototype._itemsOn=function(n,t,i){function e(){return u++,u===o&&i.call(s),!0}for(var f,u=0,o=n.length,s=this,r=0,h=n.length;h>r;r++){f=n[r];f.on(t,e)}},w.prototype.ignore=function(n){var t=this.getItem(n);t&&(t.isIgnored=!0)},w.prototype.unignore=function(n){var t=this.getItem(n);t&&delete t.isIgnored},w.prototype.stamp=function(n){var t,i,r;if(n=this._find(n))for(this.stamps=this.stamps.concat(n),t=0,i=n.length;i>t;t++)r=n[t],this.ignore(r)},w.prototype.unstamp=function(n){var t,r,i;if(n=this._find(n))for(t=0,r=n.length;r>t;t++)i=n[t],e(i,this.stamps),this.unignore(i)},w.prototype._find=function(n){if(n)return("string"==typeof n&&(n=this.element.querySelectorAll(n)),n=u(n))},w.prototype._manageStamps=function(){var n,t,i;if(this.stamps&&this.stamps.length)for(this._getBoundingRect(),n=0,t=this.stamps.length;t>n;n++)i=this.stamps[n],this._manageStamp(i)},w.prototype._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),n=this.size;this._boundingRect={left:t.left+n.paddingLeft+n.borderLeftWidth,top:t.top+n.paddingTop+n.borderTopWidth,right:t.right-(n.paddingRight+n.borderRightWidth),bottom:t.bottom-(n.paddingBottom+n.borderBottomWidth)}},w.prototype._manageStamp=h,w.prototype._getElementOffset=function(n){var t=n.getBoundingClientRect(),i=this._boundingRect,r=v(n);return{left:t.left-i.left-r.marginLeft,top:t.top-i.top-r.marginTop,right:i.right-t.right-r.marginRight,bottom:i.bottom-t.bottom-r.marginBottom}},w.prototype.handleEvent=function(n){var t="on"+n.type;this[t]&&this[t](n)},w.prototype.bindResize=function(){this.isResizeBound||(o.bind(n,"resize",this),this.isResizeBound=!0)},w.prototype.unbindResize=function(){this.isResizeBound&&o.unbind(n,"resize",this);this.isResizeBound=!1},w.prototype.onresize=function(){function t(){n.resize();delete n.resizeTimeout}this.resizeTimeout&&clearTimeout(this.resizeTimeout);var n=this;this.resizeTimeout=setTimeout(t,100)},w.prototype.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},w.prototype.needsResizeLayout=function(){var n=v(this.element),t=this.size&&n;return t&&n.innerWidth!==this.size.innerWidth},w.prototype.addItems=function(n){var t=this._itemize(n);return t.length&&(this.items=this.items.concat(t)),t},w.prototype.appended=function(n){var t=this.addItems(n);t.length&&(this.layoutItems(t,!0),this.reveal(t))},w.prototype.prepended=function(n){var t=this._itemize(n),i;t.length&&(i=this.items.slice(0),this.items=t.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(t,!0),this.reveal(t),this.layoutItems(i))},w.prototype.reveal=function(n){var i=n&&n.length,t,r;if(i)for(t=0;i>t;t++)r=n[t],r.reveal()},w.prototype.hide=function(n){var i=n&&n.length,t,r;if(i)for(t=0;i>t;t++)r=n[t],r.hide()},w.prototype.getItem=function(n){for(var i,t=0,r=this.items.length;r>t;t++)if(i=this.items[t],i.element===n)return i},w.prototype.getItems=function(n){var u,i;if(n&&n.length){for(var r=[],t=0,f=n.length;f>t;t++)u=n[t],i=this.getItem(u),i&&r.push(i);return r}},w.prototype.remove=function(n){var t,i,f,r;if(n=u(n),t=this.getItems(n),t&&t.length)for(this._itemsOn(t,"remove",function(){this.emitEvent("removeComplete",[this,t])}),i=0,f=t.length;f>i;i++)r=t[i],r.remove(),e(r,this.items)},w.prototype.destroy=function(){var t=this.element.style,n,r,u;for(t.height="",t.position="",t.width="",n=0,r=this.items.length;r>n;n++)u=this.items[n],u.destroy();this.unbindResize();delete this.element.outlayerGUID;i&&i.removeData(this.element,this.constructor.namespace)},w.data=function(n){var t=n&&n.outlayerGUID;return t&&b[t]},w.create=function(n,u){function f(){w.apply(this,arguments)}return Object.create?f.prototype=Object.create(w.prototype):t(f.prototype,w.prototype),f.prototype.constructor=f,f.defaults=t({},w.defaults),t(f.defaults,u),f.prototype.settings={},f.namespace=n,f.data=w.data,f.Item=function(){p.apply(this,arguments)},f.Item.prototype=new p,c(function(){for(var a,t,e,v,o=l(n),h=s.querySelectorAll(".js-"+o),c="data-"+o+"-options",u=0,y=h.length;y>u;u++){t=h[u];e=t.getAttribute(c);try{a=e&&JSON.parse(e)}catch(p){r&&r.error("Error parsing "+c+" on "+t.nodeName.toLowerCase()+(t.id?"#"+t.id:"")+": "+p);continue}v=new f(t,a);i&&i.data(t,n,v)}}),i&&i.bridget&&i.bridget(n,f),f},w.Item=p,w}var s=n.document,r=n.console,i=n.jQuery,h=function(){},a=Object.prototype.toString,f="object"==typeof HTMLElement?function(n){return n instanceof HTMLElement}:function(n){return n&&"object"==typeof n&&1===n.nodeType&&"string"==typeof n.nodeName},v=Array.prototype.indexOf?function(n,t){return n.indexOf(t)}:function(n,t){for(var i=0,r=n.length;r>i;i++)if(n[i]===t)return i;return-1};"function"==typeof define&&define.amd?define("outlayer/outlayer",["eventie/eventie","doc-ready/doc-ready","eventEmitter/EventEmitter","get-size/get-size","matches-selector/matches-selector","./item"],o):n.Outlayer=o(n.eventie,n.docReady,n.EventEmitter,n.getSize,n.matchesSelector,n.Outlayer.Item)}(window),function(n){function t(n){function t(){n.Item.apply(this,arguments)}return t.prototype=new n.Item,t.prototype._create=function(){this.id=this.layout.itemGUID++;n.Item.prototype._create.call(this);this.sortData={}},t.prototype.updateSortData=function(){var t,i,n,r;if(!this.isIgnored){this.sortData.id=this.id;this.sortData["original-order"]=this.id;this.sortData.random=Math.random();t=this.layout.options.getSortData;i=this.layout._sorters;for(n in t)r=i[n],this.sortData[n]=r(this.element,this)}},t}"function"==typeof define&&define.amd?define("isotope/js/item",["outlayer/outlayer"],t):(n.Isotope=n.Isotope||{},n.Isotope.Item=t(n.Outlayer))}(window),function(n){function t(n,t){function i(n){this.isotope=n;n&&(this.options=n.options[this.namespace],this.element=n.element,this.items=n.filteredItems,this.size=n.size)}return function(){function f(n){return function(){return t.prototype[n].apply(this.isotope,arguments)}}for(var r,u=["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout"],n=0,e=u.length;e>n;n++)r=u[n],i.prototype[r]=f(r)}(),i.prototype.needsVerticalResizeLayout=function(){var t=n(this.isotope.element),i=this.isotope.size&&t;return i&&t.innerHeight!==this.isotope.size.innerHeight},i.prototype._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},i.prototype.getColumnWidth=function(){this.getSegmentSize("column","Width")},i.prototype.getRowHeight=function(){this.getSegmentSize("row","Height")},i.prototype.getSegmentSize=function(n,t){var i=n+t,u="outer"+t,r;(this._getMeasurement(i,u),this[i])||(r=this.getFirstItemSize(),this[i]=r&&r[u]||this.isotope.size["inner"+t])},i.prototype.getFirstItemSize=function(){var t=this.isotope.filteredItems[0];return t&&t.element&&n(t.element)},i.prototype.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},i.prototype.getSize=function(){this.isotope.getSize();this.size=this.isotope.size},i.modes={},i.create=function(n,t){function r(){i.apply(this,arguments)}return r.prototype=new i,t&&(r.options=t),r.prototype.namespace=n,i.modes[n]=r,r},i}"function"==typeof define&&define.amd?define("isotope/js/layout-mode",["get-size/get-size","outlayer/outlayer"],t):(n.Isotope=n.Isotope||{},n.Isotope.LayoutMode=t(n.getSize,n.Outlayer))}(window),function(n){function t(n,t){var r=n.create("masonry");return r.prototype._resetLayout=function(){this.getSize();this._getMeasurement("columnWidth","outerWidth");this._getMeasurement("gutter","outerWidth");this.measureColumns();var n=this.cols;for(this.colYs=[];n--;)this.colYs.push(0);this.maxY=0},r.prototype.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var n=this.items[0],i=n&&n.element;this.columnWidth=i&&t(i).outerWidth||this.containerWidth}this.columnWidth+=this.gutter;this.cols=Math.floor((this.containerWidth+this.gutter)/this.columnWidth);this.cols=Math.max(this.cols,1)},r.prototype.getContainerWidth=function(){var i=this.options.isFitWidth?this.element.parentNode:this.element,n=t(i);this.containerWidth=n&&n.innerWidth},r.prototype._getItemLayoutPosition=function(n){n.getSize();var e=n.size.outerWidth%this.columnWidth,s=e&&1>e?"round":"ceil",t=Math[s](n.size.outerWidth/this.columnWidth);t=Math.min(t,this.cols);for(var r=this._getColGroup(t),u=Math.min.apply(Math,r),o=i(r,u),h={x:this.columnWidth*o,y:u},c=u+n.size.outerHeight,l=this.cols+1-r.length,f=0;l>f;f++)this.colYs[o+f]=c;return h},r.prototype._getColGroup=function(n){var r;if(2>n)return this.colYs;for(var i=[],u=this.cols+1-n,t=0;u>t;t++)r=this.colYs.slice(t,t+n),i[t]=Math.max.apply(Math,r);return i},r.prototype._manageStamp=function(n){var e=t(n),u=this._getElementOffset(n),o=this.options.isOriginLeft?u.left:u.right,s=o+e.outerWidth,f=Math.floor(o/this.columnWidth),i,h,r;for(f=Math.max(0,f),i=Math.floor(s/this.columnWidth),i-=s%this.columnWidth?0:1,i=Math.min(this.cols-1,i),h=(this.options.isOriginTop?u.top:u.bottom)+e.outerHeight,r=f;i>=r;r++)this.colYs[r]=Math.max(h,this.colYs[r])},r.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var n={height:this.maxY};return this.options.isFitWidth&&(n.width=this._getContainerFitWidth()),n},r.prototype._getContainerFitWidth=function(){for(var n=0,t=this.cols;--t&&0===this.colYs[t];)n++;return(this.cols-n)*this.columnWidth-this.gutter},r.prototype.needsResizeLayout=function(){var n=this.containerWidth;return this.getContainerWidth(),n!==this.containerWidth},r}var i=Array.prototype.indexOf?function(n,t){return n.indexOf(t)}:function(n,t){for(var u,i=0,r=n.length;r>i;i++)if(u=n[i],u===t)return i;return-1};"function"==typeof define&&define.amd?define("masonry/masonry",["outlayer/outlayer","get-size/get-size"],t):n.Masonry=t(n.Outlayer,n.getSize)}(window),function(n){function i(n,t){for(var i in t)n[i]=t[i];return n}function t(n,t){var r=n.create("masonry"),e=r.prototype._getElementOffset,o=r.prototype.layout,s=r.prototype._getMeasurement,u,f;return i(r.prototype,t.prototype),r.prototype._getElementOffset=e,r.prototype.layout=o,r.prototype._getMeasurement=s,u=r.prototype.measureColumns,r.prototype.measureColumns=function(){this.items=this.isotope.filteredItems;u.call(this)},f=r.prototype._manageStamp,r.prototype._manageStamp=function(){this.options.isOriginLeft=this.isotope.options.isOriginLeft;this.options.isOriginTop=this.isotope.options.isOriginTop;f.apply(this,arguments)},r}"function"==typeof define&&define.amd?define("isotope/js/layout-modes/masonry",["../layout-mode","masonry/masonry"],t):t(n.Isotope.LayoutMode,n.Masonry)}(window),function(n){function t(n){var t=n.create("fitRows");return t.prototype._resetLayout=function(){this.x=0;this.y=0;this.maxY=0},t.prototype._getItemLayoutPosition=function(n){n.getSize();0!==this.x&&n.size.outerWidth+this.x>this.isotope.size.innerWidth&&(this.x=0,this.y=this.maxY);var t={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+n.size.outerHeight),this.x+=n.size.outerWidth,t},t.prototype._getContainerSize=function(){return{height:this.maxY}},t}"function"==typeof define&&define.amd?define("isotope/js/layout-modes/fit-rows",["../layout-mode"],t):t(n.Isotope.LayoutMode)}(window),function(n){function t(n){var t=n.create("vertical",{horizontalAlignment:0});return t.prototype._resetLayout=function(){this.y=0},t.prototype._getItemLayoutPosition=function(n){n.getSize();var t=(this.isotope.size.innerWidth-n.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=n.size.outerHeight,{x:t,y:i}},t.prototype._getContainerSize=function(){return{height:this.y}},t}"function"==typeof define&&define.amd?define("isotope/js/layout-modes/vertical",["../layout-mode"],t):t(n.Isotope.LayoutMode)}(window),function(n){function u(n,t){for(var i in t)n[i]=t[i];return n}function f(n){return"[object Array]"===c.call(n)}function t(n){var t=[],i,r;if(f(n))t=n;else if(n&&"number"==typeof n.length)for(i=0,r=n.length;r>i;i++)t.push(n[i]);else t.push(n);return t}function e(n,t){var i=l(t,n);-1!==i&&t.splice(i,1)}function i(n,i,f,s,c){function y(n,t){return function(i,r){for(var h,c,u=0,s=n.length;s>u;u++){var f=n[u],e=i.sortData[f],o=r.sortData[f];if(e>o||o>e)return h=void 0!==t[f]?t[f]:t,c=h?1:-1,(e>o?1:-1)*c}return 0}}var l=n.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0}),a,v;return l.Item=s,l.LayoutMode=c,l.prototype._create=function(){this.itemGUID=0;this._sorters={};this._getSorters();n.prototype._create.call(this);this.modes={};this.filteredItems=this.items;this.sortHistory=["original-order"];for(var t in c.modes)this._initLayoutMode(t)},l.prototype.reloadItems=function(){this.itemGUID=0;n.prototype.reloadItems.call(this)},l.prototype._itemize=function(){for(var r,t=n.prototype._itemize.apply(this,arguments),i=0,u=t.length;u>i;i++)r=t[i],r.id=this.itemGUID++;return this._updateItemsSortData(t),t},l.prototype._initLayoutMode=function(n){var t=c.modes[n],i=this.options[n]||{};this.options[n]=t.options?u(t.options,i):i;this.modes[n]=new t(this)},l.prototype.layout=function(){return!this._isLayoutInited&&this.options.isInitLayout?(this.arrange(),void 0):(this._layout(),void 0)},l.prototype._layout=function(){var n=this._getIsInstant();this._resetLayout();this._manageStamps();this.layoutItems(this.filteredItems,n);this._isLayoutInited=!0},l.prototype.arrange=function(n){this.option(n);this._getIsInstant();this.filteredItems=this._filter(this.items);this._sort();this._layout()},l.prototype._init=l.prototype.arrange,l.prototype._getIsInstant=function(){var n=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;return this._isInstant=n,n},l.prototype._filter=function(n){function e(){f.reveal(s);f.hide(h)}var r=this.options.filter,t,i,f;r=r||"*";for(var o=[],s=[],h=[],c=this._getFilterTest(r),u=0,l=n.length;l>u;u++)t=n[u],t.isIgnored||(i=c(t),i&&o.push(t),i&&t.isHidden?s.push(t):i||t.isHidden||h.push(t));return f=this,this._isInstant?this._noTransition(e):e(),o},l.prototype._getFilterTest=function(n){return r&&this.options.isJQueryFiltering?function(t){return r(t.element).is(n)}:"function"==typeof n?function(t){return n(t.element)}:function(t){return f(t.element,n)}},l.prototype.updateSortData=function(n){this._getSorters();n=t(n);var i=this.getItems(n);i=i.length?i:this.items;this._updateItemsSortData(i)},l.prototype._getSorters=function(){var t=this.options.getSortData,n,i;for(n in t)i=t[n],this._sorters[n]=a(i)},l.prototype._updateItemsSortData=function(n){for(var r,t=0,i=n.length;i>t;t++)r=n[t],r.updateSortData()},a=function(){function n(n){if("string"!=typeof n)return n;var i=o(n).split(" "),r=i[0],u=r.match(/^\[(.+)\]$/),s=u&&u[1],f=t(s,r),e=l.sortDataParsers[i[1]];return e?function(n){return n&&e(f(n))}:function(n){return n&&f(n)}}function t(n,t){return n?function(t){return t.getAttribute(n)}:function(n){var i=n.querySelector(t);return i&&h(i)}}return n}(),l.sortDataParsers={parseInt:function(n){return parseInt(n,10)},parseFloat:function(n){return parseFloat(n)}},l.prototype._sort=function(){var n=this.options.sortBy,t,i;n&&(t=[].concat.apply(n,this.sortHistory),i=y(t,this.options.sortAscending),this.filteredItems.sort(i),n!==this.sortHistory[0]&&this.sortHistory.unshift(n))},l.prototype._mode=function(){var n=this.options.layoutMode,t=this.modes[n];if(!t)throw Error("No layout mode: "+n);return t.options=this.options[n],t},l.prototype._resetLayout=function(){n.prototype._resetLayout.call(this);this._mode()._resetLayout()},l.prototype._getItemLayoutPosition=function(n){return this._mode()._getItemLayoutPosition(n)},l.prototype._manageStamp=function(n){this._mode()._manageStamp(n)},l.prototype._getContainerSize=function(){return this._mode()._getContainerSize()},l.prototype.needsResizeLayout=function(){return this._mode().needsResizeLayout()},l.prototype.appended=function(n){var t=this.addItems(n),i;t.length&&(i=this._filterRevealAdded(t),this.filteredItems=this.filteredItems.concat(i))},l.prototype.prepended=function(n){var t=this._itemize(n),i,r;t.length&&(i=this.items.slice(0),this.items=t.concat(i),this._resetLayout(),this._manageStamps(),r=this._filterRevealAdded(t),this.layoutItems(i),this.filteredItems=r.concat(this.filteredItems))},l.prototype._filterRevealAdded=function(n){var t=this._noTransition(function(){return this._filter(n)});return this.layoutItems(t,!0),this.reveal(t),n},l.prototype.insert=function(n){var i=this.addItems(n),t,f,r,u;if(i.length){for(r=i.length,t=0;r>t;t++)f=i[t],this.element.appendChild(f.element);for(u=this._filter(i),this._noTransition(function(){this.hide(u)}),t=0;r>t;t++)i[t].isLayoutInstant=!0;for(this.arrange(),t=0;r>t;t++)delete i[t].isLayoutInstant;this.reveal(u)}},v=l.prototype.remove,l.prototype.remove=function(n){var i,r,u,f;if(n=t(n),i=this.getItems(n),v.call(this,n),i&&i.length)for(r=0,u=i.length;u>r;r++)f=i[r],e(f,this.filteredItems)},l.prototype._noTransition=function(n){var i=this.options.transitionDuration,t;return this.options.transitionDuration=0,t=n.call(this),this.options.transitionDuration=i,t},l}var r=n.jQuery,o=String.prototype.trim?function(n){return n.trim()}:function(n){return n.replace(/^\s+|\s+$/g,"")},s=document.documentElement,h=s.textContent?function(n){return n.textContent}:function(n){return n.innerText},c=Object.prototype.toString,l=Array.prototype.indexOf?function(n,t){return n.indexOf(t)}:function(n,t){for(var i=0,r=n.length;r>i;i++)if(n[i]===t)return i;return-1};"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","matches-selector/matches-selector","isotope/js/item","isotope/js/layout-mode","isotope/js/layout-modes/masonry","isotope/js/layout-modes/fit-rows","isotope/js/layout-modes/vertical"],i):n.Isotope=i(n.Outlayer,n.getSize,n.matchesSelector,n.Isotope.Item,n.Isotope.LayoutMode)}(window),function(n){typeof define=="function"&&define.amd?define(["jquery"],n):n(jQuery)}(function(n){function u(n){return n}function f(n){return decodeURIComponent(n.replace(r," "))}function i(n){n.indexOf('"')===0&&(n=n.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return t.json?JSON.parse(n):n}catch(i){}}var r=/\+/g,t=n.cookie=function(r,e,o){var l,h,s,y;if(e!==undefined)return o=n.extend({},t.defaults,o),typeof o.expires=="number"&&(l=o.expires,h=o.expires=new Date,h.setDate(h.getDate()+l)),e=t.json?JSON.stringify(e):String(e),document.cookie=[t.raw?r:encodeURIComponent(r),"=",t.raw?e:encodeURIComponent(e),o.expires?"; expires="+o.expires.toUTCString():"",o.path?"; path="+o.path:"",o.domain?"; domain="+o.domain:"",o.secure?"; secure":""].join("");var a=t.raw?u:f,v=document.cookie.split("; "),c=r?undefined:{};for(s=0,y=v.length;s<y;s++){var p=v[s].split("="),w=a(p.shift()),b=a(p.join("="));if(r&&r===w){c=i(b);break}r||(c[w]=i(b))}return c};t.defaults={};n.removeCookie=function(t,i){return n.cookie(t)!==undefined?(n.cookie(t,"",n.extend({},i,{expires:-1})),!0):!1}});jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(n,t,i,r,u){return jQuery.easing[jQuery.easing.def](n,t,i,r,u)},easeInQuad:function(n,t,i,r,u){return r*(t/=u)*t+i},easeOutQuad:function(n,t,i,r,u){return-r*(t/=u)*(t-2)+i},easeInOutQuad:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t+i:-r/2*(--t*(t-2)-1)+i},easeInCubic:function(n,t,i,r,u){return r*(t/=u)*t*t+i},easeOutCubic:function(n,t,i,r,u){return r*((t=t/u-1)*t*t+1)+i},easeInOutCubic:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t+i:r/2*((t-=2)*t*t+2)+i},easeInQuart:function(n,t,i,r,u){return r*(t/=u)*t*t*t+i},easeOutQuart:function(n,t,i,r,u){return-r*((t=t/u-1)*t*t*t-1)+i},easeInOutQuart:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t*t+i:-r/2*((t-=2)*t*t*t-2)+i},easeInQuint:function(n,t,i,r,u){return r*(t/=u)*t*t*t*t+i},easeOutQuint:function(n,t,i,r,u){return r*((t=t/u-1)*t*t*t*t+1)+i},easeInOutQuint:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t*t*t+i:r/2*((t-=2)*t*t*t*t+2)+i},easeInSine:function(n,t,i,r,u){return-r*Math.cos(t/u*(Math.PI/2))+r+i},easeOutSine:function(n,t,i,r,u){return r*Math.sin(t/u*(Math.PI/2))+i},easeInOutSine:function(n,t,i,r,u){return-r/2*(Math.cos(Math.PI*t/u)-1)+i},easeInExpo:function(n,t,i,r,u){return t==0?i:r*Math.pow(2,10*(t/u-1))+i},easeOutExpo:function(n,t,i,r,u){return t==u?i+r:r*(-Math.pow(2,-10*t/u)+1)+i},easeInOutExpo:function(n,t,i,r,u){return t==0?i:t==u?i+r:(t/=u/2)<1?r/2*Math.pow(2,10*(t-1))+i:r/2*(-Math.pow(2,-10*--t)+2)+i},easeInCirc:function(n,t,i,r,u){return-r*(Math.sqrt(1-(t/=u)*t)-1)+i},easeOutCirc:function(n,t,i,r,u){return r*Math.sqrt(1-(t=t/u-1)*t)+i},easeInOutCirc:function(n,t,i,r,u){return(t/=u/2)<1?-r/2*(Math.sqrt(1-t*t)-1)+i:r/2*(Math.sqrt(1-(t-=2)*t)+1)+i},easeInElastic:function(n,t,i,r,u){var f=1.70158,e=0,o=r;return t==0?i:(t/=u)==1?i+r:(e||(e=u*.3),o<Math.abs(r)?(o=r,f=e/4):f=e/(2*Math.PI)*Math.asin(r/o),-(o*Math.pow(2,10*(t-=1))*Math.sin((t*u-f)*2*Math.PI/e))+i)},easeOutElastic:function(n,t,i,r,u){var f=1.70158,e=0,o=r;return t==0?i:(t/=u)==1?i+r:(e||(e=u*.3),o<Math.abs(r)?(o=r,f=e/4):f=e/(2*Math.PI)*Math.asin(r/o),o*Math.pow(2,-10*t)*Math.sin((t*u-f)*2*Math.PI/e)+r+i)},easeInOutElastic:function(n,t,i,r,u){var f=1.70158,e=0,o=r;return t==0?i:(t/=u/2)==2?i+r:(e||(e=u*.3*1.5),o<Math.abs(r)?(o=r,f=e/4):f=e/(2*Math.PI)*Math.asin(r/o),t<1)?-.5*o*Math.pow(2,10*(t-=1))*Math.sin((t*u-f)*2*Math.PI/e)+i:o*Math.pow(2,-10*(t-=1))*Math.sin((t*u-f)*2*Math.PI/e)*.5+r+i},easeInBack:function(n,t,i,r,u,f){return f==undefined&&(f=1.70158),r*(t/=u)*t*((f+1)*t-f)+i},easeOutBack:function(n,t,i,r,u,f){return f==undefined&&(f=1.70158),r*((t=t/u-1)*t*((f+1)*t+f)+1)+i},easeInOutBack:function(n,t,i,r,u,f){return(f==undefined&&(f=1.70158),(t/=u/2)<1)?r/2*t*t*(((f*=1.525)+1)*t-f)+i:r/2*((t-=2)*t*(((f*=1.525)+1)*t+f)+2)+i},easeInBounce:function(n,t,i,r,u){return r-jQuery.easing.easeOutBounce(n,u-t,0,r,u)+i},easeOutBounce:function(n,t,i,r,u){return(t/=u)<1/2.75?r*7.5625*t*t+i:t<2/2.75?r*(7.5625*(t-=1.5/2.75)*t+.75)+i:t<2.5/2.75?r*(7.5625*(t-=2.25/2.75)*t+.9375)+i:r*(7.5625*(t-=2.625/2.75)*t+.984375)+i},easeInOutBounce:function(n,t,i,r,u){return t<u/2?jQuery.easing.easeInBounce(n,t*2,0,r,u)*.5+i:jQuery.easing.easeOutBounce(n,t*2-u,0,r,u)*.5+r*.5+i}}),function(n){"use strict";typeof define=="function"&&define.amd?define(["jquery"],n):n(typeof jQuery!="undefined"?jQuery:window.Zepto)}(function(n){"use strict";function u(t){var i=t.data;t.isDefaultPrevented()||(t.preventDefault(),n(t.target).ajaxSubmit(i))}function f(t){var r=t.target,u=n(r),f,i,e;if(!u.is("[type=submit],[type=image]")){if(f=u.closest("[type=submit]"),f.length===0)return;r=f[0]}i=this;i.clk=r;r.type=="image"&&(t.offsetX!==undefined?(i.clk_x=t.offsetX,i.clk_y=t.offsetY):typeof n.fn.offset=="function"?(e=u.offset(),i.clk_x=t.pageX-e.left,i.clk_y=t.pageY-e.top):(i.clk_x=t.pageX-r.offsetLeft,i.clk_y=t.pageY-r.offsetTop));setTimeout(function(){i.clk=i.clk_x=i.clk_y=null},100)}function t(){if(n.fn.ajaxSubmit.debug){var t="[jquery.form] "+Array.prototype.join.call(arguments,"");window.console&&window.console.log?window.console.log(t):window.opera&&window.opera.postError&&window.opera.postError(t)}}var i={},r;i.fileapi=n("<input type='file'/>").get(0).files!==undefined;i.formdata=window.FormData!==undefined;r=!!n.fn.prop;n.fn.attr2=function(){if(!r)return this.attr.apply(this,arguments);var n=this.prop.apply(this,arguments);return n&&n.jquery||typeof n=="string"?n:this.attr.apply(this,arguments)};n.fn.ajaxSubmit=function(u){function ot(t){for(var r=n.param(t,u.traditional).split("&"),o=r.length,e=[],f,i=0;i<o;i++)r[i]=r[i].replace(/\+/g," "),f=r[i].split("="),e.push([decodeURIComponent(f[0]),decodeURIComponent(f[1])]);return e}function st(t){for(var o=new FormData,f,r,s,i=0;i<t.length;i++)o.append(t[i].name,t[i].value);if(u.extraData)for(f=ot(u.extraData),i=0;i<f.length;i++)f[i]&&o.append(f[i][0],f[i][1]);return u.data=null,r=n.extend(!0,{},n.ajaxSettings,u,{contentType:!1,processData:!1,cache:!1,type:e||"POST"}),u.uploadProgress&&(r.xhr=function(){var t=n.ajaxSettings.xhr();return t.upload&&t.upload.addEventListener("progress",function(n){var t=0,i=n.loaded||n.position,r=n.total;n.lengthComputable&&(t=Math.ceil(i/r*100));u.uploadProgress(n,i,r,t)},!1),t}),r.data=null,s=r.beforeSend,r.beforeSend=function(n,t){t.data=u.formData?u.formData:o;s&&s.call(this,n,t)},n.ajax(r)}function ft(i){function ot(n){var i=null;try{n.contentWindow&&(i=n.contentWindow.document)}catch(r){t("cannot get iframe.contentWindow document: "+r)}if(i)return i;try{i=n.contentDocument?n.contentDocument:n.document}catch(r){t("cannot get iframe.contentDocument: "+r);i=n.document}return i}function st(){function h(){try{var n=ot(a).readyState;t("state = "+n);n&&n.toLowerCase()=="uninitialized"&&setTimeout(h,50)}catch(i){t("Server abort: ",i," (",i.name,")");b(tt);g&&clearTimeout(g);g=undefined}}var u=f.attr2("target"),s=f.attr2("action"),y=f.attr("enctype")||f.attr("encoding")||"multipart/form-data",r,i,c;l.setAttribute("target",d);(!e||/post/i.test(e))&&l.setAttribute("method","POST");s!=o.url&&l.setAttribute("action",o.url);o.skipEncodingOverride||e&&!/post/i.test(e)||f.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"});o.timeout&&(g=setTimeout(function(){rt=!0;b(ut)},o.timeout));r=[];try{if(o.extraData)for(i in o.extraData)o.extraData.hasOwnProperty(i)&&(n.isPlainObject(o.extraData[i])&&o.extraData[i].hasOwnProperty("name")&&o.extraData[i].hasOwnProperty("value")?r.push(n('<input type="hidden" name="'+o.extraData[i].name+'">').val(o.extraData[i].value).appendTo(l)[0]):r.push(n('<input type="hidden" name="'+i+'">').val(o.extraData[i]).appendTo(l)[0]));o.iframeTarget||v.appendTo("body");a.attachEvent?a.attachEvent("onload",b):a.addEventListener("load",b,!1);setTimeout(h,15);try{l.submit()}catch(p){c=document.createElement("form").submit;c.apply(l)}}finally{l.setAttribute("action",s);l.setAttribute("enctype",y);u?l.setAttribute("target",u):f.removeAttr("target");n(r).remove()}}function b(i){var r,u,w,f,k,d,e,c,l;if(!s.aborted&&!lt){if(h=ot(a),h||(t("cannot access response document"),i=tt),i===ut&&s){s.abort("timeout");y.reject(s,"timeout");return}if(i==tt&&s){s.abort("server abort");y.reject(s,"error","server abort");return}if(h&&h.location.href!=o.iframeSrc||rt){a.detachEvent?a.detachEvent("onload",b):a.removeEventListener("load",b,!1);r="success";try{if(rt)throw"timeout";if(w=o.dataType=="xml"||h.XMLDocument||n.isXMLDoc(h),t("isXml="+w),!w&&window.opera&&(h.body===null||!h.body.innerHTML)&&--ct){t("requeing onLoad callback, DOM not available");setTimeout(b,250);return}f=h.body?h.body:h.documentElement;s.responseText=f?f.innerHTML:null;s.responseXML=h.XMLDocument?h.XMLDocument:h;w&&(o.dataType="xml");s.getResponseHeader=function(n){var t={"content-type":o.dataType};return t[n.toLowerCase()]};f&&(s.status=Number(f.getAttribute("status"))||s.status,s.statusText=f.getAttribute("statusText")||s.statusText);k=(o.dataType||"").toLowerCase();d=/(json|script|text)/.test(k);d||o.textarea?(e=h.getElementsByTagName("textarea")[0],e?(s.responseText=e.value,s.status=Number(e.getAttribute("status"))||s.status,s.statusText=e.getAttribute("statusText")||s.statusText):d&&(c=h.getElementsByTagName("pre")[0],l=h.getElementsByTagName("body")[0],c?s.responseText=c.textContent?c.textContent:c.innerText:l&&(s.responseText=l.textContent?l.textContent:l.innerText))):k=="xml"&&!s.responseXML&&s.responseText&&(s.responseXML=at(s.responseText));try{ht=yt(s,k,o)}catch(nt){r="parsererror";s.error=u=nt||r}}catch(nt){t("error caught: ",nt);r="error";s.error=u=nt||r}s.aborted&&(t("upload aborted"),r=null);s.status&&(r=s.status>=200&&s.status<300||s.status===304?"success":"error");r==="success"?(o.success&&o.success.call(o.context,ht,"success",s),y.resolve(s.responseText,"success",s),p&&n.event.trigger("ajaxSuccess",[s,o])):r&&(u===undefined&&(u=s.statusText),o.error&&o.error.call(o.context,s,r,u),y.reject(s,"error",u),p&&n.event.trigger("ajaxError",[s,o,u]));p&&n.event.trigger("ajaxComplete",[s,o]);p&&!--n.active&&n.event.trigger("ajaxStop");o.complete&&o.complete.call(o.context,s,r);lt=!0;o.timeout&&clearTimeout(g);setTimeout(function(){o.iframeTarget?v.attr("src",o.iframeSrc):v.remove();s.responseXML=null},100)}}}var l=f[0],it,nt,o,p,d,v,a,s,k,w,rt,g,y=n.Deferred(),ut,tt,ft,et,ht,h,ct,lt;if(y.abort=function(n){s.abort(n)},i)for(nt=0;nt<c.length;nt++)it=n(c[nt]),r?it.prop("disabled",!1):it.removeAttr("disabled");if(o=n.extend(!0,{},n.ajaxSettings,u),o.context=o.context||o,d="jqFormIO"+(new Date).getTime(),o.iframeTarget?(v=n(o.iframeTarget),w=v.attr2("name"),w?d=w:v.attr2("name",d)):(v=n('<iframe name="'+d+'" src="'+o.iframeSrc+'" />'),v.css({position:"absolute",top:"-1000px",left:"-1000px"})),a=v[0],s={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(i){var r=i==="timeout"?"timeout":"aborted";t("aborting upload... "+r);this.aborted=1;try{a.contentWindow.document.execCommand&&a.contentWindow.document.execCommand("Stop")}catch(u){}v.attr("src",o.iframeSrc);s.error=r;o.error&&o.error.call(o.context,s,r,i);p&&n.event.trigger("ajaxError",[s,o,r]);o.complete&&o.complete.call(o.context,s,r)}},p=o.global,p&&0==n.active++&&n.event.trigger("ajaxStart"),p&&n.event.trigger("ajaxSend",[s,o]),o.beforeSend&&o.beforeSend.call(o.context,s,o)===!1)return o.global&&n.active--,y.reject(),y;if(s.aborted)return y.reject(),y;k=l.clk;k&&(w=k.name,w&&!k.disabled&&(o.extraData=o.extraData||{},o.extraData[w]=k.value,k.type=="image"&&(o.extraData[w+".x"]=l.clk_x,o.extraData[w+".y"]=l.clk_y)));ut=1;tt=2;ft=n("meta[name=csrf-token]").attr("content");et=n("meta[name=csrf-param]").attr("content");et&&ft&&(o.extraData=o.extraData||{},o.extraData[et]=ft);o.forceSync?st():setTimeout(st,10);ct=50;var at=n.parseXML||function(n,t){return window.ActiveXObject?(t=new ActiveXObject("Microsoft.XMLDOM"),t.async="false",t.loadXML(n)):t=(new DOMParser).parseFromString(n,"text/xml"),t&&t.documentElement&&t.documentElement.nodeName!="parsererror"?t:null},vt=n.parseJSON||function(s){return window.eval("("+s+")")},yt=function(t,i,r){var f=t.getResponseHeader("content-type")||"",e=i==="xml"||!i&&f.indexOf("xml")>=0,u=e?t.responseXML:t.responseText;return e&&u.documentElement.nodeName==="parsererror"&&n.error&&n.error("parsererror"),r&&r.dataFilter&&(u=r.dataFilter(u,i)),typeof u=="string"&&(i==="json"||!i&&f.indexOf("json")>=0?u=vt(u):(i==="script"||!i&&f.indexOf("javascript")>=0)&&n.globalEval(u)),u};return y}var e,b,o,f,a,v,c,y,s,l,h,d,g,nt,ut,p,w;if(!this.length)return t("ajaxSubmit: skipping submit process - no element selected"),this;if(f=this,typeof u=="function"?u={success:u}:u===undefined&&(u={}),e=u.type||this.attr2("method"),b=u.url||this.attr2("action"),o=typeof b=="string"?n.trim(b):"",o=o||window.location.href||"",o&&(o=(o.match(/^([^#]+)/)||[])[1]),u=n.extend(!0,{url:o,success:n.ajaxSettings.success,type:e||n.ajaxSettings.type,iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},u),a={},this.trigger("form-pre-serialize",[this,u,a]),a.veto)return t("ajaxSubmit: submit vetoed via form-pre-serialize trigger"),this;if(u.beforeSerialize&&u.beforeSerialize(this,u)===!1)return t("ajaxSubmit: submit aborted via beforeSerialize callback"),this;if(v=u.traditional,v===undefined&&(v=n.ajaxSettings.traditional),c=[],s=this.formToArray(u.semantic,c),u.data&&(u.extraData=u.data,y=n.param(u.data,v)),u.beforeSubmit&&u.beforeSubmit(s,this,u)===!1)return t("ajaxSubmit: submit aborted via beforeSubmit callback"),this;if(this.trigger("form-submit-validate",[s,this,u,a]),a.veto)return t("ajaxSubmit: submit vetoed via form-submit-validate trigger"),this;l=n.param(s,v);y&&(l=l?l+"&"+y:y);u.type.toUpperCase()=="GET"?(u.url+=(u.url.indexOf("?")>=0?"&":"?")+l,u.data=null):u.data=l;h=[];u.resetForm&&h.push(function(){f.resetForm()});u.clearForm&&h.push(function(){f.clearForm(u.includeHidden)});!u.dataType&&u.target?(d=u.success||function(){},h.push(function(t){var i=u.replaceTarget?"replaceWith":"html";n(u.target)[i](t).each(d,arguments)})):u.success&&h.push(u.success);u.success=function(n,t,i){for(var o=u.context||this,r=0,e=h.length;r<e;r++)h[r].apply(o,[n,t,i||f,f])};u.error&&(g=u.error,u.error=function(n,t,i){var r=u.context||this;g.apply(r,[n,t,i,f])});u.complete&&(nt=u.complete,u.complete=function(n,t){var i=u.context||this;nt.apply(i,[n,t,f])});var et=n("input[type=file]:enabled",this).filter(function(){return n(this).val()!==""}),tt=et.length>0,it="multipart/form-data",rt=f.attr("enctype")==it||f.attr("encoding")==it,k=i.fileapi&&i.formdata;for(t("fileAPI :"+k),ut=(tt||rt)&&!k,u.iframe!==!1&&(u.iframe||ut)?u.closeKeepAlive?n.get(u.closeKeepAlive,function(){p=ft(s)}):p=ft(s):p=(tt||rt)&&k?st(s):n.ajax(u),f.removeData("jqxhr").data("jqxhr",p),w=0;w<c.length;w++)c[w]=null;return this.trigger("form-submit-notify",[this,u]),this};n.fn.ajaxForm=function(i){if(i=i||{},i.delegation=i.delegation&&n.isFunction(n.fn.on),!i.delegation&&this.length===0){var r={s:this.selector,c:this.context};return!n.isReady&&r.s?(t("DOM not ready, queuing ajaxForm"),n(function(){n(r.s,r.c).ajaxForm(i)}),this):(t("terminating; zero elements found by selector"+(n.isReady?"":" (DOM not ready)")),this)}if(i.delegation){n(document).off("submit.form-plugin",this.selector,u).off("click.form-plugin",this.selector,f).on("submit.form-plugin",this.selector,i,u).on("click.form-plugin",this.selector,i,f);return this}return this.ajaxFormUnbind().bind("submit.form-plugin",i,u).bind("click.form-plugin",i,f)};n.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")};n.fn.formToArray=function(t,r){var e=[],l,h,f,c,u,b,k,a,p,v;if(this.length===0)return e;var o=this[0],w=this.attr("id"),s=t?o.getElementsByTagName("*"):o.elements,y;if(s&&!/MSIE [678]/.test(navigator.userAgent)&&(s=n(s).get()),w&&(y=n(':input[form="'+w+'"]').get(),y.length&&(s=(s||[]).concat(y))),!s||!s.length)return e;for(l=0,b=s.length;l<b;l++)if(u=s[l],f=u.name,f&&!u.disabled){if(t&&o.clk&&u.type=="image"){o.clk==u&&(e.push({name:f,value:n(u).val(),type:u.type}),e.push({name:f+".x",value:o.clk_x},{name:f+".y",value:o.clk_y}));continue}if(c=n.fieldValue(u,!0),c&&c.constructor==Array)for(r&&r.push(u),h=0,k=c.length;h<k;h++)e.push({name:f,value:c[h]});else if(i.fileapi&&u.type=="file")if(r&&r.push(u),a=u.files,a.length)for(h=0;h<a.length;h++)e.push({name:f,value:a[h],type:u.type});else e.push({name:f,value:"",type:u.type});else c!==null&&typeof c!="undefined"&&(r&&r.push(u),e.push({name:f,value:c,type:u.type,required:u.required}))}return!t&&o.clk&&(p=n(o.clk),v=p[0],f=v.name,f&&!v.disabled&&v.type=="image"&&(e.push({name:f,value:p.val()}),e.push({name:f+".x",value:o.clk_x},{name:f+".y",value:o.clk_y}))),e};n.fn.formSerialize=function(t){return n.param(this.formToArray(t))};n.fn.fieldSerialize=function(t){var i=[];return this.each(function(){var f=this.name,r,u,e;if(f)if(r=n.fieldValue(this,t),r&&r.constructor==Array)for(u=0,e=r.length;u<e;u++)i.push({name:f,value:r[u]});else r!==null&&typeof r!="undefined"&&i.push({name:this.name,value:r})}),n.param(i)};n.fn.fieldValue=function(t){for(var f,i,r=[],u=0,e=this.length;u<e;u++)(f=this[u],i=n.fieldValue(f,t),i!==null&&typeof i!="undefined"&&(i.constructor!=Array||i.length))&&(i.constructor==Array?n.merge(r,i):r.push(i));return r};n.fieldValue=function(t,i){var a=t.name,u=t.type,h=t.tagName.toLowerCase(),e,o,r,f;if(i===undefined&&(i=!0),i&&(!a||t.disabled||u=="reset"||u=="button"||(u=="checkbox"||u=="radio")&&!t.checked||(u=="submit"||u=="image")&&t.form&&t.form.clk!=t||h=="select"&&t.selectedIndex==-1))return null;if(h=="select"){if(e=t.selectedIndex,e<0)return null;var c=[],l=t.options,s=u=="select-one",v=s?e+1:l.length;for(o=s?e:0;o<v;o++)if(r=l[o],r.selected){if(f=r.value,f||(f=r.attributes&&r.attributes.value&&!r.attributes.value.specified?r.text:r.value),s)return f;c.push(f)}return c}return n(t).val()};n.fn.clearForm=function(t){return this.each(function(){n("input,select,textarea",this).clearFields(t)})};n.fn.clearFields=n.fn.clearInputs=function(t){var i=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var r=this.type,u=this.tagName.toLowerCase();i.test(r)||u=="textarea"?this.value="":r=="checkbox"||r=="radio"?this.checked=!1:u=="select"?this.selectedIndex=-1:r=="file"?/MSIE/.test(navigator.userAgent)?n(this).replaceWith(n(this).clone(!0)):n(this).val(""):t&&(t===!0&&/hidden/.test(r)||typeof t=="string"&&n(this).is(t))&&(this.value="")})};n.fn.resetForm=function(){return this.each(function(){typeof this.reset!="function"&&(typeof this.reset!="object"||this.reset.nodeType)||this.reset()})};n.fn.enable=function(n){return n===undefined&&(n=!0),this.each(function(){this.disabled=!n})};n.fn.selected=function(t){return t===undefined&&(t=!0),this.each(function(){var r=this.type,i;r=="checkbox"||r=="radio"?this.checked=t:this.tagName.toLowerCase()=="option"&&(i=n(this).parent("select"),t&&i[0]&&i[0].type=="select-one"&&i.find("option").selected(!1),this.selected=t)})};n.fn.ajaxSubmit.debug=!1}),function(n,t){var i=function(n,t,i){var r;return function(){function e(){i||n.apply(u,f);r=null}var u=this,f=arguments;r?clearTimeout(r):i&&n.apply(u,f);r=setTimeout(e,t||150)}};jQuery.fn[t]=function(n){return n?this.bind("resize",i(n)):this.trigger(t)}}(jQuery,"smartresize"),function(n){n.Gal=function(t,i){this.element=n(i);this._init(t)};n.Gal.settings={selector:".item",width:225,gutter:20,animate:!1,animationOptions:{speed:200,duration:300,effect:"fadeInOnAppear",queue:!0,complete:function(){}}};n.Gal.prototype={_init:function(t){var i=this;this.name=this._setName(5);this.gridArr=[];this.gridArrAppend=[];this.gridArrPrepend=[];this.setArr=!1;this.setGrid=!1;this.setOptions;this.cols=0;this.itemCount=0;this.prependCount=0;this.isPrepending=!1;this.appendCount=0;this.resetCount=!0;this.ifCallback=!0;this.box=this.element;this.options=n.extend(!0,{},n.Gal.settings,t);this.gridArr=n.makeArray(this.box.find(this.options.selector));this.isResizing=!1;this.w=0;this.boxArr=[];this._setCols();this._renderGrid("append");n(this.box).addClass("gridalicious");n(window).smartresize(function(){i.resize()})},_setName:function(n,t){return t=t?t:"",n?this._setName(--n,"0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz".charAt(Math.floor(Math.random()*60))+t):t},_setCols:function(){var t,i,r;for(this.cols=Math.floor(this.box.width()/this.options.width),this.cols<1&&(this.cols=1),diff=(this.box.width()-this.cols*this.options.width-this.options.gutter)/this.cols,w=(this.options.width+diff)/this.box.width()*100,this.w=w,t=0;t<this.cols;t++)i=n("<div><\/div>").addClass("galcolumn").attr("id","item"+t+this.name).css({width:w+"%",paddingLeft:this.options.gutter,paddingBottom:this.options.gutter,float:"left","-webkit-box-sizing":"border-box","-moz-box-sizing":"border-box","-o-box-sizing":"border-box","box-sizing":"border-box"}),this.box.append(i);this.box.find(n("#clear"+this.name)).remove();r=n("<div><\/div>").css({clear:"both",height:"0",width:"0",display:"block"}).attr("id","clear"+this.name);this.box.append(r)},_renderGrid:function(t,i,r){var s=[],o=[],u=0,l=this.prependCount,f=this.appendCount,c=this.options.gutter,e=this.cols,h=this.name,a=n(".galcolumn").width();i?(o=i,t=="append"&&(f+=r,u=this.appendCount),t=="prepend"&&(this.isPrepending=!0,u=Math.round(r%e),u<=0&&(u=e)),t=="renderAfterPrepend"&&(f+=r,u=r)):(o=this.gridArr,f=n(this.gridArr).size());n.each(o,function(i,r){var o=n(r),l="100%";o.hasClass("not-responsive")&&(l="auto");o.css({marginBottom:c,zoom:"1",filter:"alpha(opacity=0)",opacity:"0"}).find("img, object, embed, iframe").css({width:l,height:"auto",display:"block","margin-left":"auto","margin-right":"auto"});t=="prepend"?(u--,n("#item"+u+h).prepend(o),s.push(o),u==0&&(u=e)):(n("#item"+u+h).append(o),s.push(o),u++,u>=e&&(u=0),f>=e&&(f=f-e))});this.appendCount=f;this.itemCount=u;t=="append"||t=="prepend"?(t=="prepend"&&this._updateAfterPrepend(this.gridArr,o),this._renderItem(s),this.isPrepending=!1):this._renderItem(this.gridArr)},_collectItems:function(){var t=[];return n(this.box).find(this.options.selector).each(function(){t.push(n(this))}),t},_renderItem:function(t){var s=this.options.animationOptions.speed,u=this.options.animationOptions.effect,e=this.options.animationOptions.duration,f=this.options.animationOptions.queue,h=this.options.animate,r=this.options.animationOptions.complete,o=0,i=0;h!==!0||this.isResizing?(n.each(t,function(t,i){n(i).css({opacity:"1",filter:"alpha(opacity=1)"})}),this.ifCallback&&r.call(t)):(f===!0&&u=="fadeInOnAppear"?(this.isPrepending&&t.reverse(),n.each(t,function(u,f){setTimeout(function(){n(f).animate({opacity:"1.0"},e);i++;i==t.length&&r.call(undefined,t)},o*s);o++})):f===!1&&u=="fadeInOnAppear"&&(this.isPrepending&&t.reverse(),n.each(t,function(u,f){n(f).animate({opacity:"1.0"},e);i++;i==t.length&&this.ifCallback&&r.call(undefined,t)})),f!==!0||u||n.each(t,function(u,f){n(f).css({opacity:"1",filter:"alpha(opacity=1)"});i++;i==t.length&&this.ifCallback&&r.call(undefined,t)}))},_updateAfterPrepend:function(t,i){var r=this.gridArr;n.each(i,function(n,t){r.unshift(t)});this.gridArr=r},resize:function(){this.box.find(n(".galcolumn")).remove();this._setCols();this.ifCallback=!1;this.isResizing=!0;this._renderGrid("append");this.ifCallback=!0;this.isResizing=!1},append:function(t){var i=this.gridArr,r=this.gridArrPrepend;n.each(t,function(n,t){i.push(t);r.push(t)});this._renderGrid("append",t,n(t).size())},prepend:function(t){this.ifCallback=!1;this._renderGrid("prepend",t,n(t).size());this.ifCallback=!0}};n.fn.gridalicious=function(t,i){return typeof t=="string"?this.each(function(){var r=n.data(this,"gridalicious");r[t].apply(r,[i])}):this.each(function(){n.data(this,"gridalicious",new n.Gal(t,this))}),this}}(jQuery),function(n){function i(t){var i=t||window.event,e=[].slice.call(arguments,1),r=0,f=0,u=0;return t=n.event.fix(i),t.type="mousewheel",i.wheelDelta&&(r=i.wheelDelta/120),i.detail&&(r=-i.detail/3),u=r,i.axis!==undefined&&i.axis===i.HORIZONTAL_AXIS&&(u=0,f=-1*r),i.wheelDeltaY!==undefined&&(u=i.wheelDeltaY/120),i.wheelDeltaX!==undefined&&(f=i.wheelDeltaX/-120),e.unshift(t,r,f,u),(n.event.dispatch||n.event.handle).apply(this,e)}var t=["DOMMouseScroll","mousewheel"],r;if(n.event.fixHooks)for(r=t.length;r;)n.event.fixHooks[t[--r]]=n.event.mouseHooks;n.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var n=t.length;n;)this.addEventListener(t[--n],i,!1);else this.onmousewheel=i},teardown:function(){if(this.removeEventListener)for(var n=t.length;n;)this.removeEventListener(t[--n],i,!1);else this.onmousewheel=null}};n.fn.extend({mousewheel:function(n){return n?this.bind("mousewheel",n):this.trigger("mousewheel")},unmousewheel:function(n){return this.unbind("mousewheel",n)}})}(jQuery),function(n){var i={init:function(t){var i={set_width:!1,set_height:!1,horizontalScroll:!1,scrollInertia:950,mouseWheel:!0,mouseWheelPixels:"auto",autoDraggerLength:!0,autoHideScrollbar:!1,alwaysShowScrollbar:!1,snapAmount:null,snapOffset:0,scrollButtons:{enable:!1,scrollType:"continuous",scrollSpeed:"auto",scrollAmount:40},advanced:{updateOnBrowserResize:!0,updateOnContentResize:!1,autoExpandHorizontalScroll:!1,autoScrollOnFocus:!0,normalizeMouseWheelDelta:!1},contentTouchScroll:!0,callbacks:{onScrollStart:function(){},onScroll:function(){},onTotalScroll:function(){},onTotalScrollBack:function(){},onTotalScrollOffset:0,onTotalScrollBackOffset:0,whileScrolling:function(){}},theme:"light"},t=n.extend(!0,i,t);return this.each(function(){var i=n(this),y,r,h,u,f,o,l,a,v,w,s;t.set_width&&i.css("width",t.set_width);t.set_height&&i.css("height",t.set_height);n(document).data("mCustomScrollbar-index")?(y=parseInt(n(document).data("mCustomScrollbar-index")),n(document).data("mCustomScrollbar-index",y+1)):n(document).data("mCustomScrollbar-index","1");i.wrapInner("<div class='mCustomScrollBox mCS-"+t.theme+"' id='mCSB_"+n(document).data("mCustomScrollbar-index")+"' style='position:relative; height:100%; overflow:hidden; max-width:100%;' />").addClass("mCustomScrollbar _mCS_"+n(document).data("mCustomScrollbar-index"));r=i.children(".mCustomScrollBox");t.horizontalScroll?(r.addClass("mCSB_horizontal").wrapInner("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />"),h=r.children(".mCSB_h_wrapper"),h.wrapInner("<div class='mCSB_container' style='position:absolute; left:0;' />").children(".mCSB_container").css({width:h.children().outerWidth(),position:"relative"}).unwrap()):r.wrapInner("<div class='mCSB_container' style='position:relative; top:0;' />");u=r.children(".mCSB_container");n.support.touch&&u.addClass("mCS_touch");u.after("<div class='mCSB_scrollTools' style='position:absolute;'><div class='mCSB_draggerContainer'><div class='mCSB_dragger' style='position:absolute;' oncontextmenu='return false;'><div class='mCSB_dragger_bar' style='position:relative;'><\/div><\/div><div class='mCSB_draggerRail'><\/div><\/div><\/div>");var c=r.children(".mCSB_scrollTools"),p=c.children(".mCSB_draggerContainer"),e=p.children(".mCSB_dragger");t.horizontalScroll?e.data("minDraggerWidth",e.width()):e.data("minDraggerHeight",e.height());t.scrollButtons.enable&&(t.horizontalScroll?c.prepend("<a class='mCSB_buttonLeft' oncontextmenu='return false;'><\/a>").append("<a class='mCSB_buttonRight' oncontextmenu='return false;'><\/a>"):c.prepend("<a class='mCSB_buttonUp' oncontextmenu='return false;'><\/a>").append("<a class='mCSB_buttonDown' oncontextmenu='return false;'><\/a>"));r.bind("scroll",function(){i.is(".mCS_disabled")||r.scrollTop(0).scrollLeft(0)});i.data({mCS_Init:!0,mCustomScrollbarIndex:n(document).data("mCustomScrollbar-index"),horizontalScroll:t.horizontalScroll,scrollInertia:t.scrollInertia,scrollEasing:"mcsEaseOut",mouseWheel:t.mouseWheel,mouseWheelPixels:t.mouseWheelPixels,autoDraggerLength:t.autoDraggerLength,autoHideScrollbar:t.autoHideScrollbar,alwaysShowScrollbar:t.alwaysShowScrollbar,snapAmount:t.snapAmount,snapOffset:t.snapOffset,scrollButtons_enable:t.scrollButtons.enable,scrollButtons_scrollType:t.scrollButtons.scrollType,scrollButtons_scrollSpeed:t.scrollButtons.scrollSpeed,scrollButtons_scrollAmount:t.scrollButtons.scrollAmount,autoExpandHorizontalScroll:t.advanced.autoExpandHorizontalScroll,autoScrollOnFocus:t.advanced.autoScrollOnFocus,normalizeMouseWheelDelta:t.advanced.normalizeMouseWheelDelta,contentTouchScroll:t.contentTouchScroll,onScrollStart_Callback:t.callbacks.onScrollStart,onScroll_Callback:t.callbacks.onScroll,onTotalScroll_Callback:t.callbacks.onTotalScroll,onTotalScrollBack_Callback:t.callbacks.onTotalScrollBack,onTotalScroll_Offset:t.callbacks.onTotalScrollOffset,onTotalScrollBack_Offset:t.callbacks.onTotalScrollBackOffset,whileScrolling_Callback:t.callbacks.whileScrolling,bindEvent_scrollbar_drag:!1,bindEvent_content_touch:!1,bindEvent_scrollbar_click:!1,bindEvent_mousewheel:!1,bindEvent_buttonsContinuous_y:!1,bindEvent_buttonsContinuous_x:!1,bindEvent_buttonsPixels_y:!1,bindEvent_buttonsPixels_x:!1,bindEvent_focusin:!1,bindEvent_autoHideScrollbar:!1,mCSB_buttonScrollRight:!1,mCSB_buttonScrollLeft:!1,mCSB_buttonScrollDown:!1,mCSB_buttonScrollUp:!1});t.horizontalScroll?i.css("max-width")!=="none"&&(t.advanced.updateOnContentResize||(t.advanced.updateOnContentResize=!0)):i.css("max-height")!=="none"&&(f=!1,o=parseInt(i.css("max-height")),i.css("max-height").indexOf("%")>=0&&(f=o,o=i.parent().height()*f/100),i.css("overflow","hidden"),r.css("max-height",o));i.mCustomScrollbar("update");t.advanced.updateOnBrowserResize&&(a=n(window).width(),v=n(window).height(),n(window).bind("resize."+i.data("mCustomScrollbarIndex"),function(){l&&clearTimeout(l);l=setTimeout(function(){if(!i.is(".mCS_disabled")&&!i.is(".mCS_destroyed")){var t=n(window).width(),u=n(window).height();(a!==t||v!==u)&&(i.css("max-height")!=="none"&&f&&r.css("max-height",i.parent().height()*f/100),i.mCustomScrollbar("update"),a=t,v=u)}},150)}));t.advanced.updateOnContentResize&&(s=t.horizontalScroll?u.outerWidth():u.outerHeight(),w=setInterval(function(){var n;t.horizontalScroll?(t.advanced.autoExpandHorizontalScroll&&u.css({position:"absolute",width:"auto"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:u.outerWidth(),position:"relative"}).unwrap(),n=u.outerWidth()):n=u.outerHeight();n!=s&&(i.mCustomScrollbar("update"),s=n)},300))})},update:function(){var i=n(this),u=i.children(".mCustomScrollBox"),r=u.children(".mCSB_container"),l,o,a,b,it,rt,c,v,k,ut,ft,s,h;r.removeClass("mCS_no_scrollbar");i.removeClass("mCS_disabled mCS_destroyed");u.scrollTop(0).scrollLeft(0);var f=u.children(".mCSB_scrollTools"),e=f.children(".mCSB_draggerContainer"),t=e.children(".mCSB_dragger");if(i.data("horizontalScroll")){var d=f.children(".mCSB_buttonLeft"),g=f.children(".mCSB_buttonRight"),y=u.width();i.data("autoExpandHorizontalScroll")&&r.css({position:"absolute",width:"auto"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:r.outerWidth(),position:"relative"}).unwrap();l=r.outerWidth()}else var nt=f.children(".mCSB_buttonUp"),tt=f.children(".mCSB_buttonDown"),p=u.height(),w=r.outerHeight();w>p&&!i.data("horizontalScroll")?(f.css("display","block"),o=e.height(),i.data("autoDraggerLength")&&(a=Math.round(p/w*o),b=t.data("minDraggerHeight"),a<=b?t.css({height:b}):a>=o-10?(it=o-10,t.css({height:it})):t.css({height:a}),t.children(".mCSB_dragger_bar").css({"line-height":t.height()+"px"})),rt=t.height(),s=(w-p)/(o-rt),i.data("scrollAmount",s).mCustomScrollbar("scrolling",u,r,e,t,nt,tt,d,g),h=Math.abs(r.position().top),i.mCustomScrollbar("scrollTo",h,{scrollInertia:0,trigger:"internal"})):l>y&&i.data("horizontalScroll")?(f.css("display","block"),c=e.width(),i.data("autoDraggerLength")&&(v=Math.round(y/l*c),k=t.data("minDraggerWidth"),v<=k?t.css({width:k}):v>=c-10?(ut=c-10,t.css({width:ut})):t.css({width:v})),ft=t.width(),s=(l-y)/(c-ft),i.data("scrollAmount",s).mCustomScrollbar("scrolling",u,r,e,t,nt,tt,d,g),h=Math.abs(r.position().left),i.mCustomScrollbar("scrollTo",h,{scrollInertia:0,trigger:"internal"})):(u.unbind("mousewheel focusin"),i.data("horizontalScroll")?t.add(r).css("left",0):t.add(r).css("top",0),i.data("alwaysShowScrollbar")?i.data("horizontalScroll")?i.data("horizontalScroll")&&t.css({width:e.width()}):t.css({height:e.height()}):(f.css("display","none"),r.addClass("mCS_no_scrollbar")),i.data({bindEvent_mousewheel:!1,bindEvent_focusin:!1}))},scrolling:function(i,r,u,f,e,o,s,h){function ut(n,t,i,r){c.data("horizontalScroll")?c.mCustomScrollbar("scrollTo",f.position().left-t+r,{moveDragger:!0,trigger:"internal"}):c.mCustomScrollbar("scrollTo",f.position().top-n+i,{moveDragger:!0,trigger:"internal"})}var c=n(this),v,y,tt,it,rt,l,p,a,w,b,ft,et,d,g,ot,st;if(c.data("bindEvent_scrollbar_drag")||(n.support.pointer?(tt="pointerdown",it="pointermove",rt="pointerup"):n.support.msPointer&&(tt="MSPointerDown",it="MSPointerMove",rt="MSPointerUp"),n.support.pointer||n.support.msPointer?(f.bind(tt,function(t){t.preventDefault();c.data({on_drag:!0});f.addClass("mCSB_dragger_onDrag");var i=n(this),e=i.offset(),r=t.originalEvent.pageX-e.left,u=t.originalEvent.pageY-e.top;r<i.width()&&r>0&&u<i.height()&&u>0&&(v=u,y=r)}),n(document).bind(it+"."+c.data("mCustomScrollbarIndex"),function(n){if(n.preventDefault(),c.data("on_drag")){var i=f,t=i.offset(),r=n.originalEvent.pageX-t.left,u=n.originalEvent.pageY-t.top;ut(v,y,u,r)}}).bind(rt+"."+c.data("mCustomScrollbarIndex"),function(){c.data({on_drag:!1});f.removeClass("mCSB_dragger_onDrag")})):(f.bind("mousedown touchstart",function(t){var e,i,r,u,o;t.preventDefault();t.stopImmediatePropagation();e=n(this);i=e.offset();t.type==="touchstart"?(o=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0],r=o.pageX-i.left,u=o.pageY-i.top):(c.data({on_drag:!0}),f.addClass("mCSB_dragger_onDrag"),r=t.pageX-i.left,u=t.pageY-i.top);r<e.width()&&r>0&&u<e.height()&&u>0&&(v=u,y=r)}).bind("touchmove",function(t){t.preventDefault();t.stopImmediatePropagation();var i=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0],u=n(this),r=u.offset(),f=i.pageX-r.left,e=i.pageY-r.top;ut(v,y,e,f)}),n(document).bind("mousemove."+c.data("mCustomScrollbarIndex"),function(n){if(c.data("on_drag")){var i=f,t=i.offset(),r=n.pageX-t.left,u=n.pageY-t.top;ut(v,y,u,r)}}).bind("mouseup."+c.data("mCustomScrollbarIndex"),function(){c.data({on_drag:!1});f.removeClass("mCSB_dragger_onDrag")})),c.data({bindEvent_scrollbar_drag:!0})),n.support.touch&&c.data("contentTouchScroll")&&(c.data("bindEvent_content_touch")||(r.bind("touchstart",function(t){t.stopImmediatePropagation();l=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0];p=n(this);a=p.offset();b=l.pageX-a.left;w=l.pageY-a.top;ft=w;et=b}),r.bind("touchmove",function(t){t.preventDefault();t.stopImmediatePropagation();l=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0];p=n(this).parent();a=p.offset();b=l.pageX-a.left;w=l.pageY-a.top;c.data("horizontalScroll")?c.mCustomScrollbar("scrollTo",et-b,{trigger:"internal"}):c.mCustomScrollbar("scrollTo",ft-w,{trigger:"internal"})}))),c.data("bindEvent_scrollbar_click")||(u.bind("click",function(t){var i=(t.pageY-u.offset().top)*c.data("scrollAmount"),r=n(t.target);c.data("horizontalScroll")&&(i=(t.pageX-u.offset().left)*c.data("scrollAmount"));(r.hasClass("mCSB_draggerContainer")||r.hasClass("mCSB_draggerRail"))&&c.mCustomScrollbar("scrollTo",i,{trigger:"internal",scrollEasing:"draggerRailEase"})}),c.data({bindEvent_scrollbar_click:!0})),c.data("mouseWheel")&&(c.data("bindEvent_mousewheel")||(i.bind("mousewheel",function(n,t){var o,i=c.data("mouseWheelPixels"),s=Math.abs(r.position().top),e=f.position().top,h=u.height()-f.height();c.data("normalizeMouseWheelDelta")&&(t=t<0?-1:1);i==="auto"&&(i=100+Math.round(c.data("scrollAmount")/2));c.data("horizontalScroll")&&(e=f.position().left,h=u.width()-f.width(),s=Math.abs(r.position().left));(t>0&&e!==0||t<0&&e!==h)&&(n.preventDefault(),n.stopImmediatePropagation());o=s-t*i;c.mCustomScrollbar("scrollTo",o,{trigger:"internal"})}),c.data({bindEvent_mousewheel:!0}))),c.data("scrollButtons_enable"))if(c.data("scrollButtons_scrollType")==="pixels"){c.data("horizontalScroll")?(h.add(s).unbind("mousedown touchstart MSPointerDown pointerdown mouseup MSPointerUp pointerup mouseout MSPointerOut pointerout touchend",d,g),c.data({bindEvent_buttonsContinuous_x:!1}),c.data("bindEvent_buttonsPixels_x")||(h.bind("click",function(n){n.preventDefault();k(Math.abs(r.position().left)+c.data("scrollButtons_scrollAmount"))}),s.bind("click",function(n){n.preventDefault();k(Math.abs(r.position().left)-c.data("scrollButtons_scrollAmount"))}),c.data({bindEvent_buttonsPixels_x:!0}))):(o.add(e).unbind("mousedown touchstart MSPointerDown pointerdown mouseup MSPointerUp pointerup mouseout MSPointerOut pointerout touchend",d,g),c.data({bindEvent_buttonsContinuous_y:!1}),c.data("bindEvent_buttonsPixels_y")||(o.bind("click",function(n){n.preventDefault();k(Math.abs(r.position().top)+c.data("scrollButtons_scrollAmount"))}),e.bind("click",function(n){n.preventDefault();k(Math.abs(r.position().top)-c.data("scrollButtons_scrollAmount"))}),c.data({bindEvent_buttonsPixels_y:!0})));function k(n){f.data("preventAction")||(f.data("preventAction",!0),c.mCustomScrollbar("scrollTo",n,{trigger:"internal"}))}}else{c.data("horizontalScroll")?(h.add(s).unbind("click"),c.data({bindEvent_buttonsPixels_x:!1}),c.data("bindEvent_buttonsContinuous_x")||(h.bind("mousedown touchstart MSPointerDown pointerdown",function(n){n.preventDefault();var t=nt();c.data({mCSB_buttonScrollRight:setInterval(function(){c.mCustomScrollbar("scrollTo",Math.abs(r.position().left)+t,{trigger:"internal",scrollEasing:"easeOutCirc"})},17)})}),d=function(n){n.preventDefault();clearInterval(c.data("mCSB_buttonScrollRight"))},h.bind("mouseup touchend MSPointerUp pointerup mouseout MSPointerOut pointerout",d),s.bind("mousedown touchstart MSPointerDown pointerdown",function(n){n.preventDefault();var t=nt();c.data({mCSB_buttonScrollLeft:setInterval(function(){c.mCustomScrollbar("scrollTo",Math.abs(r.position().left)-t,{trigger:"internal",scrollEasing:"easeOutCirc"})},17)})}),g=function(n){n.preventDefault();clearInterval(c.data("mCSB_buttonScrollLeft"))},s.bind("mouseup touchend MSPointerUp pointerup mouseout MSPointerOut pointerout",g),c.data({bindEvent_buttonsContinuous_x:!0}))):(o.add(e).unbind("click"),c.data({bindEvent_buttonsPixels_y:!1}),c.data("bindEvent_buttonsContinuous_y")||(o.bind("mousedown touchstart MSPointerDown pointerdown",function(n){n.preventDefault();var t=nt();c.data({mCSB_buttonScrollDown:setInterval(function(){c.mCustomScrollbar("scrollTo",Math.abs(r.position().top)+t,{trigger:"internal",scrollEasing:"easeOutCirc"})},17)})}),ot=function(n){n.preventDefault();clearInterval(c.data("mCSB_buttonScrollDown"))},o.bind("mouseup touchend MSPointerUp pointerup mouseout MSPointerOut pointerout",ot),e.bind("mousedown touchstart MSPointerDown pointerdown",function(n){n.preventDefault();var t=nt();c.data({mCSB_buttonScrollUp:setInterval(function(){c.mCustomScrollbar("scrollTo",Math.abs(r.position().top)-t,{trigger:"internal",scrollEasing:"easeOutCirc"})},17)})}),st=function(n){n.preventDefault();clearInterval(c.data("mCSB_buttonScrollUp"))},e.bind("mouseup touchend MSPointerUp pointerup mouseout MSPointerOut pointerout",st),c.data({bindEvent_buttonsContinuous_y:!0})));function nt(){var n=c.data("scrollButtons_scrollSpeed");return c.data("scrollButtons_scrollSpeed")==="auto"&&(n=Math.round((c.data("scrollInertia")+100)/40)),n}}c.data("autoScrollOnFocus")&&(c.data("bindEvent_focusin")||(i.bind("focusin",function(){var t;if(i.scrollTop(0).scrollLeft(0),t=n(document.activeElement),t.is("input,textarea,select,button,a[tabindex],area,object")){var f=r.position().top,u=t.position().top,e=i.height()-t.outerHeight();c.data("horizontalScroll")&&(f=r.position().left,u=t.position().left,e=i.width()-t.outerWidth());(f+u<0||f+u>e)&&c.mCustomScrollbar("scrollTo",u,{trigger:"internal"})}}),c.data({bindEvent_focusin:!0})));c.data("autoHideScrollbar")&&!c.data("alwaysShowScrollbar")&&(c.data("bindEvent_autoHideScrollbar")||(i.bind("mouseenter",function(){i.addClass("mCS-mouse-over");t.showScrollbar.call(i.children(".mCSB_scrollTools"))}).bind("mouseleave touchend",function(n){i.removeClass("mCS-mouse-over");n.type==="mouseleave"&&t.hideScrollbar.call(i.children(".mCSB_scrollTools"))}),c.data({bindEvent_autoHideScrollbar:!0})))},scrollTo:function(i,r){function h(n){if(u.data("mCustomScrollbarIndex")){this.mcs={top:f.position().top,left:f.position().left,draggerTop:s.position().top,draggerLeft:s.position().left,topPct:Math.round(100*Math.abs(f.position().top)/Math.abs(f.outerHeight()-o.height())),leftPct:Math.round(100*Math.abs(f.position().left)/Math.abs(f.outerWidth()-o.width()))};switch(n){case"onScrollStart":u.data("mCS_tweenRunning",!0).data("onScrollStart_Callback").call(u,this.mcs);break;case"whileScrolling":u.data("whileScrolling_Callback").call(u,this.mcs);break;case"onScroll":u.data("onScroll_Callback").call(u,this.mcs);break;case"onTotalScrollBack":u.data("onTotalScrollBack_Callback").call(u,this.mcs);break;case"onTotalScroll":u.data("onTotalScroll_Callback").call(u,this.mcs)}}}var u=n(this),d={moveDragger:!1,trigger:"external",callbacks:!0,scrollInertia:u.data("scrollInertia"),scrollEasing:u.data("scrollEasing")},r=n.extend(d,r),e,o=u.children(".mCustomScrollBox"),f=o.children(".mCSB_container"),v=o.children(".mCSB_scrollTools"),y=v.children(".mCSB_draggerContainer"),s=y.children(".mCSB_dragger"),k=draggerSpeed=r.scrollInertia,w,l,b,a,p,c;f.hasClass("mCS_no_scrollbar")||(u.data({mCS_trigger:r.trigger}),u.data("mCS_Init")&&(r.callbacks=!1),(i||i===0)&&(typeof i=="number"?r.moveDragger?(e=i,i=u.data("horizontalScroll")?s.position().left*u.data("scrollAmount"):s.position().top*u.data("scrollAmount"),draggerSpeed=0):e=i/u.data("scrollAmount"):typeof i=="string"&&(p=i==="top"?0:i!=="bottom"||u.data("horizontalScroll")?i==="left"?0:i==="right"&&u.data("horizontalScroll")?f.outerWidth()-o.width():i==="first"?u.find(".mCSB_container").find(":first"):i==="last"?u.find(".mCSB_container").find(":last"):u.find(i):f.outerHeight()-o.height(),p.length===1?(i=u.data("horizontalScroll")?p.position().left:p.position().top,e=i/u.data("scrollAmount")):e=i=p),u.data("horizontalScroll")?(u.data("onTotalScrollBack_Offset")&&(l=-u.data("onTotalScrollBack_Offset")),u.data("onTotalScroll_Offset")&&(a=o.width()-f.outerWidth()+u.data("onTotalScroll_Offset")),e<0?(e=i=0,clearInterval(u.data("mCSB_buttonScrollLeft")),l||(w=!0)):e>=y.width()-s.width()?(e=y.width()-s.width(),i=o.width()-f.outerWidth(),clearInterval(u.data("mCSB_buttonScrollRight")),a||(b=!0)):i=-i,c=u.data("snapAmount"),c&&(i=Math.round(i/c)*c-u.data("snapOffset")),t.mTweenAxis.call(this,s[0],"left",Math.round(e),draggerSpeed,r.scrollEasing),t.mTweenAxis.call(this,f[0],"left",Math.round(i),k,r.scrollEasing,{onStart:function(){r.callbacks&&!u.data("mCS_tweenRunning")&&h("onScrollStart");u.data("autoHideScrollbar")&&!u.data("alwaysShowScrollbar")&&t.showScrollbar.call(v)},onUpdate:function(){r.callbacks&&h("whileScrolling")},onComplete:function(){r.callbacks&&(h("onScroll"),(w||l&&f.position().left>=l)&&h("onTotalScrollBack"),(b||a&&f.position().left<=a)&&h("onTotalScroll"));s.data("preventAction",!1);u.data("mCS_tweenRunning",!1);u.data("autoHideScrollbar")&&!u.data("alwaysShowScrollbar")&&(o.hasClass("mCS-mouse-over")||t.hideScrollbar.call(v))}})):(u.data("onTotalScrollBack_Offset")&&(l=-u.data("onTotalScrollBack_Offset")),u.data("onTotalScroll_Offset")&&(a=o.height()-f.outerHeight()+u.data("onTotalScroll_Offset")),e<0?(e=i=0,clearInterval(u.data("mCSB_buttonScrollUp")),l||(w=!0)):e>=y.height()-s.height()?(e=y.height()-s.height(),i=o.height()-f.outerHeight(),clearInterval(u.data("mCSB_buttonScrollDown")),a||(b=!0)):i=-i,c=u.data("snapAmount"),c&&(i=Math.round(i/c)*c-u.data("snapOffset")),t.mTweenAxis.call(this,s[0],"top",Math.round(e),draggerSpeed,r.scrollEasing),t.mTweenAxis.call(this,f[0],"top",Math.round(i),k,r.scrollEasing,{onStart:function(){r.callbacks&&!u.data("mCS_tweenRunning")&&h("onScrollStart");u.data("autoHideScrollbar")&&!u.data("alwaysShowScrollbar")&&t.showScrollbar.call(v)},onUpdate:function(){r.callbacks&&h("whileScrolling")},onComplete:function(){r.callbacks&&(h("onScroll"),(w||l&&f.position().top>=l)&&h("onTotalScrollBack"),(b||a&&f.position().top<=a)&&h("onTotalScroll"));s.data("preventAction",!1);u.data("mCS_tweenRunning",!1);u.data("autoHideScrollbar")&&!u.data("alwaysShowScrollbar")&&(o.hasClass("mCS-mouse-over")||t.hideScrollbar.call(v))}})),u.data("mCS_Init")&&u.data({mCS_Init:!1})))},stop:function(){var i=n(this),r=i.children().children(".mCSB_container"),u=i.children().children().children().children(".mCSB_dragger");t.mTweenAxisStop.call(this,r[0]);t.mTweenAxisStop.call(this,u[0])},disable:function(t){var r=n(this),u=r.children(".mCustomScrollBox"),i=u.children(".mCSB_container"),f=u.children(".mCSB_scrollTools"),e=f.children().children(".mCSB_dragger");u.unbind("mousewheel focusin mouseenter mouseleave touchend");i.unbind("touchstart touchmove");t&&(r.data("horizontalScroll")?e.add(i).css("left",0):e.add(i).css("top",0));f.css("display","none");i.addClass("mCS_no_scrollbar");r.data({bindEvent_mousewheel:!1,bindEvent_focusin:!1,bindEvent_content_touch:!1,bindEvent_autoHideScrollbar:!1}).addClass("mCS_disabled")},destroy:function(){var t=n(this);t.removeClass("mCustomScrollbar _mCS_"+t.data("mCustomScrollbarIndex")).addClass("mCS_destroyed").children().children(".mCSB_container").unwrap().children().unwrap().siblings(".mCSB_scrollTools").remove();n(document).unbind("mousemove."+t.data("mCustomScrollbarIndex")+" mouseup."+t.data("mCustomScrollbarIndex")+" MSPointerMove."+t.data("mCustomScrollbarIndex")+" MSPointerUp."+t.data("mCustomScrollbarIndex"));n(window).unbind("resize."+t.data("mCustomScrollbarIndex"))}},t={showScrollbar:function(){this.stop().animate({opacity:1},"fast")},hideScrollbar:function(){this.stop().animate({opacity:0},"fast")},mTweenAxis:function(n,t,i,r,u,f){function l(){return window.performance&&window.performance.now?window.performance.now():window.performance&&window.performance.webkitNow?window.performance.webkitNow():Date.now?Date.now():(new Date).getTime()}function a(){e||y.call();e=l()-b;v();e>=n._time&&(n._time=e>n._time?e+o-(e-n._time):e+o-1,n._time<e+1&&(n._time=e+1));n._time<r?n._id=_request(a):w.call()}function v(){r>0?(n.currVal=g(n._time,s,c,r,u),h[t]=Math.round(n.currVal)+"px"):h[t]=i+"px";p.call()}function k(){o=1e3/60;n._time=e+o;_request=window.requestAnimationFrame?window.requestAnimationFrame:function(n){return v(),setTimeout(n,.01)};n._id=_request(a)}function d(){n._id!=null&&(window.requestAnimationFrame?window.cancelAnimationFrame(n._id):clearTimeout(n._id),n._id=null)}function g(n,t,i,r,u){switch(u){case"linear":return i*n/r+t;case"easeOutQuad":return n/=r,-i*n*(n-2)+t;case"easeInOutQuad":return(n/=r/2,n<1)?i/2*n*n+t:(n--,-i/2*(n*(n-2)-1)+t);case"easeOutCubic":return n/=r,n--,i*(n*n*n+1)+t;case"easeOutQuart":return n/=r,n--,-i*(n*n*n*n-1)+t;case"easeOutQuint":return n/=r,n--,i*(n*n*n*n*n+1)+t;case"easeOutCirc":return n/=r,n--,i*Math.sqrt(1-n*n)+t;case"easeOutSine":return i*Math.sin(n/r*(Math.PI/2))+t;case"easeOutExpo":return i*(-Math.pow(2,-10*n/r)+1)+t;case"mcsEaseOut":var f=(n/=r)*n,e=f*n;return t+i*(.499999999999997*e*f+-2.5*f*f+5.5*e+-6.5*f+4*n);case"draggerRailEase":return(n/=r/2,n<1)?i/2*n*n*n+t:(n-=2,i/2*(n*n*n+2)+t)}}var f=f||{},y=f.onStart||function(){},p=f.onUpdate||function(){},w=f.onComplete||function(){},b=l(),o,e=0,s=n.offsetTop,h=n.style,c;t==="left"&&(s=n.offsetLeft);c=i-s;d();k()},mTweenAxisStop:function(n){n._id!=null&&(window.requestAnimationFrame?window.cancelAnimationFrame(n._id):clearTimeout(n._id),n._id=null)},rafPolyfill:function(){for(var n=["ms","moz","webkit","o"],t=n.length;--t>-1&&!window.requestAnimationFrame;)window.requestAnimationFrame=window[n[t]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[n[t]+"CancelAnimationFrame"]||window[n[t]+"CancelRequestAnimationFrame"]}},r;t.rafPolyfill.call();n.support.touch=!!("ontouchstart"in window);n.support.pointer=window.navigator.pointerEnabled;n.support.msPointer=window.navigator.msPointerEnabled;r="https:"==document.location.protocol?"https:":"http:";n.event.special.mousewheel||document.write('<script src="'+r+'//cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.0.6/jquery.mousewheel.min.js"><\/script>');n.fn.mCustomScrollbar=function(t){if(i[t])return i[t].apply(this,Array.prototype.slice.call(arguments,1));if(typeof t!="object"&&t)n.error("Method "+t+" does not exist");else return i.init.apply(this,arguments)}}(jQuery),function(n){var t={init:function(t){var r=n.extend({itemClass:".item",itemOpenClass:".item_open",openTriggerClass:".item",closeText:"Close",itemMargin:10,scrollSpeed:500,startItem:"last",easing:"easeOutSine",categories:["January","February","March","April","May","June","July","August","September","October","November","December"],nuberOfSegments:[31,29,31,30,31,30,31,31,30,31,30,31],yearsOn:!0,swipeOn:!0,hideTimeline:!1,hideControles:!1,closeItemOnTransition:!1,ajaxFailMessage:"Ajax request has failed."},t),i=this,v=n("body"),u=i.find(r.itemClass),s=i.find(r.itemOpenClass),f=u.first().width(),o=s.first().width(),y=r.closeItemOnTransition,e;i.trigger("init.Timeline");e=u.length-1;r.startItem=="first"?e=0:r.startItem=="last"?e=u.length-1:u.each(function(t){if(r.startItem==n(this).attr("data-id"))return e=t,!0});u.each(function(t){n(this).attr("data-count",t);n(this).next(r.itemOpenClass).attr("data-count",t);n(this).hasClass(r.openTriggerClass)||n(this).find(r.openTriggerClass).attr("data-count",t)});i.append('<div style="clear:both"><\/div>');i.css({width:"100%",overflow:"hidden",marginLeft:"auto",marginRight:"auto","text-align":"center",height:0});i.wrapInner('<div class="timeline_items" />');i.find(".timeline_items").css("text-align","left");"ontouchstart"in window&&i.addClass("timelineTouch");i.wrapInner('<div class="timeline_items_holder" />');r.hideControles||i.append('<div class="t_controles"><div class="t_left"><\/div><div class="t_right"><\/div><\/div>');i.wrapInner('<div class="timeline_items_wrapper" />');i.find(".timeline_items_holder").css({width:"300px",marginLeft:"auto",marginRight:"auto"});u.css({paddingLeft:0,paddingRight:0,marginLeft:r.itemMargin/2,marginRight:r.itemMargin/2,float:"left",position:"relative"});s.each(function(){n(this).prepend('<div class="t_close" data-count="'+n(this).attr("data-count")+'" data-id="'+n(this).attr("data-id")+'">'+r.closeText+"<\/div>");n(this).wrapInner('<div class="'+r.itemOpenClass.substr(1)+'_cwrapper"  />').find("div:first").css({position:"relative"});n(this).css({width:0,padding:0,margin:0,float:"left",display:"none",position:"relative",overflow:"hidden"})});var c=i.find(".timeline_items:first"),p=i.find(".t_line_wrapper:first"),l=150-(f+r.itemMargin)*(1/2+e),a=(f+r.itemMargin)*u.length+(o+r.itemMargin)+660,h=i.data("timeline");return c.css({width:a,marginLeft:l}),h||i.data("timeline",{currentIndex:e,itemCount:u.length,margin:l,itemWidth:f,itemOpenWidth:o,lineMargin:0,lineViewCount:0,options:r,items:u,iholder:c,open:!1,noAnimation:!1,marginResponse:!1,mousedown:!1,mousestartpos:0}),r.hideTimeline||(i.timeline("createElements"),i.hasClass("timelineClean")),n(document).keydown(function(n){return n.keyCode==37?(i.timeline("left"),!1):n.keyCode==39?(i.timeline("right"),!1):void 0}),n(document).ready(function(){i.find(r.itemClass).css({"-webkit-touch-callout":"none","-webkit-user-select":"none","-khtml-user-select":"none","-moz-user-select":"none","-ms-user-select":"none","user-select":"none"}).find("img").on("dragstart",function(t){n(this).hasClass("timeline_rollover_bottom")||t.preventDefault()});n(".image_rollover_bottom").on("dragstart",function(t){n(this).addClass("disableClick");t.preventDefault()});n(".image_rollover_bottom").on("mousedown",function(){n(this).is("hover")||n(this).removeClass("disableClick")});n(".image_rollover_bottom").on("click",function(t){n(this).hasClass("disableClick")&&(t.preventDefault(),t.stopPropagation());n(this).removeClass("disableClick")})}),n(window).resize(function(){var t=i.data("timeline"),e=u.eq(t.currentIndex).attr("data-id");f=u.first().width();o=s.first().find("div:first").width();t.margin+=t.itemCount*(t.itemWidth-f);t.itemWidth=f;t.open&&(t.margin+=(t.itemOpenWidth-o)/2);t.itemOpenWidth=o;n("body").width()<767&&t.open&&!t.marginResponse?(t.margin-=(f+r.itemMargin)/2,t.marginResponse=!0):n("body").width()>=767&&t.marginResponse&&t.open&&(t.margin+=(f+r.itemMargin)/2,t.marginResponse=!1);t.noAnimation=!0;i.timeline("goTo",e)}),i.find(".t_left").click(function(){i.timeline("left")}),i.find(".t_right").click(function(){i.timeline("right")}),r.swipeOn&&(u.find("*").each(function(){n(this).css({"-webkit-touch-callout":"none","-webkit-user-select":"none","-khtml-user-select":"none","-moz-user-select":"none","-ms-user-select":"none","user-select":"none"})}),i.bind("touchstart",function(n){i.timeline("touchStart",n)}),i.find(r.itemClass).mousedown(function(n){i.timeline("mouseDown",n.pageX)}),n(document).bind("touchend",function(){h=i.data("timeline");i.timeline("touchEnd",h.touchpos)}),n(document).mouseup(function(n){var t=i.data("timeline");t.mousedown&&i.timeline("mouseUp",n.pageX)})),i.find(r.openTriggerClass).click(function(){i.timeline("goTo",n(this).attr("data-id"),n(this).attr("data-count"),!0)}),i.find(".t_close").click(function(){i.timeline("close",n(this).attr("data-id"),n(this).attr("data-count"))}),i.css({height:"auto"}).show(),i.prev(".timelineLoader").hide(),i.find(".t_line_node").each(function(){n(this).width()<10&&n(this).width(12);n(this).css({marginLeft:-n(this).width()/2})}),i},destroy:function(){n(document).unbind("mouseup");n(window).unbind("resize");var t=this,i=t.data("timeline");t.removeData("timeline")},touchStart:function(n){var i=this,t=i.data("timeline"),r=0;t.xpos=n.originalEvent.touches[0].pageX;t.ypos=n.originalEvent.touches[0].pageY;t.mousedown=!0;t.touchHorizontal=!1;t.mousestartpos=t.xpos;i.unbind("touchmove");i.bind("touchmove",function(n){var i=n.originalEvent.touches[0].pageX,u=n.originalEvent.touches[0].pageY;t.mousedown&&!t.touchHorizontal?Math.abs(i-t.xpos)>Math.abs(u-t.ypos)&&(t.touchHorizontal=!0):t.touchHorizontal&&(n.preventDefault(),t.touchpos=n.originalEvent.touches[0].pageX,r=t.margin-t.xpos+n.originalEvent.touches[0].pageX,t.iholder.css("marginLeft",r+"px"));t.mousedown=!1})},mouseDown:function(t){var u=this,i=u.data("timeline"),r=0;i.mousedown=!0;i.mousestartpos=t;n("body").css("cursor","move");n(document).mousemove(function(n){r=i.margin-t+n.pageX;i.iholder.css("marginLeft",r+"px")})},touchEnd:function(n){var f=this,t=f.data("timeline"),r=t.itemWidth+t.options.itemMargin,i=t.currentIndex,e=0,u=n-t.mousestartpos;typeof t.touchHorizontal!="undefined"&&t.touchHorizontal&&(t.touchHorizontal=!1,i-=parseInt(u/r),e=u%r,u<0&&e<-r/2&&i++,u>0&&e>r/2&&i--,i<0&&(i=0),i>=t.itemCount&&(i=t.itemCount-1),f.timeline("goTo",t.items.eq(i).attr("data-id"),t.items.eq(i).attr("data-count")),t.options.closeItemOnTransition&&f.timeline("close",t.items.eq(i).attr("data-id")))},mouseUp:function(t){var e=this,i=e.data("timeline"),u=i.itemWidth+i.options.itemMargin,r=i.currentIndex,o=0,f=t-i.mousestartpos;i.mousedown=!1;n(document).unbind("mousemove");n("body").css("cursor","auto");r-=parseInt(f/u);o=f%u;f<0&&o<-u/2&&r++;f>0&&o>u/2&&r--;r<0&&(r=0);r>=i.itemCount&&(r=i.itemCount-1);e.timeline("goTo",i.items.eq(r).attr("data-id"),i.items.eq(r).attr("data-count"));i.options.closeItemOnTransition&&e.timeline("close",i.items.eq(r).attr("data-id"))},open:function(t,i){var u=this,r=u.data("timeline"),h=u.find(r.options.itemOpenClass),f=r.options.scrollSpeed,e=r.itemOpenWidth,o=r.options.easin,s=r.options.itemMargin;return h.each(function(){var h,c;n(this).attr("data-id")==t&&(i&&i!=n(this).attr("data-count")||(h=n(this),u.trigger("itemOpen.Timeline"),n(this).stop(!0).show().animate({width:e,marginLeft:s/2,marginRight:s/2},f,o),typeof n(this).attr("data-access")!="undefined"&&n(this).attr("data-access")!=""&&(c=n(this).attr("data-access"),n.get(c,function(t){if(n("body").append('<div class="ajax_preloading_holder" style="display:none"><\/div>'),n(".ajax_preloading_holder").html(t),n(".ajax_preloading_holder img").length>0)n(".ajax_preloading_holder img").load(function(){h.find(".item_open_content").html(t);n(".ajax_preloading_holder").remove();n(this).attr("data-access","");var i=jQuery.Event("ajaxLoaded.timeline");i.element=h.find(".item_open_content");n("body").trigger(i);u.trigger(i)});else{h.find(".item_open_content").html(t);n(".ajax_preloading_holder").remove();n(this).attr("data-access","");var i=jQuery.Event("ajaxLoaded.timeline");i.element=h.find(".item_open_content");n("body").trigger(i);u.trigger(i)}},"text").fail(function(){r='<div class="timeline_open_content"><h2 class="no-marg-top">'+r.options.ajaxFailMessage+"<\/h2><\/div>";h.find(".item_open_content").html(r);n(".ajax_preloading_holder").remove();var t=jQuery.Event("ajaxLoaded.timeline");t.element=h.find(".item_open_content");n("body").trigger(t);u.trigger(t)})),n("body").width()<767?(r.margin-=(r.itemWidth+r.options.itemMargin)/2,r.marginResponse=!0):r.marginResponse=!1,r.margin-=(e+r.options.itemMargin+r.itemWidth)/2-r.itemWidth/2,r.iholder.stop(!0).animate({marginLeft:r.margin},f,o),r.open=t))}),u},close:function(t,i,r){var f=this,u=f.data("timeline"),s=f.find(u.options.itemOpenClass),e=u.options.scrollSpeed,h=u.itemOpenWidth,o=u.options.easing;return s.each(function(){n(this).attr("data-id")==t&&n(this).is(":visible")&&(f.trigger("itemClose.Timeline"),n(this).stop(!0).animate({width:0,margin:0},e,o,function(){n(this).hide()}),u.marginResponse&&(u.margin+=(u.itemWidth+u.options.itemMargin)/2),u.margin+=(h+u.options.itemMargin)/2,u.iholder.stop(!0).animate({marginLeft:u.margin},e,o),u.open=!1)}),i&&f.timeline("open",i,r),f},right:function(){var t=this,n=t.data("timeline"),r=n.options.scrollSpeed,u=n.options.easing,i,f;return n.currentIndex<n.itemCount-1?(i=n.items.eq(n.currentIndex+1).attr("data-id"),f=n.items.eq(n.currentIndex+1).attr("data-count"),t.timeline("goTo",i,f),n.options.closeItemOnTransition&&t.timeline("close",i)):n.iholder.stop(!0).animate({marginLeft:n.margin-50},r/2,u).animate({marginLeft:n.margin},r/2,u),t},left:function(){var t=this,n=t.data("timeline"),r=n.options.scrollSpeed,u=n.options.easing,i,f;return n.currentIndex>0?(i=n.items.eq(n.currentIndex-1).attr("data-id"),f=n.items.eq(n.currentIndex-1).attr("data-count"),t.timeline("goTo",i,f),n.options.closeItemOnTransition&&t.timeline("close",i)):n.iholder.stop(!0).animate({marginLeft:n.margin+50},r/2,u).animate({marginLeft:n.margin},r/2,u),t},goTo:function(t,i,r){var f=this,u=f.data("timeline"),e=u.options.scrollSpeed,c=u.options.easing,v=u.items,y=f.find(".timeline_line").width(),o=-1,l=!1,s,h,a;return v.each(function(r){if(t==n(this).attr("data-id")&&(!i||i==n(this).attr("data-count")))return l=!0,o=r,!1}),l&&(s=f.find(".t_line_node"),s.removeClass("active"),h=s.parent().parent().find('[href="#'+t+'"]').addClass("active"),u.lineMargin=-parseInt(h.parent().parent().attr("data-id"),10)*100,f.find(".t_line_view:first").width()>f.find(".timeline_line").width()&&(u.lineMargin*=2,h.parent().hasClass("right")&&(u.lineMargin-=100)),u.noAnimation?(u.noAnimation=!1,f.find(".t_line_wrapper").stop(!0).css({marginLeft:u.lineMargin+"%"})):f.find(".t_line_wrapper").stop(!0).animate({marginLeft:u.lineMargin+"%"},e,c),u.open?f.timeline("close",u.open,t,i):r&&f.timeline("open",t,i),f.trigger("scrollStart.Timeline"),u.margin+=(u.itemWidth+u.options.itemMargin)*(u.currentIndex-o),u.currentIndex=o,a=(parseInt(u.iholder.css("margin-left"))-u.margin)/u.itemWidth,u.iholder.stop(!0).animate({marginLeft:u.margin},e+e/5*(Math.abs(a)-1),c,function(){f.trigger("scrollStop.Timeline")})),f},lineLeft:function(){var t=this,n=t.data("timeline"),i=n.options.scrollSpeed,r=n.options.easing;n.lineMargin!=0&&n.options.categories&&(n.lineMargin+=100,t.find(".t_line_wrapper").stop(!0).animate({marginLeft:n.lineMargin+"%"},i,r))},lineRight:function(){var t=this,n=t.data("timeline"),r=n.options.scrollSpeed,u=n.options.easing,i;i=t.find(".t_line_view:first").width()>t.find(".timeline_line").width()?n.lineViewCount*2:n.lineViewCount;n.lineMargin!=-(i-1)*100&&n.options.categories&&(n.lineMargin-=100,t.find(".t_line_wrapper").stop(!0).animate({marginLeft:n.lineMargin+"%"},r,u))},createElements:function(){var r=this,i=r.data("timeline"),l=i.items,t='\n    <div class="timeline_line" style="text-align: left; position:relative; margin-left:auto; margin-right:auto;">\n\t <\/div>\n',u,a,h,c,f,o;r.prepend(t);var v=r.find(".timeline_line").width(),s=[],e=[""].concat(i.options.categories);if(monthsDays=[0].concat(i.options.nuberOfSegments),minM=e.length,minY=99999,maxM=0,maxY=0,i.options.yearsOn||(maxY=99999),u={},i.options.categories||(l.each(function(){var r=n(this).attr("data-id"),t=r.split("/"),i=parseInt(t[0],10),u=n.inArray(t[1],e)!=-1?n.inArray(t[1],e):parseInt(t[1],10),f=parseInt(t[2],10);i<minY&&(minY=i);i>maxY&&(maxY=i)}),minY-=10,maxY+=10),l.each(function(t){var r=n(this).attr("data-id"),a=n(this).attr("data-name"),v=n(this).attr("data-description"),f=r.split("/"),h=parseInt(f[0],10),c=n.inArray(f[1],e)!=-1?n.inArray(f[1],e):parseInt(f[1],10),o=parseInt(f[2],10),y,l,p;typeof u[o]=="undefined"&&(u[o]={});typeof u[o][c]=="undefined"&&(u[o][c]={});u[o][c][h]=r;y=t==i.currentIndex?" active":"";l=i.options.categories?100/monthsDays[c]*h:100/(maxY-minY)*(h-minY);p=typeof a!="undefined"?a:h;s[r]='<a href="#'+r+'" class="t_line_node'+y+'" style="left: '+l+'%; position:absolute; text-align:center;">'+p;typeof v!="undefined"&&(s[r]+='<span class="t_node_desc" style="white-space:nowrap; position:absolute; z-index: 1;"><span>'+v+"<\/span><\/span>");s[r]+="<\/a>\n"}),t='\n\t\t<div id="t_line_left" style="position: absolute;"><\/div><div id="t_line_right" style="position: absolute;"><\/div>\n\t\t<div class="t_line_holder" style="position:relative; overflow: hidden; width:100%;">\n\t\t\t<div class="t_line_wrapper" style="white-space:nowrap;">\n',i.options.categories){h=!0;c=0;for(f in u)for(o in u[f])if(h){h=!h;t+='<div class="t_line_view" data-id="'+c+'" style="position:relative; display:inline-block;">\n\t\t\t\t\t<div class="t_line_m" style="position:absolute; top:0;">\n\t\t\t\t\t\t<h4 class="t_line_month" style="position:abolute; width:100% top:0; text-align:center;">'+e[o]+(i.options.yearsOn?'<span class="t_line_month_year"> '+(f<0?-f+" B.C.":f)+"<\/span>":"")+"<\/h4>\n";for(dy in u[f][o])t+=s[u[f][o][dy]];t+="\t\t\t\t\t<\/div> <!-- KRAJ PRVOG -->\n"}else{h=!h;t+='\t\t\t\t\t<div class="t_line_m right" style="position:absolute; top:0;">\n\t\t\t\t\t\t<h4 class="t_line_month" style="position:abolute; width:100% top:0; text-align:center;">'+(typeof e[o]!="undefined"?e[o]:"")+(i.options.yearsOn?'<span class="t_line_month_year"> '+f+"<\/span>":"")+"<\/h4>\n";for(dy in u[f][o])t+=s[u[f][o][dy]];t+='\t\t\t\t\t<\/div><!-- KRAJ DRUGOG -->\n\t\t\t\t\t<div style="clear:both"><\/div>\n\t\t\t\t<\/div>';c++}h||(t+='\t\t\t\t\t<div class="t_line_m right" style="position:absolute; top:0;">\n\t\t\t\t\t\t<h4 class="t_line_month" style="position:abolute; width:100% top:0; text-align:center;"><\/h4>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<div style="clear:both"><\/div>\n\t\t\t\t<\/div>',c++)}else{t+='<div class="t_line_view" data-id="'+c+'" style="position:relative; display:inline-block; width:100%;">\n\t\t\t\t\t<div class="t_line_m" style="width:100%; border:0; position:absolute; top:0;">\n';for(a in s)t+=s[a];t+="<\/div>\n<\/div>"}t+='\n\t\t\t\t<div style="clear:both"><\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n';i.lineViewCount=c;r.find(".timeline_line:first").html(t);r.find(".t_line_node").each(function(){var t=n(this);n(this).find("span").hide();n(this).hover(function(){l.each(function(){n(this).attr("data-id")==t.attr("href").substr(1)&&n(this).addClass("item_node_hover")});n(this).find("span").css("display","block")},function(){n(this).find("span").css("display","none");n(".item_node_hover").removeClass("item_node_hover")});n(this).hasClass("active")&&(i.lineMargin=-parseInt(n(this).parent().parent(".t_line_view").attr("data-id"),10)*100,r.find(".t_line_wrapper").css("margin-left",i.lineMargin+"%"));n(this).click(function(t){t.preventDefault();r.find(".t_line_node").removeClass("active");n(this).addClass("active");r.timeline("goTo",n(this).attr("href").substr(1))})});r.find("#t_line_left").click(function(){r.timeline("lineLeft")});r.find("#t_line_right").click(function(){r.timeline("lineRight")})}};n.fn.timeline=function(i){if(t[i])return t[i].apply(this,Array.prototype.slice.call(arguments,1));if(typeof i!="object"&&i)n.error("Method "+i+" does not exist on jQuery.timeline");else return t.init.apply(this,arguments)}}(jQuery),function(n){var f={method:"GET",contentType:"json",queryParam:"q",searchDelay:300,minChars:1,propertyToSearch:"name",jsonContainer:null,hintText:"Type in a search term",placeHolderText:"Type in a search term",noResultsText:"No results",searchingText:"Searching...",deleteText:"&times;",animateDropdown:!0,tokenLimit:null,tokenDelimiter:",",preventDuplicates:!1,tokenValue:"id",prePopulate:null,processPrePopulate:!1,idPrefix:"token-input-",resultsFormatter:function(n){return"<li>"+n[this.propertyToSearch]+"<\/li>"},tokenFormatter:function(n){return"<li><p>"+n[this.propertyToSearch]+"<\/p><\/li>"},onResult:null,onAdd:null,onDelete:null,onReady:null},r={tokenList:"token-input-list",token:"token-input-token",tokenDelete:"token-input-delete-token",selectedToken:"token-input-selected-token",highlightedToken:"token-input-highlighted-token",dropdown:"token-input-dropdown",dropdownItem:"token-input-dropdown-item",dropdownItem2:"token-input-dropdown-item2",selectedDropdownItem:"token-input-selected-dropdown-item",inputToken:"token-input-input-token"},i={BEFORE:0,AFTER:1,END:2},t={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,NUMPAD_ENTER:108,COMMA:188},u={init:function(t,i){var r=n.extend({},f,i||{});return this.each(function(){n(this).data("tokenInputObject",new n.TokenList(this,t,r))})},clear:function(){return this.data("tokenInputObject").clear(),this},add:function(n){return this.data("tokenInputObject").add(n),this},remove:function(n){return this.data("tokenInputObject").remove(n),this},get:function(){return this.data("tokenInputObject").getTokens()}};n.fn.tokenInput=function(n){return u[n]?u[n].apply(this,Array.prototype.slice.call(arguments,1)):u.init.apply(this,arguments)};n.TokenList=function(u,f,e){function ct(){if(e.tokenLimit!==null&&v>=e.tokenLimit){o.hide();w();return}}function wt(){if(ut!==(ut=o.val())){var n=ut.replace(/&/g,"&amp;").replace(/\s/g," ").replace(/</g,"&lt;").replace(/>/g,"&gt;");pt.html(n);o.width("100%")}}function lt(t){var i=e.tokenFormatter(t),r;return i=n(i).addClass(e.classes.token).insertBefore(p),n("<span>"+e.deleteText+"<\/span>").addClass(e.classes.tokenDelete).appendTo(i).click(function(){return nt(n(this).parent()),h.change(),!1}),r={id:t.id},r[e.propertyToSearch]=t[e.propertyToSearch],n.data(i.get(0),"tokeninput",t),c=c.slice(0,l).concat([r]).concat(c.slice(l)),l++,at(c,h),v+=1,e.tokenLimit!==null&&v>=e.tokenLimit&&(o.hide(),w()),i}function ft(t){var r=e.onAdd,i;if(v>0&&e.preventDuplicates&&(i=null,y.children().each(function(){var r=n(this),u=n.data(r.get(0),"tokeninput");if(u&&u.id===t.id)return i=r,!1}),i)){g(i);p.insertAfter(i);o.focus();return}(e.tokenLimit==null||v<e.tokenLimit)&&(lt(t),ct());o.val("");w();n.isFunction(r)&&r.call(h,t)}function g(n){n.addClass(e.classes.selectedToken);s=n.get(0);o.val("");w()}function d(n,t){n.removeClass(e.classes.selectedToken);s=null;t===i.BEFORE?(p.insertBefore(n),l--):t===i.AFTER?(p.insertAfter(n),l++):(p.appendTo(y),l=v);o.focus()}function bt(t){var r=s;s&&d(n(s),i.END);r===t.get(0)?d(t,i.END):g(t)}function nt(t){var u=n.data(t.get(0),"tokeninput"),r=e.onDelete,i=t.prevAll().length;i>l&&i--;t.remove();s=null;o.focus();c=c.slice(0,i).concat(c.slice(i+1));i<l&&l--;at(c,h);v-=1;e.tokenLimit!==null&&o.show().val("").focus();n.isFunction(r)&&r.call(h,u)}function at(t,i){var r=n.map(t,function(n){return n[e.tokenValue]});i.val(r.join(e.tokenDelimiter))}function w(){vt();b.hide().empty();a=null}function tt(){b.css({position:"absolute",top:n(y).offset().top+n(y).outerHeight(),left:n(y).offset().left,zindex:999}).show()}function kt(){e.searchingText&&(b.html("<p>"+e.searchingText+"<\/p>"),tt())}function dt(){e.hintText&&(gt(),b.html("<p>"+e.hintText+"<\/p>"),tt())}function vt(){o.attr("placeholder",e.placeHolderText)}function gt(){o.attr("placeholder","")}function ni(n,t){return n.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)("+t+")(?![^<>]*>)(?![^&;]+;)","gi"),"<b>$1<\/b>")}function ti(n,t,i){return n.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)("+t+")(?![^<>]*>)(?![^&;]+;)","g"),ni(t,i))}function et(t,i){if(i&&i.length){b.empty();var r=n("<ul>").appendTo(b).mouseover(function(t){ot(n(t.target).closest("li"))}).mousedown(function(t){return ft(n(t.target).closest("li").data("tokeninput")),h.change(),!1}).hide();n.each(i,function(i,u){var f=e.resultsFormatter(u);f=ti(f,u[e.propertyToSearch],t);f=n(f).appendTo(r);i%2?f.addClass(e.classes.dropdownItem):f.addClass(e.classes.dropdownItem2);i===0&&ot(f);n.data(f.get(0),"tokeninput",u)});tt();e.animateDropdown?r.slideDown("fast"):r.show()}else e.noResultsText&&(b.html("<p>"+e.noResultsText+"<\/p>"),tt())}function ot(t){t&&(a&&ii(n(a)),t.addClass(e.classes.selectedDropdownItem),a=t.get(0))}function ii(n){n.removeClass(e.classes.selectedDropdownItem);a=null}function yt(){var t=o.val().toLowerCase();t&&t.length&&(s&&d(n(s),i.AFTER),t.length>=e.minChars?(kt(),clearTimeout(ht),ht=setTimeout(function(){ri(t)},e.searchDelay)):w())}function ri(t){var f=t+st(),c=rt.get(f),u,i,s,l,r;c?et(t,c):e.url?(u=st(),i={},i.data={},u.indexOf("?")>-1?(s=u.split("?"),i.url=s[0],l=s[1].split("&"),n.each(l,function(n,t){var r=t.split("=");i.data[r[0]]=r[1]})):i.url=u,i.data[e.queryParam]=t,i.type=e.method,i.dataType=e.contentType,e.crossDomain&&(i.dataType="jsonp"),i.success=function(i){n.isFunction(e.onResult)&&(i=e.onResult.call(h,i));rt.add(f,e.jsonContainer?i[e.jsonContainer]:i);o.val().toLowerCase()===t&&et(t,e.jsonContainer?i[e.jsonContainer]:i)},n.ajax(i)):e.local_data&&(r=n.grep(e.local_data,function(n){return n[e.propertyToSearch].toLowerCase().indexOf(t.toLowerCase())>-1}),n.isFunction(e.onResult)&&(r=e.onResult.call(h,r)),rt.add(f,r),et(t,r))}function st(){var n=e.url;return typeof e.url=="function"&&(n=e.url.call()),n}var it,k;n.type(f)==="string"||n.type(f)==="function"?(e.url=f,it=st(),e.crossDomain===undefined&&(e.crossDomain=it.indexOf("://")===-1?!1:location.href.split(/\/+/g)[1]!==it.split(/\/+/g)[1])):typeof f=="object"&&(e.local_data=f);e.classes?e.classes=n.extend({},r,e.classes):e.theme?(e.classes={},n.each(r,function(n,t){e.classes[n]=t+"-"+e.theme})):e.classes=r;var c=[],v=0,rt=new n.TokenList.Cache,ht,ut,o=n('<input type="text"  autocomplete="off">').css({outline:"none"}).attr("id",e.idPrefix+u.id).focus(function(){(e.tokenLimit===null||e.tokenLimit!==v)&&dt()}).blur(function(){w();n(this).val("")}).bind("keyup keydown blur update",wt).keydown(function(r){var u,f,e;switch(r.keyCode){case t.LEFT:case t.RIGHT:case t.UP:case t.DOWN:if(n(this).val())return e=null,e=r.keyCode===t.DOWN||r.keyCode===t.RIGHT?n(a).next():n(a).prev(),e.length&&ot(e),!1;u=p.prev();f=p.next();u.length&&u.get(0)===s||f.length&&f.get(0)===s?r.keyCode===t.LEFT||r.keyCode===t.UP?d(n(s),i.BEFORE):d(n(s),i.AFTER):(r.keyCode===t.LEFT||r.keyCode===t.UP)&&u.length?g(n(u.get(0))):(r.keyCode===t.RIGHT||r.keyCode===t.DOWN)&&f.length&&g(n(f.get(0)));break;case t.BACKSPACE:if(u=p.prev(),n(this).val().length)n(this).val().length===1?w():setTimeout(function(){yt()},5);else return s?(nt(n(s)),h.change()):u.length&&g(n(u.get(0))),!1;break;case t.TAB:case t.ENTER:case t.NUMPAD_ENTER:case t.COMMA:if(a)return ft(n(a).data("tokeninput")),h.change(),!1;break;case t.ESCAPE:return w(),!0;default:String.fromCharCode(r.which)&&setTimeout(function(){yt()},5)}}),h=n(u).hide().val("").focus(function(){o.focus()}).blur(function(){o.blur()});vt();var s=null,l=0,a=null,y=n("<ul />").addClass(e.classes.tokenList).click(function(t){var r=n(t.target).closest("li");r&&r.get(0)&&n.data(r.get(0),"tokeninput")?bt(r):(s&&d(n(s),i.END),o.focus())}).mouseover(function(t){var i=n(t.target).closest("li");i&&s!==this&&i.addClass(e.classes.highlightedToken)}).mouseout(function(t){var i=n(t.target).closest("li");i&&s!==this&&i.removeClass(e.classes.highlightedToken)}).insertBefore(h),p=n("<li />").addClass(e.classes.inputToken).appendTo(y).append(o),b=n("<div>").addClass(e.classes.dropdown).appendTo("body").hide(),pt=n("<tester/>").insertAfter(o).css({position:"absolute",top:-9999,left:-9999,width:"auto",fontSize:o.css("fontSize"),fontFamily:o.css("fontFamily"),fontWeight:o.css("fontWeight"),letterSpacing:o.css("letterSpacing"),whiteSpace:"nowrap"});h.val("");k=e.prePopulate||h.data("pre");e.processPrePopulate&&n.isFunction(e.onResult)&&(k=e.onResult.call(h,k));k&&k.length&&n.each(k,function(n,t){lt(t);ct()});n.isFunction(e.onReady)&&e.onReady.call();this.clear=function(){y.children("li").each(function(){n(this).children("input").length===0&&nt(n(this))})};this.add=function(n){ft(n)};this.remove=function(t){y.children("li").each(function(){var u,i,r;if(n(this).children("input").length===0){u=n(this).data("tokeninput");i=!0;for(r in t)if(t[r]!==u[r]){i=!1;break}i&&nt(n(this))}})};this.getTokens=function(){return c}};n.TokenList.Cache=function(t){var u=n.extend({max_size:500},t),i={},r=0,f=function(){i={};r=0};this.add=function(n,t){r>u.max_size&&f();i[n]||(r+=1);i[n]=t};this.get=function(n){return i[n]}}}(jQuery),function(){var n,t,i;n=jQuery;i=function(){function n(){this.fadeDuration=500;this.fitImagesInViewport=!0;this.resizeDuration=700;this.showImageNumberLabel=!0;this.wrapAround=!1}return n.prototype.albumLabel=function(n,t){return"Image "+n+" of "+t},n}();t=function(){function t(n){this.options=n;this.album=[];this.currentImageIndex=void 0;this.init()}return t.prototype.init=function(){return this.enable(),this.build()},t.prototype.enable=function(){var t=this;return n("body").on("click","a[rel^=lightbox], area[rel^=lightbox], a[data-lightbox], area[data-lightbox]",function(i){return t.start(n(i.currentTarget)),!1})},t.prototype.build=function(){var t=this;n("<div id='lightboxOverlay' class='lightboxOverlay'><\/div><div id='lightbox' class='lightbox'><div class='lb-outerContainer'><div class='lb-container'><img class='lb-image' src='' /><div class='lb-nav'><a class='lb-prev' href='' ><\/a><a class='lb-next' href='' ><\/a><\/div><div class='lb-loader'><a class='lb-cancel'><\/a><\/div><\/div><\/div><div class='lb-dataContainer'><div class='lb-data'><div class='lb-details'><span class='lb-caption'><\/span><span class='lb-number'><\/span><\/div><div class='lb-closeContainer'><a class='lb-close'><\/a><\/div><\/div><\/div><\/div>").appendTo(n("body"));this.$lightbox=n("#lightbox");this.$overlay=n("#lightboxOverlay");this.$outerContainer=this.$lightbox.find(".lb-outerContainer");this.$container=this.$lightbox.find(".lb-container");this.containerTopPadding=parseInt(this.$container.css("padding-top"),10);this.containerRightPadding=parseInt(this.$container.css("padding-right"),10);this.containerBottomPadding=parseInt(this.$container.css("padding-bottom"),10);this.containerLeftPadding=parseInt(this.$container.css("padding-left"),10);this.$overlay.hide().on("click",function(){return t.end(),!1});this.$lightbox.hide().on("click",function(i){return n(i.target).attr("id")==="lightbox"&&t.end(),!1});this.$outerContainer.on("click",function(i){return n(i.target).attr("id")==="lightbox"&&t.end(),!1});this.$lightbox.find(".lb-prev").on("click",function(){return t.currentImageIndex===0?t.changeImage(t.album.length-1):t.changeImage(t.currentImageIndex-1),!1});this.$lightbox.find(".lb-next").on("click",function(){return t.currentImageIndex===t.album.length-1?t.changeImage(0):t.changeImage(t.currentImageIndex+1),!1});return this.$lightbox.find(".lb-loader, .lb-close").on("click",function(){return t.end(),!1})},t.prototype.start=function(t){var u,i,e,r,f,l,a,o,s,v,y,h,c;n(window).on("resize",this.sizeOverlay);if(n("select, object, embed").css({visibility:"hidden"}),this.$overlay.width(n(document).width()).height(n(document).height()).fadeIn(this.options.fadeDuration),this.album=[],f=0,e=t.attr("data-lightbox"),e)for(h=n(t.prop("tagName")+'[data-lightbox="'+e+'"]'),r=o=0,v=h.length;o<v;r=++o)i=h[r],this.album.push({link:n(i).attr("href"),title:n(i).attr("title")}),n(i).attr("href")===t.attr("href")&&(f=r);else if(t.attr("rel")==="lightbox")this.album.push({link:t.attr("href"),title:t.attr("title")});else for(c=n(t.prop("tagName")+'[rel="'+t.attr("rel")+'"]'),r=s=0,y=c.length;s<y;r=++s)i=c[r],this.album.push({link:n(i).attr("href"),title:n(i).attr("title")}),n(i).attr("href")===t.attr("href")&&(f=r);u=n(window);a=u.scrollTop()+u.height()/10;l=u.scrollLeft();this.$lightbox.css({top:a+"px",left:l+"px"}).fadeIn(this.options.fadeDuration);this.changeImage(f)},t.prototype.changeImage=function(t){var r,i,u=this;this.disableKeyboardNav();r=this.$lightbox.find(".lb-image");this.sizeOverlay();this.$overlay.fadeIn(this.options.fadeDuration);n(".lb-loader").fadeIn("slow");this.$lightbox.find(".lb-image, .lb-nav, .lb-prev, .lb-next, .lb-dataContainer, .lb-numbers, .lb-caption").hide();this.$outerContainer.addClass("animating");i=new Image;i.onload=function(){var l,f,e,o,s,h,c;return r.attr("src",u.album[t].link),l=n(i),r.width(i.width),r.height(i.height),u.options.fitImagesInViewport&&(c=n(window).width(),h=n(window).height(),s=c-u.containerLeftPadding-u.containerRightPadding-20,o=h-u.containerTopPadding-u.containerBottomPadding-110,(i.width>s||i.height>o)&&(i.width/s>i.height/o?(e=s,f=parseInt(i.height/(i.width/e),10),r.width(e),r.height(f)):(f=o,e=parseInt(i.width/(i.height/f),10),r.width(e),r.height(f)))),u.sizeContainer(r.width(),r.height())};i.src=this.album[t].link;this.currentImageIndex=t},t.prototype.sizeOverlay=function(){return n("#lightboxOverlay").width(n(document).width()).height(n(document).height())},t.prototype.sizeContainer=function(n,t){var i,u,f,e,r=this;e=this.$outerContainer.outerWidth();f=this.$outerContainer.outerHeight();u=n+this.containerLeftPadding+this.containerRightPadding;i=t+this.containerTopPadding+this.containerBottomPadding;this.$outerContainer.animate({width:u,height:i},this.options.resizeDuration,"swing");setTimeout(function(){r.$lightbox.find(".lb-dataContainer").width(u);r.$lightbox.find(".lb-prevLink").height(i);r.$lightbox.find(".lb-nextLink").height(i);r.showImage()},this.options.resizeDuration)},t.prototype.showImage=function(){this.$lightbox.find(".lb-loader").hide();this.$lightbox.find(".lb-image").fadeIn("slow");this.updateNav();this.updateDetails();this.preloadNeighboringImages();this.enableKeyboardNav()},t.prototype.updateNav=function(){this.$lightbox.find(".lb-nav").show();this.album.length>1&&(this.options.wrapAround?this.$lightbox.find(".lb-prev, .lb-next").show():(this.currentImageIndex>0&&this.$lightbox.find(".lb-prev").show(),this.currentImageIndex<this.album.length-1&&this.$lightbox.find(".lb-next").show()))},t.prototype.updateDetails=function(){var n=this;typeof this.album[this.currentImageIndex].title!="undefined"&&this.album[this.currentImageIndex].title!==""&&this.$lightbox.find(".lb-caption").html(this.album[this.currentImageIndex].title).fadeIn("fast");this.album.length>1&&this.options.showImageNumberLabel?this.$lightbox.find(".lb-number").text(this.options.albumLabel(this.currentImageIndex+1,this.album.length)).fadeIn("fast"):this.$lightbox.find(".lb-number").hide();this.$outerContainer.removeClass("animating");this.$lightbox.find(".lb-dataContainer").fadeIn(this.resizeDuration,function(){return n.sizeOverlay()})},t.prototype.preloadNeighboringImages=function(){var n,t;this.album.length>this.currentImageIndex+1&&(n=new Image,n.src=this.album[this.currentImageIndex+1].link);this.currentImageIndex>0&&(t=new Image,t.src=this.album[this.currentImageIndex-1].link)},t.prototype.enableKeyboardNav=function(){n(document).on("keyup.keyboard",n.proxy(this.keyboardAction,this))},t.prototype.disableKeyboardNav=function(){n(document).off(".keyboard")},t.prototype.keyboardAction=function(n){var r,u,f,i,t;r=27;u=37;f=39;t=n.keyCode;i=String.fromCharCode(t).toLowerCase();t===r||i.match(/x|o|c/)?this.end():i==="p"||t===u?this.currentImageIndex!==0&&this.changeImage(this.currentImageIndex-1):(i==="n"||t===f)&&this.currentImageIndex!==this.album.length-1&&this.changeImage(this.currentImageIndex+1)},t.prototype.end=function(){return this.disableKeyboardNav(),n(window).off("resize",this.sizeOverlay),this.$lightbox.fadeOut(this.options.fadeDuration),this.$overlay.fadeOut(this.options.fadeDuration),n("select, object, embed").css({visibility:"visible"})},t}();n(function(){var n;return n=new i,new t(n)})}.call(this),function(n,t){var i=function(n,i){this.elem=n;this.$elem=t(n);this.options=i;this.metadata={url:this.$elem.data("plugin-options-url"),page:this.$elem.data("plugin-options-page")}};i.prototype={defaults:{page:1,url:""},init:function(){var n,i;return this.config=t.extend({},this.defaults,this.options,this.metadata),this.loadPage(),n=this,t(this.$elem).find(".more").click(function(){n.config.page++;n.loadPage()}),i=t(this.$elem).find("ul.filters-list li a.filter"),i.click(function(){i.removeClass("active-filter");t(this).addClass("active-filter");n.config.page=1;t(n.$elem).find(".loadmore-content").html("");t(n.$elem).find(".more").show();n.loadPage()}),this},clenView:function(){var n=this;t(n.$elem).html("")},loadPage:function(){var n=this,i=t(this.$elem).find("ul.filters-list li a.active-filter"),r="&"+t(i).data("filter-name")+"="+t(i).data("filter-value"),u=this.config.url+"&pPage="+n.config.page+r;t(n.$elem).find(".loadmore-content").append('<div class="loading"><\/div>');t.get(u,function(i){if(i.length>0)if(n.config.page<=1)t(n.$elem).find(".loadmore-content").append(i),t(n.$elem).find(".loadmore-content").gridalicious({selector:".artwork",gutter:10});else{var r=t(i).toArray();t(n.$elem).find(".loadmore-content").gridalicious("append",r)}else t(n.$elem).find(".more").hide()})}};i.defaults=i.prototype.defaults;t.fn.MuseumsLoadMore=function(n){return this.each(function(){new i(this,n).init()})};n.MuseumsLoadMore=i}(window,jQuery),function(){function e(n){return function(t){this[n]=t}}function r(n){return function(){return this[n]}}function n(t,r,u){this.extend(n,google.maps.OverlayView);this.c=t;this.a=[];this.f=[];this.ca=[53,56,66,78,90];this.j=[];this.A=!1;u=u||{};this.g=u.gridSize||60;this.l=u.minimumClusterSize||2;this.J=u.maxZoom||i;this.j=u.styles||[];this.X=u.imagePath||this.Q;this.W=u.imageExtension||this.P;this.O=!0;u.zoomOnClick!=void 0&&(this.O=u.zoomOnClick);this.r=!1;u.averageCenter!=void 0&&(this.r=u.averageCenter);y(this);this.setMap(t);this.K=this.c.getZoom();var f=this;google.maps.event.addListener(this.c,"zoom_changed",function(){var n=f.c.getZoom();f.K!=n&&(f.K=n,f.m())});google.maps.event.addListener(this.c,"idle",function(){f.i()});r&&r.length&&this.C(r,!1)}function y(n){if(!n.j.length)for(var t=0,i;i=n.ca[t];t++)n.j.push({url:n.X+(t+1)+"."+n.W,height:i,width:i})}function s(n,t){t.s=!1;t.draggable&&google.maps.event.addListener(t,"dragend",function(){t.s=!1;n.L()});n.a.push(t)}function h(n,t){var r=-1,u,f;if(n.a.indexOf)r=n.a.indexOf(t);else for(u=0;f=n.a[u];u++)if(f==t){r=u;break}return r==-1?!1:(t.setMap(i),n.a.splice(r,1),!0)}function c(n){var c,s,r,t,e;if(n.A)for(c=n.v(new google.maps.LatLngBounds(n.c.getBounds().getSouthWest(),n.c.getBounds().getNorthEast())),s=0;r=n.a[s];s++)if(!r.s&&c.contains(r.getPosition())){for(var h=n,l=4e4,o=i,a=0,u=void 0;u=h.f[a];a++)if(t=u.getCenter(),t){if(e=r.getPosition(),t&&e)var v=(e.lat()-t.lat())*Math.PI/180,y=(e.lng()-t.lng())*Math.PI/180,t=Math.sin(v/2)*Math.sin(v/2)+Math.cos(t.lat()*Math.PI/180)*Math.cos(e.lat()*Math.PI/180)*Math.sin(y/2)*Math.sin(y/2),t=12742*Math.atan2(Math.sqrt(t),Math.sqrt(1-t));else t=0;t<l&&(l=t,o=u)}o&&o.F.contains(r.getPosition())?o.q(r):(u=new f(h),u.q(r),h.f.push(u))}}function f(n){this.k=n;this.c=n.getMap();this.g=n.w();this.l=n.l;this.r=n.r;this.d=i;this.a=[];this.F=i;this.n=new u(this,n.z(),n.w())}function l(n){n.F=n.k.v(new google.maps.LatLngBounds(n.d,n.d))}function u(n,t,r){n.k.extend(u,google.maps.OverlayView);this.j=t;this.fa=r||0;this.u=n;this.d=i;this.c=n.getMap();this.B=this.b=i;this.t=!1;this.setMap(this.c)}function o(n,t){var i=n.getProjection().fromLatLngToDivPixel(t);return i.x-=parseInt(n.p/2,10),i.y-=parseInt(n.h/2,10),i}function a(n){n.b&&(n.b.style.display="none");n.t=!1}function v(n,t){var i=[];return i.push("background-image:url("+n.da+");"),i.push("background-position:"+(n.D?n.D:"0 0")+";"),typeof n.e=="object"?(typeof n.e[0]=="number"&&n.e[0]>0&&n.e[0]<n.h?i.push("height:"+(n.h-n.e[0])+"px; padding-top:"+n.e[0]+"px;"):i.push("height:"+n.h+"px; line-height:"+n.h+"px;"),typeof n.e[1]=="number"&&n.e[1]>0&&n.e[1]<n.p?i.push("width:"+(n.p-n.e[1])+"px; padding-left:"+n.e[1]+"px;"):i.push("width:"+n.p+"px; text-align:center;")):i.push("height:"+n.h+"px; line-height:"+n.h+"px; width:"+n.p+"px; text-align:center;"),i.push("cursor:pointer; top:"+t.y+"px; left:"+t.x+"px; color:"+(n.M?n.M:"black")+"; position:absolute; font-size:"+(n.N?n.N:11)+"px; font-family:Arial,sans-serif; font-weight:bold"),i.join("")}var i=null,t;t=n.prototype;t.Q="http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/images/m";t.P="png";t.extend=function(n,t){return function(n){for(var t in n.prototype)this.prototype[t]=n.prototype[t];return this}.apply(n,[t])};t.onAdd=function(){this.A||(this.A=!0,c(this))};t.draw=function(){};t.S=function(){for(var r=this.o(),n=new google.maps.LatLngBounds,t=0,i;i=r[t];t++)n.extend(i.getPosition());this.c.fitBounds(n)};t.z=r("j");t.o=r("a");t.V=function(){return this.a.length};t.ba=e("J");t.I=r("J");t.G=function(n,t){for(var i=0,u=n.length,r=u;r!==0;)r=parseInt(r/10,10),i++;return i=Math.min(i,t),{text:u,index:i}};t.$=e("G");t.H=r("G");t.C=function(n,t){for(var i=0,r;r=n[i];i++)s(this,r);t||this.i()};t.q=function(n,t){s(this,n);t||this.i()};t.Y=function(n,t){var i=h(this,n);return!t&&i?(this.m(),this.i(),!0):!1};t.Z=function(n,t){for(var r=!1,u=0,i;i=n[u];u++)i=h(this,i),r=r||i;if(!t&&r)return this.m(),this.i(),!0};t.U=function(){return this.f.length};t.getMap=r("c");t.setMap=e("c");t.w=r("g");t.aa=e("g");t.v=function(n){var i=this.getProjection(),t=new google.maps.LatLng(n.getNorthEast().lat(),n.getNorthEast().lng()),r=new google.maps.LatLng(n.getSouthWest().lat(),n.getSouthWest().lng()),t=i.fromLatLngToDivPixel(t);return t.x+=this.g,t.y-=this.g,r=i.fromLatLngToDivPixel(r),r.x-=this.g,r.y+=this.g,t=i.fromDivPixelToLatLng(t),i=i.fromDivPixelToLatLng(r),n.extend(t),n.extend(i),n};t.R=function(){this.m(!0);this.a=[]};t.m=function(n){for(var t=0,r;r=this.f[t];t++)r.remove();for(t=0;r=this.a[t];t++)r.s=!1,n&&r.setMap(i);this.f=[]};t.L=function(){var n=this.f.slice();this.f.length=0;this.m();this.i();window.setTimeout(function(){for(var t=0,i;i=n[t];t++)i.remove()},0)};t.i=function(){c(this)};t=f.prototype;t.q=function(n){var t,r;n:if(this.a.indexOf)t=this.a.indexOf(n)!=-1;else{for(t=0;r=this.a[t];t++)if(r==n){t=!0;break n}t=!1}if(t)return!1;if(this.d?this.r&&(r=this.a.length+1,t=(this.d.lat()*(r-1)+n.getPosition().lat())/r,r=(this.d.lng()*(r-1)+n.getPosition().lng())/r,this.d=new google.maps.LatLng(t,r),l(this)):(this.d=n.getPosition(),l(this)),n.s=!0,this.a.push(n),t=this.a.length,t<this.l&&n.getMap()!=this.c&&n.setMap(this.c),t==this.l)for(r=0;r<t;r++)this.a[r].setMap(i);if(t>=this.l&&n.setMap(i),n=this.c.getZoom(),(t=this.k.I())&&n>t)for(n=0;t=this.a[n];n++)t.setMap(this.c);else this.a.length<this.l?a(this.n):(t=this.k.H()(this.a,this.k.z().length),this.n.setCenter(this.d),n=this.n,n.B=t,n.ga=t.text,n.ea=t.index,n.b&&(n.b.innerHTML=t.text),t=Math.max(0,n.B.index-1),t=Math.min(n.j.length-1,t),t=n.j[t],n.da=t.url,n.h=t.height,n.p=t.width,n.M=t.textColor,n.e=t.anchor,n.N=t.textSize,n.D=t.backgroundPosition,this.n.show());return!0};t.getBounds=function(){for(var n=new google.maps.LatLngBounds(this.d,this.d),r=this.o(),t=0,i;i=r[t];t++)n.extend(i.getPosition());return n};t.remove=function(){this.n.remove();this.a.length=0;delete this.a};t.T=function(){return this.a.length};t.o=r("a");t.getCenter=r("d");t.getMap=r("c");t=u.prototype;t.onAdd=function(){this.b=document.createElement("DIV");this.t&&(this.b.style.cssText=v(this,o(this,this.d)),this.b.innerHTML=this.B.text);this.getPanes().overlayMouseTarget.appendChild(this.b);var n=this;google.maps.event.addDomListener(this.b,"click",function(){var t=n.u.k;google.maps.event.trigger(t,"clusterclick",n.u);t.O&&n.c.fitBounds(n.u.getBounds())})};t.draw=function(){if(this.t){var n=o(this,this.d);this.b.style.top=n.y+"px";this.b.style.left=n.x+"px"}};t.show=function(){this.b&&(this.b.style.cssText=v(this,o(this,this.d)),this.b.style.display="");this.t=!0};t.remove=function(){this.setMap(i)};t.onRemove=function(){this.b&&this.b.parentNode&&(a(this),this.b.parentNode.removeChild(this.b),this.b=i)};t.setCenter=e("d");window.MarkerClusterer=n;n.prototype.addMarker=n.prototype.q;n.prototype.addMarkers=n.prototype.C;n.prototype.clearMarkers=n.prototype.R;n.prototype.fitMapToMarkers=n.prototype.S;n.prototype.getCalculator=n.prototype.H;n.prototype.getGridSize=n.prototype.w;n.prototype.getExtendedBounds=n.prototype.v;n.prototype.getMap=n.prototype.getMap;n.prototype.getMarkers=n.prototype.o;n.prototype.getMaxZoom=n.prototype.I;n.prototype.getStyles=n.prototype.z;n.prototype.getTotalClusters=n.prototype.U;n.prototype.getTotalMarkers=n.prototype.V;n.prototype.redraw=n.prototype.i;n.prototype.removeMarker=n.prototype.Y;n.prototype.removeMarkers=n.prototype.Z;n.prototype.resetViewport=n.prototype.m;n.prototype.repaint=n.prototype.L;n.prototype.setCalculator=n.prototype.$;n.prototype.setGridSize=n.prototype.aa;n.prototype.setMaxZoom=n.prototype.ba;n.prototype.onAdd=n.prototype.onAdd;n.prototype.draw=n.prototype.draw;f.prototype.getCenter=f.prototype.getCenter;f.prototype.getSize=f.prototype.T;f.prototype.getMarkers=f.prototype.o;u.prototype.onAdd=u.prototype.onAdd;u.prototype.draw=u.prototype.draw;u.prototype.onRemove=u.prototype.onRemove}();museumseu={onDocumentReady:function(){museumseu.initMainMenu();museumseu.initMainCollages();museumseu.loadPartialContents()},initMainCollages:function(){$(".banner1").unslider({speed:900,delay:1e4,fluid:!0});$(".banner2").unslider({speed:800,delay:8e3,fluid:!0});$(".banner3").unslider({speed:1e3,delay:9e3,fluid:!0})},initMainMenu:function(){$(".navbar li").removeClass("active");var n=window.location.pathname;$(".navbar li").each(function(){n.match("^"+$(this).find("a").attr("href"))&&$(this).addClass("active")});$(".navbar li.active").length>1&&$(".navbar li:first").removeClass("active")},loadPartialContents:function(){$(".partial-content").each(function(){var n=$(this).data("url");n&&n.length>0&&(n.indexOf("MainCollage")!=-1||$(this).load(n))})}};typeof Object.create!="function"&&(Object.create=function(n){function t(){}return t.prototype=n,new t}),function(n,t,i){var r={init:function(t,i){var r=this;r.$elem=n(i);r.options=n.extend({},n.fn.owlCarousel.options,r.$elem.data(),t);r.userOptions=t;r.loadContent()},loadContent:function(){function r(n){var i,r="";if(typeof t.options.jsonSuccess=="function")t.options.jsonSuccess.apply(this,[n]);else{for(i in n.owl)n.owl.hasOwnProperty(i)&&(r+=n.owl[i].item);t.$elem.html(r)}t.logIn()}var t=this,i;typeof t.options.beforeInit=="function"&&t.options.beforeInit.apply(this,[t.$elem]);typeof t.options.jsonPath=="string"?(i=t.options.jsonPath,n.getJSON(i,r)):t.logIn()},logIn:function(){var n=this;n.$elem.data("owl-originalStyles",n.$elem.attr("style"));n.$elem.data("owl-originalClasses",n.$elem.attr("class"));n.$elem.css({opacity:0});n.orignalItems=n.options.items;n.checkBrowser();n.wrapperWidth=0;n.checkVisible=null;n.setVars()},setVars:function(){var n=this;if(n.$elem.children().length===0)return!1;n.baseClass();n.eventTypes();n.$userItems=n.$elem.children();n.itemsAmount=n.$userItems.length;n.wrapItems();n.$owlItems=n.$elem.find(".owl-item");n.$owlWrapper=n.$elem.find(".owl-wrapper");n.playDirection="next";n.prevItem=0;n.prevArr=[0];n.currentItem=0;n.customEvents();n.onStartup()},onStartup:function(){var n=this;n.updateItems();n.calculateAll();n.buildControls();n.updateControls();n.response();n.moveEvents();n.stopOnHover();n.owlStatus();n.options.transitionStyle!==!1&&n.transitionTypes(n.options.transitionStyle);n.options.autoPlay===!0&&(n.options.autoPlay=5e3);n.play();n.$elem.find(".owl-wrapper").css("display","block");n.$elem.is(":visible")?n.$elem.css("opacity",1):n.watchVisibility();n.onstartup=!1;n.eachMoveUpdate();typeof n.options.afterInit=="function"&&n.options.afterInit.apply(this,[n.$elem])},eachMoveUpdate:function(){var n=this;n.options.lazyLoad===!0&&n.lazyLoad();n.options.autoHeight===!0&&n.autoHeight();n.onVisibleItems();typeof n.options.afterAction=="function"&&n.options.afterAction.apply(this,[n.$elem])},updateVars:function(){var n=this;typeof n.options.beforeUpdate=="function"&&n.options.beforeUpdate.apply(this,[n.$elem]);n.watchVisibility();n.updateItems();n.calculateAll();n.updatePosition();n.updateControls();n.eachMoveUpdate();typeof n.options.afterUpdate=="function"&&n.options.afterUpdate.apply(this,[n.$elem])},reload:function(){var n=this;t.setTimeout(function(){n.updateVars()},0)},watchVisibility:function(){var n=this;if(n.$elem.is(":visible")===!1)n.$elem.css({opacity:0}),t.clearInterval(n.autoPlayInterval),t.clearInterval(n.checkVisible);else return!1;n.checkVisible=t.setInterval(function(){n.$elem.is(":visible")&&(n.reload(),n.$elem.animate({opacity:1},200),t.clearInterval(n.checkVisible))},500)},wrapItems:function(){var n=this;n.$userItems.wrapAll('<div class="owl-wrapper">').wrap('<div class="owl-item"><\/div>');n.$elem.find(".owl-wrapper").wrap('<div class="owl-wrapper-outer">');n.wrapperOuter=n.$elem.find(".owl-wrapper-outer");n.$elem.css("display","block")},baseClass:function(){var n=this,t=n.$elem.hasClass(n.options.baseClass),i=n.$elem.hasClass(n.options.theme);t||n.$elem.addClass(n.options.baseClass);i||n.$elem.addClass(n.options.theme)},updateItems:function(){var t=this,i,r;if(t.options.responsive===!1)return!1;if(t.options.singleItem===!0)return t.options.items=t.orignalItems=1,t.options.itemsCustom=!1,t.options.itemsDesktop=!1,t.options.itemsDesktopSmall=!1,t.options.itemsTablet=!1,t.options.itemsTabletSmall=!1,t.options.itemsMobile=!1,!1;if(i=n(t.options.responsiveBaseWidth).width(),i>(t.options.itemsDesktop[0]||t.orignalItems)&&(t.options.items=t.orignalItems),t.options.itemsCustom!==!1)for(t.options.itemsCustom.sort(function(n,t){return n[0]-t[0]}),r=0;r<t.options.itemsCustom.length;r+=1)t.options.itemsCustom[r][0]<=i&&(t.options.items=t.options.itemsCustom[r][1]);else i<=t.options.itemsDesktop[0]&&t.options.itemsDesktop!==!1&&(t.options.items=t.options.itemsDesktop[1]),i<=t.options.itemsDesktopSmall[0]&&t.options.itemsDesktopSmall!==!1&&(t.options.items=t.options.itemsDesktopSmall[1]),i<=t.options.itemsTablet[0]&&t.options.itemsTablet!==!1&&(t.options.items=t.options.itemsTablet[1]),i<=t.options.itemsTabletSmall[0]&&t.options.itemsTabletSmall!==!1&&(t.options.items=t.options.itemsTabletSmall[1]),i<=t.options.itemsMobile[0]&&t.options.itemsMobile!==!1&&(t.options.items=t.options.itemsMobile[1]);t.options.items>t.itemsAmount&&t.options.itemsScaleUp===!0&&(t.options.items=t.itemsAmount)},response:function(){var i=this,u,r;if(i.options.responsive!==!0)return!1;r=n(t).width();i.resizer=function(){n(t).width()!==r&&(i.options.autoPlay!==!1&&t.clearInterval(i.autoPlayInterval),t.clearTimeout(u),u=t.setTimeout(function(){r=n(t).width();i.updateVars()},i.options.responsiveRefreshRate))};n(t).resize(i.resizer)},updatePosition:function(){var n=this;n.jumpTo(n.currentItem);n.options.autoPlay!==!1&&n.checkAp()},appendItemsSizes:function(){var t=this,i=0,r=t.itemsAmount-t.options.items;t.$owlItems.each(function(u){var f=n(this);f.css({width:t.itemWidth}).data("owl-item",Number(u));(u%t.options.items==0||u===r)&&(u>r||(i+=1));f.data("owl-roundPages",i)})},appendWrapperSizes:function(){var n=this,t=n.$owlItems.length*n.itemWidth;n.$owlWrapper.css({width:t*2,left:0});n.appendItemsSizes()},calculateAll:function(){var n=this;n.calculateWidth();n.appendWrapperSizes();n.loops();n.max()},calculateWidth:function(){var n=this;n.itemWidth=Math.round(n.$elem.width()/n.options.items)},max:function(){var n=this,t=(n.itemsAmount*n.itemWidth-n.options.items*n.itemWidth)*-1;return n.options.items>n.itemsAmount?(n.maximumItem=0,t=0,n.maximumPixels=0):(n.maximumItem=n.itemsAmount-n.options.items,n.maximumPixels=t),t},min:function(){return 0},loops:function(){var t=this,r=0,f=0,i,e,u;for(t.positionsInArray=[0],t.pagesInArray=[],i=0;i<t.itemsAmount;i+=1)f+=t.itemWidth,t.positionsInArray.push(-f),t.options.scrollPerPage===!0&&(e=n(t.$owlItems[i]),u=e.data("owl-roundPages"),u!==r&&(t.pagesInArray[r]=t.positionsInArray[i],r=u))},buildControls:function(){var t=this;(t.options.navigation===!0||t.options.pagination===!0)&&(t.owlControls=n('<div class="owl-controls"/>').toggleClass("clickable",!t.browser.isTouch).appendTo(t.$elem));t.options.pagination===!0&&t.buildPagination();t.options.navigation===!0&&t.buildButtons()},buildButtons:function(){var t=this,i=n('<div class="owl-buttons"/>');t.owlControls.append(i);t.buttonPrev=n("<div/>",{"class":"owl-prev",html:t.options.navigationText[0]||""});t.buttonNext=n("<div/>",{"class":"owl-next",html:t.options.navigationText[1]||""});i.append(t.buttonPrev).append(t.buttonNext);i.on("touchstart.owlControls mousedown.owlControls",'div[class^="owl"]',function(n){n.preventDefault()});i.on("touchend.owlControls mouseup.owlControls",'div[class^="owl"]',function(i){i.preventDefault();n(this).hasClass("owl-next")?t.next():t.prev()})},buildPagination:function(){var t=this;t.paginationWrapper=n('<div class="owl-pagination"/>');t.owlControls.append(t.paginationWrapper);t.paginationWrapper.on("touchend.owlControls mouseup.owlControls",".owl-page",function(i){i.preventDefault();Number(n(this).data("owl-page"))!==t.currentItem&&t.goTo(Number(n(this).data("owl-page")),!0)})},updatePagination:function(){var t=this,u,f,e,i,r,o;if(t.options.pagination===!1)return!1;for(t.paginationWrapper.html(""),u=0,f=t.itemsAmount-t.itemsAmount%t.options.items,i=0;i<t.itemsAmount;i+=1)i%t.options.items==0&&(u+=1,f===i&&(e=t.itemsAmount-t.options.items),r=n("<div/>",{"class":"owl-page"}),o=n("<span><\/span>",{text:t.options.paginationNumbers===!0?u:"","class":t.options.paginationNumbers===!0?"owl-numbers":""}),r.append(o),r.data("owl-page",f===i?e:i),r.data("owl-roundPages",u),t.paginationWrapper.append(r));t.checkPagination()},checkPagination:function(){var t=this;if(t.options.pagination===!1)return!1;t.paginationWrapper.find(".owl-page").each(function(){n(this).data("owl-roundPages")===n(t.$owlItems[t.currentItem]).data("owl-roundPages")&&(t.paginationWrapper.find(".owl-page").removeClass("active"),n(this).addClass("active"))})},checkNavigation:function(){var n=this;if(n.options.navigation===!1)return!1;n.options.rewindNav===!1&&(n.currentItem===0&&n.maximumItem===0?(n.buttonPrev.addClass("disabled"),n.buttonNext.addClass("disabled")):n.currentItem===0&&n.maximumItem!==0?(n.buttonPrev.addClass("disabled"),n.buttonNext.removeClass("disabled")):n.currentItem===n.maximumItem?(n.buttonPrev.removeClass("disabled"),n.buttonNext.addClass("disabled")):n.currentItem!==0&&n.currentItem!==n.maximumItem&&(n.buttonPrev.removeClass("disabled"),n.buttonNext.removeClass("disabled")))},updateControls:function(){var n=this;n.updatePagination();n.checkNavigation();n.owlControls&&(n.options.items>=n.itemsAmount?n.owlControls.hide():n.owlControls.show())},destroyControls:function(){var n=this;n.owlControls&&n.owlControls.remove()},next:function(n){var t=this;if(t.isTransition)return!1;if(t.currentItem+=t.options.scrollPerPage===!0?t.options.items:1,t.currentItem>t.maximumItem+(t.options.scrollPerPage===!0?t.options.items-1:0))if(t.options.rewindNav===!0)t.currentItem=0,n="rewind";else return t.currentItem=t.maximumItem,!1;t.goTo(t.currentItem,n)},prev:function(n){var t=this;if(t.isTransition)return!1;if(t.options.scrollPerPage===!0&&t.currentItem>0&&t.currentItem<t.options.items?t.currentItem=0:t.currentItem-=t.options.scrollPerPage===!0?t.options.items:1,t.currentItem<0)if(t.options.rewindNav===!0)t.currentItem=t.maximumItem,n="rewind";else return t.currentItem=0,!1;t.goTo(t.currentItem,n)},goTo:function(n,i,r){var u=this,f;if(u.isTransition)return!1;if(typeof u.options.beforeMove=="function"&&u.options.beforeMove.apply(this,[u.$elem]),n>=u.maximumItem?n=u.maximumItem:n<=0&&(n=0),u.currentItem=u.owl.currentItem=n,u.options.transitionStyle!==!1&&r!=="drag"&&u.options.items===1&&u.browser.support3d===!0)return u.swapSpeed(0),u.browser.support3d===!0?u.transition3d(u.positionsInArray[n]):u.css2slide(u.positionsInArray[n],1),u.afterGo(),u.singleItemTransition(),!1;f=u.positionsInArray[n];u.browser.support3d===!0?(u.isCss3Finish=!1,i===!0?(u.swapSpeed("paginationSpeed"),t.setTimeout(function(){u.isCss3Finish=!0},u.options.paginationSpeed)):i==="rewind"?(u.swapSpeed(u.options.rewindSpeed),t.setTimeout(function(){u.isCss3Finish=!0},u.options.rewindSpeed)):(u.swapSpeed("slideSpeed"),t.setTimeout(function(){u.isCss3Finish=!0},u.options.slideSpeed)),u.transition3d(f)):i===!0?u.css2slide(f,u.options.paginationSpeed):i==="rewind"?u.css2slide(f,u.options.rewindSpeed):u.css2slide(f,u.options.slideSpeed);u.afterGo()},jumpTo:function(n){var t=this;typeof t.options.beforeMove=="function"&&t.options.beforeMove.apply(this,[t.$elem]);n>=t.maximumItem||n===-1?n=t.maximumItem:n<=0&&(n=0);t.swapSpeed(0);t.browser.support3d===!0?t.transition3d(t.positionsInArray[n]):t.css2slide(t.positionsInArray[n],1);t.currentItem=t.owl.currentItem=n;t.afterGo()},afterGo:function(){var n=this;n.prevArr.push(n.currentItem);n.prevItem=n.owl.prevItem=n.prevArr[n.prevArr.length-2];n.prevArr.shift(0);n.prevItem!==n.currentItem&&(n.checkPagination(),n.checkNavigation(),n.eachMoveUpdate(),n.options.autoPlay!==!1&&n.checkAp());typeof n.options.afterMove=="function"&&n.prevItem!==n.currentItem&&n.options.afterMove.apply(this,[n.$elem])},stop:function(){var n=this;n.apStatus="stop";t.clearInterval(n.autoPlayInterval)},checkAp:function(){var n=this;n.apStatus!=="stop"&&n.play()},play:function(){var n=this;if(n.apStatus="play",n.options.autoPlay===!1)return!1;t.clearInterval(n.autoPlayInterval);n.autoPlayInterval=t.setInterval(function(){n.next(!0)},n.options.autoPlay)},swapSpeed:function(n){var t=this;n==="slideSpeed"?t.$owlWrapper.css(t.addCssSpeed(t.options.slideSpeed)):n==="paginationSpeed"?t.$owlWrapper.css(t.addCssSpeed(t.options.paginationSpeed)):typeof n!="string"&&t.$owlWrapper.css(t.addCssSpeed(n))},addCssSpeed:function(n){return{"-webkit-transition":"all "+n+"ms ease","-moz-transition":"all "+n+"ms ease","-o-transition":"all "+n+"ms ease",transition:"all "+n+"ms ease"}},removeTransition:function(){return{"-webkit-transition":"","-moz-transition":"","-o-transition":"",transition:""}},doTranslate:function(n){return{"-webkit-transform":"translate3d("+n+"px, 0px, 0px)","-moz-transform":"translate3d("+n+"px, 0px, 0px)","-o-transform":"translate3d("+n+"px, 0px, 0px)","-ms-transform":"translate3d("+n+"px, 0px, 0px)",transform:"translate3d("+n+"px, 0px,0px)"}},transition3d:function(n){var t=this;t.$owlWrapper.css(t.doTranslate(n))},css2move:function(n){var t=this;t.$owlWrapper.css({left:n})},css2slide:function(n,t){var i=this;i.isCssFinish=!1;i.$owlWrapper.stop(!0,!0).animate({left:n},{duration:t||i.options.slideSpeed,complete:function(){i.isCssFinish=!0}})},checkBrowser:function(){var s=this,n="translate3d(0px, 0px, 0px)",u=i.createElement("div"),f,r,e,o;u.style.cssText="  -moz-transform:"+n+"; -ms-transform:"+n+"; -o-transform:"+n+"; -webkit-transform:"+n+"; transform:"+n;f=/translate3d\(0px, 0px, 0px\)/g;r=u.style.cssText.match(f);e=r!==null&&r.length===1;o="ontouchstart"in t||t.navigator.msMaxTouchPoints;s.browser={support3d:e,isTouch:o}},moveEvents:function(){var n=this;(n.options.mouseDrag!==!1||n.options.touchDrag!==!1)&&(n.gestures(),n.disabledEvents())},eventTypes:function(){var n=this,t=["s","e","x"];n.ev_types={};n.options.mouseDrag===!0&&n.options.touchDrag===!0?t=["touchstart.owl mousedown.owl","touchmove.owl mousemove.owl","touchend.owl touchcancel.owl mouseup.owl"]:n.options.mouseDrag===!1&&n.options.touchDrag===!0?t=["touchstart.owl","touchmove.owl","touchend.owl touchcancel.owl"]:n.options.mouseDrag===!0&&n.options.touchDrag===!1&&(t=["mousedown.owl","mousemove.owl","mouseup.owl"]);n.ev_types.start=t[0];n.ev_types.move=t[1];n.ev_types.end=t[2]},disabledEvents:function(){var t=this;t.$elem.on("dragstart.owl",function(n){n.preventDefault()});t.$elem.on("mousedown.disableTextSelect",function(t){return n(t.target).is("input, textarea, select, option")})},gestures:function(){function f(n){if(n.touches!==undefined)return{x:n.touches[0].pageX,y:n.touches[0].pageY};if(n.touches===undefined){if(n.pageX!==undefined)return{x:n.pageX,y:n.pageY};if(n.pageX===undefined)return{x:n.clientX,y:n.clientY}}}function e(t){if(t==="on"){n(i).on(r.ev_types.move,s);n(i).on(r.ev_types.end,h)}else t==="off"&&(n(i).off(r.ev_types.move),n(i).off(r.ev_types.end))}function o(i){var o=i.originalEvent||i||t.event,s;if(o.which===3)return!1;if(!(r.itemsAmount<=r.options.items)){if(r.isCssFinish===!1&&!r.options.dragBeforeAnimFinish||r.isCss3Finish===!1&&!r.options.dragBeforeAnimFinish)return!1;r.options.autoPlay!==!1&&t.clearInterval(r.autoPlayInterval);r.browser.isTouch===!0||r.$owlWrapper.hasClass("grabbing")||r.$owlWrapper.addClass("grabbing");r.newPosX=0;r.newRelativeX=0;n(this).css(r.removeTransition());s=n(this).position();u.relativePos=s.left;u.offsetX=f(o).x-s.left;u.offsetY=f(o).y-s.top;e("on");u.sliding=!1;u.targetElement=o.target||o.srcElement}}function s(e){var o=e.originalEvent||e||t.event,s,h;r.newPosX=f(o).x-u.offsetX;r.newPosY=f(o).y-u.offsetY;r.newRelativeX=r.newPosX-u.relativePos;typeof r.options.startDragging=="function"&&u.dragging!==!0&&r.newRelativeX!==0&&(u.dragging=!0,r.options.startDragging.apply(r,[r.$elem]));(r.newRelativeX>8||r.newRelativeX<-8)&&r.browser.isTouch===!0&&(o.preventDefault!==undefined?o.preventDefault():o.returnValue=!1,u.sliding=!0);(r.newPosY>10||r.newPosY<-10)&&u.sliding===!1&&n(i).off("touchmove.owl");s=function(){return r.newRelativeX/5};h=function(){return r.maximumPixels+r.newRelativeX/5};r.newPosX=Math.max(Math.min(r.newPosX,s()),h());r.browser.support3d===!0?r.transition3d(r.newPosX):r.css2move(r.newPosX)}function h(i){var f=i.originalEvent||i||t.event,s,o,h;if(f.target=f.target||f.srcElement,u.dragging=!1,r.browser.isTouch!==!0&&r.$owlWrapper.removeClass("grabbing"),r.dragDirection=r.newRelativeX<0?r.owl.dragDirection="left":r.owl.dragDirection="right",r.newRelativeX!==0&&(s=r.getNewPosition(),r.goTo(s,!1,"drag"),u.targetElement===f.target&&r.browser.isTouch!==!0)){n(f.target).on("click.disable",function(t){t.stopImmediatePropagation();t.stopPropagation();t.preventDefault();n(t.target).off("click.disable")});o=n._data(f.target,"events").click;h=o.pop();o.splice(0,0,h)}e("off")}var r=this,u={offsetX:0,offsetY:0,baseElWidth:0,relativePos:0,position:null,minSwipe:null,maxSwipe:null,sliding:null,dargging:null,targetElement:null};r.isCssFinish=!0;r.$elem.on(r.ev_types.start,".owl-wrapper",o)},getNewPosition:function(){var n=this,t=n.closestItem();return t>n.maximumItem?(n.currentItem=n.maximumItem,t=n.maximumItem):n.newPosX>=0&&(t=0,n.currentItem=0),t},closestItem:function(){var t=this,i=t.options.scrollPerPage===!0?t.pagesInArray:t.positionsInArray,u=t.newPosX,r=null;return n.each(i,function(f,e){u-t.itemWidth/20>i[f+1]&&u-t.itemWidth/20<e&&t.moveDirection()==="left"?(r=e,t.currentItem=t.options.scrollPerPage===!0?n.inArray(r,t.positionsInArray):f):u+t.itemWidth/20<e&&u+t.itemWidth/20>(i[f+1]||i[f]-t.itemWidth)&&t.moveDirection()==="right"&&(t.options.scrollPerPage===!0?(r=i[f+1]||i[i.length-1],t.currentItem=n.inArray(r,t.positionsInArray)):(r=i[f+1],t.currentItem=f+1))}),t.currentItem},moveDirection:function(){var n=this,t;return n.newRelativeX<0?(t="right",n.playDirection="next"):(t="left",n.playDirection="prev"),t},customEvents:function(){var n=this;n.$elem.on("owl.next",function(){n.next()});n.$elem.on("owl.prev",function(){n.prev()});n.$elem.on("owl.play",function(t,i){n.options.autoPlay=i;n.play();n.hoverStatus="play"});n.$elem.on("owl.stop",function(){n.stop();n.hoverStatus="stop"});n.$elem.on("owl.goTo",function(t,i){n.goTo(i)});n.$elem.on("owl.jumpTo",function(t,i){n.jumpTo(i)})},stopOnHover:function(){var n=this;if(n.options.stopOnHover===!0&&n.browser.isTouch!==!0&&n.options.autoPlay!==!1){n.$elem.on("mouseover",function(){n.stop()});n.$elem.on("mouseout",function(){n.hoverStatus!=="stop"&&n.play()})}},lazyLoad:function(){var t=this,u,i,f,r,e;if(t.options.lazyLoad===!1)return!1;for(u=0;u<t.itemsAmount;u+=1)if(i=n(t.$owlItems[u]),i.data("owl-loaded")!=="loaded"){if(f=i.data("owl-item"),r=i.find(".lazyOwl"),typeof r.data("src")!="string"){i.data("owl-loaded","loaded");continue}i.data("owl-loaded")===undefined&&(r.hide(),i.addClass("loading").data("owl-loaded","checked"));e=t.options.lazyFollow===!0?f>=t.currentItem:!0;e&&f<t.currentItem+t.options.items&&r.length&&t.lazyPreload(i,r)}},lazyPreload:function(n,i){function e(){n.data("owl-loaded","loaded").removeClass("loading");i.removeAttr("data-src");r.options.lazyEffect==="fade"?i.fadeIn(400):i.show();typeof r.options.afterLazyLoad=="function"&&r.options.afterLazyLoad.apply(this,[r.$elem])}function o(){u+=1;r.completeImg(i.get(0))||f===!0?e():u<=100?t.setTimeout(o,100):e()}var r=this,u=0,f;i.prop("tagName")==="DIV"?(i.css("background-image","url("+i.data("src")+")"),f=!0):i[0].src=i.data("src");o()},autoHeight:function(){function f(){var r=n(i.$owlItems[i.currentItem]).height();i.wrapperOuter.css("height",r+"px");i.wrapperOuter.hasClass("autoHeight")||t.setTimeout(function(){i.wrapperOuter.addClass("autoHeight")},0)}function e(){r+=1;i.completeImg(u.get(0))?f():r<=100?t.setTimeout(e,100):i.wrapperOuter.css("height","")}var i=this,u=n(i.$owlItems[i.currentItem]).find("img"),r;u.get(0)!==undefined?(r=0,e()):f()},completeImg:function(n){var t;return n.complete?(t=typeof n.naturalWidth,t!=="undefined"&&n.naturalWidth===0)?!1:!0:!1},onVisibleItems:function(){var t=this,i;for(t.options.addClassActive===!0&&t.$owlItems.removeClass("active"),t.visibleItems=[],i=t.currentItem;i<t.currentItem+t.options.items;i+=1)t.visibleItems.push(i),t.options.addClassActive===!0&&n(t.$owlItems[i]).addClass("active");t.owl.visibleItems=t.visibleItems},transitionTypes:function(n){var t=this;t.outClass="owl-"+n+"-out";t.inClass="owl-"+n+"-in"},singleItemTransition:function(){function s(n){return{position:"relative",left:n+"px"}}var n=this,f=n.outClass,e=n.inClass,i=n.$owlItems.eq(n.currentItem),r=n.$owlItems.eq(n.prevItem),o=Math.abs(n.positionsInArray[n.currentItem])+n.positionsInArray[n.prevItem],u=Math.abs(n.positionsInArray[n.currentItem])+n.itemWidth/2,t="webkitAnimationEnd oAnimationEnd MSAnimationEnd animationend";n.isTransition=!0;n.$owlWrapper.addClass("owl-origin").css({"-webkit-transform-origin":u+"px","-moz-perspective-origin":u+"px","perspective-origin":u+"px"});r.css(s(o,10)).addClass(f).on(t,function(){n.endPrev=!0;r.off(t);n.clearTransStyle(r,f)});i.addClass(e).on(t,function(){n.endCurrent=!0;i.off(t);n.clearTransStyle(i,e)})},clearTransStyle:function(n,t){var i=this;n.css({position:"",left:""}).removeClass(t);i.endPrev&&i.endCurrent&&(i.$owlWrapper.removeClass("owl-origin"),i.endPrev=!1,i.endCurrent=!1,i.isTransition=!1)},owlStatus:function(){var n=this;n.owl={userOptions:n.userOptions,baseElement:n.$elem,userItems:n.$userItems,owlItems:n.$owlItems,currentItem:n.currentItem,prevItem:n.prevItem,visibleItems:n.visibleItems,isTouch:n.browser.isTouch,browser:n.browser,dragDirection:n.dragDirection}},clearEvents:function(){var r=this;r.$elem.off(".owl owl mousedown.disableTextSelect");n(i).off(".owl owl");n(t).off("resize",r.resizer)},unWrap:function(){var n=this;n.$elem.children().length!==0&&(n.$owlWrapper.unwrap(),n.$userItems.unwrap().unwrap(),n.owlControls&&n.owlControls.remove());n.clearEvents();n.$elem.attr("style",n.$elem.data("owl-originalStyles")||"").attr("class",n.$elem.data("owl-originalClasses"))},destroy:function(){var n=this;n.stop();t.clearInterval(n.checkVisible);n.unWrap();n.$elem.removeData()},reinit:function(t){var i=this,r=n.extend({},i.userOptions,t);i.unWrap();i.init(r,i.$elem)},addItem:function(n,t){var i=this,r;if(!n)return!1;if(i.$elem.children().length===0)return i.$elem.append(n),i.setVars(),!1;i.unWrap();r=t===undefined||t===-1?-1:t;r>=i.$userItems.length||r===-1?i.$userItems.eq(-1).after(n):i.$userItems.eq(r).before(n);i.setVars()},removeItem:function(n){var t=this,i;if(t.$elem.children().length===0)return!1;i=n===undefined||n===-1?-1:n;t.unWrap();t.$userItems.eq(i).remove();t.setVars()}};n.fn.owlCarousel=function(t){return this.each(function(){if(n(this).data("owl-init")===!0)return!1;n(this).data("owl-init",!0);var i=Object.create(r);i.init(t,this);n.data(this,"owlCarousel",i)})};n.fn.owlCarousel.options={items:5,itemsCustom:!1,itemsDesktop:[1199,4],itemsDesktopSmall:[979,3],itemsTablet:[768,2],itemsTabletSmall:!1,itemsMobile:[479,1],singleItem:!1,itemsScaleUp:!1,slideSpeed:200,paginationSpeed:800,rewindSpeed:1e3,autoPlay:!1,stopOnHover:!1,navigation:!1,navigationText:["prev","next"],rewindNav:!0,scrollPerPage:!1,pagination:!0,paginationNumbers:!1,responsive:!0,responsiveRefreshRate:200,responsiveBaseWidth:t,baseClass:"owl-carousel",theme:"owl-theme",lazyLoad:!1,lazyFollow:!0,lazyEffect:"fade",autoHeight:!1,jsonPath:!1,jsonSuccess:!1,dragBeforeAnimFinish:!0,mouseDrag:!0,touchDrag:!0,addClassActive:!1,transitionStyle:!1,beforeUpdate:!1,afterUpdate:!1,beforeInit:!1,afterInit:!1,beforeMove:!1,afterMove:!1,afterAction:!1,startDragging:!1,afterLazyLoad:!1}}(jQuery,window,document),function e(n,t,i){function u(r,e){var s,h,o;if(!t[r]){if(!n[r]){if(s=typeof require=="function"&&require,!e&&s)return s(r,!0);if(f)return f(r,!0);h=new Error("Cannot find module '"+r+"'");throw h.code="MODULE_NOT_FOUND",h;}o=t[r]={exports:{}};n[r][0].call(o.exports,function(t){var i=n[r][1][t];return u(i?i:t)},o,o.exports,e,n,t,i)}return t[r].exports}for(var f=typeof require=="function"&&require,r=0;r<i.length;r++)u(i[r]);return u}({1:[function(n,t){"use strict";function r(n){n.fn.perfectScrollbar=function(t){return this.each(function(){var u,r;return typeof t=="object"||typeof t=="undefined"?(u=t,f.get(this)||i.initialize(this,u)):(r=t,r==="update"?i.update(this):r==="destroy"&&i.destroy(this)),n(this)})}}var i=n("../main"),f=n("../plugin/instances"),u;typeof define=="function"&&define.amd?define(["jquery"],r):(u=window.jQuery?window.jQuery:window.$,typeof u!="undefined"&&r(u));t.exports=r},{"../main":7,"../plugin/instances":18}],2:[function(n,t,i){"use strict";function r(n,t){var i=n.className.split(" ");i.indexOf(t)<0&&i.push(t);n.className=i.join(" ")}function u(n,t){var i=n.className.split(" "),r=i.indexOf(t);r>=0&&i.splice(r,1);n.className=i.join(" ")}i.add=function(n,t){n.classList?n.classList.add(t):r(n,t)};i.remove=function(n,t){n.classList?n.classList.remove(t):u(n,t)};i.list=function(n){return n.classList?Array.prototype.slice.apply(n.classList):n.className.split(" ")}},{}],3:[function(n,t){"use strict";function r(n,t){return window.getComputedStyle(n)[t]}function u(n,t,i){return typeof i=="number"&&(i=i.toString()+"px"),n.style[t]=i,n}function f(n,t){var r,i;for(r in t)i=t[r],typeof i=="number"&&(i=i.toString()+"px"),n.style[r]=i;return n}var i={};i.e=function(n,t){var i=document.createElement(n);return i.className=t,i};i.appendTo=function(n,t){return t.appendChild(n),n};i.css=function(n,t,i){return typeof t=="object"?f(n,t):typeof i=="undefined"?r(n,t):u(n,t,i)};i.matches=function(n,t){return typeof n.matches!="undefined"?n.matches(t):typeof n.matchesSelector!="undefined"?n.matchesSelector(t):typeof n.webkitMatchesSelector!="undefined"?n.webkitMatchesSelector(t):typeof n.mozMatchesSelector!="undefined"?n.mozMatchesSelector(t):typeof n.msMatchesSelector!="undefined"?n.msMatchesSelector(t):void 0};i.remove=function(n){typeof n.remove!="undefined"?n.remove():n.parentNode&&n.parentNode.removeChild(n)};i.queryChildren=function(n,t){return Array.prototype.filter.call(n.childNodes,function(n){return i.matches(n,t)})};t.exports=i},{}],4:[function(n,t){"use strict";var r=function(n){this.element=n;this.events={}},i;r.prototype.bind=function(n,t){typeof this.events[n]=="undefined"&&(this.events[n]=[]);this.events[n].push(t);this.element.addEventListener(n,t,!1)};r.prototype.unbind=function(n,t){var i=typeof t!="undefined";this.events[n]=this.events[n].filter(function(r){return i&&r!==t?!0:(this.element.removeEventListener(n,r,!1),!1)},this)};r.prototype.unbindAll=function(){for(var n in this.events)this.unbind(n)};i=function(){this.eventElements=[]};i.prototype.eventElement=function(n){var t=this.eventElements.filter(function(t){return t.element===n})[0];return typeof t=="undefined"&&(t=new r(n),this.eventElements.push(t)),t};i.prototype.bind=function(n,t,i){this.eventElement(n).bind(t,i)};i.prototype.unbind=function(n,t,i){this.eventElement(n).unbind(t,i)};i.prototype.unbindAll=function(){for(var n=0;n<this.eventElements.length;n++)this.eventElements[n].unbindAll()};i.prototype.once=function(n,t,i){var r=this.eventElement(n),u=function(n){r.unbind(t,u);i(n)};r.bind(t,u)};t.exports=i},{}],5:[function(n,t){"use strict";t.exports=function(){function n(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)}return function(){return n()+n()+"-"+n()+"-"+n()+"-"+n()+"-"+n()+n()+n()}}()},{}],6:[function(n,t,i){"use strict";var r=n("./class"),u=n("./dom");i.toInt=function(n){return parseInt(n,10)||0};i.clone=function(n){var t,i;if(n===null)return null;if(typeof n=="object"){t={};for(i in n)t[i]=this.clone(n[i]);return t}return n};i.extend=function(n,t){var r=this.clone(n),i;for(i in t)r[i]=this.clone(t[i]);return r};i.isEditable=function(n){return u.matches(n,"input,[contenteditable]")||u.matches(n,"select,[contenteditable]")||u.matches(n,"textarea,[contenteditable]")||u.matches(n,"button,[contenteditable]")};i.removePsClasses=function(n){for(var u=r.list(n),i,t=0;t<u.length;t++)i=u[t],i.indexOf("ps-")===0&&r.remove(n,i)};i.outerWidth=function(n){return this.toInt(u.css(n,"width"))+this.toInt(u.css(n,"paddingLeft"))+this.toInt(u.css(n,"paddingRight"))+this.toInt(u.css(n,"borderLeftWidth"))+this.toInt(u.css(n,"borderRightWidth"))};i.startScrolling=function(n,t){r.add(n,"ps-in-scrolling");typeof t!="undefined"?r.add(n,"ps-"+t):(r.add(n,"ps-x"),r.add(n,"ps-y"))};i.stopScrolling=function(n,t){r.remove(n,"ps-in-scrolling");typeof t!="undefined"?r.remove(n,"ps-"+t):(r.remove(n,"ps-x"),r.remove(n,"ps-y"))};i.env={isWebKit:"WebkitAppearance"in document.documentElement.style,supportsTouch:"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch,supportsIePointer:window.navigator.msMaxTouchPoints!==null}},{"./class":2,"./dom":3}],7:[function(n,t){"use strict";var i=n("./plugin/destroy"),r=n("./plugin/initialize"),u=n("./plugin/update");t.exports={initialize:r,update:u,destroy:i}},{"./plugin/destroy":9,"./plugin/initialize":17,"./plugin/update":21}],8:[function(n,t){"use strict";t.exports={maxScrollbarLength:null,minScrollbarLength:null,scrollXMarginOffset:0,scrollYMarginOffset:0,stopPropagationOnClick:!0,suppressScrollX:!1,suppressScrollY:!1,swipePropagation:!0,useBothWheelAxes:!1,useKeyboard:!0,useSelectionScroll:!1,wheelPropagation:!1,wheelSpeed:1}},{}],9:[function(n,t){"use strict";var i=n("../lib/dom"),u=n("../lib/helper"),r=n("./instances");t.exports=function(n){var t=r.get(n);t&&(t.event.unbindAll(),i.remove(t.scrollbarX),i.remove(t.scrollbarY),i.remove(t.scrollbarXRail),i.remove(t.scrollbarYRail),u.removePsClasses(n),r.remove(n))}},{"../lib/dom":3,"../lib/helper":6,"./instances":18}],10:[function(n,t){"use strict";function e(n,t){function f(n){return n.getBoundingClientRect()}var e=window.Event.prototype.stopPropagation.bind;t.settings.stopPropagationOnClick&&t.event.bind(t.scrollbarY,"click",e);t.event.bind(t.scrollbarYRail,"click",function(e){var s=i.toInt(t.scrollbarYHeight/2),h=t.railYRatio*(e.pageY-window.scrollY-f(t.scrollbarYRail).top-s),c=t.railYRatio*(t.railYHeight-t.scrollbarYHeight),o=h/c;o<0?o=0:o>1&&(o=1);u(n,"top",(t.contentHeight-t.containerHeight)*o);r(n);e.stopPropagation()});t.settings.stopPropagationOnClick&&t.event.bind(t.scrollbarX,"click",e);t.event.bind(t.scrollbarXRail,"click",function(e){var s=i.toInt(t.scrollbarXWidth/2),h=t.railXRatio*(e.pageX-window.scrollX-f(t.scrollbarXRail).left-s),c=t.railXRatio*(t.railXWidth-t.scrollbarXWidth),o=h/c;o<0?o=0:o>1&&(o=1);u(n,"left",(t.contentWidth-t.containerWidth)*o-t.negativeScrollAdjustment);r(n);e.stopPropagation()})}var i=n("../../lib/helper"),f=n("../instances"),r=n("../update-geometry"),u=n("../update-scroll");t.exports=function(n){var t=f.get(n);e(n,t)}},{"../../lib/helper":6,"../instances":18,"../update-geometry":19,"../update-scroll":20}],11:[function(n,t){"use strict";function o(n,t){function h(r){var u=e+r*t.railXRatio,o=t.scrollbarXRail.getBoundingClientRect().left+t.railXRatio*(t.railXWidth-t.scrollbarXWidth),s;t.scrollbarXLeft=u<0?0:u>o?o:u;s=i.toInt(t.scrollbarXLeft*(t.contentWidth-t.containerWidth)/(t.containerWidth-t.railXRatio*t.scrollbarXWidth))-t.negativeScrollAdjustment;f(n,"left",s)}var e=null,o=null,s=function(t){h(t.pageX-o);u(n);t.stopPropagation();t.preventDefault()},c=function(){i.stopScrolling(n,"x");t.event.unbind(t.ownerDocument,"mousemove",s)};t.event.bind(t.scrollbarX,"mousedown",function(u){o=u.pageX;e=i.toInt(r.css(t.scrollbarX,"left"))*t.railXRatio;i.startScrolling(n,"x");t.event.bind(t.ownerDocument,"mousemove",s);t.event.once(t.ownerDocument,"mouseup",c);u.stopPropagation();u.preventDefault()})}function s(n,t){function h(r){var u=e+r*t.railYRatio,o=t.scrollbarYRail.getBoundingClientRect().top+t.railYRatio*(t.railYHeight-t.scrollbarYHeight),s;t.scrollbarYTop=u<0?0:u>o?o:u;s=i.toInt(t.scrollbarYTop*(t.contentHeight-t.containerHeight)/(t.containerHeight-t.railYRatio*t.scrollbarYHeight));f(n,"top",s)}var e=null,o=null,s=function(t){h(t.pageY-o);u(n);t.stopPropagation();t.preventDefault()},c=function(){i.stopScrolling(n,"y");t.event.unbind(t.ownerDocument,"mousemove",s)};t.event.bind(t.scrollbarY,"mousedown",function(u){o=u.pageY;e=i.toInt(r.css(t.scrollbarY,"top"))*t.railYRatio;i.startScrolling(n,"y");t.event.bind(t.ownerDocument,"mousemove",s);t.event.once(t.ownerDocument,"mouseup",c);u.stopPropagation();u.preventDefault()})}var r=n("../../lib/dom"),i=n("../../lib/helper"),e=n("../instances"),u=n("../update-geometry"),f=n("../update-scroll");t.exports=function(n){var t=e.get(n);o(n,t);s(n,t)}},{"../../lib/dom":3,"../../lib/helper":6,"../instances":18,"../update-geometry":19,"../update-scroll":20}],12:[function(n,t){"use strict";function e(n,t){function o(i,r){var f=n.scrollTop,u;if(i===0){if(!t.scrollbarYActive)return!1;if(f===0&&r>0||f>=t.contentHeight-t.containerHeight&&r<0)return!t.settings.wheelPropagation}if(u=n.scrollLeft,r===0){if(!t.scrollbarXActive)return!1;if(u===0&&i<0||u>=t.contentWidth-t.containerWidth&&i>0)return!t.settings.wheelPropagation}return!0}var u=!1,e;t.event.bind(n,"mouseenter",function(){u=!0});t.event.bind(n,"mouseleave",function(){u=!1});e=!1;t.event.bind(t.ownerDocument,"keydown",function(s){var c,l,h;if((!s.isDefaultPrevented||!s.isDefaultPrevented())&&u){if(c=document.activeElement?document.activeElement:t.ownerDocument.activeElement,c){while(c.shadowRoot)c=c.shadowRoot.activeElement;if(r.isEditable(c))return}l=0;h=0;switch(s.which){case 37:l=-30;break;case 38:h=30;break;case 39:l=30;break;case 40:h=-30;break;case 33:h=90;break;case 32:h=s.shiftKey?90:-90;break;case 34:h=-90;break;case 35:h=s.ctrlKey?-t.contentHeight:-t.containerHeight;break;case 36:h=s.ctrlKey?n.scrollTop:t.containerHeight;break;default:return}i(n,"top",n.scrollTop-h);i(n,"left",n.scrollLeft+l);f(n);e=o(l,h);e&&s.preventDefault()}})}var r=n("../../lib/helper"),u=n("../instances"),f=n("../update-geometry"),i=n("../update-scroll");t.exports=function(n){var t=u.get(n);e(n,t)}},{"../../lib/helper":6,"../instances":18,"../update-geometry":19,"../update-scroll":20}],13:[function(n,t){"use strict";function e(n,t){function o(i,r){var f=n.scrollTop,u;if(i===0){if(!t.scrollbarYActive)return!1;if(f===0&&r>0||f>=t.contentHeight-t.containerHeight&&r<0)return!t.settings.wheelPropagation}if(u=n.scrollLeft,r===0){if(!t.scrollbarXActive)return!1;if(u===0&&i<0||u>=t.contentWidth-t.containerWidth&&i>0)return!t.settings.wheelPropagation}return!0}function s(n){var t=n.deltaX,i=-1*n.deltaY;return(typeof t=="undefined"||typeof i=="undefined")&&(t=n.wheelDeltaX/-6,i=n.wheelDeltaY/6),n.deltaMode&&n.deltaMode===1&&(t*=10,i*=10),t!==t&&i!==i&&(t=0,i=n.wheelDelta),[t,i]}function h(t,i){var r=n.querySelector("textarea:hover"),u,f;return r&&((u=r.scrollHeight-r.clientHeight,u>0&&!(r.scrollTop===0&&i>0)&&!(r.scrollTop===u&&i<0))||(f=r.scrollLeft-r.clientWidth,f>0&&!(r.scrollLeft===0&&t<0)&&!(r.scrollLeft===f&&t>0)))?!0:!1}function e(e){if(r.env.isWebKit||!n.querySelector("select:focus")){var a=s(e),c=a[0],l=a[1];h(c,l)||(u=!1,t.settings.useBothWheelAxes?t.scrollbarYActive&&!t.scrollbarXActive?(l?i(n,"top",n.scrollTop-l*t.settings.wheelSpeed):i(n,"top",n.scrollTop+c*t.settings.wheelSpeed),u=!0):t.scrollbarXActive&&!t.scrollbarYActive&&(c?i(n,"left",n.scrollLeft+c*t.settings.wheelSpeed):i(n,"left",n.scrollLeft-l*t.settings.wheelSpeed),u=!0):(i(n,"top",n.scrollTop-l*t.settings.wheelSpeed),i(n,"left",n.scrollLeft+c*t.settings.wheelSpeed)),f(n),u=u||o(c,l),u&&(e.stopPropagation(),e.preventDefault()))}}var u=!1;typeof window.onwheel!="undefined"?t.event.bind(n,"wheel",e):typeof window.onmousewheel!="undefined"&&t.event.bind(n,"mousewheel",e)}var r=n("../../lib/helper"),u=n("../instances"),f=n("../update-geometry"),i=n("../update-scroll");t.exports=function(n){var t=u.get(n);e(n,t)}},{"../../lib/helper":6,"../instances":18,"../update-geometry":19,"../update-scroll":20}],14:[function(n,t){"use strict";function u(n,t){t.event.bind(n,"scroll",function(){r(n)})}var i=n("../instances"),r=n("../update-geometry");t.exports=function(n){var t=i.get(n);u(n,t)}},{"../instances":18,"../update-geometry":19}],15:[function(n,t){"use strict";function e(n,t){function c(){var n=window.getSelection?window.getSelection():document.getSelection?document.getSelection():"";return n.toString().length===0?null:n.getRangeAt(0).commonAncestorContainer}function l(){o||(o=setInterval(function(){if(!r.get(n)){clearInterval(o);return}u(n,"top",n.scrollTop+e.top);u(n,"left",n.scrollLeft+e.left);f(n)},50))}function h(){o&&(clearInterval(o),o=null);i.stopScrolling(n)}var o=null,e={top:0,left:0},s=!1;t.event.bind(t.ownerDocument,"selectionchange",function(){n.contains(c())?s=!0:(s=!1,h())});t.event.bind(window,"mouseup",function(){s&&(s=!1,h())});t.event.bind(window,"mousemove",function(t){if(s){var r={x:t.pageX,y:t.pageY},u={left:n.offsetLeft,right:n.offsetLeft+n.offsetWidth,top:n.offsetTop,bottom:n.offsetTop+n.offsetHeight};r.x<u.left+3?(e.left=-5,i.startScrolling(n,"x")):r.x>u.right-3?(e.left=5,i.startScrolling(n,"x")):e.left=0;r.y<u.top+3?(e.top=u.top+3-r.y<5?-5:-20,i.startScrolling(n,"y")):r.y>u.bottom-3?(e.top=r.y-u.bottom+3<5?5:20,i.startScrolling(n,"y")):e.top=0;e.top===0&&e.left===0?h():l()}})}var i=n("../../lib/helper"),r=n("../instances"),f=n("../update-geometry"),u=n("../update-scroll");t.exports=function(n){var t=r.get(n);e(n,t)}},{"../../lib/helper":6,"../instances":18,"../update-geometry":19,"../update-scroll":20}],16:[function(n,t){"use strict";function f(n,t,f,e){function nt(i,r){var u=n.scrollTop,f=n.scrollLeft,e=Math.abs(i),o=Math.abs(r);if(o>e){if(r<0&&u===t.contentHeight-t.containerHeight||r>0&&u===0)return!t.settings.swipePropagation}else if(e>o&&(i<0&&f===t.contentWidth-t.containerWidth||i>0&&f===0))return!t.settings.swipePropagation;return!0}function k(t,i){r(n,"top",n.scrollTop-i);r(n,"left",n.scrollLeft-t);u(n)}function v(){c=!0}function y(){c=!1}function d(n){return n.targetTouches?n.targetTouches[0]:n}function g(n){return n.targetTouches&&n.targetTouches.length===1?!0:n.pointerType&&n.pointerType!=="mouse"&&n.pointerType!==n.MSPOINTER_TYPE_MOUSE?!0:!1}function p(n){if(g(n)){l=!0;var t=d(n);h.pageX=t.pageX;h.pageY=t.pageY;a=(new Date).getTime();s!==null&&clearInterval(s);n.stopPropagation()}}function w(n){var f,t;if(!c&&l&&g(n)){var e=d(n),i={pageX:e.pageX,pageY:e.pageY},r=i.pageX-h.pageX,u=i.pageY-h.pageY;k(r,u);h=i;f=(new Date).getTime();t=f-a;t>0&&(o.x=r/t,o.y=u/t,a=f);nt(r,u)&&(n.stopPropagation(),n.preventDefault())}}function b(){!c&&l&&(l=!1,clearInterval(s),s=setInterval(function(){if(!i.get(n)){clearInterval(s);return}if(Math.abs(o.x)<.01&&Math.abs(o.y)<.01){clearInterval(s);return}k(o.x*30,o.y*30);o.x*=.8;o.y*=.8},10))}var h={},a=0,o={},s=null,c=!1,l=!1;f&&(t.event.bind(window,"touchstart",v),t.event.bind(window,"touchend",y),t.event.bind(n,"touchstart",p),t.event.bind(n,"touchmove",w),t.event.bind(n,"touchend",b));e&&(window.PointerEvent?(t.event.bind(window,"pointerdown",v),t.event.bind(window,"pointerup",y),t.event.bind(n,"pointerdown",p),t.event.bind(n,"pointermove",w),t.event.bind(n,"pointerup",b)):window.MSPointerEvent&&(t.event.bind(window,"MSPointerDown",v),t.event.bind(window,"MSPointerUp",y),t.event.bind(n,"MSPointerDown",p),t.event.bind(n,"MSPointerMove",w),t.event.bind(n,"MSPointerUp",b)))}var i=n("../instances"),u=n("../update-geometry"),r=n("../update-scroll");t.exports=function(n,t,r){var u=i.get(n);f(n,u,t,r)}},{"../instances":18,"../update-geometry":19,"../update-scroll":20}],17:[function(n,t){"use strict";var r=n("../lib/class"),i=n("../lib/helper"),u=n("./instances"),f=n("./update-geometry"),e=n("./handler/click-rail"),o=n("./handler/drag-scrollbar"),s=n("./handler/keyboard"),h=n("./handler/mouse-wheel"),c=n("./handler/native-scroll"),l=n("./handler/selection"),a=n("./handler/touch");t.exports=function(n,t){t=typeof t=="object"?t:{};r.add(n,"ps-container");var v=u.add(n);v.settings=i.extend(v.settings,t);e(n);o(n);h(n);c(n);v.settings.useSelectionScroll&&l(n);(i.env.supportsTouch||i.env.supportsIePointer)&&a(n,i.env.supportsTouch,i.env.supportsIePointer);v.settings.useKeyboard&&s(n);f(n)}},{"../lib/class":2,"../lib/helper":6,"./handler/click-rail":10,"./handler/drag-scrollbar":11,"./handler/keyboard":12,"./handler/mouse-wheel":13,"./handler/native-scroll":14,"./handler/selection":15,"./handler/touch":16,"./instances":18,"./update-geometry":19}],18:[function(n,t,i){"use strict";function c(n){var t=this;t.settings=u.clone(o);t.containerWidth=null;t.containerHeight=null;t.contentWidth=null;t.contentHeight=null;t.isRtl=r.css(n,"direction")==="rtl";t.isNegativeScroll=function(){var i=n.scrollLeft,t=null;return n.scrollLeft=-1,t=n.scrollLeft<0,n.scrollLeft=i,t}();t.negativeScrollAdjustment=t.isNegativeScroll?n.scrollWidth-n.clientWidth:0;t.event=new s;t.ownerDocument=n.ownerDocument||document;t.scrollbarXRail=r.appendTo(r.e("div","ps-scrollbar-x-rail"),n);t.scrollbarX=r.appendTo(r.e("div","ps-scrollbar-x"),t.scrollbarXRail);t.scrollbarXActive=null;t.scrollbarXWidth=null;t.scrollbarXLeft=null;t.scrollbarXBottom=u.toInt(r.css(t.scrollbarXRail,"bottom"));t.isScrollbarXUsingBottom=t.scrollbarXBottom===t.scrollbarXBottom;t.scrollbarXTop=t.isScrollbarXUsingBottom?null:u.toInt(r.css(t.scrollbarXRail,"top"));t.railBorderXWidth=u.toInt(r.css(t.scrollbarXRail,"borderLeftWidth"))+u.toInt(r.css(t.scrollbarXRail,"borderRightWidth"));r.css(t.scrollbarXRail,"display","block");t.railXMarginWidth=u.toInt(r.css(t.scrollbarXRail,"marginLeft"))+u.toInt(r.css(t.scrollbarXRail,"marginRight"));r.css(t.scrollbarXRail,"display","");t.railXWidth=null;t.railXRatio=null;t.scrollbarYRail=r.appendTo(r.e("div","ps-scrollbar-y-rail"),n);t.scrollbarY=r.appendTo(r.e("div","ps-scrollbar-y"),t.scrollbarYRail);t.scrollbarYActive=null;t.scrollbarYHeight=null;t.scrollbarYTop=null;t.scrollbarYRight=u.toInt(r.css(t.scrollbarYRail,"right"));t.isScrollbarYUsingRight=t.scrollbarYRight===t.scrollbarYRight;t.scrollbarYLeft=t.isScrollbarYUsingRight?null:u.toInt(r.css(t.scrollbarYRail,"left"));t.scrollbarYOuterWidth=t.isRtl?u.outerWidth(t.scrollbarY):null;t.railBorderYWidth=u.toInt(r.css(t.scrollbarYRail,"borderTopWidth"))+u.toInt(r.css(t.scrollbarYRail,"borderBottomWidth"));r.css(t.scrollbarYRail,"display","block");t.railYMarginHeight=u.toInt(r.css(t.scrollbarYRail,"marginTop"))+u.toInt(r.css(t.scrollbarYRail,"marginBottom"));r.css(t.scrollbarYRail,"display","");t.railYHeight=null;t.railYRatio=null}function e(n){return typeof n.dataset=="undefined"?n.getAttribute("data-ps-id"):n.dataset.psId}function l(n,t){typeof n.dataset=="undefined"?n.setAttribute("data-ps-id",t):n.dataset.psId=t}function a(n){typeof n.dataset=="undefined"?n.removeAttribute("data-ps-id"):delete n.dataset.psId}var r=n("../lib/dom"),o=n("./default-setting"),s=n("../lib/event-manager"),h=n("../lib/guid"),u=n("../lib/helper"),f={};i.add=function(n){var t=h();return l(n,t),f[t]=new c(n),f[t]};i.remove=function(n){delete f[e(n)];a(n)};i.get=function(n){return f[e(n)]}},{"../lib/dom":3,"../lib/event-manager":4,"../lib/guid":5,"../lib/helper":6,"./default-setting":8}],19:[function(n,t){"use strict";function f(n,t){return n.settings.minScrollbarLength&&(t=Math.max(t,n.settings.minScrollbarLength)),n.settings.maxScrollbarLength&&(t=Math.min(t,n.settings.maxScrollbarLength)),t}function s(n,t){var r={width:t.railXWidth},u;r.left=t.isRtl?t.negativeScrollAdjustment+n.scrollLeft+t.containerWidth-t.contentWidth:n.scrollLeft;t.isScrollbarXUsingBottom?r.bottom=t.scrollbarXBottom-n.scrollTop:r.top=t.scrollbarXTop+n.scrollTop;i.css(t.scrollbarXRail,r);u={top:n.scrollTop,height:t.railYHeight};t.isScrollbarYUsingRight?u.right=t.isRtl?t.contentWidth-(t.negativeScrollAdjustment+n.scrollLeft)-t.scrollbarYRight-t.scrollbarYOuterWidth:t.scrollbarYRight-n.scrollLeft:u.left=t.isRtl?t.negativeScrollAdjustment+n.scrollLeft+t.containerWidth*2-t.contentWidth-t.scrollbarYLeft-t.scrollbarYOuterWidth:t.scrollbarYLeft+n.scrollLeft;i.css(t.scrollbarYRail,u);i.css(t.scrollbarX,{left:t.scrollbarXLeft,width:t.scrollbarXWidth-t.railBorderXWidth});i.css(t.scrollbarY,{top:t.scrollbarYTop,height:t.scrollbarYHeight-t.railBorderYWidth})}var u=n("../lib/class"),i=n("../lib/dom"),r=n("../lib/helper"),e=n("./instances"),o=n("./update-scroll");t.exports=function(n){var t=e.get(n),h;t.containerWidth=n.clientWidth;t.containerHeight=n.clientHeight;t.contentWidth=n.scrollWidth;t.contentHeight=n.scrollHeight;n.contains(t.scrollbarXRail)||(h=i.queryChildren(n,".ps-scrollbar-x-rail"),h.length>0&&h.forEach(function(n){i.remove(n)}),i.appendTo(t.scrollbarXRail,n));n.contains(t.scrollbarYRail)||(h=i.queryChildren(n,".ps-scrollbar-y-rail"),h.length>0&&h.forEach(function(n){i.remove(n)}),i.appendTo(t.scrollbarYRail,n));!t.settings.suppressScrollX&&t.containerWidth+t.settings.scrollXMarginOffset<t.contentWidth?(t.scrollbarXActive=!0,t.railXWidth=t.containerWidth-t.railXMarginWidth,t.railXRatio=t.containerWidth/t.railXWidth,t.scrollbarXWidth=f(t,r.toInt(t.railXWidth*t.containerWidth/t.contentWidth)),t.scrollbarXLeft=r.toInt((t.negativeScrollAdjustment+n.scrollLeft)*(t.railXWidth-t.scrollbarXWidth)/(t.contentWidth-t.containerWidth))):(t.scrollbarXActive=!1,t.scrollbarXWidth=0,t.scrollbarXLeft=0,n.scrollLeft=0);!t.settings.suppressScrollY&&t.containerHeight+t.settings.scrollYMarginOffset<t.contentHeight?(t.scrollbarYActive=!0,t.railYHeight=t.containerHeight-t.railYMarginHeight,t.railYRatio=t.containerHeight/t.railYHeight,t.scrollbarYHeight=f(t,r.toInt(t.railYHeight*t.containerHeight/t.contentHeight)),t.scrollbarYTop=r.toInt(n.scrollTop*(t.railYHeight-t.scrollbarYHeight)/(t.contentHeight-t.containerHeight))):(t.scrollbarYActive=!1,t.scrollbarYHeight=0,t.scrollbarYTop=0,o(n,"top",0));t.scrollbarXLeft>=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth);t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight);s(n,t);u[t.scrollbarXActive?"add":"remove"](n,"ps-active-x");u[t.scrollbarYActive?"add":"remove"](n,"ps-active-y")}},{"../lib/class":2,"../lib/dom":3,"../lib/helper":6,"./instances":18,"./update-scroll":20}],20:[function(n,t){"use strict";var y=n("./instances"),u=document.createEvent("Event"),f=document.createEvent("Event"),e=document.createEvent("Event"),o=document.createEvent("Event"),s=document.createEvent("Event"),h=document.createEvent("Event"),c=document.createEvent("Event"),l=document.createEvent("Event"),a=document.createEvent("Event"),v=document.createEvent("Event"),i,r;u.initEvent("ps-scroll-up",!0,!0);f.initEvent("ps-scroll-down",!0,!0);e.initEvent("ps-scroll-left",!0,!0);o.initEvent("ps-scroll-right",!0,!0);s.initEvent("ps-scroll-y",!0,!0);h.initEvent("ps-scroll-x",!0,!0);c.initEvent("ps-x-reach-start",!0,!0);l.initEvent("ps-x-reach-end",!0,!0);a.initEvent("ps-y-reach-start",!0,!0);v.initEvent("ps-y-reach-end",!0,!0);t.exports=function(n,t,p){if(typeof n=="undefined")throw"You must provide an element to the update-scroll function";if(typeof t=="undefined")throw"You must provide an axis to the update-scroll function";if(typeof p=="undefined")throw"You must provide a value to the update-scroll function";if(t==="top"&&p<=0){n.scrollTop=0;n.dispatchEvent(a);return}if(t==="left"&&p<=0){n.scrollLeft=0;n.dispatchEvent(c);return}var w=y.get(n);if(t==="top"&&p>w.contentHeight-w.containerHeight){n.scrollTop=w.contentHeight-w.containerHeight;n.dispatchEvent(v);return}if(t==="left"&&p>w.contentWidth-w.containerWidth){n.scrollLeft=w.contentWidth-w.containerWidth;n.dispatchEvent(l);return}i||(i=n.scrollTop);r||(r=n.scrollLeft);t==="top"&&p<i&&n.dispatchEvent(u);t==="top"&&p>i&&n.dispatchEvent(f);t==="left"&&p<r&&n.dispatchEvent(e);t==="left"&&p>r&&n.dispatchEvent(o);t==="top"&&(n.scrollTop=i=p,n.dispatchEvent(s));t==="left"&&(n.scrollLeft=r=p,n.dispatchEvent(h))}},{"./instances":18}],21:[function(n,t){"use strict";var i=n("../lib/dom"),r=n("../lib/helper"),u=n("./instances"),f=n("./update-geometry");t.exports=function(n){var t=u.get(n);t&&(t.negativeScrollAdjustment=t.isNegativeScroll?n.scrollWidth-n.clientWidth:0,i.css(t.scrollbarXRail,"display","block"),i.css(t.scrollbarYRail,"display","block"),t.railXMarginWidth=r.toInt(i.css(t.scrollbarXRail,"marginLeft"))+r.toInt(i.css(t.scrollbarXRail,"marginRight")),t.railYMarginHeight=r.toInt(i.css(t.scrollbarYRail,"marginTop"))+r.toInt(i.css(t.scrollbarYRail,"marginBottom")),i.css(t.scrollbarXRail,"display","none"),i.css(t.scrollbarYRail,"display","none"),f(n),i.css(t.scrollbarXRail,"display",""),i.css(t.scrollbarYRail,"display",""))}},{"../lib/dom":3,"../lib/helper":6,"./instances":18,"./update-geometry":19}]},{},[1]),function(n,t){if(!n)return t;var i=function(){this.el=t;this.items=t;this.sizes=[];this.max=[0,0];this.current=0;this.interval=t;this.opts={speed:500,delay:3e3,complete:t,keys:!t,dots:t,fluid:t};var i=this;this.init=function(t,i){return this.el=t,this.ul=t.children("ul"),this.max=[t.outerWidth(),t.outerHeight()],this.items=this.ul.children("li").each(this.calculate),this.opts=n.extend(this.opts,i),this.setup(),this};this.calculate=function(t){var f=n(this),r=f.outerWidth(),u=f.outerHeight();i.sizes[t]=[r,u];r>i.max[0]&&(i.max[0]=r);u>i.max[1]&&(i.max[1]=u)};this.setup=function(){if(this.el.css({overflow:"hidden",width:i.max[0],height:this.items.first().outerHeight()}),this.ul.css({width:this.items.length*100+"%",position:"relative"}),this.items.css("width",100/this.items.length+"%"),this.opts.delay!==t&&(this.start(),this.el.hover(this.stop,this.start)),this.opts.keys&&n(document).keydown(this.keys),this.opts.dots&&this.dots(),this.opts.fluid){var r=function(){i.el.css("width",Math.min(Math.round(i.el.outerWidth()/i.el.parent().outerWidth()*100),100)+"%")};r();n(window).resize(r)}if(this.opts.arrows&&this.el.parent().append('<p class="arrows"><span class="prev">←<\/span><span class="next">→<\/span><\/p>').find(".arrows span").click(function(){n.isFunction(i[this.className])&&i[this.className]()}),n.event.swipe)this.el.on("swipeleft",i.prev).on("swiperight",i.next)};this.move=function(t,r){this.items.eq(t).length||(t=0);t<0&&(t=this.items.length-1);var e=this.items.eq(t),u={height:e.outerHeight()},f=r?5:this.opts.speed;this.ul.is(":animated")||(i.el.find(".dot:eq("+t+")").addClass("active").siblings().removeClass("active"),this.el.animate(u,f)&&this.ul.animate(n.extend({left:"-"+t+"00%"},u),f,function(){i.current=t;n.isFunction(i.opts.complete)&&!r&&i.opts.complete(i.el)}))};this.start=function(){i.interval=setInterval(function(){i.move(i.current+1)},i.opts.delay)};this.stop=function(){return i.interval=clearInterval(i.interval),i};this.keys=function(t){var r=t.which,u={37:i.prev,39:i.next,27:i.stop};n.isFunction(u[r])&&u[r]()};this.next=function(){return i.stop().move(i.current+1)};this.prev=function(){return i.stop().move(i.current-1)};this.dots=function(){var t='<ol class="dots">';n.each(this.items,function(n){t+='<li class="dot'+(n<1?" active":"")+'">'+(n+1)+"<\/li>"});t+="<\/ol>";this.el.addClass("has-dots").append(t).find(".dot").click(function(){i.move(n(this).index())})}};n.fn.unslider=function(t){var r=this.length;return this.each(function(u){var f=n(this),e=(new i).init(f,t);f.data("unslider"+(r>1?"-"+(u+1):""),e)})}}(window.jQuery,!1),function(n){n.cookieCuttr=function(t){var s={cookieCutter:!1,cookieCutterDeclineOnly:!1,cookieAnalytics:!0,cookieDeclineButton:!1,cookieAcceptButton:!0,cookieResetButton:!1,cookieOverlayEnabled:!1,cookiePolicyLink:"/privacy-policy/",cookieMessage:"To give you the best experience, we use cookies. If you continue browsing, we'll assume that you are happy with that. Please click <a href='/about/privacy'>here<\/a>  for more information.",cookieAnalyticsMessage:"To give you the best experience, we use cookies. If you continue browsing, we'll assume that you are happy with that. Please click <a href='/about/privacy'>here<\/a> for more information.",cookieErrorMessage:"We're sorry, this feature places cookies in your browser and has been disabled. <br>To continue using this functionality, please",cookieWhatAreTheyLink:"",cookieDisable:"",cookieExpires:365,cookieAcceptButtonText:"Close",cookieDeclineButtonText:"Decline",cookieResetButtonText:"RESET COOKIES FOR THIS WEBSITE",cookieWhatAreLinkText:"",cookieNotificationLocationBottom:!0,cookiePolicyPage:!1,cookiePolicyPageMessage:"Please read the information below and then choose from the following options",cookieDiscreetLink:!1,cookieDiscreetReset:!1,cookieDiscreetLinkText:"Cookies?",cookieDiscreetPosition:"bottomleft",cookieNoMessage:!1,cookieDomain:""},t=n.extend(s,t),ht=s.cookieMessage.replace("{{cookiePolicyLink}}",s.cookiePolicyLink),c,e,o,r,u,l;s.cookieMessage='We use cookies on this website, you can <a href="'+s.cookiePolicyLink+'" title="read about our cookies">read about them here<\/a>. To use the website as intended please...';var d=t.cookiePolicyLink,g=t.cookieCutter,nt=t.cookieCutterDeclineOnly,tt=t.cookieAnalytics,ct=t.cookieDeclineButton,lt=t.cookieAcceptButton,l=t.cookieResetButton,at=t.cookieOverlayEnabled,pt=t.cookiePolicyLink,it=ht,rt=t.cookieAnalyticsMessage,ut=t.cookieErrorMessage,ft=t.cookieDisable,et=t.cookieWhatAreTheyLink,p=t.cookieExpires,h=t.cookieAcceptButtonText,w=t.cookieDeclineButtonText,f=t.cookieResetButtonText,ot=t.cookieWhatAreLinkText,b=t.cookieNotificationLocationBottom,a=t.cookiePolicyPage,st=t.cookiePolicyPageMessage,v=t.cookieDiscreetLink,vt=t.cookieDiscreetReset,y=t.cookieDiscreetLinkText,i=t.cookieDiscreetPosition,yt=t.cookieNoMessage,k=n.cookie("cc_cookie_accept")=="cc_cookie_accept";n.cookieAccepted=function(){return k};c=n.cookie("cc_cookie_decline")=="cc_cookie_decline";n.cookieDeclined=function(){return c};e=lt?' <a href="#accept" class="cc-cookie-accept">'+h+"<\/a> ":"";o=ct?' <a href="#decline" class="cc-cookie-decline">'+w+"<\/a> ":"";r=at?"cc-overlay":"";u=b||i=="bottomright"||i=="bottomleft"?!0:!1;k||c?l&&vt?(u?n("body").append('<div class="cc-cookies cc-discreet"><a class="cc-cookie-reset" href="#" title="'+f+'">'+f+"<\/a><\/div>"):n("body").prepend('<div class="cc-cookies cc-discreet"><a class="cc-cookie-reset" href="#" title="'+f+'">'+f+"<\/a><\/div>"),i=="topleft"&&(n("div.cc-cookies").css("top","0"),n("div.cc-cookies").css("left","0")),i=="topright"&&(n("div.cc-cookies").css("top","0"),n("div.cc-cookies").css("right","0")),i=="bottomleft"&&(n("div.cc-cookies").css("bottom","0"),n("div.cc-cookies").css("left","0")),i=="bottomright"&&(n("div.cc-cookies").css("bottom","0"),n("div.cc-cookies").css("right","0"))):l?u?n("body").append('<div class="cc-cookies"><a href="#" class="cc-cookie-reset">'+f+"<\/a><\/div>"):n("body").prepend('<div class="cc-cookies"><a href="#" class="cc-cookie-reset">'+f+"<\/a><\/div>"):l="":(yt&&!a||(v&&!a?(u?n("body").append('<div class="cc-cookies cc-discreet"><a href="'+d+'" title="'+y+'">'+y+"<\/a><\/div>"):n("body").prepend('<div class="cc-cookies cc-discreet"><a href="'+d+'" title="'+y+'">'+y+"<\/a><\/div>"),i=="topleft"&&(n("div.cc-cookies").css("top","0"),n("div.cc-cookies").css("left","0")),i=="topright"&&(n("div.cc-cookies").css("top","0"),n("div.cc-cookies").css("right","0")),i=="bottomleft"&&(n("div.cc-cookies").css("bottom","0"),n("div.cc-cookies").css("left","0")),i=="bottomright"&&(n("div.cc-cookies").css("bottom","0"),n("div.cc-cookies").css("right","0"))):tt&&(u?n("body").append('<div class="cc-cookies '+r+'">'+rt+e+o+'<a href="'+et+'" title="Visit All about cookies (External link)">'+ot+"<\/a><\/div>"):n("body").prepend('<div class="cc-cookies '+r+'">'+rt+e+o+'<a href="'+et+'" title="Visit All about cookies (External link)">'+ot+"<\/a><\/div>"))),a?u?n("body").append('<div class="cc-cookies '+r+'">'+st+'  <a href="#accept" class="cc-cookie-accept">'+h+'<\/a>  <a href="#decline" class="cc-cookie-decline">'+w+"<\/a> <\/div>"):n("body").prepend('<div class="cc-cookies '+r+'">'+st+'  <a href="#accept" class="cc-cookie-accept">'+h+'<\/a>  <a href="#decline" class="cc-cookie-decline">'+w+"<\/a> <\/div>"):tt||v||(u?n("body").append('<div class="cc-cookies '+r+'">'+it+e+o+"<\/div>"):n("body").prepend('<div class="cc-cookies '+r+'">'+it+e+o+"<\/div>")));g&&!nt&&(c||!k)&&n(ft).html('<div class="cc-cookies-error">'+ut+' <a href="#accept" class="cc-cookie-accept">'+h+"<\/a> <\/div>");g&&nt&&c&&n(ft).html('<div class="cc-cookies-error">'+ut+' <a href="#accept" class="cc-cookie-accept">'+h+"<\/a> <\/div>");b&&!v&&(n("div.cc-cookies").css("top","auto"),n("div.cc-cookies").css("bottom","0"));b&&v&&a&&(n("div.cc-cookies").css("top","auto"),n("div.cc-cookies").css("bottom","0"));n(".cc-cookie-accept, .cc-cookie-decline").click(function(i){i.preventDefault();n(this).is("[href$=#decline]")?(n.cookie("cc_cookie_accept",null,{path:"/"}),n.cookie("cc_cookie_decline","cc_cookie_decline",{expires:p,path:"/"}),t.cookieDomain&&(n.cookie("__utma",null,{domain:"."+t.cookieDomain,path:"/"}),n.cookie("__utmb",null,{domain:"."+t.cookieDomain,path:"/"}),n.cookie("__utmc",null,{domain:"."+t.cookieDomain,path:"/"}),n.cookie("__utmz",null,{domain:"."+t.cookieDomain,path:"/"}))):(n.cookie("cc_cookie_decline",null,{path:"/"}),n.cookie("cc_cookie_accept","cc_cookie_accept",{expires:p,path:"/"}));n(".cc-cookies").fadeOut(function(){location.reload()})});n("a.cc-cookie-reset").click(function(t){t.preventDefault();n.cookie("cc_cookie_accept",null,{path:"/"});n.cookie("cc_cookie_decline",null,{path:"/"});n(".cc-cookies").fadeOut(function(){location.reload()})});n(".cc-cookies-error a.cc-cookie-accept").click(function(t){t.preventDefault();n.cookie("cc_cookie_accept","cc_cookie_accept",{expires:p,path:"/"});n.cookie("cc_cookie_decline",null,{path:"/"});location.reload()})}}(jQuery),function(n,t,i){"use strict";var e=function(){var n=i.body||i.documentElement,n=n.style;return n.WebkitTransition==""?"-webkit-":n.MozTransition==""?"-moz-":n.OTransition==""?"-o-":n.transition==""?"":!1},r=e()===!1?!1:!0,u=function(n,t,i){var r={},u=e();r[u+"transform"]="translateX("+t+")";r[u+"transition"]=u+"transform "+i+"s linear";n.css(r)},o="ontouchstart"in t,s=t.navigator.pointerEnabled||t.navigator.msPointerEnabled,f=function(n){if(o)return!0;if(!s||typeof n=="undefined"||typeof n.pointerType=="undefined")return!1;if(typeof n.MSPOINTER_TYPE_MOUSE!="undefined"){if(n.MSPOINTER_TYPE_MOUSE!=n.pointerType)return!0}else if(n.pointerType!="mouse")return!0;return!1};n.fn.imageLightbox=function(e){var c=n.extend({selector:'id="imagelightbox"',allowedTypes:"png|jpg|jpeg|gif",animationSpeed:250,preloadNext:!0,enableKeyboard:!0,quitOnEnd:!1,quitOnImgClick:!1,quitOnDocClick:!0,onStart:!1,onEnd:!1,onLoadStart:!1,onLoadEnd:!1},e),l=n([]),a=n(),h=n(),v=0,p=0,y=0,w=!1,d=function(){return!0},g=function(){if(!h.length)return!0;var r=n(t).width()*.8,u=n(t).height()*.9,i=new Image;i.src=h.attr("src");i.onload=function(){if(v=i.width,p=i.height,v>r||p>u){var f=v/p>r/u?v/r:p/u;v/=f;p/=f}h.css({width:v+"px",height:p+"px",top:(n(t).height()-p)/2+"px",left:(n(t).width()-v)/2+"px"})}},k=function(t){if(w)return!1;if(t=typeof t=="undefined"?!1:t=="left"?1:-1,h.length){if(t!==!1&&(l.length<2||c.quitOnEnd===!0&&(t===-1&&l.index(a)==0||t===1&&l.index(a)==l.length-1)))return b(),!1;var i={opacity:0};r?u(h,100*t-y+"px",c.animationSpeed/1e3):i.left=parseInt(h.css("left"))+100*t+"px";h.animate(i,c.animationSpeed,function(){nt()});y=0}w=!0;c.onLoadStart!==!1&&c.onLoadStart();setTimeout(function(){h=n("<img "+c.selector+" />").attr("src",a.attr("href")).load(function(){var f,e,i;h.appendTo("body");g();f={opacity:1};h.css("opacity",0);r?(u(h,-100*t+"px",0),setTimeout(function(){u(h,"0px",c.animationSpeed/1e3)},50)):(e=parseInt(h.css("left")),f.left=e+"px",h.css("left",e-100*t+"px"));h.animate(f,c.animationSpeed,function(){w=!1;c.onLoadEnd!==!1&&c.onLoadEnd()});c.preloadNext&&(i=l.eq(l.index(a)+1),i.length||(i=l.eq(0)),n("<img />").attr("src",i.attr("href")).load())}).error(function(){c.onLoadEnd!==!1&&c.onLoadEnd()});n("#imagelightbox-overlay").click(function(){b()});var e=0,o=0,i=0;h.on(s?"pointerup MSPointerUp":"click",function(n){if(n.preventDefault(),c.quitOnImgClick)return b(),!1;if(f(n.originalEvent))return!0;var t=(n.pageX||n.originalEvent.pageX)-n.target.offsetLeft;a=l.eq(l.index(a)-(v/2>t?1:-1));a.length||(a=l.eq(v/2>t?l.length:0));k(v/2>t?"left":"right")}).on("touchstart pointerdown MSPointerDown",function(n){if(!f(n.originalEvent)||c.quitOnImgClick)return!0;r&&(i=parseInt(h.css("left")));e=n.originalEvent.pageX||n.originalEvent.touches[0].pageX}).on("touchmove pointermove MSPointerMove",function(n){if(!f(n.originalEvent)||c.quitOnImgClick)return!0;n.preventDefault();o=n.originalEvent.pageX||n.originalEvent.touches[0].pageX;y=e-o;r?u(h,-y+"px",0):h.css("left",i-y+"px")}).on("touchend touchcancel pointerup pointercancel MSPointerUp MSPointerCancel",function(n){if(!f(n.originalEvent)||c.quitOnImgClick)return!0;Math.abs(y)>50?(a=l.eq(l.index(a)-(y<0?1:-1)),a.length||(a=l.eq(y<0?l.length:0)),k(y>0?"right":"left")):r?u(h,"0px",c.animationSpeed/1e3):h.animate({left:i+"px"},c.animationSpeed/2)})},c.animationSpeed+100)},nt=function(){if(!h.length)return!1;h.remove();h=n()},b=function(){if(!h.length)return!1;h.animate({opacity:0},c.animationSpeed,function(){nt();w=!1;c.onEnd!==!1&&c.onEnd()})};n(t).on("resize",g);if(c.quitOnDocClick)n(i).on(o?"touchend":"click",function(t){h.length&&!n(t.target).is(h)&&b()});if(c.enableKeyboard)n(i).on("keyup",function(n){if(!h.length)return!0;n.preventDefault();n.keyCode==27&&b();(n.keyCode==37||n.keyCode==39)&&(a=l.eq(l.index(a)-(n.keyCode==37?1:-1)),a.length||(a=l.eq(n.keyCode==37?l.length:0)),k(n.keyCode==37?"left":"right"))});n(i).on("click",this.selector,function(t){if(!d(this))return!0;if(t.preventDefault(),w)return!1;w=!1;c.onStart!==!1&&c.onStart();a=n(this);k()});return this.each(function(){if(!d(this))return!0;l=l.add(n(this))}),this.switchImageLightbox=function(n){var t=l.eq(n),i;return t.length&&(i=l.index(a),a=t,k(n<i?"left":"right")),this},this.quitImageLightbox=function(){return b(),this},this}}(jQuery,window,document);var museumsCountryCodeUrl=function(){return"/Search/SearchCity?pCountryCode="+$("#countrycodeMuseums option:selected").val()},collectionsCountryCodeUrl=function(){return"/Search/SearchCity?pCountryCode="+$("#countryCodeCollections option:selected").val()},exhibitionsAndEventsCountryCodeUrl=function(){return"/Search/SearchCity?pCountryCode="+$("#countryCodeExhibitionsAndEvents option:selected").val()},activitiesCountryCodeUrl=function(){return"/Search/SearchCity?pCountryCode="+$("#countryCodeActivities option:selected").val()};$(document).ready(function(){try{try{initializeAdminMap()}catch(t){}initTimeline();initCollectionPagination();initFb();initDocMorePictures();initReadMoreCollection();initLoadMoreAll();initTopDocsHomePage();initExpadnMapbtn();typeof disableCookieCuttr=="undefined"&&$.cookieCuttr();initCityFilters();initMainImage();$("#event-registration form").submit(function(n){var t=$(this);$.ajax({type:t.attr("method"),url:t.attr("action"),data:t.serialize()}).done(function(n){n.Success&&($("#event-registration div.modal-body div.row").hide(),$("div.event-registration-success-msg").show())}).fail(function(){});n.preventDefault()})}catch(n){alert(n.message)}$("#NewsletterForm").ajaxForm(function(){$("#NewsletterForm").html("<p><strong>Thank you for your subscription!<\/strong><\/p>")});$("#favorite-container").length>0&&$.get("/document/favoritegumb?pDocumentId="+$("#favorite-container").attr("data-documentid"),function(n){$("#favorite-container").html(n)})}),function(n){n.fn.drags=function(t){var i=!1,r;t=n.extend({cursor:"pointer",clickEvent:""},t);r=this;r.find("li").removeClass("selected");return r.css("cursor",t.cursor).on("mousedown",function(t){var r=n(this).addClass("draggable"),u,f;i=!1;u=r.outerWidth();f=r.offset().left+u-t.pageX;r.parent().on("mousemove",function(t){Math.abs(f-t.pageX)>2&&(i=!0);console.log(t.pageX);n(".draggable").offset({left:t.pageX+f-u})});t.preventDefault()}).on("mouseup",function(r){n(this).removeClass("draggable");i||(t.clickEvent===""?alert("Click event not implemented!"):t.clickEvent(r))})}}(jQuery);rating=0;reviews={init:function(){$(".rate-review-btn").click(function(){$("#reviewForm").modal()});$("#reviewForm").on("show.bs.modal",function(){rating=0;$("#Rating").val("");var n=1;for(n;n<=5;n++)document.getElementById(n).src="/content/images/star-22x22-inactive.png"});$("#reviewForm").on("shown.bs.modal",function(){$.ajax({type:"GET",cache:!1,url:"/review/GetUsersReview/"+$("#ReviewDocumentID").val(),success:function(n){if(n.ReviewDocumentID>0){$("#ReviewID").val(n.ReviewID);$("#ReviewDocumentID").val(n.ReviewDocumentID);$("#Rating").val(n.Rating);rating=n.Rating;var t=1;for(t;t<=rating;t++)document.getElementById(t).src="/content/images/star-22x22.png";$("#Message").val(n.Message)}$("#loadingReviewForm").hide();$("#reviewFormContent").show()}})});$("#publishingReviewIndicator").hide();$("#reviewForm .ratingStars img").click(function(){$("#Rating").val(this.id);rating=this.id});$("#reviewForm .ratingStars img").hover(function(){for(var n=this,t=this.nextSibling;t;)t.src="/content/images/star-22x22-inactive.png",t=t.nextSibling;while(n)n.src="/content/images/star-22x22.png",n=n.previousSibling},function(){for(var t=this,n;t;)t.src="/content/images/star-22x22-inactive.png",t=t.previousSibling;if(rating!=0)for(n=1,n;n<=rating;n++)document.getElementById(n).src="/content/images/star-22x22.png"})},begin:function(){$("#publishingReviewIndicator").show()},publish:function(){reviews.reloadList()},reloadList:function(){$("#reviewForm .close").click();$("#publishingReviewIndicator").hide();$("#reviewForm form").clearForm();$("#lastReviewsWrapper").html("<img src='/content/images/ajax-load.gif' alt='loading..' />");$.ajax({type:"GET",cache:!1,url:"/review/lastreviews/"+$("#ReviewDocumentID").val(),success:function(n){$("#lastReviewsWrapper").html(n)}})}};$(document).ready(function(){reviews.init()});suggestAndUpdate={init:function(){$("button.suugest-an-update-trigger").click(function(){var n=$(this).data("doctype"),t=$(this).data("unitid");$(this).append('<img class="btn-inline-loader" src="/Areas/Eu/Content/img/loader-inline.gif"/>');$.get("/suggestupdate/loadform?punitId="+t+"&pDocumentType="+n+"&ts="+(new Date).getTime(),function(n){$("#SuggestAndUpdateModal").remove();$("body").append(n);$("img.btn-inline-loader").remove();$.validator.unobtrusive.parse("#SuggestAndUpdateModal form");$(".filestyle").filestyle();$("button.suggest-update-prev").hide();$("button.suggest-update-send").hide();$("button.suggest-update-login").hide();$("button.suggest-update-register").hide();$("div.museums-register-frm").hide();$("#SuggestAndUpdateModal").modal({backdrop:"static",keyboard:!1});suggestAndUpdate.initFormAfterLoad();suggestAndUpdate.showCurrentStep("#SuggestAndUpdateModal",$("#SuggestAndUpdateModal").attr("data-cstep"))})})},initFormAfterLoad:function(){$("button.suggest-update-next").click(function(n){n.preventDefault();var i=$(this).attr("rel"),r=$(i),t=$(r).attr("data-cstep");suggestAndUpdate.removeMessage();suggestAndUpdate.stepValid(i,t)&&(t++,suggestAndUpdate.showCurrentStep(i,t),$(r).attr("data-cstep",t))});$("button.suggest-update-prev").click(function(n){n.preventDefault();suggestAndUpdate.removeMessage();var i=$(this).attr("rel"),r=$(i),t=$(r).attr("data-cstep");t--;suggestAndUpdate.showCurrentStep(i,t);$(r).attr("data-cstep",t)});$("a.register-for-a-new-account").click(function(){var n=$(this).attr("rel");$(n+" div.museums-login-frm").hide();$(n+" div.museums-register-frm").show();$("button.suggest-update-login").hide();$("button.suggest-update-register").show()});$("a.login-to-existing-account").click(function(){var n=$(this).attr("rel");$(n+" div.museums-register-frm").hide();$(n+" div.museums-login-frm").show();$("button.suggest-update-register").hide();$("button.suggest-update-login").show()});$("button.suggest-update-send").click(function(){var n=$(this).attr("rel");suggestAndUpdate.removeMessage();suggestAndUpdate.showMessage('Please Wait. Museums is processing your request... <img class="btn-inline-loader" src="/Areas/Eu/Content/img/loader-inline.gif"/>',"info");$(n+" form").ajaxForm(function(t){if(suggestAndUpdate.removeMessage(),t.Success){$(n+" div.modal-body").html('<div class="alert alert-success">'+t.Message+"<\/div>");$(n).on("hide.bs.modal",function(){window.location.reload()})}else suggestAndUpdate.showMessage(t.Message,"danger")})});$("button.suggest-update-login").click(function(n){n.preventDefault();var t=$(this).attr("rel"),i=$("#login-email").val(),r=$("#login-password").val(),u={pPassword:r,pUsername:i,ts:(new Date).getTime()};suggestAndUpdate.removeMessage();$.post("/suggestupdate/login",u,function(n){n.Success?($("div.login-frm-inner").html('<div style="text-align: center;"><h4>You are logged in as<\/h4><p><b>'+n.Data.Username+"<\/b><\/p><\/div>"),$(t+"_userStatus").val(1),suggestAndUpdate.showCurrentStep(t,3)):suggestAndUpdate.showMessage(n.Message,"danger")})});$("button.suggest-update-register").click(function(n){n.preventDefault();var t=$(this).attr("rel"),i=$("#register-name").val(),r=$("#register-email").val(),u=$("#register-password").val(),f=$("#register-password2").val(),e={RegistrationUserName:i,Email:r,RegistrationPassword:u,RegistrationConfirmPassword:f,ts:(new Date).getTime()};suggestAndUpdate.removeMessage();suggestAndUpdate.showMessage('Please Wait. Museums is processing your request...<img class="btn-inline-loader" src="/Areas/Eu/Content/img/loader-inline.gif"/>',"info");$.post("/suggestupdate/register",e,function(n){suggestAndUpdate.removeMessage();n.Success?(suggestAndUpdate.showCurrentStep(t,3),suggestAndUpdate.showMessage(n.Message,"success")):suggestAndUpdate.showMessage(n.Message,"danger")})})},showMessage:function(n,t){$("#validationMessage").append('<div class="alert alert-'+t+'">'+n+"<\/div>")},removeMessage:function(){$("#validationMessage div.alert").remove()},stepValid:function(n,t){return t==1?suggestAndUpdate.firstStepValid(n):t==2?suggestAndUpdate.secondStepValid(n):suggestAndUpdate.thirdStepValid(n)},firstStepValid:function(n){return $(n+" #Title").valid()&&$(n+" #Description").valid()},secondStepValid:function(n){return $(n+" #Url").val()==""&&$(n+" .bootstrap-filestyle input").val()==""?(suggestAndUpdate.showMessage("Select image file form your computer or paste image url from the internet.","danger"),!1):!0},thirdStepValid:function(){return!0},showCurrentStep:function(n,t){$(n+" div.suggest-update-step").hide();$(n+" div.suggest-update-step:nth-child("+t+")").show();$(n+" ul.suggest-update-progressbar li").removeClass("active");$(n+" ul.suggest-update-progressbar li:nth-child("+t+")").addClass("active");t>1?$(n+" button.suggest-update-prev").show():$(n+" button.suggest-update-prev").hide();t==$(n+" div.suggest-update-step").length?$(n+"_userStatus").val()>0?($("button.suggest-update-next").hide(),$("button.suggest-update-login").hide(),$("button.suggest-update-send").show()):($("button.suggest-update-next").hide(),$("button.suggest-update-send").hide(),$("button.suggest-update-register").hide(),$("div.museums-register-frm").hide(),$("div.museums-login-frm").show(),$("button.suggest-update-login").show()):($("button.suggest-update-next").show(),$("button.suggest-update-send").hide(),$("button.suggest-update-login").hide(),$("button.suggest-update-register").hide())}};$(document).ready(function(){suggestAndUpdate.init()}),function(n){gmcKN={markers:[],map:undefined,infowindow:undefined,debugMarker:undefined,debuginfo:undefined,geocoder:new google.maps.Geocoder,debug:{showGridLines:!1,showBoundaryMarker:!1},log:function(n){console&&console.log&&console.log(n)},round:function(n,t){return Math.round(n*Math.pow(10,t))/Math.pow(10,t)},zoomIn:function(){var n=gmcKN.map.getZoom();gmcKN.map.setZoom(n+1)},zoomOut:function(){var n=gmcKN.map.getZoom();gmcKN.map.setZoom(n-1)},mymap:{initialize:function(){var i=document.getElementById("gmcKN-map"),t;i!=null&&(t=new google.maps.LatLng(gmcKN.mymap.settings.mapCenterLat,gmcKN.mymap.settings.mapCenterLon,!0),gmcKN.map=new google.maps.Map(document.getElementById("gmcKN-map"),{zoom:gmcKN.mymap.settings.zoomLevel,center:t,scrollwheel:!1,navigationControl:!1,mapTypeControl:!1,draggable:!0,streetViewControl:!1,panControl:!0,zoomControl:!0,scaleControl:!0,mapTypeId:google.maps.MapTypeId.ROADMAP,minZoom:parseInt(n("#gmcKN-map-minzoomlevel").val()),maxZoom:30,disableDefaultUI:!0,styles:[{featureType:"water",elementType:"geometry.fill",stylers:[{visibility:"on"},{invert_lightness:!1},{color:"#3498db"},{weight:.1},{saturation:-1},{lightness:-1}]},{featureType:"road",elementType:"labels",stylers:[{visibility:"simplified"},{lightness:20}]},{featureType:"administrative.land_parcel",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"landscape.man_made",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"transit",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"road.local",elementType:"labels",stylers:[{visibility:"simplified"}]},{featureType:"road.local",elementType:"geometry",stylers:[{visibility:"simplified"}]},{featureType:"road.highway",elementType:"labels",stylers:[{visibility:"simplified"}]},{featureType:"poi",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"road.arterial",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"water",elementType:"all",stylers:[{hue:"#a1cdfc"},{saturation:30},{lightness:49}]},{featureType:"road.highway",elementType:"geometry",stylers:[{hue:"#f49935"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{hue:"#fad959"}]}]}),gmcKN.infowindow=new google.maps.InfoWindow,gmcKN.debuginfo=new google.maps.InfoWindow,google.maps.event.addListener(gmcKN.map,"click",function(){n("#gmcKN-map-viewtype").val()==1&&n("div.btn-expand-map a").click()}),google.maps.event.addListener(gmcKN.map,"idle",function(){gmcKN.mymap.events.getBounds();n("#maploading").css("z-index","-1")}),google.maps.event.addListener(gmcKN.map,"zoom_changed",function(){document.getElementById("gmcKN-zoomInfo").innerHTML="&nbsp;Zoom: "+gmcKN.map.getZoom()+".  ";document.getElementById("gmcKN-Clustering-span").style.display=gmcKN.map.getZoom()<gmcKN.mymap.settings.alwaysClusteringEnabledWhenZoomLevelLess?"none":"block"}),google.maps.event.trigger(gmcKN.map,"zoom_changed"))},settings:{mapCenterLat:n("#maineumap_lat").val(),mapCenterLon:n("#maineumap_lng").val(),zoomLevel:parseInt(n("#gmcKN-map-zoomlevel").val()),alwaysClusteringEnabledWhenZoomLevelLess:2,jsonGetMarkersUrl:"/MapCluster/GetMarkers",jsonGetMarkerInfoUrl:"/MapCluster/GetMarkerInfo",clusterImage:{src:"/areas/eu/assets/images/clusters/cluster2.png",height:60,width:60,offsetH:30,offsetW:30},pinImage:{src:"/areas/eu/assets/images/markers/pin24.png",height:24,width:24,offsetH:0,offsetW:0},pinImage1:{src:"/areas/eu/assets/images/markers/court.png",height:37,width:32,offsetH:0,offsetW:0},pinImage2:{src:"/areas/eu/assets/images/markers/court_r.png",height:37,width:32,offsetH:0,offsetW:0},pinImage3:{src:"/areas/eu/assets/images/markers/court_g.png",height:37,width:32,offsetH:0,offsetW:0},pinImage4:{src:"/areas/eu/assets/images/markers/multiple.png",height:37,width:32,offsetH:0,offsetW:0}},events:{getBounds:function(){var t=gmcKN.map.getBounds(),n,i,r;NE=t.getNorthEast();SW=t.getSouthWest();mapData=[];mapData.neLat=gmcKN.round(NE.lat(),7);mapData.neLon=gmcKN.round(NE.lng(),7);mapData.swLat=gmcKN.round(SW.lat(),7);mapData.swLon=gmcKN.round(SW.lng(),7);mapData.zoomLevel=gmcKN.map.getZoom();gmcKN.debug.showBoundaryMarker&&(gmcKN.debugMarker=gmcKN.debugMarker||new google.maps.Marker({map:gmcKN.map,zIndex:1}),n=gmcKN.map.getCenter(),gmcKN.debugMarker.setPosition(n),i=n.lng()+"; "+n.lat()+" zoom: "+gmcKN.map.getZoom()+"<br />SW: "+SW.lng()+" ; "+SW.lat()+"<br/>NE: "+NE.lng()+" ; "+NE.lat(),gmcKN.debuginfo.setContent(i),gmcKN.debuginfo.open(gmcKN.map,gmcKN.debugMarker));r="_";gmcKN.mymap.events.loadMarkers(mapData)},polys:[],loadMarkers:function(t){var i=new google.maps.MarkerImage(gmcKN.mymap.settings.clusterImage.src,new google.maps.Size(gmcKN.mymap.settings.clusterImage.width,gmcKN.mymap.settings.clusterImage.height),null,new google.maps.Point(gmcKN.mymap.settings.clusterImage.offsetW,gmcKN.mymap.settings.clusterImage.offsetH)),r=new google.maps.MarkerImage(gmcKN.mymap.settings.pinImage.src,new google.maps.Size(gmcKN.mymap.settings.pinImage.width,gmcKN.mymap.settings.pinImage.height),null,null),u=new google.maps.MarkerImage(gmcKN.mymap.settings.pinImage1.src,new google.maps.Size(gmcKN.mymap.settings.pinImage1.width,gmcKN.mymap.settings.pinImage1.height),null,null),f=new google.maps.MarkerImage(gmcKN.mymap.settings.pinImage2.src,new google.maps.Size(gmcKN.mymap.settings.pinImage2.width,gmcKN.mymap.settings.pinImage2.height),null,null),e=new google.maps.MarkerImage(gmcKN.mymap.settings.pinImage3.src,new google.maps.Size(gmcKN.mymap.settings.pinImage3.width,gmcKN.mymap.settings.pinImage3.height),null,null),o=new google.maps.MarkerImage(gmcKN.mymap.settings.pinImage4.src,new google.maps.Size(gmcKN.mymap.settings.pinImage4.width,gmcKN.mymap.settings.pinImage4.height),null,null),s={nelat:t.neLat,nelon:t.neLon,swlat:t.swLat,swlon:t.swLon,zoomLevel:t.zoomLevel,filter:gmcKN.getFilterValues(),w:Math.max(document.documentElement.clientWidth,window.innerWidth||0),h:Math.max(document.documentElement.clientHeight,window.innerHeight||0),loadt:n("#gmcKN-map").data("loadt"),loadc:n("#gmcKN-map").data("loadc"),tag:n("#gmcKN-map").data("tag")};n.ajax({type:"GET",url:gmcKN.mymap.settings.jsonGetMarkersUrl,data:s,contentType:"application/json; charset=utf-8",dataType:"json",success:function(t){var s,h;if(t.Ok==="0"){gmcKN.log(t.EMsg);document.getElementById("gmcKN-errorMsg").innerHTML=t.EMsg;return}s="";t.Mia>0&&(s="<br/>&nbsp;Mia: "+t.Mia);document.getElementById("gmcKN-markersCount").innerHTML="&nbsp;Markers: "+t.Count+" "+s;document.getElementById("gmcKN-response-time").innerHTML="&nbsp;"+t.Msec;document.getElementById("gmcKN-cacheInfo").innerHTML="&nbsp;Cache hit: "+(t.Cache?"true":"false");n.each(gmcKN.mymap.events.polys,function(){this.setMap(null)});gmcKN.mymap.events.polys.length=0;gmcKN.debug.showGridLines===!0&&t.Polylines&&n.each(t.Polylines,function(){var n=this,i=n.X,r=n.Y,u=n.X2,f=n.Y2,t=!1,e=new google.maps.Polyline({path:[new google.maps.LatLng(r,i,t),new google.maps.LatLng(f,u,t)],strokeColor:"#f00",strokeOpacity:1,strokeWeight:2,map:gmcKN.map});gmcKN.mymap.events.polys.push(e)});h=gmcKN.dynamicUpdateMarkers(t.Markers,gmcKN.markers,gmcKN.getKey,!0);n.each(h,function(){var t=this,y=t.Y,p=t.X,l=new google.maps.LatLng(y,p,!0),a,s,c,h,v;a=t.C===1?t.T===1?u:t.T===2?f:t.T===3?e:t.T===4?o:r:i;s=new google.maps.Marker({position:l,map:gmcKN.map,icon:a,zIndex:1});c=gmcKN.getKey(t);s.set("key",c);t.C===1?google.maps.event.addListener(s,"click",function(){gmcKN.mymap.events.popupWindow(s,t);n("#gmcKN-map-viewtype").val()==1&&n("div.btn-expand-map a").click()}):(google.maps.event.addListener(s,"click",function(){n("#gmcKN-map-viewtype").val()==1&&n("div.btn-expand-map a").click();var t=gmcKN.map.getZoom(),i;i=t<=8?3:t<=12?2:1;gmcKN.map.setZoom(t+i);gmcKN.map.setCenter(l)}),h=new gmcKN.Label({map:gmcKN.map},c,t.C2),h.bindTo("position",s,"position"),h.bindTo("visible",s,"visible"),v=t.C2===undefined?"error":t.C2,h.set("text",v));gmcKN.markers.push(s)});h.length=0},error:function(n){var t="readyState: "+n.readyState+"\nstatus: "+n.status+"\nresponseText: "+n.responseText;gmcKN.log(t);document.getElementById("gmcKN-errorMsg").innerHTML=t}})},popupWindow:function(t,i){var f={content:"",disableAutoPan:!1,maxWidth:0,alignBottom:!1,pixelOffset:new google.maps.Size(-16,-11),zIndex:-10,boxClass:"info-windows",closeBoxURL:"/areas/eu/content/img/close-i.png",pane:"floatPane",enableEventPropagation:!1,infoBoxClearance:"20px",position:t.position},r=new window.InfoBox(f),u;n("div.info-windows>img").click();r.open(t.get("map"),t);r.setContent('<div style="padding 15px; text-align:center;"><img src="/Areas/Eu/Content/img/ajax-loader.gif"><\/div>');u=n("#gmcKN-map-portal").val();n("#icommap").length>0?n.get("/document/visitcard/"+i.I+"?url=imd&M="+i.M+"&portal="+u,function(n){r.setContent(n);try{var u=t.position,i=t.get("map");i.setCenter(u);i.panBy(0,200)}catch(f){}}):n.get("/document/visitcard/"+i.I+"?M="+i.M+"&portal="+u,function(n){r.setContent(n);try{var u=t.position,i=t.get("map");i.setCenter(u);i.panBy(0,200)}catch(f){}})}}},getKey:function(n){var t=n.X+"__"+n.Y+"__"+n.C+"__"+n.T;return t.replace(/\./g,"_")},toggleVal:function(n){return n.reduce(function(n,t,i){return n+t*Math.pow(2,i)},0)},getFilterValues:function(){var t="",i=n(t="#gmcKN-Clustering")?n(t).attr("checked")==="checked"?1:0:0,r=n(t="#gmcKN-Lines")?n(t).attr("checked")==="checked"?1:0:0,u=n(t="#gmcKN-Type1")?n(t).attr("checked")==="checked"?1:0:0,f=n(t="#gmcKN-Type2")?n(t).attr("checked")==="checked"?1:0:0,e=n(t="#gmcKN-Type3")?n(t).attr("checked")==="checked"?1:0:0,o=n(t="#gmcKN_Type4")?n(t).attr("checked")==="checked"?1:0:0,s=n(t="#gmcKN_Type5")?n(t).attr("checked")==="checked"?1:0:0,h=n(t="#gmcKN_Type6")?n(t).attr("checked")==="checked"?1:0:0,c=n(t="#gmcKN_Type7")?n(t).attr("checked")==="checked"?1:0:0,l=n(t="#gmcKN_Type8")?n(t).attr("checked")==="checked"?1:0:0,a=n(t="#gmcKN_Type9")?n(t).attr("checked")==="checked"?1:0:0,v=gmcKN.toggleVal([i,r,u,f,e,o,s,h,c,l,a]);return v+""},checkboxClicked:function(n){n==="gmc_meta_lines"&&(gmcKN.debug.showGridLines=!gmcKN.debug.showGridLines);gmcKN.mymap.events.getBounds()},Label:function(n,t,i){var u,r;this.setValues(n);u=this.span_=document.createElement("span");u.className=i>=1e4?"gmcKN_clustersize5":i>=1e3?"gmcKN_clustersize4":i>=100?"gmcKN_clustersize3":i>=10?"gmcKN_clustersize2":"gmcKN_clustersize1";r=this.div_=document.createElement("div");r.appendChild(u);r.className="countinfo_"+t;r.style.cssText="position: absolute; display: none;"},dynamicUpdateMarkers:function(t,i,r,u){var s=[],a=[],h,e,v=[],f,y,c,o,l;for(f in t)t.hasOwnProperty(f)&&(h=t[f],e=r(h),s[e]=h);for(f in i)i.hasOwnProperty(f)&&(c=i[f],e=c.get("key"),e!==0&&(a[e]=1),e===undefined&&gmcKN.log("error in code: key"));for(f in t)t.hasOwnProperty(f)&&(h=t[f],e=r(h),a[e]===undefined&&(s[e]===undefined&&gmcKN.log("error in code: key2"),y=s[e],v.push(y)));for(f in i)i.hasOwnProperty(f)&&(c=i[f],e=c.get("key"),e!==0&&s[e]===undefined&&(u===!0&&n(".countinfo_"+e).remove(),i[f].set("key",0),i[f].setMap(null)));o=[];for(f in i)i.hasOwnProperty(f)&&(e=i[f].get("key"),e!==0&&(l=i[f],o.push(l)));i.length=0;for(f in o)o.hasOwnProperty(f)&&(l=o[f],i.push(l));return s.length=0,a.length=0,o.length=0,v}};gmcKN.Label.prototype=new google.maps.OverlayView;gmcKN.Label.prototype.onAdd=function(){var i=this.getPanes().overlayLayer,t;i.appendChild(this.div_);t=this;this.listeners_=[google.maps.event.addListener(this,"idle",function(){t.draw();n("#maploading").css("z-index","-1")}),google.maps.event.addListener(this,"visible_changed",function(){t.draw()}),google.maps.event.addListener(this,"position_changed",function(){t.draw()}),google.maps.event.addListener(this,"text_changed",function(){t.draw()})]};gmcKN.Label.prototype.onRemove=function(){this.div_.parentNode.removeChild(this.div_);for(var n=0,t=this.listeners_.length;n<t;++n)google.maps.event.removeListener(this.listeners_[n])};gmcKN.Label.prototype.draw=function(){var r=this.getProjection(),t=r.fromLatLngToDivPixel(this.get("position")),n=this.div_,i;n.style.left=t.x+"px";n.style.top=t.y+"px";i=this.get("visible");n.style.display=i?"block":"none";this.span_.innerHTML=this.get("text").toString()};google.maps.event.addDomListener(window,"load",gmcKN.mymap.initialize)}(jQuery)