PageSourceSearch

https://www.pharmacosmetica.ru/templates/pharmacosmetica/js/bootst…=5f9f230f646d03720d050934eba103b1d8554bff

js pharmacosmetica.ru collected 2026-09-24 17:58:16 UTC 46,944 bytes, 798 lines download raw bytes

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