if(function(t,e){"function"==typeofdefine&&define.amd?define(e):"object"==typeofexports?module.exports=e(require,exports,module):t.Tether=e()}(this,function(t,e,i){"use strict";functionn(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")}functiono(t){vare=t.getBoundingClientRect(),i={};for(varnine)i[n]=e[n];if(t.ownerDocument!==document){varr=t.ownerDocument.defaultView.frameElement;if(r){vars=o(r);i.top+=s.top,i.bottom+=s.top,i.left+=s.left,i.right+=s.left}}returni}functionr(t){vare=getComputedStyle(t)||{},i=e.position,n=[];if("fixed"===i)return[t];for(varo=t;(o=o.parentNode)&&o&&1===o.nodeType;){varr=void0;try{r=getComputedStyle(o)}catch(t){}if(void0===r||null===r)returnn.push(o),n;vars=r,a=s.overflow,l=s.overflowX;/(auto|scroll)/.test(a+s.overflowY+l)&&("absolute"!==i||["relative","absolute","fixed"].indexOf(r.position)>=0)&&n.push(o)}returnn.push(t.ownerDocument.body),t.ownerDocument!==document&&n.push(t.ownerDocument.defaultView),n}functions(){O&&document.body.removeChild(O),O=null}functiona(t){vare=void0;t===document?(e=document,t=document.documentElement):e=t.ownerDocument;vari=e.documentElement,n=o(t),r=w();returnn.top-=r.top,n.left-=r.left,void0===n.width&&(n.width=document.body.scrollWidth-n.left-n.right),void0===n.height&&(n.height=document.body.scrollHeight-n.top-n.bottom),n.top=n.top-i.clientTop,n.left=n.left-i.clientLeft,n.right=e.body.clientWidth-n.width-n.left,n.bottom=e.body.clientHeight-n.height-n.top,n}functionl(t){returnt.offsetParent||document.documentElement}functionh(){if(D)returnD;vart=document.createElement("div");t.style.width="100%",t.style.height="200px";vare=document.createElement("div");c(e.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),e.appendChild(t),document.body.appendChild(e);vari=t.offsetWidth;e.style.overflow="scroll";varn=t.offsetWidth;i===n&&(n=e.clientWidth),document.body.removeChild(e);varo=i-n;returnD={width:o,height:o}}functionc(){vart=arguments.length<=0||void0===arguments[0]?{}:arguments[0],e=[];returnArray.prototype.push.apply(e,arguments),e.slice(1).forEach(function(e){if(e)for(variine)({}).hasOwnProperty.call(e,i)&&(t[i]=e[i])}),t}functionf(t,e){if(void0!==t.classList)e.split(" ").forEach(function(e){e.trim()&&t.classList.remove(e)});else{vari=newRegExp("(^| )"+e.split(" ").join("|")+"( |$)","gi"),n=p(t).replace(i," ");g(t,n)}}functiond(t,e){if(void0!==t.classList)e.split(" ").forEach(function(e){e.trim()&&t.classList.add(e)});else{f(t,e);vari=p(t)+" "+e;g(t,i)}}functionu(t,e){if(void0!==t.classList)returnt.classList.contains(e);vari=p(t);returnnewRegExp("(^| )"+e+"( |$)","gi").test(i)}functionp(t){returnt.classNameinstanceoft.ownerDocument.defaultView.SVGAnimatedString?t.className.baseVal:t.className}functiong(t,e){t.setAttribute("class",e)}functionm(t,e,i){i.forEach(function(i){-1===e.indexOf(i)&&u(t,i)&&f(t,i)}),e.forEach(function(e){u(t,e)||d(t,e)})}functionn(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")}function_(t,e){if("function"!=typeofe&&null!==e)thrownewTypeError("Super expression must either be null or a function, not "+typeofe);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)}functionv(t,e){vari=arguments.length<=2||void0===arguments[2]?1:arguments[2];returnt+i>=e&&e>=t-i}functionE(){return"undefined"!=typeofperformance&&void0!==performance.now?performance.now():+newDate}functiony(){for(vart={top:0,left:0},e=arguments.length,i=Array(e),n=0;n<e;n++)i[n]=arguments[n];returni.forEach(function(e){vari=e.top,n=e.left;"string"==typeofi&&(i=parseFloat(i,10)),"string"==typeofn&&(n=parseFloat(n,10)),t.top+=i,t.left+=n}),t}functionT(t,e){return"string"==typeoft.left&&-1!==t.left.indexOf("%")&&(t.left=parseFloat(t.left,10)/100*e.width),"string"==typeoft.top&&-1!==t.top.indexOf("%")&&(t.top=parseFloat(t.top,10)/1
if(this._isSliding)thrownewError("Carousel is sliding");this._slide(f.PREVIOUS)},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){vari=this;this._activeElement=t(this._element).find(p.ACTIVE_ITEM)[0];varn=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0)){if(this._isSliding)returnvoidt(this._element).one(d.SLID,function(){returni.to(e)});if(n===e)returnthis.pause(),voidthis.cycle();varo=e>n?f.NEXT:f.PREVIOUS;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(i){returni=t.extend({},h,i),r.typeCheckConfig(e,i,c),i},l.prototype._addEventListeners=function(){vare=this;this._config.keyboard&&t(this._element).on(d.KEYDOWN,function(t){returne._keydown(t)}),"hover"!==this._config.pause||"ontouchstart"indocument.documentElement||t(this._element).on(d.MOUSEENTER,function(t){returne.pause(t)}).on(d.MOUSELEAVE,function(t){returne.cycle(t)})},l.prototype._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case37:t.preventDefault(),this.prev();break;case39:t.preventDefault(),this.next();break;default:return}},l.prototype._getItemIndex=function(e){returnthis._items=t.makeArray(t(e).parent().find(p.ITEM)),this._items.indexOf(e)},l.prototype._getItemByDirection=function(t,e){vari=t===f.NEXT,n=t===f.PREVIOUS,o=this._getItemIndex(e),r=this._items.length-1;if((n&&0===o||i&&o===r)&&!this._config.wrap)returne;vars=t===f.PREVIOUS?-1:1,a=(o+s)%this._items.length;return-1===a?this._items[this._items.length-1]:this._items[a]},l.prototype._triggerSlideEvent=function(e,i){varn=t.Event(d.SLIDE,{relatedTarget:e,direction:i});returnt(this._element).trigger(n),n},l.prototype._setActiveIndicatorElement=function(e){if(this._indicatorsElement){t(this._indicatorsElement).find(p.ACTIVE).removeClass(u.ACTIVE);vari=this._indicatorsElement.children[this._getItemIndex(e)];i&&t(i).addClass(u.ACTIVE)}},l.prototype._slide=function(e,i){varn=this,o=t(this._element).find(p.ACTIVE_ITEM)[0],s=i||o&&this._getItemByDirection(e,o),a=Boolean(this._interval),l=void0,h=void0,c=void0;if(e===f.NEXT?(l=u.LEFT,h=u.NEXT,c=f.LEFT):(l=u.RIGHT,h=u.PREV,c=f.RIGHT),s&&t(s).hasClass(u.ACTIVE))returnvoid(this._isSliding=!1);if(!this._triggerSlideEvent(s,c).isDefaultPrevented()&&o&&s){this._isSliding=!0,a&&this.pause(),this._setActiveIndicatorElement(s);varg=t.Event(d.SLID,{relatedTarget:s,direction:c});r.supportsTransitionEnd()&&t(this._element).hasClass(u.SLIDE)?(t(s).addClass(h),r.reflow(s),t(o).addClass(l),t(s).addClass(l),t(o).one(r.TRANSITION_END,function(){t(s).removeClass(l+" "+h).addClass(u.ACTIVE),t(o).removeClass(u.ACTIVE+" "+h+" "+l),n._isSliding=!1,setTimeout(function(){returnt(n._element).trigger(g)},0)}).emulateTransitionEnd(600)):(t(o).removeClass(u.ACTIVE),t(s).addClass(u.ACTIVE),this._isSliding=!1,t(this._element).trigger(g)),a&&this.cycle()}},l._jQueryInterface=function(e){returnthis.each(function(){vari=t(this).data(s),o=t.extend({},h,t(this).data());"object"===(void0===e?"undefined":n(e))&&t.extend(o,e);varr="string"==typeofe?e:o.slide;if(i||(i=newl(this,o),t(this).data(s,i)),"number"==typeofe)i.to(e);elseif("string"==typeofr){if(void0===i[r])thrownewError('No method named "'+r+'"');i[r]()}elseo.interval&&(i.pause(),i.cycle())})},l._dataApiClickHandler=function(e){vari=r.getSelectorFromElement(this);if(i){varn=t(i)[0];if(n&&t(
;if(this._isTransitioning)thrownewError("Tooltip is transitioning");vars=function(){i._hoverState!==f.SHOW&&n.parentNode&&n.parentNode.removeChild(n),i.element.removeAttribute("aria-describedby"),t(i.element).trigger(i.constructor.Event.HIDDEN),i._isTransitioning=!1,i.cleanupTether(),e&&e()};t(this.element).trigger(o),o.isDefaultPrevented()||(t(n).removeClass(u.SHOW),this._activeTrigger[m.CLICK]=!1,this._activeTrigger[m.FOCUS]=!1,this._activeTrigger[m.HOVER]=!1,r.supportsTransitionEnd()&&t(this.tip).hasClass(u.FADE)?(this._isTransitioning=!0,t(n).one(r.TRANSITION_END,s).emulateTransitionEnd(150)):s(),this._hoverState="")},a.prototype.isWithContent=function(){returnBoolean(this.getTitle())},a.prototype.getTipElement=function(){returnthis.tip=this.tip||t(this.config.template)[0]},a.prototype.setContent=function(){vare=t(this.getTipElement());this.setElementContent(e.find(p.TOOLTIP_INNER),this.getTitle()),e.removeClass(u.FADE+" "+u.SHOW),this.cleanupTether()},a.prototype.setElementContent=function(e,i){varo=this.config.html;"object"===(void0===i?"undefined":n(i))&&(i.nodeType||i.jquery)?o?t(i).parent().is(e)||e.empty().append(i):e.text(t(i).text()):e[o?"html":"text"](i)},a.prototype.getTitle=function(){vart=this.element.getAttribute("data-original-title");returnt||(t="function"==typeofthis.config.title?this.config.title.call(this.element):this.config.title),t},a.prototype.cleanupTether=function(){this._tether&&this._tether.destroy()},a.prototype._getAttachment=function(t){returnc[t.toUpperCase()]},a.prototype._setListeners=function(){vare=this;this.config.trigger.split(" ").forEach(function(i){if("click"===i)t(e.element).on(e.constructor.Event.CLICK,e.config.selector,function(t){returne.toggle(t)});elseif(i!==m.MANUAL){varn=i===m.HOVER?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,o=i===m.HOVER?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;t(e.element).on(n,e.config.selector,function(t){returne._enter(t)}).on(o,e.config.selector,function(t){returne._leave(t)})}t(e.element).closest(".modal").on("hide.bs.modal",function(){returne.hide()})}),this.config.selector?this.config=t.extend({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},a.prototype._fixTitle=function(){vart=n(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,i){varn=this.constructor.DATA_KEY;returni=i||t(e.currentTarget).data(n),i||(i=newthis.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(n,i)),e&&(i._activeTrigger["focusin"===e.type?m.FOCUS:m.HOVER]=!0),t(i.getTipElement()).hasClass(u.SHOW)||i._hoverState===f.SHOW?void(i._hoverState=f.SHOW):(clearTimeout(i._timeout),i._hoverState=f.SHOW,i.config.delay&&i.config.delay.show?void(i._timeout=setTimeout(function(){i._hoverState===f.SHOW&&i.show()},i.config.delay.show)):voidi.show())},a.prototype._leave=function(e,i){varn=this.constructor.DATA_KEY;if(i=i||t(e.currentTarget).data(n),i||(i=newthis.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(n,i)),e&&(i._activeTrigger["focusout"===e.type?m.FOCUS:m.HOVER]=!1),!i._isWithActiveTrigger()){if(clearTimeout(i._timeout),i._hoverState=f.OUT,!i.config.delay||!i.config.delay.hide)returnvoidi.hide();i._timeout=setTimeout(function(){i._hoverState===f.OUT&&i.hide()},i.config.delay.hide)}},a.prototype._isWithActiveTrigger=function(){for(vartinthis._activeTrigger)if(this._activeTrigger[t])return!0;return!1},a.prototype._getConfig=function(i){returni=t.extend({},this.constructor.Default,t(this.element).data(),i),i.delay&&"number"==typeofi.delay&&(i.delay={show:i.delay,hide:i.delay}),r.typeCheckConfig(e,i,this.constructor.DefaultType),i},a.prototype._getDelegateConfig=function(){vart={};if(this.config)for(vareinthis.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);returnt},a._jQueryInterface=function(e){returnth