jasonbrooks / centos / centos.org

Forked from centos/centos.org 5 years ago
Clone

Blame assets/js/sass-bootstrap.js

545090
/**
545090
* Sass Bootstrap v3.0.16 by Aaron Lademann and Twitter Inc.
545090
* Copyright 2013 Aaron Lademann and Twitter Inc.
545090
* Licensed under http://www.apache.org/licenses/LICENSE-2.0.
545090
*
545090
* Designed and built with all the love in the world by @alademann, @mdo and @fat.
545090
*/
545090
if (!jQuery) { throw new Error("Sass Bootstrap requires jQuery") }
545090
545090
/* ========================================================================
545090
 * Bootstrap: transition.js v3.0.0
545090
 * http://twbs.github.com/bootstrap/javascript.html#transitions
545090
 * ========================================================================
545090
 * Copyright 2013 Twitter, Inc.
545090
 *
545090
 * Licensed under the Apache License, Version 2.0 (the "License");
545090
 * you may not use this file except in compliance with the License.
545090
 * You may obtain a copy of the License at
545090
 *
545090
 * http://www.apache.org/licenses/LICENSE-2.0
545090
 *
545090
 * Unless required by applicable law or agreed to in writing, software
545090
 * distributed under the License is distributed on an "AS IS" BASIS,
545090
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
545090
 * See the License for the specific language governing permissions and
545090
 * limitations under the License.
545090
 * ======================================================================== */
545090
545090
545090
+function ($) { "use strict";
545090
545090
  // CSS TRANSITION SUPPORT (Shoutout: http://www.modernizr.com/)
545090
  // ============================================================
545090
545090
  function transitionEnd() {
545090
    var el = document.createElement('bootstrap')
545090
545090
    var transEndEventNames = {
545090
      'WebkitTransition' : 'webkitTransitionEnd'
545090
    , 'MozTransition'    : 'transitionend'
545090
    , 'OTransition'      : 'oTransitionEnd otransitionend'
545090
    , 'transition'       : 'transitionend'
545090
    }
545090
545090
    for (var name in transEndEventNames) {
545090
      if (el.style[name] !== undefined) {
545090
        return { end: transEndEventNames[name] }
545090
      }
545090
    }
545090
  }
545090
545090
  // http://blog.alexmaccaw.com/css-transitions
545090
  $.fn.emulateTransitionEnd = function (duration) {
545090
    var called = false, $el = this
545090
    $(this).one($.support.transition.end, function () { called = true })
545090
    var callback = function () { if (!called) $($el).trigger($.support.transition.end) }
545090
    setTimeout(callback, duration)
545090
    return this
545090
  }
545090
545090
  $(function () {
545090
    $.support.transition = transitionEnd()
545090
  })
545090
545090
}(window.jQuery);
545090
545090
/* ========================================================================
545090
 * Bootstrap: alert.js v3.0.0
545090
 * http://twbs.github.com/bootstrap/javascript.html#alerts
545090
 * ========================================================================
545090
 * Copyright 2013 Twitter, Inc.
545090
 *
545090
 * Licensed under the Apache License, Version 2.0 (the "License");
545090
 * you may not use this file except in compliance with the License.
545090
 * You may obtain a copy of the License at
545090
 *
545090
 * http://www.apache.org/licenses/LICENSE-2.0
545090
 *
545090
 * Unless required by applicable law or agreed to in writing, software
545090
 * distributed under the License is distributed on an "AS IS" BASIS,
545090
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
545090
 * See the License for the specific language governing permissions and
545090
 * limitations under the License.
545090
 * ======================================================================== */
545090
545090
545090
+function ($) { "use strict";
545090
545090
  // ALERT CLASS DEFINITION
545090
  // ======================
545090
545090
  var dismiss = '[data-dismiss="alert"]'
545090
  var Alert   = function (el) {
545090
    $(el).on('click', dismiss, this.close)
545090
  }
545090
545090
  Alert.prototype.close = function (e) {
545090
    var $this    = $(this)
545090
    var selector = $this.attr('data-target')
545090
545090
    if (!selector) {
545090
      selector = $this.attr('href')
545090
      selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7
545090
    }
545090
545090
    var $parent = $(selector)
545090
545090
    if (e) e.preventDefault()
545090
545090
    if (!$parent.length) {
545090
      $parent = $this.hasClass('alert') ? $this : $this.parent()
545090
    }
545090
545090
    $parent.trigger(e = $.Event('close.bs.alert'))
545090
545090
    if (e.isDefaultPrevented()) return
545090
545090
    $parent.removeClass('in')
545090
545090
    function removeElement() {
545090
      $parent.trigger('closed.bs.alert').remove()
545090
    }
545090
545090
    $.support.transition && $parent.hasClass('fade') ?
545090
      $parent
545090
        .one($.support.transition.end, removeElement)
545090
        .emulateTransitionEnd(150) :
545090
      removeElement()
545090
  }
545090
545090
545090
  // ALERT PLUGIN DEFINITION
545090
  // =======================
545090
545090
  var old = $.fn.alert
545090
545090
  $.fn.alert = function (option) {
545090
    return this.each(function () {
545090
      var $this = $(this)
545090
      var data  = $this.data('bs.alert')
545090
545090
      if (!data) $this.data('bs.alert', (data = new Alert(this)))
545090
      if (typeof option == 'string') data[option].call($this)
545090
    })
545090
  }
545090
545090
  $.fn.alert.Constructor = Alert
545090
545090
545090
  // ALERT NO CONFLICT
545090
  // =================
545090
545090
  $.fn.alert.noConflict = function () {
545090
    $.fn.alert = old
545090
    return this
545090
  }
545090
545090
545090
  // ALERT DATA-API
545090
  // ==============
545090
545090
  $(document).on('click.bs.alert.data-api', dismiss, Alert.prototype.close)
545090
545090
}(window.jQuery);
545090
545090
/* ========================================================================
545090
 * Bootstrap: button.js v3.0.0
545090
 * http://twbs.github.com/bootstrap/javascript.html#buttons
545090
 * ========================================================================
545090
 * Copyright 2013 Twitter, Inc.
545090
 *
545090
 * Licensed under the Apache License, Version 2.0 (the "License");
545090
 * you may not use this file except in compliance with the License.
545090
 * You may obtain a copy of the License at
545090
 *
545090
 * http://www.apache.org/licenses/LICENSE-2.0
545090
 *
545090
 * Unless required by applicable law or agreed to in writing, software
545090
 * distributed under the License is distributed on an "AS IS" BASIS,
545090
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
545090
 * See the License for the specific language governing permissions and
545090
 * limitations under the License.
545090
 * ======================================================================== */
545090
545090
545090
+function ($) { "use strict";
545090
545090
  // BUTTON PUBLIC CLASS DEFINITION
545090
  // ==============================
545090
545090
  var Button = function (element, options) {
545090
    this.$element = $(element)
545090
    this.options  = $.extend({}, Button.DEFAULTS, options)
545090
  }
545090
545090
  Button.DEFAULTS = {
545090
    loadingText: 'loading...'
545090
  }
545090
545090
  Button.prototype.setState = function (state) {
545090
    var d    = 'disabled'
545090
    var $el  = this.$element
545090
    var val  = $el.is('input') ? 'val' : 'html'
545090
    var data = $el.data()
545090
545090
    state = state + 'Text'
545090
545090
    if (!data.resetText) $el.data('resetText', $el[val]())
545090
545090
    $el[val](data[state] || this.options[state])
545090
545090
    // push to event loop to allow forms to submit
545090
    setTimeout(function () {
545090
      state == 'loadingText' ?
545090
        $el.addClass(d).attr(d, d) :
545090
        $el.removeClass(d).removeAttr(d);
545090
    }, 0)
545090
  }
545090
545090
  Button.prototype.toggle = function () {
545090
    var $parent = this.$element.closest('[data-toggle="buttons"]')
545090
545090
    if ($parent.length) {
545090
      var $input = this.$element.find('input')
545090
        .prop('checked', !this.$element.hasClass('active'))
545090
        .trigger('change')
545090
      if ($input.prop('type') === 'radio') $parent.find('.active').removeClass('active')
545090
    }
545090
545090
    this.$element.toggleClass('active')
545090
  }
545090
545090
545090
  // BUTTON PLUGIN DEFINITION
545090
  // ========================
545090
545090
  var old = $.fn.button
545090
545090
  $.fn.button = function (option) {
545090
    return this.each(function () {
545090
      var $this   = $(this)
545090
      var data    = $this.data('bs.button')
545090
      var options = typeof option == 'object' && option
545090
545090
      if (!data) $this.data('bs.button', (data = new Button(this, options)))
545090
545090
      if (option == 'toggle') data.toggle()
545090
      else if (option) data.setState(option)
545090
    })
545090
  }
545090
545090
  $.fn.button.Constructor = Button
545090
545090
545090
  // BUTTON NO CONFLICT
545090
  // ==================
545090
545090
  $.fn.button.noConflict = function () {
545090
    $.fn.button = old
545090
    return this
545090
  }
545090
545090
545090
  // BUTTON DATA-API
545090
  // ===============
545090
545090
  $(document).on('click.bs.button.data-api', '[data-toggle^=button]', function (e) {
545090
    var $btn = $(e.target)
545090
    if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn')
545090
    $btn.button('toggle')
545090
    e.preventDefault()
545090
  })
545090
545090
}(window.jQuery);
545090
545090
/* ========================================================================
545090
 * Bootstrap: carousel.js v3.0.0
545090
 * http://twbs.github.com/bootstrap/javascript.html#carousel
545090
 * ========================================================================
545090
 * Copyright 2012 Twitter, Inc.
545090
 *
545090
 * Licensed under the Apache License, Version 2.0 (the "License");
545090
 * you may not use this file except in compliance with the License.
545090
 * You may obtain a copy of the License at
545090
 *
545090
 * http://www.apache.org/licenses/LICENSE-2.0
545090
 *
545090
 * Unless required by applicable law or agreed to in writing, software
545090
 * distributed under the License is distributed on an "AS IS" BASIS,
545090
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
545090
 * See the License for the specific language governing permissions and
545090
 * limitations under the License.
545090
 * ======================================================================== */
545090
545090
545090
+function ($) { "use strict";
545090
545090
  // CAROUSEL CLASS DEFINITION
545090
  // =========================
545090
545090
  var Carousel = function (element, options) {
545090
    this.$element    = $(element)
545090
    this.$indicators = this.$element.find('.carousel-indicators')
545090
    this.options     = options
545090
    this.paused      =
545090
    this.sliding     =
545090
    this.interval    =
545090
    this.$active     =
545090
    this.$items      = null
545090
545090
    this.options.pause == 'hover' && this.$element
545090
      .on('mouseenter', $.proxy(this.pause, this))
545090
      .on('mouseleave', $.proxy(this.cycle, this))
545090
  }
545090
545090
  Carousel.DEFAULTS = {
545090
    interval: 5000
545090
  , pause: 'hover'
545090
  , wrap: true
545090
  }
545090
545090
  Carousel.prototype.cycle =  function (e) {
545090
    e || (this.paused = false)
545090
545090
    this.interval && clearInterval(this.interval)
545090
545090
    this.options.interval
545090
      && !this.paused
545090
      && (this.interval = setInterval($.proxy(this.next, this), this.options.interval))
545090
545090
    return this
545090
  }
545090
545090
  Carousel.prototype.getActiveIndex = function () {
545090
    this.$active = this.$element.find('.item.active')
545090
    this.$items  = this.$active.parent().children()
545090
545090
    return this.$items.index(this.$active)
545090
  }
545090
545090
  Carousel.prototype.to = function (pos) {
545090
    var that        = this
545090
    var activeIndex = this.getActiveIndex()
545090
545090
    if (pos > (this.$items.length - 1) || pos < 0) return
545090
545090
    if (this.sliding)       return this.$element.one('slid', function () { that.to(pos) })
545090
    if (activeIndex == pos) return this.pause().cycle()
545090
545090
    return this.slide(pos > activeIndex ? 'next' : 'prev', $(this.$items[pos]))
545090
  }
545090
545090
  Carousel.prototype.pause = function (e) {
545090
    e || (this.paused = true)
545090
545090
    if (this.$element.find('.next, .prev').length && $.support.transition.end) {
545090
      this.$element.trigger($.support.transition.end)
545090
      this.cycle(true)
545090
    }
545090
545090
    this.interval = clearInterval(this.interval)
545090
545090
    return this
545090
  }
545090
545090
  Carousel.prototype.next = function () {
545090
    if (this.sliding) return
545090
    return this.slide('next')
545090
  }
545090
545090
  Carousel.prototype.prev = function () {
545090
    if (this.sliding) return
545090
    return this.slide('prev')
545090
  }
545090
545090
  Carousel.prototype.slide = function (type, next) {
545090
    var $active   = this.$element.find('.item.active')
545090
    var $next     = next || $active[type]()
545090
    var isCycling = this.interval
545090
    var direction = type == 'next' ? 'left' : 'right'
545090
    var fallback  = type == 'next' ? 'first' : 'last'
545090
    var that      = this
545090
545090
    if (!$next.length) {
545090
      if (!this.options.wrap) return
545090
      $next = this.$element.find('.item')[fallback]()
545090
    }
545090
545090
    this.sliding = true
545090
545090
    isCycling && this.pause()
545090
545090
    var e = $.Event('slide.bs.carousel', { relatedTarget: $next[0], direction: direction })
545090
545090
    if ($next.hasClass('active')) return
545090
545090
    if (this.$indicators.length) {
545090
      this.$indicators.find('.active').removeClass('active')
545090
      this.$element.one('slid', function () {
545090
        var $nextIndicator = $(that.$indicators.children()[that.getActiveIndex()])
545090
        $nextIndicator && $nextIndicator.addClass('active')
545090
      })
545090
    }
545090
545090
    if ($.support.transition && this.$element.hasClass('slide')) {
545090
      this.$element.trigger(e)
545090
      if (e.isDefaultPrevented()) return
545090
      $next.addClass(type)
545090
      $next[0].offsetWidth // force reflow
545090
      $active.addClass(direction)
545090
      $next.addClass(direction)
545090
      $active
545090
        .one($.support.transition.end, function () {
545090
          $next.removeClass([type, direction].join(' ')).addClass('active')
545090
          $active.removeClass(['active', direction].join(' '))
545090
          that.sliding = false
545090
          setTimeout(function () { that.$element.trigger('slid') }, 0)
545090
        })
545090
        .emulateTransitionEnd(600)
545090
    } else {
545090
      this.$element.trigger(e)
545090
      if (e.isDefaultPrevented()) return
545090
      $active.removeClass('active')
545090
      $next.addClass('active')
545090
      this.sliding = false
545090
      this.$element.trigger('slid')
545090
    }
545090
545090
    isCycling && this.cycle()
545090
545090
    return this
545090
  }
545090
545090
545090
  // CAROUSEL PLUGIN DEFINITION
545090
  // ==========================
545090
545090
  var old = $.fn.carousel
545090
545090
  $.fn.carousel = function (option) {
545090
    return this.each(function () {
545090
      var $this   = $(this)
545090
      var data    = $this.data('bs.carousel')
545090
      var options = $.extend({}, Carousel.DEFAULTS, $this.data(), typeof option == 'object' && option)
545090
      var action  = typeof option == 'string' ? option : options.slide
545090
545090
      if (!data) $this.data('bs.carousel', (data = new Carousel(this, options)))
545090
      if (typeof option == 'number') data.to(option)
545090
      else if (action) data[action]()
545090
      else if (options.interval) data.pause().cycle()
545090
    })
545090
  }
545090
545090
  $.fn.carousel.Constructor = Carousel
545090
545090
545090
  // CAROUSEL NO CONFLICT
545090
  // ====================
545090
545090
  $.fn.carousel.noConflict = function () {
545090
    $.fn.carousel = old
545090
    return this
545090
  }
545090
545090
545090
  // CAROUSEL DATA-API
545090
  // =================
545090
545090
  $(document).on('click.bs.carousel.data-api', '[data-slide], [data-slide-to]', function (e) {
545090
    var $this   = $(this), href
545090
    var $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) //strip for ie7
545090
    var options = $.extend({}, $target.data(), $this.data())
545090
    var slideIndex = $this.attr('data-slide-to')
545090
    if (slideIndex) options.interval = false
545090
545090
    $target.carousel(options)
545090
545090
    if (slideIndex = $this.attr('data-slide-to')) {
545090
      $target.data('bs.carousel').to(slideIndex)
545090
    }
545090
545090
    e.preventDefault()
545090
  })
545090
545090
  $(window).on('load', function () {
545090
    $('[data-ride="carousel"]').each(function () {
545090
      var $carousel = $(this)
545090
      $carousel.carousel($carousel.data())
545090
    })
545090
  })
545090
545090
}(window.jQuery);
545090
545090
/* ========================================================================
545090
 * Bootstrap: collapse.js v3.0.0
545090
 * http://twbs.github.com/bootstrap/javascript.html#collapse
545090
 * ========================================================================
545090
 * Copyright 2012 Twitter, Inc.
545090
 *
545090
 * Licensed under the Apache License, Version 2.0 (the "License");
545090
 * you may not use this file except in compliance with the License.
545090
 * You may obtain a copy of the License at
545090
 *
545090
 * http://www.apache.org/licenses/LICENSE-2.0
545090
 *
545090
 * Unless required by applicable law or agreed to in writing, software
545090
 * distributed under the License is distributed on an "AS IS" BASIS,
545090
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
545090
 * See the License for the specific language governing permissions and
545090
 * limitations under the License.
545090
 * ======================================================================== */
545090
545090
545090
+function ($) { "use strict";
545090
545090
  // COLLAPSE PUBLIC CLASS DEFINITION
545090
  // ================================
545090
545090
  var Collapse = function (element, options) {
545090
    this.$element      = $(element)
545090
    this.options       = $.extend({}, Collapse.DEFAULTS, options)
545090
    this.transitioning = null
545090
545090
    if (this.options.parent) this.$parent = $(this.options.parent)
545090
    if (this.options.toggle) this.toggle()
545090
  }
545090
545090
  Collapse.DEFAULTS = {
545090
    toggle: true
545090
  }
545090
545090
  Collapse.prototype.dimension = function () {
545090
    var hasWidth = this.$element.hasClass('width')
545090
    return hasWidth ? 'width' : 'height'
545090
  }
545090
545090
  Collapse.prototype.show = function () {
545090
    if (this.transitioning || this.$element.hasClass('in')) return
545090
545090
    var startEvent = $.Event('show.bs.collapse')
545090
    this.$element.trigger(startEvent)
545090
    if (startEvent.isDefaultPrevented()) return
545090
545090
    var actives = this.$parent && this.$parent.find('> .panel > .in')
545090
545090
    if (actives && actives.length) {
545090
      var hasData = actives.data('bs.collapse')
545090
      if (hasData && hasData.transitioning) return
545090
      actives.collapse('hide')
545090
      hasData || actives.data('bs.collapse', null)
545090
    }
545090
545090
    var dimension = this.dimension()
545090
545090
    this.$element
545090
      .removeClass('collapse')
545090
      .addClass('collapsing')
545090
      [dimension](0)
545090
545090
    this.transitioning = 1
545090
545090
    var complete = function () {
545090
      this.$element
545090
        .removeClass('collapsing')
545090
        .addClass('in')
545090
        [dimension]('auto')
545090
      this.transitioning = 0
545090
      this.$element.trigger('shown.bs.collapse')
545090
    }
545090
545090
    if (!$.support.transition) return complete.call(this)
545090
545090
    var scrollSize = $.camelCase(['scroll', dimension].join('-'))
545090
545090
    this.$element
545090
      .one($.support.transition.end, $.proxy(complete, this))
545090
      .emulateTransitionEnd(350)
545090
      [dimension](this.$element[0][scrollSize])
545090
  }
545090
545090
  Collapse.prototype.hide = function () {
545090
    if (this.transitioning || !this.$element.hasClass('in')) return
545090
545090
    var startEvent = $.Event('hide.bs.collapse')
545090
    this.$element.trigger(startEvent)
545090
    if (startEvent.isDefaultPrevented()) return
545090
545090
    var dimension = this.dimension()
545090
545090
    this.$element
545090
      [dimension](this.$element[dimension]())
545090
      [0].offsetHeight
545090
545090
    this.$element
545090
      .addClass('collapsing')
545090
      .removeClass('collapse')
545090
      .removeClass('in')
545090
545090
    this.transitioning = 1
545090
545090
    var complete = function () {
545090
      this.transitioning = 0
545090
      this.$element
545090
        .trigger('hidden.bs.collapse')
545090
        .removeClass('collapsing')
545090
        .addClass('collapse')
545090
    }
545090
545090
    if (!$.support.transition) return complete.call(this)
545090
545090
    this.$element
545090
      [dimension](0)
545090
      .one($.support.transition.end, $.proxy(complete, this))
545090
      .emulateTransitionEnd(350)
545090
  }
545090
545090
  Collapse.prototype.toggle = function () {
545090
    this[this.$element.hasClass('in') ? 'hide' : 'show']()
545090
  }
545090
545090
545090
  // COLLAPSE PLUGIN DEFINITION
545090
  // ==========================
545090
545090
  var old = $.fn.collapse
545090
545090
  $.fn.collapse = function (option) {
545090
    return this.each(function () {
545090
      var $this   = $(this)
545090
      var data    = $this.data('bs.collapse')
545090
      var options = $.extend({}, Collapse.DEFAULTS, $this.data(), typeof option == 'object' && option)
545090
545090
      if (!data) $this.data('bs.collapse', (data = new Collapse(this, options)))
545090
      if (typeof option == 'string') data[option]()
545090
    })
545090
  }
545090
545090
  $.fn.collapse.Constructor = Collapse
545090
545090
545090
  // COLLAPSE NO CONFLICT
545090
  // ====================
545090
545090
  $.fn.collapse.noConflict = function () {
545090
    $.fn.collapse = old
545090
    return this
545090
  }
545090
545090
545090
  // COLLAPSE DATA-API
545090
  // =================
545090
545090
  $(document).on('click.bs.collapse.data-api', '[data-toggle=collapse]', function (e) {
545090
    var $this   = $(this), href
545090
    var target  = $this.attr('data-target')
545090
        || e.preventDefault()
545090
        || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') //strip for ie7
545090
    var $target = $(target)
545090
    var data    = $target.data('bs.collapse')
545090
    var option  = data ? 'toggle' : $this.data()
545090
    var parent  = $this.attr('data-parent')
545090
    var $parent = parent && $(parent)
545090
545090
    if (!data || !data.transitioning) {
545090
      if ($parent) $parent.find('[data-toggle=collapse][data-parent="' + parent + '"]').not($this).addClass('collapsed')
545090
      $this[$target.hasClass('in') ? 'addClass' : 'removeClass']('collapsed')
545090
    }
545090
545090
    $target.collapse(option)
545090
  })
545090
545090
}(window.jQuery);
545090
545090
/* ========================================================================
545090
 * Bootstrap: dropdown.js v3.0.0
545090
 * http://twbs.github.com/bootstrap/javascript.html#dropdowns
545090
 * ========================================================================
545090
 * Copyright 2012 Twitter, Inc.
545090
 *
545090
 * Licensed under the Apache License, Version 2.0 (the "License");
545090
 * you may not use this file except in compliance with the License.
545090
 * You may obtain a copy of the License at
545090
 *
545090
 * http://www.apache.org/licenses/LICENSE-2.0
545090
 *
545090
 * Unless required by applicable law or agreed to in writing, software
545090
 * distributed under the License is distributed on an "AS IS" BASIS,
545090
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
545090
 * See the License for the specific language governing permissions and
545090
 * limitations under the License.
545090
 * ======================================================================== */
545090
545090
545090
+function ($) { "use strict";
545090
545090
  // DROPDOWN CLASS DEFINITION
545090
  // =========================
545090
545090
  var backdrop = '.dropdown-backdrop'
545090
  var toggle   = '[data-toggle=dropdown]'
545090
  var Dropdown = function (element) {
545090
    var $el = $(element).on('click.bs.dropdown', this.toggle)
545090
  }
545090
545090
  Dropdown.prototype.toggle = function (e) {
545090
    var $this = $(this)
545090
545090
    if ($this.is('.disabled, :disabled')) return
545090
545090
    var $parent  = getParent($this)
545090
    var isActive = $parent.hasClass('open')
545090
545090
    clearMenus()
545090
545090
    if (!isActive) {
545090
      if ('ontouchstart' in document.documentElement && !$parent.closest('.navbar-nav').length) {
545090
        // if mobile we we use a backdrop because click events don't delegate
545090
        $('
545090
      }
545090
545090
      $parent.trigger(e = $.Event('show.bs.dropdown'))
545090
545090
      if (e.isDefaultPrevented()) return
545090
545090
      $parent
545090
        .toggleClass('open')
545090
        .trigger('shown.bs.dropdown')
545090
545090
      $this.focus()
545090
    }
545090
545090
    return false
545090
  }
545090
545090
  Dropdown.prototype.keydown = function (e) {
545090
    if (!/(38|40|27)/.test(e.keyCode)) return
545090
545090
    var $this = $(this)
545090
545090
    e.preventDefault()
545090
    e.stopPropagation()
545090
545090
    if ($this.is('.disabled, :disabled')) return
545090
545090
    var $parent  = getParent($this)
545090
    var isActive = $parent.hasClass('open')
545090
545090
    if (!isActive || (isActive && e.keyCode == 27)) {
545090
      if (e.which == 27) $parent.find(toggle).focus()
545090
      return $this.click()
545090
    }
545090
545090
    var $items = $('[role=menu] li:not(.divider):visible a', $parent)
545090
545090
    if (!$items.length) return
545090
545090
    var index = $items.index($items.filter(':focus'))
545090
545090
    if (e.keyCode == 38 && index > 0)                 index--                        // up
545090
    if (e.keyCode == 40 && index < $items.length - 1) index++                        // down
545090
    if (!~index)                                      index=0
545090
545090
    $items.eq(index).focus()
545090
  }
545090
545090
  function clearMenus() {
545090
    $(backdrop).remove()
545090
    $(toggle).each(function (e) {
545090
      var $parent = getParent($(this))
545090
      if (!$parent.hasClass('open')) return
545090
      $parent.trigger(e = $.Event('hide.bs.dropdown'))
545090
      if (e.isDefaultPrevented()) return
545090
      $parent.removeClass('open').trigger('hidden.bs.dropdown')
545090
    })
545090
  }
545090
545090
  function getParent($this) {
545090
    var selector = $this.attr('data-target')
545090
545090
    if (!selector) {
545090
      selector = $this.attr('href')
545090
      selector = selector && /#/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7
545090
    }
545090
545090
    var $parent = selector && $(selector)
545090
545090
    return $parent && $parent.length ? $parent : $this.parent()
545090
  }
545090
545090
545090
  // DROPDOWN PLUGIN DEFINITION
545090
  // ==========================
545090
545090
  var old = $.fn.dropdown
545090
545090
  $.fn.dropdown = function (option) {
545090
    return this.each(function () {
545090
      var $this = $(this)
545090
      var data  = $this.data('dropdown')
545090
545090
      if (!data) $this.data('dropdown', (data = new Dropdown(this)))
545090
      if (typeof option == 'string') data[option].call($this)
545090
    })
545090
  }
545090
545090
  $.fn.dropdown.Constructor = Dropdown
545090
545090
545090
  // DROPDOWN NO CONFLICT
545090
  // ====================
545090
545090
  $.fn.dropdown.noConflict = function () {
545090
    $.fn.dropdown = old
545090
    return this
545090
  }
545090
545090
545090
  // APPLY TO STANDARD DROPDOWN ELEMENTS
545090
  // ===================================
545090
545090
  $(document)
545090
    .on('click.bs.dropdown.data-api', clearMenus)
545090
    .on('click.bs.dropdown.data-api', '.dropdown form', function (e) { e.stopPropagation() })
545090
    .on('click.bs.dropdown.data-api'  , toggle, Dropdown.prototype.toggle)
545090
    .on('keydown.bs.dropdown.data-api', toggle + ', [role=menu]' , Dropdown.prototype.keydown)
545090
545090
}(window.jQuery);
545090
545090
/* ========================================================================
545090
 * Bootstrap: modal.js v3.0.0
545090
 * http://twbs.github.com/bootstrap/javascript.html#modals
545090
 * ========================================================================
545090
 * Copyright 2012 Twitter, Inc.
545090
 *
545090
 * Licensed under the Apache License, Version 2.0 (the "License");
545090
 * you may not use this file except in compliance with the License.
545090
 * You may obtain a copy of the License at
545090
 *
545090
 * http://www.apache.org/licenses/LICENSE-2.0
545090
 *
545090
 * Unless required by applicable law or agreed to in writing, software
545090
 * distributed under the License is distributed on an "AS IS" BASIS,
545090
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
545090
 * See the License for the specific language governing permissions and
545090
 * limitations under the License.
545090
 * ======================================================================== */
545090
545090
545090
+function ($) { "use strict";
545090
545090
  // MODAL CLASS DEFINITION
545090
  // ======================
545090
545090
  var Modal = function (element, options) {
545090
    this.options   = options
545090
    this.$element  = $(element)
545090
    this.$backdrop =
545090
    this.isShown   = null
545090
545090
    if (this.options.remote) this.$element.load(this.options.remote)
545090
  }
545090
545090
  Modal.DEFAULTS = {
545090
      backdrop: true
545090
    , keyboard: true
545090
    , show: true
545090
  }
545090
545090
  Modal.prototype.toggle = function (_relatedTarget) {
545090
    return this[!this.isShown ? 'show' : 'hide'](_relatedTarget)
545090
  }
545090
545090
  Modal.prototype.show = function (_relatedTarget) {
545090
    var that = this
545090
    var e    = $.Event('show.bs.modal', { relatedTarget: _relatedTarget })
545090
545090
    this.$element.trigger(e)
545090
545090
    if (this.isShown || e.isDefaultPrevented()) return
545090
545090
    this.isShown = true
545090
545090
    this.escape()
545090
545090
    this.$element.on('click.dismiss.modal', '[data-dismiss="modal"]', $.proxy(this.hide, this))
545090
545090
    this.backdrop(function () {
545090
      var transition = $.support.transition && that.$element.hasClass('fade')
545090
545090
      if (!that.$element.parent().length) {
545090
        that.$element.appendTo(document.body) // don't move modals dom position
545090
      }
545090
545090
      that.$element.show()
545090
545090
      if (transition) {
545090
        that.$element[0].offsetWidth // force reflow
545090
      }
545090
545090
      that.$element
545090
        .addClass('in')
545090
        .attr('aria-hidden', false)
545090
545090
      that.enforceFocus()
545090
545090
      var e = $.Event('shown.bs.modal', { relatedTarget: _relatedTarget })
545090
545090
      transition ?
545090
        that.$element.find('.modal-dialog') // wait for modal to slide in
545090
          .one($.support.transition.end, function () {
545090
            that.$element.focus().trigger(e)
545090
          })
545090
          .emulateTransitionEnd(300) :
545090
        that.$element.focus().trigger(e)
545090
    })
545090
  }
545090
545090
  Modal.prototype.hide = function (e) {
545090
    if (e) e.preventDefault()
545090
545090
    e = $.Event('hide.bs.modal')
545090
545090
    this.$element.trigger(e)
545090
545090
    if (!this.isShown || e.isDefaultPrevented()) return
545090
545090
    this.isShown = false
545090
545090
    this.escape()
545090
545090
    $(document).off('focusin.bs.modal')
545090
545090
    this.$element
545090
      .removeClass('in')
545090
      .attr('aria-hidden', true)
545090
      .off('click.dismiss.modal')
545090
545090
    $.support.transition && this.$element.hasClass('fade') ?
545090
      this.$element
545090
        .one($.support.transition.end, $.proxy(this.hideModal, this))
545090
        .emulateTransitionEnd(300) :
545090
      this.hideModal()
545090
  }
545090
545090
  Modal.prototype.enforceFocus = function () {
545090
    $(document)
545090
      .off('focusin.bs.modal') // guard against infinite focus loop
545090
      .on('focusin.bs.modal', $.proxy(function (e) {
545090
        if (this.$element[0] !== e.target && !this.$element.has(e.target).length) {
545090
          this.$element.focus()
545090
        }
545090
      }, this))
545090
  }
545090
545090
  Modal.prototype.escape = function () {
545090
    if (this.isShown && this.options.keyboard) {
545090
      this.$element.on('keyup.dismiss.bs.modal', $.proxy(function (e) {
545090
        e.which == 27 && this.hide()
545090
      }, this))
545090
    } else if (!this.isShown) {
545090
      this.$element.off('keyup.dismiss.bs.modal')
545090
    }
545090
  }
545090
545090
  Modal.prototype.hideModal = function () {
545090
    var that = this
545090
    this.$element.hide()
545090
    this.backdrop(function () {
545090
      that.removeBackdrop()
545090
      that.$element.trigger('hidden.bs.modal')
545090
    })
545090
  }
545090
545090
  Modal.prototype.removeBackdrop = function () {
545090
    this.$backdrop && this.$backdrop.remove()
545090
    this.$backdrop = null
545090
  }
545090
545090
  Modal.prototype.backdrop = function (callback) {
545090
    var that    = this
545090
    var animate = this.$element.hasClass('fade') ? 'fade' : ''
545090
545090
    if (this.isShown && this.options.backdrop) {
545090
      var doAnimate = $.support.transition && animate
545090
545090
      this.$backdrop = $('
545090
        .appendTo(document.body)
545090
545090
      this.$element.on('click.dismiss.modal', $.proxy(function (e) {
545090
        if (e.target !== e.currentTarget) return
545090
        this.options.backdrop == 'static'
545090
          ? this.$element[0].focus.call(this.$element[0])
545090
          : this.hide.call(this)
545090
      }, this))
545090
545090
      if (doAnimate) this.$backdrop[0].offsetWidth // force reflow
545090
545090
      this.$backdrop.addClass('in')
545090
545090
      if (!callback) return
545090
545090
      doAnimate ?
545090
        this.$backdrop
545090
          .one($.support.transition.end, callback)
545090
          .emulateTransitionEnd(150) :
545090
        callback()
545090
545090
    } else if (!this.isShown && this.$backdrop) {
545090
      this.$backdrop.removeClass('in')
545090
545090
      $.support.transition && this.$element.hasClass('fade')?
545090
        this.$backdrop
545090
          .one($.support.transition.end, callback)
545090
          .emulateTransitionEnd(150) :
545090
        callback()
545090
545090
    } else if (callback) {
545090
      callback()
545090
    }
545090
  }
545090
545090
545090
  // MODAL PLUGIN DEFINITION
545090
  // =======================
545090
545090
  var old = $.fn.modal
545090
545090
  $.fn.modal = function (option, _relatedTarget) {
545090
    return this.each(function () {
545090
      var $this   = $(this)
545090
      var data    = $this.data('bs.modal')
545090
      var options = $.extend({}, Modal.DEFAULTS, $this.data(), typeof option == 'object' && option)
545090
545090
      if (!data) $this.data('bs.modal', (data = new Modal(this, options)))
545090
      if (typeof option == 'string') data[option](_relatedTarget)
545090
      else if (options.show) data.show(_relatedTarget)
545090
    })
545090
  }
545090
545090
  $.fn.modal.Constructor = Modal
545090
545090
545090
  // MODAL NO CONFLICT
545090
  // =================
545090
545090
  $.fn.modal.noConflict = function () {
545090
    $.fn.modal = old
545090
    return this
545090
  }
545090
545090
545090
  // MODAL DATA-API
545090
  // ==============
545090
545090
  $(document).on('click.bs.modal.data-api', '[data-toggle="modal"]', function (e) {
545090
    var $this   = $(this)
545090
    var href    = $this.attr('href')
545090
    var $target = $($this.attr('data-target') || (href && href.replace(/.*(?=#[^\s]+$)/, ''))) //strip for ie7
545090
    var option  = $target.data('modal') ? 'toggle' : $.extend({ remote: !/#/.test(href) && href }, $target.data(), $this.data())
545090
545090
    e.preventDefault()
545090
545090
    $target
545090
      .modal(option, this)
545090
      .one('hide', function () {
545090
        $this.is(':visible') && $this.focus()
545090
      })
545090
  })
545090
545090
  $(document)
545090
    .on('show.bs.modal',  '.modal', function () { $(document.body).addClass('modal-open') })
545090
    .on('hidden.bs.modal', '.modal', function () { $(document.body).removeClass('modal-open') })
545090
545090
}(window.jQuery);
545090
545090
/* ========================================================================
545090
 * Bootstrap: tooltip.js v3.0.0
545090
 * http://twbs.github.com/bootstrap/javascript.html#tooltip
545090
 * Inspired by the original jQuery.tipsy by Jason Frame
545090
 * ========================================================================
545090
 * Copyright 2012 Twitter, Inc.
545090
 *
545090
 * Licensed under the Apache License, Version 2.0 (the "License");
545090
 * you may not use this file except in compliance with the License.
545090
 * You may obtain a copy of the License at
545090
 *
545090
 * http://www.apache.org/licenses/LICENSE-2.0
545090
 *
545090
 * Unless required by applicable law or agreed to in writing, software
545090
 * distributed under the License is distributed on an "AS IS" BASIS,
545090
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
545090
 * See the License for the specific language governing permissions and
545090
 * limitations under the License.
545090
 * ======================================================================== */
545090
545090
545090
+function ($) { "use strict";
545090
545090
  // TOOLTIP PUBLIC CLASS DEFINITION
545090
  // ===============================
545090
545090
  var Tooltip = function (element, options) {
545090
    this.type       =
545090
    this.options    =
545090
    this.enabled    =
545090
    this.timeout    =
545090
    this.hoverState =
545090
    this.$element   = null
545090
545090
    this.init('tooltip', element, options)
545090
  }
545090
545090
  Tooltip.DEFAULTS = {
545090
    animation: true
545090
  , placement: 'top'
545090
  , selector: false
545090
  , template: '
'
545090
  , trigger: 'hover focus'
545090
  , title: ''
545090
  , delay: 0
545090
  , html: false
545090
  , container: false
545090
  }
545090
545090
  Tooltip.prototype.init = function (type, element, options) {
545090
    this.enabled  = true
545090
    this.type     = type
545090
    this.$element = $(element)
545090
    this.options  = this.getOptions(options)
545090
545090
    var triggers = this.options.trigger.split(' ')
545090
545090
    for (var i = triggers.length; i--;) {
545090
      var trigger = triggers[i]
545090
545090
      if (trigger == 'click') {
545090
        this.$element.on('click.' + this.type, this.options.selector, $.proxy(this.toggle, this))
545090
      } else if (trigger != 'manual') {
545090
        var eventIn  = trigger == 'hover' ? 'mouseenter' : 'focus'
545090
        var eventOut = trigger == 'hover' ? 'mouseleave' : 'blur'
545090
545090
        this.$element.on(eventIn  + '.' + this.type, this.options.selector, $.proxy(this.enter, this))
545090
        this.$element.on(eventOut + '.' + this.type, this.options.selector, $.proxy(this.leave, this))
545090
      }
545090
    }
545090
545090
    this.options.selector ?
545090
      (this._options = $.extend({}, this.options, { trigger: 'manual', selector: '' })) :
545090
      this.fixTitle()
545090
  }
545090
545090
  Tooltip.prototype.getDefaults = function () {
545090
    return Tooltip.DEFAULTS
545090
  }
545090
545090
  Tooltip.prototype.getOptions = function (options) {
545090
    options = $.extend({}, this.getDefaults(), this.$element.data(), options)
545090
545090
    if (options.delay && typeof options.delay == 'number') {
545090
      options.delay = {
545090
        show: options.delay
545090
      , hide: options.delay
545090
      }
545090
    }
545090
545090
    return options
545090
  }
545090
545090
  Tooltip.prototype.getDelegateOptions = function () {
545090
    var options  = {}
545090
    var defaults = this.getDefaults()
545090
545090
    this._options && $.each(this._options, function (key, value) {
545090
      if (defaults[key] != value) options[key] = value
545090
    })
545090
545090
    return options
545090
  }
545090
545090
  Tooltip.prototype.enter = function (obj) {
545090
    var self = obj instanceof this.constructor ?
545090
      obj : $(obj.currentTarget)[this.type](this.getDelegateOptions()).data('bs.' + this.type)
545090
545090
    clearTimeout(self.timeout)
545090
545090
    self.hoverState = 'in'
545090
545090
    if (!self.options.delay || !self.options.delay.show) return self.show()
545090
545090
    self.timeout = setTimeout(function () {
545090
      if (self.hoverState == 'in') self.show()
545090
    }, self.options.delay.show)
545090
  }
545090
545090
  Tooltip.prototype.leave = function (obj) {
545090
    var self = obj instanceof this.constructor ?
545090
      obj : $(obj.currentTarget)[this.type](this.getDelegateOptions()).data('bs.' + this.type)
545090
545090
    clearTimeout(self.timeout)
545090
545090
    self.hoverState = 'out'
545090
545090
    if (!self.options.delay || !self.options.delay.hide) return self.hide()
545090
545090
    self.timeout = setTimeout(function () {
545090
      if (self.hoverState == 'out') self.hide()
545090
    }, self.options.delay.hide)
545090
  }
545090
545090
  Tooltip.prototype.show = function () {
545090
    var e = $.Event('show.bs.'+ this.type)
545090
545090
    if (this.hasContent() && this.enabled) {
545090
      this.$element.trigger(e)
545090
545090
      if (e.isDefaultPrevented()) return
545090
545090
      var $tip = this.tip()
545090
545090
      this.setContent()
545090
545090
      if (this.options.animation) $tip.addClass('fade')
545090
545090
      var placement = typeof this.options.placement == 'function' ?
545090
        this.options.placement.call(this, $tip[0], this.$element[0]) :
545090
        this.options.placement
545090
545090
      var autoToken = /\s?auto?\s?/i
545090
      var autoPlace = autoToken.test(placement)
545090
      if (autoPlace) placement = placement.replace(autoToken, '') || 'top'
545090
545090
      $tip
545090
        .detach()
545090
        .css({ top: 0, left: 0, display: 'block' })
545090
        .addClass(placement)
545090
545090
      this.options.container ? $tip.appendTo(this.options.container) : $tip.insertAfter(this.$element)
545090
545090
      var pos          = this.getPosition()
545090
      var actualWidth  = $tip[0].offsetWidth
545090
      var actualHeight = $tip[0].offsetHeight
545090
545090
      if (autoPlace) {
545090
        var $parent = this.$element.parent()
545090
545090
        var orgPlacement = placement
545090
        var docScroll    = document.documentElement.scrollTop || document.body.scrollTop
545090
        var parentWidth  = this.options.container == 'body' ? window.innerWidth  : $parent.outerWidth()
545090
        var parentHeight = this.options.container == 'body' ? window.innerHeight : $parent.outerHeight()
545090
        var parentLeft   = this.options.container == 'body' ? 0 : $parent.offset().left
545090
545090
        placement = placement == 'bottom' && pos.top   + pos.height  + actualHeight - docScroll > parentHeight  ? 'top'    :
545090
                    placement == 'top'    && pos.top   - docScroll   - actualHeight < 0                         ? 'bottom' :
545090
                    placement == 'right'  && pos.right + actualWidth > parentWidth                              ? 'left'   :
545090
                    placement == 'left'   && pos.left  - actualWidth < parentLeft                               ? 'right'  :
545090
                    placement
545090
545090
        $tip
545090
          .removeClass(orgPlacement)
545090
          .addClass(placement)
545090
      }
545090
545090
      var calculatedOffset = this.getCalculatedOffset(placement, pos, actualWidth, actualHeight)
545090
545090
      this.applyPlacement(calculatedOffset, placement)
545090
      this.$element.trigger('shown.bs.' + this.type)
545090
    }
545090
  }
545090
545090
  Tooltip.prototype.applyPlacement = function(offset, placement) {
545090
    var replace
545090
    var $tip   = this.tip()
545090
    var width  = $tip[0].offsetWidth
545090
    var height = $tip[0].offsetHeight
545090
545090
    // manually read margins because getBoundingClientRect includes difference
545090
    var marginTop = parseInt($tip.css('margin-top'), 10)
545090
    var marginLeft = parseInt($tip.css('margin-left'), 10)
545090
545090
    // we must check for NaN for ie 8/9
545090
    if (isNaN(marginTop))  marginTop  = 0
545090
    if (isNaN(marginLeft)) marginLeft = 0
545090
545090
    offset.top  = offset.top  + marginTop
545090
    offset.left = offset.left + marginLeft
545090
545090
    $tip
545090
      .offset(offset)
545090
      .addClass('in')
545090
545090
    // check to see if placing tip in new offset caused the tip to resize itself
545090
    var actualWidth  = $tip[0].offsetWidth
545090
    var actualHeight = $tip[0].offsetHeight
545090
545090
    if (placement == 'top' && actualHeight != height) {
545090
      replace = true
545090
      offset.top = offset.top + height - actualHeight
545090
    }
545090
545090
    if (/bottom|top/.test(placement)) {
545090
      var delta = 0
545090
545090
      if (offset.left < 0) {
545090
        delta       = offset.left * -2
545090
        offset.left = 0
545090
545090
        $tip.offset(offset)
545090
545090
        actualWidth  = $tip[0].offsetWidth
545090
        actualHeight = $tip[0].offsetHeight
545090
      }
545090
545090
      this.replaceArrow(delta - width + actualWidth, actualWidth, 'left')
545090
    } else {
545090
      this.replaceArrow(actualHeight - height, actualHeight, 'top')
545090
    }
545090
545090
    if (replace) $tip.offset(offset)
545090
  }
545090
545090
  Tooltip.prototype.replaceArrow = function(delta, dimension, position) {
545090
    this.arrow().css(position, delta ? (50 * (1 - delta / dimension) + "%") : '')
545090
  }
545090
545090
  Tooltip.prototype.setContent = function () {
545090
    var $tip  = this.tip()
545090
    var title = this.getTitle()
545090
545090
    $tip.find('.tooltip-inner')[this.options.html ? 'html' : 'text'](title)
545090
    $tip.removeClass('fade in top bottom left right')
545090
  }
545090
545090
  Tooltip.prototype.hide = function () {
545090
    var that = this
545090
    var $tip = this.tip()
545090
    var e    = $.Event('hide.bs.' + this.type)
545090
545090
    function complete() {
545090
      if (that.hoverState != 'in') $tip.detach()
545090
    }
545090
545090
    this.$element.trigger(e)
545090
545090
    if (e.isDefaultPrevented()) return
545090
545090
    $tip.removeClass('in')
545090
545090
    $.support.transition && this.$tip.hasClass('fade') ?
545090
      $tip
545090
        .one($.support.transition.end, complete)
545090
        .emulateTransitionEnd(150) :
545090
      complete()
545090
545090
    this.$element.trigger('hidden.bs.' + this.type)
545090
545090
    return this
545090
  }
545090
545090
  Tooltip.prototype.fixTitle = function () {
545090
    var $e = this.$element
545090
    if ($e.attr('title') || typeof($e.attr('data-original-title')) != 'string') {
545090
      $e.attr('data-original-title', $e.attr('title') || '').attr('title', '')
545090
    }
545090
  }
545090
545090
  Tooltip.prototype.hasContent = function () {
545090
    return this.getTitle()
545090
  }
545090
545090
  Tooltip.prototype.getPosition = function () {
545090
    var el = this.$element[0]
545090
    return $.extend({}, (typeof el.getBoundingClientRect == 'function') ? el.getBoundingClientRect() : {
545090
      width: el.offsetWidth
545090
    , height: el.offsetHeight
545090
    }, this.$element.offset())
545090
  }
545090
545090
  Tooltip.prototype.getCalculatedOffset = function (placement, pos, actualWidth, actualHeight) {
545090
    return placement == 'bottom' ? { top: pos.top + pos.height,   left: pos.left + pos.width / 2 - actualWidth / 2  } :
545090
           placement == 'top'    ? { top: pos.top - actualHeight, left: pos.left + pos.width / 2 - actualWidth / 2  } :
545090
           placement == 'left'   ? { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left - actualWidth } :
545090
        /* placement == 'right' */ { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width   }
545090
  }
545090
545090
  Tooltip.prototype.getTitle = function () {
545090
    var title
545090
    var $e = this.$element
545090
    var o  = this.options
545090
545090
    title = $e.attr('data-original-title')
545090
      || (typeof o.title == 'function' ? o.title.call($e[0]) :  o.title)
545090
545090
    return title
545090
  }
545090
545090
  Tooltip.prototype.tip = function () {
545090
    return this.$tip = this.$tip || $(this.options.template)
545090
  }
545090
545090
  Tooltip.prototype.arrow = function () {
545090
    return this.$arrow = this.$arrow || this.tip().find('.tooltip-arrow')
545090
  }
545090
545090
  Tooltip.prototype.validate = function () {
545090
    if (!this.$element[0].parentNode) {
545090
      this.hide()
545090
      this.$element = null
545090
      this.options  = null
545090
    }
545090
  }
545090
545090
  Tooltip.prototype.enable = function () {
545090
    this.enabled = true
545090
  }
545090
545090
  Tooltip.prototype.disable = function () {
545090
    this.enabled = false
545090
  }
545090
545090
  Tooltip.prototype.toggleEnabled = function () {
545090
    this.enabled = !this.enabled
545090
  }
545090
545090
  Tooltip.prototype.toggle = function (e) {
545090
    var self = e ? $(e.currentTarget)[this.type](this.getDelegateOptions()).data('bs.' + this.type) : this
545090
    self.tip().hasClass('in') ? self.leave(self) : self.enter(self)
545090
  }
545090
545090
  Tooltip.prototype.destroy = function () {
545090
    this.hide().$element.off('.' + this.type).removeData('bs.' + this.type)
545090
  }
545090
545090
545090
  // TOOLTIP PLUGIN DEFINITION
545090
  // =========================
545090
545090
  var old = $.fn.tooltip
545090
545090
  $.fn.tooltip = function (option) {
545090
    return this.each(function () {
545090
      var $this   = $(this)
545090
      var data    = $this.data('bs.tooltip')
545090
      var options = typeof option == 'object' && option
545090
545090
      if (!data) $this.data('bs.tooltip', (data = new Tooltip(this, options)))
545090
      if (typeof option == 'string') data[option]()
545090
    })
545090
  }
545090
545090
  $.fn.tooltip.Constructor = Tooltip
545090
545090
545090
  // TOOLTIP NO CONFLICT
545090
  // ===================
545090
545090
  $.fn.tooltip.noConflict = function () {
545090
    $.fn.tooltip = old
545090
    return this
545090
  }
545090
545090
}(window.jQuery);
545090
545090
/* ========================================================================
545090
 * Bootstrap: popover.js v3.0.0
545090
 * http://twbs.github.com/bootstrap/javascript.html#popovers
545090
 * ========================================================================
545090
 * Copyright 2012 Twitter, Inc.
545090
 *
545090
 * Licensed under the Apache License, Version 2.0 (the "License");
545090
 * you may not use this file except in compliance with the License.
545090
 * You may obtain a copy of the License at
545090
 *
545090
 * http://www.apache.org/licenses/LICENSE-2.0
545090
 *
545090
 * Unless required by applicable law or agreed to in writing, software
545090
 * distributed under the License is distributed on an "AS IS" BASIS,
545090
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
545090
 * See the License for the specific language governing permissions and
545090
 * limitations under the License.
545090
 * ======================================================================== */
545090
545090
545090
+function ($) { "use strict";
545090
545090
  // POPOVER PUBLIC CLASS DEFINITION
545090
  // ===============================
545090
545090
  var Popover = function (element, options) {
545090
    this.init('popover', element, options)
545090
  }
545090
545090
  if (!$.fn.tooltip) throw new Error('Popover requires tooltip.js')
545090
545090
  Popover.DEFAULTS = $.extend({} , $.fn.tooltip.Constructor.DEFAULTS, {
545090
    placement: 'right'
545090
  , trigger: 'click'
545090
  , content: ''
545090
  , template: '

'
545090
  })
545090
545090
545090
  // NOTE: POPOVER EXTENDS tooltip.js
545090
  // ================================
545090
545090
  Popover.prototype = $.extend({}, $.fn.tooltip.Constructor.prototype)
545090
545090
  Popover.prototype.constructor = Popover
545090
545090
  Popover.prototype.getDefaults = function () {
545090
    return Popover.DEFAULTS
545090
  }
545090
545090
  Popover.prototype.setContent = function () {
545090
    var $tip    = this.tip()
545090
    var title   = this.getTitle()
545090
    var content = this.getContent()
545090
545090
    $tip.find('.popover-title')[this.options.html ? 'html' : 'text'](title)
545090
    $tip.find('.popover-content')[this.options.html ? 'html' : 'text'](content)
545090
545090
    $tip.removeClass('fade top bottom left right in')
545090
545090
    // IE8 doesn't accept hiding via the `:empty` pseudo selector, we have to do
545090
    // this manually by checking the contents.
545090
    if (!$tip.find('.popover-title').html()) $tip.find('.popover-title').hide()
545090
  }
545090
545090
  Popover.prototype.hasContent = function () {
545090
    return this.getTitle() || this.getContent()
545090
  }
545090
545090
  Popover.prototype.getContent = function () {
545090
    var $e = this.$element
545090
    var o  = this.options
545090
545090
    return $e.attr('data-content')
545090
      || (typeof o.content == 'function' ?
545090
            o.content.call($e[0]) :
545090
            o.content)
545090
  }
545090
545090
  Popover.prototype.arrow = function () {
545090
    return this.$arrow = this.$arrow || this.tip().find('.arrow')
545090
  }
545090
545090
  Popover.prototype.tip = function () {
545090
    if (!this.$tip) this.$tip = $(this.options.template)
545090
    return this.$tip
545090
  }
545090
545090
545090
  // POPOVER PLUGIN DEFINITION
545090
  // =========================
545090
545090
  var old = $.fn.popover
545090
545090
  $.fn.popover = function (option) {
545090
    return this.each(function () {
545090
      var $this   = $(this)
545090
      var data    = $this.data('bs.popover')
545090
      var options = typeof option == 'object' && option
545090
545090
      if (!data) $this.data('bs.popover', (data = new Popover(this, options)))
545090
      if (typeof option == 'string') data[option]()
545090
    })
545090
  }
545090
545090
  $.fn.popover.Constructor = Popover
545090
545090
545090
  // POPOVER NO CONFLICT
545090
  // ===================
545090
545090
  $.fn.popover.noConflict = function () {
545090
    $.fn.popover = old
545090
    return this
545090
  }
545090
545090
}(window.jQuery);
545090
545090
/* ========================================================================
545090
 * Bootstrap: scrollspy.js v3.0.0
545090
 * http://twbs.github.com/bootstrap/javascript.html#scrollspy
545090
 * ========================================================================
545090
 * Copyright 2012 Twitter, Inc.
545090
 *
545090
 * Licensed under the Apache License, Version 2.0 (the "License");
545090
 * you may not use this file except in compliance with the License.
545090
 * You may obtain a copy of the License at
545090
 *
545090
 * http://www.apache.org/licenses/LICENSE-2.0
545090
 *
545090
 * Unless required by applicable law or agreed to in writing, software
545090
 * distributed under the License is distributed on an "AS IS" BASIS,
545090
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
545090
 * See the License for the specific language governing permissions and
545090
 * limitations under the License.
545090
 * ======================================================================== */
545090
545090
545090
+function ($) { "use strict";
545090
545090
  // SCROLLSPY CLASS DEFINITION
545090
  // ==========================
545090
545090
  function ScrollSpy(element, options) {
545090
    var href
545090
    var process  = $.proxy(this.process, this)
545090
545090
    this.$element       = $(element).is('body') ? $(window) : $(element)
545090
    this.$body          = $('body')
545090
    this.$scrollElement = this.$element.on('scroll.bs.scroll-spy.data-api', process)
545090
    this.options        = $.extend({}, ScrollSpy.DEFAULTS, options)
545090
    this.selector       = (this.options.target
545090
      || ((href = $(element).attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) //strip for ie7
545090
      || '') + ' .nav li > a'
545090
    this.offsets        = $([])
545090
    this.targets        = $([])
545090
    this.activeTarget   = null
545090
545090
    this.refresh()
545090
    this.process()
545090
  }
545090
545090
  ScrollSpy.DEFAULTS = {
545090
    offset: 10
545090
  }
545090
545090
  ScrollSpy.prototype.refresh = function () {
545090
    var offsetMethod = this.$element[0] == window ? 'offset' : 'position'
545090
545090
    this.offsets = $([])
545090
    this.targets = $([])
545090
545090
    var self     = this
545090
    var $targets = this.$body
545090
      .find(this.selector)
545090
      .map(function () {
545090
        var $el   = $(this)
545090
        var href  = $el.data('target') || $el.attr('href')
545090
        var $href = /^#\w/.test(href) && $(href)
545090
545090
        return ($href
545090
          && $href.length
545090
          && [[ $href[offsetMethod]().top + (!$.isWindow(self.$scrollElement.get(0)) && self.$scrollElement.scrollTop()), href ]]) || null
545090
      })
545090
      .sort(function (a, b) { return a[0] - b[0] })
545090
      .each(function () {
545090
        self.offsets.push(this[0])
545090
        self.targets.push(this[1])
545090
      })
545090
  }
545090
545090
  ScrollSpy.prototype.process = function () {
545090
    var scrollTop    = this.$scrollElement.scrollTop() + this.options.offset
545090
    var scrollHeight = this.$scrollElement[0].scrollHeight || this.$body[0].scrollHeight
545090
    var maxScroll    = scrollHeight - this.$scrollElement.height()
545090
    var offsets      = this.offsets
545090
    var targets      = this.targets
545090
    var activeTarget = this.activeTarget
545090
    var i
545090
545090
    if (scrollTop >= maxScroll) {
545090
      return activeTarget != (i = targets.last()[0]) && this.activate(i)
545090
    }
545090
545090
    for (i = offsets.length; i--;) {
545090
      activeTarget != targets[i]
545090
        && scrollTop >= offsets[i]
545090
        && (!offsets[i + 1] || scrollTop <= offsets[i + 1])
545090
        && this.activate( targets[i] )
545090
    }
545090
  }
545090
545090
  ScrollSpy.prototype.activate = function (target) {
545090
    this.activeTarget = target
545090
545090
    $(this.selector)
545090
      .parents('.active')
545090
      .removeClass('active')
545090
545090
    var selector = this.selector
545090
      + '[data-target="' + target + '"],'
545090
      + this.selector + '[href="' + target + '"]'
545090
545090
    var active = $(selector)
545090
      .parents('li')
545090
      .addClass('active')
545090
545090
    if (active.parent('.dropdown-menu').length)  {
545090
      active = active
545090
        .closest('li.dropdown')
545090
        .addClass('active')
545090
    }
545090
545090
    active.trigger('activate')
545090
  }
545090
545090
545090
  // SCROLLSPY PLUGIN DEFINITION
545090
  // ===========================
545090
545090
  var old = $.fn.scrollspy
545090
545090
  $.fn.scrollspy = function (option) {
545090
    return this.each(function () {
545090
      var $this   = $(this)
545090
      var data    = $this.data('bs.scrollspy')
545090
      var options = typeof option == 'object' && option
545090
545090
      if (!data) $this.data('bs.scrollspy', (data = new ScrollSpy(this, options)))
545090
      if (typeof option == 'string') data[option]()
545090
    })
545090
  }
545090
545090
  $.fn.scrollspy.Constructor = ScrollSpy
545090
545090
545090
  // SCROLLSPY NO CONFLICT
545090
  // =====================
545090
545090
  $.fn.scrollspy.noConflict = function () {
545090
    $.fn.scrollspy = old
545090
    return this
545090
  }
545090
545090
545090
  // SCROLLSPY DATA-API
545090
  // ==================
545090
545090
  $(window).on('load', function () {
545090
    $('[data-spy="scroll"]').each(function () {
545090
      var $spy = $(this)
545090
      $spy.scrollspy($spy.data())
545090
    })
545090
  })
545090
545090
}(window.jQuery);
545090
545090
/* ========================================================================
545090
 * Bootstrap: tab.js v3.0.0
545090
 * http://twbs.github.com/bootstrap/javascript.html#tabs
545090
 * ========================================================================
545090
 * Copyright 2012 Twitter, Inc.
545090
 *
545090
 * Licensed under the Apache License, Version 2.0 (the "License");
545090
 * you may not use this file except in compliance with the License.
545090
 * You may obtain a copy of the License at
545090
 *
545090
 * http://www.apache.org/licenses/LICENSE-2.0
545090
 *
545090
 * Unless required by applicable law or agreed to in writing, software
545090
 * distributed under the License is distributed on an "AS IS" BASIS,
545090
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
545090
 * See the License for the specific language governing permissions and
545090
 * limitations under the License.
545090
 * ======================================================================== */
545090
545090
545090
+function ($) { "use strict";
545090
545090
  // TAB CLASS DEFINITION
545090
  // ====================
545090
545090
  var Tab = function (element) {
545090
    this.element = $(element)
545090
  }
545090
545090
  Tab.prototype.show = function () {
545090
    var $this    = this.element
545090
    var $ul      = $this.closest('ul:not(.dropdown-menu)')
545090
    var selector = $this.attr('data-target')
545090
545090
    if (!selector) {
545090
      selector = $this.attr('href')
545090
      selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7
545090
    }
545090
545090
    if ($this.parent('li').hasClass('active')) return
545090
545090
    var previous = $ul.find('.active:last a')[0]
545090
    var e        = $.Event('show.bs.tab', {
545090
      relatedTarget: previous
545090
    })
545090
545090
    $this.trigger(e)
545090
545090
    if (e.isDefaultPrevented()) return
545090
545090
    var $target = $(selector)
545090
545090
    this.activate($this.parent('li'), $ul)
545090
    this.activate($target, $target.parent(), function () {
545090
      $this.trigger({
545090
        type: 'shown.bs.tab'
545090
      , relatedTarget: previous
545090
      })
545090
    })
545090
  }
545090
545090
  Tab.prototype.activate = function (element, container, callback) {
545090
    var $active    = container.find('> .active')
545090
    var transition = callback
545090
      && $.support.transition
545090
      && $active.hasClass('fade')
545090
545090
    function next() {
545090
      $active
545090
        .removeClass('active')
545090
        .find('> .dropdown-menu > .active')
545090
        .removeClass('active')
545090
545090
      element.addClass('active')
545090
545090
      if (transition) {
545090
        element[0].offsetWidth // reflow for transition
545090
        element.addClass('in')
545090
      } else {
545090
        element.removeClass('fade')
545090
      }
545090
545090
      if (element.parent('.dropdown-menu')) {
545090
        element.closest('li.dropdown').addClass('active')
545090
      }
545090
545090
      callback && callback()
545090
    }
545090
545090
    transition ?
545090
      $active
545090
        .one($.support.transition.end, next)
545090
        .emulateTransitionEnd(150) :
545090
      next()
545090
545090
    $active.removeClass('in')
545090
  }
545090
545090
545090
  // TAB PLUGIN DEFINITION
545090
  // =====================
545090
545090
  var old = $.fn.tab
545090
545090
  $.fn.tab = function ( option ) {
545090
    return this.each(function () {
545090
      var $this = $(this)
545090
      var data  = $this.data('bs.tab')
545090
545090
      if (!data) $this.data('bs.tab', (data = new Tab(this)))
545090
      if (typeof option == 'string') data[option]()
545090
    })
545090
  }
545090
545090
  $.fn.tab.Constructor = Tab
545090
545090
545090
  // TAB NO CONFLICT
545090
  // ===============
545090
545090
  $.fn.tab.noConflict = function () {
545090
    $.fn.tab = old
545090
    return this
545090
  }
545090
545090
545090
  // TAB DATA-API
545090
  // ============
545090
545090
  $(document).on('click.bs.tab.data-api', '[data-toggle="tab"], [data-toggle="pill"]', function (e) {
545090
    e.preventDefault()
545090
    $(this).tab('show')
545090
  })
545090
545090
}(window.jQuery);
545090
545090
/* ========================================================================
545090
 * Bootstrap: affix.js v3.0.0
545090
 * http://twbs.github.com/bootstrap/javascript.html#affix
545090
 * ========================================================================
545090
 * Copyright 2012 Twitter, Inc.
545090
 *
545090
 * Licensed under the Apache License, Version 2.0 (the "License");
545090
 * you may not use this file except in compliance with the License.
545090
 * You may obtain a copy of the License at
545090
 *
545090
 * http://www.apache.org/licenses/LICENSE-2.0
545090
 *
545090
 * Unless required by applicable law or agreed to in writing, software
545090
 * distributed under the License is distributed on an "AS IS" BASIS,
545090
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
545090
 * See the License for the specific language governing permissions and
545090
 * limitations under the License.
545090
 * ======================================================================== */
545090
545090
545090
+function ($) { "use strict";
545090
545090
  // AFFIX CLASS DEFINITION
545090
  // ======================
545090
545090
  var Affix = function (element, options) {
545090
    this.options = $.extend({}, Affix.DEFAULTS, options)
545090
    this.$window = $(window)
545090
      .on('scroll.bs.affix.data-api', $.proxy(this.checkPosition, this))
545090
      .on('click.bs.affix.data-api',  $.proxy(this.checkPositionWithEventLoop, this))
545090
545090
    this.$element = $(element)
545090
    this.affixed  =
545090
    this.unpin    = null
545090
545090
    this.checkPosition()
545090
  }
545090
545090
  Affix.RESET = 'affix affix-top affix-bottom'
545090
545090
  Affix.DEFAULTS = {
545090
    offset: 0
545090
  }
545090
545090
  Affix.prototype.checkPositionWithEventLoop = function () {
545090
    setTimeout($.proxy(this.checkPosition, this), 1)
545090
  }
545090
545090
  Affix.prototype.checkPosition = function () {
545090
    if (!this.$element.is(':visible')) return
545090
545090
    var scrollHeight = $(document).height()
545090
    var scrollTop    = this.$window.scrollTop()
545090
    var position     = this.$element.offset()
545090
    var offset       = this.options.offset
545090
    var offsetTop    = offset.top
545090
    var offsetBottom = offset.bottom
545090
545090
    if (typeof offset != 'object')         offsetBottom = offsetTop = offset
545090
    if (typeof offsetTop == 'function')    offsetTop    = offset.top()
545090
    if (typeof offsetBottom == 'function') offsetBottom = offset.bottom()
545090
545090
    var affix = this.unpin   != null && (scrollTop + this.unpin <= position.top) ? false :
545090
                offsetBottom != null && (position.top + this.$element.height() >= scrollHeight - offsetBottom) ? 'bottom' :
545090
                offsetTop    != null && (scrollTop <= offsetTop) ? 'top' : false
545090
545090
    if (this.affixed === affix) return
545090
    if (this.unpin) this.$element.css('top', '')
545090
545090
    this.affixed = affix
545090
    this.unpin   = affix == 'bottom' ? position.top - scrollTop : null
545090
545090
    this.$element.removeClass(Affix.RESET).addClass('affix' + (affix ? '-' + affix : ''))
545090
545090
    if (affix == 'bottom') {
545090
      this.$element.offset({ top: document.body.offsetHeight - offsetBottom - this.$element.height() })
545090
    }
545090
  }
545090
545090
545090
  // AFFIX PLUGIN DEFINITION
545090
  // =======================
545090
545090
  var old = $.fn.affix
545090
545090
  $.fn.affix = function (option) {
545090
    return this.each(function () {
545090
      var $this   = $(this)
545090
      var data    = $this.data('bs.affix')
545090
      var options = typeof option == 'object' && option
545090
545090
      if (!data) $this.data('bs.affix', (data = new Affix(this, options)))
545090
      if (typeof option == 'string') data[option]()
545090
    })
545090
  }
545090
545090
  $.fn.affix.Constructor = Affix
545090
545090
545090
  // AFFIX NO CONFLICT
545090
  // =================
545090
545090
  $.fn.affix.noConflict = function () {
545090
    $.fn.affix = old
545090
    return this
545090
  }
545090
545090
545090
  // AFFIX DATA-API
545090
  // ==============
545090
545090
  $(window).on('load', function () {
545090
    $('[data-spy="affix"]').each(function () {
545090
      var $spy = $(this)
545090
      var data = $spy.data()
545090
545090
      data.offset = data.offset || {}
545090
545090
      if (data.offsetBottom) data.offset.bottom = data.offsetBottom
545090
      if (data.offsetTop)    data.offset.top    = data.offsetTop
545090
545090
      $spy.affix(data)
545090
    })
545090
  })
545090
545090
}(window.jQuery);