text: function sm_format_twitter(e){for(var t=[],i=0;i<e.length;i++){var n=e[i].user.screen_name,r=e[i].user.name,s=e[i].user.profile_image_url_https,a=e[i].text.replace(/((https?|s?ftp|ssh)\:\/\/[^"\s\<\>]*[^.,;'">\:\s\<\>\)\]\!])/g,function(e){return'<a href="'+e+'" target="_blank">'+e+"</a>"}).replace(/\B@([_a-z0-9]+)/gi,function(e){return e.charAt(0)+'<a href="https://twitter.com/'+e.substring(1)+'" target="_blank">'+e.substring(1)+"</a>"});t.push('<li><i class="icon-twitter"></i><a href="https://twitter.com/'+n+'" class="twitter-avatar" target="_blank"><img src="'+s+'" alt="'+r+'" title="'+r+'"></a><span>'+a+'</span><small><a href="https://twitter.com/'+n+"/statuses/"+e[i].id_str+'" target="_blank">'+relative_time(e[i].created_at)+"</a></small></li>")}return t.join("")}function sm_format_twitter2(e){for(var t=[],i=0;i<e.length;i++){var n=e[i].user.screen_name,r=e[i].text.replace(/((https?|s?ftp|ssh)\:\/\/[^"\s\<\>]*[^.,;'">\:\s\<\>\)\]\!])/g,function(e){return'<a href="'+e+'" target="_blank">'+e+"</a>"}).replace(/\B@([_a-z0-9]+)/gi,function(e){return e.charAt(0)+'<a href="https://twitter.com/'+e.substring(1)+'" target="_blank">'+e.substring(1)+"</a>"});t.push('<div class="slide"><span>'+r+'</span><small><a href="https://twitter.com/'+n+"/statuses/"+e[i].id_str+'" target="_blank">'+relative_time(e[i].created_at)+"</a></small></div>")}return t.join("")}function sm_format_twitter3(e){for(var t=[],i=0;i<e.length;i++){var n=e[i].user.screen_name,r=e[i].text.replace(/((https?|s?ftp|ssh)\:\/\/[^"\s\<\>]*[^.,;'">\:\s\<\>\)\]\!])/g,function(e){return'<a href="'+e+'" target="_blank">'+e+"</a>"}).replace(/\B@([_a-z0-9]+)/gi,function(e){return e.charAt(0)+'<a href="https://twitter.com/'+e.substring(1)+'" target="_blank">'+e.substring(1)+"</a>"});t.push('<div class="slide"><div class="testi-content"><p>'+r+'</p><div class="testi-meta"><span><a href="https://twitter.com/'+n+"/statuses/"+e[i].id_str+'" target="_blank">'+relative_time(e[i].created_at)+"</a></span></div></div></div>")}return t.join("")}function relative_time(e){var t=e.split(" ");e=t[1]+" "+t[2]+", "+t[5]+" "+t[3];var i=Date.parse(e),n=arguments.length>1?arguments[1]:new Date,r=parseInt((n.getTime()-i)/1e3);return(r+=60*n.getTimezoneOffset())<60?"less than a minute ago":r<120?"about a minute ago":r<3600?parseInt(r/60).toString()+" minutes ago":r<7200?"about an hour ago":r<86400?"about "+parseInt(r/3600).toString()+" hours ago":r<172800?"1 day ago":parseInt(r/86400).toString()+" days ago"}function onYouTubeIframeAPIReady(){ytp.YTAPIReady||(ytp.YTAPIReady=!0,jQuery(document).trigger("YTAPIReady"))}function uncamel(e){return e.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()})}function setUnit(e,t){return"string"!=typeof e||e.match(/^[\-0-9\.]+jQuery/)?""+e+t:e}function setFilter(e,t,i){var n=uncamel(t),r=jQuery.browser.mozilla?"":jQuery.CSS.sfx;e[r+"filter"]=e[r+"filter"]||"",i=setUnit(i>jQuery.CSS.filters[t].max?jQuery.CSS.filters[t].max:i,jQuery.CSS.filters[t].unit),e[r+"filter"]+=n+"("+i+") ",delete e[t]}function isTouchSupported(){var e=nAgt.msMaxTouchPoints,t="ontouchstart"in document.createElement("div");return!(!e&&!t)}function isTouchSupported(){var e=nAgt.msMaxTouchPoints,t="ontouchstart"in document.createElement("div");return!(!e&&!t)}jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,t,i,n,r){return jQuery.easing[jQuery.easing.def](e,t,i,n,r)},easeInQuad:function(e,t,i,n,r){return n*(t/=r)*t+i},easeOutQuad:function(e,t,i,n,r){return-n*(t/=r)*(t-2)+i},easeInOutQuad:function(e,t,i,n,r){return(t/=r/2)<1?n/2*t*t+i:-n/2*(--t*(t-2)-1)+i},easeInCubic:function(e,t,i,n,r){return n*(t/=r)*t*t+i},easeOutCubic:function(e,t,i,n,r){return n*((t=t/r-1)*t*t+1)+i},easeInOutCubic:function(e,t,i,n,r){return(t/=r/2)<1?n/2*t*t*t+i:n/2*((t-=2)*t*t+2)+i},easeInQuart:function(e,t,i,n,r){return n*(t/=r)*t*t*t+i},easeOutQuart:function(e,t,i,n,r){return-n*((t=t/r-1)*t*t*t-1)+i},easeInOutQuart:function(e,t,i,n,r){return(t/=r/2)<1?n/2*t*t*t*t+i:-n/2*((t-=2)*t*t*t-2)+i},easeInQuint:function(e,t,i,n,r){return n*(t/=r)*t*t*t*t+i},easeOutQuint:function(e,t,i,n,r){return n*((t=t/r-1)*t*t*t*t+1)+i},easeInOutQuint:function(e,t,i,n,r){return(t/=r/2)<1?n/2*t*t*t*t*t+i:n/2*((t-=2)*t*t*t*t+2)+i},easeInSine:function(e,t,i,n,r){return-n*Math.cos(t/r*(Math.PI/2))+n+i},easeOutSine:function(e,t,i,n,r){return n*Math.sin(t/r*(Math.PI/2))+i},easeInOutSine:function(e,t,i,n,r){return-n/2*(Math.cos(Math.PI*t/r)-1)+i},easeInExpo:function(e,t,i,n,r){return 0==t?i:n*Math.pow(2,10*(t/r-1))+i},easeOutExpo:function(e,t,i,n,r){return t==r?i+n:n*(1-Math.pow(2,-10*t/r))+i},easeInOutExpo:function(e,t,i,n,r){return 0==t?i:t==r?i+n:(t/=r/2)<1?n/2*Math.pow(2,10*(t-1))+i:n/2*(2-Math.pow(2,-10*--t))+i},easeInCirc:function(e,t,i,n,r){return-n*(Math.sqrt(1-(t/=r)*t)-1)+i},easeOutCirc:function(e,t,i,n,r){return n*Math.sqrt(1-(t=t/r-1)*t)+i},easeInOutCirc:function(e,t,i,n,r){return(t/=r/2)<1?-n/2*(Math.sqrt(1-t*t)-1)+i:n/2*(Math.sqrt(1-(t-=2)*t)+1)+i},easeInElastic:function(e,t,i,n,r){var s=1.70158,a=0,o=n;if(0==t)return i;if(1==(t/=r))return i+n;if(a||(a=.3*r),o<Math.abs(n)){o=n;s=a/4}else s=a/(2*Math.PI)*Math.asin(n/o);return-o*Math.pow(2,10*(t-=1))*Math.sin((t*r-s)*(2*Math.PI)/a)+i},easeOutElastic:function(e,t,i,n,r){var s=1.70158,a=0,o=n;if(0==t)return i;if(1==(t/=r))return i+n;if(a||(a=.3*r),o<Math.abs(n)){o=n;s=a/4}else s=a/(2*Math.PI)*Math.asin(n/o);return o*Math.pow(2,-10*t)*Math.sin((t*r-s)*(2*Math.PI)/a)+n+i},easeInOutElastic:function(e,t,i,n,r){var s=1.70158,a=0,o=n;if(0==t)return i;if(2==(t/=r/2))return i+n;if(a||(a=r*(.3*1.5)),o<Math.abs(n)){o=n;s=a/4}else s=a/(2*Math.PI)*Math.asin(n/o);return t<1?o*Math.pow(2,10*(t-=1))*Math.sin((t*r-s)*(2*Math.PI)/a)*-.5+i:o*Math.pow(2,-10*(t-=1))*Math.sin((t*r-s)*(2*Math.PI)/a)*.5+n+i},easeInBack:function(e,t,i,n,r,s){return null==s&&(s=1.70158),n*(t/=r)*t*((s+1)*t-s)+i},easeOutBack:function(e,t,i,n,r,s){return null==s&&(s=1.70158),n*((t=t/r-1)*t*((s+1)*t+s)+1)+i},easeInOutBack:function(e,t,i,n,r,s){return null==s&&(s=1.70158),(t/=r/2)<1?n/2*(t*t*((1+(s*=1.525))*t-s))+i:n/2*((t-=2)*t*((1+(s*=1.525))*t+s)+2)+i},easeInBounce:function(e,t,i,n,r){return n-jQuery.easing.easeOutBounce(e,r-t,0,n,r)+i},easeOutBounce:function(e,t,i,n,r){return(t/=r)<1/2.75?n*(7.5625*t*t)+i:t<2/2.75?n*(7.5625*(t-=1.5/2.75)*t+.75)+i:t<2.5/2.75?n*(7.5625*(t-=2.25/2.75)*t+.9375)+i:n*(7.5625*(t-=2.625/2.75)*t+.984375)+i},easeInOutBounce:function(e,t,i,n,r){return t<r/2?.5*jQuery.easing.easeInBounce(e,2*t,0,n,r)+i:.5*jQuery.easing.easeOutBounce(e,2*t-r,0,n,r)+.5*n+i}}),function(e){"use strict";e.fn.fitVids=function(t){var i={customSelector:null,ignore:null};if(!document.getElementById("fit-vids-style")){var n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("div");r.innerHTML='<p>x</p><style id="fit-vids-style">.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}</style>',n.appendChild(r.childNodes[1])}return t&&e.extend(i,t),this.each(function(){var t=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]',"object","embed"];i.customSelector&&t.push(i.customSelector);var n=".fitvidsignore";i.ignore&&(n=n+", "+i.ignore);var r=e(this).find(t.join(","));(r=(r=r.not("object object")).not(n)).each(function(t){var i=e(this);if(!(i.parents(n).length>0||"embed"===this.tagName.toLowerCase()&&i.parent("object").length||i.parent(".fluid-width-video-wrapper").length)){i.css("height")||i.css("width")||!isNaN(i.attr("height"))&&!isNaN(i.attr("width"))||(i.attr("height",9),i.attr("width",16));var r=("object"===this.tagName.toLowerCase()||i.attr("height")&&!isNaN(parseInt(i.attr("height"),10))?parseInt(i.attr("height"),10):i.height())/(isNaN(parseInt(i.attr("width"),10))?i.width():parseInt(i.attr("width"),10));if(!i.attr("id")){var s="fitvid"+t;i.attr("id",s)}i.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top",100*r+"%"),i.removeAttr("height").removeAttr("width")}})})}}(window.jQuery||window.Zepto),function(e,t){"use strict";var i,n,r,s,a,o,l,u,c,d,h,p,f,m,g,v,y,b=(i="sf-breadcrumb",n="sf-js-enabled",r="sf-with-ul",s="sf-arrows",a=function(){var t=/^(?![\w\W]*Windows Phone)[\w\W]*(iPhone|iPad|iPod)/i.test(navigator.userAgent);return t&&e("html").css("cursor","pointer").on("click",e.noop),t}(),o=function(){var e=document.documentElement.style;return"behavior"in e&&"fill"in e&&/iemobile/i.test(navigator.userAgent)}(),l=!!t.PointerEvent,u=function(e,t,i){var r=n;t.cssArrows&&(r+=" "+s),e[i?"addClass":"removeClass"](r)},c=function(e,t){var i=t?"addClass":"removeClass";e.children("a")[i](r)},d=function(e){var t=e.css("ms-touch-action"),i=e.css("touch-action");i="pan-y"===(i=i||t)?"auto":"pan-y",e.css({"ms-touch-action":i,"touch-action":i})},h=function(e){return e.closest("."+n)},p=function(e){return h(e).data("sfOptions")},f=function(){var t=e(this),i=p(t);clearTimeout(i.sfTimer),t.siblings().superfish("hide").end().superfish("show")},m=function(t){t.retainPath=e.inArray(this[0],t.$path)>-1,this.superfish("hide"),this.parents("."+t.hoverClass).length||(t.onIdle.call(h(this)),t.$path.length&&e.proxy(f,t.$path)())},g=function(){var t=e(this),i=p(t);a?e.proxy(m,t,i)():(clearTimeout(i.sfTimer),i.sfTimer=setTimeout(e.proxy(m,t,i),i.delay))},v=function(t){var i=e(this),n=p(i),r=i.siblings(t.data.popUpSelector);return!1===n.onHandleTouch.call(r)?this:void(r.length>0&&r.is(":hidden")&&(i.one("click.superfish",!1),"MSPointerDown"===t.type||"pointerdown"===t.type?i.trigger("focus"):e.proxy(f,i.parent("li"))()))},y=function(t,i){var n="li:has("+i.popUpSelector+")";e.fn.hoverIntent&&!i.disableHI?t.hoverIntent(f,g,n):t.on("mouseenter.superfish",n,f).on("mouseleave.superfish",n,g);var r="MSPointerDown.superfish";l&&(r="pointerdown.superfish"),a||(r+=" touchend.superfish"),o&&(r+=" mousedown.superfish"),t.on("focusin.superfish","li",f).on("focusout.superfish","li",g).on(r,"a",i,v)},{hide:function(t){if(this.length){var i=p(this);if(!i)return this;var n=!0===i.retainPath?i.$path:"",r=this.find("li."+i.hoverClass).add(this).not(n).removeClass(i.hoverClass).children(i.popUpSelector),s=i.speedOut;if(t&&(r.show(),s=0),i.retainPath=!1,!1===i.onBeforeHide.call(r))return this;r.stop(!0,!0).animate(i.animationOut,s,function(){var t=e(this);i.onHide.call(t)})}return this},show:function(){var e=p(this);if(!e)return this;var t=this.addClass(e.hoverClass).children(e.popUpSelector);return!1===e.onBeforeShow.call(t)?this:(t.stop(!0,!0).animate(e.animation,e.speed,function(){e.onShow.call(t)}),this)},destroy:function(){return this.each(function(){var t,n=e(this),r=n.data("sfOptions");return!!r&&(t=n.find(r.popUpSelector).parent("li"),clearTimeout(r.sfTimer),u(n,r),c(t),d(n),n.off(".superfish").off(".hoverIntent"),t.children(r.popUpSelector).attr("style",function(e,t){return t.replace(/display[^;]+;?/g,"")}),r.$path.removeClass(r.hoverClass+" "+i).addClass(r.pathClass),n.find("."+r.hoverClass).removeClass(r.hoverClass),r.onDestroy.call(n),void n.removeData("sfOptions"))})},init:function(t){return this.each(function(){var n=e(this);if(n.data("sfOptions"))return!1;var r=e.extend({},e.fn.superfish.defaults,t),s=n.find(r.popUpSelector).parent("li");r.$path=function(t,n){return t.find("li."+n.pathClass).slice(0,n.pathLevels).addClass(n.hoverClass+" "+i).filter(function(){return e(this).children(n.popUpSelector).hide().show().length}).removeClass(n.pathClass)}(n,r),n.data("sfOptions",r),u(n,r,!0),c(s,!0),d(n),y(n,r),s.not("."+i).superfish("hide",!0),r.onInit.call(this)})}});e.fn.superfish=function(t,i){return b[t]?b[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?e.error("Method "+t+" does not exist on jQuery.fn.superfish"):b.init.apply(this,arguments)},e.fn.superfish.defaults={popUpSelector:"ul,.sf-mega",hoverClass:"sfHover",pathClass:"overrideThisToUse",pathLevels:1,delay:800,animation:{opacity:"show"},animationOut:{opacity:"hide"},speed:"normal",speedOut:"fast",cssArrows:!0,disableHI:!1,onInit:e.noop,onBeforeShow:e.noop,onShow:e.noop,onBeforeHide:e.noop,onHide:e.noop,onIdle:e.noop,onDestroy:e.noop,onHandleTouch:e.noop}}(jQuery,window),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):jQuery&&!jQuery.fn.hoverIntent&&e(jQuery)}(function(e){"use strict";var t,i,n={interval:100,sensitivity:6,timeout:0},r=0,s=function(e){t=e.pageX,i=e.pageY},a=function(e,n,r,o){if(Math.sqrt((r.pX-t)*(r.pX-t)+(r.pY-i)*(r.pY-i))<o.sensitivity)return n.off(r.event,s),delete r.timeoutId,r.isActive=!0,e.pageX=t,e.pageY=i,delete r.pX,delete r.pY,o.over.apply(n[0],[e]);r.pX=t,r.pY=i,r.timeoutId=setTimeout(function(){a(e,n,r,o)},o.interval)};e.fn.hoverIntent=function(t,i,o){var l=r++,u=e.extend({},n);e.isPlainObject(t)?(u=e.extend(u,t),e.isFunction(u.out)||(u.out=u.over)):u=e.isFunction(i)?e.extend(u,{over:t,out:i,selector:o}):e.extend(u,{over:t,out:t,selector:i});var c=function(t){var i=e.extend({},t),n=e(this),r=n.data("hoverIntent");r||n.data("hoverIntent",r={});var o=r[l];o||(r[l]=o={id:l}),o.timeoutId&&(o.timeoutId=clearTimeout(o.timeoutId));var c=o.event="mousemove.hoverIntent.hoverIntent"+l;if("mouseenter"===t.type){if(o.isActive)return;o.pX=i.pageX,o.pY=i.pageY,n.off(c,s).on(c,s),o.timeoutId=setTimeout(function(){a(i,n,o,u)},u.interval)}else{if(!o.isActive)return;n.off(c,s),o.timeoutId=setTimeout(function(){!function(e,t,i,n){delete t.data("hoverIntent")[i.id],n.apply(t[0],[e])}(i,n,o,u.out)},u.timeout)}};return this.on({"mouseenter.hoverIntent":c,"mouseleave.hoverIntent":c},u.selector)}}),function(e,t,i){"object"==typeof module&&module&&"object"==typeof module.exports?module.exports=i:(e[t]=i,"function"==typeof define&&define.amd&&define(t,[],function(){return i}))}(this,"jRespond",function(e,t,i){"use strict";return function(e){var t=[],n=[],r=e,s="",a="",o=0,l=500,u=function(e){var r=e.breakpoint,o=e.enter||i;t.push(e),n.push(!1),d(r)&&(o!==i&&o.call(null,{entering:s,exiting:a}),n[t.length-1]=!0)},c=function(){for(var e=[],r=[],o=0;o<t.length;o++){var l=t[o].breakpoint,u=t[o].enter||i,c=t[o].exit||i;"*"===l?(u!==i&&e.push(u),c!==i&&r.push(c)):d(l)?(u===i||n[o]||e.push(u),n[o]=!0):(c!==i&&n[o]&&r.push(c),n[o]=!1)}for(var h={entering:s,exiting:a},p=0;p<r.length;p++)r[p].call(null,h);for(var f=0;f<e.length;f++)e[f].call(null,h)},d=function(e){if("object"==typeof e){if(e.join().indexOf(s)>=0)return!0}else{if("*"===e)return!0;if("string"==typeof e&&s===e)return!0}},h=function(){var e="number"!=typeof window.innerWidth?0!==document.documentElement.clientWidth?document.documentElement.clientWidth:document.body.clientWidth:window.innerWidth;e!==o?(l=100,function(e){for(var t=!1,i=0;i<r.length;i++)if(e>=r[i].enter&&e<=r[i].exit){t=!0;break}t&&s!==r[i].label?(a=s,s=r[i].label,c()):t||""===s||(s="",c())}(e)):l=500,o=e,setTimeout(h,l)};return h(),{addFunc:function(e){!function(e){if(e.length===i)u(e);else for(var t=0;t<e.length;t++)u(e[t])}(e)},getBreakpoint:function(){return s}}}}(0,this.document)),function(e){var t=0;e.fn.scrolled=function(i,n){"function"==typeof i&&(n=i,i=300);var r="scrollTimer"+t++;this.scroll(function(){var t=e(this),s=t.data(r);s&&clearTimeout(s),s=setTimeout(function(){t.removeData(r),n.call(t[0])},i),t.data(r,s)})}}(jQuery),function(e){e.fn.jflickrfeed=function(t,i){var n,r=(t=e.extend(!0,{flickrbase:"https://api.flickr.com/services/feeds/",feedapi:"photos_public.gne",limit:20,qstrings:{lang:"en-us",format:"json",jsoncallback:"?"},cleanDescription:!0,useTemplate:!0,itemTemplate:"",itemCallback:function(){}},t)).flickrbase+t.feedapi+"?",s=!0;for(n in t.qstrings)s||(r+="&"),r+=n+"="+t.qstrings[n],s=!1;return e(this).each(function(){var n=e(this),s=this;e.getJSON(r,function(r){e.each(r.items,function(e,i){var r,a,o,l;if(e<t.limit){if(t.cleanDescription&&(r=/<p>(.*?)<\/p>/g,a=i.description,r.test(a)&&(i.description=a.match(r)[2],void 0!==i.description&&(i.description=i.description.replace("<p>","").replace("</p>","")))),i.image_s=i.media.m.replace("_m","_s"),i.image_t=i.media.m.replace("_m","_t"),i.image_m=i.media.m.replace("_m","_m"),i.image=i.media.m.replace("_m",""),i.image_b=i.media.m.replace("_m","_b"),i.image_q=i.media.m.replace("_m","_q"),delete i.media,t.useTemplate){for(o in l=t.itemTemplate,i)r=new RegExp("{{"+o+"}}","g"),l=l.replace(r,i[o]);n.append(l)}t.itemCallback.call(s,i)}}),e.isFunction(i)&&i.call(s,r)})})}}(jQuery),function(){var e;e=function(){function e(e,t){var i,n;if(this.options={target:"instafeed",get:"popular",resolution:"thumbnail",sortBy:"none",links:!0,mock:!1,useHttp:!1},"object"==typeof e)for(i in e)n=e[i],this.options[i]=n;this.context=null!=t?t:this,this.unique=this._genKey()}return e.prototype.hasNext=function(){return"string"==typeof this.context.nextUrl&&this.context.nextUrl.length>0},e.prototype.next=function(){return!!this.hasNext()&&this.run(this.context.nextUrl)},e.prototype.run=function(t){var i,n;if("string"!=typeof this.options.clientId&&"string"!=typeof this.options.accessToken)throw new Error("Missing clientId or accessToken.");if("string"!=typeof this.options.accessToken&&"string"!=typeof this.options.clientId)throw new Error("Missing clientId or accessToken.");return null!=this.options.before&&"function"==typeof this.options.before&&this.options.before.call(this),"undefined"!=typeof document&&null!==document&&((n=document.createElement("script")).id="instafeed-fetcher",n.src=t||this._buildUrl(),document.getElementsByTagName("head")[0].appendChild(n),i="instafeedCache"+this.unique,window[i]=new e(this.options,this),window[i].unique=this.unique),!0},e.prototype.parse=function(e){var t,i,n,r,s,a,o,l,u,c,d,h,p,f,m,g,v,y,b,w,T,_,x,C,S,E,P,I;if("object"!=typeof e){if(null!=this.options.error&&"function"==typeof this.options.error)return this.options.error.call(this,"Invalid JSON data"),!1;throw new Error("Invalid JSON response")}if(200!==e.meta.code){if(null!=this.options.error&&"function"==typeof this.options.error)return this.options.error.call(this,e.meta.error_message),!1;throw new Error("Error from Instagram: "+e.meta.error_message)}if(0===e.data.length){if(null!=this.options.error&&"function"==typeof this.options.error)return this.options.error.call(this,"No images were returned from Instagram"),!1;throw new Error("No images were returned from Instagram")}if(null!=this.options.success&&"function"==typeof this.options.success&&this.options.success.call(this,e),this.context.nextUrl="",null!=e.pagination&&(this.context.nextUrl=e.pagination.next_url),"none"!==this.options.sortBy)switch(S="least"===(E="random"===this.options.sortBy?["","random"]:this.options.sortBy.split("-"))[0],E[1]){case"random":e.data.sort(function(){return.5-Math.random()});break;case"recent":e.data=this._sortBy(e.data,"created_time",S);break;case"liked":e.data=this._sortBy(e.data,"likes.count",S);break;case"commented":e.data=this._sortBy(e.data,"comments.count",S);break;default:throw new Error("Invalid option for sortBy: '"+this.options.sortBy+"'.")}if("undefined"!=typeof document&&null!==document&&!1===this.options.mock){if(h=e.data,C=parseInt(this.options.limit,10),null!=this.options.limit&&h.length>C&&(h=h.slice(0,C)),a=document.createDocumentFragment(),null!=this.options.filter&&"function"==typeof this.options.filter&&(h=this._filter(h,this.options.filter)),null!=this.options.template&&"string"==typeof this.options.template){for(o="","","",I=document.createElement("div"),l=0,w=h.length;l<w;l++){if("object"!=typeof(c=(u=h[l]).images[this.options.resolution]))throw s="No image found for resolution: "+this.options.resolution+".",new Error(s);m="square",(g=c.width)>(f=c.height)&&(m="landscape"),g<f&&(m="portrait"),d=c.url,window.location.protocol.indexOf("http")>=0&&!this.options.useHttp&&(d=d.replace(/https?:\/\//,"//")),o+=this._makeTemplate(this.options.template,{model:u,id:u.id,link:u.link,type:u.type,image:d,width:g,height:f,orientation:m,caption:this._getObjectProperty(u,"caption.text"),likes:u.likes.count,comments:u.comments.count,location:this._getObjectProperty(u,"location.name")})}for(I.innerHTML=o,r=[],n=0,i=I.childNodes.length;n<i;)r.push(I.childNodes[n]),n+=1;for(y=0,T=r.length;y<T;y++)x=r[y],a.appendChild(x)}else for(b=0,_=h.length;b<_;b++){if(u=h[b],p=document.createElement("img"),"object"!=typeof(c=u.images[this.options.resolution]))throw s="No image found for resolution: "+this.options.resolution+".",new Error(s);d=c.url,window.location.protocol.indexOf("http")>=0&&!this.options.useHttp&&(d=d.replace(/https?:\/\//,"//")),p.src=d,!0===this.options.links?((t=document.createElement("a")).href=u.link,t.appendChild(p),a.appendChild(t)):a.appendChild(p)}if("string"==typeof(P=this.options.target)&&(P=document.getElementById(P)),null==P)throw s='No element with id="'+this.options.target+'" on page.',new Error(s);P.appendChild(a),document.getElementsByTagName("head")[0].removeChild(document.getElementById("instafeed-fetcher")),v="instafeedCache"+this.unique,window[v]=void 0;try{delete window[v]}catch(e){e}}return null!=this.options.after&&"function"==typeof this.options.after&&this.options.after.call(this),!0},e.prototype._buildUrl=function(){var e,t;switch("https://api.instagram.com/v1",this.options.get){case"popular":e="media/popular";break;case"tagged":if(!this.options.tagName)throw new Error("No tag name specified. Use the 'tagName' option.");e="tags/"+this.options.tagName+"/media/recent";break;case"location":if(!this.options.locationId)throw new Error("No location specified. Use the 'locationId' option.");e="locations/"+this.options.locationId+"/media/recent";break;case"user":if(!this.options.userId)throw new Error("No user specified. Use the 'userId' option.");e="users/"+this.options.userId+"/media/recent";break;default:throw new Error("Invalid option for get: '"+this.options.get+"'.")}return t="https://api.instagram.com/v1/"+e,null!=this.options.accessToken?t+="?access_token="+this.options.accessToken:t+="?client_id="+this.options.clientId,null!=this.options.limit&&(t+="&count="+this.options.limit),t+="&callback=instafeedCache"+this.unique+".parse"},e.prototype._genKey=function(){var e;return""+(e=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)})()+e()+e()+e()},e.prototype._makeTemplate=function(e,t){var i,n,r,s,a;for(n=/(?:\{{2})([\w\[\]\.]+)(?:\}{2})/,i=e;n.test(i);)s=i.match(n)[1],a=null!=(r=this._getObjectProperty(t,s))?r:"",i=i.replace(n,function(){return""+a});return i},e.prototype._getObjectProperty=function(e,t){var i,n;for(n=(t=t.replace(/\[(\w+)\]/g,".$1")).split(".");n.length;){if(i=n.shift(),!(null!=e&&i in e))return null;e=e[i]}return e},e.prototype._sortBy=function(e,t,i){var n;return n=function(e,n){var r,s;return r=this._getObjectProperty(e,t),s=this._getObjectProperty(n,t),i?r>s?1:-1:r<s?1:-1},e.sort(n.bind(this)),e},e.prototype._filter=function(e,t){var i,n,r,s;for(i=[],n=function(e){if(t(e))return i.push(e)},r=0,s=e.length;r<s;r++)n(e[r]);return i},e}(),function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof module&&module.exports?module.exports=t():e.Instafeed=t()}(this,function(){return e})}.call(this),function(e,t,i,n){"use strict";e.jribbble={};var r=null,s=["animated","attachments","debuts","playoffs","rebounds","teams"],a={token:"Jribbble: Missing Dribbble access token. Set one with $.jribbble.accessToken = YOUR_ACCESS_TOKEN. If you do not have an access token, you must register a new application at https://dribbble.com/account/applications/new",singular:function(e){return e.substr(0,e.length-1)},idRequired:function(e){return"Jribbble: You have to provide a "+this.singular(e)+' ID. ex: $.jribbble.%@("1234").'.replace(/%@/g,e)},subResource:function(e){return"Jribbble: You have to provide a "+this.singular(e)+' ID to get %@. ex: $.jribbble.%@("1234").%@()'.replace(/%@/g,e)},shotId:function(e){return"Jribbble: You have to provide a shot ID to get %@. ex: "+' $.jribbble.shots("1234").%@()'.replace(/%@/g,e)},commentLikes:'Jribbble: You have to provide a comment ID to get likes. ex:  $.jribbble.shots("1234").comments("456").likes()'},o=function(e,t){if(e&&"object"!=typeof e)return e;throw new Error(a.idRequired(t))},l=function(e){var t={};return e.forEach(function(e){t[e]=p.call(this,e)}.bind(this)),t},u=function(t){var i=e.param(t);return i?"?"+i:""},c=function(e){if(0!==e.length){var t=e[0],i=typeof t,n={};if("number"===i||"string"===i)s.indexOf(t)>-1?n.list=t:n.resource=t;else"object"===i&&(n=t);return n}},d=function(){var t=e.extend({},e.Deferred());return t.queue=new function(){return this.methods=[],this.response=null,this.flushed=!1,this.add=function(e){this.flushed?e(this.scope):this.methods.push(e)},this.flush=function(e){if(!this.flushed){for(this.scope=e,this.flushed=!0;this.methods[0];)this.methods.shift()(e);return e}},this},t.url="https://api.dribbble.com/v1",t.get=function(){return r?(e.ajax({type:"GET",url:this.url,beforeSend:function(e){e.setRequestHeader("Authorization","Bearer "+r)},success:function(e){this.resolve(e)}.bind(this),error:function(e){this.reject(e)}.bind(this)}),this):(console.error(a.token),!1)},t},h=function(t){return function(i){return e.extend(this,d()),this.queue.add(function(e){e.url+="/"+t+"/"+i}),setTimeout(function(){this.queue.flush(this).get()}.bind(this)),this}},p=function(e){return function(t){return this.queue.add(function(i){i.url+="/"+e+"/"+u(t||{})}),this}};e.jribbble.shots=function(t,i){var n=c([].slice.call(arguments))||{},r=i||{},s=function(t){return function(i,n){var r=c([].slice.call(arguments))||{},s=n||{};return this.queue.add(function(i){if(!i.shotId)throw new Error(a.shotId(t));i.url+="/"+t+"/",r.resource&&(i.url+=r.resource,delete r.resource),i.url+=u(e.extend(r,s))}),this}},o=function(){return e.extend(this,d()),this.url+="/shots/",this.queue.add(function(t){n.resource&&(t.shotId=n.resource,t.url+=n.resource,delete n.resource),t.url+=u(e.extend(n,r))}),setTimeout(function(){this.queue.flush(this).get()}.bind(this)),this};return o.prototype.attachments=s("attachments"),o.prototype.buckets=s("buckets"),o.prototype.likes=s("likes"),o.prototype.projects=s("projects"),o.prototype.rebounds=s("rebounds"),o.prototype.comments=function(t,i){var n=c([].slice.call(arguments))||{},r=i||{};return this.queue.add(function(t){if(!t.shotId)throw new Error(a.shotId("comments"));t.url+="/comments/",n.resource&&(t.commentId=n.resource,t.url+=n.resource+"/",delete n.resource),t.url+=u(e.extend(n,r))}),this.likes=function(e){var t=e||{};return this.queue.add(function(e){if(!e.commentId)throw new Error(a.commentLikes);e.url+="likes/"+u(t)}),this},this},new o},e.jribbble.teams=function(e){var t="teams",i=o(e,t),n=h.call(this,t);return n.prototype=l.call(this,["members","shots"]),new n(i)},e.jribbble.users=function(e){var t="users",i=o(e,t),n=h.call(this,t);return n.prototype=l.call(this,["buckets","followers","following","likes","projects","shots","teams"]),n.prototype.isFollowing=function(e){return this.queue.add(function(t){t.url+="/following/"+e}),this},new n(i)},e.jribbble.buckets=function(e){var t="buckets",i=o(e,t),n=h.call(this,t);return n.prototype=l.call(this,["shots"]),new n(i)},e.jribbble.projects=function(e){var t="projects",i=o(e,t),n=h.call(this,t);return n.prototype=l.call(this,["shots"]),new n(i)},e.jribbble.setToken=function(e){return r=e,this}}(jQuery,window,document);var ytp=ytp||{},getYTPVideoID=function(e){var t,i;return e.indexOf("youtu.be")>0?(i=(t=e.substr(e.lastIndexOf("/")+1,e.length)).indexOf("?list=")>0?t.substr(t.lastIndexOf("="),t.length):null,t=i?t.substr(0,t.lastIndexOf("?")):t):e.indexOf("http")>-1?(t=e.match(/[\\?&]v=([^&#]*)/)[1],i=e.indexOf("list=")>0?e.match(/[\\?&]list=([^&#]*)/)[1]:null):i=(t=e.length>15?null:e)?null:e,{videoID:t,playlistID:i}};!function(jQuery,ytp){jQuery.mbYTPlayer={name:"jquery.mb.YTPlayer",version:"3.2.1",build:"7075",author:"Matteo Bicocchi (pupunzi)",apiKey:"",defaults:{containment:"body",ratio:"auto",videoURL:null,startAt:0,stopAt:0,autoPlay:!0,vol:50,addRaster:!1,mask:!1,opacity:1,quality:"default",mute:!1,loop:!0,fadeOnStartTime:1500,showControls:!0,showAnnotations:!1,cc_load_policy:!1,showYTLogo:!0,stopMovieOnBlur:!0,realfullscreen:!0,abundance:.2,coverImage:!1,useOnMobile:!0,mobileFallbackImage:null,gaTrack:!0,optimizeDisplay:!0,remember_last_time:!1,playOnlyIfVisible:!1,anchor:"center,center",addFilters:null,onReady:function(e){},onError:function(e,t){}},controls:{play:"P",pause:"p",mute:"M",unmute:"A",onlyYT:"O",showSite:"R",ytLogo:"Y"},controlBar:null,locationProtocol:"https:",defaultFilters:{grayscale:{value:0,unit:"%"},hue_rotate:{value:0,unit:"deg"},invert:{value:0,unit:"%"},opacity:{value:0,unit:"%"},saturate:{value:0,unit:"%"},sepia:{value:0,unit:"%"},brightness:{value:0,unit:"%"},contrast:{value:0,unit:"%"},blur:{value:0,unit:"px"}},buildPlayer:function(options){function isIframe(){var e=!1;try{self.location.href!=top.location.href&&(e=!0)}catch(t){e=!0}return e}if(ytp.YTAPIReady||void 0!==window.YT)setTimeout(function(){jQuery(document).trigger("YTAPIReady"),ytp.YTAPIReady=!0},100);else{jQuery("#YTAPI").remove();var tag=jQuery("<script><\/script>").attr({src:jQuery.mbYTPlayer.locationProtocol+"//www.youtube.com/iframe_api?v="+jQuery.mbYTPlayer.version,id:"YTAPI"});jQuery("head").prepend(tag)}return this.each(function(){var YTPlayer=this,$YTPlayer=jQuery(YTPlayer);$YTPlayer.hide(),YTPlayer.loop=0,YTPlayer.state=0,YTPlayer.filters=jQuery.extend(!0,{},jQuery.mbYTPlayer.defaultFilters),YTPlayer.filtersEnabled=!0,YTPlayer.id=YTPlayer.id||"YTP_"+(new Date).getTime(),$YTPlayer.addClass("mb_YTPlayer");var property=$YTPlayer.data("property")&&"string"==typeof $YTPlayer.data("property")?eval("("+$YTPlayer.data("property")+")"):$YTPlayer.data("property");"object"!=typeof property&&(property={}),YTPlayer.opt=jQuery.mbYTPlayer.defaults,jQuery.extend(YTPlayer.opt,options,property),YTPlayer.opt.elementId=YTPlayer.id,0===YTPlayer.opt.vol&&(YTPlayer.opt.vol=1,YTPlayer.opt.mute=!0),YTPlayer.opt.loop&&"boolean"==typeof YTPlayer.opt.loop&&(YTPlayer.opt.loop=9999),YTPlayer.opt.realfullscreen=!isIframe()&&YTPlayer.opt.realfullscreen,YTPlayer.opt.showAnnotations=YTPlayer.opt.showAnnotations?"1":"3",YTPlayer.opt.cc_load_policy=YTPlayer.opt.cc_load_policy?"1":"0",YTPlayer.opt.coverImage=YTPlayer.opt.coverImage||YTPlayer.opt.backgroundImage,jQuery.mbBrowser.msie&&jQuery.mbBrowser.version<9&&(YTPlayer.opt.opacity=1),YTPlayer.opt.containment="self"===YTPlayer.opt.containment?$YTPlayer:jQuery(YTPlayer.opt.containment),YTPlayer.isRetina=window.retina||window.devicePixelRatio>1,$YTPlayer.attr("id")||$YTPlayer.attr("id","ytp_"+(new Date).getTime()),YTPlayer.playerID="iframe_"+YTPlayer.id,YTPlayer.isAlone=!1,YTPlayer.hasFocus=!0,YTPlayer.videoID=YTPlayer.opt.videoURL?getYTPVideoID(YTPlayer.opt.videoURL).videoID:!!$YTPlayer.attr("href")&&getYTPVideoID($YTPlayer.attr("href")).videoID,YTPlayer.playlistID=YTPlayer.opt.videoURL?getYTPVideoID(YTPlayer.opt.videoURL).playlistID:!!$YTPlayer.attr("href")&&getYTPVideoID($YTPlayer.attr("href")).playlistID;var start_from_last=0;if(jQuery.mbCookie.get("YTPlayer_start_from"+YTPlayer.videoID)&&(start_from_last=parseFloat(jQuery.mbCookie.get("YTPlayer_start_from"+YTPlayer.videoID))),YTPlayer.opt.remember_last_time&&start_from_last&&(YTPlayer.start_from_last=start_from_last,jQuery.mbCookie.remove("YTPlayer_start_from"+YTPlayer.videoID)),YTPlayer.isPlayer=$YTPlayer.is(YTPlayer.opt.containment),YTPlayer.isBackground=YTPlayer.opt.containment.is("body"),!YTPlayer.isBackground||!ytp.backgroundIsInited){YTPlayer.isPlayer&&$YTPlayer.show(),YTPlayer.overlay=jQuery("<div/>").css({position:"absolute",top:0,left:0,width:"100%",height:"100%"}).addClass("YTPOverlay"),YTPlayer.isPlayer&&YTPlayer.overlay.on("click",function(){$YTPlayer.YTPTogglePlay()}),YTPlayer.wrapper=jQuery("<div/>").addClass("mbYTP_wrapper").attr("id","wrapper_"+YTPlayer.id),YTPlayer.wrapper.css({position:"absolute",zIndex:0,minWidth:"100%",minHeight:"100%",left:0,top:0,overflow:"hidden",opacity:0});var playerBox=jQuery("<div/>").attr("id",YTPlayer.playerID).addClass("playerBox");if(playerBox.css({position:"absolute",zIndex:0,width:"100%",height:"100%",top:0,left:0,overflow:"hidden",opacity:1}),YTPlayer.wrapper.append(playerBox),playerBox.after(YTPlayer.overlay),YTPlayer.isPlayer&&(YTPlayer.inlineWrapper=jQuery("<div/>").addClass("inline-YTPlayer"),YTPlayer.inlineWrapper.css({position:"relative",maxWidth:YTPlayer.opt.containment.css("width")}),YTPlayer.opt.containment.css({position:"relative",paddingBottom:"56.25%",overflow:"hidden",height:0}),YTPlayer.opt.containment.wrap(YTPlayer.inlineWrapper)),YTPlayer.opt.containment.children().not("script, style").each(function(){"static"==jQuery(this).css("position")&&jQuery(this).css("position","relative")}),YTPlayer.isBackground?(jQuery("body").css({boxSizing:"border-box"}),YTPlayer.wrapper.css({position:"fixed",top:0,left:0,zIndex:0})):"static"==YTPlayer.opt.containment.css("position")&&(YTPlayer.opt.containment.css({position:"relative"}),$YTPlayer.show()),YTPlayer.opt.containment.prepend(YTPlayer.wrapper),YTPlayer.isBackground||YTPlayer.overlay.on("mouseenter",function(){YTPlayer.controlBar&&YTPlayer.controlBar.length&&YTPlayer.controlBar.addClass("visible")}).on("mouseleave",function(){YTPlayer.controlBar&&YTPlayer.controlBar.length&&YTPlayer.controlBar.removeClass("visible")}),jQuery.mbBrowser.mobile&&!YTPlayer.opt.useOnMobile)return YTPlayer.opt.mobileFallbackImage&&(YTPlayer.wrapper.css({backgroundImage:"url("+YTPlayer.opt.mobileFallbackImage+")",backgroundPosition:"center center",backgroundSize:"cover",backgroundRepeat:"no-repeat",opacity:1}),YTPlayer.wrapper.css({opacity:1})),$YTPlayer;jQuery.mbBrowser.mobile&&YTPlayer.opt.autoPlay&&YTPlayer.opt.useOnMobile&&jQuery("body").one("touchstart",function(){YTPlayer.player.playVideo()}),jQuery(document).one("YTAPIReady",function(){$YTPlayer.trigger("YTAPIReady_"+YTPlayer.id),ytp.YTAPIReady=!0}),YTPlayer.isOnScreen=jQuery.mbYTPlayer.isOnScreen(YTPlayer),$YTPlayer.one("YTAPIReady_"+YTPlayer.id,function(){var e=this,t=jQuery(e);e.isBackground&&ytp.backgroundIsInited||e.isInit||(e.isBackground&&(ytp.backgroundIsInited=!0),e.opt.autoPlay=void 0===e.opt.autoPlay?!!e.isBackground:e.opt.autoPlay,e.opt.vol=e.opt.vol?e.opt.vol:100,jQuery.mbYTPlayer.getDataFromAPI(e),jQuery(e).on("YTPChanged",function(i){if(!e.isInit){e.isInit=!0;var n={modestbranding:1,autoplay:0,controls:0,showinfo:0,rel:0,enablejsapi:1,version:3,playerapiid:e.playerID,origin:"*",allowfullscreen:!0,wmode:"transparent",iv_load_policy:e.opt.showAnnotations,cc_load_policy:e.opt.cc_load_policy,playsinline:jQuery.browser.mobile?1:0,html5:document.createElement("video").canPlayType?1:0};new YT.Player(e.playerID,{playerVars:n,events:{onReady:function(i){e.player=i.target,e.player.loadVideoById({videoId:e.videoID.toString(),suggestedQuality:e.opt.quality}),t.trigger("YTPlayerIsReady_"+e.id)},onStateChange:function(t){if("function"==typeof t.target.getPlayerState){var i,n=t.target.getPlayerState();if(e.preventTrigger)return void(e.preventTrigger=!1);switch(e.state=n,n){case-1:i="YTPUnstarted";break;case 0:i="YTPRealEnd";break;case 1:i="YTPPlay",e.controlBar.length&&e.controlBar.find(".mb_YTPPlaypause").html(jQuery.mbYTPlayer.controls.pause);break;case 2:i="YTPPause",e.controlBar.length&&e.controlBar.find(".mb_YTPPlaypause").html(jQuery.mbYTPlayer.controls.play);break;case 3:e.player.setPlaybackQuality(e.opt.quality),i="YTPBuffering",e.controlBar.length&&e.controlBar.find(".mb_YTPPlaypause").html(jQuery.mbYTPlayer.controls.play);break;case 5:i="YTPCued"}var r=jQuery.Event(i);r.time=e.currentTime,e.preventTrigger||jQuery(e).trigger(r)}},onPlaybackQualityChange:function(t){var i=t.target.getPlaybackQuality(),n=jQuery.Event("YTPQualityChange");n.quality=i,jQuery(e).trigger(n)},onError:function(i){switch("function"==typeof e.opt.onError&&e.opt.onError(t,i),i.data){case 2:console.error("video ID:: "+e.videoID+": The request contains an invalid parameter value. For example, this error occurs if you specify a video ID that does not have 11 characters, or if the video ID contains invalid characters, such as exclamation points or asterisks.");break;case 5:console.error("video ID:: "+e.videoID+": The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.");break;case 100:console.error("video ID:: "+e.videoID+": The video requested was not found. This error occurs when a video has been removed (for any reason) or has been marked as private.");break;case 101:case 150:console.error("video ID:: "+e.videoID+": The owner of the requested video does not allow it to be played in embedded players.")}e.isList&&jQuery(e).YTPPlayNext()}}}),t.on("YTPlayerIsReady_"+e.id,function(){if(e.isReady)return this;e.playerEl=e.player.getIframe(),jQuery(e.playerEl).unselectable(),t.optimizeDisplay(),jQuery(window).off("resize.YTP_"+e.id).on("resize.YTP_"+e.id,function(){t.optimizeDisplay()}),e.opt.remember_last_time&&jQuery(window).on("unload.YTP_"+e.id,function(){var t=e.player.getCurrentTime();jQuery.mbCookie.set("YTPlayer_start_from"+e.videoID,t,0)}),t.YTPCheckForState()})}}))}),$YTPlayer.off("YTPTime.mask"),jQuery.mbYTPlayer.applyMask(YTPlayer)}})},isOnScreen:function(e){var t=e.wrapper,i=jQuery(window).scrollTop(),n=i+jQuery(window).height(),r=t.offset().top+t.height()/1.2;return t.offset().top+t.height()/2.8<=n&&r>=i},getDataFromAPI:function(e){if(e.videoData=jQuery.mbStorage.get("YTPlayer_data_"+e.videoID),jQuery(e).off("YTPData.YTPlayer").on("YTPData.YTPlayer",function(){if(e.hasData&&e.isPlayer&&!e.opt.autoPlay){var t="false"!=e.opt.coverImage?e.opt.coverImage:e.videoData.thumb_max||e.videoData.thumb_high||e.videoData.thumb_medium;e.opt.containment.css({background:"rgba(0,0,0,0.5) url("+t+") center center",backgroundSize:"cover"})}}),e.videoData)setTimeout(function(){e.opt.ratio="auto"==e.opt.ratio?16/9:e.opt.ratio,e.dataReceived=!0;var t=jQuery.Event("YTPChanged");t.time=e.currentTime,t.videoId=e.videoID,t.opt=e.opt,jQuery(e).trigger(t);var i=jQuery.Event("YTPData");for(var n in i.prop={},e.videoData)i.prop[n]=e.videoData[n];jQuery(e).trigger(i)},e.opt.fadeOnStartTime),e.hasData=!0;else if(jQuery.mbYTPlayer.apiKey)jQuery.getJSON(jQuery.mbYTPlayer.locationProtocol+"//www.googleapis.com/youtube/v3/videos?id="+e.videoID+"&key="+jQuery.mbYTPlayer.apiKey+"&part=snippet",function(t){e.dataReceived=!0;var i=jQuery.Event("YTPChanged");i.time=e.currentTime,i.videoId=e.videoID,jQuery(e).trigger(i),t.items[0]?(function(t){e.videoData={},e.videoData.id=e.videoID,e.videoData.channelTitle=t.channelTitle,e.videoData.title=t.title,e.videoData.description=t.description.length<400?t.description:t.description.substring(0,400)+" ...",e.videoData.aspectratio="auto"==e.opt.ratio?16/9:e.opt.ratio,e.opt.ratio=e.videoData.aspectratio,e.videoData.thumb_max=t.thumbnails.maxres?t.thumbnails.maxres.url:null,e.videoData.thumb_high=t.thumbnails.high?t.thumbnails.high.url:null,e.videoData.thumb_medium=t.thumbnails.medium?t.thumbnails.medium.url:null,jQuery.mbStorage.set("YTPlayer_data_"+e.videoID,e.videoData)}(t.items[0].snippet),e.hasData=!0):(e.videoData={},e.hasData=!1);var n=jQuery.Event("YTPData");for(var r in n.prop={},e.videoData)n.prop[r]=e.videoData[r];jQuery(e).trigger(n)});else{if(setTimeout(function(){var t=jQuery.Event("YTPChanged");t.time=e.currentTime,t.videoId=e.videoID,jQuery(e).trigger(t)},50),!e.opt.autoPlay){var t="false"!=e.opt.coverImage?e.opt.coverImage:jQuery.mbYTPlayer.locationProtocol+"//i.ytimg.com/vi/"+e.videoID+"/maxresdefault.jpg";t&&e.opt.containment.css({background:"rgba(0,0,0,0.5) url("+t+") center center",backgroundSize:"cover"})}e.videoData=null,e.opt.ratio="auto"==e.opt.ratio?"16/9":e.opt.ratio}e.isPlayer&&!e.opt.autoPlay&&(e.loading=jQuery("<div/>").addClass("loading").html("Loading").hide(),jQuery(e).append(e.loading),e.loading.fadeIn())},removeStoredData:function(){jQuery.mbStorage.remove()},getVideoData:function(){return this.get(0).videoData},getVideoID:function(){return this.get(0).videoID||!1},getPlaylistID:function(){return this.get(0).playlistID||!1},setVideoQuality:function(e){return this.get(0).player.setPlaybackQuality(e),this},playlist:function(e,t,i){var n=this,r=n.get(0);return"String"==typeof e&&""!=jQuery.mbYTPlayer.apiKey?(function e(s,a){a=a||"",jQuery.getJSON("https://www.googleapis.com/youtube/v3/playlistItems",{part:"snippet,contentDetails",playlistId:s,maxResults:50,pageToken:a,key:jQuery.mbYTPlayer.apiKey}).done(function(s){(function(e){for(var t=e.items.length,i=0;i<t;i++)r.videos.push({videoURL:e.items[i].contentDetails.videoId})})(s),s.nextPageToken?(a=s.nextPageToken,e(plID,a)):n.YTPlaylist(r.videos,t,i)})}(e),this):(r.isList=!0,t&&(e=jQuery.shuffle(e)),r.videoID||(r.videos=e,r.videoCounter=1,r.videoLength=e.length,jQuery(r).data("property",e[0]),jQuery(r).YTPlayer()),"function"==typeof i&&jQuery(r).one("YTPChanged",function(){i(r)}),jQuery(r).on("YTPEnd",function(){jQuery(r).YTPPlayNext()}),this)},playNext:function(){var e=this.get(0);return e.videoCounter++,e.videoCounter>e.videoLength&&(e.videoCounter=1),jQuery(e).YTPPlayIndex(e.videoCounter),this},playPrev:function(){var e=this.get(0);return e.videoCounter--,e.videoCounter<=0&&(e.videoCounter=e.videoLength),jQuery(e).YTPPlayIndex(e.videoCounter),this},playIndex:function(e){var t=this.get(0);t.checkForStartAt&&(clearInterval(t.checkForStartAt),clearInterval(t.getState)),t.videoCounter=e,t.videoCounter>=t.videoLength&&(t.videoCounter=t.videoLength);var i=t.videos[t.videoCounter-1];return jQuery(t).YTPChangeVideo(i),this},changeVideo:function(e){var t=this,i=t.get(0);i.opt.startAt=0,i.opt.stopAt=0,i.opt.mask=!1,i.opt.mute=!0,i.opt.autoPlay=!0,i.opt.addFilters=!1,i.opt.coverImage=!1,i.hasData=!1,i.hasChanged=!0,i.player.loopTime=void 0,e&&jQuery.extend(i.opt,e),i.videoID=getYTPVideoID(i.opt.videoURL).videoID,i.opt.loop&&"boolean"==typeof i.opt.loop&&(i.opt.loop=9999),i.wrapper.css({background:"none"}),jQuery(i.playerEl).CSSAnimate({opacity:0},i.opt.fadeOnStartTime,function(){jQuery.mbYTPlayer.getDataFromAPI(i),t.YTPGetPlayer().loadVideoById({videoId:i.videoID,suggestedQuality:i.opt.quality}),t.YTPPause(),t.optimizeDisplay(),t.YTPCheckForState()});var n=jQuery.Event("YTPChangeVideo");return n.time=i.currentTime,jQuery(i).trigger(n),jQuery.mbYTPlayer.applyMask(i),this},getPlayer:function(){return jQuery(this).get(0).player},playerDestroy:function(){var e=this.get(0);return ytp.YTAPIReady=!0,ytp.backgroundIsInited=!1,e.isInit=!1,e.videoID=null,e.isReady=!1,e.wrapper.remove(),jQuery("#controlBar_"+e.id).remove(),clearInterval(e.checkForStartAt),clearInterval(e.getState),this},fullscreen:function(real){function hideMouse(){YTPlayer.overlay.css({cursor:"none"})}function RunPrefixMethod(e,t){for(var i,n,r=["webkit","moz","ms","o",""],s=0;s<r.length&&!e[i];){if(i=t,""==r[s]&&(i=i.substr(0,1).toLowerCase()+i.substr(1)),"undefined"!=(n=typeof e[i=r[s]+i]))return r=[r[s]],"function"==n?e[i]():e[i];s++}}function launchFullscreen(e){RunPrefixMethod(e,"RequestFullScreen")}function cancelFullscreen(){(RunPrefixMethod(document,"FullScreen")||RunPrefixMethod(document,"IsFullScreen"))&&RunPrefixMethod(document,"CancelFullScreen")}var YTPlayer=this.get(0);void 0===real&&(real=YTPlayer.opt.realfullscreen),real=eval(real);var controls=jQuery("#controlBar_"+YTPlayer.id),fullScreenBtn=controls.find(".mb_OnlyYT"),videoWrapper=YTPlayer.isPlayer?YTPlayer.opt.containment:YTPlayer.wrapper;if(real){var fullscreenchange=jQuery.mbBrowser.mozilla?"mozfullscreenchange":jQuery.mbBrowser.webkit?"webkitfullscreenchange":"fullscreenchange";jQuery(document).off(fullscreenchange).on(fullscreenchange,function(){RunPrefixMethod(document,"IsFullScreen")||RunPrefixMethod(document,"FullScreen")?(jQuery(YTPlayer).YTPSetVideoQuality("default"),jQuery(YTPlayer).trigger("YTPFullScreenStart")):(YTPlayer.isAlone=!1,fullScreenBtn.html(jQuery.mbYTPlayer.controls.onlyYT),jQuery(YTPlayer).YTPSetVideoQuality(YTPlayer.opt.quality),videoWrapper.removeClass("YTPFullscreen"),videoWrapper.CSSAnimate({opacity:YTPlayer.opt.opacity},YTPlayer.opt.fadeOnStartTime),videoWrapper.css({zIndex:0}),YTPlayer.isBackground?jQuery("body").after(controls):YTPlayer.wrapper.before(controls),jQuery(window).resize(),jQuery(YTPlayer).trigger("YTPFullScreenEnd"))})}return YTPlayer.isAlone?(jQuery(document).off("mousemove.YTPlayer"),clearTimeout(YTPlayer.hideCursor),YTPlayer.overlay.css({cursor:"auto"}),real?cancelFullscreen():(videoWrapper.CSSAnimate({opacity:YTPlayer.opt.opacity},YTPlayer.opt.fadeOnStartTime),videoWrapper.css({zIndex:0})),fullScreenBtn.html(jQuery.mbYTPlayer.controls.onlyYT),YTPlayer.isAlone=!1):(jQuery(document).on("mousemove.YTPlayer",function(e){YTPlayer.overlay.css({cursor:"auto"}),clearTimeout(YTPlayer.hideCursor),jQuery(e.target).parents().is(".mb_YTPBar")||(YTPlayer.hideCursor=setTimeout(hideMouse,3e3))}),hideMouse(),real?(videoWrapper.css({opacity:0}),videoWrapper.addClass("YTPFullscreen"),launchFullscreen(videoWrapper.get(0)),setTimeout(function(){videoWrapper.CSSAnimate({opacity:1},2*YTPlayer.opt.fadeOnStartTime),videoWrapper.append(controls),jQuery(YTPlayer).optimizeDisplay(),YTPlayer.player.seekTo(YTPlayer.player.getCurrentTime()+.1,!0)},YTPlayer.opt.fadeOnStartTime)):videoWrapper.css({zIndex:1e4}).CSSAnimate({opacity:1},2*YTPlayer.opt.fadeOnStartTime),fullScreenBtn.html(jQuery.mbYTPlayer.controls.showSite),YTPlayer.isAlone=!0),this},toggleLoops:function(){var e=this.get(0),t=e.opt;return 1==t.loop?t.loop=0:(t.startAt?e.player.seekTo(t.startAt):e.player.playVideo(),t.loop=1),this},play:function(){var e=this.get(0);return e.isReady?(e.player.playVideo(),jQuery(e.playerEl).css({opacity:1}),e.wrapper.css({backgroundImage:"none"}),e.wrapper.CSSAnimate({opacity:e.isAlone?1:e.opt.opacity},e.opt.fadeOnStartTime),jQuery("#controlBar_"+e.id).find(".mb_YTPPlaypause").html(jQuery.mbYTPlayer.controls.pause),e.state=1,e.orig_background=jQuery(e).css("background-image"),this):this},togglePlay:function(e){var t=this.get(0);return 1==t.state?this.YTPPause():this.YTPPlay(),"function"==typeof e&&e(t.state),this},stop:function(){var e=this.get(0);return jQuery("#controlBar_"+e.id).find(".mb_YTPPlaypause").html(jQuery.mbYTPlayer.controls.play),e.player.stopVideo(),this},pause:function(){var e=this.get(0);return e.player.pauseVideo(),e.state=2,this},seekTo:function(e){return this.get(0).player.seekTo(e,!0),this},setVolume:function(e){var t=this.get(0);return e||t.opt.vol||0!=t.player.getVolume()?!e&&t.player.getVolume()>0||e&&t.opt.vol==e?t.isMute?jQuery(t).YTPUnmute():jQuery(t).YTPMute():(t.opt.vol=e,t.player.setVolume(t.opt.vol),t.volumeBar&&t.volumeBar.length&&t.volumeBar.updateSliderVal(e)):jQuery(t).YTPUnmute(),this},getVolume:function(){return this.get(0).player.getVolume()},toggleVolume:function(){var e=this.get(0);return e?(e.player.isMuted()?jQuery(e).YTPUnmute():jQuery(e).YTPMute(),this):this},mute:function(){var e=this.get(0);if(e.isMute)return this;e.player.mute(),e.isMute=!0,e.player.setVolume(0),e.volumeBar&&e.volumeBar.length&&e.volumeBar.width()>10&&e.volumeBar.updateSliderVal(0),jQuery("#controlBar_"+e.id).find(".mb_YTPMuteUnmute").html(jQuery.mbYTPlayer.controls.unmute),jQuery(e).addClass("isMuted"),e.volumeBar&&e.volumeBar.length&&e.volumeBar.addClass("muted");var t=jQuery.Event("YTPMuted");return t.time=e.currentTime,e.preventTrigger||jQuery(e).trigger(t),this},unmute:function(){var e=this.get(0);if(!e.isMute)return this;e.player.unMute(),e.isMute=!1,e.player.setVolume(e.opt.vol),e.volumeBar&&e.volumeBar.length&&e.volumeBar.updateSliderVal(e.opt.vol>10?e.opt.vol:10),jQuery("#controlBar_"+e.id).find(".mb_YTPMuteUnmute").html(jQuery.mbYTPlayer.controls.mute),jQuery(e).removeClass("isMuted"),e.volumeBar&&e.volumeBar.length&&e.volumeBar.removeClass("muted");var t=jQuery.Event("YTPUnmuted");return t.time=e.currentTime,e.preventTrigger||jQuery(e).trigger(t),this},applyFilter:function(e,t){var i=this.get(0);i.filters[e].value=t,i.filtersEnabled&&this.YTPEnableFilters()},applyFilters:function(e){var t=this,i=t.get(0);if(!i.isReady)return jQuery(i).on("YTPReady",function(){t.YTPApplyFilters(e)}),this;for(var n in e)t.YTPApplyFilter(n,e[n]);t.trigger("YTPFiltersApplied")},toggleFilter:function(e,t){var i=this.get(0);return i.filters[e].value?i.filters[e].value=0:i.filters[e].value=t,i.filtersEnabled&&jQuery(i).YTPEnableFilters(),this},toggleFilters:function(e){var t=this.get(0);return t.filtersEnabled?(jQuery(t).trigger("YTPDisableFilters"),jQuery(t).YTPDisableFilters()):(jQuery(t).YTPEnableFilters(),jQuery(t).trigger("YTPEnableFilters")),"function"==typeof e&&e(t.filtersEnabled),this},disableFilters:function(){var e=this.get(0),t=jQuery(e.playerEl);return t.css("-webkit-filter",""),t.css("filter",""),e.filtersEnabled=!1,this},enableFilters:function(){var e=this.get(0),t=jQuery(e.playerEl),i="";for(var n in e.filters)e.filters[n].value&&(i+=n.replace("_","-")+"("+e.filters[n].value+e.filters[n].unit+") ");return t.css("-webkit-filter",i),t.css("filter",i),e.filtersEnabled=!0,this},removeFilter:function(e,t){var i=this,n=i.get(0);if("function"==typeof e&&(t=e,e=null),e)i.YTPApplyFilter(e,0),"function"==typeof t&&t(e);else{for(var r in n.filters)i.YTPApplyFilter(r,0);"function"==typeof t&&t(r),n.filters=jQuery.extend(!0,{},jQuery.mbYTPlayer.defaultFilters)}var s=jQuery.Event("YTPFiltersApplied");return i.trigger(s),this},getFilters:function(){return this.get(0).filters},addMask:function(e){var t=this.get(0);e||(e=t.actualMask);var i=jQuery("<img/>").attr("src",e).on("load",function(){t.overlay.CSSAnimate({opacity:0},t.opt.fadeOnStartTime,function(){t.hasMask=!0,i.remove(),t.overlay.css({backgroundImage:"url("+e+")",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"cover"}),t.overlay.CSSAnimate({opacity:1},t.opt.fadeOnStartTime)})});return this},removeMask:function(){var e=this.get(0);return e.overlay.CSSAnimate({opacity:0},e.opt.fadeOnStartTime,function(){e.hasMask=!1,e.overlay.css({backgroundImage:"",backgroundRepeat:"",backgroundPosition:"",backgroundSize:""}),e.overlay.CSSAnimate({opacity:1},e.opt.fadeOnStartTime)}),this},applyMask:function(e){var t=jQuery(e);if(t.off("YTPTime.mask"),e.opt.mask)if("string"==typeof e.opt.mask)t.YTPAddMask(e.opt.mask),e.actualMask=e.opt.mask;else if("object"==typeof e.opt.mask){for(var i in e.opt.mask)e.opt.mask[i]&&jQuery("<img/>").attr("src",e.opt.mask[i]);e.opt.mask[0]&&t.YTPAddMask(e.opt.mask[0]),t.on("YTPTime.mask",function(i){for(var n in e.opt.mask)i.time==n&&(e.opt.mask[n]?(t.YTPAddMask(e.opt.mask[n]),e.actualMask=e.opt.mask[n]):t.YTPRemoveMask())})}},toggleMask:function(){var e=this.get(0),t=jQuery(e);return e.hasMask?t.YTPRemoveMask():t.YTPAddMask(),this},manageProgress:function(){var e=this.get(0),t=jQuery("#controlBar_"+e.id),i=t.find(".mb_YTPProgress"),n=t.find(".mb_YTPLoaded"),r=t.find(".mb_YTPseekbar"),s=i.outerWidth(),a=Math.floor(e.player.getCurrentTime()),o=Math.floor(e.player.getDuration()),l=a*s/o,u=100*e.player.getVideoLoadedFraction();return n.css({left:0,width:u+"%"}),r.css({left:0,width:l}),{totalTime:o,currentTime:a}},buildControls:function(YTPlayer){if(jQuery("#controlBar_"+YTPlayer.id).remove(),YTPlayer.opt.showControls){if(YTPlayer.opt.showYTLogo=YTPlayer.opt.showYTLogo||YTPlayer.opt.printUrl,!jQuery("#controlBar_"+YTPlayer.id).length){YTPlayer.controlBar=jQuery("<span/>").attr("id","controlBar_"+YTPlayer.id).addClass("mb_YTPBar").css({whiteSpace:"noWrap",position:YTPlayer.isBackground?"fixed":"absolute",zIndex:YTPlayer.isBackground?1e4:1e3}).hide();var buttonBar=jQuery("<div/>").addClass("buttonBar"),playpause=jQuery("<span>"+jQuery.mbYTPlayer.controls.play+"</span>").addClass("mb_YTPPlaypause ytpicon").click(function(){1==YTPlayer.player.getPlayerState()?jQuery(YTPlayer).YTPPause():jQuery(YTPlayer).YTPPlay()}),MuteUnmute=jQuery("<span>"+jQuery.mbYTPlayer.controls.mute+"</span>").addClass("mb_YTPMuteUnmute ytpicon").click(function(){0==YTPlayer.player.getVolume()?jQuery(YTPlayer).YTPUnmute():jQuery(YTPlayer).YTPMute()}),volumeBar=jQuery("<div/>").addClass("mb_YTPVolumeBar").css({display:"inline-block"});YTPlayer.volumeBar=volumeBar;var idx=jQuery("<span/>").addClass("mb_YTPTime"),vURL=YTPlayer.opt.videoURL?YTPlayer.opt.videoURL:"";vURL.indexOf("http")<0&&(vURL=jQuery.mbYTPlayer.locationProtocol+"//www.youtube.com/watch?v="+YTPlayer.opt.videoURL);var movieUrl=jQuery("<span/>").html(jQuery.mbYTPlayer.controls.ytLogo).addClass("mb_YTPUrl ytpicon").attr("title","view on YouTube").on("click",function(){window.open(vURL,"viewOnYT")}),onlyVideo=jQuery("<span/>").html(jQuery.mbYTPlayer.controls.onlyYT).addClass("mb_OnlyYT ytpicon").on("click",function(){jQuery(YTPlayer).YTPFullscreen(YTPlayer.opt.realfullscreen)}),progressBar=jQuery("<div/>").addClass("mb_YTPProgress").css("position","absolute").click(function(e){timeBar.css({width:e.clientX-timeBar.offset().left}),YTPlayer.timeW=e.clientX-timeBar.offset().left,YTPlayer.controlBar.find(".mb_YTPLoaded").css({width:0});var t=Math.floor(YTPlayer.player.getDuration());YTPlayer.goto=timeBar.outerWidth()*t/progressBar.outerWidth(),YTPlayer.player.seekTo(parseFloat(YTPlayer.goto),!0),YTPlayer.controlBar.find(".mb_YTPLoaded").css({width:0})}),loadedBar=jQuery("<div/>").addClass("mb_YTPLoaded").css("position","absolute"),timeBar=jQuery("<div/>").addClass("mb_YTPseekbar").css("position","absolute");progressBar.append(loadedBar).append(timeBar),buttonBar.append(playpause).append(MuteUnmute).append(volumeBar).append(idx),YTPlayer.opt.showYTLogo&&buttonBar.append(movieUrl),(YTPlayer.isBackground||eval(YTPlayer.opt.realfullscreen)&&!YTPlayer.isBackground)&&buttonBar.append(onlyVideo),YTPlayer.controlBar.append(buttonBar).append(progressBar),YTPlayer.isBackground?jQuery("body").after(YTPlayer.controlBar):(YTPlayer.controlBar.addClass("inlinePlayer"),YTPlayer.wrapper.before(YTPlayer.controlBar)),volumeBar.simpleSlider({initialval:YTPlayer.opt.vol,scale:100,orientation:"h",callback:function(e){0==e.value?jQuery(YTPlayer).YTPMute():jQuery(YTPlayer).YTPUnmute(),YTPlayer.player.setVolume(e.value),YTPlayer.isMute||(YTPlayer.opt.vol=e.value)}})}}else YTPlayer.controlBar=!1},checkForState:function(){var YTPlayer=this.get(0),$YTPlayer=jQuery(YTPlayer);clearInterval(YTPlayer.getState);var interval=100;if(!jQuery.contains(document,YTPlayer))return $YTPlayer.YTPPlayerDestroy(),clearInterval(YTPlayer.getState),void clearInterval(YTPlayer.checkForStartAt);jQuery.mbYTPlayer.checkForStart(YTPlayer),YTPlayer.getState=setInterval(function(){var $YTPlayer=jQuery(YTPlayer);if(YTPlayer.isReady){var prog=jQuery(YTPlayer).YTPManageProgress(),stopAt=YTPlayer.opt.stopAt>YTPlayer.opt.startAt?YTPlayer.opt.stopAt:0;if(stopAt=stopAt<YTPlayer.player.getDuration()?stopAt:0,YTPlayer.currentTime!=prog.currentTime){var YTPEvent=jQuery.Event("YTPTime");YTPEvent.time=YTPlayer.currentTime,jQuery(YTPlayer).trigger(YTPEvent)}if(YTPlayer.currentTime=prog.currentTime,YTPlayer.totalTime=YTPlayer.player.getDuration(),0==YTPlayer.player.getVolume()?$YTPlayer.addClass("isMuted"):$YTPlayer.removeClass("isMuted"),YTPlayer.opt.showControls&&(prog.totalTime?YTPlayer.controlBar.find(".mb_YTPTime").html(jQuery.mbYTPlayer.formatTime(prog.currentTime)+" / "+jQuery.mbYTPlayer.formatTime(prog.totalTime)):YTPlayer.controlBar.find(".mb_YTPTime").html("-- : -- / -- : --")),eval(YTPlayer.opt.stopMovieOnBlur)&&(document.hasFocus()?document.hasFocus()&&!YTPlayer.hasFocus&&-1!=YTPlayer.state&&0!=YTPlayer.state&&(YTPlayer.hasFocus=!0,YTPlayer.player.playVideo()):1==YTPlayer.state&&(YTPlayer.hasFocus=!1,$YTPlayer.YTPPause())),YTPlayer.opt.playOnlyIfVisible){var isOnScreen=jQuery.mbYTPlayer.isOnScreen(YTPlayer);isOnScreen||1!=YTPlayer.state?isOnScreen&&!YTPlayer.isOnScreen&&(YTPlayer.isOnScreen=!0,YTPlayer.player.playVideo()):(YTPlayer.isOnScreen=!1,$YTPlayer.YTPPause())}if(YTPlayer.controlBar.length&&YTPlayer.controlBar.outerWidth()<=400&&!YTPlayer.isCompact?(YTPlayer.controlBar.addClass("compact"),YTPlayer.isCompact=!0,!YTPlayer.isMute&&YTPlayer.volumeBar&&YTPlayer.volumeBar.updateSliderVal(YTPlayer.opt.vol)):YTPlayer.controlBar.length&&YTPlayer.controlBar.outerWidth()>400&&YTPlayer.isCompact&&(YTPlayer.controlBar.removeClass("compact"),YTPlayer.isCompact=!1,!YTPlayer.isMute&&YTPlayer.volumeBar&&YTPlayer.volumeBar.updateSliderVal(YTPlayer.opt.vol)),YTPlayer.player.getPlayerState()>0&&(parseFloat(YTPlayer.player.getDuration()-.5)<YTPlayer.player.getCurrentTime()||stopAt>0&&parseFloat(YTPlayer.player.getCurrentTime())>stopAt)){if(YTPlayer.isEnded)return;if(YTPlayer.isEnded=!0,setTimeout(function(){YTPlayer.isEnded=!1},1e3),YTPlayer.isList){if(!YTPlayer.opt.loop||YTPlayer.opt.loop>0&&YTPlayer.player.loopTime===YTPlayer.opt.loop-1){YTPlayer.player.loopTime=void 0,clearInterval(YTPlayer.getState);var YTPEnd=jQuery.Event("YTPEnd");return YTPEnd.time=YTPlayer.currentTime,void jQuery(YTPlayer).trigger(YTPEnd)}}else if(!YTPlayer.opt.loop||YTPlayer.opt.loop>0&&YTPlayer.player.loopTime===YTPlayer.opt.loop-1)return YTPlayer.player.loopTime=void 0,YTPlayer.preventTrigger=!0,YTPlayer.state=2,jQuery(YTPlayer).YTPPause(),void YTPlayer.wrapper.CSSAnimate({opacity:0},YTPlayer.opt.fadeOnStartTime,function(){YTPlayer.controlBar.length&&YTPlayer.controlBar.find(".mb_YTPPlaypause").html(jQuery.mbYTPlayer.controls.play);var e=jQuery.Event("YTPEnd");e.time=YTPlayer.currentTime,jQuery(YTPlayer).trigger(e),YTPlayer.player.seekTo(YTPlayer.opt.startAt,!0),YTPlayer.isBackground?YTPlayer.orig_background&&jQuery(YTPlayer).css("background-image",YTPlayer.orig_background):YTPlayer.opt.coverImage&&YTPlayer.isPlayer&&(YTPlayer.opt.coverImage=YTPlayer.opt.coverImage||YTPlayer.orig_background,YTPlayer.opt.containment.css({background:"url("+YTPlayer.opt.coverImage+") center center",backgroundSize:"cover"}))});YTPlayer.player.loopTime=YTPlayer.player.loopTime?++YTPlayer.player.loopTime:1,YTPlayer.opt.startAt=YTPlayer.opt.startAt||1,YTPlayer.preventTrigger=!0,YTPlayer.state=2,YTPlayer.player.pauseVideo(),YTPlayer.player.seekTo(YTPlayer.opt.startAt,!0),YTPlayer.player.playVideo()}}},interval)},checkForStart:function(YTPlayer){var $YTPlayer=jQuery(YTPlayer);if(jQuery.contains(document,YTPlayer)){if(jQuery.mbYTPlayer.buildControls(YTPlayer),YTPlayer.overlay)if(YTPlayer.opt.addRaster){var classN="dot"==YTPlayer.opt.addRaster?"raster-dot":"raster";YTPlayer.overlay.addClass(YTPlayer.isRetina?classN+" retina":classN)}else YTPlayer.overlay.removeClass(function(e,t){var i=t.split(" "),n=[];return jQuery.each(i,function(e,t){/raster.*/.test(t)&&n.push(t)}),n.push("retina"),n.join(" ")});YTPlayer.preventTrigger=!0,YTPlayer.state=2,$YTPlayer.YTPPause(),$YTPlayer.YTPMute();var startAt=YTPlayer.start_from_last?YTPlayer.start_from_last:YTPlayer.opt.startAt?YTPlayer.opt.startAt:1;return YTPlayer.player.playVideo(),$YTPlayer.YTPMute(),YTPlayer.player.seekTo(startAt,!0),YTPlayer.checkForStartAt=setInterval(function(){var canPlayVideo=YTPlayer.player.getVideoLoadedFraction()>=startAt/YTPlayer.player.getDuration();if(YTPlayer.player.getDuration()>0&&YTPlayer.player.getCurrentTime()>=startAt&&canPlayVideo){YTPlayer.start_from_last=null,clearInterval(YTPlayer.checkForStartAt),"function"==typeof YTPlayer.opt.onReady&&YTPlayer.opt.onReady(YTPlayer),YTPlayer.isReady=!0,$YTPlayer.YTPRemoveFilter(),YTPlayer.opt.addFilters?$YTPlayer.YTPApplyFilters(YTPlayer.opt.addFilters):$YTPlayer.YTPApplyFilters({}),$YTPlayer.YTPEnableFilters();var YTPready=jQuery.Event("YTPReady");if(YTPready.time=YTPlayer.currentTime,jQuery(YTPlayer).trigger(YTPready),YTPlayer.preventTrigger=!0,YTPlayer.state=2,jQuery(YTPlayer).YTPPause(),YTPlayer.opt.mute||jQuery(YTPlayer).YTPUnmute(),YTPlayer.preventTrigger=!1,"undefined"!=typeof _gaq&&eval(YTPlayer.opt.gaTrack)?_gaq.push(["_trackEvent","YTPlayer","Play",YTPlayer.hasData?YTPlayer.videoData.title:YTPlayer.videoID.toString()]):"undefined"!=typeof ga&&eval(YTPlayer.opt.gaTrack)&&ga("send","event","YTPlayer","play",YTPlayer.hasData?YTPlayer.videoData.title:YTPlayer.videoID.toString()),YTPlayer.opt.autoPlay){var YTPStart=jQuery.Event("YTPStart");YTPStart.time=YTPlayer.currentTime,jQuery(YTPlayer).trigger(YTPStart),$YTPlayer.YTPPlay(),"mac"==jQuery.mbBrowser.os.name&&jQuery.mbBrowser.safari&&jQuery.mbBrowser.versionCompare(jQuery.mbBrowser.fullVersion,"10.1")<0&&(YTPlayer.safariPlay=setInterval(function(){1!=YTPlayer.state?$YTPlayer.YTPPlay():clearInterval(YTPlayer.safariPlay)},10))}else setTimeout(function(){YTPlayer.player.pauseVideo(),YTPlayer.start_from_last&&YTPlayer.player.seekTo(startAt,!0),YTPlayer.isPlayer||(YTPlayer.opt.coverImage?(YTPlayer.wrapper.css({opacity:0}),setTimeout(function(){YTPlayer.wrapper.css({background:"rgba(0,0,0,0.5) url("+YTPlayer.opt.coverImage+") center center",backgroundSize:"cover",backgroundRepeat:"no-repeat"}).CSSAnimate({opacity:YTPlayer.isAlone?1:YTPlayer.opt.opacity},YTPlayer.opt.fadeOnStartTime)},YTPlayer.opt.fadeOnStartTime)):(jQuery(YTPlayer.playerEl).CSSAnimate({opacity:1},YTPlayer.opt.fadeOnStartTime),YTPlayer.wrapper.CSSAnimate({opacity:YTPlayer.isAlone?1:YTPlayer.opt.opacity},YTPlayer.opt.fadeOnStartTime)))},150),YTPlayer.controlBar.length&&YTPlayer.controlBar.find(".mb_YTPPlaypause").html(jQuery.mbYTPlayer.controls.play);YTPlayer.isPlayer&&!YTPlayer.opt.autoPlay&&YTPlayer.loading&&YTPlayer.loading.length&&(YTPlayer.loading.html("Ready"),setTimeout(function(){YTPlayer.loading.fadeOut()},100)),YTPlayer.controlBar&&YTPlayer.controlBar.length&&YTPlayer.controlBar.slideDown(1e3)}else"mac"==jQuery.mbBrowser.os.name&&jQuery.mbBrowser.safari&&jQuery.mbBrowser.fullVersion&&jQuery.mbBrowser.versionCompare(jQuery.mbBrowser.fullVersion,"10.1")<0&&(YTPlayer.player.playVideo(),startAt>=0&&YTPlayer.player.seekTo(startAt,!0))},500),$YTPlayer}$YTPlayer.YTPPlayerDestroy()},getTime:function(){var e=this.get(0);return jQuery.mbYTPlayer.formatTime(e.currentTime)},getTotalTime:function(e){var t=this.get(0);return jQuery.mbYTPlayer.formatTime(t.totalTime)},formatTime:function(e){var t=Math.floor(e/60),i=Math.floor(e-60*t);return(t<=9?"0"+t:t)+" : "+(i<=9?"0"+i:i)},setAnchor:function(e){this.optimizeDisplay(e)},getAnchor:function(){return this.get(0).opt.anchor}},jQuery.fn.optimizeDisplay=function(anchor){var YTPlayer=this.get(0),vid={};YTPlayer.opt.anchor=anchor||YTPlayer.opt.anchor,YTPlayer.opt.anchor="undefined "!=typeof YTPlayer.opt.anchor?YTPlayer.opt.anchor:"center,center";var YTPAlign=YTPlayer.opt.anchor.split(","),el=YTPlayer.wrapper,iframe=jQuery(YTPlayer.playerEl);if(YTPlayer.opt.optimizeDisplay){var abundance=iframe.height()*YTPlayer.opt.abundance,win={};win.width=el.outerWidth(),win.height=el.outerHeight()+abundance,YTPlayer.opt.ratio="auto"===YTPlayer.opt.ratio?16/9:YTPlayer.opt.ratio,YTPlayer.opt.ratio=eval(YTPlayer.opt.ratio),vid.width=win.width,vid.height=Math.ceil(vid.width/YTPlayer.opt.ratio),vid.marginTop=Math.ceil(-(vid.height-win.height)/2),vid.marginLeft=0;var lowest=vid.height<win.height;for(var a in lowest&&(vid.height=win.height,vid.width=Math.ceil(vid.height*YTPlayer.opt.ratio),vid.marginTop=0,vid.marginLeft=Math.ceil(-(vid.width-win.width)/2)),YTPAlign)if(YTPAlign.hasOwnProperty(a)){var al=YTPAlign[a].replace(/ /g,"");switch(al){case"top":vid.marginTop=lowest?-(vid.height-win.height)/2:0;break;case"bottom":vid.marginTop=lowest?0:-(vid.height-win.height);break;case"left":vid.marginLeft=0;break;case"right":vid.marginLeft=lowest?-(vid.width-win.width):0;break;default:vid.width>win.width&&(vid.marginLeft=-(vid.width-win.width)/2)}}}else vid.width="100%",vid.height="100%",vid.marginTop=0,vid.marginLeft=0;iframe.css({width:vid.width,height:vid.height,marginTop:vid.marginTop,marginLeft:vid.marginLeft,maxWidth:"initial"})},jQuery.shuffle=function(e){for(var t=e.slice(),i=t.length,n=i;n--;){var r=parseInt(Math.random()*i),s=t[n];t[n]=t[r],t[r]=s}return t},jQuery.fn.unselectable=function(){return this.each(function(){jQuery(this).css({"-moz-user-select":"none","-webkit-user-select":"none","user-select":"none"}).attr("unselectable","on")})},jQuery.fn.YTPlayer=jQuery.mbYTPlayer.buildPlayer,jQuery.fn.mb_YTPlayer=jQuery.mbYTPlayer.buildPlayer,jQuery.fn.YTPCheckForState=jQuery.mbYTPlayer.checkForState,jQuery.fn.YTPGetPlayer=jQuery.mbYTPlayer.getPlayer,jQuery.fn.YTPGetVideoID=jQuery.mbYTPlayer.getVideoID,jQuery.fn.YTPGetPlaylistID=jQuery.mbYTPlayer.getPlaylistID,jQuery.fn.YTPChangeVideo=jQuery.fn.YTPChangeMovie=jQuery.mbYTPlayer.changeVideo,jQuery.fn.YTPPlayerDestroy=jQuery.mbYTPlayer.playerDestroy,jQuery.fn.YTPPlay=jQuery.mbYTPlayer.play,jQuery.fn.YTPTogglePlay=jQuery.mbYTPlayer.togglePlay,jQuery.fn.YTPStop=jQuery.mbYTPlayer.stop,jQuery.fn.YTPPause=jQuery.mbYTPlayer.pause,jQuery.fn.YTPSeekTo=jQuery.mbYTPlayer.seekTo,jQuery.fn.YTPlaylist=jQuery.mbYTPlayer.playlist,jQuery.fn.YTPPlayNext=jQuery.mbYTPlayer.playNext,jQuery.fn.YTPPlayPrev=jQuery.mbYTPlayer.playPrev,jQuery.fn.YTPPlayIndex=jQuery.mbYTPlayer.playIndex,jQuery.fn.YTPMute=jQuery.mbYTPlayer.mute,jQuery.fn.YTPUnmute=jQuery.mbYTPlayer.unmute,jQuery.fn.YTPToggleVolume=jQuery.mbYTPlayer.toggleVolume,jQuery.fn.YTPSetVolume=jQuery.mbYTPlayer.setVolume,jQuery.fn.YTPGetVolume=jQuery.mbYTPlayer.getVolume,jQuery.fn.YTPGetVideoData=jQuery.mbYTPlayer.getVideoData,jQuery.fn.YTPFullscreen=jQuery.mbYTPlayer.fullscreen,jQuery.fn.YTPToggleLoops=jQuery.mbYTPlayer.toggleLoops,jQuery.fn.YTPSetVideoQuality=jQuery.mbYTPlayer.setVideoQuality,jQuery.fn.YTPManageProgress=jQuery.mbYTPlayer.manageProgress,jQuery.fn.YTPApplyFilter=jQuery.mbYTPlayer.applyFilter,jQuery.fn.YTPApplyFilters=jQuery.mbYTPlayer.applyFilters,jQuery.fn.YTPToggleFilter=jQuery.mbYTPlayer.toggleFilter,jQuery.fn.YTPToggleFilters=jQuery.mbYTPlayer.toggleFilters,jQuery.fn.YTPRemoveFilter=jQuery.mbYTPlayer.removeFilter,jQuery.fn.YTPDisableFilters=jQuery.mbYTPlayer.disableFilters,jQuery.fn.YTPEnableFilters=jQuery.mbYTPlayer.enableFilters,jQuery.fn.YTPGetFilters=jQuery.mbYTPlayer.getFilters,jQuery.fn.YTPGetTime=jQuery.mbYTPlayer.getTime,jQuery.fn.YTPGetTotalTime=jQuery.mbYTPlayer.getTotalTime,jQuery.fn.YTPAddMask=jQuery.mbYTPlayer.addMask,jQuery.fn.YTPRemoveMask=jQuery.mbYTPlayer.removeMask,jQuery.fn.YTPToggleMask=jQuery.mbYTPlayer.toggleMask,jQuery.fn.YTPSetAnchor=jQuery.mbYTPlayer.setAnchor,jQuery.fn.YTPGetAnchor=jQuery.mbYTPlayer.getAnchor}(jQuery,ytp),jQuery.support.CSStransition=function(){var e=(document.body||document.documentElement).style;return void 0!==e.transition||void 0!==e.WebkitTransition||void 0!==e.MozTransition||void 0!==e.MsTransition||void 0!==e.OTransition}(),jQuery.CSS={name:"mb.CSSAnimate",author:"Matteo Bicocchi",version:"2.0.0",transitionEnd:"transitionEnd",sfx:"",filters:{blur:{min:0,max:100,unit:"px"},brightness:{min:0,max:400,unit:"%"},contrast:{min:0,max:400,unit:"%"},grayscale:{min:0,max:100,unit:"%"},hueRotate:{min:0,max:360,unit:"deg"},invert:{min:0,max:100,unit:"%"},saturate:{min:0,max:400,unit:"%"},sepia:{min:0,max:100,unit:"%"}},normalizeCss:function(e){var t=jQuery.extend(!0,{},e);for(var i in jQuery.browser.webkit||jQuery.browser.opera?jQuery.CSS.sfx="-webkit-":jQuery.browser.mozilla?jQuery.CSS.sfx="-moz-":jQuery.browser.msie&&(jQuery.CSS.sfx="-ms-"),jQuery.CSS.sfx="",t){if("transform"===i&&(t[jQuery.CSS.sfx+"transform"]=t[i],delete t[i]),"transform-origin"===i&&(t[jQuery.CSS.sfx+"transform-origin"]=e[i],delete t[i]),"filter"!==i||jQuery.browser.mozilla||(t[jQuery.CSS.sfx+"filter"]=e[i],delete t[i]),"blur"===i&&setFilter(t,"blur",e[i]),"brightness"===i&&setFilter(t,"brightness",e[i]),"contrast"===i&&setFilter(t,"contrast",e[i]),"grayscale"===i&&setFilter(t,"grayscale",e[i]),"hueRotate"===i&&setFilter(t,"hueRotate",e[i]),"invert"===i&&setFilter(t,"invert",e[i]),"saturate"===i&&setFilter(t,"saturate",e[i]),"sepia"===i&&setFilter(t,"sepia",e[i]),"x"===i){var n=jQuery.CSS.sfx+"transform";t[n]=t[n]||"",t[n]+=" translateX("+setUnit(e[i],"px")+")",delete t[i]}"y"===i&&(t[n=jQuery.CSS.sfx+"transform"]=t[n]||"",t[n]+=" translateY("+setUnit(e[i],"px")+")",delete t[i]),"z"===i&&(t[n=jQuery.CSS.sfx+"transform"]=t[n]||"",t[n]+=" translateZ("+setUnit(e[i],"px")+")",delete t[i]),"rotate"===i&&(t[n=jQuery.CSS.sfx+"transform"]=t[n]||"",t[n]+=" rotate("+setUnit(e[i],"deg")+")",delete t[i]),"rotateX"===i&&(t[n=jQuery.CSS.sfx+"transform"]=t[n]||"",t[n]+=" rotateX("+setUnit(e[i],"deg")+")",delete t[i]),"rotateY"===i&&(t[n=jQuery.CSS.sfx+"transform"]=t[n]||"",t[n]+=" rotateY("+setUnit(e[i],"deg")+")",delete t[i]),"rotateZ"===i&&(t[n=jQuery.CSS.sfx+"transform"]=t[n]||"",t[n]+=" rotateZ("+setUnit(e[i],"deg")+")",delete t[i]),"scale"===i&&(t[n=jQuery.CSS.sfx+"transform"]=t[n]||"",t[n]+=" scale("+setUnit(e[i],"")+")",delete t[i]),"scaleX"===i&&(t[n=jQuery.CSS.sfx+"transform"]=t[n]||"",t[n]+=" scaleX("+setUnit(e[i],"")+")",delete t[i]),"scaleY"===i&&(t[n=jQuery.CSS.sfx+"transform"]=t[n]||"",t[n]+=" scaleY("+setUnit(e[i],"")+")",delete t[i]),"scaleZ"===i&&(t[n=jQuery.CSS.sfx+"transform"]=t[n]||"",t[n]+=" scaleZ("+setUnit(e[i],"")+")",delete t[i]),"skew"===i&&(t[n=jQuery.CSS.sfx+"transform"]=t[n]||"",t[n]+=" skew("+setUnit(e[i],"deg")+")",delete t[i]),"skewX"===i&&(t[n=jQuery.CSS.sfx+"transform"]=t[n]||"",t[n]+=" skewX("+setUnit(e[i],"deg")+")",delete t[i]),"skewY"===i&&(t[n=jQuery.CSS.sfx+"transform"]=t[n]||"",t[n]+=" skewY("+setUnit(e[i],"deg")+")",delete t[i]),"perspective"===i&&(t[n=jQuery.CSS.sfx+"transform"]=t[n]||"",t[n]+=" perspective("+setUnit(e[i],"px")+")",delete t[i])}return t},getProp:function(e){var t,i=[];for(t in e)0>i.indexOf(t)&&i.push(uncamel(t));return i.join(",")},animate:function(e,t,i,n,r){return this.each(function(){function s(){a.called=!0,a.CSSAIsRunning=!1,o.off(jQuery.CSS.transitionEnd+"."+a.id),clearTimeout(a.timeout),o.css(jQuery.CSS.sfx+"transition",""),"function"==typeof r&&r.apply(a),"function"==typeof a.CSSqueue&&(a.CSSqueue(),a.CSSqueue=null)}var a=this,o=jQuery(this);a.id=a.id||"CSSA_"+(new Date).getTime();var l=l||{type:"noEvent"};if(a.CSSAIsRunning&&a.eventType==l.type&&!jQuery.browser.msie&&9>=jQuery.browser.version)a.CSSqueue=function(){o.CSSAnimate(e,t,i,n,r)};else if(a.CSSqueue=null,a.eventType=l.type,0!==o.length&&e){if(e=jQuery.normalizeCss(e),a.CSSAIsRunning=!0,"function"==typeof t&&(r=t,t=jQuery.fx.speeds._default),"function"==typeof i&&(n=i,i=0),"string"==typeof i&&(r=i,i=0),"function"==typeof n&&(r=n,n="cubic-bezier(0.65,0.03,0.36,0.72)"),"string"==typeof t)for(var u in jQuery.fx.speeds){if(t==u){t=jQuery.fx.speeds[u];break}t=jQuery.fx.speeds._default}if(t||(t=jQuery.fx.speeds._default),"string"==typeof r&&(n=r,r=null),jQuery.support.CSStransition){var c={default:"ease",in:"ease-in",out:"ease-out","in-out":"ease-in-out",snap:"cubic-bezier(0,1,.5,1)",easeOutCubic:"cubic-bezier(.215,.61,.355,1)",easeInOutCubic:"cubic-bezier(.645,.045,.355,1)",easeInCirc:"cubic-bezier(.6,.04,.98,.335)",easeOutCirc:"cubic-bezier(.075,.82,.165,1)",easeInOutCirc:"cubic-bezier(.785,.135,.15,.86)",easeInExpo:"cubic-bezier(.95,.05,.795,.035)",easeOutExpo:"cubic-bezier(.19,1,.22,1)",easeInOutExpo:"cubic-bezier(1,0,0,1)",easeInQuad:"cubic-bezier(.55,.085,.68,.53)",easeOutQuad:"cubic-bezier(.25,.46,.45,.94)",easeInOutQuad:"cubic-bezier(.455,.03,.515,.955)",easeInQuart:"cubic-bezier(.895,.03,.685,.22)",easeOutQuart:"cubic-bezier(.165,.84,.44,1)",easeInOutQuart:"cubic-bezier(.77,0,.175,1)",easeInQuint:"cubic-bezier(.755,.05,.855,.06)",easeOutQuint:"cubic-bezier(.23,1,.32,1)",easeInOutQuint:"cubic-bezier(.86,0,.07,1)",easeInSine:"cubic-bezier(.47,0,.745,.715)",easeOutSine:"cubic-bezier(.39,.575,.565,1)",easeInOutSine:"cubic-bezier(.445,.05,.55,.95)",easeInBack:"cubic-bezier(.6,-.28,.735,.045)",easeOutBack:"cubic-bezier(.175, .885,.32,1.275)",easeInOutBack:"cubic-bezier(.68,-.55,.265,1.55)"};c[n]&&(n=c[n]),o.off(jQuery.CSS.transitionEnd+"."+a.id),c=jQuery.CSS.getProp(e);var d={};jQuery.extend(d,e),d[jQuery.CSS.sfx+"transition-property"]=c,d[jQuery.CSS.sfx+"transition-duration"]=t+"ms",d[jQuery.CSS.sfx+"transition-delay"]=i+"ms",d[jQuery.CSS.sfx+"transition-timing-function"]=n,setTimeout(function(){o.one(jQuery.CSS.transitionEnd+"."+a.id,s),o.css(d)},1),a.timeout=setTimeout(function(){a.called||!r?(a.called=!1,a.CSSAIsRunning=!1):(o.css(jQuery.CSS.sfx+"transition",""),r.apply(a),a.CSSAIsRunning=!1,"function"==typeof a.CSSqueue&&(a.CSSqueue(),a.CSSqueue=null))},t+i+10)}else{for(c in e)"transform"===c&&delete e[c],"filter"===c&&delete e[c],"transform-origin"===c&&delete e[c],"auto"===e[c]&&delete e[c],"x"===c&&(l=e[c],e[u="left"]=l,delete e[c]),"y"===c&&(l=e[c],e[u="top"]=l,delete e[c]),"-ms-transform"!==c&&"-ms-filter"!==c||delete e[c];o.delay(i).animate(e,t,r)}}})}},jQuery.fn.CSSAnimate=jQuery.CSS.animate,jQuery.normalizeCss=jQuery.CSS.normalizeCss,jQuery.fn.css3=function(e){return this.each(function(){var t=jQuery(this),i=jQuery.normalizeCss(e);t.css(i)})};var nAgt=navigator.userAgent;jQuery.browser=jQuery.browser||{},jQuery.browser.mozilla=!1,jQuery.browser.webkit=!1,jQuery.browser.opera=!1,jQuery.browser.safari=!1,jQuery.browser.chrome=!1,jQuery.browser.androidStock=!1,jQuery.browser.msie=!1,jQuery.browser.edge=!1,jQuery.browser.ua=nAgt;var getOS=function(){var e={version:"Unknown version",name:"Unknown OS"};return-1!=navigator.appVersion.indexOf("Win")&&(e.name="Windows"),-1!=navigator.appVersion.indexOf("Mac")&&0>navigator.appVersion.indexOf("Mobile")&&(e.name="Mac"),-1!=navigator.appVersion.indexOf("Linux")&&(e.name="Linux"),/Mac OS X/.test(nAgt)&&!/Mobile/.test(nAgt)&&(e.version=/Mac OS X (10[\.\_\d]+)/.exec(nAgt)[1],e.version=e.version.replace(/_/g,".").substring(0,5)),/Windows/.test(nAgt)&&(e.version="Unknown.Unknown"),/Windows NT 5.1/.test(nAgt)&&(e.version="5.1"),/Windows NT 6.0/.test(nAgt)&&(e.version="6.0"),/Windows NT 6.1/.test(nAgt)&&(e.version="6.1"),/Windows NT 6.2/.test(nAgt)&&(e.version="6.2"),/Windows NT 10.0/.test(nAgt)&&(e.version="10.0"),/Linux/.test(nAgt)&&/Linux/.test(nAgt)&&(e.version="Unknown.Unknown"),e.name=e.name.toLowerCase(),e.major_version="Unknown",e.minor_version="Unknown","Unknown.Unknown"!=e.version&&(e.major_version=parseFloat(e.version.split(".")[0]),e.minor_version=parseFloat(e.version.split(".")[1])),e},nameOffset,verOffset,ix;if(jQuery.browser.os=getOS(),jQuery.browser.hasTouch=isTouchSupported(),jQuery.browser.name=navigator.appName,jQuery.browser.fullVersion=""+parseFloat(navigator.appVersion),jQuery.browser.majorVersion=parseInt(navigator.appVersion,10),-1!=(verOffset=nAgt.indexOf("Opera")))jQuery.browser.opera=!0,jQuery.browser.name="Opera",jQuery.browser.fullVersion=nAgt.substring(verOffset+6),-1!=(verOffset=nAgt.indexOf("Version"))&&(jQuery.browser.fullVersion=nAgt.substring(verOffset+8));else if(-1!=(verOffset=nAgt.indexOf("OPR")))jQuery.browser.opera=!0,jQuery.browser.name="Opera",jQuery.browser.fullVersion=nAgt.substring(verOffset+4);else if(-1!=(verOffset=nAgt.indexOf("MSIE")))jQuery.browser.msie=!0,jQuery.browser.name="Microsoft Internet Explorer",jQuery.browser.fullVersion=nAgt.substring(verOffset+5);else if(-1!=nAgt.indexOf("Trident")){jQuery.browser.msie=!0,jQuery.browser.name="Microsoft Internet Explorer";var start=nAgt.indexOf("rv:")+3,end=start+4;jQuery.browser.fullVersion=nAgt.substring(start,end)}else-1!=(verOffset=nAgt.indexOf("Edge"))?(jQuery.browser.edge=!0,jQuery.browser.name="Microsoft Edge",jQuery.browser.fullVersion=nAgt.substring(verOffset+5)):-1!=(verOffset=nAgt.indexOf("Chrome"))?(jQuery.browser.webkit=!0,jQuery.browser.chrome=!0,jQuery.browser.name="Chrome",jQuery.browser.fullVersion=nAgt.substring(verOffset+7)):-1<nAgt.indexOf("mozilla/5.0")&&-1<nAgt.indexOf("android ")&&-1<nAgt.indexOf("applewebkit")&&!(-1<nAgt.indexOf("chrome"))?(verOffset=nAgt.indexOf("Chrome"),jQuery.browser.webkit=!0,jQuery.browser.androidStock=!0,jQuery.browser.name="androidStock",jQuery.browser.fullVersion=nAgt.substring(verOffset+7)):-1!=(verOffset=nAgt.indexOf("Safari"))?(jQuery.browser.webkit=!0,jQuery.browser.safari=!0,jQuery.browser.name="Safari",jQuery.browser.fullVersion=nAgt.substring(verOffset+7),-1!=(verOffset=nAgt.indexOf("Version"))&&(jQuery.browser.fullVersion=nAgt.substring(verOffset+8))):-1!=(verOffset=nAgt.indexOf("AppleWebkit"))?(jQuery.browser.webkit=!0,jQuery.browser.safari=!0,jQuery.browser.name="Safari",jQuery.browser.fullVersion=nAgt.substring(verOffset+7),-1!=(verOffset=nAgt.indexOf("Version"))&&(jQuery.browser.fullVersion=nAgt.substring(verOffset+8))):-1!=(verOffset=nAgt.indexOf("Firefox"))?(jQuery.browser.mozilla=!0,jQuery.browser.name="Firefox",jQuery.browser.fullVersion=nAgt.substring(verOffset+8)):(nameOffset=nAgt.lastIndexOf(" ")+1)<(verOffset=nAgt.lastIndexOf("/"))&&(jQuery.browser.name=nAgt.substring(nameOffset,verOffset),jQuery.browser.fullVersion=nAgt.substring(verOffset+1),jQuery.browser.name.toLowerCase()==jQuery.browser.name.toUpperCase()&&(jQuery.browser.name=navigator.appName));-1!=(ix=jQuery.browser.fullVersion.indexOf(";"))&&(jQuery.browser.fullVersion=jQuery.browser.fullVersion.substring(0,ix)),-1!=(ix=jQuery.browser.fullVersion.indexOf(" "))&&(jQuery.browser.fullVersion=jQuery.browser.fullVersion.substring(0,ix)),jQuery.browser.majorVersion=parseInt(""+jQuery.browser.fullVersion,10),isNaN(jQuery.browser.majorVersion)&&(jQuery.browser.fullVersion=""+parseFloat(navigator.appVersion),jQuery.browser.majorVersion=parseInt(navigator.appVersion,10)),jQuery.browser.version=jQuery.browser.majorVersion,jQuery.browser.android=/Android/i.test(nAgt),jQuery.browser.blackberry=/BlackBerry|BB|PlayBook/i.test(nAgt),jQuery.browser.ios=/iPhone|iPad|iPod|webOS/i.test(nAgt),jQuery.browser.operaMobile=/Opera Mini/i.test(nAgt),jQuery.browser.windowsMobile=/IEMobile|Windows Phone/i.test(nAgt),jQuery.browser.kindle=/Kindle|Silk/i.test(nAgt),jQuery.browser.mobile=jQuery.browser.android||jQuery.browser.blackberry||jQuery.browser.ios||jQuery.browser.windowsMobile||jQuery.browser.operaMobile||jQuery.browser.kindle,jQuery.isMobile=jQuery.browser.mobile,jQuery.isTablet=jQuery.browser.mobile&&765<jQuery(window).width(),jQuery.isAndroidDefault=jQuery.browser.android&&!/chrome/i.test(nAgt),jQuery.mbBrowser=jQuery.browser,jQuery.browser.versionCompare=function(e,t){if("stringstring"!=typeof e+typeof t)return!1;for(var i=e.split("."),n=t.split("."),r=0,s=Math.max(i.length,n.length);r<s;r++){if(i[r]&&!n[r]&&0<parseInt(i[r])||parseInt(i[r])>parseInt(n[r]))return 1;if(n[r]&&!i[r]&&0<parseInt(n[r])||parseInt(i[r])<parseInt(n[r]))return-1}return 0};var nAgt=navigator.userAgent;jQuery.browser=jQuery.browser||{},jQuery.browser.mozilla=!1,jQuery.browser.webkit=!1,jQuery.browser.opera=!1,jQuery.browser.safari=!1,jQuery.browser.chrome=!1,jQuery.browser.androidStock=!1,jQuery.browser.msie=!1,jQuery.browser.edge=!1,jQuery.browser.ua=nAgt;var getOS=function(){var e={version:"Unknown version",name:"Unknown OS"};return-1!=navigator.appVersion.indexOf("Win")&&(e.name="Windows"),-1!=navigator.appVersion.indexOf("Mac")&&0>navigator.appVersion.indexOf("Mobile")&&(e.name="Mac"),-1!=navigator.appVersion.indexOf("Linux")&&(e.name="Linux"),/Mac OS X/.test(nAgt)&&!/Mobile/.test(nAgt)&&(e.version=/Mac OS X (10[\.\_\d]+)/.exec(nAgt)[1],e.version=e.version.replace(/_/g,".").substring(0,5)),/Windows/.test(nAgt)&&(e.version="Unknown.Unknown"),/Windows NT 5.1/.test(nAgt)&&(e.version="5.1"),/Windows NT 6.0/.test(nAgt)&&(e.version="6.0"),/Windows NT 6.1/.test(nAgt)&&(e.version="6.1"),/Windows NT 6.2/.test(nAgt)&&(e.version="6.2"),/Windows NT 10.0/.test(nAgt)&&(e.version="10.0"),/Linux/.test(nAgt)&&/Linux/.test(nAgt)&&(e.version="Unknown.Unknown"),e.name=e.name.toLowerCase(),e.major_version="Unknown",e.minor_version="Unknown","Unknown.Unknown"!=e.version&&(e.major_version=parseFloat(e.version.split(".")[0]),e.minor_version=parseFloat(e.version.split(".")[1])),e},nameOffset,verOffset,ix;if(jQuery.browser.os=getOS(),jQuery.browser.hasTouch=isTouchSupported(),jQuery.browser.name=navigator.appName,jQuery.browser.fullVersion=""+parseFloat(navigator.appVersion),jQuery.browser.majorVersion=parseInt(navigator.appVersion,10),-1!=(verOffset=nAgt.indexOf("Opera")))jQuery.browser.opera=!0,jQuery.browser.name="Opera",jQuery.browser.fullVersion=nAgt.substring(verOffset+6),-1!=(verOffset=nAgt.indexOf("Version"))&&(jQuery.browser.fullVersion=nAgt.substring(verOffset+8));else if(-1!=(verOffset=nAgt.indexOf("OPR")))jQuery.browser.opera=!0,jQuery.browser.name="Opera",jQuery.browser.fullVersion=nAgt.substring(verOffset+4);else if(-1!=(verOffset=nAgt.indexOf("MSIE")))jQuery.browser.msie=!0,jQuery.browser.name="Microsoft Internet Explorer",jQuery.browser.fullVersion=nAgt.substring(verOffset+5);else if(-1!=nAgt.indexOf("Trident")){jQuery.browser.msie=!0,jQuery.browser.name="Microsoft Internet Explorer";var start=nAgt.indexOf("rv:")+3,end=start+4;jQuery.browser.fullVersion=nAgt.substring(start,end)}else-1!=(verOffset=nAgt.indexOf("Edge"))?(jQuery.browser.edge=!0,jQuery.browser.name="Microsoft Edge",jQuery.browser.fullVersion=nAgt.substring(verOffset+5)):-1!=(verOffset=nAgt.indexOf("Chrome"))?(jQuery.browser.webkit=!0,jQuery.browser.chrome=!0,jQuery.browser.name="Chrome",jQuery.browser.fullVersion=nAgt.substring(verOffset+7)):-1<nAgt.indexOf("mozilla/5.0")&&-1<nAgt.indexOf("android ")&&-1<nAgt.indexOf("applewebkit")&&!(-1<nAgt.indexOf("chrome"))?(verOffset=nAgt.indexOf("Chrome"),jQuery.browser.webkit=!0,jQuery.browser.androidStock=!0,jQuery.browser.name="androidStock",jQuery.browser.fullVersion=nAgt.substring(verOffset+7)):-1!=(verOffset=nAgt.indexOf("Safari"))?(jQuery.browser.webkit=!0,jQuery.browser.safari=!0,jQuery.browser.name="Safari",jQuery.browser.fullVersion=nAgt.substring(verOffset+7),-1!=(verOffset=nAgt.indexOf("Version"))&&(jQuery.browser.fullVersion=nAgt.substring(verOffset+8))):-1!=(verOffset=nAgt.indexOf("AppleWebkit"))?(jQuery.browser.webkit=!0,jQuery.browser.safari=!0,jQuery.browser.name="Safari",jQuery.browser.fullVersion=nAgt.substring(verOffset+7),-1!=(verOffset=nAgt.indexOf("Version"))&&(jQuery.browser.fullVersion=nAgt.substring(verOffset+8))):-1!=(verOffset=nAgt.indexOf("Firefox"))?(jQuery.browser.mozilla=!0,jQuery.browser.name="Firefox",jQuery.browser.fullVersion=nAgt.substring(verOffset+8)):(nameOffset=nAgt.lastIndexOf(" ")+1)<(verOffset=nAgt.lastIndexOf("/"))&&(jQuery.browser.name=nAgt.substring(nameOffset,verOffset),jQuery.browser.fullVersion=nAgt.substring(verOffset+1),jQuery.browser.name.toLowerCase()==jQuery.browser.name.toUpperCase()&&(jQuery.browser.name=navigator.appName));-1!=(ix=jQuery.browser.fullVersion.indexOf(";"))&&(jQuery.browser.fullVersion=jQuery.browser.fullVersion.substring(0,ix)),-1!=(ix=jQuery.browser.fullVersion.indexOf(" "))&&(jQuery.browser.fullVersion=jQuery.browser.fullVersion.substring(0,ix)),jQuery.browser.majorVersion=parseInt(""+jQuery.browser.fullVersion,10),isNaN(jQuery.browser.majorVersion)&&(jQuery.browser.fullVersion=""+parseFloat(navigator.appVersion),jQuery.browser.majorVersion=parseInt(navigator.appVersion,10)),jQuery.browser.version=jQuery.browser.majorVersion,jQuery.browser.android=/Android/i.test(nAgt),jQuery.browser.blackberry=/BlackBerry|BB|PlayBook/i.test(nAgt),jQuery.browser.ios=/iPhone|iPad|iPod|webOS/i.test(nAgt),jQuery.browser.operaMobile=/Opera Mini/i.test(nAgt),jQuery.browser.windowsMobile=/IEMobile|Windows Phone/i.test(nAgt),jQuery.browser.kindle=/Kindle|Silk/i.test(nAgt),jQuery.browser.mobile=jQuery.browser.android||jQuery.browser.blackberry||jQuery.browser.ios||jQuery.browser.windowsMobile||jQuery.browser.operaMobile||jQuery.browser.kindle,jQuery.isMobile=jQuery.browser.mobile,jQuery.isTablet=jQuery.browser.mobile&&765<jQuery(window).width(),jQuery.isAndroidDefault=jQuery.browser.android&&!/chrome/i.test(nAgt),jQuery.mbBrowser=jQuery.browser,jQuery.browser.versionCompare=function(e,t){if("stringstring"!=typeof e+typeof t)return!1;for(var i=e.split("."),n=t.split("."),r=0,s=Math.max(i.length,n.length);r<s;r++){if(i[r]&&!n[r]&&0<parseInt(i[r])||parseInt(i[r])>parseInt(n[r]))return 1;if(n[r]&&!i[r]&&0<parseInt(n[r])||parseInt(i[r])<parseInt(n[r]))return-1}return 0},function(e){e.simpleSlider={defaults:{initialval:0,scale:100,orientation:"h",readonly:!1,callback:!1},events:{start:e.browser.mobile?"touchstart":"mousedown",end:e.browser.mobile?"touchend":"mouseup",move:e.browser.mobile?"touchmove":"mousemove"},init:function(t){return this.each(function(){var i=this,n=e(i);n.addClass("simpleSlider"),i.opt={},e.extend(i.opt,e.simpleSlider.defaults,t),e.extend(i.opt,n.data());var r="h"==i.opt.orientation?"horizontal":"vertical";r=e("<div/>").addClass("level").addClass(r),n.prepend(r),i.level=r,n.css({cursor:"default"}),"auto"==i.opt.scale&&(i.opt.scale=e(i).outerWidth()),n.updateSliderVal(),i.opt.readonly||(n.on(e.simpleSlider.events.start,function(t){e.browser.mobile&&(t=t.changedTouches[0]),i.canSlide=!0,n.updateSliderVal(t),"h"==i.opt.orientation?n.css({cursor:"col-resize"}):n.css({cursor:"row-resize"}),e.browser.mobile||(t.preventDefault(),t.stopPropagation())}),e(document).on(e.simpleSlider.events.move,function(t){e.browser.mobile&&(t=t.changedTouches[0]),i.canSlide&&(e(document).css({cursor:"default"}),n.updateSliderVal(t),e.browser.mobile||(t.preventDefault(),t.stopPropagation()))}).on(e.simpleSlider.events.end,function(){e(document).css({cursor:"auto"}),i.canSlide=!1,n.css({cursor:"auto"})}))})},updateSliderVal:function(t){var i=this.get(0);if(i.opt){i.opt.initialval="number"==typeof i.opt.initialval?i.opt.initialval:i.opt.initialval(i);var n=e(i).outerWidth(),r=e(i).outerHeight();i.x="object"==typeof t?t.clientX+document.body.scrollLeft-this.offset().left:"number"==typeof t?t*n/i.opt.scale:i.opt.initialval*n/i.opt.scale,i.y="object"==typeof t?t.clientY+document.body.scrollTop-this.offset().top:"number"==typeof t?(i.opt.scale-i.opt.initialval-t)*r/i.opt.scale:i.opt.initialval*r/i.opt.scale,i.y=this.outerHeight()-i.y,i.scaleX=i.x*i.opt.scale/n,i.scaleY=i.y*i.opt.scale/r,i.outOfRangeX=i.scaleX>i.opt.scale?i.scaleX-i.opt.scale:0>i.scaleX?i.scaleX:0,i.outOfRangeY=i.scaleY>i.opt.scale?i.scaleY-i.opt.scale:0>i.scaleY?i.scaleY:0,i.outOfRange="h"==i.opt.orientation?i.outOfRangeX:i.outOfRangeY,i.value=void 0!==t?"h"==i.opt.orientation?i.x>=this.outerWidth()?i.opt.scale:0>=i.x?0:i.scaleX:i.y>=this.outerHeight()?i.opt.scale:0>=i.y?0:i.scaleY:"h"==i.opt.orientation?i.scaleX:i.scaleY,"h"==i.opt.orientation?i.level.width(Math.floor(100*i.x/n)+"%"):i.level.height(Math.floor(100*i.y/r)),"function"==typeof i.opt.callback&&i.opt.callback(i)}}},e.fn.simpleSlider=e.simpleSlider.init,e.fn.updateSliderVal=e.simpleSlider.updateSliderVal}(jQuery),function(e){e.mbCookie={set:function(e,t,i,n){"object"==typeof t&&(t=JSON.stringify(t)),n=n?"; domain="+n:"";var r=new Date,s="";0<i&&(r.setTime(r.getTime()+864e5*i),s="; expires="+r.toGMTString()),document.cookie=e+"="+t+s+"; path=/"+n},get:function(e){e+="=";for(var t=document.cookie.split(";"),i=0;i<t.length;i++){for(var n=t[i];" "==n.charAt(0);)n=n.substring(1,n.length);if(0==n.indexOf(e))try{return JSON.parse(n.substring(e.length,n.length))}catch(t){return n.substring(e.length,n.length)}}return null},remove:function(t){e.mbCookie.set(t,"",-1)}},e.mbStorage={set:function(e,t){"object"==typeof t&&(t=JSON.stringify(t)),localStorage.setItem(e,t)},get:function(e){if(!localStorage[e])return null;try{return JSON.parse(localStorage[e])}catch(t){return localStorage[e]}},remove:function(e){e?localStorage.removeItem(e):localStorage.clear()}}}(jQuery),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(e){function t(e){return a.raw?e:encodeURIComponent(e)}function i(e){return a.raw?e:decodeURIComponent(e)}function n(e){return t(a.json?JSON.stringify(e):String(e))}function r(t,i){var n=a.raw?t:function(e){0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return e=decodeURIComponent(e.replace(s," ")),a.json?JSON.parse(e):e}catch(e){}}(t);return e.isFunction(i)?i(n):n}var s=/\+/g,a=e.cookie=function(s,o,l){if(arguments.length>1&&!e.isFunction(o)){if("number"==typeof(l=e.extend({},a.defaults,l)).expires){var u=l.expires,c=l.expires=new Date;c.setMilliseconds(c.getMilliseconds()+864e5*u)}return document.cookie=[t(s),"=",n(o),l.expires?"; expires="+l.expires.toUTCString():"",l.path?"; path="+l.path:"",l.domain?"; domain="+l.domain:"",l.secure?"; secure":""].join("")}for(var d=s?void 0:{},h=document.cookie?document.cookie.split("; "):[],p=0,f=h.length;f>p;p++){var m=h[p].split("="),g=i(m.shift()),v=m.join("=");if(s===g){d=r(v,o);break}s||void 0===(v=r(v))||(d[g]=v)}return d};a.defaults={},e.removeCookie=function(t,i){return e.cookie(t,"",e.extend({},i,{expires:-1})),!e.cookie(t)}}),function(e,t){"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e)}):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}(0,function(e){var t=function(e,t){var i,n=document.createElement("canvas");e.appendChild(n),"object"==typeof G_vmlCanvasManager&&G_vmlCanvasManager.initElement(n);var r=n.getContext("2d");n.width=n.height=t.size;var s=1;window.devicePixelRatio>1&&(s=window.devicePixelRatio,n.style.width=n.style.height=[t.size,"px"].join(""),n.width=n.height=t.size*s,r.scale(s,s)),r.translate(t.size/2,t.size/2),r.rotate((t.rotate/180-.5)*Math.PI);var a=(t.size-t.lineWidth)/2;t.scaleColor&&t.scaleLength&&(a-=t.scaleLength+2),Date.now=Date.now||function(){return+new Date};var o=function(e,t,i){var n=0>=(i=Math.min(Math.max(-1,i||0),1));r.beginPath(),r.arc(0,0,a,0,2*Math.PI*i,n),r.strokeStyle=e,r.lineWidth=t,r.stroke()},l=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)},u=function(){t.scaleColor&&function(){var e,i;r.lineWidth=1,r.fillStyle=t.scaleColor,r.save();for(var n=24;n>0;--n)n%6==0?(i=t.scaleLength,e=0):(i=.6*t.scaleLength,e=t.scaleLength-i),r.fillRect(-t.size/2+e,0,i,1),r.rotate(Math.PI/12);r.restore()}(),t.trackColor&&o(t.trackColor,t.trackWidth||t.lineWidth,1)};this.getCanvas=function(){return n},this.getCtx=function(){return r},this.clear=function(){r.clearRect(t.size/-2,t.size/-2,t.size,t.size)},this.draw=function(e){var n;t.scaleColor||t.trackColor?r.getImageData&&r.putImageData?i?r.putImageData(i,0,0):(u(),i=r.getImageData(0,0,t.size*s,t.size*s)):(this.clear(),u()):this.clear(),r.lineCap=t.lineCap,n="function"==typeof t.barColor?t.barColor(e):t.barColor,o(n,t.lineWidth,e/100)}.bind(this),this.animate=function(e,i){var n=Date.now();t.onStart(e,i);var r=function(){var s=Math.min(Date.now()-n,t.animate.duration),a=t.easing(this,s,e,i-e,t.animate.duration);this.draw(a),t.onStep(e,i,a),s>=t.animate.duration?t.onStop(e,i):l(r)}.bind(this);l(r)}.bind(this)},i=function(e,i){var n={barColor:"#ef1e25",trackColor:"#f9f9f9",scaleColor:"#dfe0e0",scaleLength:5,lineCap:"round",lineWidth:3,trackWidth:void 0,size:110,rotate:0,animate:{duration:1e3,enabled:!0},easing:function(e,t,i,n,r){return 1>(t/=r/2)?n/2*t*t+i:-n/2*(--t*(t-2)-1)+i},onStart:function(e,t){},onStep:function(e,t,i){},onStop:function(e,t){}};if(void 0!==t)n.renderer=t;else{if("undefined"==typeof SVGRenderer)throw new Error("Please load either the SVG- or the CanvasRenderer");n.renderer=SVGRenderer}var r={},s=0,a=function(){for(var t in this.el=e,this.options=r,n)n.hasOwnProperty(t)&&(r[t]=i&&void 0!==i[t]?i[t]:n[t],"function"==typeof r[t]&&(r[t]=r[t].bind(this)));"string"==typeof r.easing&&"undefined"!=typeof jQuery&&jQuery.isFunction(jQuery.easing[r.easing])?r.easing=jQuery.easing[r.easing]:r.easing=n.easing,"number"==typeof r.animate&&(r.animate={duration:r.animate,enabled:!0}),"boolean"!=typeof r.animate||r.animate||(r.animate={duration:1e3,enabled:r.animate}),this.renderer=new r.renderer(e,r),this.renderer.draw(s),e.dataset&&e.dataset.percent?this.update(parseFloat(e.dataset.percent)):e.getAttribute&&e.getAttribute("data-percent")&&this.update(parseFloat(e.getAttribute("data-percent")))}.bind(this);this.update=function(e){return e=parseFloat(e),r.animate.enabled?this.renderer.animate(s,e):this.renderer.draw(e),s=e,this}.bind(this),this.disableAnimation=function(){return r.animate.enabled=!1,this},this.enableAnimation=function(){return r.animate.enabled=!0,this},a()};e.fn.easyPieChart=function(t){return this.each(function(){var n;e.data(this,"easyPieChart")||(n=e.extend({},t,e(this).data()),e.data(this,"easyPieChart",new i(this,n)))})}}),function(e){e.fn.appear=function(t,i){var n=e.extend({data:void 0,one:!0,accX:0,accY:0},i);return this.each(function(){var i=e(this);if(i.appeared=!1,t){var r=e(window),s=function(){if(i.is(":visible")){var e=r.scrollLeft(),t=r.scrollTop(),s=i.offset(),a=s.left,o=s.top,l=n.accX,u=n.accY,c=i.height(),d=r.height(),h=i.width(),p=r.width();o+c+u>=t&&o<=t+d+u&&a+h+l>=e&&a<=e+p+l?i.appeared||i.trigger("appear",n.data):i.appeared=!1}else i.appeared=!1},a=function(){if(i.appeared=!0,n.one){r.unbind("scroll",s);var a=e.inArray(s,e.fn.appear.checks);a>=0&&e.fn.appear.checks.splice(a,1)}t.apply(this,arguments)};n.one?i.one("appear",n.data,a):i.bind("appear",n.data,a),r.scroll(s),e.fn.appear.checks.push(s),s()}else i.trigger("appear",n.data)})},e.extend(e.fn.appear,{checks:[],timeout:null,checkAll:function(){var t=e.fn.appear.checks.length;if(t>0)for(;t--;)e.fn.appear.checks[t]()},run:function(){e.fn.appear.timeout&&clearTimeout(e.fn.appear.timeout),e.fn.appear.timeout=setTimeout(e.fn.appear.checkAll,20)}}),e.each(["append","prepend","after","before","attr","removeAttr","addClass","removeClass","toggleClass","remove","css","show","hide"],function(t,i){var n=e.fn[i];n&&(e.fn[i]=function(){var t=n.apply(this,arguments);return e.fn.appear.run(),t})})}(jQuery),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(e){"use strict";var t=!1;e(window).on("load",function(){t=!0});var i="animsition",n={init:function(r){r=e.extend({inClass:"fade-in",outClass:"fade-out",inDuration:1500,outDuration:800,linkElement:".animsition-link",loading:!0,loadingParentElement:"body",loadingClass:"animsition-loading",loadingInner:"",timeout:!1,timeoutCountdown:5e3,onLoadEvent:!0,browser:["animation-duration","-webkit-animation-duration"],overlay:!1,overlayClass:"animsition-overlay-slide",overlayParentElement:"body",transition:function(e){window.location.href=e}},r),n.settings={timer:!1,data:{inClass:"animsition-in-class",inDuration:"animsition-in-duration",outClass:"animsition-out-class",outDuration:"animsition-out-duration",overlay:"animsition-overlay"},events:{inStart:"animsition.inStart",inEnd:"animsition.inEnd",outStart:"animsition.outStart",outEnd:"animsition.outEnd"}};var s=n.supportCheck.call(this,r);return s||!(r.browser.length>0)||s&&this.length?(n.optionCheck.call(this,r)&&e("."+r.overlayClass).length<=0&&n.addOverlay.call(this,r),r.loading&&e("."+r.loadingClass).length<=0&&n.addLoading.call(this,r),this.each(function(){var s=this,a=e(this),o=e(window),l=e(document);a.data(i)||(r=e.extend({},r),a.data(i,{options:r}),r.timeout&&n.addTimer.call(s),r.onLoadEvent&&(t?(n.settings.timer&&clearTimeout(n.settings.timer),n.in.call(s)):o.on("load."+i,function(){n.settings.timer&&clearTimeout(n.settings.timer),n.in.call(s)})),o.on("pageshow."+i,function(e){e.originalEvent.persisted&&n.in.call(s)}),o.on("unload."+i,function(){}),l.on("click."+i,r.linkElement,function(t){t.preventDefault();var i=e(this),r=i.attr("href");2===t.which||t.metaKey||t.shiftKey||-1!==navigator.platform.toUpperCase().indexOf("WIN")&&t.ctrlKey?window.open(r,"_blank"):n.out.call(s,i,r)}))})):("console"in window||(window.console={},window.console.log=function(e){return e}),this.length||console.log("Animsition: Element does not exist on page."),s||console.log("Animsition: Does not support this browser."),n.destroy.call(this))},addOverlay:function(t){e(t.overlayParentElement).prepend('<div class="'+t.overlayClass+'"></div>')},addLoading:function(t){e(t.loadingParentElement).append('<div class="'+t.loadingClass+'">'+t.loadingInner+"</div>")},removeLoading:function(){var t=e(this).data(i).options;e(t.loadingParentElement).children("."+t.loadingClass).fadeOut().remove()},addTimer:function(){var t=this,r=e(this).data(i).options;n.settings.timer=setTimeout(function(){n.in.call(t),e(window).off("load."+i)},r.timeoutCountdown)},supportCheck:function(t){var i=e(this),n=t.browser,r=n.length,s=!1;0===r&&(s=!0);for(var a=0;r>a;a++)if("string"==typeof i.css(n[a])){s=!0;break}return s},optionCheck:function(t){var i=e(this);return!(!t.overlay&&!i.data(n.settings.data.overlay))},animationCheck:function(t,n,r){var s=e(this).data(i).options,a=typeof t,o=!n&&"number"===a,l=n&&"string"===a&&t.length>0;return o||l?t=t:n&&r?t=s.inClass:!n&&r?t=s.inDuration:n&&!r?t=s.outClass:n||r||(t=s.outDuration),t},in:function(){var t=this,r=e(this),s=r.data(i).options,a=r.data(n.settings.data.inDuration),o=r.data(n.settings.data.inClass),l=n.animationCheck.call(t,a,!1,!0),u=n.animationCheck.call(t,o,!0,!0),c=n.optionCheck.call(t,s),d=r.data(i).outClass;s.loading&&n.removeLoading.call(t),d&&r.removeClass(d),c?n.inOverlay.call(t,u,l):n.inDefault.call(t,u,l)},inDefault:function(t,i){var r=e(this);r.css({"animation-duration":i+"ms"}).addClass(t).trigger(n.settings.events.inStart).animateCallback(function(){r.removeClass(t).css({opacity:1}).trigger(n.settings.events.inEnd)})},inOverlay:function(t,r){var s=e(this),a=s.data(i).options;s.css({opacity:1}).trigger(n.settings.events.inStart),e(a.overlayParentElement).children("."+a.overlayClass).css({"animation-duration":r+"ms"}).addClass(t).animateCallback(function(){s.trigger(n.settings.events.inEnd)})},out:function(t,r){var s=this,a=e(this),o=a.data(i).options,l=t.data(n.settings.data.outClass),u=a.data(n.settings.data.outClass),c=t.data(n.settings.data.outDuration),d=a.data(n.settings.data.outDuration),h=l||u,p=c||d,f=n.animationCheck.call(s,h,!0,!1),m=n.animationCheck.call(s,p,!1,!1),g=n.optionCheck.call(s,o);a.data(i).outClass=f,g?n.outOverlay.call(s,f,m,r):n.outDefault.call(s,f,m,r)},outDefault:function(t,r,s){var a=e(this),o=a.data(i).options;a.css({"animation-duration":r+1+"ms"}).addClass(t).trigger(n.settings.events.outStart).animateCallback(function(){a.trigger(n.settings.events.outEnd),o.transition(s)})},outOverlay:function(t,r,s){var a=e(this),o=a.data(i).options,l=a.data(n.settings.data.inClass),u=n.animationCheck.call(this,l,!0,!0);e(o.overlayParentElement).children("."+o.overlayClass).css({"animation-duration":r+1+"ms"}).removeClass(u).addClass(t).trigger(n.settings.events.outStart).animateCallback(function(){a.trigger(n.settings.events.outEnd),o.transition(s)})},destroy:function(){return this.each(function(){var t=e(this);e(window).off("."+i),t.css({opacity:1}).removeData(i)})}};e.fn.animateCallback=function(t){var i="animationend webkitAnimationEnd";return this.each(function(){var n=e(this);n.on(i,function(){return n.off(i),t.call(this)})})},e.fn.animsition=function(t){return n[t]?n[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist on jQuery."+i):n.init.apply(this,arguments)}}),function(e,t,i){"use strict";function n(i){if(r=t.documentElement,s=t.body,F(),ne=this,le=(i=i||{}).constants||{},i.easing)for(var n in i.easing)W[n]=i.easing[n];me=i.edgeStrategy||"set",ae={beforerender:i.beforerender,render:i.render,keyframe:i.keyframe},(oe=!1!==i.forceHeight)&&(Ae=i.scale||1),ue=i.mobileDeceleration||x,de=!1!==i.smoothScrolling,he=i.smoothScrollingDuration||S,pe={targetTop:ne.getScrollTop()},(Be=(i.mobileCheck||function(){return/Android|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent||navigator.vendor||e.opera)})())?((se=t.getElementById(i.skrollrBody||C))&&ie(),q(),Ee(r,[y,T],[b])):Ee(r,[y,w],[b]),ne.refresh(),ye(e,"resize orientationchange",function(){var e=r.clientWidth,t=r.clientHeight;(t!==Le||e!==ze)&&(Le=t,ze=e,Qe=!0)});var a=R();return function e(){U(),ve=a(e)}(),ne}var r,s,a={get:function(){return ne},init:function(e){return ne||new n(e)},VERSION:"0.6.29"},o=Object.prototype.hasOwnProperty,l=e.Math,u=e.getComputedStyle,c="touchstart",d="touchmove",h="touchcancel",p="touchend",f="skrollable",m=f+"-before",g=f+"-between",v=f+"-after",y="skrollr",b="no-"+y,w=y+"-desktop",T=y+"-mobile",_="linear",x=.004,C="skrollr-body",S=200,E="center",P="bottom",I="___skrollable_id",k=/^(?:input|textarea|button|select)$/i,j=/^\s+|\s+$/g,D=/^data(?:-(_\w+))?(?:-?(-?\d*\.?\d+p?))?(?:-?(start|end|top|center|bottom))?(?:-?(top|center|bottom))?$/,A=/\s*(@?[\w\-\[\]]+)\s*:\s*(.+?)\s*(?:;|$)/gi,Y=/^(@?[a-z\-]+)\[(\w+)\]$/,M=/-([a-z0-9_])/g,O=function(e,t){return t.toUpperCase()},z=/[\-+]?[\d]*\.?[\d]+/g,L=/\{\?\}/g,Q=/rgba?\(\s*-?\d+\s*,\s*-?\d+\s*,\s*-?\d+/g,N=/[a-z\-]+-gradient/g,B="",H="",F=function(){var e=/^(?:O|Moz|webkit|ms)|(?:-(?:o|moz|webkit|ms)-)/;if(u){var t=u(s,null);for(var i in t)if(B=i.match(e)||+i==i&&t[i].match(e))break;if(!B)return void(B=H="");"-"===(B=B[0]).slice(0,1)?(H=B,B={"-webkit-":"webkit","-moz-":"Moz","-ms-":"ms","-o-":"O"}[B]):H="-"+B.toLowerCase()+"-"}},R=function(){var t=e.requestAnimationFrame||e[B.toLowerCase()+"RequestAnimationFrame"],i=ke();return(Be||!t)&&(t=function(t){var n=ke()-i,r=l.max(0,1e3/60-n);return e.setTimeout(function(){i=ke(),t()},r)}),t},$=function(){var t=e.cancelAnimationFrame||e[B.toLowerCase()+"CancelAnimationFrame"];return(Be||!t)&&(t=function(t){return e.clearTimeout(t)}),t},W={begin:function(){return 0},end:function(){return 1},linear:function(e){return e},quadratic:function(e){return e*e},cubic:function(e){return e*e*e},swing:function(e){return-l.cos(e*l.PI)/2+.5},sqrt:function(e){return l.sqrt(e)},outCubic:function(e){return l.pow(e-1,3)+1},bounce:function(e){var t;if(.5083>=e)t=3;else if(.8489>=e)t=9;else if(.96208>=e)t=27;else{if(!(.99981>=e))return 1;t=91}return 1-l.abs(3*l.cos(e*t*1.028)/t)}};n.prototype.refresh=function(e){var n,r,s=!1;for(e===i?(s=!0,re=[],Ne=0,e=t.getElementsByTagName("*")):e.length===i&&(e=[e]),n=0,r=e.length;r>n;n++){var a=e[n],o=a,l=[],u=de,c=me,d=!1;if(s&&I in a&&delete a[I],a.attributes){for(var h=0,p=a.attributes.length;p>h;h++){var m=a.attributes[h];if("data-anchor-target"!==m.name)if("data-smooth-scrolling"!==m.name)if("data-edge-strategy"!==m.name)if("data-emit-events"!==m.name){var g=m.name.match(D);if(null!==g){var v={props:m.value,element:a,eventType:m.name.replace(M,O)};l.push(v);var y=g[1];y&&(v.constant=y.substr(1));var b=g[2];/p$/.test(b)?(v.isPercentage=!0,v.offset=(0|b.slice(0,-1))/100):v.offset=0|b;var w=g[3],T=g[4]||w;w&&"start"!==w&&"end"!==w?(v.mode="relative",v.anchors=[w,T]):(v.mode="absolute","end"===w?v.isEnd=!0:v.isPercentage||(v.offset=v.offset*Ae))}}else d=!0;else c=m.value;else u="off"!==m.value;else if(null===(o=t.querySelector(m.value)))throw'Unable to find anchor target "'+m.value+'"'}var _,x,C;if(l.length)!s&&I in a?(C=a[I],_=re[C].styleAttr,x=re[C].classAttr):(C=a[I]=Ne++,_=a.style.cssText,x=Se(a)),re[C]={element:a,styleAttr:_,classAttr:x,anchorTarget:o,keyFrames:l,smoothScrolling:u,edgeStrategy:c,emitEvents:d,lastFrameIndex:-1},Ee(a,[f],[])}}for(_e(),n=0,r=e.length;r>n;n++){var S=re[e[n][I]];S!==i&&(G(S),K(S))}return ne},n.prototype.relativeToAbsolute=function(e,t,i){var n=r.clientHeight,s=e.getBoundingClientRect(),a=s.top,o=s.bottom-s.top;return t===P?a-=n:t===E&&(a-=n/2),i===P?a+=o:i===E&&(a+=o/2),(a+=ne.getScrollTop())+.5|0},n.prototype.animateTo=function(e,t){t=t||{};var n=ke(),r=ne.getScrollTop(),s=t.duration===i?1e3:t.duration;return(ce={startTop:r,topDiff:e-r,targetTop:e,duration:s,startTime:n,endTime:n+s,easing:W[t.easing||_],done:t.done}).topDiff||(ce.done&&ce.done.call(ne,!1),ce=i),ne},n.prototype.stopAnimateTo=function(){ce&&ce.done&&ce.done.call(ne,!0),ce=i},n.prototype.isAnimatingTo=function(){return!!ce},n.prototype.isMobile=function(){return Be},n.prototype.setScrollTop=function(t,i){return fe=!0===i,Be?He=l.min(l.max(t,0),De):e.scrollTo(0,t),ne},n.prototype.getScrollTop=function(){return Be?He:e.pageYOffset||r.scrollTop||s.scrollTop||0},n.prototype.getMaxScrollTop=function(){return De},n.prototype.on=function(e,t){return ae[e]=t,ne},n.prototype.off=function(e){return delete ae[e],ne},n.prototype.destroy=function(){$()(ve),we(),Ee(r,[b],[y,w,T]);for(var e=0,t=re.length;t>e;e++)te(re[e].element);r.style.overflow=s.style.overflow="",r.style.height=s.style.height="",se&&a.setStyle(se,"transform","none"),ne=i,se=i,ae=i,oe=i,De=0,Ae=1,le=i,ue=i,Ye="down",Me=-1,ze=0,Le=0,Qe=!1,ce=i,de=i,he=i,pe=i,fe=i,Ne=0,me=i,Be=!1,He=0,ge=i};var q=function(){var n,a,o,u,f,m,g,v,y,b,w;ye(r,[c,d,h,p].join(" "),function(e){var r=e.changedTouches[0];for(u=e.target;3===u.nodeType;)u=u.parentNode;switch(f=r.clientY,m=r.clientX,y=e.timeStamp,k.test(u.tagName)||e.preventDefault(),e.type){case c:n&&n.blur(),ne.stopAnimateTo(),n=u,a=g=f,o=m,y;break;case d:k.test(u.tagName)&&t.activeElement!==u&&e.preventDefault(),v=f-g,w=y-b,ne.setScrollTop(He-v,!0),g=f,b=y;break;default:case h:case p:var s=a-f,T=o-m;if(49>T*T+s*s){if(!k.test(n.tagName)){n.focus();var _=t.createEvent("MouseEvents");_.initMouseEvent("click",!0,!0,e.view,1,r.screenX,r.screenY,r.clientX,r.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,0,null),n.dispatchEvent(_)}return}n=i;var x=v/w;x=l.max(l.min(x,3),-3);var C=l.abs(x/ue),S=x*C+.5*ue*C*C,E=ne.getScrollTop()-S,P=0;E>De?(P=(De-E)/S,E=De):0>E&&(P=-E/S,E=0),C*=1-P,ne.animateTo(E+.5|0,{easing:"outCubic",duration:C})}}),e.scrollTo(0,0),r.style.overflow=s.style.overflow="hidden"},V=function(e,t){for(var i=0,n=re.length;n>i;i++){var r,s,l=re[i],u=l.element,c=l.smoothScrolling?e:t,d=l.keyFrames,h=d.length,p=d[0],y=d[d.length-1],b=c<p.frame,w=c>y.frame,T=b?p:y,_=l.emitEvents,x=l.lastFrameIndex;if(b||w){if(b&&-1===l.edge||w&&1===l.edge)continue;switch(b?(Ee(u,[m],[v,g]),_&&x>-1&&(Te(u,p.eventType,Ye),l.lastFrameIndex=-1)):(Ee(u,[v],[m,g]),_&&h>x&&(Te(u,y.eventType,Ye),l.lastFrameIndex=h)),l.edge=b?-1:1,l.edgeStrategy){case"reset":te(u);continue;case"ease":c=T.frame;break;default:case"set":var C=T.props;for(r in C)o.call(C,r)&&(s=ee(C[r].value),0===r.indexOf("@")?u.setAttribute(r.substr(1),s):a.setStyle(u,r,s));continue}}else 0!==l.edge&&(Ee(u,[f,g],[m,v]),l.edge=0);for(var S=0;h-1>S;S++)if(c>=d[S].frame&&c<=d[S+1].frame){var E=d[S],P=d[S+1];for(r in E.props)if(o.call(E.props,r)){var I=(c-E.frame)/(P.frame-E.frame);I=E.props[r].easing(I),s=J(E.props[r].value,P.props[r].value,I),s=ee(s),0===r.indexOf("@")?u.setAttribute(r.substr(1),s):a.setStyle(u,r,s)}_&&x!==S&&(Te(u,"down"===Ye?E.eventType:P.eventType,Ye),l.lastFrameIndex=S);break}}},U=function(){Qe&&(Qe=!1,_e());var e,t,n=ne.getScrollTop(),r=ke();if(ce)r>=ce.endTime?(n=ce.targetTop,e=ce.done,ce=i):(t=ce.easing((r-ce.startTime)/ce.duration),n=ce.startTop+t*ce.topDiff|0),ne.setScrollTop(n,!0);else if(!fe){pe.targetTop-n&&(pe={startTop:Me,topDiff:n-Me,targetTop:n,startTime:Oe,endTime:Oe+he}),r<=pe.endTime&&(t=W.sqrt((r-pe.startTime)/he),n=pe.startTop+t*pe.topDiff|0)}if(fe||Me!==n){fe=!1;var s={curTop:n,lastTop:Me,maxTop:De,direction:Ye=n>Me?"down":Me>n?"up":Ye};!1!==(ae.beforerender&&ae.beforerender.call(ne,s))&&(V(n,ne.getScrollTop()),Be&&se&&a.setStyle(se,"transform","translate(0, "+-He+"px) "+ge),Me=n,ae.render&&ae.render.call(ne,s)),e&&e.call(ne,!1)}Oe=r},G=function(e){for(var t=0,i=e.keyFrames.length;i>t;t++){for(var n,r,s,a,o=e.keyFrames[t],l={};null!==(a=A.exec(o.props));)s=a[1],r=a[2],null!==(n=s.match(Y))?(s=n[1],n=n[2]):n=_,r=r.indexOf("!")?X(r):[r.slice(1)],l[s]={value:r,easing:W[n]};o.props=l}},X=function(e){var t=[];return Q.lastIndex=0,e=e.replace(Q,function(e){return e.replace(z,function(e){return e/255*100+"%"})}),H&&(N.lastIndex=0,e=e.replace(N,function(e){return H+e})),e=e.replace(z,function(e){return t.push(+e),"{?}"}),t.unshift(e),t},K=function(e){var t,i,n={};for(t=0,i=e.keyFrames.length;i>t;t++)Z(e.keyFrames[t],n);for(n={},t=e.keyFrames.length-1;t>=0;t--)Z(e.keyFrames[t],n)},Z=function(e,t){var i;for(i in t)o.call(e.props,i)||(e.props[i]=t[i]);for(i in e.props)t[i]=e.props[i]},J=function(e,t,i){var n,r=e.length;if(r!==t.length)throw"Can't interpolate between \""+e[0]+'" and "'+t[0]+'"';var s=[e[0]];for(n=1;r>n;n++)s[n]=e[n]+(t[n]-e[n])*i;return s},ee=function(e){var t=1;return L.lastIndex=0,e[0].replace(L,function(){return e[t++]})},te=function(e,t){for(var i,n,r=0,s=(e=[].concat(e)).length;s>r;r++)n=e[r],(i=re[n[I]])&&(t?(n.style.cssText=i.dirtyStyleAttr,Ee(n,i.dirtyClassAttr)):(i.dirtyStyleAttr=n.style.cssText,i.dirtyClassAttr=Se(n),n.style.cssText=i.styleAttr,Ee(n,i.classAttr)))},ie=function(){ge="translateZ(0)",a.setStyle(se,"transform",ge);var e=u(se),t=e.getPropertyValue("transform"),i=e.getPropertyValue(H+"transform");t&&"none"!==t||i&&"none"!==i||(ge="")};a.setStyle=function(e,t,i){var n=e.style;if("zIndex"===(t=t.replace(M,O).replace("-","")))isNaN(i)?n[t]=i:n[t]=""+(0|i);else if("float"===t)n.styleFloat=n.cssFloat=i;else try{B&&(n[B+t.slice(0,1).toUpperCase()+t.slice(1)]=i),n[t]=i}catch(e){}};var ne,re,se,ae,oe,le,ue,ce,de,he,pe,fe,me,ge,ve,ye=a.addEvent=function(t,i,n){for(var r,s=function(t){return(t=t||e.event).target||(t.target=t.srcElement),t.preventDefault||(t.preventDefault=function(){t.returnValue=!1,t.defaultPrevented=!0}),n.call(this,t)},a=0,o=(i=i.split(" ")).length;o>a;a++)r=i[a],t.addEventListener?t.addEventListener(r,n,!1):t.attachEvent("on"+r,s),Fe.push({element:t,name:r,listener:n})},be=a.removeEvent=function(e,t,i){for(var n=0,r=(t=t.split(" ")).length;r>n;n++)e.removeEventListener?e.removeEventListener(t[n],i,!1):e.detachEvent("on"+t[n],i)},we=function(){for(var e,t=0,i=Fe.length;i>t;t++)e=Fe[t],be(e.element,e.name,e.listener);Fe=[]},Te=function(e,t,i){ae.keyframe&&ae.keyframe.call(ne,e,t,i)},_e=function(){var e=ne.getScrollTop();De=0,oe&&!Be&&(s.style.height=""),function(){var e,t,i,n,s,a,o,u,c,d,h,p=r.clientHeight,f=xe();for(u=0,c=re.length;c>u;u++)for(t=(e=re[u]).element,i=e.anchorTarget,s=0,a=(n=e.keyFrames).length;a>s;s++)d=(o=n[s]).offset,h=f[o.constant]||0,o.frame=d,o.isPercentage&&(d*=p,o.frame=d),"relative"===o.mode&&(te(t),o.frame=ne.relativeToAbsolute(i,o.anchors[0],o.anchors[1])-d,te(t,!0)),o.frame+=h,oe&&!o.isEnd&&o.frame>De&&(De=o.frame);for(De=l.max(De,Ce()),u=0,c=re.length;c>u;u++){for(s=0,a=(n=(e=re[u]).keyFrames).length;a>s;s++)h=f[(o=n[s]).constant]||0,o.isEnd&&(o.frame=De-o.offset+h);e.keyFrames.sort(je)}}(),oe&&!Be&&(s.style.height=De+r.clientHeight+"px"),Be?ne.setScrollTop(l.min(ne.getScrollTop(),De)):ne.setScrollTop(e,!0),fe=!0},xe=function(){var e,t,i=r.clientHeight,n={};for(e in le)"function"==typeof(t=le[e])?t=t.call(ne):/p$/.test(t)&&(t=t.slice(0,-1)/100*i),n[e]=t;return n},Ce=function(){var e=0;return se&&(e=l.max(se.offsetHeight,se.scrollHeight)),l.max(e,s.scrollHeight,s.offsetHeight,r.scrollHeight,r.offsetHeight,r.clientHeight)-r.clientHeight},Se=function(t){var i="className";return e.SVGElement&&t instanceof e.SVGElement&&(t=t[i],i="baseVal"),t[i]},Ee=function(t,n,r){var s="className";if(e.SVGElement&&t instanceof e.SVGElement&&(t=t[s],s="baseVal"),r!==i){for(var a=t[s],o=0,l=r.length;l>o;o++)a=Ie(a).replace(Ie(r[o])," ");a=Pe(a);for(var u=0,c=n.length;c>u;u++)-1===Ie(a).indexOf(Ie(n[u]))&&(a+=" "+n[u]);t[s]=Pe(a)}else t[s]=n},Pe=function(e){return e.replace(j,"")},Ie=function(e){return" "+e+" "},ke=Date.now||function(){return+new Date},je=function(e,t){return e.frame-t.frame},De=0,Ae=1,Ye="down",Me=-1,Oe=ke(),ze=0,Le=0,Qe=!1,Ne=0,Be=!1,He=0,Fe=[];"function"==typeof define&&define.amd?define([],function(){return a}):"undefined"!=typeof module&&module.exports?module.exports=a:e.skrollr=a}(window,document),function(){var e=!1;window.JQClass=function(){},JQClass.classes={},JQClass.extend=function t(i){var n=this.prototype;e=!0;var r=new this;for(var s in e=!1,i)r[s]="function"==typeof i[s]&&"function"==typeof n[s]?function(e,t){return function(){var i=this._super;this._super=function(t){return n[e].apply(this,t)};var r=t.apply(this,arguments);return this._super=i,r}}(s,i[s]):i[s];function a(){!e&&this._init&&this._init.apply(this,arguments)}return a.prototype=r,a.prototype.constructor=a,a.extend=t,a}}(),function($){function camelCase(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}JQClass.classes.JQPlugin=JQClass.extend({name:"plugin",defaultOptions:{},regionalOptions:{},_getters:[],_getMarker:function(){return"is-"+this.name},_init:function(){$.extend(this.defaultOptions,this.regionalOptions&&this.regionalOptions[""]||{});var e=camelCase(this.name);$[e]=this,$.fn[e]=function(t){var i=Array.prototype.slice.call(arguments,1);return $[e]._isNotChained(t,i)?$[e][t].apply($[e],[this[0]].concat(i)):this.each(function(){if("string"==typeof t){if("_"===t[0]||!$[e][t])throw"Unknown method: "+t;$[e][t].apply($[e],[this].concat(i))}else $[e]._attach(this,t)})}},setDefaults:function(e){$.extend(this.defaultOptions,e||{})},_isNotChained:function(e,t){return"option"===e&&(0===t.length||1===t.length&&"string"==typeof t[0])||$.inArray(e,this._getters)>-1},_attach:function(e,t){if(!(e=$(e)).hasClass(this._getMarker())){e.addClass(this._getMarker()),t=$.extend({},this.defaultOptions,this._getMetadata(e),t||{});var i=$.extend({name:this.name,elem:e,options:t},this._instSettings(e,t));e.data(this.name,i),this._postAttach(e,i),this.option(e,t)}},_instSettings:function(e,t){return{}},_postAttach:function(e,t){},_getMetadata:function(d){try{var f=d.data(this.name.toLowerCase())||"";for(var g in f=f.replace(/'/g,'"'),f=f.replace(/([a-zA-Z0-9]+):/g,function(e,t,i){var n=f.substring(0,i).match(/"/g);return n&&n.length%2!=0?t+":":'"'+t+'":'}),f=$.parseJSON("{"+f+"}"),f){var h=f[g];"string"==typeof h&&h.match(/^new Date\((.*)\)$/)&&(f[g]=eval(h))}return f}catch(e){return{}}},_getInst:function(e){return $(e).data(this.name)||{}},option:function(e,t,i){var n=(e=$(e)).data(this.name);if(!t||"string"==typeof t&&null==i)return(r=(n||{}).options)&&t?r[t]:r;if(e.hasClass(this._getMarker())){var r=t||{};"string"==typeof t&&((r={})[t]=i),this._optionsChanged(e,n,r),$.extend(n.options,r)}},_optionsChanged:function(e,t,i){},destroy:function(e){(e=$(e)).hasClass(this._getMarker())&&(this._preDestroy(e,this._getInst(e)),e.removeData(this.name).removeClass(this._getMarker()))},_preDestroy:function(e,t){}}),$.JQPlugin={createPlugin:function(e,t){"object"==typeof e&&(t=e,e="JQPlugin"),e=camelCase(e);var i=camelCase(t.name);JQClass.classes[i]=JQClass.classes[e].extend(t),new JQClass.classes[i]}}}(jQuery),function(e){"use strict";var t="countdown";e.JQPlugin.createPlugin({name:t,defaultOptions:{until:null,since:null,timezone:null,serverSync:null,format:"dHMS",layout:"",compact:!1,padZeroes:!1,significant:0,description:"",expiryUrl:"",expiryText:"",alwaysExpire:!1,onExpiry:null,onTick:null,tickInterval:1},regionalOptions:{"":{labels:["Years","Months","Weeks","Days","Hours","Minutes","Seconds"],labels1:["Year","Month","Week","Day","Hour","Minute","Second"],compactLabels:["y","m","w","d"],whichLabels:null,digits:["0","1","2","3","4","5","6","7","8","9"],timeSeparator:":",isRTL:!1}},_rtlClass:t+"-rtl",_sectionClass:t+"-section",_amountClass:t+"-amount",_periodClass:t+"-period",_rowClass:t+"-row",_holdingClass:t+"-holding",_showClass:t+"-show",_descrClass:t+"-descr",_timerElems:[],_init:function(){var t=this;this._super(),this._serverSyncs=[];var i="function"==typeof Date.now?Date.now:function(){return(new Date).getTime()},n=window.performance&&"function"==typeof window.performance.now,r=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||null,s=0;!r||e.noRequestAnimationFrame?(e.noRequestAnimationFrame=null,e.countdown._timer=setInterval(function(){t._updateElems()},1e3)):(s=window.animationStartTime||window.webkitAnimationStartTime||window.mozAnimationStartTime||window.oAnimationStartTime||window.msAnimationStartTime||i(),r(function e(a){var o=a<1e12?n?window.performance.now()+window.performance.timing.navigationStart:i():a||i();o-s>=1e3&&(t._updateElems(),s=o),r(e)}))},UTCDate:function(e,t,i,n,r,s,a,o){"object"==typeof t&&t instanceof Date&&(o=t.getMilliseconds(),a=t.getSeconds(),s=t.getMinutes(),r=t.getHours(),n=t.getDate(),i=t.getMonth(),t=t.getFullYear());var l=new Date;return l.setUTCFullYear(t),l.setUTCDate(1),l.setUTCMonth(i||0),l.setUTCDate(n||1),l.setUTCHours(r||0),l.setUTCMinutes((s||0)-(Math.abs(e)<30?60*e:e)),l.setUTCSeconds(a||0),l.setUTCMilliseconds(o||0),l},periodsToSeconds:function(e){return 31557600*e[0]+2629800*e[1]+604800*e[2]+86400*e[3]+3600*e[4]+60*e[5]+e[6]},resync:function(){var t=this;e("."+this._getMarker()).each(function(){var i=e.data(this,t.name);if(i.options.serverSync){for(var n=null,r=0;r<t._serverSyncs.length;r++)if(t._serverSyncs[r][0]===i.options.serverSync){n=t._serverSyncs[r];break}if(t._eqNull(n[2])){var s=e.isFunction(i.options.serverSync)?i.options.serverSync.apply(this,[]):null;n[2]=(s?(new Date).getTime()-s.getTime():0)-n[1]}i._since&&i._since.setMilliseconds(i._since.getMilliseconds()+n[2]),i._until.setMilliseconds(i._until.getMilliseconds()+n[2])}});for(var i=0;i<t._serverSyncs.length;i++)t._eqNull(t._serverSyncs[i][2])||(t._serverSyncs[i][1]+=t._serverSyncs[i][2],delete t._serverSyncs[i][2])},_instSettings:function(e,t){return{_periods:[0,0,0,0,0,0,0]}},_addElem:function(e){this._hasElem(e)||this._timerElems.push(e)},_hasElem:function(t){return e.inArray(t,this._timerElems)>-1},_removeElem:function(t){this._timerElems=e.map(this._timerElems,function(e){return e===t?null:e})},_updateElems:function(){for(var e=this._timerElems.length-1;e>=0;e--)this._updateCountdown(this._timerElems[e])},_optionsChanged:function(t,i,n){n.layout&&(n.layout=n.layout.replace(/&lt;/g,"<").replace(/&gt;/g,">")),this._resetExtraLabels(i.options,n);var r=i.options.timezone!==n.timezone;e.extend(i.options,n),this._adjustSettings(t,i,!this._eqNull(n.until)||!this._eqNull(n.since)||r);var s=new Date;(i._since&&i._since<s||i._until&&i._until>s)&&this._addElem(t[0]),this._updateCountdown(t,i)},_updateCountdown:function(t,i){if(t=t.jquery?t:e(t),i=i||this._getInst(t)){if(t.html(this._generateHTML(i)).toggleClass(this._rtlClass,i.options.isRTL),"pause"!==i._hold&&e.isFunction(i.options.onTick)){var n="lap"!==i._hold?i._periods:this._calculatePeriods(i,i._show,i.options.significant,new Date);1!==i.options.tickInterval&&this.periodsToSeconds(n)%i.options.tickInterval!=0||i.options.onTick.apply(t[0],[n])}if("pause"!==i._hold&&(i._since?i._now.getTime()<i._since.getTime():i._now.getTime()>=i._until.getTime())&&!i._expiring){if(i._expiring=!0,this._hasElem(t[0])||i.options.alwaysExpire){if(this._removeElem(t[0]),e.isFunction(i.options.onExpiry)&&i.options.onExpiry.apply(t[0],[]),i.options.expiryText){var r=i.options.layout;i.options.layout=i.options.expiryText,this._updateCountdown(t[0],i),i.options.layout=r}i.options.expiryUrl&&(window.location=i.options.expiryUrl)}i._expiring=!1}else"pause"===i._hold&&this._removeElem(t[0])}},_resetExtraLabels:function(e,t){var i=null;for(i in t)i.match(/[Ll]abels[02-9]|compactLabels1/)&&(e[i]=t[i]);for(i in e)i.match(/[Ll]abels[02-9]|compactLabels1/)&&void 0===t[i]&&(e[i]=null)},_eqNull:function(e){return null==e},_adjustSettings:function(t,i,n){for(var r=null,s=0;s<this._serverSyncs.length;s++)if(this._serverSyncs[s][0]===i.options.serverSync){r=this._serverSyncs[s][1];break}var a=null,o=null;if(this._eqNull(r)){var l=e.isFunction(i.options.serverSync)?i.options.serverSync.apply(t[0],[]):null;a=new Date,o=l?a.getTime()-l.getTime():0,this._serverSyncs.push([i.options.serverSync,o])}else a=new Date,o=i.options.serverSync?r:0;var u=i.options.timezone;u=this._eqNull(u)?-a.getTimezoneOffset():u,(n||!n&&this._eqNull(i._until)&&this._eqNull(i._since))&&(i._since=i.options.since,this._eqNull(i._since)||(i._since=this.UTCDate(u,this._determineTime(i._since,null)),i._since&&o&&i._since.setMilliseconds(i._since.getMilliseconds()+o)),i._until=this.UTCDate(u,this._determineTime(i.options.until,a)),o&&i._until.setMilliseconds(i._until.getMilliseconds()+o)),i._show=this._determineShow(i)},_preDestroy:function(e,t){this._removeElem(e[0]),e.empty()},pause:function(e){this._hold(e,"pause")},lap:function(e){this._hold(e,"lap")},resume:function(e){this._hold(e,null)},toggle:function(t){this[(e.data(t,this.name)||{})._hold?"resume":"pause"](t)},toggleLap:function(t){this[(e.data(t,this.name)||{})._hold?"resume":"lap"](t)},_hold:function(t,i){var n=e.data(t,this.name);if(n){if("pause"===n._hold&&!i){n._periods=n._savePeriods;var r=n._since?"-":"+";n[n._since?"_since":"_until"]=this._determineTime(r+n._periods[0]+"y"+r+n._periods[1]+"o"+r+n._periods[2]+"w"+r+n._periods[3]+"d"+r+n._periods[4]+"h"+r+n._periods[5]+"m"+r+n._periods[6]+"s"),this._addElem(t)}n._hold=i,n._savePeriods="pause"===i?n._periods:null,e.data(t,this.name,n),this._updateCountdown(t,n)}},getTimes:function(t){var i=e.data(t,this.name);return i?"pause"===i._hold?i._savePeriods:i._hold?this._calculatePeriods(i,i._show,i.options.significant,new Date):i._periods:null},_determineTime:function(e,t){var i=this,n=this._eqNull(e)?t:"string"==typeof e?function(e){e=e.toLowerCase();for(var t=new Date,n=t.getFullYear(),r=t.getMonth(),s=t.getDate(),a=t.getHours(),o=t.getMinutes(),l=t.getSeconds(),u=/([+-]?[0-9]+)\s*(s|m|h|d|w|o|y)?/g,c=u.exec(e);c;){switch(c[2]||"s"){case"s":l+=parseInt(c[1],10);break;case"m":o+=parseInt(c[1],10);break;case"h":a+=parseInt(c[1],10);break;case"d":s+=parseInt(c[1],10);break;case"w":s+=7*parseInt(c[1],10);break;case"o":r+=parseInt(c[1],10),s=Math.min(s,i._getDaysInMonth(n,r));break;case"y":n+=parseInt(c[1],10),s=Math.min(s,i._getDaysInMonth(n,r))}c=u.exec(e)}return new Date(n,r,s,a,o,l,0)}(e):"number"==typeof e?function(e){var t=new Date;return t.setTime(t.getTime()+1e3*e),t}(e):e;return n&&n.setMilliseconds(0),n},_getDaysInMonth:function(e,t){return 32-new Date(e,t,32).getDate()},_normalLabels:function(e){return e},_generateHTML:function(t){var i=this;t._periods=t._hold?t._periods:this._calculatePeriods(t,t._show,t.options.significant,new Date);var n=!1,r=0,s=t.options.significant,a=e.extend({},t._show),o=null;for(o=0;o<=6;o++)n=n||"?"===t._show[o]&&t._periods[o]>0,a[o]="?"!==t._show[o]||n?t._show[o]:null,r+=a[o]?1:0,s-=t._periods[o]>0?1:0;var l=[!1,!1,!1,!1,!1,!1,!1];for(o=6;o>=0;o--)t._show[o]&&(t._periods[o]?l[o]=!0:(l[o]=s>0,s--));var u=t.options.compact?t.options.compactLabels:t.options.labels,c=t.options.whichLabels||this._normalLabels,d=function(e){var n=t.options["compactLabels"+c(t._periods[e])];return a[e]?i._translateDigits(t,t._periods[e])+(n?n[e]:u[e])+" ":""},h=t.options.padZeroes?2:1,p=function(e){var n=t.options["labels"+c(t._periods[e])];return!t.options.significant&&a[e]||t.options.significant&&l[e]?'<span class="'+i._sectionClass+'"><span class="'+i._amountClass+'">'+i._minDigits(t,t._periods[e],h)+'</span><span class="'+i._periodClass+'">'+(n?n[e]:u[e])+"</span></span>":""};return t.options.layout?this._buildLayout(t,a,t.options.layout,t.options.compact,t.options.significant,l):(t.options.compact?'<span class="'+this._rowClass+" "+this._amountClass+(t._hold?" "+this._holdingClass:"")+'">'+d(0)+d(1)+d(2)+d(3)+(a[4]?this._minDigits(t,t._periods[4],2):"")+(a[5]?(a[4]?t.options.timeSeparator:"")+this._minDigits(t,t._periods[5],2):"")+(a[6]?(a[4]||a[5]?t.options.timeSeparator:"")+this._minDigits(t,t._periods[6],2):""):'<span class="'+this._rowClass+" "+this._showClass+(t.options.significant||r)+(t._hold?" "+this._holdingClass:"")+'">'+p(0)+p(1)+p(2)+p(3)+p(4)+p(5)+p(6))+"</span>"+(t.options.description?'<span class="'+this._rowClass+" "+this._descrClass+'">'+t.options.description+"</span>":"")},_buildLayout:function(t,i,n,r,s,a){for(var o=t.options[r?"compactLabels":"labels"],l=t.options.whichLabels||this._normalLabels,u=function(e){return(t.options[(r?"compactLabels":"labels")+l(t._periods[e])]||o)[e]},c=function(e,i){return t.options.digits[Math.floor(e/i)%10]},d={desc:t.options.description,sep:t.options.timeSeparator,yl:u(0),yn:this._minDigits(t,t._periods[0],1),ynn:this._minDigits(t,t._periods[0],2),ynnn:this._minDigits(t,t._periods[0],3),y1:c(t._periods[0],1),y10:c(t._periods[0],10),y100:c(t._periods[0],100),y1000:c(t._periods[0],1e3),ol:u(1),on:this._minDigits(t,t._periods[1],1),onn:this._minDigits(t,t._periods[1],2),onnn:this._minDigits(t,t._periods[1],3),o1:c(t._periods[1],1),o10:c(t._periods[1],10),o100:c(t._periods[1],100),o1000:c(t._periods[1],1e3),wl:u(2),wn:this._minDigits(t,t._periods[2],1),wnn:this._minDigits(t,t._periods[2],2),wnnn:this._minDigits(t,t._periods[2],3),w1:c(t._periods[2],1),w10:c(t._periods[2],10),w100:c(t._periods[2],100),w1000:c(t._periods[2],1e3),dl:u(3),dn:this._minDigits(t,t._periods[3],1),dnn:this._minDigits(t,t._periods[3],2),dnnn:this._minDigits(t,t._periods[3],3),d1:c(t._periods[3],1),d10:c(t._periods[3],10),d100:c(t._periods[3],100),d1000:c(t._periods[3],1e3),hl:u(4),hn:this._minDigits(t,t._periods[4],1),hnn:this._minDigits(t,t._periods[4],2),hnnn:this._minDigits(t,t._periods[4],3),h1:c(t._periods[4],1),h10:c(t._periods[4],10),h100:c(t._periods[4],100),h1000:c(t._periods[4],1e3),ml:u(5),mn:this._minDigits(t,t._periods[5],1),mnn:this._minDigits(t,t._periods[5],2),mnnn:this._minDigits(t,t._periods[5],3),m1:c(t._periods[5],1),m10:c(t._periods[5],10),m100:c(t._periods[5],100),m1000:c(t._periods[5],1e3),sl:u(6),sn:this._minDigits(t,t._periods[6],1),snn:this._minDigits(t,t._periods[6],2),snnn:this._minDigits(t,t._periods[6],3),s1:c(t._periods[6],1),s10:c(t._periods[6],10),s100:c(t._periods[6],100),s1000:c(t._periods[6],1e3)},h=n,p=0;p<=6;p++){var f="yowdhms".charAt(p),m=new RegExp("\\{"+f+"<\\}([\\s\\S]*)\\{"+f+">\\}","g");h=h.replace(m,!s&&i[p]||s&&a[p]?"$1":"")}return e.each(d,function(e,t){var i=new RegExp("\\{"+e+"\\}","g");h=h.replace(i,t)}),h},_minDigits:function(e,t,i){return(t=""+t).length>=i?this._translateDigits(e,t):(t="0000000000"+t,this._translateDigits(e,t.substr(t.length-i)))},_translateDigits:function(e,t){return(""+t).replace(/[0-9]/g,function(t){return e.options.digits[t]})},_determineShow:function(e){var t=e.options.format,i=[];return i[0]=t.match("y")?"?":t.match("Y")?"!":null,i[1]=t.match("o")?"?":t.match("O")?"!":null,i[2]=t.match("w")?"?":t.match("W")?"!":null,i[3]=t.match("d")?"?":t.match("D")?"!":null,i[4]=t.match("h")?"?":t.match("H")?"!":null,i[5]=t.match("m")?"?":t.match("M")?"!":null,i[6]=t.match("s")?"?":t.match("S")?"!":null,i},_calculatePeriods:function(e,t,i,n){e._now=n,e._now.setMilliseconds(0);var r=new Date(e._now.getTime());e._since?n.getTime()<e._since.getTime()?e._now=n=r:n=e._since:(r.setTime(e._until.getTime()),n.getTime()>e._until.getTime()&&(e._now=n=r));var s=[0,0,0,0,0,0,0];if(t[0]||t[1]){var a=this._getDaysInMonth(n.getFullYear(),n.getMonth()),o=this._getDaysInMonth(r.getFullYear(),r.getMonth()),l=r.getDate()===n.getDate()||r.getDate()>=Math.min(a,o)&&n.getDate()>=Math.min(a,o),u=function(e){return 60*(60*e.getHours()+e.getMinutes())+e.getSeconds()},c=Math.max(0,12*(r.getFullYear()-n.getFullYear())+r.getMonth()-n.getMonth()+(r.getDate()<n.getDate()&&!l||l&&u(r)<u(n)?-1:0));s[0]=t[0]?Math.floor(c/12):0,s[1]=t[1]?c-12*s[0]:0;var d=(n=new Date(n.getTime())).getDate()===a,h=this._getDaysInMonth(n.getFullYear()+s[0],n.getMonth()+s[1]);n.getDate()>h&&n.setDate(h),n.setFullYear(n.getFullYear()+s[0]),n.setMonth(n.getMonth()+s[1]),d&&n.setDate(h)}var p=Math.floor((r.getTime()-n.getTime())/1e3),f=null,m=function(e,i){s[e]=t[e]?Math.floor(p/i):0,p-=s[e]*i};if(m(2,604800),m(3,86400),m(4,3600),m(5,60),m(6,1),p>0&&!e._since){var g=[1,12,4.3482,7,24,60,60],v=6,y=1;for(f=6;f>=0;f--)t[f]&&(s[v]>=y&&(s[v]=0,p=1),p>0&&(s[f]++,p=0,v=f,y=1)),y*=g[f]}if(i)for(f=0;f<=6;f++)i&&s[f]?i--:i||(s[f]=0);return s}})}(jQuery),function(e){e.fn.countTo=function(t){return t=t||{},e(this).each(function(){function i(e){var t=n.formatter.call(a,e,n);o.text(t)}var n=e.extend({},e.fn.countTo.defaults,{from:e(this).data("from"),to:e(this).data("to"),speed:e(this).data("speed"),refreshInterval:e(this).data("refresh-interval"),decimals:e(this).data("decimals")},t),r=Math.ceil(n.speed/n.refreshInterval),s=(n.to-n.from)/r,a=this,o=e(this),l=0,u=n.from,c=o.data("countTo")||{};o.data("countTo",c),c.interval&&clearInterval(c.interval),c.interval=setInterval(function(){l++,i(u+=s),"function"==typeof n.onUpdate&&n.onUpdate.call(a,u),l>=r&&(o.removeData("countTo"),clearInterval(c.interval),u=n.to,"function"==typeof n.onComplete&&n.onComplete.call(a,u))},n.refreshInterval),i(u)})},e.fn.countTo.defaults={from:0,to:0,speed:1e3,refreshInterval:100,decimals:0,formatter:function(e,t){return e.toFixed(t.decimals)},onUpdate:null,onComplete:null}}(jQuery),function(e,t,i,n){function r(t,i){this.settings=null,this.options=e.extend({},r.Defaults,i),this.$element=e(t),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},e.each(["onResize","onThrottledResize"],e.proxy(function(t,i){this._handlers[i]=e.proxy(this[i],this)},this)),e.each(r.Plugins,e.proxy(function(e,t){this._plugins[e.charAt(0).toLowerCase()+e.slice(1)]=new t(this)},this)),e.each(r.Workers,e.proxy(function(t,i){this._pipe.push({filter:i.filter,run:e.proxy(i.run,this)})},this)),this.setup(),this.initialize()}r.Defaults={items:3,loop:!1,center:!1,rewind:!1,checkVisibility:!0,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:t,fallbackEasing:"swing",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},r.Width={Default:"default",Inner:"inner",Outer:"outer"},r.Type={Event:"event",State:"state"},r.Plugins={},r.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(e){e.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(e){var t=this.settings.margin||"",i=!this.settings.autoWidth,n=this.settings.rtl,r={width:"auto","margin-left":n?t:"","margin-right":n?"":t};!i&&this.$stage.children().css(r),e.css=r}},{filter:["width","items","settings"],run:function(e){var t=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,i=null,n=this._items.length,r=!this.settings.autoWidth,s=[];for(e.items={merge:!1,width:t};n--;)i=this._mergers[n],i=this.settings.mergeFit&&Math.min(i,this.settings.items)||i,e.items.merge=i>1||e.items.merge,s[n]=r?t*i:this._items[n].width();this._widths=s}},{filter:["items","settings"],run:function(){var t=[],i=this._items,n=this.settings,r=Math.max(2*n.items,4),s=2*Math.ceil(i.length/2),a=n.loop&&i.length?n.rewind?r:Math.max(r,s):0,o="",l="";for(a/=2;a>0;)t.push(this.normalize(t.length/2,!0)),o+=i[t[t.length-1]][0].outerHTML,t.push(this.normalize(i.length-1-(t.length-1)/2,!0)),l=i[t[t.length-1]][0].outerHTML+l,a-=1;this._clones=t,e(o).addClass("cloned").appendTo(this.$stage),e(l).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var e=this.settings.rtl?1:-1,t=this._clones.length+this._items.length,i=-1,n=0,r=0,s=[];++i<t;)n=s[i-1]||0,r=this._widths[this.relative(i)]+this.settings.margin,s.push(n+r*e);this._coordinates=s}},{filter:["width","items","settings"],run:function(){var e=this.settings.stagePadding,t=this._coordinates,i={width:Math.ceil(Math.abs(t[t.length-1]))+2*e,"padding-left":e||"","padding-right":e||""};this.$stage.css(i)}},{filter:["width","items","settings"],run:function(e){var t=this._coordinates.length,i=!this.settings.autoWidth,n=this.$stage.children();if(i&&e.items.merge)for(;t--;)e.css.width=this._widths[this.relative(t)],n.eq(t).css(e.css);else i&&(e.css.width=e.items.width,n.css(e.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(e){e.current=e.current?this.$stage.children().index(e.current):0,e.current=Math.max(this.minimum(),Math.min(this.maximum(),e.current)),this.reset(e.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var e,t,i,n,r=this.settings.rtl?1:-1,s=2*this.settings.stagePadding,a=this.coordinates(this.current())+s,o=a+this.width()*r,l=[];for(i=0,n=this._coordinates.length;i<n;i++)e=this._coordinates[i-1]||0,t=Math.abs(this._coordinates[i])+s*r,(this.op(e,"<=",a)&&this.op(e,">",o)||this.op(t,"<",a)&&this.op(t,">",o))&&l.push(i);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+l.join("), :eq(")+")").addClass("active"),this.$stage.children(".center").removeClass("center"),this.settings.center&&this.$stage.children().eq(this.current()).addClass("center")}}],r.prototype.initializeStage=function(){this.$stage=this.$element.find("."+this.settings.stageClass),this.$stage.length||(this.$element.addClass(this.options.loadingClass),this.$stage=e("<"+this.settings.stageElement+' class="'+this.settings.stageClass+'"/>').wrap('<div class="'+this.settings.stageOuterClass+'"/>'),this.$element.append(this.$stage.parent()))},r.prototype.initializeItems=function(){var t=this.$element.find(".owl-item");if(t.length)return this._items=t.get().map(function(t){return e(t)}),this._mergers=this._items.map(function(){return 1}),void this.refresh();this.replace(this.$element.children().not(this.$stage.parent())),this.isVisible()?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass)},r.prototype.initialize=function(){var e,t,i;(this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading"))&&(e=this.$element.find("img"),t=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:n,i=this.$element.children(t).width(),e.length&&i<=0&&this.preloadAutoWidthImages(e));this.initializeStage(),this.initializeItems(),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},r.prototype.isVisible=function(){return!this.settings.checkVisibility||this.$element.is(":visible")},r.prototype.setup=function(){var t=this.viewport(),i=this.options.responsive,n=-1,r=null;i?(e.each(i,function(e){e<=t&&e>n&&(n=Number(e))}),"function"==typeof(r=e.extend({},this.options,i[n])).stagePadding&&(r.stagePadding=r.stagePadding()),delete r.responsive,r.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+n))):r=e.extend({},this.options),this.trigger("change",{property:{name:"settings",value:r}}),this._breakpoint=n,this.settings=r,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},r.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},r.prototype.prepare=function(t){var i=this.trigger("prepare",{content:t});return i.data||(i.data=e("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(t)),this.trigger("prepared",{content:i.data}),i.data},r.prototype.update=function(){for(var t=0,i=this._pipe.length,n=e.proxy(function(e){return this[e]},this._invalidated),r={};t<i;)(this._invalidated.all||e.grep(this._pipe[t].filter,n).length>0)&&this._pipe[t].run(r),t++;this._invalidated={},!this.is("valid")&&this.enter("valid")},r.prototype.width=function(e){switch(e=e||r.Width.Default){case r.Width.Inner:case r.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},r.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},r.prototype.onThrottledResize=function(){t.clearTimeout(this.resizeTimer),this.resizeTimer=t.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},r.prototype.onResize=function(){return!!this._items.length&&this._width!==this.$element.width()&&!!this.isVisible()&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))},r.prototype.registerEventHandlers=function(){e.support.transition&&this.$stage.on(e.support.transition.end+".owl.core",e.proxy(this.onTransitionEnd,this)),!1!==this.settings.responsive&&this.on(t,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",e.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",function(){return!1})),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",e.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",e.proxy(this.onDragEnd,this)))},r.prototype.onDragStart=function(t){var n=null;3!==t.which&&(e.support.transform?n={x:(n=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","))[16===n.length?12:4],y:n[16===n.length?13:5]}:(n=this.$stage.position(),n={x:this.settings.rtl?n.left+this.$stage.width()-this.width()+this.settings.margin:n.left,y:n.top}),this.is("animating")&&(e.support.transform?this.animate(n.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===t.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=e(t.target),this._drag.stage.start=n,this._drag.stage.current=n,this._drag.pointer=this.pointer(t),e(i).on("mouseup.owl.core touchend.owl.core",e.proxy(this.onDragEnd,this)),e(i).one("mousemove.owl.core touchmove.owl.core",e.proxy(function(t){var n=this.difference(this._drag.pointer,this.pointer(t));e(i).on("mousemove.owl.core touchmove.owl.core",e.proxy(this.onDragMove,this)),Math.abs(n.x)<Math.abs(n.y)&&this.is("valid")||(t.preventDefault(),this.enter("dragging"),this.trigger("drag"))},this)))},r.prototype.onDragMove=function(e){var t=null,i=null,n=null,r=this.difference(this._drag.pointer,this.pointer(e)),s=this.difference(this._drag.stage.start,r);this.is("dragging")&&(e.preventDefault(),this.settings.loop?(t=this.coordinates(this.minimum()),i=this.coordinates(this.maximum()+1)-t,s.x=((s.x-t)%i+i)%i+t):(t=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),i=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),n=this.settings.pullDrag?-1*r.x/5:0,s.x=Math.max(Math.min(s.x,t+n),i+n)),this._drag.stage.current=s,this.animate(s.x))},r.prototype.onDragEnd=function(t){var n=this.difference(this._drag.pointer,this.pointer(t)),r=this._drag.stage.current,s=n.x>0^this.settings.rtl?"left":"right";e(i).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==n.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(r.x,0!==n.x?s:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=s,(Math.abs(n.x)>3||(new Date).getTime()-this._drag.time>300)&&this._drag.target.one("click.owl.core",function(){return!1})),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},r.prototype.closest=function(t,i){var r=-1,s=this.width(),a=this.coordinates();return this.settings.freeDrag||e.each(a,e.proxy(function(e,o){return"left"===i&&t>o-30&&t<o+30?r=e:"right"===i&&t>o-s-30&&t<o-s+30?r=e+1:this.op(t,"<",o)&&this.op(t,">",a[e+1]!==n?a[e+1]:o-s)&&(r="left"===i?e+1:e),-1===r},this)),this.settings.loop||(this.op(t,">",a[this.minimum()])?r=t=this.minimum():this.op(t,"<",a[this.maximum()])&&(r=t=this.maximum())),r},r.prototype.animate=function(t){var i=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),i&&(this.enter("animating"),this.trigger("translate")),e.support.transform3d&&e.support.transition?this.$stage.css({transform:"translate3d("+t+"px,0px,0px)",transition:this.speed()/1e3+"s"}):i?this.$stage.animate({left:t+"px"},this.speed(),this.settings.fallbackEasing,e.proxy(this.onTransitionEnd,this)):this.$stage.css({left:t+"px"})},r.prototype.is=function(e){return this._states.current[e]&&this._states.current[e]>0},r.prototype.current=function(e){if(e===n)return this._current;if(0===this._items.length)return n;if(e=this.normalize(e),this._current!==e){var t=this.trigger("change",{property:{name:"position",value:e}});t.data!==n&&(e=this.normalize(t.data)),this._current=e,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},r.prototype.invalidate=function(t){return"string"===e.type(t)&&(this._invalidated[t]=!0,this.is("valid")&&this.leave("valid")),e.map(this._invalidated,function(e,t){return t})},r.prototype.reset=function(e){(e=this.normalize(e))!==n&&(this._speed=0,this._current=e,this.suppress(["translate","translated"]),this.animate(this.coordinates(e)),this.release(["translate","translated"]))},r.prototype.normalize=function(e,t){var i=this._items.length,r=t?0:this._clones.length;return!this.isNumeric(e)||i<1?e=n:(e<0||e>=i+r)&&(e=((e-r/2)%i+i)%i+r/2),e},r.prototype.relative=function(e){return e-=this._clones.length/2,this.normalize(e,!0)},r.prototype.maximum=function(e){var t,i,n,r=this.settings,s=this._coordinates.length;if(r.loop)s=this._clones.length/2+this._items.length-1;else if(r.autoWidth||r.merge){if(t=this._items.length)for(i=this._items[--t].width(),n=this.$element.width();t--&&!((i+=this._items[t].width()+this.settings.margin)>n););s=t+1}else s=r.center?this._items.length-1:this._items.length-r.items;return e&&(s-=this._clones.length/2),Math.max(s,0)},r.prototype.minimum=function(e){return e?0:this._clones.length/2},r.prototype.items=function(e){return e===n?this._items.slice():(e=this.normalize(e,!0),this._items[e])},r.prototype.mergers=function(e){return e===n?this._mergers.slice():(e=this.normalize(e,!0),this._mergers[e])},r.prototype.clones=function(t){var i=this._clones.length/2,r=i+this._items.length,s=function(e){return e%2==0?r+e/2:i-(e+1)/2};return t===n?e.map(this._clones,function(e,t){return s(t)}):e.map(this._clones,function(e,i){return e===t?s(i):null})},r.prototype.speed=function(e){return e!==n&&(this._speed=e),this._speed},r.prototype.coordinates=function(t){var i,r=1,s=t-1;return t===n?e.map(this._coordinates,e.proxy(function(e,t){return this.coordinates(t)},this)):(this.settings.center?(this.settings.rtl&&(r=-1,s=t+1),i=this._coordinates[t],i+=(this.width()-i+(this._coordinates[s]||0))/2*r):i=this._coordinates[s]||0,i=Math.ceil(i))},r.prototype.duration=function(e,t,i){return 0===i?0:Math.min(Math.max(Math.abs(t-e),1),6)*Math.abs(i||this.settings.smartSpeed)},r.prototype.to=function(e,t){var i=this.current(),n=null,r=e-this.relative(i),s=(r>0)-(r<0),a=this._items.length,o=this.minimum(),l=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(r)>a/2&&(r+=-1*s*a),(n=(((e=i+r)-o)%a+a)%a+o)!==e&&n-r<=l&&n-r>0&&(i=n-r,e=n,this.reset(i))):this.settings.rewind?e=(e%(l+=1)+l)%l:e=Math.max(o,Math.min(l,e)),this.speed(this.duration(i,e,t)),this.current(e),this.isVisible()&&this.update()},r.prototype.next=function(e){e=e||!1,this.to(this.relative(this.current())+1,e)},r.prototype.prev=function(e){e=e||!1,this.to(this.relative(this.current())-1,e)},r.prototype.onTransitionEnd=function(e){if(e!==n&&(e.stopPropagation(),(e.target||e.srcElement||e.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},r.prototype.viewport=function(){var n;return this.options.responsiveBaseElement!==t?n=e(this.options.responsiveBaseElement).width():t.innerWidth?n=t.innerWidth:i.documentElement&&i.documentElement.clientWidth?n=i.documentElement.clientWidth:console.warn("Can not detect viewport width."),n},r.prototype.replace=function(t){this.$stage.empty(),this._items=[],t&&(t=t instanceof jQuery?t:e(t)),this.settings.nestedItemSelector&&(t=t.find("."+this.settings.nestedItemSelector)),t.filter(function(){return 1===this.nodeType}).each(e.proxy(function(e,t){t=this.prepare(t),this.$stage.append(t),this._items.push(t),this._mergers.push(1*t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)},this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},r.prototype.add=function(t,i){var r=this.relative(this._current);i=i===n?this._items.length:this.normalize(i,!0),t=t instanceof jQuery?t:e(t),this.trigger("add",{content:t,position:i}),t=this.prepare(t),0===this._items.length||i===this._items.length?(0===this._items.length&&this.$stage.append(t),0!==this._items.length&&this._items[i-1].after(t),this._items.push(t),this._mergers.push(1*t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[i].before(t),this._items.splice(i,0,t),this._mergers.splice(i,0,1*t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[r]&&this.reset(this._items[r].index()),this.invalidate("items"),this.trigger("added",{content:t,position:i})},r.prototype.remove=function(e){(e=this.normalize(e,!0))!==n&&(this.trigger("remove",{content:this._items[e],position:e}),this._items[e].remove(),this._items.splice(e,1),this._mergers.splice(e,1),this.invalidate("items"),this.trigger("removed",{content:null,position:e}))},r.prototype.preloadAutoWidthImages=function(t){t.each(e.proxy(function(t,i){this.enter("pre-loading"),i=e(i),e(new Image).one("load",e.proxy(function(e){i.attr("src",e.target.src),i.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()},this)).attr("src",i.attr("src")||i.attr("data-src")||i.attr("data-src-retina"))},this))},r.prototype.destroy=function(){for(var n in this.$element.off(".owl.core"),this.$stage.off(".owl.core"),e(i).off(".owl.core"),!1!==this.settings.responsive&&(t.clearTimeout(this.resizeTimer),this.off(t,"resize",this._handlers.onThrottledResize)),this._plugins)this._plugins[n].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.remove(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},r.prototype.op=function(e,t,i){var n=this.settings.rtl;switch(t){case"<":return n?e>i:e<i;case">":return n?e<i:e>i;case">=":return n?e<=i:e>=i;case"<=":return n?e>=i:e<=i}},r.prototype.on=function(e,t,i,n){e.addEventListener?e.addEventListener(t,i,n):e.attachEvent&&e.attachEvent("on"+t,i)},r.prototype.off=function(e,t,i,n){e.removeEventListener?e.removeEventListener(t,i,n):e.detachEvent&&e.detachEvent("on"+t,i)},r.prototype.trigger=function(t,i,n,s,a){var o={item:{count:this._items.length,index:this.current()}},l=e.camelCase(e.grep(["on",t,n],function(e){return e}).join("-").toLowerCase()),u=e.Event([t,"owl",n||"carousel"].join(".").toLowerCase(),e.extend({relatedTarget:this},o,i));return this._supress[t]||(e.each(this._plugins,function(e,t){t.onTrigger&&t.onTrigger(u)}),this.register({type:r.Type.Event,name:t}),this.$element.trigger(u),this.settings&&"function"==typeof this.settings[l]&&this.settings[l].call(this,u)),u},r.prototype.enter=function(t){e.each([t].concat(this._states.tags[t]||[]),e.proxy(function(e,t){this._states.current[t]===n&&(this._states.current[t]=0),this._states.current[t]++},this))},r.prototype.leave=function(t){e.each([t].concat(this._states.tags[t]||[]),e.proxy(function(e,t){this._states.current[t]--},this))},r.prototype.register=function(t){if(t.type===r.Type.Event){if(e.event.special[t.name]||(e.event.special[t.name]={}),!e.event.special[t.name].owl){var i=e.event.special[t.name]._default;e.event.special[t.name]._default=function(e){return!i||!i.apply||e.namespace&&-1!==e.namespace.indexOf("owl")?e.namespace&&e.namespace.indexOf("owl")>-1:i.apply(this,arguments)},e.event.special[t.name].owl=!0}}else t.type===r.Type.State&&(this._states.tags[t.name]?this._states.tags[t.name]=this._states.tags[t.name].concat(t.tags):this._states.tags[t.name]=t.tags,this._states.tags[t.name]=e.grep(this._states.tags[t.name],e.proxy(function(i,n){return e.inArray(i,this._states.tags[t.name])===n},this)))},r.prototype.suppress=function(t){e.each(t,e.proxy(function(e,t){this._supress[t]=!0},this))},r.prototype.release=function(t){e.each(t,e.proxy(function(e,t){delete this._supress[t]},this))},r.prototype.pointer=function(e){var i={x:null,y:null};return(e=(e=e.originalEvent||e||t.event).touches&&e.touches.length?e.touches[0]:e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e).pageX?(i.x=e.pageX,i.y=e.pageY):(i.x=e.clientX,i.y=e.clientY),i},r.prototype.isNumeric=function(e){return!isNaN(parseFloat(e))},r.prototype.difference=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},e.fn.owlCarousel=function(t){var i=Array.prototype.slice.call(arguments,1);return this.each(function(){var n=e(this),s=n.data("owl.carousel");s||(s=new r(this,"object"==typeof t&&t),n.data("owl.carousel",s),e.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(t,i){s.register({type:r.Type.Event,name:i}),s.$element.on(i+".owl.carousel.core",e.proxy(function(e){e.namespace&&e.relatedTarget!==this&&(this.suppress([i]),s[i].apply(this,[].slice.call(arguments,1)),this.release([i]))},s))})),"string"==typeof t&&"_"!==t.charAt(0)&&s[t].apply(s,i)})},e.fn.owlCarousel.Constructor=r}(window.Zepto||window.jQuery,window,document),function(e,t,i,n){var r=function(t){this._core=t,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":e.proxy(function(e){e.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=e.extend({},r.Defaults,this._core.options),this._core.$element.on(this._handlers)};r.Defaults={autoRefresh:!0,autoRefreshInterval:500},r.prototype.watch=function(){this._interval||(this._visible=this._core.isVisible(),this._interval=t.setInterval(e.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},r.prototype.refresh=function(){this._core.isVisible()!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},r.prototype.destroy=function(){var e,i;for(e in t.clearInterval(this._interval),this._handlers)this._core.$element.off(e,this._handlers[e]);for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},e.fn.owlCarousel.Constructor.Plugins.AutoRefresh=r}(window.Zepto||window.jQuery,window,document),function(e,t,i,n){var r=function(t){this._core=t,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":e.proxy(function(t){if(t.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(t.property&&"position"==t.property.name||"initialized"==t.type))for(var i=this._core.settings,n=i.center&&Math.ceil(i.items/2)||i.items,r=i.center&&-1*n||0,s=(t.property&&void 0!==t.property.value?t.property.value:this._core.current())+r,a=this._core.clones().length,o=e.proxy(function(e,t){this.load(t)},this);r++<n;)this.load(a/2+this._core.relative(s)),a&&e.each(this._core.clones(this._core.relative(s)),o),s++},this)},this._core.options=e.extend({},r.Defaults,this._core.options),this._core.$element.on(this._handlers)};r.Defaults={lazyLoad:!1},r.prototype.load=function(i){var n=this._core.$stage.children().eq(i),r=n&&n.find(".owl-lazy");!r||e.inArray(n.get(0),this._loaded)>-1||(r.each(e.proxy(function(i,n){var r,s=e(n),a=t.devicePixelRatio>1&&s.attr("data-src-retina")||s.attr("data-src")||s.attr("data-srcset");this._core.trigger("load",{element:s,url:a},"lazy"),s.is("img")?s.one("load.owl.lazy",e.proxy(function(){s.css("opacity",1),this._core.trigger("loaded",{element:s,url:a},"lazy")},this)).attr("src",a):s.is("source")?s.one("load.owl.lazy",e.proxy(function(){this._core.trigger("loaded",{element:s,url:a},"lazy")},this)).attr("srcset",a):((r=new Image).onload=e.proxy(function(){s.css({"background-image":'url("'+a+'")',opacity:"1"}),this._core.trigger("loaded",{element:s,url:a},"lazy")},this),r.src=a)},this)),this._loaded.push(n.get(0)))},r.prototype.destroy=function(){var e,t;for(e in this.handlers)this._core.$element.off(e,this.handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.Lazy=r}(window.Zepto||window.jQuery,window,document),function(e,t,i,n){var r=function(i){this._core=i,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":e.proxy(function(e){e.namespace&&this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":e.proxy(function(e){e.namespace&&this._core.settings.autoHeight&&"position"===e.property.name&&(console.log("update called"),this.update())},this),"loaded.owl.lazy":e.proxy(function(e){e.namespace&&this._core.settings.autoHeight&&e.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=e.extend({},r.Defaults,this._core.options),this._core.$element.on(this._handlers),this._intervalId=null;var n=this;e(t).on("load",function(){n._core.settings.autoHeight&&n.update()}),e(t).resize(function(){n._core.settings.autoHeight&&(null!=n._intervalId&&clearTimeout(n._intervalId),n._intervalId=setTimeout(function(){n.update()},250))})};r.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},r.prototype.update=function(){var t,i=this._core._current,n=i+this._core.settings.items,r=this._core.$stage.children().toArray().slice(i,n),s=[];e.each(r,function(t,i){s.push(e(i).height())}),t=Math.max.apply(null,s),this._core.$stage.parent().height(t).addClass(this._core.settings.autoHeightClass)},r.prototype.destroy=function(){var e,t;for(e in this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.AutoHeight=r}(window.Zepto||window.jQuery,window,document),function(e,t,i,n){var r=function(t){this._core=t,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":e.proxy(function(e){e.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})},this),"resize.owl.carousel":e.proxy(function(e){e.namespace&&this._core.settings.video&&this.isInFullScreen()&&e.preventDefault()},this),"refreshed.owl.carousel":e.proxy(function(e){e.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()},this),"changed.owl.carousel":e.proxy(function(e){e.namespace&&"position"===e.property.name&&this._playing&&this.stop()},this),"prepared.owl.carousel":e.proxy(function(t){if(t.namespace){var i=e(t.content).find(".owl-video");i.length&&(i.css("display","none"),this.fetch(i,e(t.content)))}},this)},this._core.options=e.extend({},r.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",e.proxy(function(e){this.play(e)},this))};r.Defaults={video:!1,videoHeight:!1,videoWidth:!1},r.prototype.fetch=function(e,t){var i=e.attr("data-vimeo-id")?"vimeo":e.attr("data-vzaar-id")?"vzaar":"youtube",n=e.attr("data-vimeo-id")||e.attr("data-youtube-id")||e.attr("data-vzaar-id"),r=e.attr("data-width")||this._core.settings.videoWidth,s=e.attr("data-height")||this._core.settings.videoHeight,a=e.attr("href");if(!a)throw new Error("Missing video URL.");if((n=a.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/))[3].indexOf("youtu")>-1)i="youtube";else if(n[3].indexOf("vimeo")>-1)i="vimeo";else{if(!(n[3].indexOf("vzaar")>-1))throw new Error("Video URL not supported.");i="vzaar"}n=n[6],this._videos[a]={type:i,id:n,width:r,height:s},t.attr("data-video",a),this.thumbnail(e,this._videos[a])},r.prototype.thumbnail=function(t,i){var n,r,s=i.width&&i.height?'style="width:'+i.width+"px;height:"+i.height+'px;"':"",a=t.find("img"),o="src",l="",u=this._core.settings,c=function(e){'<div class="owl-video-play-icon"></div>',n=u.lazyLoad?'<div class="owl-video-tn '+l+'" '+o+'="'+e+'"></div>':'<div class="owl-video-tn" style="opacity:1;background-image:url('+e+')"></div>',t.after(n),t.after('<div class="owl-video-play-icon"></div>')};if(t.wrap('<div class="owl-video-wrapper"'+s+"></div>"),this._core.settings.lazyLoad&&(o="data-src",l="owl-lazy"),a.length)return c(a.attr(o)),a.remove(),!1;"youtube"===i.type?(r="//img.youtube.com/vi/"+i.id+"/hqdefault.jpg",c(r)):"vimeo"===i.type?e.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+i.id+".json",jsonp:"callback",dataType:"jsonp",success:function(e){r=e[0].thumbnail_large,c(r)}}):"vzaar"===i.type&&e.ajax({type:"GET",url:"//vzaar.com/api/videos/"+i.id+".json",jsonp:"callback",dataType:"jsonp",success:function(e){r=e.framegrab_url,c(r)}})},r.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},r.prototype.play=function(t){var i,n=e(t.target).closest("."+this._core.settings.itemClass),r=this._videos[n.attr("data-video")],s=r.width||"100%",a=r.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),n=this._core.items(this._core.relative(n.index())),this._core.reset(n.index()),"youtube"===r.type?i='<iframe width="'+s+'" height="'+a+'" src="//www.youtube.com/embed/'+r.id+"?autoplay=1&rel=0&v="+r.id+'" frameborder="0" allowfullscreen></iframe>':"vimeo"===r.type?i='<iframe src="//player.vimeo.com/video/'+r.id+'?autoplay=1" width="'+s+'" height="'+a+'" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>':"vzaar"===r.type&&(i='<iframe frameborder="0"height="'+a+'"width="'+s+'" allowfullscreen mozallowfullscreen webkitAllowFullScreen src="//view.vzaar.com/'+r.id+'/player?autoplay=true"></iframe>'),e('<div class="owl-video-frame">'+i+"</div>").insertAfter(n.find(".owl-video")),this._playing=n.addClass("owl-video-playing"))},r.prototype.isInFullScreen=function(){var t=i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement;return t&&e(t).parent().hasClass("owl-video-frame")},r.prototype.destroy=function(){var e,t;for(e in this._core.$element.off("click.owl.video"),this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.Video=r}(window.Zepto||window.jQuery,window,document),function(e,t,i,n){var r=function(t){this.core=t,this.core.options=e.extend({},r.Defaults,this.core.options),this.swapping=!0,this.previous=n,this.next=n,this.handlers={"change.owl.carousel":e.proxy(function(e){e.namespace&&"position"==e.property.name&&(this.previous=this.core.current(),this.next=e.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":e.proxy(function(e){e.namespace&&(this.swapping="translated"==e.type)},this),"translate.owl.carousel":e.proxy(function(e){e.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};r.Defaults={animateOut:!1,animateIn:!1},r.prototype.swap=function(){if(1===this.core.settings.items&&e.support.animation&&e.support.transition){this.core.speed(0);var t,i=e.proxy(this.clear,this),n=this.core.$stage.children().eq(this.previous),r=this.core.$stage.children().eq(this.next),s=this.core.settings.animateIn,a=this.core.settings.animateOut;this.core.current()!==this.previous&&(a&&(t=this.core.coordinates(this.previous)-this.core.coordinates(this.next),n.one(e.support.animation.end,i).css({left:t+"px"}).addClass("animated owl-animated-out").addClass(a)),s&&r.one(e.support.animation.end,i).addClass("animated owl-animated-in").addClass(s))}},r.prototype.clear=function(t){e(t.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},r.prototype.destroy=function(){var e,t;for(e in this.handlers)this.core.$element.off(e,this.handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.Animate=r}(window.Zepto||window.jQuery,window,document),function(e,t,i,n){var r=function(t){this._core=t,this._call=null,this._time=0,this._timeout=0,this._paused=!0,this._handlers={"changed.owl.carousel":e.proxy(function(e){e.namespace&&"settings"===e.property.name?this._core.settings.autoplay?this.play():this.stop():e.namespace&&"position"===e.property.name&&this._paused&&(this._time=0)},this),"initialized.owl.carousel":e.proxy(function(e){e.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":e.proxy(function(e,t,i){e.namespace&&this.play(t,i)},this),"stop.owl.autoplay":e.proxy(function(e){e.namespace&&this.stop()},this),"mouseover.owl.autoplay":e.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":e.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":e.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":e.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=e.extend({},r.Defaults,this._core.options)};r.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},r.prototype._next=function(n){this._call=t.setTimeout(e.proxy(this._next,this,n),this._timeout*(Math.round(this.read()/this._timeout)+1)-this.read()),this._core.is("interacting")||i.hidden||this._core.next(n||this._core.settings.autoplaySpeed)},r.prototype.read=function(){return(new Date).getTime()-this._time},r.prototype.play=function(i,n){var r;this._core.is("rotating")||this._core.enter("rotating"),i=i||this._core.settings.autoplayTimeout,r=Math.min(this._time%(this._timeout||i),i),this._paused?(this._time=this.read(),this._paused=!1):t.clearTimeout(this._call),this._time+=this.read()%i-r,this._timeout=i,this._call=t.setTimeout(e.proxy(this._next,this,n),i-r)},r.prototype.stop=function(){this._core.is("rotating")&&(this._time=0,this._paused=!0,t.clearTimeout(this._call),this._core.leave("rotating"))},r.prototype.pause=function(){this._core.is("rotating")&&!this._paused&&(this._time=this.read(),this._paused=!0,t.clearTimeout(this._call))},r.prototype.destroy=function(){var e,t;for(e in this.stop(),this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.autoplay=r}(window.Zepto||window.jQuery,window,document),function(e,t,i,n){"use strict";var r=function(t){this._core=t,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":e.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+e(t.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")},this),"added.owl.carousel":e.proxy(function(e){e.namespace&&this._core.settings.dotsData&&this._templates.splice(e.position,0,this._templates.pop())},this),"remove.owl.carousel":e.proxy(function(e){e.namespace&&this._core.settings.dotsData&&this._templates.splice(e.position,1)},this),"changed.owl.carousel":e.proxy(function(e){e.namespace&&"position"==e.property.name&&this.draw()},this),"initialized.owl.carousel":e.proxy(function(e){e.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":e.proxy(function(e){e.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=e.extend({},r.Defaults,this._core.options),this.$element.on(this._handlers)};r.Defaults={nav:!1,navText:['<span aria-label="Previous">&#x2039;</span>','<span aria-label="Next">&#x203a;</span>'],navSpeed:!1,navElement:'button type="button" role="presentation"',navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},r.prototype.initialize=function(){var t,i=this._core.settings;for(t in this._controls.$relative=(i.navContainer?e(i.navContainer):e("<div>").addClass(i.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=e("<"+i.navElement+">").addClass(i.navClass[0]).html(i.navText[0]).prependTo(this._controls.$relative).on("click",e.proxy(function(e){this.prev(i.navSpeed)},this)),this._controls.$next=e("<"+i.navElement+">").addClass(i.navClass[1]).html(i.navText[1]).appendTo(this._controls.$relative).on("click",e.proxy(function(e){this.next(i.navSpeed)},this)),i.dotsData||(this._templates=[e('<button role="button">').addClass(i.dotClass).append(e("<span>")).prop("outerHTML")]),this._controls.$absolute=(i.dotsContainer?e(i.dotsContainer):e("<div>").addClass(i.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","button",e.proxy(function(t){var n=e(t.target).parent().is(this._controls.$absolute)?e(t.target).index():e(t.target).parent().index();t.preventDefault(),this.to(n,i.dotsSpeed)},this)),this._overrides)this._core[t]=e.proxy(this[t],this)},r.prototype.destroy=function(){var e,t,i,n,r;for(e in r=this._core.settings,this._handlers)this.$element.off(e,this._handlers[e]);for(t in this._controls)"$relative"===t&&r.navContainer?this._controls[t].html(""):this._controls[t].remove();for(n in this.overides)this._core[n]=this._overrides[n];for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},r.prototype.update=function(){var e,t,i=this._core.clones().length/2,n=i+this._core.items().length,r=this._core.maximum(!0),s=this._core.settings,a=s.center||s.autoWidth||s.dotsData?1:s.dotsEach||s.items;if("page"!==s.slideBy&&(s.slideBy=Math.min(s.slideBy,s.items)),s.dots||"page"==s.slideBy)for(this._pages=[],e=i,t=0,0;e<n;e++){if(t>=a||0===t){if(this._pages.push({start:Math.min(r,e-i),end:e-i+a-1}),Math.min(r,e-i)===r)break;t=0,0}t+=this._core.mergers(this._core.relative(e))}},r.prototype.draw=function(){var t,i=this._core.settings,n=this._core.items().length<=i.items,r=this._core.relative(this._core.current()),s=i.loop||i.rewind;this._controls.$relative.toggleClass("disabled",!i.nav||n),i.nav&&(this._controls.$previous.toggleClass("disabled",!s&&r<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!s&&r>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!i.dots||n),i.dots&&(t=this._pages.length-this._controls.$absolute.children().length,i.dotsData&&0!==t?this._controls.$absolute.html(this._templates.join("")):t>0?this._controls.$absolute.append(new Array(t+1).join(this._templates[0])):t<0&&this._controls.$absolute.children().slice(t).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(e.inArray(this.current(),this._pages)).addClass("active"))},r.prototype.onTrigger=function(t){var i=this._core.settings;t.page={index:e.inArray(this.current(),this._pages),count:this._pages.length,size:i&&(i.center||i.autoWidth||i.dotsData?1:i.dotsEach||i.items)}},r.prototype.current=function(){var t=this._core.relative(this._core.current());return e.grep(this._pages,e.proxy(function(e,i){return e.start<=t&&e.end>=t},this)).pop()},r.prototype.getPosition=function(t){var i,n,r=this._core.settings;return"page"==r.slideBy?(i=e.inArray(this.current(),this._pages),n=this._pages.length,t?++i:--i,i=this._pages[(i%n+n)%n].start):(i=this._core.relative(this._core.current()),n=this._core.items().length,t?i+=r.slideBy:i-=r.slideBy),i},r.prototype.next=function(t){e.proxy(this._overrides.to,this._core)(this.getPosition(!0),t)},r.prototype.prev=function(t){e.proxy(this._overrides.to,this._core)(this.getPosition(!1),t)},r.prototype.to=function(t,i,n){var r;!n&&this._pages.length?(r=this._pages.length,e.proxy(this._overrides.to,this._core)(this._pages[(t%r+r)%r].start,i)):e.proxy(this._overrides.to,this._core)(t,i)},e.fn.owlCarousel.Constructor.Plugins.Navigation=r}(window.Zepto||window.jQuery,window,document),function(e,t,i,n){"use strict";var r=function(i){this._core=i,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":e.proxy(function(i){i.namespace&&"URLHash"===this._core.settings.startPosition&&e(t).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":e.proxy(function(t){if(t.namespace){var i=e(t.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!i)return;this._hashes[i]=t.content}},this),"changed.owl.carousel":e.proxy(function(i){if(i.namespace&&"position"===i.property.name){var n=this._core.items(this._core.relative(this._core.current())),r=e.map(this._hashes,function(e,t){return e===n?t:null}).join();if(!r||t.location.hash.slice(1)===r)return;t.location.hash=r}},this)},this._core.options=e.extend({},r.Defaults,this._core.options),this.$element.on(this._handlers),e(t).on("hashchange.owl.navigation",e.proxy(function(e){var i=t.location.hash.substring(1),n=this._core.$stage.children(),r=this._hashes[i]&&n.index(this._hashes[i]);void 0!==r&&r!==this._core.current()&&this._core.to(this._core.relative(r),!1,!0)},this))};r.Defaults={URLhashListener:!1},r.prototype.destroy=function(){var i,n;for(i in e(t).off("hashchange.owl.navigation"),this._handlers)this._core.$element.off(i,this._handlers[i]);for(n in Object.getOwnPropertyNames(this))"function"!=typeof this[n]&&(this[n]=null)},e.fn.owlCarousel.Constructor.Plugins.Hash=r}(window.Zepto||window.jQuery,window,document),function(e,t,i,n){function r(t,i){var r=!1,s=t.charAt(0).toUpperCase()+t.slice(1);return e.each((t+" "+o.join(s+" ")+s).split(" "),function(e,t){if(a[t]!==n)return r=!i||t,!1}),r}function s(e){return r(e,!0)}var a=e("<support>").get(0).style,o="Webkit Moz O ms".split(" "),l={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},u=function(){return!!r("transform")},c=function(){return!!r("perspective")},d=function(){return!!r("animation")};(function(){return!!r("transition")})()&&(e.support.transition=new String(s("transition")),e.support.transition.end=l.transition.end[e.support.transition]),d()&&(e.support.animation=new String(s("animation")),e.support.animation.end=l.animation.end[e.support.animation]),u()&&(e.support.transform=new String(s("transform")),e.support.transform3d=c())}(window.Zepto||window.jQuery,window,document),function(e){"use strict";function t(t,i){this.element=e(t),this.settings=e.extend({},n,i),this._defaults=n,this._init()}var i="Morphext",n={animation:"bounceIn",separator:",",speed:2e3,complete:e.noop};t.prototype={_init:function(){var t=this;this.phrases=[],this.element.addClass("morphext"),e.each(this.element.text().split(this.settings.separator),function(i,n){t.phrases.push(e.trim(n))}),this.index=-1,this.animate(),this.start()},animate:function(){this.index=++this.index%this.phrases.length,this.element[0].innerHTML='<span class="animated '+this.settings.animation+'">'+this.phrases[this.index]+"</span>",e.isFunction(this.settings.complete)&&this.settings.complete.call(this)},start:function(){var e=this;this._interval=setInterval(function(){e.animate()},this.settings.speed)},stop:function(){this._interval=clearInterval(this._interval)}},e.fn[i]=function(n){return this.each(function(){e.data(this,"plugin_"+i)||e.data(this,"plugin_"+i,new t(this,n))})}}(jQuery),function(e,t){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return t(e,i)}):"object"==typeof module&&module.exports?module.exports=t(e,require("jquery")):e.jQueryBridget=t(e,e.jQuery)}(window,function(e,t){"use strict";function i(i,s,o){(o=o||t||e.jQuery)&&(s.prototype.option||(s.prototype.option=function(e){o.isPlainObject(e)&&(this.options=o.extend(!0,this.options,e))}),o.fn[i]=function(e){return"string"==typeof e?function(e,t,n){var r,s="$()."+i+'("'+t+'")';return e.each(function(e,l){var u=o.data(l,i);if(u){var c=u[t];if(c&&"_"!=t.charAt(0)){var d=c.apply(u,n);r=void 0===r?d:r}else a(s+" is not a valid method")}else a(i+" not initialized. Cannot call methods, i.e. "+s)}),void 0!==r?r:e}(this,e,r.call(arguments,1)):(function(e,t){e.each(function(e,n){var r=o.data(n,i);r?(r.option(t),r._init()):(r=new s(n,t),o.data(n,i,r))})}(this,e),this)},n(o))}function n(e){!e||e&&e.bridget||(e.bridget=i)}var r=Array.prototype.slice,s=e.console,a=void 0===s?function(){}:function(e){s.error(e)};return n(t||e.jQuery),i}),function(e,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var i=this._events=this._events||{},n=i[e]=i[e]||[];return-1==n.indexOf(t)&&n.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var i=this._onceEvents=this._onceEvents||{};return(i[e]=i[e]||{})[t]=!0,this}},t.off=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){var n=i.indexOf(t);return-1!=n&&i.splice(n,1),this}},t.emitEvent=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){i=i.slice(0),t=t||[];for(var n=this._onceEvents&&this._onceEvents[e],r=0;r<i.length;r++){var s=i[r];n&&n[s]&&(this.off(e,s),delete n[s]),s.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e}),function(e,t){"function"==typeof define&&define.amd?define("get-size/get-size",t):"object"==typeof module&&module.exports?module.exports=t():e.getSize=t()}(window,function(){"use strict";function e(e){var t=parseFloat(e);return-1==e.indexOf("%")&&!isNaN(t)&&t}function t(e){var t=getComputedStyle(e);return t||s("Style returned "+t+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),t}function i(){if(!l){l=!0;var i=document.createElement("div");i.style.width="200px",i.style.padding="1px 2px 3px 4px",i.style.borderStyle="solid",i.style.borderWidth="1px 2px 3px 4px",i.style.boxSizing="border-box";var s=document.body||document.documentElement;s.appendChild(i);var a=t(i);r=200==Math.round(e(a.width)),n.isBoxSizeOuter=r,s.removeChild(i)}}function n(n){if(i(),"string"==typeof n&&(n=document.querySelector(n)),n&&"object"==typeof n&&n.nodeType){var s=t(n);if("none"==s.display)return function(){for(var e={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},t=0;t<o;t++)e[a[t]]=0;return e}();var l={};l.width=n.offsetWidth,l.height=n.offsetHeight;for(var u=l.isBorderBox="border-box"==s.boxSizing,c=0;c<o;c++){var d=a[c],h=s[d],p=parseFloat(h);l[d]=isNaN(p)?0:p}var f=l.paddingLeft+l.paddingRight,m=l.paddingTop+l.paddingBottom,g=l.marginLeft+l.marginRight,v=l.marginTop+l.marginBottom,y=l.borderLeftWidth+l.borderRightWidth,b=l.borderTopWidth+l.borderBottomWidth,w=u&&r,T=e(s.width);!1!==T&&(l.width=T+(w?0:f+y));var _=e(s.height);return!1!==_&&(l.height=_+(w?0:m+b)),l.innerWidth=l.width-(f+y),l.innerHeight=l.height-(m+b),l.outerWidth=l.width+g,l.outerHeight=l.height+v,l}}var r,s="undefined"==typeof console?function(){}:function(e){console.error(e)},a=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],o=a.length,l=!1;return n}),function(e,t){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",t):"object"==typeof module&&module.exports?module.exports=t():e.matchesSelector=t()}(window,function(){"use strict";var e=function(){var e=window.Element.prototype;if(e.matches)return"matches";if(e.matchesSelector)return"matchesSelector";for(var t=["webkit","moz","ms","o"],i=0;i<t.length;i++){var n=t[i]+"MatchesSelector";if(e[n])return n}}();return function(t,i){return t[e](i)}}),function(e,t){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(i){return t(e,i)}):"object"==typeof module&&module.exports?module.exports=t(e,require("desandro-matches-selector")):e.fizzyUIUtils=t(e,e.matchesSelector)}(window,function(e,t){var i={extend:function(e,t){for(var i in t)e[i]=t[i];return e},modulo:function(e,t){return(e%t+t)%t}},n=Array.prototype.slice;i.makeArray=function(e){return Array.isArray(e)?e:null==e?[]:"object"==typeof e&&"number"==typeof e.length?n.call(e):[e]},i.removeFrom=function(e,t){var i=e.indexOf(t);-1!=i&&e.splice(i,1)},i.getParent=function(e,i){for(;e.parentNode&&e!=document.body;)if(e=e.parentNode,t(e,i))return e},i.getQueryElement=function(e){return"string"==typeof e?document.querySelector(e):e},i.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},i.filterFindElements=function(e,n){e=i.makeArray(e);var r=[];return e.forEach(function(e){if(e instanceof HTMLElement){if(!n)return void r.push(e);t(e,n)&&r.push(e);for(var i=e.querySelectorAll(n),s=0;s<i.length;s++)r.push(i[s])}}),r},i.debounceMethod=function(e,t,i){i=i||100;var n=e.prototype[t],r=t+"Timeout";e.prototype[t]=function(){var e=this[r];clearTimeout(e);var t=arguments,s=this;this[r]=setTimeout(function(){n.apply(s,t),delete s[r]},i)}},i.docReady=function(e){var t=document.readyState;"complete"==t||"interactive"==t?setTimeout(e):document.addEventListener("DOMContentLoaded",e)},i.toDashed=function(e){return e.replace(/(.)([A-Z])/g,function(e,t,i){return t+"-"+i}).toLowerCase()};var r=e.console;return i.htmlInit=function(t,n){i.docReady(function(){var s=i.toDashed(n),a="data-"+s,o=document.querySelectorAll("["+a+"]"),l=document.querySelectorAll(".js-"+s),u=i.makeArray(o).concat(i.makeArray(l)),c=a+"-options",d=e.jQuery;u.forEach(function(e){var i,s=e.getAttribute(a)||e.getAttribute(c);try{i=s&&JSON.parse(s)}catch(t){return void(r&&r.error("Error parsing "+a+" on "+e.className+": "+t))}var o=new t(e,i);d&&d.data(e,n,o)})})},i}),function(e,t){"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],t):"object"==typeof module&&module.exports?module.exports=t(require("ev-emitter"),require("get-size")):(e.Outlayer={},e.Outlayer.Item=t(e.EvEmitter,e.getSize))}(window,function(e,t){"use strict";function i(e,t){e&&(this.element=e,this.layout=t,this.position={x:0,y:0},this._create())}var n=document.documentElement.style,r="string"==typeof n.transition?"transition":"WebkitTransition",s="string"==typeof n.transform?"transform":"WebkitTransform",a={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[r],o={transform:s,transition:r,transitionDuration:r+"Duration",transitionProperty:r+"Property",transitionDelay:r+"Delay"},l=i.prototype=Object.create(e.prototype);l.constructor=i,l._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},l.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},l.getSize=function(){this.size=t(this.element)},l.css=function(e){var t=this.element.style;for(var i in e){t[o[i]||i]=e[i]}},l.getPosition=function(){var e=getComputedStyle(this.element),t=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),n=e[t?"left":"right"],r=e[i?"top":"bottom"],s=parseFloat(n),a=parseFloat(r),o=this.layout.size;-1!=n.indexOf("%")&&(s=s/100*o.width),-1!=r.indexOf("%")&&(a=a/100*o.height),s=isNaN(s)?0:s,a=isNaN(a)?0:a,s-=t?o.paddingLeft:o.paddingRight,a-=i?o.paddingTop:o.paddingBottom,this.position.x=s,this.position.y=a},l.layoutPosition=function(){var e=this.layout.size,t={},i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),r=i?"paddingLeft":"paddingRight",s=i?"left":"right",a=i?"right":"left",o=this.position.x+e[r];t[s]=this.getXValue(o),t[a]="";var l=n?"paddingTop":"paddingBottom",u=n?"top":"bottom",c=n?"bottom":"top",d=this.position.y+e[l];t[u]=this.getYValue(d),t[c]="",this.css(t),this.emitEvent("layout",[this])},l.getXValue=function(e){var t=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!t?e/this.layout.size.width*100+"%":e+"px"},l.getYValue=function(e){var t=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&t?e/this.layout.size.height*100+"%":e+"px"},l._transitionTo=function(e,t){this.getPosition();var i=this.position.x,n=this.position.y,r=e==this.position.x&&t==this.position.y;if(this.setPosition(e,t),!r||this.isTransitioning){var s=e-i,a=t-n,o={};o.transform=this.getTranslate(s,a),this.transition({to:o,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})}else this.layoutPosition()},l.getTranslate=function(e,t){return"translate3d("+(e=this.layout._getOption("originLeft")?e:-e)+"px, "+(t=this.layout._getOption("originTop")?t:-t)+"px, 0)"},l.goTo=function(e,t){this.setPosition(e,t),this.layoutPosition()},l.moveTo=l._transitionTo,l.setPosition=function(e,t){this.position.x=parseFloat(e),this.position.y=parseFloat(t)},l._nonTransition=function(e){for(var t in this.css(e.to),e.isCleaning&&this._removeStyles(e.to),e.onTransitionEnd)e.onTransitionEnd[t].call(this)},l.transition=function(e){if(parseFloat(this.layout.options.transitionDuration)){var t=this._transn;for(var i in e.onTransitionEnd)t.onEnd[i]=e.onTransitionEnd[i];for(i in e.to)t.ingProperties[i]=!0,e.isCleaning&&(t.clean[i]=!0);if(e.from){this.css(e.from);this.element.offsetHeight;null}this.enableTransition(e.to),this.css(e.to),this.isTransitioning=!0}else this._nonTransition(e)};var u="opacity,"+function(e){return e.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()})}(s);l.enableTransition=function(){if(!this.isTransitioning){var e=this.layout.options.transitionDuration;e="number"==typeof e?e+"ms":e,this.css({transitionProperty:u,transitionDuration:e,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(a,this,!1)}},l.onwebkitTransitionEnd=function(e){this.ontransitionend(e)},l.onotransitionend=function(e){this.ontransitionend(e)};var c={"-webkit-transform":"transform"};l.ontransitionend=function(e){if(e.target===this.element){var t=this._transn,i=c[e.propertyName]||e.propertyName;if(delete t.ingProperties[i],function(e){for(var t in e)return!1;return!0}(t.ingProperties)&&this.disableTransition(),i in t.clean&&(this.element.style[e.propertyName]="",delete t.clean[i]),i in t.onEnd)t.onEnd[i].call(this),delete t.onEnd[i];this.emitEvent("transitionEnd",[this])}},l.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(a,this,!1),this.isTransitioning=!1},l._removeStyles=function(e){var t={};for(var i in e)t[i]="";this.css(t)};var d={transitionProperty:"",transitionDuration:"",transitionDelay:""};return l.removeTransitionStyles=function(){this.css(d)},l.stagger=function(e){e=isNaN(e)?0:e,this.staggerDelay=e+"ms"},l.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},l.remove=function(){return r&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),void this.hide()):void this.removeElem()},l.reveal=function(){delete this.isHidden,this.css({display:""});var e=this.layout.options,t={};t[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:e.hiddenStyle,to:e.visibleStyle,isCleaning:!0,onTransitionEnd:t})},l.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},l.getHideRevealTransitionEndProperty=function(e){var t=this.layout.options[e];if(t.opacity)return"opacity";for(var i in t)return i},l.hide=function(){this.isHidden=!0,this.css({display:""});var e=this.layout.options,t={};t[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:e.visibleStyle,to:e.hiddenStyle,isCleaning:!0,onTransitionEnd:t})},l.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},l.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},i}),function(e,t){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(i,n,r,s){return t(e,i,n,r,s)}):"object"==typeof module&&module.exports?module.exports=t(e,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):e.Outlayer=t(e,e.EvEmitter,e.getSize,e.fizzyUIUtils,e.Outlayer.Item)}(window,function(e,t,i,n,r){"use strict";function s(e,t){var i=n.getQueryElement(e);if(i){this.element=i,l&&(this.$element=l(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(t);var r=++c;this.element.outlayerGUID=r,d[r]=this,this._create(),this._getOption("initLayout")&&this.layout()}else o&&o.error("Bad element for "+this.constructor.namespace+": "+(i||e))}function a(e){function t(){e.apply(this,arguments)}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t}var o=e.console,l=e.jQuery,u=function(){},c=0,d={};s.namespace="outlayer",s.Item=r,s.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var h=s.prototype;n.extend(h,t.prototype),h.option=function(e){n.extend(this.options,e)},h._getOption=function(e){var t=this.constructor.compatOptions[e];return t&&void 0!==this.options[t]?this.options[t]:this.options[e]},s.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},h._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),n.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},h.reloadItems=function(){this.items=this._itemize(this.element.children)},h._itemize=function(e){for(var t=this._filterFindItemElements(e),i=this.constructor.Item,n=[],r=0;r<t.length;r++){var s=new i(t[r],this);n.push(s)}return n},h._filterFindItemElements=function(e){return n.filterFindElements(e,this.options.itemSelector)},h.getItemElements=function(){return this.items.map(function(e){return e.element})},h.layout=function(){this._resetLayout(),this._manageStamps();var e=this._getOption("layoutInstant"),t=void 0!==e?e:!this._isLayoutInited;this.layoutItems(this.items,t),this._isLayoutInited=!0},h._init=h.layout,h._resetLayout=function(){this.getSize()},h.getSize=function(){this.size=i(this.element)},h._getMeasurement=function(e,t){var n,r=this.options[e];r?("string"==typeof r?n=this.element.querySelector(r):r instanceof HTMLElement&&(n=r),this[e]=n?i(n)[t]:r):this[e]=0},h.layoutItems=function(e,t){e=this._getItemsForLayout(e),this._layoutItems(e,t),this._postLayout()},h._getItemsForLayout=function(e){return e.filter(function(e){return!e.isIgnored})},h._layoutItems=function(e,t){if(this._emitCompleteOnItems("layout",e),e&&e.length){var i=[];e.forEach(function(e){var n=this._getItemLayoutPosition(e);n.item=e,n.isInstant=t||e.isLayoutInstant,i.push(n)},this),this._processLayoutQueue(i)}},h._getItemLayoutPosition=function(){return{x:0,y:0}},h._processLayoutQueue=function(e){this.updateStagger(),e.forEach(function(e,t){this._positionItem(e.item,e.x,e.y,e.isInstant,t)},this)},h.updateStagger=function(){var e=this.options.stagger;return null==e?void(this.stagger=0):(this.stagger=function(e){if("number"==typeof e)return e;var t=e.match(/(^\d*\.?\d*)(\w*)/),i=t&&t[1],n=t&&t[2];return i.length?(i=parseFloat(i))*(p[n]||1):0}(e),this.stagger)},h._positionItem=function(e,t,i,n,r){n?e.goTo(t,i):(e.stagger(r*this.stagger),e.moveTo(t,i))},h._postLayout=function(){this.resizeContainer()},h.resizeContainer=function(){if(this._getOption("resizeContainer")){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},h._getContainerSize=u,h._setContainerMeasure=function(e,t){if(void 0!==e){var i=this.size;i.isBorderBox&&(e+=t?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),e=Math.max(e,0),this.element.style[t?"width":"height"]=e+"px"}},h._emitCompleteOnItems=function(e,t){function i(){r.dispatchEvent(e+"Complete",null,[t])}function n(){++a==s&&i()}var r=this,s=t.length;if(t&&s){var a=0;t.forEach(function(t){t.once(e,n)})}else i()},h.dispatchEvent=function(e,t,i){var n=t?[t].concat(i):i;if(this.emitEvent(e,n),l)if(this.$element=this.$element||l(this.element),t){var r=l.Event(t);r.type=e,this.$element.trigger(r,i)}else this.$element.trigger(e,i)},h.ignore=function(e){var t=this.getItem(e);t&&(t.isIgnored=!0)},h.unignore=function(e){var t=this.getItem(e);t&&delete t.isIgnored},h.stamp=function(e){(e=this._find(e))&&(this.stamps=this.stamps.concat(e),e.forEach(this.ignore,this))},h.unstamp=function(e){(e=this._find(e))&&e.forEach(function(e){n.removeFrom(this.stamps,e),this.unignore(e)},this)},h._find=function(e){if(e)return"string"==typeof e&&(e=this.element.querySelectorAll(e)),n.makeArray(e)},h._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},h._getBoundingRect=function(){var e=this.element.getBoundingClientRect(),t=this.size;this._boundingRect={left:e.left+t.paddingLeft+t.borderLeftWidth,top:e.top+t.paddingTop+t.borderTopWidth,right:e.right-(t.paddingRight+t.borderRightWidth),bottom:e.bottom-(t.paddingBottom+t.borderBottomWidth)}},h._manageStamp=u,h._getElementOffset=function(e){var t=e.getBoundingClientRect(),n=this._boundingRect,r=i(e);return{left:t.left-n.left-r.marginLeft,top:t.top-n.top-r.marginTop,right:n.right-t.right-r.marginRight,bottom:n.bottom-t.bottom-r.marginBottom}},h.handleEvent=n.handleEvent,h.bindResize=function(){e.addEventListener("resize",this),this.isResizeBound=!0},h.unbindResize=function(){e.removeEventListener("resize",this),this.isResizeBound=!1},h.onresize=function(){this.resize()},n.debounceMethod(s,"onresize",100),h.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},h.needsResizeLayout=function(){var e=i(this.element);return this.size&&e&&e.innerWidth!==this.size.innerWidth},h.addItems=function(e){var t=this._itemize(e);return t.length&&(this.items=this.items.concat(t)),t},h.appended=function(e){var t=this.addItems(e);t.length&&(this.layoutItems(t,!0),this.reveal(t))},h.prepended=function(e){var t=this._itemize(e);if(t.length){var i=this.items.slice(0);this.items=t.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(t,!0),this.reveal(t),this.layoutItems(i)}},h.reveal=function(e){if(this._emitCompleteOnItems("reveal",e),e&&e.length){var t=this.updateStagger();e.forEach(function(e,i){e.stagger(i*t),e.reveal()})}},h.hide=function(e){if(this._emitCompleteOnItems("hide",e),e&&e.length){var t=this.updateStagger();e.forEach(function(e,i){e.stagger(i*t),e.hide()})}},h.revealItemElements=function(e){var t=this.getItems(e);this.reveal(t)},h.hideItemElements=function(e){var t=this.getItems(e);this.hide(t)},h.getItem=function(e){for(var t=0;t<this.items.length;t++){var i=this.items[t];if(i.element==e)return i}},h.getItems=function(e){e=n.makeArray(e);var t=[];return e.forEach(function(e){var i=this.getItem(e);i&&t.push(i)},this),t},h.remove=function(e){var t=this.getItems(e);this._emitCompleteOnItems("remove",t),t&&t.length&&t.forEach(function(e){e.remove(),n.removeFrom(this.items,e)},this)},h.destroy=function(){var e=this.element.style;e.height="",e.position="",e.width="",this.items.forEach(function(e){e.destroy()}),this.unbindResize();var t=this.element.outlayerGUID;delete d[t],delete this.element.outlayerGUID,l&&l.removeData(this.element,this.constructor.namespace)},s.data=function(e){var t=(e=n.getQueryElement(e))&&e.outlayerGUID;return t&&d[t]},s.create=function(e,t){var i=a(s);return i.defaults=n.extend({},s.defaults),n.extend(i.defaults,t),i.compatOptions=n.extend({},s.compatOptions),i.namespace=e,i.data=s.data,i.Item=a(r),n.htmlInit(i,e),l&&l.bridget&&l.bridget(e,i),i};var p={ms:1,s:1e3};return s.Item=r,s}),function(e,t){"function"==typeof define&&define.amd?define("isotope-layout/js/item",["outlayer/outlayer"],t):"object"==typeof module&&module.exports?module.exports=t(require("outlayer")):(e.Isotope=e.Isotope||{},e.Isotope.Item=t(e.Outlayer))}(window,function(e){"use strict";function t(){e.Item.apply(this,arguments)}var i=t.prototype=Object.create(e.Item.prototype),n=i._create;i._create=function(){this.id=this.layout.itemGUID++,n.call(this),this.sortData={}},i.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var e=this.layout.options.getSortData,t=this.layout._sorters;for(var i in e){var n=t[i];this.sortData[i]=n(this.element,this)}}};var r=i.destroy;return i.destroy=function(){r.apply(this,arguments),this.css({display:""})},t}),function(e,t){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-mode",["get-size/get-size","outlayer/outlayer"],t):"object"==typeof module&&module.exports?module.exports=t(require("get-size"),require("outlayer")):(e.Isotope=e.Isotope||{},e.Isotope.LayoutMode=t(e.getSize,e.Outlayer))}(window,function(e,t){"use strict";function i(e){this.isotope=e,e&&(this.options=e.options[this.namespace],this.element=e.element,this.items=e.filteredItems,this.size=e.size)}var n=i.prototype;return["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"].forEach(function(e){n[e]=function(){return t.prototype[e].apply(this.isotope,arguments)}}),n.needsVerticalResizeLayout=function(){var t=e(this.isotope.element);return this.isotope.size&&t&&t.innerHeight!=this.isotope.size.innerHeight},n._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},n.getColumnWidth=function(){this.getSegmentSize("column","Width")},n.getRowHeight=function(){this.getSegmentSize("row","Height")},n.getSegmentSize=function(e,t){var i=e+t,n="outer"+t;if(this._getMeasurement(i,n),!this[i]){var r=this.getFirstItemSize();this[i]=r&&r[n]||this.isotope.size["inner"+t]}},n.getFirstItemSize=function(){var t=this.isotope.filteredItems[0];return t&&t.element&&e(t.element)},n.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},n.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},i.modes={},i.create=function(e,t){function r(){i.apply(this,arguments)}return r.prototype=Object.create(n),r.prototype.constructor=r,t&&(r.options=t),r.prototype.namespace=e,i.modes[e]=r,r},i}),function(e,t){"function"==typeof define&&define.amd?define("masonry-layout/masonry",["outlayer/outlayer","get-size/get-size"],t):"object"==typeof module&&module.exports?module.exports=t(require("outlayer"),require("get-size")):e.Masonry=t(e.Outlayer,e.getSize)}(window,function(e,t){var i=e.create("masonry");i.compatOptions.fitWidth="isFitWidth";var n=i.prototype;return n._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var e=0;e<this.cols;e++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},n.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var e=this.items[0],i=e&&e.element;this.columnWidth=i&&t(i).outerWidth||this.containerWidth}var n=this.columnWidth+=this.gutter,r=this.containerWidth+this.gutter,s=r/n,a=n-r%n;s=Math[a&&a<1?"round":"floor"](s),this.cols=Math.max(s,1)},n.getContainerWidth=function(){var e=this._getOption("fitWidth")?this.element.parentNode:this.element,i=t(e);this.containerWidth=i&&i.innerWidth},n._getItemLayoutPosition=function(e){e.getSize();var t=e.size.outerWidth%this.columnWidth,i=Math[t&&t<1?"round":"ceil"](e.size.outerWidth/this.columnWidth);i=Math.min(i,this.cols);for(var n=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](i,e),r={x:this.columnWidth*n.col,y:n.y},s=n.y+e.size.outerHeight,a=i+n.col,o=n.col;o<a;o++)this.colYs[o]=s;return r},n._getTopColPosition=function(e){var t=this._getTopColGroup(e),i=Math.min.apply(Math,t);return{col:t.indexOf(i),y:i}},n._getTopColGroup=function(e){if(e<2)return this.colYs;for(var t=[],i=this.cols+1-e,n=0;n<i;n++)t[n]=this._getColGroupY(n,e);return t},n._getColGroupY=function(e,t){if(t<2)return this.colYs[e];var i=this.colYs.slice(e,e+t);return Math.max.apply(Math,i)},n._getHorizontalColPosition=function(e,t){var i=this.horizontalColIndex%this.cols;i=e>1&&i+e>this.cols?0:i;var n=t.size.outerWidth&&t.size.outerHeight;return this.horizontalColIndex=n?i+e:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,e)}},n._manageStamp=function(e){var i=t(e),n=this._getElementOffset(e),r=this._getOption("originLeft")?n.left:n.right,s=r+i.outerWidth,a=Math.floor(r/this.columnWidth);a=Math.max(0,a);var o=Math.floor(s/this.columnWidth);o-=s%this.columnWidth?0:1,o=Math.min(this.cols-1,o);for(var l=(this._getOption("originTop")?n.top:n.bottom)+i.outerHeight,u=a;u<=o;u++)this.colYs[u]=Math.max(l,this.colYs[u])},n._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var e={height:this.maxY};return this._getOption("fitWidth")&&(e.width=this._getContainerFitWidth()),e},n._getContainerFitWidth=function(){for(var e=0,t=this.cols;--t&&0===this.colYs[t];)e++;return(this.cols-e)*this.columnWidth-this.gutter},n.needsResizeLayout=function(){var e=this.containerWidth;return this.getContainerWidth(),e!=this.containerWidth},i}),function(e,t){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/masonry",["../layout-mode","masonry-layout/masonry"],t):"object"==typeof module&&module.exports?module.exports=t(require("../layout-mode"),require("masonry-layout")):t(e.Isotope.LayoutMode,e.Masonry)}(window,function(e,t){"use strict";var i=e.create("masonry"),n=i.prototype,r={_getElementOffset:!0,layout:!0,_getMeasurement:!0};for(var s in t.prototype)r[s]||(n[s]=t.prototype[s]);var a=n.measureColumns;n.measureColumns=function(){this.items=this.isotope.filteredItems,a.call(this)};var o=n._getOption;return n._getOption=function(e){return"fitWidth"==e?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:o.apply(this.isotope,arguments)},i}),function(e,t){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/fit-rows",["../layout-mode"],t):"object"==typeof exports?module.exports=t(require("../layout-mode")):t(e.Isotope.LayoutMode)}(window,function(e){"use strict";var t=e.create("fitRows"),i=t.prototype;return i._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},i._getItemLayoutPosition=function(e){e.getSize();var t=e.size.outerWidth+this.gutter,i=this.isotope.size.innerWidth+this.gutter;0!==this.x&&t+this.x>i&&(this.x=0,this.y=this.maxY);var n={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+e.size.outerHeight),this.x+=t,n},i._getContainerSize=function(){return{height:this.maxY}},t}),function(e,t){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/vertical",["../layout-mode"],t):"object"==typeof module&&module.exports?module.exports=t(require("../layout-mode")):t(e.Isotope.LayoutMode)}(window,function(e){"use strict";var t=e.create("vertical",{horizontalAlignment:0}),i=t.prototype;return i._resetLayout=function(){this.y=0},i._getItemLayoutPosition=function(e){e.getSize();var t=(this.isotope.size.innerWidth-e.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=e.size.outerHeight,{x:t,y:i}},i._getContainerSize=function(){return{height:this.y}},t}),function(e,t){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","desandro-matches-selector/matches-selector","fizzy-ui-utils/utils","isotope-layout/js/item","isotope-layout/js/layout-mode","isotope-layout/js/layout-modes/masonry","isotope-layout/js/layout-modes/fit-rows","isotope-layout/js/layout-modes/vertical"],function(i,n,r,s,a,o){return t(e,i,n,r,s,a,o)}):"object"==typeof module&&module.exports?module.exports=t(e,require("outlayer"),require("get-size"),require("desandro-matches-selector"),require("fizzy-ui-utils"),require("isotope-layout/js/item"),require("isotope-layout/js/layout-mode"),require("isotope-layout/js/layout-modes/masonry"),require("isotope-layout/js/layout-modes/fit-rows"),require("isotope-layout/js/layout-modes/vertical")):e.Isotope=t(e,e.Outlayer,e.getSize,e.matchesSelector,e.fizzyUIUtils,e.Isotope.Item,e.Isotope.LayoutMode)}(window,function(e,t,i,n,r,s,a){var o=e.jQuery,l=String.prototype.trim?function(e){return e.trim()}:function(e){return e.replace(/^\s+|\s+$/g,"")},u=t.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});u.Item=s,u.LayoutMode=a;var c=u.prototype;c._create=function(){for(var e in this.itemGUID=0,this._sorters={},this._getSorters(),t.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"],a.modes)this._initLayoutMode(e)},c.reloadItems=function(){this.itemGUID=0,t.prototype.reloadItems.call(this)},c._itemize=function(){for(var e=t.prototype._itemize.apply(this,arguments),i=0;i<e.length;i++){e[i].id=this.itemGUID++}return this._updateItemsSortData(e),e},c._initLayoutMode=function(e){var t=a.modes[e],i=this.options[e]||{};this.options[e]=t.options?r.extend(t.options,i):i,this.modes[e]=new t(this)},c.layout=function(){return!this._isLayoutInited&&this._getOption("initLayout")?void this.arrange():void this._layout()},c._layout=function(){var e=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,e),this._isLayoutInited=!0},c.arrange=function(e){this.option(e),this._getIsInstant();var t=this._filter(this.items);this.filteredItems=t.matches,this._bindArrangeComplete(),this._isInstant?this._noTransition(this._hideReveal,[t]):this._hideReveal(t),this._sort(),this._layout()},c._init=c.arrange,c._hideReveal=function(e){this.reveal(e.needReveal),this.hide(e.needHide)},c._getIsInstant=function(){var e=this._getOption("layoutInstant"),t=void 0!==e?e:!this._isLayoutInited;return this._isInstant=t,t},c._bindArrangeComplete=function(){function e(){t&&i&&n&&r.dispatchEvent("arrangeComplete",null,[r.filteredItems])}var t,i,n,r=this;this.once("layoutComplete",function(){t=!0,e()}),this.once("hideComplete",function(){i=!0,e()}),this.once("revealComplete",function(){n=!0,e()})},c._filter=function(e){var t=this.options.filter;t=t||"*";for(var i=[],n=[],r=[],s=this._getFilterTest(t),a=0;a<e.length;a++){var o=e[a];if(!o.isIgnored){var l=s(o);l&&i.push(o),l&&o.isHidden?n.push(o):l||o.isHidden||r.push(o)}}return{matches:i,needReveal:n,needHide:r}},c._getFilterTest=function(e){return o&&this.options.isJQueryFiltering?function(t){return o(t.element).is(e)}:"function"==typeof e?function(t){return e(t.element)}:function(t){return n(t.element,e)}},c.updateSortData=function(e){var t;e?(e=r.makeArray(e),t=this.getItems(e)):t=this.items,this._getSorters(),this._updateItemsSortData(t)},c._getSorters=function(){var e=this.options.getSortData;for(var t in e){var i=e[t];this._sorters[t]=d(i)}},c._updateItemsSortData=function(e){for(var t=e&&e.length,i=0;t&&i<t;i++){e[i].updateSortData()}};var d=function(){return function(e){if("string"!=typeof e)return e;var t=l(e).split(" "),i=t[0],n=i.match(/^\[(.+)\]$/),r=function(e,t){return e?function(t){return t.getAttribute(e)}:function(e){var i=e.querySelector(t);return i&&i.textContent}}(n&&n[1],i),s=u.sortDataParsers[t[1]];return s?function(e){return e&&s(r(e))}:function(e){return e&&r(e)}}}();u.sortDataParsers={parseInt:function(e){return parseInt(e,10)},parseFloat:function(e){return parseFloat(e)}},c._sort=function(){if(this.options.sortBy){var e=r.makeArray(this.options.sortBy);this._getIsSameSortBy(e)||(this.sortHistory=e.concat(this.sortHistory));var t=function(e,t){return function(i,n){for(var r=0;r<e.length;r++){var s=e[r],a=i.sortData[s],o=n.sortData[s];if(a>o||a<o)return(a>o?1:-1)*((void 0!==t[s]?t[s]:t)?1:-1)}return 0}}(this.sortHistory,this.options.sortAscending);this.filteredItems.sort(t)}},c._getIsSameSortBy=function(e){for(var t=0;t<e.length;t++)if(e[t]!=this.sortHistory[t])return!1;return!0},c._mode=function(){var e=this.options.layoutMode,t=this.modes[e];if(!t)throw new Error("No layout mode: "+e);return t.options=this.options[e],t},c._resetLayout=function(){t.prototype._resetLayout.call(this),this._mode()._resetLayout()},c._getItemLayoutPosition=function(e){return this._mode()._getItemLayoutPosition(e)},c._manageStamp=function(e){this._mode()._manageStamp(e)},c._getContainerSize=function(){return this._mode()._getContainerSize()},c.needsResizeLayout=function(){return this._mode().needsResizeLayout()},c.appended=function(e){var t=this.addItems(e);if(t.length){var i=this._filterRevealAdded(t);this.filteredItems=this.filteredItems.concat(i)}},c.prepended=function(e){var t=this._itemize(e);if(t.length){this._resetLayout(),this._manageStamps();var i=this._filterRevealAdded(t);this.layoutItems(this.filteredItems),this.filteredItems=i.concat(this.filteredItems),this.items=t.concat(this.items)}},c._filterRevealAdded=function(e){var t=this._filter(e);return this.hide(t.needHide),this.reveal(t.matches),this.layoutItems(t.matches,!0),t.matches},c.insert=function(e){var t=this.addItems(e);if(t.length){var i,n,r=t.length;for(i=0;i<r;i++)n=t[i],this.element.appendChild(n.element);var s=this._filter(t).matches;for(i=0;i<r;i++)t[i].isLayoutInstant=!0;for(this.arrange(),i=0;i<r;i++)delete t[i].isLayoutInstant;this.reveal(s)}};var h=c.remove;return c.remove=function(e){e=r.makeArray(e);var t=this.getItems(e);h.call(this,e);for(var i=t&&t.length,n=0;i&&n<i;n++){var s=t[n];r.removeFrom(this.filteredItems,s)}},c.shuffle=function(){for(var e=0;e<this.items.length;e++){this.items[e].sortData.random=Math.random()}this.options.sortBy="random",this._sort(),this._layout()},c._noTransition=function(e,t){var i=this.options.transitionDuration;this.options.transitionDuration=0;var n=e.apply(this,t);return this.options.transitionDuration=i,n},c.getFilteredItemElements=function(){return this.filteredItems.map(function(e){return e.element})},u}),function(e,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var i=this._events=this._events||{},n=i[e]=i[e]||[];return-1==n.indexOf(t)&&n.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var i=this._onceEvents=this._onceEvents||{};return(i[e]=i[e]||{})[t]=!0,this}},t.off=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){var n=i.indexOf(t);return-1!=n&&i.splice(n,1),this}},t.emitEvent=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){i=i.slice(0),t=t||[];for(var n=this._onceEvents&&this._onceEvents[e],r=0;r<i.length;r++){var s=i[r];n&&n[s]&&(this.off(e,s),delete n[s]),s.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e}),function(e,t){"use strict";"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter"],function(i){return t(e,i)}):"object"==typeof module&&module.exports?module.exports=t(e,require("ev-emitter")):e.imagesLoaded=t(e,e.EvEmitter)}("undefined"!=typeof window?window:this,function(e,t){function i(e,t){for(var i in t)e[i]=t[i];return e}function n(e,t,r){if(!(this instanceof n))return new n(e,t,r);var s=e;return"string"==typeof e&&(s=document.querySelectorAll(e)),s?(this.elements=function(e){return Array.isArray(e)?e:"object"==typeof e&&"number"==typeof e.length?l.call(e):[e]}(s),this.options=i({},this.options),"function"==typeof t?r=t:i(this.options,t),r&&this.on("always",r),this.getImages(),a&&(this.jqDeferred=new a.Deferred),void setTimeout(this.check.bind(this))):void o.error("Bad element for imagesLoaded "+(s||e))}function r(e){this.img=e}function s(e,t){this.url=e,this.element=t,this.img=new Image}var a=e.jQuery,o=e.console,l=Array.prototype.slice;n.prototype=Object.create(t.prototype),n.prototype.options={},n.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},n.prototype.addElementImages=function(e){"IMG"==e.nodeName&&this.addImage(e),!0===this.options.background&&this.addElementBackgroundImages(e);var t=e.nodeType;if(t&&u[t]){for(var i=e.querySelectorAll("img"),n=0;n<i.length;n++){var r=i[n];this.addImage(r)}if("string"==typeof this.options.background){var s=e.querySelectorAll(this.options.background);for(n=0;n<s.length;n++){var a=s[n];this.addElementBackgroundImages(a)}}}};var u={1:!0,9:!0,11:!0};return n.prototype.addElementBackgroundImages=function(e){var t=getComputedStyle(e);if(t)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(t.backgroundImage);null!==n;){var r=n&&n[2];r&&this.addBackground(r,e),n=i.exec(t.backgroundImage)}},n.prototype.addImage=function(e){var t=new r(e);this.images.push(t)},n.prototype.addBackground=function(e,t){var i=new s(e,t);this.images.push(i)},n.prototype.check=function(){function e(e,i,n){setTimeout(function(){t.progress(e,i,n)})}var t=this;return this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?void this.images.forEach(function(t){t.once("progress",e),t.check()}):void this.complete()},n.prototype.progress=function(e,t,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emitEvent("progress",[this,e,t]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&o&&o.log("progress: "+i,e,t)},n.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(e,[this]),this.emitEvent("always",[this]),this.jqDeferred){var t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},r.prototype=Object.create(t.prototype),r.prototype.check=function(){return this.getIsImageComplete()?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),void(this.proxyImage.src=this.img.src))},r.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},r.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.img,t])},r.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},r.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},r.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},r.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype=Object.create(r.prototype),s.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},s.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.element,t])},n.makeJQueryPlugin=function(t){(t=t||e.jQuery)&&((a=t).fn.imagesLoaded=function(e,t){return new n(this,e,t).jqDeferred.promise(a(this))})},n.makeJQueryPlugin(),n}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Swiper=t()}(this,function(){"use strict";var e="undefined"==typeof document?{body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},location:{hash:""}}:document,t="undefined"==typeof window?{document:e,navigator:{userAgent:""},location:{},history:{},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){}}:window,i=function(e){for(var t=0;t<e.length;t+=1)this[t]=e[t];return this.length=e.length,this};function n(n,r){var s=[],a=0;if(n&&!r&&n instanceof i)return n;if(n)if("string"==typeof n){var o,l,u=n.trim();if(u.indexOf("<")>=0&&u.indexOf(">")>=0){var c="div";for(0===u.indexOf("<li")&&(c="ul"),0===u.indexOf("<tr")&&(c="tbody"),0!==u.indexOf("<td")&&0!==u.indexOf("<th")||(c="tr"),0===u.indexOf("<tbody")&&(c="table"),0===u.indexOf("<option")&&(c="select"),(l=e.createElement(c)).innerHTML=u,a=0;a<l.childNodes.length;a+=1)s.push(l.childNodes[a])}else for(o=r||"#"!==n[0]||n.match(/[ .<>:~]/)?(r||e).querySelectorAll(n.trim()):[e.getElementById(n.trim().split("#")[1])],a=0;a<o.length;a+=1)o[a]&&s.push(o[a])}else if(n.nodeType||n===t||n===e)s.push(n);else if(n.length>0&&n[0].nodeType)for(a=0;a<n.length;a+=1)s.push(n[a]);return new i(s)}function r(e){for(var t=[],i=0;i<e.length;i+=1)-1===t.indexOf(e[i])&&t.push(e[i]);return t}n.fn=i.prototype,n.Class=i,n.Dom7=i;var s={addClass:function(e){if(void 0===e)return this;for(var t=e.split(" "),i=0;i<t.length;i+=1)for(var n=0;n<this.length;n+=1)void 0!==this[n].classList&&this[n].classList.add(t[i]);return this},removeClass:function(e){for(var t=e.split(" "),i=0;i<t.length;i+=1)for(var n=0;n<this.length;n+=1)void 0!==this[n].classList&&this[n].classList.remove(t[i]);return this},hasClass:function(e){return!!this[0]&&this[0].classList.contains(e)},toggleClass:function(e){for(var t=e.split(" "),i=0;i<t.length;i+=1)for(var n=0;n<this.length;n+=1)void 0!==this[n].classList&&this[n].classList.toggle(t[i]);return this},attr:function(e,t){var i=arguments;if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var n=0;n<this.length;n+=1)if(2===i.length)this[n].setAttribute(e,t);else for(var r in e)this[n][r]=e[r],this[n].setAttribute(r,e[r]);return this},removeAttr:function(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this},data:function(e,t){var i;if(void 0!==t){for(var n=0;n<this.length;n+=1)(i=this[n]).dom7ElementDataStorage||(i.dom7ElementDataStorage={}),i.dom7ElementDataStorage[e]=t;return this}if(i=this[0])return i.dom7ElementDataStorage&&e in i.dom7ElementDataStorage?i.dom7ElementDataStorage[e]:i.getAttribute("data-"+e)||void 0},transform:function(e){for(var t=0;t<this.length;t+=1){var i=this[t].style;i.webkitTransform=e,i.transform=e}return this},transition:function(e){"string"!=typeof e&&(e+="ms");for(var t=0;t<this.length;t+=1){var i=this[t].style;i.webkitTransitionDuration=e,i.transitionDuration=e}return this},on:function(){for(var e,t=[],i=arguments.length;i--;)t[i]=arguments[i];var r=t[0],s=t[1],a=t[2],o=t[3];function l(e){var t=e.target;if(t){var i=e.target.dom7EventData||[];if(i.indexOf(e)<0&&i.unshift(e),n(t).is(s))a.apply(t,i);else for(var r=n(t).parents(),o=0;o<r.length;o+=1)n(r[o]).is(s)&&a.apply(r[o],i)}}function u(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),a.apply(this,t)}"function"==typeof t[1]&&(r=(e=t)[0],a=e[1],o=e[2],s=void 0),o||(o=!1);for(var c,d=r.split(" "),h=0;h<this.length;h+=1){var p=this[h];if(s)for(c=0;c<d.length;c+=1){var f=d[c];p.dom7LiveListeners||(p.dom7LiveListeners={}),p.dom7LiveListeners[f]||(p.dom7LiveListeners[f]=[]),p.dom7LiveListeners[f].push({listener:a,proxyListener:l}),p.addEventListener(f,l,o)}else for(c=0;c<d.length;c+=1){var m=d[c];p.dom7Listeners||(p.dom7Listeners={}),p.dom7Listeners[m]||(p.dom7Listeners[m]=[]),p.dom7Listeners[m].push({listener:a,proxyListener:u}),p.addEventListener(m,u,o)}}return this},off:function(){for(var e,t=[],i=arguments.length;i--;)t[i]=arguments[i];var n=t[0],r=t[1],s=t[2],a=t[3];"function"==typeof t[1]&&(n=(e=t)[0],s=e[1],a=e[2],r=void 0),a||(a=!1);for(var o=n.split(" "),l=0;l<o.length;l+=1)for(var u=o[l],c=0;c<this.length;c+=1){var d=this[c],h=void 0;!r&&d.dom7Listeners?h=d.dom7Listeners[u]:r&&d.dom7LiveListeners&&(h=d.dom7LiveListeners[u]);for(var p=h.length-1;p>=0;p-=1){var f=h[p];s&&f.listener===s?(d.removeEventListener(u,f.proxyListener,a),h.splice(p,1)):s||(d.removeEventListener(u,f.proxyListener,a),h.splice(p,1))}}return this},trigger:function(){for(var i=[],n=arguments.length;n--;)i[n]=arguments[n];for(var r=i[0].split(" "),s=i[1],a=0;a<r.length;a+=1)for(var o=r[a],l=0;l<this.length;l+=1){var u=this[l],c=void 0;try{c=new t.CustomEvent(o,{detail:s,bubbles:!0,cancelable:!0})}catch(t){(c=e.createEvent("Event")).initEvent(o,!0,!0),c.detail=s}u.dom7EventData=i.filter(function(e,t){return t>0}),u.dispatchEvent(c),u.dom7EventData=[],delete u.dom7EventData}return this},transitionEnd:function(e){var t,i=["webkitTransitionEnd","transitionend"],n=this;function r(s){if(s.target===this)for(e.call(this,s),t=0;t<i.length;t+=1)n.off(i[t],r)}if(e)for(t=0;t<i.length;t+=1)n.on(i[t],r);return this},outerWidth:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},offset:function(){if(this.length>0){var i=this[0],n=i.getBoundingClientRect(),r=e.body,s=i.clientTop||r.clientTop||0,a=i.clientLeft||r.clientLeft||0,o=i===t?t.scrollY:i.scrollTop,l=i===t?t.scrollX:i.scrollLeft;return{top:n.top+o-s,left:n.left+l-a}}return null},css:function(e,i){var n;if(1===arguments.length){if("string"!=typeof e){for(n=0;n<this.length;n+=1)for(var r in e)this[n].style[r]=e[r];return this}if(this[0])return t.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(n=0;n<this.length;n+=1)this[n].style[e]=i;return this}return this},each:function(e){if(!e)return this;for(var t=0;t<this.length;t+=1)if(!1===e.call(this[t],t,this[t]))return this;return this},html:function(e){if(void 0===e)return this[0]?this[0].innerHTML:void 0;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this},text:function(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this},is:function(r){var s,a,o=this[0];if(!o||void 0===r)return!1;if("string"==typeof r){if(o.matches)return o.matches(r);if(o.webkitMatchesSelector)return o.webkitMatchesSelector(r);if(o.msMatchesSelector)return o.msMatchesSelector(r);for(s=n(r),a=0;a<s.length;a+=1)if(s[a]===o)return!0;return!1}if(r===e)return o===e;if(r===t)return o===t;if(r.nodeType||r instanceof i){for(s=r.nodeType?[r]:r,a=0;a<s.length;a+=1)if(s[a]===o)return!0;return!1}return!1},index:function(){var e,t=this[0];if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}},eq:function(e){if(void 0===e)return this;var t,n=this.length;return new i(e>n-1?[]:e<0?(t=n+e)<0?[]:[this[t]]:[this[e]])},append:function(){for(var t,n=[],r=arguments.length;r--;)n[r]=arguments[r];for(var s=0;s<n.length;s+=1){t=n[s];for(var a=0;a<this.length;a+=1)if("string"==typeof t){var o=e.createElement("div");for(o.innerHTML=t;o.firstChild;)this[a].appendChild(o.firstChild)}else if(t instanceof i)for(var l=0;l<t.length;l+=1)this[a].appendChild(t[l]);else this[a].appendChild(t)}return this},prepend:function(t){var n,r;for(n=0;n<this.length;n+=1)if("string"==typeof t){var s=e.createElement("div");for(s.innerHTML=t,r=s.childNodes.length-1;r>=0;r-=1)this[n].insertBefore(s.childNodes[r],this[n].childNodes[0])}else if(t instanceof i)for(r=0;r<t.length;r+=1)this[n].insertBefore(t[r],this[n].childNodes[0]);else this[n].insertBefore(t,this[n].childNodes[0]);return this},next:function(e){return this.length>0?e?this[0].nextElementSibling&&n(this[0].nextElementSibling).is(e)?new i([this[0].nextElementSibling]):new i([]):this[0].nextElementSibling?new i([this[0].nextElementSibling]):new i([]):new i([])},nextAll:function(e){var t=[],r=this[0];if(!r)return new i([]);for(;r.nextElementSibling;){var s=r.nextElementSibling;e?n(s).is(e)&&t.push(s):t.push(s),r=s}return new i(t)},prev:function(e){if(this.length>0){var t=this[0];return e?t.previousElementSibling&&n(t.previousElementSibling).is(e)?new i([t.previousElementSibling]):new i([]):t.previousElementSibling?new i([t.previousElementSibling]):new i([])}return new i([])},prevAll:function(e){var t=[],r=this[0];if(!r)return new i([]);for(;r.previousElementSibling;){var s=r.previousElementSibling;e?n(s).is(e)&&t.push(s):t.push(s),r=s}return new i(t)},parent:function(e){for(var t=[],i=0;i<this.length;i+=1)null!==this[i].parentNode&&(e?n(this[i].parentNode).is(e)&&t.push(this[i].parentNode):t.push(this[i].parentNode));return n(r(t))},parents:function(e){for(var t=[],i=0;i<this.length;i+=1)for(var s=this[i].parentNode;s;)e?n(s).is(e)&&t.push(s):t.push(s),s=s.parentNode;return n(r(t))},closest:function(e){var t=this;return void 0===e?new i([]):(t.is(e)||(t=t.parents(e).eq(0)),t)},find:function(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(e),s=0;s<r.length;s+=1)t.push(r[s]);return new i(t)},children:function(e){for(var t=[],s=0;s<this.length;s+=1)for(var a=this[s].childNodes,o=0;o<a.length;o+=1)e?1===a[o].nodeType&&n(a[o]).is(e)&&t.push(a[o]):1===a[o].nodeType&&t.push(a[o]);return new i(r(t))},remove:function(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this},add:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var i,r;for(i=0;i<e.length;i+=1){var s=n(e[i]);for(r=0;r<s.length;r+=1)this[this.length]=s[r],this.length+=1}return this},styles:function(){return this[0]?t.getComputedStyle(this[0],null):{}}};Object.keys(s).forEach(function(e){n.fn[e]=s[e]});var a,o,l,u={deleteProps:function(e){var t=e;Object.keys(t).forEach(function(e){try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}})},nextTick:function(e,t){return void 0===t&&(t=0),setTimeout(e,t)},now:function(){return Date.now()},getTranslate:function(e,i){var n,r,s;void 0===i&&(i="x");var a=t.getComputedStyle(e,null);return t.WebKitCSSMatrix?((r=a.transform||a.webkitTransform).split(",").length>6&&(r=r.split(", ").map(function(e){return e.replace(",",".")}).join(", ")),s=new t.WebKitCSSMatrix("none"===r?"":r)):n=(s=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===i&&(r=t.WebKitCSSMatrix?s.m41:16===n.length?parseFloat(n[12]):parseFloat(n[4])),"y"===i&&(r=t.WebKitCSSMatrix?s.m42:16===n.length?parseFloat(n[13]):parseFloat(n[5])),r||0},parseUrlQuery:function(e){var i,n,r,s,a={},o=e||t.location.href;if("string"==typeof o&&o.length)for(s=(n=(o=o.indexOf("?")>-1?o.replace(/\S*\?/,""):"").split("&").filter(function(e){return""!==e})).length,i=0;i<s;i+=1)r=n[i].replace(/#\S+/g,"").split("="),a[decodeURIComponent(r[0])]=void 0===r[1]?void 0:decodeURIComponent(r[1])||"";return a},isObject:function(e){return"object"==typeof e&&null!==e&&e.constructor&&e.constructor===Object},extend:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var i=Object(e[0]),n=1;n<e.length;n+=1){var r=e[n];if(null!=r)for(var s=Object.keys(Object(r)),a=0,o=s.length;a<o;a+=1){var l=s[a],c=Object.getOwnPropertyDescriptor(r,l);void 0!==c&&c.enumerable&&(u.isObject(i[l])&&u.isObject(r[l])?u.extend(i[l],r[l]):!u.isObject(i[l])&&u.isObject(r[l])?(i[l]={},u.extend(i[l],r[l])):i[l]=r[l])}}return i}},c=(l=e.createElement("div"),{touch:t.Modernizr&&!0===t.Modernizr.touch||!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch),pointerEvents:!(!t.navigator.pointerEnabled&&!t.PointerEvent),prefixedPointerEvents:!!t.navigator.msPointerEnabled,transition:(o=l.style,"transition"in o||"webkitTransition"in o||"MozTransition"in o),transforms3d:t.Modernizr&&!0===t.Modernizr.csstransforms3d||(a=l.style,"webkitPerspective"in a||"MozPerspective"in a||"OPerspective"in a||"MsPerspective"in a||"perspective"in a),flexbox:function(){for(var e=l.style,t="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "),i=0;i<t.length;i+=1)if(t[i]in e)return!0;return!1}(),observer:"MutationObserver"in t||"WebkitMutationObserver"in t,passiveListener:function(){var e=!1;try{var i=Object.defineProperty({},"passive",{get:function(){e=!0}});t.addEventListener("testPassiveListener",null,i)}catch(e){}return e}(),gestures:"ongesturestart"in t}),d=function(e){void 0===e&&(e={});var t=this;t.params=e,t.eventsListeners={},t.params&&t.params.on&&Object.keys(t.params.on).forEach(function(e){t.on(e,t.params.on[e])})},h={components:{configurable:!0}};d.prototype.on=function(e,t,i){var n=this;if("function"!=typeof t)return n;var r=i?"unshift":"push";return e.split(" ").forEach(function(e){n.eventsListeners[e]||(n.eventsListeners[e]=[]),n.eventsListeners[e][r](t)}),n},d.prototype.once=function(e,t,i){var n=this;return"function"!=typeof t?n:n.on(e,function i(){for(var r=[],s=arguments.length;s--;)r[s]=arguments[s];t.apply(n,r),n.off(e,i)},i)},d.prototype.off=function(e,t){var i=this;return i.eventsListeners?(e.split(" ").forEach(function(e){void 0===t?i.eventsListeners[e]=[]:i.eventsListeners[e].forEach(function(n,r){n===t&&i.eventsListeners[e].splice(r,1)})}),i):i},d.prototype.emit=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var i,n,r,s=this;return s.eventsListeners?("string"==typeof e[0]||Array.isArray(e[0])?(i=e[0],n=e.slice(1,e.length),r=s):(i=e[0].events,n=e[0].data,r=e[0].context||s),(Array.isArray(i)?i:i.split(" ")).forEach(function(e){if(s.eventsListeners&&s.eventsListeners[e]){var t=[];s.eventsListeners[e].forEach(function(e){t.push(e)}),t.forEach(function(e){e.apply(r,n)})}}),s):s},d.prototype.useModulesParams=function(e){var t=this;t.modules&&Object.keys(t.modules).forEach(function(i){var n=t.modules[i];n.params&&u.extend(e,n.params)})},d.prototype.useModules=function(e){void 0===e&&(e={});var t=this;t.modules&&Object.keys(t.modules).forEach(function(i){var n=t.modules[i],r=e[i]||{};n.instance&&Object.keys(n.instance).forEach(function(e){var i=n.instance[e];t[e]="function"==typeof i?i.bind(t):i}),n.on&&t.on&&Object.keys(n.on).forEach(function(e){t.on(e,n.on[e])}),n.create&&n.create.bind(t)(r)})},h.components.set=function(e){this.use&&this.use(e)},d.installModule=function(e){for(var t=[],i=arguments.length-1;i-- >0;)t[i]=arguments[i+1];var n=this;n.prototype.modules||(n.prototype.modules={});var r=e.name||Object.keys(n.prototype.modules).length+"_"+u.now();return n.prototype.modules[r]=e,e.proto&&Object.keys(e.proto).forEach(function(t){n.prototype[t]=e.proto[t]}),e.static&&Object.keys(e.static).forEach(function(t){n[t]=e.static[t]}),e.install&&e.install.apply(n,t),n},d.use=function(e){for(var t=[],i=arguments.length-1;i-- >0;)t[i]=arguments[i+1];var n=this;return Array.isArray(e)?(e.forEach(function(e){return n.installModule(e)}),n):n.installModule.apply(n,[e].concat(t))},Object.defineProperties(d,h);var p={updateSize:function(){var e,t,i=this.$el;e=void 0!==this.params.width?this.params.width:i[0].clientWidth,t=void 0!==this.params.height?this.params.height:i[0].clientHeight,0===e&&this.isHorizontal()||0===t&&this.isVertical()||(e=e-parseInt(i.css("padding-left"),10)-parseInt(i.css("padding-right"),10),t=t-parseInt(i.css("padding-top"),10)-parseInt(i.css("padding-bottom"),10),u.extend(this,{width:e,height:t,size:this.isHorizontal()?e:t}))},updateSlides:function(){var e=this.params,i=this.$wrapperEl,n=this.size,r=this.rtlTranslate,s=this.wrongRTL,a=i.children("."+this.params.slideClass),o=this.virtual&&e.virtual.enabled?this.virtual.slides.length:a.length,l=[],d=[],h=[],p=e.slidesOffsetBefore;"function"==typeof p&&(p=e.slidesOffsetBefore.call(this));var f=e.slidesOffsetAfter;"function"==typeof f&&(f=e.slidesOffsetAfter.call(this));var m=o,g=this.snapGrid.length,v=this.snapGrid.length,y=e.spaceBetween,b=-p,w=0,T=0;if(void 0!==n){var _,x;"string"==typeof y&&y.indexOf("%")>=0&&(y=parseFloat(y.replace("%",""))/100*n),this.virtualSize=-y,r?a.css({marginLeft:"",marginTop:""}):a.css({marginRight:"",marginBottom:""}),e.slidesPerColumn>1&&(_=Math.floor(o/e.slidesPerColumn)===o/this.params.slidesPerColumn?o:Math.ceil(o/e.slidesPerColumn)*e.slidesPerColumn,"auto"!==e.slidesPerView&&"row"===e.slidesPerColumnFill&&(_=Math.max(_,e.slidesPerView*e.slidesPerColumn)));for(var C,S=e.slidesPerColumn,E=_/S,P=E-(e.slidesPerColumn*E-o),I=0;I<o;I+=1){x=0;var k=a.eq(I);if(e.slidesPerColumn>1){var j=void 0,D=void 0,A=void 0;"column"===e.slidesPerColumnFill?(A=I-(D=Math.floor(I/S))*S,(D>P||D===P&&A===S-1)&&(A+=1)>=S&&(A=0,D+=1),j=D+A*_/S,k.css({"-webkit-box-ordinal-group":j,"-moz-box-ordinal-group":j,"-ms-flex-order":j,"-webkit-order":j,order:j})):D=I-(A=Math.floor(I/E))*E,k.css("margin-"+(this.isHorizontal()?"top":"left"),0!==A&&e.spaceBetween&&e.spaceBetween+"px").attr("data-swiper-column",D).attr("data-swiper-row",A)}if("none"!==k.css("display")){if("auto"===e.slidesPerView){var Y=t.getComputedStyle(k[0],null),M=k[0].style.transform;M&&(k[0].style.transform="none"),x=this.isHorizontal()?k[0].getBoundingClientRect().width+parseFloat(Y.getPropertyValue("margin-left"))+parseFloat(Y.getPropertyValue("margin-right")):k[0].getBoundingClientRect().height+parseFloat(Y.getPropertyValue("margin-top"))+parseFloat(Y.getPropertyValue("margin-bottom")),M&&(k[0].style.transform=M),e.roundLengths&&(x=Math.floor(x))}else x=(n-(e.slidesPerView-1)*y)/e.slidesPerView,e.roundLengths&&(x=Math.floor(x)),a[I]&&(this.isHorizontal()?a[I].style.width=x+"px":a[I].style.height=x+"px");a[I]&&(a[I].swiperSlideSize=x),h.push(x),e.centeredSlides?(b=b+x/2+w/2+y,0===w&&0!==I&&(b=b-n/2-y),0===I&&(b=b-n/2-y),Math.abs(b)<.001&&(b=0),T%e.slidesPerGroup==0&&l.push(b),d.push(b)):(T%e.slidesPerGroup==0&&l.push(b),d.push(b),b=b+x+y),this.virtualSize+=x+y,w=x,T+=1}}if(this.virtualSize=Math.max(this.virtualSize,n)+f,r&&s&&("slide"===e.effect||"coverflow"===e.effect)&&i.css({width:this.virtualSize+e.spaceBetween+"px"}),c.flexbox&&!e.setWrapperSize||(this.isHorizontal()?i.css({width:this.virtualSize+e.spaceBetween+"px"}):i.css({height:this.virtualSize+e.spaceBetween+"px"})),e.slidesPerColumn>1&&(this.virtualSize=(x+e.spaceBetween)*_,this.virtualSize=Math.ceil(this.virtualSize/e.slidesPerColumn)-e.spaceBetween,this.isHorizontal()?i.css({width:this.virtualSize+e.spaceBetween+"px"}):i.css({height:this.virtualSize+e.spaceBetween+"px"}),e.centeredSlides)){C=[];for(var O=0;O<l.length;O+=1)l[O]<this.virtualSize+l[0]&&C.push(l[O]);l=C}if(!e.centeredSlides){C=[];for(var z=0;z<l.length;z+=1)l[z]<=this.virtualSize-n&&C.push(l[z]);l=C,Math.floor(this.virtualSize-n)-Math.floor(l[l.length-1])>1&&l.push(this.virtualSize-n)}0===l.length&&(l=[0]),0!==e.spaceBetween&&(this.isHorizontal()?r?a.css({marginLeft:y+"px"}):a.css({marginRight:y+"px"}):a.css({marginBottom:y+"px"})),u.extend(this,{slides:a,snapGrid:l,slidesGrid:d,slidesSizesGrid:h}),o!==m&&this.emit("slidesLengthChange"),l.length!==g&&(this.params.watchOverflow&&this.checkOverflow(),this.emit("snapGridLengthChange")),d.length!==v&&this.emit("slidesGridLengthChange"),(e.watchSlidesProgress||e.watchSlidesVisibility)&&this.updateSlidesOffset()}},updateAutoHeight:function(e){var t,i=[],n=0;if("number"==typeof e?this.setTransition(e):!0===e&&this.setTransition(this.params.speed),"auto"!==this.params.slidesPerView&&this.params.slidesPerView>1)for(t=0;t<Math.ceil(this.params.slidesPerView);t+=1){var r=this.activeIndex+t;if(r>this.slides.length)break;i.push(this.slides.eq(r)[0])}else i.push(this.slides.eq(this.activeIndex)[0]);for(t=0;t<i.length;t+=1)if(void 0!==i[t]){var s=i[t].offsetHeight;n=s>n?s:n}n&&this.$wrapperEl.css("height",n+"px")},updateSlidesOffset:function(){for(var e=this.slides,t=0;t<e.length;t+=1)e[t].swiperSlideOffset=this.isHorizontal()?e[t].offsetLeft:e[t].offsetTop},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);var t=this.params,i=this.slides,n=this.rtlTranslate;if(0!==i.length){void 0===i[0].swiperSlideOffset&&this.updateSlidesOffset();var r=-e;n&&(r=e),i.removeClass(t.slideVisibleClass);for(var s=0;s<i.length;s+=1){var a=i[s],o=(r+(t.centeredSlides?this.minTranslate():0)-a.swiperSlideOffset)/(a.swiperSlideSize+t.spaceBetween);if(t.watchSlidesVisibility){var l=-(r-a.swiperSlideOffset),u=l+this.slidesSizesGrid[s];(l>=0&&l<this.size||u>0&&u<=this.size||l<=0&&u>=this.size)&&i.eq(s).addClass(t.slideVisibleClass)}a.progress=n?-o:o}}},updateProgress:function(e){void 0===e&&(e=this&&this.translate||0);var t=this.params,i=this.maxTranslate()-this.minTranslate(),n=this.progress,r=this.isBeginning,s=this.isEnd,a=r,o=s;0===i?(n=0,r=!0,s=!0):(r=(n=(e-this.minTranslate())/i)<=0,s=n>=1),u.extend(this,{progress:n,isBeginning:r,isEnd:s}),(t.watchSlidesProgress||t.watchSlidesVisibility)&&this.updateSlidesProgress(e),r&&!a&&this.emit("reachBeginning toEdge"),s&&!o&&this.emit("reachEnd toEdge"),(a&&!r||o&&!s)&&this.emit("fromEdge"),this.emit("progress",n)},updateSlidesClasses:function(){var e,t=this.slides,i=this.params,n=this.$wrapperEl,r=this.activeIndex,s=this.realIndex,a=this.virtual&&i.virtual.enabled;t.removeClass(i.slideActiveClass+" "+i.slideNextClass+" "+i.slidePrevClass+" "+i.slideDuplicateActiveClass+" "+i.slideDuplicateNextClass+" "+i.slideDuplicatePrevClass),(e=a?this.$wrapperEl.find("."+i.slideClass+'[data-swiper-slide-index="'+r+'"]'):t.eq(r)).addClass(i.slideActiveClass),i.loop&&(e.hasClass(i.slideDuplicateClass)?n.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+s+'"]').addClass(i.slideDuplicateActiveClass):n.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+s+'"]').addClass(i.slideDuplicateActiveClass));var o=e.nextAll("."+i.slideClass).eq(0).addClass(i.slideNextClass);i.loop&&0===o.length&&(o=t.eq(0)).addClass(i.slideNextClass);var l=e.prevAll("."+i.slideClass).eq(0).addClass(i.slidePrevClass);i.loop&&0===l.length&&(l=t.eq(-1)).addClass(i.slidePrevClass),i.loop&&(o.hasClass(i.slideDuplicateClass)?n.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+o.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicateNextClass):n.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+o.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicateNextClass),l.hasClass(i.slideDuplicateClass)?n.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicatePrevClass):n.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicatePrevClass))},updateActiveIndex:function(e){var t,i=this.rtlTranslate?this.translate:-this.translate,n=this.slidesGrid,r=this.snapGrid,s=this.params,a=this.activeIndex,o=this.realIndex,l=this.snapIndex,c=e;if(void 0===c){for(var d=0;d<n.length;d+=1)void 0!==n[d+1]?i>=n[d]&&i<n[d+1]-(n[d+1]-n[d])/2?c=d:i>=n[d]&&i<n[d+1]&&(c=d+1):i>=n[d]&&(c=d);s.normalizeSlideIndex&&(c<0||void 0===c)&&(c=0)}if((t=r.indexOf(i)>=0?r.indexOf(i):Math.floor(c/s.slidesPerGroup))>=r.length&&(t=r.length-1),c!==a){var h=parseInt(this.slides.eq(c).attr("data-swiper-slide-index")||c,10);u.extend(this,{snapIndex:t,realIndex:h,previousIndex:a,activeIndex:c}),this.emit("activeIndexChange"),this.emit("snapIndexChange"),o!==h&&this.emit("realIndexChange"),this.emit("slideChange")}else t!==l&&(this.snapIndex=t,this.emit("snapIndexChange"))},updateClickedSlide:function(e){var t=this.params,i=n(e.target).closest("."+t.slideClass)[0],r=!1;if(i)for(var s=0;s<this.slides.length;s+=1)this.slides[s]===i&&(r=!0);if(!i||!r)return this.clickedSlide=void 0,void(this.clickedIndex=void 0);this.clickedSlide=i,this.virtual&&this.params.virtual.enabled?this.clickedIndex=parseInt(n(i).attr("data-swiper-slide-index"),10):this.clickedIndex=n(i).index(),t.slideToClickedSlide&&void 0!==this.clickedIndex&&this.clickedIndex!==this.activeIndex&&this.slideToClickedSlide()}},f={getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");var t=this.params,i=this.rtlTranslate,n=this.translate,r=this.$wrapperEl;if(t.virtualTranslate)return i?-n:n;var s=u.getTranslate(r[0],e);return i&&(s=-s),s||0},setTranslate:function(e,t){var i=this.rtlTranslate,n=this.params,r=this.$wrapperEl,s=this.progress,a=0,o=0;this.isHorizontal()?a=i?-e:e:o=e,n.roundLengths&&(a=Math.floor(a),o=Math.floor(o)),n.virtualTranslate||(c.transforms3d?r.transform("translate3d("+a+"px, "+o+"px, 0px)"):r.transform("translate("+a+"px, "+o+"px)")),this.translate=this.isHorizontal()?a:o;var l=this.maxTranslate()-this.minTranslate();(0===l?0:(e-this.minTranslate())/l)!==s&&this.updateProgress(e),this.emit("setTranslate",this.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]}},m={slideTo:function(e,t,i,n){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===i&&(i=!0);var r=this,s=e;s<0&&(s=0);var a=r.params,o=r.snapGrid,l=r.slidesGrid,u=r.previousIndex,d=r.activeIndex,h=r.rtlTranslate;if(r.animating&&a.preventIntercationOnTransition)return!1;var p=Math.floor(s/a.slidesPerGroup);p>=o.length&&(p=o.length-1),(d||a.initialSlide||0)===(u||0)&&i&&r.emit("beforeSlideChangeStart");var f,m=-o[p];if(r.updateProgress(m),a.normalizeSlideIndex)for(var g=0;g<l.length;g+=1)-Math.floor(100*m)>=Math.floor(100*l[g])&&(s=g);if(r.initialized&&s!==d){if(!r.allowSlideNext&&m<r.translate&&m<r.minTranslate())return!1;if(!r.allowSlidePrev&&m>r.translate&&m>r.maxTranslate()&&(d||0)!==s)return!1}return f=s>d?"next":s<d?"prev":"reset",h&&-m===r.translate||!h&&m===r.translate?(r.updateActiveIndex(s),a.autoHeight&&r.updateAutoHeight(),r.updateSlidesClasses(),"slide"!==a.effect&&r.setTranslate(m),"reset"!==f&&(r.transitionStart(i,f),r.transitionEnd(i,f)),!1):(0!==t&&c.transition?(r.setTransition(t),r.setTranslate(m),r.updateActiveIndex(s),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,n),r.transitionStart(i,f),r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(e){r&&!r.destroyed&&e.target===this&&(r.$wrapperEl[0].removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].removeEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd),r.transitionEnd(i,f))}),r.$wrapperEl[0].addEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].addEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd))):(r.setTransition(0),r.setTranslate(m),r.updateActiveIndex(s),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,n),r.transitionStart(i,f),r.transitionEnd(i,f)),!0)},slideToLoop:function(e,t,i,n){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===i&&(i=!0);var r=e;return this.params.loop&&(r+=this.loopedSlides),this.slideTo(r,t,i,n)},slideNext:function(e,t,i){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var n=this.params,r=this.animating;return n.loop?!r&&(this.loopFix(),this._clientLeft=this.$wrapperEl[0].clientLeft,this.slideTo(this.activeIndex+n.slidesPerGroup,e,t,i)):this.slideTo(this.activeIndex+n.slidesPerGroup,e,t,i)},slidePrev:function(e,t,i){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var n=this.params,r=this.animating,s=this.snapGrid,a=this.slidesGrid,o=this.rtlTranslate;if(n.loop){if(r)return!1;this.loopFix(),this._clientLeft=this.$wrapperEl[0].clientLeft}var l,u=o?this.translate:-this.translate,c=(s[s.indexOf(u)],s[s.indexOf(u)-1]);return c&&(l=a.indexOf(c))<0&&(l=this.activeIndex-1),this.slideTo(l,e,t,i)},slideReset:function(e,t,i){return void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),this.slideTo(this.activeIndex,e,t,i)},slideToClosest:function(e,t,i){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var n=this.activeIndex,r=Math.floor(n/this.params.slidesPerGroup);if(r<this.snapGrid.length-1){var s=this.rtlTranslate?this.translate:-this.translate,a=this.snapGrid[r];s-a>(this.snapGrid[r+1]-a)/2&&(n=this.params.slidesPerGroup)}return this.slideTo(n,e,t,i)},slideToClickedSlide:function(){var e,t=this,i=t.params,r=t.$wrapperEl,s="auto"===i.slidesPerView?t.slidesPerViewDynamic():i.slidesPerView,a=t.clickedIndex;if(i.loop){if(t.animating)return;e=parseInt(n(t.clickedSlide).attr("data-swiper-slide-index"),10),i.centeredSlides?a<t.loopedSlides-s/2||a>t.slides.length-t.loopedSlides+s/2?(t.loopFix(),a=r.children("."+i.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+i.slideDuplicateClass+")").eq(0).index(),u.nextTick(function(){t.slideTo(a)})):t.slideTo(a):a>t.slides.length-s?(t.loopFix(),a=r.children("."+i.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+i.slideDuplicateClass+")").eq(0).index(),u.nextTick(function(){t.slideTo(a)})):t.slideTo(a)}else t.slideTo(a)}},g={loopCreate:function(){var t=this,i=t.params,r=t.$wrapperEl;r.children("."+i.slideClass+"."+i.slideDuplicateClass).remove();var s=r.children("."+i.slideClass);if(i.loopFillGroupWithBlank){var a=i.slidesPerGroup-s.length%i.slidesPerGroup;if(a!==i.slidesPerGroup){for(var o=0;o<a;o+=1){var l=n(e.createElement("div")).addClass(i.slideClass+" "+i.slideBlankClass);r.append(l)}s=r.children("."+i.slideClass)}}"auto"!==i.slidesPerView||i.loopedSlides||(i.loopedSlides=s.length),t.loopedSlides=parseInt(i.loopedSlides||i.slidesPerView,10),t.loopedSlides+=i.loopAdditionalSlides,t.loopedSlides>s.length&&(t.loopedSlides=s.length);var u=[],c=[];s.each(function(e,i){var r=n(i);e<t.loopedSlides&&c.push(i),e<s.length&&e>=s.length-t.loopedSlides&&u.push(i),r.attr("data-swiper-slide-index",e)});for(var d=0;d<c.length;d+=1)r.append(n(c[d].cloneNode(!0)).addClass(i.slideDuplicateClass));for(var h=u.length-1;h>=0;h-=1)r.prepend(n(u[h].cloneNode(!0)).addClass(i.slideDuplicateClass))},loopFix:function(){var e,t=this.params,i=this.activeIndex,n=this.slides,r=this.loopedSlides,s=this.allowSlidePrev,a=this.allowSlideNext,o=this.snapGrid,l=this.rtlTranslate;this.allowSlidePrev=!0,this.allowSlideNext=!0;var u=-o[i]-this.getTranslate();i<r?(e=n.length-3*r+i,e+=r,this.slideTo(e,0,!1,!0)&&0!==u&&this.setTranslate((l?-this.translate:this.translate)-u)):("auto"===t.slidesPerView&&i>=2*r||i>n.length-2*t.slidesPerView)&&(e=-n.length+i+r,e+=r,this.slideTo(e,0,!1,!0)&&0!==u&&this.setTranslate((l?-this.translate:this.translate)-u)),this.allowSlidePrev=s,this.allowSlideNext=a},loopDestroy:function(){var e=this.$wrapperEl,t=this.params,i=this.slides;e.children("."+t.slideClass+"."+t.slideDuplicateClass).remove(),i.removeAttr("data-swiper-slide-index")}},v={setGrabCursor:function(e){if(!(c.touch||!this.params.simulateTouch||this.params.watchOverflow&&this.isLocked)){var t=this.el;t.style.cursor="move",t.style.cursor=e?"-webkit-grabbing":"-webkit-grab",t.style.cursor=e?"-moz-grabbin":"-moz-grab",t.style.cursor=e?"grabbing":"grab"}},unsetGrabCursor:function(){c.touch||this.params.watchOverflow&&this.isLocked||(this.el.style.cursor="")}},y={appendSlide:function(e){var t=this.$wrapperEl,i=this.params;if(i.loop&&this.loopDestroy(),"object"==typeof e&&"length"in e)for(var n=0;n<e.length;n+=1)e[n]&&t.append(e[n]);else t.append(e);i.loop&&this.loopCreate(),i.observer&&c.observer||this.update()},prependSlide:function(e){var t=this.params,i=this.$wrapperEl,n=this.activeIndex;t.loop&&this.loopDestroy();var r=n+1;if("object"==typeof e&&"length"in e){for(var s=0;s<e.length;s+=1)e[s]&&i.prepend(e[s]);r=n+e.length}else i.prepend(e);t.loop&&this.loopCreate(),t.observer&&c.observer||this.update(),this.slideTo(r,0,!1)},removeSlide:function(e){var t=this.params,i=this.$wrapperEl,n=this.activeIndex;t.loop&&(this.loopDestroy(),this.slides=i.children("."+t.slideClass));var r,s=n;if("object"==typeof e&&"length"in e){for(var a=0;a<e.length;a+=1)r=e[a],this.slides[r]&&this.slides.eq(r).remove(),r<s&&(s-=1);s=Math.max(s,0)}else r=e,this.slides[r]&&this.slides.eq(r).remove(),r<s&&(s-=1),s=Math.max(s,0);t.loop&&this.loopCreate(),t.observer&&c.observer||this.update(),t.loop?this.slideTo(s+this.loopedSlides,0,!1):this.slideTo(s,0,!1)},removeAllSlides:function(){for(var e=[],t=0;t<this.slides.length;t+=1)e.push(t);this.removeSlide(e)}},b=function(){var i=t.navigator.userAgent,n={ios:!1,android:!1,androidChrome:!1,desktop:!1,windows:!1,iphone:!1,ipod:!1,ipad:!1,cordova:t.cordova||t.phonegap,phonegap:t.cordova||t.phonegap},r=i.match(/(Windows Phone);?[\s\/]+([\d.]+)?/),s=i.match(/(Android);?[\s\/]+([\d.]+)?/),a=i.match(/(iPad).*OS\s([\d_]+)/),o=i.match(/(iPod)(.*OS\s([\d_]+))?/),l=!a&&i.match(/(iPhone\sOS|iOS)\s([\d_]+)/);if(r&&(n.os="windows",n.osVersion=r[2],n.windows=!0),s&&!r&&(n.os="android",n.osVersion=s[2],n.android=!0,n.androidChrome=i.toLowerCase().indexOf("chrome")>=0),(a||l||o)&&(n.os="ios",n.ios=!0),l&&!o&&(n.osVersion=l[2].replace(/_/g,"."),n.iphone=!0),a&&(n.osVersion=a[2].replace(/_/g,"."),n.ipad=!0),o&&(n.osVersion=o[3]?o[3].replace(/_/g,"."):null,n.iphone=!0),n.ios&&n.osVersion&&i.indexOf("Version/")>=0&&"10"===n.osVersion.split(".")[0]&&(n.osVersion=i.toLowerCase().split("version/")[1].split(" ")[0]),n.desktop=!(n.os||n.android||n.webView),n.webView=(l||a||o)&&i.match(/.*AppleWebKit(?!.*Safari)/i),n.os&&"ios"===n.os){var u=n.osVersion.split("."),c=e.querySelector('meta[name="viewport"]');n.minimalUi=!n.webView&&(o||l)&&(1*u[0]==7?1*u[1]>=1:1*u[0]>7)&&c&&c.getAttribute("content").indexOf("minimal-ui")>=0}return n.pixelRatio=t.devicePixelRatio||1,n}();function w(){var e=this.params,t=this.el;if(!t||0!==t.offsetWidth){e.breakpoints&&this.setBreakpoint();var i=this.allowSlideNext,n=this.allowSlidePrev,r=this.snapGrid;if(this.allowSlideNext=!0,this.allowSlidePrev=!0,this.updateSize(),this.updateSlides(),e.freeMode){var s=Math.min(Math.max(this.translate,this.maxTranslate()),this.minTranslate());this.setTranslate(s),this.updateActiveIndex(),this.updateSlidesClasses(),e.autoHeight&&this.updateAutoHeight()}else this.updateSlidesClasses(),("auto"===e.slidesPerView||e.slidesPerView>1)&&this.isEnd&&!this.params.centeredSlides?this.slideTo(this.slides.length-1,0,!1,!0):this.slideTo(this.activeIndex,0,!1,!0);this.allowSlidePrev=n,this.allowSlideNext=i,this.params.watchOverflow&&r!==this.snapGrid&&this.checkOverflow()}}var T={attachEvents:function(){var i=this.params,r=this.touchEvents,s=this.el,a=this.wrapperEl;this.onTouchStart=function(i){var r=this.touchEventsData,s=this.params,a=this.touches;if(!this.animating||!s.preventIntercationOnTransition){var o=i;if(o.originalEvent&&(o=o.originalEvent),r.isTouchEvent="touchstart"===o.type,(r.isTouchEvent||!("which"in o)||3!==o.which)&&(!r.isTouched||!r.isMoved))if(s.noSwiping&&n(o.target).closest(s.noSwipingSelector?s.noSwipingSelector:"."+s.noSwipingClass)[0])this.allowClick=!0;else if(!s.swipeHandler||n(o).closest(s.swipeHandler)[0]){a.currentX="touchstart"===o.type?o.targetTouches[0].pageX:o.pageX,a.currentY="touchstart"===o.type?o.targetTouches[0].pageY:o.pageY;var l=a.currentX,c=a.currentY;if(!(b.ios&&!b.cordova&&s.iOSEdgeSwipeDetection&&l<=s.iOSEdgeSwipeThreshold&&l>=t.screen.width-s.iOSEdgeSwipeThreshold)){if(u.extend(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=l,a.startY=c,r.touchStartTime=u.now(),this.allowClick=!0,this.updateSize(),this.swipeDirection=void 0,s.threshold>0&&(r.allowThresholdMove=!1),"touchstart"!==o.type){var d=!0;n(o.target).is(r.formElements)&&(d=!1),e.activeElement&&n(e.activeElement).is(r.formElements)&&e.activeElement!==o.target&&e.activeElement.blur(),d&&this.allowTouchMove&&o.preventDefault()}this.emit("touchStart",o)}}}}.bind(this),this.onTouchMove=function(t){var i=this.touchEventsData,r=this.params,s=this.touches,a=this.rtlTranslate,o=t;if(o.originalEvent&&(o=o.originalEvent),i.isTouched){if(!i.isTouchEvent||"mousemove"!==o.type){var l="touchmove"===o.type?o.targetTouches[0].pageX:o.pageX,c="touchmove"===o.type?o.targetTouches[0].pageY:o.pageY;if(o.preventedByNestedSwiper)return s.startX=l,void(s.startY=c);if(!this.allowTouchMove)return this.allowClick=!1,void(i.isTouched&&(u.extend(s,{startX:l,startY:c,currentX:l,currentY:c}),i.touchStartTime=u.now()));if(i.isTouchEvent&&r.touchReleaseOnEdges&&!r.loop)if(this.isVertical()){if(c<s.startY&&this.translate<=this.maxTranslate()||c>s.startY&&this.translate>=this.minTranslate())return i.isTouched=!1,void(i.isMoved=!1)}else if(l<s.startX&&this.translate<=this.maxTranslate()||l>s.startX&&this.translate>=this.minTranslate())return;if(i.isTouchEvent&&e.activeElement&&o.target===e.activeElement&&n(o.target).is(i.formElements))return i.isMoved=!0,void(this.allowClick=!1);if(i.allowTouchCallbacks&&this.emit("touchMove",o),!(o.targetTouches&&o.targetTouches.length>1)){s.currentX=l,s.currentY=c;var d,h=s.currentX-s.startX,p=s.currentY-s.startY;if(void 0===i.isScrolling&&(this.isHorizontal()&&s.currentY===s.startY||this.isVertical()&&s.currentX===s.startX?i.isScrolling=!1:h*h+p*p>=25&&(d=180*Math.atan2(Math.abs(p),Math.abs(h))/Math.PI,i.isScrolling=this.isHorizontal()?d>r.touchAngle:90-d>r.touchAngle)),i.isScrolling&&this.emit("touchMoveOpposite",o),"undefined"==typeof startMoving&&(s.currentX===s.startX&&s.currentY===s.startY||(i.startMoving=!0)),i.isScrolling)i.isTouched=!1;else if(i.startMoving){this.allowClick=!1,o.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&o.stopPropagation(),i.isMoved||(r.loop&&this.loopFix(),i.startTranslate=this.getTranslate(),this.setTransition(0),this.animating&&this.$wrapperEl.trigger("webkitTransitionEnd transitionend"),i.allowMomentumBounce=!1,!r.grabCursor||!0!==this.allowSlideNext&&!0!==this.allowSlidePrev||this.setGrabCursor(!0),this.emit("sliderFirstMove",o)),this.emit("sliderMove",o),i.isMoved=!0;var f=this.isHorizontal()?h:p;s.diff=f,f*=r.touchRatio,a&&(f=-f),this.swipeDirection=f>0?"prev":"next",i.currentTranslate=f+i.startTranslate;var m=!0,g=r.resistanceRatio;if(r.touchReleaseOnEdges&&(g=0),f>0&&i.currentTranslate>this.minTranslate()?(m=!1,r.resistance&&(i.currentTranslate=this.minTranslate()-1+Math.pow(-this.minTranslate()+i.startTranslate+f,g))):f<0&&i.currentTranslate<this.maxTranslate()&&(m=!1,r.resistance&&(i.currentTranslate=this.maxTranslate()+1-Math.pow(this.maxTranslate()-i.startTranslate-f,g))),m&&(o.preventedByNestedSwiper=!0),!this.allowSlideNext&&"next"===this.swipeDirection&&i.currentTranslate<i.startTranslate&&(i.currentTranslate=i.startTranslate),!this.allowSlidePrev&&"prev"===this.swipeDirection&&i.currentTranslate>i.startTranslate&&(i.currentTranslate=i.startTranslate),r.threshold>0){if(!(Math.abs(f)>r.threshold||i.allowThresholdMove))return void(i.currentTranslate=i.startTranslate);if(!i.allowThresholdMove)return i.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,i.currentTranslate=i.startTranslate,void(s.diff=this.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY)}r.followFinger&&((r.freeMode||r.watchSlidesProgress||r.watchSlidesVisibility)&&(this.updateActiveIndex(),this.updateSlidesClasses()),r.freeMode&&(0===i.velocities.length&&i.velocities.push({position:s[this.isHorizontal()?"startX":"startY"],time:i.touchStartTime}),i.velocities.push({position:s[this.isHorizontal()?"currentX":"currentY"],time:u.now()})),this.updateProgress(i.currentTranslate),this.setTranslate(i.currentTranslate))}}}}else i.startMoving&&i.isScrolling&&this.emit("touchMoveOpposite",o)}.bind(this),this.onTouchEnd=function(e){var t=this,i=t.touchEventsData,n=t.params,r=t.touches,s=t.rtlTranslate,a=t.$wrapperEl,o=t.slidesGrid,l=t.snapGrid,c=e;if(c.originalEvent&&(c=c.originalEvent),i.allowTouchCallbacks&&t.emit("touchEnd",c),i.allowTouchCallbacks=!1,!i.isTouched)return i.isMoved&&n.grabCursor&&t.setGrabCursor(!1),i.isMoved=!1,void(i.startMoving=!1);n.grabCursor&&i.isMoved&&i.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);var d,h=u.now(),p=h-i.touchStartTime;if(t.allowClick&&(t.updateClickedSlide(c),t.emit("tap",c),p<300&&h-i.lastClickTime>300&&(i.clickTimeout&&clearTimeout(i.clickTimeout),i.clickTimeout=u.nextTick(function(){t&&!t.destroyed&&t.emit("click",c)},300)),p<300&&h-i.lastClickTime<300&&(i.clickTimeout&&clearTimeout(i.clickTimeout),t.emit("doubleTap",c))),i.lastClickTime=u.now(),u.nextTick(function(){t.destroyed||(t.allowClick=!0)}),!i.isTouched||!i.isMoved||!t.swipeDirection||0===r.diff||i.currentTranslate===i.startTranslate)return i.isTouched=!1,i.isMoved=!1,void(i.startMoving=!1);if(i.isTouched=!1,i.isMoved=!1,i.startMoving=!1,d=n.followFinger?s?t.translate:-t.translate:-i.currentTranslate,n.freeMode){if(d<-t.minTranslate())return void t.slideTo(t.activeIndex);if(d>-t.maxTranslate())return void(t.slides.length<l.length?t.slideTo(l.length-1):t.slideTo(t.slides.length-1));if(n.freeModeMomentum){if(i.velocities.length>1){var f=i.velocities.pop(),m=i.velocities.pop(),g=f.position-m.position,v=f.time-m.time;t.velocity=g/v,t.velocity/=2,Math.abs(t.velocity)<n.freeModeMinimumVelocity&&(t.velocity=0),(v>150||u.now()-f.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=n.freeModeMomentumVelocityRatio,i.velocities.length=0;var y=1e3*n.freeModeMomentumRatio,b=t.velocity*y,w=t.translate+b;s&&(w=-w);var T,_,x=!1,C=20*Math.abs(t.velocity)*n.freeModeMomentumBounceRatio;if(w<t.maxTranslate())n.freeModeMomentumBounce?(w+t.maxTranslate()<-C&&(w=t.maxTranslate()-C),T=t.maxTranslate(),x=!0,i.allowMomentumBounce=!0):w=t.maxTranslate(),n.loop&&n.centeredSlides&&(_=!0);else if(w>t.minTranslate())n.freeModeMomentumBounce?(w-t.minTranslate()>C&&(w=t.minTranslate()+C),T=t.minTranslate(),x=!0,i.allowMomentumBounce=!0):w=t.minTranslate(),n.loop&&n.centeredSlides&&(_=!0);else if(n.freeModeSticky){for(var S,E=0;E<l.length;E+=1)if(l[E]>-w){S=E;break}w=-(w=Math.abs(l[S]-w)<Math.abs(l[S-1]-w)||"next"===t.swipeDirection?l[S]:l[S-1])}if(_&&t.once("transitionEnd",function(){t.loopFix()}),0!==t.velocity)y=s?Math.abs((-w-t.translate)/t.velocity):Math.abs((w-t.translate)/t.velocity);else if(n.freeModeSticky)return void t.slideToClosest();n.freeModeMomentumBounce&&x?(t.updateProgress(T),t.setTransition(y),t.setTranslate(w),t.transitionStart(!0,t.swipeDirection),t.animating=!0,a.transitionEnd(function(){t&&!t.destroyed&&i.allowMomentumBounce&&(t.emit("momentumBounce"),t.setTransition(n.speed),t.setTranslate(T),a.transitionEnd(function(){t&&!t.destroyed&&t.transitionEnd()}))})):t.velocity?(t.updateProgress(w),t.setTransition(y),t.setTranslate(w),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,a.transitionEnd(function(){t&&!t.destroyed&&t.transitionEnd()}))):t.updateProgress(w),t.updateActiveIndex(),t.updateSlidesClasses()}else if(n.freeModeSticky)return void t.slideToClosest();(!n.freeModeMomentum||p>=n.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}else{for(var P=0,I=t.slidesSizesGrid[0],k=0;k<o.length;k+=n.slidesPerGroup)void 0!==o[k+n.slidesPerGroup]?d>=o[k]&&d<o[k+n.slidesPerGroup]&&(P=k,I=o[k+n.slidesPerGroup]-o[k]):d>=o[k]&&(P=k,I=o[o.length-1]-o[o.length-2]);var j=(d-o[P])/I;if(p>n.longSwipesMs){if(!n.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(j>=n.longSwipesRatio?t.slideTo(P+n.slidesPerGroup):t.slideTo(P)),"prev"===t.swipeDirection&&(j>1-n.longSwipesRatio?t.slideTo(P+n.slidesPerGroup):t.slideTo(P))}else{if(!n.shortSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&t.slideTo(P+n.slidesPerGroup),"prev"===t.swipeDirection&&t.slideTo(P)}}}.bind(this),this.onClick=function(e){this.allowClick||(this.params.preventClicks&&e.preventDefault(),this.params.preventClicksPropagation&&this.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}.bind(this);var o="container"===i.touchEventsTarget?s:a,l=!!i.nested;if(c.touch||!c.pointerEvents&&!c.prefixedPointerEvents){if(c.touch){var d=!("touchstart"!==r.start||!c.passiveListener||!i.passiveListeners)&&{passive:!0,capture:!1};o.addEventListener(r.start,this.onTouchStart,d),o.addEventListener(r.move,this.onTouchMove,c.passiveListener?{passive:!1,capture:l}:l),o.addEventListener(r.end,this.onTouchEnd,d)}(i.simulateTouch&&!b.ios&&!b.android||i.simulateTouch&&!c.touch&&b.ios)&&(o.addEventListener("mousedown",this.onTouchStart,!1),e.addEventListener("mousemove",this.onTouchMove,l),e.addEventListener("mouseup",this.onTouchEnd,!1))}else o.addEventListener(r.start,this.onTouchStart,!1),e.addEventListener(r.move,this.onTouchMove,l),e.addEventListener(r.end,this.onTouchEnd,!1);(i.preventClicks||i.preventClicksPropagation)&&o.addEventListener("click",this.onClick,!0),this.on("resize observerUpdate",w,!0)},detachEvents:function(){var t=this.params,i=this.touchEvents,n=this.el,r=this.wrapperEl,s="container"===t.touchEventsTarget?n:r,a=!!t.nested;if(c.touch||!c.pointerEvents&&!c.prefixedPointerEvents){if(c.touch){var o=!("onTouchStart"!==i.start||!c.passiveListener||!t.passiveListeners)&&{passive:!0,capture:!1};s.removeEventListener(i.start,this.onTouchStart,o),s.removeEventListener(i.move,this.onTouchMove,a),s.removeEventListener(i.end,this.onTouchEnd,o)}(t.simulateTouch&&!b.ios&&!b.android||t.simulateTouch&&!c.touch&&b.ios)&&(s.removeEventListener("mousedown",this.onTouchStart,!1),e.removeEventListener("mousemove",this.onTouchMove,a),e.removeEventListener("mouseup",this.onTouchEnd,!1))}else s.removeEventListener(i.start,this.onTouchStart,!1),e.removeEventListener(i.move,this.onTouchMove,a),e.removeEventListener(i.end,this.onTouchEnd,!1);(t.preventClicks||t.preventClicksPropagation)&&s.removeEventListener("click",this.onClick,!0),this.off("resize observerUpdate",w)}},_={setBreakpoint:function(){var e=this.activeIndex,t=this.initialized,i=this.loopedSlides;void 0===i&&(i=0);var n=this.params,r=n.breakpoints;if(r&&(!r||0!==Object.keys(r).length)){var s=this.getBreakpoint(r);if(s&&this.currentBreakpoint!==s){var a=s in r?r[s]:this.originalParams,o=n.loop&&a.slidesPerView!==n.slidesPerView;u.extend(this.params,a),u.extend(this,{allowTouchMove:this.params.allowTouchMove,allowSlideNext:this.params.allowSlideNext,allowSlidePrev:this.params.allowSlidePrev}),this.currentBreakpoint=s,o&&t&&(this.loopDestroy(),this.loopCreate(),this.updateSlides(),this.slideTo(e-i+this.loopedSlides,0,!1)),this.emit("breakpoint",a)}}},getBreakpoint:function(e){if(e){var i=!1,n=[];Object.keys(e).forEach(function(e){n.push(e)}),n.sort(function(e,t){return parseInt(e,10)-parseInt(t,10)});for(var r=0;r<n.length;r+=1){var s=n[r];s>=t.innerWidth&&!i&&(i=s)}return i||"max"}}},x=function(){return{isIE:!!t.navigator.userAgent.match(/Trident/g)||!!t.navigator.userAgent.match(/MSIE/g),isSafari:(e=t.navigator.userAgent.toLowerCase(),e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)};var e}(),C={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,preventIntercationOnTransition:!1,iOSEdgeSwipeDetection:!1,iOSEdgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!0,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0},S={update:p,translate:f,transition:{setTransition:function(e,t){this.$wrapperEl.transition(e),this.emit("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);var i=this.activeIndex,n=this.params,r=this.previousIndex;n.autoHeight&&this.updateAutoHeight();var s=t;if(s||(s=i>r?"next":i<r?"prev":"reset"),this.emit("transitionStart"),e&&i!==r){if("reset"===s)return void this.emit("slideResetTransitionStart");this.emit("slideChangeTransitionStart"),"next"===s?this.emit("slideNextTransitionStart"):this.emit("slidePrevTransitionStart")}},transitionEnd:function(e,t){void 0===e&&(e=!0);var i=this.activeIndex,n=this.previousIndex;this.animating=!1,this.setTransition(0);var r=t;if(r||(r=i>n?"next":i<n?"prev":"reset"),this.emit("transitionEnd"),e&&i!==n){if("reset"===r)return void this.emit("slideResetTransitionEnd");this.emit("slideChangeTransitionEnd"),"next"===r?this.emit("slideNextTransitionEnd"):this.emit("slidePrevTransitionEnd")}}},slide:m,loop:g,grabCursor:v,manipulation:y,events:T,breakpoints:_,checkOverflow:{checkOverflow:function(){var e=this.isLocked;this.isLocked=1===this.snapGrid.length,this.allowSlideNext=!this.isLocked,this.allowSlidePrev=!this.isLocked,e!==this.isLocked&&this.emit(this.isLocked?"lock":"unlock"),e&&e!==this.isLocked&&(this.isEnd=!1,this.navigation.update())}},classes:{addClasses:function(){var e=this.classNames,t=this.params,i=this.rtl,n=this.$el,r=[];r.push(t.direction),t.freeMode&&r.push("free-mode"),c.flexbox||r.push("no-flexbox"),t.autoHeight&&r.push("autoheight"),i&&r.push("rtl"),t.slidesPerColumn>1&&r.push("multirow"),b.android&&r.push("android"),b.ios&&r.push("ios"),x.isIE&&(c.pointerEvents||c.prefixedPointerEvents)&&r.push("wp8-"+t.direction),r.forEach(function(i){e.push(t.containerModifierClass+i)}),n.addClass(e.join(" "))},removeClasses:function(){var e=this.$el,t=this.classNames;e.removeClass(t.join(" "))}},images:{loadImage:function(e,i,n,r,s,a){var o;function l(){a&&a()}e.complete&&s?l():i?((o=new t.Image).onload=l,o.onerror=l,r&&(o.sizes=r),n&&(o.srcset=n),i&&(o.src=i)):l()},preloadImages:function(){var e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(var i=0;i<e.imagesToLoad.length;i+=1){var n=e.imagesToLoad[i];e.loadImage(n,n.currentSrc||n.getAttribute("src"),n.srcset||n.getAttribute("srcset"),n.sizes||n.getAttribute("sizes"),!0,t)}}}},E={},P=function(e){function t(){for(var i,r,s,a=[],o=arguments.length;o--;)a[o]=arguments[o];1===a.length&&a[0].constructor&&a[0].constructor===Object?s=a[0]:(r=(i=a)[0],s=i[1]),s||(s={}),s=u.extend({},s),r&&!s.el&&(s.el=r),e.call(this,s),Object.keys(S).forEach(function(e){Object.keys(S[e]).forEach(function(i){t.prototype[i]||(t.prototype[i]=S[e][i])})});var l=this;void 0===l.modules&&(l.modules={}),Object.keys(l.modules).forEach(function(e){var t=l.modules[e];if(t.params){var i=Object.keys(t.params)[0],n=t.params[i];if("object"!=typeof n)return;if(!(i in s&&"enabled"in n))return;!0===s[i]&&(s[i]={enabled:!0}),"object"!=typeof s[i]||"enabled"in s[i]||(s[i].enabled=!0),s[i]||(s[i]={enabled:!1})}});var d=u.extend({},C);l.useModulesParams(d),l.params=u.extend({},d,E,s),l.originalParams=u.extend({},l.params),l.passedParams=u.extend({},s),l.$=n;var h=n(l.params.el);if(r=h[0]){if(h.length>1){var p=[];return h.each(function(e,i){var n=u.extend({},s,{el:i});p.push(new t(n))}),p}r.swiper=l,h.data("swiper",l);var f,m,g=h.children("."+l.params.wrapperClass);return u.extend(l,{$el:h,el:r,$wrapperEl:g,wrapperEl:g[0],classNames:[],slides:n(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===l.params.direction},isVertical:function(){return"vertical"===l.params.direction},rtl:"rtl"===r.dir.toLowerCase()||"rtl"===h.css("direction"),rtlTranslate:"horizontal"===l.params.direction&&("rtl"===r.dir.toLowerCase()||"rtl"===h.css("direction")),wrongRTL:"-webkit-box"===g.css("display"),activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,progress:0,velocity:0,animating:!1,allowSlideNext:l.params.allowSlideNext,allowSlidePrev:l.params.allowSlidePrev,touchEvents:(f=["touchstart","touchmove","touchend"],m=["mousedown","mousemove","mouseup"],c.pointerEvents?m=["pointerdown","pointermove","pointerup"]:c.prefixedPointerEvents&&(m=["MSPointerDown","MSPointerMove","MSPointerUp"]),l.touchEventsTouch={start:f[0],move:f[1],end:f[2]},l.touchEventsDesktop={start:m[0],move:m[1],end:m[2]},c.touch||!l.params.simulateTouch?l.touchEventsTouch:l.touchEventsDesktop),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,formElements:"input, select, option, textarea, button, video",lastClickTime:u.now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),l.useModules(),l.params.init&&l.init(),l}}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var i={extendedDefaults:{configurable:!0},defaults:{configurable:!0},Class:{configurable:!0},$:{configurable:!0}};return t.prototype.slidesPerViewDynamic=function(){var e=this.params,t=this.slides,i=this.slidesGrid,n=this.size,r=this.activeIndex,s=1;if(e.centeredSlides){for(var a,o=t[r].swiperSlideSize,l=r+1;l<t.length;l+=1)t[l]&&!a&&(s+=1,(o+=t[l].swiperSlideSize)>n&&(a=!0));for(var u=r-1;u>=0;u-=1)t[u]&&!a&&(s+=1,(o+=t[u].swiperSlideSize)>n&&(a=!0))}else for(var c=r+1;c<t.length;c+=1)i[c]-i[r]<n&&(s+=1);return s},t.prototype.update=function(){var e=this;if(e&&!e.destroyed){var t=e.snapGrid,i=e.params;i.breakpoints&&e.setBreakpoint(),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.params.freeMode?(n(),e.params.autoHeight&&e.updateAutoHeight()):(("auto"===e.params.slidesPerView||e.params.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0))||n(),i.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}function n(){var t=e.rtlTranslate?-1*e.translate:e.translate,i=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(i),e.updateActiveIndex(),e.updateSlidesClasses()}},t.prototype.init=function(){this.initialized||(this.emit("beforeInit"),this.params.breakpoints&&this.setBreakpoint(),this.addClasses(),this.params.loop&&this.loopCreate(),this.updateSize(),this.updateSlides(),this.params.watchOverflow&&this.checkOverflow(),this.params.grabCursor&&this.setGrabCursor(),this.params.preloadImages&&this.preloadImages(),this.params.loop?this.slideTo(this.params.initialSlide+this.loopedSlides,0,this.params.runCallbacksOnInit):this.slideTo(this.params.initialSlide,0,this.params.runCallbacksOnInit),this.attachEvents(),this.initialized=!0,this.emit("init"))},t.prototype.destroy=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);var i=this,n=i.params,r=i.$el,s=i.$wrapperEl,a=i.slides;return void 0===i.params||i.destroyed?null:(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),n.loop&&i.loopDestroy(),t&&(i.removeClasses(),r.removeAttr("style"),s.removeAttr("style"),a&&a.length&&a.removeClass([n.slideVisibleClass,n.slideActiveClass,n.slideNextClass,n.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index").removeAttr("data-swiper-column").removeAttr("data-swiper-row")),i.emit("destroy"),Object.keys(i.eventsListeners).forEach(function(e){i.off(e)}),!1!==e&&(i.$el[0].swiper=null,i.$el.data("swiper",null),u.deleteProps(i)),i.destroyed=!0,null)},t.extendDefaults=function(e){u.extend(E,e)},i.extendedDefaults.get=function(){return E},i.defaults.get=function(){return C},i.Class.get=function(){return e},i.$.get=function(){return n},Object.defineProperties(t,i),t}(d),I={name:"device",proto:{device:b},static:{device:b}},k={name:"support",proto:{support:c},static:{support:c}},j={name:"browser",proto:{browser:x},static:{browser:x}},D={name:"resize",create:function(){var e=this;u.extend(e,{resize:{resizeHandler:function(){e&&!e.destroyed&&e.initialized&&(e.emit("beforeResize"),e.emit("resize"))},orientationChangeHandler:function(){e&&!e.destroyed&&e.initialized&&e.emit("orientationchange")}}})},on:{init:function(){t.addEventListener("resize",this.resize.resizeHandler),t.addEventListener("orientationchange",this.resize.orientationChangeHandler)},destroy:function(){t.removeEventListener("resize",this.resize.resizeHandler),t.removeEventListener("orientationchange",this.resize.orientationChangeHandler)}}},A={func:t.MutationObserver||t.WebkitMutationObserver,attach:function(e,t){void 0===t&&(t={});var i=this,n=new(0,A.func)(function(e){e.forEach(function(e){i.emit("observerUpdate",e)})});n.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),i.observer.observers.push(n)},init:function(){if(c.observer&&this.params.observer){if(this.params.observeParents)for(var e=this.$el.parents(),t=0;t<e.length;t+=1)this.observer.attach(e[t]);this.observer.attach(this.$el[0],{childList:!1}),this.observer.attach(this.$wrapperEl[0],{attributes:!1})}},destroy:function(){this.observer.observers.forEach(function(e){e.disconnect()}),this.observer.observers=[]}},Y={name:"observer",params:{observer:!1,observeParents:!1},create:function(){u.extend(this,{observer:{init:A.init.bind(this),attach:A.attach.bind(this),destroy:A.destroy.bind(this),observers:[]}})},on:{init:function(){this.observer.init()},destroy:function(){this.observer.destroy()}}},M={update:function(e){var t=this,i=t.params,n=i.slidesPerView,r=i.slidesPerGroup,s=i.centeredSlides,a=t.virtual,o=a.from,l=a.to,c=a.slides,d=a.slidesGrid,h=a.renderSlide,p=a.offset;t.updateActiveIndex();var f,m,g,v=t.activeIndex||0;f=t.rtlTranslate?"right":t.isHorizontal()?"left":"top",s?(m=Math.floor(n/2)+r,g=Math.floor(n/2)+r):(m=n+(r-1),g=r);var y=Math.max((v||0)-g,0),b=Math.min((v||0)+m,c.length-1),w=(t.slidesGrid[y]||0)-(t.slidesGrid[0]||0);function T(){t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.lazy&&t.params.lazy.enabled&&t.lazy.load()}if(u.extend(t.virtual,{from:y,to:b,offset:w,slidesGrid:t.slidesGrid}),o===y&&l===b&&!e)return t.slidesGrid!==d&&w!==p&&t.slides.css(f,w+"px"),void t.updateProgress();if(t.params.virtual.renderExternal)return t.params.virtual.renderExternal.call(t,{offset:w,from:y,to:b,slides:function(){for(var e=[],t=y;t<=b;t+=1)e.push(c[t]);return e}()}),void T();var _=[],x=[];if(e)t.$wrapperEl.find("."+t.params.slideClass).remove();else for(var C=o;C<=l;C+=1)(C<y||C>b)&&t.$wrapperEl.find("."+t.params.slideClass+'[data-swiper-slide-index="'+C+'"]').remove();for(var S=0;S<c.length;S+=1)S>=y&&S<=b&&(void 0===l||e?x.push(S):(S>l&&x.push(S),S<o&&_.push(S)));x.forEach(function(e){t.$wrapperEl.append(h(c[e],e))}),_.sort(function(e,t){return e<t}).forEach(function(e){t.$wrapperEl.prepend(h(c[e],e))}),t.$wrapperEl.children(".swiper-slide").css(f,w+"px"),T()},renderSlide:function(e,t){var i=this.params.virtual;if(i.cache&&this.virtual.cache[t])return this.virtual.cache[t];var r=i.renderSlide?n(i.renderSlide.call(this,e,t)):n('<div class="'+this.params.slideClass+'" data-swiper-slide-index="'+t+'">'+e+"</div>");return r.attr("data-swiper-slide-index")||r.attr("data-swiper-slide-index",t),i.cache&&(this.virtual.cache[t]=r),r},appendSlide:function(e){this.virtual.slides.push(e),this.virtual.update(!0)},prependSlide:function(e){if(this.virtual.slides.unshift(e),this.params.virtual.cache){var t=this.virtual.cache,i={};Object.keys(t).forEach(function(e){i[e+1]=t[e]}),this.virtual.cache=i}this.virtual.update(!0),this.slideNext(0)}},O={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null}},create:function(){u.extend(this,{virtual:{update:M.update.bind(this),appendSlide:M.appendSlide.bind(this),prependSlide:M.prependSlide.bind(this),renderSlide:M.renderSlide.bind(this),slides:this.params.virtual.slides,cache:{}}})},on:{beforeInit:function(){if(this.params.virtual.enabled){this.classNames.push(this.params.containerModifierClass+"virtual");var e={watchSlidesProgress:!0};u.extend(this.params,e),u.extend(this.originalParams,e),this.virtual.update()}},setTranslate:function(){this.params.virtual.enabled&&this.virtual.update()}}},z={handle:function(i){var n=this.rtlTranslate,r=i;r.originalEvent&&(r=r.originalEvent);var s=r.keyCode||r.charCode;if(!this.allowSlideNext&&(this.isHorizontal()&&39===s||this.isVertical()&&40===s))return!1;if(!this.allowSlidePrev&&(this.isHorizontal()&&37===s||this.isVertical()&&38===s))return!1;if(!(r.shiftKey||r.altKey||r.ctrlKey||r.metaKey||e.activeElement&&e.activeElement.nodeName&&("input"===e.activeElement.nodeName.toLowerCase()||"textarea"===e.activeElement.nodeName.toLowerCase()))){if(this.params.keyboard.onlyInViewport&&(37===s||39===s||38===s||40===s)){var a=!1;if(this.$el.parents("."+this.params.slideClass).length>0&&0===this.$el.parents("."+this.params.slideActiveClass).length)return;var o=t.innerWidth,l=t.innerHeight,u=this.$el.offset();n&&(u.left-=this.$el[0].scrollLeft);for(var c=[[u.left,u.top],[u.left+this.width,u.top],[u.left,u.top+this.height],[u.left+this.width,u.top+this.height]],d=0;d<c.length;d+=1){var h=c[d];h[0]>=0&&h[0]<=o&&h[1]>=0&&h[1]<=l&&(a=!0)}if(!a)return}this.isHorizontal()?(37!==s&&39!==s||(r.preventDefault?r.preventDefault():r.returnValue=!1),(39===s&&!n||37===s&&n)&&this.slideNext(),(37===s&&!n||39===s&&n)&&this.slidePrev()):(38!==s&&40!==s||(r.preventDefault?r.preventDefault():r.returnValue=!1),40===s&&this.slideNext(),38===s&&this.slidePrev()),this.emit("keyPress",s)}},enable:function(){this.keyboard.enabled||(n(e).on("keydown",this.keyboard.handle),this.keyboard.enabled=!0)},disable:function(){this.keyboard.enabled&&(n(e).off("keydown",this.keyboard.handle),this.keyboard.enabled=!1)}},L={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0}},create:function(){u.extend(this,{keyboard:{enabled:!1,enable:z.enable.bind(this),disable:z.disable.bind(this),handle:z.handle.bind(this)}})},on:{init:function(){this.params.keyboard.enabled&&this.keyboard.enable()},destroy:function(){this.keyboard.enabled&&this.keyboard.disable()}}},Q={lastScrollTime:u.now(),event:t.navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":function(){var t="onwheel"in e;if(!t){var i=e.createElement("div");i.setAttribute("onwheel","return;"),t="function"==typeof i.onwheel}return!t&&e.implementation&&e.implementation.hasFeature&&!0!==e.implementation.hasFeature("","")&&(t=e.implementation.hasFeature("Events.wheel","3.0")),t}()?"wheel":"mousewheel",normalize:function(e){var t=0,i=0,n=0,r=0;return"detail"in e&&(i=e.detail),"wheelDelta"in e&&(i=-e.wheelDelta/120),"wheelDeltaY"in e&&(i=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=i,i=0),n=10*t,r=10*i,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(n=e.deltaX),(n||r)&&e.deltaMode&&(1===e.deltaMode?(n*=40,r*=40):(n*=800,r*=800)),n&&!t&&(t=n<1?-1:1),r&&!i&&(i=r<1?-1:1),{spinX:t,spinY:i,pixelX:n,pixelY:r}},handleMouseEnter:function(){this.mouseEntered=!0},handleMouseLeave:function(){this.mouseEntered=!1},handle:function(e){var i=e,n=this,r=n.params.mousewheel;if(!n.mouseEntered&&!r.releaseOnEdges)return!0;i.originalEvent&&(i=i.originalEvent);var s=0,a=n.rtlTranslate?-1:1,o=Q.normalize(i);if(r.forceToAxis)if(n.isHorizontal()){if(!(Math.abs(o.pixelX)>Math.abs(o.pixelY)))return!0;s=o.pixelX*a}else{if(!(Math.abs(o.pixelY)>Math.abs(o.pixelX)))return!0;s=o.pixelY}else s=Math.abs(o.pixelX)>Math.abs(o.pixelY)?-o.pixelX*a:-o.pixelY;if(0===s)return!0;if(r.invert&&(s=-s),n.params.freeMode){n.params.loop&&n.loopFix();var l=n.getTranslate()+s*r.sensitivity,c=n.isBeginning,d=n.isEnd;if(l>=n.minTranslate()&&(l=n.minTranslate()),l<=n.maxTranslate()&&(l=n.maxTranslate()),n.setTransition(0),n.setTranslate(l),n.updateProgress(),n.updateActiveIndex(),n.updateSlidesClasses(),(!c&&n.isBeginning||!d&&n.isEnd)&&n.updateSlidesClasses(),n.params.freeModeSticky&&(clearTimeout(n.mousewheel.timeout),n.mousewheel.timeout=u.nextTick(function(){n.slideToClosest()},300)),n.emit("scroll",i),n.params.autoplay&&n.params.autoplayDisableOnInteraction&&n.stopAutoplay(),l===n.minTranslate()||l===n.maxTranslate())return!0}else{if(u.now()-n.mousewheel.lastScrollTime>60)if(s<0)if(n.isEnd&&!n.params.loop||n.animating){if(r.releaseOnEdges)return!0}else n.slideNext(),n.emit("scroll",i);else if(n.isBeginning&&!n.params.loop||n.animating){if(r.releaseOnEdges)return!0}else n.slidePrev(),n.emit("scroll",i);n.mousewheel.lastScrollTime=(new t.Date).getTime()}return i.preventDefault?i.preventDefault():i.returnValue=!1,!1},enable:function(){if(!Q.event)return!1;if(this.mousewheel.enabled)return!1;var e=this.$el;return"container"!==this.params.mousewheel.eventsTarged&&(e=n(this.params.mousewheel.eventsTarged)),e.on("mouseenter",this.mousewheel.handleMouseEnter),e.on("mouseleave",this.mousewheel.handleMouseLeave),e.on(Q.event,this.mousewheel.handle),this.mousewheel.enabled=!0,!0},disable:function(){if(!Q.event)return!1;if(!this.mousewheel.enabled)return!1;var e=this.$el;return"container"!==this.params.mousewheel.eventsTarged&&(e=n(this.params.mousewheel.eventsTarged)),e.off(Q.event,this.mousewheel.handle),this.mousewheel.enabled=!1,!0}},N={update:function(){var e=this.params.navigation;if(!this.params.loop){var t=this.navigation,i=t.$nextEl,n=t.$prevEl;n&&n.length>0&&(this.isBeginning?n.addClass(e.disabledClass):n.removeClass(e.disabledClass),n[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](e.lockClass)),i&&i.length>0&&(this.isEnd?i.addClass(e.disabledClass):i.removeClass(e.disabledClass),i[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](e.lockClass))}},init:function(){var e,t,i=this,r=i.params.navigation;(r.nextEl||r.prevEl)&&(r.nextEl&&(e=n(r.nextEl),i.params.uniqueNavElements&&"string"==typeof r.nextEl&&e.length>1&&1===i.$el.find(r.nextEl).length&&(e=i.$el.find(r.nextEl))),r.prevEl&&(t=n(r.prevEl),i.params.uniqueNavElements&&"string"==typeof r.prevEl&&t.length>1&&1===i.$el.find(r.prevEl).length&&(t=i.$el.find(r.prevEl))),e&&e.length>0&&e.on("click",function(e){e.preventDefault(),i.isEnd&&!i.params.loop||i.slideNext()}),t&&t.length>0&&t.on("click",function(e){e.preventDefault(),i.isBeginning&&!i.params.loop||i.slidePrev()}),u.extend(i.navigation,{$nextEl:e,nextEl:e&&e[0],$prevEl:t,prevEl:t&&t[0]}))},destroy:function(){var e=this.navigation,t=e.$nextEl,i=e.$prevEl;t&&t.length&&(t.off("click"),t.removeClass(this.params.navigation.disabledClass)),i&&i.length&&(i.off("click"),i.removeClass(this.params.navigation.disabledClass))}},B={update:function(){var e=this.rtl,t=this.params.pagination;if(t.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var i,r=this.virtual&&this.params.virtual.enabled?this.virtual.slides.length:this.slides.length,s=this.pagination.$el,a=this.params.loop?Math.ceil((r-2*this.loopedSlides)/this.params.slidesPerGroup):this.snapGrid.length;if(this.params.loop?((i=Math.ceil((this.activeIndex-this.loopedSlides)/this.params.slidesPerGroup))>r-1-2*this.loopedSlides&&(i-=r-2*this.loopedSlides),i>a-1&&(i-=a),i<0&&"bullets"!==this.params.paginationType&&(i=a+i)):i=void 0!==this.snapIndex?this.snapIndex:this.activeIndex||0,"bullets"===t.type&&this.pagination.bullets&&this.pagination.bullets.length>0){var o,l,u,c=this.pagination.bullets;if(t.dynamicBullets&&(this.pagination.bulletSize=c.eq(0)[this.isHorizontal()?"outerWidth":"outerHeight"](!0),s.css(this.isHorizontal()?"width":"height",this.pagination.bulletSize*(t.dynamicMainBullets+4)+"px"),t.dynamicMainBullets>1&&void 0!==this.previousIndex&&(this.pagination.dynamicBulletIndex+=i-this.previousIndex,this.pagination.dynamicBulletIndex>t.dynamicMainBullets-1?this.pagination.dynamicBulletIndex=t.dynamicMainBullets-1:this.pagination.dynamicBulletIndex<0&&(this.pagination.dynamicBulletIndex=0)),o=i-this.pagination.dynamicBulletIndex,u=((l=o+(Math.min(c.length,t.dynamicMainBullets)-1))+o)/2),c.removeClass(t.bulletActiveClass+" "+t.bulletActiveClass+"-next "+t.bulletActiveClass+"-next-next "+t.bulletActiveClass+"-prev "+t.bulletActiveClass+"-prev-prev "+t.bulletActiveClass+"-main"),s.length>1)c.each(function(e,r){var s=n(r),a=s.index();a===i&&s.addClass(t.bulletActiveClass),t.dynamicBullets&&(a>=o&&a<=l&&s.addClass(t.bulletActiveClass+"-main"),a===o&&s.prev().addClass(t.bulletActiveClass+"-prev").prev().addClass(t.bulletActiveClass+"-prev-prev"),a===l&&s.next().addClass(t.bulletActiveClass+"-next").next().addClass(t.bulletActiveClass+"-next-next"))});else if(c.eq(i).addClass(t.bulletActiveClass),t.dynamicBullets){for(var d=c.eq(o),h=c.eq(l),p=o;p<=l;p+=1)c.eq(p).addClass(t.bulletActiveClass+"-main");d.prev().addClass(t.bulletActiveClass+"-prev").prev().addClass(t.bulletActiveClass+"-prev-prev"),h.next().addClass(t.bulletActiveClass+"-next").next().addClass(t.bulletActiveClass+"-next-next")}if(t.dynamicBullets){var f=Math.min(c.length,t.dynamicMainBullets+4),m=(this.pagination.bulletSize*f-this.pagination.bulletSize)/2-u*this.pagination.bulletSize,g=e?"right":"left";c.css(this.isHorizontal()?g:"top",m+"px")}}if("fraction"===t.type&&(s.find("."+t.currentClass).text(i+1),s.find("."+t.totalClass).text(a)),"progressbar"===t.type){var v;v=t.progressbarOpposite?this.isHorizontal()?"vertical":"horizontal":this.isHorizontal()?"horizontal":"vertical";var y=(i+1)/a,b=1,w=1;"horizontal"===v?b=y:w=y,s.find("."+t.progressbarFillClass).transform("translate3d(0,0,0) scaleX("+b+") scaleY("+w+")").transition(this.params.speed)}"custom"===t.type&&t.renderCustom?(s.html(t.renderCustom(this,i+1,a)),this.emit("paginationRender",this,s[0])):this.emit("paginationUpdate",this,s[0]),s[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](t.lockClass)}},render:function(){var e=this.params.pagination;if(e.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var t=this.virtual&&this.params.virtual.enabled?this.virtual.slides.length:this.slides.length,i=this.pagination.$el,n="";if("bullets"===e.type){for(var r=this.params.loop?Math.ceil((t-2*this.loopedSlides)/this.params.slidesPerGroup):this.snapGrid.length,s=0;s<r;s+=1)e.renderBullet?n+=e.renderBullet.call(this,s,e.bulletClass):n+="<"+e.bulletElement+' class="'+e.bulletClass+'"></'+e.bulletElement+">";i.html(n),this.pagination.bullets=i.find("."+e.bulletClass)}"fraction"===e.type&&(n=e.renderFraction?e.renderFraction.call(this,e.currentClass,e.totalClass):'<span class="'+e.currentClass+'"></span> / <span class="'+e.totalClass+'"></span>',i.html(n)),"progressbar"===e.type&&(n=e.renderProgressbar?e.renderProgressbar.call(this,e.progressbarFillClass):'<span class="'+e.progressbarFillClass+'"></span>',i.html(n)),"custom"!==e.type&&this.emit("paginationRender",this.pagination.$el[0])}},init:function(){var e=this,t=e.params.pagination;if(t.el){var i=n(t.el);0!==i.length&&(e.params.uniqueNavElements&&"string"==typeof t.el&&i.length>1&&1===e.$el.find(t.el).length&&(i=e.$el.find(t.el)),"bullets"===t.type&&t.clickable&&i.addClass(t.clickableClass),i.addClass(t.modifierClass+t.type),"bullets"===t.type&&t.dynamicBullets&&(i.addClass(""+t.modifierClass+t.type+"-dynamic"),e.pagination.dynamicBulletIndex=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&i.addClass(t.progressbarOppositeClass),t.clickable&&i.on("click","."+t.bulletClass,function(t){t.preventDefault();var i=n(this).index()*e.params.slidesPerGroup;e.params.loop&&(i+=e.loopedSlides),e.slideTo(i)}),u.extend(e.pagination,{$el:i,el:i[0]}))}},destroy:function(){var e=this.params.pagination;if(e.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var t=this.pagination.$el;t.removeClass(e.hiddenClass),t.removeClass(e.modifierClass+e.type),this.pagination.bullets&&this.pagination.bullets.removeClass(e.bulletActiveClass),e.clickable&&t.off("click","."+e.bulletClass)}}},H={setTranslate:function(){if(this.params.scrollbar.el&&this.scrollbar.el){var e=this.scrollbar,t=this.rtlTranslate,i=this.progress,n=e.dragSize,r=e.trackSize,s=e.$dragEl,a=e.$el,o=this.params.scrollbar,l=n,u=(r-n)*i;t?(u=-u)>0?(l=n-u,u=0):-u+n>r&&(l=r+u):u<0?(l=n+u,u=0):u+n>r&&(l=r-u),this.isHorizontal()?(c.transforms3d?s.transform("translate3d("+u+"px, 0, 0)"):s.transform("translateX("+u+"px)"),s[0].style.width=l+"px"):(c.transforms3d?s.transform("translate3d(0px, "+u+"px, 0)"):s.transform("translateY("+u+"px)"),s[0].style.height=l+"px"),o.hide&&(clearTimeout(this.scrollbar.timeout),a[0].style.opacity=1,this.scrollbar.timeout=setTimeout(function(){a[0].style.opacity=0,a.transition(400)},1e3))}},setTransition:function(e){this.params.scrollbar.el&&this.scrollbar.el&&this.scrollbar.$dragEl.transition(e)},updateSize:function(){if(this.params.scrollbar.el&&this.scrollbar.el){var e=this.scrollbar,t=e.$dragEl,i=e.$el;t[0].style.width="",t[0].style.height="";var n,r=this.isHorizontal()?i[0].offsetWidth:i[0].offsetHeight,s=this.size/this.virtualSize,a=s*(r/this.size);n="auto"===this.params.scrollbar.dragSize?r*s:parseInt(this.params.scrollbar.dragSize,10),this.isHorizontal()?t[0].style.width=n+"px":t[0].style.height=n+"px",i[0].style.display=s>=1?"none":"",this.params.scrollbarHide&&(i[0].style.opacity=0),u.extend(e,{trackSize:r,divider:s,moveDivider:a,dragSize:n}),e.$el[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](this.params.scrollbar.lockClass)}},setDragPosition:function(e){var t,i=this.scrollbar,n=this.rtlTranslate,r=i.$el,s=i.dragSize,a=i.trackSize;t=((this.isHorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageX:e.pageX||e.clientX:"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageY:e.pageY||e.clientY)-r.offset()[this.isHorizontal()?"left":"top"]-s/2)/(a-s),t=Math.max(Math.min(t,1),0),n&&(t=1-t);var o=this.minTranslate()+(this.maxTranslate()-this.minTranslate())*t;this.updateProgress(o),this.setTranslate(o),this.updateActiveIndex(),this.updateSlidesClasses()},onDragStart:function(e){var t=this.params.scrollbar,i=this.scrollbar,n=this.$wrapperEl,r=i.$el,s=i.$dragEl;this.scrollbar.isTouched=!0,e.preventDefault(),e.stopPropagation(),n.transition(100),s.transition(100),i.setDragPosition(e),clearTimeout(this.scrollbar.dragTimeout),r.transition(0),t.hide&&r.css("opacity",1),this.emit("scrollbarDragStart",e)},onDragMove:function(e){var t=this.scrollbar,i=this.$wrapperEl,n=t.$el,r=t.$dragEl;this.scrollbar.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,t.setDragPosition(e),i.transition(0),n.transition(0),r.transition(0),this.emit("scrollbarDragMove",e))},onDragEnd:function(e){var t=this.params.scrollbar,i=this.scrollbar.$el;this.scrollbar.isTouched&&(this.scrollbar.isTouched=!1,t.hide&&(clearTimeout(this.scrollbar.dragTimeout),this.scrollbar.dragTimeout=u.nextTick(function(){i.css("opacity",0),i.transition(400)},1e3)),this.emit("scrollbarDragEnd",e),t.snapOnRelease&&this.slideToClosest())},enableDraggable:function(){if(this.params.scrollbar.el){var t=this.scrollbar,i=this.touchEvents,n=this.touchEventsDesktop,r=this.params,s=t.$el[0],a=!(!c.passiveListener||!r.passiveListener)&&{passive:!1,capture:!1},o=!(!c.passiveListener||!r.passiveListener)&&{passive:!0,capture:!1};c.touch||!c.pointerEvents&&!c.prefixedPointerEvents?(c.touch&&(s.addEventListener(i.start,this.scrollbar.onDragStart,a),s.addEventListener(i.move,this.scrollbar.onDragMove,a),s.addEventListener(i.end,this.scrollbar.onDragEnd,o)),(r.simulateTouch&&!b.ios&&!b.android||r.simulateTouch&&!c.touch&&b.ios)&&(s.addEventListener("mousedown",this.scrollbar.onDragStart,a),e.addEventListener("mousemove",this.scrollbar.onDragMove,a),e.addEventListener("mouseup",this.scrollbar.onDragEnd,o))):(s.addEventListener(n.start,this.scrollbar.onDragStart,a),e.addEventListener(n.move,this.scrollbar.onDragMove,a),e.addEventListener(n.end,this.scrollbar.onDragEnd,o))}},disableDraggable:function(){if(this.params.scrollbar.el){var t=this.scrollbar,i=this.touchEvents,n=this.touchEventsDesktop,r=this.params,s=t.$el[0],a=!(!c.passiveListener||!r.passiveListener)&&{passive:!1,capture:!1},o=!(!c.passiveListener||!r.passiveListener)&&{passive:!0,capture:!1};c.touch||!c.pointerEvents&&!c.prefixedPointerEvents?(c.touch&&(s.removeEventListener(i.start,this.scrollbar.onDragStart,a),s.removeEventListener(i.move,this.scrollbar.onDragMove,a),s.removeEventListener(i.end,this.scrollbar.onDragEnd,o)),(r.simulateTouch&&!b.ios&&!b.android||r.simulateTouch&&!c.touch&&b.ios)&&(s.removeEventListener("mousedown",this.scrollbar.onDragStart,a),e.removeEventListener("mousemove",this.scrollbar.onDragMove,a),e.removeEventListener("mouseup",this.scrollbar.onDragEnd,o))):(s.removeEventListener(n.start,this.scrollbar.onDragStart,a),e.removeEventListener(n.move,this.scrollbar.onDragMove,a),e.removeEventListener(n.end,this.scrollbar.onDragEnd,o))}},init:function(){if(this.params.scrollbar.el){var e=this.scrollbar,t=this.$el,i=this.params.scrollbar,r=n(i.el);this.params.uniqueNavElements&&"string"==typeof i.el&&r.length>1&&1===t.find(i.el).length&&(r=t.find(i.el));var s=r.find("."+this.params.scrollbar.dragClass);0===s.length&&(s=n('<div class="'+this.params.scrollbar.dragClass+'"></div>'),r.append(s)),u.extend(e,{$el:r,el:r[0],$dragEl:s,dragEl:s[0]}),i.draggable&&e.enableDraggable()}},destroy:function(){this.scrollbar.disableDraggable()}},F={setTransform:function(e,t){var i=this.rtl,r=n(e),s=i?-1:1,a=r.attr("data-swiper-parallax")||"0",o=r.attr("data-swiper-parallax-x"),l=r.attr("data-swiper-parallax-y"),u=r.attr("data-swiper-parallax-scale"),c=r.attr("data-swiper-parallax-opacity");if(o||l?(o=o||"0",l=l||"0"):this.isHorizontal()?(o=a,l="0"):(l=a,o="0"),o=o.indexOf("%")>=0?parseInt(o,10)*t*s+"%":o*t*s+"px",l=l.indexOf("%")>=0?parseInt(l,10)*t+"%":l*t+"px",null!=c){var d=c-(c-1)*(1-Math.abs(t));r[0].style.opacity=d}if(null==u)r.transform("translate3d("+o+", "+l+", 0px)");else{var h=u-(u-1)*(1-Math.abs(t));r.transform("translate3d("+o+", "+l+", 0px) scale("+h+")")}},setTranslate:function(){var e=this,t=e.$el,i=e.slides,r=e.progress,s=e.snapGrid;t.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(t,i){e.parallax.setTransform(i,r)}),i.each(function(t,i){var a=i.progress;e.params.slidesPerGroup>1&&"auto"!==e.params.slidesPerView&&(a+=Math.ceil(t/2)-r*(s.length-1)),a=Math.min(Math.max(a,-1),1),n(i).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(t,i){e.parallax.setTransform(i,a)})})},setTransition:function(e){void 0===e&&(e=this.params.speed),this.$el.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(t,i){var r=n(i),s=parseInt(r.attr("data-swiper-parallax-duration"),10)||e;0===e&&(s=0),r.transition(s)})}},R={getDistanceBetweenTouches:function(e){if(e.targetTouches.length<2)return 1;var t=e.targetTouches[0].pageX,i=e.targetTouches[0].pageY,n=e.targetTouches[1].pageX,r=e.targetTouches[1].pageY;return Math.sqrt(Math.pow(n-t,2)+Math.pow(r-i,2))},onGestureStart:function(e){var t=this.params.zoom,i=this.zoom,r=i.gesture;if(i.fakeGestureTouched=!1,i.fakeGestureMoved=!1,!c.gestures){if("touchstart"!==e.type||"touchstart"===e.type&&e.targetTouches.length<2)return;i.fakeGestureTouched=!0,r.scaleStart=R.getDistanceBetweenTouches(e)}r.$slideEl&&r.$slideEl.length||(r.$slideEl=n(e.target).closest(".swiper-slide"),0===r.$slideEl.length&&(r.$slideEl=this.slides.eq(this.activeIndex)),r.$imageEl=r.$slideEl.find("img, svg, canvas"),r.$imageWrapEl=r.$imageEl.parent("."+t.containerClass),r.maxRatio=r.$imageWrapEl.attr("data-swiper-zoom")||t.maxRatio,0!==r.$imageWrapEl.length)?(r.$imageEl.transition(0),this.zoom.isScaling=!0):r.$imageEl=void 0},onGestureChange:function(e){var t=this.params.zoom,i=this.zoom,n=i.gesture;if(!c.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targetTouches.length<2)return;i.fakeGestureMoved=!0,n.scaleMove=R.getDistanceBetweenTouches(e)}n.$imageEl&&0!==n.$imageEl.length&&(c.gestures?this.zoom.scale=e.scale*i.currentScale:i.scale=n.scaleMove/n.scaleStart*i.currentScale,i.scale>n.maxRatio&&(i.scale=n.maxRatio-1+Math.pow(i.scale-n.maxRatio+1,.5)),i.scale<t.minRatio&&(i.scale=t.minRatio+1-Math.pow(t.minRatio-i.scale+1,.5)),n.$imageEl.transform("translate3d(0,0,0) scale("+i.scale+")"))},onGestureEnd:function(e){var t=this.params.zoom,i=this.zoom,n=i.gesture;if(!c.gestures){if(!i.fakeGestureTouched||!i.fakeGestureMoved)return;if("touchend"!==e.type||"touchend"===e.type&&e.changedTouches.length<2&&!b.android)return;i.fakeGestureTouched=!1,i.fakeGestureMoved=!1}n.$imageEl&&0!==n.$imageEl.length&&(i.scale=Math.max(Math.min(i.scale,n.maxRatio),t.minRatio),n.$imageEl.transition(this.params.speed).transform("translate3d(0,0,0) scale("+i.scale+")"),i.currentScale=i.scale,i.isScaling=!1,1===i.scale&&(n.$slideEl=void 0))},onTouchStart:function(e){var t=this.zoom,i=t.gesture,n=t.image;i.$imageEl&&0!==i.$imageEl.length&&(n.isTouched||(b.android&&e.preventDefault(),n.isTouched=!0,n.touchesStart.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,n.touchesStart.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY))},onTouchMove:function(e){var t=this.zoom,i=t.gesture,n=t.image,r=t.velocity;if(i.$imageEl&&0!==i.$imageEl.length&&(this.allowClick=!1,n.isTouched&&i.$slideEl)){n.isMoved||(n.width=i.$imageEl[0].offsetWidth,n.height=i.$imageEl[0].offsetHeight,n.startX=u.getTranslate(i.$imageWrapEl[0],"x")||0,n.startY=u.getTranslate(i.$imageWrapEl[0],"y")||0,i.slideWidth=i.$slideEl[0].offsetWidth,i.slideHeight=i.$slideEl[0].offsetHeight,i.$imageWrapEl.transition(0),this.rtl&&(n.startX=-n.startX,n.startY=-n.startY));var s=n.width*t.scale,a=n.height*t.scale;if(!(s<i.slideWidth&&a<i.slideHeight)){if(n.minX=Math.min(i.slideWidth/2-s/2,0),n.maxX=-n.minX,n.minY=Math.min(i.slideHeight/2-a/2,0),n.maxY=-n.minY,n.touchesCurrent.x="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,n.touchesCurrent.y="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,!n.isMoved&&!t.isScaling){if(this.isHorizontal()&&(Math.floor(n.minX)===Math.floor(n.startX)&&n.touchesCurrent.x<n.touchesStart.x||Math.floor(n.maxX)===Math.floor(n.startX)&&n.touchesCurrent.x>n.touchesStart.x))return void(n.isTouched=!1);if(!this.isHorizontal()&&(Math.floor(n.minY)===Math.floor(n.startY)&&n.touchesCurrent.y<n.touchesStart.y||Math.floor(n.maxY)===Math.floor(n.startY)&&n.touchesCurrent.y>n.touchesStart.y))return void(n.isTouched=!1)}e.preventDefault(),e.stopPropagation(),n.isMoved=!0,n.currentX=n.touchesCurrent.x-n.touchesStart.x+n.startX,n.currentY=n.touchesCurrent.y-n.touchesStart.y+n.startY,n.currentX<n.minX&&(n.currentX=n.minX+1-Math.pow(n.minX-n.currentX+1,.8)),n.currentX>n.maxX&&(n.currentX=n.maxX-1+Math.pow(n.currentX-n.maxX+1,.8)),n.currentY<n.minY&&(n.currentY=n.minY+1-Math.pow(n.minY-n.currentY+1,.8)),n.currentY>n.maxY&&(n.currentY=n.maxY-1+Math.pow(n.currentY-n.maxY+1,.8)),r.prevPositionX||(r.prevPositionX=n.touchesCurrent.x),r.prevPositionY||(r.prevPositionY=n.touchesCurrent.y),r.prevTime||(r.prevTime=Date.now()),r.x=(n.touchesCurrent.x-r.prevPositionX)/(Date.now()-r.prevTime)/2,r.y=(n.touchesCurrent.y-r.prevPositionY)/(Date.now()-r.prevTime)/2,Math.abs(n.touchesCurrent.x-r.prevPositionX)<2&&(r.x=0),Math.abs(n.touchesCurrent.y-r.prevPositionY)<2&&(r.y=0),r.prevPositionX=n.touchesCurrent.x,r.prevPositionY=n.touchesCurrent.y,r.prevTime=Date.now(),i.$imageWrapEl.transform("translate3d("+n.currentX+"px, "+n.currentY+"px,0)")}}},onTouchEnd:function(){var e=this.zoom,t=e.gesture,i=e.image,n=e.velocity;if(t.$imageEl&&0!==t.$imageEl.length){if(!i.isTouched||!i.isMoved)return i.isTouched=!1,void(i.isMoved=!1);i.isTouched=!1,i.isMoved=!1;var r=300,s=300,a=n.x*r,o=i.currentX+a,l=n.y*s,u=i.currentY+l;0!==n.x&&(r=Math.abs((o-i.currentX)/n.x)),0!==n.y&&(s=Math.abs((u-i.currentY)/n.y));var c=Math.max(r,s);i.currentX=o,i.currentY=u;var d=i.width*e.scale,h=i.height*e.scale;i.minX=Math.min(t.slideWidth/2-d/2,0),i.maxX=-i.minX,i.minY=Math.min(t.slideHeight/2-h/2,0),i.maxY=-i.minY,i.currentX=Math.max(Math.min(i.currentX,i.maxX),i.minX),i.currentY=Math.max(Math.min(i.currentY,i.maxY),i.minY),t.$imageWrapEl.transition(c).transform("translate3d("+i.currentX+"px, "+i.currentY+"px,0)")}},onTransitionEnd:function(){var e=this.zoom,t=e.gesture;t.$slideEl&&this.previousIndex!==this.activeIndex&&(t.$imageEl.transform("translate3d(0,0,0) scale(1)"),t.$imageWrapEl.transform("translate3d(0,0,0)"),t.$slideEl=void 0,t.$imageEl=void 0,t.$imageWrapEl=void 0,e.scale=1,e.currentScale=1)},toggle:function(e){var t=this.zoom;t.scale&&1!==t.scale?t.out():t.in(e)},in:function(e){var t,i,r,s,a,o,l,u,c,d,h,p,f,m,g,v,y=this.zoom,b=this.params.zoom,w=y.gesture,T=y.image;w.$slideEl||(w.$slideEl=this.clickedSlide?n(this.clickedSlide):this.slides.eq(this.activeIndex),w.$imageEl=w.$slideEl.find("img, svg, canvas"),w.$imageWrapEl=w.$imageEl.parent("."+b.containerClass)),w.$imageEl&&0!==w.$imageEl.length&&(w.$slideEl.addClass(""+b.zoomedSlideClass),void 0===T.touchesStart.x&&e?(t="touchend"===e.type?e.changedTouches[0].pageX:e.pageX,i="touchend"===e.type?e.changedTouches[0].pageY:e.pageY):(t=T.touchesStart.x,i=T.touchesStart.y),y.scale=w.$imageWrapEl.attr("data-swiper-zoom")||b.maxRatio,y.currentScale=w.$imageWrapEl.attr("data-swiper-zoom")||b.maxRatio,e?(g=w.$slideEl[0].offsetWidth,v=w.$slideEl[0].offsetHeight,r=w.$slideEl.offset().left+g/2-t,s=w.$slideEl.offset().top+v/2-i,l=w.$imageEl[0].offsetWidth,u=w.$imageEl[0].offsetHeight,c=l*y.scale,d=u*y.scale,f=-(h=Math.min(g/2-c/2,0)),m=-(p=Math.min(v/2-d/2,0)),(a=r*y.scale)<h&&(a=h),a>f&&(a=f),(o=s*y.scale)<p&&(o=p),o>m&&(o=m)):(a=0,o=0),w.$imageWrapEl.transition(300).transform("translate3d("+a+"px, "+o+"px,0)"),w.$imageEl.transition(300).transform("translate3d(0,0,0) scale("+y.scale+")"))},out:function(){var e=this.zoom,t=this.params.zoom,i=e.gesture;i.$slideEl||(i.$slideEl=this.clickedSlide?n(this.clickedSlide):this.slides.eq(this.activeIndex),i.$imageEl=i.$slideEl.find("img, svg, canvas"),i.$imageWrapEl=i.$imageEl.parent("."+t.containerClass)),i.$imageEl&&0!==i.$imageEl.length&&(e.scale=1,e.currentScale=1,i.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),i.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),i.$slideEl.removeClass(""+t.zoomedSlideClass),i.$slideEl=void 0)},enable:function(){var e=this.zoom;if(!e.enabled){e.enabled=!0;var t=!("touchstart"!==this.touchEvents.start||!c.passiveListener||!this.params.passiveListeners)&&{passive:!0,capture:!1};c.gestures?(this.$wrapperEl.on("gesturestart",".swiper-slide",e.onGestureStart,t),this.$wrapperEl.on("gesturechange",".swiper-slide",e.onGestureChange,t),this.$wrapperEl.on("gestureend",".swiper-slide",e.onGestureEnd,t)):"touchstart"===this.touchEvents.start&&(this.$wrapperEl.on(this.touchEvents.start,".swiper-slide",e.onGestureStart,t),this.$wrapperEl.on(this.touchEvents.move,".swiper-slide",e.onGestureChange,t),this.$wrapperEl.on(this.touchEvents.end,".swiper-slide",e.onGestureEnd,t)),this.$wrapperEl.on(this.touchEvents.move,"."+this.params.zoom.containerClass,e.onTouchMove)}},disable:function(){var e=this.zoom;if(e.enabled){this.zoom.enabled=!1;var t=!("touchstart"!==this.touchEvents.start||!c.passiveListener||!this.params.passiveListeners)&&{passive:!0,capture:!1};c.gestures?(this.$wrapperEl.off("gesturestart",".swiper-slide",e.onGestureStart,t),this.$wrapperEl.off("gesturechange",".swiper-slide",e.onGestureChange,t),this.$wrapperEl.off("gestureend",".swiper-slide",e.onGestureEnd,t)):"touchstart"===this.touchEvents.start&&(this.$wrapperEl.off(this.touchEvents.start,".swiper-slide",e.onGestureStart,t),this.$wrapperEl.off(this.touchEvents.move,".swiper-slide",e.onGestureChange,t),this.$wrapperEl.off(this.touchEvents.end,".swiper-slide",e.onGestureEnd,t)),this.$wrapperEl.off(this.touchEvents.move,"."+this.params.zoom.containerClass,e.onTouchMove)}}},$={loadInSlide:function(e,t){void 0===t&&(t=!0);var i=this,r=i.params.lazy;if(void 0!==e&&0!==i.slides.length){var s=i.virtual&&i.params.virtual.enabled?i.$wrapperEl.children("."+i.params.slideClass+'[data-swiper-slide-index="'+e+'"]'):i.slides.eq(e),a=s.find("."+r.elementClass+":not(."+r.loadedClass+"):not(."+r.loadingClass+")");!s.hasClass(r.elementClass)||s.hasClass(r.loadedClass)||s.hasClass(r.loadingClass)||(a=a.add(s[0])),0!==a.length&&a.each(function(e,a){var o=n(a);o.addClass(r.loadingClass);var l=o.attr("data-background"),u=o.attr("data-src"),c=o.attr("data-srcset"),d=o.attr("data-sizes");i.loadImage(o[0],u||l,c,d,!1,function(){if(null!=i&&i&&(!i||i.params)&&!i.destroyed){if(l?(o.css("background-image",'url("'+l+'")'),o.removeAttr("data-background")):(c&&(o.attr("srcset",c),o.removeAttr("data-srcset")),d&&(o.attr("sizes",d),o.removeAttr("data-sizes")),u&&(o.attr("src",u),o.removeAttr("data-src"))),o.addClass(r.loadedClass).removeClass(r.loadingClass),s.find("."+r.preloaderClass).remove(),i.params.loop&&t){var e=s.attr("data-swiper-slide-index");if(s.hasClass(i.params.slideDuplicateClass)){var n=i.$wrapperEl.children('[data-swiper-slide-index="'+e+'"]:not(.'+i.params.slideDuplicateClass+")");i.lazy.loadInSlide(n.index(),!1)}else{var a=i.$wrapperEl.children("."+i.params.slideDuplicateClass+'[data-swiper-slide-index="'+e+'"]');i.lazy.loadInSlide(a.index(),!1)}}i.emit("lazyImageReady",s[0],o[0])}}),i.emit("lazyImageLoad",s[0],o[0])})}},load:function(){var e=this,t=e.$wrapperEl,i=e.params,r=e.slides,s=e.activeIndex,a=e.virtual&&i.virtual.enabled,o=i.lazy,l=i.slidesPerView;function u(e){if(a){if(t.children("."+i.slideClass+'[data-swiper-slide-index="'+e+'"]').length)return!0}else if(r[e])return!0;return!1}function c(e){return a?n(e).attr("data-swiper-slide-index"):n(e).index()}if("auto"===l&&(l=0),e.lazy.initialImageLoaded||(e.lazy.initialImageLoaded=!0),e.params.watchSlidesVisibility)t.children("."+i.slideVisibleClass).each(function(t,i){var r=a?n(i).attr("data-swiper-slide-index"):n(i).index();e.lazy.loadInSlide(r)});else if(l>1)for(var d=s;d<s+l;d+=1)u(d)&&e.lazy.loadInSlide(d);else e.lazy.loadInSlide(s);if(o.loadPrevNext)if(l>1||o.loadPrevNextAmount&&o.loadPrevNextAmount>1){for(var h=o.loadPrevNextAmount,p=l,f=Math.min(s+p+Math.max(h,p),r.length),m=Math.max(s-Math.max(p,h),0),g=s+l;g<f;g+=1)u(g)&&e.lazy.loadInSlide(g);for(var v=m;v<s;v+=1)u(v)&&e.lazy.loadInSlide(v)}else{var y=t.children("."+i.slideNextClass);y.length>0&&e.lazy.loadInSlide(c(y));var b=t.children("."+i.slidePrevClass);b.length>0&&e.lazy.loadInSlide(c(b))}}},W={LinearSpline:function(e,t){var i,n,r,s,a;return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(a=function(e,t){for(n=-1,i=e.length;i-n>1;)e[r=i+n>>1]<=t?n=r:i=r;return i}(this.x,e),s=a-1,(e-this.x[s])*(this.y[a]-this.y[s])/(this.x[a]-this.x[s])+this.y[s]):0},this},getInterpolateFunction:function(e){this.controller.spline||(this.controller.spline=this.params.loop?new W.LinearSpline(this.slidesGrid,e.slidesGrid):new W.LinearSpline(this.snapGrid,e.snapGrid))},setTranslate:function(e,t){var i,n,r=this,s=r.controller.control;function a(e){var t=r.rtlTranslate?-r.translate:r.translate;"slide"===r.params.controller.by&&(r.controller.getInterpolateFunction(e),n=-r.controller.spline.interpolate(-t)),n&&"container"!==r.params.controller.by||(i=(e.maxTranslate()-e.minTranslate())/(r.maxTranslate()-r.minTranslate()),n=(t-r.minTranslate())*i+e.minTranslate()),r.params.controller.inverse&&(n=e.maxTranslate()-n),e.updateProgress(n),e.setTranslate(n,r),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(s))for(var o=0;o<s.length;o+=1)s[o]!==t&&s[o]instanceof P&&a(s[o]);else s instanceof P&&t!==s&&a(s)},setTransition:function(e,t){var i,n=this,r=n.controller.control;function s(t){t.setTransition(e,n),0!==e&&(t.transitionStart(),t.$wrapperEl.transitionEnd(function(){r&&(t.params.loop&&"slide"===n.params.controller.by&&t.loopFix(),t.transitionEnd())}))}if(Array.isArray(r))for(i=0;i<r.length;i+=1)r[i]!==t&&r[i]instanceof P&&s(r[i]);else r instanceof P&&t!==r&&s(r)}},q={makeElFocusable:function(e){return e.attr("tabIndex","0"),e},addElRole:function(e,t){return e.attr("role",t),e},addElLabel:function(e,t){return e.attr("aria-label",t),e},disableEl:function(e){return e.attr("aria-disabled",!0),e},enableEl:function(e){return e.attr("aria-disabled",!1),e},onEnterKey:function(e){var t=this.params.a11y;if(13===e.keyCode){var i=n(e.target);this.navigation&&this.navigation.$nextEl&&i.is(this.navigation.$nextEl)&&(this.isEnd&&!this.params.loop||this.slideNext(),this.isEnd?this.a11y.notify(t.lastSlideMessage):this.a11y.notify(t.nextSlideMessage)),this.navigation&&this.navigation.$prevEl&&i.is(this.navigation.$prevEl)&&(this.isBeginning&&!this.params.loop||this.slidePrev(),this.isBeginning?this.a11y.notify(t.firstSlideMessage):this.a11y.notify(t.prevSlideMessage)),this.pagination&&i.is("."+this.params.pagination.bulletClass)&&i[0].click()}},notify:function(e){var t=this.a11y.liveRegion;0!==t.length&&(t.html(""),t.html(e))},updateNavigation:function(){if(!this.params.loop){var e=this.navigation,t=e.$nextEl,i=e.$prevEl;i&&i.length>0&&(this.isBeginning?this.a11y.disableEl(i):this.a11y.enableEl(i)),t&&t.length>0&&(this.isEnd?this.a11y.disableEl(t):this.a11y.enableEl(t))}},updatePagination:function(){var e=this,t=e.params.a11y;e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.bullets.each(function(i,r){var s=n(r);e.a11y.makeElFocusable(s),e.a11y.addElRole(s,"button"),e.a11y.addElLabel(s,t.paginationBulletMessage.replace(/{{index}}/,s.index()+1))})},init:function(){this.$el.append(this.a11y.liveRegion);var e,t,i=this.params.a11y;this.navigation&&this.navigation.$nextEl&&(e=this.navigation.$nextEl),this.navigation&&this.navigation.$prevEl&&(t=this.navigation.$prevEl),e&&(this.a11y.makeElFocusable(e),this.a11y.addElRole(e,"button"),this.a11y.addElLabel(e,i.nextSlideMessage),e.on("keydown",this.a11y.onEnterKey)),t&&(this.a11y.makeElFocusable(t),this.a11y.addElRole(t,"button"),this.a11y.addElLabel(t,i.prevSlideMessage),t.on("keydown",this.a11y.onEnterKey)),this.pagination&&this.params.pagination.clickable&&this.pagination.bullets&&this.pagination.bullets.length&&this.pagination.$el.on("keydown","."+this.params.pagination.bulletClass,this.a11y.onEnterKey)},destroy:function(){var e,t;this.a11y.liveRegion&&this.a11y.liveRegion.length>0&&this.a11y.liveRegion.remove(),this.navigation&&this.navigation.$nextEl&&(e=this.navigation.$nextEl),this.navigation&&this.navigation.$prevEl&&(t=this.navigation.$prevEl),e&&e.off("keydown",this.a11y.onEnterKey),t&&t.off("keydown",this.a11y.onEnterKey),this.pagination&&this.params.pagination.clickable&&this.pagination.bullets&&this.pagination.bullets.length&&this.pagination.$el.off("keydown","."+this.params.pagination.bulletClass,this.a11y.onEnterKey)}},V={init:function(){if(this.params.history){if(!t.history||!t.history.pushState)return this.params.history.enabled=!1,void(this.params.hashNavigation.enabled=!0);var e=this.history;e.initialized=!0,e.paths=V.getPathValues(),(e.paths.key||e.paths.value)&&(e.scrollToSlide(0,e.paths.value,this.params.runCallbacksOnInit),this.params.history.replaceState||t.addEventListener("popstate",this.history.setHistoryPopState))}},destroy:function(){this.params.history.replaceState||t.removeEventListener("popstate",this.history.setHistoryPopState)},setHistoryPopState:function(){this.history.paths=V.getPathValues(),this.history.scrollToSlide(this.params.speed,this.history.paths.value,!1)},getPathValues:function(){var e=t.location.pathname.slice(1).split("/").filter(function(e){return""!==e}),i=e.length;return{key:e[i-2],value:e[i-1]}},setHistory:function(e,i){if(this.history.initialized&&this.params.history.enabled){var n=this.slides.eq(i),r=V.slugify(n.attr("data-history"));t.location.pathname.includes(e)||(r=e+"/"+r);var s=t.history.state;s&&s.value===r||(this.params.history.replaceState?t.history.replaceState({value:r},null,r):t.history.pushState({value:r},null,r))}},slugify:function(e){return e.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide:function(e,t,i){if(t)for(var n=0,r=this.slides.length;n<r;n+=1){var s=this.slides.eq(n);if(V.slugify(s.attr("data-history"))===t&&!s.hasClass(this.params.slideDuplicateClass)){var a=s.index();this.slideTo(a,e,i)}}else this.slideTo(0,e,i)}},U={onHashCange:function(){var t=e.location.hash.replace("#","");t!==this.slides.eq(this.activeIndex).attr("data-hash")&&this.slideTo(this.$wrapperEl.children("."+this.params.slideClass+'[data-hash="'+t+'"]').index())},setHash:function(){if(this.hashNavigation.initialized&&this.params.hashNavigation.enabled)if(this.params.hashNavigation.replaceState&&t.history&&t.history.replaceState)t.history.replaceState(null,null,"#"+this.slides.eq(this.activeIndex).attr("data-hash")||"");else{var i=this.slides.eq(this.activeIndex),n=i.attr("data-hash")||i.attr("data-history");e.location.hash=n||""}},init:function(){if(!(!this.params.hashNavigation.enabled||this.params.history&&this.params.history.enabled)){this.hashNavigation.initialized=!0;var i=e.location.hash.replace("#","");if(i)for(var r=0,s=this.slides.length;r<s;r+=1){var a=this.slides.eq(r);if((a.attr("data-hash")||a.attr("data-history"))===i&&!a.hasClass(this.params.slideDuplicateClass)){var o=a.index();this.slideTo(o,0,this.params.runCallbacksOnInit,!0)}}this.params.hashNavigation.watchState&&n(t).on("hashchange",this.hashNavigation.onHashCange)}},destroy:function(){this.params.hashNavigation.watchState&&n(t).off("hashchange",this.hashNavigation.onHashCange)}},G={run:function(){var e=this,t=e.slides.eq(e.activeIndex),i=e.params.autoplay.delay;t.attr("data-swiper-autoplay")&&(i=t.attr("data-swiper-autoplay")||e.params.autoplay.delay),e.autoplay.timeout=u.nextTick(function(){e.params.autoplay.reverseDirection?e.params.loop?(e.loopFix(),e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.isBeginning?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(e.slides.length-1,e.params.speed,!0,!0),e.emit("autoplay")):(e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.params.loop?(e.loopFix(),e.slideNext(e.params.speed,!0,!0),e.emit("autoplay")):e.isEnd?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(0,e.params.speed,!0,!0),e.emit("autoplay")):(e.slideNext(e.params.speed,!0,!0),e.emit("autoplay"))},i)},start:function(){return void 0===this.autoplay.timeout&&!this.autoplay.running&&(this.autoplay.running=!0,this.emit("autoplayStart"),this.autoplay.run(),!0)},stop:function(){return!!this.autoplay.running&&void 0!==this.autoplay.timeout&&(this.autoplay.timeout&&(clearTimeout(this.autoplay.timeout),this.autoplay.timeout=void 0),this.autoplay.running=!1,this.emit("autoplayStop"),!0)},pause:function(e){this.autoplay.running&&(this.autoplay.paused||(this.autoplay.timeout&&clearTimeout(this.autoplay.timeout),this.autoplay.paused=!0,0!==e&&this.params.autoplay.waitForTransition?(this.$wrapperEl[0].addEventListener("transitionend",this.autoplay.onTransitionEnd),this.$wrapperEl[0].addEventListener("webkitTransitionEnd",this.autoplay.onTransitionEnd)):(this.autoplay.paused=!1,this.autoplay.run())))}},X={setTranslate:function(){for(var e=this.slides,t=0;t<e.length;t+=1){var i=this.slides.eq(t),n=-i[0].swiperSlideOffset;this.params.virtualTranslate||(n-=this.translate);var r=0;this.isHorizontal()||(r=n,n=0);var s=this.params.fadeEffect.crossFade?Math.max(1-Math.abs(i[0].progress),0):1+Math.min(Math.max(i[0].progress,-1),0);i.css({opacity:s}).transform("translate3d("+n+"px, "+r+"px, 0px)")}},setTransition:function(e){var t=this,i=t.slides,n=t.$wrapperEl;if(i.transition(e),t.params.virtualTranslate&&0!==e){var r=!1;i.transitionEnd(function(){if(!r&&t&&!t.destroyed){r=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],i=0;i<e.length;i+=1)n.trigger(e[i])}})}}},K={setTranslate:function(){var e,t=this.$el,i=this.$wrapperEl,r=this.slides,s=this.width,a=this.height,o=this.rtlTranslate,l=this.size,u=this.params.cubeEffect,c=this.isHorizontal(),d=this.virtual&&this.params.virtual.enabled,h=0;u.shadow&&(c?(0===(e=i.find(".swiper-cube-shadow")).length&&(e=n('<div class="swiper-cube-shadow"></div>'),i.append(e)),e.css({height:s+"px"})):0===(e=t.find(".swiper-cube-shadow")).length&&(e=n('<div class="swiper-cube-shadow"></div>'),t.append(e)));for(var p=0;p<r.length;p+=1){var f=r.eq(p),m=p;d&&(m=parseInt(f.attr("data-swiper-slide-index"),10));var g=90*m,v=Math.floor(g/360);o&&(g=-g,v=Math.floor(-g/360));var y=Math.max(Math.min(f[0].progress,1),-1),b=0,w=0,T=0;m%4==0?(b=4*-v*l,T=0):(m-1)%4==0?(b=0,T=4*-v*l):(m-2)%4==0?(b=l+4*v*l,T=l):(m-3)%4==0&&(b=-l,T=3*l+4*l*v),o&&(b=-b),c||(w=b,b=0);var _="rotateX("+(c?0:-g)+"deg) rotateY("+(c?g:0)+"deg) translate3d("+b+"px, "+w+"px, "+T+"px)";if(y<=1&&y>-1&&(h=90*m+90*y,o&&(h=90*-m-90*y)),f.transform(_),u.slideShadows){var C=c?f.find(".swiper-slide-shadow-left"):f.find(".swiper-slide-shadow-top"),S=c?f.find(".swiper-slide-shadow-right"):f.find(".swiper-slide-shadow-bottom");0===C.length&&(C=n('<div class="swiper-slide-shadow-'+(c?"left":"top")+'"></div>'),f.append(C)),0===S.length&&(S=n('<div class="swiper-slide-shadow-'+(c?"right":"bottom")+'"></div>'),f.append(S)),C.length&&(C[0].style.opacity=Math.max(-y,0)),S.length&&(S[0].style.opacity=Math.max(y,0))}}if(i.css({"-webkit-transform-origin":"50% 50% -"+l/2+"px","-moz-transform-origin":"50% 50% -"+l/2+"px","-ms-transform-origin":"50% 50% -"+l/2+"px","transform-origin":"50% 50% -"+l/2+"px"}),u.shadow)if(c)e.transform("translate3d(0px, "+(s/2+u.shadowOffset)+"px, "+-s/2+"px) rotateX(90deg) rotateZ(0deg) scale("+u.shadowScale+")");else{var E=Math.abs(h)-90*Math.floor(Math.abs(h)/90),P=1.5-(Math.sin(2*E*Math.PI/360)/2+Math.cos(2*E*Math.PI/360)/2),I=u.shadowScale,k=u.shadowScale/P,j=u.shadowOffset;e.transform("scale3d("+I+", 1, "+k+") translate3d(0px, "+(a/2+j)+"px, "+-a/2/k+"px) rotateX(-90deg)")}var D=x.isSafari||x.isUiWebView?-l/2:0;i.transform("translate3d(0px,0,"+D+"px) rotateX("+(this.isHorizontal()?0:h)+"deg) rotateY("+(this.isHorizontal()?-h:0)+"deg)")},setTransition:function(e){var t=this.$el;this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),this.params.cubeEffect.shadow&&!this.isHorizontal()&&t.find(".swiper-cube-shadow").transition(e)}},Z={setTranslate:function(){for(var e=this.slides,t=this.rtlTranslate,i=0;i<e.length;i+=1){var r=e.eq(i),s=r[0].progress;this.params.flipEffect.limitRotation&&(s=Math.max(Math.min(r[0].progress,1),-1));var a=-180*s,o=0,l=-r[0].swiperSlideOffset,u=0;if(this.isHorizontal()?t&&(a=-a):(u=l,l=0,o=-a,a=0),r[0].style.zIndex=-Math.abs(Math.round(s))+e.length,this.params.flipEffect.slideShadows){var c=this.isHorizontal()?r.find(".swiper-slide-shadow-left"):r.find(".swiper-slide-shadow-top"),d=this.isHorizontal()?r.find(".swiper-slide-shadow-right"):r.find(".swiper-slide-shadow-bottom");0===c.length&&(c=n('<div class="swiper-slide-shadow-'+(this.isHorizontal()?"left":"top")+'"></div>'),r.append(c)),0===d.length&&(d=n('<div class="swiper-slide-shadow-'+(this.isHorizontal()?"right":"bottom")+'"></div>'),r.append(d)),c.length&&(c[0].style.opacity=Math.max(-s,0)),d.length&&(d[0].style.opacity=Math.max(s,0))}r.transform("translate3d("+l+"px, "+u+"px, 0px) rotateX("+o+"deg) rotateY("+a+"deg)")}},setTransition:function(e){var t=this,i=t.slides,n=t.activeIndex,r=t.$wrapperEl;if(i.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.virtualTranslate&&0!==e){var s=!1;i.eq(n).transitionEnd(function(){if(!s&&t&&!t.destroyed){s=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],i=0;i<e.length;i+=1)r.trigger(e[i])}})}}},J={setTranslate:function(){for(var e=this.width,t=this.height,i=this.slides,r=this.$wrapperEl,s=this.slidesSizesGrid,a=this.params.coverflowEffect,o=this.isHorizontal(),l=this.translate,u=o?e/2-l:t/2-l,d=o?a.rotate:-a.rotate,h=a.depth,p=0,f=i.length;p<f;p+=1){var m=i.eq(p),g=s[p],v=(u-m[0].swiperSlideOffset-g/2)/g*a.modifier,y=o?d*v:0,b=o?0:d*v,w=-h*Math.abs(v),T=o?0:a.stretch*v,_=o?a.stretch*v:0;Math.abs(_)<.001&&(_=0),Math.abs(T)<.001&&(T=0),Math.abs(w)<.001&&(w=0),Math.abs(y)<.001&&(y=0),Math.abs(b)<.001&&(b=0);var x="translate3d("+_+"px,"+T+"px,"+w+"px)  rotateX("+b+"deg) rotateY("+y+"deg)";if(m.transform(x),m[0].style.zIndex=1-Math.abs(Math.round(v)),a.slideShadows){var C=o?m.find(".swiper-slide-shadow-left"):m.find(".swiper-slide-shadow-top"),S=o?m.find(".swiper-slide-shadow-right"):m.find(".swiper-slide-shadow-bottom");0===C.length&&(C=n('<div class="swiper-slide-shadow-'+(o?"left":"top")+'"></div>'),m.append(C)),0===S.length&&(S=n('<div class="swiper-slide-shadow-'+(o?"right":"bottom")+'"></div>'),m.append(S)),C.length&&(C[0].style.opacity=v>0?v:0),S.length&&(S[0].style.opacity=-v>0?-v:0)}}(c.pointerEvents||c.prefixedPointerEvents)&&(r[0].style.perspectiveOrigin=u+"px 50%")},setTransition:function(e){this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}},ee=[I,k,j,D,Y,O,L,{name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarged:"container"}},create:function(){u.extend(this,{mousewheel:{enabled:!1,enable:Q.enable.bind(this),disable:Q.disable.bind(this),handle:Q.handle.bind(this),handleMouseEnter:Q.handleMouseEnter.bind(this),handleMouseLeave:Q.handleMouseLeave.bind(this),lastScrollTime:u.now()}})},on:{init:function(){this.params.mousewheel.enabled&&this.mousewheel.enable()},destroy:function(){this.mousewheel.enabled&&this.mousewheel.disable()}}},{name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create:function(){u.extend(this,{navigation:{init:N.init.bind(this),update:N.update.bind(this),destroy:N.destroy.bind(this)}})},on:{init:function(){this.navigation.init(),this.navigation.update()},toEdge:function(){this.navigation.update()},fromEdge:function(){this.navigation.update()},destroy:function(){this.navigation.destroy()},click:function(e){var t=this.navigation,i=t.$nextEl,r=t.$prevEl;!this.params.navigation.hideOnClick||n(e.target).is(r)||n(e.target).is(i)||(i&&i.toggleClass(this.params.navigation.hiddenClass),r&&r.toggleClass(this.params.navigation.hiddenClass))}}},{name:"pagination",params:{pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",progressbarOppositeClass:"swiper-pagination-progressbar-opposite",clickableClass:"swiper-pagination-clickable",lockClass:"swiper-pagination-lock"}},create:function(){u.extend(this,{pagination:{init:B.init.bind(this),render:B.render.bind(this),update:B.update.bind(this),destroy:B.destroy.bind(this),dynamicBulletIndex:0}})},on:{init:function(){this.pagination.init(),this.pagination.render(),this.pagination.update()},activeIndexChange:function(){this.params.loop?this.pagination.update():void 0===this.snapIndex&&this.pagination.update()},snapIndexChange:function(){this.params.loop||this.pagination.update()},slidesLengthChange:function(){this.params.loop&&(this.pagination.render(),this.pagination.update())},snapGridLengthChange:function(){this.params.loop||(this.pagination.render(),this.pagination.update())},destroy:function(){this.pagination.destroy()},click:function(e){this.params.pagination.el&&this.params.pagination.hideOnClick&&this.pagination.$el.length>0&&!n(e.target).hasClass(this.params.pagination.bulletClass)&&this.pagination.$el.toggleClass(this.params.pagination.hiddenClass)}}},{name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create:function(){u.extend(this,{scrollbar:{init:H.init.bind(this),destroy:H.destroy.bind(this),updateSize:H.updateSize.bind(this),setTranslate:H.setTranslate.bind(this),setTransition:H.setTransition.bind(this),enableDraggable:H.enableDraggable.bind(this),disableDraggable:H.disableDraggable.bind(this),setDragPosition:H.setDragPosition.bind(this),onDragStart:H.onDragStart.bind(this),onDragMove:H.onDragMove.bind(this),onDragEnd:H.onDragEnd.bind(this),isTouched:!1,timeout:null,dragTimeout:null}})},on:{init:function(){this.scrollbar.init(),this.scrollbar.updateSize(),this.scrollbar.setTranslate()},update:function(){this.scrollbar.updateSize()},resize:function(){this.scrollbar.updateSize()},observerUpdate:function(){this.scrollbar.updateSize()},setTranslate:function(){this.scrollbar.setTranslate()},setTransition:function(e){this.scrollbar.setTransition(e)},destroy:function(){this.scrollbar.destroy()}}},{name:"parallax",params:{parallax:{enabled:!1}},create:function(){u.extend(this,{parallax:{setTransform:F.setTransform.bind(this),setTranslate:F.setTranslate.bind(this),setTransition:F.setTransition.bind(this)}})},on:{beforeInit:function(){this.params.parallax.enabled&&(this.params.watchSlidesProgress=!0)},init:function(){this.params.parallax&&this.parallax.setTranslate()},setTranslate:function(){this.params.parallax&&this.parallax.setTranslate()},setTransition:function(e){this.params.parallax&&this.parallax.setTransition(e)}}},{name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create:function(){var e=this,t={enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}};"onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out".split(" ").forEach(function(i){t[i]=R[i].bind(e)}),u.extend(e,{zoom:t})},on:{init:function(){this.params.zoom.enabled&&this.zoom.enable()},destroy:function(){this.zoom.disable()},touchStart:function(e){this.zoom.enabled&&this.zoom.onTouchStart(e)},touchEnd:function(e){this.zoom.enabled&&this.zoom.onTouchEnd(e)},doubleTap:function(e){this.params.zoom.enabled&&this.zoom.enabled&&this.params.zoom.toggle&&this.zoom.toggle(e)},transitionEnd:function(){this.zoom.enabled&&this.params.zoom.enabled&&this.zoom.onTransitionEnd()}}},{name:"lazy",params:{lazy:{enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create:function(){u.extend(this,{lazy:{initialImageLoaded:!1,load:$.load.bind(this),loadInSlide:$.loadInSlide.bind(this)}})},on:{beforeInit:function(){this.params.lazy.enabled&&this.params.preloadImages&&(this.params.preloadImages=!1)},init:function(){this.params.lazy.enabled&&!this.params.loop&&0===this.params.initialSlide&&this.lazy.load()},scroll:function(){this.params.freeMode&&!this.params.freeModeSticky&&this.lazy.load()},resize:function(){this.params.lazy.enabled&&this.lazy.load()},scrollbarDragMove:function(){this.params.lazy.enabled&&this.lazy.load()},transitionStart:function(){this.params.lazy.enabled&&(this.params.lazy.loadOnTransitionStart||!this.params.lazy.loadOnTransitionStart&&!this.lazy.initialImageLoaded)&&this.lazy.load()},transitionEnd:function(){this.params.lazy.enabled&&!this.params.lazy.loadOnTransitionStart&&this.lazy.load()}}},{name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create:function(){u.extend(this,{controller:{control:this.params.controller.control,getInterpolateFunction:W.getInterpolateFunction.bind(this),setTranslate:W.setTranslate.bind(this),setTransition:W.setTransition.bind(this)}})},on:{update:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},resize:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},observerUpdate:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},setTranslate:function(e,t){this.controller.control&&this.controller.setTranslate(e,t)},setTransition:function(e,t){this.controller.control&&this.controller.setTransition(e,t)}}},{name:"a11y",params:{a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}"}},create:function(){var e=this;u.extend(e,{a11y:{liveRegion:n('<span class="'+e.params.a11y.notificationClass+'" aria-live="assertive" aria-atomic="true"></span>')}}),Object.keys(q).forEach(function(t){e.a11y[t]=q[t].bind(e)})},on:{init:function(){this.params.a11y.enabled&&(this.a11y.init(),this.a11y.updateNavigation())},toEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},fromEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},paginationUpdate:function(){this.params.a11y.enabled&&this.a11y.updatePagination()},destroy:function(){this.params.a11y.enabled&&this.a11y.destroy()}}},{name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create:function(){u.extend(this,{history:{init:V.init.bind(this),setHistory:V.setHistory.bind(this),setHistoryPopState:V.setHistoryPopState.bind(this),scrollToSlide:V.scrollToSlide.bind(this),destroy:V.destroy.bind(this)}})},on:{init:function(){this.params.history.enabled&&this.history.init()},destroy:function(){this.params.history.enabled&&this.history.destroy()},transitionEnd:function(){this.history.initialized&&this.history.setHistory(this.params.history.key,this.activeIndex)}}},{name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create:function(){u.extend(this,{hashNavigation:{initialized:!1,init:U.init.bind(this),destroy:U.destroy.bind(this),setHash:U.setHash.bind(this),onHashCange:U.onHashCange.bind(this)}})},on:{init:function(){this.params.hashNavigation.enabled&&this.hashNavigation.init()},destroy:function(){this.params.hashNavigation.enabled&&this.hashNavigation.destroy()},transitionEnd:function(){this.hashNavigation.initialized&&this.hashNavigation.setHash()}}},{name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create:function(){var e=this;u.extend(e,{autoplay:{running:!1,paused:!1,run:G.run.bind(e),start:G.start.bind(e),stop:G.stop.bind(e),pause:G.pause.bind(e),onTransitionEnd:function(t){e&&!e.destroyed&&e.$wrapperEl&&t.target===this&&(e.$wrapperEl[0].removeEventListener("transitionend",e.autoplay.onTransitionEnd),e.$wrapperEl[0].removeEventListener("webkitTransitionEnd",e.autoplay.onTransitionEnd),e.autoplay.paused=!1,e.autoplay.running?e.autoplay.run():e.autoplay.stop())}}})},on:{init:function(){this.params.autoplay.enabled&&this.autoplay.start()},beforeTransitionStart:function(e,t){this.autoplay.running&&(t||!this.params.autoplay.disableOnInteraction?this.autoplay.pause(e):this.autoplay.stop())},sliderFirstMove:function(){this.autoplay.running&&(this.params.autoplay.disableOnInteraction?this.autoplay.stop():this.autoplay.pause())},destroy:function(){this.autoplay.running&&this.autoplay.stop()}}},{name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create:function(){u.extend(this,{fadeEffect:{setTranslate:X.setTranslate.bind(this),setTransition:X.setTransition.bind(this)}})},on:{beforeInit:function(){if("fade"===this.params.effect){this.classNames.push(this.params.containerModifierClass+"fade");var e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};u.extend(this.params,e),u.extend(this.originalParams,e)}},setTranslate:function(){"fade"===this.params.effect&&this.fadeEffect.setTranslate()},setTransition:function(e){"fade"===this.params.effect&&this.fadeEffect.setTransition(e)}}},{name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create:function(){u.extend(this,{cubeEffect:{setTranslate:K.setTranslate.bind(this),setTransition:K.setTransition.bind(this)}})},on:{beforeInit:function(){if("cube"===this.params.effect){this.classNames.push(this.params.containerModifierClass+"cube"),this.classNames.push(this.params.containerModifierClass+"3d");var e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};u.extend(this.params,e),u.extend(this.originalParams,e)}},setTranslate:function(){"cube"===this.params.effect&&this.cubeEffect.setTranslate()},setTransition:function(e){"cube"===this.params.effect&&this.cubeEffect.setTransition(e)}}},{name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create:function(){u.extend(this,{flipEffect:{setTranslate:Z.setTranslate.bind(this),setTransition:Z.setTransition.bind(this)}})},on:{beforeInit:function(){if("flip"===this.params.effect){this.classNames.push(this.params.containerModifierClass+"flip"),this.classNames.push(this.params.containerModifierClass+"3d");var e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};u.extend(this.params,e),u.extend(this.originalParams,e)}},setTranslate:function(){"flip"===this.params.effect&&this.flipEffect.setTranslate()},setTransition:function(e){"flip"===this.params.effect&&this.flipEffect.setTransition(e)}}},{name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}},create:function(){u.extend(this,{coverflowEffect:{setTranslate:J.setTranslate.bind(this),setTransition:J.setTransition.bind(this)}})},on:{beforeInit:function(){"coverflow"===this.params.effect&&(this.classNames.push(this.params.containerModifierClass+"coverflow"),this.classNames.push(this.params.containerModifierClass+"3d"),this.params.watchSlidesProgress=!0,this.originalParams.watchSlidesProgress=!0)},setTranslate:function(){"coverflow"===this.params.effect&&this.coverflowEffect.setTranslate()},setTransition:function(e){"coverflow"===this.params.effect&&this.coverflowEffect.setTransition(e)}}}];return void 0===P.use&&(P.use=P.Class.use,P.installModule=P.Class.installModule),P.use(ee),P}),function(e,t){var i,n,r,s,a,o,l,u,c,d,h,p,f,m=Array.prototype.slice,g=decodeURIComponent,v=e.param,y=e.bbq=e.bbq||{},b=e.event.special,w="hashchange",T="querystring",_="fragment",x="elemUrlAttr",C="href",S="src",E=/^.*\?|#.*$/g,P={};function I(e){return"string"==typeof e}function k(e){var t=m.call(arguments,1);return function(){return e.apply(this,t.concat(m.call(arguments)))}}function j(t,r,a,o,l){var u,p,m,v,y;return o!==i?(y=(m=a.match(t?d:/^([^#?]*)\??([^#]*)(#?.*)/))[3]||"",2===l&&I(o)?p=o.replace(t?c:E,""):(v=s(m[2]),o=I(o)?s[t?_:T](o):o,p=2===l?o:1===l?e.extend({},o,v):e.extend({},v,o),p=n(p),t&&(p=p.replace(h,g))),u=m[1]+(t?f:p||!m[1]?"?":"")+p+y):u=r(a!==i?a:location.href),u}function D(e,t,n){return t===i||"boolean"==typeof t?(n=t,t=v[e?_:T]()):t=I(t)?t.replace(e?c:E,""):t,s(t,n)}function A(t,n,r,s){return I(r)||"object"==typeof r||(s=r,r=n,n=i),this.each(function(){var i=e(this),a=n||u()[(this.nodeName||"").toLowerCase()]||"",o=a&&i.attr(a)||"";i.attr(a,v[t](o,r,s))})}v[T]=k(j,0,function(e){return e.replace(/(?:^[^?#]*\?([^#]*).*$)?.*/,"$1")}),v[_]=r=k(j,1,function(e){return e.replace(d,"$2")}),v.sorted=n=function(t,i){var n=[],r={};return e.each(v(t,i).split("&"),function(e,t){var i=t.replace(/(?:%5B|=).*$/,""),s=r[i];s||(s=r[i]=[],n.push(i)),s.push(t)}),e.map(n.sort(),function(e){return r[e]}).join("&")},r.noEscape=function(t){t=t||"";var i=e.map(t.split(""),encodeURIComponent);h=new RegExp(i.join("|"),"g")},r.noEscape(",/"),r.ajaxCrawlable=function(e){return e!==i&&(e?(c=/^.*(?:#!|#)/,d=/^([^#]*)(?:#!|#)?(.*)$/,f="#!"):(c=/^.*#/,d=/^([^#]*)#?(.*)$/,f="#"),p=!!e),p},r.ajaxCrawlable(0),e.deparam=s=function(t,n){var r={},s={true:!0,false:!1,null:null};return e.each(t.replace(/\+/g," ").split("&"),function(t,a){var o,l=a.split("="),u=g(l[0]),c=r,d=0,h=u.split("]["),p=h.length-1;if(/\[/.test(h[0])&&/\]$/.test(h[p])?(h[p]=h[p].replace(/\]$/,""),p=(h=h.shift().split("[").concat(h)).length-1):p=0,2===l.length)if(o=g(l[1]),n&&(o=o&&!isNaN(o)?+o:"undefined"===o?i:s[o]!==i?s[o]:o),p)for(;d<=p;d++)c=c[u=""===h[d]?c.length:h[d]]=d<p?c[u]||(h[d+1]&&isNaN(h[d+1])?{}:[]):o;else e.isArray(r[u])?r[u].push(o):r[u]!==i?r[u]=[r[u],o]:r[u]=o;else u&&(r[u]=n?i:"")}),r},s[T]=k(D,0),s[_]=a=k(D,1),e[x]||(e[x]=function(t){return e.extend(P,t)})({a:C,base:C,iframe:S,img:S,input:S,form:"action",link:C,script:S}),u=e[x],e.fn[T]=k(A,T),e.fn[_]=k(A,_),y.pushState=o=function(e,t){I(e)&&/^#/.test(e)&&t===i&&(t=2);var n=e!==i,s=r(location.href,n?e:{},n?t:2);location.href=s},y.getState=l=function(e,t){return e===i||"boolean"==typeof e?a(e):a(t)[e]},y.removeState=function(t){var n={};t!==i&&(n=l(),e.each(e.isArray(t)?t:arguments,function(e,t){delete n[t]})),o(n,2)},b[w]=e.extend(b[w],{add:function(t){var n;function a(e){var t=e[_]=r();e.getState=function(e,n){return e===i||"boolean"==typeof e?s(t,e):s(t,n)[e]},n.apply(this,arguments)}if(e.isFunction(t))return n=t,a;n=t.handler,t.handler=a}})}(jQuery),function(e,t,i){function n(e){return"#"+(e=e||location.href).replace(/^[^#]*#?(.*)$/,"$1")}var r,s="hashchange",a=document,o=e.event.special,l=a.documentMode,u="on"+s in t&&(l===i||l>7);e.fn[s]=function(e){return e?this.bind(s,e):this.trigger(s)},e.fn[s].delay=50,o[s]=e.extend(o[s],{setup:function(){if(u)return!1;e(r.start)},teardown:function(){if(u)return!1;e(r.stop)}}),r=function(){function r(){var i=n(),a=p(c);i!==c?(h(c=i,a),e(t).trigger(s)):a!==c&&(location.href=location.href.replace(/#.*/,"")+a),o=setTimeout(r,e.fn[s].delay)}var o,l={},c=n(),d=function(e){return e},h=d,p=d;return l.start=function(){o||r()},l.stop=function(){o&&clearTimeout(o),o=i},"Microsoft Internet Explorer"===navigator.appName&&!u&&function(){var t,i;l.start=function(){t||(i=(i=e.fn[s].src)&&i+n(),t=e('<iframe tabindex="-1" title="empty"/>').hide().one("load",function(){i||h(n()),r()}).attr("src",i||"javascript:0").insertAfter("body")[0].contentWindow,a.onpropertychange=function(){try{"title"===event.propertyName&&(t.document.title=a.title)}catch(e){}})},l.stop=d,p=function(){return n(t.location.href)},h=function(i,n){var r=t.document,o=e.fn[s].domain;i!==n&&(r.title=a.title,r.open(),o&&r.write('<script>document.domain="'+o+'"<\/script>'),r.close(),t.location.hash=i)}}(),l}()}(jQuery,this),function(e){e.fn.scwStickySidebar=function(t){function i(t,i){return!0===t.initialized||!(e("body").width()<t.minWidth)&&(function(t,i){t.initialized=!0,0===e("#scw-sticky-sidebar-stylesheet-"+t.namespace).length&&e("head").append(e('<style id="scw-sticky-sidebar-stylesheet-'+t.namespace+'">.scwStickySidebar:after {content: ""; display: table; clear: both;}</style>')),i.each(function(){function i(){r.fixedScrollTop=0,r.sidebar.css({"min-height":"1px"}),r.stickySidebar.css({position:"static",width:"",transform:"none"})}var r={};if(r.sidebar=e(this),r.options=t||{},r.container=e(r.options.containerSelector),0==r.container.length&&(r.container=r.sidebar.parent()),r.sidebar.parents().css("-webkit-transform","none"),r.sidebar.css({position:r.options.defaultPosition,overflow:"visible","-webkit-box-sizing":"border-box","-moz-box-sizing":"border-box","box-sizing":"border-box"}),r.stickySidebar=r.sidebar.find(".scwStickySidebar"),0==r.stickySidebar.length){var s=/(?:text|application)\/(?:x-)?(?:javascript|ecmascript)/i;r.sidebar.find("script").filter(function(e,t){return 0===t.type.length||t.type.match(s)}).remove(),r.stickySidebar=e("<div>").addClass("scwStickySidebar").append(r.sidebar.children()),r.sidebar.append(r.stickySidebar)}r.marginBottom=parseInt(r.sidebar.css("margin-bottom")),r.paddingTop=parseInt(r.sidebar.css("padding-top")),r.paddingBottom=parseInt(r.sidebar.css("padding-bottom"));var a=r.stickySidebar.offset().top,o=r.stickySidebar.outerHeight();r.stickySidebar.css("padding-top",1),r.stickySidebar.css("padding-bottom",1),a-=r.stickySidebar.offset().top,o=r.stickySidebar.outerHeight()-o-a,0==a?(r.stickySidebar.css("padding-top",0),r.stickySidebarPaddingTop=0):r.stickySidebarPaddingTop=1,0==o?(r.stickySidebar.css("padding-bottom",0),r.stickySidebarPaddingBottom=0):r.stickySidebarPaddingBottom=1,r.previousScrollTop=null,r.fixedScrollTop=0,i(),r.onScroll=function(r){if(r.stickySidebar.is(":visible")){if(e("body").width()<r.options.minWidth)return void i();if(r.options.disableOnResponsiveLayouts){var s=r.sidebar.outerWidth("none"==r.sidebar.css("float"));if(s+50>r.container.width())return void i()}var a=e(document).scrollTop(),o="static";if(a>=r.sidebar.offset().top+(r.paddingTop-r.options.additionalMarginTop)){var l,u=r.paddingTop+t.additionalMarginTop,c=r.paddingBottom+r.marginBottom+t.additionalMarginBottom,d=r.sidebar.offset().top,h=r.sidebar.offset().top+function(t){var i=t.height();return t.children().each(function(){i=Math.max(i,e(this).height())}),i}(r.container),p=0+t.additionalMarginTop,f=r.stickySidebar.outerHeight()+u+c<e(window).height();l=f?p+r.stickySidebar.outerHeight():e(window).height()-r.marginBottom-r.paddingBottom-t.additionalMarginBottom;var m=d-a+r.paddingTop,g=h-a-r.paddingBottom-r.marginBottom,v=r.stickySidebar.offset().top-a,y=r.previousScrollTop-a;"fixed"==r.stickySidebar.css("position")&&"modern"==r.options.sidebarBehavior&&(v+=y),"stick-to-top"==r.options.sidebarBehavior&&(v=t.additionalMarginTop),"stick-to-bottom"==r.options.sidebarBehavior&&(v=l-r.stickySidebar.outerHeight()),v=y>0?Math.min(v,p):Math.max(v,l-r.stickySidebar.outerHeight()),v=Math.max(v,m),v=Math.min(v,g-r.stickySidebar.outerHeight());var b=r.container.height()==r.stickySidebar.outerHeight();o=!b&&v==p||!b&&v==l-r.stickySidebar.outerHeight()?"fixed":a+v-r.sidebar.offset().top-r.paddingTop<=t.additionalMarginTop?"static":"absolute"}if("fixed"==o){var w=e(document).scrollLeft();r.stickySidebar.css({position:"fixed",width:n(r.stickySidebar)+"px",transform:"translateY("+v+"px)",left:r.sidebar.offset().left+parseInt(r.sidebar.css("padding-left"))-w+"px",top:"0px"})}else if("absolute"==o){var T={};"absolute"!=r.stickySidebar.css("position")&&(T.position="absolute",T.transform="translateY("+(a+v-r.sidebar.offset().top-r.stickySidebarPaddingTop-r.stickySidebarPaddingBottom)+"px)",T.top="0px"),T.width=n(r.stickySidebar)+"px",T.left="",r.stickySidebar.css(T)}else"static"==o&&i();"static"!=o&&1==r.options.updateSidebarHeight&&r.sidebar.css({"min-height":r.stickySidebar.outerHeight()+r.stickySidebar.offset().top-r.sidebar.offset().top+r.paddingBottom}),r.previousScrollTop=a}},r.onScroll(r),e(document).on("scroll."+r.options.namespace,function(e){return function(){e.onScroll(e)}}(r)),e(window).on("resize."+r.options.namespace,function(e){return function(){e.stickySidebar.css({position:"static"}),e.onScroll(e)}}(r)),"undefined"!=typeof ResizeSensor&&new ResizeSensor(r.stickySidebar[0],function(e){return function(){e.onScroll(e)}}(r))})}(t,i),!0)}function n(e){var t;try{t=e[0].getBoundingClientRect().width}catch(e){}return void 0===t&&(t=e.width()),t}return(t=e.extend({containerSelector:"",additionalMarginTop:0,additionalMarginBottom:0,updateSidebarHeight:!0,minWidth:0,disableOnResponsiveLayouts:!0,sidebarBehavior:"modern",defaultPosition:"relative",namespace:"TSS"},t)).additionalMarginTop=parseInt(t.additionalMarginTop)||0,t.additionalMarginBottom=parseInt(t.additionalMarginBottom)||0,function(t,n){i(t,n)||(console.log("TSS: Body width smaller than options.minWidth. Init is delayed."),e(document).on("scroll."+t.namespace,function(t,n){return function(r){i(t,n)&&e(this).unbind(r)}}(t,n)),e(window).on("resize."+t.namespace,function(t,n){return function(r){i(t,n)&&e(this).unbind(r)}}(t,n)))}(t,this),this}}(jQuery),function(){var e=function(t,i){function n(){var e,t;this.q=[],this.add=function(e){this.q.push(e)},this.call=function(){for(e=0,t=this.q.length;e<t;e++)this.q[e].call()}}function r(e,t){if(e.resizedAttached){if(e.resizedAttached)return void e.resizedAttached.add(t)}else e.resizedAttached=new n,e.resizedAttached.add(t);e.resizeSensor=document.createElement("div"),e.resizeSensor.className="resize-sensor";var i="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;",r="position: absolute; left: 0; top: 0; transition: 0s;";e.resizeSensor.style.cssText=i,e.resizeSensor.innerHTML='<div class="resize-sensor-expand" style="'+i+'"><div style="'+r+'"></div></div><div class="resize-sensor-shrink" style="'+i+'"><div style="'+r+' width: 200%; height: 200%"></div></div>',e.appendChild(e.resizeSensor),{fixed:1,absolute:1}[function(e,t){return e.currentStyle?e.currentStyle[t]:window.getComputedStyle?window.getComputedStyle(e,null).getPropertyValue(t):e.style[t]}(e,"position")]||(e.style.position="relative");var s,a,o=e.resizeSensor.childNodes[0],l=o.childNodes[0],u=e.resizeSensor.childNodes[1],c=(u.childNodes[0],function(){l.style.width=o.offsetWidth+10+"px",l.style.height=o.offsetHeight+10+"px",o.scrollLeft=o.scrollWidth,o.scrollTop=o.scrollHeight,u.scrollLeft=u.scrollWidth,u.scrollTop=u.scrollHeight,s=e.offsetWidth,a=e.offsetHeight});c();var d=function(e,t,i){e.attachEvent?e.attachEvent("on"+t,i):e.addEventListener(t,i)},h=function(){e.offsetWidth==s&&e.offsetHeight==a||e.resizedAttached&&e.resizedAttached.call(),c()};d(o,"scroll",h),d(u,"scroll",h)}var s=Object.prototype.toString.call(t),a="[object Array]"===s||"[object NodeList]"===s||"[object HTMLCollection]"===s||"undefined"!=typeof jQuery&&t instanceof jQuery||"undefined"!=typeof Elements&&t instanceof Elements;if(a)for(var o=0,l=t.length;o<l;o++)r(t[o],i);else r(t,i);this.detach=function(){if(a)for(var i=0,n=t.length;i<n;i++)e.detach(t[i]);else e.detach(t)}};e.detach=function(e){e.resizeSensor&&(e.removeChild(e.resizeSensor),delete e.resizeSensor,delete e.resizedAttached)},"undefined"!=typeof module&&void 0!==module.exports?module.exports=e:window.ResizeSensor=e}(),function(e,t){function i(e,t,i){var n=c[t.type]||{};return null==e?i||!t.def?null:t.def:(e=n.floor?~~e:parseFloat(e),isNaN(e)?t.def:n.mod?(e+n.mod)%n.mod:0>e?0:n.max<e?n.max:e)}function n(t){var i=l(),n=i._rgba=[];return t=t.toLowerCase(),p(o,function(e,r){var s,a=r.re.exec(t),o=a&&r.parse(a),l=r.space||"rgba";return o?(s=i[l](o),i[u[l].cache]=s[u[l].cache],n=i._rgba=s._rgba,!1):void 0}),n.length?("0,0,0,0"===n.join()&&e.extend(n,s.transparent),i):s[t]}function r(e,t,i){return 1>6*(i=(i+1)%1)?e+(t-e)*i*6:1>2*i?t:2>3*i?e+(t-e)*(2/3-i)*6:e}var s,a=/^([\-+])=\s*(\d+\.?\d*)/,o=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[e[1],e[2],e[3],e[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[2.55*e[1],2.55*e[2],2.55*e[3],e[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(e){return[e[1],e[2]/100,e[3]/100,e[4]]}}],l=e.Color=function(t,i,n,r){return new e.Color.fn.parse(t,i,n,r)},u={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},c={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},d=l.support={},h=e("<p>")[0],p=e.each;h.style.cssText="background-color:rgba(1,1,1,.5)",d.rgba=h.style.backgroundColor.indexOf("rgba")>-1,p(u,function(e,t){t.cache="_"+e,t.props.alpha={idx:3,type:"percent",def:1}}),l.fn=e.extend(l.prototype,{parse:function(r,a,o,c){if(r===t)return this._rgba=[null,null,null,null],this;(r.jquery||r.nodeType)&&(r=e(r).css(a),a=t);var d=this,h=e.type(r),f=this._rgba=[];return a!==t&&(r=[r,a,o,c],h="array"),"string"===h?this.parse(n(r)||s._default):"array"===h?(p(u.rgba.props,function(e,t){f[t.idx]=i(r[t.idx],t)}),this):"object"===h?(p(u,r instanceof l?function(e,t){r[t.cache]&&(d[t.cache]=r[t.cache].slice())}:function(t,n){var s=n.cache;p(n.props,function(e,t){if(!d[s]&&n.to){if("alpha"===e||null==r[e])return;d[s]=n.to(d._rgba)}d[s][t.idx]=i(r[e],t,!0)}),d[s]&&e.inArray(null,d[s].slice(0,3))<0&&(d[s][3]=1,n.from&&(d._rgba=n.from(d[s])))}),this):void 0},is:function(e){var t=l(e),i=!0,n=this;return p(u,function(e,r){var s,a=t[r.cache];return a&&(s=n[r.cache]||r.to&&r.to(n._rgba)||[],p(r.props,function(e,t){return null!=a[t.idx]?i=a[t.idx]===s[t.idx]:void 0})),i}),i},_space:function(){var e=[],t=this;return p(u,function(i,n){t[n.cache]&&e.push(i)}),e.pop()},transition:function(e,t){var n=l(e),r=n._space(),s=u[r],a=0===this.alpha()?l("transparent"):this,o=a[s.cache]||s.to(a._rgba),d=o.slice();return n=n[s.cache],p(s.props,function(e,r){var s=r.idx,a=o[s],l=n[s],u=c[r.type]||{};null!==l&&(null===a?d[s]=l:(u.mod&&(l-a>u.mod/2?a+=u.mod:a-l>u.mod/2&&(a-=u.mod)),d[s]=i((l-a)*t+a,r)))}),this[r](d)},blend:function(t){if(1===this._rgba[3])return this;var i=this._rgba.slice(),n=i.pop(),r=l(t)._rgba;return l(e.map(i,function(e,t){return(1-n)*r[t]+n*e}))},toRgbaString:function(){var t="rgba(",i=e.map(this._rgba,function(e,t){return null==e?t>2?1:0:e});return 1===i[3]&&(i.pop(),t="rgb("),t+i.join()+")"},toHslaString:function(){var t="hsla(",i=e.map(this.hsla(),function(e,t){return null==e&&(e=t>2?1:0),t&&3>t&&(e=Math.round(100*e)+"%"),e});return 1===i[3]&&(i.pop(),t="hsl("),t+i.join()+")"},toHexString:function(t){var i=this._rgba.slice(),n=i.pop();return t&&i.push(~~(255*n)),"#"+e.map(i,function(e){return 1===(e=(e||0).toString(16)).length?"0"+e:e}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),l.fn.parse.prototype=l.fn,u.hsla.to=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t,i,n=e[0]/255,r=e[1]/255,s=e[2]/255,a=e[3],o=Math.max(n,r,s),l=Math.min(n,r,s),u=o-l,c=o+l,d=.5*c;return t=l===o?0:n===o?60*(r-s)/u+360:r===o?60*(s-n)/u+120:60*(n-r)/u+240,i=0===u?0:.5>=d?u/c:u/(2-c),[Math.round(t)%360,i,d,null==a?1:a]},u.hsla.from=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t=e[0]/360,i=e[1],n=e[2],s=e[3],a=.5>=n?n*(1+i):n+i-n*i,o=2*n-a;return[Math.round(255*r(o,a,t+1/3)),Math.round(255*r(o,a,t)),Math.round(255*r(o,a,t-1/3)),s]},p(u,function(n,r){var s=r.props,o=r.cache,u=r.to,c=r.from;l.fn[n]=function(n){if(u&&!this[o]&&(this[o]=u(this._rgba)),n===t)return this[o].slice();var r,a=e.type(n),d="array"===a||"object"===a?n:arguments,h=this[o].slice();return p(s,function(e,t){var n=d["object"===a?e:t.idx];null==n&&(n=h[t.idx]),h[t.idx]=i(n,t)}),c?((r=l(c(h)))[o]=h,r):l(h)},p(s,function(t,i){l.fn[t]||(l.fn[t]=function(r){var s,o=e.type(r),l="alpha"===t?this._hsla?"hsla":"rgba":n,u=this[l](),c=u[i.idx];return"undefined"===o?c:("function"===o&&(r=r.call(this,c),o=e.type(r)),null==r&&i.empty?this:("string"===o&&((s=a.exec(r))&&(r=c+parseFloat(s[2])*("+"===s[1]?1:-1))),u[i.idx]=r,this[l](u)))})})}),l.hook=function(t){var i=t.split(" ");p(i,function(t,i){e.cssHooks[i]={set:function(t,r){var s,a,o="";if("transparent"!==r&&("string"!==e.type(r)||(s=n(r)))){if(r=l(s||r),!d.rgba&&1!==r._rgba[3]){for(a="backgroundColor"===i?t.parentNode:t;(""===o||"transparent"===o)&&a&&a.style;)try{o=e.css(a,"backgroundColor"),a=a.parentNode}catch(e){}r=r.blend(o&&"transparent"!==o?o:"_default")}r=r.toRgbaString()}try{t.style[i]=r}catch(e){}}},e.fx.step[i]=function(t){t.colorInit||(t.start=l(t.elem,i),t.end=l(t.end),t.colorInit=!0),e.cssHooks[i].set(t.elem,t.start.transition(t.end,t.pos))}})},l.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),e.cssHooks.borderColor={expand:function(e){var t={};return p(["Top","Right","Bottom","Left"],function(i,n){t["border"+n+"Color"]=e}),t}},s=e.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(jQuery),("function"==typeof define&&define.amd?define:function(e,t){"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):window.toastr=t(window.jQuery)})(["jquery"],function(e){return function(){function t(t,i){return t||(t=a()),(l=e("#"+t.containerId)).length?l:(i&&(l=function(t){return(l=e("<div/>").attr("id",t.containerId).addClass(t.positionClass)).appendTo(e(t.target)),l}(t)),l)}function i(t){for(var i=l.children(),r=i.length-1;r>=0;r--)n(e(i[r]),t)}function n(t,i,n){var r=!(!n||!n.force)&&n.force;return!(!t||!r&&0!==e(":focus",t).length||(t[i.hideMethod]({duration:i.hideDuration,easing:i.hideEasing,complete:function(){o(t)}}),0))}function r(e){u&&u(e)}function s(i){function n(e){return null==e&&(e=""),e.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function s(t){var i=t&&!1!==f.closeMethod?f.closeMethod:f.hideMethod,n=t&&!1!==f.closeDuration?f.closeDuration:f.hideDuration,s=t&&!1!==f.closeEasing?f.closeEasing:f.hideEasing;return!e(":focus",v).length||t?(clearTimeout(_.intervalId),v[i]({duration:n,easing:s,complete:function(){o(v),clearTimeout(g),f.onHidden&&"hidden"!==x.state&&f.onHidden(),x.state="hidden",x.endTime=new Date,r(x)}})):void 0}function u(){(f.timeOut>0||f.extendedTimeOut>0)&&(g=setTimeout(s,f.extendedTimeOut),_.maxHideTime=parseFloat(f.extendedTimeOut),_.hideEta=(new Date).getTime()+_.maxHideTime)}function h(){clearTimeout(g),_.hideEta=0,v.stop(!0,!0)[f.showMethod]({duration:f.showDuration,easing:f.showEasing})}function p(){var e=(_.hideEta-(new Date).getTime())/_.maxHideTime*100;w.width(e+"%")}var f=a(),m=i.iconClass||f.iconClass;if(void 0!==i.optionsOverride&&(f=e.extend(f,i.optionsOverride),m=i.optionsOverride.iconClass||m),!function(e,t){if(e.preventDuplicates){if(t.message===c)return!0;c=t.message}return!1}(f,i)){d++,l=t(f,!0);var g=null,v=e("<div/>"),y=e("<div/>"),b=e("<div/>"),w=e("<div/>"),T=e(f.closeHtml),_={intervalId:null,hideEta:null,maxHideTime:null},x={toastId:d,state:"visible",startTime:new Date,options:f,map:i};return i.iconClass&&v.addClass(f.toastClass).addClass(m),function(){if(i.title){var e=i.title;f.escapeHtml&&(e=n(i.title)),y.append(e).addClass(f.titleClass),v.append(y)}}(),function(){if(i.message){var e=i.message;f.escapeHtml&&(e=n(i.message)),b.append(e).addClass(f.messageClass),v.append(b)}}(),f.closeButton&&(T.addClass(f.closeClass).attr("role","button"),v.prepend(T)),f.progressBar&&(w.addClass(f.progressClass),v.prepend(w)),f.rtl&&v.addClass("rtl"),f.newestOnTop?l.prepend(v):l.append(v),function(){var e="";switch(i.iconClass){case"toast-success":case"toast-info":e="polite";break;default:e="assertive"}v.attr("aria-live",e)}(),v.hide(),v[f.showMethod]({duration:f.showDuration,easing:f.showEasing,complete:f.onShown}),f.timeOut>0&&(g=setTimeout(s,f.timeOut),_.maxHideTime=parseFloat(f.timeOut),_.hideEta=(new Date).getTime()+_.maxHideTime,f.progressBar&&(_.intervalId=setInterval(p,10))),f.closeOnHover&&v.hover(h,u),!f.onclick&&f.tapToDismiss&&v.click(s),f.closeButton&&T&&T.click(function(e){e.stopPropagation?e.stopPropagation():void 0!==e.cancelBubble&&!0!==e.cancelBubble&&(e.cancelBubble=!0),f.onCloseClick&&f.onCloseClick(e),s(!0)}),f.onclick&&v.click(function(e){f.onclick(e),s()}),r(x),f.debug&&console&&console.log(x),v}}function a(){return e.extend({},{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,closeOnHover:!0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'<button type="button">&times;</button>',closeClass:"toast-close-button",newestOnTop:!0,preventDuplicates:!1,progressBar:!1,progressClass:"toast-progress",rtl:!1},p.options)}function o(e){l||(l=t()),e.is(":visible")||(e.remove(),e=null,0===l.children().length&&(l.remove(),c=void 0))}var l,u,c,d=0,h={error:"error",info:"info",success:"success",warning:"warning"},p={clear:function(e,r){var s=a();l||t(s),n(e,s,r)||i(s)},remove:function(i){var n=a();return l||t(n),i&&0===e(":focus",i).length?void o(i):void(l.children().length&&l.remove())},error:function(e,t,i){return s({type:h.error,iconClass:a().iconClasses.error,message:e,optionsOverride:i,title:t})},getContainer:t,info:function(e,t,i){return s({type:h.info,iconClass:a().iconClasses.info,message:e,optionsOverride:i,title:t})},options:{},subscribe:function(e){u=e},success:function(e,t,i){return s({type:h.success,iconClass:a().iconClasses.success,message:e,optionsOverride:i,title:t})},version:"2.1.4",warning:function(e,t,i){return s({type:h.warning,iconClass:a().iconClasses.warning,message:e,optionsOverride:i,title:t})}};return p}()}),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):e("undefined"!=typeof jQuery?jQuery:window.Zepto)}(function(e){"use strict";function t(t){var i=t.data;t.isDefaultPrevented()||(t.preventDefault(),e(t.target).ajaxSubmit(i))}function i(t){var i=t.target,n=e(i);if(!n.is("[type=submit],[type=image]")){var r=n.closest("[type=submit]");if(0===r.length)return;i=r[0]}var s=this;if(s.clk=i,"image"==i.type)if(void 0!==t.offsetX)s.clk_x=t.offsetX,s.clk_y=t.offsetY;else if("function"==typeof e.fn.offset){var a=n.offset();s.clk_x=t.pageX-a.left,s.clk_y=t.pageY-a.top}else s.clk_x=t.pageX-i.offsetLeft,s.clk_y=t.pageY-i.offsetTop;setTimeout(function(){s.clk=s.clk_x=s.clk_y=null},100)}function n(){if(e.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 r={};r.fileapi=void 0!==e("<input type='file'/>").get(0).files,r.formdata=void 0!==window.FormData;var s=!!e.fn.prop;e.fn.attr2=function(){if(!s)return this.attr.apply(this,arguments);var e=this.prop.apply(this,arguments);return e&&e.jquery||"string"==typeof e?e:this.attr.apply(this,arguments)},e.fn.ajaxSubmit=function(t){function i(i){function r(e){var t=null;try{e.contentWindow&&(t=e.contentWindow.document)}catch(e){n("cannot get iframe.contentWindow document: "+e)}if(t)return t;try{t=e.contentDocument?e.contentDocument:e.document}catch(i){n("cannot get iframe.contentDocument: "+i),t=e.document}return t}function o(){var t=u.attr2("target"),i=u.attr2("action"),s=u.attr("enctype")||u.attr("encoding")||"multipart/form-data";x.setAttribute("target",m),(!a||/post/i.test(a))&&x.setAttribute("method","POST"),i!=h.url&&x.setAttribute("action",h.url),h.skipEncodingOverride||a&&!/post/i.test(a)||u.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"}),h.timeout&&(_=setTimeout(function(){T=!0,l(S)},h.timeout));var o=[];try{if(h.extraData)for(var c in h.extraData)h.extraData.hasOwnProperty(c)&&o.push(e.isPlainObject(h.extraData[c])&&h.extraData[c].hasOwnProperty("name")&&h.extraData[c].hasOwnProperty("value")?e('<input type="hidden" name="'+h.extraData[c].name+'">').val(h.extraData[c].value).appendTo(x)[0]:e('<input type="hidden" name="'+c+'">').val(h.extraData[c]).appendTo(x)[0]);h.iframeTarget||g.appendTo("body"),v.attachEvent?v.attachEvent("onload",l):v.addEventListener("load",l,!1),setTimeout(function e(){try{var t=r(v).readyState;n("state = "+t),t&&"uninitialized"==t.toLowerCase()&&setTimeout(e,50)}catch(e){n("Server abort: ",e," (",e.name,")"),l(E),_&&clearTimeout(_),_=void 0}},15);try{x.submit()}catch(e){document.createElement("form").submit.apply(x)}}finally{x.setAttribute("action",i),x.setAttribute("enctype",s),t?x.setAttribute("target",t):u.removeAttr("target"),e(o).remove()}}function l(t){if(!y.aborted&&!D){if((j=r(v))||(n("cannot access response document"),t=E),t===S&&y)return y.abort("timeout"),void C.reject(y,"timeout");if(t==E&&y)return y.abort("server abort"),void C.reject(y,"error","server abort");if(j&&j.location.href!=h.iframeSrc||T){v.detachEvent?v.detachEvent("onload",l):v.removeEventListener("load",l,!1);var i,s="success";try{if(T)throw"timeout";var a="xml"==h.dataType||j.XMLDocument||e.isXMLDoc(j);if(n("isXml="+a),!a&&window.opera&&(null===j.body||!j.body.innerHTML)&&--A)return n("requeing onLoad callback, DOM not available"),void setTimeout(l,250);var o=j.body?j.body:j.documentElement;y.responseText=o?o.innerHTML:null,y.responseXML=j.XMLDocument?j.XMLDocument:j,a&&(h.dataType="xml"),y.getResponseHeader=function(e){return{"content-type":h.dataType}[e.toLowerCase()]},o&&(y.status=Number(o.getAttribute("status"))||y.status,y.statusText=o.getAttribute("statusText")||y.statusText);var u=(h.dataType||"").toLowerCase(),c=/(json|script|text)/.test(u);if(c||h.textarea){var d=j.getElementsByTagName("textarea")[0];if(d)y.responseText=d.value,y.status=Number(d.getAttribute("status"))||y.status,y.statusText=d.getAttribute("statusText")||y.statusText;else if(c){var p=j.getElementsByTagName("pre")[0],m=j.getElementsByTagName("body")[0];p?y.responseText=p.textContent?p.textContent:p.innerText:m&&(y.responseText=m.textContent?m.textContent:m.innerText)}}else"xml"==u&&!y.responseXML&&y.responseText&&(y.responseXML=Y(y.responseText));try{k=O(y,u,h)}catch(e){s="parsererror",y.error=i=e||s}}catch(e){n("error caught: ",e),s="error",y.error=i=e||s}y.aborted&&(n("upload aborted"),s=null),y.status&&(s=y.status>=200&&y.status<300||304===y.status?"success":"error"),"success"===s?(h.success&&h.success.call(h.context,k,"success",y),C.resolve(y.responseText,"success",y),f&&e.event.trigger("ajaxSuccess",[y,h])):s&&(void 0===i&&(i=y.statusText),h.error&&h.error.call(h.context,y,s,i),C.reject(y,"error",i),f&&e.event.trigger("ajaxError",[y,h,i])),f&&e.event.trigger("ajaxComplete",[y,h]),f&&!--e.active&&e.event.trigger("ajaxStop"),h.complete&&h.complete.call(h.context,y,s),D=!0,h.timeout&&clearTimeout(_),setTimeout(function(){h.iframeTarget?g.attr("src",h.iframeSrc):g.remove(),y.responseXML=null},100)}}}var c,d,h,f,m,g,v,y,b,w,T,_,x=u[0],C=e.Deferred();if(C.abort=function(e){y.abort(e)},i)for(d=0;d<p.length;d++)c=e(p[d]),s?c.prop("disabled",!1):c.removeAttr("disabled");if((h=e.extend(!0,{},e.ajaxSettings,t)).context=h.context||h,m="jqFormIO"+(new Date).getTime(),h.iframeTarget?(w=(g=e(h.iframeTarget)).attr2("name"))?m=w:g.attr2("name",m):(g=e('<iframe name="'+m+'" src="'+h.iframeSrc+'" />')).css({position:"absolute",top:"-1000px",left:"-1000px"}),v=g[0],y={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(t){var i="timeout"===t?"timeout":"aborted";n("aborting upload... "+i),this.aborted=1;try{v.contentWindow.document.execCommand&&v.contentWindow.document.execCommand("Stop")}catch(e){}g.attr("src",h.iframeSrc),y.error=i,h.error&&h.error.call(h.context,y,i,t),f&&e.event.trigger("ajaxError",[y,h,i]),h.complete&&h.complete.call(h.context,y,i)}},(f=h.global)&&0==e.active++&&e.event.trigger("ajaxStart"),f&&e.event.trigger("ajaxSend",[y,h]),h.beforeSend&&!1===h.beforeSend.call(h.context,y,h))return h.global&&e.active--,C.reject(),C;if(y.aborted)return C.reject(),C;(b=x.clk)&&((w=b.name)&&!b.disabled&&(h.extraData=h.extraData||{},h.extraData[w]=b.value,"image"==b.type&&(h.extraData[w+".x"]=x.clk_x,h.extraData[w+".y"]=x.clk_y)));var S=1,E=2,P=e("meta[name=csrf-token]").attr("content"),I=e("meta[name=csrf-param]").attr("content");I&&P&&(h.extraData=h.extraData||{},h.extraData[I]=P),h.forceSync?o():setTimeout(o,10);var k,j,D,A=50,Y=e.parseXML||function(e,t){return window.ActiveXObject?((t=new ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(e)):t=(new DOMParser).parseFromString(e,"text/xml"),t&&t.documentElement&&"parsererror"!=t.documentElement.nodeName?t:null},M=e.parseJSON||function(e){return window.eval("("+e+")")},O=function(t,i,n){var r=t.getResponseHeader("content-type")||"",s="xml"===i||!i&&r.indexOf("xml")>=0,a=s?t.responseXML:t.responseText;return s&&"parsererror"===a.documentElement.nodeName&&e.error&&e.error("parsererror"),n&&n.dataFilter&&(a=n.dataFilter(a,i)),"string"==typeof a&&("json"===i||!i&&r.indexOf("json")>=0?a=M(a):("script"===i||!i&&r.indexOf("javascript")>=0)&&e.globalEval(a)),a};return C}if(!this.length)return n("ajaxSubmit: skipping submit process - no element selected"),this;var a,o,l,u=this;"function"==typeof t?t={success:t}:void 0===t&&(t={}),a=t.type||this.attr2("method"),(l=(l="string"==typeof(o=t.url||this.attr2("action"))?e.trim(o):"")||window.location.href||"")&&(l=(l.match(/^([^#]+)/)||[])[1]),t=e.extend(!0,{url:l,success:e.ajaxSettings.success,type:a||e.ajaxSettings.type,iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},t);var c={};if(this.trigger("form-pre-serialize",[this,t,c]),c.veto)return n("ajaxSubmit: submit vetoed via form-pre-serialize trigger"),this;if(t.beforeSerialize&&!1===t.beforeSerialize(this,t))return n("ajaxSubmit: submit aborted via beforeSerialize callback"),this;var d=t.traditional;void 0===d&&(d=e.ajaxSettings.traditional);var h,p=[],f=this.formToArray(t.semantic,p);if(t.data&&(t.extraData=t.data,h=e.param(t.data,d)),t.beforeSubmit&&!1===t.beforeSubmit(f,this,t))return n("ajaxSubmit: submit aborted via beforeSubmit callback"),this;if(this.trigger("form-submit-validate",[f,this,t,c]),c.veto)return n("ajaxSubmit: submit vetoed via form-submit-validate trigger"),this;var m=e.param(f,d);h&&(m=m?m+"&"+h:h),"GET"==t.type.toUpperCase()?(t.url+=(t.url.indexOf("?")>=0?"&":"?")+m,t.data=null):t.data=m;var g=[];if(t.resetForm&&g.push(function(){u.resetForm()}),t.clearForm&&g.push(function(){u.clearForm(t.includeHidden)}),!t.dataType&&t.target){var v=t.success||function(){};g.push(function(i){var n=t.replaceTarget?"replaceWith":"html";e(t.target)[n](i).each(v,arguments)})}else t.success&&g.push(t.success);if(t.success=function(e,i,n){for(var r=t.context||this,s=0,a=g.length;a>s;s++)g[s].apply(r,[e,i,n||u,u])},t.error){var y=t.error;t.error=function(e,i,n){var r=t.context||this;y.apply(r,[e,i,n,u])}}if(t.complete){var b=t.complete;t.complete=function(e,i){var n=t.context||this;b.apply(n,[e,i,u])}}var w=e("input[type=file]:enabled",this).filter(function(){return""!==e(this).val()}).length>0,T="multipart/form-data",_=u.attr("enctype")==T||u.attr("encoding")==T,x=r.fileapi&&r.formdata;n("fileAPI :"+x);var C,S=(w||_)&&!x;!1!==t.iframe&&(t.iframe||S)?t.closeKeepAlive?e.get(t.closeKeepAlive,function(){C=i(f)}):C=i(f):C=(w||_)&&x?function(i){for(var n=new FormData,r=0;r<i.length;r++)n.append(i[r].name,i[r].value);if(t.extraData){var s=function(i){var n,r,s=e.param(i,t.traditional).split("&"),a=s.length,o=[];for(n=0;a>n;n++)s[n]=s[n].replace(/\+/g," "),r=s[n].split("="),o.push([decodeURIComponent(r[0]),decodeURIComponent(r[1])]);return o}(t.extraData);for(r=0;r<s.length;r++)s[r]&&n.append(s[r][0],s[r][1])}t.data=null;var o=e.extend(!0,{},e.ajaxSettings,t,{contentType:!1,processData:!1,cache:!1,type:a||"POST"});t.uploadProgress&&(o.xhr=function(){var i=e.ajaxSettings.xhr();return i.upload&&i.upload.addEventListener("progress",function(e){var i=0,n=e.loaded||e.position,r=e.total;e.lengthComputable&&(i=Math.ceil(n/r*100)),t.uploadProgress(e,n,r,i)},!1),i}),o.data=null;var l=o.beforeSend;return o.beforeSend=function(e,i){i.data=t.formData?t.formData:n,l&&l.call(this,e,i)},e.ajax(o)}(f):e.ajax(t),u.removeData("jqxhr").data("jqxhr",C);for(var E=0;E<p.length;E++)p[E]=null;return this.trigger("form-submit-notify",[this,t]),this},e.fn.ajaxForm=function(r){if((r=r||{}).delegation=r.delegation&&e.isFunction(e.fn.on),!r.delegation&&0===this.length){var s={s:this.selector,c:this.context};return!e.isReady&&s.s?(n("DOM not ready, queuing ajaxForm"),e(function(){e(s.s,s.c).ajaxForm(r)}),this):(n("terminating; zero elements found by selector"+(e.isReady?"":" (DOM not ready)")),this)}return r.delegation?(e(document).off("submit.form-plugin",this.selector,t).off("click.form-plugin",this.selector,i).on("submit.form-plugin",this.selector,r,t).on("click.form-plugin",this.selector,r,i),this):this.ajaxFormUnbind().bind("submit.form-plugin",r,t).bind("click.form-plugin",r,i)},e.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")},e.fn.formToArray=function(t,i){var n=[];if(0===this.length)return n;var s,a,o,l,u,c,d,h,p=this[0],f=this.attr("id"),m=t?p.getElementsByTagName("*"):p.elements;if(m&&!/MSIE [678]/.test(navigator.userAgent)&&(m=e(m).get()),f&&((s=e(':input[form="'+f+'"]').get()).length&&(m=(m||[]).concat(s))),!m||!m.length)return n;for(a=0,d=m.length;d>a;a++)if((l=(c=m[a]).name)&&!c.disabled)if(t&&p.clk&&"image"==c.type)p.clk==c&&(n.push({name:l,value:e(c).val(),type:c.type}),n.push({name:l+".x",value:p.clk_x},{name:l+".y",value:p.clk_y}));else if((u=e.fieldValue(c,!0))&&u.constructor==Array)for(i&&i.push(c),o=0,h=u.length;h>o;o++)n.push({name:l,value:u[o]});else if(r.fileapi&&"file"==c.type){i&&i.push(c);var g=c.files;if(g.length)for(o=0;o<g.length;o++)n.push({name:l,value:g[o],type:c.type});else n.push({name:l,value:"",type:c.type})}else null!=u&&(i&&i.push(c),n.push({name:l,value:u,type:c.type,required:c.required}));if(!t&&p.clk){var v=e(p.clk),y=v[0];(l=y.name)&&!y.disabled&&"image"==y.type&&(n.push({name:l,value:v.val()}),n.push({name:l+".x",value:p.clk_x},{name:l+".y",value:p.clk_y}))}return n},e.fn.formSerialize=function(t){return e.param(this.formToArray(t))},e.fn.fieldSerialize=function(t){var i=[];return this.each(function(){var n=this.name;if(n){var r=e.fieldValue(this,t);if(r&&r.constructor==Array)for(var s=0,a=r.length;a>s;s++)i.push({name:n,value:r[s]});else null!=r&&i.push({name:this.name,value:r})}}),e.param(i)},e.fn.fieldValue=function(t){for(var i=[],n=0,r=this.length;r>n;n++){var s=this[n],a=e.fieldValue(s,t);null==a||a.constructor==Array&&!a.length||(a.constructor==Array?e.merge(i,a):i.push(a))}return i},e.fieldValue=function(t,i){var n=t.name,r=t.type,s=t.tagName.toLowerCase();if(void 0===i&&(i=!0),i&&(!n||t.disabled||"reset"==r||"button"==r||("checkbox"==r||"radio"==r)&&!t.checked||("submit"==r||"image"==r)&&t.form&&t.form.clk!=t||"select"==s&&-1==t.selectedIndex))return null;if("select"==s){var a=t.selectedIndex;if(0>a)return null;for(var o=[],l=t.options,u="select-one"==r,c=u?a+1:l.length,d=u?a:0;c>d;d++){var h=l[d];if(h.selected){var p=h.value;if(p||(p=h.attributes&&h.attributes.value&&!h.attributes.value.specified?h.text:h.value),u)return p;o.push(p)}}return o}return e(t).val()},e.fn.clearForm=function(t){return this.each(function(){e("input,select,textarea",this).clearFields(t)})},e.fn.clearFields=e.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 n=this.type,r=this.tagName.toLowerCase();i.test(n)||"textarea"==r?this.value="":"checkbox"==n||"radio"==n?this.checked=!1:"select"==r?this.selectedIndex=-1:"file"==n?/MSIE/.test(navigator.userAgent)?e(this).replaceWith(e(this).clone(!0)):e(this).val(""):t&&(!0===t&&/hidden/.test(n)||"string"==typeof t&&e(this).is(t))&&(this.value="")})},e.fn.resetForm=function(){return this.each(function(){("function"==typeof this.reset||"object"==typeof this.reset&&!this.reset.nodeType)&&this.reset()})},e.fn.enable=function(e){return void 0===e&&(e=!0),this.each(function(){this.disabled=!e})},e.fn.selected=function(t){return void 0===t&&(t=!0),this.each(function(){var i=this.type;if("checkbox"==i||"radio"==i)this.checked=t;else if("option"==this.tagName.toLowerCase()){var n=e(this).parent("select");t&&n[0]&&"select-one"==n[0].type&&n.find("option").selected(!1),this.selected=t}})},e.fn.ajaxSubmit.debug=!1}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(e){var t,i,n,r,s,a,o="Close",l="BeforeClose",u="MarkupParse",c="Open",d="Change",h="mfp",p="."+h,f="mfp-ready",m="mfp-removing",g="mfp-prevent-close",v=function(){},y=!!window.jQuery,b=e(window),w=function(e,i){t.ev.on(h+e+p,i)},T=function(t,i,n,r){var s=document.createElement("div");return s.className="mfp-"+t,n&&(s.innerHTML=n),r?i&&i.appendChild(s):(s=e(s),i&&s.appendTo(i)),s},_=function(i,n){t.ev.triggerHandler(h+i,n),t.st.callbacks&&(i=i.charAt(0).toLowerCase()+i.slice(1),t.st.callbacks[i]&&t.st.callbacks[i].apply(t,e.isArray(n)?n:[n]))},x=function(i){return i===a&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),a=i),t.currTemplate.closeBtn},C=function(){e.magnificPopup.instance||((t=new v).init(),e.magnificPopup.instance=t)};v.prototype={constructor:v,init:function(){var i=navigator.appVersion;t.isLowIE=t.isIE8=document.all&&!document.addEventListener,t.isAndroid=/android/gi.test(i),t.isIOS=/iphone|ipad|ipod/gi.test(i),t.supportsTransition=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1}(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),n=e(document),t.popupsCache={}},open:function(i){var r;if(!1===i.isObj){t.items=i.items.toArray(),t.index=0;var a,o=i.items;for(r=0;r<o.length;r++)if((a=o[r]).parsed&&(a=a.el[0]),a===i.el[0]){t.index=r;break}}else t.items=e.isArray(i.items)?i.items:[i.items],t.index=i.index||0;if(!t.isOpen){t.types=[],s="",i.mainEl&&i.mainEl.length?t.ev=i.mainEl.eq(0):t.ev=n,i.key?(t.popupsCache[i.key]||(t.popupsCache[i.key]={}),t.currTemplate=t.popupsCache[i.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,i),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=T("bg").on("click"+p,function(){t.close()}),t.wrap=T("wrap").attr("tabindex",-1).on("click"+p,function(e){t._checkIfClose(e.target)&&t.close()}),t.container=T("container",t.wrap)),t.contentContainer=T("content"),t.st.preloader&&(t.preloader=T("preloader",t.container,t.st.tLoading));var l=e.magnificPopup.modules;for(r=0;r<l.length;r++){var d=l[r];d=d.charAt(0).toUpperCase()+d.slice(1),t["init"+d].call(t)}_("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(w(u,function(e,t,i,n){i.close_replaceWith=x(n.type)}),s+=" mfp-close-btn-in"):t.wrap.append(x())),t.st.alignTop&&(s+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:b.scrollTop(),position:"absolute"}),(!1===t.st.fixedBgPos||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:n.height(),position:"absolute"}),t.st.enableEscapeKey&&n.on("keyup"+p,function(e){27===e.keyCode&&t.close()}),b.on("resize"+p,function(){t.updateSize()}),t.st.closeOnContentClick||(s+=" mfp-auto-cursor"),s&&t.wrap.addClass(s);var h=t.wH=b.height(),m={};if(t.fixedContentPos&&t._hasScrollBar(h)){var g=t._getScrollbarSize();g&&(m.marginRight=g)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):m.overflow="hidden");var v=t.st.mainClass;return t.isIE7&&(v+=" mfp-ie7"),v&&t._addClassToMFP(v),t.updateItemHTML(),_("BuildControls"),e("html").css(m),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||e(document.body)),t._lastFocusedEl=document.activeElement,setTimeout(function(){t.content?(t._addClassToMFP(f),t._setFocus()):t.bgOverlay.addClass(f),n.on("focusin"+p,t._onFocusIn)},16),t.isOpen=!0,t.updateSize(h),_(c),i}t.updateItemHTML()},close:function(){t.isOpen&&(_(l),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP(m),setTimeout(function(){t._close()},t.st.removalDelay)):t._close())},_close:function(){_(o);var i=m+" "+f+" ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(i+=t.st.mainClass+" "),t._removeClassFromMFP(i),t.fixedContentPos){var r={marginRight:""};t.isIE7?e("body, html").css("overflow",""):r.overflow="",e("html").css(r)}n.off("keyup.mfp focusin"+p),t.ev.off(p),t.wrap.attr("class","mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","mfp-bg"),t.container.attr("class","mfp-container"),!t.st.showCloseBtn||t.st.closeBtnInside&&!0!==t.currTemplate[t.currItem.type]||t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t.st.autoFocusLast&&t._lastFocusedEl&&e(t._lastFocusedEl).focus(),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,_("AfterClose")},updateSize:function(e){if(t.isIOS){var i=document.documentElement.clientWidth/window.innerWidth,n=window.innerHeight*i;t.wrap.css("height",n),t.wH=n}else t.wH=e||b.height();t.fixedContentPos||t.wrap.css("height",t.wH),_("Resize")},updateItemHTML:function(){var i=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),i.parsed||(i=t.parseEl(t.index));var n=i.type;if(_("BeforeChange",[t.currItem?t.currItem.type:"",n]),t.currItem=i,!t.currTemplate[n]){var s=!!t.st[n]&&t.st[n].markup;_("FirstMarkupParse",s),t.currTemplate[n]=!s||e(s)}r&&r!==i.type&&t.container.removeClass("mfp-"+r+"-holder");var a=t["get"+n.charAt(0).toUpperCase()+n.slice(1)](i,t.currTemplate[n]);t.appendContent(a,n),i.preloaded=!0,_(d,i),r=i.type,t.container.prepend(t.contentContainer),_("AfterChange")},appendContent:function(e,i){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&!0===t.currTemplate[i]?t.content.find(".mfp-close").length||t.content.append(x()):t.content=e:t.content="",_("BeforeAppend"),t.container.addClass("mfp-"+i+"-holder"),t.contentContainer.append(t.content)},parseEl:function(i){var n,r=t.items[i];if(r.tagName?r={el:e(r)}:(n=r.type,r={data:r,src:r.src}),r.el){for(var s=t.types,a=0;a<s.length;a++)if(r.el.hasClass("mfp-"+s[a])){n=s[a];break}r.src=r.el.attr("data-mfp-src"),r.src||(r.src=r.el.attr("href"))}return r.type=n||t.st.type||"inline",r.index=i,r.parsed=!0,t.items[i]=r,_("ElementParse",r),t.items[i]},addGroup:function(e,i){var n=function(n){n.mfpEl=this,t._openClick(n,e,i)};i||(i={});var r="click.magnificPopup";i.mainEl=e,i.items?(i.isObj=!0,e.off(r).on(r,n)):(i.isObj=!1,i.delegate?e.off(r).on(r,i.delegate,n):(i.items=e,e.off(r).on(r,n)))},_openClick:function(i,n,r){if((void 0!==r.midClick?r.midClick:e.magnificPopup.defaults.midClick)||!(2===i.which||i.ctrlKey||i.metaKey||i.altKey||i.shiftKey)){var s=void 0!==r.disableOn?r.disableOn:e.magnificPopup.defaults.disableOn;if(s)if(e.isFunction(s)){if(!s.call(t))return!0}else if(b.width()<s)return!0;i.type&&(i.preventDefault(),t.isOpen&&i.stopPropagation()),r.el=e(i.mfpEl),r.delegate&&(r.items=n.find(r.delegate)),t.open(r)}},updateStatus:function(e,n){if(t.preloader){i!==e&&t.container.removeClass("mfp-s-"+i),n||"loading"!==e||(n=t.st.tLoading);var r={status:e,text:n};_("UpdateStatus",r),e=r.status,n=r.text,t.preloader.html(n),t.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),t.container.addClass("mfp-s-"+e),i=e}},_checkIfClose:function(i){if(!e(i).hasClass(g)){var n=t.st.closeOnContentClick,r=t.st.closeOnBgClick;if(n&&r)return!0;if(!t.content||e(i).hasClass("mfp-close")||t.preloader&&i===t.preloader[0])return!0;if(i===t.content[0]||e.contains(t.content[0],i)){if(n)return!0}else if(r&&e.contains(document,i))return!0;return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?n.height():document.body.scrollHeight)>(e||b.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(i){return i.target===t.wrap[0]||e.contains(t.wrap[0],i.target)?void 0:(t._setFocus(),!1)},_parseMarkup:function(t,i,n){var r;n.data&&(i=e.extend(n.data,i)),_(u,[t,i,n]),e.each(i,function(i,n){if(void 0===n||!1===n)return!0;if((r=i.split("_")).length>1){var s=t.find(p+"-"+r[0]);if(s.length>0){var a=r[1];"replaceWith"===a?s[0]!==n[0]&&s.replaceWith(n):"img"===a?s.is("img")?s.attr("src",n):s.replaceWith(e("<img>").attr("src",n).attr("class",s.attr("class"))):s.attr(r[1],n)}}else t.find(p+"-"+i).html(n)})},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopup={instance:null,proto:v.prototype,modules:[],open:function(t,i){return C(),(t=t?e.extend(!0,{},t):{}).isObj=!0,t.index=i||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,i){i.options&&(e.magnificPopup.defaults[t]=i.options),e.extend(this.proto,i.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&#215;</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},e.fn.magnificPopup=function(i){C();var n=e(this);if("string"==typeof i)if("open"===i){var r,s=y?n.data("magnificPopup"):n[0].magnificPopup,a=parseInt(arguments[1],10)||0;s.items?r=s.items[a]:(r=n,s.delegate&&(r=r.find(s.delegate)),r=r.eq(a)),t._openClick({mfpEl:r},n,s)}else t.isOpen&&t[i].apply(t,Array.prototype.slice.call(arguments,1));else i=e.extend(!0,{},i),y?n.data("magnificPopup",i):n[0].magnificPopup=i,t.addGroup(n,i);return n};var S,E,P,I="inline",k=function(){P&&(E.after(P.addClass(S)).detach(),P=null)};e.magnificPopup.registerModule(I,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push(I),w(o+"."+I,function(){k()})},getInline:function(i,n){if(k(),i.src){var r=t.st.inline,s=e(i.src);if(s.length){var a=s[0].parentNode;a&&a.tagName&&(E||(S=r.hiddenClass,E=T(S),S="mfp-"+S),P=s.after(E).detach().removeClass(S)),t.updateStatus("ready")}else t.updateStatus("error",r.tNotFound),s=e("<div>");return i.inlineElement=s,s}return t.updateStatus("ready"),t._parseMarkup(n,{},i),n}}});var j,D="ajax",A=function(){j&&e(document.body).removeClass(j)},Y=function(){A(),t.req&&t.req.abort()};e.magnificPopup.registerModule(D,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){t.types.push(D),j=t.st.ajax.cursor,w(o+"."+D,Y),w("BeforeChange."+D,Y)},getAjax:function(i){j&&e(document.body).addClass(j),t.updateStatus("loading");var n=e.extend({url:i.src,success:function(n,r,s){var a={data:n,xhr:s};_("ParseAjax",a),t.appendContent(e(a.data),D),i.finished=!0,A(),t._setFocus(),setTimeout(function(){t.wrap.addClass(f)},16),t.updateStatus("ready"),_("AjaxContentAdded")},error:function(){A(),i.finished=i.loadError=!0,t.updateStatus("error",t.st.ajax.tError.replace("%url%",i.src))}},t.st.ajax.settings);return t.req=e.ajax(n),""}}});var M,O=function(i){if(i.data&&void 0!==i.data.title)return i.data.title;var n=t.st.image.titleSrc;if(n){if(e.isFunction(n))return n.call(t,i);if(i.el)return i.el.attr(n)||""}return""};e.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var i=t.st.image,n=".image";t.types.push("image"),w(c+n,function(){"image"===t.currItem.type&&i.cursor&&e(document.body).addClass(i.cursor)}),w(o+n,function(){i.cursor&&e(document.body).removeClass(i.cursor),b.off("resize"+p)}),w("Resize"+n,t.resizeImage),t.isLowIE&&w("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var i=0;t.isLowIE&&(i=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-i)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,M&&clearInterval(M),e.isCheckingImgSize=!1,_("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var i=0,n=e.img[0],r=function(s){M&&clearInterval(M),M=setInterval(function(){return n.naturalWidth>0?void t._onImageHasSize(e):(i>200&&clearInterval(M),void(3===++i?r(10):40===i?r(50):100===i&&r(500)))},s)};r(1)},getImage:function(i,n){var r=0,s=function(){i&&(i.img[0].complete?(i.img.off(".mfploader"),i===t.currItem&&(t._onImageHasSize(i),t.updateStatus("ready")),i.hasSize=!0,i.loaded=!0,_("ImageLoadComplete")):200>++r?setTimeout(s,100):a())},a=function(){i&&(i.img.off(".mfploader"),i===t.currItem&&(t._onImageHasSize(i),t.updateStatus("error",o.tError.replace("%url%",i.src))),i.hasSize=!0,i.loaded=!0,i.loadError=!0)},o=t.st.image,l=n.find(".mfp-img");if(l.length){var u=document.createElement("img");u.className="mfp-img",i.el&&i.el.find("img").length&&(u.alt=i.el.find("img").attr("alt")),i.img=e(u).on("load.mfploader",s).on("error.mfploader",a),u.src=i.src,l.is("img")&&(i.img=i.img.clone()),(u=i.img[0]).naturalWidth>0?i.hasSize=!0:u.width||(i.hasSize=!1)}return t._parseMarkup(n,{title:O(i),img_replaceWith:i.img},i),t.resizeImage(),i.hasSize?(M&&clearInterval(M),i.loadError?(n.addClass("mfp-loading"),t.updateStatus("error",o.tError.replace("%url%",i.src))):(n.removeClass("mfp-loading"),t.updateStatus("ready")),n):(t.updateStatus("loading"),i.loading=!0,i.hasSize||(i.imgHidden=!0,n.addClass("mfp-loading"),t.findImageSize(i)),n)}}});var z;e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,i=t.st.zoom,n=".zoom";if(i.enabled&&t.supportsTransition){var r,s,a=i.duration,u=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),n="all "+i.duration/1e3+"s "+i.easing,r={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},s="transition";return r["-webkit-"+s]=r["-moz-"+s]=r["-o-"+s]=r[s]=n,t.css(r),t},c=function(){t.content.css("visibility","visible")};w("BuildControls"+n,function(){if(t._allowZoom()){if(clearTimeout(r),t.content.css("visibility","hidden"),!(e=t._getItemToZoom()))return void c();(s=u(e)).css(t._getOffset()),t.wrap.append(s),r=setTimeout(function(){s.css(t._getOffset(!0)),r=setTimeout(function(){c(),setTimeout(function(){s.remove(),e=s=null,_("ZoomAnimationEnded")},16)},a)},16)}}),w(l+n,function(){if(t._allowZoom()){if(clearTimeout(r),t.st.removalDelay=a,!e){if(!(e=t._getItemToZoom()))return;s=u(e)}s.css(t._getOffset(!0)),t.wrap.append(s),t.content.css("visibility","hidden"),setTimeout(function(){s.css(t._getOffset())},16)}}),w(o+n,function(){t._allowZoom()&&(c(),s&&s.remove(),e=null)})}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return!!t.currItem.hasSize&&t.currItem.img},_getOffset:function(i){var n,r=(n=i?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem)).offset(),s=parseInt(n.css("padding-top"),10),a=parseInt(n.css("padding-bottom"),10);r.top-=e(window).scrollTop()-s;var o={width:n.width(),height:(y?n.innerHeight():n[0].offsetHeight)-a-s};return void 0===z&&(z=void 0!==document.createElement("p").style.MozTransform),z?o["-moz-transform"]=o.transform="translate("+r.left+"px,"+r.top+"px)":(o.left=r.left,o.top=r.top),o}}});var L="iframe",Q=function(e){if(t.currTemplate[L]){var i=t.currTemplate[L].find("iframe");i.length&&(e||(i[0].src="//about:blank"),t.isIE8&&i.css("display",e?"block":"none"))}};e.magnificPopup.registerModule(L,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push(L),w("BeforeChange",function(e,t,i){t!==i&&(t===L?Q():i===L&&Q(!0))}),w(o+"."+L,function(){Q()})},getIframe:function(i,n){var r=i.src,s=t.st.iframe;e.each(s.patterns,function(){return r.indexOf(this.index)>-1?(this.id&&(r="string"==typeof this.id?r.substr(r.lastIndexOf(this.id)+this.id.length,r.length):this.id.call(this,r)),r=this.src.replace("%id%",r),!1):void 0});var a={};return s.srcAction&&(a[s.srcAction]=r),t._parseMarkup(n,a,i),t.updateStatus("ready"),n}}});var N=function(e){var i=t.items.length;return e>i-1?e-i:0>e?i+e:e},B=function(e,t,i){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,i)};e.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var i=t.st.gallery,r=".mfp-gallery";return t.direction=!0,!(!i||!i.enabled)&&(s+=" mfp-gallery",w(c+r,function(){i.navigateByImgClick&&t.wrap.on("click"+r,".mfp-img",function(){return t.items.length>1?(t.next(),!1):void 0}),n.on("keydown"+r,function(e){37===e.keyCode?t.prev():39===e.keyCode&&t.next()})}),w("UpdateStatus"+r,function(e,i){i.text&&(i.text=B(i.text,t.currItem.index,t.items.length))}),w(u+r,function(e,n,r,s){var a=t.items.length;r.counter=a>1?B(i.tCounter,s.index,a):""}),w("BuildControls"+r,function(){if(t.items.length>1&&i.arrows&&!t.arrowLeft){var n=i.arrowMarkup,r=t.arrowLeft=e(n.replace(/%title%/gi,i.tPrev).replace(/%dir%/gi,"left")).addClass(g),s=t.arrowRight=e(n.replace(/%title%/gi,i.tNext).replace(/%dir%/gi,"right")).addClass(g);r.click(function(){t.prev()}),s.click(function(){t.next()}),t.container.append(r.add(s))}}),w(d+r,function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout),t._preloadTimeout=setTimeout(function(){t.preloadNearbyImages(),t._preloadTimeout=null},16)}),void w(o+r,function(){n.off(r),t.wrap.off("click"+r),t.arrowRight=t.arrowLeft=null}))},next:function(){t.direction=!0,t.index=N(t.index+1),t.updateItemHTML()},prev:function(){t.direction=!1,t.index=N(t.index-1),t.updateItemHTML()},goTo:function(e){t.direction=e>=t.index,t.index=e,t.updateItemHTML()},preloadNearbyImages:function(){var e,i=t.st.gallery.preload,n=Math.min(i[0],t.items.length),r=Math.min(i[1],t.items.length);for(e=1;e<=(t.direction?r:n);e++)t._preloadItem(t.index+e);for(e=1;e<=(t.direction?n:r);e++)t._preloadItem(t.index-e)},_preloadItem:function(i){if(i=N(i),!t.items[i].preloaded){var n=t.items[i];n.parsed||(n=t.parseEl(i)),_("LazyLoad",n),"image"===n.type&&(n.img=e('<img class="mfp-img" />').on("load.mfploader",function(){n.hasSize=!0}).on("error.mfploader",function(){n.hasSize=!0,n.loadError=!0,_("LazyLoadError",n)}).attr("src",n.src)),n.preloaded=!0}}}});var H="retina";e.magnificPopup.registerModule(H,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,i=e.ratio;(i=isNaN(i)?i():i)>1&&(w("ImageHasSize."+H,function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/i,width:"100%"})}),w("ElementParse."+H,function(t,n){n.src=e.replaceSrc(n,i)}))}}}}),C()}),function(e){var t=!0;e.flexslider=function(i,n){var r=e(i);r.vars=e.extend({},e.flexslider.defaults,n);var s,a=r.vars.namespace,o=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture,l=("ontouchstart"in window||o||window.DocumentTouch&&document instanceof DocumentTouch)&&r.vars.touch,u="click touchend MSPointerUp keyup",c="",d="vertical"===r.vars.direction,h=r.vars.reverse,p=r.vars.itemWidth>0,f="fade"===r.vars.animation,m=""!==r.vars.asNavFor,g={};e.data(i,"flexslider",r),g={init:function(){r.animating=!1,r.currentSlide=parseInt(r.vars.startAt?r.vars.startAt:0,10),isNaN(r.currentSlide)&&(r.currentSlide=0),r.animatingTo=r.currentSlide,r.atEnd=0===r.currentSlide||r.currentSlide===r.last,r.containerSelector=r.vars.selector.substr(0,r.vars.selector.search(" ")),r.slides=e(r.vars.selector,r),r.container=e(r.containerSelector,r),r.count=r.slides.length,r.syncExists=e(r.vars.sync).length>0,"slide"===r.vars.animation&&(r.vars.animation="swing"),r.prop=d?"top":"marginLeft",r.args={},r.manualPause=!1,r.stopped=!1,r.started=!1,r.startTimeout=null,r.transitions=!r.vars.video&&!f&&r.vars.useCSS&&function(){var e=document.createElement("div"),t=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var i in t)if(void 0!==e.style[t[i]])return r.pfx=t[i].replace("Perspective","").toLowerCase(),r.prop="-"+r.pfx+"-transform",!0;return!1}(),r.ensureAnimationEnd="",""!==r.vars.controlsContainer&&(r.controlsContainer=e(r.vars.controlsContainer).length>0&&e(r.vars.controlsContainer)),""!==r.vars.manualControls&&(r.manualControls=e(r.vars.manualControls).length>0&&e(r.vars.manualControls)),""!==r.vars.customDirectionNav&&(r.customDirectionNav=2===e(r.vars.customDirectionNav).length&&e(r.vars.customDirectionNav)),r.vars.randomize&&(r.slides.sort(function(){return Math.round(Math.random())-.5}),r.container.empty().append(r.slides)),r.doMath(),r.setup("init"),r.vars.controlNav&&g.controlNav.setup(),r.vars.directionNav&&g.directionNav.setup(),r.vars.keyboard&&(1===e(r.containerSelector).length||r.vars.multipleKeyboard)&&e(document).bind("keyup",function(e){var t=e.keyCode;if(!r.animating&&(39===t||37===t)){var i=39===t?r.getTarget("next"):37===t&&r.getTarget("prev");r.flexAnimate(i,r.vars.pauseOnAction)}}),r.vars.mousewheel&&r.bind("mousewheel",function(e,t,i,n){e.preventDefault();var s=t<0?r.getTarget("next"):r.getTarget("prev");r.flexAnimate(s,r.vars.pauseOnAction)}),r.vars.pausePlay&&g.pausePlay.setup(),r.vars.slideshow&&r.vars.pauseInvisible&&g.pauseInvisible.init(),r.vars.slideshow&&(r.vars.pauseOnHover&&r.hover(function(){r.manualPlay||r.manualPause||r.pause()},function(){r.manualPause||r.manualPlay||r.stopped||r.play()}),r.vars.pauseInvisible&&g.pauseInvisible.isHidden()||(r.vars.initDelay>0?r.startTimeout=setTimeout(r.play,r.vars.initDelay):r.play())),m&&g.asNav.setup(),l&&r.vars.touch&&g.touch(),(!f||f&&r.vars.smoothHeight)&&e(window).on("resize orientationchange focus",g.resize),r.find("img").attr("draggable","false"),setTimeout(function(){r.vars.start(r)},200)},asNav:{setup:function(){r.asNav=!0,r.animatingTo=Math.floor(r.currentSlide/r.move),r.currentItem=r.currentSlide,r.slides.removeClass(a+"active-slide").eq(r.currentItem).addClass(a+"active-slide"),o?(i._slider=r,r.slides.each(function(){this._gesture=new MSGesture,this._gesture.target=this,this.addEventListener("MSPointerDown",function(e){e.preventDefault(),e.currentTarget._gesture&&e.currentTarget._gesture.addPointer(e.pointerId)},!1),this.addEventListener("MSGestureTap",function(t){t.preventDefault();var i=e(this),n=i.index();e(r.vars.asNavFor).data("flexslider").animating||i.hasClass("active")||(r.direction=r.currentItem<n?"next":"prev",r.flexAnimate(n,r.vars.pauseOnAction,!1,!0,!0))})})):r.slides.on(u,function(t){t.preventDefault();var i=e(this),n=i.index();i.offset().left-e(r).scrollLeft()<=0&&i.hasClass(a+"active-slide")?r.flexAnimate(r.getTarget("prev"),!0):e(r.vars.asNavFor).data("flexslider").animating||i.hasClass(a+"active-slide")||(r.direction=r.currentItem<n?"next":"prev",r.flexAnimate(n,r.vars.pauseOnAction,!1,!0,!0))})}},controlNav:{setup:function(){r.manualControls?g.controlNav.setupManual():g.controlNav.setupPaging()},setupPaging:function(){var t,i,n="thumbnails"===r.vars.controlNav?"control-thumbs":"control-paging",s=1;if(r.controlNavScaffold=e('<ol class="'+a+"control-nav "+a+n+'"></ol>'),r.pagingCount>1)for(var o=0;o<r.pagingCount;o++){void 0===(i=r.slides.eq(o)).attr("data-thumb-alt")&&i.attr("data-thumb-alt","");var l=""!==i.attr("data-thumb-alt")?l=' alt="'+i.attr("data-thumb-alt")+'"':"";if(t="thumbnails"===r.vars.controlNav?'<img src="'+i.attr("data-thumb")+'"'+l+"/>":'<a href="#">'+s+"</a>","thumbnails"===r.vars.controlNav&&!0===r.vars.thumbCaptions){var d=i.attr("data-thumbcaption");""!==d&&void 0!==d&&(t+='<span class="'+a+'caption">'+d+"</span>")}r.controlNavScaffold.append("<li>"+t+"</li>"),s++}r.controlsContainer?e(r.controlsContainer).append(r.controlNavScaffold):r.append(r.controlNavScaffold),g.controlNav.set(),g.controlNav.active(),r.controlNavScaffold.delegate("a, img",u,function(t){if(t.preventDefault(),""===c||c===t.type){var i=e(this),n=r.controlNav.index(i);i.hasClass(a+"active")||(r.direction=n>r.currentSlide?"next":"prev",r.flexAnimate(n,r.vars.pauseOnAction))}""===c&&(c=t.type),g.setToClearWatchedEvent()})},setupManual:function(){r.controlNav=r.manualControls,g.controlNav.active(),r.controlNav.bind(u,function(t){if(t.preventDefault(),""===c||c===t.type){var i=e(this),n=r.controlNav.index(i);i.hasClass(a+"active")||(n>r.currentSlide?r.direction="next":r.direction="prev",r.flexAnimate(n,r.vars.pauseOnAction))}""===c&&(c=t.type),g.setToClearWatchedEvent()})},set:function(){var t="thumbnails"===r.vars.controlNav?"img":"a";r.controlNav=e("."+a+"control-nav li "+t,r.controlsContainer?r.controlsContainer:r)},active:function(){r.controlNav.removeClass(a+"active").eq(r.animatingTo).addClass(a+"active")},update:function(t,i){r.pagingCount>1&&"add"===t?r.controlNavScaffold.append(e('<li><a href="#">'+r.count+"</a></li>")):1===r.pagingCount?r.controlNavScaffold.find("li").remove():r.controlNav.eq(i).closest("li").remove(),g.controlNav.set(),r.pagingCount>1&&r.pagingCount!==r.controlNav.length?r.update(i,t):g.controlNav.active()}},directionNav:{setup:function(){var t=e('<ul class="'+a+'direction-nav"><li class="'+a+'nav-prev"><a class="'+a+'prev" href="#">'+r.vars.prevText+'</a></li><li class="'+a+'nav-next"><a class="'+a+'next" href="#">'+r.vars.nextText+"</a></li></ul>");r.customDirectionNav?r.directionNav=r.customDirectionNav:r.controlsContainer?(e(r.controlsContainer).append(t),r.directionNav=e("."+a+"direction-nav li a",r.controlsContainer)):(r.append(t),r.directionNav=e("."+a+"direction-nav li a",r)),g.directionNav.update(),r.directionNav.bind(u,function(t){var i;t.preventDefault(),""!==c&&c!==t.type||(i=e(this).hasClass(a+"next")?r.getTarget("next"):r.getTarget("prev"),r.flexAnimate(i,r.vars.pauseOnAction)),""===c&&(c=t.type),g.setToClearWatchedEvent()})},update:function(){var e=a+"disabled";1===r.pagingCount?r.directionNav.addClass(e).attr("tabindex","-1"):r.vars.animationLoop?r.directionNav.removeClass(e).removeAttr("tabindex"):0===r.animatingTo?r.directionNav.removeClass(e).filter("."+a+"prev").addClass(e).attr("tabindex","-1"):r.animatingTo===r.last?r.directionNav.removeClass(e).filter("."+a+"next").addClass(e).attr("tabindex","-1"):r.directionNav.removeClass(e).removeAttr("tabindex")}},pausePlay:{setup:function(){var t=e('<div class="'+a+'pauseplay"><a href="#"></a></div>');r.controlsContainer?(r.controlsContainer.append(t),r.pausePlay=e("."+a+"pauseplay a",r.controlsContainer)):(r.append(t),r.pausePlay=e("."+a+"pauseplay a",r)),g.pausePlay.update(r.vars.slideshow?a+"pause":a+"play"),r.pausePlay.bind(u,function(t){t.preventDefault(),""!==c&&c!==t.type||(e(this).hasClass(a+"pause")?(r.manualPause=!0,r.manualPlay=!1,r.pause()):(r.manualPause=!1,r.manualPlay=!0,r.play())),""===c&&(c=t.type),g.setToClearWatchedEvent()})},update:function(e){"play"===e?r.pausePlay.removeClass(a+"pause").addClass(a+"play").html(r.vars.playText):r.pausePlay.removeClass(a+"play").addClass(a+"pause").html(r.vars.pauseText)}},touch:function(){var e,t,n,s,a,l,u,c,m,g=!1,v=0,y=0,b=0;if(o){i.style.msTouchAction="none",i._gesture=new MSGesture,i._gesture.target=i,i.addEventListener("MSPointerDown",function(e){e.stopPropagation(),r.animating?e.preventDefault():(r.pause(),i._gesture.addPointer(e.pointerId),b=0,s=d?r.h:r.w,l=Number(new Date),n=p&&h&&r.animatingTo===r.last?0:p&&h?r.limit-(r.itemW+r.vars.itemMargin)*r.move*r.animatingTo:p&&r.currentSlide===r.last?r.limit:p?(r.itemW+r.vars.itemMargin)*r.move*r.currentSlide:h?(r.last-r.currentSlide+r.cloneOffset)*s:(r.currentSlide+r.cloneOffset)*s)},!1),i._slider=r,i.addEventListener("MSGestureChange",function(e){e.stopPropagation();var t=e.target._slider;if(!t)return;var r=-e.translationX,o=-e.translationY;if(a=b+=d?o:r,g=d?Math.abs(b)<Math.abs(-r):Math.abs(b)<Math.abs(-o),e.detail===e.MSGESTURE_FLAG_INERTIA)return void setImmediate(function(){i._gesture.stop()});(!g||Number(new Date)-l>500)&&(e.preventDefault(),!f&&t.transitions&&(t.vars.animationLoop||(a=b/(0===t.currentSlide&&b<0||t.currentSlide===t.last&&b>0?Math.abs(b)/s+2:1)),t.setProps(n+a,"setTouch")))},!1),i.addEventListener("MSGestureEnd",function(i){i.stopPropagation();var r=i.target._slider;if(!r)return;if(r.animatingTo===r.currentSlide&&!g&&null!==a){var o=h?-a:a,u=o>0?r.getTarget("next"):r.getTarget("prev");r.canAdvance(u)&&(Number(new Date)-l<550&&Math.abs(o)>50||Math.abs(o)>s/2)?r.flexAnimate(u,r.vars.pauseOnAction):f||r.flexAnimate(r.currentSlide,r.vars.pauseOnAction,!0)}e=null,t=null,a=null,n=null,b=0},!1)}else u=function(a){r.animating?a.preventDefault():(window.navigator.msPointerEnabled||1===a.touches.length)&&(r.pause(),s=d?r.h:r.w,l=Number(new Date),v=a.touches[0].pageX,y=a.touches[0].pageY,n=p&&h&&r.animatingTo===r.last?0:p&&h?r.limit-(r.itemW+r.vars.itemMargin)*r.move*r.animatingTo:p&&r.currentSlide===r.last?r.limit:p?(r.itemW+r.vars.itemMargin)*r.move*r.currentSlide:h?(r.last-r.currentSlide+r.cloneOffset)*s:(r.currentSlide+r.cloneOffset)*s,e=d?y:v,t=d?v:y,i.addEventListener("touchmove",c,!1),i.addEventListener("touchend",m,!1))},c=function(i){v=i.touches[0].pageX,y=i.touches[0].pageY,a=d?e-y:e-v;(!(g=d?Math.abs(a)<Math.abs(v-t):Math.abs(a)<Math.abs(y-t))||Number(new Date)-l>500)&&(i.preventDefault(),!f&&r.transitions&&(r.vars.animationLoop||(a/=0===r.currentSlide&&a<0||r.currentSlide===r.last&&a>0?Math.abs(a)/s+2:1),r.setProps(n+a,"setTouch")))},m=function(o){if(i.removeEventListener("touchmove",c,!1),r.animatingTo===r.currentSlide&&!g&&null!==a){var u=h?-a:a,d=u>0?r.getTarget("next"):r.getTarget("prev");r.canAdvance(d)&&(Number(new Date)-l<550&&Math.abs(u)>50||Math.abs(u)>s/2)?r.flexAnimate(d,r.vars.pauseOnAction):f||r.flexAnimate(r.currentSlide,r.vars.pauseOnAction,!0)}i.removeEventListener("touchend",m,!1),e=null,t=null,a=null,n=null},i.addEventListener("touchstart",u,!1)},resize:function(){!r.animating&&r.is(":visible")&&(p||r.doMath(),f?g.smoothHeight():p?(r.slides.width(r.computedW),r.update(r.pagingCount),r.setProps()):d?(r.viewport.height(r.h),r.setProps(r.h,"setTotal")):(r.vars.smoothHeight&&g.smoothHeight(),r.newSlides.width(r.computedW),r.setProps(r.computedW,"setTotal")))},smoothHeight:function(e){if(!d||f){var t=f?r:r.viewport;e?t.animate({height:r.slides.eq(r.animatingTo).innerHeight()},e):t.innerHeight(r.slides.eq(r.animatingTo).innerHeight())}},sync:function(t){var i=e(r.vars.sync).data("flexslider"),n=r.animatingTo;switch(t){case"animate":i.flexAnimate(n,r.vars.pauseOnAction,!1,!0);break;case"play":i.playing||i.asNav||i.play();break;case"pause":i.pause()}},uniqueID:function(t){return t.filter("[id]").add(t.find("[id]")).each(function(){var t=e(this);t.attr("id",t.attr("id")+"_clone")}),t},pauseInvisible:{visProp:null,init:function(){var e=g.pauseInvisible.getHiddenProp();if(e){var t=e.replace(/[H|h]idden/,"")+"visibilitychange";document.addEventListener(t,function(){g.pauseInvisible.isHidden()?r.startTimeout?clearTimeout(r.startTimeout):r.pause():r.started?r.play():r.vars.initDelay>0?setTimeout(r.play,r.vars.initDelay):r.play()})}},isHidden:function(){var e=g.pauseInvisible.getHiddenProp();return!!e&&document[e]},getHiddenProp:function(){var e=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var t=0;t<e.length;t++)if(e[t]+"Hidden"in document)return e[t]+"Hidden";return null}},setToClearWatchedEvent:function(){clearTimeout(s),s=setTimeout(function(){c=""},3e3)}},r.flexAnimate=function(t,i,n,s,o){if(r.vars.animationLoop||t===r.currentSlide||(r.direction=t>r.currentSlide?"next":"prev"),m&&1===r.pagingCount&&(r.direction=r.currentItem<t?"next":"prev"),!r.animating&&(r.canAdvance(t,o)||n)&&r.is(":visible")){if(m&&s){var u=e(r.vars.asNavFor).data("flexslider");if(r.atEnd=0===t||t===r.count-1,u.flexAnimate(t,!0,!1,!0,o),r.direction=r.currentItem<t?"next":"prev",u.direction=r.direction,Math.ceil((t+1)/r.visible)-1===r.currentSlide||0===t)return r.currentItem=t,r.slides.removeClass(a+"active-slide").eq(t).addClass(a+"active-slide"),!1;r.currentItem=t,r.slides.removeClass(a+"active-slide").eq(t).addClass(a+"active-slide"),t=Math.floor(t/r.visible)}if(r.animating=!0,r.animatingTo=t,i&&r.pause(),r.vars.before(r),r.syncExists&&!o&&g.sync("animate"),r.vars.controlNav&&g.controlNav.active(),p||r.slides.removeClass(a+"active-slide").eq(t).addClass(a+"active-slide"),r.atEnd=0===t||t===r.last,r.vars.directionNav&&g.directionNav.update(),t===r.last&&(r.vars.end(r),r.vars.animationLoop||r.pause()),f)l?(r.slides.eq(r.currentSlide).css({opacity:0,zIndex:1}),r.slides.eq(t).css({opacity:1,zIndex:2}),r.wrapup(b)):(r.slides.eq(r.currentSlide).css({zIndex:1}).animate({opacity:0},r.vars.animationSpeed,r.vars.easing),r.slides.eq(t).css({zIndex:2}).animate({opacity:1},r.vars.animationSpeed,r.vars.easing,r.wrapup));else{var c,v,y,b=d?r.slides.filter(":first").height():r.computedW;p?(c=r.vars.itemMargin,v=(y=(r.itemW+c)*r.move*r.animatingTo)>r.limit&&1!==r.visible?r.limit:y):v=0===r.currentSlide&&t===r.count-1&&r.vars.animationLoop&&"next"!==r.direction?h?(r.count+r.cloneOffset)*b:0:r.currentSlide===r.last&&0===t&&r.vars.animationLoop&&"prev"!==r.direction?h?0:(r.count+1)*b:h?(r.count-1-t+r.cloneOffset)*b:(t+r.cloneOffset)*b,r.setProps(v,"",r.vars.animationSpeed),r.transitions?(r.vars.animationLoop&&r.atEnd||(r.animating=!1,r.currentSlide=r.animatingTo),r.container.unbind("webkitTransitionEnd transitionend"),r.container.bind("webkitTransitionEnd transitionend",function(){clearTimeout(r.ensureAnimationEnd),r.wrapup(b)}),clearTimeout(r.ensureAnimationEnd),r.ensureAnimationEnd=setTimeout(function(){r.wrapup(b)},r.vars.animationSpeed+100)):r.container.animate(r.args,r.vars.animationSpeed,r.vars.easing,function(){r.wrapup(b)})}r.vars.smoothHeight&&g.smoothHeight(r.vars.animationSpeed)}},r.wrapup=function(e){f||p||(0===r.currentSlide&&r.animatingTo===r.last&&r.vars.animationLoop?r.setProps(e,"jumpEnd"):r.currentSlide===r.last&&0===r.animatingTo&&r.vars.animationLoop&&r.setProps(e,"jumpStart")),r.animating=!1,r.currentSlide=r.animatingTo,r.vars.after(r)},r.animateSlides=function(){!r.animating&&t&&r.flexAnimate(r.getTarget("next"))},r.pause=function(){clearInterval(r.animatedSlides),r.animatedSlides=null,r.playing=!1,r.vars.pausePlay&&g.pausePlay.update("play"),r.syncExists&&g.sync("pause")},r.play=function(){r.playing&&clearInterval(r.animatedSlides),r.animatedSlides=r.animatedSlides||setInterval(r.animateSlides,r.vars.slideshowSpeed),r.started=r.playing=!0,r.vars.pausePlay&&g.pausePlay.update("pause"),r.syncExists&&g.sync("play")},r.stop=function(){r.pause(),r.stopped=!0},r.canAdvance=function(e,t){var i=m?r.pagingCount-1:r.last;return!!t||(!(!m||r.currentItem!==r.count-1||0!==e||"prev"!==r.direction)||(!m||0!==r.currentItem||e!==r.pagingCount-1||"next"===r.direction)&&(!(e===r.currentSlide&&!m)&&(!!r.vars.animationLoop||(!r.atEnd||0!==r.currentSlide||e!==i||"next"===r.direction)&&(!r.atEnd||r.currentSlide!==i||0!==e||"next"!==r.direction))))},r.getTarget=function(e){return r.direction=e,"next"===e?r.currentSlide===r.last?0:r.currentSlide+1:0===r.currentSlide?r.last:r.currentSlide-1},r.setProps=function(e,t,i){var n,s=(n=e||(r.itemW+r.vars.itemMargin)*r.move*r.animatingTo,-1*function(){if(p)return"setTouch"===t?e:h&&r.animatingTo===r.last?0:h?r.limit-(r.itemW+r.vars.itemMargin)*r.move*r.animatingTo:r.animatingTo===r.last?r.limit:n;switch(t){case"setTotal":return h?(r.count-1-r.currentSlide+r.cloneOffset)*e:(r.currentSlide+r.cloneOffset)*e;case"setTouch":return e;case"jumpEnd":return h?e:r.count*e;case"jumpStart":return h?r.count*e:e;default:return e}}()+"px");r.transitions&&(s=d?"translate3d(0,"+s+",0)":"translate3d("+s+",0,0)",i=void 0!==i?i/1e3+"s":"0s",r.container.css("-"+r.pfx+"-transition-duration",i),r.container.css("transition-duration",i)),r.args[r.prop]=s,(r.transitions||void 0===i)&&r.container.css(r.args),r.container.css("transform",s)},r.setup=function(t){var i,n;f?(r.slides.css({width:"100%",float:"left",marginRight:"-100%",position:"relative"}),"init"===t&&(l?r.slides.css({opacity:0,display:"block",webkitTransition:"opacity "+r.vars.animationSpeed/1e3+"s ease",zIndex:1}).eq(r.currentSlide).css({opacity:1,zIndex:2}):0==r.vars.fadeFirstSlide?r.slides.css({opacity:0,display:"block",zIndex:1}).eq(r.currentSlide).css({zIndex:2}).css({opacity:1}):r.slides.css({opacity:0,display:"block",zIndex:1}).eq(r.currentSlide).css({zIndex:2}).animate({opacity:1},r.vars.animationSpeed,r.vars.easing)),r.vars.smoothHeight&&g.smoothHeight()):("init"===t&&(r.viewport=e('<div class="'+a+'viewport"></div>').css({overflow:"hidden",position:"relative"}).appendTo(r).append(r.container),r.cloneCount=0,r.cloneOffset=0,h&&(n=e.makeArray(r.slides).reverse(),r.slides=e(n),r.container.empty().append(r.slides))),r.vars.animationLoop&&!p&&(r.cloneCount=2,r.cloneOffset=1,"init"!==t&&r.container.find(".clone").remove(),r.container.append(g.uniqueID(r.slides.first().clone().addClass("clone")).attr("aria-hidden","true")).prepend(g.uniqueID(r.slides.last().clone().addClass("clone")).attr("aria-hidden","true"))),r.newSlides=e(r.vars.selector,r),i=h?r.count-1-r.currentSlide+r.cloneOffset:r.currentSlide+r.cloneOffset,d&&!p?(r.container.height(200*(r.count+r.cloneCount)+"%").css("position","absolute").width("100%"),setTimeout(function(){r.newSlides.css({display:"block"}),r.doMath(),r.viewport.height(r.h),r.setProps(i*r.h,"init")},"init"===t?100:0)):(r.container.width(200*(r.count+r.cloneCount)+"%"),r.setProps(i*r.computedW,"init"),setTimeout(function(){r.doMath(),r.newSlides.css({width:r.computedW,marginRight:r.computedM,float:"left",display:"block"}),r.vars.smoothHeight&&g.smoothHeight()},"init"===t?100:0)));p||r.slides.removeClass(a+"active-slide").eq(r.currentSlide).addClass(a+"active-slide"),r.vars.init(r)},r.doMath=function(){var e=r.slides.first(),t=r.vars.itemMargin,i=r.vars.minItems,n=r.vars.maxItems;r.w=void 0===r.viewport?r.width():r.viewport.width(),r.h=e.height(),r.boxPadding=e.outerWidth()-e.width(),p?(r.itemT=r.vars.itemWidth+t,r.itemM=t,r.minW=i?i*r.itemT:r.w,r.maxW=n?n*r.itemT-t:r.w,r.itemW=r.minW>r.w?(r.w-t*(i-1))/i:r.maxW<r.w?(r.w-t*(n-1))/n:r.vars.itemWidth>r.w?r.w:r.vars.itemWidth,r.visible=Math.floor(r.w/r.itemW),r.move=r.vars.move>0&&r.vars.move<r.visible?r.vars.move:r.visible,r.pagingCount=Math.ceil((r.count-r.visible)/r.move+1),r.last=r.pagingCount-1,r.limit=1===r.pagingCount?0:r.vars.itemWidth>r.w?r.itemW*(r.count-1)+t*(r.count-1):(r.itemW+t)*r.count-r.w-t):(r.itemW=r.w,r.itemM=t,r.pagingCount=r.count,r.last=r.count-1),r.computedW=r.itemW-r.boxPadding,r.computedM=r.itemM},r.update=function(e,t){r.doMath(),p||(e<r.currentSlide?r.currentSlide+=1:e<=r.currentSlide&&0!==e&&(r.currentSlide-=1),r.animatingTo=r.currentSlide),r.vars.controlNav&&!r.manualControls&&("add"===t&&!p||r.pagingCount>r.controlNav.length?g.controlNav.update("add"):("remove"===t&&!p||r.pagingCount<r.controlNav.length)&&(p&&r.currentSlide>r.last&&(r.currentSlide-=1,r.animatingTo-=1),g.controlNav.update("remove",r.last))),r.vars.directionNav&&g.directionNav.update()},r.addSlide=function(t,i){var n=e(t);r.count+=1,r.last=r.count-1,d&&h?void 0!==i?r.slides.eq(r.count-i).after(n):r.container.prepend(n):void 0!==i?r.slides.eq(i).before(n):r.container.append(n),r.update(i,"add"),r.slides=e(r.vars.selector+":not(.clone)",r),r.setup(),r.vars.added(r)},r.removeSlide=function(t){var i=isNaN(t)?r.slides.index(e(t)):t;r.count-=1,r.last=r.count-1,isNaN(t)?e(t,r.slides).remove():d&&h?r.slides.eq(r.last).remove():r.slides.eq(t).remove(),r.doMath(),r.update(i,"remove"),r.slides=e(r.vars.selector+":not(.clone)",r),r.setup(),r.vars.removed(r)},g.init()},e(window).blur(function(e){t=!1}).focus(function(e){t=!0}),e.flexslider.defaults={namespace:"flex-",selector:".slides > li",animation:"fade",easing:"swing",direction:"horizontal",reverse:!1,animationLoop:!0,smoothHeight:!1,startAt:0,slideshow:!0,slideshowSpeed:7e3,animationSpeed:600,initDelay:0,randomize:!1,fadeFirstSlide:!0,thumbCaptions:!1,pauseOnAction:!0,pauseOnHover:!1,pauseInvisible:!0,useCSS:!0,touch:!0,video:!1,controlNav:!0,directionNav:!0,prevText:"Previous",nextText:"Next",keyboard:!0,multipleKeyboard:!1,mousewheel:!1,pausePlay:!1,pauseText:"Pause",playText:"Play",controlsContainer:"",manualControls:"",customDirectionNav:"",sync:"",asNavFor:"",itemWidth:0,itemMargin:0,minItems:1,maxItems:0,move:0,allowOneSlide:!0,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){},init:function(){}},e.fn.flexslider=function(t){if(void 0===t&&(t={}),"object"==typeof t)return this.each(function(){var i=e(this),n=t.selector?t.selector:".slides > li",r=i.find(n);1===r.length&&!1===t.allowOneSlide||0===r.length?(r.fadeIn(400),t.start&&t.start(i)):void 0===i.data("flexslider")&&new e.flexslider(this,t)});var i=e(this).data("flexslider");switch(t){case"play":i.play();break;case"pause":i.pause();break;case"stop":i.stop();break;case"next":i.flexAnimate(i.getTarget("next"),!0);break;case"prev":case"previous":i.flexAnimate(i.getTarget("prev"),!0);break;default:"number"==typeof t&&i.flexAnimate(t,!0)}}}(jQuery),function(e){e.fn.pajinate=function(t){var i,n,r,s,a,o,l="current_page",u="items_per_page",c=(t=e.extend({item_container_id:".content",items_per_page:10,nav_panel_id:".page_navigation",nav_info_id:".info_text",num_page_links_to_display:20,start_page:0,wrap_around:!1,nav_label_first:"First",nav_label_prev:"Prev",nav_label_next:"Next",nav_label_last:"Last",nav_order:["first","prev","num","next","last"],nav_label_info:"Showing {0}-{1} of {2} results",show_first_last:!0,abort_on_small_lists:!1,jquery_ui:!1,jquery_ui_active:"ui-state-highlight",jquery_ui_default:"ui-state-default",jquery_ui_disabled:"ui-state-disabled"},t)).jquery_ui?t.jquery_ui_default:"",d=t.jquery_ui?t.jquery_ui_active:"",h=t.jquery_ui?t.jquery_ui_disabled:"";return this.each(function(){if(r=e(this),n=e(this).find(t.item_container_id),s=r.find(t.item_container_id).children(),t.abort_on_small_lists&&t.items_per_page>=s.size())return r;(i=r).data(l,0),i.data(u,t.items_per_page);for(var h=n.children().length,v=Math.ceil(h/t.items_per_page),y=t.show_first_last?'<li class="page-item first_link '+c+'"><a class="page-link" href="#">'+t.nav_label_first+"</a></li>":"",b=t.show_first_last?'<li class="page-item last_link '+c+'"><a class="page-link" href="#">'+t.nav_label_last+"</a></li>":"",w="",T=0;T<t.nav_order.length;T++)switch(t.nav_order[T]){case"first":w+=y;break;case"last":w+=b;break;case"next":w+='<li class="page-item next_link '+c+'"><a class="page-link" href="#">'+t.nav_label_next+"</a></li>";break;case"prev":w+='<li class="page-item previous_link '+c+'"><a class="page-link" href="#">'+t.nav_label_prev+"</a></li>";break;case"num":w+='<li class="page-item disabled ellipse less"><a class="page-link" href="#">...</a></li>';for(var _=0;v>_;)w+='<li class="page-item page_link '+c+'" longdesc="'+_+'"><a class="page-link" href="#">'+(_+1)+"</a></li>",_++;w+='<li class="page-item disabled ellipse more"><a class="page-link" href="#">...</a></li>'}(a=r.find(t.nav_panel_id)).html(w).each(function(){e(this).find(".page_link:first").addClass("first"),e(this).find(".page_link:last").addClass("last")}),a.children(".ellipse").hide(),a.find(".previous_link").next().next().addClass("active "+d),s.hide(),s.slice(0,i.data(u)).show(),o=r.find(t.nav_panel_id+":first").children(".page_link").length,t.num_page_links_to_display=Math.min(t.num_page_links_to_display,o),a.children(".page_link").hide(),a.each(function(){e(this).children(".page_link").slice(0,t.num_page_links_to_display).show()}),r.find(".first_link").click(function(t){t.preventDefault(),m(e(this),0),p(0)}),r.find(".last_link").click(function(t){t.preventDefault();var i=o-1;f(e(this),i),p(i)}),r.find(".previous_link").click(function(n){n.preventDefault(),function(n){new_page=parseInt(i.data(l))-1,1==e(n).siblings(".active").prev(".page_link").length?(m(n,new_page),p(new_page)):t.wrap_around&&p(o-1)}(e(this))}),r.find(".next_link").click(function(n){n.preventDefault(),function(n){new_page=parseInt(i.data(l))+1,1==e(n).siblings(".active").next(".page_link").length?(f(n,new_page),p(new_page)):t.wrap_around&&p(0)}(e(this))}),r.find(".page_link").click(function(t){t.preventDefault(),p(e(this).attr("longdesc"))}),p(parseInt(t.start_page)),t.wrap_around||g()});function p(e){e=parseInt(e,10);var a=parseInt(i.data(u));start_from=e*a,end_on=start_from+a;var o=s.hide().slice(start_from,end_on);o.fadeIn(700),r.find(t.nav_panel_id).children(".page_link[longdesc="+e+"]").addClass("active "+d).siblings(".active").removeClass("active "+d),i.data(l,e);var c=parseInt(i.data(l)+1),h=n.children().length,p=Math.ceil(h/t.items_per_page);r.find(t.nav_info_id).html(t.nav_label_info.replace("{0}",start_from+1).replace("{1}",start_from+o.length).replace("{2}",s.length).replace("{3}",c).replace("{4}",p)),g(),void 0!==t.onPageDisplayed&&t.onPageDisplayed.call(this,e+1)}function f(i,n){var r=n;"none"==e(i).siblings(".active").siblings(".page_link[longdesc="+r+"]").css("display")&&a.each(function(){e(this).children(".page_link").hide().slice(parseInt(r-t.num_page_links_to_display+1),r+1).show()})}function m(i,n){var r=n;"none"==e(i).siblings(".active").siblings(".page_link[longdesc="+r+"]").css("display")&&a.each(function(){e(this).children(".page_link").hide().slice(r,r+parseInt(t.num_page_links_to_display)).show()})}function g(){a.children(".last").hasClass("active")?a.children(".next_link").add(".last_link").addClass("no_more "+h):a.children(".next_link").add(".last_link").removeClass("no_more "+h),a.children(".first").hasClass("active")?a.children(".previous_link").add(".first_link").addClass("no_more "+h):a.children(".previous_link").add(".first_link").removeClass("no_more "+h)}}}(jQuery),function(e,t){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return t(e,i)}):"object"==typeof module&&module.exports?module.exports=t(e,require("jquery")):e.jQueryBridget=t(e,e.jQuery)}(window,function(e,t){"use strict";function i(i,s,o){(o=o||t||e.jQuery)&&(s.prototype.option||(s.prototype.option=function(e){o.isPlainObject(e)&&(this.options=o.extend(!0,this.options,e))}),o.fn[i]=function(e){return"string"==typeof e?function(e,t,n){var r,s="$()."+i+'("'+t+'")';return e.each(function(e,l){var u=o.data(l,i);if(u){var c=u[t];if(c&&"_"!=t.charAt(0)){var d=c.apply(u,n);r=void 0===r?d:r}else a(s+" is not a valid method")}else a(i+" not initialized. Cannot call methods, i.e. "+s)}),void 0!==r?r:e}(this,e,r.call(arguments,1)):(function(e,t){e.each(function(e,n){var r=o.data(n,i);r?(r.option(t),r._init()):(r=new s(n,t),o.data(n,i,r))})}(this,e),this)},n(o))}function n(e){!e||e&&e.bridget||(e.bridget=i)}var r=Array.prototype.slice,s=e.console,a=void 0===s?function(){}:function(e){s.error(e)};return n(t||e.jQuery),i}),function(e,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var i=this._events=this._events||{},n=i[e]=i[e]||[];return-1==n.indexOf(t)&&n.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var i=this._onceEvents=this._onceEvents||{};return(i[e]=i[e]||{})[t]=!0,this}},t.off=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){var n=i.indexOf(t);return-1!=n&&i.splice(n,1),this}},t.emitEvent=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){i=i.slice(0),t=t||[];for(var n=this._onceEvents&&this._onceEvents[e],r=0;r<i.length;r++){var s=i[r];n&&n[s]&&(this.off(e,s),delete n[s]),s.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e}),function(e,t){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",t):"object"==typeof module&&module.exports?module.exports=t():e.matchesSelector=t()}(window,function(){"use strict";var e=function(){var e=window.Element.prototype;if(e.matches)return"matches";if(e.matchesSelector)return"matchesSelector";for(var t=["webkit","moz","ms","o"],i=0;i<t.length;i++){var n=t[i]+"MatchesSelector";if(e[n])return n}}();return function(t,i){return t[e](i)}}),function(e,t){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(i){return t(e,i)}):"object"==typeof module&&module.exports?module.exports=t(e,require("desandro-matches-selector")):e.fizzyUIUtils=t(e,e.matchesSelector)}(window,function(e,t){var i={extend:function(e,t){for(var i in t)e[i]=t[i];return e},modulo:function(e,t){return(e%t+t)%t},makeArray:function(e){var t=[];if(Array.isArray(e))t=e;else if(e&&"object"==typeof e&&"number"==typeof e.length)for(var i=0;i<e.length;i++)t.push(e[i]);else t.push(e);return t},removeFrom:function(e,t){var i=e.indexOf(t);-1!=i&&e.splice(i,1)},getParent:function(e,i){for(;e.parentNode&&e!=document.body;)if(e=e.parentNode,t(e,i))return e},getQueryElement:function(e){return"string"==typeof e?document.querySelector(e):e},handleEvent:function(e){var t="on"+e.type;this[t]&&this[t](e)},filterFindElements:function(e,n){e=i.makeArray(e);var r=[];return e.forEach(function(e){if(e instanceof HTMLElement){if(!n)return void r.push(e);t(e,n)&&r.push(e);for(var i=e.querySelectorAll(n),s=0;s<i.length;s++)r.push(i[s])}}),r},debounceMethod:function(e,t,i){var n=e.prototype[t],r=t+"Timeout";e.prototype[t]=function(){var e=this[r];e&&clearTimeout(e);var t=arguments,s=this;this[r]=setTimeout(function(){n.apply(s,t),delete s[r]},i||100)}},docReady:function(e){var t=document.readyState;"complete"==t||"interactive"==t?setTimeout(e):document.addEventListener("DOMContentLoaded",e)},toDashed:function(e){return e.replace(/(.)([A-Z])/g,function(e,t,i){return t+"-"+i}).toLowerCase()}},n=e.console;return i.htmlInit=function(t,r){i.docReady(function(){var s=i.toDashed(r),a="data-"+s,o=document.querySelectorAll("["+a+"]"),l=document.querySelectorAll(".js-"+s),u=i.makeArray(o).concat(i.makeArray(l)),c=a+"-options",d=e.jQuery;u.forEach(function(e){var i,s=e.getAttribute(a)||e.getAttribute(c);try{i=s&&JSON.parse(s)}catch(t){return void(n&&n.error("Error parsing "+a+" on "+e.className+": "+t))}var o=new t(e,i);d&&d.data(e,r,o)})})},i}),function(e,t){"function"==typeof define&&define.amd?define("infinite-scroll/js/core",["ev-emitter/ev-emitter","fizzy-ui-utils/utils"],function(i,n){return t(e,i,n)}):"object"==typeof module&&module.exports?module.exports=t(e,require("ev-emitter"),require("fizzy-ui-utils")):e.InfiniteScroll=t(e,e.EvEmitter,e.fizzyUIUtils)}(window,function(e,t,i){function n(e,t){var a=i.getQueryElement(e);if(a){if((e=a).infiniteScrollGUID){var o=s[e.infiniteScrollGUID];return o.option(t),o}this.element=e,this.options=i.extend({},n.defaults),this.option(t),r&&(this.$element=r(this.element)),this.create()}else console.error("Bad element for InfiniteScroll: "+(a||e))}var r=e.jQuery,s={};n.defaults={},n.create={},n.destroy={};var a=n.prototype;i.extend(a,t.prototype);var o=0;a.create=function(){var e=this.guid=++o;if(this.element.infiniteScrollGUID=e,s[e]=this,this.pageIndex=1,this.loadCount=0,this.updateGetPath(),this.getPath)for(var t in this.updateGetAbsolutePath(),this.log("initialized",[this.element.className]),this.callOnInit(),n.create)n.create[t].call(this);else console.error("Disabling InfiniteScroll")},a.option=function(e){i.extend(this.options,e)},a.callOnInit=function(){var e=this.options.onInit;e&&e.call(this,this)},a.dispatchEvent=function(e,t,i){this.log(e,i);var n=t?[t].concat(i):i;if(this.emitEvent(e,n),r&&this.$element){var s=e+=".infiniteScroll";if(t){var a=r.Event(t);a.type=e,s=a}this.$element.trigger(s,i)}};var l={initialized:function(e){return"on "+e},request:function(e){return"URL: "+e},load:function(e,t){return(e.title||"")+". URL: "+t},error:function(e,t){return e+". URL: "+t},append:function(e,t,i){return i.length+" items. URL: "+t},last:function(e,t){return"URL: "+t},history:function(e,t){return"URL: "+t},pageIndex:function(e,t){return"current page determined to be: "+e+" from "+t}};a.log=function(e,t){if(this.options.debug){var i="[InfiniteScroll] "+e,n=l[e];n&&(i+=". "+n.apply(this,t)),console.log(i)}},a.updateMeasurements=function(){this.windowHeight=e.innerHeight;var t=this.element.getBoundingClientRect();this.top=t.top+e.pageYOffset},a.updateScroller=function(){var t=this.options.elementScroll;if(t){if(this.scroller=!0===t?this.element:i.getQueryElement(t),!this.scroller)throw"Unable to find elementScroll: "+t}else this.scroller=e},a.updateGetPath=function(){var e=this.options.path;if(e){var t=typeof e;if("function"!=t)return"string"==t&&e.match("{{#}}")?void this.updateGetPathTemplate(e):void this.updateGetPathSelector(e);this.getPath=e}else console.error("InfiniteScroll path option required. Set as: "+e)},a.updateGetPathTemplate=function(e){this.getPath=function(){var t=this.pageIndex+1;return e.replace("{{#}}",t)}.bind(this);var t=e.replace("{{#}}","(\\d\\d?\\d?)"),i=new RegExp(t),n=location.href.match(i);n&&(this.pageIndex=parseInt(n[1],10),this.log("pageIndex",this.pageIndex,"template string"))};var u=[/^(.*?\/?page\/?)(\d\d?\d?)(.*?$)/,/^(.*?\/?\?page=)(\d\d?\d?)(.*?$)/,/(.*?)(\d\d?\d?)(?!.*\d)(.*?$)/];return a.updateGetPathSelector=function(e){var t=document.querySelector(e);if(t){for(var i,n,r=t.getAttribute("href"),s=0;r&&s<u.length;s++){n=u[s];var a=r.match(n);if(a){i=a.slice(1);break}}return i?(this.isPathSelector=!0,this.getPath=function(){var e=this.pageIndex+1;return i[0]+e+i[2]}.bind(this),this.pageIndex=parseInt(i[1],10)-1,void this.log("pageIndex",[this.pageIndex,"next link"])):void console.error("InfiniteScroll unable to parse next link href: "+r)}console.error("Bad InfiniteScroll path option. Next link not found: "+e)},a.updateGetAbsolutePath=function(){var e=this.getPath();if(e.match(/^http/)||e.match(/^\//))this.getAbsolutePath=this.getPath;else{var t=location.pathname,i=t.substring(0,t.lastIndexOf("/"));this.getAbsolutePath=function(){return i+"/"+this.getPath()}}},n.create.hideNav=function(){var e=i.getQueryElement(this.options.hideNav);e&&(e.style.display="none",this.nav=e)},n.destroy.hideNav=function(){this.nav&&(this.nav.style.display="")},a.destroy=function(){for(var e in this.allOff(),n.destroy)n.destroy[e].call(this);delete this.element.infiniteScrollGUID,delete s[this.guid]},n.throttle=function(e,t){var i,n;return t=t||200,function(){var r=+new Date,s=arguments,a=function(){i=r,e.apply(this,s)}.bind(this);i&&r<i+t?(clearTimeout(n),n=setTimeout(a,t)):a()}},n.data=function(e){var t=(e=i.getQueryElement(e))&&e.infiniteScrollGUID;return t&&s[t]},n.setJQuery=function(e){r=e},i.htmlInit(n,"infinite-scroll"),r&&r.bridget&&r.bridget("infiniteScroll",n),n}),function(e,t){"function"==typeof define&&define.amd?define("infinite-scroll/js/page-load",["./core"],function(i){return t(e,i)}):"object"==typeof module&&module.exports?module.exports=t(e,require("./core")):t(e,e.InfiniteScroll)}(window,function(e,t){function i(e){for(var t=document.createDocumentFragment(),i=0;e&&i<e.length;i++)t.appendChild(e[i]);return t}function n(e,t){for(var i=e.attributes,n=0;n<i.length;n++){var r=i[n];t.setAttribute(r.name,r.value)}}var r=t.prototype;return t.defaults.loadOnScroll=!0,t.defaults.checkLastPage=!0,t.defaults.responseType="document",t.create.pageLoad=function(){this.canLoad=!0,this.on("scrollThreshold",this.onScrollThresholdLoad),this.on("load",this.checkLastPage),this.options.outlayer&&this.on("append",this.onAppendOutlayer)},r.onScrollThresholdLoad=function(){this.options.loadOnScroll&&this.loadNextPage()},r.loadNextPage=function(){if(!this.isLoading&&this.canLoad){var e=this.getAbsolutePath();this.isLoading=!0;var t=function(t){this.onPageLoad(t,e)}.bind(this),i=function(t){this.onPageError(t,e)}.bind(this);(function(e,t,i,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType=t||"",r.setRequestHeader("X-Requested-With","XMLHttpRequest"),r.onload=function(){if(200==r.status)i(r.response);else{var e=new Error(r.statusText);n(e)}},r.onerror=function(){var t=new Error("Network error requesting "+e);n(t)},r.send()})(e,this.options.responseType,t,i),this.dispatchEvent("request",null,[e])}},r.onPageLoad=function(e,t){return this.options.append||(this.isLoading=!1),this.pageIndex++,this.loadCount++,this.dispatchEvent("load",null,[e,t]),this.appendNextPage(e,t),e},r.appendNextPage=function(e,t){var n=this.options.append;if("document"==this.options.responseType&&n){var r=e.querySelectorAll(n),s=i(r),a=function(){this.appendItems(r,s),this.isLoading=!1,this.dispatchEvent("append",null,[e,t,r])}.bind(this);this.options.outlayer?this.appendOutlayerItems(s,a):a()}},r.appendItems=function(e,t){e&&e.length&&(function(e){for(var t=e.querySelectorAll("script"),i=0;i<t.length;i++){var r=t[i],s=document.createElement("script");n(r,s),r.parentNode.replaceChild(s,r)}}(t=t||i(e)),this.element.appendChild(t))},r.appendOutlayerItems=function(i,n){var r=t.imagesLoaded||e.imagesLoaded;return r?void r(i,n):(console.error("[InfiniteScroll] imagesLoaded required for outlayer option"),void(this.isLoading=!1))},r.onAppendOutlayer=function(e,t,i){this.options.outlayer.appended(i)},r.checkLastPage=function(e,t){var i=this.options.checkLastPage;if(i){var n,r=this.options.path;if("function"==typeof r)if(!this.getPath())return void this.lastPageReached(e,t);if("string"==typeof i?n=i:this.isPathSelector&&(n=r),n&&e.querySelector)e.querySelector(n)||this.lastPageReached(e,t)}},r.lastPageReached=function(e,t){this.canLoad=!1,this.dispatchEvent("last",null,[e,t])},r.onPageError=function(e,t){return this.isLoading=!1,this.canLoad=!1,this.dispatchEvent("error",null,[e,t]),e},t.create.prefill=function(){if(this.options.prefill){var e=this.options.append;if(!e)return void console.error("append option required for prefill. Set as :"+e);this.updateMeasurements(),this.updateScroller(),this.isPrefilling=!0,this.on("append",this.prefill),this.once("error",this.stopPrefill),this.once("last",this.stopPrefill),this.prefill()}},r.prefill=function(){var e=this.getPrefillDistance();this.isPrefilling=e>=0,this.isPrefilling?(this.log("prefill"),this.loadNextPage()):this.stopPrefill()},r.getPrefillDistance=function(){return this.options.elementScroll?this.scroller.clientHeight-this.scroller.scrollHeight:this.windowHeight-this.element.clientHeight},r.stopPrefill=function(){console.log("stopping prefill"),this.off("append",this.prefill)},t}),function(e,t){"function"==typeof define&&define.amd?define("infinite-scroll/js/scroll-watch",["./core","fizzy-ui-utils/utils"],function(i,n){return t(e,i,n)}):"object"==typeof module&&module.exports?module.exports=t(e,require("./core"),require("fizzy-ui-utils")):t(e,e.InfiniteScroll,e.fizzyUIUtils)}(window,function(e,t,i){var n=t.prototype;return t.defaults.scrollThreshold=400,t.create.scrollWatch=function(){this.pageScrollHandler=this.onPageScroll.bind(this),this.resizeHandler=this.onResize.bind(this);var e=this.options.scrollThreshold;(e||0===e)&&this.enableScrollWatch()},t.destroy.scrollWatch=function(){this.disableScrollWatch()},n.enableScrollWatch=function(){this.isScrollWatching||(this.isScrollWatching=!0,this.updateMeasurements(),this.updateScroller(),this.on("last",this.disableScrollWatch),this.bindScrollWatchEvents(!0))},n.disableScrollWatch=function(){this.isScrollWatching&&(this.bindScrollWatchEvents(!1),delete this.isScrollWatching)},n.bindScrollWatchEvents=function(t){var i=t?"addEventListener":"removeEventListener";this.scroller[i]("scroll",this.pageScrollHandler),e[i]("resize",this.resizeHandler)},n.onPageScroll=t.throttle(function(){this.getBottomDistance()<=this.options.scrollThreshold&&this.dispatchEvent("scrollThreshold")}),n.getBottomDistance=function(){return this.options.elementScroll?this.getElementBottomDistance():this.getWindowBottomDistance()},n.getWindowBottomDistance=function(){return this.top+this.element.clientHeight-(e.pageYOffset+this.windowHeight)},n.getElementBottomDistance=function(){return this.scroller.scrollHeight-(this.scroller.scrollTop+this.scroller.clientHeight)},n.onResize=function(){this.updateMeasurements()},i.debounceMethod(t,"onResize",150),t}),function(e,t){"function"==typeof define&&define.amd?define("infinite-scroll/js/history",["./core","fizzy-ui-utils/utils"],function(i,n){return t(e,i,n)}):"object"==typeof module&&module.exports?module.exports=t(e,require("./core"),require("fizzy-ui-utils")):t(e,e.InfiniteScroll,e.fizzyUIUtils)}(window,function(e,t,i){var n=t.prototype;t.defaults.history="replace";var r=document.createElement("a");return t.create.history=function(){if(this.options.history)return r.href=this.getAbsolutePath(),(r.origin||r.protocol+"//"+r.host)==location.origin?void(this.options.append?this.createHistoryAppend():this.createHistoryPageLoad()):void console.error("[InfiniteScroll] cannot set history with different origin: "+r.origin+" on "+location.origin+" . History behavior disabled.")},n.createHistoryAppend=function(){this.updateMeasurements(),this.updateScroller(),this.scrollPages=[{top:0,path:location.href,title:document.title}],this.scrollPageIndex=0,this.scrollHistoryHandler=this.onScrollHistory.bind(this),this.unloadHandler=this.onUnload.bind(this),this.scroller.addEventListener("scroll",this.scrollHistoryHandler),this.on("append",this.onAppendHistory),this.bindHistoryAppendEvents(!0)},n.bindHistoryAppendEvents=function(t){var i=t?"addEventListener":"removeEventListener";this.scroller[i]("scroll",this.scrollHistoryHandler),e[i]("unload",this.unloadHandler)},n.createHistoryPageLoad=function(){this.on("load",this.onPageLoadHistory)},t.destroy.history=n.destroyHistory=function(){this.options.history&&this.options.append&&this.bindHistoryAppendEvents(!1)},n.onAppendHistory=function(e,t,i){var n=i[0],s=this.getElementScrollY(n);r.href=t,this.scrollPages.push({top:s,path:r.href,title:e.title})},n.getElementScrollY=function(e){return this.options.elementScroll?this.getElementElementScrollY(e):this.getElementWindowScrollY(e)},n.getElementWindowScrollY=function(t){return t.getBoundingClientRect().top+e.pageYOffset},n.getElementElementScrollY=function(e){return e.offsetTop-this.top},n.onScrollHistory=function(){for(var e,t,i=this.getScrollViewY(),n=0;n<this.scrollPages.length;n++){var r=this.scrollPages[n];if(r.top>=i)break;e=n,t=r}e!=this.scrollPageIndex&&(this.scrollPageIndex=e,this.setHistory(t.title,t.path))},i.debounceMethod(t,"onScrollHistory",150),n.getScrollViewY=function(){return this.options.elementScroll?this.scroller.scrollTop+this.scroller.clientHeight/2:e.pageYOffset+this.windowHeight/2},n.setHistory=function(e,t){var i=this.options.history;i&&history[i+"State"]&&(history[i+"State"](null,e,t),this.options.historyTitle&&(document.title=e),this.dispatchEvent("history",null,[e,t]))},n.onUnload=function(){var t=this.scrollPageIndex;if(0!==t){var i=this.scrollPages[t],n=e.pageYOffset-i.top+this.top;this.destroyHistory(),scrollTo(0,n)}},n.onPageLoadHistory=function(e,t){this.setHistory(e.title,t)},t}),function(e,t){"function"==typeof define&&define.amd?define("infinite-scroll/js/button",["./core","fizzy-ui-utils/utils"],function(i,n){return t(e,i,n)}):"object"==typeof module&&module.exports?module.exports=t(e,require("./core"),require("fizzy-ui-utils")):t(e,e.InfiniteScroll,e.fizzyUIUtils)}(window,function(e,t,i){function n(e,t){this.element=e,this.infScroll=t,this.clickHandler=this.onClick.bind(this),this.element.addEventListener("click",this.clickHandler),t.on("request",this.disable.bind(this)),t.on("load",this.enable.bind(this)),t.on("error",this.hide.bind(this)),t.on("last",this.hide.bind(this))}return t.create.button=function(){var e=i.getQueryElement(this.options.button);e&&(this.button=new n(e,this))},t.destroy.button=function(){this.button&&this.button.destroy()},n.prototype.onClick=function(e){e.preventDefault(),this.infScroll.loadNextPage()},n.prototype.enable=function(){this.element.removeAttribute("disabled")},n.prototype.disable=function(){this.element.disabled="disabled"},n.prototype.hide=function(){this.element.style.display="none"},n.prototype.destroy=function(){this.element.removeEventListener("click",this.clickHandler)},t.Button=n,t}),function(e,t){"function"==typeof define&&define.amd?define("infinite-scroll/js/status",["./core","fizzy-ui-utils/utils"],function(i,n){return t(e,i,n)}):"object"==typeof module&&module.exports?module.exports=t(e,require("./core"),require("fizzy-ui-utils")):t(e,e.InfiniteScroll,e.fizzyUIUtils)}(window,function(e,t,i){function n(e){s(e,"none")}function r(e){s(e,"block")}function s(e,t){e&&(e.style.display=t)}var a=t.prototype;return t.create.status=function(){var e=i.getQueryElement(this.options.status);e&&(this.statusElement=e,this.statusEventElements={request:e.querySelector(".infinite-scroll-request"),error:e.querySelector(".infinite-scroll-error"),last:e.querySelector(".infinite-scroll-last")},this.on("request",this.showRequestStatus),this.on("error",this.showErrorStatus),this.on("last",this.showLastStatus),this.bindHideStatus("on"))},a.bindHideStatus=function(e){var t=this.options.append?"append":"load";this[e](t,this.hideAllStatus)},a.showRequestStatus=function(){this.showStatus("request")},a.showErrorStatus=function(){this.showStatus("error")},a.showLastStatus=function(){this.showStatus("last"),this.bindHideStatus("off")},a.showStatus=function(e){r(this.statusElement),this.hideStatusEventElements(),r(this.statusEventElements[e])},a.hideAllStatus=function(){n(this.statusElement),this.hideStatusEventElements()},a.hideStatusEventElements=function(){for(var e in this.statusEventElements){n(this.statusEventElements[e])}},t}),function(e,t){"function"==typeof define&&define.amd?define(["infinite-scroll/js/core","infinite-scroll/js/page-load","infinite-scroll/js/scroll-watch","infinite-scroll/js/history","infinite-scroll/js/button","infinite-scroll/js/status"],t):"object"==typeof module&&module.exports&&(module.exports=t(require("./core"),require("./page-load"),require("./scroll-watch"),require("./history"),require("./button"),require("./status")))}(window,function(e){return e}),function(e,t){"use strict";"function"==typeof define&&define.amd?define("imagesloaded/imagesloaded",["ev-emitter/ev-emitter"],function(i){return t(e,i)}):"object"==typeof module&&module.exports?module.exports=t(e,require("ev-emitter")):e.imagesLoaded=t(e,e.EvEmitter)}("undefined"!=typeof window?window:this,function(e,t){function i(e,t){for(var i in t)e[i]=t[i];return e}function n(e,t,r){if(!(this instanceof n))return new n(e,t,r);var s=e;return"string"==typeof e&&(s=document.querySelectorAll(e)),s?(this.elements=function(e){return Array.isArray(e)?e:"object"==typeof e&&"number"==typeof e.length?l.call(e):[e]}(s),this.options=i({},this.options),"function"==typeof t?r=t:i(this.options,t),r&&this.on("always",r),this.getImages(),a&&(this.jqDeferred=new a.Deferred),void setTimeout(this.check.bind(this))):void o.error("Bad element for imagesLoaded "+(s||e))}function r(e){this.img=e}function s(e,t){this.url=e,this.element=t,this.img=new Image}var a=e.jQuery,o=e.console,l=Array.prototype.slice;n.prototype=Object.create(t.prototype),n.prototype.options={},n.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},n.prototype.addElementImages=function(e){"IMG"==e.nodeName&&this.addImage(e),!0===this.options.background&&this.addElementBackgroundImages(e);var t=e.nodeType;if(t&&u[t]){for(var i=e.querySelectorAll("img"),n=0;n<i.length;n++){var r=i[n];this.addImage(r)}if("string"==typeof this.options.background){var s=e.querySelectorAll(this.options.background);for(n=0;n<s.length;n++){var a=s[n];this.addElementBackgroundImages(a)}}}};var u={1:!0,9:!0,11:!0};return n.prototype.addElementBackgroundImages=function(e){var t=getComputedStyle(e);if(t)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(t.backgroundImage);null!==n;){var r=n&&n[2];r&&this.addBackground(r,e),n=i.exec(t.backgroundImage)}},n.prototype.addImage=function(e){var t=new r(e);this.images.push(t)},n.prototype.addBackground=function(e,t){var i=new s(e,t);this.images.push(i)},n.prototype.check=function(){function e(e,i,n){setTimeout(function(){t.progress(e,i,n)})}var t=this;return this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?void this.images.forEach(function(t){t.once("progress",e),t.check()}):void this.complete()},n.prototype.progress=function(e,t,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emitEvent("progress",[this,e,t]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&o&&o.log("progress: "+i,e,t)},n.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(e,[this]),this.emitEvent("always",[this]),this.jqDeferred){var t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},r.prototype=Object.create(t.prototype),r.prototype.check=function(){return this.getIsImageComplete()?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),void(this.proxyImage.src=this.img.src))},r.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},r.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.img,t])},r.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},r.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},r.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},r.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype=Object.create(r.prototype),s.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},s.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.element,t])},n.makeJQueryPlugin=function(t){(t=t||e.jQuery)&&((a=t).fn.imagesLoaded=function(e,t){return new n(this,e,t).jqDeferred.promise(a(this))})},n.makeJQueryPlugin(),n}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(e){e.ui=e.ui||{},e.ui.version="1.12.1";var t=0,i=Array.prototype.slice;e.cleanData=function(t){return function(i){var n,r,s;for(s=0;null!=(r=i[s]);s++)try{(n=e._data(r,"events"))&&n.remove&&e(r).triggerHandler("remove")}catch(e){}t(i)}}(e.cleanData),e.widget=function(t,i,n){var r,s,a,o={},l=t.split(".")[0],u=l+"-"+(t=t.split(".")[1]);return n||(n=i,i=e.Widget),e.isArray(n)&&(n=e.extend.apply(null,[{}].concat(n))),e.expr[":"][u.toLowerCase()]=function(t){return!!e.data(t,u)},e[l]=e[l]||{},r=e[l][t],s=e[l][t]=function(e,t){return this._createWidget?void(arguments.length&&this._createWidget(e,t)):new s(e,t)},e.extend(s,r,{version:n.version,_proto:e.extend({},n),_childConstructors:[]}),(a=new i).options=e.widget.extend({},a.options),e.each(n,function(t,n){return e.isFunction(n)?void(o[t]=function(){function e(){return i.prototype[t].apply(this,arguments)}function r(e){return i.prototype[t].apply(this,e)}return function(){var t,i=this._super,s=this._superApply;return this._super=e,this._superApply=r,t=n.apply(this,arguments),this._super=i,this._superApply=s,t}}()):void(o[t]=n)}),s.prototype=e.widget.extend(a,{widgetEventPrefix:r&&a.widgetEventPrefix||t},o,{constructor:s,namespace:l,widgetName:t,widgetFullName:u}),r?(e.each(r._childConstructors,function(t,i){var n=i.prototype;e.widget(n.namespace+"."+n.widgetName,s,i._proto)}),delete r._childConstructors):i._childConstructors.push(s),e.widget.bridge(t,s),s},e.widget.extend=function(t){for(var n,r,s=i.call(arguments,1),a=0,o=s.length;o>a;a++)for(n in s[a])r=s[a][n],s[a].hasOwnProperty(n)&&void 0!==r&&(t[n]=e.isPlainObject(r)?e.isPlainObject(t[n])?e.widget.extend({},t[n],r):e.widget.extend({},r):r);return t},e.widget.bridge=function(t,n){var r=n.prototype.widgetFullName||t;e.fn[t]=function(s){var a="string"==typeof s,o=i.call(arguments,1),l=this;return a?this.length||"instance"!==s?this.each(function(){var i,n=e.data(this,r);return"instance"===s?(l=n,!1):n?e.isFunction(n[s])&&"_"!==s.charAt(0)?(i=n[s].apply(n,o))!==n&&void 0!==i?(l=i&&i.jquery?l.pushStack(i.get()):i,!1):void 0:e.error("no such method '"+s+"' for "+t+" widget instance"):e.error("cannot call methods on "+t+" prior to initialization; attempted to call method '"+s+"'")}):l=void 0:(o.length&&(s=e.widget.extend.apply(null,[s].concat(o))),this.each(function(){var t=e.data(this,r);t?(t.option(s||{}),t._init&&t._init()):e.data(this,r,new n(s,this))})),l}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(i,n){n=e(n||this.defaultElement||this)[0],this.element=e(n),this.uuid=t++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=e(),this.hoverable=e(),this.focusable=e(),this.classesElementLookup={},n!==this&&(e.data(n,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===n&&this.destroy()}}),this.document=e(n.style?n.ownerDocument:n.document||n),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this.options=e.widget.extend({},this.options,this._getCreateOptions(),i),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){var t=this;this._destroy(),e.each(this.classesElementLookup,function(e,i){t._removeClass(i,e)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:e.noop,widget:function(){return this.element},option:function(t,i){var n,r,s,a=t;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof t)if(a={},n=t.split("."),t=n.shift(),n.length){for(r=a[t]=e.widget.extend({},this.options[t]),s=0;n.length-1>s;s++)r[n[s]]=r[n[s]]||{},r=r[n[s]];if(t=n.pop(),1===arguments.length)return void 0===r[t]?null:r[t];r[t]=i}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];a[t]=i}return this._setOptions(a),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return"classes"===e&&this._setOptionClasses(t),this.options[e]=t,"disabled"===e&&this._setOptionDisabled(t),this},_setOptionClasses:function(t){var i,n,r;for(i in t)r=this.classesElementLookup[i],t[i]!==this.options.classes[i]&&r&&r.length&&(n=e(r.get()),this._removeClass(r,i),n.addClass(this._classes({element:n,keys:i,classes:t,add:!0})))},_setOptionDisabled:function(e){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!e),e&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(t){function i(i,s){var a,o;for(o=0;i.length>o;o++)a=r.classesElementLookup[i[o]]||e(),a=t.add?e(e.unique(a.get().concat(t.element.get()))):e(a.not(t.element).get()),r.classesElementLookup[i[o]]=a,n.push(i[o]),s&&t.classes[i[o]]&&n.push(t.classes[i[o]])}var n=[],r=this;return t=e.extend({element:this.element,classes:this.options.classes||{}},t),this._on(t.element,{remove:"_untrackClassesElement"}),t.keys&&i(t.keys.match(/\S+/g)||[],!0),t.extra&&i(t.extra.match(/\S+/g)||[]),n.join(" ")},_untrackClassesElement:function(t){var i=this;e.each(i.classesElementLookup,function(n,r){-1!==e.inArray(t.target,r)&&(i.classesElementLookup[n]=e(r.not(t.target).get()))})},_removeClass:function(e,t,i){return this._toggleClass(e,t,i,!1)},_addClass:function(e,t,i){return this._toggleClass(e,t,i,!0)},_toggleClass:function(e,t,i,n){n="boolean"==typeof n?n:i;var r="string"==typeof e||null===e,s={extra:r?t:i,keys:r?e:t,element:r?this.element:e,add:n};return s.element.toggleClass(this._classes(s),n),this},_on:function(t,i,n){var r,s=this;"boolean"!=typeof t&&(n=i,i=t,t=!1),n?(i=r=e(i),this.bindings=this.bindings.add(i)):(n=i,i=this.element,r=this.widget()),e.each(n,function(n,a){function o(){return t||!0!==s.options.disabled&&!e(this).hasClass("ui-state-disabled")?("string"==typeof a?s[a]:a).apply(s,arguments):void 0}"string"!=typeof a&&(o.guid=a.guid=a.guid||o.guid||e.guid++);var l=n.match(/^([\w:-]*)\s*(.*)$/),u=l[1]+s.eventNamespace,c=l[2];c?r.on(u,c,o):i.on(u,o)})},_off:function(t,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(i).off(i),this.bindings=e(this.bindings.not(t).get()),this.focusable=e(this.focusable.not(t).get()),this.hoverable=e(this.hoverable.not(t).get())},_delay:function(e,t){var i=this;return setTimeout(function(){return("string"==typeof e?i[e]:e).apply(i,arguments)},t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(e(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(e(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,i,n){var r,s,a=this.options[t];if(n=n||{},(i=e.Event(i)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),i.target=this.element[0],s=i.originalEvent)for(r in s)r in i||(i[r]=s[r]);return this.element.trigger(i,n),!(e.isFunction(a)&&!1===a.apply(this.element[0],[i].concat(n))||i.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},function(t,i){e.Widget.prototype["_"+t]=function(n,r,s){"string"==typeof r&&(r={effect:r});var a,o=r?!0===r||"number"==typeof r?i:r.effect||i:t;"number"==typeof(r=r||{})&&(r={duration:r}),a=!e.isEmptyObject(r),r.complete=s,r.delay&&n.delay(r.delay),a&&e.effects&&e.effects.effect[o]?n[t](r):o!==t&&n[o]?n[o](r.duration,r.easing,s):n.queue(function(i){e(this)[t](),s&&s.call(n[0]),i()})}}),e.widget,e.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},e.fn.extend({uniqueId:function(){var e=0;return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++e)})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&e(this).removeAttr("id")})}}),e.ui.escapeSelector=function(){var e=/([!"#$%&'()*+,.\/:;<=>?@[\]^`{|}~])/g;return function(t){return t.replace(e,"\\$1")}}(),e.ui.safeActiveElement=function(e){var t;try{t=e.activeElement}catch(i){t=e.body}return t||(t=e.body),t.nodeName||(t=e.body),t},e.widget("ui.tabs",{version:"1.12.1",delay:300,options:{active:null,classes:{"ui-tabs":"ui-corner-all","ui-tabs-nav":"ui-corner-all","ui-tabs-panel":"ui-corner-bottom","ui-tabs-tab":"ui-corner-top"},collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:function(){var e=/#.*$/;return function(t){var i,n;i=t.href.replace(e,""),n=location.href.replace(e,"");try{i=decodeURIComponent(i)}catch(e){}try{n=decodeURIComponent(n)}catch(e){}return t.hash.length>1&&i===n}}(),_create:function(){var t=this,i=this.options;this.running=!1,this._addClass("ui-tabs","ui-widget ui-widget-content"),this._toggleClass("ui-tabs-collapsible",null,i.collapsible),this._processTabs(),i.active=this._initialActive(),e.isArray(i.disabled)&&(i.disabled=e.unique(i.disabled.concat(e.map(this.tabs.filter(".ui-state-disabled"),function(e){return t.tabs.index(e)}))).sort()),this.active=!1!==this.options.active&&this.anchors.length?this._findActive(i.active):e(),this._refresh(),this.active.length&&this.load(i.active)},_initialActive:function(){var t=this.options.active,i=this.options.collapsible,n=location.hash.substring(1);return null===t&&(n&&this.tabs.each(function(i,r){return e(r).attr("aria-controls")===n?(t=i,!1):void 0}),null===t&&(t=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),(null===t||-1===t)&&(t=!!this.tabs.length&&0)),!1!==t&&(-1===(t=this.tabs.index(this.tabs.eq(t)))&&(t=!i&&0)),!i&&!1===t&&this.anchors.length&&(t=0),t},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):e()}},_tabKeydown:function(t){var i=e(e.ui.safeActiveElement(this.document[0])).closest("li"),n=this.tabs.index(i),r=!0;if(!this._handlePageNav(t)){switch(t.keyCode){case e.ui.keyCode.RIGHT:case e.ui.keyCode.DOWN:n++;break;case e.ui.keyCode.UP:case e.ui.keyCode.LEFT:r=!1,n--;break;case e.ui.keyCode.END:n=this.anchors.length-1;break;case e.ui.keyCode.HOME:n=0;break;case e.ui.keyCode.SPACE:return t.preventDefault(),clearTimeout(this.activating),void this._activate(n);case e.ui.keyCode.ENTER:return t.preventDefault(),clearTimeout(this.activating),void this._activate(n!==this.options.active&&n);default:return}t.preventDefault(),clearTimeout(this.activating),n=this._focusNextTab(n,r),t.ctrlKey||t.metaKey||(i.attr("aria-selected","false"),this.tabs.eq(n).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",n)},this.delay))}},_panelKeydown:function(t){this._handlePageNav(t)||t.ctrlKey&&t.keyCode===e.ui.keyCode.UP&&(t.preventDefault(),this.active.trigger("focus"))},_handlePageNav:function(t){return t.altKey&&t.keyCode===e.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):t.altKey&&t.keyCode===e.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(t,i){for(var n=this.tabs.length-1;-1!==e.inArray((t>n&&(t=0),0>t&&(t=n),t),this.options.disabled);)t=i?t+1:t-1;return t},_focusNextTab:function(e,t){return e=this._findNextTab(e,t),this.tabs.eq(e).trigger("focus"),e},_setOption:function(e,t){return"active"===e?void this._activate(t):(this._super(e,t),"collapsible"===e&&(this._toggleClass("ui-tabs-collapsible",null,t),t||!1!==this.options.active||this._activate(0)),"event"===e&&this._setupEvents(t),void("heightStyle"===e&&this._setupHeightStyle(t)))},_sanitizeSelector:function(e){return e?e.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var t=this.options,i=this.tablist.children(":has(a[href])");t.disabled=e.map(i.filter(".ui-state-disabled"),function(e){return i.index(e)}),this._processTabs(),!1!==t.active&&this.anchors.length?this.active.length&&!e.contains(this.tablist[0],this.active[0])?this.tabs.length===t.disabled.length?(t.active=!1,this.active=e()):this._activate(this._findNextTab(Math.max(0,t.active-1),!1)):t.active=this.tabs.index(this.active):(t.active=!1,this.active=e()),this._refresh()},_refresh:function(){this._setOptionDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._addClass(this.active,"ui-tabs-active","ui-state-active"),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var t=this,i=this.tabs,n=this.anchors,r=this.panels;this.tablist=this._getList().attr("role","tablist"),this._addClass(this.tablist,"ui-tabs-nav","ui-helper-reset ui-helper-clearfix ui-widget-header"),this.tablist.on("mousedown"+this.eventNamespace,"> li",function(t){e(this).is(".ui-state-disabled")&&t.preventDefault()}).on("focus"+this.eventNamespace,".ui-tabs-anchor",function(){e(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this.tabs=this.tablist.find("> li:has(a[href])").attr({role:"tab",tabIndex:-1}),this._addClass(this.tabs,"ui-tabs-tab","ui-state-default"),this.anchors=this.tabs.map(function(){return e("a",this)[0]}).attr({role:"presentation",tabIndex:-1}),this._addClass(this.anchors,"ui-tabs-anchor"),this.panels=e(),this.anchors.each(function(i,n){var r,s,a,o=e(n).uniqueId().attr("id"),l=e(n).closest("li"),u=l.attr("aria-controls");t._isLocal(n)?(a=(r=n.hash).substring(1),s=t.element.find(t._sanitizeSelector(r))):(r="#"+(a=l.attr("aria-controls")||e({}).uniqueId()[0].id),(s=t.element.find(r)).length||(s=t._createPanel(a)).insertAfter(t.panels[i-1]||t.tablist),s.attr("aria-live","polite")),s.length&&(t.panels=t.panels.add(s)),u&&l.data("ui-tabs-aria-controls",u),l.attr({"aria-controls":a,"aria-labelledby":o}),s.attr("aria-labelledby",o)}),this.panels.attr("role","tabpanel"),this._addClass(this.panels,"ui-tabs-panel","ui-widget-content"),i&&(this._off(i.not(this.tabs)),this._off(n.not(this.anchors)),this._off(r.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol, ul").eq(0)},_createPanel:function(t){return e("<div>").attr("id",t).data("ui-tabs-destroy",!0)},_setOptionDisabled:function(t){var i,n,r;for(e.isArray(t)&&(t.length?t.length===this.anchors.length&&(t=!0):t=!1),r=0;n=this.tabs[r];r++)i=e(n),!0===t||-1!==e.inArray(r,t)?(i.attr("aria-disabled","true"),this._addClass(i,null,"ui-state-disabled")):(i.removeAttr("aria-disabled"),this._removeClass(i,null,"ui-state-disabled"));this.options.disabled=t,this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!0===t)},_setupEvents:function(t){var i={};t&&e.each(t.split(" "),function(e,t){i[t]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(e){e.preventDefault()}}),this._on(this.anchors,i),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(t){var i,n=this.element.parent();"fill"===t?(i=n.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var t=e(this),n=t.css("position");"absolute"!==n&&"fixed"!==n&&(i-=t.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){i-=e(this).outerHeight(!0)}),this.panels.each(function(){e(this).height(Math.max(0,i-e(this).innerHeight()+e(this).height()))}).css("overflow","auto")):"auto"===t&&(i=0,this.panels.each(function(){i=Math.max(i,e(this).height("").height())}).height(i))},_eventHandler:function(t){var i=this.options,n=this.active,r=e(t.currentTarget).closest("li"),s=r[0]===n[0],a=s&&i.collapsible,o=a?e():this._getPanelForTab(r),l=n.length?this._getPanelForTab(n):e(),u={oldTab:n,oldPanel:l,newTab:a?e():r,newPanel:o};t.preventDefault(),r.hasClass("ui-state-disabled")||r.hasClass("ui-tabs-loading")||this.running||s&&!i.collapsible||!1===this._trigger("beforeActivate",t,u)||(i.active=!a&&this.tabs.index(r),this.active=s?e():r,this.xhr&&this.xhr.abort(),l.length||o.length||e.error("jQuery UI Tabs: Mismatching fragment identifier."),o.length&&this.load(this.tabs.index(r),t),this._toggle(t,u))},_toggle:function(t,i){function n(){s.running=!1,s._trigger("activate",t,i)}function r(){s._addClass(i.newTab.closest("li"),"ui-tabs-active","ui-state-active"),a.length&&s.options.show?s._show(a,s.options.show,n):(a.show(),n())}var s=this,a=i.newPanel,o=i.oldPanel;this.running=!0,o.length&&this.options.hide?this._hide(o,this.options.hide,function(){s._removeClass(i.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),r()}):(this._removeClass(i.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),o.hide(),r()),o.attr("aria-hidden","true"),i.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),a.length&&o.length?i.oldTab.attr("tabIndex",-1):a.length&&this.tabs.filter(function(){return 0===e(this).attr("tabIndex")}).attr("tabIndex",-1),a.attr("aria-hidden","false"),i.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(t){var i,n=this._findActive(t);n[0]!==this.active[0]&&(n.length||(n=this.active),i=n.find(".ui-tabs-anchor")[0],this._eventHandler({target:i,currentTarget:i,preventDefault:e.noop}))},_findActive:function(t){return!1===t?e():this.tabs.eq(t)},_getIndex:function(t){return"string"==typeof t&&(t=this.anchors.index(this.anchors.filter("[href$='"+e.ui.escapeSelector(t)+"']"))),t},_destroy:function(){this.xhr&&this.xhr.abort(),this.tablist.removeAttr("role").off(this.eventNamespace),this.anchors.removeAttr("role tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){e.data(this,"ui-tabs-destroy")?e(this).remove():e(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")}),this.tabs.each(function(){var t=e(this),i=t.data("ui-tabs-aria-controls");i?t.attr("aria-controls",i).removeData("ui-tabs-aria-controls"):t.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(t){var i=this.options.disabled;!1!==i&&(void 0===t?i=!1:(t=this._getIndex(t),i=e.isArray(i)?e.map(i,function(e){return e!==t?e:null}):e.map(this.tabs,function(e,i){return i!==t?i:null})),this._setOptionDisabled(i))},disable:function(t){var i=this.options.disabled;if(!0!==i){if(void 0===t)i=!0;else{if(t=this._getIndex(t),-1!==e.inArray(t,i))return;i=e.isArray(i)?e.merge([t],i).sort():[t]}this._setOptionDisabled(i)}},load:function(t,i){t=this._getIndex(t);var n=this,r=this.tabs.eq(t),s=r.find(".ui-tabs-anchor"),a=this._getPanelForTab(r),o={tab:r,panel:a},l=function(e,t){"abort"===t&&n.panels.stop(!1,!0),n._removeClass(r,"ui-tabs-loading"),a.removeAttr("aria-busy"),e===n.xhr&&delete n.xhr};this._isLocal(s[0])||(this.xhr=e.ajax(this._ajaxSettings(s,i,o)),this.xhr&&"canceled"!==this.xhr.statusText&&(this._addClass(r,"ui-tabs-loading"),a.attr("aria-busy","true"),this.xhr.done(function(e,t,r){setTimeout(function(){a.html(e),n._trigger("load",i,o),l(r,t)},1)}).fail(function(e,t){setTimeout(function(){l(e,t)},1)})))},_ajaxSettings:function(t,i,n){var r=this;return{url:t.attr("href").replace(/#.*$/,""),beforeSend:function(t,s){return r._trigger("beforeLoad",i,e.extend({jqXHR:t,ajaxSettings:s},n))}}},_getPanelForTab:function(t){var i=e(t).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+i))}}),!1!==e.uiBackCompat&&e.widget("ui.tabs",e.ui.tabs,{_processTabs:function(){this._superApply(arguments),this._addClass(this.tabs,"ui-tab")}}),e.ui.tabs;var n="ui-effects-",r="ui-effects-style",s="ui-effects-animated",a=e;e.effects={effect:{}},function(e,t){function i(e,t,i){var n=c[t.type]||{};return null==e?i||!t.def?null:t.def:(e=n.floor?~~e:parseFloat(e),isNaN(e)?t.def:n.mod?(e+n.mod)%n.mod:0>e?0:e>n.max?n.max:e)}function n(i){var n=l(),r=n._rgba=[];return i=i.toLowerCase(),p(o,function(e,s){var a,o=s.re.exec(i),l=o&&s.parse(o),c=s.space||"rgba";return l?(a=n[c](l),n[u[c].cache]=a[u[c].cache],r=n._rgba=a._rgba,!1):t}),r.length?("0,0,0,0"===r.join()&&e.extend(r,s.transparent),n):s[i]}function r(e,t,i){return 1>6*(i=(i+1)%1)?e+6*(t-e)*i:1>2*i?t:2>3*i?e+6*(t-e)*(2/3-i):e}var s,a=/^([\-+])=\s*(\d+\.?\d*)/,o=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[e[1],e[2],e[3],e[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[2.55*e[1],2.55*e[2],2.55*e[3],e[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(e){return[e[1],e[2]/100,e[3]/100,e[4]]}}],l=e.Color=function(t,i,n,r){return new e.Color.fn.parse(t,i,n,r)},u={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},c={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},d=l.support={},h=e("<p>")[0],p=e.each;h.style.cssText="background-color:rgba(1,1,1,.5)",d.rgba=h.style.backgroundColor.indexOf("rgba")>-1,p(u,function(e,t){t.cache="_"+e,t.props.alpha={idx:3,type:"percent",def:1}}),l.fn=e.extend(l.prototype,{parse:function(r,a,o,c){if(r===t)return this._rgba=[null,null,null,null],this;(r.jquery||r.nodeType)&&(r=e(r).css(a),a=t);var d=this,h=e.type(r),f=this._rgba=[];return a!==t&&(r=[r,a,o,c],h="array"),"string"===h?this.parse(n(r)||s._default):"array"===h?(p(u.rgba.props,function(e,t){f[t.idx]=i(r[t.idx],t)}),this):"object"===h?(p(u,r instanceof l?function(e,t){r[t.cache]&&(d[t.cache]=r[t.cache].slice())}:function(t,n){var s=n.cache;p(n.props,function(e,t){if(!d[s]&&n.to){if("alpha"===e||null==r[e])return;d[s]=n.to(d._rgba)}d[s][t.idx]=i(r[e],t,!0)}),d[s]&&0>e.inArray(null,d[s].slice(0,3))&&(d[s][3]=1,n.from&&(d._rgba=n.from(d[s])))}),this):t},is:function(e){var i=l(e),n=!0,r=this;return p(u,function(e,s){var a,o=i[s.cache];return o&&(a=r[s.cache]||s.to&&s.to(r._rgba)||[],p(s.props,function(e,i){return null!=o[i.idx]?n=o[i.idx]===a[i.idx]:t})),n}),n},_space:function(){var e=[],t=this;return p(u,function(i,n){t[n.cache]&&e.push(i)}),e.pop()},transition:function(e,t){var n=l(e),r=n._space(),s=u[r],a=0===this.alpha()?l("transparent"):this,o=a[s.cache]||s.to(a._rgba),d=o.slice();return n=n[s.cache],p(s.props,function(e,r){var s=r.idx,a=o[s],l=n[s],u=c[r.type]||{};null!==l&&(null===a?d[s]=l:(u.mod&&(l-a>u.mod/2?a+=u.mod:a-l>u.mod/2&&(a-=u.mod)),d[s]=i((l-a)*t+a,r)))}),this[r](d)},blend:function(t){if(1===this._rgba[3])return this;var i=this._rgba.slice(),n=i.pop(),r=l(t)._rgba;return l(e.map(i,function(e,t){return(1-n)*r[t]+n*e}))},toRgbaString:function(){var t="rgba(",i=e.map(this._rgba,function(e,t){return null==e?t>2?1:0:e});return 1===i[3]&&(i.pop(),t="rgb("),t+i.join()+")"},toHslaString:function(){var t="hsla(",i=e.map(this.hsla(),function(e,t){return null==e&&(e=t>2?1:0),t&&3>t&&(e=Math.round(100*e)+"%"),e});return 1===i[3]&&(i.pop(),t="hsl("),t+i.join()+")"},toHexString:function(t){var i=this._rgba.slice(),n=i.pop();return t&&i.push(~~(255*n)),"#"+e.map(i,function(e){return 1===(e=(e||0).toString(16)).length?"0"+e:e}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),l.fn.parse.prototype=l.fn,u.hsla.to=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t,i,n=e[0]/255,r=e[1]/255,s=e[2]/255,a=e[3],o=Math.max(n,r,s),l=Math.min(n,r,s),u=o-l,c=o+l,d=.5*c;return t=l===o?0:n===o?60*(r-s)/u+360:r===o?60*(s-n)/u+120:60*(n-r)/u+240,i=0===u?0:.5>=d?u/c:u/(2-c),[Math.round(t)%360,i,d,null==a?1:a]},u.hsla.from=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t=e[0]/360,i=e[1],n=e[2],s=e[3],a=.5>=n?n*(1+i):n+i-n*i,o=2*n-a;return[Math.round(255*r(o,a,t+1/3)),Math.round(255*r(o,a,t)),Math.round(255*r(o,a,t-1/3)),s]},p(u,function(n,r){var s=r.props,o=r.cache,u=r.to,c=r.from;l.fn[n]=function(n){if(u&&!this[o]&&(this[o]=u(this._rgba)),n===t)return this[o].slice();var r,a=e.type(n),d="array"===a||"object"===a?n:arguments,h=this[o].slice();return p(s,function(e,t){var n=d["object"===a?e:t.idx];null==n&&(n=h[t.idx]),h[t.idx]=i(n,t)}),c?((r=l(c(h)))[o]=h,r):l(h)},p(s,function(t,i){l.fn[t]||(l.fn[t]=function(r){var s,o=e.type(r),l="alpha"===t?this._hsla?"hsla":"rgba":n,u=this[l](),c=u[i.idx];return"undefined"===o?c:("function"===o&&(r=r.call(this,c),o=e.type(r)),null==r&&i.empty?this:("string"===o&&((s=a.exec(r))&&(r=c+parseFloat(s[2])*("+"===s[1]?1:-1))),u[i.idx]=r,this[l](u)))})})}),l.hook=function(t){var i=t.split(" ");p(i,function(t,i){e.cssHooks[i]={set:function(t,r){var s,a,o="";if("transparent"!==r&&("string"!==e.type(r)||(s=n(r)))){if(r=l(s||r),!d.rgba&&1!==r._rgba[3]){for(a="backgroundColor"===i?t.parentNode:t;(""===o||"transparent"===o)&&a&&a.style;)try{o=e.css(a,"backgroundColor"),a=a.parentNode}catch(e){}r=r.blend(o&&"transparent"!==o?o:"_default")}r=r.toRgbaString()}try{t.style[i]=r}catch(e){}}},e.fx.step[i]=function(t){t.colorInit||(t.start=l(t.elem,i),t.end=l(t.end),t.colorInit=!0),e.cssHooks[i].set(t.elem,t.start.transition(t.end,t.pos))}})},l.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),e.cssHooks.borderColor={expand:function(e){var t={};return p(["Top","Right","Bottom","Left"],function(i,n){t["border"+n+"Color"]=e}),t}},s=e.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(a),function(){function t(t){var i,n,r=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,s={};if(r&&r.length&&r[0]&&r[r[0]])for(n=r.length;n--;)"string"==typeof r[i=r[n]]&&(s[e.camelCase(i)]=r[i]);else for(i in r)"string"==typeof r[i]&&(s[i]=r[i]);return s}function i(t,i){var n,s,a={};for(n in i)s=i[n],t[n]!==s&&(r[n]||(e.fx.step[n]||!isNaN(parseFloat(s)))&&(a[n]=s));return a}var n=["add","remove","toggle"],r={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};e.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(t,i){e.fx.step[i]=function(e){("none"!==e.end&&!e.setAttr||1===e.pos&&!e.setAttr)&&(a.style(e.elem,i,e.end),e.setAttr=!0)}}),e.fn.addBack||(e.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),e.effects.animateClass=function(r,s,a,o){var l=e.speed(s,a,o);return this.queue(function(){var s,a=e(this),o=a.attr("class")||"",u=l.children?a.find("*").addBack():a;u=u.map(function(){return{el:e(this),start:t(this)}}),(s=function(){e.each(n,function(e,t){r[t]&&a[t+"Class"](r[t])})})(),u=u.map(function(){return this.end=t(this.el[0]),this.diff=i(this.start,this.end),this}),a.attr("class",o),u=u.map(function(){var t=this,i=e.Deferred(),n=e.extend({},l,{queue:!1,complete:function(){i.resolve(t)}});return this.el.animate(this.diff,n),i.promise()}),e.when.apply(e,u.get()).done(function(){s(),e.each(arguments,function(){var t=this.el;e.each(this.diff,function(e){t.css(e,"")})}),l.complete.call(a[0])})})},e.fn.extend({addClass:function(t){return function(i,n,r,s){return n?e.effects.animateClass.call(this,{add:i},n,r,s):t.apply(this,arguments)}}(e.fn.addClass),removeClass:function(t){return function(i,n,r,s){return arguments.length>1?e.effects.animateClass.call(this,{remove:i},n,r,s):t.apply(this,arguments)}}(e.fn.removeClass),toggleClass:function(t){return function(i,n,r,s,a){return"boolean"==typeof n||void 0===n?r?e.effects.animateClass.call(this,n?{add:i}:{remove:i},r,s,a):t.apply(this,arguments):e.effects.animateClass.call(this,{toggle:i},n,r,s)}}(e.fn.toggleClass),switchClass:function(t,i,n,r,s){return e.effects.animateClass.call(this,{add:i,remove:t},n,r,s)}})}(),function(){function t(t,i,n,r){return e.isPlainObject(t)&&(i=t,t=t.effect),t={effect:t},null==i&&(i={}),e.isFunction(i)&&(r=i,n=null,i={}),("number"==typeof i||e.fx.speeds[i])&&(r=n,n=i,i={}),e.isFunction(n)&&(r=n,n=null),i&&e.extend(t,i),n=n||i.duration,t.duration=e.fx.off?0:"number"==typeof n?n:n in e.fx.speeds?e.fx.speeds[n]:e.fx.speeds._default,t.complete=r||i.complete,t}function i(t){return!(t&&"number"!=typeof t&&!e.fx.speeds[t])||("string"==typeof t&&!e.effects.effect[t]||(!!e.isFunction(t)||"object"==typeof t&&!t.effect))}function a(e,t){var i=t.outerWidth(),n=t.outerHeight(),r=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(e)||["",0,i,n,0];return{top:parseFloat(r[1])||0,right:"auto"===r[2]?i:parseFloat(r[2]),bottom:"auto"===r[3]?n:parseFloat(r[3]),left:parseFloat(r[4])||0}}e.expr&&e.expr.filters&&e.expr.filters.animated&&(e.expr.filters.animated=function(t){return function(i){return!!e(i).data(s)||t(i)}}(e.expr.filters.animated)),!1!==e.uiBackCompat&&e.extend(e.effects,{save:function(e,t){for(var i=0,r=t.length;r>i;i++)null!==t[i]&&e.data(n+t[i],e[0].style[t[i]])},restore:function(e,t){for(var i,r=0,s=t.length;s>r;r++)null!==t[r]&&(i=e.data(n+t[r]),e.css(t[r],i))},setMode:function(e,t){return"toggle"===t&&(t=e.is(":hidden")?"show":"hide"),t},createWrapper:function(t){if(t.parent().is(".ui-effects-wrapper"))return t.parent();var i={width:t.outerWidth(!0),height:t.outerHeight(!0),float:t.css("float")},n=e("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),r={width:t.width(),height:t.height()},s=document.activeElement;try{s.id}catch(e){s=document.body}return t.wrap(n),(t[0]===s||e.contains(t[0],s))&&e(s).trigger("focus"),n=t.parent(),"static"===t.css("position")?(n.css({position:"relative"}),t.css({position:"relative"})):(e.extend(i,{position:t.css("position"),zIndex:t.css("z-index")}),e.each(["top","left","bottom","right"],function(e,n){i[n]=t.css(n),isNaN(parseInt(i[n],10))&&(i[n]="auto")}),t.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),t.css(r),n.css(i).show()},removeWrapper:function(t){var i=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),(t[0]===i||e.contains(t[0],i))&&e(i).trigger("focus")),t}}),e.extend(e.effects,{version:"1.12.1",define:function(t,i,n){return n||(n=i,i="effect"),e.effects.effect[t]=n,e.effects.effect[t].mode=i,n},scaledDimensions:function(e,t,i){if(0===t)return{height:0,width:0,outerHeight:0,outerWidth:0};var n="horizontal"!==i?(t||100)/100:1,r="vertical"!==i?(t||100)/100:1;return{height:e.height()*r,width:e.width()*n,outerHeight:e.outerHeight()*r,outerWidth:e.outerWidth()*n}},clipToBox:function(e){return{width:e.clip.right-e.clip.left,height:e.clip.bottom-e.clip.top,left:e.clip.left,top:e.clip.top}},unshift:function(e,t,i){var n=e.queue();t>1&&n.splice.apply(n,[1,0].concat(n.splice(t,i))),e.dequeue()},saveStyle:function(e){e.data(r,e[0].style.cssText)},restoreStyle:function(e){e[0].style.cssText=e.data(r)||"",e.removeData(r)},mode:function(e,t){var i=e.is(":hidden");return"toggle"===t&&(t=i?"show":"hide"),(i?"hide"===t:"show"===t)&&(t="none"),t},getBaseline:function(e,t){var i,n;switch(e[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=e[0]/t.height}switch(e[1]){case"left":n=0;break;case"center":n=.5;break;case"right":n=1;break;default:n=e[1]/t.width}return{x:n,y:i}},createPlaceholder:function(t){var i,r=t.css("position"),s=t.position();return t.css({marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()),/^(static|relative)/.test(r)&&(r="absolute",i=e("<"+t[0].nodeName+">").insertAfter(t).css({display:/^(inline|ruby)/.test(t.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight"),float:t.css("float")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"),t.data(n+"placeholder",i)),t.css({position:r,left:s.left,top:s.top}),i},removePlaceholder:function(e){var t=n+"placeholder",i=e.data(t);i&&(i.remove(),e.removeData(t))},cleanUp:function(t){e.effects.restoreStyle(t),e.effects.removePlaceholder(t)},setTransition:function(t,i,n,r){return r=r||{},e.each(i,function(e,i){var s=t.cssUnit(i);s[0]>0&&(r[i]=s[0]*n+s[1])}),r}}),e.fn.extend({effect:function(){function i(t){function i(){e.isFunction(u)&&u.call(o[0]),e.isFunction(t)&&t()}var o=e(this);n.mode=d.shift(),!1===e.uiBackCompat||a?"none"===n.mode?(o[c](),i()):r.call(o[0],n,function(){o.removeData(s),e.effects.cleanUp(o),"hide"===n.mode&&o.hide(),i()}):(o.is(":hidden")?"hide"===c:"show"===c)?(o[c](),i()):r.call(o[0],n,i)}var n=t.apply(this,arguments),r=e.effects.effect[n.effect],a=r.mode,o=n.queue,l=o||"fx",u=n.complete,c=n.mode,d=[],h=function(t){var i=e(this),n=e.effects.mode(i,c)||a;i.data(s,!0),d.push(n),a&&("show"===n||n===a&&"hide"===n)&&i.show(),a&&"none"===n||e.effects.saveStyle(i),e.isFunction(t)&&t()};return e.fx.off||!r?c?this[c](n.duration,u):this.each(function(){u&&u.call(this)}):!1===o?this.each(h).each(i):this.queue(l,h).queue(l,i)},show:function(e){return function(n){if(i(n))return e.apply(this,arguments);var r=t.apply(this,arguments);return r.mode="show",this.effect.call(this,r)}}(e.fn.show),hide:function(e){return function(n){if(i(n))return e.apply(this,arguments);var r=t.apply(this,arguments);return r.mode="hide",this.effect.call(this,r)}}(e.fn.hide),toggle:function(e){return function(n){if(i(n)||"boolean"==typeof n)return e.apply(this,arguments);var r=t.apply(this,arguments);return r.mode="toggle",this.effect.call(this,r)}}(e.fn.toggle),cssUnit:function(t){var i=this.css(t),n=[];return e.each(["em","px","%","pt"],function(e,t){i.indexOf(t)>0&&(n=[parseFloat(i),t])}),n},cssClip:function(e){return e?this.css("clip","rect("+e.top+"px "+e.right+"px "+e.bottom+"px "+e.left+"px)"):a(this.css("clip"),this)},transfer:function(t,i){var n=e(this),r=e(t.to),s="fixed"===r.css("position"),a=e("body"),o=s?a.scrollTop():0,l=s?a.scrollLeft():0,u=r.offset(),c={top:u.top-o,left:u.left-l,height:r.innerHeight(),width:r.innerWidth()},d=n.offset(),h=e("<div class='ui-effects-transfer'></div>").appendTo("body").addClass(t.className).css({top:d.top-o,left:d.left-l,height:n.innerHeight(),width:n.innerWidth(),position:s?"fixed":"absolute"}).animate(c,t.duration,t.easing,function(){h.remove(),e.isFunction(i)&&i()})}}),e.fx.step.clip=function(t){t.clipInit||(t.start=e(t.elem).cssClip(),"string"==typeof t.end&&(t.end=a(t.end,t.elem)),t.clipInit=!0),e(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start.right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})}}(),function(){var t={};e.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,i){t[i]=function(t){return Math.pow(t,e+2)}}),e.extend(t,{Sine:function(e){return 1-Math.cos(e*Math.PI/2)},Circ:function(e){return 1-Math.sqrt(1-e*e)},Elastic:function(e){return 0===e||1===e?e:-Math.pow(2,8*(e-1))*Math.sin((80*(e-1)-7.5)*Math.PI/15)},Back:function(e){return e*e*(3*e-2)},Bounce:function(e){for(var t,i=4;((t=Math.pow(2,--i))-1)/11>e;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*t-2)/22-e,2)}}),e.each(t,function(t,i){e.easing["easeIn"+t]=i,e.easing["easeOut"+t]=function(e){return 1-i(1-e)},e.easing["easeInOut"+t]=function(e){return.5>e?i(2*e)/2:1-i(-2*e+2)/2}})}(),e.effects,e.effects.define("fade","toggle",function(t,i){var n="show"===t.mode;e(this).css("opacity",n?0:1).animate({opacity:n?1:0},{queue:!1,duration:t.duration,easing:t.easing,complete:i})}),e.effects.define("slide","show",function(t,i){var n,r,s=e(this),a={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},o=t.mode,l=t.direction||"left",u="up"===l||"down"===l?"top":"left",c="up"===l||"left"===l,d=t.distance||s["top"===u?"outerHeight":"outerWidth"](!0),h={};e.effects.createPlaceholder(s),n=s.cssClip(),r=s.position()[u],h[u]=(c?-1:1)*d+r,h.clip=s.cssClip(),h.clip[a[l][1]]=h.clip[a[l][0]],"show"===o&&(s.cssClip(h.clip),s.css(u,h[u]),h.clip=n,h[u]=r),s.animate(h,{queue:!1,duration:t.duration,easing:t.easing,complete:i})})}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Popper=t()}(this,function(){"use strict";function e(e){return e&&"[object Function]"==={}.toString.call(e)}function t(e,t){if(1!==e.nodeType)return[];var i=getComputedStyle(e,null);return t?i[t]:i}function i(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function n(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var r=t(e),s=r.overflow,a=r.overflowX,o=r.overflowY;return/(auto|scroll)/.test(s+o+a)?e:n(i(e))}function r(e){var i=e&&e.offsetParent,n=i&&i.nodeName;return n&&"BODY"!==n&&"HTML"!==n?-1!==["TD","TABLE"].indexOf(i.nodeName)&&"static"===t(i,"position")?r(i):i:e?e.ownerDocument.documentElement:document.documentElement}function s(e){return null===e.parentNode?e:s(e.parentNode)}function a(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var i=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,n=i?e:t,o=i?t:e,l=document.createRange();l.setStart(n,0),l.setEnd(o,0);var u=l.commonAncestorContainer;if(e!==u&&t!==u||n.contains(o))return function(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||r(e.firstElementChild)===e)}(u)?u:r(u);var c=s(e);return c.host?a(c.host,t):a(e,s(t).host)}function o(e){var t="top"===(1<arguments.length&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",i=e.nodeName;if("BODY"===i||"HTML"===i){var n=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||n)[t]}return e[t]}function l(e,t){var i=2<arguments.length&&void 0!==arguments[2]&&arguments[2],n=o(t,"top"),r=o(t,"left"),s=i?-1:1;return e.top+=n*s,e.bottom+=n*s,e.left+=r*s,e.right+=r*s,e}function u(e,t){var i="x"===t?"Left":"Top",n="Left"==i?"Right":"Bottom";return parseFloat(e["border"+i+"Width"],10)+parseFloat(e["border"+n+"Width"],10)}function c(e,t,i,n){return Q(t["offset"+e],t["scroll"+e],i["client"+e],i["offset"+e],i["scroll"+e],W()?i["offset"+e]+n["margin"+("Height"===e?"Top":"Left")]+n["margin"+("Height"===e?"Bottom":"Right")]:0)}function d(){var e=document.body,t=document.documentElement,i=W()&&getComputedStyle(t);return{height:c("Height",e,t,i),width:c("Width",e,t,i)}}function h(e){return G({},e,{right:e.left+e.width,bottom:e.top+e.height})}function p(e){var i={};if(W())try{i=e.getBoundingClientRect();var n=o(e,"top"),r=o(e,"left");i.top+=n,i.left+=r,i.bottom+=n,i.right+=r}catch(e){}else i=e.getBoundingClientRect();var s={left:i.left,top:i.top,width:i.right-i.left,height:i.bottom-i.top},a="HTML"===e.nodeName?d():{},l=a.width||e.clientWidth||s.right-s.left,c=a.height||e.clientHeight||s.bottom-s.top,p=e.offsetWidth-l,f=e.offsetHeight-c;if(p||f){var m=t(e);p-=u(m,"x"),f-=u(m,"y"),s.width-=p,s.height-=f}return h(s)}function f(e,i){var r=W(),s="HTML"===i.nodeName,a=p(e),o=p(i),u=n(e),c=t(i),d=parseFloat(c.borderTopWidth,10),f=parseFloat(c.borderLeftWidth,10),m=h({top:a.top-o.top-d,left:a.left-o.left-f,width:a.width,height:a.height});if(m.marginTop=0,m.marginLeft=0,!r&&s){var g=parseFloat(c.marginTop,10),v=parseFloat(c.marginLeft,10);m.top-=d-g,m.bottom-=d-g,m.left-=f-v,m.right-=f-v,m.marginTop=g,m.marginLeft=v}return(r?i.contains(u):i===u&&"BODY"!==u.nodeName)&&(m=l(m,i)),m}function m(e){var t=e.ownerDocument.documentElement,i=f(e,t),n=Q(t.clientWidth,window.innerWidth||0),r=Q(t.clientHeight,window.innerHeight||0),s=o(t),a=o(t,"left");return h({top:s-i.top+i.marginTop,left:a-i.left+i.marginLeft,width:n,height:r})}function g(e){var n=e.nodeName;return"BODY"!==n&&"HTML"!==n&&("fixed"===t(e,"position")||g(i(e)))}function v(e,t,r,s){var o={top:0,left:0},l=a(e,t);if("viewport"===s)o=m(l);else{var u;"scrollParent"===s?"BODY"===(u=n(i(t))).nodeName&&(u=e.ownerDocument.documentElement):u="window"===s?e.ownerDocument.documentElement:s;var c=f(u,l);if("HTML"!==u.nodeName||g(l))o=c;else{var h=d(),p=h.height,v=h.width;o.top+=c.top-c.marginTop,o.bottom=p+c.top,o.left+=c.left-c.marginLeft,o.right=v+c.left}}return o.left+=r,o.top+=r,o.right-=r,o.bottom-=r,o}function y(e){return e.width*e.height}function b(e,t,i,n,r){var s=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=v(i,n,s,r),o={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},l=Object.keys(o).map(function(e){return G({key:e},o[e],{area:y(o[e])})}).sort(function(e,t){return t.area-e.area}),u=l.filter(function(e){var t=e.width,n=e.height;return t>=i.clientWidth&&n>=i.clientHeight}),c=0<u.length?u[0].key:l[0].key,d=e.split("-")[1];return c+(d?"-"+d:"")}function w(e,t,i){return f(i,a(t,i))}function T(e){var t=getComputedStyle(e),i=parseFloat(t.marginTop)+parseFloat(t.marginBottom),n=parseFloat(t.marginLeft)+parseFloat(t.marginRight);return{width:e.offsetWidth+n,height:e.offsetHeight+i}}function _(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function x(e,t,i){i=i.split("-")[0];var n=T(e),r={width:n.width,height:n.height},s=-1!==["right","left"].indexOf(i),a=s?"top":"left",o=s?"left":"top",l=s?"height":"width",u=s?"width":"height";return r[a]=t[a]+t[l]/2-n[l]/2,r[o]=i===o?t[o]-n[u]:t[_(o)],r}function C(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function S(t,i,n){return(void 0===n?t:t.slice(0,function(e,t,i){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===i});var n=C(e,function(e){return e[t]===i});return e.indexOf(n)}(t,"name",n))).forEach(function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=t.function||t.fn;t.enabled&&e(n)&&(i.offsets.popper=h(i.offsets.popper),i.offsets.reference=h(i.offsets.reference),i=n(i,t))}),i}function E(e,t){return e.some(function(e){var i=e.name;return e.enabled&&i===t})}function P(e){for(var t=[!1,"ms","Webkit","Moz","O"],i=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<t.length-1;n++){var r=t[n],s=r?""+r+i:e;if(void 0!==document.body.style[s])return s}return null}function I(e){var t=e.ownerDocument;return t?t.defaultView:window}function k(e,t,i,r){i.updateBound=r,I(e).addEventListener("resize",i.updateBound,{passive:!0});var s=n(e);return function e(t,i,r,s){var a="BODY"===t.nodeName,o=a?t.ownerDocument.defaultView:t;o.addEventListener(i,r,{passive:!0}),a||e(n(o.parentNode),i,r,s),s.push(o)}(s,"scroll",i.updateBound,i.scrollParents),i.scrollElement=s,i.eventsEnabled=!0,i}function j(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,I(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function D(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function A(e,t){Object.keys(t).forEach(function(i){var n="";-1!==["width","height","top","right","bottom","left"].indexOf(i)&&D(t[i])&&(n="px"),e.style[i]=t[i]+n})}function Y(e,t,i){var n=C(e,function(e){return e.name===t}),r=!!n&&e.some(function(e){return e.name===i&&e.enabled&&e.order<n.order});if(!r){var s="`"+t+"`";console.warn("`"+i+"` modifier is required by "+s+" modifier in order to work, be sure to include it before "+s+"!")}return r}function M(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],i=K.indexOf(e),n=K.slice(i+1).concat(K.slice(0,i));return t?n.reverse():n}function O(e,t,i,n){var r=[0,0],s=-1!==["right","left"].indexOf(n),a=e.split(/(\+|\-)/).map(function(e){return e.trim()}),o=a.indexOf(C(a,function(e){return-1!==e.search(/,|\s/)}));a[o]&&-1===a[o].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,u=-1===o?[a]:[a.slice(0,o).concat([a[o].split(l)[0]]),[a[o].split(l)[1]].concat(a.slice(o+1))];return(u=u.map(function(e,n){var r=(1===n?!s:s)?"height":"width",a=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)},[]).map(function(e){return function(e,t,i,n){var r=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),s=+r[1],a=r[2];if(!s)return e;if(0===a.indexOf("%")){var o;switch(a){case"%p":o=i;break;case"%":case"%r":default:o=n}return h(o)[t]/100*s}return"vh"===a||"vw"===a?("vh"===a?Q(document.documentElement.clientHeight,window.innerHeight||0):Q(document.documentElement.clientWidth,window.innerWidth||0))/100*s:s}(e,r,t,i)})})).forEach(function(e,t){e.forEach(function(i,n){D(i)&&(r[t]+=i*("-"===e[n-1]?-1:1))})}),r}for(var z=Math.min,L=Math.floor,Q=Math.max,N="undefined"!=typeof window&&"undefined"!=typeof document,B=["Edge","Trident","Firefox"],H=0,F=0;F<B.length;F+=1)if(N&&0<=navigator.userAgent.indexOf(B[F])){H=1;break}var R,$=N&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},H))}},W=function(){return null==R&&(R=-1!==navigator.appVersion.indexOf("MSIE 10")),R},q=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},V=function(){function e(e,t){for(var i,n=0;n<t.length;n++)(i=t[n]).enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),U=function(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e},G=Object.assign||function(e){for(var t,i=1;i<arguments.length;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},X=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],K=X.slice(3),Z="flip",J="clockwise",ee="counterclockwise",te=function(){function t(i,n){var r=this,s=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};q(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=$(this.update.bind(this)),this.options=G({},t.Defaults,s),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=i&&i.jquery?i[0]:i,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(G({},t.Defaults.modifiers,s.modifiers)).forEach(function(e){r.options.modifiers[e]=G({},t.Defaults.modifiers[e]||{},s.modifiers?s.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return G({name:e},r.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(t){t.enabled&&e(t.onLoad)&&t.onLoad(r.reference,r.popper,r.options,t,r.state)}),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return V(t,[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=w(this.state,this.popper,this.reference),e.placement=b(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.offsets.popper=x(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position="absolute",e=S(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,E(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.left="",this.popper.style.position="",this.popper.style.top="",this.popper.style[P("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=k(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return j.call(this)}}]),t}();return te.Utils=("undefined"==typeof window?global:window).PopperUtils,te.placements=X,te.Defaults={placement:"bottom",eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,i=t.split("-")[0],n=t.split("-")[1];if(n){var r=e.offsets,s=r.reference,a=r.popper,o=-1!==["bottom","top"].indexOf(i),l=o?"left":"top",u=o?"width":"height",c={start:U({},l,s[l]),end:U({},l,s[l]+s[u]-a[u])};e.offsets.popper=G({},a,c[n])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var i,n=t.offset,r=e.placement,s=e.offsets,a=s.popper,o=s.reference,l=r.split("-")[0];return i=D(+n)?[+n,0]:O(n,a,o,l),"left"===l?(a.top+=i[0],a.left-=i[1]):"right"===l?(a.top+=i[0],a.left+=i[1]):"top"===l?(a.left+=i[0],a.top-=i[1]):"bottom"===l&&(a.left+=i[0],a.top+=i[1]),e.popper=a,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var i=t.boundariesElement||r(e.instance.popper);e.instance.reference===i&&(i=r(i));var n=v(e.instance.popper,e.instance.reference,t.padding,i);t.boundaries=n;var s=t.priority,a=e.offsets.popper,o={primary:function(e){var i=a[e];return a[e]<n[e]&&!t.escapeWithReference&&(i=Q(a[e],n[e])),U({},e,i)},secondary:function(e){var i="right"===e?"left":"top",r=a[i];return a[e]>n[e]&&!t.escapeWithReference&&(r=z(a[i],n[e]-("right"===e?a.width:a.height))),U({},i,r)}};return s.forEach(function(e){var t=-1===["left","top"].indexOf(e)?"secondary":"primary";a=G({},a,o[t](e))}),e.offsets.popper=a,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,i=t.popper,n=t.reference,r=e.placement.split("-")[0],s=L,a=-1!==["top","bottom"].indexOf(r),o=a?"right":"bottom",l=a?"left":"top",u=a?"width":"height";return i[o]<s(n[l])&&(e.offsets.popper[l]=s(n[l])-i[u]),i[l]>s(n[o])&&(e.offsets.popper[l]=s(n[o])),e}},arrow:{order:500,enabled:!0,fn:function(e,i){var n;if(!Y(e.instance.modifiers,"arrow","keepTogether"))return e;var r=i.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var s=e.placement.split("-")[0],a=e.offsets,o=a.popper,l=a.reference,u=-1!==["left","right"].indexOf(s),c=u?"height":"width",d=u?"Top":"Left",p=d.toLowerCase(),f=u?"left":"top",m=u?"bottom":"right",g=T(r)[c];l[m]-g<o[p]&&(e.offsets.popper[p]-=o[p]-(l[m]-g)),l[p]+g>o[m]&&(e.offsets.popper[p]+=l[p]+g-o[m]),e.offsets.popper=h(e.offsets.popper);var v=l[p]+l[c]/2-g/2,y=t(e.instance.popper),b=parseFloat(y["margin"+d],10),w=parseFloat(y["border"+d+"Width"],10),_=v-e.offsets.popper[p]-b-w;return _=Q(z(o[c]-g,_),0),e.arrowElement=r,e.offsets.arrow=(U(n={},p,Math.round(_)),U(n,f,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(E(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var i=v(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement),n=e.placement.split("-")[0],r=_(n),s=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case Z:a=[n,r];break;case J:a=M(n);break;case ee:a=M(n,!0);break;default:a=t.behavior}return a.forEach(function(o,l){if(n!==o||a.length===l+1)return e;n=e.placement.split("-")[0],r=_(n);var u=e.offsets.popper,c=e.offsets.reference,d=L,h="left"===n&&d(u.right)>d(c.left)||"right"===n&&d(u.left)<d(c.right)||"top"===n&&d(u.bottom)>d(c.top)||"bottom"===n&&d(u.top)<d(c.bottom),p=d(u.left)<d(i.left),f=d(u.right)>d(i.right),m=d(u.top)<d(i.top),g=d(u.bottom)>d(i.bottom),v="left"===n&&p||"right"===n&&f||"top"===n&&m||"bottom"===n&&g,y=-1!==["top","bottom"].indexOf(n),b=!!t.flipVariations&&(y&&"start"===s&&p||y&&"end"===s&&f||!y&&"start"===s&&m||!y&&"end"===s&&g);(h||v||b)&&(e.flipped=!0,(h||v)&&(n=a[l+1]),b&&(s=function(e){return"end"===e?"start":"start"===e?"end":e}(s)),e.placement=n+(s?"-"+s:""),e.offsets.popper=G({},e.offsets.popper,x(e.instance.popper,e.offsets.reference,e.placement)),e=S(e.instance.modifiers,e,"flip"))}),e},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,i=t.split("-")[0],n=e.offsets,r=n.popper,s=n.reference,a=-1!==["left","right"].indexOf(i),o=-1===["top","left"].indexOf(i);return r[a?"left":"top"]=s[i]-(o?r[a?"width":"height"]:0),e.placement=_(t),e.offsets.popper=h(r),e}},hide:{order:800,enabled:!0,fn:function(e){if(!Y(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,i=C(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<i.top||t.left>i.right||t.top>i.bottom||t.right<i.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var i=t.x,n=t.y,s=e.offsets.popper,a=C(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration;void 0!==a&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var o,l,u=void 0===a?t.gpuAcceleration:a,c=p(r(e.instance.popper)),d={position:s.position},h={left:L(s.left),top:L(s.top),bottom:L(s.bottom),right:L(s.right)},f="bottom"===i?"top":"bottom",m="right"===n?"left":"right",g=P("transform");if(l="bottom"==f?-c.height+h.bottom:h.top,o="right"==m?-c.width+h.right:h.left,u&&g)d[g]="translate3d("+o+"px, "+l+"px, 0)",d[f]=0,d[m]=0,d.willChange="transform";else{var v="bottom"==f?-1:1,y="right"==m?-1:1;d[f]=l*v,d[m]=o*y,d.willChange=f+", "+m}var b={"x-placement":e.placement};return e.attributes=G({},b,e.attributes),e.styles=G({},d,e.styles),e.arrowStyles=G({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){return A(e.instance.popper,e.styles),function(e,t){Object.keys(t).forEach(function(i){!1===t[i]?e.removeAttribute(i):e.setAttribute(i,t[i])})}(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&A(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,i,n,r){var s=w(0,t,e),a=b(i.placement,s,t,e,i.modifiers.flip.boundariesElement,i.modifiers.flip.padding);return t.setAttribute("x-placement",a),A(t,{position:"absolute"}),i},gpuAcceleration:void 0}}},te}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],t):t(e.bootstrap={},e.jQuery,e.Popper)}(this,function(e,t,i){"use strict";function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}function s(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{},n=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(i).filter(function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),n.forEach(function(t){var n,r,s;n=e,s=i[r=t],r in n?Object.defineProperty(n,r,{value:s,enumerable:!0,configurable:!0,writable:!0}):n[r]=s})}return e}t=t&&t.hasOwnProperty("default")?t.default:t,i=i&&i.hasOwnProperty("default")?i.default:i;var a,o,l,u,c,d,h,p,f,m,g,v,y,b,w,T,_,x,C,S,E,P,I,k,j,D,A,Y,M,O,z,L,Q,N,B,H,F,R,$,W,q,V,U,G,X,K,Z,J,ee,te,ie,ne,re,se,ae,oe,le,ue,ce,de,he,pe,fe,me,ge,ve,ye,be,we,Te,_e,xe,Ce,Se,Ee,Pe,Ie,ke,je,De,Ae,Ye,Me,Oe,ze,Le,Qe,Ne,Be,He,Fe,Re,$e,We,qe,Ve,Ue,Ge,Xe,Ke,Ze,Je,et,tt,it,nt,rt,st,at,ot,lt,ut,ct,dt,ht,pt,ft,mt,gt,vt,yt,bt,wt,Tt,_t=function(e){var t="transitionend";var i={TRANSITION_END:"bsTransitionEnd",getUID:function(e){for(;e+=~~(1e6*Math.random()),document.getElementById(e););return e},getSelectorFromElement:function(t){var i=t.getAttribute("data-target");i&&"#"!==i||(i=t.getAttribute("href")||"");try{return 0<e(document).find(i).length?i:null}catch(t){return null}},getTransitionDurationFromElement:function(t){if(!t)return 0;var i=e(t).css("transition-duration");return parseFloat(i)?(i=i.split(",")[0],1e3*parseFloat(i)):0},reflow:function(e){return e.offsetHeight},triggerTransitionEnd:function(i){e(i).trigger(t)},supportsTransitionEnd:function(){return Boolean(t)},isElement:function(e){return(e[0]||e).nodeType},typeCheckConfig:function(e,t,n){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var s=n[r],a=t[r],o=a&&i.isElement(a)?"element":(l=a,{}.toString.call(l).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(s).test(o))throw new Error(e.toUpperCase()+': Option "'+r+'" provided type "'+o+'" but expected type "'+s+'".')}var l}};return e.fn.emulateTransitionEnd=function(t){var n=this,r=!1;return e(this).one(i.TRANSITION_END,function(){r=!0}),setTimeout(function(){r||i.triggerTransitionEnd(n)},t),this},e.event.special[i.TRANSITION_END]={bindType:t,delegateType:t,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}},i}(t),xt=(o="alert",u="."+(l="bs.alert"),c=(a=t).fn[o],d={CLOSE:"close"+u,CLOSED:"closed"+u,CLICK_DATA_API:"click"+u+".data-api"},"alert","fade","show",h=function(){function e(e){this._element=e}var t=e.prototype;return t.close=function(e){var t=this._element;e&&(t=this._getRootElement(e)),this._triggerCloseEvent(t).isDefaultPrevented()||this._removeElement(t)},t.dispose=function(){a.removeData(this._element,l),this._element=null},t._getRootElement=function(e){var t=_t.getSelectorFromElement(e),i=!1;return t&&(i=a(t)[0]),i||(i=a(e).closest(".alert")[0]),i},t._triggerCloseEvent=function(e){var t=a.Event(d.CLOSE);return a(e).trigger(t),t},t._removeElement=function(e){var t=this;if(a(e).removeClass("show"),a(e).hasClass("fade")){var i=_t.getTransitionDurationFromElement(e);a(e).one(_t.TRANSITION_END,function(i){return t._destroyElement(e,i)}).emulateTransitionEnd(i)}else this._destroyElement(e)},t._destroyElement=function(e){a(e).detach().trigger(d.CLOSED).remove()},e._jQueryInterface=function(t){return this.each(function(){var i=a(this),n=i.data(l);n||(n=new e(this),i.data(l,n)),"close"===t&&n[t](this)})},e._handleDismiss=function(e){return function(t){t&&t.preventDefault(),e.close(this)}},r(e,null,[{key:"VERSION",get:function(){return"4.1.1"}}]),e}(),a(document).on(d.CLICK_DATA_API,'[data-dismiss="alert"]',h._handleDismiss(new h)),a.fn[o]=h._jQueryInterface,a.fn[o].Constructor=h,a.fn[o].noConflict=function(){return a.fn[o]=c,h._jQueryInterface},h),Ct=(f="button",g="."+(m="bs.button"),v=".data-api",y=(p=t).fn[f],b="active","btn",w='[data-toggle^="button"]','[data-toggle="buttons"]',"input",".active",T=".btn",_={CLICK_DATA_API:"click"+g+v,FOCUS_BLUR_DATA_API:"focus"+g+v+" blur"+g+v},x=function(){function e(e){this._element=e}var t=e.prototype;return t.toggle=function(){var e=!0,t=!0,i=p(this._element).closest('[data-toggle="buttons"]')[0];if(i){var n=p(this._element).find("input")[0];if(n){if("radio"===n.type)if(n.checked&&p(this._element).hasClass(b))e=!1;else{var r=p(i).find(".active")[0];r&&p(r).removeClass(b)}if(e){if(n.hasAttribute("disabled")||i.hasAttribute("disabled")||n.classList.contains("disabled")||i.classList.contains("disabled"))return;n.checked=!p(this._element).hasClass(b),p(n).trigger("change")}n.focus(),t=!1}}t&&this._element.setAttribute("aria-pressed",!p(this._element).hasClass(b)),e&&p(this._element).toggleClass(b)},t.dispose=function(){p.removeData(this._element,m),this._element=null},e._jQueryInterface=function(t){return this.each(function(){var i=p(this).data(m);i||(i=new e(this),p(this).data(m,i)),"toggle"===t&&i[t]()})},r(e,null,[{key:"VERSION",get:function(){return"4.1.1"}}]),e}(),p(document).on(_.CLICK_DATA_API,w,function(e){e.preventDefault();var t=e.target;p(t).hasClass("btn")||(t=p(t).closest(T)),x._jQueryInterface.call(p(t),"toggle")}).on(_.FOCUS_BLUR_DATA_API,w,function(e){var t=p(e.target).closest(T)[0];p(t).toggleClass("focus",/^focus(in)?$/.test(e.type))}),p.fn[f]=x._jQueryInterface,p.fn[f].Constructor=x,p.fn[f].noConflict=function(){return p.fn[f]=y,x._jQueryInterface},x),St=(S="carousel",P="."+(E="bs.carousel"),I=".data-api",k=(C=t).fn[S],j={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},D={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},A="next",Y="prev","left","right",M={SLIDE:"slide"+P,SLID:"slid"+P,KEYDOWN:"keydown"+P,MOUSEENTER:"mouseenter"+P,MOUSELEAVE:"mouseleave"+P,TOUCHEND:"touchend"+P,LOAD_DATA_API:"load"+P+I,CLICK_DATA_API:"click"+P+I},"carousel",O="active","slide","carousel-item-right","carousel-item-left","carousel-item-next","carousel-item-prev",z={ACTIVE:".active",ACTIVE_ITEM:".active.carousel-item",ITEM:".carousel-item",NEXT_PREV:".carousel-item-next, .carousel-item-prev",INDICATORS:".carousel-indicators",DATA_SLIDE:"[data-slide], [data-slide-to]",DATA_RIDE:'[data-ride="carousel"]'},L=function(){function e(e,t){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this._config=this._getConfig(t),this._element=C(e)[0],this._indicatorsElement=C(this._element).find(z.INDICATORS)[0],this._addEventListeners()}var t=e.prototype;return t.next=function(){this._isSliding||this._slide(A)},t.nextWhenVisible=function(){!document.hidden&&C(this._element).is(":visible")&&"hidden"!==C(this._element).css("visibility")&&this.next()},t.prev=function(){this._isSliding||this._slide(Y)},t.pause=function(e){e||(this._isPaused=!0),C(this._element).find(z.NEXT_PREV)[0]&&(_t.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},t.cycle=function(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},t.to=function(e){var t=this;this._activeElement=C(this._element).find(z.ACTIVE_ITEM)[0];var i=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)C(this._element).one(M.SLID,function(){return t.to(e)});else{if(i===e)return this.pause(),void this.cycle();var n=i<e?A:Y;this._slide(n,this._items[e])}},t.dispose=function(){C(this._element).off(P),C.removeData(this._element,E),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},t._getConfig=function(e){return e=s({},j,e),_t.typeCheckConfig(S,e,D),e},t._addEventListeners=function(){var e=this;this._config.keyboard&&C(this._element).on(M.KEYDOWN,function(t){return e._keydown(t)}),"hover"===this._config.pause&&(C(this._element).on(M.MOUSEENTER,function(t){return e.pause(t)}).on(M.MOUSELEAVE,function(t){return e.cycle(t)}),"ontouchstart"in document.documentElement&&C(this._element).on(M.TOUCHEND,function(){e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout(function(t){return e.cycle(t)},500+e._config.interval)}))},t._keydown=function(e){if(!/input|textarea/i.test(e.target.tagName))switch(e.which){case 37:e.preventDefault(),this.prev();break;case 39:e.preventDefault(),this.next()}},t._getItemIndex=function(e){return this._items=C.makeArray(C(e).parent().find(z.ITEM)),this._items.indexOf(e)},t._getItemByDirection=function(e,t){var i=e===A,n=e===Y,r=this._getItemIndex(t),s=this._items.length-1;if((n&&0===r||i&&r===s)&&!this._config.wrap)return t;var a=(r+(e===Y?-1:1))%this._items.length;return-1===a?this._items[this._items.length-1]:this._items[a]},t._triggerSlideEvent=function(e,t){var i=this._getItemIndex(e),n=this._getItemIndex(C(this._element).find(z.ACTIVE_ITEM)[0]),r=C.Event(M.SLIDE,{relatedTarget:e,direction:t,from:n,to:i});return C(this._element).trigger(r),r},t._setActiveIndicatorElement=function(e){if(this._indicatorsElement){C(this._indicatorsElement).find(z.ACTIVE).removeClass(O);var t=this._indicatorsElement.children[this._getItemIndex(e)];t&&C(t).addClass(O)}},t._slide=function(e,t){var i,n,r,s=this,a=C(this._element).find(z.ACTIVE_ITEM)[0],o=this._getItemIndex(a),l=t||a&&this._getItemByDirection(e,a),u=this._getItemIndex(l),c=Boolean(this._interval);if(e===A?(i="carousel-item-left",n="carousel-item-next",r="left"):(i="carousel-item-right",n="carousel-item-prev",r="right"),l&&C(l).hasClass(O))this._isSliding=!1;else if(!this._triggerSlideEvent(l,r).isDefaultPrevented()&&a&&l){this._isSliding=!0,c&&this.pause(),this._setActiveIndicatorElement(l);var d=C.Event(M.SLID,{relatedTarget:l,direction:r,from:o,to:u});if(C(this._element).hasClass("slide")){C(l).addClass(n),_t.reflow(l),C(a).addClass(i),C(l).addClass(i);var h=_t.getTransitionDurationFromElement(a);C(a).one(_t.TRANSITION_END,function(){C(l).removeClass(i+" "+n).addClass(O),C(a).removeClass(O+" "+n+" "+i),s._isSliding=!1,setTimeout(function(){return C(s._element).trigger(d)},0)}).emulateTransitionEnd(h)}else C(a).removeClass(O),C(l).addClass(O),this._isSliding=!1,C(this._element).trigger(d);c&&this.cycle()}},e._jQueryInterface=function(t){return this.each(function(){var i=C(this).data(E),n=s({},j,C(this).data());"object"==typeof t&&(n=s({},n,t));var r="string"==typeof t?t:n.slide;if(i||(i=new e(this,n),C(this).data(E,i)),"number"==typeof t)i.to(t);else if("string"==typeof r){if(void 0===i[r])throw new TypeError('No method named "'+r+'"');i[r]()}else n.interval&&(i.pause(),i.cycle())})},e._dataApiClickHandler=function(t){var i=_t.getSelectorFromElement(this);if(i){var n=C(i)[0];if(n&&C(n).hasClass("carousel")){var r=s({},C(n).data(),C(this).data()),a=this.getAttribute("data-slide-to");a&&(r.interval=!1),e._jQueryInterface.call(C(n),r),a&&C(n).data(E).to(a),t.preventDefault()}}},r(e,null,[{key:"VERSION",get:function(){return"4.1.1"}},{key:"Default",get:function(){return j}}]),e}(),C(document).on(M.CLICK_DATA_API,z.DATA_SLIDE,L._dataApiClickHandler),C(window).on(M.LOAD_DATA_API,function(){C(z.DATA_RIDE).each(function(){var e=C(this);L._jQueryInterface.call(e,e.data())})}),C.fn[S]=L._jQueryInterface,C.fn[S].Constructor=L,C.fn[S].noConflict=function(){return C.fn[S]=k,L._jQueryInterface},L),Et=(N="collapse",H="."+(B="bs.collapse"),F=(Q=t).fn[N],R={toggle:!0,parent:""},$={toggle:"boolean",parent:"(string|element)"},W={SHOW:"show"+H,SHOWN:"shown"+H,HIDE:"hide"+H,HIDDEN:"hidden"+H,CLICK_DATA_API:"click"+H+".data-api"},q="show",V="collapse",U="collapsing",G="collapsed","width","height",X={ACTIVES:".show, .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},K=function(){function e(e,t){this._isTransitioning=!1,this._element=e,this._config=this._getConfig(t),this._triggerArray=Q.makeArray(Q('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'));for(var i=Q(X.DATA_TOGGLE),n=0;n<i.length;n++){var r=i[n],s=_t.getSelectorFromElement(r);null!==s&&0<Q(s).filter(e).length&&(this._selector=s,this._triggerArray.push(r))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var t=e.prototype;return t.toggle=function(){Q(this._element).hasClass(q)?this.hide():this.show()},t.show=function(){var t,i,n=this;if(!(this._isTransitioning||Q(this._element).hasClass(q)||(this._parent&&0===(t=Q.makeArray(Q(this._parent).find(X.ACTIVES).filter('[data-parent="'+this._config.parent+'"]'))).length&&(t=null),t&&(i=Q(t).not(this._selector).data(B))&&i._isTransitioning))){var r=Q.Event(W.SHOW);if(Q(this._element).trigger(r),!r.isDefaultPrevented()){t&&(e._jQueryInterface.call(Q(t).not(this._selector),"hide"),i||Q(t).data(B,null));var s=this._getDimension();Q(this._element).removeClass(V).addClass(U),(this._element.style[s]=0)<this._triggerArray.length&&Q(this._triggerArray).removeClass(G).attr("aria-expanded",!0),this.setTransitioning(!0);var a="scroll"+(s[0].toUpperCase()+s.slice(1)),o=_t.getTransitionDurationFromElement(this._element);Q(this._element).one(_t.TRANSITION_END,function(){Q(n._element).removeClass(U).addClass(V).addClass(q),n._element.style[s]="",n.setTransitioning(!1),Q(n._element).trigger(W.SHOWN)}).emulateTransitionEnd(o),this._element.style[s]=this._element[a]+"px"}}},t.hide=function(){var e=this;if(!this._isTransitioning&&Q(this._element).hasClass(q)){var t=Q.Event(W.HIDE);if(Q(this._element).trigger(t),!t.isDefaultPrevented()){var i=this._getDimension();if(this._element.style[i]=this._element.getBoundingClientRect()[i]+"px",_t.reflow(this._element),Q(this._element).addClass(U).removeClass(V).removeClass(q),0<this._triggerArray.length)for(var n=0;n<this._triggerArray.length;n++){var r=this._triggerArray[n],s=_t.getSelectorFromElement(r);null!==s&&(Q(s).hasClass(q)||Q(r).addClass(G).attr("aria-expanded",!1))}this.setTransitioning(!0),this._element.style[i]="";var a=_t.getTransitionDurationFromElement(this._element);Q(this._element).one(_t.TRANSITION_END,function(){e.setTransitioning(!1),Q(e._element).removeClass(U).addClass(V).trigger(W.HIDDEN)}).emulateTransitionEnd(a)}}},t.setTransitioning=function(e){this._isTransitioning=e},t.dispose=function(){Q.removeData(this._element,B),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},t._getConfig=function(e){return(e=s({},R,e)).toggle=Boolean(e.toggle),_t.typeCheckConfig(N,e,$),e},t._getDimension=function(){return Q(this._element).hasClass("width")?"width":"height"},t._getParent=function(){var t=this,i=null;_t.isElement(this._config.parent)?(i=this._config.parent,void 0!==this._config.parent.jquery&&(i=this._config.parent[0])):i=Q(this._config.parent)[0];var n='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]';return Q(i).find(n).each(function(i,n){t._addAriaAndCollapsedClass(e._getTargetFromElement(n),[n])}),i},t._addAriaAndCollapsedClass=function(e,t){if(e){var i=Q(e).hasClass(q);0<t.length&&Q(t).toggleClass(G,!i).attr("aria-expanded",i)}},e._getTargetFromElement=function(e){var t=_t.getSelectorFromElement(e);return t?Q(t)[0]:null},e._jQueryInterface=function(t){return this.each(function(){var i=Q(this),n=i.data(B),r=s({},R,i.data(),"object"==typeof t&&t?t:{});if(!n&&r.toggle&&/show|hide/.test(t)&&(r.toggle=!1),n||(n=new e(this,r),i.data(B,n)),"string"==typeof t){if(void 0===n[t])throw new TypeError('No method named "'+t+'"');n[t]()}})},r(e,null,[{key:"VERSION",get:function(){return"4.1.1"}},{key:"Default",get:function(){return R}}]),e}(),Q(document).on(W.CLICK_DATA_API,X.DATA_TOGGLE,function(e){"A"===e.currentTarget.tagName&&e.preventDefault();var t=Q(this),i=_t.getSelectorFromElement(this);Q(i).each(function(){var e=Q(this),i=e.data(B)?"toggle":t.data();K._jQueryInterface.call(e,i)})}),Q.fn[N]=K._jQueryInterface,Q.fn[N].Constructor=K,Q.fn[N].noConflict=function(){return Q.fn[N]=F,K._jQueryInterface},K),Pt=(J="dropdown",te="."+(ee="bs.dropdown"),ie=".data-api",ne=(Z=t).fn[J],re=new RegExp("38|40|27"),se={HIDE:"hide"+te,HIDDEN:"hidden"+te,SHOW:"show"+te,SHOWN:"shown"+te,CLICK:"click"+te,CLICK_DATA_API:"click"+te+ie,KEYDOWN_DATA_API:"keydown"+te+ie,KEYUP_DATA_API:"keyup"+te+ie},ae="disabled",oe="show","dropup","dropright","dropleft",le="dropdown-menu-right","position-static",ue='[data-toggle="dropdown"]',".dropdown form",ce=".dropdown-menu",".navbar-nav",".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)","top-start","top-end","bottom-start","bottom-end","right-start","left-start",de={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic"},he={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string"},pe=function(){function e(e,t){this._element=e,this._popper=null,this._config=this._getConfig(t),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var t=e.prototype;return t.toggle=function(){if(!this._element.disabled&&!Z(this._element).hasClass(ae)){var t=e._getParentFromElement(this._element),n=Z(this._menu).hasClass(oe);if(e._clearMenus(),!n){var r={relatedTarget:this._element},s=Z.Event(se.SHOW,r);if(Z(t).trigger(s),!s.isDefaultPrevented()){if(!this._inNavbar){if(void 0===i)throw new TypeError("Bootstrap dropdown require Popper.js (https://popper.js.org)");var a=this._element;"parent"===this._config.reference?a=t:_t.isElement(this._config.reference)&&(a=this._config.reference,void 0!==this._config.reference.jquery&&(a=this._config.reference[0])),"scrollParent"!==this._config.boundary&&Z(t).addClass("position-static"),this._popper=new i(a,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===Z(t).closest(".navbar-nav").length&&Z(document.body).children().on("mouseover",null,Z.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),Z(this._menu).toggleClass(oe),Z(t).toggleClass(oe).trigger(Z.Event(se.SHOWN,r))}}}},t.dispose=function(){Z.removeData(this._element,ee),Z(this._element).off(te),this._element=null,(this._menu=null)!==this._popper&&(this._popper.destroy(),this._popper=null)},t.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},t._addEventListeners=function(){var e=this;Z(this._element).on(se.CLICK,function(t){t.preventDefault(),t.stopPropagation(),e.toggle()})},t._getConfig=function(e){return e=s({},this.constructor.Default,Z(this._element).data(),e),_t.typeCheckConfig(J,e,this.constructor.DefaultType),e},t._getMenuElement=function(){if(!this._menu){var t=e._getParentFromElement(this._element);this._menu=Z(t).find(ce)[0]}return this._menu},t._getPlacement=function(){var e=Z(this._element).parent(),t="bottom-start";return e.hasClass("dropup")?(t="top-start",Z(this._menu).hasClass(le)&&(t="top-end")):e.hasClass("dropright")?t="right-start":e.hasClass("dropleft")?t="left-start":Z(this._menu).hasClass(le)&&(t="bottom-end"),t},t._detectNavbar=function(){return 0<Z(this._element).closest(".navbar").length},t._getPopperConfig=function(){var e=this,t={};"function"==typeof this._config.offset?t.fn=function(t){return t.offsets=s({},t.offsets,e._config.offset(t.offsets)||{}),t}:t.offset=this._config.offset;var i={placement:this._getPlacement(),modifiers:{offset:t,flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(i.modifiers.applyStyle={enabled:!1}),i},e._jQueryInterface=function(t){return this.each(function(){var i=Z(this).data(ee);if(i||(i=new e(this,"object"==typeof t?t:null),Z(this).data(ee,i)),"string"==typeof t){if(void 0===i[t])throw new TypeError('No method named "'+t+'"');i[t]()}})},e._clearMenus=function(t){if(!t||3!==t.which&&("keyup"!==t.type||9===t.which))for(var i=Z.makeArray(Z(ue)),n=0;n<i.length;n++){var r=e._getParentFromElement(i[n]),s=Z(i[n]).data(ee),a={relatedTarget:i[n]};if(s){var o=s._menu;if(Z(r).hasClass(oe)&&!(t&&("click"===t.type&&/input|textarea/i.test(t.target.tagName)||"keyup"===t.type&&9===t.which)&&Z.contains(r,t.target))){var l=Z.Event(se.HIDE,a);Z(r).trigger(l),l.isDefaultPrevented()||("ontouchstart"in document.documentElement&&Z(document.body).children().off("mouseover",null,Z.noop),i[n].setAttribute("aria-expanded","false"),Z(o).removeClass(oe),Z(r).removeClass(oe).trigger(Z.Event(se.HIDDEN,a)))}}}},e._getParentFromElement=function(e){var t,i=_t.getSelectorFromElement(e);return i&&(t=Z(i)[0]),t||e.parentNode},e._dataApiKeydownHandler=function(t){if((/input|textarea/i.test(t.target.tagName)?!(32===t.which||27!==t.which&&(40!==t.which&&38!==t.which||Z(t.target).closest(ce).length)):re.test(t.which))&&(t.preventDefault(),t.stopPropagation(),!this.disabled&&!Z(this).hasClass(ae))){var i=e._getParentFromElement(this),n=Z(i).hasClass(oe);if((n||27===t.which&&32===t.which)&&(!n||27!==t.which&&32!==t.which)){var r=Z(i).find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)").get();if(0!==r.length){var s=r.indexOf(t.target);38===t.which&&0<s&&s--,40===t.which&&s<r.length-1&&s++,s<0&&(s=0),r[s].focus()}}else{if(27===t.which){var a=Z(i).find(ue)[0];Z(a).trigger("focus")}Z(this).trigger("click")}}},r(e,null,[{key:"VERSION",get:function(){return"4.1.1"}},{key:"Default",get:function(){return de}},{key:"DefaultType",get:function(){return he}}]),e}(),Z(document).on(se.KEYDOWN_DATA_API,ue,pe._dataApiKeydownHandler).on(se.KEYDOWN_DATA_API,ce,pe._dataApiKeydownHandler).on(se.CLICK_DATA_API+" "+se.KEYUP_DATA_API,pe._clearMenus).on(se.CLICK_DATA_API,ue,function(e){e.preventDefault(),e.stopPropagation(),pe._jQueryInterface.call(Z(this),"toggle")}).on(se.CLICK_DATA_API,".dropdown form",function(e){e.stopPropagation()}),Z.fn[J]=pe._jQueryInterface,Z.fn[J].Constructor=pe,Z.fn[J].noConflict=function(){return Z.fn[J]=ne,pe._jQueryInterface},pe),It=(me="modal",ve="."+(ge="bs.modal"),ye=(fe=t).fn[me],be={backdrop:!0,keyboard:!0,focus:!0,show:!0},we={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},Te={HIDE:"hide"+ve,HIDDEN:"hidden"+ve,SHOW:"show"+ve,SHOWN:"shown"+ve,FOCUSIN:"focusin"+ve,RESIZE:"resize"+ve,CLICK_DISMISS:"click.dismiss"+ve,KEYDOWN_DISMISS:"keydown.dismiss"+ve,MOUSEUP_DISMISS:"mouseup.dismiss"+ve,MOUSEDOWN_DISMISS:"mousedown.dismiss"+ve,CLICK_DATA_API:"click"+ve+".data-api"},"modal-scrollbar-measure","modal-backdrop",_e="modal-open",xe="fade",Ce="show",Se={DIALOG:".modal-dialog",DATA_TOGGLE:'[data-toggle="modal"]',DATA_DISMISS:'[data-dismiss="modal"]',FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"},Ee=function(){function e(e,t){this._config=this._getConfig(t),this._element=e,this._dialog=fe(e).find(Se.DIALOG)[0],this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._scrollbarWidth=0}var t=e.prototype;return t.toggle=function(e){return this._isShown?this.hide():this.show(e)},t.show=function(e){var t=this;if(!this._isTransitioning&&!this._isShown){fe(this._element).hasClass(xe)&&(this._isTransitioning=!0);var i=fe.Event(Te.SHOW,{relatedTarget:e});fe(this._element).trigger(i),this._isShown||i.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),fe(document.body).addClass(_e),this._setEscapeEvent(),this._setResizeEvent(),fe(this._element).on(Te.CLICK_DISMISS,Se.DATA_DISMISS,function(e){return t.hide(e)}),fe(this._dialog).on(Te.MOUSEDOWN_DISMISS,function(){fe(t._element).one(Te.MOUSEUP_DISMISS,function(e){fe(e.target).is(t._element)&&(t._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return t._showElement(e)}))}},t.hide=function(e){var t=this;if(e&&e.preventDefault(),!this._isTransitioning&&this._isShown){var i=fe.Event(Te.HIDE);if(fe(this._element).trigger(i),this._isShown&&!i.isDefaultPrevented()){this._isShown=!1;var n=fe(this._element).hasClass(xe);if(n&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),fe(document).off(Te.FOCUSIN),fe(this._element).removeClass(Ce),fe(this._element).off(Te.CLICK_DISMISS),fe(this._dialog).off(Te.MOUSEDOWN_DISMISS),n){var r=_t.getTransitionDurationFromElement(this._element);fe(this._element).one(_t.TRANSITION_END,function(e){return t._hideModal(e)}).emulateTransitionEnd(r)}else this._hideModal()}}},t.dispose=function(){fe.removeData(this._element,ge),fe(window,document,this._element,this._backdrop).off(ve),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._scrollbarWidth=null},t.handleUpdate=function(){this._adjustDialog()},t._getConfig=function(e){return e=s({},be,e),_t.typeCheckConfig(me,e,we),e},t._showElement=function(e){var t=this,i=fe(this._element).hasClass(xe);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.scrollTop=0,i&&_t.reflow(this._element),fe(this._element).addClass(Ce),this._config.focus&&this._enforceFocus();var n=fe.Event(Te.SHOWN,{relatedTarget:e}),r=function(){t._config.focus&&t._element.focus(),t._isTransitioning=!1,fe(t._element).trigger(n)};if(i){var s=_t.getTransitionDurationFromElement(this._element);fe(this._dialog).one(_t.TRANSITION_END,r).emulateTransitionEnd(s)}else r()},t._enforceFocus=function(){var e=this;fe(document).off(Te.FOCUSIN).on(Te.FOCUSIN,function(t){document!==t.target&&e._element!==t.target&&0===fe(e._element).has(t.target).length&&e._element.focus()})},t._setEscapeEvent=function(){var e=this;this._isShown&&this._config.keyboard?fe(this._element).on(Te.KEYDOWN_DISMISS,function(t){27===t.which&&(t.preventDefault(),e.hide())}):this._isShown||fe(this._element).off(Te.KEYDOWN_DISMISS)},t._setResizeEvent=function(){var e=this;this._isShown?fe(window).on(Te.RESIZE,function(t){return e.handleUpdate(t)}):fe(window).off(Te.RESIZE)},t._hideModal=function(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1,this._showBackdrop(function(){fe(document.body).removeClass(_e),e._resetAdjustments(),e._resetScrollbar(),fe(e._element).trigger(Te.HIDDEN)})},t._removeBackdrop=function(){this._backdrop&&(fe(this._backdrop).remove(),this._backdrop=null)},t._showBackdrop=function(e){var t=this,i=fe(this._element).hasClass(xe)?xe:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className="modal-backdrop",i&&fe(this._backdrop).addClass(i),fe(this._backdrop).appendTo(document.body),fe(this._element).on(Te.CLICK_DISMISS,function(e){t._ignoreBackdropClick?t._ignoreBackdropClick=!1:e.target===e.currentTarget&&("static"===t._config.backdrop?t._element.focus():t.hide())}),i&&_t.reflow(this._backdrop),fe(this._backdrop).addClass(Ce),!e)return;if(!i)return void e();var n=_t.getTransitionDurationFromElement(this._backdrop);fe(this._backdrop).one(_t.TRANSITION_END,e).emulateTransitionEnd(n)}else if(!this._isShown&&this._backdrop){fe(this._backdrop).removeClass(Ce);var r=function(){t._removeBackdrop(),e&&e()};if(fe(this._element).hasClass(xe)){var s=_t.getTransitionDurationFromElement(this._backdrop);fe(this._backdrop).one(_t.TRANSITION_END,r).emulateTransitionEnd(s)}else r()}else e&&e()},t._adjustDialog=function(){var e=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},t._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},t._checkScrollbar=function(){var e=document.body.getBoundingClientRect();this._isBodyOverflowing=e.left+e.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},t._setScrollbar=function(){var e=this;if(this._isBodyOverflowing){fe(Se.FIXED_CONTENT).each(function(t,i){var n=fe(i)[0].style.paddingRight,r=fe(i).css("padding-right");fe(i).data("padding-right",n).css("padding-right",parseFloat(r)+e._scrollbarWidth+"px")}),fe(Se.STICKY_CONTENT).each(function(t,i){var n=fe(i)[0].style.marginRight,r=fe(i).css("margin-right");fe(i).data("margin-right",n).css("margin-right",parseFloat(r)-e._scrollbarWidth+"px")}),fe(Se.NAVBAR_TOGGLER).each(function(t,i){var n=fe(i)[0].style.marginRight,r=fe(i).css("margin-right");fe(i).data("margin-right",n).css("margin-right",parseFloat(r)+e._scrollbarWidth+"px")});var t=document.body.style.paddingRight,i=fe(document.body).css("padding-right");fe(document.body).data("padding-right",t).css("padding-right",parseFloat(i)+this._scrollbarWidth+"px")}},t._resetScrollbar=function(){fe(Se.FIXED_CONTENT).each(function(e,t){var i=fe(t).data("padding-right");void 0!==i&&fe(t).css("padding-right",i).removeData("padding-right")}),fe(Se.STICKY_CONTENT+", "+Se.NAVBAR_TOGGLER).each(function(e,t){var i=fe(t).data("margin-right");void 0!==i&&fe(t).css("margin-right",i).removeData("margin-right")});var e=fe(document.body).data("padding-right");void 0!==e&&fe(document.body).css("padding-right",e).removeData("padding-right")},t._getScrollbarWidth=function(){var e=document.createElement("div");e.className="modal-scrollbar-measure",document.body.appendChild(e);var t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t},e._jQueryInterface=function(t,i){return this.each(function(){var n=fe(this).data(ge),r=s({},be,fe(this).data(),"object"==typeof t&&t?t:{});if(n||(n=new e(this,r),fe(this).data(ge,n)),"string"==typeof t){if(void 0===n[t])throw new TypeError('No method named "'+t+'"');n[t](i)}else r.show&&n.show(i)})},r(e,null,[{key:"VERSION",get:function(){return"4.1.1"}},{key:"Default",get:function(){return be}}]),e}(),fe(document).on(Te.CLICK_DATA_API,Se.DATA_TOGGLE,function(e){var t,i=this,n=_t.getSelectorFromElement(this);n&&(t=fe(n)[0]);var r=fe(t).data(ge)?"toggle":s({},fe(t).data(),fe(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||e.preventDefault();var a=fe(t).one(Te.SHOW,function(e){e.isDefaultPrevented()||a.one(Te.HIDDEN,function(){fe(i).is(":visible")&&i.focus()})});Ee._jQueryInterface.call(fe(t),r,this)}),fe.fn[me]=Ee._jQueryInterface,fe.fn[me].Constructor=Ee,fe.fn[me].noConflict=function(){return fe.fn[me]=ye,Ee._jQueryInterface},Ee),kt=(Ie="tooltip",je="."+(ke="bs.tooltip"),De=(Pe=t).fn[Ie],Ae="bs-tooltip",Ye=new RegExp("(^|\\s)"+Ae+"\\S+","g"),ze={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!(Oe={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"}),selector:!(Me={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)"}),placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent"},"out",Qe={HIDE:"hide"+je,HIDDEN:"hidden"+je,SHOW:(Le="show")+je,SHOWN:"shown"+je,INSERTED:"inserted"+je,CLICK:"click"+je,FOCUSIN:"focusin"+je,FOCUSOUT:"focusout"+je,MOUSEENTER:"mouseenter"+je,MOUSELEAVE:"mouseleave"+je},Ne="fade",Be="show",".tooltip-inner",".arrow",He="hover",Fe="focus","click","manual",Re=function(){function e(e,t){if(void 0===i)throw new TypeError("Bootstrap tooltips require Popper.js (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=e,this.config=this._getConfig(t),this.tip=null,this._setListeners()}var t=e.prototype;return t.enable=function(){this._isEnabled=!0},t.disable=function(){this._isEnabled=!1},t.toggleEnabled=function(){this._isEnabled=!this._isEnabled},t.toggle=function(e){if(this._isEnabled)if(e){var t=this.constructor.DATA_KEY,i=Pe(e.currentTarget).data(t);i||(i=new this.constructor(e.currentTarget,this._getDelegateConfig()),Pe(e.currentTarget).data(t,i)),i._activeTrigger.click=!i._activeTrigger.click,i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)}else{if(Pe(this.getTipElement()).hasClass(Be))return void this._leave(null,this);this._enter(null,this)}},t.dispose=function(){clearTimeout(this._timeout),Pe.removeData(this.element,this.constructor.DATA_KEY),Pe(this.element).off(this.constructor.EVENT_KEY),Pe(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&Pe(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,(this._activeTrigger=null)!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},t.show=function(){var e=this;if("none"===Pe(this.element).css("display"))throw new Error("Please use show on visible elements");var t=Pe.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){Pe(this.element).trigger(t);var n=Pe.contains(this.element.ownerDocument.documentElement,this.element);if(t.isDefaultPrevented()||!n)return;var r=this.getTipElement(),s=_t.getUID(this.constructor.NAME);r.setAttribute("id",s),this.element.setAttribute("aria-describedby",s),this.setContent(),this.config.animation&&Pe(r).addClass(Ne);var a="function"==typeof this.config.placement?this.config.placement.call(this,r,this.element):this.config.placement,o=this._getAttachment(a);this.addAttachmentClass(o);var l=!1===this.config.container?document.body:Pe(this.config.container);Pe(r).data(this.constructor.DATA_KEY,this),Pe.contains(this.element.ownerDocument.documentElement,this.tip)||Pe(r).appendTo(l),Pe(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new i(this.element,r,{placement:o,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){e._handlePopperPlacementChange(t)}}),Pe(r).addClass(Be),"ontouchstart"in document.documentElement&&Pe(document.body).children().on("mouseover",null,Pe.noop);var u=function(){e.config.animation&&e._fixTransition();var t=e._hoverState;e._hoverState=null,Pe(e.element).trigger(e.constructor.Event.SHOWN),"out"===t&&e._leave(null,e)};if(Pe(this.tip).hasClass(Ne)){var c=_t.getTransitionDurationFromElement(this.tip);Pe(this.tip).one(_t.TRANSITION_END,u).emulateTransitionEnd(c)}else u()}},t.hide=function(e){var t=this,i=this.getTipElement(),n=Pe.Event(this.constructor.Event.HIDE),r=function(){t._hoverState!==Le&&i.parentNode&&i.parentNode.removeChild(i),t._cleanTipClass(),t.element.removeAttribute("aria-describedby"),Pe(t.element).trigger(t.constructor.Event.HIDDEN),null!==t._popper&&t._popper.destroy(),e&&e()};if(Pe(this.element).trigger(n),!n.isDefaultPrevented()){if(Pe(i).removeClass(Be),"ontouchstart"in document.documentElement&&Pe(document.body).children().off("mouseover",null,Pe.noop),this._activeTrigger.click=!1,this._activeTrigger[Fe]=!1,this._activeTrigger[He]=!1,Pe(this.tip).hasClass(Ne)){var s=_t.getTransitionDurationFromElement(i);Pe(i).one(_t.TRANSITION_END,r).emulateTransitionEnd(s)}else r();this._hoverState=""}},t.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},t.isWithContent=function(){return Boolean(this.getTitle())},t.addAttachmentClass=function(e){Pe(this.getTipElement()).addClass(Ae+"-"+e)},t.getTipElement=function(){return this.tip=this.tip||Pe(this.config.template)[0],this.tip},t.setContent=function(){var e=Pe(this.getTipElement());this.setElementContent(e.find(".tooltip-inner"),this.getTitle()),e.removeClass(Ne+" "+Be)},t.setElementContent=function(e,t){var i=this.config.html;"object"==typeof t&&(t.nodeType||t.jquery)?i?Pe(t).parent().is(e)||e.empty().append(t):e.text(Pe(t).text()):e[i?"html":"text"](t)},t.getTitle=function(){var e=this.element.getAttribute("data-original-title");return e||(e="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),e},t._getAttachment=function(e){return Oe[e.toUpperCase()]},t._setListeners=function(){var e=this;this.config.trigger.split(" ").forEach(function(t){if("click"===t)Pe(e.element).on(e.constructor.Event.CLICK,e.config.selector,function(t){return e.toggle(t)});else if("manual"!==t){var i=t===He?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,n=t===He?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;Pe(e.element).on(i,e.config.selector,function(t){return e._enter(t)}).on(n,e.config.selector,function(t){return e._leave(t)})}Pe(e.element).closest(".modal").on("hide.bs.modal",function(){return e.hide()})}),this.config.selector?this.config=s({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},t._fixTitle=function(){var e=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==e)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},t._enter=function(e,t){var i=this.constructor.DATA_KEY;(t=t||Pe(e.currentTarget).data(i))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),Pe(e.currentTarget).data(i,t)),e&&(t._activeTrigger["focusin"===e.type?Fe:He]=!0),Pe(t.getTipElement()).hasClass(Be)||t._hoverState===Le?t._hoverState=Le:(clearTimeout(t._timeout),t._hoverState=Le,t.config.delay&&t.config.delay.show?t._timeout=setTimeout(function(){t._hoverState===Le&&t.show()},t.config.delay.show):t.show())},t._leave=function(e,t){var i=this.constructor.DATA_KEY;(t=t||Pe(e.currentTarget).data(i))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),Pe(e.currentTarget).data(i,t)),e&&(t._activeTrigger["focusout"===e.type?Fe:He]=!1),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState="out",t.config.delay&&t.config.delay.hide?t._timeout=setTimeout(function(){"out"===t._hoverState&&t.hide()},t.config.delay.hide):t.hide())},t._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},t._getConfig=function(e){return"number"==typeof(e=s({},this.constructor.Default,Pe(this.element).data(),"object"==typeof e&&e?e:{})).delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),_t.typeCheckConfig(Ie,e,this.constructor.DefaultType),e},t._getDelegateConfig=function(){var e={};if(this.config)for(var t in this.config)this.constructor.Default[t]!==this.config[t]&&(e[t]=this.config[t]);return e},t._cleanTipClass=function(){var e=Pe(this.getTipElement()),t=e.attr("class").match(Ye);null!==t&&0<t.length&&e.removeClass(t.join(""))},t._handlePopperPlacementChange=function(e){this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},t._fixTransition=function(){var e=this.getTipElement(),t=this.config.animation;null===e.getAttribute("x-placement")&&(Pe(e).removeClass(Ne),this.config.animation=!1,this.hide(),this.show(),this.config.animation=t)},e._jQueryInterface=function(t){return this.each(function(){var i=Pe(this).data(ke),n="object"==typeof t&&t;if((i||!/dispose|hide/.test(t))&&(i||(i=new e(this,n),Pe(this).data(ke,i)),"string"==typeof t)){if(void 0===i[t])throw new TypeError('No method named "'+t+'"');i[t]()}})},r(e,null,[{key:"VERSION",get:function(){return"4.1.1"}},{key:"Default",get:function(){return ze}},{key:"NAME",get:function(){return Ie}},{key:"DATA_KEY",get:function(){return ke}},{key:"Event",get:function(){return Qe}},{key:"EVENT_KEY",get:function(){return je}},{key:"DefaultType",get:function(){return Me}}]),e}(),Pe.fn[Ie]=Re._jQueryInterface,Pe.fn[Ie].Constructor=Re,Pe.fn[Ie].noConflict=function(){return Pe.fn[Ie]=De,Re._jQueryInterface},Re),jt=(We="popover",Ve="."+(qe="bs.popover"),Ue=($e=t).fn[We],Ge="bs-popover",Xe=new RegExp("(^|\\s)"+Ge+"\\S+","g"),Ke=s({},kt.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),Ze=s({},kt.DefaultType,{content:"(string|element|function)"}),"fade",".popover-header",".popover-body",Je={HIDE:"hide"+Ve,HIDDEN:"hidden"+Ve,SHOW:"show"+Ve,SHOWN:"shown"+Ve,INSERTED:"inserted"+Ve,CLICK:"click"+Ve,FOCUSIN:"focusin"+Ve,FOCUSOUT:"focusout"+Ve,MOUSEENTER:"mouseenter"+Ve,MOUSELEAVE:"mouseleave"+Ve},et=function(e){var t,i;function n(){return e.apply(this,arguments)||this}i=e,(t=n).prototype=Object.create(i.prototype),(t.prototype.constructor=t).__proto__=i;var s=n.prototype;return s.isWithContent=function(){return this.getTitle()||this._getContent()},s.addAttachmentClass=function(e){$e(this.getTipElement()).addClass(Ge+"-"+e)},s.getTipElement=function(){return this.tip=this.tip||$e(this.config.template)[0],this.tip},s.setContent=function(){var e=$e(this.getTipElement());this.setElementContent(e.find(".popover-header"),this.getTitle());var t=this._getContent();"function"==typeof t&&(t=t.call(this.element)),this.setElementContent(e.find(".popover-body"),t),e.removeClass("fade show")},s._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},s._cleanTipClass=function(){var e=$e(this.getTipElement()),t=e.attr("class").match(Xe);null!==t&&0<t.length&&e.removeClass(t.join(""))},n._jQueryInterface=function(e){return this.each(function(){var t=$e(this).data(qe),i="object"==typeof e?e:null;if((t||!/destroy|hide/.test(e))&&(t||(t=new n(this,i),$e(this).data(qe,t)),"string"==typeof e)){if(void 0===t[e])throw new TypeError('No method named "'+e+'"');t[e]()}})},r(n,null,[{key:"VERSION",get:function(){return"4.1.1"}},{key:"Default",get:function(){return Ke}},{key:"NAME",get:function(){return We}},{key:"DATA_KEY",get:function(){return qe}},{key:"Event",get:function(){return Je}},{key:"EVENT_KEY",get:function(){return Ve}},{key:"DefaultType",get:function(){return Ze}}]),n}(kt),$e.fn[We]=et._jQueryInterface,$e.fn[We].Constructor=et,$e.fn[We].noConflict=function(){return $e.fn[We]=Ue,et._jQueryInterface},et),Dt=(it="scrollspy",rt="."+(nt="bs.scrollspy"),st=(tt=t).fn[it],at={offset:10,method:"auto",target:""},ot={offset:"number",method:"string",target:"(string|element)"},lt={ACTIVATE:"activate"+rt,SCROLL:"scroll"+rt,LOAD_DATA_API:"load"+rt+".data-api"},"dropdown-item",ut="active",ct={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",NAV_LIST_GROUP:".nav, .list-group",NAV_LINKS:".nav-link",NAV_ITEMS:".nav-item",LIST_ITEMS:".list-group-item",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},"offset",dt="position",ht=function(){function e(e,t){var i=this;this._element=e,this._scrollElement="BODY"===e.tagName?window:e,this._config=this._getConfig(t),this._selector=this._config.target+" "+ct.NAV_LINKS+","+this._config.target+" "+ct.LIST_ITEMS+","+this._config.target+" "+ct.DROPDOWN_ITEMS,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,tt(this._scrollElement).on(lt.SCROLL,function(e){return i._process(e)}),this.refresh(),this._process()}var t=e.prototype;return t.refresh=function(){var e=this,t=this._scrollElement===this._scrollElement.window?"offset":dt,i="auto"===this._config.method?t:this._config.method,n=i===dt?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),tt.makeArray(tt(this._selector)).map(function(e){var t,r=_t.getSelectorFromElement(e);if(r&&(t=tt(r)[0]),t){var s=t.getBoundingClientRect();if(s.width||s.height)return[tt(t)[i]().top+n,r]}return null}).filter(function(e){return e}).sort(function(e,t){return e[0]-t[0]}).forEach(function(t){e._offsets.push(t[0]),e._targets.push(t[1])})},t.dispose=function(){tt.removeData(this._element,nt),tt(this._scrollElement).off(rt),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},t._getConfig=function(e){if("string"!=typeof(e=s({},at,"object"==typeof e&&e?e:{})).target){var t=tt(e.target).attr("id");t||(t=_t.getUID(it),tt(e.target).attr("id",t)),e.target="#"+t}return _t.typeCheckConfig(it,e,ot),e},t._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},t._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},t._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},t._process=function(){var e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),i=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),i<=e){var n=this._targets[this._targets.length-1];this._activeTarget!==n&&this._activate(n)}else{if(this._activeTarget&&e<this._offsets[0]&&0<this._offsets[0])return this._activeTarget=null,void this._clear();for(var r=this._offsets.length;r--;)this._activeTarget!==this._targets[r]&&e>=this._offsets[r]&&(void 0===this._offsets[r+1]||e<this._offsets[r+1])&&this._activate(this._targets[r])}},t._activate=function(e){this._activeTarget=e,this._clear();var t=this._selector.split(",");t=t.map(function(t){return t+'[data-target="'+e+'"],'+t+'[href="'+e+'"]'});var i=tt(t.join(","));i.hasClass("dropdown-item")?(i.closest(ct.DROPDOWN).find(ct.DROPDOWN_TOGGLE).addClass(ut),i.addClass(ut)):(i.addClass(ut),i.parents(ct.NAV_LIST_GROUP).prev(ct.NAV_LINKS+", "+ct.LIST_ITEMS).addClass(ut),i.parents(ct.NAV_LIST_GROUP).prev(ct.NAV_ITEMS).children(ct.NAV_LINKS).addClass(ut)),tt(this._scrollElement).trigger(lt.ACTIVATE,{relatedTarget:e})},t._clear=function(){tt(this._selector).filter(ct.ACTIVE).removeClass(ut)},e._jQueryInterface=function(t){return this.each(function(){var i=tt(this).data(nt);if(i||(i=new e(this,"object"==typeof t&&t),tt(this).data(nt,i)),"string"==typeof t){if(void 0===i[t])throw new TypeError('No method named "'+t+'"');i[t]()}})},r(e,null,[{key:"VERSION",get:function(){return"4.1.1"}},{key:"Default",get:function(){return at}}]),e}(),tt(window).on(lt.LOAD_DATA_API,function(){for(var e=tt.makeArray(tt(ct.DATA_SPY)),t=e.length;t--;){var i=tt(e[t]);ht._jQueryInterface.call(i,i.data())}}),tt.fn[it]=ht._jQueryInterface,tt.fn[it].Constructor=ht,tt.fn[it].noConflict=function(){return tt.fn[it]=st,ht._jQueryInterface},ht),At=(mt="."+(ft="bs.tab"),gt=(pt=t).fn.tab,vt={HIDE:"hide"+mt,HIDDEN:"hidden"+mt,SHOW:"show"+mt,SHOWN:"shown"+mt,CLICK_DATA_API:"click"+mt+".data-api"},"dropdown-menu",yt="active","disabled","fade","show",".dropdown",".nav, .list-group",bt=".active",wt="> li > .active",'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',".dropdown-toggle","> .dropdown-menu .active",Tt=function(){function e(e){this._element=e}var t=e.prototype;return t.show=function(){var e=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&pt(this._element).hasClass(yt)||pt(this._element).hasClass("disabled"))){var t,i,n=pt(this._element).closest(".nav, .list-group")[0],r=_t.getSelectorFromElement(this._element);if(n){var s="UL"===n.nodeName?wt:bt;i=(i=pt.makeArray(pt(n).find(s)))[i.length-1]}var a=pt.Event(vt.HIDE,{relatedTarget:this._element}),o=pt.Event(vt.SHOW,{relatedTarget:i});if(i&&pt(i).trigger(a),pt(this._element).trigger(o),!o.isDefaultPrevented()&&!a.isDefaultPrevented()){r&&(t=pt(r)[0]),this._activate(this._element,n);var l=function(){var t=pt.Event(vt.HIDDEN,{relatedTarget:e._element}),n=pt.Event(vt.SHOWN,{relatedTarget:i});pt(i).trigger(t),pt(e._element).trigger(n)};t?this._activate(t,t.parentNode,l):l()}}},t.dispose=function(){pt.removeData(this._element,ft),this._element=null},t._activate=function(e,t,i){var n=this,r=("UL"===t.nodeName?pt(t).find(wt):pt(t).children(bt))[0],s=i&&r&&pt(r).hasClass("fade"),a=function(){return n._transitionComplete(e,r,i)};if(r&&s){var o=_t.getTransitionDurationFromElement(r);pt(r).one(_t.TRANSITION_END,a).emulateTransitionEnd(o)}else a()},t._transitionComplete=function(e,t,i){if(t){pt(t).removeClass("show "+yt);var n=pt(t.parentNode).find("> .dropdown-menu .active")[0];n&&pt(n).removeClass(yt),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1)}if(pt(e).addClass(yt),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),_t.reflow(e),pt(e).addClass("show"),e.parentNode&&pt(e.parentNode).hasClass("dropdown-menu")){var r=pt(e).closest(".dropdown")[0];r&&pt(r).find(".dropdown-toggle").addClass(yt),e.setAttribute("aria-expanded",!0)}i&&i()},e._jQueryInterface=function(t){return this.each(function(){var i=pt(this),n=i.data(ft);if(n||(n=new e(this),i.data(ft,n)),"string"==typeof t){if(void 0===n[t])throw new TypeError('No method named "'+t+'"');n[t]()}})},r(e,null,[{key:"VERSION",get:function(){return"4.1.1"}}]),e}(),pt(document).on(vt.CLICK_DATA_API,'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',function(e){e.preventDefault(),Tt._jQueryInterface.call(pt(this),"show")}),pt.fn.tab=Tt._jQueryInterface,pt.fn.tab.Constructor=Tt,pt.fn.tab.noConflict=function(){return pt.fn.tab=gt,Tt._jQueryInterface},Tt);!function(e){if(void 0===e)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var t=e.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1===t[0]&&9===t[1]&&t[2]<1||4<=t[0])throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(t),e.Util=_t,e.Alert=xt,e.Button=Ct,e.Carousel=St,e.Collapse=Et,e.Dropdown=Pt,e.Modal=It,e.Popover=jt,e.Scrollspy=Dt,e.Tab=At,e.Tooltip=kt,Object.defineProperty(e,"__esModule",{value:!0})}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=e(require("jquery")):e(jQuery)}(function(e){e.extend(e.fn,{validate:function(t){if(this.length){var i=e.data(this[0],"validator");return i||(this.attr("novalidate","novalidate"),i=new e.validator(t,this[0]),e.data(this[0],"validator",i),i.settings.onsubmit&&(this.on("click.validate",":submit",function(t){i.submitButton=t.currentTarget,e(this).hasClass("cancel")&&(i.cancelSubmit=!0),void 0!==e(this).attr("formnovalidate")&&(i.cancelSubmit=!0)}),this.on("submit.validate",function(t){function n(){var n,r;return i.submitButton&&(i.settings.submitHandler||i.formSubmitted)&&(n=e("<input type='hidden'/>").attr("name",i.submitButton.name).val(e(i.submitButton).val()).appendTo(i.currentForm)),!i.settings.submitHandler||(r=i.settings.submitHandler.call(i,i.currentForm,t),n&&n.remove(),void 0!==r&&r)}return i.settings.debug&&t.preventDefault(),i.cancelSubmit?(i.cancelSubmit=!1,n()):i.form()?i.pendingRequest?(i.formSubmitted=!0,!1):n():(i.focusInvalid(),!1)})),i)}t&&t.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing.")},valid:function(){var t,i,n;return e(this[0]).is("form")?t=this.validate().form():(n=[],t=!0,i=e(this[0].form).validate(),this.each(function(){(t=i.element(this)&&t)||(n=n.concat(i.errorList))}),i.errorList=n),t},rules:function(t,i){var n,r,s,a,o,l,u=this[0];if(null!=u&&(!u.form&&u.hasAttribute("contenteditable")&&(u.form=this.closest("form")[0],u.name=this.attr("name")),null!=u.form)){if(t)switch(n=e.data(u.form,"validator").settings,r=n.rules,s=e.validator.staticRules(u),t){case"add":e.extend(s,e.validator.normalizeRule(i)),delete s.messages,r[u.name]=s,i.messages&&(n.messages[u.name]=e.extend(n.messages[u.name],i.messages));break;case"remove":return i?(l={},e.each(i.split(/\s/),function(e,t){l[t]=s[t],delete s[t]}),l):(delete r[u.name],s)}return(a=e.validator.normalizeRules(e.extend({},e.validator.classRules(u),e.validator.attributeRules(u),e.validator.dataRules(u),e.validator.staticRules(u)),u)).required&&(o=a.required,delete a.required,a=e.extend({required:o},a)),a.remote&&(o=a.remote,delete a.remote,a=e.extend(a,{remote:o})),a}}}),e.extend(e.expr.pseudos||e.expr[":"],{blank:function(t){return!e.trim(""+e(t).val())},filled:function(t){var i=e(t).val();return null!==i&&!!e.trim(""+i)},unchecked:function(t){return!e(t).prop("checked")}}),e.validator=function(t,i){this.settings=e.extend(!0,{},e.validator.defaults,t),this.currentForm=i,this.init()},e.validator.format=function(t,i){return 1===arguments.length?function(){var i=e.makeArray(arguments);return i.unshift(t),e.validator.format.apply(this,i)}:void 0===i?t:(arguments.length>2&&i.constructor!==Array&&(i=e.makeArray(arguments).slice(1)),i.constructor!==Array&&(i=[i]),e.each(i,function(e,i){t=t.replace(new RegExp("\\{"+e+"\\}","g"),function(){return i})}),t)},e.extend(e.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",pendingClass:"pending",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,errorContainer:e([]),errorLabelContainer:e([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(e){this.lastActive=e,this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,e,this.settings.errorClass,this.settings.validClass),this.hideThese(this.errorsFor(e)))},onfocusout:function(e){this.checkable(e)||!(e.name in this.submitted)&&this.optional(e)||this.element(e)},onkeyup:function(t,i){9===i.which&&""===this.elementValue(t)||-1!==e.inArray(i.keyCode,[16,17,18,20,35,36,37,38,39,40,45,144,225])||(t.name in this.submitted||t.name in this.invalid)&&this.element(t)},onclick:function(e){e.name in this.submitted?this.element(e):e.parentNode.name in this.submitted&&this.element(e.parentNode)},highlight:function(t,i,n){"radio"===t.type?this.findByName(t.name).addClass(i).removeClass(n):e(t).addClass(i).removeClass(n)},unhighlight:function(t,i,n){"radio"===t.type?this.findByName(t.name).removeClass(i).addClass(n):e(t).removeClass(i).addClass(n)}},setDefaults:function(t){e.extend(e.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.",equalTo:"Please enter the same value again.",maxlength:e.validator.format("Please enter no more than {0} characters."),minlength:e.validator.format("Please enter at least {0} characters."),rangelength:e.validator.format("Please enter a value between {0} and {1} characters long."),range:e.validator.format("Please enter a value between {0} and {1}."),max:e.validator.format("Please enter a value less than or equal to {0}."),min:e.validator.format("Please enter a value greater than or equal to {0}."),step:e.validator.format("Please enter a multiple of {0}.")},autoCreateRanges:!1,prototype:{init:function(){function t(t){!this.form&&this.hasAttribute("contenteditable")&&(this.form=e(this).closest("form")[0],this.name=e(this).attr("name"));var i=e.data(this.form,"validator"),n="on"+t.type.replace(/^validate/,""),r=i.settings;r[n]&&!e(this).is(r.ignore)&&r[n].call(i,this,t)}this.labelContainer=e(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||e(this.currentForm),this.containers=e(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var i,n=this.groups={};e.each(this.settings.groups,function(t,i){"string"==typeof i&&(i=i.split(/\s/)),e.each(i,function(e,i){n[i]=t})}),i=this.settings.rules,e.each(i,function(t,n){i[t]=e.validator.normalizeRule(n)}),e(this.currentForm).on("focusin.validate focusout.validate keyup.validate",":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'], [type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], [type='radio'], [type='checkbox'], [contenteditable], [type='button']",t).on("click.validate","select, option, [type='radio'], [type='checkbox']",t),this.settings.invalidHandler&&e(this.currentForm).on("invalid-form.validate",this.settings.invalidHandler)},form:function(){return this.checkForm(),e.extend(this.submitted,this.errorMap),this.invalid=e.extend({},this.errorMap),this.valid()||e(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var e=0,t=this.currentElements=this.elements();t[e];e++)this.check(t[e]);return this.valid()},element:function(t){var i,n,r=this.clean(t),s=this.validationTargetFor(r),a=this,o=!0;return void 0===s?delete this.invalid[r.name]:(this.prepareElement(s),this.currentElements=e(s),(n=this.groups[s.name])&&e.each(this.groups,function(e,t){t===n&&e!==s.name&&((r=a.validationTargetFor(a.clean(a.findByName(e))))&&r.name in a.invalid&&(a.currentElements.push(r),o=a.check(r)&&o))}),i=!1!==this.check(s),o=o&&i,this.invalid[s.name]=!i,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),e(t).attr("aria-invalid",!i)),o},showErrors:function(t){if(t){var i=this;e.extend(this.errorMap,t),this.errorList=e.map(this.errorMap,function(e,t){return{message:e,element:i.findByName(t)[0]}}),this.successList=e.grep(this.successList,function(e){return!(e.name in t)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){e.fn.resetForm&&e(this.currentForm).resetForm(),this.invalid={},this.submitted={},this.prepareForm(),this.hideErrors();var t=this.elements().removeData("previousValue").removeAttr("aria-invalid");this.resetElements(t)},resetElements:function(e){var t;if(this.settings.unhighlight)for(t=0;e[t];t++)this.settings.unhighlight.call(this,e[t],this.settings.errorClass,""),this.findByName(e[t].name).removeClass(this.settings.validClass);else e.removeClass(this.settings.errorClass).removeClass(this.settings.validClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(e){var t,i=0;for(t in e)void 0!==e[t]&&null!==e[t]&&!1!==e[t]&&i++;return i},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(e){e.not(this.containers).text(""),this.addWrapper(e).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{e(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(e){}},findLastActive:function(){var t=this.lastActive;return t&&1===e.grep(this.errorList,function(e){return e.element.name===t.name}).length&&t},elements:function(){var t=this,i={};return e(this.currentForm).find("input, select, textarea, [contenteditable]").not(":submit, :reset, :image, :disabled").not(this.settings.ignore).filter(function(){var n=this.name||e(this).attr("name");return!n&&t.settings.debug&&window.console&&console.error("%o has no name assigned",this),this.hasAttribute("contenteditable")&&(this.form=e(this).closest("form")[0],this.name=n),!(n in i||!t.objectLength(e(this).rules())||(i[n]=!0,0))})},clean:function(t){return e(t)[0]},errors:function(){var t=this.settings.errorClass.split(" ").join(".");return e(this.settings.errorElement+"."+t,this.errorContext)},resetInternals:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=e([]),this.toHide=e([])},reset:function(){this.resetInternals(),this.currentElements=e([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(e){this.reset(),this.toHide=this.errorsFor(e)},elementValue:function(t){var i,n,r=e(t),s=t.type;return"radio"===s||"checkbox"===s?this.findByName(t.name).filter(":checked").val():"number"===s&&void 0!==t.validity?t.validity.badInput?"NaN":r.val():(i=t.hasAttribute("contenteditable")?r.text():r.val(),"file"===s?"C:\\fakepath\\"===i.substr(0,12)?i.substr(12):(n=i.lastIndexOf("/"))>=0?i.substr(n+1):(n=i.lastIndexOf("\\"))>=0?i.substr(n+1):i:"string"==typeof i?i.replace(/\r/g,""):i)},check:function(t){t=this.validationTargetFor(this.clean(t));var i,n,r,s,a=e(t).rules(),o=e.map(a,function(e,t){return t}).length,l=!1,u=this.elementValue(t);if("function"==typeof a.normalizer?s=a.normalizer:"function"==typeof this.settings.normalizer&&(s=this.settings.normalizer),s){if("string"!=typeof(u=s.call(t,u)))throw new TypeError("The normalizer should return a string value.");delete a.normalizer}for(n in a){r={method:n,parameters:a[n]};try{if("dependency-mismatch"===(i=e.validator.methods[n].call(this,u,t,r.parameters))&&1===o){l=!0;continue}if(l=!1,"pending"===i)return void(this.toHide=this.toHide.not(this.errorsFor(t)));if(!i)return this.formatAndAdd(t,r),!1}catch(e){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+t.id+", check the '"+r.method+"' method.",e),e instanceof TypeError&&(e.message+=".  Exception occurred when checking element "+t.id+", check the '"+r.method+"' method."),e}}if(!l)return this.objectLength(a)&&this.successList.push(t),!0},customDataMessage:function(t,i){return e(t).data("msg"+i.charAt(0).toUpperCase()+i.substring(1).toLowerCase())||e(t).data("msg")},customMessage:function(e,t){var i=this.settings.messages[e];return i&&(i.constructor===String?i:i[t])},findDefined:function(){for(var e=0;e<arguments.length;e++)if(void 0!==arguments[e])return arguments[e]},defaultMessage:function(t,i){"string"==typeof i&&(i={method:i});var n=this.findDefined(this.customMessage(t.name,i.method),this.customDataMessage(t,i.method),!this.settings.ignoreTitle&&t.title||void 0,e.validator.messages[i.method],"<strong>Warning: No message defined for "+t.name+"</strong>"),r=/\$?\{(\d+)\}/g;return"function"==typeof n?n=n.call(this,i.parameters,t):r.test(n)&&(n=e.validator.format(n.replace(r,"{$1}"),i.parameters)),n},formatAndAdd:function(e,t){var i=this.defaultMessage(e,t);this.errorList.push({message:i,element:e,method:t.method}),this.errorMap[e.name]=i,this.submitted[e.name]=i},addWrapper:function(e){return this.settings.wrapper&&(e=e.add(e.parent(this.settings.wrapper))),e},defaultShowErrors:function(){var e,t,i;for(e=0;this.errorList[e];e++)i=this.errorList[e],this.settings.highlight&&this.settings.highlight.call(this,i.element,this.settings.errorClass,this.settings.validClass),this.showLabel(i.element,i.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(e=0;this.successList[e];e++)this.showLabel(this.successList[e]);if(this.settings.unhighlight)for(e=0,t=this.validElements();t[e];e++)this.settings.unhighlight.call(this,t[e],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 e(this.errorList).map(function(){return this.element})},showLabel:function(t,i){var n,r,s,a,o=this.errorsFor(t),l=this.idOrName(t),u=e(t).attr("aria-describedby");o.length?(o.removeClass(this.settings.validClass).addClass(this.settings.errorClass),o.html(i)):(n=o=e("<"+this.settings.errorElement+">").attr("id",l+"-error").addClass(this.settings.errorClass).html(i||""),this.settings.wrapper&&(n=o.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(n):this.settings.errorPlacement?this.settings.errorPlacement.call(this,n,e(t)):n.insertAfter(t),o.is("label")?o.attr("for",l):0===o.parents("label[for='"+this.escapeCssMeta(l)+"']").length&&(s=o.attr("id"),u?u.match(new RegExp("\\b"+this.escapeCssMeta(s)+"\\b"))||(u+=" "+s):u=s,e(t).attr("aria-describedby",u),(r=this.groups[t.name])&&(a=this,e.each(a.groups,function(t,i){i===r&&e("[name='"+a.escapeCssMeta(t)+"']",a.currentForm).attr("aria-describedby",o.attr("id"))})))),!i&&this.settings.success&&(o.text(""),"string"==typeof this.settings.success?o.addClass(this.settings.success):this.settings.success(o,t)),this.toShow=this.toShow.add(o)},errorsFor:function(t){var i=this.escapeCssMeta(this.idOrName(t)),n=e(t).attr("aria-describedby"),r="label[for='"+i+"'], label[for='"+i+"'] *";return n&&(r=r+", #"+this.escapeCssMeta(n).replace(/\s+/g,", #")),this.errors().filter(r)},escapeCssMeta:function(e){return e.replace(/([\\!"#$%&'()*+,.\/:;<=>?@\[\]^`{|}~])/g,"\\$1")},idOrName:function(e){return this.groups[e.name]||(this.checkable(e)?e.name:e.id||e.name)},validationTargetFor:function(t){return this.checkable(t)&&(t=this.findByName(t.name)),e(t).not(this.settings.ignore)[0]},checkable:function(e){return/radio|checkbox/i.test(e.type)},findByName:function(t){return e(this.currentForm).find("[name='"+this.escapeCssMeta(t)+"']")},getLength:function(t,i){switch(i.nodeName.toLowerCase()){case"select":return e("option:selected",i).length;case"input":if(this.checkable(i))return this.findByName(i.name).filter(":checked").length}return t.length},depend:function(e,t){return!this.dependTypes[typeof e]||this.dependTypes[typeof e](e,t)},dependTypes:{boolean:function(e){return e},string:function(t,i){return!!e(t,i.form).length},function:function(e,t){return e(t)}},optional:function(t){var i=this.elementValue(t);return!e.validator.methods.required.call(this,i,t)&&"dependency-mismatch"},startRequest:function(t){this.pending[t.name]||(this.pendingRequest++,e(t).addClass(this.settings.pendingClass),this.pending[t.name]=!0)},stopRequest:function(t,i){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[t.name],e(t).removeClass(this.settings.pendingClass),i&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(e(this.currentForm).submit(),this.submitButton&&e("input:hidden[name='"+this.submitButton.name+"']",this.currentForm).remove(),this.formSubmitted=!1):!i&&0===this.pendingRequest&&this.formSubmitted&&(e(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(t,i){return i="string"==typeof i&&i||"remote",e.data(t,"previousValue")||e.data(t,"previousValue",{old:null,valid:!0,message:this.defaultMessage(t,{method:i})})},destroy:function(){this.resetForm(),e(this.currentForm).off(".validate").removeData("validator").find(".validate-equalTo-blur").off(".validate-equalTo").removeClass("validate-equalTo-blur")}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(t,i){t.constructor===String?this.classRuleSettings[t]=i:e.extend(this.classRuleSettings,t)},classRules:function(t){var i={},n=e(t).attr("class");return n&&e.each(n.split(" "),function(){this in e.validator.classRuleSettings&&e.extend(i,e.validator.classRuleSettings[this])}),i},normalizeAttributeRule:function(e,t,i,n){/min|max|step/.test(i)&&(null===t||/number|range|text/.test(t))&&(n=Number(n),isNaN(n)&&(n=void 0)),n||0===n?e[i]=n:t===i&&"range"!==t&&(e[i]=!0)},attributeRules:function(t){var i,n,r={},s=e(t),a=t.getAttribute("type");for(i in e.validator.methods)"required"===i?(""===(n=t.getAttribute(i))&&(n=!0),n=!!n):n=s.attr(i),this.normalizeAttributeRule(r,a,i,n);return r.maxlength&&/-1|2147483647|524288/.test(r.maxlength)&&delete r.maxlength,r},dataRules:function(t){var i,n,r={},s=e(t),a=t.getAttribute("type");for(i in e.validator.methods)n=s.data("rule"+i.charAt(0).toUpperCase()+i.substring(1).toLowerCase()),this.normalizeAttributeRule(r,a,i,n);return r},staticRules:function(t){var i={},n=e.data(t.form,"validator");return n.settings.rules&&(i=e.validator.normalizeRule(n.settings.rules[t.name])||{}),i},normalizeRules:function(t,i){return e.each(t,function(n,r){if(!1!==r){if(r.param||r.depends){var s=!0;switch(typeof r.depends){case"string":s=!!e(r.depends,i.form).length;break;case"function":s=r.depends.call(i,i)}s?t[n]=void 0===r.param||r.param:(e.data(i.form,"validator").resetElements(e(i)),delete t[n])}}else delete t[n]}),e.each(t,function(n,r){t[n]=e.isFunction(r)&&"normalizer"!==n?r(i):r}),e.each(["minlength","maxlength"],function(){t[this]&&(t[this]=Number(t[this]))}),e.each(["rangelength","range"],function(){var i;t[this]&&(e.isArray(t[this])?t[this]=[Number(t[this][0]),Number(t[this][1])]:"string"==typeof t[this]&&(i=t[this].replace(/[\[\]]/g,"").split(/[\s,]+/),t[this]=[Number(i[0]),Number(i[1])]))}),e.validator.autoCreateRanges&&(null!=t.min&&null!=t.max&&(t.range=[t.min,t.max],delete t.min,delete t.max),null!=t.minlength&&null!=t.maxlength&&(t.rangelength=[t.minlength,t.maxlength],delete t.minlength,delete t.maxlength)),t},normalizeRule:function(t){if("string"==typeof t){var i={};e.each(t.split(/\s/),function(){i[this]=!0}),t=i}return t},addMethod:function(t,i,n){e.validator.methods[t]=i,e.validator.messages[t]=void 0!==n?n:e.validator.messages[t],i.length<3&&e.validator.addClassRules(t,e.validator.normalizeRule(t))},methods:{required:function(t,i,n){if(!this.depend(n,i))return"dependency-mismatch";if("select"===i.nodeName.toLowerCase()){var r=e(i).val();return r&&r.length>0}return this.checkable(i)?this.getLength(t,i)>0:t.length>0},email:function(e,t){return this.optional(t)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(e)},url:function(e,t){return this.optional(t)||/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[\/?#]\S*)?$/i.test(e)},date:function(e,t){return this.optional(t)||!/Invalid|NaN/.test(new Date(e).toString())},dateISO:function(e,t){return this.optional(t)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(e)},number:function(e,t){return this.optional(t)||/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(e)},digits:function(e,t){return this.optional(t)||/^\d+$/.test(e)},minlength:function(t,i,n){var r=e.isArray(t)?t.length:this.getLength(t,i);return this.optional(i)||r>=n},maxlength:function(t,i,n){var r=e.isArray(t)?t.length:this.getLength(t,i);return this.optional(i)||r<=n},rangelength:function(t,i,n){var r=e.isArray(t)?t.length:this.getLength(t,i);return this.optional(i)||r>=n[0]&&r<=n[1]},min:function(e,t,i){return this.optional(t)||e>=i},max:function(e,t,i){return this.optional(t)||e<=i},range:function(e,t,i){return this.optional(t)||e>=i[0]&&e<=i[1]},step:function(t,i,n){var r,s=e(i).attr("type"),a="Step attribute on input type "+s+" is not supported.",o=new RegExp("\\b"+s+"\\b"),l=function(e){var t=(""+e).match(/(?:\.(\d+))?$/);return t&&t[1]?t[1].length:0},u=function(e){return Math.round(e*Math.pow(10,r))},c=!0;if(s&&!o.test(["text","number","range"].join()))throw new Error(a);return r=l(n),(l(t)>r||u(t)%u(n)!=0)&&(c=!1),this.optional(i)||c},equalTo:function(t,i,n){var r=e(n);return this.settings.onfocusout&&r.not(".validate-equalTo-blur").length&&r.addClass("validate-equalTo-blur").on("blur.validate-equalTo",function(){e(i).valid()}),t===r.val()},remote:function(t,i,n,r){if(this.optional(i))return"dependency-mismatch";r="string"==typeof r&&r||"remote";var s,a,o,l=this.previousValue(i,r);return this.settings.messages[i.name]||(this.settings.messages[i.name]={}),l.originalMessage=l.originalMessage||this.settings.messages[i.name][r],this.settings.messages[i.name][r]=l.message,n="string"==typeof n&&{url:n}||n,o=e.param(e.extend({data:t},n.data)),l.old===o?l.valid:(l.old=o,s=this,this.startRequest(i),(a={})[i.name]=t,e.ajax(e.extend(!0,{mode:"abort",port:"validate"+i.name,dataType:"json",data:a,context:s.currentForm,success:function(e){var n,a,o,u=!0===e||"true"===e;s.settings.messages[i.name][r]=l.originalMessage,u?(o=s.formSubmitted,s.resetInternals(),s.toHide=s.errorsFor(i),s.formSubmitted=o,s.successList.push(i),s.invalid[i.name]=!1,s.showErrors()):(n={},a=e||s.defaultMessage(i,{method:r,parameters:t}),n[i.name]=l.message=a,s.invalid[i.name]=!0,s.showErrors(n)),l.valid=u,s.stopRequest(i,u)}},n)),"pending")}}});var t,i={};return e.ajaxPrefilter?e.ajaxPrefilter(function(e,t,n){var r=e.port;"abort"===e.mode&&(i[r]&&i[r].abort(),i[r]=n)}):(t=e.ajax,e.ajax=function(n){var r=("mode"in n?n:e.ajaxSettings).mode,s=("port"in n?n:e.ajaxSettings).port;return"abort"===r?(i[s]&&i[s].abort(),i[s]=t.apply(this,arguments),i[s]):t.apply(this,arguments)}),e});