!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Popper=e()}(this,function(){"use strict";function i(t){return t&&"[object Function]"==={}.toString.call(t)}function d(t,e){if(1!==t.nodeType)return[];t=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?t[e]:t}function l(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function c(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=d(t),n=e.overflow,r=e.overflowX,e=e.overflowY;return/(auto|scroll|overlay)/.test(n+e+r)?t:c(l(t))}function f(t){return 11===t?_:10!==t&&_||q}function h(t){if(!t)return document.documentElement;for(var e=f(10)?document.body:null,n=t.offsetParent||null;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===d(n,"position")?h(n):n:(t?t.ownerDocument:document).documentElement}function o(t){return null===t.parentNode?t:o(t.parentNode)}function u(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?t:e,i=n?e:t,n=document.createRange();n.setStart(r,0),n.setEnd(i,0);n=n.commonAncestorContainer;if(t!==n&&e!==n||r.contains(i))return"BODY"===(i=(r=n).nodeName)||"HTML"!==i&&h(r.firstElementChild)!==r?h(n):n;n=o(t);return n.host?u(n.host,e):u(t,o(e).host)}function m(t,e){var n="top"===(1=n.clientWidth&&t>=n.clientHeight}),e=(0s[t]&&!r.escapeWithReference&&(n=H(l[e],s[t]-("right"===t?l.width:l.height))),V({},e,n)}};return p.forEach(function(t){var e=-1===["left","top"].indexOf(t)?"secondary":"primary";l=G({},l,c[e](t))}),t.offsets.popper=l,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,n=e.popper,r=e.reference,i=t.placement.split("-")[0],o=M,a=-1!==["top","bottom"].indexOf(i),e=a?"right":"bottom",i=a?"left":"top",a=a?"width":"height";return n[e]o(r[e])&&(t.offsets.popper[i]=o(r[e])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){if(!N(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 r=t.placement.split("-")[0],i=t.offsets,o=i.popper,a=i.reference,p=-1!==["left","right"].indexOf(r),s=p?"height":"width",l=p?"Top":"Left",c=l.toLowerCase(),e=p?"left":"top",i=p?"bottom":"right",r=k(n)[s];a[i]-ro[i]&&(t.offsets.popper[c]+=a[c]+r-o[i]),t.offsets.popper=y(t.offsets.popper);p=a[c]+a[s]/2-r/2,i=d(t.instance.popper),a=parseFloat(i["margin"+l],10),l=parseFloat(i["border"+l+"Width"],10),l=p-t.offsets.popper[c]-a-l,l=X(H(o[s]-r,l),0);return t.arrowElement=n,t.offsets.arrow=(V(n={},c,F(l)),V(n,e,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(l,c){if(t(l.instance.modifiers,"inner"))return l;if(l.flipped&&l.placement===l.originalPlacement)return l;var d=x(l.instance.popper,l.instance.reference,c.padding,c.boundariesElement,l.positionFixed),f=l.placement.split("-")[0],u=E(f),m=l.placement.split("-")[1]||"",h=[];switch(c.behavior){case Z:h=[f,u];break;case $:h=Y(f);break;case tt:h=Y(f,!0);break;default:h=c.behavior}return h.forEach(function(t,e){if(f!==t||h.length===e+1)return l;f=l.placement.split("-")[0],u=E(f);var n=l.offsets.popper,r=l.offsets.reference,i=M,o="left"===f&&i(n.right)>i(r.left)||"right"===f&&i(n.left)i(r.top)||"bottom"===f&&i(n.top)i(d.right),s=i(n.top)i(d.bottom),r="left"===f&&a||"right"===f&&p||"top"===f&&s||"bottom"===f&&t,n=-1!==["top","bottom"].indexOf(f),i=!!c.flipVariations&&(n&&"start"===m&&a||n&&"end"===m&&p||!n&&"start"===m&&s||!n&&"end"===m&&t),s=!!c.flipVariationsByContent&&(n&&"start"===m&&p||n&&"end"===m&&a||!n&&"start"===m&&t||!n&&"end"===m&&s),s=i||s;(o||r||s)&&(l.flipped=!0,(o||r)&&(f=h[e+1]),s&&(m="end"===(s=m)?"start":"start"===s?"end":s),l.placement=f+(m?"-"+m:""),l.offsets.popper=G({},l.offsets.popper,A(l.instance.popper,l.offsets.reference,l.placement)),l=L(l.instance.modifiers,l,"flip"))}),l},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split("-")[0],r=t.offsets,i=r.popper,o=r.reference,a=-1!==["left","right"].indexOf(n),r=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=o[n]-(r?i[a?"width":"height"]:0),t.placement=E(e),t.offsets.popper=y(i),t}},hide:{order:800,enabled:!0,fn:function(t){if(!N(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=O(t.instance.modifiers,function(t){return"preventOverflow"===t.name}).boundaries;if(e.bottomn.right||e.top>n.bottom||e.right')):e.className=p,e}function It(){var t=At();return t.className=a,t.setAttribute("data-state","hidden"),t}function Ht(t,e){t.setAttribute("tabindex","-1"),e.setAttribute("data-interactive","")}function Mt(t,e,n){var r=o&&void 0!==document.body.style.webkitTransition?"webkitTransitionEnd":"transitionend";t[e+"EventListener"](r,n)}function Ft(t){t=t.getAttribute(st);return t?t.split("-")[0]:""}function Xt(e,n,t){t.split(" ").forEach(function(t){e.classList[n](t+"-theme")})}var Pt=1,Bt=[];function Wt(u,r){var n,m,i,e,o,t=Tt(u,r);if(!t.multiple&&u._tippy)return null;var a,p,s,h,l,c=!1,d=!1,f=!1,b=!1,y=[],g=gt(F,t.interactiveDebounce),v=Pt++,w=function(t,e){var n=At();n.className=dt,n.id="tippy-".concat(t),n.style.zIndex=""+e.zIndex,n.style.position="absolute",n.style.top="0",n.style.left="0",e.role&&n.setAttribute("role",e.role);var r=At();return r.className=ft,r.style.maxWidth=e.maxWidth+("number"==typeof e.maxWidth?"px":""),r.setAttribute("data-size",e.size),r.setAttribute("data-animation",e.animation),r.setAttribute("data-state","hidden"),Xt(r,"add",e.theme),(t=At()).className=ut,t.setAttribute("data-state","hidden"),e.interactive&&Ht(n,r),e.arrow&&r.appendChild(Yt(e.arrowType)),e.animateFill&&(r.appendChild(It()),r.setAttribute("data-animatefill","")),e.inertia&&Nt(r),St(t,e),r.appendChild(t),n.appendChild(r),n}(v,t),x=Dt(w),k={id:v,reference:u,popper:w,popperChildren:x,popperInstance:null,props:t,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},clearDelayTimeouts:R,set:G,setContent:function(t){G({content:t})},show:J,hide:K,enable:function(){k.state.isEnabled=!0},disable:function(){k.state.isEnabled=!1},destroy:function(t){var e;k.state.isDestroyed||(d=!0,k.state.isMounted&&K(0),I(),delete u._tippy,(e=k.props.target)&&t&&xt(u)&&rt(u.querySelectorAll(e)).forEach(function(t){t._tippy&&t._tippy.destroy()}),k.popperInstance&&k.popperInstance.destroy(),d=!1,k.state.isDestroyed=!0)}};return u._tippy=k,w._tippy=k,Y(),t.lazy||j(),t.showOnInit&&_(),!t.a11y||t.target||!xt(l=O())||nt.call(l,"a[href],area[href],button,details,input,textarea,select,iframe,[tabindex]")&&!l.hasAttribute("disabled")||O().setAttribute("tabindex","0"),w.addEventListener("mouseenter",function(t){k.props.interactive&&k.state.isVisible&&"mouseenter"===n&&_(t,!0)}),w.addEventListener("mouseleave",function(){k.props.interactive&&"mouseenter"===n&&document.addEventListener("mousemove",g)}),k;function E(){document.removeEventListener("mousemove",H)}function A(){document.body.removeEventListener("mouseleave",q),document.removeEventListener("mousemove",g),Bt=Bt.filter(function(t){return t!==g})}function O(){return k.props.triggerTarget||u}function L(){document.addEventListener("click",U,!0)}function T(){document.removeEventListener("click",U,!0)}function C(){return[k.popperChildren.tooltip,k.popperChildren.backdrop,k.popperChildren.content]}function S(){var t=k.props.followCursor;return t&&"focus"!==n||ht&&"initial"===t}function D(t,e){var n=k.popperChildren.tooltip;function r(t){t.target===n&&(Mt(n,"remove",r),e())}if(0===t)return e();Mt(n,"remove",s),Mt(n,"add",r),s=r}function N(t,e,n){n=2("top"===t?o+a:o),n=i-e.bottom>("bottom"===t?o+a:o),i=e.left-r>("left"===t?o+a:o),o=r-e.right>("right"===t?o+a:o);return p||n||i||o}(Ft(w),w.getBoundingClientRect(),k.props)&&(A(),q())}function X(t){if(!z(t))return k.props.interactive?(document.body.addEventListener("mouseleave",q),document.addEventListener("mousemove",g),void Bt.push(g)):void q()}function P(t){t.target===O()&&(k.props.interactive&&t.relatedTarget&&w.contains(t.relatedTarget)||q())}function B(t){it(t.target,k.props.target)&&_(t)}function W(t){it(t.target,k.props.target)&&q()}function z(t){var e="ontouchstart"in window,n=wt(t.type,"touch"),t=k.props.touchHold;return e&&ht&&t&&!n||ht&&!t&&n}function V(){!b&&p&&(b=!0,w.offsetHeight,p())}function j(){var e=k.props.popperOptions,t=k.popperChildren,i=t.tooltip,t=t.arrow,o=vt(e,"preventOverflow");function n(t){k.props.flip&&!k.props.flipOnUpdate&&(t.flipped&&(k.popperInstance.options.placement=t.placement),Et(k.popperInstance.modifiers,!1)),i.setAttribute(st,t.placement),!1!==t.attributes[lt]?i.setAttribute(lt,""):i.removeAttribute(lt),a&&a!==t.placement&&f&&(i.style.transition="none",requestAnimationFrame(function(){i.style.transition=""})),a=t.placement,f=k.state.isVisible;var e=Ft(w),n=i.style;n.top=n.bottom=n.left=n.right="",n[e]=-(k.props.distance-10)+"px";var r=o&&void 0!==o.padding?o.padding:pt,t="number"==typeof r,n=Z({top:t?r:r.top,bottom:t?r:r.bottom,left:t?r:r.left,right:t?r:r.right},!t&&r);n[e]=t?r+k.props.distance:(r[e]||0)+k.props.distance,k.popperInstance.modifiers.filter(function(t){return"preventOverflow"===t.name})[0].padding=n,h=n}t=Z({eventsEnabled:!1,placement:k.props.placement},e,{modifiers:Z({},e?e.modifiers:{},{preventOverflow:Z({boundariesElement:k.props.boundary,padding:pt},o),arrow:Z({element:t,enabled:!!t},vt(e,"arrow")),flip:Z({enabled:k.props.flip,padding:k.props.distance+pt,behavior:k.props.flipBehavior},vt(e,"flip")),offset:Z({offset:k.props.offset},vt(e,"offset"))}),onCreate:function(t){n(t),V(),e&&e.onCreate&&e.onCreate(t)},onUpdate:function(t){n(t),V(),e&&e.onUpdate&&e.onUpdate(t)}});k.popperInstance=new Q(u,w,t)}function _(t,e){if(R(),!k.state.isVisible){if(k.props.target)return!t||(n=it(t.target,k.props.target))&&!n._tippy&&Wt(n,Z({},k.props,{content:kt(r.content,[n]),appendTo:r.appendTo,target:"",showOnInit:!0})),0;if(c=!0,t&&!e&&k.props.onTrigger(k,t),k.props.wait)return k.props.wait(k,t);S()&&!k.state.isMounted&&(k.popperInstance||j(),document.addEventListener("mousemove",H)),L();t=yt(k.props.delay,0,tt.delay);t?i=setTimeout(function(){J()},t):J()}var n}function q(){if(R(),!k.state.isVisible)return E(),void T();c=!1;var t=yt(k.props.delay,1,tt.delay);t?e=setTimeout(function(){k.state.isVisible&&K()},t):o=requestAnimationFrame(function(){K()})}function U(t){if(!k.props.interactive||!w.contains(t.target)){if(O().contains(t.target)){if(ht)return;if(k.state.isVisible&&wt(k.props.trigger,"click"))return}!0===k.props.hideOnClick&&(R(),K())}}function R(){clearTimeout(i),clearTimeout(e),cancelAnimationFrame(o)}function G(e){Ct(e=e||{},tt),I();var t,n,r,i,o,a,p=k.props,s=Tt(u,Z({},k.props,{},e,{ignoreAttributes:!0}));s.ignoreAttributes=bt(e,"ignoreAttributes")?e.ignoreAttributes||!1:p.ignoreAttributes,k.props=s,Y(),A(),g=gt(F,s.interactiveDebounce),n=p,r=s,i=(a=Dt(t=w)).tooltip,o=a.content,s=a.backdrop,a=a.arrow,t.style.zIndex=""+r.zIndex,i.setAttribute("data-size",r.size),i.setAttribute("data-animation",r.animation),i.style.maxWidth=r.maxWidth+("number"==typeof r.maxWidth?"px":""),r.role?t.setAttribute("role",r.role):t.removeAttribute("role"),n.content!==r.content&&St(o,r),!n.animateFill&&r.animateFill?(i.appendChild(It()),i.setAttribute("data-animatefill","")):n.animateFill&&!r.animateFill&&(i.removeChild(s),i.removeAttribute("data-animatefill")),!n.arrow&&r.arrow?i.appendChild(Yt(r.arrowType)):n.arrow&&!r.arrow&&i.removeChild(a),n.arrow&&r.arrow&&n.arrowType!==r.arrowType&&i.replaceChild(Yt(r.arrowType),a),!n.interactive&&r.interactive?Ht(t,i):n.interactive&&!r.interactive&&(a=i,t.removeAttribute("tabindex"),a.removeAttribute("data-interactive")),!n.inertia&&r.inertia?Nt(i):n.inertia&&!r.inertia&&i.removeAttribute("data-inertia"),n.theme!==r.theme&&(Xt(i,"remove",n.theme),Xt(i,"add",r.theme)),k.popperChildren=Dt(w),k.popperInstance&&(et.some(function(t){return bt(e,t)&&e[t]!==p[t]})?(k.popperInstance.destroy(),j(),k.state.isVisible&&k.popperInstance.enableEventListeners(),k.props.followCursor&&m&&H(m)):k.popperInstance.update())}function J(){var e,n=0