UNPKG

graphdb-workbench

Version:
1 lines 44 kB
import{O as OntoTooltipPlacement}from"./onto-tooltip-placement-D_J2-9CG.js";class OntoTooltipConfiguration{constructor(){this.hideOnClick=!1,this.interactive=!0,this.appendTo=()=>document.body,this.trigger="manual",this.allowHTML=!0,this.theme="onto-tooltip",this.onShow=()=>document.querySelectorAll(".jfk-tooltip").forEach(e=>e.classList.add("hidden")),this.onHide=()=>document.querySelectorAll(".jfk-tooltip").forEach(e=>e.classList.remove("hidden"))}setHideOnClick(e){return this.hideOnClick=e,this}setContent(e){return this.content=e,this}setTrigger(e){return this.trigger=e||"manual",this}setPlacement(e){return this.placement=e||OntoTooltipPlacement.RIGHT,this}setAllowHTML(e){return this.allowHTML=e,this}setTheme(e){return this.theme=e||"onto-tooltip",this}setAppendTo(e){return this.appendTo=this.getAppendToTarget(e),this}getAppendToTarget(e){return"parent"===e?e:()=>document.body}}var top="top",bottom="bottom",right="right",left="left",auto="auto",basePlacements=[top,bottom,right,left],start="start",end="end",clippingParents="clippingParents",viewport="viewport",popper="popper",reference="reference",variationPlacements=basePlacements.reduce(function(e,t){return e.concat([t+"-"+start,t+"-"+end])},[]),placements=[].concat(basePlacements,[auto]).reduce(function(e,t){return e.concat([t,t+"-"+start,t+"-"+end])},[]),beforeRead="beforeRead",read="read",afterRead="afterRead",beforeMain="beforeMain",main="main",afterMain="afterMain",beforeWrite="beforeWrite",write="write",afterWrite="afterWrite",modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite];function getNodeName(e){return e?(e.nodeName||"").toLowerCase():null}function getWindow(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function isElement$1(e){return e instanceof getWindow(e).Element||e instanceof Element}function isHTMLElement(e){return e instanceof getWindow(e).HTMLElement||e instanceof HTMLElement}function isShadowRoot(e){return"undefined"!=typeof ShadowRoot&&(e instanceof getWindow(e).ShadowRoot||e instanceof ShadowRoot)}function applyStyles(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},o=t.attributes[e]||{},r=t.elements[e];isHTMLElement(r)&&getNodeName(r)&&(Object.assign(r.style,n),Object.keys(o).forEach(function(e){var t=o[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)}))})}function effect$2(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var o=t.elements[e],r=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});isHTMLElement(o)&&getNodeName(o)&&(Object.assign(o.style,i),Object.keys(r).forEach(function(e){o.removeAttribute(e)}))})}}var applyStyles$1={name:"applyStyles",enabled:!0,phase:"write",fn:applyStyles,effect:effect$2,requires:["computeStyles"]};function getBasePlacement$1(e){return e.split("-")[0]}var max=Math.max,min=Math.min,round=Math.round;function getUAString(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString())}function getBoundingClientRect(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var o=e.getBoundingClientRect(),r=1,i=1;t&&isHTMLElement(e)&&(r=e.offsetWidth>0&&round(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&round(o.height)/e.offsetHeight||1);var a=(isElement$1(e)?getWindow(e):window).visualViewport,s=!isLayoutViewport()&&n,c=(o.left+(s&&a?a.offsetLeft:0))/r,p=(o.top+(s&&a?a.offsetTop:0))/i,u=o.width/r,l=o.height/i;return{width:u,height:l,top:p,right:c+u,bottom:p+l,left:c,x:c,y:p}}function getLayoutRect(e){var t=getBoundingClientRect(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function contains(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&isShadowRoot(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function getComputedStyle(e){return getWindow(e).getComputedStyle(e)}function isTableElement(e){return["table","td","th"].indexOf(getNodeName(e))>=0}function getDocumentElement(e){return((isElement$1(e)?e.ownerDocument:e.document)||window.document).documentElement}function getParentNode(e){return"html"===getNodeName(e)?e:e.assignedSlot||e.parentNode||(isShadowRoot(e)?e.host:null)||getDocumentElement(e)}function getTrueOffsetParent(e){return isHTMLElement(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function getContainingBlock(e){var t=/firefox/i.test(getUAString());if(/Trident/i.test(getUAString())&&isHTMLElement(e)&&"fixed"===getComputedStyle(e).position)return null;var n=getParentNode(e);for(isShadowRoot(n)&&(n=n.host);isHTMLElement(n)&&["html","body"].indexOf(getNodeName(n))<0;){var o=getComputedStyle(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}function getOffsetParent(e){for(var t=getWindow(e),n=getTrueOffsetParent(e);n&&isTableElement(n)&&"static"===getComputedStyle(n).position;)n=getTrueOffsetParent(n);return n&&("html"===getNodeName(n)||"body"===getNodeName(n)&&"static"===getComputedStyle(n).position)?t:n||getContainingBlock(e)||t}function getMainAxisFromPlacement(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function within(e,t,n){return max(e,min(t,n))}function withinMaxClamp(e,t,n){var o=within(e,t,n);return o>n?n:o}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(e){return Object.assign({},getFreshSideObject(),e)}function expandToHashMap(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var toPaddingObject=function(e,t){return mergePaddingObject("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:expandToHashMap(e,basePlacements))};function arrow(e){var t,n=e.state,o=e.name,r=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=getBasePlacement$1(n.placement),c=getMainAxisFromPlacement(s),p=[left,right].indexOf(s)>=0?"height":"width";if(i&&a){var u=toPaddingObject(r.padding,n),l=getLayoutRect(i),f="y"===c?top:left,d="y"===c?bottom:right,m=n.rects.reference[p]+n.rects.reference[c]-a[c]-n.rects.popper[p],g=a[c]-n.rects.reference[c],v=getOffsetParent(i),h=v?"y"===c?v.clientHeight||0:v.clientWidth||0:0,y=m/2-g/2,b=u[f],T=h-l[p]-u[d],O=h/2-l[p]/2+y,w=within(b,O,T),x=c;n.modifiersData[o]=((t={})[x]=w,t.centerOffset=w-O,t)}}function effect$1(e){var t=e.state,n=e.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&contains(t.elements.popper,o)&&(t.elements.arrow=o)}var arrow$1={name:"arrow",enabled:!0,phase:"main",fn:arrow,effect:effect$1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getVariation(e){return e.split("-")[1]}var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(e,t){var n=e.x,o=e.y,r=t.devicePixelRatio||1;return{x:round(n*r)/r||0,y:round(o*r)/r||0}}function mapToStyles(e){var t,n=e.popper,o=e.popperRect,r=e.placement,i=e.variation,a=e.offsets,s=e.position,c=e.gpuAcceleration,p=e.adaptive,u=e.roundOffsets,l=e.isFixed,f=a.x,d=void 0===f?0:f,m=a.y,g=void 0===m?0:m,v="function"==typeof u?u({x:d,y:g}):{x:d,y:g};d=v.x,g=v.y;var h=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),b=left,T=top,O=window;if(p){var w=getOffsetParent(n),x="clientHeight",E="clientWidth";w===getWindow(n)&&"static"!==getComputedStyle(w=getDocumentElement(n)).position&&"absolute"===s&&(x="scrollHeight",E="scrollWidth"),(r===top||(r===left||r===right)&&i===end)&&(T=bottom,g-=(l&&w===O&&O.visualViewport?O.visualViewport.height:w[x])-o.height,g*=c?1:-1),r!==left&&(r!==top&&r!==bottom||i!==end)||(b=right,d-=(l&&w===O&&O.visualViewport?O.visualViewport.width:w[E])-o.width,d*=c?1:-1)}var P,A=Object.assign({position:s},p&&unsetSides),S=!0===u?roundOffsetsByDPR({x:d,y:g},getWindow(n)):{x:d,y:g};return d=S.x,g=S.y,c?Object.assign({},A,((P={})[T]=y?"0":"",P[b]=h?"0":"",P.transform=(O.devicePixelRatio||1)<=1?"translate("+d+"px, "+g+"px)":"translate3d("+d+"px, "+g+"px, 0)",P)):Object.assign({},A,((t={})[T]=y?g+"px":"",t[b]=h?d+"px":"",t.transform="",t))}function computeStyles(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=void 0===o||o,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,c=void 0===s||s,p={placement:getBasePlacement$1(t.placement),variation:getVariation(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,mapToStyles(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,mapToStyles(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var computeStyles$1={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:computeStyles,data:{}},passive={passive:!0};function effect(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,i=void 0===r||r,a=o.resize,s=void 0===a||a,c=getWindow(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&p.forEach(function(e){e.addEventListener("scroll",n.update,passive)}),s&&c.addEventListener("resize",n.update,passive),function(){i&&p.forEach(function(e){e.removeEventListener("scroll",n.update,passive)}),s&&c.removeEventListener("resize",n.update,passive)}}var eventListeners={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect,data:{}},hash$1={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(e){return e.replace(/left|right|bottom|top/g,function(e){return hash$1[e]})}var hash={start:"end",end:"start"};function getOppositeVariationPlacement(e){return e.replace(/start|end/g,function(e){return hash[e]})}function getWindowScroll(e){var t=getWindow(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function getWindowScrollBarX(e){return getBoundingClientRect(getDocumentElement(e)).left+getWindowScroll(e).scrollLeft}function getViewportRect(e,t){var n=getWindow(e),o=getDocumentElement(e),r=n.visualViewport,i=o.clientWidth,a=o.clientHeight,s=0,c=0;if(r){i=r.width,a=r.height;var p=isLayoutViewport();(p||!p&&"fixed"===t)&&(s=r.offsetLeft,c=r.offsetTop)}return{width:i,height:a,x:s+getWindowScrollBarX(e),y:c}}function getDocumentRect(e){var t,n=getDocumentElement(e),o=getWindowScroll(e),r=null==(t=e.ownerDocument)?void 0:t.body,i=max(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=max(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-o.scrollLeft+getWindowScrollBarX(e),c=-o.scrollTop;return"rtl"===getComputedStyle(r||n).direction&&(s+=max(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:s,y:c}}function isScrollParent(e){var t=getComputedStyle(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function getScrollParent(e){return["html","body","#document"].indexOf(getNodeName(e))>=0?e.ownerDocument.body:isHTMLElement(e)&&isScrollParent(e)?e:getScrollParent(getParentNode(e))}function listScrollParents(e,t){var n;void 0===t&&(t=[]);var o=getScrollParent(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),i=getWindow(o),a=r?[i].concat(i.visualViewport||[],isScrollParent(o)?o:[]):o,s=t.concat(a);return r?s:s.concat(listScrollParents(getParentNode(a)))}function rectToClientRect(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function getInnerBoundingClientRect(e,t){var n=getBoundingClientRect(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function getClientRectFromMixedType(e,t,n){return t===viewport?rectToClientRect(getViewportRect(e,n)):isElement$1(t)?getInnerBoundingClientRect(t,n):rectToClientRect(getDocumentRect(getDocumentElement(e)))}function getClippingParents(e){var t=listScrollParents(getParentNode(e)),n=["absolute","fixed"].indexOf(getComputedStyle(e).position)>=0&&isHTMLElement(e)?getOffsetParent(e):e;return isElement$1(n)?t.filter(function(e){return isElement$1(e)&&contains(e,n)&&"body"!==getNodeName(e)}):[]}function getClippingRect(e,t,n,o){var r="clippingParents"===t?getClippingParents(e):[].concat(t),i=[].concat(r,[n]),a=i[0],s=i.reduce(function(t,n){var r=getClientRectFromMixedType(e,n,o);return t.top=max(r.top,t.top),t.right=min(r.right,t.right),t.bottom=min(r.bottom,t.bottom),t.left=max(r.left,t.left),t},getClientRectFromMixedType(e,a,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function computeOffsets(e){var t,n=e.reference,o=e.element,r=e.placement,i=r?getBasePlacement$1(r):null,a=r?getVariation(r):null,s=n.x+n.width/2-o.width/2,c=n.y+n.height/2-o.height/2;switch(i){case top:t={x:s,y:n.y-o.height};break;case bottom:t={x:s,y:n.y+n.height};break;case right:t={x:n.x+n.width,y:c};break;case left:t={x:n.x-o.width,y:c};break;default:t={x:n.x,y:n.y}}var p=i?getMainAxisFromPlacement(i):null;if(null!=p){var u="y"===p?"height":"width";switch(a){case start:t[p]=t[p]-(n[u]/2-o[u]/2);break;case end:t[p]=t[p]+(n[u]/2-o[u]/2)}}return t}function detectOverflow(e,t){void 0===t&&(t={});var n=t,o=n.placement,r=void 0===o?e.placement:o,i=n.strategy,a=void 0===i?e.strategy:i,s=n.boundary,c=void 0===s?clippingParents:s,p=n.rootBoundary,u=void 0===p?viewport:p,l=n.elementContext,f=void 0===l?popper:l,d=n.altBoundary,m=void 0!==d&&d,g=n.padding,v=void 0===g?0:g,h=mergePaddingObject("number"!=typeof v?v:expandToHashMap(v,basePlacements)),y=f===popper?reference:popper,b=e.rects.popper,T=e.elements[m?y:f],O=getClippingRect(isElement$1(T)?T:T.contextElement||getDocumentElement(e.elements.popper),c,u,a),w=getBoundingClientRect(e.elements.reference),x=computeOffsets({reference:w,element:b,placement:r}),E=rectToClientRect(Object.assign({},b,x)),P=f===popper?E:w,A={top:O.top-P.top+h.top,bottom:P.bottom-O.bottom+h.bottom,left:O.left-P.left+h.left,right:P.right-O.right+h.right},S=e.modifiersData.offset;if(f===popper&&S){var C=S[r];Object.keys(A).forEach(function(e){var t=[right,bottom].indexOf(e)>=0?1:-1,n=[top,bottom].indexOf(e)>=0?"y":"x";A[e]+=C[n]*t})}return A}function computeAutoPlacement(e,t){void 0===t&&(t={});var n=t,o=n.placement,r=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,p=void 0===c?placements:c,u=getVariation(o),l=u?s?variationPlacements:variationPlacements.filter(function(e){return getVariation(e)===u}):basePlacements,f=l.filter(function(e){return p.indexOf(e)>=0});0===f.length&&(f=l);var d=f.reduce(function(t,n){return t[n]=detectOverflow(e,{placement:n,boundary:r,rootBoundary:i,padding:a})[getBasePlacement$1(n)],t},{});return Object.keys(d).sort(function(e,t){return d[e]-d[t]})}function getExpandedFallbackPlacements(e){if(getBasePlacement$1(e)===auto)return[];var t=getOppositePlacement(e);return[getOppositeVariationPlacement(e),t,getOppositeVariationPlacement(t)]}function flip(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var r=n.mainAxis,i=void 0===r||r,a=n.altAxis,s=void 0===a||a,c=n.fallbackPlacements,p=n.padding,u=n.boundary,l=n.rootBoundary,f=n.altBoundary,d=n.flipVariations,m=void 0===d||d,g=n.allowedAutoPlacements,v=t.options.placement,h=getBasePlacement$1(v),y=c||(h!==v&&m?getExpandedFallbackPlacements(v):[getOppositePlacement(v)]),b=[v].concat(y).reduce(function(e,n){return e.concat(getBasePlacement$1(n)===auto?computeAutoPlacement(t,{placement:n,boundary:u,rootBoundary:l,padding:p,flipVariations:m,allowedAutoPlacements:g}):n)},[]),T=t.rects.reference,O=t.rects.popper,w=new Map,x=!0,E=b[0],P=0;P<b.length;P++){var A=b[P],S=getBasePlacement$1(A),C=getVariation(A)===start,L=[top,bottom].indexOf(S)>=0,R=L?"width":"height",M=detectOverflow(t,{placement:A,boundary:u,rootBoundary:l,altBoundary:f,padding:p}),D=L?C?right:left:C?bottom:top;T[R]>O[R]&&(D=getOppositePlacement(D));var N=getOppositePlacement(D),I=[];if(i&&I.push(M[S]<=0),s&&I.push(M[D]<=0,M[N]<=0),I.every(function(e){return e})){E=A,x=!1;break}w.set(A,I)}if(x)for(var B=function(e){var t=b.find(function(t){var n=w.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return E=t,"break"},H=m?3:1;H>0&&"break"!==B(H);H--);t.placement!==E&&(t.modifiersData[o]._skip=!0,t.placement=E,t.reset=!0)}}var flip$1={name:"flip",enabled:!0,phase:"main",fn:flip,requiresIfExists:["offset"],data:{_skip:!1}};function getSideOffsets(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function isAnySideFullyClipped(e){return[top,right,bottom,left].some(function(t){return e[t]>=0})}function hide(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,a=detectOverflow(t,{elementContext:"reference"}),s=detectOverflow(t,{altBoundary:!0}),c=getSideOffsets(a,o),p=getSideOffsets(s,r,i),u=isAnySideFullyClipped(c),l=isAnySideFullyClipped(p);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:p,isReferenceHidden:u,hasPopperEscaped:l},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":l})}var hide$1={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hide};function distanceAndSkiddingToXY(e,t,n){var o=getBasePlacement$1(e),r=[left,top].indexOf(o)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*r,[left,right].indexOf(o)>=0?{x:s,y:a}:{x:a,y:s}}function offset(e){var t=e.state,n=e.options,o=e.name,r=n.offset,i=void 0===r?[0,0]:r,a=placements.reduce(function(e,n){return e[n]=distanceAndSkiddingToXY(n,t.rects,i),e},{}),s=a[t.placement],c=s.x,p=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=p),t.modifiersData[o]=a}var offset$1={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:offset};function popperOffsets(e){var t=e.state,n=e.name;t.modifiersData[n]=computeOffsets({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var popperOffsets$1={name:"popperOffsets",enabled:!0,phase:"read",fn:popperOffsets,data:{}};function getAltAxis(e){return"x"===e?"y":"x"}function preventOverflow(e){var t=e.state,n=e.options,o=e.name,r=n.mainAxis,i=void 0===r||r,a=n.altAxis,s=void 0!==a&&a,c=n.boundary,p=n.rootBoundary,u=n.altBoundary,l=n.padding,f=n.tether,d=void 0===f||f,m=n.tetherOffset,g=void 0===m?0:m,v=detectOverflow(t,{boundary:c,rootBoundary:p,padding:l,altBoundary:u}),h=getBasePlacement$1(t.placement),y=getVariation(t.placement),b=!y,T=getMainAxisFromPlacement(h),O=getAltAxis(T),w=t.modifiersData.popperOffsets,x=t.rects.reference,E=t.rects.popper,P="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,A="number"==typeof P?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,C={x:0,y:0};if(w){if(i){var L,R="y"===T?top:left,M="y"===T?bottom:right,D="y"===T?"height":"width",N=w[T],I=N+v[R],B=N-v[M],H=d?-E[D]/2:0,_=y===start?x[D]:E[D],W=y===start?-E[D]:-x[D],j=t.elements.arrow,U=d&&j?getLayoutRect(j):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:getFreshSideObject(),k=V[R],$=V[M],F=within(0,x[D],U[D]),q=b?x[D]/2-H-F-k-A.mainAxis:_-F-k-A.mainAxis,z=b?-x[D]/2+H+F+$+A.mainAxis:W+F+$+A.mainAxis,G=t.elements.arrow&&getOffsetParent(t.elements.arrow),X=G?"y"===T?G.clientTop||0:G.clientLeft||0:0,Y=null!=(L=null==S?void 0:S[T])?L:0,K=N+z-Y,J=within(d?min(I,N+q-Y-X):I,N,d?max(B,K):B);w[T]=J,C[T]=J-N}if(s){var Q,Z="x"===T?top:left,ee="x"===T?bottom:right,te=w[O],ne="y"===O?"height":"width",oe=te+v[Z],re=te-v[ee],ie=-1!==[top,left].indexOf(h),ae=null!=(Q=null==S?void 0:S[O])?Q:0,se=ie?oe:te-x[ne]-E[ne]-ae+A.altAxis,ce=ie?te+x[ne]+E[ne]-ae-A.altAxis:re,pe=d&&ie?withinMaxClamp(se,te,ce):within(d?se:oe,te,d?ce:re);w[O]=pe,C[O]=pe-te}t.modifiersData[o]=C}}var preventOverflow$1={name:"preventOverflow",enabled:!0,phase:"main",fn:preventOverflow,requiresIfExists:["offset"]};function getHTMLElementScroll(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function getNodeScroll(e){return e!==getWindow(e)&&isHTMLElement(e)?getHTMLElementScroll(e):getWindowScroll(e)}function isElementScaled(e){var t=e.getBoundingClientRect(),n=round(t.width)/e.offsetWidth||1,o=round(t.height)/e.offsetHeight||1;return 1!==n||1!==o}function getCompositeRect(e,t,n){void 0===n&&(n=!1);var o=isHTMLElement(t),r=isHTMLElement(t)&&isElementScaled(t),i=getDocumentElement(t),a=getBoundingClientRect(e,r,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!n)&&(("body"!==getNodeName(t)||isScrollParent(i))&&(s=getNodeScroll(t)),isHTMLElement(t)?((c=getBoundingClientRect(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=getWindowScrollBarX(i))),{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function order(e){var t=new Map,n=new Set,o=[];function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var o=t.get(e);o&&r(o)}}),o.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||r(e)}),o}function orderModifiers(e){var t=order(e);return modifierPhases.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function debounce$1(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function mergeByName(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}var DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function popperGenerator(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,o=void 0===n?[]:n,r=t.defaultOptions,i=void 0===r?DEFAULT_OPTIONS:r;return function(e,t,n){void 0===n&&(n=i);var r={placement:"bottom",orderedModifiers:[],options:Object.assign({},DEFAULT_OPTIONS,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],s=!1,c={state:r,setOptions:function(n){var s="function"==typeof n?n(r.options):n;p(),r.options=Object.assign({},i,r.options,s),r.scrollParents={reference:isElement$1(e)?listScrollParents(e):e.contextElement?listScrollParents(e.contextElement):[],popper:listScrollParents(t)};var u=orderModifiers(mergeByName([].concat(o,r.options.modifiers)));return r.orderedModifiers=u.filter(function(e){return e.enabled}),r.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,o=void 0===n?{}:n,i=e.effect;if("function"==typeof i){var s=i({state:r,name:t,instance:c,options:o});a.push(s||function(){})}}),c.update()},forceUpdate:function(){if(!s){var e=r.elements,t=e.reference,n=e.popper;if(areValidElements(t,n)){r.rects={reference:getCompositeRect(t,getOffsetParent(n),"fixed"===r.options.strategy),popper:getLayoutRect(n)},r.reset=!1,r.placement=r.options.placement,r.orderedModifiers.forEach(function(e){return r.modifiersData[e.name]=Object.assign({},e.data)});for(var o=0;o<r.orderedModifiers.length;o++)if(!0!==r.reset){var i=r.orderedModifiers[o],a=i.fn,p=i.options,u=void 0===p?{}:p,l=i.name;"function"==typeof a&&(r=a({state:r,options:u,name:l,instance:c})||r)}else r.reset=!1,o=-1}}},update:debounce$1(function(){return new Promise(function(e){c.forceUpdate(),e(r)})}),destroy:function(){p(),s=!0}};if(!areValidElements(e,t))return c;function p(){a.forEach(function(e){return e()}),a=[]}return c.setOptions(n).then(function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)}),c}}var defaultModifiers=[eventListeners,popperOffsets$1,computeStyles$1,applyStyles$1,offset$1,flip$1,preventOverflow$1,arrow$1,hide$1],createPopper=popperGenerator({defaultModifiers}),BOX_CLASS="tippy-box",CONTENT_CLASS="tippy-content",BACKDROP_CLASS="tippy-backdrop",ARROW_CLASS="tippy-arrow",SVG_ARROW_CLASS="tippy-svg-arrow",TOUCH_OPTIONS={passive:!0,capture:!0},TIPPY_DEFAULT_APPEND_TO=function(){return document.body};function getValueAtIndexOrReturn(e,t,n){if(Array.isArray(e)){var o=e[t];return null==o?Array.isArray(n)?n[t]:n:o}return e}function isType(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function invokeWithArgsOrReturn(e,t){return"function"==typeof e?e.apply(void 0,t):e}function debounce(e,t){return 0===t?e:function(o){clearTimeout(n),n=setTimeout(function(){e(o)},t)};var n}function splitBySpaces(e){return e.split(/\s+/).filter(Boolean)}function normalizeToArray(e){return[].concat(e)}function pushIfUnique(e,t){-1===e.indexOf(t)&&e.push(t)}function unique(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function getBasePlacement(e){return e.split("-")[0]}function arrayFrom(e){return[].slice.call(e)}function removeUndefinedProps(e){return Object.keys(e).reduce(function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t},{})}function div(){return document.createElement("div")}function isElement(e){return["Element","Fragment"].some(function(t){return isType(e,t)})}function isNodeList(e){return isType(e,"NodeList")}function isMouseEvent(e){return isType(e,"MouseEvent")}function isReferenceElement(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function getArrayOfElements(e){return isElement(e)?[e]:isNodeList(e)?arrayFrom(e):Array.isArray(e)?e:arrayFrom(document.querySelectorAll(e))}function setTransitionDuration(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function setVisibilityState(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function getOwnerDocument(e){var t,n=normalizeToArray(e)[0];return null!=n&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function isCursorOutsideInteractiveBorder(e,t){var n=t.clientX,o=t.clientY;return e.every(function(e){var t=e.popperRect,r=e.popperState,i=e.props.interactiveBorder,a=getBasePlacement(r.placement),s=r.modifiersData.offset;if(!s)return!0;var c="bottom"===a?s.top.y:0,p="top"===a?s.bottom.y:0,u="right"===a?s.left.x:0,l="left"===a?s.right.x:0,f=t.top-o+c>i,d=o-t.bottom-p>i,m=t.left-n+u>i,g=n-t.right-l>i;return f||d||m||g})}function updateTransitionEndListener(e,t,n){var o=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(t){e[o](t,n)})}function actualContains(e,t){for(var n=t;n;){var o;if(e.contains(n))return!0;n=null==n.getRootNode||null==(o=n.getRootNode())?void 0:o.host}return!1}var currentInput={isTouch:!1},lastMouseMoveTime=0;function onDocumentTouchStart(){currentInput.isTouch||(currentInput.isTouch=!0,window.performance&&document.addEventListener("mousemove",onDocumentMouseMove))}function onDocumentMouseMove(){var e=performance.now();e-lastMouseMoveTime<20&&(currentInput.isTouch=!1,document.removeEventListener("mousemove",onDocumentMouseMove)),lastMouseMoveTime=e}function onWindowBlur(){var e=document.activeElement;if(isReferenceElement(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function bindGlobalEventListeners(){document.addEventListener("touchstart",onDocumentTouchStart,TOUCH_OPTIONS),window.addEventListener("blur",onWindowBlur)}var isBrowser="undefined"!=typeof window&&"undefined"!=typeof document,isIE11=!!isBrowser&&!!window.msCrypto,pluginProps={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},renderProps={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},defaultProps=Object.assign({appendTo:TIPPY_DEFAULT_APPEND_TO,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},pluginProps,renderProps),defaultKeys=Object.keys(defaultProps),setDefaultProps=function(e){Object.keys(e).forEach(function(t){defaultProps[t]=e[t]})};function getExtendedPassedProps(e){var t=(e.plugins||[]).reduce(function(t,n){var o,r=n.name,i=n.defaultValue;return r&&(t[r]=void 0!==e[r]?e[r]:null!=(o=defaultProps[r])?o:i),t},{});return Object.assign({},e,t)}function getDataAttributeProps(e,t){return(t?Object.keys(getExtendedPassedProps(Object.assign({},defaultProps,{plugins:t}))):defaultKeys).reduce(function(t,n){var o=(e.getAttribute("data-tippy-"+n)||"").trim();if(!o)return t;if("content"===n)t[n]=o;else try{t[n]=JSON.parse(o)}catch(e){t[n]=o}return t},{})}function evaluateProps(e,t){var n=Object.assign({},t,{content:invokeWithArgsOrReturn(t.content,[e])},t.ignoreAttributes?{}:getDataAttributeProps(e,t.plugins));return n.aria=Object.assign({},defaultProps.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}var innerHTML=function(){return"innerHTML"};function dangerouslySetInnerHTML(e,t){e[innerHTML()]=t}function createArrowElement(e){var t=div();return!0===e?t.className=ARROW_CLASS:(t.className=SVG_ARROW_CLASS,isElement(e)?t.appendChild(e):dangerouslySetInnerHTML(t,e)),t}function setContent(e,t){isElement(t.content)?(dangerouslySetInnerHTML(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?dangerouslySetInnerHTML(e,t.content):e.textContent=t.content)}function getChildren(e){var t=e.firstElementChild,n=arrayFrom(t.children);return{box:t,content:n.find(function(e){return e.classList.contains(CONTENT_CLASS)}),arrow:n.find(function(e){return e.classList.contains(ARROW_CLASS)||e.classList.contains(SVG_ARROW_CLASS)}),backdrop:n.find(function(e){return e.classList.contains(BACKDROP_CLASS)})}}function render(e){var t=div(),n=div();n.className=BOX_CLASS,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var o=div();function r(n,o){var r=getChildren(t),i=r.box,a=r.content,s=r.arrow;o.theme?i.setAttribute("data-theme",o.theme):i.removeAttribute("data-theme"),"string"==typeof o.animation?i.setAttribute("data-animation",o.animation):i.removeAttribute("data-animation"),o.inertia?i.setAttribute("data-inertia",""):i.removeAttribute("data-inertia"),i.style.maxWidth="number"==typeof o.maxWidth?o.maxWidth+"px":o.maxWidth,o.role?i.setAttribute("role",o.role):i.removeAttribute("role"),n.content===o.content&&n.allowHTML===o.allowHTML||setContent(a,e.props),o.arrow?s?n.arrow!==o.arrow&&(i.removeChild(s),i.appendChild(createArrowElement(o.arrow))):i.appendChild(createArrowElement(o.arrow)):s&&i.removeChild(s)}return o.className=CONTENT_CLASS,o.setAttribute("data-state","hidden"),setContent(o,e.props),t.appendChild(n),n.appendChild(o),r(e.props,e.props),{popper:t,onUpdate:r}}render.$$tippy=!0;var idCounter=1,mouseMoveListeners=[],mountedInstances=[];function createTippy(e,t){var n,o,r,i,a,s,c,p=evaluateProps(e,Object.assign({},defaultProps,getExtendedPassedProps(removeUndefinedProps(t)))),u=!1,l=!1,f=!1,d=!1,m=[],g=debounce(z,p.interactiveDebounce),v=idCounter++,h=unique(p.plugins),y={id:v,reference:e,popper:div(),popperInstance:null,props:p,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:h,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(o),cancelAnimationFrame(r)},setProps:function(t){if(!y.state.isDestroyed){D("onBeforeUpdate",[y,t]),F();var n=y.props,o=evaluateProps(e,Object.assign({},n,removeUndefinedProps(t),{ignoreAttributes:!0}));y.props=o,$(),n.interactiveDebounce!==o.interactiveDebounce&&(B(),g=debounce(z,o.interactiveDebounce)),n.triggerTarget&&!o.triggerTarget?normalizeToArray(n.triggerTarget).forEach(function(e){e.removeAttribute("aria-expanded")}):o.triggerTarget&&e.removeAttribute("aria-expanded"),I(),M(),O&&O(n,o),y.popperInstance&&(K(),Q().forEach(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})),D("onAfterUpdate",[y,t])}},setContent:function(e){y.setProps({content:e})},show:function(){var e=y.state.isVisible,t=y.state.isDestroyed,n=!y.state.isEnabled,o=currentInput.isTouch&&!y.props.touch,r=getValueAtIndexOrReturn(y.props.duration,0,defaultProps.duration);if(!(e||t||n||o||S().hasAttribute("disabled")||(D("onShow",[y],!1),!1===y.props.onShow(y)))){if(y.state.isVisible=!0,A()&&(T.style.visibility="visible"),M(),j(),y.state.isMounted||(T.style.transition="none"),A()){var i=L();setTransitionDuration([i.box,i.content],0)}var a,c,p;s=function(){var e;if(y.state.isVisible&&!d){if(d=!0,T.style.transition=y.props.moveTransition,A()&&y.props.animation){var t=L(),n=t.box,o=t.content;setTransitionDuration([n,o],r),setVisibilityState([n,o],"visible")}N(),I(),pushIfUnique(mountedInstances,y),null==(e=y.popperInstance)||e.forceUpdate(),D("onMount",[y]),y.props.animation&&A()&&function(e){V(e,function(){y.state.isShown=!0,D("onShown",[y])})}(r)}},c=y.props.appendTo,p=S(),(a=y.props.interactive&&c===TIPPY_DEFAULT_APPEND_TO||"parent"===c?p.parentNode:invokeWithArgsOrReturn(c,[p])).contains(T)||a.appendChild(T),y.state.isMounted=!0,K()}},hide:function(){var e=!y.state.isVisible,t=y.state.isDestroyed,n=!y.state.isEnabled,o=getValueAtIndexOrReturn(y.props.duration,1,defaultProps.duration);if(!(e||t||n)&&(D("onHide",[y],!1),!1!==y.props.onHide(y))){if(y.state.isVisible=!1,y.state.isShown=!1,d=!1,u=!1,A()&&(T.style.visibility="hidden"),B(),U(),M(!0),A()){var r=L(),i=r.box,a=r.content;y.props.animation&&(setTransitionDuration([i,a],o),setVisibilityState([i,a],"hidden"))}N(),I(),y.props.animation?A()&&function(e,t){V(e,function(){!y.state.isVisible&&T.parentNode&&T.parentNode.contains(T)&&t()})}(o,y.unmount):y.unmount()}},hideWithInteractivity:function(e){C().addEventListener("mousemove",g),pushIfUnique(mouseMoveListeners,g),g(e)},enable:function(){y.state.isEnabled=!0},disable:function(){y.hide(),y.state.isEnabled=!1},unmount:function(){y.state.isVisible&&y.hide(),y.state.isMounted&&(J(),Q().forEach(function(e){e._tippy.unmount()}),T.parentNode&&T.parentNode.removeChild(T),mountedInstances=mountedInstances.filter(function(e){return e!==y}),y.state.isMounted=!1,D("onHidden",[y]))},destroy:function(){y.state.isDestroyed||(y.clearDelayTimeouts(),y.unmount(),F(),delete e._tippy,y.state.isDestroyed=!0,D("onDestroy",[y]))}};if(!p.render)return y;var b=p.render(y),T=b.popper,O=b.onUpdate;T.setAttribute("data-tippy-root",""),T.id="tippy-"+y.id,y.popper=T,e._tippy=y,T._tippy=y;var w=h.map(function(e){return e.fn(y)}),x=e.hasAttribute("aria-expanded");return $(),I(),M(),D("onCreate",[y]),p.showOnCreate&&Z(),T.addEventListener("mouseenter",function(){y.props.interactive&&y.state.isVisible&&y.clearDelayTimeouts()}),T.addEventListener("mouseleave",function(){y.props.interactive&&y.props.trigger.indexOf("mouseenter")>=0&&C().addEventListener("mousemove",g)}),y;function E(){var e=y.props.touch;return Array.isArray(e)?e:[e,0]}function P(){return"hold"===E()[0]}function A(){var e;return!(null==(e=y.props.render)||!e.$$tippy)}function S(){return c||e}function C(){var e=S().parentNode;return e?getOwnerDocument(e):document}function L(){return getChildren(T)}function R(e){return y.state.isMounted&&!y.state.isVisible||currentInput.isTouch||i&&"focus"===i.type?0:getValueAtIndexOrReturn(y.props.delay,e?0:1,defaultProps.delay)}function M(e){void 0===e&&(e=!1),T.style.pointerEvents=y.props.interactive&&!e?"":"none",T.style.zIndex=""+y.props.zIndex}function D(e,t,n){var o;void 0===n&&(n=!0),w.forEach(function(n){n[e]&&n[e].apply(n,t)}),n&&(o=y.props)[e].apply(o,t)}function N(){var t=y.props.aria;if(t.content){var n="aria-"+t.content,o=T.id;normalizeToArray(y.props.triggerTarget||e).forEach(function(e){var t=e.getAttribute(n);if(y.state.isVisible)e.setAttribute(n,t?t+" "+o:o);else{var r=t&&t.replace(o,"").trim();r?e.setAttribute(n,r):e.removeAttribute(n)}})}}function I(){!x&&y.props.aria.expanded&&normalizeToArray(y.props.triggerTarget||e).forEach(function(e){y.props.interactive?e.setAttribute("aria-expanded",y.state.isVisible&&e===S()?"true":"false"):e.removeAttribute("aria-expanded")})}function B(){C().removeEventListener("mousemove",g),mouseMoveListeners=mouseMoveListeners.filter(function(e){return e!==g})}function H(t){if(!currentInput.isTouch||!f&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!y.props.interactive||!actualContains(T,n)){if(normalizeToArray(y.props.triggerTarget||e).some(function(e){return actualContains(e,n)})){if(currentInput.isTouch)return;if(y.state.isVisible&&y.props.trigger.indexOf("click")>=0)return}else D("onClickOutside",[y,t]);!0===y.props.hideOnClick&&(y.clearDelayTimeouts(),y.hide(),l=!0,setTimeout(function(){l=!1}),y.state.isMounted||U())}}}function _(){f=!0}function W(){f=!1}function j(){var e=C();e.addEventListener("mousedown",H,!0),e.addEventListener("touchend",H,TOUCH_OPTIONS),e.addEventListener("touchstart",W,TOUCH_OPTIONS),e.addEventListener("touchmove",_,TOUCH_OPTIONS)}function U(){var e=C();e.removeEventListener("mousedown",H,!0),e.removeEventListener("touchend",H,TOUCH_OPTIONS),e.removeEventListener("touchstart",W,TOUCH_OPTIONS),e.removeEventListener("touchmove",_,TOUCH_OPTIONS)}function V(e,t){var n=L().box;function o(e){e.target===n&&(updateTransitionEndListener(n,"remove",o),t())}if(0===e)return t();updateTransitionEndListener(n,"remove",a),updateTransitionEndListener(n,"add",o),a=o}function k(t,n,o){void 0===o&&(o=!1),normalizeToArray(y.props.triggerTarget||e).forEach(function(e){e.addEventListener(t,n,o),m.push({node:e,eventType:t,handler:n,options:o})})}function $(){P()&&(k("touchstart",q,{passive:!0}),k("touchend",G,{passive:!0})),splitBySpaces(y.props.trigger).forEach(function(e){if("manual"!==e)switch(k(e,q),e){case"mouseenter":k("mouseleave",G);break;case"focus":k(isIE11?"focusout":"blur",X);break;case"focusin":k("focusout",X)}})}function F(){m.forEach(function(e){var t=e.node,n=e.eventType,o=e.handler,r=e.options;t.removeEventListener(n,o,r)}),m=[]}function q(e){var t,n=!1;if(y.state.isEnabled&&!Y(e)&&!l){var o="focus"===(null==(t=i)?void 0:t.type);i=e,c=e.currentTarget,I(),!y.state.isVisible&&isMouseEvent(e)&&mouseMoveListeners.forEach(function(t){return t(e)}),"click"===e.type&&(y.props.trigger.indexOf("mouseenter")<0||u)&&!1!==y.props.hideOnClick&&y.state.isVisible?n=!0:Z(e),"click"===e.type&&(u=!n),n&&!o&&ee(e)}}function z(e){var t=e.target,n=S().contains(t)||T.contains(t);if("mousemove"!==e.type||!n){var o=Q().concat(T).map(function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:p}:null}).filter(Boolean);isCursorOutsideInteractiveBorder(o,e)&&(B(),ee(e))}}function G(e){Y(e)||y.props.trigger.indexOf("click")>=0&&u||(y.props.interactive?y.hideWithInteractivity(e):ee(e))}function X(e){y.props.trigger.indexOf("focusin")<0&&e.target!==S()||y.props.interactive&&e.relatedTarget&&T.contains(e.relatedTarget)||ee(e)}function Y(e){return!!currentInput.isTouch&&P()!==e.type.indexOf("touch")>=0}function K(){J();var t=y.props,n=t.popperOptions,o=t.placement,r=t.offset,i=t.getReferenceClientRect,a=t.moveTransition,c=A()?getChildren(T).arrow:null,p=i?{getBoundingClientRect:i,contextElement:i.contextElement||S()}:e,u=[{name:"offset",options:{offset:r}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(A()){var n=L().box;["placement","reference-hidden","escaped"].forEach(function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)}),t.attributes.popper={}}}}];A()&&c&&u.push({name:"arrow",options:{element:c,padding:3}}),u.push.apply(u,(null==n?void 0:n.modifiers)||[]),y.popperInstance=createPopper(p,T,Object.assign({},n,{placement:o,onFirstUpdate:s,modifiers:u}))}function J(){y.popperInstance&&(y.popperInstance.destroy(),y.popperInstance=null)}function Q(){return arrayFrom(T.querySelectorAll("[data-tippy-root]"))}function Z(e){y.clearDelayTimeouts(),e&&D("onTrigger",[y,e]),j();var t=R(!0),o=E(),r=o[0],i=o[1];currentInput.isTouch&&"hold"===r&&i&&(t=i),t?n=setTimeout(function(){y.show()},t):y.show()}function ee(e){if(y.clearDelayTimeouts(),D("onUntrigger",[y,e]),y.state.isVisible){if(!(y.props.trigger.indexOf("mouseenter")>=0&&y.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&u)){var t=R(!1);t?o=setTimeout(function(){y.state.isVisible&&y.hide()},t):r=requestAnimationFrame(function(){y.hide()})}}else U()}}function tippy(e,t){void 0===t&&(t={});var n=defaultProps.plugins.concat(t.plugins||[]);bindGlobalEventListeners();var o=Object.assign({},t,{plugins:n}),r=getArrayOfElements(e).reduce(function(e,t){var n=t&&createTippy(t,o);return n&&e.push(n),e},[]);return isElement(e)?r[0]:r}tippy.defaultProps=defaultProps,tippy.setDefaultProps=setDefaultProps,tippy.currentInput=currentInput,Object.assign({},applyStyles$1,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),tippy.setDefaultProps({render});class TooltipUtil{static getTooltipInstance(e){return e._tippy}static createTooltip(e){return e.classList.add(TooltipUtil.TOOLTIP_CLASS),tippy(e,TooltipUtil.getConfig(e))}static getOrCreateTooltipInstance(e){return TooltipUtil.getTooltipInstance(e)||TooltipUtil.createTooltip(e)}static getConfig(e){return(new OntoTooltipConfiguration).setContent(e.getAttribute(TooltipUtil.ATTR_CONTENT)).setTheme(e.getAttribute(TooltipUtil.ATTR_THEME)).setPlacement(e.getAttribute(TooltipUtil.ATTR_PLACEMENT)).setTrigger(e.getAttribute(TooltipUtil.ATTR_TRIGGER)).setAppendTo(e.getAttribute(TooltipUtil.ATTR_APPEND_TO))}static updateTooltipContent(e,t){const n=TooltipUtil.getTooltipInstance(e);n&&""!==t&&n.setContent(t)}static destroyTooltip(e){var t;const n=TooltipUtil.getTooltipInstance(e);e.classList.contains(TooltipUtil.TOOLTIP_CLASS)&&n&&!(null===(t=n.state)||void 0===t?void 0:t.isDestroyed)&&n.destroy()}static getTooltipTarget(e){for(;e&&!e.getAttribute(TooltipUtil.ATTR_CONTENT);)e=e.parentElement;return e}}TooltipUtil.ATTR_CONTENT="tooltip-content",TooltipUtil.ATTR_THEME="tooltip-theme",TooltipUtil.ATTR_PLACEMENT="tooltip-placement",TooltipUtil.ATTR_TRIGGER="tooltip-trigger",TooltipUtil.ATTR_APPEND_TO="tooltip-append-to",TooltipUtil.TOOLTIP_CLASS="onto-tooltip";export{TooltipUtil as T};