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