UNPKG

tippy.js

Version:

Vanilla JS Tooltip & Popover Library

3 lines (2 loc) 39.4 kB
(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){return e&&'[object Function]'==={}.toString.call(e)}function t(e,t){if(1!==e.nodeType)return[];var o=getComputedStyle(e,null);return t?o[t]:o}function o(e){return'HTML'===e.nodeName?e:e.parentNode||e.host}function r(e){if(!e)return document.body;switch(e.nodeName){case'HTML':case'BODY':return e.ownerDocument.body;case'#document':return e.body;}var i=t(e),n=i.overflow,p=i.overflowX,s=i.overflowY;return /(auto|scroll|overlay)/.test(n+s+p)?e:r(o(e))}function n(e){return 11===e?me:10===e?he:me||he}function p(e){if(!e)return document.documentElement;for(var o=n(10)?document.body:null,r=e.offsetParent;r===o&&e.nextElementSibling;)r=(e=e.nextElementSibling).offsetParent;var i=r&&r.nodeName;return i&&'BODY'!==i&&'HTML'!==i?-1!==['TD','TABLE'].indexOf(r.nodeName)&&'static'===t(r,'position')?p(r):r:e?e.ownerDocument.documentElement:document.documentElement}function s(e){var t=e.nodeName;return'BODY'!==t&&('HTML'===t||p(e.firstElementChild)===e)}function a(e){return null===e.parentNode?e:a(e.parentNode)}function d(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var o=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=o?e:t,i=o?t:e,n=document.createRange();n.setStart(r,0),n.setEnd(i,0);var l=n.commonAncestorContainer;if(e!==l&&t!==l||r.contains(i))return s(l)?l:p(l);var c=a(e);return c.host?d(c.host,t):d(e,a(t).host)}function l(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:'top',o='top'===t?'scrollTop':'scrollLeft',r=e.nodeName;if('BODY'===r||'HTML'===r){var i=e.ownerDocument.documentElement,n=e.ownerDocument.scrollingElement||i;return n[o]}return e[o]}function c(e,t){var o=!!(2<arguments.length&&void 0!==arguments[2])&&arguments[2],r=l(t,'top'),i=l(t,'left'),n=o?-1:1;return e.top+=r*n,e.bottom+=r*n,e.left+=i*n,e.right+=i*n,e}function f(e,t){var o='x'===t?'Left':'Top',r='Left'===o?'Right':'Bottom';return parseFloat(e['border'+o+'Width'],10)+parseFloat(e['border'+r+'Width'],10)}function m(e,t,o,r){return oe(t['offset'+e],t['scroll'+e],o['client'+e],o['offset'+e],o['scroll'+e],n(10)?parseInt(o['offset'+e])+parseInt(r['margin'+('Height'===e?'Top':'Left')])+parseInt(r['margin'+('Height'===e?'Bottom':'Right')]):0)}function h(e){var t=e.body,o=e.documentElement,r=n(10)&&getComputedStyle(o);return{height:m('Height',t,o,r),width:m('Width',t,o,r)}}function u(e){return ye({},e,{right:e.left+e.width,bottom:e.top+e.height})}function b(e){var o={};try{if(n(10)){o=e.getBoundingClientRect();var r=l(e,'top'),i=l(e,'left');o.top+=r,o.left+=i,o.bottom+=r,o.right+=i}else o=e.getBoundingClientRect()}catch(t){}var p={left:o.left,top:o.top,width:o.right-o.left,height:o.bottom-o.top},s='HTML'===e.nodeName?h(e.ownerDocument):{},a=s.width||e.clientWidth||p.right-p.left,d=s.height||e.clientHeight||p.bottom-p.top,c=e.offsetWidth-a,m=e.offsetHeight-d;if(c||m){var b=t(e);c-=f(b,'x'),m-=f(b,'y'),p.width-=c,p.height-=m}return u(p)}function g(e,o){var i=!!(2<arguments.length&&void 0!==arguments[2])&&arguments[2],p=n(10),s='HTML'===o.nodeName,a=b(e),d=b(o),l=r(e),f=t(o),m=parseFloat(f.borderTopWidth,10),h=parseFloat(f.borderLeftWidth,10);i&&s&&(d.top=oe(d.top,0),d.left=oe(d.left,0));var g=u({top:a.top-d.top-m,left:a.left-d.left-h,width:a.width,height:a.height});if(g.marginTop=0,g.marginLeft=0,!p&&s){var y=parseFloat(f.marginTop,10),v=parseFloat(f.marginLeft,10);g.top-=m-y,g.bottom-=m-y,g.left-=h-v,g.right-=h-v,g.marginTop=y,g.marginLeft=v}return(p&&!i?o.contains(l):o===l&&'BODY'!==l.nodeName)&&(g=c(g,o)),g}function y(e){var t=!!(1<arguments.length&&void 0!==arguments[1])&&arguments[1],o=e.ownerDocument.documentElement,r=g(e,o),i=oe(o.clientWidth,window.innerWidth||0),n=oe(o.clientHeight,window.innerHeight||0),p=t?0:l(o),s=t?0:l(o,'left'),a={top:p-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:n};return u(a)}function v(e){var r=e.nodeName;return'BODY'!==r&&'HTML'!==r&&('fixed'===t(e,'position')||v(o(e)))}function w(e){if(!e||!e.parentElement||n())return document.documentElement;for(var o=e.parentElement;o&&'none'===t(o,'transform');)o=o.parentElement;return o||document.documentElement}function E(e,t,i,n){var p=!!(4<arguments.length&&void 0!==arguments[4])&&arguments[4],s={top:0,left:0},a=p?w(e):d(e,t);if('viewport'===n)s=y(a,p);else{var l;'scrollParent'===n?(l=r(o(t)),'BODY'===l.nodeName&&(l=e.ownerDocument.documentElement)):'window'===n?l=e.ownerDocument.documentElement:l=n;var c=g(l,a,p);if('HTML'===l.nodeName&&!v(a)){var f=h(e.ownerDocument),m=f.height,u=f.width;s.top+=c.top-c.marginTop,s.bottom=m+c.top,s.left+=c.left-c.marginLeft,s.right=u+c.left}else s=c}i=i||0;var b='number'==typeof i;return s.left+=b?i:i.left||0,s.top+=b?i:i.top||0,s.right-=b?i:i.right||0,s.bottom-=b?i:i.bottom||0,s}function x(e){var t=e.width,o=e.height;return t*o}function L(e,t,o,r,i){var n=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf('auto'))return e;var p=E(o,r,n,i),s={top:{width:p.width,height:t.top-p.top},right:{width:p.right-t.right,height:p.height},bottom:{width:p.width,height:p.bottom-t.bottom},left:{width:t.left-p.left,height:p.height}},a=Object.keys(s).map(function(e){return ye({key:e},s[e],{area:x(s[e])})}).sort(function(e,t){return t.area-e.area}),d=a.filter(function(e){var t=e.width,r=e.height;return t>=o.clientWidth&&r>=o.clientHeight}),l=0<d.length?d[0].key:a[0].key,c=e.split('-')[1];return l+(c?'-'+c:'')}function O(e,t,o){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null,i=r?w(t):d(t,o);return g(o,i,r)}function C(e){var t=getComputedStyle(e),o=parseFloat(t.marginTop)+parseFloat(t.marginBottom),r=parseFloat(t.marginLeft)+parseFloat(t.marginRight),i={width:e.offsetWidth+r,height:e.offsetHeight+o};return i}function T(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 A(e,t,o){o=o.split('-')[0];var r=C(e),i={width:r.width,height:r.height},n=-1!==['right','left'].indexOf(o),p=n?'top':'left',s=n?'left':'top',a=n?'height':'width',d=n?'width':'height';return i[p]=t[p]+t[a]/2-r[a]/2,i[s]=o===s?t[s]-r[d]:t[T(s)],i}function k(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function P(e,t,o){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===o});var r=k(e,function(e){return e[t]===o});return e.indexOf(r)}function S(t,o,r){var i=void 0===r?t:t.slice(0,P(t,'name',r));return i.forEach(function(t){t['function']&&console.warn('`modifier.function` is deprecated, use `modifier.fn`!');var r=t['function']||t.fn;t.enabled&&e(r)&&(o.offsets.popper=u(o.offsets.popper),o.offsets.reference=u(o.offsets.reference),o=r(o,t))}),o}function D(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=O(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=L(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=A(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?'fixed':'absolute',e=S(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function I(e,t){return e.some(function(e){var o=e.name,r=e.enabled;return r&&o===t})}function N(e){for(var t=[!1,'ms','Webkit','Moz','O'],o=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],n=i?''+i+o:e;if('undefined'!=typeof document.body.style[n])return n}return null}function H(){return this.state.isDestroyed=!0,I(this.modifiers,'applyStyle')&&(this.popper.removeAttribute('x-placement'),this.popper.style.position='',this.popper.style.top='',this.popper.style.left='',this.popper.style.right='',this.popper.style.bottom='',this.popper.style.willChange='',this.popper.style[N('transform')]=''),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function R(e){var t=e.ownerDocument;return t?t.defaultView:window}function B(e,t,o,i){var n='BODY'===e.nodeName,p=n?e.ownerDocument.defaultView:e;p.addEventListener(t,o,{passive:!0}),n||B(r(p.parentNode),t,o,i),i.push(p)}function M(e,t,o,i){o.updateBound=i,R(e).addEventListener('resize',o.updateBound,{passive:!0});var n=r(e);return B(n,'scroll',o.updateBound,o.scrollParents),o.scrollElement=n,o.eventsEnabled=!0,o}function W(){this.state.eventsEnabled||(this.state=M(this.reference,this.options,this.state,this.scheduleUpdate))}function _(e,t){return R(e).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 F(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=_(this.reference,this.state))}function U(e){return''!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function z(e,t){Object.keys(t).forEach(function(o){var r='';-1!==['width','height','top','right','bottom','left'].indexOf(o)&&U(t[o])&&(r='px'),e.style[o]=t[o]+r})}function V(e,t){Object.keys(t).forEach(function(o){var r=t[o];!1===r?e.removeAttribute(o):e.setAttribute(o,t[o])})}function Y(e,t,o){var r=k(e,function(e){var o=e.name;return o===t}),i=!!r&&e.some(function(e){return e.name===o&&e.enabled&&e.order<r.order});if(!i){var n='`'+t+'`';console.warn('`'+o+'`'+' modifier is required by '+n+' modifier in order to work, be sure to include it before '+n+'!')}return i}function q(e){return'end'===e?'start':'start'===e?'end':e}function X(e){var t=!!(1<arguments.length&&void 0!==arguments[1])&&arguments[1],o=we.indexOf(e),r=we.slice(o+1).concat(we.slice(0,o));return t?r.reverse():r}function j(e,t,o,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),n=+i[1],p=i[2];if(!n)return e;if(0===p.indexOf('%')){var s;switch(p){case'%p':s=o;break;case'%':case'%r':default:s=r;}var a=u(s);return a[t]/100*n}if('vh'===p||'vw'===p){var d;return d='vh'===p?oe(document.documentElement.clientHeight,window.innerHeight||0):oe(document.documentElement.clientWidth,window.innerWidth||0),d/100*n}return n}function K(e,t,o,r){var i=[0,0],n=-1!==['right','left'].indexOf(r),p=e.split(/(\+|\-)/).map(function(e){return e.trim()}),s=p.indexOf(k(p,function(e){return-1!==e.search(/,|\s/)}));p[s]&&-1===p[s].indexOf(',')&&console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.');var a=/\s*,\s*|\s+/,d=-1===s?[p]:[p.slice(0,s).concat([p[s].split(a)[0]]),[p[s].split(a)[1]].concat(p.slice(s+1))];return d=d.map(function(e,r){var i=(1===r?!n:n)?'height':'width',p=!1;return e.reduce(function(e,t){return''===e[e.length-1]&&-1!==['+','-'].indexOf(t)?(e[e.length-1]=t,p=!0,e):p?(e[e.length-1]+=t,p=!1,e):e.concat(t)},[]).map(function(e){return j(e,i,t,o)})}),d.forEach(function(e,t){e.forEach(function(o,r){U(o)&&(i[t]+=o*('-'===e[r-1]?-1:1))})}),i}function G(e,t){var o=t.offset,r=e.placement,i=e.offsets,n=i.popper,p=i.reference,s=r.split('-')[0],a=void 0;return a=U(+o)?[+o,0]:K(o,n,p,s),'left'===s?(n.top+=a[0],n.left-=a[1]):'right'===s?(n.top+=a[0],n.left+=a[1]):'top'===s?(n.left+=a[0],n.top-=a[1]):'bottom'===s&&(n.left+=a[0],n.top+=a[1]),e.popper=n,e}function Q(e){document.addEventListener('click',Ot,e),document.addEventListener('touchstart',Et),window.addEventListener('blur',Ct),window.addEventListener('resize',Tt),!vt&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)&&document.addEventListener('pointerdown',Et)}function J(e,t){function o(){st(function(){F=!1})}function r(e){var t=H=e,o=t.clientX,r=t.clientY;if(X.popperInstance){var i=X.reference.getBoundingClientRect(),n=X.props.followCursor,p='horizontal'===n,s='vertical'===n;X.popperInstance.reference={getBoundingClientRect:function(){return{width:0,height:0,top:p?i.top:r,bottom:p?i.bottom:r,left:s?i.left:o,right:s?i.right:o}},clientWidth:0,clientHeight:0},X.popperInstance.scheduleUpdate()}}function i(e){var t=Ge(e.target,X.props.target);t&&!t._tippy&&(J(t,ie({},X.props,{target:'',showOnInit:!0})),n(e))}function n(e){if(T(),!X.state.isVisible){if(X.props.target)return i(e);if(M=!0,X.props.wait)return X.props.wait(X,e);y()&&(q.arrow&&(q.arrow.style.margin='0'),document.addEventListener('mousemove',r));var t=Be(X.props.delay,0,ne.delay);t?R=setTimeout(function(){k()},t):k()}}function p(){if(T(),!X.state.isVisible)return s();M=!1;var e=Be(X.props.delay,1,ne.delay);e?B=setTimeout(function(){X.state.isVisible&&P()},e):P()}function s(){document.removeEventListener('mousemove',r),H=null}function a(){document.body.removeEventListener('mouseleave',p),document.removeEventListener('mousemove',z)}function d(e){!X.state.isEnabled||u(e)||(!X.state.isVisible&&(N=e),'click'===e.type&&!1!==X.props.hideOnClick&&X.state.isVisible?p():n(e))}function l(e){var t=Qe(e.target,function(e){return e._tippy}),o=Ge(e.target,Le.POPPER)===X.popper,r=t===X.reference;o||r||at(lt(X.popper),X.popper.getBoundingClientRect(),e,X.props)&&(a(),p())}function c(e){return u(e)?void 0:X.props.interactive?(document.body.addEventListener('mouseleave',p),void document.addEventListener('mousemove',z)):void p()}function f(e){if(e.target===X.reference){if(X.props.interactive){if(!e.relatedTarget)return;if(Ge(e.relatedTarget,Le.POPPER))return}p()}}function m(e){Ge(e.target,X.props.target)&&n(e)}function h(e){Ge(e.target,X.props.target)&&p()}function u(e){var t=-1<e.type.indexOf('touch'),o=vt&&wt&&X.props.touchHold&&!t,r=wt&&!X.props.touchHold&&t;return o||r}function b(){var e=X.popperChildren.tooltip,t=X.props.popperOptions,o=Le['round'===X.props.arrowType?'ROUND_ARROW':'ARROW'],r=e.querySelector(o),i=ie({placement:X.props.placement},t||{},{modifiers:ie({},t?t.modifiers:{},{arrow:ie({element:o},t&&t.modifiers?t.modifiers.arrow:{}),flip:ie({enabled:X.props.flip,padding:X.props.distance+5,behavior:X.props.flipBehavior},t&&t.modifiers?t.modifiers.flip:{}),offset:ie({offset:X.props.offset},t&&t.modifiers?t.modifiers.offset:{})}),onCreate:function(){e.style[lt(X.popper)]=dt(X.props.distance,ne.distance),r&&X.props.arrowTransform&&it(r,X.props.arrowTransform)},onUpdate:function(){var t=e.style;t.top='',t.bottom='',t.left='',t.right='',t[lt(X.popper)]=dt(X.props.distance,ne.distance),r&&X.props.arrowTransform&&it(r,X.props.arrowTransform)}}),s=new MutationObserver(function(){X.popperInstance.update()});return s.observe(X.popper,{childList:!0,subtree:!0}),I&&I.disconnect(),I=s,U||(U=!0,X.popper.addEventListener('mouseenter',function(e){X.props.interactive&&X.state.isVisible&&'mouseenter'===N.type&&n(e)}),X.popper.addEventListener('mouseleave',function(e){X.props.interactive&&'mouseenter'===N.type&&0===X.props.interactiveDebounce&&at(lt(X.popper),X.popper.getBoundingClientRect(),e,X.props)&&p()})),new xe(X.reference,X.popper,i)}function g(e){if(X.popperInstance?(!y()&&X.popperInstance.scheduleUpdate(),X.props.livePlacement&&!y()&&X.popperInstance.enableEventListeners()):(X.popperInstance=b(),!X.props.livePlacement&&X.popperInstance.disableEventListeners()),X.popperInstance.reference=X.reference,y()){X.popperChildren.arrow&&(X.popperChildren.arrow.style.margin='');var t=Be(X.props.delay,0,ne.delay);N.type&&r(t&&H?H:N)}pt(X.popperInstance,e),X.props.appendTo.contains(X.popper)||(X.props.appendTo.appendChild(X.popper),X.props.onMount(X),X.state.isMounted=!0)}function y(){return X.props.followCursor&&!wt&&'focus'!==N.type}function v(){Pe([X.popper],gt?0:X.props.updateDuration);(function e(){X.popperInstance&&X.popperInstance.scheduleUpdate(),X.state.isMounted?requestAnimationFrame(e):Pe([X.popper],0)})()}function w(e,t){x(e,function(){!X.state.isVisible&&X.props.appendTo.contains(X.popper)&&t()})}function E(e,t){x(e,t)}function x(e,t){if(0===e)return t();var o=X.popperChildren.tooltip,r=function r(i){i.target===o&&(ft(o,'remove',r),t())};ft(o,'remove',W),ft(o,'add',r),W=r}function L(e,t,o){X.reference.addEventListener(e,t),o.push({eventType:e,handler:t})}function O(){_=X.props.trigger.trim().split(' ').reduce(function(e,t){return'manual'===t?e:(X.props.target?'mouseenter'===t?(L('mouseover',m,e),L('mouseout',h,e)):'focus'===t?(L('focusin',m,e),L('focusout',h,e)):'click'===t?L(t,m,e):void 0:(L(t,d,e),X.props.touchHold&&(L('touchstart',d,e),L('touchend',c,e)),'mouseenter'===t?L('mouseleave',c,e):'focus'===t?L(gt?'focusout':'blur',f,e):void 0),e)},[])}function C(){_.forEach(function(e){var t=e.eventType,o=e.handler;X.reference.removeEventListener(t,o)})}function T(){clearTimeout(R),clearTimeout(B)}function A(e){ht(e,ne);var t=X.props,o=ct(X.reference,ie({},X.props,e,{performance:!0}));o.performance=e.performance||t.performance,X.props=o,('trigger'in e||'touchHold'in e)&&(C(),O()),'interactiveDebounce'in e&&(a(),z=mt(l,e.interactiveDebounce)),Ye(X.popper,t,o),X.popperChildren=Se(X.popper),X.popperInstance&&se.some(function(t){return t in e})&&(X.popperInstance.destroy(),X.popperInstance=b(),!X.state.isVisible&&X.popperInstance.disableEventListeners(),X.props.followCursor&&H&&r(H))}function k(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:Be(X.props.duration,0,ne.duration[0]);return X.state.isDestroyed||!X.state.isEnabled||wt&&!X.props.touch?void 0:X.reference.isVirtual||document.documentElement.contains(X.reference)?X.reference.hasAttribute('disabled')?void 0:F?void(F=!1):void(!1===X.props.onShow(X)||(X.popper.style.visibility='visible',X.state.isVisible=!0,Pe([X.popper,X.popperChildren.tooltip,X.popperChildren.backdrop],0),g(function(){X.state.isVisible&&(!y()&&X.popperInstance.update(),Pe([X.popperChildren.tooltip,X.popperChildren.backdrop,X.popperChildren.content],e),X.popperChildren.backdrop&&(X.popperChildren.content.style.transitionDelay=ee(e/6)+'ms'),X.props.interactive&&X.reference.classList.add('tippy-active'),X.props.sticky&&v(),nt([X.popperChildren.tooltip,X.popperChildren.backdrop,X.popperChildren.content],'visible'),E(e,function(){0===X.props.updateDuration&&X.popperChildren.tooltip.classList.add('tippy-notransition'),X.props.interactive&&-1<['focus','click'].indexOf(N.type)&&Je(X.popper),X.reference.setAttribute('aria-describedby',X.popper.id),X.props.onShown(X),X.state.isShown=!0}))}))):S()}function P(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:Be(X.props.duration,1,ne.duration[1]);X.state.isDestroyed||!X.state.isEnabled||!1===X.props.onHide(X)||(0===X.props.updateDuration&&X.popperChildren.tooltip.classList.remove('tippy-notransition'),X.props.interactive&&X.reference.classList.remove('tippy-active'),X.popper.style.visibility='hidden',X.state.isVisible=!1,X.state.isShown=!1,Pe([X.popperChildren.tooltip,X.popperChildren.backdrop,X.popperChildren.content],e),nt([X.popperChildren.tooltip,X.popperChildren.backdrop,X.popperChildren.content],'hidden'),X.props.interactive&&!F&&-1<['focus','click'].indexOf(N.type)&&('focus'===N.type&&(F=!0),Je(X.reference)),w(e,function(){M||s(),X.reference.removeAttribute('aria-describedby'),X.popperInstance.disableEventListeners(),X.props.appendTo.removeChild(X.popper),X.state.isMounted=!1,X.props.onHidden(X)}))}function S(e){X.state.isDestroyed||(X.state.isVisible&&P(0),C(),X.reference.removeEventListener('click',o),delete X.reference._tippy,X.props.target&&e&&Te(X.reference.querySelectorAll(X.props.target)).forEach(function(e){return e._tippy&&e._tippy.destroy()}),X.popperInstance&&X.popperInstance.destroy(),I&&I.disconnect(),X.state.isDestroyed=!0)}var D=ct(e,t);if(!D.multiple&&e._tippy)return null;var I=null,N={},H=null,R=0,B=0,M=!1,W=function(){},_=[],F=!1,U=!1,z=0<D.interactiveDebounce?mt(l,D.interactiveDebounce):l,V=At++,Y=Ve(V,D),q=Se(Y),X={id:V,reference:e,popper:Y,popperChildren:q,popperInstance:null,props:D,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},clearDelayTimeouts:T,set:A,setContent:function(e){A({content:e})},show:k,hide:P,enable:function(){X.state.isEnabled=!0},disable:function(){X.state.isEnabled=!1},destroy:S};return O(),e.addEventListener('click',o),D.lazy||(X.popperInstance=b(),X.popperInstance.disableEventListeners()),D.showOnInit&&setTimeout(n,20),!D.a11y||D.target||ke(e)||e.setAttribute('tabindex','0'),e._tippy=X,Y._tippy=X,X}function Z(e,t,o){ht(t,ne),kt||(Q(Pt),kt=!0);var r=ie({},ne,t);De(e)&&je(e);var i=He(e),n=i[0],p=(o&&n?[n]:i).reduce(function(e,t){var o=t&&J(t,r);return o&&e.push(o),e},[]);return{targets:e,props:r,instances:p,destroyAll:function(){this.instances.forEach(function(e){e.destroy()}),this.instances=[]}}}for(var $=Math.min,ee=Math.round,te=Math.floor,oe=Math.max,re='3.1.1',ie=Object.assign||function(e){for(var t,o=1;o<arguments.length;o++)for(var r in t=arguments[o],t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},ne={a11y:!0,content:'',placement:'top',livePlacement:!0,trigger:'mouseenter focus',hideOnClick:!0,animation:'shift-away',animateFill:!0,arrow:!1,delay:[0,20],duration:[325,275],interactive:!1,interactiveBorder:2,interactiveDebounce:0,theme:'dark',size:'regular',distance:10,offset:0,multiple:!1,followCursor:!1,inertia:!1,updateDuration:200,sticky:!1,appendTo:function(){return document.body},zIndex:9999,touchHold:!1,performance:!1,flip:!0,flipBehavior:'flip',arrowType:'sharp',arrowTransform:'',target:'',allowHTML:!0,showOnInit:!1,popperOptions:{},lazy:!0,touch:!0,wait:null,shouldPopperHideOnBlur:function(){return!0},onShow:function(){},onShown:function(){},onHide:function(){},onHidden:function(){},onMount:function(){}},pe=function(e){ne=ie({},ne,e)},se=['placement','popperOptions','flip','flipBehavior','distance','offset'],ae='undefined'!=typeof window&&'undefined'!=typeof document,de=['Edge','Trident','Firefox'],le=0,ce=0;ce<de.length;ce+=1)if(ae&&0<=navigator.userAgent.indexOf(de[ce])){le=1;break}var i=ae&&window.Promise,fe=i?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},le))}},me=ae&&!!(window.MSInputMethodContext&&document.documentMode),he=ae&&/MSIE 10/.test(navigator.userAgent),ue=function(e,t){if(!(e instanceof t))throw new TypeError('Cannot call a class as a function')},be=function(){function e(e,t){for(var o,r=0;r<t.length;r++)o=t[r],o.enumerable=o.enumerable||!1,o.configurable=!0,'value'in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}return function(t,o,r){return o&&e(t.prototype,o),r&&e(t,r),t}}(),ge=function(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e},ye=Object.assign||function(e){for(var t,o=1;o<arguments.length;o++)for(var r in t=arguments[o],t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},ve=['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=ve.slice(3),Ee={FLIP:'flip',CLOCKWISE:'clockwise',COUNTERCLOCKWISE:'counterclockwise'},xe=function(){function t(o,r){var i=this,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};ue(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=fe(this.update.bind(this)),this.options=ye({},t.Defaults,n),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=o&&o.jquery?o[0]:o,this.popper=r&&r.jquery?r[0]:r,this.options.modifiers={},Object.keys(ye({},t.Defaults.modifiers,n.modifiers)).forEach(function(e){i.options.modifiers[e]=ye({},t.Defaults.modifiers[e]||{},n.modifiers?n.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return ye({name:e},i.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(t){t.enabled&&e(t.onLoad)&&t.onLoad(i.reference,i.popper,i.options,t,i.state)}),this.update();var p=this.options.eventsEnabled;p&&this.enableEventListeners(),this.state.eventsEnabled=p}return be(t,[{key:'update',value:function(){return D.call(this)}},{key:'destroy',value:function(){return H.call(this)}},{key:'enableEventListeners',value:function(){return W.call(this)}},{key:'disableEventListeners',value:function(){return F.call(this)}}]),t}();xe.Utils=('undefined'==typeof window?global:window).PopperUtils,xe.placements=ve,xe.Defaults={placement:'bottom',positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,o=t.split('-')[0],r=t.split('-')[1];if(r){var i=e.offsets,n=i.reference,p=i.popper,s=-1!==['bottom','top'].indexOf(o),a=s?'left':'top',d=s?'width':'height',l={start:ge({},a,n[a]),end:ge({},a,n[a]+n[d]-p[d])};e.offsets.popper=ye({},p,l[r])}return e}},offset:{order:200,enabled:!0,fn:G,offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var o=t.boundariesElement||p(e.instance.popper);e.instance.reference===o&&(o=p(o));var r=N('transform'),i=e.instance.popper.style,n=i.top,s=i.left,a=i[r];i.top='',i.left='',i[r]='';var d=E(e.instance.popper,e.instance.reference,t.padding,o,e.positionFixed);i.top=n,i.left=s,i[r]=a,t.boundaries=d;var l=t.priority,c=e.offsets.popper,f={primary:function(e){var o=c[e];return c[e]<d[e]&&!t.escapeWithReference&&(o=oe(c[e],d[e])),ge({},e,o)},secondary:function(e){var o='right'===e?'left':'top',r=c[o];return c[e]>d[e]&&!t.escapeWithReference&&(r=$(c[o],d[e]-('right'===e?c.width:c.height))),ge({},o,r)}};return l.forEach(function(e){var t=-1===['left','top'].indexOf(e)?'secondary':'primary';c=ye({},c,f[t](e))}),e.offsets.popper=c,e},priority:['left','right','top','bottom'],padding:5,boundariesElement:'scrollParent'},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,o=t.popper,r=t.reference,i=e.placement.split('-')[0],n=te,p=-1!==['top','bottom'].indexOf(i),s=p?'right':'bottom',a=p?'left':'top',d=p?'width':'height';return o[s]<n(r[a])&&(e.offsets.popper[a]=n(r[a])-o[d]),o[a]>n(r[s])&&(e.offsets.popper[a]=n(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,o){var r;if(!Y(e.instance.modifiers,'arrow','keepTogether'))return e;var i=o.element;if('string'==typeof i){if(i=e.instance.popper.querySelector(i),!i)return e;}else if(!e.instance.popper.contains(i))return console.warn('WARNING: `arrow.element` must be child of its popper element!'),e;var n=e.placement.split('-')[0],p=e.offsets,s=p.popper,a=p.reference,d=-1!==['left','right'].indexOf(n),l=d?'height':'width',c=d?'Top':'Left',f=c.toLowerCase(),m=d?'left':'top',h=d?'bottom':'right',b=C(i)[l];a[h]-b<s[f]&&(e.offsets.popper[f]-=s[f]-(a[h]-b)),a[f]+b>s[h]&&(e.offsets.popper[f]+=a[f]+b-s[h]),e.offsets.popper=u(e.offsets.popper);var g=a[f]+a[l]/2-b/2,y=t(e.instance.popper),v=parseFloat(y['margin'+c],10),w=parseFloat(y['border'+c+'Width'],10),E=g-e.offsets.popper[f]-v-w;return E=oe($(s[l]-b,E),0),e.arrowElement=i,e.offsets.arrow=(r={},ge(r,f,ee(E)),ge(r,m,''),r),e},element:'[x-arrow]'},flip:{order:600,enabled:!0,fn:function(e,t){if(I(e.instance.modifiers,'inner'))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var o=E(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split('-')[0],i=T(r),n=e.placement.split('-')[1]||'',p=[];switch(t.behavior){case Ee.FLIP:p=[r,i];break;case Ee.CLOCKWISE:p=X(r);break;case Ee.COUNTERCLOCKWISE:p=X(r,!0);break;default:p=t.behavior;}return p.forEach(function(s,a){if(r!==s||p.length===a+1)return e;r=e.placement.split('-')[0],i=T(r);var d=e.offsets.popper,l=e.offsets.reference,c=te,f='left'===r&&c(d.right)>c(l.left)||'right'===r&&c(d.left)<c(l.right)||'top'===r&&c(d.bottom)>c(l.top)||'bottom'===r&&c(d.top)<c(l.bottom),m=c(d.left)<c(o.left),h=c(d.right)>c(o.right),u=c(d.top)<c(o.top),b=c(d.bottom)>c(o.bottom),g='left'===r&&m||'right'===r&&h||'top'===r&&u||'bottom'===r&&b,y=-1!==['top','bottom'].indexOf(r),v=!!t.flipVariations&&(y&&'start'===n&&m||y&&'end'===n&&h||!y&&'start'===n&&u||!y&&'end'===n&&b);(f||g||v)&&(e.flipped=!0,(f||g)&&(r=p[a+1]),v&&(n=q(n)),e.placement=r+(n?'-'+n:''),e.offsets.popper=ye({},e.offsets.popper,A(e.instance.popper,e.offsets.reference,e.placement)),e=S(e.instance.modifiers,e,'flip'))}),e},behavior:'flip',padding:5,boundariesElement:'viewport'},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,o=t.split('-')[0],r=e.offsets,i=r.popper,n=r.reference,p=-1!==['left','right'].indexOf(o),s=-1===['top','left'].indexOf(o);return i[p?'left':'top']=n[o]-(s?i[p?'width':'height']:0),e.placement=T(t),e.offsets.popper=u(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!Y(e.instance.modifiers,'hide','preventOverflow'))return e;var t=e.offsets.reference,o=k(e.instance.modifiers,function(e){return'preventOverflow'===e.name}).boundaries;if(t.bottom<o.top||t.left>o.right||t.top>o.bottom||t.right<o.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}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var o=t.x,r=t.y,i=e.offsets.popper,n=k(e.instance.modifiers,function(e){return'applyStyle'===e.name}).gpuAcceleration;void 0!==n&&console.warn('WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!');var s=void 0===n?t.gpuAcceleration:n,a=p(e.instance.popper),d=b(a),l={position:i.position},c={left:te(i.left),top:ee(i.top),bottom:ee(i.bottom),right:te(i.right)},f='bottom'===o?'top':'bottom',m='right'===r?'left':'right',h=N('transform'),u=void 0,g=void 0;if(g='bottom'==f?'HTML'===a.nodeName?-a.clientHeight+c.bottom:-d.height+c.bottom:c.top,u='right'==m?'HTML'===a.nodeName?-a.clientWidth+c.right:-d.width+c.right:c.left,s&&h)l[h]='translate3d('+u+'px, '+g+'px, 0)',l[f]=0,l[m]=0,l.willChange='transform';else{var y='bottom'==f?-1:1,v='right'==m?-1:1;l[f]=g*y,l[m]=u*v,l.willChange=f+', '+m}var w={"x-placement":e.placement};return e.attributes=ye({},w,e.attributes),e.styles=ye({},l,e.styles),e.arrowStyles=ye({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:'bottom',y:'right'},applyStyle:{order:900,enabled:!0,fn:function(e){return z(e.instance.popper,e.styles),V(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&z(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,o,r,i){var n=O(i,t,e,o.positionFixed),p=L(o.placement,n,t,e,o.modifiers.flip.boundariesElement,o.modifiers.flip.padding);return t.setAttribute('x-placement',p),z(t,{position:o.positionFixed?'fixed':'absolute'}),o},gpuAcceleration:void 0}}};var Le={POPPER:'.tippy-popper',TOOLTIP:'.tippy-tooltip',CONTENT:'.tippy-content',BACKDROP:'.tippy-backdrop',ARROW:'.tippy-arrow',ROUND_ARROW:'.tippy-roundarrow'},Oe={x:!0},Ce='undefined'!=typeof window,Te=function(e){return[].slice.call(e)},Ae=function(e,t){t.content instanceof Element?(Ne(e,''),e.appendChild(t.content)):e[t.allowHTML?'innerHTML':'textContent']=t.content},ke=function(e){return!(e instanceof Element)||Ke.call(e,'a[href],area[href],button,details,input,textarea,select,iframe,[tabindex]')&&!e.hasAttribute('disabled')},Pe=function(e,t){e.filter(Boolean).forEach(function(e){e.style.transitionDuration=t+'ms'})},Se=function(e){var t=function(t){return e.querySelector(t)};return{tooltip:t(Le.TOOLTIP),backdrop:t(Le.BACKDROP),content:t(Le.CONTENT),arrow:t(Le.ARROW)||t(Le.ROUND_ARROW)}},De=function(e){return'[object Object]'==={}.toString.call(e)},Ie=function(){return document.createElement('div')},Ne=function(e,t){e[Oe.x&&'innerHTML']=t instanceof Element?t[Oe.x&&'innerHTML']:t},He=function(e){if(e instanceof Element||De(e))return[e];if(e instanceof NodeList)return Te(e);if(Array.isArray(e))return e;try{return Te(document.querySelectorAll(e))}catch(t){return[]}},Re=function(e){return!isNaN(e)&&!isNaN(parseFloat(e))},Be=function(e,t,o){if(Array.isArray(e)){var r=e[t];return null==r?o:r}return e},Me=function(e){var t=Ie();return'round'===e?(t.className='tippy-roundarrow',Ne(t,'<svg viewBox="0 0 24 8" xmlns="http://www.w3.org/2000/svg"><path d="M3 8s2.021-.015 5.253-4.218C9.584 2.051 10.797 1.007 12 1c1.203-.007 2.416 1.035 3.761 2.782C19.012 8.005 21 8 21 8H3z"/></svg>')):t.className='tippy-arrow',t},We=function(){var e=Ie();return e.className='tippy-backdrop',e.setAttribute('data-state','hidden'),e},_e=function(e,t){e.setAttribute('tabindex','-1'),t.setAttribute('data-interactive','')},Fe=function(e,t){e.removeAttribute('tabindex'),t.removeAttribute('data-interactive')},Ue=function(e){e.setAttribute('data-inertia','')},ze=function(e){e.removeAttribute('data-inertia')},Ve=function(e,t){var o=Ie();o.className='tippy-popper',o.setAttribute('role','tooltip'),o.id='tippy-'+e,o.style.zIndex=t.zIndex;var r=Ie();r.className='tippy-tooltip',r.setAttribute('data-size',t.size),r.setAttribute('data-animation',t.animation),r.setAttribute('data-state','hidden'),t.theme.split(' ').forEach(function(e){r.classList.add(e+'-theme')});var i=Ie();return i.className='tippy-content',i.setAttribute('data-state','hidden'),t.interactive&&_e(o,r),t.arrow&&r.appendChild(Me(t.arrowType)),t.animateFill&&(r.appendChild(We()),r.setAttribute('data-animatefill','')),t.inertia&&r.setAttribute('data-inertia',''),Ae(i,t),r.appendChild(i),o.appendChild(r),o.addEventListener('focusout',function(t){t.relatedTarget&&o._tippy&&!Qe(t.relatedTarget,function(e){return e===o})&&t.relatedTarget!==o._tippy.reference&&o._tippy.props.shouldPopperHideOnBlur(t)&&o._tippy.hide()}),o},Ye=function(e,t,o){var r=Se(e),i=r.tooltip,n=r.content,p=r.backdrop,s=r.arrow;e.style.zIndex=o.zIndex,i.setAttribute('data-size',o.size),i.setAttribute('data-animation',o.animation),t.content!==o.content&&Ae(n,o),!t.animateFill&&o.animateFill?(i.appendChild(We()),i.setAttribute('data-animatefill','')):t.animateFill&&!o.animateFill&&(i.removeChild(p),i.removeAttribute('data-animatefill')),!t.arrow&&o.arrow?i.appendChild(Me(o.arrowType)):t.arrow&&!o.arrow&&i.removeChild(s),t.arrow&&o.arrow&&t.arrowType!==o.arrowType&&i.replaceChild(Me(o.arrowType),s),!t.interactive&&o.interactive?_e(e,i):t.interactive&&!o.interactive&&Fe(e,i),!t.inertia&&o.inertia?Ue(i):t.inertia&&!o.inertia&&ze(i),t.theme!==o.theme&&(t.theme.split(' ').forEach(function(e){i.classList.remove(e+'-theme')}),o.theme.split(' ').forEach(function(e){i.classList.add(e+'-theme')}))},qe=function(e){Te(document.querySelectorAll(Le.POPPER)).forEach(function(t){var o=t._tippy;o&&!0===o.props.hideOnClick&&(!e||t!==e.popper)&&o.hide()})},Xe=function(e){return Object.keys(ne).reduce(function(t,o){var r=(e.getAttribute('data-tippy-'+o)||'').trim();return r?(t[o]='content'===o?r:'true'===r||'false'!==r&&(Re(r)?+r:'['===r[0]||'{'===r[0]?JSON.parse(r):r),t):t},{})},je=function(e){var t={isVirtual:!0,attributes:e.attributes||{},setAttribute:function(t,o){e.attributes[t]=o},getAttribute:function(t){return e.attributes[t]},removeAttribute:function(t){delete e.attributes[t]},hasAttribute:function(t){return t in e.attributes},addEventListener:function(){},removeEventListener:function(){},classList:{classNames:{},add:function(t){e.classList.classNames[t]=!0},remove:function(t){delete e.classList.classNames[t]},contains:function(t){return t in e.classList.classNames}}};for(var o in t)e[o]=t[o];return e},Ke=function(){if(Ce){var t=Element.prototype;return t.matches||t.matchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector}}(),Ge=function(e,t){return(Element.prototype.closest||function(e){for(var t=this;t;){if(Ke.call(t,e))return t;t=t.parentElement}}).call(e,t)},Qe=function(e,t){for(;e;){if(t(e))return e;e=e.parentElement}},Je=function(e){var t=window.scrollX||window.pageXOffset,o=window.scrollY||window.pageYOffset;e.focus(),scroll(t,o)},Ze=function(e){void e.offsetHeight},$e=function(e,t){return(t?e:{X:'Y',Y:'X'}[e])||''},et=function(e,t,o,r){var i=t[0],n=t[1];if(!i&&!n)return'';var p={scale:function(){return n?o?i+', '+n:n+', '+i:''+i}(),translate:function(){return n?o?r?i+'px, '+-n+'px':i+'px, '+n+'px':r?-n+'px, '+i+'px':n+'px, '+i+'px':r?-i+'px':i+'px'}()};return p[e]},tt=function(e,t){var o=e.match(new RegExp(t+'([XY])'));return o?o[1]:''},ot=function(e,t){var o=e.match(t);return o?o[1].split(',').map(parseFloat):[]},rt={translate:/translateX?Y?\(([^)]+)\)/,scale:/scaleX?Y?\(([^)]+)\)/},it=function(e,t){var o=lt(Ge(e,Le.POPPER)),r='top'===o||'bottom'===o,i='right'===o||'bottom'===o,n={translate:{axis:tt(t,'translate'),numbers:ot(t,rt.translate)},scale:{axis:tt(t,'scale'),numbers:ot(t,rt.scale)}},p=t.replace(rt.translate,'translate'+$e(n.translate.axis,r)+'('+et('translate',n.translate.numbers,r,i)+')').replace(rt.scale,'scale'+$e(n.scale.axis,r)+'('+et('scale',n.scale.numbers,r,i)+')');e.style['undefined'==typeof document.body.style.transform?'webkitTransform':'transform']=p},nt=function(e,t){e.filter(Boolean).forEach(function(e){e.setAttribute('data-state',t)})},pt=function(e,t){var o=e.popper,r=e.options,i=r.onCreate,n=r.onUpdate;r.onCreate=r.onUpdate=function(){Ze(o),t(),n(),r.onCreate=i,r.onUpdate=n}},st=function(e){setTimeout(e,1)},at=function(e,t,o,r){if(!e)return!0;var i=o.clientX,n=o.clientY,p=r.interactiveBorder,s=r.distance,a=t.top-n>('top'===e?p+s:p),d=n-t.bottom>('bottom'===e?p+s:p),l=t.left-i>('left'===e?p+s:p),c=i-t.right>('right'===e?p+s:p);return a||d||l||c},dt=function(e,t){return-(e-t)+'px'},lt=function(e){var t=e.getAttribute('x-placement');return t?t.split('-')[0]:''},ct=function(e,t){var o=ie({},t,t.performance?{}:Xe(e));return o.arrow&&(o.animateFill=!1),'function'==typeof o.appendTo&&(o.appendTo=t.appendTo(e)),'function'==typeof o.content&&(o.content=t.content(e)),o},ft=function(e,t,o){e[t+'EventListener']('transitionend',o)},mt=function(e,t){var o;return function(){var r=this,i=arguments;clearTimeout(o),o=setTimeout(function(){return e.apply(r,i)},t)}},ht=function(e,t){for(var o in e||{})if(!(o in t))throw Error('[tippy]: `'+o+'` is not a valid option')},ut=Ce?navigator:{},bt=Ce?window:{},gt=/MSIE |Trident\//.test(ut.userAgent),yt=/iPhone|iPad|iPod/.test(ut.platform)&&!bt.MSStream,vt='ontouchstart'in bt,wt=!1,Et=function(){wt||(wt=!0,yt&&document.body.classList.add('tippy-iOS'),window.performance&&document.addEventListener('mousemove',Lt))},xt=0,Lt=function e(){var t=performance.now();20>t-xt&&(wt=!1,document.removeEventListener('mousemove',e),!yt&&document.body.classList.remove('tippy-iOS')),xt=t},Ot=function(e){var t=e.target;if(!(t instanceof Element))return qe();var o=Ge(t,Le.POPPER);if(!(o&&o._tippy&&o._tippy.props.interactive)){var r=Qe(t,function(e){return e._tippy&&e._tippy.reference===e});if(r){var i=r._tippy,n=-1<i.props.trigger.indexOf('click');if(wt||n)return qe(i);if(!0!==i.props.hideOnClick||n)return;i.clearDelayTimeouts()}qe()}},Ct=function(){var e=document,t=e.activeElement;t&&t.blur&&t._tippy&&t.blur()},Tt=function(){Te(document.querySelectorAll(Le.POPPER)).forEach(function(e){var t=e._tippy;t.props.livePlacement||t.popperInstance.scheduleUpdate()})},At=1,kt=!1,Pt=!1;Z.version=re,Z.defaults=ne,Z.one=function(e,t){return Z(e,t,!0).instances[0]},Z.setDefaults=function(e){pe(e),Z.defaults=ne},Z.disableAnimations=function(){Z.setDefaults({duration:0,updateDuration:0,animateFill:!1})},Z.hideAllPoppers=qe,Z.useCapture=function(){Pt=!0};return Ce&&setTimeout(function(){Te(document.querySelectorAll('[data-tippy]')).forEach(function(e){var t=e.getAttribute('data-tippy');t&&Z(e,{content:t})})}),Z}); //# sourceMappingURL=tippy.min.js.map