/*! * bootstrap v4.0.0-beta (https://getbootstrap.com) * copyright 2011-2017 the bootstrap authors (https://github.com/twbs/bootstrap/graphs/contributors) * licensed under mit (https://github.com/twbs/bootstrap/blob/master/license) */ if("undefined"==typeof jquery)throw new error("bootstrap's javascript requires jquery. jquery must be included before bootstrap's javascript.");!function(t){var e=jquery.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1||e[0]>=4)throw new error("bootstrap's javascript requires at least jquery v1.9.1 but less than v4.0.0")}(),function(){function t(t,e){if(!t)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function e(t,e){if("function"!=typeof e&&null!==e)throw new typeerror("super expression must either be null or a function, not "+typeof e);t.prototype=object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(object.setprototypeof?object.setprototypeof(t,e):t.__proto__=e)}function n(t,e){if(!(t instanceof e))throw new typeerror("cannot call a class as a function")}var i="function"==typeof symbol&&"symbol"==typeof symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof symbol&&t.constructor===symbol&&t!==symbol.prototype?"symbol":typeof t},o=function(){function t(t,e){for(var n=0;n0?n:null}catch(t){return null}},reflow:function(t){return t.offsetheight},triggertransitionend:function(e){t(e).trigger(s.end)},supportstransitionend:function(){return boolean(s)},typecheckconfig:function(t,i,o){for(var r in o)if(o.hasownproperty(r)){var s=o[r],a=i[r],l=a&&n(a)?"element":e(a);if(!new regexp(s).test(l))throw new error(t.touppercase()+': option "'+r+'" provided type "'+l+'" but expected type "'+s+'".')}}};return s=o(),t.fn.emulatetransitionend=r,l.supportstransitionend()&&(t.event.special[l.transition_end]=i()),l}(jquery),s=(function(t){var e="alert",i=t.fn[e],s={dismiss:'[data-dismiss="alert"]'},a={close:"close.bs.alert",closed:"closed.bs.alert",click_data_api:"click.bs.alert.data-api"},l={alert:"alert",fade:"fade",show:"show"},h=function(){function e(t){n(this,e),this._element=t}return e.prototype.close=function(t){t=t||this._element;var e=this._getrootelement(t);this._triggercloseevent(e).isdefaultprevented()||this._removeelement(e)},e.prototype.dispose=function(){t.removedata(this._element,"bs.alert"),this._element=null},e.prototype._getrootelement=function(e){var n=r.getselectorfromelement(e),i=!1;return n&&(i=t(n)[0]),i||(i=t(e).closest("."+l.alert)[0]),i},e.prototype._triggercloseevent=function(e){var n=t.event(a.close);return t(e).trigger(n),n},e.prototype._removeelement=function(e){var n=this;t(e).removeclass(l.show),r.supportstransitionend()&&t(e).hasclass(l.fade)?t(e).one(r.transition_end,function(t){return n._destroyelement(e,t)}).emulatetransitionend(150):this._destroyelement(e)},e.prototype._destroyelement=function(e){t(e).detach().trigger(a.closed).remove()},e._jqueryinterface=function(n){return this.each(function(){var i=t(this),o=i.data("bs.alert");o||(o=new e(this),i.data("bs.alert",o)),"close"===n&&o[n](this)})},e._handledismiss=function(t){return function(e){e&&e.preventdefault(),t.close(this)}},o(e,null,[{key:"version",get:function(){return"4.0.0-beta"}}]),e}();t(document).on(a.click_data_api,s.dismiss,h._handledismiss(new h)),t.fn[e]=h._jqueryinterface,t.fn[e].constructor=h,t.fn[e].noconflict=function(){return t.fn[e]=i,h._jqueryinterface}}(jquery),function(t){var e="button",i=t.fn[e],r={active:"active",button:"btn",focus:"focus"},s={data_toggle_carrot:'[data-toggle^="button"]',data_toggle:'[data-toggle="buttons"]',input:"input",active:".active",button:".btn"},a={click_data_api:"click.bs.button.data-api",focus_blur_data_api:"focus.bs.button.data-api blur.bs.button.data-api"},l=function(){function e(t){n(this,e),this._element=t}return e.prototype.toggle=function(){var e=!0,n=!0,i=t(this._element).closest(s.data_toggle)[0];if(i){var o=t(this._element).find(s.input)[0];if(o){if("radio"===o.type)if(o.checked&&t(this._element).hasclass(r.active))e=!1;else{var a=t(i).find(s.active)[0];a&&t(a).removeclass(r.active)}if(e){if(o.hasattribute("disabled")||i.hasattribute("disabled")||o.classlist.contains("disabled")||i.classlist.contains("disabled"))return;o.checked=!t(this._element).hasclass(r.active),t(o).trigger("change")}o.focus(),n=!1}}n&&this._element.setattribute("aria-pressed",!t(this._element).hasclass(r.active)),e&&t(this._element).toggleclass(r.active)},e.prototype.dispose=function(){t.removedata(this._element,"bs.button"),this._element=null},e._jqueryinterface=function(n){return this.each(function(){var i=t(this).data("bs.button");i||(i=new e(this),t(this).data("bs.button",i)),"toggle"===n&&i[n]()})},o(e,null,[{key:"version",get:function(){return"4.0.0-beta"}}]),e}();t(document).on(a.click_data_api,s.data_toggle_carrot,function(e){e.preventdefault();var n=e.target;t(n).hasclass(r.button)||(n=t(n).closest(s.button)),l._jqueryinterface.call(t(n),"toggle")}).on(a.focus_blur_data_api,s.data_toggle_carrot,function(e){var n=t(e.target).closest(s.button)[0];t(n).toggleclass(r.focus,/^focus(in)?$/.test(e.type))}),t.fn[e]=l._jqueryinterface,t.fn[e].constructor=l,t.fn[e].noconflict=function(){return t.fn[e]=i,l._jqueryinterface}}(jquery),function(t){var e="carousel",s="bs.carousel",a="."+s,l=t.fn[e],h={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},c={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},u={next:"next",prev:"prev",left:"left",right:"right"},d={slide:"slide"+a,slid:"slid"+a,keydown:"keydown"+a,mouseenter:"mouseenter"+a,mouseleave:"mouseleave"+a,touchend:"touchend"+a,load_data_api:"load.bs.carousel.data-api",click_data_api:"click.bs.carousel.data-api"},f={carousel:"carousel",active:"active",slide:"slide",right:"carousel-item-right",left:"carousel-item-left",next:"carousel-item-next",prev:"carousel-item-prev",item:"carousel-item"},p={active:".active",active_item:".active.carousel-item",item:".carousel-item",next_prev:".carousel-item-next, .carousel-item-prev",indicators:".carousel-indicators",data_slide:"[data-slide], [data-slide-to]",data_ride:'[data-ride="carousel"]'},_=function(){function l(e,i){n(this,l),this._items=null,this._interval=null,this._activeelement=null,this._ispaused=!1,this._issliding=!1,this.touchtimeout=null,this._config=this._getconfig(i),this._element=t(e)[0],this._indicatorselement=t(this._element).find(p.indicators)[0],this._addeventlisteners()}return l.prototype.next=function(){this._issliding||this._slide(u.next)},l.prototype.nextwhenvisible=function(){document.hidden||this.next()},l.prototype.prev=function(){this._issliding||this._slide(u.prev)},l.prototype.pause=function(e){e||(this._ispaused=!0),t(this._element).find(p.next_prev)[0]&&r.supportstransitionend()&&(r.triggertransitionend(this._element),this.cycle(!0)),clearinterval(this._interval),this._interval=null},l.prototype.cycle=function(t){t||(this._ispaused=!1),this._interval&&(clearinterval(this._interval),this._interval=null),this._config.interval&&!this._ispaused&&(this._interval=setinterval((document.visibilitystate?this.nextwhenvisible:this.next).bind(this),this._config.interval))},l.prototype.to=function(e){var n=this;this._activeelement=t(this._element).find(p.active_item)[0];var i=this._getitemindex(this._activeelement);if(!(e>this._items.length-1||e<0))if(this._issliding)t(this._element).one(d.slid,function(){return n.to(e)});else{if(i===e)return this.pause(),void this.cycle();var o=e>i?u.next:u.prev;this._slide(o,this._items[e])}},l.prototype.dispose=function(){t(this._element).off(a),t.removedata(this._element,s),this._items=null,this._config=null,this._element=null,this._interval=null,this._ispaused=null,this._issliding=null,this._activeelement=null,this._indicatorselement=null},l.prototype._getconfig=function(n){return n=t.extend({},h,n),r.typecheckconfig(e,n,c),n},l.prototype._addeventlisteners=function(){var e=this;this._config.keyboard&&t(this._element).on(d.keydown,function(t){return e._keydown(t)}),"hover"===this._config.pause&&(t(this._element).on(d.mouseenter,function(t){return e.pause(t)}).on(d.mouseleave,function(t){return e.cycle(t)}),"ontouchstart"in document.documentelement&&t(this._element).on(d.touchend,function(){e.pause(),e.touchtimeout&&cleartimeout(e.touchtimeout),e.touchtimeout=settimeout(function(t){return e.cycle(t)},500+e._config.interval)}))},l.prototype._keydown=function(t){if(!/input|textarea/i.test(t.target.tagname))switch(t.which){case 37:t.preventdefault(),this.prev();break;case 39:t.preventdefault(),this.next();break;default:return}},l.prototype._getitemindex=function(e){return this._items=t.makearray(t(e).parent().find(p.item)),this._items.indexof(e)},l.prototype._getitembydirection=function(t,e){var n=t===u.next,i=t===u.prev,o=this._getitemindex(e),r=this._items.length-1;if((i&&0===o||n&&o===r)&&!this._config.wrap)return e;var s=(o+(t===u.prev?-1:1))%this._items.length;return-1===s?this._items[this._items.length-1]:this._items[s]},l.prototype._triggerslideevent=function(e,n){var i=this._getitemindex(e),o=this._getitemindex(t(this._element).find(p.active_item)[0]),r=t.event(d.slide,{relatedtarget:e,direction:n,from:o,to:i});return t(this._element).trigger(r),r},l.prototype._setactiveindicatorelement=function(e){if(this._indicatorselement){t(this._indicatorselement).find(p.active).removeclass(f.active);var n=this._indicatorselement.children[this._getitemindex(e)];n&&t(n).addclass(f.active)}},l.prototype._slide=function(e,n){var i=this,o=t(this._element).find(p.active_item)[0],s=this._getitemindex(o),a=n||o&&this._getitembydirection(e,o),l=this._getitemindex(a),h=boolean(this._interval),c=void 0,_=void 0,g=void 0;if(e===u.next?(c=f.left,_=f.next,g=u.left):(c=f.right,_=f.prev,g=u.right),a&&t(a).hasclass(f.active))this._issliding=!1;else if(!this._triggerslideevent(a,g).isdefaultprevented()&&o&&a){this._issliding=!0,h&&this.pause(),this._setactiveindicatorelement(a);var m=t.event(d.slid,{relatedtarget:a,direction:g,from:s,to:l});r.supportstransitionend()&&t(this._element).hasclass(f.slide)?(t(a).addclass(_),r.reflow(a),t(o).addclass(c),t(a).addclass(c),t(o).one(r.transition_end,function(){t(a).removeclass(c+" "+_).addclass(f.active),t(o).removeclass(f.active+" "+_+" "+c),i._issliding=!1,settimeout(function(){return t(i._element).trigger(m)},0)}).emulatetransitionend(600)):(t(o).removeclass(f.active),t(a).addclass(f.active),this._issliding=!1,t(this._element).trigger(m)),h&&this.cycle()}},l._jqueryinterface=function(e){return this.each(function(){var n=t(this).data(s),o=t.extend({},h,t(this).data());"object"===(void 0===e?"undefined":i(e))&&t.extend(o,e);var r="string"==typeof e?e:o.slide;if(n||(n=new l(this,o),t(this).data(s,n)),"number"==typeof e)n.to(e);else if("string"==typeof r){if(void 0===n[r])throw new error('no method named "'+r+'"');n[r]()}else o.interval&&(n.pause(),n.cycle())})},l._dataapiclickhandler=function(e){var n=r.getselectorfromelement(this);if(n){var i=t(n)[0];if(i&&t(i).hasclass(f.carousel)){var o=t.extend({},t(i).data(),t(this).data()),a=this.getattribute("data-slide-to");a&&(o.interval=!1),l._jqueryinterface.call(t(i),o),a&&t(i).data(s).to(a),e.preventdefault()}}},o(l,null,[{key:"version",get:function(){return"4.0.0-beta"}},{key:"default",get:function(){return h}}]),l}();t(document).on(d.click_data_api,p.data_slide,_._dataapiclickhandler),t(window).on(d.load_data_api,function(){t(p.data_ride).each(function(){var e=t(this);_._jqueryinterface.call(e,e.data())})}),t.fn[e]=_._jqueryinterface,t.fn[e].constructor=_,t.fn[e].noconflict=function(){return t.fn[e]=l,_._jqueryinterface}}(jquery),function(t){var e="collapse",s="bs.collapse",a=t.fn[e],l={toggle:!0,parent:""},h={toggle:"boolean",parent:"string"},c={show:"show.bs.collapse",shown:"shown.bs.collapse",hide:"hide.bs.collapse",hidden:"hidden.bs.collapse",click_data_api:"click.bs.collapse.data-api"},u={show:"show",collapse:"collapse",collapsing:"collapsing",collapsed:"collapsed"},d={width:"width",height:"height"},f={actives:".show, .collapsing",data_toggle:'[data-toggle="collapse"]'},p=function(){function a(e,i){n(this,a),this._istransitioning=!1,this._element=e,this._config=this._getconfig(i),this._triggerarray=t.makearray(t('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'));for(var o=t(f.data_toggle),s=0;s0&&this._triggerarray.push(l)}this._parent=this._config.parent?this._getparent():null,this._config.parent||this._addariaandcollapsedclass(this._element,this._triggerarray),this._config.toggle&&this.toggle()}return a.prototype.toggle=function(){t(this._element).hasclass(u.show)?this.hide():this.show()},a.prototype.show=function(){var e=this;if(!this._istransitioning&&!t(this._element).hasclass(u.show)){var n=void 0,i=void 0;if(this._parent&&((n=t.makearray(t(this._parent).children().children(f.actives))).length||(n=null)),!(n&&(i=t(n).data(s))&&i._istransitioning)){var o=t.event(c.show);if(t(this._element).trigger(o),!o.isdefaultprevented()){n&&(a._jqueryinterface.call(t(n),"hide"),i||t(n).data(s,null));var l=this._getdimension();t(this._element).removeclass(u.collapse).addclass(u.collapsing),this._element.style[l]=0,this._triggerarray.length&&t(this._triggerarray).removeclass(u.collapsed).attr("aria-expanded",!0),this.settransitioning(!0);var h=function(){t(e._element).removeclass(u.collapsing).addclass(u.collapse).addclass(u.show),e._element.style[l]="",e.settransitioning(!1),t(e._element).trigger(c.shown)};if(r.supportstransitionend()){var d="scroll"+(l[0].touppercase()+l.slice(1));t(this._element).one(r.transition_end,h).emulatetransitionend(600),this._element.style[l]=this._element[d]+"px"}else h()}}}},a.prototype.hide=function(){var e=this;if(!this._istransitioning&&t(this._element).hasclass(u.show)){var n=t.event(c.hide);if(t(this._element).trigger(n),!n.isdefaultprevented()){var i=this._getdimension();if(this._element.style[i]=this._element.getboundingclientrect()[i]+"px",r.reflow(this._element),t(this._element).addclass(u.collapsing).removeclass(u.collapse).removeclass(u.show),this._triggerarray.length)for(var o=0;o0},l.prototype._getpopperconfig=function(){var t={placement:this._getplacement(),modifiers:{offset:{offset:this._config.offset},flip:{enabled:this._config.flip}}};return this._innavbar&&(t.modifiers.applystyle={enabled:!this._innavbar}),t},l._jqueryinterface=function(e){return this.each(function(){var n=t(this).data(s),o="object"===(void 0===e?"undefined":i(e))?e:null;if(n||(n=new l(this,o),t(this).data(s,n)),"string"==typeof e){if(void 0===n[e])throw new error('no method named "'+e+'"');n[e]()}})},l._clearmenus=function(e){if(!e||3!==e.which&&("keyup"!==e.type||9===e.which))for(var n=t.makearray(t(d.data_toggle)),i=0;i0&&r--,40===e.which&&rdocument.documentelement.clientheight;!this._isbodyoverflowing&&t&&(this._element.style.paddingleft=this._scrollbarwidth+"px"),this._isbodyoverflowing&&!t&&(this._element.style.paddingright=this._scrollbarwidth+"px")},a.prototype._resetadjustments=function(){this._element.style.paddingleft="",this._element.style.paddingright=""},a.prototype._checkscrollbar=function(){this._isbodyoverflowing=document.body.clientwidth=n){var i=this._targets[this._targets.length-1];this._activetarget!==i&&this._activate(i)}else{if(this._activetarget&&t0)return this._activetarget=null,void this._clear();for(var o=this._offsets.length;o--;)this._activetarget!==this._targets[o]&&t>=this._offsets[o]&&(void 0===this._offsets[o+1]||t .dropdown-menu .active"},l=function(){function e(t){n(this,e),this._element=t}return e.prototype.show=function(){var e=this;if(!(this._element.parentnode&&this._element.parentnode.nodetype===node.element_node&&t(this._element).hasclass(s.active)||t(this._element).hasclass(s.disabled))){var n=void 0,o=void 0,l=t(this._element).closest(a.nav_list_group)[0],h=r.getselectorfromelement(this._element);l&&(o=t.makearray(t(l).find(a.active)),o=o[o.length-1]);var c=t.event(i.hide,{relatedtarget:this._element}),u=t.event(i.show,{relatedtarget:o});if(o&&t(o).trigger(c),t(this._element).trigger(u),!u.isdefaultprevented()&&!c.isdefaultprevented()){h&&(n=t(h)[0]),this._activate(this._element,l);var d=function(){var n=t.event(i.hidden,{relatedtarget:e._element}),r=t.event(i.shown,{relatedtarget:o});t(o).trigger(n),t(e._element).trigger(r)};n?this._activate(n,n.parentnode,d):d()}}},e.prototype.dispose=function(){t.removedata(this._element,"bs.tab"),this._element=null},e.prototype._activate=function(e,n,i){var o=this,l=t(n).find(a.active)[0],h=i&&r.supportstransitionend()&&l&&t(l).hasclass(s.fade),c=function(){return o._transitioncomplete(e,l,h,i)};l&&h?t(l).one(r.transition_end,c).emulatetransitionend(150):c(),l&&t(l).removeclass(s.show)},e.prototype._transitioncomplete=function(e,n,i,o){if(n){t(n).removeclass(s.active);var l=t(n.parentnode).find(a.dropdown_active_child)[0];l&&t(l).removeclass(s.active),n.setattribute("aria-expanded",!1)}if(t(e).addclass(s.active),e.setattribute("aria-expanded",!0),i?(r.reflow(e),t(e).addclass(s.show)):t(e).removeclass(s.fade),e.parentnode&&t(e.parentnode).hasclass(s.dropdown_menu)){var h=t(e).closest(a.dropdown)[0];h&&t(h).find(a.dropdown_toggle).addclass(s.active),e.setattribute("aria-expanded",!0)}o&&o()},e._jqueryinterface=function(n){return this.each(function(){var i=t(this),o=i.data("bs.tab");if(o||(o=new e(this),i.data("bs.tab",o)),"string"==typeof n){if(void 0===o[n])throw new error('no method named "'+n+'"');o[n]()}})},o(e,null,[{key:"version",get:function(){return"4.0.0-beta"}}]),e}();t(document).on(i.click_data_api,a.data_toggle,function(e){e.preventdefault(),l._jqueryinterface.call(t(this),"show")}),t.fn.tab=l._jqueryinterface,t.fn.tab.constructor=l,t.fn.tab.noconflict=function(){return t.fn.tab=e,l._jqueryinterface}}(jquery),function(t){if("undefined"==typeof popper)throw new error("bootstrap tooltips require popper.js (https://popper.js.org)");var e="tooltip",s=".bs.tooltip",a=t.fn[e],l=new regexp("(^|\\s)bs-tooltip\\s+","g"),h={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackplacement:"(string|array)"},c={auto:"auto",top:"top",right:"right",bottom:"bottom",left:"left"},u={animation:!0,template:'',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackplacement:"flip"},d={show:"show",out:"out"},f={hide:"hide"+s,hidden:"hidden"+s,show:"show"+s,shown:"shown"+s,inserted:"inserted"+s,click:"click"+s,focusin:"focusin"+s,focusout:"focusout"+s,mouseenter:"mouseenter"+s,mouseleave:"mouseleave"+s},p={fade:"fade",show:"show"},_={tooltip:".tooltip",tooltip_inner:".tooltip-inner",arrow:".arrow"},g={hover:"hover",focus:"focus",click:"click",manual:"manual"},m=function(){function a(t,e){n(this,a),this._isenabled=!0,this._timeout=0,this._hoverstate="",this._activetrigger={},this._popper=null,this.element=t,this.config=this._getconfig(e),this.tip=null,this._setlisteners()}return a.prototype.enable=function(){this._isenabled=!0},a.prototype.disable=function(){this._isenabled=!1},a.prototype.toggleenabled=function(){this._isenabled=!this._isenabled},a.prototype.toggle=function(e){if(e){var n=this.constructor.data_key,i=t(e.currenttarget).data(n);i||(i=new this.constructor(e.currenttarget,this._getdelegateconfig()),t(e.currenttarget).data(n,i)),i._activetrigger.click=!i._activetrigger.click,i._iswithactivetrigger()?i._enter(null,i):i._leave(null,i)}else{if(t(this.gettipelement()).hasclass(p.show))return void this._leave(null,this);this._enter(null,this)}},a.prototype.dispose=function(){cleartimeout(this._timeout),t.removedata(this.element,this.constructor.data_key),t(this.element).off(this.constructor.event_key),t(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&t(this.tip).remove(),this._isenabled=null,this._timeout=null,this._hoverstate=null,this._activetrigger=null,null!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},a.prototype.show=function(){var e=this;if("none"===t(this.element).css("display"))throw new error("please use show on visible elements");var n=t.event(this.constructor.event.show);if(this.iswithcontent()&&this._isenabled){t(this.element).trigger(n);var i=t.contains(this.element.ownerdocument.documentelement,this.element);if(n.isdefaultprevented()||!i)return;var o=this.gettipelement(),s=r.getuid(this.constructor.name);o.setattribute("id",s),this.element.setattribute("aria-describedby",s),this.setcontent(),this.config.animation&&t(o).addclass(p.fade);var l="function"==typeof this.config.placement?this.config.placement.call(this,o,this.element):this.config.placement,h=this._getattachment(l);this.addattachmentclass(h);var c=!1===this.config.container?document.body:t(this.config.container);t(o).data(this.constructor.data_key,this),t.contains(this.element.ownerdocument.documentelement,this.tip)||t(o).appendto(c),t(this.element).trigger(this.constructor.event.inserted),this._popper=new popper(this.element,o,{placement:h,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackplacement},arrow:{element:_.arrow}},oncreate:function(t){t.originalplacement!==t.placement&&e._handlepopperplacementchange(t)},onupdate:function(t){e._handlepopperplacementchange(t)}}),t(o).addclass(p.show),"ontouchstart"in document.documentelement&&t("body").children().on("mouseover",null,t.noop);var u=function(){e.config.animation&&e._fixtransition();var n=e._hoverstate;e._hoverstate=null,t(e.element).trigger(e.constructor.event.shown),n===d.out&&e._leave(null,e)};r.supportstransitionend()&&t(this.tip).hasclass(p.fade)?t(this.tip).one(r.transition_end,u).emulatetransitionend(a._transition_duration):u()}},a.prototype.hide=function(e){var n=this,i=this.gettipelement(),o=t.event(this.constructor.event.hide),s=function(){n._hoverstate!==d.show&&i.parentnode&&i.parentnode.removechild(i),n._cleantipclass(),n.element.removeattribute("aria-describedby"),t(n.element).trigger(n.constructor.event.hidden),null!==n._popper&&n._popper.destroy(),e&&e()};t(this.element).trigger(o),o.isdefaultprevented()||(t(i).removeclass(p.show),"ontouchstart"in document.documentelement&&t("body").children().off("mouseover",null,t.noop),this._activetrigger[g.click]=!1,this._activetrigger[g.focus]=!1,this._activetrigger[g.hover]=!1,r.supportstransitionend()&&t(this.tip).hasclass(p.fade)?t(i).one(r.transition_end,s).emulatetransitionend(150):s(),this._hoverstate="")},a.prototype.update=function(){null!==this._popper&&this._popper.scheduleupdate()},a.prototype.iswithcontent=function(){return boolean(this.gettitle())},a.prototype.addattachmentclass=function(e){t(this.gettipelement()).addclass("bs-tooltip-"+e)},a.prototype.gettipelement=function(){return this.tip=this.tip||t(this.config.template)[0]},a.prototype.setcontent=function(){var e=t(this.gettipelement());this.setelementcontent(e.find(_.tooltip_inner),this.gettitle()),e.removeclass(p.fade+" "+p.show)},a.prototype.setelementcontent=function(e,n){var o=this.config.html;"object"===(void 0===n?"undefined":i(n))&&(n.nodetype||n.jquery)?o?t(n).parent().is(e)||e.empty().append(n):e.text(t(n).text()):e[o?"html":"text"](n)},a.prototype.gettitle=function(){var t=this.element.getattribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},a.prototype._getattachment=function(t){return c[t.touppercase()]},a.prototype._setlisteners=function(){var e=this;this.config.trigger.split(" ").foreach(function(n){if("click"===n)t(e.element).on(e.constructor.event.click,e.config.selector,function(t){return e.toggle(t)});else if(n!==g.manual){var i=n===g.hover?e.constructor.event.mouseenter:e.constructor.event.focusin,o=n===g.hover?e.constructor.event.mouseleave:e.constructor.event.focusout;t(e.element).on(i,e.config.selector,function(t){return e._enter(t)}).on(o,e.config.selector,function(t){return e._leave(t)})}t(e.element).closest(".modal").on("hide.bs.modal",function(){return e.hide()})}),this.config.selector?this.config=t.extend({},this.config,{trigger:"manual",selector:""}):this._fixtitle()},a.prototype._fixtitle=function(){var t=i(this.element.getattribute("data-original-title"));(this.element.getattribute("title")||"string"!==t)&&(this.element.setattribute("data-original-title",this.element.getattribute("title")||""),this.element.setattribute("title",""))},a.prototype._enter=function(e,n){var i=this.constructor.data_key;(n=n||t(e.currenttarget).data(i))||(n=new this.constructor(e.currenttarget,this._getdelegateconfig()),t(e.currenttarget).data(i,n)),e&&(n._activetrigger["focusin"===e.type?g.focus:g.hover]=!0),t(n.gettipelement()).hasclass(p.show)||n._hoverstate===d.show?n._hoverstate=d.show:(cleartimeout(n._timeout),n._hoverstate=d.show,n.config.delay&&n.config.delay.show?n._timeout=settimeout(function(){n._hoverstate===d.show&&n.show()},n.config.delay.show):n.show())},a.prototype._leave=function(e,n){var i=this.constructor.data_key;(n=n||t(e.currenttarget).data(i))||(n=new this.constructor(e.currenttarget,this._getdelegateconfig()),t(e.currenttarget).data(i,n)),e&&(n._activetrigger["focusout"===e.type?g.focus:g.hover]=!1),n._iswithactivetrigger()||(cleartimeout(n._timeout),n._hoverstate=d.out,n.config.delay&&n.config.delay.hide?n._timeout=settimeout(function(){n._hoverstate===d.out&&n.hide()},n.config.delay.hide):n.hide())},a.prototype._iswithactivetrigger=function(){for(var t in this._activetrigger)if(this._activetrigger[t])return!0;return!1},a.prototype._getconfig=function(n){return(n=t.extend({},this.constructor.default,t(this.element).data(),n)).delay&&"number"==typeof n.delay&&(n.delay={show:n.delay,hide:n.delay}),n.title&&"number"==typeof n.title&&(n.title=n.title.tostring()),n.content&&"number"==typeof n.content&&(n.content=n.content.tostring()),r.typecheckconfig(e,n,this.constructor.defaulttype),n},a.prototype._getdelegateconfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},a.prototype._cleantipclass=function(){var e=t(this.gettipelement()),n=e.attr("class").match(l);null!==n&&n.length>0&&e.removeclass(n.join(""))},a.prototype._handlepopperplacementchange=function(t){this._cleantipclass(),this.addattachmentclass(this._getattachment(t.placement))},a.prototype._fixtransition=function(){var e=this.gettipelement(),n=this.config.animation;null===e.getattribute("x-placement")&&(t(e).removeclass(p.fade),this.config.animation=!1,this.hide(),this.show(),this.config.animation=n)},a._jqueryinterface=function(e){return this.each(function(){var n=t(this).data("bs.tooltip"),o="object"===(void 0===e?"undefined":i(e))&&e;if((n||!/dispose|hide/.test(e))&&(n||(n=new a(this,o),t(this).data("bs.tooltip",n)),"string"==typeof e)){if(void 0===n[e])throw new error('no method named "'+e+'"');n[e]()}})},o(a,null,[{key:"version",get:function(){return"4.0.0-beta"}},{key:"default",get:function(){return u}},{key:"name",get:function(){return e}},{key:"data_key",get:function(){return"bs.tooltip"}},{key:"event",get:function(){return f}},{key:"event_key",get:function(){return s}},{key:"defaulttype",get:function(){return h}}]),a}();return t.fn[e]=m._jqueryinterface,t.fn[e].constructor=m,t.fn[e].noconflict=function(){return t.fn[e]=a,m._jqueryinterface},m}(jquery));!function(r){var a="popover",l=".bs.popover",h=r.fn[a],c=new regexp("(^|\\s)bs-popover\\s+","g"),u=r.extend({},s.default,{placement:"right",trigger:"click",content:"",template:''}),d=r.extend({},s.defaulttype,{content:"(string|element|function)"}),f={fade:"fade",show:"show"},p={title:".popover-header",content:".popover-body"},_={hide:"hide"+l,hidden:"hidden"+l,show:"show"+l,shown:"shown"+l,inserted:"inserted"+l,click:"click"+l,focusin:"focusin"+l,focusout:"focusout"+l,mouseenter:"mouseenter"+l,mouseleave:"mouseleave"+l},g=function(s){function h(){return n(this,h),t(this,s.apply(this,arguments))}return e(h,s),h.prototype.iswithcontent=function(){return this.gettitle()||this._getcontent()},h.prototype.addattachmentclass=function(t){r(this.gettipelement()).addclass("bs-popover-"+t)},h.prototype.gettipelement=function(){return this.tip=this.tip||r(this.config.template)[0]},h.prototype.setcontent=function(){var t=r(this.gettipelement());this.setelementcontent(t.find(p.title),this.gettitle()),this.setelementcontent(t.find(p.content),this._getcontent()),t.removeclass(f.fade+" "+f.show)},h.prototype._getcontent=function(){return this.element.getattribute("data-content")||("function"==typeof this.config.content?this.config.content.call(this.element):this.config.content)},h.prototype._cleantipclass=function(){var t=r(this.gettipelement()),e=t.attr("class").match(c);null!==e&&e.length>0&&t.removeclass(e.join(""))},h._jqueryinterface=function(t){return this.each(function(){var e=r(this).data("bs.popover"),n="object"===(void 0===t?"undefined":i(t))?t:null;if((e||!/destroy|hide/.test(t))&&(e||(e=new h(this,n),r(this).data("bs.popover",e)),"string"==typeof t)){if(void 0===e[t])throw new error('no method named "'+t+'"');e[t]()}})},o(h,null,[{key:"version",get:function(){return"4.0.0-beta"}},{key:"default",get:function(){return u}},{key:"name",get:function(){return a}},{key:"data_key",get:function(){return"bs.popover"}},{key:"event",get:function(){return _}},{key:"event_key",get:function(){return l}},{key:"defaulttype",get:function(){return d}}]),h}(s);r.fn[a]=g._jqueryinterface,r.fn[a].constructor=g,r.fn[a].noconflict=function(){return r.fn[a]=h,g._jqueryinterface}}(jquery)}();