UNPKG

iobroker.lovelace

Version:

With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI

5 lines 38.5 kB
"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["99287"],{83913:function(t,e,o){o.d(e,{RR:()=>u,cv:()=>d,dp:()=>g,oo:()=>c,uY:()=>f,x7:()=>h});var i=o(58814),n=(o(19083),o(71695),o(92745),o(52805),o(61893),o(9359),o(68107),o(56475),o(1331),o(70104),o(48136),o(52924),o(19423),o(40251),o(47021),o(11549));const r=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],s=["mainAxis","crossAxis","limiter"],a=["apply"];function l(t,e,o){let{reference:i,floating:r}=t;const s=(0,n.Qq)(e),a=(0,n.Wh)(e),l=(0,n.I4)(a),c=(0,n.k3)(e),p="y"===s,h=i.x+i.width/2-r.width/2,u=i.y+i.height/2-r.height/2,d=i[l]/2-r[l]/2;let f;switch(c){case"top":f={x:h,y:i.y-r.height};break;case"bottom":f={x:h,y:i.y+i.height};break;case"right":f={x:i.x+i.width,y:u};break;case"left":f={x:i.x-r.width,y:u};break;default:f={x:i.x,y:i.y}}switch((0,n.hp)(e)){case"start":f[a]-=d*(o&&p?-1:1);break;case"end":f[a]+=d*(o&&p?-1:1)}return f}const c=async(t,e,o)=>{const{placement:i="bottom",strategy:n="absolute",middleware:r=[],platform:s}=o,a=r.filter(Boolean),c=await(null==s.isRTL?void 0:s.isRTL(e));let p=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:h,y:u}=l(p,i,c),d=i,f={},g=0;for(let y=0;y<a.length;y++){const{name:o,fn:r}=a[y],{x:m,y:b,data:w,reset:v}=await r({x:h,y:u,initialPlacement:i,placement:d,strategy:n,middlewareData:f,rects:p,platform:s,elements:{reference:t,floating:e}});h=null!=m?m:h,u=null!=b?b:u,f=Object.assign(Object.assign({},f),{},{[o]:Object.assign(Object.assign({},f[o]),w)}),v&&g<=50&&(g++,"object"==typeof v&&(v.placement&&(d=v.placement),v.rects&&(p=!0===v.rects?await s.getElementRects({reference:t,floating:e,strategy:n}):v.rects),({x:h,y:u}=l(p,d,c))),y=-1)}return{x:h,y:u,placement:d,strategy:n,middlewareData:f}};async function p(t,e){var o;void 0===e&&(e={});const{x:i,y:r,platform:s,rects:a,elements:l,strategy:c}=t,{boundary:p="clippingAncestors",rootBoundary:h="viewport",elementContext:u="floating",altBoundary:d=!1,padding:f=0}=(0,n.ku)(e,t),g=(0,n.yd)(f),y=l[d?"floating"===u?"reference":"floating":u],m=(0,n.JB)(await s.getClippingRect({element:null==(o=await(null==s.isElement?void 0:s.isElement(y)))||o?y:y.contextElement||await(null==s.getDocumentElement?void 0:s.getDocumentElement(l.floating)),boundary:p,rootBoundary:h,strategy:c})),b="floating"===u?{x:i,y:r,width:a.floating.width,height:a.floating.height}:a.reference,w=await(null==s.getOffsetParent?void 0:s.getOffsetParent(l.floating)),v=await(null==s.isElement?void 0:s.isElement(w))&&await(null==s.getScale?void 0:s.getScale(w))||{x:1,y:1},x=(0,n.JB)(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:b,offsetParent:w,strategy:c}):b);return{top:(m.top-x.top+g.top)/v.y,bottom:(x.bottom-m.bottom+g.bottom)/v.y,left:(m.left-x.left+g.left)/v.x,right:(x.right-m.right+g.right)/v.x}}const h=t=>({name:"arrow",options:t,async fn(e){const{x:o,y:i,placement:r,rects:s,platform:a,elements:l,middlewareData:c}=e,{element:p,padding:h=0}=(0,n.ku)(t,e)||{};if(null==p)return{};const u=(0,n.yd)(h),d={x:o,y:i},f=(0,n.Wh)(r),g=(0,n.I4)(f),y=await a.getDimensions(p),m="y"===f,b=m?"top":"left",w=m?"bottom":"right",v=m?"clientHeight":"clientWidth",x=s.reference[g]+s.reference[f]-d[f]-s.floating[g],k=d[f]-s.reference[f],P=await(null==a.getOffsetParent?void 0:a.getOffsetParent(p));let C=P?P[v]:0;C&&await(null==a.isElement?void 0:a.isElement(P))||(C=l.floating[v]||s.floating[g]);const R=x/2-k/2,O=C/2-y[g]/2-1,E=(0,n.VV)(u[b],O),z=(0,n.VV)(u[w],O),F=E,L=C-y[g]-z,T=C/2-y[g]/2+R,A=(0,n.uZ)(F,T,L),D=!c.arrow&&null!=(0,n.hp)(r)&&T!==A&&s.reference[g]/2-(T<F?E:z)-y[g]/2<0,S=D?T<F?T-F:T-L:0;return{[f]:d[f]+S,data:Object.assign({[f]:A,centerOffset:T-A-S},D&&{alignmentOffset:S}),reset:D}}});const u=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var o,s;const{placement:a,middlewareData:l,rects:c,initialPlacement:h,platform:u,elements:d}=e,f=(0,n.ku)(t,e),{mainAxis:g=!0,crossAxis:y=!0,fallbackPlacements:m,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:v=!0}=f,x=(0,i.Z)(f,r);if(null!=(o=l.arrow)&&o.alignmentOffset)return{};const k=(0,n.k3)(a),P=(0,n.Qq)(h),C=(0,n.k3)(h)===h,R=await(null==u.isRTL?void 0:u.isRTL(d.floating)),O=m||(C||!v?[(0,n.pw)(h)]:(0,n.gy)(h)),E="none"!==w;!m&&E&&O.push(...(0,n.KX)(h,v,w,R));const z=[h,...O],F=await p(e,x),L=[];let T=(null==(s=l.flip)?void 0:s.overflows)||[];if(g&&L.push(F[k]),y){const t=(0,n.i8)(a,c,R);L.push(F[t[0]],F[t[1]])}if(T=[...T,{placement:a,overflows:L}],!L.every((t=>t<=0))){var A,D;const t=((null==(A=l.flip)?void 0:A.index)||0)+1,e=z[t];if(e)return{data:{index:t,overflows:T},reset:{placement:e}};let o=null==(D=T.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:D.placement;if(!o)switch(b){case"bestFit":{var S;const t=null==(S=T.filter((t=>{if(E){const e=(0,n.Qq)(t.placement);return e===P||"y"===e}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:S[0];t&&(o=t);break}case"initialPlacement":o=h}if(a!==o)return{reset:{placement:o}}}return{}}}};const d=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var o,i;const{x:r,y:s,placement:a,middlewareData:l}=e,c=await async function(t,e){const{placement:o,platform:i,elements:r}=t,s=await(null==i.isRTL?void 0:i.isRTL(r.floating)),a=(0,n.k3)(o),l=(0,n.hp)(o),c="y"===(0,n.Qq)(o),p=["left","top"].includes(a)?-1:1,h=s&&c?-1:1,u=(0,n.ku)(e,t);let{mainAxis:d,crossAxis:f,alignmentAxis:g}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return l&&"number"==typeof g&&(f="end"===l?-1*g:g),c?{x:f*h,y:d*p}:{x:d*p,y:f*h}}(e,t);return a===(null==(o=l.offset)?void 0:o.placement)&&null!=(i=l.arrow)&&i.alignmentOffset?{}:{x:r+c.x,y:s+c.y,data:Object.assign(Object.assign({},c),{},{placement:a})}}}},f=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:o,y:r,placement:a}=e,l=(0,n.ku)(t,e),{mainAxis:c=!0,crossAxis:h=!1,limiter:u={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}}}=l,d=(0,i.Z)(l,s),f={x:o,y:r},g=await p(e,d),y=(0,n.Qq)((0,n.k3)(a)),m=(0,n.Rn)(y);let b=f[m],w=f[y];if(c){const t="y"===m?"bottom":"right",e=b+g["y"===m?"top":"left"],o=b-g[t];b=(0,n.uZ)(e,b,o)}if(h){const t="y"===y?"bottom":"right",e=w+g["y"===y?"top":"left"],o=w-g[t];w=(0,n.uZ)(e,w,o)}const v=u.fn(Object.assign(Object.assign({},e),{},{[m]:b,[y]:w}));return Object.assign(Object.assign({},v),{},{data:{x:v.x-o,y:v.y-r,enabled:{[m]:c,[y]:h}}})}}},g=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){var o,r;const{placement:s,rects:l,platform:c,elements:h}=e,u=(0,n.ku)(t,e),{apply:d=()=>{}}=u,f=(0,i.Z)(u,a),g=await p(e,f),y=(0,n.k3)(s),m=(0,n.hp)(s),b="y"===(0,n.Qq)(s),{width:w,height:v}=l.floating;let x,k;"top"===y||"bottom"===y?(x=y,k=m===(await(null==c.isRTL?void 0:c.isRTL(h.floating))?"start":"end")?"left":"right"):(k=y,x="end"===m?"top":"bottom");const P=v-g.top-g.bottom,C=w-g.left-g.right,R=(0,n.VV)(v-g[x],P),O=(0,n.VV)(w-g[k],C),E=!e.middlewareData.shift;let z=R,F=O;if(null!=(o=e.middlewareData.shift)&&o.enabled.x&&(F=C),null!=(r=e.middlewareData.shift)&&r.enabled.y&&(z=P),E&&!m){const t=(0,n.Fp)(g.left,0),e=(0,n.Fp)(g.right,0),o=(0,n.Fp)(g.top,0),i=(0,n.Fp)(g.bottom,0);b?F=w-2*(0!==t||0!==e?t+e:(0,n.Fp)(g.left,g.right)):z=v-2*(0!==o||0!==i?o+i:(0,n.Fp)(g.top,g.bottom))}await d(Object.assign(Object.assign({},e),{},{availableWidth:F,availableHeight:z}));const L=await c.getDimensions(h.floating);return w!==L.width||v!==L.height?{reset:{rects:!0}}:{}}}}},50219:function(t,e,o){o.a(t,(async function(t,i){try{o.d(e,{Jv:()=>j,Me:()=>V,RR:()=>_,cv:()=>W,dp:()=>K,oo:()=>J,uY:()=>N,x7:()=>M});var n=o(31948),r=(o(19083),o(71695),o(52805),o(9359),o(56475),o(31526),o(19423),o(95078),o(40251),o(47021),o(11549)),s=o(83913),a=o(615),l=t([n]);function p(t){const e=(0,a.Dx)(t);let o=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const n=(0,a.Re)(t),s=n?t.offsetWidth:o,l=n?t.offsetHeight:i,c=(0,r.NM)(o)!==s||(0,r.NM)(i)!==l;return c&&(o=s,i=l),{width:o,height:i,$:c}}function h(t){return(0,a.kK)(t)?t:t.contextElement}function u(t){const e=h(t);if(!(0,a.Re)(e))return(0,r.ze)(1);const o=e.getBoundingClientRect(),{width:i,height:n,$:s}=p(e);let l=(s?(0,r.NM)(o.width):o.width)/i,c=(s?(0,r.NM)(o.height):o.height)/n;return l&&Number.isFinite(l)||(l=1),c&&Number.isFinite(c)||(c=1),{x:l,y:c}}n=(l.then?(await l)():l)[0];const d=(0,r.ze)(0);function f(t){const e=(0,a.Jj)(t);return(0,a.Pf)()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:d}function g(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==(0,a.Jj)(t))&&e}function y(t,e,o,i){void 0===e&&(e=!1),void 0===o&&(o=!1);const n=t.getBoundingClientRect(),s=h(t);let l=(0,r.ze)(1);e&&(i?(0,a.kK)(i)&&(l=u(i)):l=u(t));const c=g(s,o,i)?f(s):(0,r.ze)(0);let p=(n.left+c.x)/l.x,d=(n.top+c.y)/l.y,y=n.width/l.x,m=n.height/l.y;if(s){const t=(0,a.Jj)(s),e=i&&(0,a.kK)(i)?(0,a.Jj)(i):i;let o=t,n=(0,a.wK)(o);for(;n&&i&&e!==o;){const t=u(n),e=n.getBoundingClientRect(),i=(0,a.Dx)(n),r=e.left+(n.clientLeft+parseFloat(i.paddingLeft))*t.x,s=e.top+(n.clientTop+parseFloat(i.paddingTop))*t.y;p*=t.x,d*=t.y,y*=t.x,m*=t.y,p+=r,d+=s,o=(0,a.Jj)(n),n=(0,a.wK)(o)}}return(0,r.JB)({width:y,height:m,x:p,y:d})}function m(t,e){const o=(0,a.Lw)(t).scrollLeft;return e?e.left+o:y((0,a.tF)(t)).left+o}function b(t,e,o){void 0===o&&(o=!1);const i=t.getBoundingClientRect();return{x:i.left+e.scrollLeft-(o?0:m(t,i)),y:i.top+e.scrollTop}}function w(t){let{elements:e,rect:o,offsetParent:i,strategy:n}=t;const s="fixed"===n,l=(0,a.tF)(i),c=!!e&&(0,a.tR)(e.floating);if(i===l||c&&s)return o;let p={scrollLeft:0,scrollTop:0},h=(0,r.ze)(1);const d=(0,r.ze)(0),f=(0,a.Re)(i);if((f||!f&&!s)&&(("body"!==(0,a.wk)(i)||(0,a.ao)(l))&&(p=(0,a.Lw)(i)),(0,a.Re)(i))){const t=y(i);h=u(i),d.x=t.x+i.clientLeft,d.y=t.y+i.clientTop}const g=!l||f||s?(0,r.ze)(0):b(l,p,!0);return{width:o.width*h.x,height:o.height*h.y,x:o.x*h.x-p.scrollLeft*h.x+d.x+g.x,y:o.y*h.y-p.scrollTop*h.y+d.y+g.y}}function v(t){return Array.from(t.getClientRects())}function x(t){const e=(0,a.tF)(t),o=(0,a.Lw)(t),i=t.ownerDocument.body,n=(0,r.Fp)(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),s=(0,r.Fp)(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let l=-o.scrollLeft+m(t);const c=-o.scrollTop;return"rtl"===(0,a.Dx)(i).direction&&(l+=(0,r.Fp)(e.clientWidth,i.clientWidth)-n),{width:n,height:s,x:l,y:c}}function k(t,e){const o=(0,a.Jj)(t),i=(0,a.tF)(t),n=o.visualViewport;let r=i.clientWidth,s=i.clientHeight,l=0,c=0;if(n){r=n.width,s=n.height;const t=(0,a.Pf)();(!t||t&&"fixed"===e)&&(l=n.offsetLeft,c=n.offsetTop)}return{width:r,height:s,x:l,y:c}}function P(t,e){const o=y(t,!0,"fixed"===e),i=o.top+t.clientTop,n=o.left+t.clientLeft,s=(0,a.Re)(t)?u(t):(0,r.ze)(1);return{width:t.clientWidth*s.x,height:t.clientHeight*s.y,x:n*s.x,y:i*s.y}}function C(t,e,o){let i;if("viewport"===e)i=k(t,o);else if("document"===e)i=x((0,a.tF)(t));else if((0,a.kK)(e))i=P(e,o);else{const o=f(t);i={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return(0,r.JB)(i)}function R(t,e){const o=(0,a.Ow)(t);return!(o===e||!(0,a.kK)(o)||(0,a.Py)(o))&&("fixed"===(0,a.Dx)(o).position||R(o,e))}function O(t,e){const o=e.get(t);if(o)return o;let i=(0,a.Kx)(t,[],!1).filter((t=>(0,a.kK)(t)&&"body"!==(0,a.wk)(t))),n=null;const r="fixed"===(0,a.Dx)(t).position;let s=r?(0,a.Ow)(t):t;for(;(0,a.kK)(s)&&!(0,a.Py)(s);){const e=(0,a.Dx)(s),o=(0,a.hT)(s);o||"fixed"!==e.position||(n=null);(r?!o&&!n:!o&&"static"===e.position&&!!n&&["absolute","fixed"].includes(n.position)||(0,a.ao)(s)&&!o&&R(t,s))?i=i.filter((t=>t!==s)):n=e,s=(0,a.Ow)(s)}return e.set(t,i),i}function E(t){let{element:e,boundary:o,rootBoundary:i,strategy:n}=t;const s=[..."clippingAncestors"===o?(0,a.tR)(e)?[]:O(e,this._c):[].concat(o),i],l=s[0],c=s.reduce(((t,o)=>{const i=C(e,o,n);return t.top=(0,r.Fp)(i.top,t.top),t.right=(0,r.VV)(i.right,t.right),t.bottom=(0,r.VV)(i.bottom,t.bottom),t.left=(0,r.Fp)(i.left,t.left),t}),C(e,l,n));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function z(t){const{width:e,height:o}=p(t);return{width:e,height:o}}function F(t,e,o){const i=(0,a.Re)(e),n=(0,a.tF)(e),s="fixed"===o,l=y(t,!0,s,e);let c={scrollLeft:0,scrollTop:0};const p=(0,r.ze)(0);if(i||!i&&!s)if(("body"!==(0,a.wk)(e)||(0,a.ao)(n))&&(c=(0,a.Lw)(e)),i){const t=y(e,!0,s,e);p.x=t.x+e.clientLeft,p.y=t.y+e.clientTop}else n&&(p.x=m(n));const h=!n||i||s?(0,r.ze)(0):b(n,c);return{x:l.left+c.scrollLeft-p.x-h.x,y:l.top+c.scrollTop-p.y-h.y,width:l.width,height:l.height}}function L(t){return"static"===(0,a.Dx)(t).position}function T(t,e){if(!(0,a.Re)(t)||"fixed"===(0,a.Dx)(t).position)return null;if(e)return e(t);let o=t.offsetParent;return(0,a.tF)(t)===o&&(o=o.ownerDocument.body),o}function A(t,e){const o=(0,a.Jj)(t);if((0,a.tR)(t))return o;if(!(0,a.Re)(t)){let e=(0,a.Ow)(t);for(;e&&!(0,a.Py)(e);){if((0,a.kK)(e)&&!L(e))return e;e=(0,a.Ow)(e)}return o}let i=T(t,e);for(;i&&(0,a.Ze)(i)&&L(i);)i=T(i,e);return i&&(0,a.Py)(i)&&L(i)&&!(0,a.hT)(i)?o:i||(0,a.gQ)(t)||o}const D=async function(t){const e=this.getOffsetParent||A,o=this.getDimensions,i=await o(t.floating);return{reference:F(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function S(t){return"rtl"===(0,a.Dx)(t).direction}const j={convertOffsetParentRelativeRectToViewportRelativeRect:w,getDocumentElement:a.tF,getClippingRect:E,getOffsetParent:A,getElementRects:D,getClientRects:v,getDimensions:z,getScale:u,isElement:a.kK,isRTL:S};function B(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function $(t,e){let o,i=null;const n=(0,a.tF)(t);function s(){var t;clearTimeout(o),null==(t=i)||t.disconnect(),i=null}return function a(l,c){void 0===l&&(l=!1),void 0===c&&(c=1),s();const p=t.getBoundingClientRect(),{left:h,top:u,width:d,height:f}=p;if(l||e(),!d||!f)return;const g={rootMargin:-(0,r.GW)(u)+"px "+-(0,r.GW)(n.clientWidth-(h+d))+"px "+-(0,r.GW)(n.clientHeight-(u+f))+"px "+-(0,r.GW)(h)+"px",threshold:(0,r.Fp)(0,(0,r.VV)(1,c))||1};let y=!0;function m(e){const i=e[0].intersectionRatio;if(i!==c){if(!y)return a();i?a(!1,i):o=setTimeout((()=>{a(!1,1e-7)}),1e3)}1!==i||B(p,t.getBoundingClientRect())||a(),y=!1}try{i=new IntersectionObserver(m,Object.assign(Object.assign({},g),{},{root:n.ownerDocument}))}catch(b){i=new IntersectionObserver(m,g)}i.observe(t)}(!0),s}function V(t,e,o,i){void 0===i&&(i={});const{ancestorScroll:n=!0,ancestorResize:r=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:c=!1}=i,p=h(t),u=n||r?[...p?(0,a.Kx)(p):[],...(0,a.Kx)(e)]:[];u.forEach((t=>{n&&t.addEventListener("scroll",o,{passive:!0}),r&&t.addEventListener("resize",o)}));const d=p&&l?$(p,o):null;let f,g=-1,m=null;s&&(m=new ResizeObserver((t=>{let[i]=t;i&&i.target===p&&m&&(m.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame((()=>{var t;null==(t=m)||t.observe(e)}))),o()})),p&&!c&&m.observe(p),m.observe(e));let b=c?y(t):null;return c&&function e(){const i=y(t);b&&!B(b,i)&&o();b=i,f=requestAnimationFrame(e)}(),o(),()=>{var t;u.forEach((t=>{n&&t.removeEventListener("scroll",o),r&&t.removeEventListener("resize",o)})),null==d||d(),null==(t=m)||t.disconnect(),m=null,c&&cancelAnimationFrame(f)}}const W=s.cv,N=s.uY,_=s.RR,K=s.dp,M=s.x7,J=(t,e,o)=>{const i=new Map,n=Object.assign({platform:j},o),r=Object.assign(Object.assign({},n.platform),{},{_c:i});return(0,s.oo)(t,e,Object.assign(Object.assign({},n),{},{platform:r}))};i()}catch(c){i(c)}}))},615:function(t,e,o){o.d(e,{Dx:()=>b,Jj:()=>r,Kx:()=>k,Lw:()=>w,Ow:()=>v,Pf:()=>y,Py:()=>m,Re:()=>c,Ze:()=>u,ao:()=>h,gQ:()=>g,hT:()=>f,kK:()=>l,tF:()=>s,tR:()=>d,wK:()=>P,wk:()=>n});o(19083),o(9359),o(56475),o(19134),o(5740),o(61006);function i(){return"undefined"!=typeof window}function n(t){return a(t)?(t.nodeName||"").toLowerCase():"#document"}function r(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function s(t){var e;return null==(e=(a(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function a(t){return!!i()&&(t instanceof Node||t instanceof r(t).Node)}function l(t){return!!i()&&(t instanceof Element||t instanceof r(t).Element)}function c(t){return!!i()&&(t instanceof HTMLElement||t instanceof r(t).HTMLElement)}function p(t){return!(!i()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof r(t).ShadowRoot)}function h(t){const{overflow:e,overflowX:o,overflowY:i,display:n}=b(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&!["inline","contents"].includes(n)}function u(t){return["table","td","th"].includes(n(t))}function d(t){return[":popover-open",":modal"].some((e=>{try{return t.matches(e)}catch(o){return!1}}))}function f(t){const e=y(),o=l(t)?b(t):t;return["transform","translate","scale","rotate","perspective"].some((t=>!!o[t]&&"none"!==o[t]))||!!o.containerType&&"normal"!==o.containerType||!e&&!!o.backdropFilter&&"none"!==o.backdropFilter||!e&&!!o.filter&&"none"!==o.filter||["transform","translate","scale","rotate","perspective","filter"].some((t=>(o.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(o.contain||"").includes(t)))}function g(t){let e=v(t);for(;c(e)&&!m(e);){if(f(e))return e;if(d(e))return null;e=v(e)}return null}function y(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function m(t){return["html","body","#document"].includes(n(t))}function b(t){return r(t).getComputedStyle(t)}function w(t){return l(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function v(t){if("html"===n(t))return t;const e=t.assignedSlot||t.parentNode||p(t)&&t.host||s(t);return p(e)?e.host:e}function x(t){const e=v(t);return m(e)?t.ownerDocument?t.ownerDocument.body:t.body:c(e)&&h(e)?e:x(e)}function k(t,e,o){var i;void 0===e&&(e=[]),void 0===o&&(o=!0);const n=x(t),s=n===(null==(i=t.ownerDocument)?void 0:i.body),a=r(n);if(s){const t=P(a);return e.concat(a,a.visualViewport||[],h(n)?n:[],t&&o?k(t):[])}return e.concat(n,k(n,[],o))}function P(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}},11549:function(t,e,o){o.d(e,{Fp:()=>n,GW:()=>s,I4:()=>g,JB:()=>C,KX:()=>x,NM:()=>r,Qq:()=>y,Rn:()=>f,VV:()=>i,Wh:()=>m,gy:()=>w,hp:()=>d,i8:()=>b,k3:()=>u,ku:()=>h,pw:()=>k,uZ:()=>p,yd:()=>P,ze:()=>a});o(19083),o(52805),o(9359),o(70104),o(19423),o(19134),o(97003);const i=Math.min,n=Math.max,r=Math.round,s=Math.floor,a=t=>({x:t,y:t}),l={left:"right",right:"left",bottom:"top",top:"bottom"},c={start:"end",end:"start"};function p(t,e,o){return n(t,i(e,o))}function h(t,e){return"function"==typeof t?t(e):t}function u(t){return t.split("-")[0]}function d(t){return t.split("-")[1]}function f(t){return"x"===t?"y":"x"}function g(t){return"y"===t?"height":"width"}function y(t){return["top","bottom"].includes(u(t))?"y":"x"}function m(t){return f(y(t))}function b(t,e,o){void 0===o&&(o=!1);const i=d(t),n=m(t),r=g(n);let s="x"===n?i===(o?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=k(s)),[s,k(s)]}function w(t){const e=k(t);return[v(t),e,v(e)]}function v(t){return t.replace(/start|end/g,(t=>c[t]))}function x(t,e,o,i){const n=d(t);let r=function(t,e,o){const i=["left","right"],n=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return o?e?n:i:e?i:n;case"left":case"right":return e?r:s;default:return[]}}(u(t),"start"===o,i);return n&&(r=r.map((t=>t+"-"+n)),e&&(r=r.concat(r.map(v)))),r}function k(t){return t.replace(/left|right|bottom|top/g,(t=>l[t]))}function P(t){return"number"!=typeof t?function(t){return Object.assign({top:0,right:0,bottom:0,left:0},t)}(t):{top:t,right:t,bottom:t,left:t}}function C(t){const{x:e,y:o,width:i,height:n}=t;return{width:i,height:n,top:o,left:e,right:e+i,bottom:o+n,x:e,y:o}}},36956:function(t,e,o){o.d(e,{a:()=>n});let i;var n=(0,o(57243).iv)(i||(i=(t=>t)`:host{--arrow-color:var(--sl-color-neutral-1000);--arrow-size:6px;--arrow-size-diagonal:calc(var(--arrow-size) * 0.7071);--arrow-padding-offset:calc(var(--arrow-size-diagonal) - var(--arrow-size));display:contents}.popup{position:absolute;isolation:isolate;max-width:var(--auto-size-available-width,none);max-height:var(--auto-size-available-height,none)}.popup--fixed{position:fixed}.popup:not(.popup--active){display:none}.popup__arrow{position:absolute;width:calc(var(--arrow-size-diagonal) * 2);height:calc(var(--arrow-size-diagonal) * 2);rotate:45deg;background:var(--arrow-color);z-index:-1}.popup-hover-bridge:not(.popup-hover-bridge--visible){display:none}.popup-hover-bridge{position:fixed;z-index:calc(var(--sl-z-index-dropdown) - 1);top:0;right:0;bottom:0;left:0;clip-path:polygon(var(--hover-bridge-top-left-x,0) var(--hover-bridge-top-left-y,0),var(--hover-bridge-top-right-x,0) var(--hover-bridge-top-right-y,0),var(--hover-bridge-bottom-right-x,0) var(--hover-bridge-bottom-right-y,0),var(--hover-bridge-bottom-left-x,0) var(--hover-bridge-bottom-left-y,0))}`))},22087:function(t,e,o){o.a(t,(async function(t,i){try{o.d(e,{l:()=>g});o(19083),o(71695),o(92745),o(9359),o(56475),o(70104),o(19423),o(40251),o(61006),o(81804),o(47021);var n=o(36956),r=o(15073),s=o(81048),a=o(31027),l=o(52812),c=o(50219),p=o(35359),h=o(57243),u=o(33202),d=o(50778),f=t([r,c]);[r,c]=f.then?(await f)():f;let y,m,b=t=>t;var g=class extends a.P{constructor(){super(...arguments),this.localize=new r.V(this),this.active=!1,this.placement="top",this.strategy="absolute",this.distance=0,this.skidding=0,this.arrow=!1,this.arrowPlacement="anchor",this.arrowPadding=10,this.flip=!1,this.flipFallbackPlacements="",this.flipFallbackStrategy="best-fit",this.flipPadding=0,this.shift=!1,this.shiftPadding=0,this.autoSizePadding=0,this.hoverBridge=!1,this.updateHoverBridge=()=>{if(this.hoverBridge&&this.anchorEl){const t=this.anchorEl.getBoundingClientRect(),e=this.popup.getBoundingClientRect();let o=0,i=0,n=0,r=0,s=0,a=0,l=0,c=0;this.placement.includes("top")||this.placement.includes("bottom")?t.top<e.top?(o=t.left,i=t.bottom,n=t.right,r=t.bottom,s=e.left,a=e.top,l=e.right,c=e.top):(o=e.left,i=e.bottom,n=e.right,r=e.bottom,s=t.left,a=t.top,l=t.right,c=t.top):t.left<e.left?(o=t.right,i=t.top,n=e.left,r=e.top,s=t.right,a=t.bottom,l=e.left,c=e.bottom):(o=e.right,i=e.top,n=t.left,r=t.top,s=e.right,a=e.bottom,l=t.left,c=t.bottom),this.style.setProperty("--hover-bridge-top-left-x",`${o}px`),this.style.setProperty("--hover-bridge-top-left-y",`${i}px`),this.style.setProperty("--hover-bridge-top-right-x",`${n}px`),this.style.setProperty("--hover-bridge-top-right-y",`${r}px`),this.style.setProperty("--hover-bridge-bottom-left-x",`${s}px`),this.style.setProperty("--hover-bridge-bottom-left-y",`${a}px`),this.style.setProperty("--hover-bridge-bottom-right-x",`${l}px`),this.style.setProperty("--hover-bridge-bottom-right-y",`${c}px`)}}}async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.start()}disconnectedCallback(){super.disconnectedCallback(),this.stop()}async updated(t){super.updated(t),t.has("active")&&(this.active?this.start():this.stop()),t.has("anchor")&&this.handleAnchorChange(),this.active&&(await this.updateComplete,this.reposition())}async handleAnchorChange(){if(await this.stop(),this.anchor&&"string"==typeof this.anchor){const t=this.getRootNode();this.anchorEl=t.getElementById(this.anchor)}else this.anchor instanceof Element||null!==(t=this.anchor)&&"object"==typeof t&&"getBoundingClientRect"in t&&(!("contextElement"in t)||t.contextElement instanceof Element)?this.anchorEl=this.anchor:this.anchorEl=this.querySelector('[slot="anchor"]');var t;this.anchorEl instanceof HTMLSlotElement&&(this.anchorEl=this.anchorEl.assignedElements({flatten:!0})[0]),this.anchorEl&&this.active&&this.start()}start(){this.anchorEl&&this.active&&(this.cleanup=(0,c.Me)(this.anchorEl,this.popup,(()=>{this.reposition()})))}async stop(){return new Promise((t=>{this.cleanup?(this.cleanup(),this.cleanup=void 0,this.removeAttribute("data-current-placement"),this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height"),requestAnimationFrame((()=>t()))):t()}))}reposition(){if(!this.active||!this.anchorEl)return;const t=[(0,c.cv)({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?t.push((0,c.dp)({apply:({rects:t})=>{const e="width"===this.sync||"both"===this.sync,o="height"===this.sync||"both"===this.sync;this.popup.style.width=e?`${t.reference.width}px`:"",this.popup.style.height=o?`${t.reference.height}px`:""}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&t.push((0,c.RR)({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:"best-fit"===this.flipFallbackStrategy?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&t.push((0,c.uY)({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?t.push((0,c.dp)({boundary:this.autoSizeBoundary,padding:this.autoSizePadding,apply:({availableWidth:t,availableHeight:e})=>{"vertical"===this.autoSize||"both"===this.autoSize?this.style.setProperty("--auto-size-available-height",`${e}px`):this.style.removeProperty("--auto-size-available-height"),"horizontal"===this.autoSize||"both"===this.autoSize?this.style.setProperty("--auto-size-available-width",`${t}px`):this.style.removeProperty("--auto-size-available-width")}})):(this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height")),this.arrow&&t.push((0,c.x7)({element:this.arrowEl,padding:this.arrowPadding}));const e="absolute"===this.strategy?t=>c.Jv.getOffsetParent(t,u.y8):c.Jv.getOffsetParent;(0,c.oo)(this.anchorEl,this.popup,{placement:this.placement,middleware:t,strategy:this.strategy,platform:(0,l.EZ)((0,l.ih)({},c.Jv),{getOffsetParent:e})}).then((({x:t,y:e,middlewareData:o,placement:i})=>{const n="rtl"===this.localize.dir(),r={top:"bottom",right:"left",bottom:"top",left:"right"}[i.split("-")[0]];if(this.setAttribute("data-current-placement",i),Object.assign(this.popup.style,{left:`${t}px`,top:`${e}px`}),this.arrow){const t=o.arrow.x,e=o.arrow.y;let i="",s="",a="",l="";if("start"===this.arrowPlacement){const o="number"==typeof t?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";i="number"==typeof e?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",s=n?o:"",l=n?"":o}else if("end"===this.arrowPlacement){const o="number"==typeof t?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";s=n?"":o,l=n?o:"",a="number"==typeof e?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""}else"center"===this.arrowPlacement?(l="number"==typeof t?"calc(50% - var(--arrow-size-diagonal))":"",i="number"==typeof e?"calc(50% - var(--arrow-size-diagonal))":""):(l="number"==typeof t?`${t}px`:"",i="number"==typeof e?`${e}px`:"");Object.assign(this.arrowEl.style,{top:i,right:s,bottom:a,left:l,[r]:"calc(var(--arrow-size-diagonal) * -1)"})}})),requestAnimationFrame((()=>this.updateHoverBridge())),this.emit("sl-reposition")}render(){return(0,h.dy)(y||(y=b` <slot name="anchor" @slotchange="${0}"></slot> <span part="hover-bridge" class="${0}"></span> <div part="popup" class="${0}"> <slot></slot> ${0} </div> `),this.handleAnchorChange,(0,p.$)({"popup-hover-bridge":!0,"popup-hover-bridge--visible":this.hoverBridge&&this.active}),(0,p.$)({popup:!0,"popup--active":this.active,"popup--fixed":"fixed"===this.strategy,"popup--has-arrow":this.arrow}),this.arrow?(0,h.dy)(m||(m=b`<div part="arrow" class="popup__arrow" role="presentation"></div>`)):"")}};g.styles=[s.N,n.a],(0,l.u2)([(0,d.IO)(".popup")],g.prototype,"popup",2),(0,l.u2)([(0,d.IO)(".popup__arrow")],g.prototype,"arrowEl",2),(0,l.u2)([(0,d.Cb)()],g.prototype,"anchor",2),(0,l.u2)([(0,d.Cb)({type:Boolean,reflect:!0})],g.prototype,"active",2),(0,l.u2)([(0,d.Cb)({reflect:!0})],g.prototype,"placement",2),(0,l.u2)([(0,d.Cb)({reflect:!0})],g.prototype,"strategy",2),(0,l.u2)([(0,d.Cb)({type:Number})],g.prototype,"distance",2),(0,l.u2)([(0,d.Cb)({type:Number})],g.prototype,"skidding",2),(0,l.u2)([(0,d.Cb)({type:Boolean})],g.prototype,"arrow",2),(0,l.u2)([(0,d.Cb)({attribute:"arrow-placement"})],g.prototype,"arrowPlacement",2),(0,l.u2)([(0,d.Cb)({attribute:"arrow-padding",type:Number})],g.prototype,"arrowPadding",2),(0,l.u2)([(0,d.Cb)({type:Boolean})],g.prototype,"flip",2),(0,l.u2)([(0,d.Cb)({attribute:"flip-fallback-placements",converter:{fromAttribute:t=>t.split(" ").map((t=>t.trim())).filter((t=>""!==t)),toAttribute:t=>t.join(" ")}})],g.prototype,"flipFallbackPlacements",2),(0,l.u2)([(0,d.Cb)({attribute:"flip-fallback-strategy"})],g.prototype,"flipFallbackStrategy",2),(0,l.u2)([(0,d.Cb)({type:Object})],g.prototype,"flipBoundary",2),(0,l.u2)([(0,d.Cb)({attribute:"flip-padding",type:Number})],g.prototype,"flipPadding",2),(0,l.u2)([(0,d.Cb)({type:Boolean})],g.prototype,"shift",2),(0,l.u2)([(0,d.Cb)({type:Object})],g.prototype,"shiftBoundary",2),(0,l.u2)([(0,d.Cb)({attribute:"shift-padding",type:Number})],g.prototype,"shiftPadding",2),(0,l.u2)([(0,d.Cb)({attribute:"auto-size"})],g.prototype,"autoSize",2),(0,l.u2)([(0,d.Cb)()],g.prototype,"sync",2),(0,l.u2)([(0,d.Cb)({type:Object})],g.prototype,"autoSizeBoundary",2),(0,l.u2)([(0,d.Cb)({attribute:"auto-size-padding",type:Number})],g.prototype,"autoSizePadding",2),(0,l.u2)([(0,d.Cb)({attribute:"hover-bridge",type:Boolean})],g.prototype,"hoverBridge",2),i()}catch(y){i(y)}}))},94026:function(t,e,o){o.d(e,{RA:()=>r,U_:()=>a,nv:()=>n});o(52247),o(71695),o(9359),o(70104),o(95078),o(40251),o(11740),o(47021);var i=o(52812);function n(t,e,o){return new Promise((n=>{if((null==o?void 0:o.duration)===1/0)throw new Error("Promise-based animations must be finite.");const r=t.animate(e,(0,i.EZ)((0,i.ih)({},o),{duration:s()?0:o.duration}));r.addEventListener("cancel",n,{once:!0}),r.addEventListener("finish",n,{once:!0})}))}function r(t){return(t=t.toString().toLowerCase()).indexOf("ms")>-1?parseFloat(t):t.indexOf("s")>-1?1e3*parseFloat(t):parseFloat(t)}function s(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}function a(t){return Promise.all(t.getAnimations().map((t=>new Promise((e=>{t.cancel(),requestAnimationFrame(e)})))))}},10528:function(t,e,o){o.d(e,{m:()=>i});o(40251);function i(t,e){return new Promise((o=>{t.addEventListener(e,(function i(n){n.target===t&&(t.removeEventListener(e,i),o())}))}))}},43638:function(t,e,o){o.d(e,{b:()=>n});let i;var n=(0,o(57243).iv)(i||(i=(t=>t)`:host{--max-width:20rem;--hide-delay:0ms;--show-delay:150ms;display:contents}.tooltip{--arrow-size:var(--sl-tooltip-arrow-size);--arrow-color:var(--sl-tooltip-background-color)}.tooltip::part(popup){z-index:var(--sl-z-index-tooltip)}.tooltip[placement^=top]::part(popup){transform-origin:bottom}.tooltip[placement^=bottom]::part(popup){transform-origin:top}.tooltip[placement^=left]::part(popup){transform-origin:right}.tooltip[placement^=right]::part(popup){transform-origin:left}.tooltip__body{display:block;width:max-content;max-width:var(--max-width);border-radius:var(--sl-tooltip-border-radius);background-color:var(--sl-tooltip-background-color);font-family:var(--sl-tooltip-font-family);font-size:var(--sl-tooltip-font-size);font-weight:var(--sl-tooltip-font-weight);line-height:var(--sl-tooltip-line-height);text-align:start;white-space:normal;color:var(--sl-tooltip-color);padding:var(--sl-tooltip-padding);pointer-events:none;user-select:none;-webkit-user-select:none}`))},81456:function(t,e,o){o.d(e,{Y:()=>n});o(9359),o(31526);var i=o(52812);function n(t,e){const o=(0,i.ih)({waitUntilFirstUpdate:!1},e);return(e,i)=>{const{update:n}=e,r=Array.isArray(t)?t:[t];e.update=function(t){r.forEach((e=>{const n=e;if(t.has(n)){const e=t.get(n),r=this[n];e!==r&&(o.waitUntilFirstUpdate&&!this.hasUpdated||this[i](e,r))}})),n.call(this,t)}}}},89913:function(t,e,o){o.d(e,{O8:()=>l,jx:()=>a});o(71695),o(46692),o(47021),o(52812);var i=new Map,n=new WeakMap;function r(t){return null!=t?t:{keyframes:[],options:{duration:0}}}function s(t,e){return"rtl"===e.toLowerCase()?{keyframes:t.rtlKeyframes||t.keyframes,options:t.options}:t}function a(t,e){i.set(t,r(e))}function l(t,e,o){const r=n.get(t);if(null==r?void 0:r[e])return s(r[e],o.dir);const a=i.get(e);return a?s(a,o.dir):{keyframes:[],options:{duration:0}}}},84168:function(t,e,o){o.a(t,(async function(t,i){try{o.d(e,{R:()=>b});o(19083),o(40251),o(61006);var n=o(43638),r=o(22087),s=o(89913),a=o(10528),l=o(94026),c=o(15073),p=o(81456),h=o(81048),u=o(31027),d=o(52812),f=o(35359),g=o(57243),y=o(50778),m=t([c,r]);[c,r]=m.then?(await m)():m;let w,v=t=>t;var b=class extends u.P{constructor(){super(),this.localize=new c.V(this),this.content="",this.placement="top",this.disabled=!1,this.distance=8,this.open=!1,this.skidding=0,this.trigger="hover focus",this.hoist=!1,this.handleBlur=()=>{this.hasTrigger("focus")&&this.hide()},this.handleClick=()=>{this.hasTrigger("click")&&(this.open?this.hide():this.show())},this.handleFocus=()=>{this.hasTrigger("focus")&&this.show()},this.handleDocumentKeyDown=t=>{"Escape"===t.key&&(t.stopPropagation(),this.hide())},this.handleMouseOver=()=>{if(this.hasTrigger("hover")){const t=(0,l.RA)(getComputedStyle(this).getPropertyValue("--show-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout((()=>this.show()),t)}},this.handleMouseOut=()=>{if(this.hasTrigger("hover")){const t=(0,l.RA)(getComputedStyle(this).getPropertyValue("--hide-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout((()=>this.hide()),t)}},this.addEventListener("blur",this.handleBlur,!0),this.addEventListener("focus",this.handleFocus,!0),this.addEventListener("click",this.handleClick),this.addEventListener("mouseover",this.handleMouseOver),this.addEventListener("mouseout",this.handleMouseOut)}disconnectedCallback(){var t;super.disconnectedCallback(),null==(t=this.closeWatcher)||t.destroy(),document.removeEventListener("keydown",this.handleDocumentKeyDown)}firstUpdated(){this.body.hidden=!this.open,this.open&&(this.popup.active=!0,this.popup.reposition())}hasTrigger(t){return this.trigger.split(" ").includes(t)}async handleOpenChange(){var t,e;if(this.open){if(this.disabled)return;this.emit("sl-show"),"CloseWatcher"in window?(null==(t=this.closeWatcher)||t.destroy(),this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>{this.hide()}):document.addEventListener("keydown",this.handleDocumentKeyDown),await(0,l.U_)(this.body),this.body.hidden=!1,this.popup.active=!0;const{keyframes:e,options:o}=(0,s.O8)(this,"tooltip.show",{dir:this.localize.dir()});await(0,l.nv)(this.popup.popup,e,o),this.popup.reposition(),this.emit("sl-after-show")}else{this.emit("sl-hide"),null==(e=this.closeWatcher)||e.destroy(),document.removeEventListener("keydown",this.handleDocumentKeyDown),await(0,l.U_)(this.body);const{keyframes:t,options:o}=(0,s.O8)(this,"tooltip.hide",{dir:this.localize.dir()});await(0,l.nv)(this.popup.popup,t,o),this.popup.active=!1,this.body.hidden=!0,this.emit("sl-after-hide")}}async handleOptionsChange(){this.hasUpdated&&(await this.updateComplete,this.popup.reposition())}handleDisabledChange(){this.disabled&&this.open&&this.hide()}async show(){if(!this.open)return this.open=!0,(0,a.m)(this,"sl-after-show")}async hide(){if(this.open)return this.open=!1,(0,a.m)(this,"sl-after-hide")}render(){return(0,g.dy)(w||(w=v` <sl-popup part="base" exportparts=" popup:base__popup, arrow:base__arrow " class="${0}" placement="${0}" distance="${0}" skidding="${0}" strategy="${0}" flip shift arrow hover-bridge> ${0} <slot slot="anchor" aria-describedby="tooltip"></slot> ${0} <div part="body" id="tooltip" class="tooltip__body" role="tooltip" aria-live="${0}"> <slot name="content">${0}</slot> </div> </sl-popup> `),(0,f.$)({tooltip:!0,"tooltip--open":this.open}),this.placement,this.distance,this.skidding,this.hoist?"fixed":"absolute","","",this.open?"polite":"off",this.content)}};b.styles=[h.N,n.b],b.dependencies={"sl-popup":r.l},(0,d.u2)([(0,y.IO)("slot:not([name])")],b.prototype,"defaultSlot",2),(0,d.u2)([(0,y.IO)(".tooltip__body")],b.prototype,"body",2),(0,d.u2)([(0,y.IO)("sl-popup")],b.prototype,"popup",2),(0,d.u2)([(0,y.Cb)()],b.prototype,"content",2),(0,d.u2)([(0,y.Cb)()],b.prototype,"placement",2),(0,d.u2)([(0,y.Cb)({type:Boolean,reflect:!0})],b.prototype,"disabled",2),(0,d.u2)([(0,y.Cb)({type:Number})],b.prototype,"distance",2),(0,d.u2)([(0,y.Cb)({type:Boolean,reflect:!0})],b.prototype,"open",2),(0,d.u2)([(0,y.Cb)({type:Number})],b.prototype,"skidding",2),(0,d.u2)([(0,y.Cb)()],b.prototype,"trigger",2),(0,d.u2)([(0,y.Cb)({type:Boolean})],b.prototype,"hoist",2),(0,d.u2)([(0,p.Y)("open",{waitUntilFirstUpdate:!0})],b.prototype,"handleOpenChange",1),(0,d.u2)([(0,p.Y)(["content","distance","hoist","placement","skidding"])],b.prototype,"handleOptionsChange",1),(0,d.u2)([(0,p.Y)("disabled")],b.prototype,"handleDisabledChange",1),(0,s.jx)("tooltip.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:150,easing:"ease"}}),(0,s.jx)("tooltip.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:150,easing:"ease"}}),i()}catch(w){i(w)}}))},80519:function(t,e,o){o.a(t,(async function(t,i){try{o.d(e,{Z:()=>n.R});var n=o(84168),r=(o(43638),o(22087)),s=(o(36956),o(89913),o(10528),o(94026),o(15073)),a=o(21262),l=(o(81456),o(81048),o(31027),o(52812),t([r,s,a,n]));[r,s,a,n]=l.then?(await l)():l,i()}catch(c){i(c)}}))},1261:function(t,e,o){o.d(e,{Z:()=>i.b});var i=o(43638);o(52812)},85605:function(t,e,o){o.d(e,{jx:()=>i.jx});var i=o(89913);o(52812)},33202:function(t,e,o){o.d(e,{y8:()=>n});o(71695),o(92519),o(42179),o(89256),o(24931),o(88463),o(57449),o(19814),o(47021);var i=o(615);function n(t){return s(t)}function r(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function s(t){for(let e=t;e;e=r(e))if(e instanceof Element&&"none"===getComputedStyle(e).display)return null;for(let e=r(t);e;e=r(e)){if(!(e instanceof Element))continue;const t=getComputedStyle(e);if("contents"!==t.display){if("static"!==t.position||(0,i.hT)(t))return e;if("BODY"===e.tagName)return e}}return null}}}]); //# sourceMappingURL=99287.f1cac00a4c17d411.js.map