!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Popper=t()}(this,function(){"use strict";function i(e){return e&&"[object Function]"==={}.toString.call(e)}function y(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function h(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function m(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=y(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/(auto|scroll|overlay)/.test(n+r+o)?e:m(h(e))}function g(e){return 11===e?z:10!==e&&z||G}function w(e){if(!e)return document.documentElement;for(var t=g(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var o=n&&n.nodeName;return o&&"BODY"!==o&&"HTML"!==o?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===y(n,"position")?w(n):n:e?e.ownerDocument.documentElement:document.documentElement}function l(e){return null===e.parentNode?e:l(e.parentNode)}function v(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,o=n?e:t,r=n?t:e,i=document.createRange();i.setStart(o,0),i.setEnd(r,0);var s,f,a=i.commonAncestorContainer;if(e!==a&&t!==a||o.contains(r))return"BODY"===(f=(s=a).nodeName)||"HTML"!==f&&w(s.firstElementChild)!==s?w(a):a;var p=l(e);return p.host?v(p.host,t):v(e,l(t).host)}function b(e,t){var n="top"===(1=o.clientWidth&&n>=o.clientHeight}),u=0a[e]&&!o.escapeWithReference&&(n=S(l[t],a[e]-("right"===e?l.width:l.height))),q({},t,n)}};return p.forEach(function(e){var t=-1===["left","top"].indexOf(e)?"secondary":"primary";l=X({},l,u[t](e))}),e.offsets.popper=l,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,o=t.reference,r=e.placement.split("-")[0],i=W,s=-1!==["top","bottom"].indexOf(r),f=s?"right":"bottom",a=s?"left":"top",p=s?"width":"height";return n[f]i(o[f])&&(e.offsets.popper[a]=i(o[f])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!M(e.instance.modifiers,"arrow","keepTogether"))return e;var o=t.element;if("string"==typeof o){if(!(o=e.instance.popper.querySelector(o)))return e}else if(!e.instance.popper.contains(o))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var r=e.placement.split("-")[0],i=e.offsets,s=i.popper,f=i.reference,a=-1!==["left","right"].indexOf(r),p=a?"height":"width",l=a?"Top":"Left",u=l.toLowerCase(),d=a?"left":"top",c=a?"bottom":"right",h=D(o)[p];f[c]-hs[c]&&(e.offsets.popper[u]+=f[u]+h-s[c]),e.offsets.popper=x(e.offsets.popper);var m=f[u]+f[p]/2-h/2,g=y(e.instance.popper),v=parseFloat(g["margin"+l],10),b=parseFloat(g["border"+l+"Width"],10),w=m-e.offsets.popper[u]-v-b;return w=j(S(s[p]-h,w),0),e.arrowElement=o,e.offsets.arrow=(q(n={},u,B(w)),q(n,d,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(h,m){if(e(h.instance.modifiers,"inner"))return h;if(h.flipped&&h.placement===h.originalPlacement)return h;var g=c(h.instance.popper,h.instance.reference,m.padding,m.boundariesElement,h.positionFixed),v=h.placement.split("-")[0],b=N(v),w=h.placement.split("-")[1]||"",y=[];switch(m.behavior){case Z:y=[v,b];break;case $:y=o(v);break;case ee:y=o(v,!0);break;default:y=m.behavior}return y.forEach(function(e,t){if(v!==e||y.length===t+1)return h;v=h.placement.split("-")[0],b=N(v);var n,o=h.offsets.popper,r=h.offsets.reference,i=W,s="left"===v&&i(o.right)>i(r.left)||"right"===v&&i(o.left)i(r.top)||"bottom"===v&&i(o.top)i(g.right),p=i(o.top)i(g.bottom),u="left"===v&&f||"right"===v&&a||"top"===v&&p||"bottom"===v&&l,d=-1!==["top","bottom"].indexOf(v),c=!!m.flipVariations&&(d&&"start"===w&&f||d&&"end"===w&&a||!d&&"start"===w&&p||!d&&"end"===w&&l);(s||u||c)&&(h.flipped=!0,(s||u)&&(v=y[t+1]),c&&(w="end"===(n=w)?"start":"start"===n?"end":n),h.placement=v+(w?"-"+w:""),h.offsets.popper=X({},h.offsets.popper,F(h.instance.popper,h.offsets.reference,h.placement)),h=H(h.instance.modifiers,h,"flip"))}),h},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],o=e.offsets,r=o.popper,i=o.reference,s=-1!==["left","right"].indexOf(n),f=-1===["top","left"].indexOf(n);return r[s?"left":"top"]=i[n]-(f?r[s?"width":"height"]:0),e.placement=N(t),e.offsets.popper=x(r),e}},hide:{order:800,enabled:!0,fn:function(e){if(!M(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=k(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottomn.right||t.top>n.bottom||t.right')):e.className="tippy-arrow",e}function st(){var t=rt();return t.className="tippy-backdrop",t.setAttribute("data-state","hidden"),t}function lt(t,e){t.setAttribute("tabindex","-1"),e.setAttribute("data-interactive","")}function ct(t,e){t.forEach(function(t){t&&(t.style.transitionDuration="".concat(e,"ms"))})}function dt(t,e,a){var r=i&&void 0!==document.body.style.WebkitTransition?"webkitTransitionEnd":"transitionend";t[e+"EventListener"](r,a)}function ft(t){var e=t.getAttribute("x-placement");return e?e.split("-")[0]:""}function mt(t,e){t.forEach(function(t){t&&t.setAttribute("data-state",e)})}function ut(e,a,t){t.split(" ").forEach(function(t){e.classList[a](t+"-theme")})}function l(){var t=0("top"===t?p+o:p),l=i-e.bottom>("bottom"===t?p+o:p),c=e.left-n>("left"===t?p+o:p),d=n-e.right>("right"===t?p+o:p);return s||l||c||d}(ft(b.popper),b.popper.getBoundingClientRect(),t,b.props)||(w(),v())}function E(t){if(!X(t))return b.props.interactive?(document.body.addEventListener("mouseleave",v),void document.addEventListener("mousemove",f)):void v()}function A(t){t.target===b.reference&&(b.props.interactive&&t.relatedTarget&&b.popper.contains(t.relatedTarget)||v())}function C(t){K(t.target,b.props.target)&&h(t)}function O(t){K(t.target,b.props.target)&&v()}function X(t){var e="ontouchstart"in window,a=tt(t.type,"touch"),r=b.props.touchHold;return e&&ht&&r&&!a||ht&&!r&&a}function Y(){var t=b.props.popperOptions,e=b.popperChildren,a=e.tooltip,r=e.arrow;b.popperInstance=new R(b.reference,b.popper,V({placement:b.props.placement},t,{modifiers:V({},t?t.modifiers:{},{preventOverflow:V({boundariesElement:b.props.boundary,padding:yt},$(t,"preventOverflow")),arrow:V({element:r,enabled:!!r},$(t,"arrow")),flip:V({enabled:b.props.flip,padding:b.props.distance+yt,behavior:b.props.flipBehavior},$(t,"flip")),offset:V({offset:b.props.offset},$(t,"offset"))}),onUpdate:function(t){b.props.flipOnUpdate||(t.flipped&&(b.popperInstance.options.placement=t.placement),at(b.popperInstance.modifiers,!1));var e=a.style;e.top="",e.bottom="",e.left="",e.right="",e[ft(b.popper)]=-(b.props.distance-10)+"px"}}))}function L(){return b.props.followCursor&&!ht&&"focus"!==d.type}function T(t,e){if(0===t)return e();function a(t){t.target===r&&(dt(r,"remove",a),e())}var r=b.popperChildren.tooltip;dt(r,"remove",o),dt(r,"add",a),o=a}function I(t,e,a){var r=2|