mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-02 14:24:19 +01:00
7 lines
39 KiB
JavaScript
7 lines
39 KiB
JavaScript
/*!
|
|
* Bootstrap v4.0.0-alpha (http://getbootstrap.com)
|
|
* Copyright 2011-2015 Twitter, Inc.
|
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
|
*/
|
|
if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){var b=a.fn.jquery.split(" ")[0].split(".");if(b[0]<2&&b[1]<9||1==b[0]&&9==b[1]&&b[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")}(jQuery),+function(){"use strict";function a(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(a.__proto__=b)}function b(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}{var c=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),d=function(a){function b(){return{bindType:f.end,delegateType:f.end,handle:function(b){return a(b.target).is(this)?b.handleObj.handler.apply(this,arguments):void 0}}}function c(){if(window.QUnit)return!1;var a=document.createElement("bootstrap");for(var b in g)if(void 0!==a.style[b])return{end:g[b]};return!1}function d(b){var c=this,d=!1;return a(this).one(h.TRANSITION_END,function(){d=!0}),setTimeout(function(){d||h.triggerTransitionEnd(c)},b),this}function e(){f=c(),a.fn.emulateTransitionEnd=d,h.supportsTransitionEnd()&&(a.event.special[h.TRANSITION_END]=b())}var f=!1,g={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},h={TRANSITION_END:"bsTransitionEnd",getUID:function(a){do a+=~~(1e6*Math.random());while(document.getElementById(a));return a},getSelectorFromElement:function(a){var b=a.getAttribute("data-target");return b||(b=a.getAttribute("href")||"",b=/^#[a-z]/i.test(b)?b:null),b},reflow:function(a){new Function("bs","return bs")(a.offsetHeight)},triggerTransitionEnd:function(b){a(b).trigger(f.end)},supportsTransitionEnd:function(){return!!f}};return e(),h}(jQuery),e=(function(a){var e="alert",f="4.0.0",g="bs.alert",h=a.fn[e],i=150,j={DISMISS:'[data-dismiss="alert"]'},k={CLOSE:"close.bs.alert",CLOSED:"closed.bs.alert",CLICK:"click.bs.alert.data-api"},l={ALERT:"alert",FADE:"fade",IN:"in"},m=function(){function e(a){b(this,e),this._element=a}return c(e,[{key:"close",value:function(a){a=a||this._element;var b=this._getRootElement(a),c=this._triggerCloseEvent(b);c.isDefaultPrevented()||this._removeElement(b)}},{key:"_getRootElement",value:function(b){var c=!1,e=d.getSelectorFromElement(b);return e&&(c=a(e)[0]),c||(c=a(b).closest("."+l.ALERT)[0]),c}},{key:"_triggerCloseEvent",value:function(b){var c=a.Event(k.CLOSE);return a(b).trigger(c),c}},{key:"_removeElement",value:function(b){return a(b).removeClass(l.IN),d.supportsTransitionEnd()&&a(b).hasClass(l.FADE)?void a(b).one(d.TRANSITION_END,this._destroyElement.bind(this,b)).emulateTransitionEnd(i):void this._destroyElement(b)}},{key:"_destroyElement",value:function(b){a(b).detach().trigger(k.CLOSED).remove()}}],[{key:"VERSION",get:function(){return f}},{key:"_jQueryInterface",value:function(b){return this.each(function(){var c=a(this),d=c.data(g);d||(d=new e(this),c.data(g,d)),"close"===b&&d[b](this)})}},{key:"_handleDismiss",value:function(a){return function(b){b&&b.preventDefault(),a.close(this)}}}]),e}();return a(document).on(k.CLICK,j.DISMISS,m._handleDismiss(new m)),a.fn[e]=m._jQueryInterface,a.fn[e].Constructor=m,a.fn[e].noConflict=function(){return a.fn[e]=h,m._jQueryInterface},m}(jQuery),function(a){var d="button",e="4.0.0",f="bs.button",g=a.fn[d],h={ACTIVE:"active",BUTTON:"btn",FOCUS:"focus"},i={DATA_TOGGLE_CARROT:'[data-toggle^="button"]',DATA_TOGGLE:'[data-toggle="buttons"]',INPUT:"input",ACTIVE:".active",BUTTON:".btn"},j={CLICK:"click.bs.button.data-api",FOCUS_BLUR:"focus.bs.button.data-api blur.bs.button.data-api"},k=function(){function d(a){b(this,d),this._element=a}return c(d,[{key:"toggle",value:function(){var b=!0,c=a(this._element).closest(i.DATA_TOGGLE)[0];if(c){var d=a(this._element).find(i.INPUT)[0];if(d){if("radio"===d.type)if(d.checked&&a(this._element).hasClass(h.ACTIVE))b=!1;else{var e=a(c).find(i.ACTIVE)[0];e&&a(e).removeClass(h.ACTIVE)}b&&(d.checked=!a(this._element).hasClass(h.ACTIVE),a(this._element).trigger("change"))}}else this._element.setAttribute("aria-pressed",!a(this._element).hasClass(h.ACTIVE));b&&a(this._element).toggleClass(h.ACTIVE)}}],[{key:"VERSION",get:function(){return e}},{key:"_jQueryInterface",value:function(b){return this.each(function(){var c=a(this).data(f);c||(c=new d(this),a(this).data(f,c)),"toggle"===b&&c[b]()})}}]),d}();return a(document).on(j.CLICK,i.DATA_TOGGLE_CARROT,function(b){b.preventDefault();var c=b.target;a(c).hasClass(h.BUTTON)||(c=a(c).closest(i.BUTTON)),k._jQueryInterface.call(a(c),"toggle")}).on(j.FOCUS_BLUR,i.DATA_TOGGLE_CARROT,function(b){var c=a(b.target).closest(i.BUTTON)[0];a(c).toggleClass(h.FOCUS,/^focus(in)?$/.test(b.type))}),a.fn[d]=k._jQueryInterface,a.fn[d].Constructor=k,a.fn[d].noConflict=function(){return a.fn[d]=g,k._jQueryInterface},k}(jQuery),function(a){var e="carousel",f="4.0.0",g="bs.carousel",h=a.fn[e],i=600,j={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},k={NEXT:"next",PREVIOUS:"prev"},l={SLIDE:"slide.bs.carousel",SLID:"slid.bs.carousel",CLICK:"click.bs.carousel.data-api",LOAD:"load"},m={CAROUSEL:"carousel",ACTIVE:"active",SLIDE:"slide",RIGHT:"right",LEFT:"left",ITEM:"carousel-item"},n={ACTIVE:".active",ACTIVE_ITEM:".active.carousel-item",ITEM:".carousel-item",NEXT_PREV:".next, .prev",INDICATORS:".carousel-indicators",DATA_SLIDE:"[data-slide], [data-slide-to]",DATA_RIDE:'[data-ride="carousel"]'},o=function(){function e(c,d){b(this,e),this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this._config=d,this._element=a(c)[0],this._indicatorsElement=a(this._element).find(n.INDICATORS)[0],this._addEventListeners()}return c(e,[{key:"next",value:function(){this._isSliding||this._slide(k.NEXT)}},{key:"prev",value:function(){this._isSliding||this._slide(k.PREVIOUS)}},{key:"pause",value:function(b){b||(this._isPaused=!0),a(this._element).find(n.NEXT_PREV)[0]&&d.supportsTransitionEnd()&&(d.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}},{key:"cycle",value:function(a){a||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval(this.next.bind(this),this._config.interval))}},{key:"to",value:function(b){var c=this;this._activeElement=a(this._element).find(n.ACTIVE_ITEM)[0];var d=this._getItemIndex(this._activeElement);if(!(b>this._items.length-1||0>b)){if(this._isSliding)return void a(this._element).one(l.SLID,function(){return c.to(b)});if(d==b)return this.pause(),void this.cycle();var e=b>d?k.NEXT:k.PREVIOUS;this._slide(e,this._items[b])}}},{key:"_addEventListeners",value:function(){this._config.keyboard&&a(this._element).on("keydown.bs.carousel",this._keydown.bind(this)),"hover"!=this._config.pause||"ontouchstart"in document.documentElement||a(this._element).on("mouseenter.bs.carousel",this.pause.bind(this)).on("mouseleave.bs.carousel",this.cycle.bind(this))}},{key:"_keydown",value:function(a){if(a.preventDefault(),!/input|textarea/i.test(a.target.tagName))switch(a.which){case 37:this.prev();break;case 39:this.next();break;default:return}}},{key:"_getItemIndex",value:function(b){return this._items=a.makeArray(a(b).parent().find(n.ITEM)),this._items.indexOf(b)}},{key:"_getItemByDirection",value:function(a,b){var c=a===k.NEXT,d=a===k.PREVIOUS,e=this._getItemIndex(b),f=this._items.length-1,g=d&&0===e||c&&e==f;if(g&&!this._config.wrap)return b;var h=a==k.PREVIOUS?-1:1,i=(e+h)%this._items.length;return-1===i?this._items[this._items.length-1]:this._items[i]}},{key:"_triggerSlideEvent",value:function(b,c){var d=a.Event(l.SLIDE,{relatedTarget:b,direction:c});return a(this._element).trigger(d),d}},{key:"_setActiveIndicatorElement",value:function(b){if(this._indicatorsElement){a(this._indicatorsElement).find(n.ACTIVE).removeClass(m.ACTIVE);var c=this._indicatorsElement.children[this._getItemIndex(b)];c&&a(c).addClass(m.ACTIVE)}}},{key:"_slide",value:function(b,c){var e=this,f=a(this._element).find(n.ACTIVE_ITEM)[0],g=c||f&&this._getItemByDirection(b,f),h=!!this._interval,j=b==k.NEXT?m.LEFT:m.RIGHT;if(g&&a(g).hasClass(m.ACTIVE))return void(this._isSliding=!1);var o=this._triggerSlideEvent(g,j);if(!o.isDefaultPrevented()&&f&&g){this._isSliding=!0,h&&this.pause(),this._setActiveIndicatorElement(g);var p=a.Event(l.SLID,{relatedTarget:g,direction:j});d.supportsTransitionEnd()&&a(this._element).hasClass(m.SLIDE)?(a(g).addClass(b),d.reflow(g),a(f).addClass(j),a(g).addClass(j),a(f).one(d.TRANSITION_END,function(){a(g).removeClass(j).removeClass(b),a(g).addClass(m.ACTIVE),a(f).removeClass(m.ACTIVE).removeClass(b).removeClass(j),e._isSliding=!1,setTimeout(function(){return a(e._element).trigger(p)},0)}).emulateTransitionEnd(i)):(a(f).removeClass(m.ACTIVE),a(g).addClass(m.ACTIVE),this._isSliding=!1,a(this._element).trigger(p)),h&&this.cycle()}}}],[{key:"VERSION",get:function(){return f}},{key:"Default",get:function(){return j}},{key:"_jQueryInterface",value:function(b){return this.each(function(){var c=a(this).data(g),d=a.extend({},j,a(this).data());"object"==typeof b&&a.extend(d,b);var f="string"==typeof b?b:d.slide;c||(c=new e(this,d),a(this).data(g,c)),"number"==typeof b?c.to(b):f?c[f]():d.interval&&(c.pause(),c.cycle())})}},{key:"_dataApiClickHandler",value:function(b){var c=d.getSelectorFromElement(this);if(c){var f=a(c)[0];if(f&&a(f).hasClass(m.CAROUSEL)){var h=a.extend({},a(f).data(),a(this).data()),i=this.getAttribute("data-slide-to");i&&(h.interval=!1),e._jQueryInterface.call(a(f),h),i&&a(f).data(g).to(i),b.preventDefault()}}}}]),e}();return a(document).on(l.CLICK,n.DATA_SLIDE,o._dataApiClickHandler),a(window).on(l.LOAD,function(){a(n.DATA_RIDE).each(function(){var b=a(this);o._jQueryInterface.call(b,b.data())})}),a.fn[e]=o._jQueryInterface,a.fn[e].Constructor=o,a.fn[e].noConflict=function(){return a.fn[e]=h,o._jQueryInterface},o}(jQuery),function(a){var e="collapse",f="4.0.0",g="bs.collapse",h=a.fn[e],i=600,j={toggle:!0,parent:null},k={SHOW:"show.bs.collapse",SHOWN:"shown.bs.collapse",HIDE:"hide.bs.collapse",HIDDEN:"hidden.bs.collapse",CLICK:"click.bs.collapse.data-api"},l={IN:"in",COLLAPSE:"collapse",COLLAPSING:"collapsing",COLLAPSED:"collapsed"},m={WIDTH:"width",HEIGHT:"height"},n={ACTIVES:".panel > .in, .panel > .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},o=function(){function e(c,d){b(this,e),this._isTransitioning=!1,this._element=c,this._config=a.extend({},j,d),this._triggerArray=a.makeArray(a('[data-toggle="collapse"][href="#'+c.id+'"],'+('[data-toggle="collapse"][data-target="#'+c.id+'"]'))),this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}return c(e,[{key:"toggle",value:function(){a(this._element).hasClass(l.IN)?this.hide():this.show()}},{key:"show",value:function(){var b=this;if(!this._isTransitioning&&!a(this._element).hasClass(l.IN)){var c=void 0,f=void 0;if(this._parent&&(f=a.makeArray(a(n.ACTIVES)),f.length||(f=null)),!(f&&(c=a(f).data(g),c&&c._isTransitioning))){var h=a.Event(k.SHOW);if(a(this._element).trigger(h),!h.isDefaultPrevented()){f&&(e._jQueryInterface.call(a(f),"hide"),c||a(f).data(g,null));var j=this._getDimension();a(this._element).removeClass(l.COLLAPSE).addClass(l.COLLAPSING),this._element.style[j]=0,this._element.setAttribute("aria-expanded",!0),this._triggerArray.length&&a(this._triggerArray).removeClass(l.COLLAPSED).attr("aria-expanded",!0),this.setTransitioning(!0);var m=function(){a(b._element).removeClass(l.COLLAPSING).addClass(l.COLLAPSE).addClass(l.IN),b._element.style[j]="",b.setTransitioning(!1),a(b._element).trigger(k.SHOWN)};if(!d.supportsTransitionEnd())return void m();var o="scroll"+(j[0].toUpperCase()+j.slice(1));a(this._element).one(d.TRANSITION_END,m).emulateTransitionEnd(i),this._element.style[j]=this._element[o]+"px"}}}}},{key:"hide",value:function(){var b=this;if(!this._isTransitioning&&a(this._element).hasClass(l.IN)){var c=a.Event(k.HIDE);if(a(this._element).trigger(c),!c.isDefaultPrevented()){var e=this._getDimension(),f=e===m.WIDTH?"offsetWidth":"offsetHeight";this._element.style[e]=this._element[f]+"px",d.reflow(this._element),a(this._element).addClass(l.COLLAPSING).removeClass(l.COLLAPSE).removeClass(l.IN),this._element.setAttribute("aria-expanded",!1),this._triggerArray.length&&a(this._triggerArray).addClass(l.COLLAPSED).attr("aria-expanded",!1),this.setTransitioning(!0);var g=function(){b.setTransitioning(!1),a(b._element).removeClass(l.COLLAPSING).addClass(l.COLLAPSE).trigger(k.HIDDEN)};return this._element.style[e]=0,d.supportsTransitionEnd()?void a(this._element).one(d.TRANSITION_END,g).emulateTransitionEnd(i):g()}}}},{key:"setTransitioning",value:function(a){this._isTransitioning=a}},{key:"_getDimension",value:function(){var b=a(this._element).hasClass(m.WIDTH);return b?m.WIDTH:m.HEIGHT}},{key:"_getParent",value:function(){var b=this,c=a(this._config.parent)[0],d='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]';return a(c).find(d).each(function(a,c){b._addAriaAndCollapsedClass(e._getTargetFromElement(c),[c])}),c}},{key:"_addAriaAndCollapsedClass",value:function(b,c){if(b){var d=a(b).hasClass(l.IN);b.setAttribute("aria-expanded",d),c.length&&a(c).toggleClass(l.COLLAPSED,!d).attr("aria-expanded",d)}}}],[{key:"VERSION",get:function(){return f}},{key:"Default",get:function(){return j}},{key:"_getTargetFromElement",value:function(b){var c=d.getSelectorFromElement(b);return c?a(c)[0]:null}},{key:"_jQueryInterface",value:function(b){return this.each(function(){var c=a(this),d=c.data(g),f=a.extend({},j,c.data(),"object"==typeof b&&b);!d&&f.toggle&&/show|hide/.test(b)&&(f.toggle=!1),d||(d=new e(this,f),c.data(g,d)),"string"==typeof b&&d[b]()})}}]),e}();return a(document).on(k.CLICK,n.DATA_TOGGLE,function(b){b.preventDefault();var c=o._getTargetFromElement(this),d=a(c).data(g),e=d?"toggle":a(this).data();o._jQueryInterface.call(a(c),e)}),a.fn[e]=o._jQueryInterface,a.fn[e].Constructor=o,a.fn[e].noConflict=function(){return a.fn[e]=h,o._jQueryInterface},o}(jQuery),function(a){var e="dropdown",f="4.0.0",g="bs.dropdown",h=a.fn[e],i={HIDE:"hide.bs.dropdown",HIDDEN:"hidden.bs.dropdown",SHOW:"show.bs.dropdown",SHOWN:"shown.bs.dropdown",CLICK:"click.bs.dropdown",KEYDOWN:"keydown.bs.dropdown.data-api",CLICK_DATA:"click.bs.dropdown.data-api"},j={BACKDROP:"dropdown-backdrop",DISABLED:"disabled",OPEN:"open"},k={BACKDROP:".dropdown-backdrop",DATA_TOGGLE:'[data-toggle="dropdown"]',FORM_CHILD:".dropdown form",ROLE_MENU:'[role="menu"]',ROLE_LISTBOX:'[role="listbox"]',NAVBAR_NAV:".navbar-nav",VISIBLE_ITEMS:'[role="menu"] li:not(.disabled) a, [role="listbox"] li:not(.disabled) a'},l=function(){function e(c){b(this,e),a(c).on(i.CLICK,this.toggle)}return c(e,[{key:"toggle",value:function(){if(!this.disabled&&!a(this).hasClass(j.DISABLED)){var b=e._getParentFromElement(this),c=a(b).hasClass(j.OPEN);if(e._clearMenus(),c)return!1;if("ontouchstart"in document.documentElement&&!a(b).closest(k.NAVBAR_NAV).length){var d=document.createElement("div");d.className=j.BACKDROP,a(d).insertBefore(this),a(d).on("click",e._clearMenus)}var f={relatedTarget:this},g=a.Event(i.SHOW,f);if(a(b).trigger(g),!g.isDefaultPrevented())return this.focus(),this.setAttribute("aria-expanded","true"),a(b).toggleClass(j.OPEN),a(b).trigger(i.SHOWN,f),!1}}}],[{key:"VERSION",get:function(){return f}},{key:"_jQueryInterface",value:function(b){return this.each(function(){var c=a(this).data(g);c||a(this).data(g,c=new e(this)),"string"==typeof b&&c[b].call(this)})}},{key:"_clearMenus",value:function(b){if(!b||3!==b.which){var c=a(k.BACKDROP)[0];c&&c.parentNode.removeChild(c);for(var d=a.makeArray(a(k.DATA_TOGGLE)),f=0;f<d.length;f++){var g=e._getParentFromElement(d[f]),h={relatedTarget:d[f]};if(a(g).hasClass(j.OPEN)&&!(b&&"click"===b.type&&/input|textarea/i.test(b.target.tagName)&&a.contains(g,b.target))){var l=a.Event(i.HIDE,h);a(g).trigger(l),l.isDefaultPrevented()||(d[f].setAttribute("aria-expanded","false"),a(g).removeClass(j.OPEN).trigger(i.HIDDEN,h))}}}}},{key:"_getParentFromElement",value:function(b){var c=void 0,e=d.getSelectorFromElement(b);return e&&(c=a(e)[0]),c||b.parentNode}},{key:"_dataApiKeydownHandler",value:function(b){if(/(38|40|27|32)/.test(b.which)&&!/input|textarea/i.test(b.target.tagName)&&(b.preventDefault(),b.stopPropagation(),!this.disabled&&!a(this).hasClass(j.DISABLED))){var c=e._getParentFromElement(this),d=a(c).hasClass(j.OPEN);if(!d&&27!==b.which||d&&27===b.which){if(27===b.which){var f=a(c).find(k.DATA_TOGGLE)[0];a(f).trigger("focus")}return void a(this).trigger("click")}var g=a.makeArray(a(k.VISIBLE_ITEMS));if(g=g.filter(function(a){return a.offsetWidth||a.offsetHeight}),g.length){var h=g.indexOf(b.target);38===b.which&&h>0&&h--,40===b.which&&h<g.length-1&&h++,~h||(h=0),g[h].focus()}}}}]),e}();return a(document).on(i.KEYDOWN,k.DATA_TOGGLE,l._dataApiKeydownHandler).on(i.KEYDOWN,k.ROLE_MENU,l._dataApiKeydownHandler).on(i.KEYDOWN,k.ROLE_LISTBOX,l._dataApiKeydownHandler).on(i.CLICK_DATA,l._clearMenus).on(i.CLICK_DATA,k.DATA_TOGGLE,l.prototype.toggle).on(i.CLICK_DATA,k.FORM_CHILD,function(a){a.stopPropagation()}),a.fn[e]=l._jQueryInterface,a.fn[e].Constructor=l,a.fn[e].noConflict=function(){return a.fn[e]=h,l._jQueryInterface},l}(jQuery),function(a){var e="modal",f="4.0.0",g="bs.modal",h=a.fn[e],i=300,j=150,k={backdrop:!0,keyboard:!0,show:!0},l={HIDE:"hide.bs.modal",HIDDEN:"hidden.bs.modal",SHOW:"show.bs.modal",SHOWN:"shown.bs.modal",DISMISS:"click.dismiss.bs.modal",KEYDOWN:"keydown.dismiss.bs.modal",FOCUSIN:"focusin.bs.modal",RESIZE:"resize.bs.modal",CLICK:"click.bs.modal.data-api",MOUSEDOWN:"mousedown.dismiss.bs.modal",MOUSEUP:"mouseup.dismiss.bs.modal"},m={BACKDROP:"modal-backdrop",OPEN:"modal-open",FADE:"fade",IN:"in"},n={DIALOG:".modal-dialog",DATA_TOGGLE:'[data-toggle="modal"]',DATA_DISMISS:'[data-dismiss="modal"]',SCROLLBAR_MEASURER:"modal-scrollbar-measure"},o=function(){function e(c,d){b(this,e),this._config=d,this._element=c,this._dialog=a(c).find(n.DIALOG)[0],this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._originalBodyPadding=0,this._scrollbarWidth=0}return c(e,[{key:"toggle",value:function(a){return this._isShown?this.hide():this.show(a)}},{key:"show",value:function(b){var c=this,d=a.Event(l.SHOW,{relatedTarget:b});a(this._element).trigger(d),this._isShown||d.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),a(document.body).addClass(m.OPEN),this._setEscapeEvent(),this._setResizeEvent(),a(this._element).on(l.DISMISS,n.DATA_DISMISS,this.hide.bind(this)),a(this._dialog).on(l.MOUSEDOWN,function(){a(c._element).one(l.MOUSEUP,function(b){a(b.target).is(c._element)&&(that._ignoreBackdropClick=!0)})}),this._showBackdrop(this._showElement.bind(this,b)))}},{key:"hide",value:function(b){b&&b.preventDefault();var c=a.Event(l.HIDE);a(this._element).trigger(c),this._isShown&&!c.isDefaultPrevented()&&(this._isShown=!1,this._setEscapeEvent(),this._setResizeEvent(),a(document).off(l.FOCUSIN),a(this._element).removeClass(m.IN),a(this._element).off(l.DISMISS),a(this._dialog).off(l.MOUSEDOWN),d.supportsTransitionEnd()&&a(this._element).hasClass(m.FADE)?a(this._element).one(d.TRANSITION_END,this._hideModal.bind(this)).emulateTransitionEnd(i):this._hideModal())}},{key:"_showElement",value:function(b){var c=this,e=d.supportsTransitionEnd()&&a(this._element).hasClass(m.FADE);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.scrollTop=0,e&&d.reflow(this._element),a(this._element).addClass(m.IN),this._enforceFocus();var f=a.Event(l.SHOWN,{relatedTarget:b}),g=function(){c._element.focus(),a(c._element).trigger(f)};e?a(this._dialog).one(d.TRANSITION_END,g).emulateTransitionEnd(i):g()}},{key:"_enforceFocus",value:function(){var b=this;a(document).off(l.FOCUSIN).on(l.FOCUSIN,function(c){b._element===c.target||a(b._element).has(c.target).length||b._element.focus()})}},{key:"_setEscapeEvent",value:function(){var b=this;this._isShown&&this._config.keyboard?a(this._element).on(l.KEYDOWN,function(a){27===a.which&&b.hide()}):this._isShown||a(this._element).off(l.KEYDOWN)}},{key:"_setResizeEvent",value:function(){this._isShown?a(window).on(l.RESIZE,this._handleUpdate.bind(this)):a(window).off(l.RESIZE)}},{key:"_hideModal",value:function(){var b=this;this._element.style.display="none",this._showBackdrop(function(){a(document.body).removeClass(m.OPEN),b._resetAdjustments(),b._resetScrollbar(),a(b._element).trigger(l.HIDDEN)})}},{key:"_removeBackdrop",value:function(){this._backdrop&&(a(this._backdrop).remove(),this._backdrop=null)}},{key:"_showBackdrop",value:function(b){var c=this,e=a(this._element).hasClass(m.FADE)?m.FADE:"";if(this._isShown&&this._config.backdrop){var f=d.supportsTransitionEnd()&&e;if(this._backdrop=document.createElement("div"),this._backdrop.className=m.BACKDROP,e&&a(this._backdrop).addClass(e),a(this._backdrop).appendTo(this.$body),a(this._element).on(l.DISMISS,function(a){return c._ignoreBackdropClick?void(c._ignoreBackdropClick=!1):void(a.target===a.currentTarget&&("static"===c._config.backdrop?c._element.focus():c.hide()))}),f&&d.reflow(this._backdrop),a(this._backdrop).addClass(m.IN),!b)return;if(!f)return void b();a(this._backdrop).one(d.TRANSITION_END,b).emulateTransitionEnd(j)}else if(!this._isShown&&this._backdrop){a(this._backdrop).removeClass(m.IN);var g=function(){c._removeBackdrop(),b&&b()};d.supportsTransitionEnd()&&a(this._element).hasClass(m.FADE)?a(this._backdrop).one(d.TRANSITION_END,g).emulateTransitionEnd(j):g()}else b&&b()}},{key:"_handleUpdate",value:function(){this._adjustDialog()}},{key:"_adjustDialog",value:function(){var a=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&a&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!a&&(this._element.style.paddingRight=this._scrollbarWidth+"px")}},{key:"_resetAdjustments",value:function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}},{key:"_checkScrollbar",value:function(){var a=window.innerWidth;if(!a){var b=document.documentElement.getBoundingClientRect();a=b.right-Math.abs(b.left)}this._isBodyOverflowing=document.body.clientWidth<a,this._scrollbarWidth=this._getScrollbarWidth()}},{key:"_setScrollbar",value:function(){var b=parseInt(a(document.body).css("padding-right")||0,10);this._originalBodyPadding=document.body.style.paddingRight||"",this._isBodyOverflowing&&(document.body.style.paddingRight=b+this._scrollbarWidth+"px")}},{key:"_resetScrollbar",value:function(){document.body.style.paddingRight=this._originalBodyPadding}},{key:"_getScrollbarWidth",value:function(){var a=document.createElement("div");a.className=n.SCROLLBAR_MEASURER,document.body.appendChild(a);var b=a.offsetWidth-a.clientWidth;return document.body.removeChild(a),b}}],[{key:"VERSION",get:function(){return f}},{key:"Default",get:function(){return k}},{key:"_jQueryInterface",value:function(b,c){return this.each(function(){var d=a(this).data(g),f=a.extend({},e.Default,a(this).data(),"object"==typeof b&&b);d||(d=new e(this,f),a(this).data(g,d)),"string"==typeof b?d[b](c):f.show&&d.show(c)})}}]),e}();return a(document).on(l.CLICK,n.DATA_TOGGLE,function(b){var c=this,e=void 0,f=d.getSelectorFromElement(this);f&&(e=a(f)[0]);var h=a(e).data(g)?"toggle":a.extend({},a(e).data(),a(this).data());"A"===this.tagName&&b.preventDefault();var i=a(e).one(l.SHOW,function(b){b.isDefaultPrevented()||i.one(l.HIDDEN,function(){a(c).is(":visible")&&c.focus()})});o._jQueryInterface.call(a(e),h,this)}),a.fn[e]=o._jQueryInterface,a.fn[e].Constructor=o,a.fn[e].noConflict=function(){return a.fn[e]=h,o._jQueryInterface},o}(jQuery),function(a){var e="scrollspy",f="4.0.0",g="bs.scrollspy",h=a.fn[e],i={offset:10},j={ACTIVATE:"activate.bs.scrollspy",SCROLL:"scroll.bs.scrollspy",LOAD:"load.bs.scrollspy.data-api"},k={DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active"},l={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",LI_DROPDOWN:"li.dropdown",LI:"li"},m=function(){function e(c,d){b(this,e),this._scrollElement="BODY"===c.tagName?window:c,this._config=a.extend({},i,d),this._selector=""+(this._config.target||"")+" .nav li > a",this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,a(this._scrollElement).on(j.SCROLL,this._process.bind(this)),this.refresh(),this._process()}return c(e,[{key:"refresh",value:function(){var b=this,c="offset",e=0;this._scrollElement!==this._scrollElement.window&&(c="position",e=this._getScrollTop()),this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight();var f=a.makeArray(a(this._selector));f.map(function(b){var f=void 0,g=d.getSelectorFromElement(b);return g&&(f=a(g)[0]),f&&(f.offsetWidth||f.offsetHeight)?[a(f)[c]().top+e,g]:void 0}).filter(function(a){return a}).sort(function(a,b){return a[0]-b[0]}).forEach(function(a){b._offsets.push(a[0]),b._targets.push(a[1])})}},{key:"_getScrollTop",value:function(){return this._scrollElement===window?this._scrollElement.scrollY:this._scrollElement.scrollTop}},{key:"_getScrollHeight",value:function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}},{key:"_process",value:function(){var a=this._getScrollTop()+this._config.offset,b=this._getScrollHeight(),c=this._config.offset+b-this._scrollElement.offsetHeight;if(this._scrollHeight!==b&&this.refresh(),a>=c){var d=this._targets[this._targets.length-1];this._activeTarget!==d&&this._activate(d)}if(this._activeTarget&&a<this._offsets[0])return this._activeTarget=null,void this._clear();for(var e=this._offsets.length;e--;){var f=this._activeTarget!==this._targets[e]&&a>=this._offsets[e]&&(void 0===this._offsets[e+1]||a<this._offsets[e+1]);f&&this._activate(this._targets[e])}}},{key:"_activate",value:function(b){this._activeTarget=b,this._clear();for(var c=""+this._selector+'[data-target="'+b+'"],'+(""+this._selector+'[href="'+b+'"]'),d=a(c).parents(l.LI),e=d.length;e--;){a(d[e]).addClass(k.ACTIVE);var f=d[e].parentNode;if(f&&a(f).hasClass(k.DROPDOWN_MENU)){var g=a(f).closest(l.LI_DROPDOWN)[0];a(g).addClass(k.ACTIVE)}}a(this._scrollElement).trigger(j.ACTIVATE,{relatedTarget:b})}},{key:"_clear",value:function(){for(var b=a(this._selector).parentsUntil(this._config.target,l.ACTIVE),c=b.length;c--;)a(b[c]).removeClass(k.ACTIVE)}}],[{key:"VERSION",get:function(){return f}},{key:"Default",get:function(){return i}},{key:"_jQueryInterface",value:function(b){return this.each(function(){var c=a(this).data(g),d="object"==typeof b&&b||null;c||(c=new e(this,d),a(this).data(g,c)),"string"==typeof b&&c[b]()})}}]),e}();return a(window).on(j.LOAD,function(){for(var b=a.makeArray(a(l.DATA_SPY)),c=b.length;c--;){var d=a(b[c]);m._jQueryInterface.call(d,d.data())}}),a.fn[e]=m._jQueryInterface,a.fn[e].Constructor=m,a.fn[e].noConflict=function(){return a.fn[e]=h,m._jQueryInterface},m}(jQuery),function(a){var e="tab",f="4.0.0",g="bs.tab",h=a.fn[e],i=150,j={HIDE:"hide.bs.tab",HIDDEN:"hidden.bs.tab",SHOW:"show.bs.tab",SHOWN:"shown.bs.tab",CLICK:"click.bs.tab.data-api"},k={DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active",FADE:"fade",IN:"in"},l={A:"a",LI:"li",LI_DROPDOWN:"li.dropdown",UL:"ul:not(.dropdown-menu)",FADE_CHILD:"> .fade",ACTIVE:".active",ACTIVE_CHILD:"> .active",DATA_TOGGLE:'[data-toggle="tab"], [data-toggle="pill"]',DROPDOWN_ACTIVE_CHILD:"> .dropdown-menu > .active"},m=function(){function e(a){b(this,e),this._element=a}return c(e,[{key:"show",value:function(){var b=this;if(!this._element.parentNode||this._element.parentNode.nodeType!=Node.ELEMENT_NODE||!a(this._element).parent().hasClass(k.ACTIVE)){var c=void 0,e=void 0,f=a(this._element).closest(l.UL)[0],g=d.getSelectorFromElement(this._element);f&&(e=a.makeArray(a(f).find(l.ACTIVE)),e=e[e.length-1],e&&(e=a(e).find(l.A)[0]));var h=a.Event(j.HIDE,{relatedTarget:this._element}),i=a.Event(j.SHOW,{relatedTarget:e});if(e&&a(e).trigger(h),a(this._element).trigger(i),!i.isDefaultPrevented()&&!h.isDefaultPrevented()){g&&(c=a(g)[0]),this._activate(a(this._element).closest(l.LI)[0],f);var m=function(){var c=a.Event(j.HIDDEN,{relatedTarget:b._element}),d=a.Event(j.SHOWN,{relatedTarget:e});a(e).trigger(c),a(b._element).trigger(d)};c?this._activate(c,c.parentNode,m):m()}}}},{key:"_activate",value:function(b,c,e){var f=a(c).find(l.ACTIVE_CHILD)[0],g=e&&d.supportsTransitionEnd()&&(f&&a(f).hasClass(k.FADE)||!!a(c).find(l.FADE_CHILD)[0]),h=this._transitionComplete.bind(this,b,f,g,e);f&&g?a(f).one(d.TRANSITION_END,h).emulateTransitionEnd(i):h(),f&&a(f).removeClass(k.IN)}},{key:"_transitionComplete",value:function(b,c,e,f){if(c){a(c).removeClass(k.ACTIVE);var g=a(c).find(l.DROPDOWN_ACTIVE_CHILD)[0];g&&a(g).removeClass(k.ACTIVE);var h=a(c).find(l.DATA_TOGGLE)[0];h&&h.setAttribute("aria-expanded",!1)}a(b).addClass(k.ACTIVE);var i=a(b).find(l.DATA_TOGGLE)[0];if(i&&i.setAttribute("aria-expanded",!0),e?(d.reflow(b),a(b).addClass(k.IN)):a(b).removeClass(k.FADE),b.parentNode&&a(b.parentNode).hasClass(k.DROPDOWN_MENU)){var j=a(b).closest(l.LI_DROPDOWN)[0];j&&a(j).addClass(k.ACTIVE),i=a(b).find(l.DATA_TOGGLE)[0],i&&i.setAttribute("aria-expanded",!0)}f&&f()}}],[{key:"VERSION",get:function(){return f}},{key:"Default",get:function(){return Default}},{key:"_jQueryInterface",value:function(b){return this.each(function(){var c=a(this),d=c.data(g);d||(d=d=new e(this),c.data(g,d)),"string"==typeof b&&d[b]()})}}]),e}();return a(document).on(j.CLICK,l.DATA_TOGGLE,function(b){b.preventDefault(),m._jQueryInterface.call(a(this),"show")}),a.fn[e]=m._jQueryInterface,a.fn[e].Constructor=m,a.fn[e].noConflict=function(){return a.fn[e]=h,m._jQueryInterface},m}(jQuery),function(a){var e="tooltip",f="4.0.0",g="bs.tooltip",h=a.fn[e],i=150,j="bs-tether",k={animation:!0,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,selector:!1,placement:"top",offset:"0 0",constraints:null},l={TOP:"bottom center",RIGHT:"middle left",BOTTOM:"top center",LEFT:"middle right"},m={IN:"in",OUT:"out"},n={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},o={FADE:"fade",IN:"in"},p={TOOLTIP:".tooltip",TOOLTIP_INNER:".tooltip-inner"},q={element:!1,enabled:!1},r={HOVER:"hover",FOCUS:"focus",CLICK:"click",MANUAL:"manual"},s=function(){function h(a,c){b(this,h),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._tether=null,this.element=a,this.config=this._getConfig(c),this.tip=null,this._setListeners()}return c(h,[{key:"enable",value:function(){this._isEnabled=!0}},{key:"disable",value:function(){this._isEnabled=!1}},{key:"toggleEnabled",value:function(){this._isEnabled=!this._isEnabled}},{key:"toggle",value:function(b){var c=this,d=this.constructor.DATA_KEY;b?(c=a(b.currentTarget).data(d),c||(c=new this.constructor(b.currentTarget,this._getDelegateConfig()),a(b.currentTarget).data(d,c)),c._activeTrigger.click=!c._activeTrigger.click,c._isWithActiveTrigger()?c._enter(null,c):c._leave(null,c)):a(c.getTipElement()).hasClass(o.IN)?c._leave(null,c):c._enter(null,c)}},{key:"destroy",value:function(){var b=this;clearTimeout(this._timeout),this.hide(function(){a(b.element).off("."+b.constructor.NAME).removeData(b.constructor.DATA_KEY),b.tip&&a(b.tip).detach(),
|
|
b.tip=null})}},{key:"show",value:function(){var b=this,c=a.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){a(this.element).trigger(c);var e=a.contains(this.element.ownerDocument.documentElement,this.element);if(c.isDefaultPrevented()||!e)return;var f=this.getTipElement(),g=d.getUID(this.constructor.NAME);f.setAttribute("id",g),this.element.setAttribute("aria-describedby",g),this.setContent(),this.config.animation&&a(f).addClass(o.FADE);var i="function"==typeof this.config.placement?this.config.placement.call(this,f,this.element):this.config.placement,k=this._getAttachment(i);a(f).data(this.constructor.DATA_KEY,this).appendTo(document.body),a(this.element).trigger(this.constructor.Event.INSERTED),this._tether=new Tether({element:f,target:this.element,attachment:k,classes:q,classPrefix:j,offset:this.config.offset,constraints:this.config.constraints}),d.reflow(f),this._tether.position(),a(f).addClass(o.IN);var l=function(){var c=b._hoverState;b._hoverState=null,a(b.element).trigger(b.constructor.Event.SHOWN),c===m.OUT&&b._leave(null,b)};d.supportsTransitionEnd()&&a(this.tip).hasClass(o.FADE)?a(this.tip).one(d.TRANSITION_END,l).emulateTransitionEnd(h._TRANSITION_DURATION):l()}}},{key:"hide",value:function(b){var c=this,e=this.getTipElement(),f=a.Event(this.constructor.Event.HIDE),g=function(){c._hoverState!==m.IN&&e.parentNode&&e.parentNode.removeChild(e),c.element.removeAttribute("aria-describedby"),a(c.element).trigger(c.constructor.Event.HIDDEN),c.cleanupTether(),b&&b()};a(this.element).trigger(f),f.isDefaultPrevented()||(a(e).removeClass(o.IN),d.supportsTransitionEnd()&&a(this.tip).hasClass(o.FADE)?a(e).one(d.TRANSITION_END,g).emulateTransitionEnd(i):g(),this._hoverState="")}},{key:"isWithContent",value:function(){return!!this.getTitle()}},{key:"getTipElement",value:function(){return this.tip=this.tip||a(this.config.template)[0]}},{key:"setContent",value:function(){var b=this.getTipElement(),c=this.getTitle(),d=this.config.html?"innerHTML":"innerText";a(b).find(p.TOOLTIP_INNER)[0][d]=c,a(b).removeClass(o.FADE).removeClass(o.IN),this.cleanupTether()}},{key:"getTitle",value:function(){var a=this.element.getAttribute("data-original-title");return a||(a="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),a}},{key:"cleanupTether",value:function(){this._tether&&(this._tether.destroy(),a(this.element).removeClass(this._removeTetherClasses),a(this.tip).removeClass(this._removeTetherClasses))}},{key:"_getAttachment",value:function(a){return l[a.toUpperCase()]}},{key:"_setListeners",value:function(){var b=this,c=this.config.trigger.split(" ");c.forEach(function(c){if("click"===c)a(b.element).on(b.constructor.Event.CLICK,b.config.selector,b.toggle.bind(b));else if(c!==r.MANUAL){var d=c==r.HOVER?b.constructor.Event.MOUSEENTER:b.constructor.Event.FOCUSIN,e=c==r.HOVER?b.constructor.Event.MOUSELEAVE:b.constructor.Event.FOCUSOUT;a(b.element).on(d,b.config.selector,b._enter.bind(b)).on(e,b.config.selector,b._leave.bind(b))}}),this.config.selector?this.config=a.extend({},this.config,{trigger:"manual",selector:""}):this._fixTitle()}},{key:"_removeTetherClasses",value:function(a,b){return((b.baseVal||b).match(new RegExp("(^|\\s)"+j+"-\\S+","g"))||[]).join(" ")}},{key:"_fixTitle",value:function(){var a=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==a)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))}},{key:"_enter",value:function(b,c){var d=this.constructor.DATA_KEY;return c=c||a(b.currentTarget).data(d),c||(c=new this.constructor(b.currentTarget,this._getDelegateConfig()),a(b.currentTarget).data(d,c)),b&&(c._activeTrigger["focusin"==b.type?r.FOCUS:r.HOVER]=!0),a(c.getTipElement()).hasClass(o.IN)||c._hoverState===m.IN?void(c._hoverState=m.IN):(clearTimeout(c._timeout),c._hoverState=m.IN,c.config.delay&&c.config.delay.show?void(c._timeout=setTimeout(function(){c._hoverState===m.IN&&c.show()},c.config.delay.show)):void c.show())}},{key:"_leave",value:function(b,c){var d=this.constructor.DATA_KEY;return c=c||a(b.currentTarget).data(d),c||(c=new this.constructor(b.currentTarget,this._getDelegateConfig()),a(b.currentTarget).data(d,c)),b&&(c._activeTrigger["focusout"==b.type?r.FOCUS:r.HOVER]=!1),c._isWithActiveTrigger()?void 0:(clearTimeout(c._timeout),c._hoverState=m.OUT,c.config.delay&&c.config.delay.hide?void(c._timeout=setTimeout(function(){c._hoverState===m.OUT&&c.hide()},c.config.delay.hide)):void c.hide())}},{key:"_isWithActiveTrigger",value:function(){for(var a in this._activeTrigger)if(this._activeTrigger[a])return!0;return!1}},{key:"_getConfig",value:function(b){return b=a.extend({},this.constructor.Default,a(this.element).data(),b),b.delay&&"number"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b}},{key:"_getDelegateConfig",value:function(){var a={};if(this.config)for(var b in this.config){var c=this.config[b];this.constructor.Default[b]!==c&&(a[b]=c)}return a}}],[{key:"VERSION",get:function(){return f}},{key:"Default",get:function(){return k}},{key:"NAME",get:function(){return e}},{key:"DATA_KEY",get:function(){return g}},{key:"Event",get:function(){return n}},{key:"_jQueryInterface",value:function(b){return this.each(function(){var c=a(this).data(g),d="object"==typeof b?b:null;(c||!/destroy|hide/.test(b))&&(c||(c=new h(this,d),a(this).data(g,c)),"string"==typeof b&&c[b]())})}}]),h}();return a.fn[e]=s._jQueryInterface,a.fn[e].Constructor=s,a.fn[e].noConflict=function(){return a.fn[e]=h,s._jQueryInterface},s}(jQuery));!function(d){var f="popover",g="4.0.0",h="bs.popover",i=d.fn[f],j=d.extend({},e.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),k={FADE:"fade",IN:"in"},l={TITLE:".popover-title",CONTENT:".popover-content",ARROW:".popover-arrow"},m={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"},n=function(e){function i(){b(this,i),null!=e&&e.apply(this,arguments)}return a(i,e),c(i,[{key:"isWithContent",value:function(){return this.getTitle()||this._getContent()}},{key:"getTipElement",value:function(){return this.tip=this.tip||d(this.config.template)[0]}},{key:"setContent",value:function(){var a=this.getTipElement(),b=this.getTitle(),c=this._getContent(),e=d(a).find(l.TITLE)[0];e&&(e[this.config.html?"innerHTML":"innerText"]=b),d(a).find(l.CONTENT).children().detach().end()[this.config.html?"string"==typeof c?"html":"append":"text"](c),d(a).removeClass(k.FADE).removeClass(k.IN),this.cleanupTether()}},{key:"_getContent",value:function(){return this.element.getAttribute("data-content")||("function"==typeof this.config.content?this.config.content.call(this.element):this.config.content)}}],[{key:"VERSION",get:function(){return g}},{key:"Default",get:function(){return j}},{key:"NAME",get:function(){return f}},{key:"DATA_KEY",get:function(){return h}},{key:"Event",get:function(){return m}},{key:"_jQueryInterface",value:function(a){return this.each(function(){var b=d(this).data(h),c="object"==typeof a?a:null;(b||!/destroy|hide/.test(a))&&(b||(b=new i(this,c),d(this).data(h,b)),"string"==typeof a&&b[a]())})}}]),i}(e);return d.fn[f]=n._jQueryInterface,d.fn[f].Constructor=n,d.fn[f].noConflict=function(){return d.fn[f]=i,n._jQueryInterface},n}(jQuery)}}(jQuery); |