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

tippy.js

Package Overview
Dependencies
Maintainers
1
Versions
152
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tippy.js - npm Package Compare versions

Comparing version 0.16.2 to 0.16.3

2

dist/tippy.min.js

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

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Tippy=e()}(this,function(){"use strict";function t(t){var e=!1,n=0,i=document.createElement("span");return new MutationObserver(function(){t(),e=!1}).observe(i,{attributes:!0}),function(){e||(e=!0,i.setAttribute("x-index",n),n+=1)}}function e(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},Mt))}}function n(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function i(t,e){Object.keys(e).forEach(function(i){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(i)&&n(e[i])&&(r="px"),t.style[i]=e[i]+r})}function r(t){var e={};return t&&"[object Function]"===e.toString.call(t)}function o(t,e){if(1!==t.nodeType)return[];var n=window.getComputedStyle(t,null);return e?n[e]:n}function a(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function s(t){if(!t||-1!==["HTML","BODY","#document"].indexOf(t.nodeName))return window.document.body;var e=o(t),n=e.overflow,i=e.overflowX;return/(auto|scroll)/.test(n+e.overflowY+i)?t:s(a(t))}function p(t){var e=t.nodeName;return"BODY"!==e&&("HTML"===e||t.firstElementChild.offsetParent===t)}function l(t){return null!==t.parentNode?l(t.parentNode):t}function u(t){var e=t&&t.offsetParent,n=e&&e.nodeName;return n&&"BODY"!==n&&"HTML"!==n?e:window.document.documentElement}function f(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return window.document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?t:e,r=n?e:t,o=document.createRange();o.setStart(i,0),o.setEnd(r,0);var a=o.commonAncestorContainer;if(t!==a&&e!==a||i.contains(r))return p(a)?a:u(a);var s=l(t);return s.host?f(s.host,e):f(t,l(e).host)}function c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===e?"scrollTop":"scrollLeft",i=t.nodeName;if("BODY"===i||"HTML"===i){var r=window.document.documentElement;return(window.document.scrollingElement||r)[n]}return t[n]}function d(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=c(e,"top"),r=c(e,"left"),o=n?-1:1;return t.top+=i*o,t.bottom+=i*o,t.left+=r*o,t.right+=r*o,t}function h(t,e){var n="x"===e?"Left":"Top",i="Left"===n?"Right":"Bottom";return+t["border"+n+"Width"].split("px")[0]+ +t["border"+i+"Width"].split("px")[0]}function m(t,e,n,i){return Math.max(e["offset"+t],n["client"+t],n["offset"+t],Bt()?n["offset"+t]+i["margin"+("Height"===t?"Top":"Left")]+i["margin"+("Height"===t?"Bottom":"Right")]:0)}function v(){var t=window.document.body,e=window.document.documentElement,n=Bt()&&window.getComputedStyle(e);return{height:m("Height",t,e,n),width:m("Width",t,e,n)}}function g(t){return Wt({},t,{right:t.left+t.width,bottom:t.top+t.height})}function b(t){var e={};if(Bt())try{e=t.getBoundingClientRect();var n=c(t,"top"),i=c(t,"left");e.top+=n,e.left+=i,e.bottom+=n,e.right+=i}catch(t){}else e=t.getBoundingClientRect();var r={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},a="HTML"===t.nodeName?v():{},s=a.width||t.clientWidth||r.right-r.left,p=a.height||t.clientHeight||r.bottom-r.top,l=t.offsetWidth-s,u=t.offsetHeight-p;if(l||u){var f=o(t);l-=h(f,"x"),u-=h(f,"y"),r.width-=l,r.height-=u}return g(r)}function w(t,e){var n=Bt(),i="HTML"===e.nodeName,r=b(t),a=b(e),p=s(t),l=g({top:r.top-a.top,left:r.left-a.left,width:r.width,height:r.height});if(i||"BODY"===e.nodeName){var u=o(e),f=n&&i?0:+u.borderTopWidth.split("px")[0],c=n&&i?0:+u.borderLeftWidth.split("px")[0],h=n&&i?0:+u.marginTop.split("px")[0],m=n&&i?0:+u.marginLeft.split("px")[0];l.top-=f-h,l.bottom-=f-h,l.left-=c-m,l.right-=c-m,l.marginTop=h,l.marginLeft=m}return(n?e.contains(p):e===p&&"BODY"!==p.nodeName)&&(l=d(l,e)),l}function y(t){var e=window.document.documentElement,n=w(t,e),i=Math.max(e.clientWidth,window.innerWidth||0),r=Math.max(e.clientHeight,window.innerHeight||0),o=c(e),a=c(e,"left");return g({top:o-n.top+n.marginTop,left:a-n.left+n.marginLeft,width:i,height:r})}function E(t){var e=t.nodeName;return"BODY"!==e&&"HTML"!==e&&("fixed"===o(t,"position")||E(a(t)))}function O(t,e,n,i){var r={top:0,left:0},o=f(t,e);if("viewport"===i)r=y(o);else{var p=void 0;"scrollParent"===i?(p=s(a(t)),"BODY"===p.nodeName&&(p=window.document.documentElement)):p="window"===i?window.document.documentElement:i;var l=w(p,o);if("HTML"!==p.nodeName||E(o))r=l;else{var u=v(),c=u.height,d=u.width;r.top+=l.top-l.marginTop,r.bottom=c+l.top,r.left+=l.left-l.marginLeft,r.right=d+l.left}}return r.left+=n,r.top+=n,r.right-=n,r.bottom-=n,r}function x(t){return t.width*t.height}function T(t,e,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var a=O(n,i,o,r),s={top:{width:a.width,height:e.top-a.top},right:{width:a.right-e.right,height:a.height},bottom:{width:a.width,height:a.bottom-e.bottom},left:{width:e.left-a.left,height:a.height}},p=Object.keys(s).map(function(t){return Wt({key:t},s[t],{area:x(s[t])})}).sort(function(t,e){return e.area-t.area}),l=p.filter(function(t){var e=t.width,i=t.height;return e>=n.clientWidth&&i>=n.clientHeight}),u=l.length>0?l[0].key:p[0].key,f=t.split("-")[1];return u+(f?"-"+f:"")}function L(t,e,n){return w(n,f(e,n))}function k(t){var e=window.getComputedStyle(t),n=parseFloat(e.marginTop)+parseFloat(e.marginBottom),i=parseFloat(e.marginLeft)+parseFloat(e.marginRight);return{width:t.offsetWidth+i,height:t.offsetHeight+n}}function A(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(t){return e[t]})}function C(t,e,n){n=n.split("-")[0];var i=k(t),r={width:i.width,height:i.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",p=o?"height":"width",l=o?"width":"height";return r[a]=e[a]+e[p]/2-i[p]/2,r[s]=n===s?e[s]-i[l]:e[A(s)],r}function M(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function S(t,e,n){if(Array.prototype.findIndex)return t.findIndex(function(t){return t[e]===n});var i=M(t,function(t){return t[e]===n});return t.indexOf(i)}function D(t,e,n){return(void 0===n?t:t.slice(0,S(t,"name",n))).forEach(function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=t.function||t.fn;t.enabled&&r(n)&&(e=n(e,t))}),e}function H(){if(!this.state.isDestroyed){var t={instance:this,styles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=L(this.state,this.popper,this.reference),t.placement=T(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.offsets.popper=C(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position="absolute",t=D(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function I(t,e){return t.some(function(t){var n=t.name;return t.enabled&&n===e})}function B(t){for(var e=[!1,"ms","webkit","moz","o"],n=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<e.length-1;i++){var r=e[i],o=r?""+r+n:t;if(void 0!==window.document.body.style[o])return o}return null}function N(){return this.state.isDestroyed=!0,I(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.left="",this.popper.style.position="",this.popper.style.top="",this.popper.style[B("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function F(t,e,n,i){var r="BODY"===t.nodeName,o=r?window:t;o.addEventListener(e,n,{passive:!0}),r||F(s(o.parentNode),e,n,i),i.push(o)}function P(t,e,n,i){n.updateBound=i,window.addEventListener("resize",n.updateBound,{passive:!0});var r=s(t);return F(r,"scroll",n.updateBound,n.scrollParents),n.scrollElement=r,n.eventsEnabled=!0,n}function W(){this.state.eventsEnabled||(this.state=P(this.reference,this.options,this.state,this.scheduleUpdate))}function j(t,e){return window.removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e}function q(){this.state.eventsEnabled&&(window.cancelAnimationFrame(this.scheduleUpdate),this.state=j(this.reference,this.state))}function R(t,e){Object.keys(e).forEach(function(n){!1!==e[n]?t.setAttribute(n,e[n]):t.removeAttribute(n)})}function U(t,e){var n={position:t.offsets.popper.position},r={"x-placement":t.placement},o=Math.round(t.offsets.popper.left),a=Math.round(t.offsets.popper.top),s=B("transform");return e.gpuAcceleration&&s?(n[s]="translate3d("+o+"px, "+a+"px, 0)",n.top=0,n.left=0,n.willChange="transform"):(n.left=o,n.top=a,n.willChange="top, left"),i(t.instance.popper,Wt({},n,t.styles)),R(t.instance.popper,Wt({},r,t.attributes)),t.offsets.arrow&&i(t.arrowElement,t.offsets.arrow),t}function z(t,e,n,i,r){var o=L(r,e,t),a=T(n.placement,o,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",a),n}function Y(t,e,n){var i=M(t,function(t){return t.name===e}),r=!!i&&t.some(function(t){return t.name===n&&t.enabled&&t.order<i.order});if(!r){var o="`"+e+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return r}function _(t,e){if(!Y(t.instance.modifiers,"arrow","keepTogether"))return t;var n=e.element;if("string"==typeof n){if(!(n=t.instance.popper.querySelector(n)))return t}else if(!t.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var i=t.placement.split("-")[0],r=g(t.offsets.popper),o=t.offsets.reference,a=-1!==["left","right"].indexOf(i),s=a?"height":"width",p=a?"top":"left",l=a?"left":"top",u=a?"bottom":"right",f=k(n)[s];o[u]-f<r[p]&&(t.offsets.popper[p]-=r[p]-(o[u]-f)),o[p]+f>r[u]&&(t.offsets.popper[p]+=o[p]+f-r[u]);var c=o[p]+o[s]/2-f/2,d=c-g(t.offsets.popper)[p];return d=Math.max(Math.min(r[s]-f,d),0),t.arrowElement=n,t.offsets.arrow={},t.offsets.arrow[p]=Math.round(d),t.offsets.arrow[l]="",t}function K(t){return"end"===t?"start":"start"===t?"end":t}function X(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=qt.indexOf(t),i=qt.slice(n+1).concat(qt.slice(0,n));return e?i.reverse():i}function G(t,e){if(I(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=O(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement),i=t.placement.split("-")[0],r=A(i),o=t.placement.split("-")[1]||"",a=[];switch(e.behavior){case Rt.FLIP:a=[i,r];break;case Rt.CLOCKWISE:a=X(i);break;case Rt.COUNTERCLOCKWISE:a=X(i,!0);break;default:a=e.behavior}return a.forEach(function(s,p){if(i!==s||a.length===p+1)return t;i=t.placement.split("-")[0],r=A(i);var l=g(t.offsets.popper),u=t.offsets.reference,f=Math.floor,c="left"===i&&f(l.right)>f(u.left)||"right"===i&&f(l.left)<f(u.right)||"top"===i&&f(l.bottom)>f(u.top)||"bottom"===i&&f(l.top)<f(u.bottom),d=f(l.left)<f(n.left),h=f(l.right)>f(n.right),m=f(l.top)<f(n.top),v=f(l.bottom)>f(n.bottom),b="left"===i&&d||"right"===i&&h||"top"===i&&m||"bottom"===i&&v,w=-1!==["top","bottom"].indexOf(i),y=!!e.flipVariations&&(w&&"start"===o&&d||w&&"end"===o&&h||!w&&"start"===o&&m||!w&&"end"===o&&v);(c||b||y)&&(t.flipped=!0,(c||b)&&(i=a[p+1]),y&&(o=K(o)),t.placement=i+(o?"-"+o:""),t.offsets.popper=Wt({},t.offsets.popper,C(t.instance.popper,t.offsets.reference,t.placement)),t=D(t.instance.modifiers,t,"flip"))}),t}function V(t){var e=g(t.offsets.popper),n=t.offsets.reference,i=t.placement.split("-")[0],r=Math.floor,o=-1!==["top","bottom"].indexOf(i),a=o?"right":"bottom",s=o?"left":"top",p=o?"width":"height";return e[a]<r(n[s])&&(t.offsets.popper[s]=r(n[s])-e[p]),e[s]>r(n[a])&&(t.offsets.popper[s]=r(n[a])),t}function J(t,e,n,i){var r=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+r[1],a=r[2];if(!o)return t;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=i}return g(s)[e]/100*o}if("vh"===a||"vw"===a){return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o}return o}function Q(t,e,i,r){var o=[0,0],a=-1!==["right","left"].indexOf(r),s=t.split(/(\+|\-)/).map(function(t){return t.trim()}),p=s.indexOf(M(s,function(t){return-1!==t.search(/,|\s/)}));s[p]&&-1===s[p].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=-1!==p?[s.slice(0,p).concat([s[p].split(/\s*,\s*|\s+/)[0]]),[s[p].split(/\s*,\s*|\s+/)[1]].concat(s.slice(p+1))]:[s];return l=l.map(function(t,n){var r=(1===n?!a:a)?"height":"width",o=!1;return t.reduce(function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,o=!0,t):o?(t[t.length-1]+=e,o=!1,t):t.concat(e)},[]).map(function(t){return J(t,r,e,i)})}),l.forEach(function(t,e){t.forEach(function(i,r){n(i)&&(o[e]+=i*("-"===t[r-1]?-1:1))})}),o}function Z(t,e){var i=e.offset,r=t.placement,o=t.offsets,a=o.popper,s=o.reference,p=r.split("-")[0],l=void 0;return l=n(+i)?[+i,0]:Q(i,a,s,p),"left"===p?(a.top+=l[0],a.left-=l[1]):"right"===p?(a.top+=l[0],a.left+=l[1]):"top"===p?(a.left+=l[0],a.top-=l[1]):"bottom"===p&&(a.left+=l[0],a.top+=l[1]),t.popper=a,t}function $(t,e){var n=e.boundariesElement||u(t.instance.popper),i=O(t.instance.popper,t.instance.reference,e.padding,n);e.boundaries=i;var r=e.priority,o=g(t.offsets.popper),a={primary:function(t){var n=o[t];return o[t]<i[t]&&!e.escapeWithReference&&(n=Math.max(o[t],i[t])),Pt({},t,n)},secondary:function(t){var n="right"===t?"left":"top",r=o[n];return o[t]>i[t]&&!e.escapeWithReference&&(r=Math.min(o[n],i[t]-("right"===t?o.width:o.height))),Pt({},n,r)}};return r.forEach(function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";o=Wt({},o,a[e](t))}),t.offsets.popper=o,t}function tt(t){var e=t.placement,n=e.split("-")[0],i=e.split("-")[1];if(i){var r=t.offsets.reference,o=g(t.offsets.popper),a=-1!==["bottom","top"].indexOf(n),s=a?"left":"top",p=a?"width":"height",l={start:Pt({},s,r[s]),end:Pt({},s,r[s]+r[p]-o[p])};t.offsets.popper=Wt({},o,l[i])}return t}function et(t){if(!Y(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=M(t.instance.modifiers,function(t){return"preventOverflow"===t.name}).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}function nt(t){var e=t.placement,n=e.split("-")[0],i=g(t.offsets.popper),r=g(t.offsets.reference),o=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return i[o?"left":"top"]=r[e]-(a?i[o?"width":"height"]:0),t.placement=A(e),t.offsets.popper=g(i),t}function it(){Zt=!0,Vt.supported=!!rt("transform"),Vt.supported&&(document.addEventListener("click",function(t){var e=at(t.target,Qt.el),n=at(t.target,Qt.popper);if(n){if(st(Jt,function(t){return t.popper===n}).settings.interactive)return}if(e){var i=st(Jt,function(t){return t.el===e}),r=i.popper,o=i.settings,a=o.hideOnClick,s=o.multiple,p=o.trigger;if(!0!==a||Vt.touch||clearTimeout(r.getAttribute("data-delay")),!s&&Vt.touch||!s&&-1!==p.indexOf("click"))return Ot(i);if(!0!==a||-1!==p.indexOf("click"))return}!at(t.target,Qt.controller)&&document.querySelector(Qt.popper)&&Ot()}),Vt.supportsTouch?document.addEventListener("touchstart",function t(){Vt.touch=!0,Vt.iOS&&document.body.classList.add("tippy-touch"),document.removeEventListener("touchstart",t)}):(navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0)&&(Vt.touch=!0),$t=Object.freeze({html:!1,position:"top",animation:"shift",animateFill:!0,arrow:!1,arrowSize:"regular",delay:0,hideDelay:0,trigger:"mouseenter focus",duration:375,hideDuration:375,interactive:!1,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:document.body,zIndex:9999,popperOptions:{}}),te=Object.keys($t))}function rt(t){for(var e=[!1,"webkit"],n=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<e.length;i++){var r=e[i],o=r?""+r+n:t;if(void 0!==window.document.body.style[o])return o}return null}function ot(t){return t.replace(/-.+/,"")}function at(t,e){return Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||function(t){for(var e=(this.document||this.ownerDocument).querySelectorAll(t),n=e.length;--n>=0&&e.item(n)!==this;);return n>-1}),Element.prototype.closest||(Element.prototype.closest=function(t){for(var e=this;e;){if(e.matches(t))return e;e=e.parentElement}}),t.closest(e)}function st(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function pt(t){var e=t.el,n=t.popper,i=t.settings,r=i.position,o=i.popperOptions,a=i.offset,s=i.distance,p=n.querySelector(Qt.tooltip),l=Xt({placement:r},o||{},{modifiers:Xt({},o?o.modifiers:{},{flip:Xt({padding:s+5},o&&o.modifiers?o.modifiers.flip:{}),offset:Xt({offset:a},o&&o.modifiers?o.modifiers.offset:{})}),onUpdate:function(){p.style.top="",p.style.bottom="",p.style.left="",p.style.right="",p.style[ot(n.getAttribute("x-placement"))]=-(s-$t.distance)+"px"}});return new Yt(e,n,l)}function lt(t,e,n){var i=n.position,r=n.distance,o=n.arrow,a=n.animateFill,s=n.inertia,p=n.animation,l=n.arrowSize,u=n.size,f=n.theme,c=n.html,d=n.zIndex,h=document.createElement("div");h.setAttribute("class","tippy-popper"),h.setAttribute("role","tooltip"),h.setAttribute("aria-hidden","true"),h.setAttribute("id","tippy-tooltip-"+t),h.style.zIndex=d;var m=document.createElement("div");if(m.setAttribute("class","tippy-tooltip tippy-tooltip--"+u+" "+f+"-theme leave"),m.setAttribute("data-animation",p),o){var v=document.createElement("div");v.setAttribute("class","arrow-"+l),v.setAttribute("x-arrow",""),m.appendChild(v)}if(a){m.setAttribute("data-animatefill","");var g=document.createElement("div");g.setAttribute("class","leave"),g.setAttribute("x-circle",""),m.appendChild(g)}s&&m.setAttribute("data-inertia","");var b=document.createElement("div");if(b.setAttribute("class","tippy-tooltip-content"),c){var w=void 0;c instanceof Element?(b.appendChild(c),w=c.id||"tippy-html-template"):(b.innerHTML=document.getElementById(c.replace("#","")).innerHTML,w=c),h.classList.add("html-template"),h.setAttribute("tabindex","0"),m.setAttribute("data-template-id",w)}else b.innerHTML=e;return m.style[ot(i)]=-(r-$t.distance)+"px",m.appendChild(b),h.appendChild(m),h}function ut(t,e,n){var i=[];return"manual"===t?i:(e.addEventListener(t,n.handleTrigger),i.push({event:t,handler:n.handleTrigger}),"mouseenter"===t&&(e.addEventListener("mouseleave",n.handleMouseleave),i.push({event:"mouseleave",handler:n.handleMouseleave})),"focus"===t&&(e.addEventListener("blur",n.handleBlur),i.push({event:"blur",handler:n.handleBlur})),i)}function ft(t){Jt.push(t)}function ct(t){var e=t.title;t.setAttribute("data-original-title",e||"html"),t.removeAttribute("title")}function dt(t){var e=t.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)}function ht(t){var e=this,n=st(Jt,function(t){return t.el===e}),i=n.popper,r=ot(i.getAttribute("x-placement")),o=Math.round(i.offsetWidth/2),a=Math.round(i.offsetHeight/2),s=document.documentElement.offsetWidth||document.body.offsetWidth,p=t.pageX,l=t.pageY,u=void 0,f=void 0;"top"===r?(u=p-o,f=l-2.5*a):"left"===r?(u=p-2*o-15,f=l-a):"right"===r?(u=p+a,f=l-a):"bottom"===r&&(u=p-o,f=l+a/1.5),"top"!==r&&"bottom"!==r||(p+5+o>s?u=s-5-2*o:p-5-o<0&&(u=5)),i.style[rt("transform")]="translate3d("+u+"px, "+f+"px, 0)"}function mt(t,e){e?window.getComputedStyle(e)[rt("transform")]:window.getComputedStyle(t).opacity}function vt(t,e){t.forEach(function(t){t&&e(t.classList)})}function gt(t,e){var n=e;t.forEach(function(t){t&&(n=e,t.hasAttribute("x-circle")&&(n=Math.round(n/1.2)),t.style[rt("transitionDuration")]=n+"ms")})}function bt(t,e,n){var i=t.popper.querySelector(Qt.tooltip),r=!1,o=function t(e){e.target===i&&(r=!0,i.removeEventListener("webkitTransitionEnd",t),i.removeEventListener("transitionend",t),n())};i.addEventListener("webkitTransitionEnd",o),i.addEventListener("transitionend",o),clearTimeout(t.transitionendTimeout),t.transitionendTimeout=setTimeout(function(){!r&&n()},e)}function wt(t,e){return t.style.visibility===e}function yt(t){var e=t.el,n=(t.popper,t.settings),i=n.appendTo,r=n.followCursor;i.appendChild(t.popper),t.popperInstance?(t.popperInstance.update(),!r&&t.popperInstance.enableEventListeners()):(t.popperInstance=pt(t),r&&!Vt.touch&&(e.addEventListener("mousemove",ht),t.popperInstance.disableEventListeners()))}function Et(t){var e=t.popper,n=t.popperInstance,i=t.settings.stickyDuration,r=function(){return e.style[rt("transitionDuration")]=i+"ms"},o=function(){return e.style[rt("transitionDuration")]=""};ne(function t(){n&&n.scheduleUpdate(),r();var i="visible"===e.style.visibility;window.requestAnimationFrame?i?window.requestAnimationFrame(t):o():i?setTimeout(t,20):o()})}function Ot(t){Jt.forEach(function(e){var n=e.popper,i=e.tippyInstance,r=e.settings,o=r.appendTo,a=r.hideOnClick,s=r.hideDuration,p=r.trigger;if(o.contains(n)){var l=!0===a||-1!==p.indexOf("focus"),u=!t||n!==t.popper;l&&u&&i.hide(n,s)}})}function xt(t){return t instanceof Element?[t]:[].slice.call(document.querySelectorAll(t))}function Tt(t,e,n){if(!e.getAttribute("x-placement"))return!1;var i=t.clientX,r=t.clientY,o=n.interactiveBorder,a=n.distance,s=e.getBoundingClientRect(),p=ot(e.getAttribute("x-placement")),l=o+a,u=s.top-r>o,f=r-s.bottom>o,c=s.left-i>o,d=i-s.right>o;return"top"===p?u=s.top-r>l:"bottom"===p?f=r-s.bottom>l:"left"===p?c=s.left-i>l:"right"===p&&(d=i-s.right>l),u||f||c||d}function Lt(t,e){return new ie(t,e)}for(var kt=["native code","[object MutationObserverConstructor]"],At="undefined"!=typeof window,Ct=["Edge","Trident","Firefox"],Mt=0,St=0;St<Ct.length;St+=1)if(At&&navigator.userAgent.indexOf(Ct[St])>=0){Mt=1;break}var Dt=At&&function(t){return kt.some(function(e){return(t||"").toString().indexOf(e)>-1})}(window.MutationObserver),Ht=Dt?t:e,It=void 0,Bt=function(){return void 0===It&&(It=-1!==navigator.appVersion.indexOf("MSIE 10")),It},Nt=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},Ft=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),Pt=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},Wt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},jt=["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"],qt=jt.slice(3),Rt={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"},Ut={shift:{order:100,enabled:!0,fn:tt},offset:{order:200,enabled:!0,fn:Z,offset:0},preventOverflow:{order:300,enabled:!0,fn:$,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:V},arrow:{order:500,enabled:!0,fn:_,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:G,behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:nt},hide:{order:800,enabled:!0,fn:et},applyStyle:{order:900,enabled:!0,fn:U,onLoad:z,gpuAcceleration:!0}},zt={placement:"bottom",eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:Ut},Yt=function(){function t(e,n){var o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Nt(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(o.update)},this.update=Ht(this.update.bind(this)),this.options=Wt({},t.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e.jquery?e[0]:e,this.popper=n.jquery?n[0]:n,i(this.popper,{position:"absolute"}),this.options.modifiers={},Object.keys(Wt({},t.Defaults.modifiers,a.modifiers)).forEach(function(e){o.options.modifiers[e]=Wt({},t.Defaults.modifiers[e]||{},a.modifiers?a.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(t){return Wt({name:t},o.options.modifiers[t])}).sort(function(t,e){return t.order-e.order}),this.modifiers.forEach(function(t){t.enabled&&r(t.onLoad)&&t.onLoad(o.reference,o.popper,o.options,t,o.state)}),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return Ft(t,[{key:"update",value:function(){return H.call(this)}},{key:"destroy",value:function(){return N.call(this)}},{key:"enableEventListeners",value:function(){return W.call(this)}},{key:"disableEventListeners",value:function(){return q.call(this)}}]),t}();Yt.Utils=("undefined"!=typeof window?window:global).PopperUtils,Yt.placements=jt,Yt.Defaults=zt;var _t=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},Kt=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),Xt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Gt="undefined"!=typeof window,Vt={};Gt&&(Vt.supportsTouch="ontouchstart"in window,Vt.iOS=/iPhone|iPad|iPod/.test(navigator.userAgent)&&!window.MSStream,Vt.touch=!1);var Jt=[],Qt={popper:".tippy-popper",tooltip:".tippy-tooltip",content:".tippy-tooltip-content",circle:"[x-circle]",arrow:"[x-arrow]",el:"[data-tooltipped]",controller:"[data-tippy-controller]"},Zt=void 0,$t=void 0,te=void 0,ee=1,ne=function(){var t=void 0;return function(e){clearTimeout(t),window.requestAnimationFrame?window.requestAnimationFrame(function(){t=setTimeout(e,0)}):t=setTimeout(e,0)}}(),ie=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(_t(this,t),Zt||it(),Vt.supported){this.selector=e,this.settings=Object.freeze(Xt({},$t,n)),this.callbacks={wait:n.wait,beforeShown:n.beforeShown||new Function,shown:n.shown||new Function,beforeHidden:n.beforeHidden||new Function,hidden:n.hidden||new Function};var i=xt(e);this._createTooltips(i)}}return Kt(t,[{key:"_applyIndividualSettings",value:function(t){var e=this,n={};return te.forEach(function(i){var r=t.getAttribute("data-"+i.toLowerCase())||e.settings[i];"false"===r&&(r=!1),"true"===r&&(r=!0),isNaN(parseFloat(r))||(r=parseFloat(r)),n[i]=r}),n.arrow&&(n.animateFill=!1),Xt({},this.settings,n)}},{key:"_getEventListenerHandlers",value:function(t,e,n){var i=this,r=(n.position,n.delay),o=n.hideDelay,a=n.hideDuration,s=n.duration,p=n.interactive,l=(n.interactiveBorder,n.distance,n.hideOnClick),u=n.trigger,f=function(){clearTimeout(e.getAttribute("data-delay")),clearTimeout(e.getAttribute("data-hidedelay"))},c=function(){if(f(),"visible"!==e.style.visibility)if(r){var t=setTimeout(function(){return i.show(e,s)},r);e.setAttribute("data-delay",t)}else i.show(e,s)},d=function(t){return i.callbacks.wait?i.callbacks.wait.call(e,c,t):c()},h=function(){if(f(),o){var t=setTimeout(function(){return i.hide(e,a)},o);e.setAttribute("data-hidedelay",t)}else i.hide(e,a)};return{handleTrigger:function(t){var n="click"===t.type,i="visible"===e.style.visibility,r="persistent"!==l;n&&i&&r?h():d(t)},handleMouseleave:function(i){if(p){var r=function i(r){var o=function(){document.removeEventListener("mousemove",i),h()},a=at(r.target,Qt.el),s=at(r.target,Qt.popper)===e,p=a===t,l=-1!==u.indexOf("click");if(a&&a!==t)return o();s||p||l||Tt(r,e,n)&&o()};return document.addEventListener("mousemove",r)}h()},handleBlur:function(t){!Vt.touch&&t.relatedTarget&&(at(t.relatedTarget,Qt.popper)||h())}}}},{key:"_createTooltips",value:function(t){var e=this;t.forEach(function(t){var n=e._applyIndividualSettings(t),i=n.html,r=n.trigger,o=t.title;if(o||i){var a=ee;t.setAttribute("data-tooltipped",""),t.setAttribute("aria-describedby","tippy-tooltip-"+a),ct(t);var s=lt(a,o,n),p=e._getEventListenerHandlers(t,s,n),l=[];r.trim().split(" ").forEach(function(e){return l=l.concat(ut(e,t,p))}),ft({id:a,el:t,popper:s,settings:n,listeners:l,tippyInstance:e}),ee++}})}},{key:"getPopperElement",value:function(t){try{return st(Jt,function(e){return e.el===t}).popper}catch(t){console.error("[Tippy error]: Element does not exist in any Tippy instances")}}},{key:"getTooltippedElement",value:function(t){try{return st(Jt,function(e){return e.popper===t}).el}catch(t){console.error("[Tippy error]: Popper does not exist in any Tippy instances")}}},{key:"getReference",value:function(t){return st(Jt,function(e){return e.el===t})||st(Jt,function(e){return e.popper===t})}},{key:"show",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.settings.duration;this.callbacks.beforeShown.call(t);var i=st(Jt,function(e){return e.popper===t}),r=t.querySelector(Qt.tooltip),o=t.querySelector(Qt.circle),a=i.el,s=i.settings,p=s.appendTo,l=s.sticky,u=s.interactive,f=s.followCursor,c=s.flipDuration;gt([t,r,o],0),!p.contains(t)&&yt(i),t.style.visibility="visible",t.setAttribute("aria-hidden","false"),ne(function(){wt(t,"visible")&&(!f&&i.popperInstance.update(),gt([r,o],n),!f&&gt([t],c),u&&a.classList.add("active"),l&&Et(i),mt(r,o),vt([r,o],function(t){t.contains("tippy-notransition")&&t.remove("tippy-notransition"),t.remove("leave"),t.add("enter")}),bt(i,n,function(){wt(t,"visible")&&!i.onShownFired&&(u&&t.focus(),r.classList.add("tippy-notransition"),i.onShownFired=!0,e.callbacks.shown.call(t))}))})}},{key:"hide",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.settings.duration;this.callbacks.beforeHidden.call(t);var i=st(Jt,function(e){return e.popper===t}),r=t.querySelector(Qt.tooltip),o=t.querySelector(Qt.circle),a=(t.querySelector(Qt.content),i.el),s=i.settings,p=s.appendTo,l=(s.sticky,s.interactive),u=(s.followCursor,s.html),f=s.trigger;i.onShownFired=!1,l&&a.classList.remove("active"),t.style.visibility="hidden",t.setAttribute("aria-hidden","true"),n===$t.hideDuration?n=parseInt(r.style[rt("transitionDuration")]):gt([r,o],n),vt([r,o],function(t){t.contains("tippy-tooltip")&&t.remove("tippy-notransition"),t.remove("enter"),t.add("leave")}),u&&-1!==f.indexOf("click")&&dt(a)&&a.focus(),bt(i,n,function(){wt(t,"hidden")&&p.contains(t)&&(i.popperInstance.disableEventListeners(),p.removeChild(t),e.callbacks.hidden.call(t))})}},{key:"destroy",value:function(t){var e=st(Jt,function(e){return e.popper===t}),n=e.el,i=e.popperInstance,r=e.listeners;wt(t,"hidden")||this.hide(t,0),r.forEach(function(t){return n.removeEventListener(t.event,t.handler)}),n.removeAttribute("data-tooltipped"),n.removeAttribute("aria-describedby"),i&&i.destroy(),Jt.splice(Jt.map(function(t){return t.popper}).indexOf(t),1)}},{key:"update",value:function(t){var e=st(Jt,function(e){return e.popper===t}),n=t.querySelector(Qt.content),i=e.el,r=e.settings.html;r?n.innerHTML=r instanceof Element?r.innerHTML:document.getElementById(r.replace("#","")).innerHTML:(n.innerHTML=i.title||i.getAttribute("data-original-title"),ct(i))}}]),t}();return Lt});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Tippy=e()}(this,function(){"use strict";function t(t){var e=!1,n=0,i=document.createElement("span");return new MutationObserver(function(){t(),e=!1}).observe(i,{attributes:!0}),function(){e||(e=!0,i.setAttribute("x-index",n),n+=1)}}function e(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},Mt))}}function n(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function i(t,e){Object.keys(e).forEach(function(i){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(i)&&n(e[i])&&(r="px"),t.style[i]=e[i]+r})}function r(t){var e={};return t&&"[object Function]"===e.toString.call(t)}function o(t,e){if(1!==t.nodeType)return[];var n=window.getComputedStyle(t,null);return e?n[e]:n}function a(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function s(t){if(!t||-1!==["HTML","BODY","#document"].indexOf(t.nodeName))return window.document.body;var e=o(t),n=e.overflow,i=e.overflowX;return/(auto|scroll)/.test(n+e.overflowY+i)?t:s(a(t))}function p(t){var e=t.nodeName;return"BODY"!==e&&("HTML"===e||t.firstElementChild.offsetParent===t)}function l(t){return null!==t.parentNode?l(t.parentNode):t}function u(t){var e=t&&t.offsetParent,n=e&&e.nodeName;return n&&"BODY"!==n&&"HTML"!==n?e:window.document.documentElement}function f(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return window.document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?t:e,r=n?e:t,o=document.createRange();o.setStart(i,0),o.setEnd(r,0);var a=o.commonAncestorContainer;if(t!==a&&e!==a||i.contains(r))return p(a)?a:u(a);var s=l(t);return s.host?f(s.host,e):f(t,l(e).host)}function c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===e?"scrollTop":"scrollLeft",i=t.nodeName;if("BODY"===i||"HTML"===i){var r=window.document.documentElement;return(window.document.scrollingElement||r)[n]}return t[n]}function d(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=c(e,"top"),r=c(e,"left"),o=n?-1:1;return t.top+=i*o,t.bottom+=i*o,t.left+=r*o,t.right+=r*o,t}function h(t,e){var n="x"===e?"Left":"Top",i="Left"===n?"Right":"Bottom";return+t["border"+n+"Width"].split("px")[0]+ +t["border"+i+"Width"].split("px")[0]}function m(t,e,n,i){return Math.max(e["offset"+t],n["client"+t],n["offset"+t],Bt()?n["offset"+t]+i["margin"+("Height"===t?"Top":"Left")]+i["margin"+("Height"===t?"Bottom":"Right")]:0)}function v(){var t=window.document.body,e=window.document.documentElement,n=Bt()&&window.getComputedStyle(e);return{height:m("Height",t,e,n),width:m("Width",t,e,n)}}function g(t){return Wt({},t,{right:t.left+t.width,bottom:t.top+t.height})}function b(t){var e={};if(Bt())try{e=t.getBoundingClientRect();var n=c(t,"top"),i=c(t,"left");e.top+=n,e.left+=i,e.bottom+=n,e.right+=i}catch(t){}else e=t.getBoundingClientRect();var r={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},a="HTML"===t.nodeName?v():{},s=a.width||t.clientWidth||r.right-r.left,p=a.height||t.clientHeight||r.bottom-r.top,l=t.offsetWidth-s,u=t.offsetHeight-p;if(l||u){var f=o(t);l-=h(f,"x"),u-=h(f,"y"),r.width-=l,r.height-=u}return g(r)}function w(t,e){var n=Bt(),i="HTML"===e.nodeName,r=b(t),a=b(e),p=s(t),l=g({top:r.top-a.top,left:r.left-a.left,width:r.width,height:r.height});if(i||"BODY"===e.nodeName){var u=o(e),f=n&&i?0:+u.borderTopWidth.split("px")[0],c=n&&i?0:+u.borderLeftWidth.split("px")[0],h=n&&i?0:+u.marginTop.split("px")[0],m=n&&i?0:+u.marginLeft.split("px")[0];l.top-=f-h,l.bottom-=f-h,l.left-=c-m,l.right-=c-m,l.marginTop=h,l.marginLeft=m}return(n?e.contains(p):e===p&&"BODY"!==p.nodeName)&&(l=d(l,e)),l}function y(t){var e=window.document.documentElement,n=w(t,e),i=Math.max(e.clientWidth,window.innerWidth||0),r=Math.max(e.clientHeight,window.innerHeight||0),o=c(e),a=c(e,"left");return g({top:o-n.top+n.marginTop,left:a-n.left+n.marginLeft,width:i,height:r})}function E(t){var e=t.nodeName;return"BODY"!==e&&"HTML"!==e&&("fixed"===o(t,"position")||E(a(t)))}function O(t,e,n,i){var r={top:0,left:0},o=f(t,e);if("viewport"===i)r=y(o);else{var p=void 0;"scrollParent"===i?(p=s(a(t)),"BODY"===p.nodeName&&(p=window.document.documentElement)):p="window"===i?window.document.documentElement:i;var l=w(p,o);if("HTML"!==p.nodeName||E(o))r=l;else{var u=v(),c=u.height,d=u.width;r.top+=l.top-l.marginTop,r.bottom=c+l.top,r.left+=l.left-l.marginLeft,r.right=d+l.left}}return r.left+=n,r.top+=n,r.right-=n,r.bottom-=n,r}function x(t){return t.width*t.height}function T(t,e,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var a=O(n,i,o,r),s={top:{width:a.width,height:e.top-a.top},right:{width:a.right-e.right,height:a.height},bottom:{width:a.width,height:a.bottom-e.bottom},left:{width:e.left-a.left,height:a.height}},p=Object.keys(s).map(function(t){return Wt({key:t},s[t],{area:x(s[t])})}).sort(function(t,e){return e.area-t.area}),l=p.filter(function(t){var e=t.width,i=t.height;return e>=n.clientWidth&&i>=n.clientHeight}),u=l.length>0?l[0].key:p[0].key,f=t.split("-")[1];return u+(f?"-"+f:"")}function L(t,e,n){return w(n,f(e,n))}function k(t){var e=window.getComputedStyle(t),n=parseFloat(e.marginTop)+parseFloat(e.marginBottom),i=parseFloat(e.marginLeft)+parseFloat(e.marginRight);return{width:t.offsetWidth+i,height:t.offsetHeight+n}}function A(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(t){return e[t]})}function C(t,e,n){n=n.split("-")[0];var i=k(t),r={width:i.width,height:i.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",p=o?"height":"width",l=o?"width":"height";return r[a]=e[a]+e[p]/2-i[p]/2,r[s]=n===s?e[s]-i[l]:e[A(s)],r}function M(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function S(t,e,n){if(Array.prototype.findIndex)return t.findIndex(function(t){return t[e]===n});var i=M(t,function(t){return t[e]===n});return t.indexOf(i)}function D(t,e,n){return(void 0===n?t:t.slice(0,S(t,"name",n))).forEach(function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=t.function||t.fn;t.enabled&&r(n)&&(e=n(e,t))}),e}function H(){if(!this.state.isDestroyed){var t={instance:this,styles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=L(this.state,this.popper,this.reference),t.placement=T(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.offsets.popper=C(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position="absolute",t=D(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function I(t,e){return t.some(function(t){var n=t.name;return t.enabled&&n===e})}function B(t){for(var e=[!1,"ms","webkit","moz","o"],n=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<e.length-1;i++){var r=e[i],o=r?""+r+n:t;if(void 0!==window.document.body.style[o])return o}return null}function N(){return this.state.isDestroyed=!0,I(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.left="",this.popper.style.position="",this.popper.style.top="",this.popper.style[B("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function F(t,e,n,i){var r="BODY"===t.nodeName,o=r?window:t;o.addEventListener(e,n,{passive:!0}),r||F(s(o.parentNode),e,n,i),i.push(o)}function P(t,e,n,i){n.updateBound=i,window.addEventListener("resize",n.updateBound,{passive:!0});var r=s(t);return F(r,"scroll",n.updateBound,n.scrollParents),n.scrollElement=r,n.eventsEnabled=!0,n}function W(){this.state.eventsEnabled||(this.state=P(this.reference,this.options,this.state,this.scheduleUpdate))}function j(t,e){return window.removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e}function q(){this.state.eventsEnabled&&(window.cancelAnimationFrame(this.scheduleUpdate),this.state=j(this.reference,this.state))}function R(t,e){Object.keys(e).forEach(function(n){!1!==e[n]?t.setAttribute(n,e[n]):t.removeAttribute(n)})}function U(t,e){var n={position:t.offsets.popper.position},r={"x-placement":t.placement},o=Math.round(t.offsets.popper.left),a=Math.round(t.offsets.popper.top),s=B("transform");return e.gpuAcceleration&&s?(n[s]="translate3d("+o+"px, "+a+"px, 0)",n.top=0,n.left=0,n.willChange="transform"):(n.left=o,n.top=a,n.willChange="top, left"),i(t.instance.popper,Wt({},n,t.styles)),R(t.instance.popper,Wt({},r,t.attributes)),t.offsets.arrow&&i(t.arrowElement,t.offsets.arrow),t}function z(t,e,n,i,r){var o=L(r,e,t),a=T(n.placement,o,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",a),n}function Y(t,e,n){var i=M(t,function(t){return t.name===e}),r=!!i&&t.some(function(t){return t.name===n&&t.enabled&&t.order<i.order});if(!r){var o="`"+e+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return r}function _(t,e){if(!Y(t.instance.modifiers,"arrow","keepTogether"))return t;var n=e.element;if("string"==typeof n){if(!(n=t.instance.popper.querySelector(n)))return t}else if(!t.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var i=t.placement.split("-")[0],r=g(t.offsets.popper),o=t.offsets.reference,a=-1!==["left","right"].indexOf(i),s=a?"height":"width",p=a?"top":"left",l=a?"left":"top",u=a?"bottom":"right",f=k(n)[s];o[u]-f<r[p]&&(t.offsets.popper[p]-=r[p]-(o[u]-f)),o[p]+f>r[u]&&(t.offsets.popper[p]+=o[p]+f-r[u]);var c=o[p]+o[s]/2-f/2,d=c-g(t.offsets.popper)[p];return d=Math.max(Math.min(r[s]-f,d),0),t.arrowElement=n,t.offsets.arrow={},t.offsets.arrow[p]=Math.round(d),t.offsets.arrow[l]="",t}function K(t){return"end"===t?"start":"start"===t?"end":t}function X(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=qt.indexOf(t),i=qt.slice(n+1).concat(qt.slice(0,n));return e?i.reverse():i}function G(t,e){if(I(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=O(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement),i=t.placement.split("-")[0],r=A(i),o=t.placement.split("-")[1]||"",a=[];switch(e.behavior){case Rt.FLIP:a=[i,r];break;case Rt.CLOCKWISE:a=X(i);break;case Rt.COUNTERCLOCKWISE:a=X(i,!0);break;default:a=e.behavior}return a.forEach(function(s,p){if(i!==s||a.length===p+1)return t;i=t.placement.split("-")[0],r=A(i);var l=g(t.offsets.popper),u=t.offsets.reference,f=Math.floor,c="left"===i&&f(l.right)>f(u.left)||"right"===i&&f(l.left)<f(u.right)||"top"===i&&f(l.bottom)>f(u.top)||"bottom"===i&&f(l.top)<f(u.bottom),d=f(l.left)<f(n.left),h=f(l.right)>f(n.right),m=f(l.top)<f(n.top),v=f(l.bottom)>f(n.bottom),b="left"===i&&d||"right"===i&&h||"top"===i&&m||"bottom"===i&&v,w=-1!==["top","bottom"].indexOf(i),y=!!e.flipVariations&&(w&&"start"===o&&d||w&&"end"===o&&h||!w&&"start"===o&&m||!w&&"end"===o&&v);(c||b||y)&&(t.flipped=!0,(c||b)&&(i=a[p+1]),y&&(o=K(o)),t.placement=i+(o?"-"+o:""),t.offsets.popper=Wt({},t.offsets.popper,C(t.instance.popper,t.offsets.reference,t.placement)),t=D(t.instance.modifiers,t,"flip"))}),t}function V(t){var e=g(t.offsets.popper),n=t.offsets.reference,i=t.placement.split("-")[0],r=Math.floor,o=-1!==["top","bottom"].indexOf(i),a=o?"right":"bottom",s=o?"left":"top",p=o?"width":"height";return e[a]<r(n[s])&&(t.offsets.popper[s]=r(n[s])-e[p]),e[s]>r(n[a])&&(t.offsets.popper[s]=r(n[a])),t}function J(t,e,n,i){var r=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+r[1],a=r[2];if(!o)return t;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=i}return g(s)[e]/100*o}if("vh"===a||"vw"===a){return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o}return o}function Q(t,e,i,r){var o=[0,0],a=-1!==["right","left"].indexOf(r),s=t.split(/(\+|\-)/).map(function(t){return t.trim()}),p=s.indexOf(M(s,function(t){return-1!==t.search(/,|\s/)}));s[p]&&-1===s[p].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=-1!==p?[s.slice(0,p).concat([s[p].split(/\s*,\s*|\s+/)[0]]),[s[p].split(/\s*,\s*|\s+/)[1]].concat(s.slice(p+1))]:[s];return l=l.map(function(t,n){var r=(1===n?!a:a)?"height":"width",o=!1;return t.reduce(function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,o=!0,t):o?(t[t.length-1]+=e,o=!1,t):t.concat(e)},[]).map(function(t){return J(t,r,e,i)})}),l.forEach(function(t,e){t.forEach(function(i,r){n(i)&&(o[e]+=i*("-"===t[r-1]?-1:1))})}),o}function Z(t,e){var i=e.offset,r=t.placement,o=t.offsets,a=o.popper,s=o.reference,p=r.split("-")[0],l=void 0;return l=n(+i)?[+i,0]:Q(i,a,s,p),"left"===p?(a.top+=l[0],a.left-=l[1]):"right"===p?(a.top+=l[0],a.left+=l[1]):"top"===p?(a.left+=l[0],a.top-=l[1]):"bottom"===p&&(a.left+=l[0],a.top+=l[1]),t.popper=a,t}function $(t,e){var n=e.boundariesElement||u(t.instance.popper),i=O(t.instance.popper,t.instance.reference,e.padding,n);e.boundaries=i;var r=e.priority,o=g(t.offsets.popper),a={primary:function(t){var n=o[t];return o[t]<i[t]&&!e.escapeWithReference&&(n=Math.max(o[t],i[t])),Pt({},t,n)},secondary:function(t){var n="right"===t?"left":"top",r=o[n];return o[t]>i[t]&&!e.escapeWithReference&&(r=Math.min(o[n],i[t]-("right"===t?o.width:o.height))),Pt({},n,r)}};return r.forEach(function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";o=Wt({},o,a[e](t))}),t.offsets.popper=o,t}function tt(t){var e=t.placement,n=e.split("-")[0],i=e.split("-")[1];if(i){var r=t.offsets.reference,o=g(t.offsets.popper),a=-1!==["bottom","top"].indexOf(n),s=a?"left":"top",p=a?"width":"height",l={start:Pt({},s,r[s]),end:Pt({},s,r[s]+r[p]-o[p])};t.offsets.popper=Wt({},o,l[i])}return t}function et(t){if(!Y(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=M(t.instance.modifiers,function(t){return"preventOverflow"===t.name}).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}function nt(t){var e=t.placement,n=e.split("-")[0],i=g(t.offsets.popper),r=g(t.offsets.reference),o=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return i[o?"left":"top"]=r[e]-(a?i[o?"width":"height"]:0),t.placement=A(e),t.offsets.popper=g(i),t}function it(){it.done||(it.done=!0,Vt.supported=!!rt("transform"),Vt.supported&&(document.addEventListener("click",function(t){var e=at(t.target,Qt.el),n=at(t.target,Qt.popper);if(n){if(st(Jt,function(t){return t.popper===n}).settings.interactive)return}if(e){var i=st(Jt,function(t){return t.el===e}),r=i.popper,o=i.settings,a=o.hideOnClick,s=o.multiple,p=o.trigger;if(!0!==a||Vt.touch||clearTimeout(r.getAttribute("data-delay")),!s&&Vt.touch||!s&&-1!==p.indexOf("click"))return Ot(i);if(!0!==a||-1!==p.indexOf("click"))return}!at(t.target,Qt.controller)&&document.querySelector(Qt.popper)&&Ot()}),Vt.supportsTouch?document.addEventListener("touchstart",function t(){Vt.touch=!0,Vt.iOS&&document.body.classList.add("tippy-touch"),document.removeEventListener("touchstart",t)}):(navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0)&&(Vt.touch=!0),Zt=Object.freeze({html:!1,position:"top",animation:"shift",animateFill:!0,arrow:!1,arrowSize:"regular",delay:0,hideDelay:0,trigger:"mouseenter focus",duration:375,hideDuration:375,interactive:!1,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:document.body,zIndex:9999,popperOptions:{}}),$t=Object.keys(Zt)))}function rt(t){for(var e=[!1,"webkit"],n=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<e.length;i++){var r=e[i],o=r?""+r+n:t;if(void 0!==window.document.body.style[o])return o}return null}function ot(t){return t.replace(/-.+/,"")}function at(t,e){return Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||function(t){for(var e=(this.document||this.ownerDocument).querySelectorAll(t),n=e.length;--n>=0&&e.item(n)!==this;);return n>-1}),Element.prototype.closest||(Element.prototype.closest=function(t){for(var e=this;e;){if(e.matches(t))return e;e=e.parentElement}}),t.closest(e)}function st(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function pt(t){var e=t.el,n=t.popper,i=t.settings,r=i.position,o=i.popperOptions,a=i.offset,s=i.distance,p=n.querySelector(Qt.tooltip),l=Xt({placement:r},o||{},{modifiers:Xt({},o?o.modifiers:{},{flip:Xt({padding:s+5},o&&o.modifiers?o.modifiers.flip:{}),offset:Xt({offset:a},o&&o.modifiers?o.modifiers.offset:{})}),onUpdate:function(){p.style.top="",p.style.bottom="",p.style.left="",p.style.right="",p.style[ot(n.getAttribute("x-placement"))]=-(s-Zt.distance)+"px"}});return new Yt(e,n,l)}function lt(t,e,n){var i=n.position,r=n.distance,o=n.arrow,a=n.animateFill,s=n.inertia,p=n.animation,l=n.arrowSize,u=n.size,f=n.theme,c=n.html,d=n.zIndex,h=document.createElement("div");h.setAttribute("class","tippy-popper"),h.setAttribute("role","tooltip"),h.setAttribute("aria-hidden","true"),h.setAttribute("id","tippy-tooltip-"+t),h.style.zIndex=d;var m=document.createElement("div");if(m.setAttribute("class","tippy-tooltip tippy-tooltip--"+u+" "+f+"-theme leave"),m.setAttribute("data-animation",p),o){var v=document.createElement("div");v.setAttribute("class","arrow-"+l),v.setAttribute("x-arrow",""),m.appendChild(v)}if(a){m.setAttribute("data-animatefill","");var g=document.createElement("div");g.setAttribute("class","leave"),g.setAttribute("x-circle",""),m.appendChild(g)}s&&m.setAttribute("data-inertia","");var b=document.createElement("div");if(b.setAttribute("class","tippy-tooltip-content"),c){var w=void 0;c instanceof Element?(b.appendChild(c),w=c.id||"tippy-html-template"):(b.innerHTML=document.getElementById(c.replace("#","")).innerHTML,w=c),h.classList.add("html-template"),h.setAttribute("tabindex","0"),m.setAttribute("data-template-id",w)}else b.innerHTML=e;return m.style[ot(i)]=-(r-Zt.distance)+"px",m.appendChild(b),h.appendChild(m),h}function ut(t,e,n){var i=[];return"manual"===t?i:(e.addEventListener(t,n.handleTrigger),i.push({event:t,handler:n.handleTrigger}),"mouseenter"===t&&(e.addEventListener("mouseleave",n.handleMouseleave),i.push({event:"mouseleave",handler:n.handleMouseleave})),"focus"===t&&(e.addEventListener("blur",n.handleBlur),i.push({event:"blur",handler:n.handleBlur})),i)}function ft(t){Jt.push(t)}function ct(t){var e=t.getAttribute("title");t.setAttribute("data-original-title",e||"html"),t.removeAttribute("title")}function dt(t){var e=t.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)}function ht(t){var e=this,n=st(Jt,function(t){return t.el===e}),i=n.popper,r=ot(i.getAttribute("x-placement")),o=Math.round(i.offsetWidth/2),a=Math.round(i.offsetHeight/2),s=document.documentElement.offsetWidth||document.body.offsetWidth,p=t.pageX,l=t.pageY,u=void 0,f=void 0;"top"===r?(u=p-o,f=l-2.5*a):"left"===r?(u=p-2*o-15,f=l-a):"right"===r?(u=p+a,f=l-a):"bottom"===r&&(u=p-o,f=l+a/1.5),"top"!==r&&"bottom"!==r||(p+5+o>s?u=s-5-2*o:p-5-o<0&&(u=5)),i.style[rt("transform")]="translate3d("+u+"px, "+f+"px, 0)"}function mt(t,e){e?window.getComputedStyle(e)[rt("transform")]:window.getComputedStyle(t).opacity}function vt(t,e){t.forEach(function(t){t&&e(t.classList)})}function gt(t,e){var n=e;t.forEach(function(t){t&&(n=e,t.hasAttribute("x-circle")&&(n=Math.round(n/1.2)),t.style[rt("transitionDuration")]=n+"ms")})}function bt(t,e,n){var i=t.popper.querySelector(Qt.tooltip),r=!1,o=function t(e){e.target===i&&(r=!0,i.removeEventListener("webkitTransitionEnd",t),i.removeEventListener("transitionend",t),n())};i.addEventListener("webkitTransitionEnd",o),i.addEventListener("transitionend",o),clearTimeout(t.transitionendTimeout),t.transitionendTimeout=setTimeout(function(){!r&&n()},e)}function wt(t,e){return t.style.visibility===e}function yt(t){var e=t.el,n=(t.popper,t.settings),i=n.appendTo,r=n.followCursor;i.appendChild(t.popper),t.popperInstance?(t.popperInstance.update(),!r&&t.popperInstance.enableEventListeners()):(t.popperInstance=pt(t),r&&!Vt.touch&&(e.addEventListener("mousemove",ht),t.popperInstance.disableEventListeners()))}function Et(t){var e=t.popper,n=t.popperInstance,i=t.settings.stickyDuration,r=function(){return e.style[rt("transitionDuration")]=i+"ms"},o=function(){return e.style[rt("transitionDuration")]=""};ee(function t(){n&&n.scheduleUpdate(),r();var i="visible"===e.style.visibility;window.requestAnimationFrame?i?window.requestAnimationFrame(t):o():i?setTimeout(t,20):o()})}function Ot(t){Jt.forEach(function(e){var n=e.popper,i=e.tippyInstance,r=e.settings,o=r.appendTo,a=r.hideOnClick,s=r.hideDuration,p=r.trigger;if(o.contains(n)){var l=!0===a||-1!==p.indexOf("focus"),u=!t||n!==t.popper;l&&u&&i.hide(n,s)}})}function xt(t){return t instanceof Element?[t]:[].slice.call(document.querySelectorAll(t))}function Tt(t,e,n){if(!e.getAttribute("x-placement"))return!1;var i=t.clientX,r=t.clientY,o=n.interactiveBorder,a=n.distance,s=e.getBoundingClientRect(),p=ot(e.getAttribute("x-placement")),l=o+a,u=s.top-r>o,f=r-s.bottom>o,c=s.left-i>o,d=i-s.right>o;return"top"===p?u=s.top-r>l:"bottom"===p?f=r-s.bottom>l:"left"===p?c=s.left-i>l:"right"===p&&(d=i-s.right>l),u||f||c||d}function Lt(t,e){return new ne(t,e)}for(var kt=["native code","[object MutationObserverConstructor]"],At="undefined"!=typeof window,Ct=["Edge","Trident","Firefox"],Mt=0,St=0;St<Ct.length;St+=1)if(At&&navigator.userAgent.indexOf(Ct[St])>=0){Mt=1;break}var Dt=At&&function(t){return kt.some(function(e){return(t||"").toString().indexOf(e)>-1})}(window.MutationObserver),Ht=Dt?t:e,It=void 0,Bt=function(){return void 0===It&&(It=-1!==navigator.appVersion.indexOf("MSIE 10")),It},Nt=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},Ft=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),Pt=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},Wt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},jt=["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"],qt=jt.slice(3),Rt={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"},Ut={shift:{order:100,enabled:!0,fn:tt},offset:{order:200,enabled:!0,fn:Z,offset:0},preventOverflow:{order:300,enabled:!0,fn:$,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:V},arrow:{order:500,enabled:!0,fn:_,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:G,behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:nt},hide:{order:800,enabled:!0,fn:et},applyStyle:{order:900,enabled:!0,fn:U,onLoad:z,gpuAcceleration:!0}},zt={placement:"bottom",eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:Ut},Yt=function(){function t(e,n){var o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Nt(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(o.update)},this.update=Ht(this.update.bind(this)),this.options=Wt({},t.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e.jquery?e[0]:e,this.popper=n.jquery?n[0]:n,i(this.popper,{position:"absolute"}),this.options.modifiers={},Object.keys(Wt({},t.Defaults.modifiers,a.modifiers)).forEach(function(e){o.options.modifiers[e]=Wt({},t.Defaults.modifiers[e]||{},a.modifiers?a.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(t){return Wt({name:t},o.options.modifiers[t])}).sort(function(t,e){return t.order-e.order}),this.modifiers.forEach(function(t){t.enabled&&r(t.onLoad)&&t.onLoad(o.reference,o.popper,o.options,t,o.state)}),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return Ft(t,[{key:"update",value:function(){return H.call(this)}},{key:"destroy",value:function(){return N.call(this)}},{key:"enableEventListeners",value:function(){return W.call(this)}},{key:"disableEventListeners",value:function(){return q.call(this)}}]),t}();Yt.Utils=("undefined"!=typeof window?window:global).PopperUtils,Yt.placements=jt,Yt.Defaults=zt;var _t=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},Kt=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),Xt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Gt="undefined"!=typeof window,Vt={};Gt&&(Vt.supportsTouch="ontouchstart"in window,Vt.iOS=/iPhone|iPad|iPod/.test(navigator.userAgent)&&!window.MSStream,Vt.touch=!1);var Jt=[],Qt={popper:".tippy-popper",tooltip:".tippy-tooltip",content:".tippy-tooltip-content",circle:"[x-circle]",arrow:"[x-arrow]",el:"[data-tooltipped]",controller:"[data-tippy-controller]"},Zt=void 0,$t=void 0,te=1,ee=function(){var t=void 0;return function(e){clearTimeout(t),window.requestAnimationFrame?window.requestAnimationFrame(function(){t=setTimeout(e,0)}):t=setTimeout(e,0)}}(),ne=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(_t(this,t),it(),Vt.supported){this.selector=e,this.settings=Object.freeze(Xt({},Zt,n)),this.callbacks={wait:n.wait,beforeShown:n.beforeShown||new Function,shown:n.shown||new Function,beforeHidden:n.beforeHidden||new Function,hidden:n.hidden||new Function};var i=xt(e);this._createTooltips(i)}}return Kt(t,[{key:"_applyIndividualSettings",value:function(t){var e=this,n={};return $t.forEach(function(i){var r=t.getAttribute("data-"+i.toLowerCase())||e.settings[i];"false"===r&&(r=!1),"true"===r&&(r=!0),isNaN(parseFloat(r))||(r=parseFloat(r)),n[i]=r}),n.arrow&&(n.animateFill=!1),Xt({},this.settings,n)}},{key:"_getEventListenerHandlers",value:function(t,e,n){var i=this,r=(n.position,n.delay),o=n.hideDelay,a=n.hideDuration,s=n.duration,p=n.interactive,l=(n.interactiveBorder,n.distance,n.hideOnClick),u=n.trigger,f=function(){clearTimeout(e.getAttribute("data-delay")),clearTimeout(e.getAttribute("data-hidedelay"))},c=function(){if(f(),"visible"!==e.style.visibility)if(r){var t=setTimeout(function(){return i.show(e,s)},r);e.setAttribute("data-delay",t)}else i.show(e,s)},d=function(t){return i.callbacks.wait?i.callbacks.wait.call(e,c,t):c()},h=function(){if(f(),o){var t=setTimeout(function(){return i.hide(e,a)},o);e.setAttribute("data-hidedelay",t)}else i.hide(e,a)};return{handleTrigger:function(t){var n="click"===t.type,i="visible"===e.style.visibility,r="persistent"!==l;n&&i&&r?h():d(t)},handleMouseleave:function(i){if(p){var r=function i(r){var o=function(){document.removeEventListener("mousemove",i),h()},a=at(r.target,Qt.el),s=at(r.target,Qt.popper)===e,p=a===t,l=-1!==u.indexOf("click");if(a&&a!==t)return o();s||p||l||Tt(r,e,n)&&o()};return document.addEventListener("mousemove",r)}h()},handleBlur:function(t){!Vt.touch&&t.relatedTarget&&(at(t.relatedTarget,Qt.popper)||h())}}}},{key:"_createTooltips",value:function(t){var e=this;t.forEach(function(t){var n=e._applyIndividualSettings(t),i=n.html,r=n.trigger,o=t.getAttribute("title");if(o||i){var a=te;t.setAttribute("data-tooltipped",""),t.setAttribute("aria-describedby","tippy-tooltip-"+a),ct(t);var s=lt(a,o,n),p=e._getEventListenerHandlers(t,s,n),l=[];r.trim().split(" ").forEach(function(e){return l=l.concat(ut(e,t,p))}),ft({id:a,el:t,popper:s,settings:n,listeners:l,tippyInstance:e}),te++}})}},{key:"getPopperElement",value:function(t){try{return st(Jt,function(e){return e.el===t}).popper}catch(t){console.error("[Tippy error]: Element does not exist in any Tippy instances")}}},{key:"getTooltippedElement",value:function(t){try{return st(Jt,function(e){return e.popper===t}).el}catch(t){console.error("[Tippy error]: Popper does not exist in any Tippy instances")}}},{key:"getReference",value:function(t){return st(Jt,function(e){return e.el===t})||st(Jt,function(e){return e.popper===t})}},{key:"show",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.settings.duration;this.callbacks.beforeShown.call(t);var i=st(Jt,function(e){return e.popper===t}),r=t.querySelector(Qt.tooltip),o=t.querySelector(Qt.circle),a=i.el,s=i.settings,p=s.appendTo,l=s.sticky,u=s.interactive,f=s.followCursor,c=s.flipDuration;gt([t,r,o],0),!p.contains(t)&&yt(i),t.style.visibility="visible",t.setAttribute("aria-hidden","false"),ee(function(){wt(t,"visible")&&(!f&&i.popperInstance.update(),gt([r,o],n),!f&&gt([t],c),u&&a.classList.add("active"),l&&Et(i),mt(r,o),vt([r,o],function(t){t.contains("tippy-notransition")&&t.remove("tippy-notransition"),t.remove("leave"),t.add("enter")}),bt(i,n,function(){wt(t,"visible")&&!i.onShownFired&&(u&&t.focus(),r.classList.add("tippy-notransition"),i.onShownFired=!0,e.callbacks.shown.call(t))}))})}},{key:"hide",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.settings.duration;this.callbacks.beforeHidden.call(t);var i=st(Jt,function(e){return e.popper===t}),r=t.querySelector(Qt.tooltip),o=t.querySelector(Qt.circle),a=(t.querySelector(Qt.content),i.el),s=i.settings,p=s.appendTo,l=(s.sticky,s.interactive),u=(s.followCursor,s.html),f=s.trigger;i.onShownFired=!1,l&&a.classList.remove("active"),t.style.visibility="hidden",t.setAttribute("aria-hidden","true"),n===Zt.hideDuration?n=parseInt(r.style[rt("transitionDuration")]):gt([r,o],n),vt([r,o],function(t){t.contains("tippy-tooltip")&&t.remove("tippy-notransition"),t.remove("enter"),t.add("leave")}),u&&-1!==f.indexOf("click")&&dt(a)&&a.focus(),bt(i,n,function(){wt(t,"hidden")&&p.contains(t)&&(i.popperInstance.disableEventListeners(),p.removeChild(t),e.callbacks.hidden.call(t))})}},{key:"destroy",value:function(t){var e=st(Jt,function(e){return e.popper===t}),n=e.el,i=e.popperInstance,r=e.listeners;wt(t,"hidden")||this.hide(t,0),r.forEach(function(t){return n.removeEventListener(t.event,t.handler)}),n.removeAttribute("data-tooltipped"),n.removeAttribute("aria-describedby"),i&&i.destroy(),Jt.splice(Jt.map(function(t){return t.popper}).indexOf(t),1)}},{key:"update",value:function(t){var e=st(Jt,function(e){return e.popper===t}),n=t.querySelector(Qt.content),i=e.el,r=e.settings.html;r?n.innerHTML=r instanceof Element?r.innerHTML:document.getElementById(r.replace("#","")).innerHTML:(n.innerHTML=i.getAttribute("title")||i.getAttribute("data-original-title"),ct(i))}}]),t}();return Lt});

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

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

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

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

* @file tippy.js | Pure JS Tooltip Library
* @version 0.16.2
* @version 0.16.3
* @license MIT

@@ -32,4 +32,3 @@ */

let hasInit,
defaultSettings,
let defaultSettings,
defaultSettingsKeys,

@@ -43,6 +42,7 @@ idCounter = 1

hasInit = true
if (init.done) return
init.done = true
// prefix will return either `transform`, `webkitTransform` or null
BROWSER.supported = !!(prefix('transform'))
BROWSER.supported = !!prefix('transform')

@@ -426,3 +426,3 @@ if (!BROWSER.supported) return

function removeTitle(el) {
const title = el.title
const title = el.getAttribute('title')
el.setAttribute('data-original-title', title || 'html')

@@ -744,3 +744,3 @@ el.removeAttribute('title')

// DOM is presumably mostly ready (for document.body) by instantiation time
if (!hasInit) init()
init()

@@ -920,3 +920,3 @@ // Use default browser tooltip on unsupported browsers

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

@@ -1170,3 +1170,3 @@

} else {
content.innerHTML = el.title || el.getAttribute('data-original-title')
content.innerHTML = el.getAttribute('title') || el.getAttribute('data-original-title')
removeTitle(el)

@@ -1173,0 +1173,0 @@ }

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc