rndefine("#RNMainTooltipLib",["#RNMainCore/LitElementBase","lit/decorators","lit"],(function(e,t,n){"use strict";var r="top",o="bottom",i="right",a="left",s="auto",c=[r,o,i,a],u="start",p="end",f="clippingParents",d="viewport",l="popper",m="reference",v=c.reduce((function(e,t){return e.concat([t+"-"+u,t+"-"+p])}),[]),h=[].concat(c,[s]).reduce((function(e,t){return e.concat([t,t+"-"+u,t+"-"+p])}),[]),g=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function b(e){return e?(e.nodeName||"").toLowerCase():null}function y(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function w(e){return e instanceof y(e).Element||e instanceof Element}function x(e){return e instanceof y(e).HTMLElement||e instanceof HTMLElement}function O(e){return"undefined"!=typeof ShadowRoot&&(e instanceof y(e).ShadowRoot||e instanceof ShadowRoot)}var E={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];x(o)&&b(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(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 r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});x(r)&&b(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function T(e){return e.split("-")[0]}var A=Math.round;function D(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;return x(e)&&t&&(r=n.width/e.offsetWidth||1,o=n.height/e.offsetHeight||1),{width:A(n.width/r),height:A(n.height/o),top:A(n.top/o),right:A(n.right/r),bottom:A(n.bottom/o),left:A(n.left/r),x:A(n.left/r),y:A(n.top/o)}}function L(e){var t=D(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function j(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&O(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function C(e){return y(e).getComputedStyle(e)}function k(e){return["table","td","th"].indexOf(b(e))>=0}function M(e){return((w(e)?e.ownerDocument:e.document)||window.document).documentElement}function H(e){return"html"===b(e)?e:e.assignedSlot||e.parentNode||(O(e)?e.host:null)||M(e)}function P(e){return x(e)&&"fixed"!==C(e).position?e.offsetParent:null}function S(e){for(var t=y(e),n=P(e);n&&k(n)&&"static"===C(n).position;)n=P(n);return n&&("html"===b(n)||"body"===b(n)&&"static"===C(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&x(e)&&"fixed"===C(e).position)return null;for(var n=H(e);x(n)&&["html","body"].indexOf(b(n))<0;){var r=C(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function B(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}var R=Math.max,W=Math.min,V=Math.round;function N(e,t,n){return R(e,W(t,n))}function I(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function U(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var q={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,s=e.name,u=e.options,p=n.elements.arrow,f=n.modifiersData.popperOffsets,d=T(n.placement),l=B(d),m=[a,i].indexOf(d)>=0?"height":"width";if(p&&f){var v=function(e,t){return I("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:U(e,c))}(u.padding,n),h=L(p),g="y"===l?r:a,b="y"===l?o:i,y=n.rects.reference[m]+n.rects.reference[l]-f[l]-n.rects.popper[m],w=f[l]-n.rects.reference[l],x=S(p),O=x?"y"===l?x.clientHeight||0:x.clientWidth||0:0,E=y/2-w/2,A=v[g],D=O-h[m]-v[b],j=O/2-h[m]/2+E,C=N(A,j,D),k=l;n.modifiersData[s]=((t={})[k]=C,t.centerOffset=C-j,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&j(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},_={top:"auto",right:"auto",bottom:"auto",left:"auto"};function z(e){var t,n=e.popper,s=e.popperRect,c=e.placement,u=e.offsets,p=e.position,f=e.gpuAcceleration,d=e.adaptive,l=e.roundOffsets,m=!0===l?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:V(V(t*r)/r)||0,y:V(V(n*r)/r)||0}}(u):"function"==typeof l?l(u):u,v=m.x,h=void 0===v?0:v,g=m.y,b=void 0===g?0:g,w=u.hasOwnProperty("x"),x=u.hasOwnProperty("y"),O=a,E=r,T=window;if(d){var A=S(n),D="clientHeight",L="clientWidth";A===y(n)&&"static"!==C(A=M(n)).position&&(D="scrollHeight",L="scrollWidth"),c===r&&(E=o,b-=A[D]-s.height,b*=f?1:-1),c===a&&(O=i,h-=A[L]-s.width,h*=f?1:-1)}var j,k=Object.assign({position:p},d&&_);return f?Object.assign({},k,((j={})[E]=x?"0":"",j[O]=w?"0":"",j.transform=(T.devicePixelRatio||1)<2?"translate("+h+"px, "+b+"px)":"translate3d("+h+"px, "+b+"px, 0)",j)):Object.assign({},k,((t={})[E]=x?b+"px":"",t[O]=w?h+"px":"",t.transform="",t))}var $={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,c=void 0===s||s,u={placement:T(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,z(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,z(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},F={passive:!0};var X={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,c=y(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",n.update,F)})),s&&c.addEventListener("resize",n.update,F),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",n.update,F)})),s&&c.removeEventListener("resize",n.update,F)}},data:{}},Y={left:"right",right:"left",bottom:"top",top:"bottom"};function G(e){return e.replace(/left|right|bottom|top/g,(function(e){return Y[e]}))}var J={start:"end",end:"start"};function K(e){return e.replace(/start|end/g,(function(e){return J[e]}))}function Q(e){var t=y(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Z(e){return D(M(e)).left+Q(e).scrollLeft}function ee(e){var t=C(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function te(e){return["html","body","#document"].indexOf(b(e))>=0?e.ownerDocument.body:x(e)&&ee(e)?e:te(H(e))}function ne(e,t){var n;void 0===t&&(t=[]);var r=te(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=y(r),a=o?[i].concat(i.visualViewport||[],ee(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(ne(H(a)))}function re(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function oe(e,t){return t===d?re(function(e){var t=y(e),n=M(e),r=t.visualViewport,o=n.clientWidth,i=n.clientHeight,a=0,s=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:o,height:i,x:a+Z(e),y:s}}(e)):x(t)?function(e){var t=D(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):re(function(e){var t,n=M(e),r=Q(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=R(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=R(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+Z(e),c=-r.scrollTop;return"rtl"===C(o||n).direction&&(s+=R(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:c}}(M(e)))}function ie(e,t,n){var r="clippingParents"===t?function(e){var t=ne(H(e)),n=["absolute","fixed"].indexOf(C(e).position)>=0&&x(e)?S(e):e;return w(n)?t.filter((function(e){return w(e)&&j(e,n)&&"body"!==b(e)})):[]}(e):[].concat(t),o=[].concat(r,[n]),i=o[0],a=o.reduce((function(t,n){var r=oe(e,n);return t.top=R(r.top,t.top),t.right=W(r.right,t.right),t.bottom=W(r.bottom,t.bottom),t.left=R(r.left,t.left),t}),oe(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function ae(e){return e.split("-")[1]}function se(e){var t,n=e.reference,s=e.element,c=e.placement,f=c?T(c):null,d=c?ae(c):null,l=n.x+n.width/2-s.width/2,m=n.y+n.height/2-s.height/2;switch(f){case r:t={x:l,y:n.y-s.height};break;case o:t={x:l,y:n.y+n.height};break;case i:t={x:n.x+n.width,y:m};break;case a:t={x:n.x-s.width,y:m};break;default:t={x:n.x,y:n.y}}var v=f?B(f):null;if(null!=v){var h="y"===v?"height":"width";switch(d){case u:t[v]=t[v]-(n[h]/2-s[h]/2);break;case p:t[v]=t[v]+(n[h]/2-s[h]/2)}}return t}function ce(e,t){void 0===t&&(t={});var n=t,a=n.placement,s=void 0===a?e.placement:a,u=n.boundary,p=void 0===u?f:u,v=n.rootBoundary,h=void 0===v?d:v,g=n.elementContext,b=void 0===g?l:g,y=n.altBoundary,x=void 0!==y&&y,O=n.padding,E=void 0===O?0:O,T=I("number"!=typeof E?E:U(E,c)),A=b===l?m:l,L=e.elements.reference,j=e.rects.popper,C=e.elements[x?A:b],k=ie(w(C)?C:C.contextElement||M(e.elements.popper),p,h),H=D(L),P=se({reference:H,element:j,strategy:"absolute",placement:s}),S=re(Object.assign({},j,P)),B=b===l?S:H,R={top:k.top-B.top+T.top,bottom:B.bottom-k.bottom+T.bottom,left:k.left-B.left+T.left,right:B.right-k.right+T.right},W=e.modifiersData.offset;if(b===l&&W){var V=W[s];Object.keys(R).forEach((function(e){var t=[i,o].indexOf(e)>=0?1:-1,n=[r,o].indexOf(e)>=0?"y":"x";R[e]+=V[n]*t}))}return R}function ue(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,u=n.allowedAutoPlacements,p=void 0===u?h:u,f=ae(r),d=f?s?v:v.filter((function(e){return ae(e)===f})):c,l=d.filter((function(e){return p.indexOf(e)>=0}));0===l.length&&(l=d);var m=l.reduce((function(t,n){return t[n]=ce(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[T(n)],t}),{});return Object.keys(m).sort((function(e,t){return m[e]-m[t]}))}var pe={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,c=e.name;if(!t.modifiersData[c]._skip){for(var p=n.mainAxis,f=void 0===p||p,d=n.altAxis,l=void 0===d||d,m=n.fallbackPlacements,v=n.padding,h=n.boundary,g=n.rootBoundary,b=n.altBoundary,y=n.flipVariations,w=void 0===y||y,x=n.allowedAutoPlacements,O=t.options.placement,E=T(O),A=m||(E===O||!w?[G(O)]:function(e){if(T(e)===s)return[];var t=G(e);return[K(e),t,K(t)]}(O)),D=[O].concat(A).reduce((function(e,n){return e.concat(T(n)===s?ue(t,{placement:n,boundary:h,rootBoundary:g,padding:v,flipVariations:w,allowedAutoPlacements:x}):n)}),[]),L=t.rects.reference,j=t.rects.popper,C=new Map,k=!0,M=D[0],H=0;H<D.length;H++){var P=D[H],S=T(P),B=ae(P)===u,R=[r,o].indexOf(S)>=0,W=R?"width":"height",V=ce(t,{placement:P,boundary:h,rootBoundary:g,altBoundary:b,padding:v}),N=R?B?i:a:B?o:r;L[W]>j[W]&&(N=G(N));var I=G(N),U=[];if(f&&U.push(V[S]<=0),l&&U.push(V[N]<=0,V[I]<=0),U.every((function(e){return e}))){M=P,k=!1;break}C.set(P,U)}if(k)for(var q=function(e){var t=D.find((function(t){var n=C.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return M=t,"break"},_=w?3:1;_>0;_--){if("break"===q(_))break}t.placement!==M&&(t.modifiersData[c]._skip=!0,t.placement=M,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function fe(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 de(e){return[r,i,o,a].some((function(t){return e[t]>=0}))}var le={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=ce(t,{elementContext:"reference"}),s=ce(t,{altBoundary:!0}),c=fe(a,r),u=fe(s,o,i),p=de(c),f=de(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:p,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":f})}};var me={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,o=e.name,s=n.offset,c=void 0===s?[0,0]:s,u=h.reduce((function(e,n){return e[n]=function(e,t,n){var o=T(e),s=[a,r].indexOf(o)>=0?-1:1,c="function"==typeof n?n(Object.assign({},t,{placement:e})):n,u=c[0],p=c[1];return u=u||0,p=(p||0)*s,[a,i].indexOf(o)>=0?{x:p,y:u}:{x:u,y:p}}(n,t.rects,c),e}),{}),p=u[t.placement],f=p.x,d=p.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=d),t.modifiersData[o]=u}};var ve={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=se({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var he={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,s=e.name,c=n.mainAxis,p=void 0===c||c,f=n.altAxis,d=void 0!==f&&f,l=n.boundary,m=n.rootBoundary,v=n.altBoundary,h=n.padding,g=n.tether,b=void 0===g||g,y=n.tetherOffset,w=void 0===y?0:y,x=ce(t,{boundary:l,rootBoundary:m,padding:h,altBoundary:v}),O=T(t.placement),E=ae(t.placement),A=!E,D=B(O),j="x"===D?"y":"x",C=t.modifiersData.popperOffsets,k=t.rects.reference,M=t.rects.popper,H="function"==typeof w?w(Object.assign({},t.rects,{placement:t.placement})):w,P={x:0,y:0};if(C){if(p||d){var V="y"===D?r:a,I="y"===D?o:i,U="y"===D?"height":"width",q=C[D],_=C[D]+x[V],z=C[D]-x[I],$=b?-M[U]/2:0,F=E===u?k[U]:M[U],X=E===u?-M[U]:-k[U],Y=t.elements.arrow,G=b&&Y?L(Y):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},K=J[V],Q=J[I],Z=N(0,k[U],G[U]),ee=A?k[U]/2-$-Z-K-H:F-Z-K-H,te=A?-k[U]/2+$+Z+Q+H:X+Z+Q+H,ne=t.elements.arrow&&S(t.elements.arrow),re=ne?"y"===D?ne.clientTop||0:ne.clientLeft||0:0,oe=t.modifiersData.offset?t.modifiersData.offset[t.placement][D]:0,ie=C[D]+ee-oe-re,se=C[D]+te-oe;if(p){var ue=N(b?W(_,ie):_,q,b?R(z,se):z);C[D]=ue,P[D]=ue-q}if(d){var pe="x"===D?r:a,fe="x"===D?o:i,de=C[j],le=de+x[pe],me=de-x[fe],ve=N(b?W(le,ie):le,de,b?R(me,se):me);C[j]=ve,P[j]=ve-de}}t.modifiersData[s]=P}},requiresIfExists:["offset"]};function ge(e,t,n){void 0===n&&(n=!1);var r,o,i=x(t),a=x(t)&&function(e){var t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return 1!==n||1!==r}(t),s=M(t),c=D(e,a),u={scrollLeft:0,scrollTop:0},p={x:0,y:0};return(i||!i&&!n)&&(("body"!==b(t)||ee(s))&&(u=(r=t)!==y(r)&&x(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:Q(r)),x(t)?((p=D(t,!0)).x+=t.clientLeft,p.y+=t.clientTop):s&&(p.x=Z(s))),{x:c.left+u.scrollLeft-p.x,y:c.top+u.scrollTop-p.y,width:c.width,height:c.height}}function be(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var ye={placement:"bottom",modifiers:[],strategy:"absolute"};function we(){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 xe(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?ye:o;return function(e,t,n){void 0===n&&(n=i);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},ye,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],u=!1,p={state:s,setOptions:function(n){f(),s.options=Object.assign({},i,s.options,n),s.scrollParents={reference:w(e)?ne(e):e.contextElement?ne(e.contextElement):[],popper:ne(t)};var o,a,u=function(e){var t=be(e);return g.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((o=[].concat(r,s.options.modifiers),a=o.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}),{}),Object.keys(a).map((function(e){return a[e]}))));return s.orderedModifiers=u.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:s,name:t,instance:p,options:r}),a=function(){};c.push(i||a)}})),p.update()},forceUpdate:function(){if(!u){var e=s.elements,t=e.reference,n=e.popper;if(we(t,n)){s.rects={reference:ge(t,S(n),"fixed"===s.options.strategy),popper:L(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<s.orderedModifiers.length;r++)if(!0!==s.reset){var o=s.orderedModifiers[r],i=o.fn,a=o.options,c=void 0===a?{}:a,f=o.name;"function"==typeof i&&(s=i({state:s,options:c,name:f,instance:p})||s)}else s.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){p.forceUpdate(),e(s)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(o())}))}))),a}),destroy:function(){f(),u=!0}};if(!we(e,t))return p;function f(){c.forEach((function(e){return e()})),c=[]}return p.setOptions(n).then((function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)})),p}}xe();var Oe=xe({defaultModifiers:[X,ve,$,E,me,pe,he,q,le]}),Ee="tippy-content",Te="tippy-backdrop",Ae="tippy-arrow",De="tippy-svg-arrow",Le={passive:!0,capture:!0},je=function(){return document.body};function Ce(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function ke(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function Me(e,t){return"function"==typeof e?e.apply(void 0,t):e}function He(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout((function(){e(r)}),t)};var n}function Pe(e){return[].concat(e)}function Se(e,t){-1===e.indexOf(t)&&e.push(t)}function Be(e){return[].slice.call(e)}function Re(){return document.createElement("div")}function We(e){return["Element","Fragment"].some((function(t){return ke(e,t)}))}function Ve(e){return We(e)?[e]:function(e){return ke(e,"NodeList")}(e)?Be(e):Array.isArray(e)?e:Be(document.querySelectorAll(e))}function Ne(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function Ie(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function Ue(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[r](t,n)}))}function qe(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=null==(r=null==n.getRootNode?void 0:n.getRootNode())?void 0:r.host}return!1}var _e={isTouch:!1},ze=0;function $e(){_e.isTouch||(_e.isTouch=!0,window.performance&&document.addEventListener("mousemove",Fe))}function Fe(){var e=performance.now();e-ze<20&&(_e.isTouch=!1,document.removeEventListener("mousemove",Fe)),ze=e}function Xe(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var n=t._tippy;t.blur&&!n.state.isVisible&&t.blur()}}var Ye=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto,Ge=Object.assign({appendTo:je,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},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Je=Object.keys(Ge);function Ke(e){var t=(e.plugins||[]).reduce((function(t,n){var r,o=n.name,i=n.defaultValue;o&&(t[o]=void 0!==e[o]?e[o]:null!=(r=Ge[o])?r:i);return t}),{});return Object.assign({},e,{},t)}function Qe(e,t){var n=Object.assign({},t,{content:Me(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(Ke(Object.assign({},Ge,{plugins:t}))):Je).reduce((function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},Ge.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 Ze=function(){return"innerHTML"};function et(e,t){e[Ze()]=t}function tt(e){var t=Re();return!0===e?t.className=Ae:(t.className=De,We(e)?t.appendChild(e):et(t,e)),t}function nt(e,t){We(t.content)?(et(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?et(e,t.content):e.textContent=t.content)}function rt(e){var t=e.firstElementChild,n=Be(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(Ee)})),arrow:n.find((function(e){return e.classList.contains(Ae)||e.classList.contains(De)})),backdrop:n.find((function(e){return e.classList.contains(Te)}))}}function ot(e){var t=Re(),n=Re();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Re();function o(n,r){var o=rt(t),i=o.box,a=o.content,s=o.arrow;r.theme?i.setAttribute("data-theme",r.theme):i.removeAttribute("data-theme"),"string"==typeof r.animation?i.setAttribute("data-animation",r.animation):i.removeAttribute("data-animation"),r.inertia?i.setAttribute("data-inertia",""):i.removeAttribute("data-inertia"),i.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?i.setAttribute("role",r.role):i.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||nt(a,e.props),r.arrow?s?n.arrow!==r.arrow&&(i.removeChild(s),i.appendChild(tt(r.arrow))):i.appendChild(tt(r.arrow)):s&&i.removeChild(s)}return r.className=Ee,r.setAttribute("data-state","hidden"),nt(r,e.props),t.appendChild(n),n.appendChild(r),o(e.props,e.props),{popper:t,onUpdate:o}}ot.$$tippy=!0;var it,at,st,ct,ut,pt=1,ft=[],dt=[];function lt(e,t){var n,r,o,i,a,s,c,u,p,f=Qe(e,Object.assign({},Ge,{},Ke((n=t,Object.keys(n).reduce((function(e,t){return void 0!==n[t]&&(e[t]=n[t]),e}),{}))))),d=!1,l=!1,m=!1,v=!1,h=[],g=He(Y,f.interactiveDebounce),b=pt++,y=(p=f.plugins).filter((function(e,t){return p.indexOf(e)===t})),w={id:b,reference:e,popper:Re(),popperInstance:null,props:f,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(r),clearTimeout(o),cancelAnimationFrame(i)},setProps:function(t){if(w.state.isDestroyed)return;S("onBeforeUpdate",[w,t]),F();var n=w.props,r=Qe(e,Object.assign({},w.props,{},t,{ignoreAttributes:!0}));w.props=r,$(),n.interactiveDebounce!==r.interactiveDebounce&&(W(),g=He(Y,r.interactiveDebounce));n.triggerTarget&&!r.triggerTarget?Pe(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded");R(),P(),E&&E(n,r);w.popperInstance&&(Q(),ee().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));S("onAfterUpdate",[w,t])},setContent:function(e){w.setProps({content:e})},show:function(){var e=w.state.isVisible,t=w.state.isDestroyed,n=!w.state.isEnabled,r=_e.isTouch&&!w.props.touch,o=Ce(w.props.duration,0,Ge.duration);if(e||t||n||r)return;if(C().hasAttribute("disabled"))return;if(S("onShow",[w],!1),!1===w.props.onShow(w))return;w.state.isVisible=!0,j()&&(O.style.visibility="visible");P(),U(),w.state.isMounted||(O.style.transition="none");if(j()){var i=M();Ne([i.box,i.content],0)}c=function(){var e;if(w.state.isVisible&&!v){if(v=!0,O.offsetHeight,O.style.transition=w.props.moveTransition,j()&&w.props.animation){var t=M(),n=t.box,r=t.content;Ne([n,r],o),Ie([n,r],"visible")}B(),R(),Se(dt,w),null==(e=w.popperInstance)||e.forceUpdate(),w.state.isMounted=!0,S("onMount",[w]),w.props.animation&&j()&&function(e,t){_(e,t)}(o,(function(){w.state.isShown=!0,S("onShown",[w])}))}},function(){var e,t=w.props.appendTo,n=C();e=w.props.interactive&&t===je||"parent"===t?n.parentNode:Me(t,[n]);e.contains(O)||e.appendChild(O);Q()}()},hide:function(){var e=!w.state.isVisible,t=w.state.isDestroyed,n=!w.state.isEnabled,r=Ce(w.props.duration,1,Ge.duration);if(e||t||n)return;if(S("onHide",[w],!1),!1===w.props.onHide(w))return;w.state.isVisible=!1,w.state.isShown=!1,v=!1,d=!1,j()&&(O.style.visibility="hidden");if(W(),q(),P(),j()){var o=M(),i=o.box,a=o.content;w.props.animation&&(Ne([i,a],r),Ie([i,a],"hidden"))}B(),R(),w.props.animation?j()&&function(e,t){_(e,(function(){!w.state.isVisible&&O.parentNode&&O.parentNode.contains(O)&&t()}))}(r,w.unmount):w.unmount()},hideWithInteractivity:function(e){k().addEventListener("mousemove",g),Se(ft,g),g(e)},enable:function(){w.state.isEnabled=!0},disable:function(){w.hide(),w.state.isEnabled=!1},unmount:function(){w.state.isVisible&&w.hide();if(!w.state.isMounted)return;Z(),ee().forEach((function(e){e._tippy.unmount()})),O.parentNode&&O.parentNode.removeChild(O);dt=dt.filter((function(e){return e!==w})),w.state.isMounted=!1,S("onHidden",[w])},destroy:function(){if(w.state.isDestroyed)return;w.clearDelayTimeouts(),w.unmount(),F(),delete e._tippy,w.state.isDestroyed=!0,S("onDestroy",[w])}};if(!f.render)return w;var x=f.render(w),O=x.popper,E=x.onUpdate;O.setAttribute("data-tippy-root",""),O.id="tippy-"+w.id,w.popper=O,e._tippy=w,O._tippy=w;var T=y.map((function(e){return e.fn(w)})),A=e.hasAttribute("aria-expanded");return $(),R(),P(),S("onCreate",[w]),f.showOnCreate&&te(),O.addEventListener("mouseenter",(function(){w.props.interactive&&w.state.isVisible&&w.clearDelayTimeouts()})),O.addEventListener("mouseleave",(function(e){w.props.interactive&&w.props.trigger.indexOf("mouseenter")>=0&&(k().addEventListener("mousemove",g),g(e))})),w;function D(){var e=w.props.touch;return Array.isArray(e)?e:[e,0]}function L(){return"hold"===D()[0]}function j(){var e;return!!(null==(e=w.props.render)?void 0:e.$$tippy)}function C(){return u||e}function k(){var e,t,n=C().parentNode;return n?(null==(t=Pe(n)[0])||null==(e=t.ownerDocument)?void 0:e.body)?t.ownerDocument:document:document}function M(){return rt(O)}function H(e){return w.state.isMounted&&!w.state.isVisible||_e.isTouch||a&&"focus"===a.type?0:Ce(w.props.delay,e?0:1,Ge.delay)}function P(){O.style.pointerEvents=w.props.interactive&&w.state.isVisible?"":"none",O.style.zIndex=""+w.props.zIndex}function S(e,t,n){var r;(void 0===n&&(n=!0),T.forEach((function(n){n[e]&&n[e].apply(void 0,t)})),n)&&(r=w.props)[e].apply(r,t)}function B(){var t=w.props.aria;if(t.content){var n="aria-"+t.content,r=O.id;Pe(w.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(w.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var o=t&&t.replace(r,"").trim();o?e.setAttribute(n,o):e.removeAttribute(n)}}))}}function R(){!A&&w.props.aria.expanded&&Pe(w.props.triggerTarget||e).forEach((function(e){w.props.interactive?e.setAttribute("aria-expanded",w.state.isVisible&&e===C()?"true":"false"):e.removeAttribute("aria-expanded")}))}function W(){k().removeEventListener("mousemove",g),ft=ft.filter((function(e){return e!==g}))}function V(e){if(!_e.isTouch||!m&&"mousedown"!==e.type){var t=e.composedPath&&e.composedPath()[0]||e.target;if(!w.props.interactive||!qe(O,t)){if(qe(C(),t)){if(_e.isTouch)return;if(w.state.isVisible&&w.props.trigger.indexOf("click")>=0)return}else S("onClickOutside",[w,e]);!0===w.props.hideOnClick&&(w.clearDelayTimeouts(),w.hide(),l=!0,setTimeout((function(){l=!1})),w.state.isMounted||q())}}}function N(){m=!0}function I(){m=!1}function U(){var e=k();e.addEventListener("mousedown",V,!0),e.addEventListener("touchend",V,Le),e.addEventListener("touchstart",I,Le),e.addEventListener("touchmove",N,Le)}function q(){var e=k();e.removeEventListener("mousedown",V,!0),e.removeEventListener("touchend",V,Le),e.removeEventListener("touchstart",I,Le),e.removeEventListener("touchmove",N,Le)}function _(e,t){var n=M().box;function r(e){e.target===n&&(Ue(n,"remove",r),t())}if(0===e)return t();Ue(n,"remove",s),Ue(n,"add",r),s=r}function z(t,n,r){void 0===r&&(r=!1),Pe(w.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),h.push({node:e,eventType:t,handler:n,options:r})}))}function $(){var e;L()&&(z("touchstart",X,{passive:!0}),z("touchend",G,{passive:!0})),(e=w.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(z(e,X),e){case"mouseenter":z("mouseleave",G);break;case"focus":z(Ye?"focusout":"blur",J);break;case"focusin":z("focusout",J)}}))}function F(){h.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,o=e.options;t.removeEventListener(n,r,o)})),h=[]}function X(e){var t,n=!1;if(w.state.isEnabled&&!K(e)&&!l){var r="focus"===(null==(t=a)?void 0:t.type);a=e,u=e.currentTarget,R(),!w.state.isVisible&&ke(e,"MouseEvent")&&ft.forEach((function(t){return t(e)})),"click"===e.type&&(w.props.trigger.indexOf("mouseenter")<0||d)&&!1!==w.props.hideOnClick&&w.state.isVisible?n=!0:te(e),"click"===e.type&&(d=!n),n&&!r&&ne(e)}}function Y(e){var t=e.target,n=C().contains(t)||O.contains(t);if("mousemove"!==e.type||!n){var r=ee().concat(O).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:f}:null})).filter(Boolean);(function(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t=e.popperRect,o=e.popperState,i=e.props.interactiveBorder,a=o.placement.split("-")[0],s=o.modifiersData.offset;if(!s)return!0;var c="bottom"===a?s.top.y:0,u="top"===a?s.bottom.y:0,p="right"===a?s.left.x:0,f="left"===a?s.right.x:0,d=t.top-r+c>i,l=r-t.bottom-u>i,m=t.left-n+p>i,v=n-t.right-f>i;return d||l||m||v}))})(r,e)&&(W(),ne(e))}}function G(e){K(e)||w.props.trigger.indexOf("click")>=0&&d||(w.props.interactive?w.hideWithInteractivity(e):ne(e))}function J(e){w.props.trigger.indexOf("focusin")<0&&e.target!==C()||w.props.interactive&&e.relatedTarget&&O.contains(e.relatedTarget)||ne(e)}function K(e){return!!_e.isTouch&&L()!==e.type.indexOf("touch")>=0}function Q(){Z();var t=w.props,n=t.popperOptions,r=t.placement,o=t.offset,i=t.getReferenceClientRect,a=t.moveTransition,s=j()?rt(O).arrow:null,u=i?{getBoundingClientRect:i,contextElement:i.contextElement||C()}:e,p={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(j()){var n=M().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={}}}},f=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},p];j()&&s&&f.push({name:"arrow",options:{element:s,padding:3}}),f.push.apply(f,(null==n?void 0:n.modifiers)||[]),w.popperInstance=Oe(u,O,Object.assign({},n,{placement:r,onFirstUpdate:c,modifiers:f}))}function Z(){w.popperInstance&&(w.popperInstance.destroy(),w.popperInstance=null)}function ee(){return Be(O.querySelectorAll("[data-tippy-root]"))}function te(e){w.clearDelayTimeouts(),e&&S("onTrigger",[w,e]),U();var t=H(!0),n=D(),o=n[0],i=n[1];_e.isTouch&&"hold"===o&&i&&(t=i),t?r=setTimeout((function(){w.show()}),t):w.show()}function ne(e){if(w.clearDelayTimeouts(),S("onUntrigger",[w,e]),w.state.isVisible){if(!(w.props.trigger.indexOf("mouseenter")>=0&&w.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&d)){var t=H(!1);t?o=setTimeout((function(){w.state.isVisible&&w.hide()}),t):i=requestAnimationFrame((function(){w.hide()}))}}else q()}}function mt(e,t){void 0===t&&(t={});var n=Ge.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",$e,Le),window.addEventListener("blur",Xe);var r=Object.assign({},t,{plugins:n}),o=Ve(e).reduce((function(e,t){var n=t&&lt(t,r);return n&&e.push(n),e}),[]);return We(e)?o[0]:o}mt.defaultProps=Ge,mt.setDefaultProps=function(e){Object.keys(e).forEach((function(t){Ge[t]=e[t]}))},mt.currentInput=_e,Object.assign({},E,{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)}}),mt.setDefaultProps({render:ot});let vt=(it=t.customElement("rn-tooltip"),at=t.query(".Container"),it((ct=class extends e.LitElementBase{constructor(...e){super(...e),babelHelpers.initializerDefineProperty(this,"Container",ut,this)}static get properties(){return{}}render(){return n.html` <div style="display: inline-block"> <div class="Container">${this.content}</div> </div> `}GetDisplay(){return"inline-flex"}async firstUpdated(e){super.firstUpdated(e),this.AllUpdateComplete;let t=this.tooltip;await this.AllUpdateComplete,1==this.tooltip._$litType$&&(t=n.renderInline(this.tooltip)),mt(this.Container,{content:t,allowHTML:!0,zIndex:1e20})}},ut=babelHelpers.applyDecoratedDescriptor(ct.prototype,"Container",[at],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),st=ct))||st);exports.Tooltip=vt}));