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 1.0.0 to 1.0.1

src/js/core/getArrayOfElements.js

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

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

(function(a,b){'object'==typeof exports&&'undefined'!=typeof module?module.exports=b(require('popper.js')):'function'==typeof define&&define.amd?define(['popper.js'],b):a.tippy=b(a.Popper)})(this,function(a){'use strict';function b(a){F.forEach(function(b){var c=b.popper,d=b.tippyInstance,e=b.settings,f=e.appendTo,g=e.hideOnClick,h=e.trigger;if(f.contains(c)){var i=!0===g||-1!==h.indexOf('focus'),j=!a||c!==a.popper;i&&j&&d.hide(c)}})}function c(a,b){var c=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||function(a){for(var b=(this.document||this.ownerDocument).querySelectorAll(a),c=b.length;0<=--c&&b.item(c)!==this;);return-1<c},d=Element.prototype.closest||function(a){for(var b=this;b;){if(c.call(b,a))return b;b=b.parentElement}};return d.call(a,b)}function d(a,b){return Array.prototype.find?a.find(b):a.filter(b)[0]}function e(){if(e.done)return!1;e.done=!0,H.appendTo=document.body;var a=function(){E.touch=!0,E.iOS()&&document.body.classList.add('tippy-touch'),E.dynamicInputDetection&&document.addEventListener('mousemove',f)},f=function(){var a;return function(){var b=performance.now();10>b-a&&(E.touch=!1,document.removeEventListener('mousemove',f),!E.iOS()&&document.body.classList.contains('tippy-touch')&&document.body.classList.remove('tippy-touch')),a=b}}();return document.addEventListener('click',function(a){if(!(a.target instanceof Element))return b();var e=c(a.target,G.TOOLTIPPED_EL),f=c(a.target,G.POPPER);if(f){var g=d(F,function(a){return a.popper===f}),h=g.settings.interactive;if(h)return}if(e){var i=d(F,function(a){return a.el===e}),j=i.settings,k=j.hideOnClick,l=j.multiple,m=j.trigger;if(!l&&E.touch||!l&&-1!==m.indexOf('click'))return b(i);if(!0!==k||-1!==m.indexOf('click'))return}c(a.target,G.CONTROLLER)||!document.querySelector(G.POPPER)||b()}),document.addEventListener('touchstart',a),(!E.SUPPORTS_TOUCH&&0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints)&&document.addEventListener('pointerdown',a),!0}function f(a){window.requestAnimationFrame(function(){setTimeout(a,0)})}function g(a){for(var b=[!1,'webkit'],c=a.charAt(0).toUpperCase()+a.slice(1),d=0;d<b.length;d++){var e=b[d],f=e?''+e+c:a;if('undefined'!=typeof window.document.body.style[f])return f}return null}function h(a){var b=a.getAttribute('title');a.setAttribute('data-original-title',b||'html'),a.removeAttribute('title')}function i(a){var b=a.getBoundingClientRect();return 0<=b.top&&0<=b.left&&b.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&b.right<=(window.innerWidth||document.documentElement.clientWidth)}function j(a,b){b?window.getComputedStyle(b)[g('transform')]:window.getComputedStyle(a).opacity}function k(a,b){a.forEach(function(a){a&&b(a.classList)})}function l(a,b){var c;a.forEach(function(a){a&&(c=b,a.hasAttribute('x-circle')&&(c=D(b/1.1)),a.style[g('transitionDuration')]=c+'ms')})}function m(a){return'visible'===a.style.visibility}function n(){}function o(a){return a.replace(/-.+/,'')}function p(a){var b,c,e=this,f=d(F,function(a){return a.el===e}),h=f.popper,i=o(h.getAttribute('x-placement')),j=D(h.offsetWidth/2),k=D(h.offsetHeight/2),l=5,m=document.documentElement.offsetWidth||document.body.offsetWidth,n=a.pageX,p=a.pageY;'top'===i?(b=n-j,c=p-2.5*k):'left'===i?(b=n-2*j-15,c=p-k):'right'===i?(b=n+k,c=p-k):'bottom'===i?(b=n-j,c=p+k/1.5):void 0;('top'===i||'bottom'===i)&&(n+l+j>m&&(b=m-l-2*j),0>n-l-j&&(b=l)),h.style[g('transform')]='translate3d('+b+'px, '+c+'px, 0)'}function q(a){return a instanceof Element?[a]:[].slice.call(document.querySelectorAll(a))}function r(a,b,c){if(!b)return c();var d=a.popper.querySelector(G.TOOLTIP),f=!1,e=function a(b){b.target!==d||(f=!0,d.removeEventListener('webkitTransitionEnd',a),d.removeEventListener('transitionend',a),c())};d.addEventListener('webkitTransitionEnd',e),d.addEventListener('transitionend',e),clearTimeout(a._transitionendTimeout),a._transitionendTimeout=setTimeout(function(){f||c()},b)}function s(a){return-(a-H.distance)+'px'}function t(b){var c=b.el,d=b.popper,e=b.settings,f=e.position,g=e.popperOptions,h=e.offset,i=e.distance,j=d.querySelector(G.TOOLTIP),k=L({placement:f},g||{},{modifiers:L({},g?g.modifiers:{},{flip:L({padding:i+5},g&&g.modifiers?g.modifiers.flip:{}),offset:L({offset:h},g&&g.modifiers?g.modifiers.offset:{})}),onUpdate:function(){j.style.top='',j.style.bottom='',j.style.left='',j.style.right='',j.style[o(d.getAttribute('x-placement'))]=s(i)}});return new a(c,d,k)}function u(a){var b=a.el,c=a.popper,d=a.settings,e=d.appendTo,f=d.followCursor;e.contains(c)||(e.appendChild(c),a.popperInstance?(a.popperInstance.update(),(!f||E.touch)&&a.popperInstance.enableEventListeners()):a.popperInstance=t(a),f&&!E.touch&&(b.addEventListener('mousemove',p),a.popperInstance.disableEventListeners()))}function v(a){var b=a.popper,c=a.popperInstance,d=a.settings.stickyDuration,e=function(){return b.style[g('transitionDuration')]=d+'ms'},h=function(){return b.style[g('transitionDuration')]=''};f(function a(){c&&c.scheduleUpdate(),e(),m(b)?window.requestAnimationFrame(a):h()})}function w(a,b){var c=I.reduce(function(c,d){var e=a.getAttribute('data-'+d.toLowerCase())||b[d];return'false'===e&&(e=!1),'true'===e&&(e=!0),isFinite(e)&&!isNaN(parseFloat(e))&&(e=parseFloat(e)),'string'==typeof e&&'['===e.trim().charAt(0)&&(e=JSON.parse(e)),c[d]=e,c},{});return L({},b,c)}function x(a,b,c){var d=c.position,e=c.distance,f=c.arrow,g=c.animateFill,h=c.inertia,i=c.animation,j=c.arrowSize,k=c.size,l=c.theme,m=c.html,n=c.zIndex,p=c.interactive,q=document.createElement('div');q.setAttribute('class','tippy-popper'),q.setAttribute('role','tooltip'),q.setAttribute('aria-hidden','true'),q.setAttribute('id','tippy-tooltip-'+a),q.style.zIndex=n;var r=document.createElement('div');if(r.setAttribute('class','tippy-tooltip tippy-tooltip--'+k+' leave'),r.setAttribute('data-animation',i),l.split(' ').forEach(function(a){r.classList.add(a+'-theme')}),f){var t=document.createElement('div');t.setAttribute('class','arrow-'+j),t.setAttribute('x-arrow',''),r.appendChild(t)}if(g){r.setAttribute('data-animatefill','');var u=document.createElement('div');u.setAttribute('class','leave'),u.setAttribute('x-circle',''),r.appendChild(u)}h&&r.setAttribute('data-inertia',''),p&&r.setAttribute('data-interactive','');var v=document.createElement('div');if(v.setAttribute('class','tippy-tooltip-content'),m){var w;m instanceof Element?(v.appendChild(m),w=m.id||'tippy-html-template'):(v.innerHTML=document.getElementById(m.replace('#','')).innerHTML,w=m),q.classList.add('html-template'),q.setAttribute('tabindex','0'),r.setAttribute('data-template-id',w)}else v.innerHTML=b;return r.style[o(d)]=s(e),r.appendChild(v),q.appendChild(r),q}function y(a,b,c,d){var e=[];return'manual'===a?e:(b.addEventListener(a,c.handleTrigger),e.push({event:a,handler:c.handleTrigger}),'mouseenter'===a&&(E.SUPPORTS_TOUCH&&d&&(b.addEventListener('touchstart',c.handleTrigger),e.push({event:'touchstart',handler:c.handleTrigger}),b.addEventListener('touchend',c.handleMouseleave),e.push({event:'touchend',handler:c.handleMouseleave})),b.addEventListener('mouseleave',c.handleMouseleave),e.push({event:'mouseleave',handler:c.handleMouseleave})),'focus'===a&&(b.addEventListener('blur',c.handleBlur),e.push({event:'blur',handler:c.handleBlur})),e)}function z(a,b,c){if(!b.getAttribute('x-placement'))return!0;var d=a.clientX,e=a.clientY,f=c.interactiveBorder,g=c.distance,h=b.getBoundingClientRect(),i=o(b.getAttribute('x-placement')),j=f+g,k={top:h.top-e>f,bottom:e-h.bottom>f,left:h.left-d>f,right:d-h.right>f};return'top'===i?k.top=h.top-e>j:'bottom'===i?k.bottom=e-h.bottom>j:'left'===i?k.left=h.left-d>j:'right'===i?k.right=d-h.right>j:void 0,k.top||k.bottom||k.left||k.right}function A(a,b,d){var e,f,g=this,h=d.position,i=d.delay,j=d.duration,k=d.interactive,l=d.interactiveBorder,n=d.distance,o=d.hideOnClick,p=d.trigger,q=d.touchHold,r=d.touchWait,s=function(){clearTimeout(e),clearTimeout(f)},t=function(){if(s(),!m(b)){var a=Array.isArray(i)?i[0]:i;i?e=setTimeout(function(){return g.show(b)},a):g.show(b)}},u=function(a){return g.callbacks.wait?g.callbacks.wait.call(b,t,a):t()},v=function(){s();var a=Array.isArray(i)?i[1]:i;i?f=setTimeout(function(){return g.hide(b)},a):g.hide(b)};return{handleTrigger:function(c){if('mouseenter'===c.type&&E.SUPPORTS_TOUCH&&E.touch){if(q)return;E.iOS()&&a.click()}var d='click'===c.type;d&&m(b)&&'persistent'!==o?v():u(c)},handleMouseleave:function(e){if(!('mouseleave'===e.type&&E.SUPPORTS_TOUCH&&E.touch&&q)){if(k){var f=function e(f){var g=function(){document.body.removeEventListener('mouseleave',v),document.removeEventListener('mousemove',e),v()},h=c(f.target,G.TOOLTIPPED_EL),i=c(f.target,G.POPPER)===b,j=-1!==p.indexOf('click');return h&&h!==a?g():void(i||h===a||j||z(f,b,d)&&g())};return document.body.addEventListener('mouseleave',v),void document.addEventListener('mousemove',f)}v()}},handleBlur:function(a){E.touch||!a.relatedTarget||c(a.relatedTarget,G.POPPER)||v()}}}function B(a){var b=this;a.forEach(function(a){var c=b.settings.performance?b.settings:w(a,b.settings);c.arrow&&(c.animateFill=!1);var d=c.html,e=c.trigger,f=c.touchHold,g=a.getAttribute('title');if(g||d){var i=M;a.setAttribute('data-tooltipped',''),a.setAttribute('aria-describedby','tippy-tooltip-'+i),h(a);var j=x(i,g,c),k=A.call(b,a,j,c),l=[];e.trim().split(' ').forEach(function(b){return l=l.concat(y(b,a,k,f))}),F.push({id:i,el:a,popper:j,settings:c,listeners:l,tippyInstance:b}),M++}})}function C(a,b){return new N(a,b)}var D=Math.round;a='default'in a?a['default']:a;var E={};'undefined'!=typeof window&&(E.SUPPORTED=!!window.requestAnimationFrame,E.SUPPORTS_TOUCH='ontouchstart'in window,E.touch=!1,E.iOS=function(){return /iPhone|iPad|iPod/.test(navigator.userAgent)&&!window.MSStream},E.dynamicInputDetection=!0);var F=[],G={POPPER:'.tippy-popper',TOOLTIP:'.tippy-tooltip',CONTENT:'.tippy-tooltip-content',CIRCLE:'[x-circle]',ARROW:'[x-arrow]',TOOLTIPPED_EL:'[data-tooltipped]',CONTROLLER:'[data-tippy-controller]'},H={html:!1,position:'top',animation:'shift',animateFill:!0,arrow:!1,arrowSize:'regular',delay:0,trigger:'mouseenter focus',duration:350,interactive:!1,interactiveBorder:2,theme:'dark',size:'regular',distance:10,offset:0,hideOnClick:!0,multiple:!1,followCursor:!1,inertia:!1,flipDuration:300,sticky:!1,stickyDuration:200,appendTo:null,zIndex:9999,touchHold:!1,performance:!1,popperOptions:{}},I=E.SUPPORTED&&Object.keys(H),J=function(a,b){if(!(a instanceof b))throw new TypeError('Cannot call a class as a function')},K=function(){function a(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,'value'in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),L=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},M=1,N=function(){function a(b){var c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};J(this,a),E.SUPPORTED&&(e(),this.state={destroyed:!1},this.selector=b,this.settings=L({},H,c),this.callbacks={wait:c.wait,show:c.show||n,shown:c.shown||n,hide:c.hide||n,hidden:c.hidden||n},B.call(this,q(b)))}return K(a,[{key:'getPopperElement',value:function(a){var b=this;try{return d(F.filter(function(a){return a.tippyInstance===b}),function(b){return b.el===a}).popper}catch(a){console.error('[getPopperElement]: Element passed as the argument does not exist in the instance')}}},{key:'getReferenceElement',value:function(a){var b=this;try{return d(F.filter(function(a){return a.tippyInstance===b}),function(b){return b.popper===a}).el}catch(a){console.error('[getReferenceElement]: Popper passed as the argument does not exist in the instance')}}},{key:'getReferenceData',value:function(a){return d(F,function(b){return b.el===a||b.popper===a})}},{key:'show',value:function(a,b){var c=this;if(!this.state.destroyed){this.callbacks.show.call(a);var e=d(F,function(b){return b.popper===a}),g=a.querySelector(G.TOOLTIP),h=a.querySelector(G.CIRCLE),i=e.el,n=e.settings,o=n.appendTo,p=n.sticky,q=n.interactive,s=n.followCursor,t=n.flipDuration,w=n.duration,x=void 0===b?Array.isArray(w)?w[0]:w:b;l([a,g,h],0),u(e),a.style.visibility='visible',a.setAttribute('aria-hidden','false'),f(function(){m(a)&&((!s||E.touch)&&e.popperInstance.update(),l([g,h],x,!0),(!s||E.touch)&&l([a],t,!0),q&&i.classList.add('active'),p&&v(e),j(g,h),k([g,h],function(a){a.contains('tippy-notransition')&&a.remove('tippy-notransition'),a.remove('leave'),a.add('enter')}),r(e,x,function(){!m(a)||e._onShownFired||(q&&a.focus(),g.classList.add('tippy-notransition'),e._onShownFired=!0,c.callbacks.shown.call(a))}))})}}},{key:'hide',value:function(a,b){var c=this;if(!this.state.destroyed){this.callbacks.hide.call(a);var e=d(F,function(b){return b.popper===a}),f=a.querySelector(G.TOOLTIP),g=a.querySelector(G.CIRCLE),h=a.querySelector(G.CONTENT),j=e.el,n=e.settings,o=n.appendTo,q=n.sticky,s=n.interactive,t=n.followCursor,u=n.html,v=n.trigger,w=n.duration,x=void 0===b?Array.isArray(w)?w[1]:w:b;e._onShownFired=!1,s&&j.classList.remove('active'),a.style.visibility='hidden',a.setAttribute('aria-hidden','true'),l([f,g],x),k([f,g],function(a){a.contains('tippy-tooltip')&&a.remove('tippy-notransition'),a.remove('enter'),a.add('leave')}),u&&-1!==v.indexOf('click')&&i(j)&&j.focus(),r(e,x,function(){m(a)||!o.contains(a)||(j.removeEventListener('mousemove',p),e.popperInstance.disableEventListeners(),o.removeChild(a),c.callbacks.hidden.call(a))})}}},{key:'destroy',value:function(a){if(!this.state.destroyed){var b=d(F,function(b){return b.popper===a}),c=b.el,e=b.popperInstance,f=b.listeners;m(a)&&this.hide(a,0),f.forEach(function(a){return c.removeEventListener(a.event,a.handler)}),c.setAttribute('title',c.getAttribute('data-original-title')),c.removeAttribute('data-original-title'),c.removeAttribute('data-tooltipped'),c.removeAttribute('aria-describedby'),e&&e.destroy(),F.splice(F.map(function(a){return a.popper}).indexOf(a),1)}}},{key:'update',value:function(a){if(!this.state.destroyed){var b=d(F,function(b){return b.popper===a}),c=a.querySelector(G.CONTENT),e=b.el,f=b.settings.html;f?c.innerHTML=f instanceof Element?f.innerHTML:document.getElementById(f.replace('#','')).innerHTML:(c.innerHTML=e.getAttribute('title')||e.getAttribute('data-original-title'),h(e))}}},{key:'destroyAll',value:function(){var a=this;this.state.destroyed||(F.filter(function(b){return b.tippyInstance===a}).forEach(function(b){a.destroy(b.popper)}),this.state.destroyed=!0)}}]),a}();return C.Browser=E,C.Defaults=H,C.disableDynamicInputDetection=function(){return E.dynamicInputDetection=!1},C.enableDynamicInputDetection=function(){return E.dynamicInputDetection=!0},C});
(function(a,b){'object'==typeof exports&&'undefined'!=typeof module?module.exports=b(require('popper.js')):'function'==typeof define&&define.amd?define(['popper.js'],b):a.tippy=b(a.Popper)})(this,function(a){'use strict';function b(a){G.forEach(function(b){var c=b.popper,d=b.tippyInstance,e=b.settings,f=e.appendTo,g=e.hideOnClick,h=e.trigger;if(f.contains(c)){var i=!0===g||-1!==h.indexOf('focus'),j=!a||c!==a.popper;i&&j&&d.hide(c)}})}function c(a,b){var c=Element.prototype.closest||function(a){for(var b=this;b;){if(K.call(b,a))return b;b=b.parentElement}};return c.call(a,b)}function d(a,b){return Array.prototype.find?a.find(b):a.filter(b)[0]}function e(){if(e.done)return!1;e.done=!0,I.appendTo=document.body;var a=function(){F.touch=!0,F.iOS()&&document.body.classList.add('tippy-touch'),F.dynamicInputDetection&&document.addEventListener('mousemove',f)},f=function(){var a;return function(){var b=performance&&performance.now();b&&10>b-a&&(F.touch=!1,document.removeEventListener('mousemove',f),!F.iOS()&&document.body.classList.contains('tippy-touch')&&document.body.classList.remove('tippy-touch')),a=b}}();return document.addEventListener('click',function(a){if(!(a.target instanceof Element))return b();var e=c(a.target,H.TOOLTIPPED_EL),f=c(a.target,H.POPPER);if(f){var g=d(G,function(a){return a.popper===f}),h=g.settings.interactive;if(h)return}if(e){var i=d(G,function(a){return a.el===e}),j=i.settings,k=j.hideOnClick,l=j.multiple,m=j.trigger;if(!l&&F.touch||!l&&-1!==m.indexOf('click'))return b(i);if(!0!==k||-1!==m.indexOf('click'))return}c(a.target,H.CONTROLLER)||!document.querySelector(H.POPPER)||b()}),document.addEventListener('touchstart',a),!F.SUPPORTS_TOUCH&&(0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints)&&document.addEventListener('pointerdown',a),!0}function f(a){window.requestAnimationFrame(function(){setTimeout(a,0)})}function g(a){for(var b=[!1,'webkit'],c=a.charAt(0).toUpperCase()+a.slice(1),d=0;d<b.length;d++){var e=b[d],f=e?''+e+c:a;if('undefined'!=typeof window.document.body.style[f])return f}return null}function h(a,b){return Array.prototype.findIndex?a.findIndex(b):a.indexOf(d(a,b))}function i(a){var b=a.getAttribute('title');a.setAttribute('data-original-title',b||'html'),a.removeAttribute('title')}function j(a){var b=a.getBoundingClientRect();return 0<=b.top&&0<=b.left&&b.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&b.right<=(window.innerWidth||document.documentElement.clientWidth)}function k(a,b){b?window.getComputedStyle(b)[g('transform')]:window.getComputedStyle(a).opacity}function l(a,b){a.forEach(function(a){a&&b(a.classList)})}function m(a,b){var c;a.forEach(function(a){if(a){var d=K.call(a,H.CIRCLE),e=K.call(a,H.CONTENT);c=d?E(c/1.1):e?E(b/1.3):b,a.style[g('transitionDuration')]=c+'ms'}})}function n(a){return'visible'===a.style.visibility}function o(){}function p(a){return a.replace(/-.+/,'')}function q(a){var b,c,e=this,f=d(G,function(a){return a.el===e}),h=f.popper,i=p(h.getAttribute('x-placement')),j=E(h.offsetWidth/2),k=E(h.offsetHeight/2),l=5,m=document.documentElement.offsetWidth||document.body.offsetWidth,n=a.pageX,o=a.pageY;'top'===i?(b=n-j,c=o-2.5*k):'left'===i?(b=n-2*j-15,c=o-k):'right'===i?(b=n+k,c=o-k):'bottom'===i?(b=n-j,c=o+k/1.5):void 0;('top'===i||'bottom'===i)&&(n+l+j>m&&(b=m-l-2*j),0>n-l-j&&(b=l)),h.style[g('transform')]='translate3d('+b+'px, '+c+'px, 0)'}function r(a){return a instanceof Element?[a]:[].slice.call(document.querySelectorAll(a))}function s(a,b,c){if(!b)return c();var d=a.popper.querySelector(H.TOOLTIP),f=!1,e=function a(b){b.target!==d||(f=!0,d.removeEventListener('webkitTransitionEnd',a),d.removeEventListener('transitionend',a),c())};d.addEventListener('webkitTransitionEnd',e),d.addEventListener('transitionend',e),clearTimeout(a._transitionendTimeout),a._transitionendTimeout=setTimeout(function(){f||c()},b)}function t(a){return-(a-I.distance)+'px'}function u(b){var c=b.el,d=b.popper,e=b.settings,f=e.position,g=e.popperOptions,h=e.offset,i=e.distance,j=d.querySelector(H.TOOLTIP),k=N({placement:f},g||{},{modifiers:N({},g?g.modifiers:{},{flip:N({padding:i+5},g&&g.modifiers?g.modifiers.flip:{}),offset:N({offset:h},g&&g.modifiers?g.modifiers.offset:{})}),onUpdate:function(){j.style.top='',j.style.bottom='',j.style.left='',j.style.right='',j.style[p(d.getAttribute('x-placement'))]=t(i)}});return new a(c,d,k)}function v(a){var b=a.el,c=a.popper,d=a.settings,e=d.appendTo,f=d.followCursor;e.contains(c)||(e.appendChild(c),a.popperInstance?(a.popperInstance.update(),(!f||F.touch)&&a.popperInstance.enableEventListeners()):a.popperInstance=u(a),f&&!F.touch&&(b.addEventListener('mousemove',q),a.popperInstance.disableEventListeners()))}function w(a){var b=a.popper,c=a.popperInstance,d=a.settings.stickyDuration,e=function(){return b.style[g('transitionDuration')]=d+'ms'},h=function(){return b.style[g('transitionDuration')]=''};f(function a(){c&&c.scheduleUpdate(),e(),n(b)?window.requestAnimationFrame(a):h()})}function x(a,b){var c=J.reduce(function(c,d){var e=a.getAttribute('data-'+d.toLowerCase())||b[d];return'false'===e&&(e=!1),'true'===e&&(e=!0),isFinite(e)&&!isNaN(parseFloat(e))&&(e=parseFloat(e)),'string'==typeof e&&'['===e.trim().charAt(0)&&(e=JSON.parse(e)),c[d]=e,c},{});return N({},b,c)}function y(a,b,c){var d=c.position,e=c.distance,f=c.arrow,g=c.animateFill,h=c.inertia,i=c.animation,j=c.arrowSize,k=c.size,l=c.theme,m=c.html,n=c.zIndex,o=c.interactive,q=document.createElement('div');q.setAttribute('class','tippy-popper'),q.setAttribute('role','tooltip'),q.setAttribute('aria-hidden','true'),q.setAttribute('id','tippy-tooltip-'+a),q.style.zIndex=n;var r=document.createElement('div');if(r.setAttribute('class','tippy-tooltip tippy-tooltip--'+k+' leave'),r.setAttribute('data-animation',i),l.split(' ').forEach(function(a){r.classList.add(a+'-theme')}),f){var s=document.createElement('div');s.setAttribute('class','arrow-'+j),s.setAttribute('x-arrow',''),r.appendChild(s)}if(g){r.setAttribute('data-animatefill','');var u=document.createElement('div');u.setAttribute('class','leave'),u.setAttribute('x-circle',''),r.appendChild(u)}h&&r.setAttribute('data-inertia',''),o&&r.setAttribute('data-interactive','');var v=document.createElement('div');if(v.setAttribute('class','tippy-tooltip-content'),m){var w;m instanceof Element?(v.appendChild(m),w='#'+m.id||'tippy-html-template'):(v.innerHTML=document.getElementById(m.replace('#','')).innerHTML,w=m),q.classList.add('html-template'),o&&q.setAttribute('tabindex','-1'),r.setAttribute('data-template-id',w)}else v.innerHTML=b;return r.style[p(d)]=t(e),r.appendChild(v),q.appendChild(r),q}function z(a,b,c,d){var e=[];return'manual'===a?e:(b.addEventListener(a,c.handleTrigger),e.push({event:a,handler:c.handleTrigger}),'mouseenter'===a&&(F.SUPPORTS_TOUCH&&d&&(b.addEventListener('touchstart',c.handleTrigger),e.push({event:'touchstart',handler:c.handleTrigger}),b.addEventListener('touchend',c.handleMouseleave),e.push({event:'touchend',handler:c.handleMouseleave})),b.addEventListener('mouseleave',c.handleMouseleave),e.push({event:'mouseleave',handler:c.handleMouseleave})),'focus'===a&&(b.addEventListener('blur',c.handleBlur),e.push({event:'blur',handler:c.handleBlur})),e)}function A(a,b,c){if(!b.getAttribute('x-placement'))return!0;var d=a.clientX,e=a.clientY,f=c.interactiveBorder,g=c.distance,h=b.getBoundingClientRect(),i=p(b.getAttribute('x-placement')),j=f+g,k={top:h.top-e>f,bottom:e-h.bottom>f,left:h.left-d>f,right:d-h.right>f};return'top'===i?k.top=h.top-e>j:'bottom'===i?k.bottom=e-h.bottom>j:'left'===i?k.left=h.left-d>j:'right'===i?k.right=d-h.right>j:void 0,k.top||k.bottom||k.left||k.right}function B(a,b,d){var e,f,g=this,h=d.position,i=d.delay,j=d.duration,k=d.interactive,l=d.interactiveBorder,m=d.distance,o=d.hideOnClick,p=d.trigger,q=d.touchHold,r=d.touchWait,s=function(){clearTimeout(e),clearTimeout(f)},t=function(){if(s(),!n(b)){var a=Array.isArray(i)?i[0]:i;i?e=setTimeout(function(){return g.show(b)},a):g.show(b)}},u=function(a){return g.callbacks.wait?g.callbacks.wait.call(b,t,a):t()},v=function(){s();var a=Array.isArray(i)?i[1]:i;i?f=setTimeout(function(){return g.hide(b)},a):g.hide(b)};return{handleTrigger:function(c){var d='mouseenter'===c.type&&F.SUPPORTS_TOUCH&&F.touch;if(!(d&&q)){var e='click'===c.type;e&&n(b)&&'persistent'!==o?v():u(c),d&&F.iOS()&&a.click&&a.click()}},handleMouseleave:function(e){if(!('mouseleave'===e.type&&F.SUPPORTS_TOUCH&&F.touch&&q)){if(k){var f=function e(f){var g=function(){document.body.removeEventListener('mouseleave',v),document.removeEventListener('mousemove',e),v()},h=c(f.target,H.TOOLTIPPED_EL),i=c(f.target,H.POPPER)===b,j=-1!==p.indexOf('click');return h&&h!==a?g():void(i||h===a||j||A(f,b,d)&&g())};return document.body.addEventListener('mouseleave',v),void document.addEventListener('mousemove',f)}v()}},handleBlur:function(a){F.touch||!a.relatedTarget||c(a.relatedTarget,H.POPPER)||v()}}}function C(a){var b=this;return a.reduce(function(c,a){var d=b.settings.performance?b.settings:x(a,b.settings);d.arrow&&(d.animateFill=!1);var e=d.html,f=d.trigger,g=d.touchHold,h=a.getAttribute('title');if(!h&&!e)return c;var j=O;a.setAttribute('data-tooltipped',''),a.setAttribute('aria-describedby','tippy-tooltip-'+j),i(a);var k=y(j,h,d),l=B.call(b,a,k,d),m=[];return f.trim().split(' ').forEach(function(b){return m=m.concat(z(b,a,l,g))}),c.push({id:j,el:a,popper:k,settings:d,listeners:m,tippyInstance:b}),O++,c},[])}function D(a,b){return new P(a,b)}var E=Math.round;a='default'in a?a['default']:a;var F={};'undefined'!=typeof window&&(F.SUPPORTED=!!window.requestAnimationFrame,F.SUPPORTS_TOUCH='ontouchstart'in window,F.touch=!1,F.dynamicInputDetection=!0,F.iOS=function(){return /iPhone|iPad|iPod/.test(navigator.userAgent)&&!window.MSStream});var G=[],H={POPPER:'.tippy-popper',TOOLTIP:'.tippy-tooltip',CONTENT:'.tippy-tooltip-content',CIRCLE:'[x-circle]',ARROW:'[x-arrow]',TOOLTIPPED_EL:'[data-tooltipped]',CONTROLLER:'[data-tippy-controller]'},I={html:!1,position:'top',animation:'shift',animateFill:!0,arrow:!1,arrowSize:'regular',delay:0,trigger:'mouseenter focus',duration:350,interactive:!1,interactiveBorder:2,theme:'dark',size:'regular',distance:10,offset:0,hideOnClick:!0,multiple:!1,followCursor:!1,inertia:!1,flipDuration:350,sticky:!1,stickyDuration:200,appendTo:null,zIndex:9999,touchHold:!1,performance:!1,popperOptions:{}},J=F.SUPPORTED&&Object.keys(I),K=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||function(a){for(var b=(this.document||this.ownerDocument).querySelectorAll(a),c=b.length;0<=--c&&b.item(c)!==this;);return-1<c},L=function(a,b){if(!(a instanceof b))throw new TypeError('Cannot call a class as a function')},M=function(){function a(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,'value'in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),N=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},O=1,P=function(){function a(b){var c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};L(this,a),F.SUPPORTED&&(e(),this.state={destroyed:!1},this.selector=b,this.settings=N({},I,c),this.callbacks={wait:c.wait,show:c.show||o,shown:c.shown||o,hide:c.hide||o,hidden:c.hidden||o},this.store=C.call(this,r(b)),G.push.apply(G,this.store))}return M(a,[{key:'getPopperElement',value:function(a){try{return d(this.store,function(b){return b.el===a}).popper}catch(a){console.error('[getPopperElement]: Element passed as the argument does not exist in the instance')}}},{key:'getReferenceElement',value:function(a){try{return d(this.store,function(b){return b.popper===a}).el}catch(a){console.error('[getReferenceElement]: Popper passed as the argument does not exist in the instance')}}},{key:'getReferenceData',value:function(a){return d(this.store,function(b){return b.el===a||b.popper===a})}},{key:'show',value:function(a,b){var c=this;if(!this.state.destroyed){this.callbacks.show.call(a);var e=d(this.store,function(b){return b.popper===a}),g=a.querySelector(H.TOOLTIP),h=a.querySelector(H.CIRCLE),i=a.querySelector(H.CONTENT),j=e.el,o=e.settings,p=o.appendTo,q=o.sticky,r=o.interactive,t=o.followCursor,u=o.flipDuration,x=o.duration,y=void 0===b?Array.isArray(x)?x[0]:x:b;m([a,g,h],0),v(e),a.style.visibility='visible',a.setAttribute('aria-hidden','false'),f(function(){n(a)&&((!t||F.touch)&&e.popperInstance.update(),m([g,h],y,!0),(!t||F.touch)&&m([a],u,!0),h&&(i.style.opacity=1),r&&j.classList.add('active'),q&&w(e),k(g,h),l([g,h],function(a){a.contains('tippy-notransition')&&a.remove('tippy-notransition'),a.remove('leave'),a.add('enter')}),s(e,y,function(){!n(a)||e._onShownFired||(r&&a.focus(),g.classList.add('tippy-notransition'),e._onShownFired=!0,c.callbacks.shown.call(a))}))})}}},{key:'hide',value:function(a,b){var c=this;if(!this.state.destroyed){this.callbacks.hide.call(a);var e=d(this.store,function(b){return b.popper===a}),f=a.querySelector(H.TOOLTIP),g=a.querySelector(H.CIRCLE),h=a.querySelector(H.CONTENT),i=e.el,k=e.settings,o=k.appendTo,p=k.sticky,r=k.interactive,t=k.followCursor,u=k.html,v=k.trigger,w=k.duration,x=void 0===b?Array.isArray(w)?w[1]:w:b;e._onShownFired=!1,r&&i.classList.remove('active'),a.style.visibility='hidden',a.setAttribute('aria-hidden','true'),m([f,g,g?h:null],x),g&&(h.style.opacity=0),l([f,g],function(a){a.contains('tippy-tooltip')&&a.remove('tippy-notransition'),a.remove('enter'),a.add('leave')}),u&&-1!==v.indexOf('click')&&j(i)&&i.focus(),s(e,x,function(){n(a)||!o.contains(a)||(i.removeEventListener('mousemove',q),e.popperInstance.disableEventListeners(),o.removeChild(a),c.callbacks.hidden.call(a))})}}},{key:'update',value:function(a){if(!this.state.destroyed){var b=d(this.store,function(b){return b.popper===a}),c=a.querySelector(H.CONTENT),e=b.el,f=b.settings.html;return f instanceof Element?void console.warn('Aborted: update() should not be used if `html` is a DOM element'):void(c.innerHTML=f?document.getElementById(f.replace('#','')).innerHTML:e.getAttribute('title')||e.getAttribute('data-original-title'),!f&&i(e))}}},{key:'destroy',value:function(a,b){var c=this;if(!this.state.destroyed){var e=d(this.store,function(b){return b.popper===a}),f=e.el,g=e.popperInstance,i=e.listeners;n(a)&&this.hide(a,0),i.forEach(function(a){return f.removeEventListener(a.event,a.handler)}),f.setAttribute('title',f.getAttribute('data-original-title')),f.removeAttribute('data-original-title'),f.removeAttribute('data-tooltipped'),f.removeAttribute('aria-describedby'),g&&g.destroy(),G.splice(h(G,function(b){return b.popper===a}),1),(void 0===b||b)&&(this.store=G.filter(function(a){return a.tippyInstance===c}))}}},{key:'destroyAll',value:function(){var a=this;if(!this.state.destroyed){var b=this.store.length;this.store.forEach(function(c,d){var e=c.popper;a.destroy(e,d===b-1)}),this.store=null,this.state.destroyed=!0}}}]),a}();return D.Browser=F,D.Defaults=I,D.disableDynamicInputDetection=function(){return F.dynamicInputDetection=!1},D.enableDynamicInputDetection=function(){return F.dynamicInputDetection=!0},D});
{
"name": "tippy.js",
"version": "1.0.0",
"version": "1.0.1",
"description": "Vanilla JS Tooltip Library",

@@ -36,4 +36,4 @@ "main": "dist/tippy.js",

"dependencies": {
"popper.js": "^1.10.2"
"popper.js": "^1.10.6"
}
}
# Tippy.js
Tippy.js is a lightweight, pure JS tooltip library powered by Popper.js.
Tippy.js is a lightweight, vanilla JS tooltip library powered by Popper.js.

@@ -9,3 +9,3 @@ View the documentation and demo here: https://atomiks.github.io/tippyjs/

See releases for the CSS and JS files needed: https://github.com/atomiks/tippyjs/releases
See releases: https://github.com/atomiks/tippyjs/releases

@@ -12,0 +12,0 @@ It's also available on npm:

@@ -79,3 +79,3 @@ import getCorePlacement from '../utils/getCorePlacement'

content.appendChild(html)
templateId = html.id || 'tippy-html-template'
templateId = '#' + html.id || 'tippy-html-template'
} else {

@@ -87,3 +87,3 @@ content.innerHTML = document.getElementById(html.replace('#', '')).innerHTML

popper.classList.add('html-template')
popper.setAttribute('tabindex', '0')
interactive && popper.setAttribute('tabindex', '-1')
tooltip.setAttribute('data-template-id', templateId)

@@ -90,0 +90,0 @@

@@ -10,6 +10,6 @@ import Popper from 'popper.js'

* Creates a new popper instance
* @param {Object} ref
* @param {Object} refData
* @return {Object} - the popper instance
*/
export default function createPopperInstance(ref) {
export default function createPopperInstance(refData) {

@@ -25,3 +25,3 @@ const {

}
} = ref
} = refData

@@ -28,0 +28,0 @@ const tooltip = popper.querySelector(Selectors.TOOLTIP)

@@ -14,11 +14,12 @@ import getIndividualSettings from './getIndividualSettings'

* Creates tooltips for all el elements that match the instance's selector
* @param {Array} els - Elements
* @param {Element[]} els - Array of elements
* @return {Object[]} Array of ref data objects
*/
export default function createTooltips(els) {
els.forEach(el => {
return els.reduce((a, el) => {
const settings = this.settings.performance
? this.settings
: getIndividualSettings(el, this.settings)
? this.settings
: getIndividualSettings(el, this.settings)

@@ -31,3 +32,3 @@ // animateFill is disabled if an arrow is true

const title = el.getAttribute('title')
if (!title && !html) return
if (!title && !html) return a

@@ -37,3 +38,2 @@ const id = idCounter

el.setAttribute('aria-describedby', `tippy-tooltip-${id}`)
removeTitle(el)

@@ -49,3 +49,3 @@

Store.push({
a.push({
id,

@@ -60,3 +60,5 @@ el,

idCounter++
})
return a
}, [])
}

@@ -8,2 +8,3 @@ import { Browser } from './globals'

* @param {Object} handlers - the handlers for each listener
* @param {Boolean} touchHold
* @return {Array} - array of listener objects

@@ -10,0 +11,0 @@ */

@@ -68,7 +68,6 @@ import { Browser, Selectors } from './globals'

if (event.type === 'mouseenter' && Browser.SUPPORTS_TOUCH && Browser.touch) {
if (touchHold) return
if (Browser.iOS()) el.click()
}
const mouseenterTouch = event.type === 'mouseenter' && Browser.SUPPORTS_TOUCH && Browser.touch
if (mouseenterTouch && touchHold) return
// Toggle show/hide when clicking click-triggered tooltips

@@ -79,2 +78,6 @@ const isClick = event.type === 'click'

isClick && isVisible(popper) && isNotPersistent ? hide() : show(event)
if (mouseenterTouch && Browser.iOS() && el.click) {
el.click()
}
}

@@ -81,0 +84,0 @@

@@ -7,9 +7,18 @@ export const Browser = {}

Browser.touch = false
// Chrome device/touch emulator can make this dynamic
Browser.dynamicInputDetection = true
// Chrome device/touch emulation can make this dynamic
Browser.iOS = () => /iPhone|iPad|iPod/.test(navigator.userAgent) && !window.MSStream
Browser.dynamicInputDetection = true
}
/**
* The global storage array which holds all data reference objects
* from every instance
* This allows us to hide tooltips from all instances, finding the ref when
* clicking on the body, and for followCursor
*/
export const Store = []
/**
* Selector constants used for grabbing elements
*/
export const Selectors = {

@@ -25,2 +34,5 @@ POPPER: '.tippy-popper',

/**
* The default settings applied to each instance
*/
export const Defaults = {

@@ -46,3 +58,3 @@ html: false,

inertia: false,
flipDuration: 300,
flipDuration: 350,
sticky: false,

@@ -57,2 +69,6 @@ stickyDuration: 200,

/**
* The keys of the defaults object for reducing down into a new object
* Used in `getIndividualSettings()`
*/
export const DefaultsKeys = Browser.SUPPORTED && Object.keys(Defaults)

@@ -5,8 +5,6 @@ import { Store } from './globals'

* Hides all poppers
* @param {Object} currentRef
* @param {Object} exclude - reference to exclude if needed
*/
export default function hideAllPoppers(currentRef) {
export default function hideAllPoppers(exclude) {
Store.forEach(ref => {
const {

@@ -27,3 +25,3 @@ popper,

const isHideOnClick = hideOnClick === true || trigger.indexOf('focus') !== -1
const isNotCurrentRef = !currentRef || popper !== currentRef.popper
const isNotCurrentRef = !exclude || popper !== exclude.popper

@@ -30,0 +28,0 @@ if (isHideOnClick && isNotCurrentRef) {

@@ -37,5 +37,5 @@ import { Browser, Store, Selectors, Defaults } from './globals'

return () => {
const now = performance.now()
const now = performance && performance.now()
if (now - time < 10) {
if (now && now - time < 10) {
Browser.touch = false

@@ -101,3 +101,3 @@ document.removeEventListener('mousemove', mousemoveHandler)

if ( ! Browser.SUPPORTS_TOUCH && navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0) {
if ( ! Browser.SUPPORTS_TOUCH && (navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0)) {
document.addEventListener('pointerdown', touchHandler)

@@ -104,0 +104,0 @@ }

@@ -7,5 +7,5 @@ import queueExecution from '../utils/queueExecution'

* Updates a popper's position on each animation frame to make it stick to a moving element
* @param {Object} ref
* @param {Object} refData
*/
export default function makeSticky(ref) {
export default function makeSticky(refData) {

@@ -18,3 +18,3 @@ const {

}
} = ref
} = refData

@@ -21,0 +21,0 @@ const applyTransitionDuration = () =>

@@ -14,2 +14,3 @@ import {

import find from './utils/find'
import findIndex from './utils/findIndex'
import removeTitle from './utils/removeTitle'

@@ -24,8 +25,8 @@ import elementIsInViewport from './utils/elementIsInViewport'

/* Core library functions */
import followCursorHandler from './core/followCursorHandler'
import getArrayOfElementsFromSelector from './core/getArrayOfElementsFromSelector'
import onTransitionEnd from './core/onTransitionEnd'
import mountPopper from './core/mountPopper'
import makeSticky from './core/makeSticky'
import createTooltips from './core/createTooltips'
import followCursorHandler from './core/followCursorHandler'
import getArrayOfElements from './core/getArrayOfElements'
import onTransitionEnd from './core/onTransitionEnd'
import mountPopper from './core/mountPopper'
import makeSticky from './core/makeSticky'
import createTooltips from './core/createTooltips'

@@ -61,7 +62,8 @@ /**

createTooltips.call(this, getArrayOfElementsFromSelector(selector))
this.store = createTooltips.call(this, getArrayOfElements(selector))
Store.push.apply(Store, this.store)
}
/**
* Returns the reference element's popper element
* Returns the reference element's popper element reference
* @param {Element} el

@@ -72,3 +74,3 @@ * @return {Element}

try {
return find(Store.filter(ref => ref.tippyInstance === this), ref => ref.el === el).popper
return find(this.store, ref => ref.el === el).popper
} catch (e) {

@@ -80,3 +82,3 @@ console.error('[getPopperElement]: Element passed as the argument does not exist in the instance')

/**
* Returns a popper's element reference
* Returns a popper's reference element
* @param {Element} popper

@@ -87,3 +89,3 @@ * @return {Element}

try {
return find(Store.filter(ref => ref.tippyInstance === this), ref => ref.popper === popper).el
return find(this.store, ref => ref.popper === popper).el
} catch (e) {

@@ -100,3 +102,3 @@ console.error('[getReferenceElement]: Popper passed as the argument does not exist in the instance')

getReferenceData(x) {
return find(Store, ref => ref.el === x || ref.popper === x)
return find(this.store, ref => ref.el === x || ref.popper === x)
}

@@ -108,5 +110,4 @@

* @param {Number} customDuration (optional)
* @param {Boolean} _makeSync internal param for testing, makes it synchronous
*/
show(popper, customDuration, _makeSync) {
show(popper, customDuration) {
if (this.state.destroyed) return

@@ -116,5 +117,6 @@

const ref = find(Store, ref => ref.popper === popper)
const ref = find(this.store, ref => ref.popper === popper)
const tooltip = popper.querySelector(Selectors.TOOLTIP)
const circle = popper.querySelector(Selectors.CIRCLE)
const content = popper.querySelector(Selectors.CONTENT)

@@ -137,3 +139,3 @@ const {

// Remove transition duration (prevent a transition when popper changes posiiton)
// Remove transition duration (prevent a transition when popper changes position)
applyTransitionDuration([popper, tooltip, circle], 0)

@@ -162,2 +164,5 @@

// Make content fade out a bit faster than the tooltip if `animateFill`
if (circle) content.style.opacity = 1
// Interactive tooltips receive a class of 'active'

@@ -206,3 +211,3 @@ interactive && el.classList.add('active')

const ref = find(Store, ref => ref.popper === popper)
const ref = find(this.store, ref => ref.popper === popper)
const tooltip = popper.querySelector(Selectors.TOOLTIP)

@@ -235,4 +240,6 @@ const circle = popper.querySelector(Selectors.CIRCLE)

applyTransitionDuration([tooltip, circle], _duration)
applyTransitionDuration([tooltip, circle, circle ? content : null], _duration)
if (circle) content.style.opacity = 0
modifyClassList([tooltip, circle], list => {

@@ -256,2 +263,3 @@ list.contains('tippy-tooltip') && list.remove('tippy-notransition')

el.removeEventListener('mousemove', followCursorHandler)
ref.popperInstance.disableEventListeners()

@@ -266,9 +274,32 @@

/**
* Updates a popper with new content
* @param {Element} popper
*/
update(popper) {
if (this.state.destroyed) return
const ref = find(this.store, ref => ref.popper === popper)
const content = popper.querySelector(Selectors.CONTENT)
const { el, settings: { html } } = ref
if (html instanceof Element) {
console.warn('Aborted: update() should not be used if `html` is a DOM element')
return
}
content.innerHTML = html ? document.getElementById(html.replace('#', '')).innerHTML
: el.getAttribute('title') || el.getAttribute('data-original-title')
if (!html) removeTitle(el)
}
/**
* Destroys a popper
* @param {Element} popper
* @param {Boolean} _isLast - private param used by destroyAll to optimize
*/
destroy(popper) {
destroy(popper, _isLast) {
if (this.state.destroyed) return
const ref = find(Store, ref => ref.popper === popper)
const ref = find(this.store, ref => ref.popper === popper)
const { el, popperInstance, listeners } = ref

@@ -284,3 +315,3 @@

// ReStore original title
// Restore original title
el.setAttribute('title', el.getAttribute('data-original-title'))

@@ -294,34 +325,24 @@

// Remove from storage
Store.splice(Store.map(ref => ref.popper).indexOf(popper), 1)
// Remove from store
Store.splice(findIndex(Store, ref => ref.popper === popper), 1)
// Ensure filter is called only once
if (_isLast === undefined || _isLast) {
this.store = Store.filter(ref => ref.tippyInstance === this)
}
}
/**
* Updates a popper with new content
* @param {Element} popper
* Destroys all tooltips created by the instance
*/
update(popper) {
destroyAll() {
if (this.state.destroyed) return
const ref = find(Store, ref => ref.popper === popper)
const content = popper.querySelector(Selectors.CONTENT)
const { el, settings: { html } } = ref
const storeLength = this.store.length
if (html) {
content.innerHTML = (html instanceof Element)
? html.innerHTML
: document.getElementById(html.replace('#', '')).innerHTML
} else {
content.innerHTML = el.getAttribute('title') || el.getAttribute('data-original-title')
removeTitle(el)
}
}
destroyAll() {
if (this.state.destroyed) return
Store.filter(ref => ref.tippyInstance === this).forEach(ref => {
this.destroy(ref.popper)
this.store.forEach(({popper}, index) => {
this.destroy(popper, index === storeLength - 1)
})
this.store = null
this.state.destroyed = true

@@ -328,0 +349,0 @@ }

@@ -0,6 +1,8 @@

import { Selectors } from '../core/globals'
import prefix from './prefix'
import { matches } from './matches'
/**
* Applies the transition duration to each element
* @param {Array} els - HTML elements
* @param {Element[]} els - Array of elements
* @param {Number} duration

@@ -10,10 +12,12 @@ */

let _duration
els.forEach(el => {
if (!el) return
_duration = duration
const isCircle = matches.call(el, Selectors.CIRCLE)
const isContent = matches.call(el, Selectors.CONTENT)
if (el.hasAttribute('x-circle')) {
_duration = Math.round(duration/1.1)
}
_duration = isCircle ? Math.round(_duration/1.1)
: isContent ? Math.round(duration/1.3)
: duration

@@ -20,0 +24,0 @@ el.style[prefix('transitionDuration')] = _duration + 'ms'

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

import { matches } from './matches'
/**

@@ -8,14 +10,2 @@ * Ponyfill to get the closest parent element

export default function closest(element, parentSelector) {
const matches = Element.prototype.matches ||
Element.prototype.matchesSelector ||
Element.prototype.webkitMatchesSelector ||
Element.prototype.mozMatchesSelector ||
Element.prototype.msMatchesSelector ||
function(s) {
var matches = (this.document || this.ownerDocument).querySelectorAll(s),
i = matches.length;
while (--i >= 0 && matches.item(i) !== this) {}
return i > -1;
}
const _closest = Element.prototype.closest || function(selector) {

@@ -22,0 +12,0 @@ let el = this

/**
* Modifies elements' class lists
* @param {Array} els - HTML elements
* @param {Element[]} els - Array of elements
* @param {Function} callback

@@ -5,0 +5,0 @@ */

/**
* Pushes execution of a function to end of execution queue, doing so
* on next repaint
* Waits until next repaint to execute a fn
* @return {Function}

@@ -8,4 +7,4 @@ */

window.requestAnimationFrame(() => {
setTimeout(fn, 0)
setTimeout(fn, 0)
})
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

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