PageSourceSearch

https://www.mineduc.gob.gt/qcs/assets/js/bootstrap.js

js mineduc.gob.gt collected 2026-09-24 09:02:07 UTC 45,463 bytes, 757 lines download raw bytes

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