vendor: 46,760 bytes, lines 1-792
1if(typeof jQuery==='undefined'){throw new Error('Bootstrap\'s JavaScript requires jQuery')} 2+function($){'use strict';var version=$.fn.jquery.split(' ')[0].split('.') 3if((version[0]<2&&version[1]<9)||(version[0]==1&&version[1]==9&&version[2]<1)){throw new Error('Bootstrap\'s JavaScript requires jQuery version 1.9.1 or higher')}}(jQuery);+function($){'use strict';function transitionEnd(){var el=document.createElement('bootstrap') 4var transEndEventNames={WebkitTransition:'webkitTransitionEnd',MozTransition:'transitionend',OTransition:'oTransitionEnd otransitionend',transition:'transitionend'} 5for(var name in transEndEventNames){if(el.style[name]!==undefined){return{end:transEndEventNames[name]}}} 6return false} 7$.fn.emulateTransitionEnd=function(duration){var called=false 8var $el=this 9$(this).one('bsTransitionEnd',function(){called=true}) 10var callback=function(){if(!called)$($el).trigger($.support.transition.end)} 11setTimeout(callback,duration) 12return this} 13$(function(){$.support.transition=transitionEnd() 14if(!$.support.transition)return 15$.event.special.bsTransitionEnd={bindType:$.support.transition.end,delegateType:$.support.transition.end,handle:function(e){if($(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}}})}(jQuery);+function($){'use strict';var dismiss='[data-dismiss="alert"]' 16var Alert=function(el){$(el).on('click',dismiss,this.close)} 17Alert.VERSION='3.3.5' 18Alert.TRANSITION_DURATION=150 19Alert.prototype.close=function(e){var $this=$(this) 20var selector=$this.attr('data-target') 21if(!selector){selector=$this.attr('href') 22selector=selector&&selector.replace(/.*(?=#[^\s]*$)/,'')} 23var $parent=$(selector) 24if(e)e.preventDefault() 25if(!$parent.length){$parent=$this.closest('.alert')} 26$parent.trigger(e=$.Event('close.bs.alert')) 27if(e.isDefaultPrevented())return 28$parent.removeClass('in') 29function removeElement(){$parent.detach().trigger('closed.bs.alert').remove()} 30$.support.transition&&$parent.hasClass('fade')?$parent.one('bsTransitionEnd',removeElement).emulateTransitionEnd(Alert.TRANSITION_DURATION):removeElement()} 31function Plugin(option){return this.each(function(){var $this=$(this) 32var data=$this.data('bs.alert') 33if(!data)$this.data('bs.alert',(data=new Alert(this))) 34if(typeof option=='string')data[option].call($this)})} 35var old=$.fn.alert 36$.fn.alert=Plugin 37$.fn.alert.Constructor=Alert 38$.fn.alert.noConflict=function(){$.fn.alert=old 39return this} 40$(document).on('click.bs.alert.data-api',dismiss,Alert.prototype.close)}(jQuery);+function($){'use strict';var Button=function(element,options){this.$element=$(element) 41this.options=$.extend({},Button.DEFAULTS,options) 42this.isLoading=false} 43Button.VERSION='3.3.5' 44Button.DEFAULTS={loadingText:'loading...'} 45Button.prototype.setState=function(state){var d='disabled' 46var $el=this.$element 47var val=$el.is('input')?'val':'html' 48var data=$el.data() 49state+='Text' 50if(data.resetText==null)$el.data('resetText',$el[val]()) 51setTimeout($.proxy(function(){$el[val](data[state]==null?this.options[state]:data[state]) 52if(state=='loadingText'){this.isLoading=true 53$el.addClass(d).attr(d,d)}else if(this.isLoading){this.isLoading=false 54$el.removeClass(d).removeAttr(d)}},this),0)} 55Button.prototype.toggle=function(){var changed=true 56var $parent=this.$element.closest('[data-toggle="buttons"]') 57if($parent.length){var $input=this.$element.find('input') 58if($input.prop('type')=='radio'){if($input.prop('checked'))changed=false 59$parent.find('.active').removeClass('active') 60this.$element.addClass('active')}else if($input.prop('type')=='checkbox'){if(($input.prop('checked'))!==this.$element.hasClass('active'))changed=false 61this.$element.toggleClass('active')} 62$input.prop('checked',this.$element.hasClass('active')) 63if(changed)$input.trigger('change')}else{this.$element.attr('aria-pressed',!this.$element.hasClass('active')) 64this.$element.toggleClass('active')}} 65function Plugin(option){return this.each(function(){var $this=$(this) 66var data=$this.data('bs.button') 67var options=typeof option=='object'&&option 68if(!data)$this.data('bs.button',(data=new Button(this,options))) 69if(option=='toggle')data.toggle() 70else if(option)data.setState(option)})} 71var old=$.fn.button 72$.fn.button=Plugin 73$.fn.button.Constructor=Button 74$.fn.button.noConflict=function(){$.fn.button=old 75return this} 76$(document).on('click.bs.button.data-api','[data-toggle^="button"]',function(e){var $btn=$(e.target) 77if(!$btn.hasClass('btn'))$btn=$btn.closest('.btn') 78Plugin.call($btn,'toggle') 79if(!($(e.target).is('input[type="radio"]')||$(e.target).is('input[type="checkbox"]')))e.preventDefault()}).on('focus.bs.button.data-api blur.bs.button.data-api','[data-toggle^="button"]',function(e){$(e.target).closest('.btn').toggleClass('focus',/^focus(in)?$/.test(e.type))})}(jQuery);+function($){'use strict';var Carousel=function(element,options){this.$element=$(element) 80this.$indicators=this.$element.find('.carousel-indicators') 81this.options=options 82this.paused=null 83this.sliding=null 84this.interval=null 85this.$active=null 86this.$items=null 87this.options.keyboard&&this.$element.on('keydown.bs.carousel',$.proxy(this.keydown,this)) 88this.options.pause=='hover'&&!('ontouchstart'in document.documentElement)&&this.$element.on('mouseenter.bs.carousel',$.proxy(this.pause,this)).on('mouseleave.bs.carousel',$.proxy(this.cycle,this))} 89Carousel.VERSION='3.3.5' 90Carousel.TRANSITION_DURATION=600 91Carousel.DEFAULTS={interval:5000,pause:'hover',wrap:true,keyboard:true} 92Carousel.prototype.keydown=function(e){if(/input|textarea/i.test(e.target.tagName))return 93switch(e.which){case 37:this.prev();break 94case 39:this.next();break 95default:return} 96e.preventDefault()} 97Carousel.prototype.cycle=function(e){e||(this.paused=false) 98this.interval&&clearInterval(this.interval) 99this.options.interval&&!this.paused&&(this.interval=setInterval($.proxy(this.next,this),this.options.interval)) 100return this} 101Carousel.prototype.getItemIndex=function(item){this.$items=item.parent().children('.item') 102return this.$items.index(item||this.$active)} 103Carousel.prototype.getItemForDirection=function(direction,active){var activeIndex=this.getItemIndex(active) 104var willWrap=(direction=='prev'&&activeIndex===0)||(direction=='next'&&activeIndex==(this.$items.length-1)) 105if(willWrap&&!this.options.wrap)return active 106var delta=direction=='prev'?-1:1 107var itemIndex=(activeIndex+delta)%this.$items.length 108return this.$items.eq(itemIndex)} 109Carousel.prototype.to=function(pos){var that=this 110var activeIndex=this.getItemIndex(this.$active=this.$element.find('.item.active')) 111if(pos>(this.$items.length-1)||pos<0)return 112if(this.sliding)return this.$element.one('slid.bs.carousel',function(){that.to(pos)}) 113if(activeIndex==pos)return this.pause().cycle() 114return this.slide(pos>activeIndex?'next':'prev',this.$items.eq(pos))} 115Carousel.prototype.pause=function(e){e||(this.paused=true) 116if(this.$element.find('.next, .prev').length&&$.support.transition){this.$element.trigger($.support.transition.end) 117this.cycle(true)} 118this.interval=clearInterval(this.interval) 119return this} 120Carousel.prototype.next=function(){if(this.sliding)return 121return this.slide('next')} 122Carousel.prototype.prev=function(){if(this.sliding)return 123return this.slide('prev')} 124Carousel.prototype.slide=function(type,next){var $active=this.$element.find('.item.active') 125var $next=next||this.getItemForDirection(type,$active) 126var isCycling=this.interval 127var direction=type=='next'?'left':'right' 128var that=this 129if($next.hasClass('active'))return(this.sliding=false) 130var relatedTarget=$next[0] 131var slideEvent=$.Event('slide.bs.carousel',{relatedTarget:relatedTarget,direction:direction}) 132this.$element.trigger(slideEvent) 133if(slideEvent.isDefaultPrevented())return 134this.sliding=true 135isCycling&&this.pause() 136if(this.$indicators.length){this.$indicators.find('.active').removeClass('active') 137var $nextIndicator=$(this.$indicators.children()[this.getItemIndex($next)]) 138$nextIndicator&&$nextIndicator.addClass('active')} 139var slidEvent=$.Event('slid.bs.carousel',{relatedTarget:relatedTarget,direction:direction}) 140if($.support.transition&&this.$element.hasClass('slide')){$next.addClass(type) 141$next[0].offsetWidth 142$active.addClass(direction) 143$next.addClass(direction) 144$active.one('bsTransitionEnd',function(){$next.removeClass([type,direction].join(' ')).addClass('active') 145$active.removeClass(['active',direction].join(' ')) 146that.sliding=false 147setTimeout(function(){that.$element.trigger(slidEvent)},0)}).emulateTransitionEnd(Carousel.TRANSITION_DURATION)}else{$active.removeClass('active') 148$next.addClass('active') 149this.sliding=false 150this.$element.trigger(slidEvent)} 151isCycling&&this.cycle() 152return this} 153function Plugin(option){return this.each(function(){var $this=$(this) 154var data=$this.data('bs.carousel') 155var options=$.extend({},Carousel.DEFAULTS,$this.data(),typeof option=='object'&&option) 156var action=typeof option=='string'?option:options.slide 157if(!data)$this.data('bs.carousel',(data=new Carousel(this,options))) 158if(typeof option=='number')data.to(option) 159else if(action)data[action]() 160else if(options.interval)data.pause().cycle()})} 161var old=$.fn.carousel 162$.fn.carousel=Plugin 163$.fn.carousel.Constructor=Carousel 164$.fn.carousel.noConflict=function(){$.fn.carousel=old 165return this} 166var clickHandler=function(e){var href 167var $this=$(this) 168var $target=$($this.attr('data-target')||(href=$this.attr('href'))&&href.replace(/.*(?=#[^\s]+$)/,'')) 169if(!$target.hasClass('carousel'))return 170var options=$.extend({},$target.data(),$this.data()) 171var slideIndex=$this.attr('data-slide-to') 172if(slideIndex)options.interval=false 173Plugin.call($target,options) 174if(slideIndex){$target.data('bs.carousel').to(slideIndex)} 175e.preventDefault()} 176$(document).on('click.bs.carousel.data-api','[data-slide]',clickHandler).on('click.bs.carousel.data-api','[data-slide-to]',clickHandler) 177$(window).on('load',function(){$('[data-ride="carousel"]').each(function(){var $carousel=$(this) 178Plugin.call($carousel,$carousel.data())})})}(jQuery);+function($){'use strict';var Collapse=function(element,options){this.$element=$(element) 179this.options=$.extend({},Collapse.DEFAULTS,options) 180this.$trigger=$('[data-toggle="collapse"][href="#'+element.id+'"],'+'[data-toggle="collapse"][data-target="#'+element.id+'"]') 181this.transitioning=null 182if(this.options.parent){this.$parent=this.getParent()}else{this.addAriaAndCollapsedClass(this.$element,this.$trigger)} 183if(this.options.toggle)this.toggle()} 184Collapse.VERSION='3.3.5' 185Collapse.TRANSITION_DURATION=350 186Collapse.DEFAULTS={toggle:true} 187Collapse.prototype.dimension=function(){var hasWidth=this.$element.hasClass('width') 188return hasWidth?'width':'height'} 189Collapse.prototype.show=function(){if(this.transitioning||this.$element.hasClass('in'))return 190var activesData 191var actives=this.$parent&&this.$parent.children('.panel').children('.in, .collapsing') 192if(actives&&actives.length){activesData=actives.data('bs.collapse') 193if(activesData&&activesData.transitioning)return} 194var startEvent=$.Event('show.bs.collapse') 195this.$element.trigger(startEvent) 196if(startEvent.isDefaultPrevented())return 197if(actives&&actives.length){Plugin.call(actives,'hide') 198activesData||actives.data('bs.collapse',null)} 199var dimension=this.dimension() 200this.$element.removeClass('collapse').addClass('collapsing')[dimension](0).attr('aria-expanded',true) 201this.$trigger.removeClass('collapsed').attr('aria-expanded',true) 202this.transitioning=1 203var complete=function(){this.$element.removeClass('collapsing').addClass('collapse in')[dimension]('') 204this.transitioning=0 205this.$element.trigger('shown.bs.collapse')} 206if(!$.support.transition)return complete.call(this) 207var scrollSize=$.camelCase(['scroll',dimension].join('-')) 208this.$element.one('bsTransitionEnd',$.proxy(complete,this)).emulateTransitionEnd(Collapse.TRANSITION_DURATION)[dimension](this.$element[0][scrollSize])} 209Collapse.prototype.hide=function(){if(this.transitioning||!this.$element.hasClass('in'))return 210var startEvent=$.Event('hide.bs.collapse') 211this.$element.trigger(startEvent) 212if(startEvent.isDefaultPrevented())return 213var dimension=this.dimension() 214this.$element[dimension](this.$element[dimension]())[0].offsetHeight 215this.$element.addClass('collapsing').removeClass('collapse in').attr('aria-expanded',false) 216this.$trigger.addClass('collapsed').attr('aria-expanded',false) 217this.transitioning=1 218var complete=function(){this.transitioning=0 219this.$element.removeClass('collapsing').addClass('collapse').trigger('hidden.bs.collapse')} 220if(!$.support.transition)return complete.call(this) 221this.$element 222[dimension](0).one('bsTransitionEnd',$.proxy(complete,this)).emulateTransitionEnd(Collapse.TRANSITION_DURATION)} 223Collapse.prototype.toggle=function(){this[this.$element.hasClass('in')?'hide':'show']()} 224Collapse.prototype.getParent=function(){return $(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each($.proxy(function(i,element){var $element=$(element) 225this.addAriaAndCollapsedClass(getTargetFromTrigger($element),$element)},this)).end()} 226Collapse.prototype.addAriaAndCollapsedClass=function($element,$trigger){var isOpen=$element.hasClass('in') 227$element.attr('aria-expanded',isOpen) 228$trigger.toggleClass('collapsed',!isOpen).attr('aria-expanded',isOpen)} 229function getTargetFromTrigger($trigger){var href 230var target=$trigger.attr('data-target')||(href=$trigger.attr('href'))&&href.replace(/.*(?=#[^\s]+$)/,'') 231return $(target)} 232function Plugin(option){return this.each(function(){var $this=$(this) 233var data=$this.data('bs.collapse') 234var options=$.extend({},Collapse.DEFAULTS,$this.data(),typeof option=='object'&&option) 235if(!data&&options.toggle&&/show|hide/.test(option))options.toggle=false 236if(!data)$this.data('bs.collapse',(data=new Collapse(this,options))) 237if(typeof option=='string')data[option]()})} 238var old=$.fn.collapse 239$.fn.collapse=Plugin 240$.fn.collapse.Constructor=Collapse 241$.fn.collapse.noConflict=function(){$.fn.collapse=old 242return this} 243$(document).on('click.bs.collapse.data-api','[data-toggle="collapse"]',function(e){var $this=$(this) 244if(!$this.attr('data-target'))e.preventDefault() 245var $target=getTargetFromTrigger($this) 246var data=$target.data('bs.collapse') 247var option=data?'toggle':$this.data() 248Plugin.call($target,option)})}(jQuery);+function($){'use strict';var backdrop='.dropdown-backdrop' 249var toggle='[data-toggle="dropdown"]' 250var Dropdown=function(element){$(element).on('click.bs.dropdown',this.toggle)} 251Dropdown.VERSION='3.3.5' 252function getParent($this){var selector=$this.attr('data-target') 253if(!selector){selector=$this.attr('href') 254selector=selector&&/#[A-Za-z]/.test(selector)&&selector.replace(/.*(?=#[^\s]*$)/,'')} 255var $parent=selector&&$(selector) 256return $parent&&$parent.length?$parent:$this.parent()} 257function clearMenus(e){if(e&&e.which===3)return 258$(backdrop).remove() 259$(toggle).each(function(){var $this=$(this) 260var $parent=getParent($this) 261var relatedTarget={relatedTarget:this} 262if(!$parent.hasClass('open'))return 263if(e&&e.type=='click'&&/input|textarea/i.test(e.target.tagName)&&$.contains($parent[0],e.target))return 264$parent.trigger(e=$.Event('hide.bs.dropdown',relatedTarget)) 265if(e.isDefaultPrevented())return 266$this.attr('aria-expanded','false') 267$parent.removeClass('open').trigger('hidden.bs.dropdown',relatedTarget)})} 268Dropdown.prototype.toggle=function(e){var $this=$(this) 269if($this.is('.disabled, :disabled'))return 270var $parent=getParent($this) 271var isActive=$parent.hasClass('open') 272clearMenus() 273if(!isActive){if('ontouchstart'in document.documentElement&&!$parent.closest('.navbar-nav').length){$(document.createElement('div')).addClass('dropdown-backdrop').insertAfter($(this)).on('click',clearMenus)} 274var relatedTarget={relatedTarget:this} 275$parent.trigger(e=$.Event('show.bs.dropdown',relatedTarget)) 276if(e.isDefaultPrevented())return 277$this.trigger('focus').attr('aria-expanded','true') 278$parent.toggleClass('open').trigger('shown.bs.dropdown',relatedTarget)} 279return false} 280Dropdown.prototype.keydown=function(e){if(!/(38|40|27|32)/.test(e.which)||/input|textarea/i.test(e.target.tagName))return 281var $this=$(this) 282e.preventDefault() 283e.stopPropagation() 284if($this.is('.disabled, :disabled'))return 285var $parent=getParent($this) 286var isActive=$parent.hasClass('open') 287if(!isActive&&e.which!=27||isActive&&e.which==27){if(e.which==27)$parent.find(toggle).trigger('focus') 288return $this.trigger('click')} 289var desc=' li:not(.disabled):visible a' 290var $items=$parent.find('.dropdown-menu'+desc) 291if(!$items.length)return 292var index=$items.index(e.target) 293if(e.which==38&&index>0)index-- 294if(e.which==40&&index<$items.length-1)index++ 295if(!~index)index=0 296$items.eq(index).trigger('focus')} 297function Plugin(option){return this.each(function(){var $this=$(this) 298var data=$this.data('bs.dropdown') 299if(!data)$this.data('bs.dropdown',(data=new Dropdown(this))) 300if(typeof option=='string')data[option].call($this)})} 301var old=$.fn.dropdown 302$.fn.dropdown=Plugin 303$.fn.dropdown.Constructor=Dropdown 304$.fn.dropdown.noConflict=function(){$.fn.dropdown=old 305return this} 306$(document).on('click.bs.dropdown.data-api',clearMenus).on('click.bs.dropdown.data-api','.dropdown form',function(e){e.stopPropagation()}).on('click.bs.dropdown.data-api',toggle,Dropdown.prototype.toggle).on('keydown.bs.dropdown.data-api',toggle,Dropdown.prototype.keydown).on('keydown.bs.dropdown.data-api','.dropdown-menu',Dropdown.prototype.keydown)}(jQuery);+function($){'use strict';var Modal=function(element,options){this.options=options 307this.$body=$(document.body) 308this.$element=$(element) 309this.$dialog=this.$element.find('.modal-dialog') 310this.$backdrop=null 311this.isShown=null 312this.originalBodyPad=null 313this.scrollbarWidth=0 314this.ignoreBackdropClick=false 315if(this.options.remote){this.$element.find('.modal-content').load(this.options.remote,$.proxy(function(){this.$element.trigger('loaded.bs.modal')},this))}} 316Modal.VERSION='3.3.5' 317Modal.TRANSITION_DURATION=300 318Modal.BACKDROP_TRANSITION_DURATION=150 319Modal.DEFAULTS={backdrop:true,keyboard:true,show:true} 320Modal.prototype.toggle=function(_relatedTarget){return this.isShown?this.hide():this.show(_relatedTarget)} 321Modal.prototype.show=function(_relatedTarget){var that=this 322var e=$.Event('show.bs.modal',{relatedTarget:_relatedTarget}) 323this.$element.trigger(e) 324if(this.isShown||e.isDefaultPrevented())return 325this.isShown=true 326this.checkScrollbar() 327this.setScrollbar() 328this.$body.addClass('modal-open') 329this.escape() 330this.resize() 331this.$element.on('click.dismiss.bs.modal','[data-dismiss="modal"]',$.proxy(this.hide,this)) 332this.$dialog.on('mousedown.dismiss.bs.modal',function(){that.$element.one('mouseup.dismiss.bs.modal',function(e){if($(e.target).is(that.$element))that.ignoreBackdropClick=true})}) 333this.backdrop(function(){var transition=$.support.transition&&that.$element.hasClass('fade') 334if(!that.$element.parent().length){that.$element.appendTo(that.$body)} 335that.$element.show().scrollTop(0) 336that.adjustDialog() 337if(transition){that.$element[0].offsetWidth} 338that.$element.addClass('in') 339that.enforceFocus() 340var e=$.Event('shown.bs.modal',{relatedTarget:_relatedTarget}) 341transition?that.$dialog.one('bsTransitionEnd',function(){that.$element.trigger('focus').trigger(e)}).emulateTransitionEnd(Modal.TRANSITION_DURATION):that.$element.trigger('focus').trigger(e)})} 342Modal.prototype.hide=function(e){if(e)e.preventDefault() 343e=$.Event('hide.bs.modal') 344this.$element.trigger(e) 345if(!this.isShown||e.isDefaultPrevented())return 346this.isShown=false 347this.escape() 348this.resize() 349$(document).off('focusin.bs.modal') 350this.$element.removeClass('in').off('click.dismiss.bs.modal').off('mouseup.dismiss.bs.modal') 351this.$dialog.off('mousedown.dismiss.bs.modal') 352$.support.transition&&this.$element.hasClass('fade')?this.$element.one('bsTransitionEnd',$.proxy(this.hideModal,this)).emulateTransitionEnd(Modal.TRANSITION_DURATION):this.hideModal()} 353Modal.prototype.enforceFocus=function(){$(document).off('focusin.bs.modal').on('focusin.bs.modal',$.proxy(function(e){if(this.$element[0]!==e.target&&!this.$element.has(e.target).length){this.$element.trigger('focus')}},this))} 354Modal.prototype.escape=function(){if(this.isShown&&this.options.keyboard){this.$element.on('keydown.dismiss.bs.modal',$.proxy(function(e){e.which==27&&this.hide()},this))}else if(!this.isShown){this.$element.off('keydown.dismiss.bs.modal')}} 355Modal.prototype.resize=function(){if(this.isShown){$(window).on('resize.bs.modal',$.proxy(this.handleUpdate,this))}else{$(window).off('resize.bs.modal')}} 356Modal.prototype.hideModal=function(){var that=this 357this.$element.hide() 358this.backdrop(function(){that.$body.removeClass('modal-open') 359that.resetAdjustments() 360that.resetScrollbar() 361that.$element.trigger('hidden.bs.modal')})} 362Modal.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove() 363this.$backdrop=null} 364Modal.prototype.backdrop=function(callback){var that=this 365var animate=this.$element.hasClass('fade')?'fade':'' 366if(this.isShown&&this.options.backdrop){var doAnimate=$.support.transition&&animate 367this.$backdrop=$(document.createElement('div')).addClass('modal-backdrop '+animate).appendTo(this.$body) 368this.$element.on('click.dismiss.bs.modal',$.proxy(function(e){if(this.ignoreBackdropClick){this.ignoreBackdropClick=false 369return} 370if(e.target!==e.currentTarget)return 371this.options.backdrop=='static'?this.$element[0].focus():this.hide()},this)) 372if(doAnimate)this.$backdrop[0].offsetWidth 373this.$backdrop.addClass('in') 374if(!callback)return 375doAnimate?this.$backdrop.one('bsTransitionEnd',callback).emulateTransitionEnd(Modal.BACKDROP_TRANSITION_DURATION):callback()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass('in') 376var callbackRemove=function(){that.removeBackdrop() 377callback&&callback()} 378$.support.transition&&this.$element.hasClass('fade')?this.$backdrop.one('bsTransitionEnd',callbackRemove).emulateTransitionEnd(Modal.BACKDROP_TRANSITION_DURATION):callbackRemove()}else if(callback){callback()}} 379Modal.prototype.handleUpdate=function(){this.adjustDialog()} 380Modal.prototype.adjustDialog=function(){var modalIsOverflowing=this.$element[0].scrollHeight>document.documentElement.clientHeight 381this.$element.css({paddingLeft:!this.bodyIsOverflowing&&modalIsOverflowing?this.scrollbarWidth:'',paddingRight:this.bodyIsOverflowing&&!modalIsOverflowing?this.scrollbarWidth:''})} 382Modal.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:'',paddingRight:''})} 383Modal.prototype.checkScrollbar=function(){var fullWindowWidth=window.innerWidth 384if(!fullWindowWidth){var documentElementRect=document.documentElement.getBoundingClientRect() 385fullWindowWidth=documentElementRect.right-Math.abs(documentElementRect.left)} 386this.bodyIsOverflowing=document.body.clientWidth<fullWindowWidth 387this.scrollbarWidth=this.measureScrollbar()} 388Modal.prototype.setScrollbar=function(){var bodyPad=parseInt((this.$body.css('padding-right')||0),10) 389this.originalBodyPad=document.body.style.paddingRight||'' 390if(this.bodyIsOverflowing)this.$body.css('padding-right',bodyPad+this.scrollbarWidth)} 391Modal.prototype.resetScrollbar=function(){this.$body.css('padding-right',this.originalBodyPad)} 392Modal.prototype.measureScrollbar=function(){var scrollDiv=document.createElement('div') 393scrollDiv.className='modal-scrollbar-measure' 394this.$body.append(scrollDiv) 395var scrollbarWidth=scrollDiv.offsetWidth-scrollDiv.clientWidth 396this.$body[0].removeChild(scrollDiv) 397return scrollbarWidth} 398function Plugin(option,_relatedTarget){return this.each(function(){var $this=$(this) 399var data=$this.data('bs.modal') 400var options=$.extend({},Modal.DEFAULTS,$this.data(),typeof option=='object'&&option) 401if(!data)$this.data('bs.modal',(data=new Modal(this,options))) 402if(typeof option=='string')data[option](_relatedTarget) 403else if(options.show)data.show(_relatedTarget)})} 404var old=$.fn.modal 405$.fn.modal=Plugin 406$.fn.modal.Constructor=Modal 407$.fn.modal.noConflict=function(){$.fn.modal=old 408return this} 409$(document).on('click.bs.modal.data-api','[data-toggle="modal"]',function(e){var $this=$(this) 410var href=$this.attr('href') 411var $target=$($this.attr('data-target')||(href&&href.replace(/.*(?=#[^\s]+$)/,''))) 412var option=$target.data('bs.modal')?'toggle':$.extend({remote:!/#/.test(href)&&href},$target.data(),$this.data()) 413if($this.is('a'))e.preventDefault() 414$target.one('show.bs.modal',function(showEvent){if(showEvent.isDefaultPrevented())return 415$target.one('hidden.bs.modal',function(){$this.is(':visible')&&$this.trigger('focus')})}) 416Plugin.call($target,option,this)})}(jQuery);+function($){'use strict';var Tooltip=function(element,options){this.type=null 417this.options=null 418this.enabled=null 419this.timeout=null 420this.hoverState=null 421this.$element=null 422this.inState=null 423this.init('tooltip',element,options)} 424Tooltip.VERSION='3.3.5' 425Tooltip.TRANSITION_DURATION=150 426Tooltip.DEFAULTS={animation:true,placement:'top',selector:false,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:'hover focus',title:'',delay:0,html:false,container:false,viewport:{selector:'body',padding:0}} 427Tooltip.prototype.init=function(type,element,options){this.enabled=true 428this.type=type 429this.$element=$(element) 430this.options=this.getOptions(options) 431this.$viewport=this.options.viewport&&$($.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):(this.options.viewport.selector||this.options.viewport)) 432this.inState={click:false,hover:false,focus:false} 433if(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!')} 434var triggers=this.options.trigger.split(' ') 435for(var i=triggers.length;i--;){var trigger=triggers[i] 436if(trigger=='click'){this.$element.on('click.'+this.type,this.options.selector,$.proxy(this.toggle,this))}else if(trigger!='manual'){var eventIn=trigger=='hover'?'mouseenter':'focusin' 437var eventOut=trigger=='hover'?'mouseleave':'focusout' 438this.$element.on(eventIn+'.'+this.type,this.options.selector,$.proxy(this.enter,this)) 439this.$element.on(eventOut+'.'+this.type,this.options.selector,$.proxy(this.leave,this))}} 440this.options.selector?(this._options=$.extend({},this.options,{trigger:'manual',selector:''})):this.fixTitle()} 441Tooltip.prototype.getDefaults=function(){return Tooltip.DEFAULTS} 442Tooltip.prototype.getOptions=function(options){options=$.extend({},this.getDefaults(),this.$element.data(),options) 443if(options.delay&&typeof options.delay=='number'){options.delay={show:options.delay,hide:options.delay}} 444return options} 445Tooltip.prototype.getDelegateOptions=function(){var options={} 446var defaults=this.getDefaults() 447this._options&&$.each(this._options,function(key,value){if(defaults[key]!=value)options[key]=value}) 448return options} 449Tooltip.prototype.enter=function(obj){var self=obj instanceof this.constructor?obj:$(obj.currentTarget).data('bs.'+this.type) 450if(!self){self=new this.constructor(obj.currentTarget,this.getDelegateOptions()) 451$(obj.currentTarget).data('bs.'+this.type,self)} 452if(obj instanceof $.Event){self.inState[obj.type=='focusin'?'focus':'hover']=true} 453if(self.tip().hasClass('in')||self.hoverState=='in'){self.hoverState='in' 454return} 455clearTimeout(self.timeout) 456self.hoverState='in' 457if(!self.options.delay||!self.options.delay.show)return self.show() 458self.timeout=setTimeout(function(){if(self.hoverState=='in')self.show()},self.options.delay.show)} 459Tooltip.prototype.isInStateTrue=function(){for(var key in this.inState){if(this.inState[key])return true} 460return false} 461Tooltip.prototype.leave=function(obj){var self=obj instanceof this.constructor?obj:$(obj.currentTarget).data('bs.'+this.type) 462if(!self){self=new this.constructor(obj.currentTarget,this.getDelegateOptions()) 463$(obj.currentTarget).data('bs.'+this.type,self)} 464if(obj instanceof $.Event){self.inState[obj.type=='focusout'?'focus':'hover']=false} 465if(self.isInStateTrue())return 466clearTimeout(self.timeout) 467self.hoverState='out' 468if(!self.options.delay||!self.options.delay.hide)return self.hide() 469self.timeout=setTimeout(function(){if(self.hoverState=='out')self.hide()},self.options.delay.hide)} 470Tooltip.prototype.show=function(){var e=$.Event('show.bs.'+this.type) 471if(this.hasContent()&&this.enabled){this.$element.trigger(e) 472var inDom=$.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]) 473if(e.isDefaultPrevented()||!inDom)return 474var that=this 475var $tip=this.tip() 476var tipId=this.getUID(this.type) 477this.setContent() 478$tip.attr('id',tipId) 479this.$element.attr('aria-describedby',tipId) 480if(this.options.animation)$tip.addClass('fade') 481var placement=typeof this.options.placement=='function'?this.options.placement.call(this,$tip[0],this.$element[0]):this.options.placement 482var autoToken=/\s?auto?\s?/i 483var autoPlace=autoToken.test(placement) 484if(autoPlace)placement=placement.replace(autoToken,'')||'top' 485$tip.detach().css({top:0,left:0,display:'block'}).addClass(placement).data('bs.'+this.type,this) 486this.options.container?$tip.appendTo(this.options.container):$tip.insertAfter(this.$element) 487this.$element.trigger('inserted.bs.'+this.type) 488var pos=this.getPosition() 489var actualWidth=$tip[0].offsetWidth 490var actualHeight=$tip[0].offsetHeight 491if(autoPlace){var orgPlacement=placement 492var viewportDim=this.getPosition(this.$viewport) 493placement=placement=='bottom'&&pos.bottom+actualHeight>viewportDim.bottom?'top':placement=='top'&&pos.top-actualHeight<viewportDim.top?'bottom':placement=='right'&&pos.right+actualWidth>viewportDim.width?'left':placement=='left'&&pos.left-actualWidth<viewportDim.left?'right':placement 494$tip.removeClass(orgPlacement).addClass(placement)} 495var calculatedOffset=this.getCalculatedOffset(placement,pos,actualWidth,actualHeight) 496this.applyPlacement(calculatedOffset,placement) 497var complete=function(){var prevHoverState=that.hoverState 498that.$element.trigger('shown.bs.'+that.type) 499that.hoverState=null 500if(prevHoverState=='out')that.leave(that)} 501$.support.transition&&this.$tip.hasClass('fade')?$tip.one('bsTransitionEnd',complete).emulateTransitionEnd(Tooltip.TRANSITION_DURATION):complete()}} 502Tooltip.prototype.applyPlacement=function(offset,placement){var $tip=this.tip() 503var width=$tip[0].offsetWidth 504var height=$tip[0].offsetHeight 505var marginTop=parseInt($tip.css('margin-top'),10) 506var marginLeft=parseInt($tip.css('margin-left'),10) 507if(isNaN(marginTop))marginTop=0 508if(isNaN(marginLeft))marginLeft=0 509offset.top+=marginTop 510offset.left+=marginLeft 511$.offset.setOffset($tip[0],$.extend({using:function(props){$tip.css({top:Math.round(props.top),left:Math.round(props.left)})}},offset),0) 512$tip.addClass('in') 513var actualWidth=$tip[0].offsetWidth 514var actualHeight=$tip[0].offsetHeight 515if(placement=='top'&&actualHeight!=height){offset.top=offset.top+height-actualHeight} 516var delta=this.getViewportAdjustedDelta(placement,offset,actualWidth,actualHeight) 517if(delta.left)offset.left+=delta.left 518else offset.top+=delta.top 519var isVertical=/top|bottom/.test(placement) 520var arrowDelta=isVertical?delta.left*2-width+actualWidth:delta.top*2-height+actualHeight 521var arrowOffsetPosition=isVertical?'offsetWidth':'offsetHeight' 522$tip.offset(offset) 523this.replaceArrow(arrowDelta,$tip[0][arrowOffsetPosition],isVertical)} 524Tooltip.prototype.replaceArrow=function(delta,dimension,isVertical){this.arrow().css(isVertical?'left':'top',50*(1-delta/dimension)+'%').css(isVertical?'top':'left','')} 525Tooltip.prototype.setContent=function(){var $tip=this.tip() 526var title=this.getTitle() 527$tip.find('.tooltip-inner')[this.options.html?'html':'text'](title) 528$tip.removeClass('fade in top bottom left right')} 529Tooltip.prototype.hide=function(callback){var that=this 530var $tip=$(this.$tip) 531var e=$.Event('hide.bs.'+this.type) 532function complete(){if(that.hoverState!='in')$tip.detach() 533that.$element.removeAttr('aria-describedby').trigger('hidden.bs.'+that.type) 534callback&&callback()} 535this.$element.trigger(e) 536if(e.isDefaultPrevented())return 537$tip.removeClass('in') 538$.support.transition&&$tip.hasClass('fade')?$tip.one('bsTransitionEnd',complete).emulateTransitionEnd(Tooltip.TRANSITION_DURATION):complete() 539this.hoverState=null 540return this} 541Tooltip.prototype.fixTitle=function(){var $e=this.$element 542if($e.attr('title')||typeof $e.attr('data-original-title')!='string'){$e.attr('data-original-title',$e.attr('title')||'').attr('title','')}} 543Tooltip.prototype.hasContent=function(){return this.getTitle()} 544Tooltip.prototype.getPosition=function($element){$element=$element||this.$element 545var el=$element[0] 546var isBody=el.tagName=='BODY' 547var elRect=el.getBoundingClientRect() 548if(elRect.width==null){elRect=$.extend({},elRect,{width:elRect.right-elRect.left,height:elRect.bottom-elRect.top})} 549var elOffset=isBody?{top:0,left:0}:$element.offset() 550var scroll={scroll:isBody?document.documentElement.scrollTop||document.body.scrollTop:$element.scrollTop()} 551var outerDims=isBody?{width:$(window).width(),height:$(window).height()}:null 552return $.extend({},elRect,scroll,outerDims,elOffset)} 553Tooltip.prototype.getCalculatedOffset=function(placement,pos,actualWidth,actualHeight){return placement=='bottom'?{top:pos.top+pos.height,left:pos.left+pos.width/2-actualWidth/2}:placement=='top'?{top:pos.top-actualHeight,left:pos.left+pos.width/2-actualWidth/2}:placement=='left'?{top:pos.top+pos.height/2-actualHeight/2,left:pos.left-actualWidth}:{top:pos.top+pos.height/2-actualHeight/2,left:pos.left+pos.width}} 554Tooltip.prototype.getViewportAdjustedDelta=function(placement,pos,actualWidth,actualHeight){var delta={top:0,left:0} 555if(!this.$viewport)return delta 556var viewportPadding=this.options.viewport&&this.options.viewport.padding||0 557var viewportDimensions=this.getPosition(this.$viewport) 558if(/right|left/.test(placement)){var topEdgeOffset=pos.top-viewportPadding-viewportDimensions.scroll 559var bottomEdgeOffset=pos.top+viewportPadding-viewportDimensions.scroll+actualHeight 560if(topEdgeOffset<viewportDimensions.top){delta.top=viewportDimensions.top-topEdgeOffset}else if(bottomEdgeOffset>viewportDimensions.top+viewportDimensions.height){delta.top=viewportDimensions.top+viewportDimensions.height-bottomEdgeOffset}}else{var leftEdgeOffset=pos.left-viewportPadding 561var rightEdgeOffset=pos.left+viewportPadding+actualWidth 562if(leftEdgeOffset<viewportDimensions.left){delta.left=viewportDimensions.left-leftEdgeOffset}else if(rightEdgeOffset>viewportDimensions.right){delta.left=viewportDimensions.left+viewportDimensions.width-rightEdgeOffset}} 563return delta} 564Tooltip.prototype.getTitle=function(){var title 565var $e=this.$element 566var o=this.options 567title=$e.attr('data-original-title')||(typeof o.title=='function'?o.title.call($e[0]):o.title) 568return title} 569Tooltip.prototype.getUID=function(prefix){do prefix+=~~(Math.random()*1000000) 570while(document.getElementById(prefix)) 571return prefix} 572Tooltip.prototype.tip=function(){if(!this.$tip){this.$tip=$(this.options.template) 573if(this.$tip.length!=1){throw new Error(this.type+' `template` option must consist of exactly 1 top-level element!')}} 574return this.$tip} 575Tooltip.prototype.arrow=function(){return(this.$arrow=this.$arrow||this.tip().find('.tooltip-arrow'))} 576Tooltip.prototype.enable=function(){this.enabled=true} 577Tooltip.prototype.disable=function(){this.enabled=false} 578Tooltip.prototype.toggleEnabled=function(){this.enabled=!this.enabled} 579Tooltip.prototype.toggle=function(e){var self=this 580if(e){self=$(e.currentTarget).data('bs.'+this.type) 581if(!self){self=new this.constructor(e.currentTarget,this.getDelegateOptions()) 582$(e.currentTarget).data('bs.'+this.type,self)}} 583if(e){self.inState.click=!self.inState.click 584if(self.isInStateTrue())self.enter(self) 585else self.leave(self)}else{self.tip().hasClass('in')?self.leave(self):self.enter(self)}} 586Tooltip.prototype.destroy=function(){var that=this 587clearTimeout(this.timeout) 588this.hide(function(){that.$element.off('.'+that.type).removeData('bs.'+that.type) 589if(that.$tip){that.$tip.detach()} 590that.$tip=null 591that.$arrow=null 592that.$viewport=null})} 593function Plugin(option){return this.each(function(){var $this=$(this) 594var data=$this.data('bs.tooltip') 595var options=typeof option=='object'&&option 596if(!data&&/destroy|hide/.test(option))return 597if(!data)$this.data('bs.tooltip',(data=new Tooltip(this,options))) 598if(typeof option=='string')data[option]()})} 599var old=$.fn.tooltip 600$.fn.tooltip=Plugin 601$.fn.tooltip.Constructor=Tooltip 602$.fn.tooltip.noConflict=function(){$.fn.tooltip=old 603return this}}(jQuery);+function($){'use strict';var Popover=function(element,options){this.init('popover',element,options)} 604if(!$.fn.tooltip)throw new Error('Popover requires tooltip.js') 605Popover.VERSION='3.3.5' 606Popover.DEFAULTS=$.extend({},$.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>'}) 607Popover.prototype=$.extend({},$.fn.tooltip.Constructor.prototype) 608Popover.prototype.constructor=Popover 609Popover.prototype.getDefaults=function(){return Popover.DEFAULTS} 610Popover.prototype.setContent=function(){var $tip=this.tip() 611var title=this.getTitle() 612var content=this.getContent() 613$tip.find('.popover-title')[this.options.html?'html':'text'](title) 614$tip.find('.popover-content').children().detach().end()[this.options.html?(typeof content=='string'?'html':'append'):'text'](content) 615$tip.removeClass('fade top bottom left right in') 616if(!$tip.find('.popover-title').html())$tip.find('.popover-title').hide()} 617Popover.prototype.hasContent=function(){return this.getTitle()||this.getContent()} 618Popover.prototype.getContent=function(){var $e=this.$element 619var o=this.options 620return $e.attr('data-content')||(typeof o.content=='function'?o.content.call($e[0]):o.content)} 621Popover.prototype.arrow=function(){return(this.$arrow=this.$arrow||this.tip().find('.arrow'))} 622function Plugin(option){return this.each(function(){var $this=$(this) 623var data=$this.data('bs.popover') 624var options=typeof option=='object'&&option 625if(!data&&/destroy|hide/.test(option))return 626if(!data)$this.data('bs.popover',(data=new Popover(this,options))) 627if(typeof option=='string')data[option]()})} 628var old=$.fn.popover 629$.fn.popover=Plugin 630$.fn.popover.Constructor=Popover 631$.fn.popover.noConflict=function(){$.fn.popover=old 632return this}}(jQuery);+function($){'use strict';function ScrollSpy(element,options){this.$body=$(document.body) 633this.$scrollElement=$(element).is(document.body)?$(window):$(element) 634this.options=$.extend({},ScrollSpy.DEFAULTS,options) 635this.selector=(this.options.target||'')+' .nav li > a' 636this.offsets=[] 637this.targets=[] 638this.activeTarget=null 639this.scrollHeight=0 640this.$scrollElement.on('scroll.bs.scrollspy',$.proxy(this.process,this)) 641this.refresh() 642this.process()} 643ScrollSpy.VERSION='3.3.5' 644ScrollSpy.DEFAULTS={offset:10} 645ScrollSpy.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)} 646ScrollSpy.prototype.refresh=function(){var that=this 647var offsetMethod='offset' 648var offsetBase=0 649this.offsets=[] 650this.targets=[] 651this.scrollHeight=this.getScrollHeight() 652if(!$.isWindow(this.$scrollElement[0])){offsetMethod='position' 653offsetBase=this.$scrollElement.scrollTop()} 654this.$body.find(this.selector).map(function(){var $el=$(this) 655var href=$el.data('target')||$el.attr('href') 656var $href=/^#./.test(href)&&$(href) 657return($href&&$href.length&&$href.is(':visible')&&[[$href[offsetMethod]().top+offsetBase,href]])||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){that.offsets.push(this[0]) 658that.targets.push(this[1])})} 659ScrollSpy.prototype.process=function(){var scrollTop=this.$scrollElement.scrollTop()+this.options.offset 660var scrollHeight=this.getScrollHeight() 661var maxScroll=this.options.offset+scrollHeight-this.$scrollElement.height() 662var offsets=this.offsets 663var targets=this.targets 664var activeTarget=this.activeTarget 665var i 666if(this.scrollHeight!=scrollHeight){this.refresh()} 667if(scrollTop>=maxScroll){return activeTarget!=(i=targets[targets.length-1])&&this.activate(i)} 668if(activeTarget&&scrollTop<offsets[0]){this.activeTarget=null 669return this.clear()} 670for(i=offsets.length;i--;){activeTarget!=targets[i]&&scrollTop>=offsets[i]&&(offsets[i+1]===undefined||scrollTop<offsets[i+1])&&this.activate(targets[i])}} 671ScrollSpy.prototype.activate=function(target){this.activeTarget=target 672this.clear() 673var selector=this.selector+'[data-target="'+target+'"],'+ 674this.selector+'[href="'+target+'"]' 675var active=$(selector).parents('li').addClass('active') 676if(active.parent('.dropdown-menu').length){active=active.closest('li.dropdown').addClass('active')} 677active.trigger('activate.bs.scrollspy')} 678ScrollSpy.prototype.clear=function(){$(this.selector).parentsUntil(this.options.target,'.active').removeClass('active')} 679function Plugin(option){return this.each(function(){var $this=$(this) 680var data=$this.data('bs.scrollspy') 681var options=typeof option=='object'&&option 682if(!data)$this.data('bs.scrollspy',(data=new ScrollSpy(this,options))) 683if(typeof option=='string')data[option]()})} 684var old=$.fn.scrollspy 685$.fn.scrollspy=Plugin 686$.fn.scrollspy.Constructor=ScrollSpy 687$.fn.scrollspy.noConflict=function(){$.fn.scrollspy=old 688return this} 689$(window).on('load.bs.scrollspy.data-api',function(){$('[data-spy="scroll"]').each(function(){var $spy=$(this) 690Plugin.call($spy,$spy.data())})})}(jQuery);+function($){'use strict';var Tab=function(element){this.element=$(element)} 691Tab.VERSION='3.3.5' 692Tab.TRANSITION_DURATION=150 693Tab.prototype.show=function(){var $this=this.element 694var $ul=$this.closest('ul:not(.dropdown-menu)') 695var selector=$this.data('target') 696if(!selector){selector=$this.attr('href') 697selector=selector&&selector.replace(/.*(?=#[^\s]*$)/,'')} 698if($this.parent('li').hasClass('active'))return 699var $previous=$ul.find('.active:last a') 700var hideEvent=$.Event('hide.bs.tab',{relatedTarget:$this[0]}) 701var showEvent=$.Event('show.bs.tab',{relatedTarget:$previous[0]}) 702$previous.trigger(hideEvent) 703$this.trigger(showEvent) 704if(showEvent.isDefaultPrevented()||hideEvent.isDefaultPrevented())return 705var $target=$(selector) 706this.activate($this.closest('li'),$ul) 707this.activate($target,$target.parent(),function(){$previous.trigger({type:'hidden.bs.tab',relatedTarget:$this[0]}) 708$this.trigger({type:'shown.bs.tab',relatedTarget:$previous[0]})})} 709Tab.prototype.activate=function(element,container,callback){var $active=container.find('> .active') 710var transition=callback&&$.support.transition&&($active.length&&$active.hasClass('fade')||!!container.find('> .fade').length) 711function next(){$active.removeClass('active').find('> .dropdown-menu > .active').removeClass('active').end().find('[data-toggle="tab"]').attr('aria-expanded',false) 712element.addClass('active').find('[data-toggle="tab"]').attr('aria-expanded',true) 713if(transition){element[0].offsetWidth 714element.addClass('in')}else{element.removeClass('fade')} 715if(element.parent('.dropdown-menu').length){element.closest('li.dropdown').addClass('active').end().find('[data-toggle="tab"]').attr('aria-expanded',true)} 716callback&&callback()} 717$active.length&&transition?$active.one('bsTransitionEnd',next).emulateTransitionEnd(Tab.TRANSITION_DURATION):next() 718$active.removeClass('in')} 719function Plugin(option){return this.each(function(){var $this=$(this) 720var data=$this.data('bs.tab') 721if(!data)$this.data('bs.tab',(data=new Tab(this))) 722if(typeof option=='string')data[option]()})} 723var old=$.fn.tab 724$.fn.tab=Plugin 725$.fn.tab.Constructor=Tab 726$.fn.tab.noConflict=function(){$.fn.tab=old 727return this} 728var clickHandler=function(e){e.preventDefault() 729Plugin.call($(this),'show')} 730$(document).on('click.bs.tab.data-api','[data-toggle="tab"]',clickHandler).on('click.bs.tab.data-api','[data-toggle="pill"]',clickHandler)}(jQuery);+function($){'use strict';var Affix=function(element,options){this.options=$.extend({},Affix.DEFAULTS,options) 731this.$target=$(this.options.target).on('scroll.bs.affix.data-api',$.proxy(this.checkPosition,this)).on('click.bs.affix.data-api',$.proxy(this.checkPositionWithEventLoop,this)) 732this.$element=$(element) 733this.affixed=null 734this.unpin=null 735this.pinnedOffset=null 736this.checkPosition()} 737Affix.VERSION='3.3.5' 738Affix.RESET='affix affix-top affix-bottom' 739Affix.DEFAULTS={offset:0,target:window} 740Affix.prototype.getState=function(scrollHeight,height,offsetTop,offsetBottom){var scrollTop=this.$target.scrollTop() 741var position=this.$element.offset() 742var targetHeight=this.$target.height() 743if(offsetTop!=null&&this.affixed=='top')return scrollTop<offsetTop?'top':false 744if(this.affixed=='bottom'){if(offsetTop!=null)return(scrollTop+this.unpin<=position.top)?false:'bottom' 745return(scrollTop+targetHeight<=scrollHeight-offsetBottom)?false:'bottom'} 746var initializing=this.affixed==null 747var colliderTop=initializing?scrollTop:position.top 748var colliderHeight=initializing?targetHeight:height 749if(offsetTop!=null&&scrollTop<=offsetTop)return'top' 750if(offsetBottom!=null&&(colliderTop+colliderHeight>=scrollHeight-offsetBottom))return'bottom' 751return false} 752Affix.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset 753this.$element.removeClass(Affix.RESET).addClass('affix') 754var scrollTop=this.$target.scrollTop() 755var position=this.$element.offset() 756return(this.pinnedOffset=position.top-scrollTop)} 757Affix.prototype.checkPositionWithEventLoop=function(){setTimeout($.proxy(this.checkPosition,this),1)} 758Affix.prototype.checkPosition=function(){if(!this.$element.is(':visible'))return 759var height=this.$element.height() 760var offset=this.options.offset 761var offsetTop=offset.top 762var offsetBottom=offset.bottom 763var scrollHeight=Math.max($(document).height(),$(document.body).height()) 764if(typeof offset!='object')offsetBottom=offsetTop=offset 765if(typeof offsetTop=='function')offsetTop=offset.top(this.$element) 766if(typeof offsetBottom=='function')offsetBottom=offset.bottom(this.$element) 767var affix=this.getState(scrollHeight,height,offsetTop,offsetBottom) 768if(this.affixed!=affix){if(this.unpin!=null)this.$element.css('top','') 769var affixType='affix'+(affix?'-'+affix:'') 770var e=$.Event(affixType+'.bs.affix') 771this.$element.trigger(e) 772if(e.isDefaultPrevented())return 773this.affixed=affix 774this.unpin=affix=='bottom'?this.getPinnedOffset():null 775this.$element.removeClass(Affix.RESET).addClass(affixType).trigger(affixType.replace('affix','affixed')+'.bs.affix')} 776if(affix=='bottom'){this.$element.offset({top:scrollHeight-height-offsetBottom})}} 777function Plugin(option){return this.each(function(){var $this=$(this) 778var data=$this.data('bs.affix') 779var options=typeof option=='object'&&option 780if(!data)$this.data('bs.affix',(data=new Affix(this,options))) 781if(typeof option=='string')data[option]()})} 782var old=$.fn.affix 783$.fn.affix=Plugin 784$.fn.affix.Constructor=Affix 785$.fn.affix.noConflict=function(){$.fn.affix=old 786return this} 787$(window).on('load',function(){$('[data-spy="affix"]').each(function(){var $spy=$(this) 788var data=$spy.data() 789data.offset=data.offset||{} 790if(data.offsetBottom!=null)data.offset.bottom=data.offsetBottom 791if(data.offsetTop!=null)data.offset.top=data.offsetTop 792Plugin.call($spy,data)})})}(jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.