if("undefined"===typeof jQuery)throw Error("Bootstrap's JavaScript requires jQuery");+function(b){b=b.fn.jquery.split(" ")[0].split(".");if(2>b[0]&&9>b[1]||1==b[0]&&9==b[1]&&1>b[2]||2this.$items.length-1||0>a))return this.sliding?this.$element.one("slid.bs.carousel",function(){b.to(a)}):c==a?this.pause().cycle():this.slide(a>c?"next":"prev",this.$items.eq(a))};e.prototype.pause=function(a){a||(this.paused=!0);this.$element.find(".next, .prev").length&&b.support.transition&&(this.$element.trigger(b.support.transition.end), this.cycle(!0));this.interval=clearInterval(this.interval);return this};e.prototype.next=function(){if(!this.sliding)return this.slide("next")};e.prototype.prev=function(){if(!this.sliding)return this.slide("prev")};e.prototype.slide=function(a,c){var f=this.$element.find(".item.active"),d=c||this.getItemForDirection(a,f),l=this.interval,k="next"==a?"left":"right",m=this;if(d.hasClass("active"))return this.sliding=!1;var q=d[0],p=b.Event("slide.bs.carousel",{relatedTarget:q,direction:k});this.$element.trigger(p); if(!p.isDefaultPrevented()){this.sliding=!0;l&&this.pause();this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),(p=b(this.$indicators.children()[this.getItemIndex(d)]))&&p.addClass("active"));var r=b.Event("slid.bs.carousel",{relatedTarget:q,direction:k});b.support.transition&&this.$element.hasClass("slide")?(d.addClass(a),d[0].offsetWidth,f.addClass(k),d.addClass(k),f.one("bsTransitionEnd",function(){d.removeClass([a,k].join(" ")).addClass("active");f.removeClass(["active", k].join(" "));m.sliding=!1;setTimeout(function(){m.$element.trigger(r)},0)}).emulateTransitionEnd(e.TRANSITION_DURATION)):(f.removeClass("active"),d.addClass("active"),this.sliding=!1,this.$element.trigger(r));l&&this.cycle();return this}};var c=b.fn.carousel;b.fn.carousel=d;b.fn.carousel.Constructor=e;b.fn.carousel.noConflict=function(){b.fn.carousel=c;return this};var a=function(a){var c,f=b(this),e=b(f.attr("data-target")||(c=f.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,""));if(e.hasClass("carousel")){c= b.extend({},e.data(),f.data());if(f=f.attr("data-slide-to"))c.interval=!1;d.call(e,c);f&&e.data("bs.carousel").to(f);a.preventDefault()}};b(document).on("click.bs.carousel.data-api","[data-slide]",a).on("click.bs.carousel.data-api","[data-slide-to]",a);b(window).on("load",function(){b('[data-ride\x3d"carousel"]').each(function(){var a=b(this);d.call(a,a.data())})})}(jQuery); +function(b){function d(a){var c=a.attr("data-target");c||(c=(c=a.attr("href"))&&/#[A-Za-z]/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));return(c=c&&b(c))&&c.length?c:a.parent()}function e(a){a&&3===a.which||(b(".dropdown-backdrop").remove(),b('[data-toggle\x3d"dropdown"]').each(function(){var c=b(this),f=d(c),e={relatedTarget:this};!f.hasClass("open")||a&&"click"==a.type&&/input|textarea/i.test(a.target.tagName)&&b.contains(f[0],a.target)||(f.trigger(a=b.Event("hide.bs.dropdown",e)),a.isDefaultPrevented()|| (c.attr("aria-expanded","false"),f.removeClass("open").trigger(b.Event("hidden.bs.dropdown",e))))}))}var c=function(a){b(a).on("click.bs.dropdown",this.toggle)};c.VERSION="3.3.6";c.prototype.toggle=function(a){var c=b(this);if(!c.is(".disabled, :disabled")){var f=d(c);a=f.hasClass("open");e();if(!a){if("ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length)b(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(b(this)).on("click",e);var n={relatedTarget:this}; f.trigger(a=b.Event("show.bs.dropdown",n));if(a.isDefaultPrevented())return;c.trigger("focus").attr("aria-expanded","true");f.toggleClass("open").trigger(b.Event("shown.bs.dropdown",n))}return!1}};c.prototype.keydown=function(a){if(/(38|40|27|32)/.test(a.which)&&!/input|textarea/i.test(a.target.tagName)){var c=b(this);a.preventDefault();a.stopPropagation();if(!c.is(".disabled, :disabled")){var f=d(c),e=f.hasClass("open");if(!e&&27!=a.which||e&&27==a.which)return 27==a.which&&f.find('[data-toggle\x3d"dropdown"]').trigger("focus"), c.trigger("click");c=f.find(".dropdown-menu li:not(.disabled):visible a");c.length&&(f=c.index(a.target),38==a.which&&0document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&a?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!a?this.scrollbarWidth:""})};e.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})};e.prototype.checkScrollbar=function(){var a=window.innerWidth;a||(a=document.documentElement.getBoundingClientRect(),a=a.right-Math.abs(a.left));this.bodyIsOverflowing= document.body.clientWidthk.bottom?"top":"top"==a&&h.top-lk.width?"left":"left"==a&&h.left-ed.top+d.height&&(f.top=d.top+d.height-a)):(h=a.left-e,a=a.left+e+g,hd.right&&(f.left=d.left+d.width-a));return f};d.prototype.getTitle=function(){var b=this.$element,a=this.options;return b.attr("data-original-title")||("function"==typeof a.title?a.title.call(b[0]):a.title)};d.prototype.getUID=function(b){do b+=~~(1E6*Math.random());while(document.getElementById(b));return b};d.prototype.tip=function(){if(!this.$tip&&(this.$tip=b(this.options.template),1!=this.$tip.length))throw Error(this.type+" `template` option must consist of exactly 1 top-level element!"); return this.$tip};d.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")};d.prototype.enable=function(){this.enabled=!0};d.prototype.disable=function(){this.enabled=!1};d.prototype.toggleEnabled=function(){this.enabled=!this.enabled};d.prototype.toggle=function(c){var a=this;c&&(a=b(c.currentTarget).data("bs."+this.type),a||(a=new this.constructor(c.currentTarget,this.getDelegateOptions()),b(c.currentTarget).data("bs."+this.type,a)));c?(a.inState.click=!a.inState.click, a.isInStateTrue()?a.enter(a):a.leave(a)):a.tip().hasClass("in")?a.leave(a):a.enter(a)};d.prototype.destroy=function(){var b=this;clearTimeout(this.timeout);this.hide(function(){b.$element.off("."+b.type).removeData("bs."+b.type);b.$tip&&b.$tip.detach();b.$tip=null;b.$arrow=null;b.$viewport=null})};var e=b.fn.tooltip;b.fn.tooltip=function(c){return this.each(function(){var a=b(this),g=a.data("bs.tooltip"),h="object"==typeof c&&c;if(g||!/destroy|hide/.test(c))if(g||a.data("bs.tooltip",g=new d(this, h)),"string"==typeof c)g[c]()})};b.fn.tooltip.Constructor=d;b.fn.tooltip.noConflict=function(){b.fn.tooltip=e;return this}}(jQuery); +function(b){var d=function(b,a){this.init("popover",b,a)};if(!b.fn.tooltip)throw Error("Popover requires tooltip.js");d.VERSION="3.3.6";d.DEFAULTS=b.extend({},b.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'\x3cdiv class\x3d"popover" role\x3d"tooltip"\x3e\x3cdiv class\x3d"arrow"\x3e\x3c/div\x3e\x3ch3 class\x3d"popover-title"\x3e\x3c/h3\x3e\x3cdiv class\x3d"popover-content"\x3e\x3c/div\x3e\x3c/div\x3e'});d.prototype=b.extend({},b.fn.tooltip.Constructor.prototype); d.prototype.constructor=d;d.prototype.getDefaults=function(){return d.DEFAULTS};d.prototype.setContent=function(){var b=this.tip(),a=this.getTitle(),g=this.getContent();b.find(".popover-title")[this.options.html?"html":"text"](a);b.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof g?"html":"append":"text"](g);b.removeClass("fade top bottom left right in");b.find(".popover-title").html()||b.find(".popover-title").hide()};d.prototype.hasContent=function(){return this.getTitle()|| this.getContent()};d.prototype.getContent=function(){var b=this.$element,a=this.options;return b.attr("data-content")||("function"==typeof a.content?a.content.call(b[0]):a.content)};d.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var e=b.fn.popover;b.fn.popover=function(c){return this.each(function(){var a=b(this),g=a.data("bs.popover"),h="object"==typeof c&&c;if(g||!/destroy|hide/.test(c))if(g||a.data("bs.popover",g=new d(this,h)),"string"==typeof c)g[c]()})}; b.fn.popover.Constructor=d;b.fn.popover.noConflict=function(){b.fn.popover=e;return this}}(jQuery); +function(b){function d(a){return this.each(function(){var c=b(this),f=c.data("bs.tab");f||c.data("bs.tab",f=new e(this));if("string"==typeof a)f[a]()})}var e=function(a){this.element=b(a)};e.VERSION="3.3.6";e.TRANSITION_DURATION=150;e.prototype.show=function(){var a=this.element,c=a.closest("ul:not(.dropdown-menu)"),f=a.data("target");f||(f=(f=a.attr("href"))&&f.replace(/.*(?=#[^\s]*$)/,""));if(!a.parent("li").hasClass("active")){var d=c.find(".active:last a"),e=b.Event("hide.bs.tab",{relatedTarget:a[0]}), k=b.Event("show.bs.tab",{relatedTarget:d[0]});d.trigger(e);a.trigger(k);k.isDefaultPrevented()||e.isDefaultPrevented()||(f=b(f),this.activate(a.closest("li"),c),this.activate(f,f.parent(),function(){d.trigger({type:"hidden.bs.tab",relatedTarget:a[0]});a.trigger({type:"shown.bs.tab",relatedTarget:d[0]})}))}};e.prototype.activate=function(a,c,f){function d(){l.removeClass("active").find("\x3e .dropdown-menu \x3e .active").removeClass("active").end().find('[data-toggle\x3d"tab"]').attr("aria-expanded", !1);a.addClass("active").find('[data-toggle\x3d"tab"]').attr("aria-expanded",!0);k?(a[0].offsetWidth,a.addClass("in")):a.removeClass("fade");a.parent(".dropdown-menu").length&&a.closest("li.dropdown").addClass("active").end().find('[data-toggle\x3d"tab"]').attr("aria-expanded",!0);f&&f()}var l=c.find("\x3e .active"),k=f&&b.support.transition&&(l.length&&l.hasClass("fade")||!!c.find("\x3e .fade").length);l.length&&k?l.one("bsTransitionEnd",d).emulateTransitionEnd(e.TRANSITION_DURATION):d();l.removeClass("in")}; var c=b.fn.tab;b.fn.tab=d;b.fn.tab.Constructor=e;b.fn.tab.noConflict=function(){b.fn.tab=c;return this};var a=function(a){a.preventDefault();d.call(b(this),"show")};b(document).on("click.bs.tab.data-api",'[data-toggle\x3d"tab"]',a).on("click.bs.tab.data-api",'[data-toggle\x3d"pill"]',a)}(jQuery); +function(b){function d(a){return this.each(function(){var c=b(this),d=c.data("bs.affix"),f="object"==typeof a&&a;d||c.data("bs.affix",d=new e(this,f));if("string"==typeof a)d[a]()})}var e=function(a,c){this.options=b.extend({},e.DEFAULTS,c);this.$target=b(this.options.target).on("scroll.bs.affix.data-api",b.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",b.proxy(this.checkPositionWithEventLoop,this));this.$element=b(a);this.pinnedOffset=this.unpin=this.affixed=null;this.checkPosition()}; e.VERSION="3.3.6";e.RESET="affix affix-top affix-bottom";e.DEFAULTS={offset:0,target:window};e.prototype.getState=function(a,b,c,d){var e=this.$target.scrollTop(),l=this.$element.offset(),k=this.$target.height();if(null!=c&&"top"==this.affixed)return e=a-d?"bottom":!1};e.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset; this.$element.removeClass(e.RESET).addClass("affix");var a=this.$target.scrollTop();return this.pinnedOffset=this.$element.offset().top-a};e.prototype.checkPositionWithEventLoop=function(){setTimeout(b.proxy(this.checkPosition,this),1)};e.prototype.checkPosition=function(){if(this.$element.is(":visible")){var a=this.$element.height(),c=this.options.offset,d=c.top,f=c.bottom,n=Math.max(b(document).height(),b(document.body).height());"object"!=typeof c&&(f=d=c);"function"==typeof d&&(d=c.top(this.$element)); "function"==typeof f&&(f=c.bottom(this.$element));c=this.getState(n,a,d,f);if(this.affixed!=c){null!=this.unpin&&this.$element.css("top","");var d="affix"+(c?"-"+c:""),l=b.Event(d+".bs.affix");this.$element.trigger(l);if(l.isDefaultPrevented())return;this.affixed=c;this.unpin="bottom"==c?this.getPinnedOffset():null;this.$element.removeClass(e.RESET).addClass(d).trigger(d.replace("affix","affixed")+".bs.affix")}"bottom"==c&&this.$element.offset({top:n-a-f})}};var c=b.fn.affix;b.fn.affix=d;b.fn.affix.Constructor= e;b.fn.affix.noConflict=function(){b.fn.affix=c;return this};b(window).on("load",function(){b('[data-spy\x3d"affix"]').each(function(){var a=b(this),c=a.data();c.offset=c.offset||{};null!=c.offsetBottom&&(c.offset.bottom=c.offsetBottom);null!=c.offsetTop&&(c.offset.top=c.offsetTop);d.call(a,c)})})}(jQuery); +function(b){function d(a){var c;a=a.attr("data-target")||(c=a.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"");return b(a)}function e(a){return this.each(function(){var d=b(this),f=d.data("bs.collapse"),e=b.extend({},c.DEFAULTS,d.data(),"object"==typeof a&&a);!f&&e.toggle&&/show|hide/.test(a)&&(e.toggle=!1);f||d.data("bs.collapse",f=new c(this,e));if("string"==typeof a)f[a]()})}var c=function(a,d){this.$element=b(a);this.options=b.extend({},c.DEFAULTS,d);this.$trigger=b('[data-toggle\x3d"collapse"][href\x3d"#'+ a.id+'"],[data-toggle\x3d"collapse"][data-target\x3d"#'+a.id+'"]');this.transitioning=null;this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger);this.options.toggle&&this.toggle()};c.VERSION="3.3.6";c.TRANSITION_DURATION=350;c.DEFAULTS={toggle:!0};c.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"};c.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var a,d=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing"); if(d&&d.length&&(a=d.data("bs.collapse"))&&a.transitioning)return;var f=b.Event("show.bs.collapse");this.$element.trigger(f);if(!f.isDefaultPrevented()){d&&d.length&&(e.call(d,"hide"),a||d.data("bs.collapse",null));var n=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[n](0).attr("aria-expanded",!0);this.$trigger.removeClass("collapsed").attr("aria-expanded",!0);this.transitioning=1;a=function(){this.$element.removeClass("collapsing").addClass("collapse in")[n]("");this.transitioning= 0;this.$element.trigger("shown.bs.collapse")};if(!b.support.transition)return a.call(this);d=b.camelCase(["scroll",n].join("-"));this.$element.one("bsTransitionEnd",b.proxy(a,this)).emulateTransitionEnd(c.TRANSITION_DURATION)[n](this.$element[0][d])}}};c.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var a=b.Event("hide.bs.collapse");this.$element.trigger(a);if(!a.isDefaultPrevented()){a=this.dimension();this.$element[a](this.$element[a]())[0].offsetHeight;this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded", !1);this.$trigger.addClass("collapsed").attr("aria-expanded",!1);this.transitioning=1;var d=function(){this.transitioning=0;this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!b.support.transition)return d.call(this);this.$element[a](0).one("bsTransitionEnd",b.proxy(d,this)).emulateTransitionEnd(c.TRANSITION_DURATION)}}};c.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};c.prototype.getParent=function(){return b(this.options.parent).find('[data-toggle\x3d"collapse"][data-parent\x3d"'+ this.options.parent+'"]').each(b.proxy(function(a,c){var f=b(c);this.addAriaAndCollapsedClass(d(f),f)},this)).end()};c.prototype.addAriaAndCollapsedClass=function(a,b){var c=a.hasClass("in");a.attr("aria-expanded",c);b.toggleClass("collapsed",!c).attr("aria-expanded",c)};var a=b.fn.collapse;b.fn.collapse=e;b.fn.collapse.Constructor=c;b.fn.collapse.noConflict=function(){b.fn.collapse=a;return this};b(document).on("click.bs.collapse.data-api",'[data-toggle\x3d"collapse"]',function(a){var c=b(this); c.attr("data-target")||a.preventDefault();a=d(c);c=a.data("bs.collapse")?"toggle":c.data();e.call(a,c)})}(jQuery); +function(b){function d(a,c){this.$body=b(document.body);this.$scrollElement=b(a).is(document.body)?b(window):b(a);this.options=b.extend({},d.DEFAULTS,c);this.selector=(this.options.target||"")+" .nav li \x3e a";this.offsets=[];this.targets=[];this.activeTarget=null;this.scrollHeight=0;this.$scrollElement.on("scroll.bs.scrollspy",b.proxy(this.process,this));this.refresh();this.process()}function e(a){return this.each(function(){var c=b(this),e=c.data("bs.scrollspy"),f="object"==typeof a&&a;e||c.data("bs.scrollspy", e=new d(this,f));if("string"==typeof a)e[a]()})}d.VERSION="3.3.6";d.DEFAULTS={offset:10};d.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)};d.prototype.refresh=function(){var a=this,c="offset",d=0;this.offsets=[];this.targets=[];this.scrollHeight=this.getScrollHeight();b.isWindow(this.$scrollElement[0])||(c="position",d=this.$scrollElement.scrollTop());this.$body.find(this.selector).map(function(){var a= b(this),a=a.data("target")||a.attr("href"),e=/^#./.test(a)&&b(a);return e&&e.length&&e.is(":visible")&&[[e[c]().top+d,a]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){a.offsets.push(this[0]);a.targets.push(this[1])})};d.prototype.process=function(){var a=this.$scrollElement.scrollTop()+this.options.offset,b=this.getScrollHeight(),c=this.options.offset+b-this.$scrollElement.height(),d=this.offsets,e=this.targets,l=this.activeTarget,k;this.scrollHeight!=b&&this.refresh();if(a>=c)return l!= (k=e[e.length-1])&&this.activate(k);if(l&&a=d[k]&&(void 0===d[k+1]||a