PageSourceSearch

https://ais.by/sites/ais.by/files/js/js_CwP66t6LdsqLgaXhhlSqVekMekJtInqRpmnECh57PGw.js

js ais.by collected 2026-10-02 07:48:26 UTC 68,386 bytes, 2,346 lines download raw bytes

vendor: 10,649 bytes, lines 1-379
1/* ========================================================================
2 * Bootstrap: affix.js v3.3.5
3 * http://getbootstrap.com/javascript/#affix
4 * ========================================================================
5 * Copyright 2011-2015 Twitter, Inc.
6 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
7 * ======================================================================== */
8
9
10+function ($) {
11  'use strict';
12
13  // AFFIX CLASS DEFINITION
14  // ======================
15
16  var Affix = function (element, options) {
17    this.options = $.extend({}, Affix.DEFAULTS, options)
18
19    this.$target = $(this.options.target)
20      .on('scroll.bs.affix.data-api', $.proxy(this.checkPosition, this))
21      .on('click.bs.affix.data-api',  $.proxy(this.checkPositionWithEventLoop, this))
22
23    this.$element     = $(element)
24    this.affixed      = null
25    this.unpin        = null
26    this.pinnedOffset = null
27
28    this.checkPosition()
29  }
30
31  Affix.VERSION  = '3.3.5'
32
33  Affix.RESET    = 'affix affix-top affix-bottom'
34
35  Affix.DEFAULTS = {
36    offset: 0,
37    target: window
38  }
39
40  Affix.prototype.getState = function (scrollHeight, height, offsetTop, offsetBottom) {
41    var scrollTop    = this.$target.scrollTop()
42    var position     = this.$element.offset()
43    var targetHeight = this.$target.height()
44
45    if (offsetTop != null && this.affixed == 'top') return scrollTop < offsetTop ? 'top' : false
46
47    if (this.affixed == 'bottom') {
48      if (offsetTop != null) return (scrollTop + this.unpin <= position.top) ? false : 'bottom'
49      return (scrollTop + targetHeight <= scrollHeight - offsetBottom) ? false : 'bottom'
50    }
51
52    var initializing   = this.affixed == null
53    var colliderTop    = initializing ? scrollTop : position.top
54    var colliderHeight = initializing ? targetHeight : height
55
56    if (offsetTop != null && scrollTop <= offsetTop) return 'top'
57    if (offsetBottom != null && (colliderTop + colliderHeight >= scrollHeight - offsetBottom)) return 'bottom'
58
59    return false
60  }
61
62  Affix.prototype.getPinnedOffset = function () {
63    if (this.pinnedOffset) return this.pinnedOffset
64    this.$element.removeClass(Affix.RESET).addClass('affix')
65    var scrollTop = this.$target.scrollTop()
66    var position  = this.$element.offset()
67    return (this.pinnedOffset = position.top - scrollTop)
68  }
69
70  Affix.prototype.checkPositionWithEventLoop = function () {
71    setTimeout($.proxy(this.checkPosition, this), 1)
72  }
73
74  Affix.prototype.checkPosition = function () {
75    if (!this.$element.is(':visible')) return
76
77    var height       = this.$element.height()
78    var offset       = this.options.offset
79    var offsetTop    = offset.top
80    var offsetBottom = offset.bottom
81    var scrollHeight = Math.max($(document).height(), $(document.body).height())
82
83    if (typeof offset != 'object')         offsetBottom = offsetTop = offset
84    if (typeof offsetTop == 'function')    offsetTop    = offset.top(this.$element)
85    if (typeof offsetBottom == 'function') offsetBottom = offset.bottom(this.$element)
86
87    var affix = this.getState(scrollHeight, height, offsetTop, offsetBottom)
88
89    if (this.affixed != affix) {
90      if (this.unpin != null) this.$element.css('top', '')
91
92      var affixType = 'affix' + (affix ? '-' + affix : '')
93      var e         = $.Event(affixType + '.bs.affix')
94
95      this.$element.trigger(e)
96
97      if (e.isDefaultPrevented()) return
98
99      this.affixed = affix
100      this.unpin = affix == 'bottom' ? this.getPinnedOffset() : null
101
102      this.$element
103        .removeClass(Affix.RESET)
104        .addClass(affixType)
105        .trigger(affixType.replace('affix', 'affixed') + '.bs.affix')
106    }
107
108    if (affix == 'bottom') {
109      this.$element.offset({
110        top: scrollHeight - height - offsetBottom
111      })
112    }
113  }
114
115
116  // AFFIX PLUGIN DEFINITION
117  // =======================
118
119  function Plugin(option) {
120    return this.each(function () {
121      var $this   = $(this)
122      var data    = $this.data('bs.affix')
123      var options = typeof option == 'object' && option
124
125      if (!data) $this.data('bs.affix', (data = new Affix(this, options)))
126      if (typeof option == 'string') data[option]()
127    })
128  }
129
130  var old = $.fn.affix
131
132  $.fn.affix             = Plugin
133  $.fn.affix.Constructor = Affix
134
135
136  // AFFIX NO CONFLICT
137  // =================
138
139  $.fn.affix.noConflict = function () {
140    $.fn.affix = old
141    return this
142  }
143
144
145  // AFFIX DATA-API
146  // ==============
147
148  $(window).on('load', function () {
149    $('[data-spy="affix"]').each(function () {
150      var $spy = $(this)
151      var data = $spy.data()
152
153      data.offset = data.offset || {}
154
155      if (data.offsetBottom != null) data.offset.bottom = data.offsetBottom
156      if (data.offsetTop    != null) data.offset.top    = data.offsetTop
157
158      Plugin.call($spy, data)
159    })
160  })
161
162}(jQuery);
163;
164/* ========================================================================
165 * Bootstrap: alert.js v3.3.5
166 * http://getbootstrap.com/javascript/#alerts
167 * ========================================================================
168 * Copyright 2011-2015 Twitter, Inc.
169 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
170 * ======================================================================== */
171
172
173+function ($) {
174  'use strict';
175
176  // ALERT CLASS DEFINITION
177  // ======================
178
179  var dismiss = '[data-dismiss="alert"]'
180  var Alert   = function (el) {
181    $(el).on('click', dismiss, this.close)
182  }
183
184  Alert.VERSION = '3.3.5'
185
186  Alert.TRANSITION_DURATION = 150
187
188  Alert.prototype.close = function (e) {
189    var $this    = $(this)
190    var selector = $this.attr('data-target')
191
192    if (!selector) {
193      selector = $this.attr('href')
194      selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7
195    }
196
197    var $parent = $(selector)
198
199    if (e) e.preventDefault()
200
201    if (!$parent.length) {
202      $parent = $this.closest('.alert')
203    }
204
205    $parent.trigger(e = $.Event('close.bs.alert'))
206
207    if (e.isDefaultPrevented()) return
208
209    $parent.removeClass('in')
210
211    function removeElement() {
212      // detach from parent, fire event then clean up data
213      $parent.detach().trigger('closed.bs.alert').remove()
214    }
215
216    $.support.transition && $parent.hasClass('fade') ?
217      $parent
218        .one('bsTransitionEnd', removeElement)
219        .emulateTransitionEnd(Alert.TRANSITION_DURATION) :
220      removeElement()
221  }
222
223
224  // ALERT PLUGIN DEFINITION
225  // =======================
226
227  function Plugin(option) {
228    return this.each(function () {
229      var $this = $(this)
230      var data  = $this.data('bs.alert')
231
232      if (!data) $this.data('bs.alert', (data = new Alert(this)))
233      if (typeof option == 'string') data[option].call($this)
234    })
235  }
236
237  var old = $.fn.alert
238
239  $.fn.alert             = Plugin
240  $.fn.alert.Constructor = Alert
241
242
243  // ALERT NO CONFLICT
244  // =================
245
246  $.fn.alert.noConflict = function () {
247    $.fn.alert = old
248    return this
249  }
250
251
252  // ALERT DATA-API
253  // ==============
254
255  $(document).on('click.bs.alert.data-api', dismiss, Alert.prototype.close)
256
257}(jQuery);
258;
259/* ========================================================================
260 * Bootstrap: button.js v3.3.5
261 * http://getbootstrap.com/javascript/#buttons
262 * ========================================================================
263 * Copyright 2011-2015 Twitter, Inc.
264 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
265 * ======================================================================== */
266
267
268+function ($) {
269  'use strict';
270
271  // BUTTON PUBLIC CLASS DEFINITION
272  // ==============================
273
274  var Button = function (element, options) {
275    this.$element  = $(element)
276    this.options   = $.extend({}, Button.DEFAULTS, options)
277    this.isLoading = false
278  }
279
280  Button.VERSION  = '3.3.5'
281
282  Button.DEFAULTS = {
283    loadingText: 'loading...'
284  }
285
286  Button.prototype.setState = function (state) {
287    var d    = 'disabled'
288    var $el  = this.$element
289    var val  = $el.is('input') ? 'val' : 'html'
290    var data = $el.data()
291
292    state += 'Text'
293
294    if (data.resetText == null) $el.data('resetText', $el[val]())
295
296    // push to event loop to allow forms to submit
297    setTimeout($.proxy(function () {
298      $el[val](data[state] == null ? this.options[state] : data[state])
299
300      if (state == 'loadingText') {
301        this.isLoading = true
302        $el.addClass(d).attr(d, d)
303      } else if (this.isLoading) {
304        this.isLoading = false
305        $el.removeClass(d).removeAttr(d)
306      }
307    }, this), 0)
308  }
309
310  Button.prototype.toggle = function () {
311    var changed = true
312    var $parent = this.$element.closest('[data-toggle="buttons"]')
313
314    if ($parent.length) {
315      var $input = this.$element.find('input')
316      if ($input.prop('type') == 'radio') {
317        if ($input.prop('checked')) changed = false
318        $parent.find('.active').removeClass('active')
319        this.$element.addClass('active')
320      } else if ($input.prop('type') == 'checkbox') {
321        if (($input.prop('checked')) !== this.$element.hasClass('active')) changed = false
322        this.$element.toggleClass('active')
323      }
324      $input.prop('checked', this.$element.hasClass('active'))
325      if (changed) $input.trigger('change')
326    } else {
327      this.$element.attr('aria-pressed', !this.$element.hasClass('active'))
328      this.$element.toggleClass('active')
329    }
330  }
331
332
333  // BUTTON PLUGIN DEFINITION
334  // ========================
335
336  function Plugin(option) {
337    return this.each(function () {
338      var $this   = $(this)
339      var data    = $this.data('bs.button')
340      var options = typeof option == 'object' && option
341
342      if (!data) $this.data('bs.button', (data = new Button(this, options)))
343
344      if (option == 'toggle') data.toggle()
345      else if (option) data.setState(option)
346    })
347  }
348
349  var old = $.fn.button
350
351  $.fn.button             = Plugin
352  $.fn.button.Constructor = Button
353
354
355  // BUTTON NO CONFLICT
356  // ==================
357
358  $.fn.button.noConflict = function () {
359    $.fn.button = old
360    return this
361  }
362
363
364  // BUTTON DATA-API
365  // ===============
366
367  $(document)
368    .on('click.bs.button.data-api', '[data-toggle^="button"]', function (e) {
369      var $btn = $(e.target)
370      if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn')
371      Plugin.call($btn, 'toggle')
372      if (!($(e.target).is('input[type="radio"]') || $(e.target).is('input[type="checkbox"]'))) e.preventDefault()
373    })
374    .on('focus.bs.button.data-api blur.bs.button.data-api', '[data-toggle^="button"]', function (e) {
375      $(e.target).closest('.btn').toggleClass('focus', /^focus(in)?$/.test(e.type))
376    })
377
378}(jQuery);
379;
vendor: 7,142 bytes, lines 379-616
379
380/* ========================================================================
381 * Bootstrap: carousel.js v3.3.5
382 * http://getbootstrap.com/javascript/#carousel
383 * ========================================================================
384 * Copyright 2011-2015 Twitter, Inc.
385 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
386 * ======================================================================== */
387
388
389+function ($) {
390  'use strict';
391
392  // CAROUSEL CLASS DEFINITION
393  // =========================
394
395  var Carousel = function (element, options) {
396    this.$element    = $(element)
397    this.$indicators = this.$element.find('.carousel-indicators')
398    this.options     = options
399    this.paused      = null
400    this.sliding     = null
401    this.interval    = null
402    this.$active     = null
403    this.$items      = null
404
405    this.options.keyboard && this.$element.on('keydown.bs.carousel', $.proxy(this.keydown, this))
406
407    this.options.pause == 'hover' && !('ontouchstart' in document.documentElement) && this.$element
408      .on('mouseenter.bs.carousel', $.proxy(this.pause, this))
409      .on('mouseleave.bs.carousel', $.proxy(this.cycle, this))
410  }
411
412  Carousel.VERSION  = '3.3.5'
413
414  Carousel.TRANSITION_DURATION = 600
415
416  Carousel.DEFAULTS = {
417    interval: 5000,
418    pause: 'hover',
419    wrap: true,
420    keyboard: true
421  }
422
423  Carousel.prototype.keydown = function (e) {
424    if (/input|textarea/i.test(e.target.tagName)) return
425    switch (e.which) {
426      case 37: this.prev(); break
427      case 39: this.next(); break
428      default: return
429    }
430
431    e.preventDefault()
432  }
433
434  Carousel.prototype.cycle = function (e) {
435    e || (this.paused = false)
436
437    this.interval && clearInterval(this.interval)
438
439    this.options.interval
440      && !this.paused
441      && (this.interval = setInterval($.proxy(this.next, this), this.options.interval))
442
443    return this
444  }
445
446  Carousel.prototype.getItemIndex = function (item) {
447    this.$items = item.parent().children('.item')
448    return this.$items.index(item || this.$active)
449  }
450
451  Carousel.prototype.getItemForDirection = function (direction, active) {
452    var activeIndex = this.getItemIndex(active)
453    var willWrap = (direction == 'prev' && activeIndex === 0)
454                || (direction == 'next' && activeIndex == (this.$items.length - 1))
455    if (willWrap && !this.options.wrap) return active
456    var delta = direction == 'prev' ? -1 : 1
457    var itemIndex = (activeIndex + delta) % this.$items.length
458    return this.$items.eq(itemIndex)
459  }
460
461  Carousel.prototype.to = function (pos) {
462    var that        = this
463    var activeIndex = this.getItemIndex(this.$active = this.$element.find('.item.active'))
464
465    if (pos > (this.$items.length - 1) || pos < 0) return
466
467    if (this.sliding)       return this.$element.one('slid.bs.carousel', function () { that.to(pos) }) // yes, "slid"
468    if (activeIndex == pos) return this.pause().cycle()
469
470    return this.slide(pos > activeIndex ? 'next' : 'prev', this.$items.eq(pos))
471  }
472
473  Carousel.prototype.pause = function (e) {
474    e || (this.paused = true)
475
476    if (this.$element.find('.next, .prev').length && $.support.transition) {
477      this.$element.trigger($.support.transition.end)
478      this.cycle(true)
479    }
480
481    this.interval = clearInterval(this.interval)
482
483    return this
484  }
485
486  Carousel.prototype.next = function () {
487    if (this.sliding) return
488    return this.slide('next')
489  }
490
491  Carousel.prototype.prev = function () {
492    if (this.sliding) return
493    return this.slide('prev')
494  }
495
496  Carousel.prototype.slide = function (type, next) {
497    var $active   = this.$element.find('.item.active')
498    var $next     = next || this.getItemForDirection(type, $active)
499    var isCycling = this.interval
500    var direction = type == 'next' ? 'left' : 'right'
501    var that      = this
502
503    if ($next.hasClass('active')) return (this.sliding = false)
504
505    var relatedTarget = $next[0]
506    var slideEvent = $.Event('slide.bs.carousel', {
507      relatedTarget: relatedTarget,
508      direction: direction
509    })
510    this.$element.trigger(slideEvent)
511    if (slideEvent.isDefaultPrevented()) return
512
513    this.sliding = true
514
515    isCycling && this.pause()
516
517    if (this.$indicators.length) {
518      this.$indicators.find('.active').removeClass('active')
519      var $nextIndicator = $(this.$indicators.children()[this.getItemIndex($next)])
520      $nextIndicator && $nextIndicator.addClass('active')
521    }
522
523    var slidEvent = $.Event('slid.bs.carousel', { relatedTarget: relatedTarget, direction: direction }) // yes, "slid"
524    if ($.support.transition && this.$element.hasClass('slide')) {
525      $next.addClass(type)
526      $next[0].offsetWidth // force reflow
527      $active.addClass(direction)
528      $next.addClass(direction)
529      $active
530        .one('bsTransitionEnd', function () {
531          $next.removeClass([type, direction].join(' ')).addClass('active')
532          $active.removeClass(['active', direction].join(' '))
533          that.sliding = false
534          setTimeout(function () {
535            that.$element.trigger(slidEvent)
536          }, 0)
537        })
538        .emulateTransitionEnd(Carousel.TRANSITION_DURATION)
539    } else {
540      $active.removeClass('active')
541      $next.addClass('active')
542      this.sliding = false
543      this.$element.trigger(slidEvent)
544    }
545
546    isCycling && this.cycle()
547
548    return this
549  }
550
551
552  // CAROUSEL PLUGIN DEFINITION
553  // ==========================
554
555  function Plugin(option) {
556    return this.each(function () {
557      var $this   = $(this)
558      var data    = $this.data('bs.carousel')
559      var options = $.extend({}, Carousel.DEFAULTS, $this.data(), typeof option == 'object' && option)
560      var action  = typeof option == 'string' ? option : options.slide
561
562      if (!data) $this.data('bs.carousel', (data = new Carousel(this, options)))
563      if (typeof option == 'number') data.to(option)
564      else if (action) data[action]()
565      else if (options.interval) data.pause().cycle()
566    })
567  }
568
569  var old = $.fn.carousel
570
571  $.fn.carousel             = Plugin
572  $.fn.carousel.Constructor = Carousel
573
574
575  // CAROUSEL NO CONFLICT
576  // ====================
577
578  $.fn.carousel.noConflict = function () {
579    $.fn.carousel = old
580    return this
581  }
582
583
584  // CAROUSEL DATA-API
585  // =================
586
587  var clickHandler = function (e) {
588    var href
589    var $this   = $(this)
590    var $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) // strip for ie7
591    if (!$target.hasClass('carousel')) return
592    var options = $.extend({}, $target.data(), $this.data())
593    var slideIndex = $this.attr('data-slide-to')
594    if (slideIndex) options.interval = false
595
596    Plugin.call($target, options)
597
598    if (slideIndex) {
599      $target.data('bs.carousel').to(slideIndex)
600    }
601
602    e.preventDefault()
603  }
604
605  $(document)
606    .on('click.bs.carousel.data-api', '[data-slide]', clickHandler)
607    .on('click.bs.carousel.data-api', '[data-slide-to]', clickHandler)
608
609  $(window).on('load', function () {
610    $('[data-ride="carousel"]').each(function () {
611      var $carousel = $(this)
612      Plugin.call($carousel, $carousel.data())
613    })
614  })
615
616}(jQuery);
vendor: 20,633 bytes, lines 617-1333
617;
618/* ========================================================================
619 * Bootstrap: collapse.js v3.3.5
620 * http://getbootstrap.com/javascript/#collapse
621 * ========================================================================
622 * Copyright 2011-2015 Twitter, Inc.
623 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
624 * ======================================================================== */
625
626
627+function ($) {
628  'use strict';
629
630  // COLLAPSE PUBLIC CLASS DEFINITION
631  // ================================
632
633  var Collapse = function (element, options) {
634    this.$element      = $(element)
635    this.options       = $.extend({}, Collapse.DEFAULTS, options)
636    this.$trigger      = $('[data-toggle="collapse"][href="#' + element.id + '"],' +
637                           '[data-toggle="collapse"][data-target="#' + element.id + '"]')
638    this.transitioning = null
639
640    if (this.options.parent) {
641      this.$parent = this.getParent()
642    } else {
643      this.addAriaAndCollapsedClass(this.$element, this.$trigger)
644    }
645
646    if (this.options.toggle) this.toggle()
647  }
648
649  Collapse.VERSION  = '3.3.5'
650
651  Collapse.TRANSITION_DURATION = 350
652
653  Collapse.DEFAULTS = {
654    toggle: true
655  }
656
657  Collapse.prototype.dimension = function () {
658    var hasWidth = this.$element.hasClass('width')
659    return hasWidth ? 'width' : 'height'
660  }
661
662  Collapse.prototype.show = function () {
663    if (this.transitioning || this.$element.hasClass('in')) return
664
665    var activesData
666    var actives = this.$parent && this.$parent.children('.panel').children('.in, .collapsing')
667
668    if (actives && actives.length) {
669      activesData = actives.data('bs.collapse')
670      if (activesData && activesData.transitioning) return
671    }
672
673    var startEvent = $.Event('show.bs.collapse')
674    this.$element.trigger(startEvent)
675    if (startEvent.isDefaultPrevented()) return
676
677    if (actives && actives.length) {
678      Plugin.call(actives, 'hide')
679      activesData || actives.data('bs.collapse', null)
680    }
681
682    var dimension = this.dimension()
683
684    this.$element
685      .removeClass('collapse')
686      .addClass('collapsing')[dimension](0)
687      .attr('aria-expanded', true)
688
689    this.$trigger
690      .removeClass('collapsed')
691      .attr('aria-expanded', true)
692
693    this.transitioning = 1
694
695    var complete = function () {
696      this.$element
697        .removeClass('collapsing')
698        .addClass('collapse in')[dimension]('')
699      this.transitioning = 0
700      this.$element
701        .trigger('shown.bs.collapse')
702    }
703
704    if (!$.support.transition) return complete.call(this)
705
706    var scrollSize = $.camelCase(['scroll', dimension].join('-'))
707
708    this.$element
709      .one('bsTransitionEnd', $.proxy(complete, this))
710      .emulateTransitionEnd(Collapse.TRANSITION_DURATION)[dimension](this.$element[0][scrollSize])
711  }
712
713  Collapse.prototype.hide = function () {
714    if (this.transitioning || !this.$element.hasClass('in')) return
715
716    var startEvent = $.Event('hide.bs.collapse')
717    this.$element.trigger(startEvent)
718    if (startEvent.isDefaultPrevented()) return
719
720    var dimension = this.dimension()
721
722    this.$element[dimension](this.$element[dimension]())[0].offsetHeight
723
724    this.$element
725      .addClass('collapsing')
726      .removeClass('collapse in')
727      .attr('aria-expanded', false)
728
729    this.$trigger
730      .addClass('collapsed')
731      .attr('aria-expanded', false)
732
733    this.transitioning = 1
734
735    var complete = function () {
736      this.transitioning = 0
737      this.$element
738        .removeClass('collapsing')
739        .addClass('collapse')
740        .trigger('hidden.bs.collapse')
741    }
742
743    if (!$.support.transition) return complete.call(this)
744
745    this.$element
746      [dimension](0)
747      .one('bsTransitionEnd', $.proxy(complete, this))
748      .emulateTransitionEnd(Collapse.TRANSITION_DURATION)
749  }
750
751  Collapse.prototype.toggle = function () {
752    this[this.$element.hasClass('in') ? 'hide' : 'show']()
753  }
754
755  Collapse.prototype.getParent = function () {
756    return $(this.options.parent)
757      .find('[data-toggle="collapse"][data-parent="' + this.options.parent + '"]')
758      .each($.proxy(function (i, element) {
759        var $element = $(element)
760        this.addAriaAndCollapsedClass(getTargetFromTrigger($element), $element)
761      }, this))
762      .end()
763  }
764
765  Collapse.prototype.addAriaAndCollapsedClass = function ($element, $trigger) {
766    var isOpen = $element.hasClass('in')
767
768    $element.attr('aria-expanded', isOpen)
769    $trigger
770      .toggleClass('collapsed', !isOpen)
771      .attr('aria-expanded', isOpen)
772  }
773
774  function getTargetFromTrigger($trigger) {
775    var href
776    var target = $trigger.attr('data-target')
777      || (href = $trigger.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') // strip for ie7
778
779    return $(target)
780  }
781
782
783  // COLLAPSE PLUGIN DEFINITION
784  // ==========================
785
786  function Plugin(option) {
787    return this.each(function () {
788      var $this   = $(this)
789      var data    = $this.data('bs.collapse')
790      var options = $.extend({}, Collapse.DEFAULTS, $this.data(), typeof option == 'object' && option)
791
792      if (!data && options.toggle && /show|hide/.test(option)) options.toggle = false
793      if (!data) $this.data('bs.collapse', (data = new Collapse(this, options)))
794      if (typeof option == 'string') data[option]()
795    })
796  }
797
798  var old = $.fn.collapse
799
800  $.fn.collapse             = Plugin
801  $.fn.collapse.Constructor = Collapse
802
803
804  // COLLAPSE NO CONFLICT
805  // ====================
806
807  $.fn.collapse.noConflict = function () {
808    $.fn.collapse = old
809    return this
810  }
811
812
813  // COLLAPSE DATA-API
814  // =================
815
816  $(document).on('click.bs.collapse.data-api', '[data-toggle="collapse"]', function (e) {
817    var $this   = $(this)
818
819    if (!$this.attr('data-target')) e.preventDefault()
820
821    var $target = getTargetFromTrigger($this)
822    var data    = $target.data('bs.collapse')
823    var option  = data ? 'toggle' : $this.data()
824
825    Plugin.call($target, option)
826  })
827
828}(jQuery);
829;
830/* ========================================================================
831 * Bootstrap: dropdown.js v3.3.5
832 * http://getbootstrap.com/javascript/#dropdowns
833 * ========================================================================
834 * Copyright 2011-2015 Twitter, Inc.
835 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
836 * ======================================================================== */
837
838
839+function ($) {
840  'use strict';
841
842  // DROPDOWN CLASS DEFINITION
843  // =========================
844
845  var backdrop = '.dropdown-backdrop'
846  var toggle   = '[data-toggle="dropdown"]'
847  var Dropdown = function (element) {
848    $(element).on('click.bs.dropdown', this.toggle)
849  }
850
851  Dropdown.VERSION = '3.3.5'
852
853  function getParent($this) {
854    var selector = $this.attr('data-target')
855
856    if (!selector) {
857      selector = $this.attr('href')
858      selector = selector && /#[A-Za-z]/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7
859    }
860
861    var $parent = selector && $(selector)
862
863    return $parent && $parent.length ? $parent : $this.parent()
864  }
865
866  function clearMenus(e) {
867    if (e && e.which === 3) return
868    $(backdrop).remove()
869    $(toggle).each(function () {
870      var $this         = $(this)
871      var $parent       = getParent($this)
872      var relatedTarget = { relatedTarget: this }
873
874      if (!$parent.hasClass('open')) return
875
876      if (e && e.type == 'click' && /input|textarea/i.test(e.target.tagName) && $.contains($parent[0], e.target)) return
877
878      $parent.trigger(e = $.Event('hide.bs.dropdown', relatedTarget))
879
880      if (e.isDefaultPrevented()) return
881
882      $this.attr('aria-expanded', 'false')
883      $parent.removeClass('open').trigger('hidden.bs.dropdown', relatedTarget)
884    })
885  }
886
887  Dropdown.prototype.toggle = function (e) {
888    var $this = $(this)
889
890    if ($this.is('.disabled, :disabled')) return
891
892    var $parent  = getParent($this)
893    var isActive = $parent.hasClass('open')
894
895    clearMenus()
896
897    if (!isActive) {
898      if ('ontouchstart' in document.documentElement && !$parent.closest('.navbar-nav').length) {
899        // if mobile we use a backdrop because click events don't delegate
900        $(document.createElement('div'))
901          .addClass('dropdown-backdrop')
902          .insertAfter($(this))
903          .on('click', clearMenus)
904      }
905
906      var relatedTarget = { relatedTarget: this }
907      $parent.trigger(e = $.Event('show.bs.dropdown', relatedTarget))
908
909      if (e.isDefaultPrevented()) return
910
911      $this
912        .trigger('focus')
913        .attr('aria-expanded', 'true')
914
915      $parent
916        .toggleClass('open')
917        .trigger('shown.bs.dropdown', relatedTarget)
918    }
919
920    return false
921  }
922
923  Dropdown.prototype.keydown = function (e) {
924    if (!/(38|40|27|32)/.test(e.which) || /input|textarea/i.test(e.target.tagName)) return
925
926    var $this = $(this)
927
928    e.preventDefault()
929    e.stopPropagation()
930
931    if ($this.is('.disabled, :disabled')) return
932
933    var $parent  = getParent($this)
934    var isActive = $parent.hasClass('open')
935
936    if (!isActive && e.which != 27 || isActive && e.which == 27) {
937      if (e.which == 27) $parent.find(toggle).trigger('focus')
938      return $this.trigger('click')
939    }
940
941    var desc = ' li:not(.disabled):visible a'
942    var $items = $parent.find('.dropdown-menu' + desc)
943
944    if (!$items.length) return
945
946    var index = $items.index(e.target)
947
948    if (e.which == 38 && index > 0)                 index--         // up
949    if (e.which == 40 && index < $items.length - 1) index++         // down
950    if (!~index)                                    index = 0
951
952    $items.eq(index).trigger('focus')
953  }
954
955
956  // DROPDOWN PLUGIN DEFINITION
957  // ==========================
958
959  function Plugin(option) {
960    return this.each(function () {
961      var $this = $(this)
962      var data  = $this.data('bs.dropdown')
963
964      if (!data) $this.data('bs.dropdown', (data = new Dropdown(this)))
965      if (typeof option == 'string') data[option].call($this)
966    })
967  }
968
969  var old = $.fn.dropdown
970
971  $.fn.dropdown             = Plugin
972  $.fn.dropdown.Constructor = Dropdown
973
974
975  // DROPDOWN NO CONFLICT
976  // ====================
977
978  $.fn.dropdown.noConflict = function () {
979    $.fn.dropdown = old
980    return this
981  }
982
983
984  // APPLY TO STANDARD DROPDOWN ELEMENTS
985  // ===================================
986
987  $(document)
988    .on('click.bs.dropdown.data-api', clearMenus)
989    .on('click.bs.dropdown.data-api', '.dropdown form', function (e) { e.stopPropagation() })
990    .on('click.bs.dropdown.data-api', toggle, Dropdown.prototype.toggle)
991    .on('keydown.bs.dropdown.data-api', toggle, Dropdown.prototype.keydown)
992    .on('keydown.bs.dropdown.data-api', '.dropdown-menu', Dropdown.prototype.keydown)
993
994}(jQuery);
995;
996/* ========================================================================
997 * Bootstrap: modal.js v3.3.5
998 * http://getbootstrap.com/javascript/#modals
999 * ========================================================================
1000 * Copyright 2011-2015 Twitter, Inc.
1001 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
1002 * ======================================================================== */
1003
1004
1005+function ($) {
1006  'use strict';
1007
1008  // MODAL CLASS DEFINITION
1009  // ======================
1010
1011  var Modal = function (element, options) {
1012    this.options             = options
1013    this.$body               = $(document.body)
1014    this.$element            = $(element)
1015    this.$dialog             = this.$element.find('.modal-dialog')
1016    this.$backdrop           = null
1017    this.isShown             = null
1018    this.originalBodyPad     = null
1019    this.scrollbarWidth      = 0
1020    this.ignoreBackdropClick = false
1021
1022    if (this.options.remote) {
1023      this.$element
1024        .find('.modal-content')
1025        .load(this.options.remote, $.proxy(function () {
1026          this.$element.trigger('loaded.bs.modal')
1027        }, this))
1028    }
1029  }
1030
1031  Modal.VERSION  = '3.3.5'
1032
1033  Modal.TRANSITION_DURATION = 300
1034  Modal.BACKDROP_TRANSITION_DURATION = 150
1035
1036  Modal.DEFAULTS = {
1037    backdrop: true,
1038    keyboard: true,
1039    show: true
1040  }
1041
1042  Modal.prototype.toggle = function (_relatedTarget) {
1043    return this.isShown ? this.hide() : this.show(_relatedTarget)
1044  }
1045
1046  Modal.prototype.show = function (_relatedTarget) {
1047    var that = this
1048    var e    = $.Event('show.bs.modal', { relatedTarget: _relatedTarget })
1049
1050    this.$element.trigger(e)
1051
1052    if (this.isShown || e.isDefaultPrevented()) return
1053
1054    this.isShown = true
1055
1056    this.checkScrollbar()
1057    this.setScrollbar()
1058    this.$body.addClass('modal-open')
1059
1060    this.escape()
1061    this.resize()
1062
1063    this.$element.on('click.dismiss.bs.modal', '[data-dismiss="modal"]', $.proxy(this.hide, this))
1064
1065    this.$dialog.on('mousedown.dismiss.bs.modal', function () {
1066      that.$element.one('mouseup.dismiss.bs.modal', function (e) {
1067        if ($(e.target).is(that.$element)) that.ignoreBackdropClick = true
1068      })
1069    })
1070
1071    this.backdrop(function () {
1072      var transition = $.support.transition && that.$element.hasClass('fade')
1073
1074      if (!that.$element.parent().length) {
1075        that.$element.appendTo(that.$body) // don't move modals dom position
1076      }
1077
1078      that.$element
1079        .show()
1080        .scrollTop(0)
1081
1082      that.adjustDialog()
1083
1084      if (transition) {
1085        that.$element[0].offsetWidth // force reflow
1086      }
1087
1088      that.$element.addClass('in')
1089
1090      that.enforceFocus()
1091
1092      var e = $.Event('shown.bs.modal', { relatedTarget: _relatedTarget })
1093
1094      transition ?
1095        that.$dialog // wait for modal to slide in
1096          .one('bsTransitionEnd', function () {
1097            that.$element.trigger('focus').trigger(e)
1098          })
1099          .emulateTransitionEnd(Modal.TRANSITION_DURATION) :
1100        that.$element.trigger('focus').trigger(e)
1101    })
1102  }
1103
1104  Modal.prototype.hide = function (e) {
1105    if (e) e.preventDefault()
1106
1107    e = $.Event('hide.bs.modal')
1108
1109    this.$element.trigger(e)
1110
1111    if (!this.isShown || e.isDefaultPrevented()) return
1112
1113    this.isShown = false
1114
1115    this.escape()
1116    this.resize()
1117
1118    $(document).off('focusin.bs.modal')
1119
1120    this.$element
1121      .removeClass('in')
1122      .off('click.dismiss.bs.modal')
1123      .off('mouseup.dismiss.bs.modal')
1124
1125    this.$dialog.off('mousedown.dismiss.bs.modal')
1126
1127    $.support.transition && this.$element.hasClass('fade') ?
1128      this.$element
1129        .one('bsTransitionEnd', $.proxy(this.hideModal, this))
1130        .emulateTransitionEnd(Modal.TRANSITION_DURATION) :
1131      this.hideModal()
1132  }
1133
1134  Modal.prototype.enforceFocus = function () {
1135    $(document)
1136      .off('focusin.bs.modal') // guard against infinite focus loop
1137      .on('focusin.bs.modal', $.proxy(function (e) {
1138        if (this.$element[0] !== e.target && !this.$element.has(e.target).length) {
1139          this.$element.trigger('focus')
1140        }
1141      }, this))
1142  }
1143
1144  Modal.prototype.escape = function () {
1145    if (this.isShown && this.options.keyboard) {
1146      this.$element.on('keydown.dismiss.bs.modal', $.proxy(function (e) {
1147        e.which == 27 && this.hide()
1148      }, this))
1149    } else if (!this.isShown) {
1150      this.$element.off('keydown.dismiss.bs.modal')
1151    }
1152  }
1153
1154  Modal.prototype.resize = function () {
1155    if (this.isShown) {
1156      $(window).on('resize.bs.modal', $.proxy(this.handleUpdate, this))
1157    } else {
1158      $(window).off('resize.bs.modal')
1159    }
1160  }
1161
1162  Modal.prototype.hideModal = function () {
1163    var that = this
1164    this.$element.hide()
1165    this.backdrop(function () {
1166      that.$body.removeClass('modal-open')
1167      that.resetAdjustments()
1168      that.resetScrollbar()
1169      that.$element.trigger('hidden.bs.modal')
1170    })
1171  }
1172
1173  Modal.prototype.removeBackdrop = function () {
1174    this.$backdrop && this.$backdrop.remove()
1175    this.$backdrop = null
1176  }
1177
1178  Modal.prototype.backdrop = function (callback) {
1179    var that = this
1180    var animate = this.$element.hasClass('fade') ? 'fade' : ''
1181
1182    if (this.isShown && this.options.backdrop) {
1183      var doAnimate = $.support.transition && animate
1184
1185      this.$backdrop = $(document.createElement('div'))
1186        .addClass('modal-backdrop ' + animate)
1187        .appendTo(this.$body)
1188
1189      this.$element.on('click.dismiss.bs.modal', $.proxy(function (e) {
1190        if (this.ignoreBackdropClick) {
1191          this.ignoreBackdropClick = false
1192          return
1193        }
1194        if (e.target !== e.currentTarget) return
1195        this.options.backdrop == 'static'
1196          ? this.$element[0].focus()
1197          : this.hide()
1198      }, this))
1199
1200      if (doAnimate) this.$backdrop[0].offsetWidth // force reflow
1201
1202      this.$backdrop.addClass('in')
1203
1204      if (!callback) return
1205
1206      doAnimate ?
1207        this.$backdrop
1208          .one('bsTransitionEnd', callback)
1209          .emulateTransitionEnd(Modal.BACKDROP_TRANSITION_DURATION) :
1210        callback()
1211
1212    } else if (!this.isShown && this.$backdrop) {
1213      this.$backdrop.removeClass('in')
1214
1215      var callbackRemove = function () {
1216        that.removeBackdrop()
1217        callback && callback()
1218      }
1219      $.support.transition && this.$element.hasClass('fade') ?
1220        this.$backdrop
1221          .one('bsTransitionEnd', callbackRemove)
1222          .emulateTransitionEnd(Modal.BACKDROP_TRANSITION_DURATION) :
1223        callbackRemove()
1224
1225    } else if (callback) {
1226      callback()
1227    }
1228  }
1229
1230  // these following methods are used to handle overflowing modals
1231
1232  Modal.prototype.handleUpdate = function () {
1233    this.adjustDialog()
1234  }
1235
1236  Modal.prototype.adjustDialog = function () {
1237    var modalIsOverflowing = this.$element[0].scrollHeight > document.documentElement.clientHeight
1238
1239    this.$element.css({
1240      paddingLeft:  !this.bodyIsOverflowing && modalIsOverflowing ? this.scrollbarWidth : '',
1241      paddingRight: this.bodyIsOverflowing && !modalIsOverflowing ? this.scrollbarWidth : ''
1242    })
1243  }
1244
1245  Modal.prototype.resetAdjustments = function () {
1246    this.$element.css({
1247      paddingLeft: '',
1248      paddingRight: ''
1249    })
1250  }
1251
1252  Modal.prototype.checkScrollbar = function () {
1253    var fullWindowWidth = window.innerWidth
1254    if (!fullWindowWidth) { // workaround for missing window.innerWidth in IE8
1255      var documentElementRect = document.documentElement.getBoundingClientRect()
1256      fullWindowWidth = documentElementRect.right - Math.abs(documentElementRect.left)
1257    }
1258    this.bodyIsOverflowing = document.body.clientWidth < fullWindowWidth
1259    this.scrollbarWidth = this.measureScrollbar()
1260  }
1261
1262  Modal.prototype.setScrollbar = function () {
1263    var bodyPad = parseInt((this.$body.css('padding-right') || 0), 10)
1264    this.originalBodyPad = document.body.style.paddingRight || ''
1265    if (this.bodyIsOverflowing) this.$body.css('padding-right', bodyPad + this.scrollbarWidth)
1266  }
1267
1268  Modal.prototype.resetScrollbar = function () {
1269    this.$body.css('padding-right', this.originalBodyPad)
1270  }
1271
1272  Modal.prototype.measureScrollbar = function () { // thx walsh
1273    var scrollDiv = document.createElement('div')
1274    scrollDiv.className = 'modal-scrollbar-measure'
1275    this.$body.append(scrollDiv)
1276    var scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth
1277    this.$body[0].removeChild(scrollDiv)
1278    return scrollbarWidth
1279  }
1280
1281
1282  // MODAL PLUGIN DEFINITION
1283  // =======================
1284
1285  function Plugin(option, _relatedTarget) {
1286    return this.each(function () {
1287      var $this   = $(this)
1288      var data    = $this.data('bs.modal')
1289      var options = $.extend({}, Modal.DEFAULTS, $this.data(), typeof option == 'object' && option)
1290
1291      if (!data) $this.data('bs.modal', (data = new Modal(this, options)))
1292      if (typeof option == 'string') data[option](_relatedTarget)
1293      else if (options.show) data.show(_relatedTarget)
1294    })
1295  }
1296
1297  var old = $.fn.modal
1298
1299  $.fn.modal             = Plugin
1300  $.fn.modal.Constructor = Modal
1301
1302
1303  // MODAL NO CONFLICT
1304  // =================
1305
1306  $.fn.modal.noConflict = function () {
1307    $.fn.modal = old
1308    return this
1309  }
1310
1311
1312  // MODAL DATA-API
1313  // ==============
1314
1315  $(document).on('click.bs.modal.data-api', '[data-toggle="modal"]', function (e) {
1316    var $this   = $(this)
1317    var href    = $this.attr('href')
1318    var $target = $($this.attr('data-target') || (href && href.replace(/.*(?=#[^\s]+$)/, ''))) // strip for ie7
1319    var option  = $target.data('bs.modal') ? 'toggle' : $.extend({ remote: !/#/.test(href) && href }, $target.data(), $this.data())
1320
1321    if ($this.is('a')) e.preventDefault()
1322
1323    $target.one('show.bs.modal', function (showEvent) {
1324      if (showEvent.isDefaultPrevented()) return // only register focus restorer if modal will actually get shown
1325      $target.one('hidden.bs.modal', function () {
1326        $this.is(':visible') && $this.trigger('focus')
1327      })
1328    })
1329    Plugin.call($target, option, this)
1330  })
1331
1332}(jQuery);
1333;
vendor: 16,346 bytes, lines 1333-1847
1333
1334/* ========================================================================
1335 * Bootstrap: tooltip.js v3.3.5
1336 * http://getbootstrap.com/javascript/#tooltip
1337 * Inspired by the original jQuery.tipsy by Jason Frame
1338 * ========================================================================
1339 * Copyright 2011-2015 Twitter, Inc.
1340 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
1341 * ======================================================================== */
1342
1343
1344+function ($) {
1345  'use strict';
1346
1347  // TOOLTIP PUBLIC CLASS DEFINITION
1348  // ===============================
1349
1350  var Tooltip = function (element, options) {
1351    this.type       = null
1352    this.options    = null
1353    this.enabled    = null
1354    this.timeout    = null
1355    this.hoverState = null
1356    this.$element   = null
1357    this.inState    = null
1358
1359    this.init('tooltip', element, options)
1360  }
1361
1362  Tooltip.VERSION  = '3.3.5'
1363
1364  Tooltip.TRANSITION_DURATION = 150
1365
1366  Tooltip.DEFAULTS = {
1367    animation: true,
1368    placement: 'top',
1369    selector: false,
1370    template: '<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',
1371    trigger: 'hover focus',
1372    title: '',
1373    delay: 0,
1374    html: false,
1375    container: false,
1376    viewport: {
1377      selector: 'body',
1378      padding: 0
1379    }
1380  }
1381
1382  Tooltip.prototype.init = function (type, element, options) {
1383    this.enabled   = true
1384    this.type      = type
1385    this.$element  = $(element)
1386    this.options   = this.getOptions(options)
1387    this.$viewport = this.options.viewport && $($.isFunction(this.options.viewport) ? this.options.viewport.call(this, this.$element) : (this.options.viewport.selector || this.options.viewport))
1388    this.inState   = { click: false, hover: false, focus: false }
1389
1390    if (this.$element[0] instanceof document.constructor && !this.options.selector) {
1391      throw new Error('`selector` option must be specified when initializing ' + this.type + ' on the window.document object!')
1392    }
1393
1394    var triggers = this.options.trigger.split(' ')
1395
1396    for (var i = triggers.length; i--;) {
1397      var trigger = triggers[i]
1398
1399      if (trigger == 'click') {
1400        this.$element.on('click.' + this.type, this.options.selector, $.proxy(this.toggle, this))
1401      } else if (trigger != 'manual') {
1402        var eventIn  = trigger == 'hover' ? 'mouseenter' : 'focusin'
1403        var eventOut = trigger == 'hover' ? 'mouseleave' : 'focusout'
1404
1405        this.$element.on(eventIn  + '.' + this.type, this.options.selector, $.proxy(this.enter, this))
1406        this.$element.on(eventOut + '.' + this.type, this.options.selector, $.proxy(this.leave, this))
1407      }
1408    }
1409
1410    this.options.selector ?
1411      (this._options = $.extend({}, this.options, { trigger: 'manual', selector: '' })) :
1412      this.fixTitle()
1413  }
1414
1415  Tooltip.prototype.getDefaults = function () {
1416    return Tooltip.DEFAULTS
1417  }
1418
1419  Tooltip.prototype.getOptions = function (options) {
1420    options = $.extend({}, this.getDefaults(), this.$element.data(), options)
1421
1422    if (options.delay && typeof options.delay == 'number') {
1423      options.delay = {
1424        show: options.delay,
1425        hide: options.delay
1426      }
1427    }
1428
1429    return options
1430  }
1431
1432  Tooltip.prototype.getDelegateOptions = function () {
1433    var options  = {}
1434    var defaults = this.getDefaults()
1435
1436    this._options && $.each(this._options, function (key, value) {
1437      if (defaults[key] != value) options[key] = value
1438    })
1439
1440    return options
1441  }
1442
1443  Tooltip.prototype.enter = function (obj) {
1444    var self = obj instanceof this.constructor ?
1445      obj : $(obj.currentTarget).data('bs.' + this.type)
1446
1447    if (!self) {
1448      self = new this.constructor(obj.currentTarget, this.getDelegateOptions())
1449      $(obj.currentTarget).data('bs.' + this.type, self)
1450    }
1451
1452    if (obj instanceof $.Event) {
1453      self.inState[obj.type == 'focusin' ? 'focus' : 'hover'] = true
1454    }
1455
1456    if (self.tip().hasClass('in') || self.hoverState == 'in') {
1457      self.hoverState = 'in'
1458      return
1459    }
1460
1461    clearTimeout(self.timeout)
1462
1463    self.hoverState = 'in'
1464
1465    if (!self.options.delay || !self.options.delay.show) return self.show()
1466
1467    self.timeout = setTimeout(function () {
1468      if (self.hoverState == 'in') self.show()
1469    }, self.options.delay.show)
1470  }
1471
1472  Tooltip.prototype.isInStateTrue = function () {
1473    for (var key in this.inState) {
1474      if (this.inState[key]) return true
1475    }
1476
1477    return false
1478  }
1479
1480  Tooltip.prototype.leave = function (obj) {
1481    var self = obj instanceof this.constructor ?
1482      obj : $(obj.currentTarget).data('bs.' + this.type)
1483
1484    if (!self) {
1485      self = new this.constructor(obj.currentTarget, this.getDelegateOptions())
1486      $(obj.currentTarget).data('bs.' + this.type, self)
1487    }
1488
1489    if (obj instanceof $.Event) {
1490      self.inState[obj.type == 'focusout' ? 'focus' : 'hover'] = false
1491    }
1492
1493    if (self.isInStateTrue()) return
1494
1495    clearTimeout(self.timeout)
1496
1497    self.hoverState = 'out'
1498
1499    if (!self.options.delay || !self.options.delay.hide) return self.hide()
1500
1501    self.timeout = setTimeout(function () {
1502      if (self.hoverState == 'out') self.hide()
1503    }, self.options.delay.hide)
1504  }
1505
1506  Tooltip.prototype.show = function () {
1507    var e = $.Event('show.bs.' + this.type)
1508
1509    if (this.hasContent() && this.enabled) {
1510      this.$element.trigger(e)
1511
1512      var inDom = $.contains(this.$element[0].ownerDocument.documentElement, this.$element[0])
1513      if (e.isDefaultPrevented() || !inDom) return
1514      var that = this
1515
1516      var $tip = this.tip()
1517
1518      var tipId = this.getUID(this.type)
1519
1520      this.setContent()
1521      $tip.attr('id', tipId)
1522      this.$element.attr('aria-describedby', tipId)
1523
1524      if (this.options.animation) $tip.addClass('fade')
1525
1526      var placement = typeof this.options.placement == 'function' ?
1527        this.options.placement.call(this, $tip[0], this.$element[0]) :
1528        this.options.placement
1529
1530      var autoToken = /\s?auto?\s?/i
1531      var autoPlace = autoToken.test(placement)
1532      if (autoPlace) placement = placement.replace(autoToken, '') || 'top'
1533
1534      $tip
1535        .detach()
1536        .css({ top: 0, left: 0, display: 'block' })
1537        .addClass(placement)
1538        .data('bs.' + this.type, this)
1539
1540      this.options.container ? $tip.appendTo(this.options.container) : $tip.insertAfter(this.$element)
1541      this.$element.trigger('inserted.bs.' + this.type)
1542
1543      var pos          = this.getPosition()
1544      var actualWidth  = $tip[0].offsetWidth
1545      var actualHeight = $tip[0].offsetHeight
1546
1547      if (autoPlace) {
1548        var orgPlacement = placement
1549        var viewportDim = this.getPosition(this.$viewport)
1550
1551        placement = placement == 'bottom' && pos.bottom + actualHeight > viewportDim.bottom ? 'top'    :
1552                    placement == 'top'    && pos.top    - actualHeight < viewportDim.top    ? 'bottom' :
1553                    placement == 'right'  && pos.right  + actualWidth  > viewportDim.width  ? 'left'   :
1554                    placement == 'left'   && pos.left   - actualWidth  < viewportDim.left   ? 'right'  :
1555                    placement
1556
1557        $tip
1558          .removeClass(orgPlacement)
1559          .addClass(placement)
1560      }
1561
1562      var calculatedOffset = this.getCalculatedOffset(placement, pos, actualWidth, actualHeight)
1563
1564      this.applyPlacement(calculatedOffset, placement)
1565
1566      var complete = function () {
1567        var prevHoverState = that.hoverState
1568        that.$element.trigger('shown.bs.' + that.type)
1569        that.hoverState = null
1570
1571        if (prevHoverState == 'out') that.leave(that)
1572      }
1573
1574      $.support.transition && this.$tip.hasClass('fade') ?
1575        $tip
1576          .one('bsTransitionEnd', complete)
1577          .emulateTransitionEnd(Tooltip.TRANSITION_DURATION) :
1578        complete()
1579    }
1580  }
1581
1582  Tooltip.prototype.applyPlacement = function (offset, placement) {
1583    var $tip   = this.tip()
1584    var width  = $tip[0].offsetWidth
1585    var height = $tip[0].offsetHeight
1586
1587    // manually read margins because getBoundingClientRect includes difference
1588    var marginTop = parseInt($tip.css('margin-top'), 10)
1589    var marginLeft = parseInt($tip.css('margin-left'), 10)
1590
1591    // we must check for NaN for ie 8/9
1592    if (isNaN(marginTop))  marginTop  = 0
1593    if (isNaN(marginLeft)) marginLeft = 0
1594
1595    offset.top  += marginTop
1596    offset.left += marginLeft
1597
1598    // $.fn.offset doesn't round pixel values
1599    // so we use setOffset directly with our own function B-0
1600    $.offset.setOffset($tip[0], $.extend({
1601      using: function (props) {
1602        $tip.css({
1603          top: Math.round(props.top),
1604          left: Math.round(props.left)
1605        })
1606      }
1607    }, offset), 0)
1608
1609    $tip.addClass('in')
1610
1611    // check to see if placing tip in new offset caused the tip to resize itself
1612    var actualWidth  = $tip[0].offsetWidth
1613    var actualHeight = $tip[0].offsetHeight
1614
1615    if (placement == 'top' && actualHeight != height) {
1616      offset.top = offset.top + height - actualHeight
1617    }
1618
1619    var delta = this.getViewportAdjustedDelta(placement, offset, actualWidth, actualHeight)
1620
1621    if (delta.left) offset.left += delta.left
1622    else offset.top += delta.top
1623
1624    var isVertical          = /top|bottom/.test(placement)
1625    var arrowDelta          = isVertical ? delta.left * 2 - width + actualWidth : delta.top * 2 - height + actualHeight
1626    var arrowOffsetPosition = isVertical ? 'offsetWidth' : 'offsetHeight'
1627
1628    $tip.offset(offset)
1629    this.replaceArrow(arrowDelta, $tip[0][arrowOffsetPosition], isVertical)
1630  }
1631
1632  Tooltip.prototype.replaceArrow = function (delta, dimension, isVertical) {
1633    this.arrow()
1634      .css(isVertical ? 'left' : 'top', 50 * (1 - delta / dimension) + '%')
1635      .css(isVertical ? 'top' : 'left', '')
1636  }
1637
1638  Tooltip.prototype.setContent = function () {
1639    var $tip  = this.tip()
1640    var title = this.getTitle()
1641
1642    $tip.find('.tooltip-inner')[this.options.html ? 'html' : 'text'](title)
1643    $tip.removeClass('fade in top bottom left right')
1644  }
1645
1646  Tooltip.prototype.hide = function (callback) {
1647    var that = this
1648    var $tip = $(this.$tip)
1649    var e    = $.Event('hide.bs.' + this.type)
1650
1651    function complete() {
1652      if (that.hoverState != 'in') $tip.detach()
1653      that.$element
1654        .removeAttr('aria-describedby')
1655        .trigger('hidden.bs.' + that.type)
1656      callback && callback()
1657    }
1658
1659    this.$element.trigger(e)
1660
1661    if (e.isDefaultPrevented()) return
1662
1663    $tip.removeClass('in')
1664
1665    $.support.transition && $tip.hasClass('fade') ?
1666      $tip
1667        .one('bsTransitionEnd', complete)
1668        .emulateTransitionEnd(Tooltip.TRANSITION_DURATION) :
1669      complete()
1670
1671    this.hoverState = null
1672
1673    return this
1674  }
1675
1676  Tooltip.prototype.fixTitle = function () {
1677    var $e = this.$element
1678    if ($e.attr('title') || typeof $e.attr('data-original-title') != 'string') {
1679      $e.attr('data-original-title', $e.attr('title') || '').attr('title', '')
1680    }
1681  }
1682
1683  Tooltip.prototype.hasContent = function () {
1684    return this.getTitle()
1685  }
1686
1687  Tooltip.prototype.getPosition = function ($element) {
1688    $element   = $element || this.$element
1689
1690    var el     = $element[0]
1691    var isBody = el.tagName == 'BODY'
1692
1693    var elRect    = el.getBoundingClientRect()
1694    if (elRect.width == null) {
1695      // width and height are missing in IE8, so compute them manually; see https://github.com/twbs/bootstrap/issues/14093
1696      elRect = $.extend({}, elRect, { width: elRect.right - elRect.left, height: elRect.bottom - elRect.top })
1697    }
1698    var elOffset  = isBody ? { top: 0, left: 0 } : $element.offset()
1699    var scroll    = { scroll: isBody ? document.documentElement.scrollTop || document.body.scrollTop : $element.scrollTop() }
1700    var outerDims = isBody ? { width: $(window).width(), height: $(window).height() } : null
1701
1702    return $.extend({}, elRect, scroll, outerDims, elOffset)
1703  }
1704
1705  Tooltip.prototype.getCalculatedOffset = function (placement, pos, actualWidth, actualHeight) {
1706    return placement == 'bottom' ? { top: pos.top + pos.height,   left: pos.left + pos.width / 2 - actualWidth / 2 } :
1707           placement == 'top'    ? { top: pos.top - actualHeight, left: pos.left + pos.width / 2 - actualWidth / 2 } :
1708           placement == 'left'   ? { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left - actualWidth } :
1709        /* placement == 'right' */ { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width }
1710
1711  }
1712
1713  Tooltip.prototype.getViewportAdjustedDelta = function (placement, pos, actualWidth, actualHeight) {
1714    var delta = { top: 0, left: 0 }
1715    if (!this.$viewport) return delta
1716
1717    var viewportPadding = this.options.viewport && this.options.viewport.padding || 0
1718    var viewportDimensions = this.getPosition(this.$viewport)
1719
1720    if (/right|left/.test(placement)) {
1721      var topEdgeOffset    = pos.top - viewportPadding - viewportDimensions.scroll
1722      var bottomEdgeOffset = pos.top + viewportPadding - viewportDimensions.scroll + actualHeight
1723      if (topEdgeOffset < viewportDimensions.top) { // top overflow
1724        delta.top = viewportDimensions.top - topEdgeOffset
1725      } else if (bottomEdgeOffset > viewportDimensions.top + viewportDimensions.height) { // bottom overflow
1726        delta.top = viewportDimensions.top + viewportDimensions.height - bottomEdgeOffset
1727      }
1728    } else {
1729      var leftEdgeOffset  = pos.left - viewportPadding
1730      var rightEdgeOffset = pos.left + viewportPadding + actualWidth
1731      if (leftEdgeOffset < viewportDimensions.left) { // left overflow
1732        delta.left = viewportDimensions.left - leftEdgeOffset
1733      } else if (rightEdgeOffset > viewportDimensions.right) { // right overflow
1734        delta.left = viewportDimensions.left + viewportDimensions.width - rightEdgeOffset
1735      }
1736    }
1737
1738    return delta
1739  }
1740
1741  Tooltip.prototype.getTitle = function () {
1742    var title
1743    var $e = this.$element
1744    var o  = this.options
1745
1746    title = $e.attr('data-original-title')
1747      || (typeof o.title == 'function' ? o.title.call($e[0]) :  o.title)
1748
1749    return title
1750  }
1751
1752  Tooltip.prototype.getUID = function (prefix) {
1753    do prefix += ~~(Math.random() * 1000000)
1754    while (document.getElementById(prefix))
1755    return prefix
1756  }
1757
1758  Tooltip.prototype.tip = function () {
1759    if (!this.$tip) {
1760      this.$tip = $(this.options.template)
1761      if (this.$tip.length != 1) {
1762        throw new Error(this.type + ' `template` option must consist of exactly 1 top-level element!')
1763      }
1764    }
1765    return this.$tip
1766  }
1767
1768  Tooltip.prototype.arrow = function () {
1769    return (this.$arrow = this.$arrow || this.tip().find('.tooltip-arrow'))
1770  }
1771
1772  Tooltip.prototype.enable = function () {
1773    this.enabled = true
1774  }
1775
1776  Tooltip.prototype.disable = function () {
1777    this.enabled = false
1778  }
1779
1780  Tooltip.prototype.toggleEnabled = function () {
1781    this.enabled = !this.enabled
1782  }
1783
1784  Tooltip.prototype.toggle = function (e) {
1785    var self = this
1786    if (e) {
1787      self = $(e.currentTarget).data('bs.' + this.type)
1788      if (!self) {
1789        self = new this.constructor(e.currentTarget, this.getDelegateOptions())
1790        $(e.currentTarget).data('bs.' + this.type, self)
1791      }
1792    }
1793
1794    if (e) {
1795      self.inState.click = !self.inState.click
1796      if (self.isInStateTrue()) self.enter(self)
1797      else self.leave(self)
1798    } else {
1799      self.tip().hasClass('in') ? self.leave(self) : self.enter(self)
1800    }
1801  }
1802
1803  Tooltip.prototype.destroy = function () {
1804    var that = this
1805    clearTimeout(this.timeout)
1806    this.hide(function () {
1807      that.$element.off('.' + that.type).removeData('bs.' + that.type)
1808      if (that.$tip) {
1809        that.$tip.detach()
1810      }
1811      that.$tip = null
1812      that.$arrow = null
1813      that.$viewport = null
1814    })
1815  }
1816
1817
1818  // TOOLTIP PLUGIN DEFINITION
1819  // =========================
1820
1821  function Plugin(option) {
1822    return this.each(function () {
1823      var $this   = $(this)
1824      var data    = $this.data('bs.tooltip')
1825      var options = typeof option == 'object' && option
1826
1827      if (!data && /destroy|hide/.test(option)) return
1828      if (!data) $this.data('bs.tooltip', (data = new Tooltip(this, options)))
1829      if (typeof option == 'string') data[option]()
1830    })
1831  }
1832
1833  var old = $.fn.tooltip
1834
1835  $.fn.tooltip             = Plugin
1836  $.fn.tooltip.Constructor = Tooltip
1837
1838
1839  // TOOLTIP NO CONFLICT
1840  // ===================
1841
1842  $.fn.tooltip.noConflict = function () {
1843    $.fn.tooltip = old
1844    return this
1845  }
1846
1847}(jQuery);
vendor: 12,250 bytes, lines 1848-2298
1848;
1849/* ========================================================================
1850 * Bootstrap: popover.js v3.3.5
1851 * http://getbootstrap.com/javascript/#popovers
1852 * ========================================================================
1853 * Copyright 2011-2015 Twitter, Inc.
1854 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
1855 * ======================================================================== */
1856
1857
1858+function ($) {
1859  'use strict';
1860
1861  // POPOVER PUBLIC CLASS DEFINITION
1862  // ===============================
1863
1864  var Popover = function (element, options) {
1865    this.init('popover', element, options)
1866  }
1867
1868  if (!$.fn.tooltip) throw new Error('Popover requires tooltip.js')
1869
1870  Popover.VERSION  = '3.3.5'
1871
1872  Popover.DEFAULTS = $.extend({}, $.fn.tooltip.Constructor.DEFAULTS, {
1873    placement: 'right',
1874    trigger: 'click',
1875    content: '',
1876    template: '<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'
1877  })
1878
1879
1880  // NOTE: POPOVER EXTENDS tooltip.js
1881  // ================================
1882
1883  Popover.prototype = $.extend({}, $.fn.tooltip.Constructor.prototype)
1884
1885  Popover.prototype.constructor = Popover
1886
1887  Popover.prototype.getDefaults = function () {
1888    return Popover.DEFAULTS
1889  }
1890
1891  Popover.prototype.setContent = function () {
1892    var $tip    = this.tip()
1893    var title   = this.getTitle()
1894    var content = this.getContent()
1895
1896    $tip.find('.popover-title')[this.options.html ? 'html' : 'text'](title)
1897    $tip.find('.popover-content').children().detach().end()[ // we use append for html objects to maintain js events
1898      this.options.html ? (typeof content == 'string' ? 'html' : 'append') : 'text'
1899    ](content)
1900
1901    $tip.removeClass('fade top bottom left right in')
1902
1903    // IE8 doesn't accept hiding via the `:empty` pseudo selector, we have to do
1904    // this manually by checking the contents.
1905    if (!$tip.find('.popover-title').html()) $tip.find('.popover-title').hide()
1906  }
1907
1908  Popover.prototype.hasContent = function () {
1909    return this.getTitle() || this.getContent()
1910  }
1911
1912  Popover.prototype.getContent = function () {
1913    var $e = this.$element
1914    var o  = this.options
1915
1916    return $e.attr('data-content')
1917      || (typeof o.content == 'function' ?
1918            o.content.call($e[0]) :
1919            o.content)
1920  }
1921
1922  Popover.prototype.arrow = function () {
1923    return (this.$arrow = this.$arrow || this.tip().find('.arrow'))
1924  }
1925
1926
1927  // POPOVER PLUGIN DEFINITION
1928  // =========================
1929
1930  function Plugin(option) {
1931    return this.each(function () {
1932      var $this   = $(this)
1933      var data    = $this.data('bs.popover')
1934      var options = typeof option == 'object' && option
1935
1936      if (!data && /destroy|hide/.test(option)) return
1937      if (!data) $this.data('bs.popover', (data = new Popover(this, options)))
1938      if (typeof option == 'string') data[option]()
1939    })
1940  }
1941
1942  var old = $.fn.popover
1943
1944  $.fn.popover             = Plugin
1945  $.fn.popover.Constructor = Popover
1946
1947
1948  // POPOVER NO CONFLICT
1949  // ===================
1950
1951  $.fn.popover.noConflict = function () {
1952    $.fn.popover = old
1953    return this
1954  }
1955
1956}(jQuery);
1957;
1958/* ========================================================================
1959 * Bootstrap: scrollspy.js v3.3.5
1960 * http://getbootstrap.com/javascript/#scrollspy
1961 * ========================================================================
1962 * Copyright 2011-2015 Twitter, Inc.
1963 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
1964 * ======================================================================== */
1965
1966
1967+function ($) {
1968  'use strict';
1969
1970  // SCROLLSPY CLASS DEFINITION
1971  // ==========================
1972
1973  function ScrollSpy(element, options) {
1974    this.$body          = $(document.body)
1975    this.$scrollElement = $(element).is(document.body) ? $(window) : $(element)
1976    this.options        = $.extend({}, ScrollSpy.DEFAULTS, options)
1977    this.selector       = (this.options.target || '') + ' .nav li > a'
1978    this.offsets        = []
1979    this.targets        = []
1980    this.activeTarget   = null
1981    this.scrollHeight   = 0
1982
1983    this.$scrollElement.on('scroll.bs.scrollspy', $.proxy(this.process, this))
1984    this.refresh()
1985    this.process()
1986  }
1987
1988  ScrollSpy.VERSION  = '3.3.5'
1989
1990  ScrollSpy.DEFAULTS = {
1991    offset: 10
1992  }
1993
1994  ScrollSpy.prototype.getScrollHeight = function () {
1995    return this.$scrollElement[0].scrollHeight || Math.max(this.$body[0].scrollHeight, document.documentElement.scrollHeight)
1996  }
1997
1998  ScrollSpy.prototype.refresh = function () {
1999    var that          = this
2000    var offsetMethod  = 'offset'
2001    var offsetBase    = 0
2002
2003    this.offsets      = []
2004    this.targets      = []
2005    this.scrollHeight = this.getScrollHeight()
2006
2007    if (!$.isWindow(this.$scrollElement[0])) {
2008      offsetMethod = 'position'
2009      offsetBase   = this.$scrollElement.scrollTop()
2010    }
2011
2012    this.$body
2013      .find(this.selector)
2014      .map(function () {
2015        var $el   = $(this)
2016        var href  = $el.data('target') || $el.attr('href')
2017        var $href = /^#./.test(href) && $(href)
2018
2019        return ($href
2020          && $href.length
2021          && $href.is(':visible')
2022          && [[$href[offsetMethod]().top + offsetBase, href]]) || null
2023      })
2024      .sort(function (a, b) { return a[0] - b[0] })
2025      .each(function () {
2026        that.offsets.push(this[0])
2027        that.targets.push(this[1])
2028      })
2029  }
2030
2031  ScrollSpy.prototype.process = function () {
2032    var scrollTop    = this.$scrollElement.scrollTop() + this.options.offset
2033    var scrollHeight = this.getScrollHeight()
2034    var maxScroll    = this.options.offset + scrollHeight - this.$scrollElement.height()
2035    var offsets      = this.offsets
2036    var targets      = this.targets
2037    var activeTarget = this.activeTarget
2038    var i
2039
2040    if (this.scrollHeight != scrollHeight) {
2041      this.refresh()
2042    }
2043
2044    if (scrollTop >= maxScroll) {
2045      return activeTarget != (i = targets[targets.length - 1]) && this.activate(i)
2046    }
2047
2048    if (activeTarget && scrollTop < offsets[0]) {
2049      this.activeTarget = null
2050      return this.clear()
2051    }
2052
2053    for (i = offsets.length; i--;) {
2054      activeTarget != targets[i]
2055        && scrollTop >= offsets[i]
2056        && (offsets[i + 1] === undefined || scrollTop < offsets[i + 1])
2057        && this.activate(targets[i])
2058    }
2059  }
2060
2061  ScrollSpy.prototype.activate = function (target) {
2062    this.activeTarget = target
2063
2064    this.clear()
2065
2066    var selector = this.selector +
2067      '[data-target="' + target + '"],' +
2068      this.selector + '[href="' + target + '"]'
2069
2070    var active = $(selector)
2071      .parents('li')
2072      .addClass('active')
2073
2074    if (active.parent('.dropdown-menu').length) {
2075      active = active
2076        .closest('li.dropdown')
2077        .addClass('active')
2078    }
2079
2080    active.trigger('activate.bs.scrollspy')
2081  }
2082
2083  ScrollSpy.prototype.clear = function () {
2084    $(this.selector)
2085      .parentsUntil(this.options.target, '.active')
2086      .removeClass('active')
2087  }
2088
2089
2090  // SCROLLSPY PLUGIN DEFINITION
2091  // ===========================
2092
2093  function Plugin(option) {
2094    return this.each(function () {
2095      var $this   = $(this)
2096      var data    = $this.data('bs.scrollspy')
2097      var options = typeof option == 'object' && option
2098
2099      if (!data) $this.data('bs.scrollspy', (data = new ScrollSpy(this, options)))
2100      if (typeof option == 'string') data[option]()
2101    })
2102  }
2103
2104  var old = $.fn.scrollspy
2105
2106  $.fn.scrollspy             = Plugin
2107  $.fn.scrollspy.Constructor = ScrollSpy
2108
2109
2110  // SCROLLSPY NO CONFLICT
2111  // =====================
2112
2113  $.fn.scrollspy.noConflict = function () {
2114    $.fn.scrollspy = old
2115    return this
2116  }
2117
2118
2119  // SCROLLSPY DATA-API
2120  // ==================
2121
2122  $(window).on('load.bs.scrollspy.data-api', function () {
2123    $('[data-spy="scroll"]').each(function () {
2124      var $spy = $(this)
2125      Plugin.call($spy, $spy.data())
2126    })
2127  })
2128
2129}(jQuery);
2130;
2131/* ========================================================================
2132 * Bootstrap: tab.js v3.3.5
2133 * http://getbootstrap.com/javascript/#tabs
2134 * ========================================================================
2135 * Copyright 2011-2015 Twitter, Inc.
2136 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
2137 * ======================================================================== */
2138
2139
2140+function ($) {
2141  'use strict';
2142
2143  // TAB CLASS DEFINITION
2144  // ====================
2145
2146  var Tab = function (element) {
2147    // jscs:disable requireDollarBeforejQueryAssignment
2148    this.element = $(element)
2149    // jscs:enable requireDollarBeforejQueryAssignment
2150  }
2151
2152  Tab.VERSION = '3.3.5'
2153
2154  Tab.TRANSITION_DURATION = 150
2155
2156  Tab.prototype.show = function () {
2157    var $this    = this.element
2158    var $ul      = $this.closest('ul:not(.dropdown-menu)')
2159    var selector = $this.data('target')
2160
2161    if (!selector) {
2162      selector = $this.attr('href')
2163      selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7
2164    }
2165
2166    if ($this.parent('li').hasClass('active')) return
2167
2168    var $previous = $ul.find('.active:last a')
2169    var hideEvent = $.Event('hide.bs.tab', {
2170      relatedTarget: $this[0]
2171    })
2172    var showEvent = $.Event('show.bs.tab', {
2173      relatedTarget: $previous[0]
2174    })
2175
2176    $previous.trigger(hideEvent)
2177    $this.trigger(showEvent)
2178
2179    if (showEvent.isDefaultPrevented() || hideEvent.isDefaultPrevented()) return
2180
2181    var $target = $(selector)
2182
2183    this.activate($this.closest('li'), $ul)
2184    this.activate($target, $target.parent(), function () {
2185      $previous.trigger({
2186        type: 'hidden.bs.tab',
2187        relatedTarget: $this[0]
2188      })
2189      $this.trigger({
2190        type: 'shown.bs.tab',
2191        relatedTarget: $previous[0]
2192      })
2193    })
2194  }
2195
2196  Tab.prototype.activate = function (element, container, callback) {
2197    var $active    = container.find('> .active')
2198    var transition = callback
2199      && $.support.transition
2200      && ($active.length && $active.hasClass('fade') || !!container.find('> .fade').length)
2201
2202    function next() {
2203      $active
2204        .removeClass('active')
2205        .find('> .dropdown-menu > .active')
2206          .removeClass('active')
2207        .end()
2208        .find('[data-toggle="tab"]')
2209          .attr('aria-expanded', false)
2210
2211      element
2212        .addClass('active')
2213        .find('[data-toggle="tab"]')
2214          .attr('aria-expanded', true)
2215
2216      if (transition) {
2217        element[0].offsetWidth // reflow for transition
2218        element.addClass('in')
2219      } else {
2220        element.removeClass('fade')
2221      }
2222
2223      if (element.parent('.dropdown-menu').length) {
2224        element
2225          .closest('li.dropdown')
2226            .addClass('active')
2227          .end()
2228          .find('[data-toggle="tab"]')
2229            .attr('aria-expanded', true)
2230      }
2231
2232      callback && callback()
2233    }
2234
2235    $active.length && transition ?
2236      $active
2237        .one('bsTransitionEnd', next)
2238        .emulateTransitionEnd(Tab.TRANSITION_DURATION) :
2239      next()
2240
2241    $active.removeClass('in')
2242  }
2243
2244
2245  // TAB PLUGIN DEFINITION
2246  // =====================
2247
2248  function Plugin(option) {
2249    return this.each(function () {
2250      var $this = $(this)
2251      var data  = $this.data('bs.tab')
2252
2253      if (!data) $this.data('bs.tab', (data = new Tab(this)))
2254      if (typeof option == 'string') data[option]()
2255    })
2256  }
2257
2258  var old = $.fn.tab
2259
2260  $.fn.tab             = Plugin
2261  $.fn.tab.Constructor = Tab
2262
2263
2264  // TAB NO CONFLICT
2265  // ===============
2266
2267  $.fn.tab.noConflict = function () {
2268    $.fn.tab = old
2269    return this
2270  }
2271
2272
2273  // TAB DATA-API
2274  // ============
2275
2276  var clickHandler = function (e) {
2277    e.preventDefault()
2278    Plugin.call($(this), 'show')
2279  }
2280
2281  $(document)
2282    .on('click.bs.tab.data-api', '[data-toggle="tab"]', clickHandler)
2283    .on('click.bs.tab.data-api', '[data-toggle="pill"]', clickHandler)
2284
2285}(jQuery);
2286;
2287/* ========================================================================
2288 * Bootstrap: transition.js v3.3.5
2289 * http://getbootstrap.com/javascript/#transitions
2290 * ========================================================================
2291 * Copyright 2011-2015 Twitter, Inc.
2292 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
2293 * ======================================================================== */
2294
2295
2296+function ($) {
2297  'use strict';
2298
vendor: 1,366 bytes, lines 2299-2346
2299  // CSS TRANSITION SUPPORT (Shoutout: http://www.modernizr.com/)
2300  // ============================================================
2301
2302  function transitionEnd() {
2303    var el = document.createElement('bootstrap')
2304
2305    var transEndEventNames = {
2306      WebkitTransition : 'webkitTransitionEnd',
2307      MozTransition    : 'transitionend',
2308      OTransition      : 'oTransitionEnd otransitionend',
2309      transition       : 'transitionend'
2310    }
2311
2312    for (var name in transEndEventNames) {
2313      if (el.style[name] !== undefined) {
2314        return { end: transEndEventNames[name] }
2315      }
2316    }
2317
2318    return false // explicit for ie8 (  ._.)
2319  }
2320
2321  // http://blog.alexmaccaw.com/css-transitions
2322  $.fn.emulateTransitionEnd = function (duration) {
2323    var called = false
2324    var $el = this
2325    $(this).one('bsTransitionEnd', function () { called = true })
2326    var callback = function () { if (!called) $($el).trigger($.support.transition.end) }
2327    setTimeout(callback, duration)
2328    return this
2329  }
2330
2331  $(function () {
2332    $.support.transition = transitionEnd()
2333
2334    if (!$.support.transition) return
2335
2336    $.event.special.bsTransitionEnd = {
2337      bindType: $.support.transition.end,
2338      delegateType: $.support.transition.end,
2339      handle: function (e) {
2340        if ($(e.target).is(this)) return e.handleObj.handler.apply(this, arguments)
2341      }
2342    }
2343  })
2344
2345}(jQuery);
2346;

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.