!function(t,i){"function"==typeof define&&define.amd?define(["jquery"],function(t){return i(t)}):"object"==typeof exports?module.exports=i(require("jquery")):i(jQuery)}(this,function($){function t(t){this.$container,this.constraints=null,this.__$tooltip,this.__init(t)}function i(t,i){var o=!0;return $.each(t,function(e,n){if(void 0===i[e]||t[e]!==i[e])return o=!1,!1}),o}function o(t){var i=t.attr("id"),o=i?r.window.document.getElementById(i):null;return o?o===t[0]:$.contains(r.window.document.body,t[0])}function e(){if(!s)return!1;var t=s.document.body||s.document.documentElement,i=t.style,o="transition",e=["Moz","Webkit","Khtml","O","ms"];if("string"==typeof i[o])return!0;o=o.charAt(0).toUpperCase()+o.substr(1);for(var n=0;n<e.length;n++)if("string"==typeof i[e[n]+o])return!0;return!1}var n={animation:"fade",animationDuration:350,content:null,contentAsHTML:!1,contentCloning:!1,debug:!0,delay:300,delayTouch:[300,500],functionInit:null,functionBefore:null,functionReady:null,functionAfter:null,functionFormat:null,IEmin:6,interactive:!1,multiple:!1,parent:null,plugins:["sideTip"],repositionOnScroll:!1,restoration:"none",selfDestruction:!0,theme:[],timer:0,trackerInterval:500,trackOrigin:!1,trackTooltip:!1,trigger:"hover",triggerClose:{click:!1,mouseleave:!1,originClick:!1,scroll:!1,tap:!1,touchleave:!1},triggerOpen:{click:!1,mouseenter:!1,tap:!1,touchstart:!1},updateAnimation:"rotate",zIndex:9999999},s="undefined"!=typeof window?window:null,r={hasTouchCapability:!(!s||!("ontouchstart"in s||s.DocumentTouch&&s.document instanceof s.DocumentTouch||s.navigator.maxTouchPoints)),hasTransitions:e(),IE:!1,semVer:"4.2.5",window:s},_=function(){this.__$emitterPrivate=$({}),this.__$emitterPublic=$({}),this.__instancesLatestArr=[],this.__plugins={},this._env=r};_.prototype={__bridge:function(t,i,o){if(!i[o]){var e=function(){};e.prototype=t;var s=new e;s.__init&&s.__init(i),$.each(t,function(t,e){0!=t.indexOf("__")&&(i[t]?n.debug&&console.log("The "+t+" method of the "+o+" plugin conflicts with another plugin or native methods"):(i[t]=function(){return s[t].apply(s,Array.prototype.slice.apply(arguments))},i[t].bridged=s))}),i[o]=s}return this},__setWindow:function(t){return r.window=t,this},_getRuler:function(i){return new t(i)},_off:function(){return this.__$emitterPrivate.off.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_on:function(){return this.__$emitterPrivate.on.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_one:function(){return this.__$emitterPrivate.one.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_plugin:function(t){var i=this;if("string"==typeof t){var o=t,e=null;return o.indexOf(".")>0?e=i.__plugins[o]:$.each(i.__plugins,function(t,i){if(i.name.substring(i.name.length-o.length-1)=="."+o)return e=i,!1}),e}if(t.name.indexOf(".")<0)throw new Error("Plugins must be namespaced");return i.__plugins[t.name]=t,t.core&&i.__bridge(t.core,i,t.name),this},_trigger:function(){var t=Array.prototype.slice.apply(arguments);return"string"==typeof t[0]&&(t[0]={type:t[0]}),this.__$emitterPrivate.trigger.apply(this.__$emitterPrivate,t),this.__$emitterPublic.trigger.apply(this.__$emitterPublic,t),this},instances:function(t){var i=[];return $(t||".tooltipstered").each(function(){var t=$(this),o=t.data("tooltipster-ns");o&&$.each(o,function(o,e){i.push(t.data(e))})}),i},instancesLatest:function(){return this.__instancesLatestArr},off:function(){return this.__$emitterPublic.off.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},on:function(){return this.__$emitterPublic.on.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},one:function(){return this.__$emitterPublic.one.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},origins:function(t){return $((t?t+" ":"")+".tooltipstered").toArray()},setDefaults:function(t){return $.extend(n,t),this},triggerHandler:function(){return this.__$emitterPublic.triggerHandler.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this}},$.tooltipster=new _,$.Tooltipster=function(t,i){this.__callbacks={close:[],open:[]},this.__closingTime,this.__Content,this.__contentBcr,this.__destroyed=!1,this.__$emitterPrivate=$({}),this.__$emitterPublic=$({}),this.__enabled=!0,this.__garbageCollector,this.__Geometry,this.__lastPosition,this.__namespace="tooltipster-"+Math.round(1e6*Math.random()),this.__options,this.__$originParents,this.__pointerIsOverOrigin=!1,this.__previousThemes=[],this.__state="closed",this.__timeouts={close:[],open:null},this.__touchEvents=[],this.__tracker=null,this._$origin,this._$tooltip,this.__init(t,i)},$.Tooltipster.prototype={__init:function(t,i){var o=this;if(o._$origin=$(t),o.__options=$.extend(!0,{},n,i),o.__optionsFormat(),!r.IE||r.IE>=o.__options.IEmin){var e=null;if(void 0===o._$origin.data("tooltipster-initialTitle")&&(e=o._$origin.attr("title"),void 0===e&&(e=null),o._$origin.data("tooltipster-initialTitle",e)),null!==o.__options.content)o.__contentSet(o.__options.content);else{var s=o._$origin.attr("data-tooltip-content"),_;s&&(_=$(s)),_&&_[0]?o.__contentSet(_.first()):o.__contentSet(e)}o._$origin.removeAttr("title").addClass("tooltipstered"),o.__prepareOrigin(),o.__prepareGC(),$.each(o.__options.plugins,function(t,i){o._plug(i)}),r.hasTouchCapability&&$(r.window.document.body).on("touchmove."+o.__namespace+"-triggerOpen",function(t){o._touchRecordEvent(t)}),o._on("created",function(){o.__prepareTooltip()})._on("repositioned",function(t){o.__lastPosition=t.position})}else o.__options.disabled=!0},__contentInsert:function(){var t=this,i=t._$tooltip.find(".tooltipster-content"),o=t.__Content,e=function(t){o=t};return t._trigger({type:"format",content:t.__Content,format:e}),t.__options.functionFormat&&(o=t.__options.functionFormat.call(t,t,{origin:t._$origin[0]},t.__Content)),"string"!=typeof o||t.__options.contentAsHTML?i.empty().append(o):i.text(o),t},__contentSet:function(t){return t instanceof $&&this.__options.contentCloning&&(t=t.clone(!0)),this.__Content=t,this._trigger({type:"updated",content:t}),this},__destroyError:function(){throw new Error("This tooltip has been destroyed and cannot execute your method call.")},__geometry:function(){var t=this,i=t._$origin,o=t._$origin.is("area");if(o){var e=t._$origin.parent().attr("name");i=$('img[usemap="#'+e+'"]')}var n=i[0].getBoundingClientRect(),s=$(r.window.document),_=$(r.window),a=i,l={available:{document:null,window:null},document:{size:{height:s.height(),width:s.width()}},window:{scroll:{left:r.window.scrollX||r.window.document.documentElement.scrollLeft,top:r.window.scrollY||r.window.document.documentElement.scrollTop},size:{height:_.height(),width:_.width()}},origin:{fixedLineage:!1,offset:{},size:{height:n.bottom-n.top,width:n.right-n.left},usemapImage:o?i[0]:null,windowOffset:{bottom:n.bottom,left:n.left,right:n.right,top:n.top}}},p=!1;if(o){var c=t._$origin.attr("shape"),h=t._$origin.attr("coords");if(h&&(h=h.split(","),$.map(h,function(t,i){h[i]=parseInt(t)})),"default"!=c)switch(c){case"circle":var d=h[0],u=h[1],g=h[2],f=u-g,m=d-g;l.origin.size.height=2*g,l.origin.size.width=l.origin.size.height,l.origin.windowOffset.left+=m,l.origin.windowOffset.top+=f;break;case"rect":var w=h[0],v=h[1],y=h[2],b=h[3];l.origin.size.height=b-v,l.origin.size.width=y-w,l.origin.windowOffset.left+=w,l.origin.windowOffset.top+=v;break;case"poly":for(var C=0,O=0,T=0,z=0,E="even",I=0;I<h.length;I++){var P=h[I];"even"==E?(P>T&&(T=P,0===I&&(C=T)),P<C&&(C=P),E="odd"):(P>z&&(z=P,1==I&&(O=z)),P<O&&(O=P),E="even")}l.origin.size.height=z-O,l.origin.size.width=T-C,l.origin.windowOffset.left+=C,l.origin.windowOffset.top+=O;break}}var k=function(t){l.origin.size.height=t.height,l.origin.windowOffset.left=t.left,l.origin.windowOffset.top=t.top,l.origin.size.width=t.width};for(t._trigger({type:"geometry",edit:k,geometry:{height:l.origin.size.height,left:l.origin.windowOffset.left,top:l.origin.windowOffset.top,width:l.origin.size.width}}),l.origin.windowOffset.right=l.origin.windowOffset.left+l.origin.size.width,l.origin.windowOffset.bottom=l.origin.windowOffset.top+l.origin.size.height,l.origin.offset.left=l.origin.windowOffset.left+l.window.scroll.left,l.origin.offset.top=l.origin.windowOffset.top+l.window.scroll.top,l.origin.offset.bottom=l.origin.offset.top+l.origin.size.height,l.origin.offset.right=l.origin.offset.left+l.origin.size.width,l.available.document={bottom:{height:l.document.size.height-l.origin.offset.bottom,width:l.document.size.width},left:{height:l.document.size.height,width:l.origin.offset.left},right:{height:l.document.size.height,width:l.document.size.width-l.origin.offset.right},top:{height:l.origin.offset.top,width:l.document.size.width}},l.available.window={bottom:{height:Math.max(l.window.size.height-Math.max(l.origin.windowOffset.bottom,0),0),width:l.window.size.width},left:{height:l.window.size.height,width:Math.max(l.origin.windowOffset.left,0)},right:{height:l.window.size.height,width:Math.max(l.window.size.width-Math.max(l.origin.windowOffset.right,0),0)},top:{height:Math.max(l.origin.windowOffset.top,0),width:l.window.size.width}};"html"!=a[0].tagName.toLowerCase();){if("fixed"==a.css("position")){l.origin.fixedLineage=!0;break}a=a.parent()}return l},__optionsFormat:function(){return"number"==typeof this.__options.animationDuration&&(this.__options.animationDuration=[this.__options.animationDuration,this.__options.animationDuration]),"number"==typeof this.__options.delay&&(this.__options.delay=[this.__options.delay,this.__options.delay]),"number"==typeof this.__options.delayTouch&&(this.__options.delayTouch=[this.__options.delayTouch,this.__options.delayTouch]),"string"==typeof this.__options.theme&&(this.__options.theme=[this.__options.theme]),null===this.__options.parent?this.__options.parent=$(r.window.document.body):"string"==typeof this.__options.parent&&(this.__options.parent=$(this.__options.parent)),"hover"==this.__options.trigger?(this.__options.triggerOpen={mouseenter:!0,touchstart:!0},this.__options.triggerClose={mouseleave:!0,originClick:!0,touchleave:!0}):"click"==this.__options.trigger&&(this.__options.triggerOpen={click:!0,tap:!0},this.__options.triggerClose={click:!0,tap:!0}),this._trigger("options"),this},__prepareGC:function(){var t=this;return t.__options.selfDestruction?t.__garbageCollector=setInterval(function(){var i=(new Date).getTime();t.__touchEvents=$.grep(t.__touchEvents,function(t,o){return i-t.time>6e4}),o(t._$origin)||t.close(function(){t.destroy()})},2e4):clearInterval(t.__garbageCollector),t},__prepareOrigin:function(){var t=this;if(t._$origin.off("."+t.__namespace+"-triggerOpen"),r.hasTouchCapability&&t._$origin.on("touchstart."+t.__namespace+"-triggerOpen touchend."+t.__namespace+"-triggerOpen touchcancel."+t.__namespace+"-triggerOpen",function(i){t._touchRecordEvent(i)}),t.__options.triggerOpen.click||t.__options.triggerOpen.tap&&r.hasTouchCapability){var i="";t.__options.triggerOpen.click&&(i+="click."+t.__namespace+"-triggerOpen "),t.__options.triggerOpen.tap&&r.hasTouchCapability&&(i+="touchend."+t.__namespace+"-triggerOpen"),t._$origin.on(i,function(i){t._touchIsMeaningfulEvent(i)&&t._open(i)})}if(t.__options.triggerOpen.mouseenter||t.__options.triggerOpen.touchstart&&r.hasTouchCapability){var i="";t.__options.triggerOpen.mouseenter&&(i+="mouseenter."+t.__namespace+"-triggerOpen "),t.__options.triggerOpen.touchstart&&r.hasTouchCapability&&(i+="touchstart."+t.__namespace+"-triggerOpen"),t._$origin.on(i,function(i){!t._touchIsTouchEvent(i)&&t._touchIsEmulatedEvent(i)||(t.__pointerIsOverOrigin=!0,t._openShortly(i))})}if(t.__options.triggerClose.mouseleave||t.__options.triggerClose.touchleave&&r.hasTouchCapability){var i="";t.__options.triggerClose.mouseleave&&(i+="mouseleave."+t.__namespace+"-triggerOpen "),t.__options.triggerClose.touchleave&&r.hasTouchCapability&&(i+="touchend."+t.__namespace+"-triggerOpen touchcancel."+t.__namespace+"-triggerOpen"),t._$origin.on(i,function(i){t._touchIsMeaningfulEvent(i)&&(t.__pointerIsOverOrigin=!1)})}return t},__prepareTooltip:function(){var t=this,i=t.__options.interactive?"auto":"";return t._$tooltip.attr("id",t.__namespace).css({"pointer-events":i,zIndex:t.__options.zIndex}),$.each(t.__previousThemes,function(i,o){t._$tooltip.removeClass(o)}),$.each(t.__options.theme,function(i,o){t._$tooltip.addClass(o)}),t.__previousThemes=$.merge([],t.__options.theme),t},__scrollHandler:function(t){var i=this;if(i.__options.triggerClose.scroll)i._close(t);else if(o(i._$origin)&&o(i._$tooltip)){var e=null;if(t.target===r.window.document)i.__Geometry.origin.fixedLineage||i.__options.repositionOnScroll&&i.reposition(t);else{e=i.__geometry();var n=!1;if("fixed"!=i._$origin.css("position")&&i.__$originParents.each(function(t,i){var o=$(i),s=o.css("overflow-x"),r=o.css("overflow-y");if("visible"!=s||"visible"!=r){var _=i.getBoundingClientRect();if("visible"!=s&&(e.origin.windowOffset.left<_.left||e.origin.windowOffset.right>_.right))return n=!0,!1;if("visible"!=r&&(e.origin.windowOffset.top<_.top||e.origin.windowOffset.bottom>_.bottom))return n=!0,!1}if("fixed"==o.css("position"))return!1}),n)i._$tooltip.css("visibility","hidden");else if(i._$tooltip.css("visibility","visible"),i.__options.repositionOnScroll)i.reposition(t);else{var s=e.origin.offset.left-i.__Geometry.origin.offset.left,_=e.origin.offset.top-i.__Geometry.origin.offset.top;i._$tooltip.css({left:i.__lastPosition.coord.left+s,top:i.__lastPosition.coord.top+_})}}i._trigger({type:"scroll",event:t,geo:e})}return i},__stateSet:function(t){return this.__state=t,this._trigger({type:"state",state:t}),this},__timeoutsClear:function(){return clearTimeout(this.__timeouts.open),this.__timeouts.open=null,$.each(this.__timeouts.close,function(t,i){clearTimeout(i)}),this.__timeouts.close=[],this},__trackerStart:function(){var t=this,e=t._$tooltip.find(".tooltipster-content");return t.__options.trackTooltip&&(t.__contentBcr=e[0].getBoundingClientRect()),t.__tracker=setInterval(function(){if(o(t._$origin)&&o(t._$tooltip)){if(t.__options.trackOrigin){var n=t.__geometry(),s=!1;i(n.origin.size,t.__Geometry.origin.size)&&(t.__Geometry.origin.fixedLineage?i(n.origin.windowOffset,t.__Geometry.origin.windowOffset)&&(s=!0):i(n.origin.offset,t.__Geometry.origin.offset)&&(s=!0)),s||(t.__options.triggerClose.mouseleave?t._close():t.reposition())}if(t.__options.trackTooltip){var r=e[0].getBoundingClientRect();r.height===t.__contentBcr.height&&r.width===t.__contentBcr.width||(t.reposition(),t.__contentBcr=r)}}else t._close()},t.__options.trackerInterval),t},_close:function(t,i,o){var e=this,n=!0;if(e._trigger({type:"close",event:t,stop:function(){n=!1}}),n||o){i&&e.__callbacks.close.push(i),e.__callbacks.open=[],e.__timeoutsClear();var s=function(){$.each(e.__callbacks.close,function(i,o){o.call(e,e,{event:t,origin:e._$origin[0]})}),e.__callbacks.close=[]};if("closed"!=e.__state){var _=!0,a=new Date,l=a.getTime(),p=l+e.__options.animationDuration[1];if("disappearing"==e.__state&&p>e.__closingTime&&e.__options.animationDuration[1]>0&&(_=!1),_){e.__closingTime=p,"disappearing"!=e.__state&&e.__stateSet("disappearing");var c=function(){clearInterval(e.__tracker),e._trigger({type:"closing",event:t}),e._$tooltip.off("."+e.__namespace+"-triggerClose").removeClass("tooltipster-dying"),$(r.window).off("."+e.__namespace+"-triggerClose"),e.__$originParents.each(function(t,i){$(i).off("scroll."+e.__namespace+"-triggerClose")}),e.__$originParents=null,$(r.window.document.body).off("."+e.__namespace+"-triggerClose"),e._$origin.off("."+e.__namespace+"-triggerClose"),e._off("dismissable"),e.__stateSet("closed"),e._trigger({type:"after",event:t}),e.__options.functionAfter&&e.__options.functionAfter.call(e,e,{event:t,origin:e._$origin[0]}),s()};r.hasTransitions?(e._$tooltip.css({"-moz-animation-duration":e.__options.animationDuration[1]+"ms","-ms-animation-duration":e.__options.animationDuration[1]+"ms","-o-animation-duration":e.__options.animationDuration[1]+"ms","-webkit-animation-duration":e.__options.animationDuration[1]+"ms","animation-duration":e.__options.animationDuration[1]+"ms","transition-duration":e.__options.animationDuration[1]+"ms"}),e._$tooltip.clearQueue().removeClass("tooltipster-show").addClass("tooltipster-dying"),e.__options.animationDuration[1]>0&&e._$tooltip.delay(e.__options.animationDuration[1]),e._$tooltip.queue(c)):e._$tooltip.stop().fadeOut(e.__options.animationDuration[1],c)}}else s()}return e},_off:function(){return this.__$emitterPrivate.off.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_on:function(){return this.__$emitterPrivate.on.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_one:function(){return this.__$emitterPrivate.one.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_open:function(t,i){var e=this;if(!e.__destroying&&o(e._$origin)&&e.__enabled){var n=!0;if("closed"==e.__state&&(e._trigger({type:"before",event:t,stop:function(){n=!1}}),n&&e.__options.functionBefore&&(n=e.__options.functionBefore.call(e,e,{event:t,origin:e._$origin[0]}))),!1!==n&&null!==e.__Content){i&&e.__callbacks.open.push(i),e.__callbacks.close=[],e.__timeoutsClear();var s,_=function(){"stable"!=e.__state&&e.__stateSet("stable"),$.each(e.__callbacks.open,function(t,i){i.call(e,e,{origin:e._$origin[0],tooltip:e._$tooltip[0]})}),e.__callbacks.open=[]};if("closed"!==e.__state)s=0,"disappearing"===e.__state?(e.__stateSet("appearing"),r.hasTransitions?(e._$tooltip.clearQueue().removeClass("tooltipster-dying").addClass("tooltipster-show"),e.__options.animationDuration[0]>0&&e._$tooltip.delay(e.__options.animationDuration[0]),e._$tooltip.queue(_)):e._$tooltip.stop().fadeIn(_)):"stable"==e.__state&&_();else{if(e.__stateSet("appearing"),s=e.__options.animationDuration[0],e.__contentInsert(),e.reposition(t,!0),r.hasTransitions?(e._$tooltip.addClass("tooltipster-"+e.__options.animation).addClass("tooltipster-initial").css({"-moz-animation-duration":e.__options.animationDuration[0]+"ms","-ms-animation-duration":e.__options.animationDuration[0]+"ms","-o-animation-duration":e.__options.animationDuration[0]+"ms","-webkit-animation-duration":e.__options.animationDuration[0]+"ms","animation-duration":e.__options.animationDuration[0]+"ms","transition-duration":e.__options.animationDuration[0]+"ms"}),setTimeout(function(){"closed"!=e.__state&&(e._$tooltip.addClass("tooltipster-show").removeClass("tooltipster-initial"),e.__options.animationDuration[0]>0&&e._$tooltip.delay(e.__options.animationDuration[0]),e._$tooltip.queue(_))},0)):e._$tooltip.css("display","none").fadeIn(e.__options.animationDuration[0],_),e.__trackerStart(),$(r.window).on("resize."+e.__namespace+"-triggerClose",function(t){var i=$(document.activeElement);(i.is("input")||i.is("textarea"))&&$.contains(e._$tooltip[0],i[0])||e.reposition(t)}).on("scroll."+e.__namespace+"-triggerClose",function(t){e.__scrollHandler(t)}),e.__$originParents=e._$origin.parents(),e.__$originParents.each(function(t,i){$(i).on("scroll."+e.__namespace+"-triggerClose",function(t){e.__scrollHandler(t)})}),e.__options.triggerClose.mouseleave||e.__options.triggerClose.touchleave&&r.hasTouchCapability){e._on("dismissable",function(t){t.dismissable?t.delay?(c=setTimeout(function(){e._close(t.event)},t.delay),e.__timeouts.close.push(c)):e._close(t):clearTimeout(c)});var a=e._$origin,l="",p="",c=null;e.__options.interactive&&(a=a.add(e._$tooltip)),e.__options.triggerClose.mouseleave&&(l+="mouseenter."+e.__namespace+"-triggerClose ",p+="mouseleave."+e.__namespace+"-triggerClose "),e.__options.triggerClose.touchleave&&r.hasTouchCapability&&(l+="touchstart."+e.__namespace+"-triggerClose",p+="touchend."+e.__namespace+"-triggerClose touchcancel."+e.__namespace+"-triggerClose"),a.on(p,function(t){if(e._touchIsTouchEvent(t)||!e._touchIsEmulatedEvent(t)){var i="mouseleave"==t.type?e.__options.delay:e.__options.delayTouch;e._trigger({delay:i[1],dismissable:!0,event:t,type:"dismissable"})}}).on(l,function(t){!e._touchIsTouchEvent(t)&&e._touchIsEmulatedEvent(t)||e._trigger({dismissable:!1,event:t,type:"dismissable"})})}e.__options.triggerClose.originClick&&e._$origin.on("click."+e.__namespace+"-triggerClose",function(t){e._touchIsTouchEvent(t)||e._touchIsEmulatedEvent(t)||e._close(t)}),(e.__options.triggerClose.click||e.__options.triggerClose.tap&&r.hasTouchCapability)&&setTimeout(function(){if("closed"!=e.__state){var t="",i=$(r.window.document.body);e.__options.triggerClose.click&&(t+="click."+e.__namespace+"-triggerClose "),e.__options.triggerClose.tap&&r.hasTouchCapability&&(t+="touchend."+e.__namespace+"-triggerClose"),i.on(t,function(t){e._touchIsMeaningfulEvent(t)&&(e._touchRecordEvent(t),e.__options.interactive&&$.contains(e._$tooltip[0],t.target)||e._close(t))}),e.__options.triggerClose.tap&&r.hasTouchCapability&&i.on("touchstart."+e.__namespace+"-triggerClose",function(t){e._touchRecordEvent(t)})}},0),e._trigger("ready"),e.__options.functionReady&&e.__options.functionReady.call(e,e,{origin:e._$origin[0],tooltip:e._$tooltip[0]})}if(e.__options.timer>0){var c=setTimeout(function(){e._close()},e.__options.timer+s);e.__timeouts.close.push(c)}}}return e},_openShortly:function(t){var i=this,o=!0;if("stable"!=i.__state&&"appearing"!=i.__state&&!i.__timeouts.open&&(i._trigger({type:"start",event:t,stop:function(){o=!1}}),o)){var e=0==t.type.indexOf("touch")?i.__options.delayTouch:i.__options.delay;e[0]?i.__timeouts.open=setTimeout(function(){i.__timeouts.open=null,i.__pointerIsOverOrigin&&i._touchIsMeaningfulEvent(t)?(i._trigger("startend"),i._open(t)):i._trigger("startcancel")},e[0]):(i._trigger("startend"),i._open(t))}return i},_optionsExtract:function(t,i){var o=this,e=$.extend(!0,{},i),n=o.__options[t];return n||(n={},$.each(i,function(t,i){var e=o.__options[t];void 0!==e&&(n[t]=e)})),$.each(e,function(t,i){void 0!==n[t]&&("object"!=typeof i||i instanceof Array||null==i||"object"!=typeof n[t]||n[t]instanceof Array||null==n[t]?e[t]=n[t]:$.extend(e[t],n[t]))}),e},_plug:function(t){var i=$.tooltipster._plugin(t);if(!i)throw new Error('The "'+t+'" plugin is not defined');return i.instance&&$.tooltipster.__bridge(i.instance,this,i.name),this},_touchIsEmulatedEvent:function(t){for(var i=!1,o=(new Date).getTime(),e=this.__touchEvents.length-1;e>=0;e--){var n=this.__touchEvents[e];if(!(o-n.time<500))break;n.target===t.target&&(i=!0)}return i},_touchIsMeaningfulEvent:function(t){return this._touchIsTouchEvent(t)&&!this._touchSwiped(t.target)||!this._touchIsTouchEvent(t)&&!this._touchIsEmulatedEvent(t)},_touchIsTouchEvent:function(t){return 0==t.type.indexOf("touch")},_touchRecordEvent:function(t){return this._touchIsTouchEvent(t)&&(t.time=(new Date).getTime(),this.__touchEvents.push(t)),this},_touchSwiped:function(t){for(var i=!1,o=this.__touchEvents.length-1;o>=0;o--){var e=this.__touchEvents[o];if("touchmove"==e.type){i=!0;break}if("touchstart"==e.type&&t===e.target)break}return i},_trigger:function(){var t=Array.prototype.slice.apply(arguments);return"string"==typeof t[0]&&(t[0]={type:t[0]}),t[0].instance=this,t[0].origin=this._$origin?this._$origin[0]:null,t[0].tooltip=this._$tooltip?this._$tooltip[0]:null,this.__$emitterPrivate.trigger.apply(this.__$emitterPrivate,t),$.tooltipster._trigger.apply($.tooltipster,t),this.__$emitterPublic.trigger.apply(this.__$emitterPublic,t),this},_unplug:function(t){var i=this;if(i[t]){var o=$.tooltipster._plugin(t);o.instance&&$.each(o.instance,function(o,e){i[o]&&i[o].bridged===i[t]&&delete i[o]}),i[t].__destroy&&i[t].__destroy(),delete i[t]}return i},close:function(t){return this.__destroyed?this.__destroyError():this._close(null,t),this},content:function(t){var i=this;if(void 0===t)return i.__Content;if(i.__destroyed)i.__destroyError();else if(i.__contentSet(t),null!==i.__Content){if("closed"!==i.__state&&(i.__contentInsert(),i.reposition(),i.__options.updateAnimation))if(r.hasTransitions){var o=i.__options.updateAnimation;i._$tooltip.addClass("tooltipster-update-"+o),setTimeout(function(){"closed"!=i.__state&&i._$tooltip.removeClass("tooltipster-update-"+o)},1e3)}else i._$tooltip.fadeTo(200,.5,function(){"closed"!=i.__state&&i._$tooltip.fadeTo(200,1)})}else i._close();return i},destroy:function(){var t=this;if(t.__destroyed)t.__destroyError();else{"closed"!=t.__state?t.option("animationDuration",0)._close(null,null,!0):t.__timeoutsClear(),t._trigger("destroy"),t.__destroyed=!0,t._$origin.removeData(t.__namespace).off("."+t.__namespace+"-triggerOpen"),$(r.window.document.body).off("."+t.__namespace+"-triggerOpen");var i=t._$origin.data("tooltipster-ns");if(i)if(1===i.length){var o=null;"previous"==t.__options.restoration?o=t._$origin.data("tooltipster-initialTitle"):"current"==t.__options.restoration&&(o="string"==typeof t.__Content?t.__Content:$("<div></div>").append(t.__Content).html()),o&&t._$origin.attr("title",o),t._$origin.removeClass("tooltipstered"),t._$origin.removeData("tooltipster-ns").removeData("tooltipster-initialTitle")}else i=$.grep(i,function(i,o){return i!==t.__namespace}),t._$origin.data("tooltipster-ns",i);t._trigger("destroyed"),t._off(),t.off(),t.__Content=null,t.__$emitterPrivate=null,t.__$emitterPublic=null,t.__options.parent=null,t._$origin=null,t._$tooltip=null,$.tooltipster.__instancesLatestArr=$.grep($.tooltipster.__instancesLatestArr,function(i,o){return t!==i}),clearInterval(t.__garbageCollector)}return t},disable:function(){return this.__destroyed?(this.__destroyError(),this):(this._close(),this.__enabled=!1,this)},elementOrigin:function(){if(!this.__destroyed)return this._$origin[0];this.__destroyError()},elementTooltip:function(){return this._$tooltip?this._$tooltip[0]:null},enable:function(){return this.__enabled=!0,this},hide:function(t){return this.close(t)},instance:function(){return this},off:function(){return this.__destroyed||this.__$emitterPublic.off.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},on:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.on.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},one:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.one.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},open:function(t){return this.__destroyed?this.__destroyError():this._open(null,t),this},option:function(t,i){return void 0===i?this.__options[t]:(this.__destroyed?this.__destroyError():(this.__options[t]=i,this.__optionsFormat(),$.inArray(t,["trigger","triggerClose","triggerOpen"])>=0&&this.__prepareOrigin(),"selfDestruction"===t&&this.__prepareGC()),this)},reposition:function(t,i){var e=this;return e.__destroyed?e.__destroyError():"closed"!=e.__state&&o(e._$origin)&&(i||o(e._$tooltip))&&(i||e._$tooltip.detach(),e.__Geometry=e.__geometry(),e._trigger({type:"reposition",event:t,helper:{geo:e.__Geometry}})),e},show:function(t){return this.open(t)},status:function(){return{destroyed:this.__destroyed,enabled:this.__enabled,open:"closed"!==this.__state,state:this.__state}},triggerHandler:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.triggerHandler.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this}},$.fn.tooltipster=function(){var t=Array.prototype.slice.apply(arguments),i="You are using a single HTML element as content for several tooltips. You probably want to set the contentCloning option to TRUE.";if(0===this.length)return this;if("string"==typeof t[0]){var o="#*$~&";return this.each(function(){var e=$(this).data("tooltipster-ns"),n=e?$(this).data(e[0]):null;if(!n)throw new Error("You called Tooltipster's \""+t[0]+'" method on an uninitialized element');if("function"!=typeof n[t[0]])throw new Error('Unknown method "'+t[0]+'"');this.length>1&&"content"==t[0]&&(t[1]instanceof $||"object"==typeof t[1]&&null!=t[1]&&t[1].tagName)&&!n.__options.contentCloning&&n.__options.debug&&console.log(i);var s=n[t[0]](t[1],t[2]);if(s!==n||"instance"===t[0])return o=s,!1}),"#*$~&"!==o?o:this}$.tooltipster.__instancesLatestArr=[];var e=t[0]&&void 0!==t[0].multiple,s=e&&t[0].multiple||!e&&n.multiple,r=t[0]&&void 0!==t[0].content,_=r&&t[0].content||!r&&n.content,a=t[0]&&void 0!==t[0].contentCloning,l=a&&t[0].contentCloning||!a&&n.contentCloning,p=t[0]&&void 0!==t[0].debug,c=p&&t[0].debug||!p&&n.debug;return this.length>1&&(_ instanceof $||"object"==typeof _&&null!=_&&_.tagName)&&!l&&c&&console.log(i),this.each(function(){var i=!1,o=$(this),e=o.data("tooltipster-ns"),n=null;e?s?i=!0:c&&(console.log("Tooltipster: one or more tooltips are already attached to the element below. Ignoring."),console.log(this)):i=!0,i&&(n=new $.Tooltipster(this,t[0]),e||(e=[]),e.push(n.__namespace),o.data("tooltipster-ns",e),o.data(n.__namespace,n),n.__options.functionInit&&n.__options.functionInit.call(n,n,{origin:this}),n._trigger("init")),$.tooltipster.__instancesLatestArr.push(n)}),this},t.prototype={__init:function(t){this.__$tooltip=t,this.__$tooltip.css({left:0,overflow:"hidden",position:"absolute",top:0}).find(".tooltipster-content").css("overflow","auto"),this.$container=$('<div class="tooltipster-ruler"></div>').append(this.__$tooltip).appendTo(r.window.document.body)},__forceRedraw:function(){var t=this.__$tooltip.parent();this.__$tooltip.detach(),this.__$tooltip.appendTo(t)},constrain:function(t,i){return this.constraints={width:t,height:i},this.__$tooltip.css({display:"block",height:"",overflow:"auto",width:t}),this},destroy:function(){this.__$tooltip.detach().find(".tooltipster-content").css({display:"",overflow:""}),this.$container.remove()},free:function(){return this.constraints=null,this.__$tooltip.css({display:"",height:"",overflow:"visible",width:""}),this},measure:function(){this.__forceRedraw();var t=this.__$tooltip[0].getBoundingClientRect(),i={size:{height:t.height||t.bottom-t.top,width:t.width||t.right-t.left}};if(this.constraints){var o=this.__$tooltip.find(".tooltipster-content"),e=this.__$tooltip.outerHeight(),n=o[0].getBoundingClientRect(),s={height:e<=this.constraints.height,width:t.width<=this.constraints.width&&n.width>=o[0].scrollWidth-1};i.fits=s.height&&s.width}return r.IE&&r.IE<=11&&i.size.width!==r.window.document.documentElement.clientWidth&&(i.size.width=Math.ceil(i.size.width)+1),i}};var a=navigator.userAgent.toLowerCase();-1!=a.indexOf("msie")?r.IE=parseInt(a.split("msie")[1]):-1!==a.toLowerCase().indexOf("trident")&&-1!==a.indexOf(" rv:11")?r.IE=11:-1!=a.toLowerCase().indexOf("edge/")&&(r.IE=parseInt(a.toLowerCase().split("edge/")[1]));var l="tooltipster.sideTip";return $.tooltipster._plugin({name:l,instance:{__defaults:function(){return{arrow:!0,distance:6,functionPosition:null,maxWidth:null,minIntersection:16,minWidth:0,position:null,side:"top",viewportAware:!0}},__init:function(t){var i=this;i.__instance=t,i.__namespace="tooltipster-sideTip-"+Math.round(1e6*Math.random()),i.__previousState="closed",i.__options,i.__optionsFormat(),i.__instance._on("state."+i.__namespace,function(t){"closed"==t.state?i.__close():"appearing"==t.state&&"closed"==i.__previousState&&i.__create(),i.__previousState=t.state}),i.__instance._on("options."+i.__namespace,function(){i.__optionsFormat()}),i.__instance._on("reposition."+i.__namespace,function(t){i.__reposition(t.event,t.helper)})},__close:function(){this.__instance.content()instanceof $&&this.__instance.content().detach(),this.__instance._$tooltip.remove(),this.__instance._$tooltip=null},__create:function(){var t=$('<div class="tooltipster-base tooltipster-sidetip"><div class="tooltipster-box"><div class="tooltipster-content"></div></div><div class="tooltipster-arrow"><div class="tooltipster-arrow-uncropped"><div class="tooltipster-arrow-border"></div><div class="tooltipster-arrow-background"></div></div></div></div>');this.__options.arrow||t.find(".tooltipster-box").css("margin",0).end().find(".tooltipster-arrow").hide(),this.__options.minWidth&&t.css("min-width",this.__options.minWidth+"px"),
this.__options.maxWidth&&t.css("max-width",this.__options.maxWidth+"px"),this.__instance._$tooltip=t,this.__instance._trigger("created")},__destroy:function(){this.__instance._off("."+self.__namespace)},__optionsFormat:function(){var t=this;if(t.__options=t.__instance._optionsExtract(l,t.__defaults()),t.__options.position&&(t.__options.side=t.__options.position),"object"!=typeof t.__options.distance&&(t.__options.distance=[t.__options.distance]),t.__options.distance.length<4&&(void 0===t.__options.distance[1]&&(t.__options.distance[1]=t.__options.distance[0]),void 0===t.__options.distance[2]&&(t.__options.distance[2]=t.__options.distance[0]),void 0===t.__options.distance[3]&&(t.__options.distance[3]=t.__options.distance[1]),t.__options.distance={top:t.__options.distance[0],right:t.__options.distance[1],bottom:t.__options.distance[2],left:t.__options.distance[3]}),"string"==typeof t.__options.side){var i={top:"bottom",right:"left",bottom:"top",left:"right"};t.__options.side=[t.__options.side,i[t.__options.side]],"left"==t.__options.side[0]||"right"==t.__options.side[0]?t.__options.side.push("top","bottom"):t.__options.side.push("right","left")}6===$.tooltipster._env.IE&&!0!==t.__options.arrow&&(t.__options.arrow=!1)},__reposition:function(t,i){var o=this,e,n=o.__targetFind(i),s=[];o.__instance._$tooltip.detach();var r=o.__instance._$tooltip.clone(),_=$.tooltipster._getRuler(r),a=!1,l=o.__instance.option("animation");switch(l&&r.removeClass("tooltipster-"+l),$.each(["window","document"],function(e,l){var p=null;if(o.__instance._trigger({container:l,helper:i,satisfied:a,takeTest:function(t){p=t},results:s,type:"positionTest"}),1==p||0!=p&&0==a&&("window"!=l||o.__options.viewportAware))for(var e=0;e<o.__options.side.length;e++){var c={horizontal:0,vertical:0},h=o.__options.side[e];"top"==h||"bottom"==h?c.vertical=o.__options.distance[h]:c.horizontal=o.__options.distance[h],o.__sideChange(r,h),$.each(["natural","constrained"],function(e,r){if(p=null,o.__instance._trigger({container:l,event:t,helper:i,mode:r,results:s,satisfied:a,side:h,takeTest:function(t){p=t},type:"positionTest"}),1==p||0!=p&&0==a){var d={container:l,distance:c,fits:null,mode:r,outerSize:null,side:h,size:null,target:n[h],whole:null},u="natural"==r?_.free():_.constrain(i.geo.available[l][h].width-c.horizontal,i.geo.available[l][h].height-c.vertical),g=u.measure();if(d.size=g.size,d.outerSize={height:g.size.height+c.vertical,width:g.size.width+c.horizontal},"natural"==r?i.geo.available[l][h].width>=d.outerSize.width&&i.geo.available[l][h].height>=d.outerSize.height?d.fits=!0:d.fits=!1:d.fits=g.fits,"window"==l&&(d.fits?d.whole="top"==h||"bottom"==h?i.geo.origin.windowOffset.right>=o.__options.minIntersection&&i.geo.window.size.width-i.geo.origin.windowOffset.left>=o.__options.minIntersection:i.geo.origin.windowOffset.bottom>=o.__options.minIntersection&&i.geo.window.size.height-i.geo.origin.windowOffset.top>=o.__options.minIntersection:d.whole=!1),s.push(d),d.whole)a=!0;else if("natural"==d.mode&&(d.fits||d.size.width<=i.geo.available[l][h].width))return!1}})}}),o.__instance._trigger({edit:function(t){s=t},event:t,helper:i,results:s,type:"positionTested"}),s.sort(function(t,i){if(t.whole&&!i.whole)return-1;if(!t.whole&&i.whole)return 1;if(t.whole&&i.whole){var e=o.__options.side.indexOf(t.side),n=o.__options.side.indexOf(i.side);return e<n?-1:e>n?1:"natural"==t.mode?-1:1}if(t.fits&&!i.fits)return-1;if(!t.fits&&i.fits)return 1;if(t.fits&&i.fits){var e=o.__options.side.indexOf(t.side),n=o.__options.side.indexOf(i.side);return e<n?-1:e>n?1:"natural"==t.mode?-1:1}return"document"==t.container&&"bottom"==t.side&&"natural"==t.mode?-1:1}),e=s[0],e.coord={},e.side){case"left":case"right":e.coord.top=Math.floor(e.target-e.size.height/2);break;case"bottom":case"top":e.coord.left=Math.floor(e.target-e.size.width/2);break}switch(e.side){case"left":e.coord.left=i.geo.origin.windowOffset.left-e.outerSize.width;break;case"right":e.coord.left=i.geo.origin.windowOffset.right+e.distance.horizontal;break;case"top":e.coord.top=i.geo.origin.windowOffset.top-e.outerSize.height;break;case"bottom":e.coord.top=i.geo.origin.windowOffset.bottom+e.distance.vertical;break}"window"==e.container?"top"==e.side||"bottom"==e.side?e.coord.left<0?i.geo.origin.windowOffset.right-this.__options.minIntersection>=0?e.coord.left=0:e.coord.left=i.geo.origin.windowOffset.right-this.__options.minIntersection-1:e.coord.left>i.geo.window.size.width-e.size.width&&(i.geo.origin.windowOffset.left+this.__options.minIntersection<=i.geo.window.size.width?e.coord.left=i.geo.window.size.width-e.size.width:e.coord.left=i.geo.origin.windowOffset.left+this.__options.minIntersection+1-e.size.width):e.coord.top<0?i.geo.origin.windowOffset.bottom-this.__options.minIntersection>=0?e.coord.top=0:e.coord.top=i.geo.origin.windowOffset.bottom-this.__options.minIntersection-1:e.coord.top>i.geo.window.size.height-e.size.height&&(i.geo.origin.windowOffset.top+this.__options.minIntersection<=i.geo.window.size.height?e.coord.top=i.geo.window.size.height-e.size.height:e.coord.top=i.geo.origin.windowOffset.top+this.__options.minIntersection+1-e.size.height):(e.coord.left>i.geo.window.size.width-e.size.width&&(e.coord.left=i.geo.window.size.width-e.size.width),e.coord.left<0&&(e.coord.left=0)),o.__sideChange(r,e.side),i.tooltipClone=r[0],i.tooltipParent=o.__instance.option("parent").parent[0],i.mode=e.mode,i.whole=e.whole,i.origin=o.__instance._$origin[0],i.tooltip=o.__instance._$tooltip[0],delete e.container,delete e.fits,delete e.mode,delete e.outerSize,delete e.whole,e.distance=e.distance.horizontal||e.distance.vertical;var p=$.extend(!0,{},e);if(o.__instance._trigger({edit:function(t){e=t},event:t,helper:i,position:p,type:"position"}),o.__options.functionPosition){var c=o.__options.functionPosition.call(o,o.__instance,i,p);c&&(e=c)}_.destroy();var h,d;"top"==e.side||"bottom"==e.side?(h={prop:"left",val:e.target-e.coord.left},d=e.size.width-this.__options.minIntersection):(h={prop:"top",val:e.target-e.coord.top},d=e.size.height-this.__options.minIntersection),h.val<this.__options.minIntersection?h.val=this.__options.minIntersection:h.val>d&&(h.val=d);var u;u=i.geo.origin.fixedLineage?i.geo.origin.windowOffset:{left:i.geo.origin.windowOffset.left+i.geo.window.scroll.left,top:i.geo.origin.windowOffset.top+i.geo.window.scroll.top},e.coord={left:u.left+(e.coord.left-i.geo.origin.windowOffset.left),top:u.top+(e.coord.top-i.geo.origin.windowOffset.top)},o.__sideChange(o.__instance._$tooltip,e.side),i.geo.origin.fixedLineage?o.__instance._$tooltip.css("position","fixed"):o.__instance._$tooltip.css("position",""),o.__instance._$tooltip.css({left:e.coord.left,top:e.coord.top,height:e.size.height,width:e.size.width}).find(".tooltipster-arrow").css({left:"",top:""}).css(h.prop,h.val),o.__instance._$tooltip.appendTo(o.__instance.option("parent")),o.__instance._trigger({type:"repositioned",event:t,position:e})},__sideChange:function(t,i){t.removeClass("tooltipster-bottom").removeClass("tooltipster-left").removeClass("tooltipster-right").removeClass("tooltipster-top").addClass("tooltipster-"+i)},__targetFind:function(t){var i={},o=this.__instance._$origin[0].getClientRects();if(o.length>1){1==this.__instance._$origin.css("opacity")&&(this.__instance._$origin.css("opacity",.99),o=this.__instance._$origin[0].getClientRects(),this.__instance._$origin.css("opacity",1))}if(o.length<2)i.top=Math.floor(t.geo.origin.windowOffset.left+t.geo.origin.size.width/2),i.bottom=i.top,i.left=Math.floor(t.geo.origin.windowOffset.top+t.geo.origin.size.height/2),i.right=i.left;else{var e=o[0];i.top=Math.floor(e.left+(e.right-e.left)/2),e=o.length>2?o[Math.ceil(o.length/2)-1]:o[0],i.right=Math.floor(e.top+(e.bottom-e.top)/2),e=o[o.length-1],i.bottom=Math.floor(e.left+(e.right-e.left)/2),e=o.length>2?o[Math.ceil((o.length+1)/2)-1]:o[o.length-1],i.left=Math.floor(e.top+(e.bottom-e.top)/2)}return i}}}),$});