/*!
 * Bootstrap v3.3.5 (http://getbootstrap.com)
 * Copyright 2011-2015 Twitter, Inc.
 * Licensed under the MIT license
 */
;if(typeof jQuery==='undefined'){throw new Error('Bootstrap\'s JavaScript requires jQuery')};+function(t){'use strict';var e=t.fn.jquery.split(' ')[0].split('.');if((e[0]<2&&e[1]<9)||(e[0]==1&&e[1]==9&&e[2]<1)){throw new Error('Bootstrap\'s JavaScript requires jQuery version 1.9.1 or higher')}}(jQuery);+function(t){'use strict';function e(){var i=document.createElement('bootstrap'),e={WebkitTransition:'webkitTransitionEnd',MozTransition:'transitionend',OTransition:'oTransitionEnd otransitionend',transition:'transitionend'};for(var t in e){if(i.style[t]!==undefined){return{end:e[t]}}};return!1};t.fn.emulateTransitionEnd=function(e){var i=!1,n=this;t(this).one('bsTransitionEnd',function(){i=!0});var o=function(){if(!i)t(n).trigger(t.support.transition.end)};setTimeout(o,e);return this};t(function(){t.support.transition=e();if(!t.support.transition)return;t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}}})}(jQuery);+function(t){'use strict';var i='[data-dismiss="alert"]',e=function(e){t(e).on('click',i,this.close)};e.VERSION='3.3.5';e.TRANSITION_DURATION=150;e.prototype.close=function(i){var s=t(this),n=s.attr('data-target');if(!n){n=s.attr('href');n=n&&n.replace(/.*(?=#[^\s]*$)/,'')};var o=t(n);if(i)i.preventDefault();if(!o.length){o=s.closest('.alert')};o.trigger(i=t.Event('close.bs.alert'));if(i.isDefaultPrevented())return;o.removeClass('in');function r(){o.detach().trigger('closed.bs.alert').remove()};t.support.transition&&o.hasClass('fade')?o.one('bsTransitionEnd',r).emulateTransitionEnd(e.TRANSITION_DURATION):r()};function n(i){return this.each(function(){var o=t(this),n=o.data('bs.alert');if(!n)o.data('bs.alert',(n=new e(this)));if(typeof i=='string')n[i].call(o)})};var o=t.fn.alert;t.fn.alert=n;t.fn.alert.Constructor=e;t.fn.alert.noConflict=function(){t.fn.alert=o;return this};t(document).on('click.bs.alert.data-api',i,e.prototype.close)}(jQuery);+function(t){'use strict';var e=function(i,o){this.$element=t(i);this.options=t.extend({},e.DEFAULTS,o);this.isLoading=!1};e.VERSION='3.3.5';e.DEFAULTS={loadingText:'loading...'};e.prototype.setState=function(e){var o='disabled',i=this.$element,s=i.is('input')?'val':'html',n=i.data();e+='Text';if(n.resetText==null)i.data('resetText',i[s]());setTimeout(t.proxy(function(){i[s](n[e]==null?this.options[e]:n[e]);if(e=='loadingText'){this.isLoading=!0;i.addClass(o).attr(o,o)}
else if(this.isLoading){this.isLoading=!1;i.removeClass(o).removeAttr(o)}},this),0)};e.prototype.toggle=function(){var e=!0,i=this.$element.closest('[data-toggle="buttons"]');if(i.length){var t=this.$element.find('input');if(t.prop('type')=='radio'){if(t.prop('checked'))e=!1;i.find('.active').removeClass('active');this.$element.addClass('active')}
else if(t.prop('type')=='checkbox'){if((t.prop('checked'))!==this.$element.hasClass('active'))e=!1;this.$element.toggleClass('active')};t.prop('checked',this.$element.hasClass('active'));if(e)t.trigger('change')}
else{this.$element.attr('aria-pressed',!this.$element.hasClass('active'));this.$element.toggleClass('active')}};function i(i){return this.each(function(){var n=t(this),o=n.data('bs.button'),s=typeof i=='object'&&i;if(!o)n.data('bs.button',(o=new e(this,s)));if(i=='toggle')o.toggle();else if(i)o.setState(i)})};var o=t.fn.button;t.fn.button=i;t.fn.button.Constructor=e;t.fn.button.noConflict=function(){t.fn.button=o;return this};t(document).on('click.bs.button.data-api','[data-toggle^="button"]',function(e){var o=t(e.target);if(!o.hasClass('btn'))o=o.closest('.btn');i.call(o,'toggle');if(!(t(e.target).is('input[type="radio"]')||t(e.target).is('input[type="checkbox"]')))e.preventDefault()}).on('focus.bs.button.data-api blur.bs.button.data-api','[data-toggle^="button"]',function(e){t(e.target).closest('.btn').toggleClass('focus',/^focus(in)?$/.test(e.type))})}(jQuery);+function(t){'use strict';var e=function(e,i){this.$element=t(e);this.$indicators=this.$element.find('.carousel-indicators');this.options=i;this.paused=null;this.sliding=null;this.interval=null;this.$active=null;this.$items=null;this.options.keyboard&&this.$element.on('keydown.bs.carousel',t.proxy(this.keydown,this));this.options.pause=='hover'&&!('ontouchstart' in document.documentElement)&&this.$element.on('mouseenter.bs.carousel',t.proxy(this.pause,this)).on('mouseleave.bs.carousel',t.proxy(this.cycle,this))};e.VERSION='3.3.5';e.TRANSITION_DURATION=600;e.DEFAULTS={interval:5000,pause:'hover',wrap:!0,keyboard:!0};e.prototype.keydown=function(t){if(/input|textarea/i.test(t.target.tagName))return;switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return};t.preventDefault()};e.prototype.cycle=function(e){e||(this.paused=!1);this.interval&&clearInterval(this.interval);this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval));return this};e.prototype.getItemIndex=function(t){this.$items=t.parent().children('.item');return this.$items.index(t||this.$active)};e.prototype.getItemForDirection=function(t,e){var i=this.getItemIndex(e),s=(t=='prev'&&i===0)||(t=='next'&&i==(this.$items.length-1));if(s&&!this.options.wrap)return e;var o=t=='prev'?-1:1,n=(i+o)%this.$items.length;return this.$items.eq(n)};e.prototype.to=function(t){var i=this,e=this.getItemIndex(this.$active=this.$element.find('.item.active'));if(t>(this.$items.length-1)||t<0)return;if(this.sliding)return this.$element.one('slid.bs.carousel',function(){i.to(t)});if(e==t)return this.pause().cycle();return this.slide(t>e?'next':'prev',this.$items.eq(t))};e.prototype.pause=function(e){e||(this.paused=!0);if(this.$element.find('.next, .prev').length&&t.support.transition){this.$element.trigger(t.support.transition.end);this.cycle(!0)};this.interval=clearInterval(this.interval);return this};e.prototype.next=function(){if(this.sliding)return;return this.slide('next')};e.prototype.prev=function(){if(this.sliding)return;return this.slide('prev')};e.prototype.slide=function(i,o){var r=this.$element.find('.item.active'),n=o||this.getItemForDirection(i,r),f=this.interval,s=i=='next'?'left':'right',p=this;if(n.hasClass('active'))return(this.sliding=!1);var h=n[0],d=t.Event('slide.bs.carousel',{relatedTarget:h,direction:s});this.$element.trigger(d);if(d.isDefaultPrevented())return;this.sliding=!0;f&&this.pause();if(this.$indicators.length){this.$indicators.find('.active').removeClass('active');var l=t(this.$indicators.children()[this.getItemIndex(n)]);l&&l.addClass('active')};var a=t.Event('slid.bs.carousel',{relatedTarget:h,direction:s});if(t.support.transition&&this.$element.hasClass('slide')){n.addClass(i);n[0].offsetWidth;r.addClass(s);n.addClass(s);r.one('bsTransitionEnd',function(){n.removeClass([i,s].join(' ')).addClass('active');r.removeClass(['active',s].join(' '));p.sliding=!1;setTimeout(function(){p.$element.trigger(a)},0)}).emulateTransitionEnd(e.TRANSITION_DURATION)}
else{r.removeClass('active');n.addClass('active');this.sliding=!1;this.$element.trigger(a)};f&&this.cycle();return this};function i(i){return this.each(function(){var n=t(this),o=n.data('bs.carousel'),s=t.extend({},e.DEFAULTS,n.data(),typeof i=='object'&&i);var r=typeof i=='string'?i:s.slide;if(!o)n.data('bs.carousel',(o=new e(this,s)));if(typeof i=='number')o.to(i);else if(r)o[r]();else if(s.interval)o.pause().cycle()})};var n=t.fn.carousel;t.fn.carousel=i;t.fn.carousel.Constructor=e;t.fn.carousel.noConflict=function(){t.fn.carousel=n;return this};var o=function(e){var a,o=t(this),n=t(o.attr('data-target')||(a=o.attr('href'))&&a.replace(/.*(?=#[^\s]+$)/,''));if(!n.hasClass('carousel'))return;var r=t.extend({},n.data(),o.data());var s=o.attr('data-slide-to');if(s)r.interval=!1;i.call(n,r);if(s){n.data('bs.carousel').to(s)};e.preventDefault()};t(document).on('click.bs.carousel.data-api','[data-slide]',o).on('click.bs.carousel.data-api','[data-slide-to]',o);t(window).on('load',function(){t('[data-ride="carousel"]').each(function(){var e=t(this);i.call(e,e.data())})})}(jQuery);+function(t){'use strict';var e=function(i,o){this.$element=t(i);this.options=t.extend({},e.DEFAULTS,o);this.$trigger=t('[data-toggle="collapse"][href="#'+i.id+'"],[data-toggle="collapse"][data-target="#'+i.id+'"]');this.transitioning=null;if(this.options.parent){this.$parent=this.getParent()}
else{this.addAriaAndCollapsedClass(this.$element,this.$trigger)};if(this.options.toggle)this.toggle()};e.VERSION='3.3.5';e.TRANSITION_DURATION=350;e.DEFAULTS={toggle:!0};e.prototype.dimension=function(){var t=this.$element.hasClass('width');return t?'width':'height'};e.prototype.show=function(){if(this.transitioning||this.$element.hasClass('in'))return;var s,o=this.$parent&&this.$parent.children('.panel').children('.in, .collapsing');if(o&&o.length){s=o.data('bs.collapse');if(s&&s.transitioning)return};var a=t.Event('show.bs.collapse');this.$element.trigger(a);if(a.isDefaultPrevented())return;if(o&&o.length){i.call(o,'hide');s||o.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;var r=function(){this.$element.removeClass('collapsing').addClass('collapse in')[n]('');this.transitioning=0;this.$element.trigger('shown.bs.collapse')};if(!t.support.transition)return r.call(this);var l=t.camelCase(['scroll',n].join('-'));this.$element.one('bsTransitionEnd',t.proxy(r,this)).emulateTransitionEnd(e.TRANSITION_DURATION)[n](this.$element[0][l])};e.prototype.hide=function(){if(this.transitioning||!this.$element.hasClass('in'))return;var n=t.Event('hide.bs.collapse');this.$element.trigger(n);if(n.isDefaultPrevented())return;var i=this.dimension();this.$element[i](this.$element[i]())[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 o=function(){this.transitioning=0;this.$element.removeClass('collapsing').addClass('collapse').trigger('hidden.bs.collapse')};if(!t.support.transition)return o.call(this);this.$element[i](0).one('bsTransitionEnd',t.proxy(o,this)).emulateTransitionEnd(e.TRANSITION_DURATION)};e.prototype.toggle=function(){this[this.$element.hasClass('in')?'hide':'show']()};e.prototype.getParent=function(){return t(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy(function(e,i){var n=t(i);this.addAriaAndCollapsedClass(o(n),n)},this)).end()};e.prototype.addAriaAndCollapsedClass=function(t,e){var i=t.hasClass('in');t.attr('aria-expanded',i);e.toggleClass('collapsed',!i).attr('aria-expanded',i)};function o(e){var i,o=e.attr('data-target')||(i=e.attr('href'))&&i.replace(/.*(?=#[^\s]+$)/,'');return t(o)};function i(i){return this.each(function(){var n=t(this),o=n.data('bs.collapse'),s=t.extend({},e.DEFAULTS,n.data(),typeof i=='object'&&i);if(!o&&s.toggle&&/show|hide/.test(i))s.toggle=!1;if(!o)n.data('bs.collapse',(o=new e(this,s)));if(typeof i=='string')o[i]()})};var n=t.fn.collapse;t.fn.collapse=i;t.fn.collapse.Constructor=e;t.fn.collapse.noConflict=function(){t.fn.collapse=n;return this};t(document).on('click.bs.collapse.data-api','[data-toggle="collapse"]',function(e){var n=t(this);if(!n.attr('data-target'))e.preventDefault();var s=o(n),r=s.data('bs.collapse'),a=r?'toggle':n.data();i.call(s,a)})}(jQuery);+function(t){'use strict';var r='.dropdown-backdrop',i='[data-toggle="dropdown"]',e=function(e){t(e).on('click.bs.dropdown',this.toggle)};e.VERSION='3.3.5';function o(e){var i=e.attr('data-target');if(!i){i=e.attr('href');i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,'')};var o=i&&t(i);return o&&o.length?o:e.parent()};function n(e){if(e&&e.which===3)return;t(r).remove();t(i).each(function(){var n=t(this),i=o(n),s={relatedTarget:this};if(!i.hasClass('open'))return;if(e&&e.type=='click'&&/input|textarea/i.test(e.target.tagName)&&t.contains(i[0],e.target))return;i.trigger(e=t.Event('hide.bs.dropdown',s));if(e.isDefaultPrevented())return;n.attr('aria-expanded','false');i.removeClass('open').trigger('hidden.bs.dropdown',s)})};e.prototype.toggle=function(e){var s=t(this);if(s.is('.disabled, :disabled'))return;var i=o(s),a=i.hasClass('open');n();if(!a){if('ontouchstart' in document.documentElement&&!i.closest('.navbar-nav').length){t(document.createElement('div')).addClass('dropdown-backdrop').insertAfter(t(this)).on('click',n)};var r={relatedTarget:this};i.trigger(e=t.Event('show.bs.dropdown',r));if(e.isDefaultPrevented())return;s.trigger('focus').attr('aria-expanded','true');i.toggleClass('open').trigger('shown.bs.dropdown',r)};return!1};e.prototype.keydown=function(e){if(!/(38|40|27|32)/.test(e.which)||/input|textarea/i.test(e.target.tagName))return;var a=t(this);e.preventDefault();e.stopPropagation();if(a.is('.disabled, :disabled'))return;var r=o(a),l=r.hasClass('open');if(!l&&e.which!=27||l&&e.which==27){if(e.which==27)r.find(i).trigger('focus');return a.trigger('click')};var h=' li:not(.disabled):visible a',s=r.find('.dropdown-menu'+h);if(!s.length)return;var n=s.index(e.target);if(e.which==38&&n>0)n--;if(e.which==40&&n<s.length-1)n++;if(!~n)n=0;s.eq(n).trigger('focus')};function a(i){return this.each(function(){var o=t(this),n=o.data('bs.dropdown');if(!n)o.data('bs.dropdown',(n=new e(this)));if(typeof i=='string')n[i].call(o)})};var s=t.fn.dropdown;t.fn.dropdown=a;t.fn.dropdown.Constructor=e;t.fn.dropdown.noConflict=function(){t.fn.dropdown=s;return this};t(document).on('click.bs.dropdown.data-api',n).on('click.bs.dropdown.data-api','.dropdown form',function(t){t.stopPropagation()}).on('click.bs.dropdown.data-api',i,e.prototype.toggle).on('keydown.bs.dropdown.data-api',i,e.prototype.keydown).on('keydown.bs.dropdown.data-api','.dropdown-menu',e.prototype.keydown)}(jQuery);+function(t){'use strict';var e=function(e,i){this.options=i;this.$body=t(document.body);this.$element=t(e);this.$dialog=this.$element.find('.modal-dialog');this.$backdrop=null;this.isShown=null;this.originalBodyPad=null;this.scrollbarWidth=0;this.ignoreBackdropClick=!1;if(this.options.remote){this.$element.find('.modal-content').load(this.options.remote,t.proxy(function(){this.$element.trigger('loaded.bs.modal')},this))}};e.VERSION='3.3.5';e.TRANSITION_DURATION=300;e.BACKDROP_TRANSITION_DURATION=150;e.DEFAULTS={backdrop:!0,keyboard:!0,show:!0};e.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)};e.prototype.show=function(i){var o=this,n=t.Event('show.bs.modal',{relatedTarget:i});this.$element.trigger(n);if(this.isShown||n.isDefaultPrevented())return;this.isShown=!0;this.checkScrollbar();this.setScrollbar();this.$body.addClass('modal-open');this.escape();this.resize();this.$element.on('click.dismiss.bs.modal','[data-dismiss="modal"]',t.proxy(this.hide,this));this.$dialog.on('mousedown.dismiss.bs.modal',function(){o.$element.one('mouseup.dismiss.bs.modal',function(e){if(t(e.target).is(o.$element))o.ignoreBackdropClick=!0})});this.backdrop(function(){var s=t.support.transition&&o.$element.hasClass('fade');if(!o.$element.parent().length){o.$element.appendTo(o.$body)};o.$element.show().scrollTop(0);o.adjustDialog();if(s){o.$element[0].offsetWidth};o.$element.addClass('in');o.enforceFocus();var n=t.Event('shown.bs.modal',{relatedTarget:i});s?o.$dialog.one('bsTransitionEnd',function(){o.$element.trigger('focus').trigger(n)}).emulateTransitionEnd(e.TRANSITION_DURATION):o.$element.trigger('focus').trigger(n)})};e.prototype.hide=function(i){if(i)i.preventDefault();i=t.Event('hide.bs.modal');this.$element.trigger(i);if(!this.isShown||i.isDefaultPrevented())return;this.isShown=!1;this.escape();this.resize();t(document).off('focusin.bs.modal');this.$element.removeClass('in').off('click.dismiss.bs.modal').off('mouseup.dismiss.bs.modal');this.$dialog.off('mousedown.dismiss.bs.modal');t.support.transition&&this.$element.hasClass('fade')?this.$element.one('bsTransitionEnd',t.proxy(this.hideModal,this)).emulateTransitionEnd(e.TRANSITION_DURATION):this.hideModal()};e.prototype.enforceFocus=function(){t(document).off('focusin.bs.modal').on('focusin.bs.modal',t.proxy(function(t){if(this.$element[0]!==t.target&&!this.$element.has(t.target).length){this.$element.trigger('focus')}},this))};e.prototype.escape=function(){if(this.isShown&&this.options.keyboard){this.$element.on('keydown.dismiss.bs.modal',t.proxy(function(t){t.which==27&&this.hide()},this))}
else if(!this.isShown){this.$element.off('keydown.dismiss.bs.modal')}};e.prototype.resize=function(){if(this.isShown){t(window).on('resize.bs.modal',t.proxy(this.handleUpdate,this))}
else{t(window).off('resize.bs.modal')}};e.prototype.hideModal=function(){var t=this;this.$element.hide();this.backdrop(function(){t.$body.removeClass('modal-open');t.resetAdjustments();t.resetScrollbar();t.$element.trigger('hidden.bs.modal')})};e.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove();this.$backdrop=null};e.prototype.backdrop=function(i){var r=this,s=this.$element.hasClass('fade')?'fade':'';if(this.isShown&&this.options.backdrop){var n=t.support.transition&&s;this.$backdrop=t(document.createElement('div')).addClass('modal-backdrop '+s).appendTo(this.$body);this.$element.on('click.dismiss.bs.modal',t.proxy(function(t){if(this.ignoreBackdropClick){this.ignoreBackdropClick=!1;return};if(t.target!==t.currentTarget)return;this.options.backdrop=='static'?this.$element[0].focus():this.hide()},this));if(n)this.$backdrop[0].offsetWidth;this.$backdrop.addClass('in');if(!i)return;n?this.$backdrop.one('bsTransitionEnd',i).emulateTransitionEnd(e.BACKDROP_TRANSITION_DURATION):i()}
else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass('in');var o=function(){r.removeBackdrop();i&&i()};t.support.transition&&this.$element.hasClass('fade')?this.$backdrop.one('bsTransitionEnd',o).emulateTransitionEnd(e.BACKDROP_TRANSITION_DURATION):o()}
else if(i){i()}};e.prototype.handleUpdate=function(){this.adjustDialog()};e.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:'',paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:''})};e.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:'',paddingRight:''})};e.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)};this.bodyIsOverflowing=document.body.clientWidth<t;this.scrollbarWidth=this.measureScrollbar()};e.prototype.setScrollbar=function(){var t=parseInt((this.$body.css('padding-right')||0),10);this.originalBodyPad=document.body.style.paddingRight||'';if(this.bodyIsOverflowing)this.$body.css('padding-right',t+this.scrollbarWidth)};e.prototype.resetScrollbar=function(){this.$body.css('padding-right',this.originalBodyPad)};e.prototype.measureScrollbar=function(){var t=document.createElement('div');t.className='modal-scrollbar-measure';this.$body.append(t);var e=t.offsetWidth-t.clientWidth;this.$body[0].removeChild(t);return e};function i(i,o){return this.each(function(){var s=t(this),n=s.data('bs.modal'),r=t.extend({},e.DEFAULTS,s.data(),typeof i=='object'&&i);if(!n)s.data('bs.modal',(n=new e(this,r)));if(typeof i=='string')n[i](o);else if(r.show)n.show(o)})};var o=t.fn.modal;t.fn.modal=i;t.fn.modal.Constructor=e;t.fn.modal.noConflict=function(){t.fn.modal=o;return this};t(document).on('click.bs.modal.data-api','[data-toggle="modal"]',function(e){var o=t(this),s=o.attr('href'),n=t(o.attr('data-target')||(s&&s.replace(/.*(?=#[^\s]+$)/,''))),r=n.data('bs.modal')?'toggle':t.extend({remote:!/#/.test(s)&&s},n.data(),o.data());if(o.is('a'))e.preventDefault();n.one('show.bs.modal',function(t){if(t.isDefaultPrevented())return n.one('hidden.bs.modal',function(){o.is(':visible')&&o.trigger('focus')})});i.call(n,r,this)})}(jQuery);+function(t){'use strict';var e=function(t,e){this.type=null;this.options=null;this.enabled=null;this.timeout=null;this.hoverState=null;this.$element=null;this.inState=null;this.init('tooltip',t,e)};e.VERSION='3.3.5';e.TRANSITION_DURATION=150;e.DEFAULTS={animation:!0,placement:'top',selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:'hover focus',title:'',delay:0,html:!1,container:!1,viewport:{selector:'body',padding:0}};e.prototype.init=function(e,i,o){this.enabled=!0;this.type=e;this.$element=t(i);this.options=this.getOptions(o);this.$viewport=this.options.viewport&&t(t.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};if(this.$element[0]instanceof document.constructor&&!this.options.selector){throw new Error('`selector` option must be specified when initializing '+this.type+' on the window.document object!')};var r=this.options.trigger.split(' ');for(var s=r.length;s--;){var n=r[s];if(n=='click'){this.$element.on('click.'+this.type,this.options.selector,t.proxy(this.toggle,this))}
else if(n!='manual'){var a=n=='hover'?'mouseenter':'focusin',l=n=='hover'?'mouseleave':'focusout';this.$element.on(a+'.'+this.type,this.options.selector,t.proxy(this.enter,this));this.$element.on(l+'.'+this.type,this.options.selector,t.proxy(this.leave,this))}};this.options.selector?(this._options=t.extend({},this.options,{trigger:'manual',selector:''})):this.fixTitle()};e.prototype.getDefaults=function(){return e.DEFAULTS};e.prototype.getOptions=function(e){e=t.extend({},this.getDefaults(),this.$element.data(),e);if(e.delay&&typeof e.delay=='number'){e.delay={show:e.delay,hide:e.delay}};return e};e.prototype.getDelegateOptions=function(){var e={};var i=this.getDefaults();this._options&&t.each(this._options,function(t,o){if(i[t]!=o)e[t]=o});return e};e.prototype.enter=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data('bs.'+this.type);if(!i){i=new this.constructor(e.currentTarget,this.getDelegateOptions());t(e.currentTarget).data('bs.'+this.type,i)};if(e instanceof t.Event){i.inState[e.type=='focusin'?'focus':'hover']=!0};if(i.tip().hasClass('in')||i.hoverState=='in'){i.hoverState='in';return};clearTimeout(i.timeout);i.hoverState='in';if(!i.options.delay||!i.options.delay.show)return i.show();i.timeout=setTimeout(function(){if(i.hoverState=='in')i.show()},i.options.delay.show)};e.prototype.isInStateTrue=function(){for(var t in this.inState){if(this.inState[t])return!0};return!1};e.prototype.leave=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data('bs.'+this.type);if(!i){i=new this.constructor(e.currentTarget,this.getDelegateOptions());t(e.currentTarget).data('bs.'+this.type,i)};if(e instanceof t.Event){i.inState[e.type=='focusout'?'focus':'hover']=!1};if(i.isInStateTrue())return;clearTimeout(i.timeout);i.hoverState='out';if(!i.options.delay||!i.options.delay.hide)return i.hide();i.timeout=setTimeout(function(){if(i.hoverState=='out')i.hide()},i.options.delay.hide)};e.prototype.show=function(){var c=t.Event('show.bs.'+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(c);var m=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(c.isDefaultPrevented()||!m)return;var n=this,o=this.tip(),p=this.getUID(this.type);this.setContent();o.attr('id',p);this.$element.attr('aria-describedby',p);if(this.options.animation)o.addClass('fade');var i=typeof this.options.placement=='function'?this.options.placement.call(this,o[0],this.$element[0]):this.options.placement,d=/\s?auto?\s?/i,f=d.test(i);if(f)i=i.replace(d,'')||'top';o.detach().css({top:0,left:0,display:'block'}).addClass(i).data('bs.'+this.type,this);this.options.container?o.appendTo(this.options.container):o.insertAfter(this.$element);this.$element.trigger('inserted.bs.'+this.type);var s=this.getPosition(),a=o[0].offsetWidth,l=o[0].offsetHeight;if(f){var g=i,r=this.getPosition(this.$viewport);i=i=='bottom'&&s.bottom+l>r.bottom?'top':i=='top'&&s.top-l<r.top?'bottom':i=='right'&&s.right+a>r.width?'left':i=='left'&&s.left-a<r.left?'right':i;o.removeClass(g).addClass(i)};var u=this.getCalculatedOffset(i,s,a,l);this.applyPlacement(u,i);var h=function(){var t=n.hoverState;n.$element.trigger('shown.bs.'+n.type);n.hoverState=null;if(t=='out')n.leave(n)};t.support.transition&&this.$tip.hasClass('fade')?o.one('bsTransitionEnd',h).emulateTransitionEnd(e.TRANSITION_DURATION):h()}};e.prototype.applyPlacement=function(e,i){var o=this.tip(),c=o[0].offsetWidth,a=o[0].offsetHeight,l=parseInt(o.css('margin-top'),10),h=parseInt(o.css('margin-left'),10);if(isNaN(l))l=0;if(isNaN(h))h=0;e.top+=l;e.left+=h;t.offset.setOffset(o[0],t.extend({using:function(t){o.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0);o.addClass('in');var d=o[0].offsetWidth,s=o[0].offsetHeight;if(i=='top'&&s!=a){e.top=e.top+a-s};var n=this.getViewportAdjustedDelta(i,e,d,s);if(n.left)e.left+=n.left;else e.top+=n.top;var r=/top|bottom/.test(i),f=r?n.left*2-c+d:n.top*2-a+s,p=r?'offsetWidth':'offsetHeight';o.offset(e);this.replaceArrow(f,o[0][p],r)};e.prototype.replaceArrow=function(t,e,i){this.arrow().css(i?'left':'top',50*(1-t/e)+'%').css(i?'top':'left','')};e.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find('.tooltip-inner')[this.options.html?'html':'text'](e);t.removeClass('fade in top bottom left right')};e.prototype.hide=function(i){var n=this,o=t(this.$tip),s=t.Event('hide.bs.'+this.type);function r(){if(n.hoverState!='in')o.detach();n.$element.removeAttr('aria-describedby').trigger('hidden.bs.'+n.type);i&&i()};this.$element.trigger(s);if(s.isDefaultPrevented())return;o.removeClass('in');t.support.transition&&o.hasClass('fade')?o.one('bsTransitionEnd',r).emulateTransitionEnd(e.TRANSITION_DURATION):r();this.hoverState=null;return this};e.prototype.fixTitle=function(){var t=this.$element;if(t.attr('title')||typeof t.attr('data-original-title')!='string'){t.attr('data-original-title',t.attr('title')||'').attr('title','')}};e.prototype.hasContent=function(){return this.getTitle()};e.prototype.getPosition=function(e){e=e||this.$element;var n=e[0],o=n.tagName=='BODY',i=n.getBoundingClientRect();if(i.width==null){i=t.extend({},i,{width:i.right-i.left,height:i.bottom-i.top})};var a=o?{top:0,left:0}:e.offset();var r={scroll:o?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()};var s=o?{width:t(window).width(),height:t(window).height()}:null;return t.extend({},i,r,s,a)};e.prototype.getCalculatedOffset=function(t,e,i,o){return t=='bottom'?{top:e.top+e.height,left:e.left+e.width/2-i/2}:t=='top'?{top:e.top-o,left:e.left+e.width/2-i/2}:t=='left'?{top:e.top+e.height/2-o/2,left:e.left-i}:{top:e.top+e.height/2-o/2,left:e.left+e.width}};e.prototype.getViewportAdjustedDelta=function(t,e,o,r){var n={top:0,left:0};if(!this.$viewport)return n;var s=this.options.viewport&&this.options.viewport.padding||0,i=this.getPosition(this.$viewport);if(/right|left/.test(t)){var h=e.top-s-i.scroll,d=e.top+s-i.scroll+r;if(h<i.top){n.top=i.top-h}
else if(d>i.top+i.height){n.top=i.top+i.height-d}}
else{var a=e.left-s,l=e.left+s+o;if(a<i.left){n.left=i.left-a}
else if(l>i.right){n.left=i.left+i.width-l}};return n};e.prototype.getTitle=function(){var e,i=this.$element,t=this.options;e=i.attr('data-original-title')||(typeof t.title=='function'?t.title.call(i[0]):t.title);return e};e.prototype.getUID=function(t){do t+=~~(Math.random()*1000000);while(document.getElementById(t))return t};e.prototype.tip=function(){if(!this.$tip){this.$tip=t(this.options.template);if(this.$tip.length!=1){throw new 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(e){var i=this;if(e){i=t(e.currentTarget).data('bs.'+this.type);if(!i){i=new this.constructor(e.currentTarget,this.getDelegateOptions());t(e.currentTarget).data('bs.'+this.type,i)}};if(e){i.inState.click=!i.inState.click;if(i.isInStateTrue())i.enter(i);else i.leave(i)}
else{i.tip().hasClass('in')?i.leave(i):i.enter(i)}};e.prototype.destroy=function(){var t=this;clearTimeout(this.timeout);this.hide(function(){t.$element.off('.'+t.type).removeData('bs.'+t.type);if(t.$tip){t.$tip.detach()};t.$tip=null;t.$arrow=null;t.$viewport=null})};function o(i){return this.each(function(){var n=t(this),o=n.data('bs.tooltip'),s=typeof i=='object'&&i;if(!o&&/destroy|hide/.test(i))return;if(!o)n.data('bs.tooltip',(o=new e(this,s)));if(typeof i=='string')o[i]()})};var i=t.fn.tooltip;t.fn.tooltip=o;t.fn.tooltip.Constructor=e;t.fn.tooltip.noConflict=function(){t.fn.tooltip=i;return this}}(jQuery);+function(t){'use strict';var e=function(t,e){this.init('popover',t,e)};if(!t.fn.tooltip)throw new Error('Popover requires tooltip.js');e.VERSION='3.3.5';e.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:'right',trigger:'click',content:'',template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'});e.prototype=t.extend({},t.fn.tooltip.Constructor.prototype);e.prototype.constructor=e;e.prototype.getDefaults=function(){return e.DEFAULTS};e.prototype.setContent=function(){var t=this.tip(),i=this.getTitle(),e=this.getContent();t.find('.popover-title')[this.options.html?'html':'text'](i);t.find('.popover-content').children().detach().end()[this.options.html?(typeof e=='string'?'html':'append'):'text'](e);t.removeClass('fade top bottom left right in');if(!t.find('.popover-title').html())t.find('.popover-title').hide()};e.prototype.hasContent=function(){return this.getTitle()||this.getContent()};e.prototype.getContent=function(){var e=this.$element,t=this.options;return e.attr('data-content')||(typeof t.content=='function'?t.content.call(e[0]):t.content)};e.prototype.arrow=function(){return(this.$arrow=this.$arrow||this.tip().find('.arrow'))};function o(i){return this.each(function(){var n=t(this),o=n.data('bs.popover'),s=typeof i=='object'&&i;if(!o&&/destroy|hide/.test(i))return;if(!o)n.data('bs.popover',(o=new e(this,s)));if(typeof i=='string')o[i]()})};var i=t.fn.popover;t.fn.popover=o;t.fn.popover.Constructor=e;t.fn.popover.noConflict=function(){t.fn.popover=i;return this}}(jQuery);+function(t){'use strict';function e(i,o){this.$body=t(document.body);this.$scrollElement=t(i).is(document.body)?t(window):t(i);this.options=t.extend({},e.DEFAULTS,o);this.selector=(this.options.target||'')+' .nav li > a';this.offsets=[];this.targets=[];this.activeTarget=null;this.scrollHeight=0;this.$scrollElement.on('scroll.bs.scrollspy',t.proxy(this.process,this));this.refresh();this.process()};e.VERSION='3.3.5';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 e=this,i='offset',o=0;this.offsets=[];this.targets=[];this.scrollHeight=this.getScrollHeight();if(!t.isWindow(this.$scrollElement[0])){i='position';o=this.$scrollElement.scrollTop()};this.$body.find(this.selector).map(function(){var s=t(this),n=s.data('target')||s.attr('href'),e=/^#./.test(n)&&t(n);return(e&&e.length&&e.is(':visible')&&[[e[i]().top+o,n]])||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){e.offsets.push(this[0]);e.targets.push(this[1])})};e.prototype.process=function(){var i=this.$scrollElement.scrollTop()+this.options.offset,s=this.getScrollHeight(),r=this.options.offset+s-this.$scrollElement.height(),e=this.offsets,o=this.targets,n=this.activeTarget,t;if(this.scrollHeight!=s){this.refresh()};if(i>=r){return n!=(t=o[o.length-1])&&this.activate(t)};if(n&&i<e[0]){this.activeTarget=null;return this.clear()};for(t=e.length;t--;){n!=o[t]&&i>=e[t]&&(e[t+1]===undefined||i<e[t+1])&&this.activate(o[t])}};e.prototype.activate=function(e){this.activeTarget=e;this.clear();var o=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',i=t(o).parents('li').addClass('active');if(i.parent('.dropdown-menu').length){i=i.closest('li.dropdown').addClass('active')};i.trigger('activate.bs.scrollspy')};e.prototype.clear=function(){t(this.selector).parentsUntil(this.options.target,'.active').removeClass('active')};function i(i){return this.each(function(){var n=t(this),o=n.data('bs.scrollspy'),s=typeof i=='object'&&i;if(!o)n.data('bs.scrollspy',(o=new e(this,s)));if(typeof i=='string')o[i]()})};var o=t.fn.scrollspy;t.fn.scrollspy=i;t.fn.scrollspy.Constructor=e;t.fn.scrollspy.noConflict=function(){t.fn.scrollspy=o;return this};t(window).on('load.bs.scrollspy.data-api',function(){t('[data-spy="scroll"]').each(function(){var e=t(this);i.call(e,e.data())})})}(jQuery);+function(t){'use strict';var e=function(e){this.element=t(e)};e.VERSION='3.3.5';e.TRANSITION_DURATION=150;e.prototype.show=function(){var e=this.element,a=e.closest('ul:not(.dropdown-menu)'),i=e.data('target');if(!i){i=e.attr('href');i=i&&i.replace(/.*(?=#[^\s]*$)/,'')};if(e.parent('li').hasClass('active'))return;var o=a.find('.active:last a'),r=t.Event('hide.bs.tab',{relatedTarget:e[0]});var s=t.Event('show.bs.tab',{relatedTarget:o[0]});o.trigger(r);e.trigger(s);if(s.isDefaultPrevented()||r.isDefaultPrevented())return;var n=t(i);this.activate(e.closest('li'),a);this.activate(n,n.parent(),function(){o.trigger({type:'hidden.bs.tab',relatedTarget:e[0]});e.trigger({type:'shown.bs.tab',relatedTarget:o[0]})})};e.prototype.activate=function(i,o,n){var s=o.find('> .active'),r=n&&t.support.transition&&(s.length&&s.hasClass('fade')||!!o.find('> .fade').length);function a(){s.removeClass('active').find('> .dropdown-menu > .active').removeClass('active').end().find('[data-toggle="tab"]').attr('aria-expanded',!1);i.addClass('active').find('[data-toggle="tab"]').attr('aria-expanded',!0);if(r){i[0].offsetWidth;i.addClass('in')}
else{i.removeClass('fade')};if(i.parent('.dropdown-menu').length){i.closest('li.dropdown').addClass('active').end().find('[data-toggle="tab"]').attr('aria-expanded',!0)};n&&n()};s.length&&r?s.one('bsTransitionEnd',a).emulateTransitionEnd(e.TRANSITION_DURATION):a();s.removeClass('in')};function o(i){return this.each(function(){var n=t(this),o=n.data('bs.tab');if(!o)n.data('bs.tab',(o=new e(this)));if(typeof i=='string')o[i]()})};var n=t.fn.tab;t.fn.tab=o;t.fn.tab.Constructor=e;t.fn.tab.noConflict=function(){t.fn.tab=n;return this};var i=function(e){e.preventDefault();o.call(t(this),'show')};t(document).on('click.bs.tab.data-api','[data-toggle="tab"]',i).on('click.bs.tab.data-api','[data-toggle="pill"]',i)}(jQuery);+function(t){'use strict';var e=function(i,o){this.options=t.extend({},e.DEFAULTS,o);this.$target=t(this.options.target).on('scroll.bs.affix.data-api',t.proxy(this.checkPosition,this)).on('click.bs.affix.data-api',t.proxy(this.checkPositionWithEventLoop,this));this.$element=t(i);this.affixed=null;this.unpin=null;this.pinnedOffset=null;this.checkPosition()};e.VERSION='3.3.5';e.RESET='affix affix-top affix-bottom';e.DEFAULTS={offset:0,target:window};e.prototype.getState=function(t,e,i,o){var n=this.$target.scrollTop(),r=this.$element.offset(),a=this.$target.height();if(i!=null&&this.affixed=='top')return n<i?'top':!1;if(this.affixed=='bottom'){if(i!=null)return(n+this.unpin<=r.top)?!1:'bottom';return(n+a<=t-o)?!1:'bottom'};var s=this.affixed==null,l=s?n:r.top,h=s?a:e;if(i!=null&&n<=i)return'top';if(o!=null&&(l+h>=t-o))return'bottom';return!1};e.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(e.RESET).addClass('affix');var t=this.$target.scrollTop(),i=this.$element.offset();return(this.pinnedOffset=i.top-t)};e.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)};e.prototype.checkPosition=function(){if(!this.$element.is(':visible'))return;var l=this.$element.height(),o=this.options.offset,s=o.top,n=o.bottom,h=Math.max(t(document).height(),t(document.body).height());if(typeof o!='object')n=s=o;if(typeof s=='function')s=o.top(this.$element);if(typeof n=='function')n=o.bottom(this.$element);var i=this.getState(h,l,s,n);if(this.affixed!=i){if(this.unpin!=null)this.$element.css('top','');var r='affix'+(i?'-'+i:''),a=t.Event(r+'.bs.affix');this.$element.trigger(a);if(a.isDefaultPrevented())return;this.affixed=i;this.unpin=i=='bottom'?this.getPinnedOffset():null;this.$element.removeClass(e.RESET).addClass(r).trigger(r.replace('affix','affixed')+'.bs.affix')};if(i=='bottom'){this.$element.offset({top:h-l-n})}};function i(i){return this.each(function(){var n=t(this),o=n.data('bs.affix'),s=typeof i=='object'&&i;if(!o)n.data('bs.affix',(o=new e(this,s)));if(typeof i=='string')o[i]()})};var o=t.fn.affix;t.fn.affix=i;t.fn.affix.Constructor=e;t.fn.affix.noConflict=function(){t.fn.affix=o;return this};t(window).on('load',function(){t('[data-spy="affix"]').each(function(){var o=t(this),e=o.data();e.offset=e.offset||{};if(e.offsetBottom!=null)e.offset.bottom=e.offsetBottom;if(e.offsetTop!=null)e.offset.top=e.offsetTop;i.call(o,e)})})}(jQuery);