/*! 2017-03-02 */ function _possibleConstructorReturn(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function _inherits(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&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}function _classCallCheck(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_createClass=function(){function a(a,b){for(var c=0;cthis._items.length-1||b<0)){if(this._isSliding)return void a(this._element).one(n.SLID,function(){return c.to(b)});if(d===b)return this.pause(),void this.cycle();var e=b>d?m.NEXT:m.PREVIOUS;this._slide(e,this._items[b])}},f.prototype.dispose=function(){a(this._element).off(e),a.removeData(this._element,d),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},f.prototype._getConfig=function(c){return c=a.extend({},k,c),Util.typeCheckConfig(b,c,l),c},f.prototype._addEventListeners=function(){var b=this;this._config.keyboard&&a(this._element).on(n.KEYDOWN,function(a){return b._keydown(a)}),"hover"!==this._config.pause||"ontouchstart"in document.documentElement||a(this._element).on(n.MOUSEENTER,function(a){return b.pause(a)}).on(n.MOUSELEAVE,function(a){return b.cycle(a)})},f.prototype._keydown=function(a){if(!/input|textarea/i.test(a.target.tagName))switch(a.which){case i:a.preventDefault(),this.prev();break;case j:a.preventDefault(),this.next();break;default:return}},f.prototype._getItemIndex=function(b){return this._items=a.makeArray(a(b).parent().find(p.ITEM)),this._items.indexOf(b)},f.prototype._getItemByDirection=function(a,b){var c=a===m.NEXT,d=a===m.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===m.PREVIOUS?-1:1,i=(e+h)%this._items.length;return i===-1?this._items[this._items.length-1]:this._items[i]},f.prototype._triggerSlideEvent=function(b,c){var d=a.Event(n.SLIDE,{relatedTarget:b,direction:c});return a(this._element).trigger(d),d},f.prototype._setActiveIndicatorElement=function(b){if(this._indicatorsElement){a(this._indicatorsElement).find(p.ACTIVE).removeClass(o.ACTIVE);var c=this._indicatorsElement.children[this._getItemIndex(b)];c&&a(c).addClass(o.ACTIVE)}},f.prototype._slide=function(b,c){var d=this,e=a(this._element).find(p.ACTIVE_ITEM)[0],f=c||e&&this._getItemByDirection(b,e),g=Boolean(this._interval),i=void 0,j=void 0,k=void 0;if(b===m.NEXT?(i=o.LEFT,j=o.NEXT,k=m.LEFT):(i=o.RIGHT,j=o.PREV,k=m.RIGHT),f&&a(f).hasClass(o.ACTIVE))return void(this._isSliding=!1);var l=this._triggerSlideEvent(f,k);if(!l.isDefaultPrevented()&&e&&f){this._isSliding=!0,g&&this.pause(),this._setActiveIndicatorElement(f);var q=a.Event(n.SLID,{relatedTarget:f,direction:k});Util.supportsTransitionEnd()&&a(this._element).hasClass(o.SLIDE)?(a(f).addClass(j),Util.reflow(f),a(e).addClass(i),a(f).addClass(i),a(e).one(Util.TRANSITION_END,function(){a(f).removeClass(i+" "+j).addClass(o.ACTIVE),a(e).removeClass(o.ACTIVE+" "+j+" "+i),d._isSliding=!1,setTimeout(function(){return a(d._element).trigger(q)},0)}).emulateTransitionEnd(h)):(a(e).removeClass(o.ACTIVE),a(f).addClass(o.ACTIVE),this._isSliding=!1,a(this._element).trigger(q)),g&&this.cycle()}},f._jQueryInterface=function(b){return this.each(function(){var c=a(this).data(d),e=a.extend({},k,a(this).data());"object"===("undefined"==typeof b?"undefined":_typeof(b))&&a.extend(e,b);var g="string"==typeof b?b:e.slide;if(c||(c=new f(this,e),a(this).data(d,c)),"number"==typeof b)c.to(b);else if("string"==typeof g){if(void 0===c[g])throw new Error('No method named "'+g+'"');c[g]()}else e.interval&&(c.pause(),c.cycle())})},f._dataApiClickHandler=function(b){var c=Util.getSelectorFromElement(this);if(c){var e=a(c)[0];if(e&&a(e).hasClass(o.CAROUSEL)){var g=a.extend({},a(e).data(),a(this).data()),h=this.getAttribute("data-slide-to");h&&(g.interval=!1),f._jQueryInterface.call(a(e),g),h&&a(e).data(d).to(h),b.preventDefault()}}},_createClass(f,null,[{key:"VERSION",get:function(){return c}},{key:"Default",get:function(){return k}}]),f}();return a(document).on(n.CLICK_DATA_API,p.DATA_SLIDE,q._dataApiClickHandler),a(window).on(n.LOAD_DATA_API,function(){a(p.DATA_RIDE).each(function(){var b=a(this);q._jQueryInterface.call(b,b.data())})}),a.fn[b]=q._jQueryInterface,a.fn[b].Constructor=q,a.fn[b].noConflict=function(){return a.fn[b]=g,q._jQueryInterface},q}(jQuery),Collapse=function(a){var b="collapse",c="4.0.0-alpha.6",d="bs.collapse",e="."+d,f=".data-api",g=a.fn[b],h=600,i={toggle:!0,parent:""},j={toggle:"boolean",parent:"string"},k={SHOW:"show"+e,SHOWN:"shown"+e,HIDE:"hide"+e,HIDDEN:"hidden"+e,CLICK_DATA_API:"click"+e+f},l={SHOW:"show",COLLAPSE:"collapse",COLLAPSING:"collapsing",COLLAPSED:"collapsed"},m={WIDTH:"width",HEIGHT:"height"},n={ACTIVES:".card > .show, .card > .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},o=function(){function e(b,c){_classCallCheck(this,e),this._isTransitioning=!1,this._element=b,this._config=this._getConfig(c),this._triggerArray=a.makeArray(a('[data-toggle="collapse"][href="#'+b.id+'"],'+('[data-toggle="collapse"][data-target="#'+b.id+'"]'))),this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}return e.prototype.toggle=function(){a(this._element).hasClass(l.SHOW)?this.hide():this.show()},e.prototype.show=function(){var b=this;if(this._isTransitioning)throw new Error("Collapse is transitioning");if(!a(this._element).hasClass(l.SHOW)){var c=void 0,f=void 0;if(this._parent&&(c=a.makeArray(a(this._parent).find(n.ACTIVES)),c.length||(c=null)),!(c&&(f=a(c).data(d),f&&f._isTransitioning))){var g=a.Event(k.SHOW);if(a(this._element).trigger(g),!g.isDefaultPrevented()){c&&(e._jQueryInterface.call(a(c),"hide"),f||a(c).data(d,null));var i=this._getDimension();a(this._element).removeClass(l.COLLAPSE).addClass(l.COLLAPSING),this._element.style[i]=0,this._element.setAttribute("aria-expanded",!0),this._triggerArray.length&&a(this._triggerArray).removeClass(l.COLLAPSED).attr("aria-expanded",!0),this.setTransitioning(!0);var j=function(){a(b._element).removeClass(l.COLLAPSING).addClass(l.COLLAPSE).addClass(l.SHOW),b._element.style[i]="",b.setTransitioning(!1),a(b._element).trigger(k.SHOWN)};if(!Util.supportsTransitionEnd())return void j();var m=i[0].toUpperCase()+i.slice(1),o="scroll"+m;a(this._element).one(Util.TRANSITION_END,j).emulateTransitionEnd(h),this._element.style[i]=this._element[o]+"px"}}}},e.prototype.hide=function(){var b=this;if(this._isTransitioning)throw new Error("Collapse is transitioning");if(a(this._element).hasClass(l.SHOW)){var c=a.Event(k.HIDE);if(a(this._element).trigger(c),!c.isDefaultPrevented()){var d=this._getDimension(),e=d===m.WIDTH?"offsetWidth":"offsetHeight";this._element.style[d]=this._element[e]+"px",Util.reflow(this._element),a(this._element).addClass(l.COLLAPSING).removeClass(l.COLLAPSE).removeClass(l.SHOW),this._element.setAttribute("aria-expanded",!1),this._triggerArray.length&&a(this._triggerArray).addClass(l.COLLAPSED).attr("aria-expanded",!1),this.setTransitioning(!0);var f=function(){b.setTransitioning(!1),a(b._element).removeClass(l.COLLAPSING).addClass(l.COLLAPSE).trigger(k.HIDDEN)};return this._element.style[d]="",Util.supportsTransitionEnd()?void a(this._element).one(Util.TRANSITION_END,f).emulateTransitionEnd(h):void f()}}},e.prototype.setTransitioning=function(a){this._isTransitioning=a},e.prototype.dispose=function(){a.removeData(this._element,d),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},e.prototype._getConfig=function(c){return c=a.extend({},i,c),c.toggle=Boolean(c.toggle),Util.typeCheckConfig(b,c,j),c},e.prototype._getDimension=function(){var b=a(this._element).hasClass(m.WIDTH);return b?m.WIDTH:m.HEIGHT},e.prototype._getParent=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},e.prototype._addAriaAndCollapsedClass=function(b,c){if(b){var d=a(b).hasClass(l.SHOW);b.setAttribute("aria-expanded",d),c.length&&a(c).toggleClass(l.COLLAPSED,!d).attr("aria-expanded",d)}},e._getTargetFromElement=function(b){var c=Util.getSelectorFromElement(b);return c?a(c)[0]:null},e._jQueryInterface=function(b){return this.each(function(){var c=a(this),f=c.data(d),g=a.extend({},i,c.data(),"object"===("undefined"==typeof b?"undefined":_typeof(b))&&b);if(!f&&g.toggle&&/show|hide/.test(b)&&(g.toggle=!1),f||(f=new e(this,g),c.data(d,f)),"string"==typeof b){if(void 0===f[b])throw new Error('No method named "'+b+'"');f[b]()}})},_createClass(e,null,[{key:"VERSION",get:function(){return c}},{key:"Default",get:function(){return i}}]),e}();return a(document).on(k.CLICK_DATA_API,n.DATA_TOGGLE,function(b){b.preventDefault();var c=o._getTargetFromElement(this),e=a(c).data(d),f=e?"toggle":a(this).data();o._jQueryInterface.call(a(c),f)}),a.fn[b]=o._jQueryInterface,a.fn[b].Constructor=o,a.fn[b].noConflict=function(){return a.fn[b]=g,o._jQueryInterface},o}(jQuery),Dropdown=function(a){var b="dropdown",c="4.0.0-alpha.6",d="bs.dropdown",e="."+d,f=".data-api",g=a.fn[b],h=27,i=38,j=40,k=3,l={HIDE:"hide"+e,HIDDEN:"hidden"+e,SHOW:"show"+e,SHOWN:"shown"+e,CLICK:"click"+e,CLICK_DATA_API:"click"+e+f,FOCUSIN_DATA_API:"focusin"+e+f,KEYDOWN_DATA_API:"keydown"+e+f},m={BACKDROP:"dropdown-backdrop",DISABLED:"disabled",SHOW:"show"},n={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'},o=function(){function b(a){_classCallCheck(this,b),this._element=a,this._addEventListeners()}return b.prototype.toggle=function(){if(this.disabled||a(this).hasClass(m.DISABLED))return!1;var c=b._getParentFromElement(this),d=a(c).hasClass(m.SHOW);if(b._clearMenus(),d)return!1;if("ontouchstart"in document.documentElement&&!a(c).closest(n.NAVBAR_NAV).length){var e=document.createElement("div");e.className=m.BACKDROP,a(e).insertBefore(this),a(e).on("click",b._clearMenus)}var f={relatedTarget:this},g=a.Event(l.SHOW,f);return a(c).trigger(g),!g.isDefaultPrevented()&&(this.focus(),this.setAttribute("aria-expanded",!0),a(c).toggleClass(m.SHOW),a(c).trigger(a.Event(l.SHOWN,f)),!1)},b.prototype.dispose=function(){a.removeData(this._element,d),a(this._element).off(e),this._element=null},b.prototype._addEventListeners=function(){a(this._element).on(l.CLICK,this.toggle)},b._jQueryInterface=function(c){return this.each(function(){var e=a(this).data(d);if(e||(e=new b(this),a(this).data(d,e)),"string"==typeof c){if(void 0===e[c])throw new Error('No method named "'+c+'"');e[c].call(this)}})},b._clearMenus=function(c){if(!c||c.which!==k){var d=a(n.BACKDROP)[0];d&&d.parentNode.removeChild(d);for(var e=a.makeArray(a(n.DATA_TOGGLE)),f=0;f0&&k--,c.which===j&&kdocument.documentElement.clientHeight;!this._isBodyOverflowing&&a&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!a&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},f.prototype._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},f.prototype._checkScrollbar=function(){this._isBodyOverflowing=document.body.clientWidth=c){var d=this._targets[this._targets.length-1];return void(this._activeTarget!==d&&this._activate(d))}if(this._activeTarget&&a0)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 "+l.NAV_LINKS).addClass(k.ACTIVE),a(this._scrollElement).trigger(j.ACTIVATE,{relatedTarget:b})},f.prototype._clear=function(){a(this._selector).filter(l.ACTIVE).removeClass(k.ACTIVE)},f._jQueryInterface=function(b){ return this.each(function(){var c=a(this).data(d),e="object"===("undefined"==typeof b?"undefined":_typeof(b))&&b;if(c||(c=new f(this,e),a(this).data(d,c)),"string"==typeof b){if(void 0===c[b])throw new Error('No method named "'+b+'"');c[b]()}})},_createClass(f,null,[{key:"VERSION",get:function(){return c}},{key:"Default",get:function(){return h}}]),f}();return a(window).on(j.LOAD_DATA_API,function(){for(var b=a.makeArray(a(l.DATA_SPY)),c=b.length;c--;){var d=a(b[c]);n._jQueryInterface.call(d,d.data())}}),a.fn[b]=n._jQueryInterface,a.fn[b].Constructor=n,a.fn[b].noConflict=function(){return a.fn[b]=g,n._jQueryInterface},n}(jQuery),Tab=function(a){var b="tab",c="4.0.0-alpha.6",d="bs.tab",e="."+d,f=".data-api",g=a.fn[b],h=150,i={HIDE:"hide"+e,HIDDEN:"hidden"+e,SHOW:"show"+e,SHOWN:"shown"+e,CLICK_DATA_API:"click"+e+f},j={DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active",DISABLED:"disabled",FADE:"fade",SHOW:"show"},k={A:"a",LI:"li",DROPDOWN:".dropdown",LIST:"ul:not(.dropdown-menu), ol:not(.dropdown-menu), nav:not(.dropdown-menu)",FADE_CHILD:"> .nav-item .fade, > .fade",ACTIVE:".active",ACTIVE_CHILD:"> .nav-item > .active, > .active",DATA_TOGGLE:'[data-toggle="tab"], [data-toggle="pill"]',DROPDOWN_TOGGLE:".dropdown-toggle",DROPDOWN_ACTIVE_CHILD:"> .dropdown-menu .active"},l=function(){function b(a){_classCallCheck(this,b),this._element=a}return b.prototype.show=function(){var b=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&a(this._element).hasClass(j.ACTIVE)||a(this._element).hasClass(j.DISABLED))){var c=void 0,d=void 0,e=a(this._element).closest(k.LIST)[0],f=Util.getSelectorFromElement(this._element);e&&(d=a.makeArray(a(e).find(k.ACTIVE)),d=d[d.length-1]);var g=a.Event(i.HIDE,{relatedTarget:this._element}),h=a.Event(i.SHOW,{relatedTarget:d});if(d&&a(d).trigger(g),a(this._element).trigger(h),!h.isDefaultPrevented()&&!g.isDefaultPrevented()){f&&(c=a(f)[0]),this._activate(this._element,e);var l=function(){var c=a.Event(i.HIDDEN,{relatedTarget:b._element}),e=a.Event(i.SHOWN,{relatedTarget:d});a(d).trigger(c),a(b._element).trigger(e)};c?this._activate(c,c.parentNode,l):l()}}},b.prototype.dispose=function(){a.removeClass(this._element,d),this._element=null},b.prototype._activate=function(b,c,d){var e=this,f=a(c).find(k.ACTIVE_CHILD)[0],g=d&&Util.supportsTransitionEnd()&&(f&&a(f).hasClass(j.FADE)||Boolean(a(c).find(k.FADE_CHILD)[0])),i=function(){return e._transitionComplete(b,f,g,d)};f&&g?a(f).one(Util.TRANSITION_END,i).emulateTransitionEnd(h):i(),f&&a(f).removeClass(j.SHOW)},b.prototype._transitionComplete=function(b,c,d,e){if(c){a(c).removeClass(j.ACTIVE);var f=a(c.parentNode).find(k.DROPDOWN_ACTIVE_CHILD)[0];f&&a(f).removeClass(j.ACTIVE),c.setAttribute("aria-expanded",!1)}if(a(b).addClass(j.ACTIVE),b.setAttribute("aria-expanded",!0),d?(Util.reflow(b),a(b).addClass(j.SHOW)):a(b).removeClass(j.FADE),b.parentNode&&a(b.parentNode).hasClass(j.DROPDOWN_MENU)){var g=a(b).closest(k.DROPDOWN)[0];g&&a(g).find(k.DROPDOWN_TOGGLE).addClass(j.ACTIVE),b.setAttribute("aria-expanded",!0)}e&&e()},b._jQueryInterface=function(c){return this.each(function(){var e=a(this),f=e.data(d);if(f||(f=new b(this),e.data(d,f)),"string"==typeof c){if(void 0===f[c])throw new Error('No method named "'+c+'"');f[c]()}})},_createClass(b,null,[{key:"VERSION",get:function(){return c}}]),b}();return a(document).on(i.CLICK_DATA_API,k.DATA_TOGGLE,function(b){b.preventDefault(),l._jQueryInterface.call(a(this),"show")}),a.fn[b]=l._jQueryInterface,a.fn[b].Constructor=l,a.fn[b].noConflict=function(){return a.fn[b]=g,l._jQueryInterface},l}(jQuery),Tooltip=function(a){if("undefined"==typeof Tether)throw new Error("Bootstrap tooltips require Tether (http://tether.io/)");var b="tooltip",c="4.0.0-alpha.6",d="bs.tooltip",e="."+d,f=a.fn[b],g=150,h="bs-tether",i={animation:!0,template:'',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:"0 0",constraints:[],container:!1},j={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"string",constraints:"array",container:"(string|element|boolean)"},k={TOP:"bottom center",RIGHT:"middle left",BOTTOM:"top center",LEFT:"middle right"},l={SHOW:"show",OUT:"out"},m={HIDE:"hide"+e,HIDDEN:"hidden"+e,SHOW:"show"+e,SHOWN:"shown"+e,INSERTED:"inserted"+e,CLICK:"click"+e,FOCUSIN:"focusin"+e,FOCUSOUT:"focusout"+e,MOUSEENTER:"mouseenter"+e,MOUSELEAVE:"mouseleave"+e},n={FADE:"fade",SHOW:"show"},o={TOOLTIP:".tooltip",TOOLTIP_INNER:".tooltip-inner"},p={element:!1,enabled:!1},q={HOVER:"hover",FOCUS:"focus",CLICK:"click",MANUAL:"manual"},r=function(){function f(a,b){_classCallCheck(this,f),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._isTransitioning=!1,this._tether=null,this.element=a,this.config=this._getConfig(b),this.tip=null,this._setListeners()}return f.prototype.enable=function(){this._isEnabled=!0},f.prototype.disable=function(){this._isEnabled=!1},f.prototype.toggleEnabled=function(){this._isEnabled=!this._isEnabled},f.prototype.toggle=function(b){if(b){var c=this.constructor.DATA_KEY,d=a(b.currentTarget).data(c);d||(d=new this.constructor(b.currentTarget,this._getDelegateConfig()),a(b.currentTarget).data(c,d)),d._activeTrigger.click=!d._activeTrigger.click,d._isWithActiveTrigger()?d._enter(null,d):d._leave(null,d)}else{if(a(this.getTipElement()).hasClass(n.SHOW))return void this._leave(null,this);this._enter(null,this)}},f.prototype.dispose=function(){clearTimeout(this._timeout),this.cleanupTether(),a.removeData(this.element,this.constructor.DATA_KEY),a(this.element).off(this.constructor.EVENT_KEY),a(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&a(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._tether=null,this.element=null,this.config=null,this.tip=null},f.prototype.show=function(){var b=this;if("none"===a(this.element).css("display"))throw new Error("Please use show on visible elements");var c=a.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){if(this._isTransitioning)throw new Error("Tooltip is transitioning");a(this.element).trigger(c);var d=a.contains(this.element.ownerDocument.documentElement,this.element);if(c.isDefaultPrevented()||!d)return;var e=this.getTipElement(),g=Util.getUID(this.constructor.NAME);e.setAttribute("id",g),this.element.setAttribute("aria-describedby",g),this.setContent(),this.config.animation&&a(e).addClass(n.FADE);var i="function"==typeof this.config.placement?this.config.placement.call(this,e,this.element):this.config.placement,j=this._getAttachment(i),k=this.config.container===!1?document.body:a(this.config.container);a(e).data(this.constructor.DATA_KEY,this).appendTo(k),a(this.element).trigger(this.constructor.Event.INSERTED),this._tether=new Tether({attachment:j,element:e,target:this.element,classes:p,classPrefix:h,offset:this.config.offset,constraints:this.config.constraints,addTargetClasses:!1}),Util.reflow(e),this._tether.position(),a(e).addClass(n.SHOW);var m=function(){var c=b._hoverState;b._hoverState=null,b._isTransitioning=!1,a(b.element).trigger(b.constructor.Event.SHOWN),c===l.OUT&&b._leave(null,b)};if(Util.supportsTransitionEnd()&&a(this.tip).hasClass(n.FADE))return this._isTransitioning=!0,void a(this.tip).one(Util.TRANSITION_END,m).emulateTransitionEnd(f._TRANSITION_DURATION);m()}},f.prototype.hide=function(b){var c=this,d=this.getTipElement(),e=a.Event(this.constructor.Event.HIDE);if(this._isTransitioning)throw new Error("Tooltip is transitioning");var f=function(){c._hoverState!==l.SHOW&&d.parentNode&&d.parentNode.removeChild(d),c.element.removeAttribute("aria-describedby"),a(c.element).trigger(c.constructor.Event.HIDDEN),c._isTransitioning=!1,c.cleanupTether(),b&&b()};a(this.element).trigger(e),e.isDefaultPrevented()||(a(d).removeClass(n.SHOW),this._activeTrigger[q.CLICK]=!1,this._activeTrigger[q.FOCUS]=!1,this._activeTrigger[q.HOVER]=!1,Util.supportsTransitionEnd()&&a(this.tip).hasClass(n.FADE)?(this._isTransitioning=!0,a(d).one(Util.TRANSITION_END,f).emulateTransitionEnd(g)):f(),this._hoverState="")},f.prototype.isWithContent=function(){return Boolean(this.getTitle())},f.prototype.getTipElement=function(){return this.tip=this.tip||a(this.config.template)[0]},f.prototype.setContent=function(){var b=a(this.getTipElement());this.setElementContent(b.find(o.TOOLTIP_INNER),this.getTitle()),b.removeClass(n.FADE+" "+n.SHOW),this.cleanupTether()},f.prototype.setElementContent=function(b,c){var d=this.config.html;"object"===("undefined"==typeof c?"undefined":_typeof(c))&&(c.nodeType||c.jquery)?d?a(c).parent().is(b)||b.empty().append(c):b.text(a(c).text()):b[d?"html":"text"](c)},f.prototype.getTitle=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},f.prototype.cleanupTether=function(){this._tether&&this._tether.destroy()},f.prototype._getAttachment=function(a){return k[a.toUpperCase()]},f.prototype._setListeners=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,function(a){return b.toggle(a)});else if(c!==q.MANUAL){var d=c===q.HOVER?b.constructor.Event.MOUSEENTER:b.constructor.Event.FOCUSIN,e=c===q.HOVER?b.constructor.Event.MOUSELEAVE:b.constructor.Event.FOCUSOUT;a(b.element).on(d,b.config.selector,function(a){return b._enter(a)}).on(e,b.config.selector,function(a){return b._leave(a)})}a(b.element).closest(".modal").on("hide.bs.modal",function(){return b.hide()})}),this.config.selector?this.config=a.extend({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},f.prototype._fixTitle=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",""))},f.prototype._enter=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?q.FOCUS:q.HOVER]=!0),a(c.getTipElement()).hasClass(n.SHOW)||c._hoverState===l.SHOW?void(c._hoverState=l.SHOW):(clearTimeout(c._timeout),c._hoverState=l.SHOW,c.config.delay&&c.config.delay.show?void(c._timeout=setTimeout(function(){c._hoverState===l.SHOW&&c.show()},c.config.delay.show)):void c.show())},f.prototype._leave=function(b,c){var d=this.constructor.DATA_KEY;if(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?q.FOCUS:q.HOVER]=!1),!c._isWithActiveTrigger())return clearTimeout(c._timeout),c._hoverState=l.OUT,c.config.delay&&c.config.delay.hide?void(c._timeout=setTimeout(function(){c._hoverState===l.OUT&&c.hide()},c.config.delay.hide)):void c.hide()},f.prototype._isWithActiveTrigger=function(){for(var a in this._activeTrigger)if(this._activeTrigger[a])return!0;return!1},f.prototype._getConfig=function(c){return c=a.extend({},this.constructor.Default,a(this.element).data(),c),c.delay&&"number"==typeof c.delay&&(c.delay={show:c.delay,hide:c.delay}),Util.typeCheckConfig(b,c,this.constructor.DefaultType),c},f.prototype._getDelegateConfig=function(){var a={};if(this.config)for(var b in this.config)this.constructor.Default[b]!==this.config[b]&&(a[b]=this.config[b]);return a},f._jQueryInterface=function(b){return this.each(function(){var c=a(this).data(d),e="object"===("undefined"==typeof b?"undefined":_typeof(b))&&b;if((c||!/dispose|hide/.test(b))&&(c||(c=new f(this,e),a(this).data(d,c)),"string"==typeof b)){if(void 0===c[b])throw new Error('No method named "'+b+'"');c[b]()}})},_createClass(f,null,[{key:"VERSION",get:function(){return c}},{key:"Default",get:function(){return i}},{key:"NAME",get:function(){return b}},{key:"DATA_KEY",get:function(){return d}},{key:"Event",get:function(){return m}},{key:"EVENT_KEY",get:function(){return e}},{key:"DefaultType",get:function(){return j}}]),f}();return a.fn[b]=r._jQueryInterface,a.fn[b].Constructor=r,a.fn[b].noConflict=function(){return a.fn[b]=f,r._jQueryInterface},r}(jQuery),Popover=function(a){var b="popover",c="4.0.0-alpha.6",d="bs.popover",e="."+d,f=a.fn[b],g=a.extend({},Tooltip.Default,{placement:"right",trigger:"click",content:"",template:''}),h=a.extend({},Tooltip.DefaultType,{content:"(string|element|function)"}),i={FADE:"fade",SHOW:"show"},j={TITLE:".popover-title",CONTENT:".popover-content"},k={HIDE:"hide"+e,HIDDEN:"hidden"+e,SHOW:"show"+e,SHOWN:"shown"+e,INSERTED:"inserted"+e,CLICK:"click"+e,FOCUSIN:"focusin"+e,FOCUSOUT:"focusout"+e,MOUSEENTER:"mouseenter"+e,MOUSELEAVE:"mouseleave"+e},l=function(f){function l(){return _classCallCheck(this,l),_possibleConstructorReturn(this,f.apply(this,arguments))}return _inherits(l,f),l.prototype.isWithContent=function(){return this.getTitle()||this._getContent()},l.prototype.getTipElement=function(){return this.tip=this.tip||a(this.config.template)[0]},l.prototype.setContent=function(){var b=a(this.getTipElement());this.setElementContent(b.find(j.TITLE),this.getTitle()),this.setElementContent(b.find(j.CONTENT),this._getContent()),b.removeClass(i.FADE+" "+i.SHOW),this.cleanupTether()},l.prototype._getContent=function(){return this.element.getAttribute("data-content")||("function"==typeof this.config.content?this.config.content.call(this.element):this.config.content)},l._jQueryInterface=function(b){return this.each(function(){var c=a(this).data(d),e="object"===("undefined"==typeof b?"undefined":_typeof(b))?b:null;if((c||!/destroy|hide/.test(b))&&(c||(c=new l(this,e),a(this).data(d,c)),"string"==typeof b)){if(void 0===c[b])throw new Error('No method named "'+b+'"');c[b]()}})},_createClass(l,null,[{key:"VERSION",get:function(){return c}},{key:"Default",get:function(){return g}},{key:"NAME",get:function(){return b}},{key:"DATA_KEY",get:function(){return d}},{key:"Event",get:function(){return k}},{key:"EVENT_KEY",get:function(){return e}},{key:"DefaultType",get:function(){return h}}]),l}(Tooltip);return a.fn[b]=l._jQueryInterface,a.fn[b].Constructor=l,a.fn[b].noConflict=function(){return a.fn[b]=f,l._jQueryInterface},l}(jQuery);