Files
DeviceManager/apps/manager/build/_app/immutable/chunks/title.f08fecde.js

2 lines
44 KiB
JavaScript

import{s as zr,a as Xr,e as Ut,c as Yr,i as Ne,y as Ft,d as ve,f as Mt,K as Gr,g as jt,h as Bt,L as Jr,j as Qr,I as Zr,l as en,m as tn,v as rn,n as nn}from "./scheduler.f5cfe514.js";import{e as qt}from "./each.94f093eb.js";import{S as on,i as an}from "./index.c2fc59c9.js";var N="top",Y="bottom",G="right",W="left",Rt="auto",ze=[N,Y,G,W],Se="start",We="end",sn="clippingParents",yr="viewport",He="popper",fn="reference",zt=ze.reduce(function(e, t){return e.concat([t+"-"+Se,t+"-"+We])},[]),br=[].concat(ze,[Rt]).reduce(function(e, t){return e.concat([t,t+"-"+Se,t+"-"+We])},[]),un="beforeRead",cn="read",ln="afterRead",pn="beforeMain",dn="main",vn="afterMain",mn="beforeWrite",hn="write",gn="afterWrite",yn=[un,cn,ln,pn,dn,vn,mn,hn,gn];function oe(e){return e?(e.nodeName||"").toLowerCase():null}function q(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function xe(e){var t=q(e).Element;return e instanceof t||e instanceof Element}function X(e){var t=q(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function _t(e){if(typeof ShadowRoot>"u")return!1;var t=q(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function bn(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},i=t.attributes[r]||{},o=t.elements[r];!X(o)||!oe(o)||(Object.assign(o.style,n),Object.keys(i).forEach(function(s){var c=i[s];c===!1?o.removeAttribute(s):o.setAttribute(s,c===!0?"":c)}))})}function wn(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var i=t.elements[n],o=t.attributes[n]||{},s=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),c=s.reduce(function(u, p){return u[p]="",u},{});!X(i)||!oe(i)||(Object.assign(i.style,c),Object.keys(o).forEach(function(u){i.removeAttribute(u)}))})}}const wr={name:"applyStyles",enabled:!0,phase:"write",fn:bn,effect:wn,requires:["computeStyles"]};function ie(e){return e.split("-")[0]}var Oe=Math.max,pt=Math.min,Pe=Math.round;function Ct(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Or(){return!/^((?!chrome|android).)*safari/i.test(Ct())}function ke(e, t, r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),i=1,o=1;t&&X(e)&&(i=e.offsetWidth>0&&Pe(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Pe(n.height)/e.offsetHeight||1);var s=xe(e)?q(e):window,c=s.visualViewport,u=!Or()&&r,p=(n.left+(u&&c?c.offsetLeft:0))/i,l=(n.top+(u&&c?c.offsetTop:0))/o,g=n.width/i,w=n.height/o;return{width:g,height:w,top:l,right:p+g,bottom:l+w,left:p,x:p,y:l}}function Kt(e){var t=ke(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function xr(e, t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&_t(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function le(e){return q(e).getComputedStyle(e)}function On(e){return["table","td","th"].indexOf(oe(e))>=0}function me(e){return((xe(e)?e.ownerDocument:e.document)||window.document).documentElement}function vt(e){return oe(e)==="html"?e:e.assignedSlot||e.parentNode||(_t(e)?e.host:null)||me(e)}function Xt(e){return!X(e)||le(e).position==="fixed"?null:e.offsetParent}function xn(e){var t=/firefox/i.test(Ct()),r=/Trident/i.test(Ct());if(r&&X(e)){var n=le(e);if(n.position==="fixed")return null}var i=vt(e);for(_t(i)&&(i=i.host); X(i)&&["html","body"].indexOf(oe(i))<0;){var o=le(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Xe(e){for(var t=q(e),r=Xt(e); r&&On(r)&&le(r).position==="static";)r=Xt(r);return r&&(oe(r)==="html"||oe(r)==="body"&&le(r).position==="static")?t:r||xn(e)||t}function Ht(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function $e(e, t, r){return Oe(e,pt(t,r))}function En(e, t, r){var n=$e(e,t,r);return n>r?r:n}function Er(){return{top:0,right:0,bottom:0,left:0}}function Ar(e){return Object.assign({},Er(),e)}function Tr(e, t){return t.reduce(function(r, n){return r[n]=e,r},{})}var An=function(t, r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Ar(typeof t!="number"?t:Tr(t,ze))};function Tn(e){var t,r=e.state,n=e.name,i=e.options,o=r.elements.arrow,s=r.modifiersData.popperOffsets,c=ie(r.placement),u=Ht(c),p=[W,G].indexOf(c)>=0,l=p?"height":"width";if(!(!o||!s)){var g=An(i.padding,r),w=Kt(o),m=u==="y"?N:W,y=u==="y"?Y:G,b=r.rects.reference[l]+r.rects.reference[u]-s[u]-r.rects.popper[l],O=s[u]-r.rects.reference[u],A=Xe(o),D=A?u==="y"?A.clientHeight||0:A.clientWidth||0:0,S=b/2-O/2,a=g[m],E=D-w[l]-g[y],v=D/2-w[l]/2+S,L=$e(a,v,E),R=u;r.modifiersData[n]=(t={},t[R]=L,t.centerOffset=L-v,t)}}function Dn(e){var t=e.state,r=e.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||xr(t.elements.popper,i)&&(t.elements.arrow=i))}const Cn={name:"arrow",enabled:!0,phase:"main",fn:Tn,effect:Dn,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Me(e){return e.split("-")[1]}var Ln={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Sn(e, t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:Pe(r*i)/i||0,y:Pe(n*i)/i||0}}function Yt(e){var t,r=e.popper,n=e.popperRect,i=e.placement,o=e.variation,s=e.offsets,c=e.position,u=e.gpuAcceleration,p=e.adaptive,l=e.roundOffsets,g=e.isFixed,w=s.x,m=w===void 0?0:w,y=s.y,b=y===void 0?0:y,O=typeof l=="function"?l({x:m,y:b}):{x:m,y:b};m=O.x,b=O.y;var A=s.hasOwnProperty("x"),D=s.hasOwnProperty("y"),S=W,a=N,E=window;if(p){var v=Xe(r),L="clientHeight",R="clientWidth";if(v===q(r)&&(v=me(r),le(v).position!=="static"&&c==="absolute"&&(L="scrollHeight",R="scrollWidth")),v=v,i===N||(i===W||i===G)&&o===We){a=Y;var B=g&&v===E&&E.visualViewport?E.visualViewport.height:v[L];b-=B-n.height,b*=u?1:-1}if(i===W||(i===N||i===Y)&&o===We){S=G;var k=g&&v===E&&E.visualViewport?E.visualViewport.width:v[R];m-=k-n.width,m*=u?1:-1}}var _=Object.assign({position:c},p&&Ln),M=l===!0?Sn({x:m,y:b},q(r)):{x:m,y:b};if(m=M.x,b=M.y,u){var P;return Object.assign({},_,(P={},P[a]=D?"0":"",P[S]=A?"0":"",P.transform=(E.devicePixelRatio||1)<=1?"translate("+m+"px, "+b+"px)":"translate3d("+m+"px, "+b+"px, 0)",P))}return Object.assign({},_,(t={},t[a]=D?b+"px":"",t[S]=A?m+"px":"",t.transform="",t))}function Pn(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=n===void 0?!0:n,o=r.adaptive,s=o===void 0?!0:o,c=r.roundOffsets,u=c===void 0?!0:c,p={placement:ie(t.placement),variation:Me(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Yt(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Yt(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const kn={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Pn,data:{}};var ft={passive:!0};function Mn(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,o=i===void 0?!0:i,s=n.resize,c=s===void 0?!0:s,u=q(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&p.forEach(function(l){l.addEventListener("scroll",r.update,ft)}),c&&u.addEventListener("resize",r.update,ft),function(){o&&p.forEach(function(l){l.removeEventListener("scroll",r.update,ft)}),c&&u.removeEventListener("resize",r.update,ft)}}const jn={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Mn,data:{}};var Bn={left:"right",right:"left",bottom:"top",top:"bottom"};function lt(e){return e.replace(/left|right|bottom|top/g,function(t){return Bn[t]})}var Rn={start:"end",end:"start"};function Gt(e){return e.replace(/start|end/g,function(t){return Rn[t]})}function $t(e){var t=q(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Vt(e){return ke(me(e)).left+$t(e).scrollLeft}function _n(e, t){var r=q(e),n=me(e),i=r.visualViewport,o=n.clientWidth,s=n.clientHeight,c=0,u=0;if(i){o=i.width,s=i.height;var p=Or();(p||!p&&t==="fixed")&&(c=i.offsetLeft,u=i.offsetTop)}return{width:o,height:s,x:c+Vt(e),y:u}}function Kn(e){var t,r=me(e),n=$t(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Oe(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Oe(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),c=-n.scrollLeft+Vt(e),u=-n.scrollTop;return le(i||r).direction==="rtl"&&(c+=Oe(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:c,y:u}}function It(e){var t=le(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function Dr(e){return["html","body","#document"].indexOf(oe(e))>=0?e.ownerDocument.body:X(e)&&It(e)?e:Dr(vt(e))}function Ve(e, t){var r;t===void 0&&(t=[]);var n=Dr(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),o=q(n),s=i?[o].concat(o.visualViewport||[],It(n)?n:[]):n,c=t.concat(s);return i?c:c.concat(Ve(vt(s)))}function Lt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Hn(e, t){var r=ke(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Jt(e, t, r){return t===yr?Lt(_n(e,r)):xe(t)?Hn(t,r):Lt(Kn(me(e)))}function $n(e){var t=Ve(vt(e)),r=["absolute","fixed"].indexOf(le(e).position)>=0,n=r&&X(e)?Xe(e):e;return xe(n)?t.filter(function(i){return xe(i)&&xr(i,n)&&oe(i)!=="body"}):[]}function Vn(e, t, r, n){var i=t==="clippingParents"?$n(e):[].concat(t),o=[].concat(i,[r]),s=o[0],c=o.reduce(function(u, p){var l=Jt(e,p,n);return u.top=Oe(l.top,u.top),u.right=pt(l.right,u.right),u.bottom=pt(l.bottom,u.bottom),u.left=Oe(l.left,u.left),u},Jt(e,s,n));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function Cr(e){var t=e.reference,r=e.element,n=e.placement,i=n?ie(n):null,o=n?Me(n):null,s=t.x+t.width/2-r.width/2,c=t.y+t.height/2-r.height/2,u;switch(i){case N:u={x:s,y:t.y-r.height};break;case Y:u={x:s,y:t.y+t.height};break;case G:u={x:t.x+t.width,y:c};break;case W:u={x:t.x-r.width,y:c};break;default:u={x:t.x,y:t.y}}var p=i?Ht(i):null;if(p!=null){var l=p==="y"?"height":"width";switch(o){case Se:u[p]=u[p]-(t[l]/2-r[l]/2);break;case We:u[p]=u[p]+(t[l]/2-r[l]/2);break}}return u}function Ue(e, t){t===void 0&&(t={});var r=t,n=r.placement,i=n===void 0?e.placement:n,o=r.strategy,s=o===void 0?e.strategy:o,c=r.boundary,u=c===void 0?sn:c,p=r.rootBoundary,l=p===void 0?yr:p,g=r.elementContext,w=g===void 0?He:g,m=r.altBoundary,y=m===void 0?!1:m,b=r.padding,O=b===void 0?0:b,A=Ar(typeof O!="number"?O:Tr(O,ze)),D=w===He?fn:He,S=e.rects.popper,a=e.elements[y?D:w],E=Vn(xe(a)?a:a.contextElement||me(e.elements.popper),u,l,s),v=ke(e.elements.reference),L=Cr({reference:v,element:S,strategy:"absolute",placement:i}),R=Lt(Object.assign({},S,L)),B=w===He?R:v,k={top:E.top-B.top+A.top,bottom:B.bottom-E.bottom+A.bottom,left:E.left-B.left+A.left,right:B.right-E.right+A.right},_=e.modifiersData.offset;if(w===He&&_){var M=_[i];Object.keys(k).forEach(function(P){var U=[G,Y].indexOf(P)>=0?1:-1,F=[N,Y].indexOf(P)>=0?"y":"x";k[P]+=M[F]*U})}return k}function In(e, t){t===void 0&&(t={});var r=t,n=r.placement,i=r.boundary,o=r.rootBoundary,s=r.padding,c=r.flipVariations,u=r.allowedAutoPlacements,p=u===void 0?br:u,l=Me(n),g=l?c?zt:zt.filter(function(y){return Me(y)===l}):ze,w=g.filter(function(y){return p.indexOf(y)>=0});w.length===0&&(w=g);var m=w.reduce(function(y, b){return y[b]=Ue(e,{placement:b,boundary:i,rootBoundary:o,padding:s})[ie(b)],y},{});return Object.keys(m).sort(function(y, b){return m[y]-m[b]})}function Nn(e){if(ie(e)===Rt)return[];var t=lt(e);return[Gt(e),t,Gt(t)]}function Wn(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,o=i===void 0?!0:i,s=r.altAxis,c=s===void 0?!0:s,u=r.fallbackPlacements,p=r.padding,l=r.boundary,g=r.rootBoundary,w=r.altBoundary,m=r.flipVariations,y=m===void 0?!0:m,b=r.allowedAutoPlacements,O=t.options.placement,A=ie(O),D=A===O,S=u||(D||!y?[lt(O)]:Nn(O)),a=[O].concat(S).reduce(function(se, J){return se.concat(ie(J)===Rt?In(t,{placement:J,boundary:l,rootBoundary:g,padding:p,flipVariations:y,allowedAutoPlacements:b}):J)},[]),E=t.rects.reference,v=t.rects.popper,L=new Map,R=!0,B=a[0],k=0; k<a.length; k++){var _=a[k],M=ie(_),P=Me(_)===Se,U=[N,Y].indexOf(M)>=0,F=U?"width":"height",$=Ue(t,{placement:_,boundary:l,rootBoundary:g,altBoundary:w,padding:p}),V=U?P?G:W:P?Y:N;E[F]>v[F]&&(V=lt(V));var K=lt(V),Z=[];if(o&&Z.push($[M]<=0),c&&Z.push($[V]<=0,$[K]<=0),Z.every(function(se){return se})){B=_,R=!1;break}L.set(_,Z)}if(R)for(var ee=y?3:1,he=function(J){var fe=a.find(function(Ee){var ue=L.get(Ee);if(ue)return ue.slice(0,J).every(function(Ae){return Ae})});if(fe)return B=fe,"break"},te=ee; te>0; te--){var ge=he(te);if(ge==="break")break}t.placement!==B&&(t.modifiersData[n]._skip=!0,t.placement=B,t.reset=!0)}}const Un={name:"flip",enabled:!0,phase:"main",fn:Wn,requiresIfExists:["offset"],data:{_skip:!1}};function Qt(e, t, r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Zt(e){return[N,G,Y,W].some(function(t){return e[t]>=0})}function Fn(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=Ue(t,{elementContext:"reference"}),c=Ue(t,{altBoundary:!0}),u=Qt(s,n),p=Qt(c,i,o),l=Zt(u),g=Zt(p);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:p,isReferenceHidden:l,hasPopperEscaped:g},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":g})}const qn={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Fn};function zn(e, t, r){var n=ie(e),i=[W,N].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,s=o[0],c=o[1];return s=s||0,c=(c||0)*i,[W,G].indexOf(n)>=0?{x:c,y:s}:{x:s,y:c}}function Xn(e){var t=e.state,r=e.options,n=e.name,i=r.offset,o=i===void 0?[0,0]:i,s=br.reduce(function(l, g){return l[g]=zn(g,t.rects,o),l},{}),c=s[t.placement],u=c.x,p=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=p),t.modifiersData[n]=s}const Yn={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Xn};function Gn(e){var t=e.state,r=e.name;t.modifiersData[r]=Cr({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Jn={name:"popperOffsets",enabled:!0,phase:"read",fn:Gn,data:{}};function Qn(e){return e==="x"?"y":"x"}function Zn(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,o=i===void 0?!0:i,s=r.altAxis,c=s===void 0?!1:s,u=r.boundary,p=r.rootBoundary,l=r.altBoundary,g=r.padding,w=r.tether,m=w===void 0?!0:w,y=r.tetherOffset,b=y===void 0?0:y,O=Ue(t,{boundary:u,rootBoundary:p,padding:g,altBoundary:l}),A=ie(t.placement),D=Me(t.placement),S=!D,a=Ht(A),E=Qn(a),v=t.modifiersData.popperOffsets,L=t.rects.reference,R=t.rects.popper,B=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,k=typeof B=="number"?{mainAxis:B,altAxis:B}:Object.assign({mainAxis:0,altAxis:0},B),_=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(v){if(o){var P,U=a==="y"?N:W,F=a==="y"?Y:G,$=a==="y"?"height":"width",V=v[a],K=V+O[U],Z=V-O[F],ee=m?-R[$]/2:0,he=D===Se?L[$]:R[$],te=D===Se?-R[$]:-L[$],ge=t.elements.arrow,se=m&&ge?Kt(ge):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Er(),fe=J[U],Ee=J[F],ue=$e(0,L[$],se[$]),Ae=S?L[$]/2-ee-ue-fe-k.mainAxis:he-ue-fe-k.mainAxis,pe=S?-L[$]/2+ee+ue+Ee+k.mainAxis:te+ue+Ee+k.mainAxis,Te=t.elements.arrow&&Xe(t.elements.arrow),Je=Te?a==="y"?Te.clientTop||0:Te.clientLeft||0:0,je=(P=_?.[a])!=null?P:0,Qe=V+Ae-je-Je,Ze=V+pe-je,Be=$e(m?pt(K,Qe):K,V,m?Oe(Z,Ze):Z);v[a]=Be,M[a]=Be-V}if(c){var Re,et=a==="x"?N:W,tt=a==="x"?Y:G,ce=v[E],de=E==="y"?"height":"width",_e=ce+O[et],ye=ce-O[tt],Ke=[N,W].indexOf(A)!==-1,rt=(Re=_?.[E])!=null?Re:0,nt=Ke?_e:ce-L[de]-R[de]-rt+k.altAxis,it=Ke?ce+L[de]+R[de]-rt-k.altAxis:ye,ot=m&&Ke?En(nt,ce,it):$e(m?nt:_e,ce,m?it:ye);v[E]=ot,M[E]=ot-ce}t.modifiersData[n]=M}}const ei={name:"preventOverflow",enabled:!0,phase:"main",fn:Zn,requiresIfExists:["offset"]};function ti(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ri(e){return e===q(e)||!X(e)?$t(e):ti(e)}function ni(e){var t=e.getBoundingClientRect(),r=Pe(t.width)/e.offsetWidth||1,n=Pe(t.height)/e.offsetHeight||1;return r!==1||n!==1}function ii(e, t, r){r===void 0&&(r=!1);var n=X(t),i=X(t)&&ni(t),o=me(t),s=ke(e,i,r),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((oe(t)!=="body"||It(o))&&(c=ri(t)),X(t)?(u=ke(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):o&&(u.x=Vt(o))),{x:s.left+c.scrollLeft-u.x,y:s.top+c.scrollTop-u.y,width:s.width,height:s.height}}function oi(e){var t=new Map,r=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function i(o){r.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(c){if(!r.has(c)){var u=t.get(c);u&&i(u)}}),n.push(o)}return e.forEach(function(o){r.has(o.name)||i(o)}),n}function ai(e){var t=oi(e);return yn.reduce(function(r, n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function si(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function fi(e){var t=e.reduce(function(r, n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var er={placement:"bottom",modifiers:[],strategy:"absolute"};function tr(){for(var e=arguments.length,t=new Array(e),r=0; r<e; r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function ui(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,i=t.defaultOptions,o=i===void 0?er:i;return function(c, u, p){p===void 0&&(p=o);var l={placement:"bottom",orderedModifiers:[],options:Object.assign({},er,o),modifiersData:{},elements:{reference:c,popper:u},attributes:{},styles:{}},g=[],w=!1,m={state:l,setOptions:function(A){var D=typeof A=="function"?A(l.options):A;b(),l.options=Object.assign({},o,l.options,D),l.scrollParents={reference:xe(c)?Ve(c):c.contextElement?Ve(c.contextElement):[],popper:Ve(u)};var S=ai(fi([].concat(n,l.options.modifiers)));return l.orderedModifiers=S.filter(function(a){return a.enabled}),y(),m.update()},forceUpdate:function(){if(!w){var A=l.elements,D=A.reference,S=A.popper;if(tr(D,S)){l.rects={reference:ii(D,Xe(S),l.options.strategy==="fixed"),popper:Kt(S)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(function(k){return l.modifiersData[k.name]=Object.assign({},k.data)});for(var a=0; a<l.orderedModifiers.length; a++){if(l.reset===!0){l.reset=!1,a=-1;continue}var E=l.orderedModifiers[a],v=E.fn,L=E.options,R=L===void 0?{}:L,B=E.name;typeof v=="function"&&(l=v({state:l,options:R,name:B,instance:m})||l)}}}},update:si(function(){return new Promise(function(O){m.forceUpdate(),O(l)})}),destroy:function(){b(),w=!0}};if(!tr(c,u))return m;m.setOptions(p).then(function(O){!w&&p.onFirstUpdate&&p.onFirstUpdate(O)});function y(){l.orderedModifiers.forEach(function(O){var A=O.name,D=O.options,S=D===void 0?{}:D,a=O.effect;if(typeof a=="function"){var E=a({state:l,name:A,instance:m,options:S}),v=function(){};g.push(E||v)}})}function b(){g.forEach(function(O){return O()}),g=[]}return m}}var ci=[jn,Jn,kn,wr,Yn,Un,ei,Cn,qn],li=ui({defaultModifiers:ci}),pi="tippy-box",Lr="tippy-content",di="tippy-backdrop",Sr="tippy-arrow",Pr="tippy-svg-arrow",we={passive:!0,capture:!0},kr=function(){return document.body};function yt(e, t, r){if(Array.isArray(e)){var n=e[t];return n??(Array.isArray(r)?r[t]:r)}return e}function Nt(e, t){var r={}.toString.call(e);return r.indexOf("[object")===0&&r.indexOf(t+"]")>-1}function Mr(e, t){return typeof e=="function"?e.apply(void 0,t):e}function rr(e, t){if(t===0)return e;var r;return function(n){clearTimeout(r),r=setTimeout(function(){e(n)},t)}}function vi(e){return e.split(/\s+/).filter(Boolean)}function Le(e){return[].concat(e)}function nr(e, t){e.indexOf(t)===-1&&e.push(t)}function mi(e){return e.filter(function(t, r){return e.indexOf(t)===r})}function hi(e){return e.split("-")[0]}function dt(e){return[].slice.call(e)}function ir(e){return Object.keys(e).reduce(function(t, r){return e[r]!==void 0&&(t[r]=e[r]),t},{})}function Ie(){return document.createElement("div")}function mt(e){return["Element","Fragment"].some(function(t){return Nt(e,t)})}function gi(e){return Nt(e,"NodeList")}function yi(e){return Nt(e,"MouseEvent")}function bi(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function wi(e){return mt(e)?[e]:gi(e)?dt(e):Array.isArray(e)?e:dt(document.querySelectorAll(e))}function bt(e, t){e.forEach(function(r){r&&(r.style.transitionDuration=t+"ms")})}function or(e, t){e.forEach(function(r){r&&r.setAttribute("data-state",t)})}function Oi(e){var t,r=Le(e),n=r[0];return n!=null&&(t=n.ownerDocument)!=null&&t.body?n.ownerDocument:document}function xi(e, t){var r=t.clientX,n=t.clientY;return e.every(function(i){var o=i.popperRect,s=i.popperState,c=i.props,u=c.interactiveBorder,p=hi(s.placement),l=s.modifiersData.offset;if(!l)return!0;var g=p==="bottom"?l.top.y:0,w=p==="top"?l.bottom.y:0,m=p==="right"?l.left.x:0,y=p==="left"?l.right.x:0,b=o.top-n+g>u,O=n-o.bottom-w>u,A=o.left-r+m>u,D=r-o.right-y>u;return b||O||A||D})}function wt(e, t, r){var n=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){e[n](i,r)})}function ar(e, t){for(var r=t; r;){var n;if(e.contains(r))return!0;r=r.getRootNode==null||(n=r.getRootNode())==null?void 0:n.host}return!1}var re={isTouch:!1},sr=0;function Ei(){re.isTouch||(re.isTouch=!0,window.performance&&document.addEventListener("mousemove",jr))}function jr(){var e=performance.now();e-sr<20&&(re.isTouch=!1,document.removeEventListener("mousemove",jr)),sr=e}function Ai(){var e=document.activeElement;if(bi(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function Ti(){document.addEventListener("touchstart",Ei,we),window.addEventListener("blur",Ai)}var Di=typeof window<"u"&&typeof document<"u",Ci=Di?!!window.msCrypto:!1,Li={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Si={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Q=Object.assign({appendTo:kr,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},Li,Si),Pi=Object.keys(Q),ki=function(t){var r=Object.keys(t);r.forEach(function(n){Q[n]=t[n]})};function Br(e){var t=e.plugins||[],r=t.reduce(function(n, i){var o=i.name,s=i.defaultValue;if(o){var c;n[o]=e[o]!==void 0?e[o]:(c=Q[o])!=null?c:s}return n},{});return Object.assign({},e,r)}function Mi(e, t){var r=t?Object.keys(Br(Object.assign({},Q,{plugins:t}))):Pi,n=r.reduce(function(i, o){var s=(e.getAttribute("data-tippy-"+o)||"").trim();if(!s)return i;if(o==="content")i[o]=s;else try{i[o]=JSON.parse(s)}catch{i[o]=s}return i},{});return n}function fr(e, t){var r=Object.assign({},t,{content:Mr(t.content,[e])},t.ignoreAttributes?{}:Mi(e,t.plugins));return r.aria=Object.assign({},Q.aria,r.aria),r.aria={expanded:r.aria.expanded==="auto"?t.interactive:r.aria.expanded,content:r.aria.content==="auto"?t.interactive?null:"describedby":r.aria.content},r}var ji=function(){return"innerHTML"};function St(e, t){e[ji()]=t}function ur(e){var t=Ie();return e===!0?t.className=Sr:(t.className=Pr,mt(e)?t.appendChild(e):St(t,e)),t}function cr(e, t){mt(t.content)?(St(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?St(e,t.content):e.textContent=t.content)}function Pt(e){var t=e.firstElementChild,r=dt(t.children);return{box:t,content:r.find(function(n){return n.classList.contains(Lr)}),arrow:r.find(function(n){return n.classList.contains(Sr)||n.classList.contains(Pr)}),backdrop:r.find(function(n){return n.classList.contains(di)})}}function Rr(e){var t=Ie(),r=Ie();r.className=pi,r.setAttribute("data-state","hidden"),r.setAttribute("tabindex","-1");var n=Ie();n.className=Lr,n.setAttribute("data-state","hidden"),cr(n,e.props),t.appendChild(r),r.appendChild(n),i(e.props,e.props);function i(o, s){var c=Pt(t),u=c.box,p=c.content,l=c.arrow;s.theme?u.setAttribute("data-theme",s.theme):u.removeAttribute("data-theme"),typeof s.animation=="string"?u.setAttribute("data-animation",s.animation):u.removeAttribute("data-animation"),s.inertia?u.setAttribute("data-inertia",""):u.removeAttribute("data-inertia"),u.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?u.setAttribute("role",s.role):u.removeAttribute("role"),(o.content!==s.content||o.allowHTML!==s.allowHTML)&&cr(p,e.props),s.arrow?l?o.arrow!==s.arrow&&(u.removeChild(l),u.appendChild(ur(s.arrow))):u.appendChild(ur(s.arrow)):l&&u.removeChild(l)}return{popper:t,onUpdate:i}}Rr.$$tippy=!0;var Bi=1,ut=[],Ot=[];function Ri(e, t){var r=fr(e,Object.assign({},Q,Br(ir(t)))),n,i,o,s=!1,c=!1,u=!1,p=!1,l,g,w,m=[],y=rr(Qe,r.interactiveDebounce),b,O=Bi++,A=null,D=mi(r.plugins),S={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},a={id:O,reference:e,popper:Ie(),popperInstance:A,props:r,state:S,plugins:D,clearDelayTimeouts:nt,setProps:it,setContent:ot,show:Ir,hide:Nr,hideWithInteractivity:Wr,enable:Ke,disable:rt,unmount:Ur,destroy:Fr};if(!r.render)return a;var E=r.render(a),v=E.popper,L=E.onUpdate;v.setAttribute("data-tippy-root",""),v.id="tippy-"+a.id,a.popper=v,e._tippy=a,v._tippy=a;var R=D.map(function(f){return f.fn(a)}),B=e.hasAttribute("aria-expanded");return Te(),ee(),V(),K("onCreate",[a]),r.showOnCreate&&_e(),v.addEventListener("mouseenter",function(){a.props.interactive&&a.state.isVisible&&a.clearDelayTimeouts()}),v.addEventListener("mouseleave",function(){a.props.interactive&&a.props.trigger.indexOf("mouseenter")>=0&&U().addEventListener("mousemove",y)}),a;function k(){var f=a.props.touch;return Array.isArray(f)?f:[f,0]}function _(){return k()[0]==="hold"}function M(){var f;return!!((f=a.props.render)!=null&&f.$$tippy)}function P(){return b||e}function U(){var f=P().parentNode;return f?Oi(f):document}function F(){return Pt(v)}function $(f){return a.state.isMounted&&!a.state.isVisible||re.isTouch||l&&l.type==="focus"?0:yt(a.props.delay,f?0:1,Q.delay)}function V(f){f===void 0&&(f=!1),v.style.pointerEvents=a.props.interactive&&!f?"":"none",v.style.zIndex=""+a.props.zIndex}function K(f, d, h){if(h===void 0&&(h=!0),R.forEach(function(x){x[f]&&x[f].apply(x,d)}),h){var T;(T=a.props)[f].apply(T,d)}}function Z(){var f=a.props.aria;if(f.content){var d="aria-"+f.content,h=v.id,T=Le(a.props.triggerTarget||e);T.forEach(function(x){var I=x.getAttribute(d);if(a.state.isVisible)x.setAttribute(d,I?I+" "+h:h);else{var z=I&&I.replace(h,"").trim();z?x.setAttribute(d,z):x.removeAttribute(d)}})}}function ee(){if(!(B||!a.props.aria.expanded)){var f=Le(a.props.triggerTarget||e);f.forEach(function(d){a.props.interactive?d.setAttribute("aria-expanded",a.state.isVisible&&d===P()?"true":"false"):d.removeAttribute("aria-expanded")})}}function he(){U().removeEventListener("mousemove",y),ut=ut.filter(function(f){return f!==y})}function te(f){if(!(re.isTouch&&(u||f.type==="mousedown"))){var d=f.composedPath&&f.composedPath()[0]||f.target;if(!(a.props.interactive&&ar(v,d))){if(Le(a.props.triggerTarget||e).some(function(h){return ar(h,d)})){if(re.isTouch||a.state.isVisible&&a.props.trigger.indexOf("click")>=0)return}else K("onClickOutside",[a,f]);a.props.hideOnClick===!0&&(a.clearDelayTimeouts(),a.hide(),c=!0,setTimeout(function(){c=!1}),a.state.isMounted||fe())}}}function ge(){u=!0}function se(){u=!1}function J(){var f=U();f.addEventListener("mousedown",te,!0),f.addEventListener("touchend",te,we),f.addEventListener("touchstart",se,we),f.addEventListener("touchmove",ge,we)}function fe(){var f=U();f.removeEventListener("mousedown",te,!0),f.removeEventListener("touchend",te,we),f.removeEventListener("touchstart",se,we),f.removeEventListener("touchmove",ge,we)}function Ee(f, d){Ae(f,function(){!a.state.isVisible&&v.parentNode&&v.parentNode.contains(v)&&d()})}function ue(f, d){Ae(f,d)}function Ae(f, d){var h=F().box;function T(x){x.target===h&&(wt(h,"remove",T),d())}if(f===0)return d();wt(h,"remove",g),wt(h,"add",T),g=T}function pe(f, d, h){h===void 0&&(h=!1);var T=Le(a.props.triggerTarget||e);T.forEach(function(x){x.addEventListener(f,d,h),m.push({node:x,eventType:f,handler:d,options:h})})}function Te(){_()&&(pe("touchstart",je,{passive:!0}),pe("touchend",Ze,{passive:!0})),vi(a.props.trigger).forEach(function(f){if(f!=="manual")switch(pe(f,je),f){case"mouseenter":pe("mouseleave",Ze);break;case"focus":pe(Ci?"focusout":"blur",Be);break;case"focusin":pe("focusout",Be);break}})}function Je(){m.forEach(function(f){var d=f.node,h=f.eventType,T=f.handler,x=f.options;d.removeEventListener(h,T,x)}),m=[]}function je(f){var d,h=!1;if(!(!a.state.isEnabled||Re(f)||c)){var T=((d=l)==null?void 0:d.type)==="focus";l=f,b=f.currentTarget,ee(),!a.state.isVisible&&yi(f)&&ut.forEach(function(x){return x(f)}),f.type==="click"&&(a.props.trigger.indexOf("mouseenter")<0||s)&&a.props.hideOnClick!==!1&&a.state.isVisible?h=!0:_e(f),f.type==="click"&&(s=!h),h&&!T&&ye(f)}}function Qe(f){var d=f.target,h=P().contains(d)||v.contains(d);if(!(f.type==="mousemove"&&h)){var T=de().concat(v).map(function(x){var I,z=x._tippy,De=(I=z.popperInstance)==null?void 0:I.state;return De?{popperRect:x.getBoundingClientRect(),popperState:De,props:r}:null}).filter(Boolean);xi(T,f)&&(he(),ye(f))}}function Ze(f){var d=Re(f)||a.props.trigger.indexOf("click")>=0&&s;if(!d){if(a.props.interactive){a.hideWithInteractivity(f);return}ye(f)}}function Be(f){a.props.trigger.indexOf("focusin")<0&&f.target!==P()||a.props.interactive&&f.relatedTarget&&v.contains(f.relatedTarget)||ye(f)}function Re(f){return re.isTouch?_()!==f.type.indexOf("touch")>=0:!1}function et(){tt();var f=a.props,d=f.popperOptions,h=f.placement,T=f.offset,x=f.getReferenceClientRect,I=f.moveTransition,z=M()?Pt(v).arrow:null,De=x?{getBoundingClientRect:x,contextElement:x.contextElement||P()}:e,Wt={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(at){var Ce=at.state;if(M()){var qr=F(),gt=qr.box;["placement","reference-hidden","escaped"].forEach(function(st){st==="placement"?gt.setAttribute("data-placement",Ce.placement):Ce.attributes.popper["data-popper-"+st]?gt.setAttribute("data-"+st,""):gt.removeAttribute("data-"+st)}),Ce.attributes.popper={}}}},be=[{name:"offset",options:{offset:T}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!I}},Wt];M()&&z&&be.push({name:"arrow",options:{element:z,padding:3}}),be.push.apply(be,d?.modifiers||[]),a.popperInstance=li(De,v,Object.assign({},d,{placement:h,onFirstUpdate:w,modifiers:be}))}function tt(){a.popperInstance&&(a.popperInstance.destroy(),a.popperInstance=null)}function ce(){var f=a.props.appendTo,d,h=P();a.props.interactive&&f===kr||f==="parent"?d=h.parentNode:d=Mr(f,[h]),d.contains(v)||d.appendChild(v),a.state.isMounted=!0,et()}function de(){return dt(v.querySelectorAll("[data-tippy-root]"))}function _e(f){a.clearDelayTimeouts(),f&&K("onTrigger",[a,f]),J();var d=$(!0),h=k(),T=h[0],x=h[1];re.isTouch&&T==="hold"&&x&&(d=x),d?n=setTimeout(function(){a.show()},d):a.show()}function ye(f){if(a.clearDelayTimeouts(),K("onUntrigger",[a,f]),!a.state.isVisible){fe();return}if(!(a.props.trigger.indexOf("mouseenter")>=0&&a.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(f.type)>=0&&s)){var d=$(!1);d?i=setTimeout(function(){a.state.isVisible&&a.hide()},d):o=requestAnimationFrame(function(){a.hide()})}}function Ke(){a.state.isEnabled=!0}function rt(){a.hide(),a.state.isEnabled=!1}function nt(){clearTimeout(n),clearTimeout(i),cancelAnimationFrame(o)}function it(f){if(!a.state.isDestroyed){K("onBeforeUpdate",[a,f]),Je();var d=a.props,h=fr(e,Object.assign({},d,ir(f),{ignoreAttributes:!0}));a.props=h,Te(),d.interactiveDebounce!==h.interactiveDebounce&&(he(),y=rr(Qe,h.interactiveDebounce)),d.triggerTarget&&!h.triggerTarget?Le(d.triggerTarget).forEach(function(T){T.removeAttribute("aria-expanded")}):h.triggerTarget&&e.removeAttribute("aria-expanded"),ee(),V(),L&&L(d,h),a.popperInstance&&(et(),de().forEach(function(T){requestAnimationFrame(T._tippy.popperInstance.forceUpdate)})),K("onAfterUpdate",[a,f])}}function ot(f){a.setProps({content:f})}function Ir(){var f=a.state.isVisible,d=a.state.isDestroyed,h=!a.state.isEnabled,T=re.isTouch&&!a.props.touch,x=yt(a.props.duration,0,Q.duration);if(!(f||d||h||T)&&!P().hasAttribute("disabled")&&(K("onShow",[a],!1),a.props.onShow(a)!==!1)){if(a.state.isVisible=!0,M()&&(v.style.visibility="visible"),V(),J(),a.state.isMounted||(v.style.transition="none"),M()){var I=F(),z=I.box,De=I.content;bt([z,De],0)}w=function(){var be;if(!(!a.state.isVisible||p)){if(p=!0,v.offsetHeight,v.style.transition=a.props.moveTransition,M()&&a.props.animation){var ht=F(),at=ht.box,Ce=ht.content;bt([at,Ce],x),or([at,Ce],"visible")}Z(),ee(),nr(Ot,a),(be=a.popperInstance)==null||be.forceUpdate(),K("onMount",[a]),a.props.animation&&M()&&ue(x,function(){a.state.isShown=!0,K("onShown",[a])})}},ce()}}function Nr(){var f=!a.state.isVisible,d=a.state.isDestroyed,h=!a.state.isEnabled,T=yt(a.props.duration,1,Q.duration);if(!(f||d||h)&&(K("onHide",[a],!1),a.props.onHide(a)!==!1)){if(a.state.isVisible=!1,a.state.isShown=!1,p=!1,s=!1,M()&&(v.style.visibility="hidden"),he(),fe(),V(!0),M()){var x=F(),I=x.box,z=x.content;a.props.animation&&(bt([I,z],T),or([I,z],"hidden"))}Z(),ee(),a.props.animation?M()&&Ee(T,a.unmount):a.unmount()}}function Wr(f){U().addEventListener("mousemove",y),nr(ut,y),y(f)}function Ur(){a.state.isVisible&&a.hide(),a.state.isMounted&&(tt(),de().forEach(function(f){f._tippy.unmount()}),v.parentNode&&v.parentNode.removeChild(v),Ot=Ot.filter(function(f){return f!==a}),a.state.isMounted=!1,K("onHidden",[a]))}function Fr(){a.state.isDestroyed||(a.clearDelayTimeouts(),a.unmount(),Je(),delete e._tippy,a.state.isDestroyed=!0,K("onDestroy",[a]))}}function Ye(e, t){t===void 0&&(t={});var r=Q.plugins.concat(t.plugins||[]);Ti();var n=Object.assign({},t,{plugins:r}),i=wi(e),o=i.reduce(function(s, c){var u=c&&Ri(c,n);return u&&s.push(u),s},[]);return mt(e)?o[0]:o}Ye.defaultProps=Q;Ye.setDefaultProps=ki;Ye.currentInput=re;Object.assign({},wr,{effect:function(t){var r=t.state,n={popper:{position:r.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(r.elements.popper.style,n.popper),r.styles=n,r.elements.arrow&&Object.assign(r.elements.arrow.style,n.arrow)}});Ye.setDefaultProps({render:Rr});function lr(e, t, r){const n=e.slice();return n[2]=t[r],n}function pr(e){let t,r;return{c(){t=Mt("p"),r=new Gr(!1),this.h()},l(n){t=jt(n,"P",{class:!0});var i=Bt(t);r=Jr(i,!1),i.forEach(ve),this.h()},h(){r.a=null,Qr(t,"class","svelte-18gg13o")},m(n, i){Ne(n,t,i),r.m(e[0],t)},p(n, i){i&1&&r.p(n[0])},d(n){n&&ve(t)}}}function dr(e){let t,r=qt(e[1].split("+")),n=[];for(let i=0; i<r.length; i+=1)n[i]=vr(lr(e,r,i));return{c(){t=Mt("kbd");for(let i=0; i<n.length; i+=1)n[i].c()},l(i){t=jt(i,"KBD",{});var o=Bt(t);for(let s=0; s<n.length; s+=1)n[s].l(o);o.forEach(ve)},m(i, o){Ne(i,t,o);for(let s=0; s<n.length; s+=1)n[s]&&n[s].m(t,null)},p(i, o){if(o&2){r=qt(i[1].split("+"));let s;for(s=0; s<r.length; s+=1){const c=lr(i,r,s);n[s]?n[s].p(c,o):(n[s]=vr(c),n[s].c(),n[s].m(t,null))}for(; s<n.length; s+=1)n[s].d(1);n.length=r.length}},d(i){i&&ve(t),Zr(n,i)}}}function vr(e){let t,r=e[2]+"",n;return{c(){t=Mt("kbd"),n=en(r)},l(i){t=jt(i,"KBD",{});var o=Bt(t);n=tn(o,r),o.forEach(ve)},m(i, o){Ne(i,t,o),rn(t,n)},p(i, o){o&2&&r!==(r=i[2]+"")&&nn(n,r)},d(i){i&&ve(t)}}}function _i(e){let t,r,n=e[0]&&pr(e),i=e[1]&&dr(e);return{c(){n&&n.c(),t=Xr(),i&&i.c(),r=Ut()},l(o){n&&n.l(o),t=Yr(o),i&&i.l(o),r=Ut()},m(o, s){n&&n.m(o,s),Ne(o,t,s),i&&i.m(o,s),Ne(o,r,s)},p(o, [s]){o[0]?n?n.p(o,s):(n=pr(o),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null),o[1]?i?i.p(o,s):(i=dr(o),i.c(),i.m(r.parentNode,r)):i&&(i.d(1),i=null)},i:Ft,o:Ft,d(o){o&&(ve(t),ve(r)),n&&n.d(o),i&&i.d(o)}}}function Ki(e, t, r){let{title:n}=t,{shortcut:i}=t;return e.$$set= o=>{"title"in o&&r(0,n=o.title),"shortcut"in o&&r(1,i=o.shortcut)},[n,i]}class Hi extends on{constructor(t){super(),an(this,t,Ki,_i,zr,{title:0,shortcut:1})}}var xt=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Et(e, t, r, n){e.addEventListener?e.addEventListener(t,r,n):e.attachEvent&&e.attachEvent("on".concat(t),function(){r(window.event)})}function _r(e, t){for(var r=t.slice(0,t.length-1),n=0; n<r.length; n++)r[n]=e[r[n].toLowerCase()];return r}function Kr(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");for(var t=e.split(","),r=t.lastIndexOf(""); r>=0;)t[r-1]+=",",t.splice(r,1),r=t.lastIndexOf("");return t}function $i(e, t){for(var r=e.length>=t.length?e:t,n=e.length>=t.length?t:e,i=!0,o=0; o<r.length; o++)n.indexOf(r[o])===-1&&(i=!1);return i}var Fe={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":xt?173:189,"=":xt?61:187,";":xt?59:186,"'":222,"[":219,"]":221,"\\":220},ae={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},kt={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},H={16:!1,18:!1,17:!1,91:!1},j={};for(var ct=1; ct<20; ct++)Fe["f".concat(ct)]=111+ct;var C=[],mr=!1,Hr="all",$r=[],Ge=function(t){return Fe[t.toLowerCase()]||ae[t.toLowerCase()]||t.toUpperCase().charCodeAt(0)},Vi=function(t){return Object.keys(Fe).find(function(r){return Fe[r]===t})},Ii=function(t){return Object.keys(ae).find(function(r){return ae[r]===t})};function Vr(e){Hr=e||"all"}function qe(){return Hr||"all"}function Ni(){return C.slice(0)}function Wi(){return C.map(function(e){return Vi(e)||Ii(e)||String.fromCharCode(e)})}function Ui(){var e=[];return Object.keys(j).forEach(function(t){j[t].forEach(function(r){var n=r.key,i=r.scope,o=r.mods,s=r.shortcut;e.push({scope:i,shortcut:s,mods:o,keys:n.split("+").map(function(c){return Ge(c)})})})}),e}function Fi(e){var t=e.target||e.srcElement,r=t.tagName,n=!0;return(t.isContentEditable||(r==="INPUT"||r==="TEXTAREA"||r==="SELECT")&&!t.readOnly)&&(n=!1),n}function qi(e){return typeof e=="string"&&(e=Ge(e)),C.indexOf(e)!==-1}function zi(e, t){var r,n;e||(e=qe());for(var i in j)if(Object.prototype.hasOwnProperty.call(j,i))for(r=j[i],n=0; n<r.length;)r[n].scope===e?r.splice(n,1):n++;qe()===e&&Vr(t||"all")}function Xi(e){var t=e.keyCode||e.which||e.charCode,r=C.indexOf(t);if(r>=0&&C.splice(r,1),e.key&&e.key.toLowerCase()==="meta"&&C.splice(0,C.length),(t===93||t===224)&&(t=91),t in H){H[t]=!1;for(var n in ae)ae[n]===t&&(ne[n]=!1)}}function Yi(e){if(typeof e>"u")Object.keys(j).forEach(function(s){return delete j[s]});else if(Array.isArray(e))e.forEach(function(s){s.key&&At(s)});else if(typeof e=="object")e.key&&At(e);else if(typeof e=="string"){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1; n<t; n++)r[n-1]=arguments[n];var i=r[0],o=r[1];typeof i=="function"&&(o=i,i=""),At({key:e,scope:i,method:o,splitKey:"+"})}}var At=function(t){var r=t.key,n=t.scope,i=t.method,o=t.splitKey,s=o===void 0?"+":o,c=Kr(r);c.forEach(function(u){var p=u.split(s),l=p.length,g=p[l-1],w=g==="*"?"*":Ge(g);if(j[w]){n||(n=qe());var m=l>1?_r(ae,p):[];j[w]=j[w].filter(function(y){var b=i?y.method===i:!0;return!(b&&y.scope===n&&$i(y.mods,m))})}})};function hr(e, t, r, n){if(t.element===n){var i;if(t.scope===r||t.scope==="all"){i=t.mods.length>0;for(var o in H)Object.prototype.hasOwnProperty.call(H,o)&&(!H[o]&&t.mods.indexOf(+o)>-1||H[o]&&t.mods.indexOf(+o)===-1)&&(i=!1);(t.mods.length===0&&!H[16]&&!H[18]&&!H[17]&&!H[91]||i||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(C),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}}function gr(e, t){var r=j["*"],n=e.keyCode||e.which||e.charCode;if(ne.filter.call(this,e)){if((n===93||n===224)&&(n=91),C.indexOf(n)===-1&&n!==229&&C.push(n),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(y){var b=kt[y];e[y]&&C.indexOf(b)===-1?C.push(b):!e[y]&&C.indexOf(b)>-1?C.splice(C.indexOf(b),1):y==="metaKey"&&e[y]&&C.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(C=C.slice(C.indexOf(b))))}),n in H){H[n]=!0;for(var i in ae)ae[i]===n&&(ne[i]=!0);if(!r)return}for(var o in H)Object.prototype.hasOwnProperty.call(H,o)&&(H[o]=e[kt[o]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(C.indexOf(17)===-1&&C.push(17),C.indexOf(18)===-1&&C.push(18),H[17]=!0,H[18]=!0);var s=qe();if(r)for(var c=0; c<r.length; c++)r[c].scope===s&&(e.type==="keydown"&&r[c].keydown||e.type==="keyup"&&r[c].keyup)&&hr(e,r[c],s,t);if(n in j){for(var u=0; u<j[n].length; u++)if((e.type==="keydown"&&j[n][u].keydown||e.type==="keyup"&&j[n][u].keyup)&&j[n][u].key){for(var p=j[n][u],l=p.splitKey,g=p.key.split(l),w=[],m=0; m<g.length; m++)w.push(Ge(g[m]));w.sort().join("")===C.sort().join("")&&hr(e,p,s,t)}}}}function Gi(e){return $r.indexOf(e)>-1}function ne(e, t, r){C=[];var n=Kr(e),i=[],o="all",s=document,c=0,u=!1,p=!0,l="+",g=!1;for(r===void 0&&typeof t=="function"&&(r=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(o=t.scope),t.element&&(s=t.element),t.keyup&&(u=t.keyup),t.keydown!==void 0&&(p=t.keydown),t.capture!==void 0&&(g=t.capture),typeof t.splitKey=="string"&&(l=t.splitKey)),typeof t=="string"&&(o=t); c<n.length; c++)e=n[c].split(l),i=[],e.length>1&&(i=_r(ae,e)),e=e[e.length-1],e=e==="*"?"*":Ge(e),e in j||(j[e]=[]),j[e].push({keyup:u,keydown:p,scope:o,mods:i,shortcut:n[c],method:r,key:n[c],splitKey:l,element:s});typeof s<"u"&&!Gi(s)&&window&&($r.push(s),Et(s,"keydown",function(w){gr(w,s)},g),mr||(mr=!0,Et(window,"focus",function(){C=[]},g)),Et(s,"keyup",function(w){gr(w,s),Xi(w)},g))}function Ji(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(j).forEach(function(r){var n=j[r].filter(function(i){return i.scope===t&&i.shortcut===e});n.forEach(function(i){i&&i.method&&i.method()})})}var Tt={getPressedKeyString:Wi,setScope:Vr,getScope:qe,deleteScope:zi,getPressedKeyCodes:Ni,getAllKeyCodes:Ui,isPressed:qi,filter:Fi,trigger:Ji,unbind:Yi,keyMap:Fe,modifier:ae,modifierMap:kt};for(var Dt in Tt)Object.prototype.hasOwnProperty.call(Tt,Dt)&&(ne[Dt]=Tt[Dt]);if(typeof window<"u"){var Qi=window.hotkeys;ne.noConflict=function(e){return e&&window.hotkeys===ne&&(window.hotkeys=Qi),ne},window.hotkeys=ne}const ro=(e, {title:t,shortcut:r})=>{let n;const i=Ye(e,{arrow:!1,theme:"tooltip",animation:"fade",onShow(o){n??=new Hi({target:o.popper.querySelector(".tippy-content"),props:{title:t,shortcut:r}})},onHidden(){n?.$destroy(),n=void 0}});return r&&ne(r,function(o){o.preventDefault(),e.click()}),{destroy(){i.destroy(),ne.unbind(r)}}};export{ro as a,Ye as t};