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