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]||3this.$items.length-1||0>a?void 0: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))};f.prototype.pause=function(a){return 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),this};f.prototype.next=function(){return this.sliding?void 0:this.slide("next")};f.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")};f.prototype.slide=function(a,c){var g=this.$element.find(".item.active"),k=c||this.getItemForDirection(a,g),e=this.interval,l="next"==a?"left":"right",n=this;if(k.hasClass("active"))return this.sliding=!1;var q=k[0],p=b.Event("slide.bs.carousel",{relatedTarget:q,direction:l});if(this.$element.trigger(p), !p.isDefaultPrevented()){if(this.sliding=!0,e&&this.pause(),this.$indicators.length)this.$indicators.find(".active").removeClass("active"),(p=b(this.$indicators.children()[this.getItemIndex(k)]))&&p.addClass("active");var r=b.Event("slid.bs.carousel",{relatedTarget:q,direction:l});return b.support.transition&&this.$element.hasClass("slide")?(k.addClass(a),k[0].offsetWidth,g.addClass(l),k.addClass(l),g.one("bsTransitionEnd",function(){k.removeClass([a,l].join(" ")).addClass("active");g.removeClass(["active", l].join(" "));n.sliding=!1;setTimeout(function(){n.$element.trigger(r)},0)}).emulateTransitionEnd(f.TRANSITION_DURATION)):(g.removeClass("active"),k.addClass("active"),this.sliding=!1,this.$element.trigger(r)),e&&this.cycle(),this}};var c=b.fn.carousel;b.fn.carousel=e;b.fn.carousel.Constructor=f;b.fn.carousel.noConflict=function(){return b.fn.carousel=c,this};var a=function(a){var c,g=b(this),k=b(g.attr("data-target")||(c=g.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,""));k.hasClass("carousel")&&(c= b.extend({},k.data(),g.data()),(g=g.attr("data-slide-to"))&&(c.interval=!1),e.call(k,c),g&&k.data("bs.carousel").to(g),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="carousel"]').each(function(){var a=b(this);e.call(a,a.data())})})}(jQuery); +function(b){function e(a){var d=a.attr("data-target");d||(d=a.attr("href"),d=d&&/#[A-Za-z]/.test(d)&&d.replace(/.*(?=#[^\s]*$)/,""));return(d=d&&b(d))&&d.length?d:a.parent()}function f(d){d&&3===d.which||(b(c).remove(),b(a).each(function(){var a=b(this),c=e(a),h={relatedTarget:this};c.hasClass("open")&&(d&&"click"==d.type&&/input|textarea/i.test(d.target.tagName)&&b.contains(c[0],d.target)||(c.trigger(d=b.Event("hide.bs.dropdown",h)),d.isDefaultPrevented()||(a.attr("aria-expanded","false"),c.removeClass("open").trigger(b.Event("hidden.bs.dropdown", h)))))}))}var c=".dropdown-backdrop",a='[data-toggle="dropdown"]',d=function(a){b(a).on("click.bs.dropdown",this.toggle)};d.VERSION="3.3.7";d.prototype.toggle=function(a){var d=b(this);if(!d.is(".disabled, :disabled")){var c=e(d),h=c.hasClass("open");if(f(),!h){"ontouchstart"in document.documentElement&&!c.closest(".navbar-nav").length&&b(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(b(this)).on("click",f);h={relatedTarget:this};if(c.trigger(a=b.Event("show.bs.dropdown", h)),a.isDefaultPrevented())return;d.trigger("focus").attr("aria-expanded","true");c.toggleClass("open").trigger(b.Event("shown.bs.dropdown",h))}return!1}};d.prototype.keydown=function(d){if(/(38|40|27|32)/.test(d.which)&&!/input|textarea/i.test(d.target.tagName)){var c=b(this);if(d.preventDefault(),d.stopPropagation(),!c.is(".disabled, :disabled")){var h=e(c),f=h.hasClass("open");if(!f&&27!=d.which||f&&27==d.which)return 27==d.which&&h.find(a).trigger("focus"),c.trigger("click");c=h.find(".dropdown-menu li:not(.disabled):visible a"); c.length&&(h=c.index(d.target),38==d.which&&0document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&a?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!a?this.scrollbarWidth:""})};f.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})};f.prototype.checkScrollbar=function(){var a=window.innerWidth;a||(a=document.documentElement.getBoundingClientRect(), a=a.right-Math.abs(a.left));this.bodyIsOverflowing=document.body.clientWidth
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}};e.prototype.init=function(c,a, d){if(this.enabled=!0,this.type=c,this.$element=b(a),this.options=this.getOptions(d),this.$viewport=this.options.viewport&&b(b.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");c=this.options.trigger.split(" "); for(a=c.length;a--;)if(d=c[a],"click"==d)this.$element.on("click."+this.type,this.options.selector,b.proxy(this.toggle,this));else if("manual"!=d){var h="hover"==d?"mouseleave":"focusout";this.$element.on(("hover"==d?"mouseenter":"focusin")+"."+this.type,this.options.selector,b.proxy(this.enter,this));this.$element.on(h+"."+this.type,this.options.selector,b.proxy(this.leave,this))}this.options.selector?this._options=b.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()};e.prototype.getDefaults= function(){return e.DEFAULTS};e.prototype.getOptions=function(c){return c=b.extend({},this.getDefaults(),this.$element.data(),c),c.delay&&"number"==typeof c.delay&&(c.delay={show:c.delay,hide:c.delay}),c};e.prototype.getDelegateOptions=function(){var c={},a=this.getDefaults();return this._options&&b.each(this._options,function(d,b){a[d]!=b&&(c[d]=b)}),c};e.prototype.enter=function(c){var a=c instanceof this.constructor?c:b(c.currentTarget).data("bs."+this.type);return a||(a=new this.constructor(c.currentTarget, this.getDelegateOptions()),b(c.currentTarget).data("bs."+this.type,a)),c instanceof b.Event&&(a.inState["focusin"==c.type?"focus":"hover"]=!0),a.tip().hasClass("in")||"in"==a.hoverState?void(a.hoverState="in"):(clearTimeout(a.timeout),a.hoverState="in",a.options.delay&&a.options.delay.show?void(a.timeout=setTimeout(function(){"in"==a.hoverState&&a.show()},a.options.delay.show)):a.show())};e.prototype.isInStateTrue=function(){for(var b in this.inState)if(this.inState[b])return!0;return!1};e.prototype.leave= function(c){var a=c instanceof this.constructor?c:b(c.currentTarget).data("bs."+this.type);return a||(a=new this.constructor(c.currentTarget,this.getDelegateOptions()),b(c.currentTarget).data("bs."+this.type,a)),c instanceof b.Event&&(a.inState["focusout"==c.type?"focus":"hover"]=!1),a.isInStateTrue()?void 0:(clearTimeout(a.timeout),a.hoverState="out",a.options.delay&&a.options.delay.hide?void(a.timeout=setTimeout(function(){"out"==a.hoverState&&a.hide()},a.options.delay.hide)):a.hide())};e.prototype.show= function(){var c=b.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(c);var a=b.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(!c.isDefaultPrevented()&&a){var d=this,c=this.tip(),a=this.getUID(this.type);this.setContent();c.attr("id",a);this.$element.attr("aria-describedby",a);this.options.animation&&c.addClass("fade");var a="function"==typeof this.options.placement?this.options.placement.call(this,c[0],this.$element[0]):this.options.placement, h=/\s?auto?\s?/i,g=h.test(a);g&&(a=a.replace(h,"")||"top");c.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this);this.options.container?c.appendTo(this.options.container):c.insertAfter(this.$element);this.$element.trigger("inserted.bs."+this.type);var h=this.getPosition(),f=c[0].offsetWidth,m=c[0].offsetHeight;if(g){var g=a,l=this.getPosition(this.$viewport),a="bottom"==a&&h.bottom+m>l.bottom?"top":"top"==a&&h.top-ml.width?"left": "left"==a&&h.left-fe.top+e.height&&(g.top=e.top+e.height-a)):(h=a.left-f,a=a.left+ f+d,he.right&&(g.left=e.left+e.width-a));return g};e.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)};e.prototype.getUID=function(b){do b+=~~(1E6*Math.random());while(document.getElementById(b));return b};e.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};e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")};e.prototype.enable=function(){this.enabled=!0};e.prototype.disable=function(){this.enabled=!1};e.prototype.toggleEnabled=function(){this.enabled=!this.enabled};e.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)};e.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;b.$element=null})};var f=b.fn.tooltip;b.fn.tooltip=function(c){return this.each(function(){var a=b(this),d=a.data("bs.tooltip"),h="object"==typeof c&&c;!d&&/destroy|hide/.test(c)||(d||a.data("bs.tooltip",d= new e(this,h)),"string"==typeof c&&d[c]())})};b.fn.tooltip.Constructor=e;b.fn.tooltip.noConflict=function(){return b.fn.tooltip=f,this}}(jQuery); +function(b){var e=function(b,a){this.init("popover",b,a)};if(!b.fn.tooltip)throw Error("Popover requires tooltip.js");e.VERSION="3.3.7";e.DEFAULTS=b.extend({},b.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''});e.prototype=b.extend({},b.fn.tooltip.Constructor.prototype);e.prototype.constructor=e;e.prototype.getDefaults=function(){return e.DEFAULTS}; e.prototype.setContent=function(){var b=this.tip(),a=this.getTitle(),d=this.getContent();b.find(".popover-title")[this.options.html?"html":"text"](a);b.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof d?"html":"append":"text"](d);b.removeClass("fade top bottom left right in");b.find(".popover-title").html()||b.find(".popover-title").hide()};e.prototype.hasContent=function(){return this.getTitle()||this.getContent()};e.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)};e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var f=b.fn.popover;b.fn.popover=function(c){return this.each(function(){var a=b(this),d=a.data("bs.popover"),h="object"==typeof c&&c;!d&&/destroy|hide/.test(c)||(d||a.data("bs.popover",d=new e(this,h)),"string"==typeof c&&d[c]())})};b.fn.popover.Constructor=e;b.fn.popover.noConflict=function(){return b.fn.popover= f,this}}(jQuery); +function(b){function e(a){return this.each(function(){var c=b(this),g=c.data("bs.tab");g||c.data("bs.tab",g=new f(this));"string"==typeof a&&g[a]()})}var f=function(a){this.element=b(a)};f.VERSION="3.3.7";f.TRANSITION_DURATION=150;f.prototype.show=function(){var a=this.element,c=a.closest("ul:not(.dropdown-menu)"),g=a.data("target");if(g||(g=a.attr("href"),g=g&&g.replace(/.*(?=#[^\s]*$)/,"")),!a.parent("li").hasClass("active")){var e=c.find(".active:last a"),f=b.Event("hide.bs.tab",{relatedTarget:a[0]}), l=b.Event("show.bs.tab",{relatedTarget:e[0]});(e.trigger(f),a.trigger(l),l.isDefaultPrevented()||f.isDefaultPrevented())||(g=b(g),this.activate(a.closest("li"),c),this.activate(g,g.parent(),function(){e.trigger({type:"hidden.bs.tab",relatedTarget:a[0]});a.trigger({type:"shown.bs.tab",relatedTarget:e[0]})}))}};f.prototype.activate=function(a,c,e){function k(){m.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1); a.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0);l?(a[0].offsetWidth,a.addClass("in")):a.removeClass("fade");a.parent(".dropdown-menu").length&&a.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0);e&&e()}var m=c.find("> .active"),l=e&&b.support.transition&&(m.length&&m.hasClass("fade")||!!c.find("> .fade").length);m.length&&l?m.one("bsTransitionEnd",k).emulateTransitionEnd(f.TRANSITION_DURATION):k();m.removeClass("in")};var c= b.fn.tab;b.fn.tab=e;b.fn.tab.Constructor=f;b.fn.tab.noConflict=function(){return b.fn.tab=c,this};var a=function(a){a.preventDefault();e.call(b(this),"show")};b(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',a).on("click.bs.tab.data-api",'[data-toggle="pill"]',a)}(jQuery); +function(b){function e(a){return this.each(function(){var d=b(this),c=d.data("bs.affix"),e="object"==typeof a&&a;c||d.data("bs.affix",c=new f(this,e));"string"==typeof a&&c[a]()})}var f=function(a,d){this.options=b.extend({},f.DEFAULTS,d);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()}; f.VERSION="3.3.7";f.RESET="affix affix-top affix-bottom";f.DEFAULTS={offset:0,target:window};f.prototype.getState=function(a,b,c,e){var f=this.$target.scrollTop(),m=this.$element.offset(),l=this.$target.height();if(null!=c&&"top"==this.affixed)return c>f?"top":!1;if("bottom"==this.affixed)return null!=c?f+this.unpin<=m.top?!1:"bottom":a-e>=f+l?!1:"bottom";var n=null==this.affixed,m=n?f:m.top;return null!=c&&c>=f?"top":null!=e&&m+(n?l:b)>=a-e?"bottom":!1};f.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset; this.$element.removeClass(f.RESET).addClass("affix");var a=this.$target.scrollTop();return this.pinnedOffset=this.$element.offset().top-a};f.prototype.checkPositionWithEventLoop=function(){setTimeout(b.proxy(this.checkPosition,this),1)};f.prototype.checkPosition=function(){if(this.$element.is(":visible")){var a=this.$element.height(),d=this.options.offset,c=d.top,e=d.bottom,k=Math.max(b(document).height(),b(document.body).height());"object"!=typeof d&&(e=c=d);"function"==typeof c&&(c=d.top(this.$element)); "function"==typeof e&&(e=d.bottom(this.$element));d=this.getState(k,a,c,e);if(this.affixed!=d){null!=this.unpin&&this.$element.css("top","");var c="affix"+(d?"-"+d:""),m=b.Event(c+".bs.affix");if(this.$element.trigger(m),m.isDefaultPrevented())return;this.affixed=d;this.unpin="bottom"==d?this.getPinnedOffset():null;this.$element.removeClass(f.RESET).addClass(c).trigger(c.replace("affix","affixed")+".bs.affix")}"bottom"==d&&this.$element.offset({top:k-a-e})}};var c=b.fn.affix;b.fn.affix=e;b.fn.affix.Constructor= f;b.fn.affix.noConflict=function(){return b.fn.affix=c,this};b(window).on("load",function(){b('[data-spy="affix"]').each(function(){var a=b(this),d=a.data();d.offset=d.offset||{};null!=d.offsetBottom&&(d.offset.bottom=d.offsetBottom);null!=d.offsetTop&&(d.offset.top=d.offsetTop);e.call(a,d)})})}(jQuery); +function(b){function e(a){var c;a=a.attr("data-target")||(c=a.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"");return b(a)}function f(a){return this.each(function(){var e=b(this),f=e.data("bs.collapse"),k=b.extend({},c.DEFAULTS,e.data(),"object"==typeof a&&a);!f&&k.toggle&&/show|hide/.test(a)&&(k.toggle=!1);f||e.data("bs.collapse",f=new c(this,k));"string"==typeof a&&f[a]()})}var c=function(a,e){this.$element=b(a);this.options=b.extend({},c.DEFAULTS,e);this.$trigger=b('[data-toggle="collapse"][href="#'+ a.id+'"],[data-toggle="collapse"][data-target="#'+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.7";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,e=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing"); if(!(e&&e.length&&(a=e.data("bs.collapse"),a&&a.transitioning))){var g=b.Event("show.bs.collapse");if(this.$element.trigger(g),!g.isDefaultPrevented()){e&&e.length&&(f.call(e,"hide"),a||e.data("bs.collapse",null));var k=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[k](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")[k]("");this.transitioning= 0;this.$element.trigger("shown.bs.collapse")};if(!b.support.transition)return a.call(this);e=b.camelCase(["scroll",k].join("-"));this.$element.one("bsTransitionEnd",b.proxy(a,this)).emulateTransitionEnd(c.TRANSITION_DURATION)[k](this.$element[0][e])}}}};c.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var a=b.Event("hide.bs.collapse");if(this.$element.trigger(a),!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 e=function(){this.transitioning=0;this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return b.support.transition?void this.$element[a](0).one("bsTransitionEnd",b.proxy(e,this)).emulateTransitionEnd(c.TRANSITION_DURATION):e.call(this)}}};c.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};c.prototype.getParent=function(){return b(this.options.parent).find('[data-toggle="collapse"][data-parent="'+ this.options.parent+'"]').each(b.proxy(function(a,c){var f=b(c);this.addAriaAndCollapsedClass(e(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=f;b.fn.collapse.Constructor=c;b.fn.collapse.noConflict=function(){return b.fn.collapse=a,this};b(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(a){var c=b(this);c.attr("data-target")|| a.preventDefault();a=e(c);c=a.data("bs.collapse")?"toggle":c.data();f.call(a,c)})}(jQuery); +function(b){function e(a,c){this.$body=b(document.body);this.$scrollElement=b(b(a).is(document.body)?window:a);this.options=b.extend({},e.DEFAULTS,c);this.selector=(this.options.target||"")+" .nav li > 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 f(a){return this.each(function(){var c=b(this),f=c.data("bs.scrollspy"),g="object"==typeof a&&a;f||c.data("bs.scrollspy", f=new e(this,g));"string"==typeof a&&f[a]()})}e.VERSION="3.3.7";e.DEFAULTS={offset:10};e.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)};e.prototype.refresh=function(){var a=this,c="offset",e=0;this.offsets=[];this.targets=[];this.scrollHeight=this.getScrollHeight();b.isWindow(this.$scrollElement[0])||(c="position",e=this.$scrollElement.scrollTop());this.$body.find(this.selector).map(function(){var a= b(this),a=a.data("target")||a.attr("href"),f=/^#./.test(a)&&b(a);return f&&f.length&&f.is(":visible")&&[[f[c]().top+e,a]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){a.offsets.push(this[0]);a.targets.push(this[1])})};e.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.getScrollHeight(),e=this.options.offset+c-this.$scrollElement.height(),f=this.offsets,m=this.targets,l=this.activeTarget;if(this.scrollHeight!=c&&this.refresh(),b>=e)return l!= (a=m[m.length-1])&&this.activate(a);if(l&&b=f[a]&&(void 0===f[a+1]||b