Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tippy.js

Package Overview
Dependencies
Maintainers
1
Versions
152
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tippy.js - npm Package Compare versions

Comparing version 0.12.2 to 0.13.0

2

dist/tippy.min.js

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Tippy=t()}(this,function(){"use strict";function e(e){var t=!1,n=0,i=document.createElement("span");return new MutationObserver(function(){e(),t=!1}).observe(i,{attributes:!0}),function(){t||(t=!0,i.setAttribute("x-index",n),n+=1)}}function t(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},ke))}}function n(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function i(e,t){Object.keys(t).forEach(function(i){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(i)&&n(t[i])&&(r="px"),e.style[i]=t[i]+r})}function r(e){var t={};return e&&"[object Function]"===t.toString.call(e)}function o(e,t){if(1!==e.nodeType)return[];var n=window.getComputedStyle(e,null);return t?n[t]:n}function a(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function s(e){if(!e||-1!==["HTML","BODY","#document"].indexOf(e.nodeName))return window.document.body;var t=o(e),n=t.overflow,i=t.overflowX;return/(auto|scroll)/.test(n+t.overflowY+i)?e:s(a(e))}function f(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||e.firstElementChild.offsetParent===e)}function l(e){return null!==e.parentNode?l(e.parentNode):e}function p(e){var t=e&&e.offsetParent,n=t&&t.nodeName;return n&&"BODY"!==n&&"HTML"!==n?t:window.document.documentElement}function u(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return window.document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?e:t,r=n?t:e,o=document.createRange();o.setStart(i,0),o.setEnd(r,0);var a=o.commonAncestorContainer;if(e!==a&&t!==a||i.contains(r))return f(a)?a:p(a);var s=l(e);return s.host?u(s.host,t):u(e,l(t).host)}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",i=e.nodeName;if("BODY"===i||"HTML"===i){var r=window.document.documentElement;return(window.document.scrollingElement||r)[n]}return e[n]}function d(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=c(t,"top"),r=c(t,"left"),o=n?-1:1;return e.top+=i*o,e.bottom+=i*o,e.left+=r*o,e.right+=r*o,e}function h(e,t){var n="x"===t?"Left":"Top",i="Left"===n?"Right":"Bottom";return+e["border"+n+"Width"].split("px")[0]+ +e["border"+i+"Width"].split("px")[0]}function m(e,t,n,i){return Math.max(t["offset"+e],n["client"+e],n["offset"+e],De()?n["offset"+e]+i["margin"+("Height"===e?"Top":"Left")]+i["margin"+("Height"===e?"Bottom":"Right")]:0)}function v(){var e=window.document.body,t=window.document.documentElement,n=De()&&window.getComputedStyle(t);return{height:m("Height",e,t,n),width:m("Width",e,t,n)}}function g(e){return Fe({},e,{right:e.left+e.width,bottom:e.top+e.height})}function b(e){var t={};if(De())try{t=e.getBoundingClientRect();var n=c(e,"top"),i=c(e,"left");t.top+=n,t.left+=i,t.bottom+=n,t.right+=i}catch(e){}else t=e.getBoundingClientRect();var r={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},a="HTML"===e.nodeName?v():{},s=a.width||e.clientWidth||r.right-r.left,f=a.height||e.clientHeight||r.bottom-r.top,l=e.offsetWidth-s,p=e.offsetHeight-f;if(l||p){var u=o(e);l-=h(u,"x"),p-=h(u,"y"),r.width-=l,r.height-=p}return g(r)}function w(e,t){var n=De(),i="HTML"===t.nodeName,r=b(e),a=b(t),f=s(e),l=g({top:r.top-a.top,left:r.left-a.left,width:r.width,height:r.height});if(i||"BODY"===t.nodeName){var p=o(t),u=n&&i?0:+p.borderTopWidth.split("px")[0],c=n&&i?0:+p.borderLeftWidth.split("px")[0],h=n&&i?0:+p.marginTop.split("px")[0],m=n&&i?0:+p.marginLeft.split("px")[0];l.top-=u-h,l.bottom-=u-h,l.left-=c-m,l.right-=c-m,l.marginTop=h,l.marginLeft=m}return t.contains(f)&&(n||"BODY"!==f.nodeName)&&(l=d(l,t)),l}function y(e){var t=window.document.documentElement,n=w(e,t),i=Math.max(t.clientWidth,window.innerWidth||0),r=Math.max(t.clientHeight,window.innerHeight||0),o=c(t),a=c(t,"left");return g({top:o-n.top+n.marginTop,left:a-n.left+n.marginLeft,width:i,height:r})}function E(e){var t=e.nodeName;return"BODY"!==t&&"HTML"!==t&&("fixed"===o(e,"position")||E(a(e)))}function O(e,t,n,i){var r={top:0,left:0},o=u(e,t);if("viewport"===i)r=y(o);else{var f=void 0;"scrollParent"===i?(f=s(a(e)),"BODY"===f.nodeName&&(f=window.document.documentElement)):f="window"===i?window.document.documentElement:i;var l=w(f,o);if("HTML"!==f.nodeName||E(o))r=l;else{var p=v(),c=p.height,d=p.width;r.top+=l.top-l.marginTop,r.bottom=c+l.top,r.left+=l.left-l.marginLeft,r.right=d+l.left}}return r.left+=n,r.top+=n,r.right-=n,r.bottom-=n,r}function x(e,t,n,i,r){if(-1===e.indexOf("auto"))return e;var o=O(n,i,0,r),a={top:t.top-o.top,right:o.right-t.right,bottom:o.bottom-t.bottom,left:t.left-o.left},s=Object.keys(a).sort(function(e,t){return a[t]-a[e]})[0],f=e.split("-")[1];return s+(f?"-"+f:"")}function L(e,t,n){return w(n,u(t,n))}function T(e){var t=window.getComputedStyle(e),n=parseFloat(t.marginTop)+parseFloat(t.marginBottom),i=parseFloat(t.marginLeft)+parseFloat(t.marginRight);return{width:e.offsetWidth+i,height:e.offsetHeight+n}}function A(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function k(e,t,n){n=n.split("-")[0];var i=T(e),r={width:i.width,height:i.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",f=o?"height":"width",l=o?"width":"height";return r[a]=t[a]+t[f]/2-i[f]/2,r[s]=n===s?t[s]-i[l]:t[A(s)],r}function C(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function M(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var i=C(e,function(e){return e[t]===n});return e.indexOf(i)}function S(e,t,n){return(void 0===n?e:e.slice(0,M(e,"name",n))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&r(n)&&(t=n(t,e))}),t}function H(){if(!this.state.isDestroyed){var e={instance:this,styles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=L(this.state,this.popper,this.reference),e.placement=x(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement),e.originalPlacement=e.placement,e.offsets.popper=k(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position="absolute",e=S(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function D(e,t){return e.some(function(e){var n=e.name;return e.enabled&&n===t})}function N(e){for(var t=[!1,"ms","webkit","moz","o"],n=e.charAt(0).toUpperCase()+e.slice(1),i=0;i<t.length-1;i++){var r=t[i],o=r?""+r+n:e;if(void 0!==window.document.body.style[o])return o}return null}function I(){return this.state.isDestroyed=!0,D(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.left="",this.popper.style.position="",this.popper.style.top="",this.popper.style[N("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function B(e,t,n,i){var r="BODY"===e.nodeName,o=r?window:e;o.addEventListener(t,n,{passive:!0}),r||B(s(o.parentNode),t,n,i),i.push(o)}function F(e,t,n,i){n.updateBound=i,window.addEventListener("resize",n.updateBound,{passive:!0});var r=s(e);return B(r,"scroll",n.updateBound,n.scrollParents),n.scrollElement=r,n.eventsEnabled=!0,n}function P(){this.state.eventsEnabled||(this.state=F(this.reference,this.options,this.state,this.scheduleUpdate))}function W(e,t){return window.removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function U(){this.state.eventsEnabled&&(window.cancelAnimationFrame(this.scheduleUpdate),this.state=W(this.reference,this.state))}function j(e,t){Object.keys(t).forEach(function(n){!1!==t[n]?e.setAttribute(n,t[n]):e.removeAttribute(n)})}function q(e,t){var n={position:e.offsets.popper.position},r={"x-placement":e.placement},o=Math.round(e.offsets.popper.left),a=Math.round(e.offsets.popper.top),s=N("transform");return t.gpuAcceleration&&s?(n[s]="translate3d("+o+"px, "+a+"px, 0)",n.top=0,n.left=0,n.willChange="transform"):(n.left=o,n.top=a,n.willChange="top, left"),i(e.instance.popper,Fe({},n,e.styles)),j(e.instance.popper,Fe({},r,e.attributes)),e.offsets.arrow&&i(e.arrowElement,e.offsets.arrow),e}function R(e,t,n,i,r){var o=L(r,t,e),a=x(n.placement,o,t,e,n.modifiers.flip.boundariesElement);return t.setAttribute("x-placement",a),n}function Y(e,t,n){var i=C(e,function(e){return e.name===t}),r=!!i&&e.some(function(e){return e.name===n&&e.enabled&&e.order<i.order});if(!r){var o="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return r}function z(e,t){if(!Y(e.instance.modifiers,"arrow","keepTogether"))return e;var n=t.element;if("string"==typeof n){if(!(n=e.instance.popper.querySelector(n)))return e}else if(!e.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],r=g(e.offsets.popper),o=e.offsets.reference,a=-1!==["left","right"].indexOf(i),s=a?"height":"width",f=a?"top":"left",l=a?"left":"top",p=a?"bottom":"right",u=T(n)[s];o[p]-u<r[f]&&(e.offsets.popper[f]-=r[f]-(o[p]-u)),o[f]+u>r[p]&&(e.offsets.popper[f]+=o[f]+u-r[p]);var c=o[f]+o[s]/2-u/2,d=c-g(e.offsets.popper)[f];return d=Math.max(Math.min(r[s]-u,d),0),e.arrowElement=n,e.offsets.arrow={},e.offsets.arrow[f]=d,e.offsets.arrow[l]="",e}function _(e){return"end"===e?"start":"start"===e?"end":e}function K(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=We.indexOf(e),i=We.slice(n+1).concat(We.slice(0,n));return t?i.reverse():i}function X(e,t){if(D(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=O(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement),i=e.placement.split("-")[0],r=A(i),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case Ue.FLIP:a=[i,r];break;case Ue.CLOCKWISE:a=K(i);break;case Ue.COUNTERCLOCKWISE:a=K(i,!0);break;default:a=t.behavior}return a.forEach(function(s,f){if(i!==s||a.length===f+1)return e;i=e.placement.split("-")[0],r=A(i);var l=g(e.offsets.popper),p=e.offsets.reference,u=Math.floor,c="left"===i&&u(l.right)>u(p.left)||"right"===i&&u(l.left)<u(p.right)||"top"===i&&u(l.bottom)>u(p.top)||"bottom"===i&&u(l.top)<u(p.bottom),d=u(l.left)<u(n.left),h=u(l.right)>u(n.right),m=u(l.top)<u(n.top),v=u(l.bottom)>u(n.bottom),b="left"===i&&d||"right"===i&&h||"top"===i&&m||"bottom"===i&&v,w=-1!==["top","bottom"].indexOf(i),y=!!t.flipVariations&&(w&&"start"===o&&d||w&&"end"===o&&h||!w&&"start"===o&&m||!w&&"end"===o&&v);(c||b||y)&&(e.flipped=!0,(c||b)&&(i=a[f+1]),y&&(o=_(o)),e.placement=i+(o?"-"+o:""),e.offsets.popper=k(e.instance.popper,e.offsets.reference,e.placement),e=S(e.instance.modifiers,e,"flip"))}),e}function G(e){var t=g(e.offsets.popper),n=e.offsets.reference,i=e.placement.split("-")[0],r=Math.floor,o=-1!==["top","bottom"].indexOf(i),a=o?"right":"bottom",s=o?"left":"top",f=o?"width":"height";return t[a]<r(n[s])&&(e.offsets.popper[s]=r(n[s])-t[f]),t[s]>r(n[a])&&(e.offsets.popper[s]=r(n[a])),e}function J(e,t,n,i){var r=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+r[1],a=r[2];if(!o)return e;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=i}return g(s)[t]/100*o}if("vh"===a||"vw"===a){return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o}return o}function V(e,t,i,r){var o=[0,0],a=-1!==["right","left"].indexOf(r),s=e.split(/(\+|\-)/).map(function(e){return e.trim()}),f=s.indexOf(C(s,function(e){return-1!==e.search(/,|\s/)}));s[f]&&-1===s[f].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=-1!==f?[s.slice(0,f).concat([s[f].split(/\s*,\s*|\s+/)[0]]),[s[f].split(/\s*,\s*|\s+/)[1]].concat(s.slice(f+1))]:[s];return l=l.map(function(e,n){var r=(1===n?!a:a)?"height":"width",o=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,o=!0,e):o?(e[e.length-1]+=t,o=!1,e):e.concat(t)},[]).map(function(e){return J(e,r,t,i)})}),l.forEach(function(e,t){e.forEach(function(i,r){n(i)&&(o[t]+=i*("-"===e[r-1]?-1:1))})}),o}function Q(e,t){var i=t.offset,r=e.placement,o=e.offsets,a=o.popper,s=o.reference,f=r.split("-")[0],l=void 0;return l=n(+i)?[+i,0]:V(i,a,s,f),"left"===f?(a.top+=l[0],a.left-=l[1]):"right"===f?(a.top+=l[0],a.left+=l[1]):"top"===f?(a.left+=l[0],a.top-=l[1]):"bottom"===f&&(a.left+=l[0],a.top+=l[1]),e.popper=a,e}function Z(e,t){var n=t.boundariesElement||p(e.instance.popper),i=O(e.instance.popper,e.instance.reference,t.padding,n);t.boundaries=i;var r=t.priority,o=g(e.offsets.popper),a={primary:function(e){var n=o[e];return o[e]<i[e]&&!t.escapeWithReference&&(n=Math.max(o[e],i[e])),Be({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=o[n];return o[e]>i[e]&&!t.escapeWithReference&&(r=Math.min(o[n],i[e]-("right"===e?o.width:o.height))),Be({},n,r)}};return r.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";o=Fe({},o,a[t](e))}),e.offsets.popper=o,e}function $(e){var t=e.placement,n=t.split("-")[0],i=t.split("-")[1];if(i){var r=e.offsets.reference,o=g(e.offsets.popper),a=-1!==["bottom","top"].indexOf(n),s=a?"left":"top",f=a?"width":"height",l={start:Be({},s,r[s]),end:Be({},s,r[s]+r[f]-o[f])};e.offsets.popper=Fe({},o,l[i])}return e}function ee(e){if(!Y(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=C(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}function te(e){var t=e.placement,n=t.split("-")[0],i=g(e.offsets.popper),r=g(e.offsets.reference),o=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return i[o?"left":"top"]=r[t]-(a?i[o?"width":"height"]:0),e.placement=A(t),e.offsets.popper=g(i),e}function ne(){Ke.touchUser=!0,/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&!window.MSStream&&document.body.classList.add("tippy-touch"),document.removeEventListener("touchstart",ne)}function ie(e){var t=ae(e.target,Ve.el),n=ae(e.target,Ve.popper);if(n){if(se(Xe.refs,function(e){return e.popper===n}).settings.interactive)return}if(t){var i=se(Xe.refs,function(e){return e.el===t}),r=i.popper,o=i.settings,a=o.hideOnClick,s=o.multiple,f=o.trigger;if(!0!==a||Ke.touchUser||clearTimeout(r.getAttribute("data-delay")),!s&&Ke.touchUser||!s&&-1!==f.indexOf("click"))return Oe(i);if(!0!==a||-1!==f.indexOf("click"))return}!ae(e.target,Ve.controller)&&document.body.querySelector(Ve.popper)&&Oe()}function re(e){for(var t=[!1,"webkit"],n=e.charAt(0).toUpperCase()+e.slice(1),i=0;i<t.length;i++){var r=t[i],o=r?""+r+n:e;if(void 0!==window.document.body.style[o])return o}return null}function oe(e){return e.replace(/-.+/,"")}function ae(e,t){return Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length;--n>=0&&t.item(n)!==this;);return n>-1}),Element.prototype.closest||(Element.prototype.closest=function(e){for(var t=this;t;){if(t.matches(e))return t;t=t.parentElement}}),e.closest(t)}function se(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function fe(e){var t=e.settings,n=t.position,i=t.popperOptions,r=t.offset,o=t.distance,a=e.el,s=e.popper,f=s.querySelector(Ve.tooltip),l=_e({placement:n},i||{},{modifiers:_e({},i?i.modifiers:{},{flip:_e({padding:parseInt(o)+5},i&&i.modifiers?i.modifiers.flip:{}),offset:_e({offset:parseInt(r)},i&&i.modifiers?i.modifiers.offset:{})}),onUpdate:function(){f.style.top="",f.style.bottom="",f.style.left="",f.style.right="",f.style[oe(s.getAttribute("x-placement"))]=-(o-Ge.distance)+"px"}});return new Re(a,s,l)}function le(e,t,n){var i=n.position,r=n.distance,o=n.arrow,a=n.animateFill,s=n.inertia,f=n.animation,l=n.arrowSize,p=n.size,u=n.theme,c=n.html,d=document.createElement("div");d.setAttribute("class","tippy-popper"),d.setAttribute("role","tooltip"),d.setAttribute("aria-hidden","true"),d.setAttribute("id","tippy-tooltip-"+e);var h=document.createElement("div");if(h.setAttribute("class","tippy-tooltip tippy-tooltip--"+p+" "+u+"-theme leave"),h.setAttribute("data-animation",f),o){var m=document.createElement("div");m.setAttribute("class","arrow-"+l),m.setAttribute("x-arrow",""),h.appendChild(m)}if(a){h.setAttribute("data-animatefill","");var v=document.createElement("div");v.setAttribute("class","leave"),v.setAttribute("x-circle",""),h.appendChild(v)}s&&h.setAttribute("data-inertia","");var g=document.createElement("div");if(g.setAttribute("class","tippy-tooltip-content"),c){var b=void 0;c instanceof Element?(g.innerHTML=c.innerHTML,b=c.id||"tippy-html-template"):(g.innerHTML=document.getElementById(c.replace("#","")).innerHTML,b=c),d.classList.add("html-template"),d.setAttribute("tabindex","0"),h.setAttribute("data-template-id",b)}else g.innerHTML=t;return h.style[oe(i)]=-(r-Ge.distance)+"px",h.appendChild(g),d.appendChild(h),d}function pe(e,t,n){var i=[];return"manual"===e?i:(t.addEventListener(e,n.handleTrigger),i.push({event:e,handler:n.handleTrigger}),"mouseenter"===e&&(t.addEventListener("mouseleave",n.handleMouseleave),i.push({event:"mouseleave",handler:n.handleMouseleave})),"focus"===e&&(t.addEventListener("blur",n.handleBlur),i.push({event:"blur",handler:n.handleBlur})),i)}function ue(e){Xe.refs.push(e)}function ce(e){var t=e.title;e.setAttribute("data-original-title",t||"html"),e.removeAttribute("title")}function de(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}function he(e){var t=this,n=se(Xe.refs,function(e){return e.el===t}),i=n.popper,r=oe(i.getAttribute("x-placement")),o=Math.round(i.offsetWidth/2),a=Math.round(i.offsetHeight/2),s=document.documentElement.offsetWidth||document.body.offsetWidth,f=e.pageX,l=e.pageY,p=void 0,u=void 0;"top"===r?(p=f-o,u=l-2.5*a):"left"===r?(p=f-2*o-15,u=l-a):"right"===r?(p=f+a,u=l-a):"bottom"===r&&(p=f-o,u=l+a/1.5),"top"!==r&&"bottom"!==r||(f+5+o>s?p=s-5-2*o:f-5-o<0&&(p=5)),i.style[re("transform")]="translate3d("+p+"px, "+u+"px, 0)"}function me(e,t){t?window.getComputedStyle(t)[re("transform")]:window.getComputedStyle(e).opacity}function ve(e,t){e.forEach(function(e){e&&t(e.classList)})}function ge(e,t){e.forEach(function(e){e&&(e.hasAttribute("x-circle")&&(t/=1.1),e.style[re("transitionDuration")]=t+"ms")})}function be(e,t){setTimeout(function(){var n=e.settings.position!==e.popper.getAttribute("x-placement");!e.flipped&&n?(e.flipped=!0,t()):e.flipped&&!n&&(e.flipped=!1,t())},0)}function we(e,t,n){var i=e.popper.querySelector(Ve.tooltip),r=!1,o=function e(t){t.target===i&&(r=!0,i.removeEventListener("webkitTransitionEnd",e),i.removeEventListener("transitionend",e),n())};i.addEventListener("webkitTransitionEnd",o),i.addEventListener("transitionend",o),clearTimeout(e.transitionendTimeout),e.transitionendTimeout=setTimeout(function(){r||n()},t)}function ye(e,t){var n=e.style.visibility;return"show"===t?"visible"===n:"hidden"===n}function Ee(e){var t=e.popperInstance,n=e.el,i=(e.popper,e.settings.followCursor);document.body.appendChild(e.popper),t?(t.update(),!i&&t.enableEventListeners()):(e.popperInstance=fe(e),i&&!Ke.touchUser&&(n.addEventListener("mousemove",he),e.popperInstance.disableEventListeners()))}function Oe(e){Xe.refs.forEach(function(t){var n=t.popper,i=t.tippyInstance,r=t.settings,o=r.hideOnClick,a=r.hideDuration,s=r.trigger;if(document.body.contains(n)){var f=!0===o||-1!==s.indexOf("focus"),l=!e||n!==e.popper;f&&l&&i.hide(n,a)}})}function xe(e){return e instanceof Element?[e]:[].slice.call(document.querySelectorAll(e))}for(var Le=["native code","[object MutationObserverConstructor]"],Te="undefined"!=typeof window,Ae=["Edge","Trident","Firefox"],ke=0,Ce=0;Ce<Ae.length;Ce+=1)if(Te&&navigator.userAgent.indexOf(Ae[Ce])>=0){ke=1;break}var Me=Te&&function(e){return Le.some(function(t){return(e||"").toString().indexOf(t)>-1})}(window.MutationObserver),Se=Me?e:t,He=void 0,De=function(){return void 0===He&&(He=-1!==navigator.appVersion.indexOf("MSIE 10")),He},Ne=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Ie=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),Be=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},Fe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Pe=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],We=Pe.slice(3),Ue={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"},je={shift:{order:100,enabled:!0,fn:$},offset:{order:200,enabled:!0,fn:Q,offset:0},preventOverflow:{order:300,enabled:!0,fn:Z,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:G},arrow:{order:500,enabled:!0,fn:z,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:X,behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:te},hide:{order:800,enabled:!0,fn:ee},applyStyle:{order:900,enabled:!0,fn:q,onLoad:R,gpuAcceleration:!0}},qe={placement:"bottom",eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:je},Re=function(){function e(t,n){var o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ne(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(o.update)},this.update=Se(this.update.bind(this)),this.options=Fe({},e.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t.jquery?t[0]:t,this.popper=n.jquery?n[0]:n,i(this.popper,{position:"absolute"}),this.modifiers=Object.keys(e.Defaults.modifiers).map(function(t){return Fe({name:t},e.Defaults.modifiers[t])}),this.modifiers=this.modifiers.map(function(e){var t=a.modifiers&&a.modifiers[e.name]||{};return Fe({},e,t)}),a.modifiers&&(this.options.modifiers=Fe({},e.Defaults.modifiers,a.modifiers),Object.keys(a.modifiers).forEach(function(t){if(void 0===e.Defaults.modifiers[t]){var n=a.modifiers[t];n.name=t,o.modifiers.push(n)}})),this.modifiers=this.modifiers.sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&r(e.onLoad)&&e.onLoad(o.reference,o.popper,o.options,e,o.state)}),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return Ie(e,[{key:"update",value:function(){return H.call(this)}},{key:"destroy",value:function(){return I.call(this)}},{key:"enableEventListeners",value:function(){return P.call(this)}},{key:"disableEventListeners",value:function(){return U.call(this)}}]),e}();Re.Utils=("undefined"!=typeof window?window:global).PopperUtils,Re.placements=Pe,Re.Defaults=qe;var Ye=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},ze=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),_e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Ke={touchUser:!1,idCounter:0},Xe={refs:[]},Ge={html:!1,position:"top",animation:"shift",animateFill:!0,arrow:!1,arrowSize:"regular",delay:0,hideDelay:0,trigger:"mouseenter focus",duration:375,hideDuration:375,interactive:!1,theme:"dark",size:"regular",distance:10,offset:0,hideOnClick:!0,multiple:!1,followCursor:!1,inertia:!1,transitionFlip:!0,popperOptions:{}},Je=Object.keys(Ge),Ve={popper:".tippy-popper",tooltip:".tippy-tooltip",content:".tippy-tooltip-content",circle:"[x-circle]",arrow:"[x-arrow]",el:"[data-tooltipped]",controller:"[data-tippy-controller]"},Qe=!("addEventListener"in window)||/MSIE 9/i.test(navigator.userAgent)||window.operamini;return document.addEventListener&&(document.addEventListener("click",ie),document.addEventListener("touchstart",ne)),function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Ye(this,e),!Qe){this.selector=t,this.settings=_e(JSON.parse(JSON.stringify(Ge)),n),this.callbacks={wait:n.wait,beforeShown:n.beforeShown||new Function,shown:n.shown||new Function,beforeHidden:n.beforeHidden||new Function,hidden:n.hidden||new Function};var i=xe(t);this._createTooltips(i)}}return ze(e,[{key:"_applyIndividualSettings",value:function(e){var t=this,n={};return Je.forEach(function(i){var r=e.getAttribute("data-"+i.toLowerCase())||t.settings[i];"false"===r&&(r=!1),n[i]=r}),n.arrow&&(n.animateFill=!1),_e({},this.settings,n)}},{key:"_getEventListenerHandlers",value:function(e,t,n){var i=this,r=n.delay,o=n.hideDelay,a=n.hideDuration,s=n.duration,f=n.interactive,l=n.hideOnClick,p=n.trigger,u=function(){clearTimeout(t.getAttribute("data-delay")),clearTimeout(t.getAttribute("data-hidedelay"))},c=function(){if(u(),"visible"!==t.style.visibility)if(r){var e=setTimeout(function(){return i.show(t,s)},r);t.setAttribute("data-delay",e)}else i.show(t,s)},d=function(e){return i.callbacks.wait?i.callbacks.wait(c,e):c()},h=function(){if(u(),o){var e=setTimeout(function(){return i.hide(t,a)},o);t.setAttribute("data-hidedelay",e)}else i.hide(t,a)};return{handleTrigger:function(e){var n="click"===e.type,i="visible"===t.style.visibility,r="persistent"!==l;n&&i&&r?h():d(e)},handleMouseleave:function(n){if(f){var i=function n(i){var r=ae(i.target,Ve.popper)===t,o=ae(i.target,Ve.el)===e,a=-1!==p.indexOf("click");if(!(r||o||a)){var s=t.getBoundingClientRect();Math.abs(i.clientY-s.bottom)>=2&&Math.abs(i.clientY-s.top)>=2&&Math.abs(i.clientX-s.left)>=2&&Math.abs(i.clientX-s.right)>=2&&(document.removeEventListener("mousemove",n),h())}};return document.addEventListener("mousemove",i)}h()},handleBlur:function(e){!Ke.touchUser&&e.relatedTarget&&(ae(e.relatedTarget,Ve.popper)||h())}}}},{key:"_createTooltips",value:function(t){var n=this;t.forEach(function(e){var t=n._applyIndividualSettings(e),i=t.html,r=t.trigger,o=e.title;if(o||i){var a=Ke.idCounter;e.setAttribute("data-tooltipped",""),e.setAttribute("aria-describedby","tippy-tooltip-"+a),ce(e);var s=le(a,o,t),f=n._getEventListenerHandlers(e,s,t),l=[];r.trim().split(" ").forEach(function(t){return l=l.concat(pe(t,e,f))}),ue({id:a,el:e,popper:s,settings:t,listeners:l,tippyInstance:n}),Ke.idCounter++}}),e.store=Xe}},{key:"getPopperElement",value:function(e){try{return se(Xe.refs,function(t){return t.el===e}).popper}catch(e){throw new Error("[Tippy error]: Element does not exist in any Tippy instances")}}},{key:"getTooltippedElement",value:function(e){try{return se(Xe.refs,function(t){return t.popper===e}).el}catch(e){throw new Error("[Tippy error]: Popper does not exist in any Tippy instances")}}},{key:"show",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.settings.duration,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=se(Xe.refs,function(t){return t.popper===e}),o=e.querySelector(Ve.tooltip),a=e.querySelector(Ve.circle);i&&(this.callbacks.beforeShown(),be(r,function(){t.hide(e,0,!1),setTimeout(function(){r.hidden||t.show(e,n,!1)},0)})),!document.body.contains(e)&&Ee(r),r.settings.interactive&&r.el.classList.add("active"),r.hidden=!1,e.style.visibility="visible",e.setAttribute("aria-hidden","false"),me(o,a),ve([o,a],function(e){e.remove("leave"),e.add("enter")}),ge([o,a],n),we(r,n,function(){ye(e,"show")&&!r.onShownFired&&(!r.settings.transitionFlip&&o.classList.add("tippy-notransition"),r.settings.interactive&&e.focus(),r.onShownFired=!0,i&&t.callbacks.shown())})}},{key:"hide",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.settings.duration,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=se(Xe.refs,function(t){return t.popper===e}),o=e.querySelector(Ve.tooltip),a=e.querySelector(Ve.circle);e.querySelector(Ve.content);i&&(this.callbacks.beforeHidden(),r.el.classList.remove("active"),r.onShownFired=!1,r.flipped=r.settings.position!==e.getAttribute("x-placement"),r.hidden=!0,!r.settings.transitionFlip&&o.classList.remove("tippy-notransition")),e.style.visibility="hidden",e.setAttribute("aria-hidden","true"),n===Ge.hideDuration?n=parseInt(o.style[re("transitionDuration")]):ge([o,a],n),ve([o,a],function(e){e.remove("enter"),e.add("leave")}),r.settings.html&&-1!==r.settings.trigger.indexOf("click")&&de(r.el)&&r.el.focus(),we(r,n,function(){ye(e,"hide")&&document.body.contains(e)&&(r.popperInstance.disableEventListeners(),r.flipped=r.settings.position!==e.getAttribute("x-placement"),document.body.removeChild(e),i&&t.callbacks.hidden())})}},{key:"destroy",value:function(e){var t=se(Xe.refs,function(t){return t.popper===e}),n=t.el,i=t.popperInstance;t.listeners.forEach(function(e){return n.removeEventListener(e.event,e.handler)}),n.removeAttribute("data-tooltipped"),n.removeAttribute("aria-describedby"),i&&i.destroy(),Xe.refs.splice(Xe.refs.map(function(e){return e.popper}).indexOf(e),1)}},{key:"update",value:function(e){var t=se(Xe.refs,function(t){return t.popper===e}),n=e.querySelector(Ve.content),i=t.el,r=t.settings.html;r?n.innerHTML=r instanceof Element?r.innerHTML:document.getElementById(r.replace("#","")).innerHTML:(n.innerHTML=i.title||i.getAttribute("data-original-title"),ce(i))}}]),e}()});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Tippy=t()}(this,function(){"use strict";function e(e){var t=!1,n=0,i=document.createElement("span");return new MutationObserver(function(){e(),t=!1}).observe(i,{attributes:!0}),function(){t||(t=!0,i.setAttribute("x-index",n),n+=1)}}function t(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},Ce))}}function n(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function i(e,t){Object.keys(t).forEach(function(i){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(i)&&n(t[i])&&(r="px"),e.style[i]=t[i]+r})}function r(e){var t={};return e&&"[object Function]"===t.toString.call(e)}function o(e,t){if(1!==e.nodeType)return[];var n=window.getComputedStyle(e,null);return t?n[t]:n}function a(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function s(e){if(!e||-1!==["HTML","BODY","#document"].indexOf(e.nodeName))return window.document.body;var t=o(e),n=t.overflow,i=t.overflowX;return/(auto|scroll)/.test(n+t.overflowY+i)?e:s(a(e))}function f(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||e.firstElementChild.offsetParent===e)}function p(e){return null!==e.parentNode?p(e.parentNode):e}function l(e){var t=e&&e.offsetParent,n=t&&t.nodeName;return n&&"BODY"!==n&&"HTML"!==n?t:window.document.documentElement}function u(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return window.document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?e:t,r=n?t:e,o=document.createRange();o.setStart(i,0),o.setEnd(r,0);var a=o.commonAncestorContainer;if(e!==a&&t!==a||i.contains(r))return f(a)?a:l(a);var s=p(e);return s.host?u(s.host,t):u(e,p(t).host)}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",i=e.nodeName;if("BODY"===i||"HTML"===i){var r=window.document.documentElement;return(window.document.scrollingElement||r)[n]}return e[n]}function d(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=c(t,"top"),r=c(t,"left"),o=n?-1:1;return e.top+=i*o,e.bottom+=i*o,e.left+=r*o,e.right+=r*o,e}function h(e,t){var n="x"===t?"Left":"Top",i="Left"===n?"Right":"Bottom";return+e["border"+n+"Width"].split("px")[0]+ +e["border"+i+"Width"].split("px")[0]}function m(e,t,n,i){return Math.max(t["offset"+e],n["client"+e],n["offset"+e],Ie()?n["offset"+e]+i["margin"+("Height"===e?"Top":"Left")]+i["margin"+("Height"===e?"Bottom":"Right")]:0)}function v(){var e=window.document.body,t=window.document.documentElement,n=Ie()&&window.getComputedStyle(t);return{height:m("Height",e,t,n),width:m("Width",e,t,n)}}function g(e){return Pe({},e,{right:e.left+e.width,bottom:e.top+e.height})}function b(e){var t={};if(Ie())try{t=e.getBoundingClientRect();var n=c(e,"top"),i=c(e,"left");t.top+=n,t.left+=i,t.bottom+=n,t.right+=i}catch(e){}else t=e.getBoundingClientRect();var r={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},a="HTML"===e.nodeName?v():{},s=a.width||e.clientWidth||r.right-r.left,f=a.height||e.clientHeight||r.bottom-r.top,p=e.offsetWidth-s,l=e.offsetHeight-f;if(p||l){var u=o(e);p-=h(u,"x"),l-=h(u,"y"),r.width-=p,r.height-=l}return g(r)}function y(e,t){var n=Ie(),i="HTML"===t.nodeName,r=b(e),a=b(t),f=s(e),p=g({top:r.top-a.top,left:r.left-a.left,width:r.width,height:r.height});if(i||"BODY"===t.nodeName){var l=o(t),u=n&&i?0:+l.borderTopWidth.split("px")[0],c=n&&i?0:+l.borderLeftWidth.split("px")[0],h=n&&i?0:+l.marginTop.split("px")[0],m=n&&i?0:+l.marginLeft.split("px")[0];p.top-=u-h,p.bottom-=u-h,p.left-=c-m,p.right-=c-m,p.marginTop=h,p.marginLeft=m}return t.contains(f)&&(n||"BODY"!==f.nodeName)&&(p=d(p,t)),p}function w(e){var t=window.document.documentElement,n=y(e,t),i=Math.max(t.clientWidth,window.innerWidth||0),r=Math.max(t.clientHeight,window.innerHeight||0),o=c(t),a=c(t,"left");return g({top:o-n.top+n.marginTop,left:a-n.left+n.marginLeft,width:i,height:r})}function E(e){var t=e.nodeName;return"BODY"!==t&&"HTML"!==t&&("fixed"===o(e,"position")||E(a(e)))}function O(e,t,n,i){var r={top:0,left:0},o=u(e,t);if("viewport"===i)r=w(o);else{var f=void 0;"scrollParent"===i?(f=s(a(e)),"BODY"===f.nodeName&&(f=window.document.documentElement)):f="window"===i?window.document.documentElement:i;var p=y(f,o);if("HTML"!==f.nodeName||E(o))r=p;else{var l=v(),c=l.height,d=l.width;r.top+=p.top-p.marginTop,r.bottom=c+p.top,r.left+=p.left-p.marginLeft,r.right=d+p.left}}return r.left+=n,r.top+=n,r.right-=n,r.bottom-=n,r}function x(e,t,n,i,r){if(-1===e.indexOf("auto"))return e;var o=O(n,i,0,r),a={top:t.top-o.top,right:o.right-t.right,bottom:o.bottom-t.bottom,left:t.left-o.left},s=Object.keys(a).sort(function(e,t){return a[t]-a[e]})[0],f=e.split("-")[1];return s+(f?"-"+f:"")}function L(e,t,n){return y(n,u(t,n))}function T(e){var t=window.getComputedStyle(e),n=parseFloat(t.marginTop)+parseFloat(t.marginBottom),i=parseFloat(t.marginLeft)+parseFloat(t.marginRight);return{width:e.offsetWidth+i,height:e.offsetHeight+n}}function A(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function k(e,t,n){n=n.split("-")[0];var i=T(e),r={width:i.width,height:i.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",f=o?"height":"width",p=o?"width":"height";return r[a]=t[a]+t[f]/2-i[f]/2,r[s]=n===s?t[s]-i[p]:t[A(s)],r}function C(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function M(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var i=C(e,function(e){return e[t]===n});return e.indexOf(i)}function S(e,t,n){return(void 0===n?e:e.slice(0,M(e,"name",n))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&r(n)&&(t=n(t,e))}),t}function D(){if(!this.state.isDestroyed){var e={instance:this,styles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=L(this.state,this.popper,this.reference),e.placement=x(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement),e.originalPlacement=e.placement,e.offsets.popper=k(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position="absolute",e=S(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function H(e,t){return e.some(function(e){var n=e.name;return e.enabled&&n===t})}function I(e){for(var t=[!1,"ms","webkit","moz","o"],n=e.charAt(0).toUpperCase()+e.slice(1),i=0;i<t.length-1;i++){var r=t[i],o=r?""+r+n:e;if(void 0!==window.document.body.style[o])return o}return null}function N(){return this.state.isDestroyed=!0,H(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.left="",this.popper.style.position="",this.popper.style.top="",this.popper.style[I("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function F(e,t,n,i){var r="BODY"===e.nodeName,o=r?window:e;o.addEventListener(t,n,{passive:!0}),r||F(s(o.parentNode),t,n,i),i.push(o)}function B(e,t,n,i){n.updateBound=i,window.addEventListener("resize",n.updateBound,{passive:!0});var r=s(e);return F(r,"scroll",n.updateBound,n.scrollParents),n.scrollElement=r,n.eventsEnabled=!0,n}function P(){this.state.eventsEnabled||(this.state=B(this.reference,this.options,this.state,this.scheduleUpdate))}function W(e,t){return window.removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function U(){this.state.eventsEnabled&&(window.cancelAnimationFrame(this.scheduleUpdate),this.state=W(this.reference,this.state))}function j(e,t){Object.keys(t).forEach(function(n){!1!==t[n]?e.setAttribute(n,t[n]):e.removeAttribute(n)})}function q(e,t){var n={position:e.offsets.popper.position},r={"x-placement":e.placement},o=Math.round(e.offsets.popper.left),a=Math.round(e.offsets.popper.top),s=I("transform");return t.gpuAcceleration&&s?(n[s]="translate3d("+o+"px, "+a+"px, 0)",n.top=0,n.left=0,n.willChange="transform"):(n.left=o,n.top=a,n.willChange="top, left"),i(e.instance.popper,Pe({},n,e.styles)),j(e.instance.popper,Pe({},r,e.attributes)),e.offsets.arrow&&i(e.arrowElement,e.offsets.arrow),e}function R(e,t,n,i,r){var o=L(r,t,e),a=x(n.placement,o,t,e,n.modifiers.flip.boundariesElement);return t.setAttribute("x-placement",a),n}function Y(e,t,n){var i=C(e,function(e){return e.name===t}),r=!!i&&e.some(function(e){return e.name===n&&e.enabled&&e.order<i.order});if(!r){var o="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return r}function z(e,t){if(!Y(e.instance.modifiers,"arrow","keepTogether"))return e;var n=t.element;if("string"==typeof n){if(!(n=e.instance.popper.querySelector(n)))return e}else if(!e.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],r=g(e.offsets.popper),o=e.offsets.reference,a=-1!==["left","right"].indexOf(i),s=a?"height":"width",f=a?"top":"left",p=a?"left":"top",l=a?"bottom":"right",u=T(n)[s];o[l]-u<r[f]&&(e.offsets.popper[f]-=r[f]-(o[l]-u)),o[f]+u>r[l]&&(e.offsets.popper[f]+=o[f]+u-r[l]);var c=o[f]+o[s]/2-u/2,d=c-g(e.offsets.popper)[f];return d=Math.max(Math.min(r[s]-u,d),0),e.arrowElement=n,e.offsets.arrow={},e.offsets.arrow[f]=d,e.offsets.arrow[p]="",e}function _(e){return"end"===e?"start":"start"===e?"end":e}function K(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Ue.indexOf(e),i=Ue.slice(n+1).concat(Ue.slice(0,n));return t?i.reverse():i}function X(e,t){if(H(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=O(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement),i=e.placement.split("-")[0],r=A(i),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case je.FLIP:a=[i,r];break;case je.CLOCKWISE:a=K(i);break;case je.COUNTERCLOCKWISE:a=K(i,!0);break;default:a=t.behavior}return a.forEach(function(s,f){if(i!==s||a.length===f+1)return e;i=e.placement.split("-")[0],r=A(i);var p=g(e.offsets.popper),l=e.offsets.reference,u=Math.floor,c="left"===i&&u(p.right)>u(l.left)||"right"===i&&u(p.left)<u(l.right)||"top"===i&&u(p.bottom)>u(l.top)||"bottom"===i&&u(p.top)<u(l.bottom),d=u(p.left)<u(n.left),h=u(p.right)>u(n.right),m=u(p.top)<u(n.top),v=u(p.bottom)>u(n.bottom),b="left"===i&&d||"right"===i&&h||"top"===i&&m||"bottom"===i&&v,y=-1!==["top","bottom"].indexOf(i),w=!!t.flipVariations&&(y&&"start"===o&&d||y&&"end"===o&&h||!y&&"start"===o&&m||!y&&"end"===o&&v);(c||b||w)&&(e.flipped=!0,(c||b)&&(i=a[f+1]),w&&(o=_(o)),e.placement=i+(o?"-"+o:""),e.offsets.popper=k(e.instance.popper,e.offsets.reference,e.placement),e=S(e.instance.modifiers,e,"flip"))}),e}function G(e){var t=g(e.offsets.popper),n=e.offsets.reference,i=e.placement.split("-")[0],r=Math.floor,o=-1!==["top","bottom"].indexOf(i),a=o?"right":"bottom",s=o?"left":"top",f=o?"width":"height";return t[a]<r(n[s])&&(e.offsets.popper[s]=r(n[s])-t[f]),t[s]>r(n[a])&&(e.offsets.popper[s]=r(n[a])),e}function J(e,t,n,i){var r=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+r[1],a=r[2];if(!o)return e;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=i}return g(s)[t]/100*o}if("vh"===a||"vw"===a){return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o}return o}function V(e,t,i,r){var o=[0,0],a=-1!==["right","left"].indexOf(r),s=e.split(/(\+|\-)/).map(function(e){return e.trim()}),f=s.indexOf(C(s,function(e){return-1!==e.search(/,|\s/)}));s[f]&&-1===s[f].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var p=-1!==f?[s.slice(0,f).concat([s[f].split(/\s*,\s*|\s+/)[0]]),[s[f].split(/\s*,\s*|\s+/)[1]].concat(s.slice(f+1))]:[s];return p=p.map(function(e,n){var r=(1===n?!a:a)?"height":"width",o=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,o=!0,e):o?(e[e.length-1]+=t,o=!1,e):e.concat(t)},[]).map(function(e){return J(e,r,t,i)})}),p.forEach(function(e,t){e.forEach(function(i,r){n(i)&&(o[t]+=i*("-"===e[r-1]?-1:1))})}),o}function Q(e,t){var i=t.offset,r=e.placement,o=e.offsets,a=o.popper,s=o.reference,f=r.split("-")[0],p=void 0;return p=n(+i)?[+i,0]:V(i,a,s,f),"left"===f?(a.top+=p[0],a.left-=p[1]):"right"===f?(a.top+=p[0],a.left+=p[1]):"top"===f?(a.left+=p[0],a.top-=p[1]):"bottom"===f&&(a.left+=p[0],a.top+=p[1]),e.popper=a,e}function Z(e,t){var n=t.boundariesElement||l(e.instance.popper),i=O(e.instance.popper,e.instance.reference,t.padding,n);t.boundaries=i;var r=t.priority,o=g(e.offsets.popper),a={primary:function(e){var n=o[e];return o[e]<i[e]&&!t.escapeWithReference&&(n=Math.max(o[e],i[e])),Be({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=o[n];return o[e]>i[e]&&!t.escapeWithReference&&(r=Math.min(o[n],i[e]-("right"===e?o.width:o.height))),Be({},n,r)}};return r.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";o=Pe({},o,a[t](e))}),e.offsets.popper=o,e}function $(e){var t=e.placement,n=t.split("-")[0],i=t.split("-")[1];if(i){var r=e.offsets.reference,o=g(e.offsets.popper),a=-1!==["bottom","top"].indexOf(n),s=a?"left":"top",f=a?"width":"height",p={start:Be({},s,r[s]),end:Be({},s,r[s]+r[f]-o[f])};e.offsets.popper=Pe({},o,p[i])}return e}function ee(e){if(!Y(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=C(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}function te(e){var t=e.placement,n=t.split("-")[0],i=g(e.offsets.popper),r=g(e.offsets.reference),o=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return i[o?"left":"top"]=r[t]-(a?i[o?"width":"height"]:0),e.placement=A(t),e.offsets.popper=g(i),e}function ne(){Xe.touchUser=!0,/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&!window.MSStream&&document.body.classList.add("tippy-touch"),document.removeEventListener("touchstart",ne)}function ie(e){var t=ae(e.target,Qe.el),n=ae(e.target,Qe.popper);if(n){if(se(Ge.refs,function(e){return e.popper===n}).settings.interactive)return}if(t){var i=se(Ge.refs,function(e){return e.el===t}),r=i.popper,o=i.settings,a=o.hideOnClick,s=o.multiple,f=o.trigger;if(!0!==a||Xe.touchUser||clearTimeout(r.getAttribute("data-delay")),!s&&Xe.touchUser||!s&&-1!==f.indexOf("click"))return xe(i);if(!0!==a||-1!==f.indexOf("click"))return}!ae(e.target,Qe.controller)&&document.body.querySelector(Qe.popper)&&xe()}function re(e){for(var t=[!1,"webkit"],n=e.charAt(0).toUpperCase()+e.slice(1),i=0;i<t.length;i++){var r=t[i],o=r?""+r+n:e;if(void 0!==window.document.body.style[o])return o}return null}function oe(e){return e.replace(/-.+/,"")}function ae(e,t){return Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length;--n>=0&&t.item(n)!==this;);return n>-1}),Element.prototype.closest||(Element.prototype.closest=function(e){for(var t=this;t;){if(t.matches(e))return t;t=t.parentElement}}),e.closest(t)}function se(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function fe(e){var t=e.settings,n=t.position,i=t.popperOptions,r=t.offset,o=t.distance,a=e.el,s=e.popper,f=s.querySelector(Qe.tooltip),p=Ke({placement:n},i||{},{modifiers:Ke({},i?i.modifiers:{},{flip:Ke({padding:parseInt(o)+5},i&&i.modifiers?i.modifiers.flip:{}),offset:Ke({offset:parseInt(r)},i&&i.modifiers?i.modifiers.offset:{})}),onUpdate:function(){s.style[re("transitionDuration")]="",f.style.top="",f.style.bottom="",f.style.left="",f.style.right="",f.style[oe(s.getAttribute("x-placement"))]=-(o-Je.distance)+"px"}});return new Ye(a,s,p)}function pe(e,t,n){var i=n.position,r=n.distance,o=n.arrow,a=n.animateFill,s=n.inertia,f=n.animation,p=n.arrowSize,l=n.size,u=n.theme,c=n.html,d=document.createElement("div");d.setAttribute("class","tippy-popper"),d.setAttribute("role","tooltip"),d.setAttribute("aria-hidden","true"),d.setAttribute("id","tippy-tooltip-"+e);var h=document.createElement("div");if(h.setAttribute("class","tippy-tooltip tippy-tooltip--"+l+" "+u+"-theme leave"),h.setAttribute("data-animation",f),o){var m=document.createElement("div");m.setAttribute("class","arrow-"+p),m.setAttribute("x-arrow",""),h.appendChild(m)}if(a){h.setAttribute("data-animatefill","");var v=document.createElement("div");v.setAttribute("class","leave"),v.setAttribute("x-circle",""),h.appendChild(v)}s&&h.setAttribute("data-inertia","");var g=document.createElement("div");if(g.setAttribute("class","tippy-tooltip-content"),c){var b=void 0;c instanceof Element?(g.innerHTML=c.innerHTML,b=c.id||"tippy-html-template"):(g.innerHTML=document.getElementById(c.replace("#","")).innerHTML,b=c),d.classList.add("html-template"),d.setAttribute("tabindex","0"),h.setAttribute("data-template-id",b)}else g.innerHTML=t;return h.style[oe(i)]=-(r-Je.distance)+"px",h.appendChild(g),d.appendChild(h),d}function le(e,t,n){var i=[];return"manual"===e?i:(t.addEventListener(e,n.handleTrigger),i.push({event:e,handler:n.handleTrigger}),"mouseenter"===e&&(t.addEventListener("mouseleave",n.handleMouseleave),i.push({event:"mouseleave",handler:n.handleMouseleave})),"focus"===e&&(t.addEventListener("blur",n.handleBlur),i.push({event:"blur",handler:n.handleBlur})),i)}function ue(e){Ge.refs.push(e)}function ce(e){var t=e.title;e.setAttribute("data-original-title",t||"html"),e.removeAttribute("title")}function de(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}function he(e){var t=this,n=se(Ge.refs,function(e){return e.el===t}),i=n.popper,r=oe(i.getAttribute("x-placement")),o=Math.round(i.offsetWidth/2),a=Math.round(i.offsetHeight/2),s=document.documentElement.offsetWidth||document.body.offsetWidth,f=e.pageX,p=e.pageY,l=void 0,u=void 0;"top"===r?(l=f-o,u=p-2.5*a):"left"===r?(l=f-2*o-15,u=p-a):"right"===r?(l=f+a,u=p-a):"bottom"===r&&(l=f-o,u=p+a/1.5),"top"!==r&&"bottom"!==r||(f+5+o>s?l=s-5-2*o:f-5-o<0&&(l=5)),i.style[re("transform")]="translate3d("+l+"px, "+u+"px, 0)"}function me(e,t){t?window.getComputedStyle(t)[re("transform")]:window.getComputedStyle(e).opacity}function ve(e,t){e.forEach(function(e){e&&t(e.classList)})}function ge(e,t){e.forEach(function(e){e&&(e.hasAttribute("x-circle")&&(t/=1.1),e.style[re("transitionDuration")]=t+"ms")})}function be(e,t){setTimeout(function(){var n=e.settings.position!==e.popper.getAttribute("x-placement");!e.flipped&&n?(e.flipped=!0,t()):e.flipped&&!n&&(e.flipped=!1,t())},0)}function ye(e,t,n){var i=e.popper.querySelector(Qe.tooltip),r=!1,o=function e(t){t.target===i&&(r=!0,i.removeEventListener("webkitTransitionEnd",e),i.removeEventListener("transitionend",e),n())};i.addEventListener("webkitTransitionEnd",o),i.addEventListener("transitionend",o),clearTimeout(e.transitionendTimeout),e.transitionendTimeout=setTimeout(function(){r||n()},t)}function we(e,t){var n=e.style.visibility;return"show"===t?"visible"===n:"hidden"===n}function Ee(e){var t=e.el,n=(e.popper,e.settings.followCursor);document.body.appendChild(e.popper),e.popperInstance?(e.popperInstance.update(),n||e.popperInstance.enableEventListeners()):(e.popperInstance=fe(e),n&&!Xe.touchUser&&(t.addEventListener("mousemove",he),e.popperInstance.disableEventListeners()))}function Oe(e){var t=e.popper,n=e.popperInstance,i=e.settings.stickyDuration,r=function(){return t.style[re("transitionDuration")]=i+"ms"},o=function(){return t.style[re("transitionDuration")]=""},a=function t(){n&&n.scheduleUpdate(),r();var i=!e.hidden;window.requestAnimationFrame?i?window.requestAnimationFrame(t):(window.cancelAnimationFrame(t),o()):i?setTimeout(t,20):o()};setTimeout(a,0)}function xe(e){Ge.refs.forEach(function(t){var n=t.popper,i=t.tippyInstance,r=t.settings,o=r.hideOnClick,a=r.hideDuration,s=r.trigger;if(document.body.contains(n)){var f=!0===o||-1!==s.indexOf("focus"),p=!e||n!==e.popper;f&&p&&i.hide(n,a)}})}function Le(e){return e instanceof Element?[e]:[].slice.call(document.querySelectorAll(e))}for(var Te=["native code","[object MutationObserverConstructor]"],Ae="undefined"!=typeof window,ke=["Edge","Trident","Firefox"],Ce=0,Me=0;Me<ke.length;Me+=1)if(Ae&&navigator.userAgent.indexOf(ke[Me])>=0){Ce=1;break}var Se=Ae&&function(e){return Te.some(function(t){return(e||"").toString().indexOf(t)>-1})}(window.MutationObserver),De=Se?e:t,He=void 0,Ie=function(){return void 0===He&&(He=-1!==navigator.appVersion.indexOf("MSIE 10")),He},Ne=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Fe=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),Be=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},Pe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},We=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Ue=We.slice(3),je={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"},qe={shift:{order:100,enabled:!0,fn:$},offset:{order:200,enabled:!0,fn:Q,offset:0},preventOverflow:{order:300,enabled:!0,fn:Z,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:G},arrow:{order:500,enabled:!0,fn:z,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:X,behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:te},hide:{order:800,enabled:!0,fn:ee},applyStyle:{order:900,enabled:!0,fn:q,onLoad:R,gpuAcceleration:!0}},Re={placement:"bottom",eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:qe},Ye=function(){function e(t,n){var o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ne(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(o.update)},this.update=De(this.update.bind(this)),this.options=Pe({},e.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t.jquery?t[0]:t,this.popper=n.jquery?n[0]:n,i(this.popper,{position:"absolute"}),this.modifiers=Object.keys(e.Defaults.modifiers).map(function(t){return Pe({name:t},e.Defaults.modifiers[t])}),this.modifiers=this.modifiers.map(function(e){var t=a.modifiers&&a.modifiers[e.name]||{};return Pe({},e,t)}),a.modifiers&&(this.options.modifiers=Pe({},e.Defaults.modifiers,a.modifiers),Object.keys(a.modifiers).forEach(function(t){if(void 0===e.Defaults.modifiers[t]){var n=a.modifiers[t];n.name=t,o.modifiers.push(n)}})),this.modifiers=this.modifiers.sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&r(e.onLoad)&&e.onLoad(o.reference,o.popper,o.options,e,o.state)}),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return Fe(e,[{key:"update",value:function(){return D.call(this)}},{key:"destroy",value:function(){return N.call(this)}},{key:"enableEventListeners",value:function(){return P.call(this)}},{key:"disableEventListeners",value:function(){return U.call(this)}}]),e}();Ye.Utils=("undefined"!=typeof window?window:global).PopperUtils,Ye.placements=We,Ye.Defaults=Re;var ze=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},_e=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),Ke=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Xe={touchUser:!1,idCounter:0},Ge={refs:[]},Je={html:!1,position:"top",animation:"shift",animateFill:!0,arrow:!1,arrowSize:"regular",delay:0,hideDelay:0,trigger:"mouseenter focus",duration:375,hideDuration:375,interactive:!1,theme:"dark",size:"regular",distance:10,offset:0,hideOnClick:!0,multiple:!1,followCursor:!1,inertia:!1,transitionFlip:!0,sticky:!1,stickyDuration:200,popperOptions:{}},Ve=Object.keys(Je),Qe={popper:".tippy-popper",tooltip:".tippy-tooltip",content:".tippy-tooltip-content",circle:"[x-circle]",arrow:"[x-arrow]",el:"[data-tooltipped]",controller:"[data-tippy-controller]"},Ze=!("addEventListener"in window)||/MSIE 9/i.test(navigator.userAgent)||window.operamini;return document.addEventListener&&(document.addEventListener("click",ie),document.addEventListener("touchstart",ne)),function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(ze(this,e),!Ze){this.selector=t,this.settings=Ke(JSON.parse(JSON.stringify(Je)),n),this.callbacks={wait:n.wait,beforeShown:n.beforeShown||new Function,shown:n.shown||new Function,beforeHidden:n.beforeHidden||new Function,hidden:n.hidden||new Function};var i=Le(t);this._createTooltips(i)}}return _e(e,[{key:"_applyIndividualSettings",value:function(e){var t=this,n={};return Ve.forEach(function(i){var r=e.getAttribute("data-"+i.toLowerCase())||t.settings[i];"false"===r&&(r=!1),n[i]=r}),n.arrow&&(n.animateFill=!1),Ke({},this.settings,n)}},{key:"_getEventListenerHandlers",value:function(e,t,n){var i=this,r=n.delay,o=n.hideDelay,a=n.hideDuration,s=n.duration,f=n.interactive,p=n.hideOnClick,l=n.trigger,u=function(){clearTimeout(t.getAttribute("data-delay")),clearTimeout(t.getAttribute("data-hidedelay"))},c=function(){if(u(),"visible"!==t.style.visibility)if(r){var e=setTimeout(function(){return i.show(t,s)},r);t.setAttribute("data-delay",e)}else i.show(t,s)},d=function(e){return i.callbacks.wait?i.callbacks.wait(c,e):c()},h=function(){if(u(),o){var e=setTimeout(function(){return i.hide(t,a)},o);t.setAttribute("data-hidedelay",e)}else i.hide(t,a)};return{handleTrigger:function(e){var n="click"===e.type,i="visible"===t.style.visibility,r="persistent"!==p;n&&i&&r?h():d(e)},handleMouseleave:function(n){if(f){var i=function n(i){var r=ae(i.target,Qe.popper)===t,o=ae(i.target,Qe.el)===e,a=-1!==l.indexOf("click");if(!(r||o||a)){var s=t.getBoundingClientRect();Math.abs(i.clientY-s.bottom)>=2&&Math.abs(i.clientY-s.top)>=2&&Math.abs(i.clientX-s.left)>=2&&Math.abs(i.clientX-s.right)>=2&&(document.removeEventListener("mousemove",n),h())}};return document.addEventListener("mousemove",i)}h()},handleBlur:function(e){!Xe.touchUser&&e.relatedTarget&&(ae(e.relatedTarget,Qe.popper)||h())}}}},{key:"_createTooltips",value:function(t){var n=this;t.forEach(function(e){var t=n._applyIndividualSettings(e),i=t.html,r=t.trigger,o=e.title;if(o||i){var a=Xe.idCounter;e.setAttribute("data-tooltipped",""),e.setAttribute("aria-describedby","tippy-tooltip-"+a),ce(e);var s=pe(a,o,t),f=n._getEventListenerHandlers(e,s,t),p=[];r.trim().split(" ").forEach(function(t){return p=p.concat(le(t,e,f))}),ue({id:a,el:e,popper:s,settings:t,listeners:p,tippyInstance:n}),Xe.idCounter++}}),e.store=Ge}},{key:"getPopperElement",value:function(e){try{return se(Ge.refs,function(t){return t.el===e}).popper}catch(e){throw new Error("[Tippy error]: Element does not exist in any Tippy instances")}}},{key:"getTooltippedElement",value:function(e){try{return se(Ge.refs,function(t){return t.popper===e}).el}catch(e){throw new Error("[Tippy error]: Popper does not exist in any Tippy instances")}}},{key:"show",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.settings.duration,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=se(Ge.refs,function(t){return t.popper===e}),o=e.querySelector(Qe.tooltip),a=e.querySelector(Qe.circle);i&&(this.callbacks.beforeShown(),be(r,function(){t.hide(e,0,!1),setTimeout(function(){r.hidden||t.show(e,n,!1)},0)})),r.hidden=!1,e.style.visibility="visible",e.setAttribute("aria-hidden","false"),r.settings.interactive&&r.el.classList.add("active"),!document.body.contains(e)&&Ee(r),r.settings.sticky&&Oe(r),me(o,a),ve([o,a],function(e){e.remove("leave"),e.add("enter")}),ge([o,a],n),ye(r,n,function(){we(e,"show")&&!r.onShownFired&&(!r.settings.transitionFlip&&o.classList.add("tippy-notransition"),r.settings.interactive&&e.focus(),r.onShownFired=!0,i&&t.callbacks.shown())})}},{key:"hide",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.settings.duration,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=se(Ge.refs,function(t){return t.popper===e}),o=e.querySelector(Qe.tooltip),a=e.querySelector(Qe.circle);e.querySelector(Qe.content);i&&(this.callbacks.beforeHidden(),r.el.classList.remove("active"),r.onShownFired=!1,r.flipped=r.settings.position!==e.getAttribute("x-placement"),r.hidden=!0,!r.settings.transitionFlip&&o.classList.remove("tippy-notransition")),e.style.visibility="hidden",e.setAttribute("aria-hidden","true"),n===Je.hideDuration?n=parseInt(o.style[re("transitionDuration")]):ge([o,a],n),ve([o,a],function(e){e.remove("enter"),e.add("leave")}),r.settings.html&&-1!==r.settings.trigger.indexOf("click")&&de(r.el)&&r.el.focus(),ye(r,n,function(){we(e,"hide")&&document.body.contains(e)&&(r.popperInstance.disableEventListeners(),r.flipped=r.settings.position!==e.getAttribute("x-placement"),document.body.removeChild(e),i&&t.callbacks.hidden())})}},{key:"destroy",value:function(e){var t=se(Ge.refs,function(t){return t.popper===e}),n=t.el,i=t.popperInstance;t.listeners.forEach(function(e){return n.removeEventListener(e.event,e.handler)}),n.removeAttribute("data-tooltipped"),n.removeAttribute("aria-describedby"),i&&i.destroy(),Ge.refs.splice(Ge.refs.map(function(e){return e.popper}).indexOf(e),1)}},{key:"update",value:function(e){var t=se(Ge.refs,function(t){return t.popper===e}),n=e.querySelector(Qe.content),i=t.el,r=t.settings.html;r?n.innerHTML=r instanceof Element?r.innerHTML:document.getElementById(r.replace("#","")).innerHTML:(n.innerHTML=i.title||i.getAttribute("data-original-title"),ce(i))}}]),e}()});

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("popper.js")):"function"==typeof define&&define.amd?define(["popper.js"],t):e.Tippy=t(e.Popper)}(this,function(e){"use strict";function t(){S.touchUser=!0,/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&!window.MSStream&&document.body.classList.add("tippy-touch"),document.removeEventListener("touchstart",t)}function n(e){var t=o(e.target,O.el),n=o(e.target,O.popper);if(n){if(a(x.refs,function(e){return e.popper===n}).settings.interactive)return}if(t){var i=a(x.refs,function(e){return e.el===t}),r=i.popper,s=i.settings,l=s.hideOnClick,c=s.multiple,u=s.trigger;if(!0!==l||S.touchUser||clearTimeout(r.getAttribute("data-delay")),!c&&S.touchUser||!c&&-1!==u.indexOf("click"))return E(i);if(!0!==l||-1!==u.indexOf("click"))return}!o(e.target,O.controller)&&document.body.querySelector(O.popper)&&E()}function i(e){for(var t=[!1,"webkit"],n=e.charAt(0).toUpperCase()+e.slice(1),i=0;i<t.length;i++){var r=t[i],o=r?""+r+n:e;if(void 0!==window.document.body.style[o])return o}return null}function r(e){return e.replace(/-.+/,"")}function o(e,t){return Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length;--n>=0&&t.item(n)!==this;);return n>-1}),Element.prototype.closest||(Element.prototype.closest=function(e){for(var t=this;t;){if(t.matches(e))return t;t=t.parentElement}}),e.closest(t)}function a(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function s(t){var n=t.settings,i=n.position,o=n.popperOptions,a=n.offset,s=n.distance,l=t.el,c=t.popper,u=c.querySelector(O.tooltip),p=k({placement:i},o||{},{modifiers:k({},o?o.modifiers:{},{flip:k({padding:parseInt(s)+5},o&&o.modifiers?o.modifiers.flip:{}),offset:k({offset:parseInt(a)},o&&o.modifiers?o.modifiers.offset:{})}),onUpdate:function(){u.style.top="",u.style.bottom="",u.style.left="",u.style.right="",u.style[r(c.getAttribute("x-placement"))]=-(s-M.distance)+"px"}});return new e(l,c,p)}function l(e,t,n){var i=n.position,o=n.distance,a=n.arrow,s=n.animateFill,l=n.inertia,c=n.animation,u=n.arrowSize,p=n.size,d=n.theme,f=n.html,h=document.createElement("div");h.setAttribute("class","tippy-popper"),h.setAttribute("role","tooltip"),h.setAttribute("aria-hidden","true"),h.setAttribute("id","tippy-tooltip-"+e);var m=document.createElement("div");if(m.setAttribute("class","tippy-tooltip tippy-tooltip--"+p+" "+d+"-theme leave"),m.setAttribute("data-animation",c),a){var v=document.createElement("div");v.setAttribute("class","arrow-"+u),v.setAttribute("x-arrow",""),m.appendChild(v)}if(s){m.setAttribute("data-animatefill","");var y=document.createElement("div");y.setAttribute("class","leave"),y.setAttribute("x-circle",""),m.appendChild(y)}l&&m.setAttribute("data-inertia","");var g=document.createElement("div");if(g.setAttribute("class","tippy-tooltip-content"),f){var b=void 0;f instanceof Element?(g.innerHTML=f.innerHTML,b=f.id||"tippy-html-template"):(g.innerHTML=document.getElementById(f.replace("#","")).innerHTML,b=f),h.classList.add("html-template"),h.setAttribute("tabindex","0"),m.setAttribute("data-template-id",b)}else g.innerHTML=t;return m.style[r(i)]=-(o-M.distance)+"px",m.appendChild(g),h.appendChild(m),h}function c(e,t,n){var i=[];return"manual"===e?i:(t.addEventListener(e,n.handleTrigger),i.push({event:e,handler:n.handleTrigger}),"mouseenter"===e&&(t.addEventListener("mouseleave",n.handleMouseleave),i.push({event:"mouseleave",handler:n.handleMouseleave})),"focus"===e&&(t.addEventListener("blur",n.handleBlur),i.push({event:"blur",handler:n.handleBlur})),i)}function u(e){x.refs.push(e)}function p(e){var t=e.title;e.setAttribute("data-original-title",t||"html"),e.removeAttribute("title")}function d(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}function f(e){var t=this,n=a(x.refs,function(e){return e.el===t}),o=n.popper,s=r(o.getAttribute("x-placement")),l=Math.round(o.offsetWidth/2),c=Math.round(o.offsetHeight/2),u=document.documentElement.offsetWidth||document.body.offsetWidth,p=e.pageX,d=e.pageY,f=void 0,h=void 0;"top"===s?(f=p-l,h=d-2.5*c):"left"===s?(f=p-2*l-15,h=d-c):"right"===s?(f=p+c,h=d-c):"bottom"===s&&(f=p-l,h=d+c/1.5),"top"!==s&&"bottom"!==s||(p+5+l>u?f=u-5-2*l:p-5-l<0&&(f=5)),o.style[i("transform")]="translate3d("+f+"px, "+h+"px, 0)"}function h(e,t){t?window.getComputedStyle(t)[i("transform")]:window.getComputedStyle(e).opacity}function m(e,t){e.forEach(function(e){e&&t(e.classList)})}function v(e,t){e.forEach(function(e){e&&(e.hasAttribute("x-circle")&&(t/=1.1),e.style[i("transitionDuration")]=t+"ms")})}function y(e,t){setTimeout(function(){var n=e.settings.position!==e.popper.getAttribute("x-placement");!e.flipped&&n?(e.flipped=!0,t()):e.flipped&&!n&&(e.flipped=!1,t())},0)}function g(e,t,n){var i=e.popper.querySelector(O.tooltip),r=!1,o=function e(t){t.target===i&&(r=!0,i.removeEventListener("webkitTransitionEnd",e),i.removeEventListener("transitionend",e),n())};i.addEventListener("webkitTransitionEnd",o),i.addEventListener("transitionend",o),clearTimeout(e.transitionendTimeout),e.transitionendTimeout=setTimeout(function(){r||n()},t)}function b(e,t){var n=e.style.visibility;return"show"===t?"visible"===n:"hidden"===n}function w(e){var t=e.popperInstance,n=e.el,i=(e.popper,e.settings.followCursor);document.body.appendChild(e.popper),t?(t.update(),!i&&t.enableEventListeners()):(e.popperInstance=s(e),i&&!S.touchUser&&(n.addEventListener("mousemove",f),e.popperInstance.disableEventListeners()))}function E(e){x.refs.forEach(function(t){var n=t.popper,i=t.tippyInstance,r=t.settings,o=r.hideOnClick,a=r.hideDuration,s=r.trigger;if(document.body.contains(n)){var l=!0===o||-1!==s.indexOf("focus"),c=!e||n!==e.popper;l&&c&&i.hide(n,a)}})}function A(e){return e instanceof Element?[e]:[].slice.call(document.querySelectorAll(e))}e="default"in e?e.default:e;var L=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},T=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),k=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},S={touchUser:!1,idCounter:0},x={refs:[]},M={html:!1,position:"top",animation:"shift",animateFill:!0,arrow:!1,arrowSize:"regular",delay:0,hideDelay:0,trigger:"mouseenter focus",duration:375,hideDuration:375,interactive:!1,theme:"dark",size:"regular",distance:10,offset:0,hideOnClick:!0,multiple:!1,followCursor:!1,inertia:!1,transitionFlip:!0,popperOptions:{}},C=Object.keys(M),O={popper:".tippy-popper",tooltip:".tippy-tooltip",content:".tippy-tooltip-content",circle:"[x-circle]",arrow:"[x-arrow]",el:"[data-tooltipped]",controller:"[data-tippy-controller]"},H=!("addEventListener"in window)||/MSIE 9/i.test(navigator.userAgent)||window.operamini;return document.addEventListener&&(document.addEventListener("click",n),document.addEventListener("touchstart",t)),function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(L(this,e),!H){this.selector=t,this.settings=k(JSON.parse(JSON.stringify(M)),n),this.callbacks={wait:n.wait,beforeShown:n.beforeShown||new Function,shown:n.shown||new Function,beforeHidden:n.beforeHidden||new Function,hidden:n.hidden||new Function};var i=A(t);this._createTooltips(i)}}return T(e,[{key:"_applyIndividualSettings",value:function(e){var t=this,n={};return C.forEach(function(i){var r=e.getAttribute("data-"+i.toLowerCase())||t.settings[i];"false"===r&&(r=!1),n[i]=r}),n.arrow&&(n.animateFill=!1),k({},this.settings,n)}},{key:"_getEventListenerHandlers",value:function(e,t,n){var i=this,r=n.delay,a=n.hideDelay,s=n.hideDuration,l=n.duration,c=n.interactive,u=n.hideOnClick,p=n.trigger,d=function(){clearTimeout(t.getAttribute("data-delay")),clearTimeout(t.getAttribute("data-hidedelay"))},f=function(){if(d(),"visible"!==t.style.visibility)if(r){var e=setTimeout(function(){return i.show(t,l)},r);t.setAttribute("data-delay",e)}else i.show(t,l)},h=function(e){return i.callbacks.wait?i.callbacks.wait(f,e):f()},m=function(){if(d(),a){var e=setTimeout(function(){return i.hide(t,s)},a);t.setAttribute("data-hidedelay",e)}else i.hide(t,s)};return{handleTrigger:function(e){var n="click"===e.type,i="visible"===t.style.visibility,r="persistent"!==u;n&&i&&r?m():h(e)},handleMouseleave:function(n){if(c){var i=function n(i){var r=o(i.target,O.popper)===t,a=o(i.target,O.el)===e,s=-1!==p.indexOf("click");if(!(r||a||s)){var l=t.getBoundingClientRect();Math.abs(i.clientY-l.bottom)>=2&&Math.abs(i.clientY-l.top)>=2&&Math.abs(i.clientX-l.left)>=2&&Math.abs(i.clientX-l.right)>=2&&(document.removeEventListener("mousemove",n),m())}};return document.addEventListener("mousemove",i)}m()},handleBlur:function(e){!S.touchUser&&e.relatedTarget&&(o(e.relatedTarget,O.popper)||m())}}}},{key:"_createTooltips",value:function(t){var n=this;t.forEach(function(e){var t=n._applyIndividualSettings(e),i=t.html,r=t.trigger,o=e.title;if(o||i){var a=S.idCounter;e.setAttribute("data-tooltipped",""),e.setAttribute("aria-describedby","tippy-tooltip-"+a),p(e);var s=l(a,o,t),d=n._getEventListenerHandlers(e,s,t),f=[];r.trim().split(" ").forEach(function(t){return f=f.concat(c(t,e,d))}),u({id:a,el:e,popper:s,settings:t,listeners:f,tippyInstance:n}),S.idCounter++}}),e.store=x}},{key:"getPopperElement",value:function(e){try{return a(x.refs,function(t){return t.el===e}).popper}catch(e){throw new Error("[Tippy error]: Element does not exist in any Tippy instances")}}},{key:"getTooltippedElement",value:function(e){try{return a(x.refs,function(t){return t.popper===e}).el}catch(e){throw new Error("[Tippy error]: Popper does not exist in any Tippy instances")}}},{key:"show",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.settings.duration,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=a(x.refs,function(t){return t.popper===e}),o=e.querySelector(O.tooltip),s=e.querySelector(O.circle);i&&(this.callbacks.beforeShown(),y(r,function(){t.hide(e,0,!1),setTimeout(function(){r.hidden||t.show(e,n,!1)},0)})),!document.body.contains(e)&&w(r),r.settings.interactive&&r.el.classList.add("active"),r.hidden=!1,e.style.visibility="visible",e.setAttribute("aria-hidden","false"),h(o,s),m([o,s],function(e){e.remove("leave"),e.add("enter")}),v([o,s],n),g(r,n,function(){b(e,"show")&&!r.onShownFired&&(!r.settings.transitionFlip&&o.classList.add("tippy-notransition"),r.settings.interactive&&e.focus(),r.onShownFired=!0,i&&t.callbacks.shown())})}},{key:"hide",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.settings.duration,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=a(x.refs,function(t){return t.popper===e}),s=e.querySelector(O.tooltip),l=e.querySelector(O.circle);e.querySelector(O.content);r&&(this.callbacks.beforeHidden(),o.el.classList.remove("active"),o.onShownFired=!1,o.flipped=o.settings.position!==e.getAttribute("x-placement"),o.hidden=!0,!o.settings.transitionFlip&&s.classList.remove("tippy-notransition")),e.style.visibility="hidden",e.setAttribute("aria-hidden","true"),n===M.hideDuration?n=parseInt(s.style[i("transitionDuration")]):v([s,l],n),m([s,l],function(e){e.remove("enter"),e.add("leave")}),o.settings.html&&-1!==o.settings.trigger.indexOf("click")&&d(o.el)&&o.el.focus(),g(o,n,function(){b(e,"hide")&&document.body.contains(e)&&(o.popperInstance.disableEventListeners(),o.flipped=o.settings.position!==e.getAttribute("x-placement"),document.body.removeChild(e),r&&t.callbacks.hidden())})}},{key:"destroy",value:function(e){var t=a(x.refs,function(t){return t.popper===e}),n=t.el,i=t.popperInstance;t.listeners.forEach(function(e){return n.removeEventListener(e.event,e.handler)}),n.removeAttribute("data-tooltipped"),n.removeAttribute("aria-describedby"),i&&i.destroy(),x.refs.splice(x.refs.map(function(e){return e.popper}).indexOf(e),1)}},{key:"update",value:function(e){var t=a(x.refs,function(t){return t.popper===e}),n=e.querySelector(O.content),i=t.el,r=t.settings.html;r?n.innerHTML=r instanceof Element?r.innerHTML:document.getElementById(r.replace("#","")).innerHTML:(n.innerHTML=i.title||i.getAttribute("data-original-title"),p(i))}}]),e}()});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("popper.js")):"function"==typeof define&&define.amd?define(["popper.js"],t):e.Tippy=t(e.Popper)}(this,function(e){"use strict";function t(){x.touchUser=!0,/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&!window.MSStream&&document.body.classList.add("tippy-touch"),document.removeEventListener("touchstart",t)}function n(e){var t=o(e.target,I.el),n=o(e.target,I.popper);if(n){if(a(M.refs,function(e){return e.popper===n}).settings.interactive)return}if(t){var i=a(M.refs,function(e){return e.el===t}),r=i.popper,s=i.settings,l=s.hideOnClick,c=s.multiple,u=s.trigger;if(!0!==l||x.touchUser||clearTimeout(r.getAttribute("data-delay")),!c&&x.touchUser||!c&&-1!==u.indexOf("click"))return A(i);if(!0!==l||-1!==u.indexOf("click"))return}!o(e.target,I.controller)&&document.body.querySelector(I.popper)&&A()}function i(e){for(var t=[!1,"webkit"],n=e.charAt(0).toUpperCase()+e.slice(1),i=0;i<t.length;i++){var r=t[i],o=r?""+r+n:e;if(void 0!==window.document.body.style[o])return o}return null}function r(e){return e.replace(/-.+/,"")}function o(e,t){return Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length;--n>=0&&t.item(n)!==this;);return n>-1}),Element.prototype.closest||(Element.prototype.closest=function(e){for(var t=this;t;){if(t.matches(e))return t;t=t.parentElement}}),e.closest(t)}function a(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function s(t){var n=t.settings,o=n.position,a=n.popperOptions,s=n.offset,l=n.distance,c=t.el,u=t.popper,p=u.querySelector(I.tooltip),d=S({placement:o},a||{},{modifiers:S({},a?a.modifiers:{},{flip:S({padding:parseInt(l)+5},a&&a.modifiers?a.modifiers.flip:{}),offset:S({offset:parseInt(s)},a&&a.modifiers?a.modifiers.offset:{})}),onUpdate:function(){u.style[i("transitionDuration")]="",p.style.top="",p.style.bottom="",p.style.left="",p.style.right="",p.style[r(u.getAttribute("x-placement"))]=-(l-C.distance)+"px"}});return new e(c,u,d)}function l(e,t,n){var i=n.position,o=n.distance,a=n.arrow,s=n.animateFill,l=n.inertia,c=n.animation,u=n.arrowSize,p=n.size,d=n.theme,f=n.html,h=document.createElement("div");h.setAttribute("class","tippy-popper"),h.setAttribute("role","tooltip"),h.setAttribute("aria-hidden","true"),h.setAttribute("id","tippy-tooltip-"+e);var m=document.createElement("div");if(m.setAttribute("class","tippy-tooltip tippy-tooltip--"+p+" "+d+"-theme leave"),m.setAttribute("data-animation",c),a){var v=document.createElement("div");v.setAttribute("class","arrow-"+u),v.setAttribute("x-arrow",""),m.appendChild(v)}if(s){m.setAttribute("data-animatefill","");var y=document.createElement("div");y.setAttribute("class","leave"),y.setAttribute("x-circle",""),m.appendChild(y)}l&&m.setAttribute("data-inertia","");var g=document.createElement("div");if(g.setAttribute("class","tippy-tooltip-content"),f){var b=void 0;f instanceof Element?(g.innerHTML=f.innerHTML,b=f.id||"tippy-html-template"):(g.innerHTML=document.getElementById(f.replace("#","")).innerHTML,b=f),h.classList.add("html-template"),h.setAttribute("tabindex","0"),m.setAttribute("data-template-id",b)}else g.innerHTML=t;return m.style[r(i)]=-(o-C.distance)+"px",m.appendChild(g),h.appendChild(m),h}function c(e,t,n){var i=[];return"manual"===e?i:(t.addEventListener(e,n.handleTrigger),i.push({event:e,handler:n.handleTrigger}),"mouseenter"===e&&(t.addEventListener("mouseleave",n.handleMouseleave),i.push({event:"mouseleave",handler:n.handleMouseleave})),"focus"===e&&(t.addEventListener("blur",n.handleBlur),i.push({event:"blur",handler:n.handleBlur})),i)}function u(e){M.refs.push(e)}function p(e){var t=e.title;e.setAttribute("data-original-title",t||"html"),e.removeAttribute("title")}function d(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}function f(e){var t=this,n=a(M.refs,function(e){return e.el===t}),o=n.popper,s=r(o.getAttribute("x-placement")),l=Math.round(o.offsetWidth/2),c=Math.round(o.offsetHeight/2),u=document.documentElement.offsetWidth||document.body.offsetWidth,p=e.pageX,d=e.pageY,f=void 0,h=void 0;"top"===s?(f=p-l,h=d-2.5*c):"left"===s?(f=p-2*l-15,h=d-c):"right"===s?(f=p+c,h=d-c):"bottom"===s&&(f=p-l,h=d+c/1.5),"top"!==s&&"bottom"!==s||(p+5+l>u?f=u-5-2*l:p-5-l<0&&(f=5)),o.style[i("transform")]="translate3d("+f+"px, "+h+"px, 0)"}function h(e,t){t?window.getComputedStyle(t)[i("transform")]:window.getComputedStyle(e).opacity}function m(e,t){e.forEach(function(e){e&&t(e.classList)})}function v(e,t){e.forEach(function(e){e&&(e.hasAttribute("x-circle")&&(t/=1.1),e.style[i("transitionDuration")]=t+"ms")})}function y(e,t){setTimeout(function(){var n=e.settings.position!==e.popper.getAttribute("x-placement");!e.flipped&&n?(e.flipped=!0,t()):e.flipped&&!n&&(e.flipped=!1,t())},0)}function g(e,t,n){var i=e.popper.querySelector(I.tooltip),r=!1,o=function e(t){t.target===i&&(r=!0,i.removeEventListener("webkitTransitionEnd",e),i.removeEventListener("transitionend",e),n())};i.addEventListener("webkitTransitionEnd",o),i.addEventListener("transitionend",o),clearTimeout(e.transitionendTimeout),e.transitionendTimeout=setTimeout(function(){r||n()},t)}function b(e,t){var n=e.style.visibility;return"show"===t?"visible"===n:"hidden"===n}function w(e){var t=e.el,n=(e.popper,e.settings.followCursor);document.body.appendChild(e.popper),e.popperInstance?(e.popperInstance.update(),n||e.popperInstance.enableEventListeners()):(e.popperInstance=s(e),n&&!x.touchUser&&(t.addEventListener("mousemove",f),e.popperInstance.disableEventListeners()))}function E(e){var t=e.popper,n=e.popperInstance,r=e.settings.stickyDuration,o=function(){return t.style[i("transitionDuration")]=r+"ms"},a=function(){return t.style[i("transitionDuration")]=""},s=function t(){n&&n.scheduleUpdate(),o();var i=!e.hidden;window.requestAnimationFrame?i?window.requestAnimationFrame(t):(window.cancelAnimationFrame(t),a()):i?setTimeout(t,20):a()};setTimeout(s,0)}function A(e){M.refs.forEach(function(t){var n=t.popper,i=t.tippyInstance,r=t.settings,o=r.hideOnClick,a=r.hideDuration,s=r.trigger;if(document.body.contains(n)){var l=!0===o||-1!==s.indexOf("focus"),c=!e||n!==e.popper;l&&c&&i.hide(n,a)}})}function L(e){return e instanceof Element?[e]:[].slice.call(document.querySelectorAll(e))}e="default"in e?e.default:e;var T=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},k=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},x={touchUser:!1,idCounter:0},M={refs:[]},C={html:!1,position:"top",animation:"shift",animateFill:!0,arrow:!1,arrowSize:"regular",delay:0,hideDelay:0,trigger:"mouseenter focus",duration:375,hideDuration:375,interactive:!1,theme:"dark",size:"regular",distance:10,offset:0,hideOnClick:!0,multiple:!1,followCursor:!1,inertia:!1,transitionFlip:!0,sticky:!1,stickyDuration:200,popperOptions:{}},O=Object.keys(C),I={popper:".tippy-popper",tooltip:".tippy-tooltip",content:".tippy-tooltip-content",circle:"[x-circle]",arrow:"[x-arrow]",el:"[data-tooltipped]",controller:"[data-tippy-controller]"},H=!("addEventListener"in window)||/MSIE 9/i.test(navigator.userAgent)||window.operamini;return document.addEventListener&&(document.addEventListener("click",n),document.addEventListener("touchstart",t)),function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(T(this,e),!H){this.selector=t,this.settings=S(JSON.parse(JSON.stringify(C)),n),this.callbacks={wait:n.wait,beforeShown:n.beforeShown||new Function,shown:n.shown||new Function,beforeHidden:n.beforeHidden||new Function,hidden:n.hidden||new Function};var i=L(t);this._createTooltips(i)}}return k(e,[{key:"_applyIndividualSettings",value:function(e){var t=this,n={};return O.forEach(function(i){var r=e.getAttribute("data-"+i.toLowerCase())||t.settings[i];"false"===r&&(r=!1),n[i]=r}),n.arrow&&(n.animateFill=!1),S({},this.settings,n)}},{key:"_getEventListenerHandlers",value:function(e,t,n){var i=this,r=n.delay,a=n.hideDelay,s=n.hideDuration,l=n.duration,c=n.interactive,u=n.hideOnClick,p=n.trigger,d=function(){clearTimeout(t.getAttribute("data-delay")),clearTimeout(t.getAttribute("data-hidedelay"))},f=function(){if(d(),"visible"!==t.style.visibility)if(r){var e=setTimeout(function(){return i.show(t,l)},r);t.setAttribute("data-delay",e)}else i.show(t,l)},h=function(e){return i.callbacks.wait?i.callbacks.wait(f,e):f()},m=function(){if(d(),a){var e=setTimeout(function(){return i.hide(t,s)},a);t.setAttribute("data-hidedelay",e)}else i.hide(t,s)};return{handleTrigger:function(e){var n="click"===e.type,i="visible"===t.style.visibility,r="persistent"!==u;n&&i&&r?m():h(e)},handleMouseleave:function(n){if(c){var i=function n(i){var r=o(i.target,I.popper)===t,a=o(i.target,I.el)===e,s=-1!==p.indexOf("click");if(!(r||a||s)){var l=t.getBoundingClientRect();Math.abs(i.clientY-l.bottom)>=2&&Math.abs(i.clientY-l.top)>=2&&Math.abs(i.clientX-l.left)>=2&&Math.abs(i.clientX-l.right)>=2&&(document.removeEventListener("mousemove",n),m())}};return document.addEventListener("mousemove",i)}m()},handleBlur:function(e){!x.touchUser&&e.relatedTarget&&(o(e.relatedTarget,I.popper)||m())}}}},{key:"_createTooltips",value:function(t){var n=this;t.forEach(function(e){var t=n._applyIndividualSettings(e),i=t.html,r=t.trigger,o=e.title;if(o||i){var a=x.idCounter;e.setAttribute("data-tooltipped",""),e.setAttribute("aria-describedby","tippy-tooltip-"+a),p(e);var s=l(a,o,t),d=n._getEventListenerHandlers(e,s,t),f=[];r.trim().split(" ").forEach(function(t){return f=f.concat(c(t,e,d))}),u({id:a,el:e,popper:s,settings:t,listeners:f,tippyInstance:n}),x.idCounter++}}),e.store=M}},{key:"getPopperElement",value:function(e){try{return a(M.refs,function(t){return t.el===e}).popper}catch(e){throw new Error("[Tippy error]: Element does not exist in any Tippy instances")}}},{key:"getTooltippedElement",value:function(e){try{return a(M.refs,function(t){return t.popper===e}).el}catch(e){throw new Error("[Tippy error]: Popper does not exist in any Tippy instances")}}},{key:"show",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.settings.duration,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=a(M.refs,function(t){return t.popper===e}),o=e.querySelector(I.tooltip),s=e.querySelector(I.circle);i&&(this.callbacks.beforeShown(),y(r,function(){t.hide(e,0,!1),setTimeout(function(){r.hidden||t.show(e,n,!1)},0)})),r.hidden=!1,e.style.visibility="visible",e.setAttribute("aria-hidden","false"),r.settings.interactive&&r.el.classList.add("active"),!document.body.contains(e)&&w(r),r.settings.sticky&&E(r),h(o,s),m([o,s],function(e){e.remove("leave"),e.add("enter")}),v([o,s],n),g(r,n,function(){b(e,"show")&&!r.onShownFired&&(!r.settings.transitionFlip&&o.classList.add("tippy-notransition"),r.settings.interactive&&e.focus(),r.onShownFired=!0,i&&t.callbacks.shown())})}},{key:"hide",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.settings.duration,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=a(M.refs,function(t){return t.popper===e}),s=e.querySelector(I.tooltip),l=e.querySelector(I.circle);e.querySelector(I.content);r&&(this.callbacks.beforeHidden(),o.el.classList.remove("active"),o.onShownFired=!1,o.flipped=o.settings.position!==e.getAttribute("x-placement"),o.hidden=!0,!o.settings.transitionFlip&&s.classList.remove("tippy-notransition")),e.style.visibility="hidden",e.setAttribute("aria-hidden","true"),n===C.hideDuration?n=parseInt(s.style[i("transitionDuration")]):v([s,l],n),m([s,l],function(e){e.remove("enter"),e.add("leave")}),o.settings.html&&-1!==o.settings.trigger.indexOf("click")&&d(o.el)&&o.el.focus(),g(o,n,function(){b(e,"hide")&&document.body.contains(e)&&(o.popperInstance.disableEventListeners(),o.flipped=o.settings.position!==e.getAttribute("x-placement"),document.body.removeChild(e),r&&t.callbacks.hidden())})}},{key:"destroy",value:function(e){var t=a(M.refs,function(t){return t.popper===e}),n=t.el,i=t.popperInstance;t.listeners.forEach(function(e){return n.removeEventListener(e.event,e.handler)}),n.removeAttribute("data-tooltipped"),n.removeAttribute("aria-describedby"),i&&i.destroy(),M.refs.splice(M.refs.map(function(e){return e.popper}).indexOf(e),1)}},{key:"update",value:function(e){var t=a(M.refs,function(t){return t.popper===e}),n=e.querySelector(I.content),i=t.el,r=t.settings.html;r?n.innerHTML=r instanceof Element?r.innerHTML:document.getElementById(r.replace("#","")).innerHTML:(n.innerHTML=i.title||i.getAttribute("data-original-title"),p(i))}}]),e}()});
{
"name": "tippy.js",
"version": "0.12.2",
"version": "0.13.0",
"description": "Pure JS Tooltip Library",

@@ -5,0 +5,0 @@ "main": "dist/tippy.js",

@@ -5,3 +5,3 @@ import Popper from 'popper.js'

* @file tippy.js | Pure JS Tooltip Library
* @version 0.12.2
* @version 0.13.0
* @license MIT

@@ -45,2 +45,4 @@ */

transitionFlip: true,
sticky: false,
stickyDuration: 200,
popperOptions: {}

@@ -225,2 +227,3 @@ }

onUpdate() {
popper.style[prefix('transitionDuration')] = ''
tooltip.style.top = ''

@@ -539,3 +542,3 @@ tooltip.style.bottom = ''

const { popperInstance, el, popper } = ref
const { el, popper } = ref
const shouldFollowCursor = ref.settings.followCursor

@@ -545,3 +548,3 @@

if (!popperInstance) {
if (!ref.popperInstance) {
// Create instance if it hasn't been created yet

@@ -557,4 +560,4 @@ ref.popperInstance = createPopperInstance(ref)

} else {
popperInstance.update()
!shouldFollowCursor && popperInstance.enableEventListeners()
ref.popperInstance.update()
shouldFollowCursor || ref.popperInstance.enableEventListeners()
}

@@ -564,2 +567,38 @@ }

/**
* Updates a popper's position on each animation frame to make it stick to a moving element
* @param {Object} ref
*/
function sticky(ref) {
const { popper, popperInstance, settings: { stickyDuration } } = ref
const applyTransitionDuration = () =>
popper.style[prefix('transitionDuration')] = `${stickyDuration}ms`
const removeTransitionDuration = () =>
popper.style[prefix('transitionDuration')] = ''
const updatePosition = () => {
popperInstance && popperInstance.scheduleUpdate()
applyTransitionDuration()
const isVisible = !ref.hidden
if (window.requestAnimationFrame) {
if (isVisible) {
window.requestAnimationFrame(updatePosition)
} else {
window.cancelAnimationFrame(updatePosition)
removeTransitionDuration()
}
} else {
isVisible ? setTimeout(updatePosition, 20) : removeTransitionDuration()
}
}
// Wait until Popper's position has been updated initially
setTimeout(updatePosition, 0)
}
/**
* Hides all poppers

@@ -601,3 +640,3 @@ * @param {Object} currentRef

* Private methods are prefixed with an underscore _
* @param {String|Element|Popper} selector
* @param {String|Element} selector
* @param {Object} settings (optional) - the object of settings to be applied to the instance

@@ -843,11 +882,14 @@ */

!document.body.contains(popper) && awakenPopper(ref)
ref.hidden = false
popper.style.visibility = 'visible'
popper.setAttribute('aria-hidden', 'false')
// Interactive tooltips receive a class of 'active'
ref.settings.interactive && ref.el.classList.add('active')
ref.hidden = false
popper.style.visibility = 'visible'
popper.setAttribute('aria-hidden', 'false')
!document.body.contains(popper) && awakenPopper(ref)
// Update popper's position on every animation frame
ref.settings.sticky && sticky(ref)
// Repaint/reflow is required for CSS transition when appending

@@ -854,0 +896,0 @@ triggerReflow(tooltip, circle)

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc