@gyramais/gyra-design 0.2.59 → 0.2.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Guide/GuideChecklist.d.ts +8 -1
- package/dist/components/Guide/GuideLauncher.d.ts +4 -2
- package/dist/components/Guide/GuideNewsList.d.ts +1 -1
- package/dist/components/Guide/SiderList.d.ts +6 -1
- package/dist/components/Guide/index.js +1 -1
- package/dist/components/Guide/index.js.map +1 -1
- package/dist/emails/balance-sheet-finalized/components/Guide/GuideChecklist.d.ts +8 -1
- package/dist/emails/balance-sheet-finalized/components/Guide/GuideLauncher.d.ts +4 -2
- package/dist/emails/balance-sheet-finalized/components/Guide/GuideNewsList.d.ts +1 -1
- package/dist/emails/balance-sheet-finalized/components/Guide/SiderList.d.ts +6 -1
- package/dist/emails/email/components/Guide/GuideChecklist.d.ts +8 -1
- package/dist/emails/email/components/Guide/GuideLauncher.d.ts +4 -2
- package/dist/emails/email/components/Guide/GuideNewsList.d.ts +1 -1
- package/dist/emails/email/components/Guide/SiderList.d.ts +6 -1
- package/dist/index.css +162 -120
- package/package.json +1 -1
|
@@ -28,6 +28,13 @@ type GuideChecklistProps = {
|
|
|
28
28
|
loading?: boolean;
|
|
29
29
|
/** Texto quando nao ha passo para mostrar. */
|
|
30
30
|
emptyText?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Chaves que devem tocar a animacao de concluido uma vez ao montar. Serve
|
|
33
|
+
* para o passo concluido com o cartao fechado (ex. a pessoa clicou, foi
|
|
34
|
+
* para a tela e voltou): na proxima abertura o check ainda entra animado.
|
|
35
|
+
* So anima as chaves que ja chegam com `done`.
|
|
36
|
+
*/
|
|
37
|
+
animateKeys?: string[];
|
|
31
38
|
};
|
|
32
39
|
/**
|
|
33
40
|
* Cartao "Primeiros passos" do rodape do menu lateral.
|
|
@@ -37,6 +44,6 @@ type GuideChecklistProps = {
|
|
|
37
44
|
* concluido, o check entra com uma animacao curta e o leitor de tela anuncia
|
|
38
45
|
* o novo progresso. Sem animacao sob `prefers-reduced-motion`.
|
|
39
46
|
*/
|
|
40
|
-
declare const GuideChecklist: ({ id, className, title, subtitle, items, onMinimize, menu, footer, loading, emptyText, }: GuideChecklistProps) => React.JSX.Element;
|
|
47
|
+
declare const GuideChecklist: ({ id, className, title, subtitle, items, onMinimize, menu, footer, loading, emptyText, animateKeys, }: GuideChecklistProps) => React.JSX.Element;
|
|
41
48
|
export { GuideChecklist };
|
|
42
49
|
export type { GuideChecklistProps, GuideChecklistItem };
|
|
@@ -11,7 +11,8 @@ type GuideLauncherProps = {
|
|
|
11
11
|
done: number;
|
|
12
12
|
total: number;
|
|
13
13
|
};
|
|
14
|
-
/** Contador em badge (ex. novidades nao vistas). Zero esconde o badge.
|
|
14
|
+
/** Contador em badge (ex. novidades nao vistas). Zero esconde o badge.
|
|
15
|
+
Recolhido, vira so um ponto; o numero vai para o Tooltip. */
|
|
15
16
|
count?: number;
|
|
16
17
|
/** Menu lateral recolhido: so o icone, com Tooltip e ponto/contador. */
|
|
17
18
|
collapsed?: boolean;
|
|
@@ -36,7 +37,8 @@ declare const GuideLauncher: React.ForwardRefExoticComponent<{
|
|
|
36
37
|
done: number;
|
|
37
38
|
total: number;
|
|
38
39
|
};
|
|
39
|
-
/** Contador em badge (ex. novidades nao vistas). Zero esconde o badge.
|
|
40
|
+
/** Contador em badge (ex. novidades nao vistas). Zero esconde o badge.
|
|
41
|
+
Recolhido, vira so um ponto; o numero vai para o Tooltip. */
|
|
40
42
|
count?: number;
|
|
41
43
|
/** Menu lateral recolhido: so o icone, com Tooltip e ponto/contador. */
|
|
42
44
|
collapsed?: boolean;
|
|
@@ -16,7 +16,7 @@ type GuideNewsListProps = {
|
|
|
16
16
|
className?: string;
|
|
17
17
|
title: string;
|
|
18
18
|
items: GuideNewsItem[];
|
|
19
|
-
/** Mostra "Marcar como lidas" quando ha novidade nao vista. */
|
|
19
|
+
/** Mostra "Marcar todas como lidas" quando ha novidade nao vista. */
|
|
20
20
|
onMarkAllRead?: () => void;
|
|
21
21
|
emptyText?: string;
|
|
22
22
|
/** Placeholder no formato da lista enquanto as novidades carregam. */
|
|
@@ -25,6 +25,11 @@ type SiderListProps = {
|
|
|
25
25
|
};
|
|
26
26
|
/** Menu recolhido: mostra so o botao de `action`, com Tooltip. */
|
|
27
27
|
collapsed?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Icone do botao no menu recolhido (ex. balao de conversa). Sem ele, usa o
|
|
30
|
+
* `action.icon`, que costuma ser um "+" e nao diz o que o bloco e.
|
|
31
|
+
*/
|
|
32
|
+
collapsedIcon?: React.ReactNode;
|
|
28
33
|
/** Linhas de placeholder enquanto a lista carrega. */
|
|
29
34
|
loading?: boolean;
|
|
30
35
|
/**
|
|
@@ -37,6 +42,6 @@ type SiderListProps = {
|
|
|
37
42
|
* Bloco de lista curta no menu lateral (ex. "Conversas com a GYRA+"):
|
|
38
43
|
* rotulo de grupo, acao no cabecalho, ate poucos itens e um "ver todos".
|
|
39
44
|
*/
|
|
40
|
-
declare const SiderList: ({ id, className, title, action, items, more, collapsed, loading, emptyText, }: SiderListProps) => React.JSX.Element | null;
|
|
45
|
+
declare const SiderList: ({ id, className, title, action, items, more, collapsed, collapsedIcon, loading, emptyText, }: SiderListProps) => React.JSX.Element | null;
|
|
41
46
|
export { SiderList };
|
|
42
47
|
export type { SiderListProps, SiderListItem };
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
Copyright (c) 2018 Jed Watson.
|
|
4
4
|
Licensed under the MIT License (MIT), see
|
|
5
5
|
http://jedwatson.github.io/classnames
|
|
6
|
-
*/g=h,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];o&&(e=r(e,n(o)))}return e}function n(n){if("string"==typeof n||"number"==typeof n)return n;if("object"!=typeof n)return"";if(Array.isArray(n))return t.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var o="";for(var i in n)e.call(n,i)&&n[i]&&(o=r(o,i));return o}function r(e,t){return t?e?e+" "+t:e+t:e}g.exports?(t.default=t,g.exports=t):window.classNames=t}();var y=p(h.exports);function b(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function v(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function w(...e){return t=>{let n=!1;const r=e.map(e=>{const r=v(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():v(e[t],null)}}}}function x(...t){return e.useCallback(w(...t),t)}function E(t,n=[]){let r=[];const o=()=>{const n=r.map(t=>e.createContext(t));return function(r){const o=r?.[t]||n;return e.useMemo(()=>({[`__scope${t}`]:{...r,[t]:o}}),[r,o])}};return o.scopeName=t,[function(n,o){const i=e.createContext(o),a=r.length;r=[...r,o];const s=n=>{const{scope:r,children:o,...s}=n,l=r?.[t]?.[a]||i,c=e.useMemo(()=>s,Object.values(s));return d(l.Provider,{value:c,children:o})};return s.displayName=n+"Provider",[s,function(r,s){const l=s?.[t]?.[a]||i,c=e.useContext(l);if(c)return c;if(void 0!==o)return o;throw new Error(`\`${r}\` must be used within \`${n}\``)}]},k(o,...n)]}function k(...t){const n=t[0];if(1===t.length)return n;const r=()=>{const r=t.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(t){const o=r.reduce((e,{useScope:n,scopeName:r})=>({...e,...n(t)[`__scope${r}`]}),{});return e.useMemo(()=>({[`__scope${n.scopeName}`]:o}),[o])}};return r.scopeName=n.scopeName,r}function N(t){const n=e.forwardRef((t,n)=>{const{children:r,...o}=t;if(e.isValidElement(r)){const t=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(r),i=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(o,r.props);return r.type!==e.Fragment&&(i.ref=n?w(n,t):t),e.cloneElement(r,i)}return e.Children.count(r)>1?e.Children.only(null):null});return n.displayName=`${t}.SlotClone`,n}var C=Symbol("radix.slottable");function R(t){return e.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===C}var P=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((t,n)=>{const r=function(t){const n=N(t),r=e.forwardRef((t,r)=>{const{children:o,...i}=t,a=e.Children.toArray(o),s=a.find(R);if(s){const t=s.props.children,o=a.map(n=>n===s?e.Children.count(t)>1?e.Children.only(null):e.isValidElement(t)?t.props.children:null:n);return d(n,{...i,ref:r,children:e.isValidElement(t)?e.cloneElement(t,void 0,o):null})}return d(n,{...i,ref:r,children:o})});return r.displayName=`${t}.Slot`,r}(`Primitive.${n}`),o=e.forwardRef((e,t)=>{const{asChild:o,...i}=e,a=o?r:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),d(a,{...i,ref:t})});return o.displayName=`Primitive.${n}`,{...t,[n]:o}},{});function T(t){const n=e.useRef(t);return e.useEffect(()=>{n.current=t}),e.useMemo(()=>(...e)=>n.current?.(...e),[])}var O,S="dismissableLayer.update",D="dismissableLayer.pointerDownOutside",A="dismissableLayer.focusOutside",L=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),z=e.forwardRef((t,n)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...c}=t,u=e.useContext(L),[m,f]=e.useState(null),p=m?.ownerDocument??globalThis?.document,[,g]=e.useState({}),h=x(n,e=>f(e)),y=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),w=y.indexOf(v),E=m?y.indexOf(m):-1,k=u.layersWithOutsidePointerEventsDisabled.size>0,N=E>=w,C=function(t,n=globalThis?.document){const r=T(t),o=e.useRef(!1),i=e.useRef(()=>{});return e.useEffect(()=>{const e=e=>{if(e.target&&!o.current){let t=function(){$(D,r,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=t,n.addEventListener("click",i.current,{once:!0})):t()}else n.removeEventListener("click",i.current);o.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}},[n,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{const t=e.target,n=[...u.branches].some(e=>e.contains(t));N&&!n&&(i?.(e),s?.(e),e.defaultPrevented||l?.())},p),R=function(t,n=globalThis?.document){const r=T(t),o=e.useRef(!1);return e.useEffect(()=>{const e=e=>{if(e.target&&!o.current){$(A,r,{originalEvent:e},{discrete:!1})}};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{const t=e.target;[...u.branches].some(e=>e.contains(t))||(a?.(e),s?.(e),e.defaultPrevented||l?.())},p);return function(t,n=globalThis?.document){const r=T(t);e.useEffect(()=>{const e=e=>{"Escape"===e.key&&r(e)};return n.addEventListener("keydown",e,{capture:!0}),()=>n.removeEventListener("keydown",e,{capture:!0})},[r,n])}(e=>{E===u.layers.size-1&&(o?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))},p),e.useEffect(()=>{if(m)return r&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(O=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(m)),u.layers.add(m),M(),()=>{r&&1===u.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=O)}},[m,p,r,u]),e.useEffect(()=>()=>{m&&(u.layers.delete(m),u.layersWithOutsidePointerEventsDisabled.delete(m),M())},[m,u]),e.useEffect(()=>{const e=()=>g({});return document.addEventListener(S,e),()=>document.removeEventListener(S,e)},[]),d(P.div,{...c,ref:h,style:{pointerEvents:k?N?"auto":"none":void 0,...t.style},onFocusCapture:b(t.onFocusCapture,R.onFocusCapture),onBlurCapture:b(t.onBlurCapture,R.onBlurCapture),onPointerDownCapture:b(t.onPointerDownCapture,C.onPointerDownCapture)})});z.displayName="DismissableLayer";function M(){const e=new CustomEvent(S);document.dispatchEvent(e)}function $(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?function(e,t){e&&f.flushSync(()=>e.dispatchEvent(t))}(o,i):o.dispatchEvent(i)}e.forwardRef((t,n)=>{const r=e.useContext(L),o=e.useRef(null),i=x(n,o);return e.useEffect(()=>{const e=o.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),d(P.div,{...t,ref:i})}).displayName="DismissableLayerBranch";var W=globalThis?.document?e.useLayoutEffect:()=>{},_=e[" useId ".trim().toString()]||(()=>{}),I=0;const j=["top","right","bottom","left"],F=Math.min,H=Math.max,B=Math.round,G=Math.floor,V=e=>({x:e,y:e}),U={left:"right",right:"left",bottom:"top",top:"bottom"};function q(e,t,n){return H(e,F(t,n))}function Y(e,t){return"function"==typeof e?e(t):e}function X(e){return e.split("-")[0]}function K(e){return e.split("-")[1]}function Z(e){return"x"===e?"y":"x"}function J(e){return"y"===e?"height":"width"}function Q(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function ee(e){return Z(Q(e))}function te(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const ne=["left","right"],re=["right","left"],oe=["top","bottom"],ie=["bottom","top"];function ae(e,t,n,r){const o=K(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?re:ne:t?ne:re;case"left":case"right":return t?oe:ie;default:return[]}}(X(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(te)))),i}function se(e){const t=X(e);return U[t]+e.slice(t.length)}function le(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function ce(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function de(e,t,n){let{reference:r,floating:o}=e;const i=Q(t),a=ee(t),s=J(a),l=X(t),c="y"===i,d=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,m=r[s]/2-o[s]/2;let f;switch(l){case"top":f={x:d,y:r.y-o.height};break;case"bottom":f={x:d,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:u};break;case"left":f={x:r.x-o.width,y:u};break;default:f={x:r.x,y:r.y}}switch(K(t)){case"start":f[a]-=m*(n&&c?-1:1);break;case"end":f[a]+=m*(n&&c?-1:1)}return f}async function ue(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:m=!1,padding:f=0}=Y(t,e),p=le(f),g=s[m?"floating"===u?"reference":"floating":u],h=ce(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(g)))||n?g:g.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:l})),y="floating"===u?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),v=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},w=ce(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:b,strategy:l}):y);return{top:(h.top-w.top+p.top)/v.y,bottom:(w.bottom-h.bottom+p.bottom)/v.y,left:(h.left-w.left+p.left)/v.x,right:(w.right-h.right+p.right)/v.x}}function me(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function fe(e){return j.some(t=>e[t]>=0)}const pe=new Set(["left","top"]);function ge(){return"undefined"!=typeof window}function he(e){return ve(e)?(e.nodeName||"").toLowerCase():"#document"}function ye(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function be(e){var t;return null==(t=(ve(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ve(e){return!!ge()&&(e instanceof Node||e instanceof ye(e).Node)}function we(e){return!!ge()&&(e instanceof Element||e instanceof ye(e).Element)}function xe(e){return!!ge()&&(e instanceof HTMLElement||e instanceof ye(e).HTMLElement)}function Ee(e){return!(!ge()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof ye(e).ShadowRoot)}function ke(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Le(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function Ne(e){return/^(table|td|th)$/.test(he(e))}function Ce(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}const Re=/transform|translate|scale|rotate|perspective|filter/,Pe=/paint|layout|strict|content/,Te=e=>!!e&&"none"!==e;let Oe;function Se(e){const t=we(e)?Le(e):e;return Te(t.transform)||Te(t.translate)||Te(t.scale)||Te(t.rotate)||Te(t.perspective)||!De()&&(Te(t.backdropFilter)||Te(t.filter))||Re.test(t.willChange||"")||Pe.test(t.contain||"")}function De(){return null==Oe&&(Oe="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Oe}function Ae(e){return/^(html|body|#document)$/.test(he(e))}function Le(e){return ye(e).getComputedStyle(e)}function ze(e){return we(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Me(e){if("html"===he(e))return e;const t=e.assignedSlot||e.parentNode||Ee(e)&&e.host||be(e);return Ee(t)?t.host:t}function $e(e){const t=Me(e);return Ae(t)?e.ownerDocument?e.ownerDocument.body:e.body:xe(t)&&ke(t)?t:$e(t)}function We(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=$e(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=ye(o);if(i){const e=_e(a);return t.concat(a,a.visualViewport||[],ke(o)?o:[],e&&n?We(e):[])}return t.concat(o,We(o,[],n))}function _e(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ie(e){const t=Le(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=xe(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=B(n)!==i||B(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function je(e){return we(e)?e:e.contextElement}function Fe(e){const t=je(e);if(!xe(t))return V(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Ie(t);let a=(i?B(n.width):n.width)/r,s=(i?B(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const He=V(0);function Be(e){const t=ye(e);return De()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:He}function Ge(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=je(e);let a=V(1);t&&(r?we(r)&&(a=Fe(r)):a=Fe(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==ye(e))&&t}(i,n,r)?Be(i):V(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,d=o.width/a.x,u=o.height/a.y;if(i){const e=ye(i),t=r&&we(r)?ye(r):r;let n=e,o=_e(n);for(;o&&r&&t!==n;){const e=Fe(o),t=o.getBoundingClientRect(),r=Le(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,d*=e.x,u*=e.y,l+=i,c+=a,n=ye(o),o=_e(n)}}return ce({width:d,height:u,x:l,y:c})}function Ve(e,t){const n=ze(e).scrollLeft;return t?t.left+n:Ge(be(e)).left+n}function Ue(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Ve(e,n),y:n.top+t.scrollTop}}function qe(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=ye(e),r=be(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=De();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}const c=Ve(r);if(c<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,a=Math.abs(r.clientWidth-t.clientWidth-o);a<=25&&(i-=a)}else c<=25&&(i+=c);return{width:i,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=be(e),n=ze(e),r=e.ownerDocument.body,o=H(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=H(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Ve(e);const s=-n.scrollTop;return"rtl"===Le(r).direction&&(a+=H(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(be(e));else if(we(t))r=function(e,t){const n=Ge(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=xe(e)?Fe(e):V(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Be(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ce(r)}function Ye(e,t){const n=Me(e);return!(n===t||!we(n)||Ae(n))&&("fixed"===Le(n).position||Ye(n,t))}function Xe(e,t,n){const r=xe(t),o=be(t),i="fixed"===n,a=Ge(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=V(0);function c(){l.x=Ve(o)}if(r||!r&&!i)if(("body"!==he(t)||ke(o))&&(s=ze(t)),r){const e=Ge(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&c();i&&!r&&o&&c();const d=!o||r||i?V(0):Ue(o,s);return{x:a.left+s.scrollLeft-l.x-d.x,y:a.top+s.scrollTop-l.y-d.y,width:a.width,height:a.height}}function Ke(e){return"static"===Le(e).position}function Ze(e,t){if(!xe(e)||"fixed"===Le(e).position)return null;if(t)return t(e);let n=e.offsetParent;return be(e)===n&&(n=n.ownerDocument.body),n}function Je(e,t){const n=ye(e);if(Ce(e))return n;if(!xe(e)){let t=Me(e);for(;t&&!Ae(t);){if(we(t)&&!Ke(t))return t;t=Me(t)}return n}let r=Ze(e,t);for(;r&&Ne(r)&&Ke(r);)r=Ze(r,t);return r&&Ae(r)&&Ke(r)&&!Se(r)?n:r||function(e){let t=Me(e);for(;xe(t)&&!Ae(t);){if(Se(t))return t;if(Ce(t))return null;t=Me(t)}return null}(e)||n}const Qe={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=be(r),s=!!t&&Ce(t.floating);if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},c=V(1);const d=V(0),u=xe(r);if((u||!u&&!i)&&(("body"!==he(r)||ke(a))&&(l=ze(r)),u)){const e=Ge(r);c=Fe(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}const m=!a||u||i?V(0):Ue(a,l);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x+m.x,y:n.y*c.y-l.scrollTop*c.y+d.y+m.y}},getDocumentElement:be,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?Ce(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=We(e,[],!1).filter(e=>we(e)&&"body"!==he(e)),o=null;const i="fixed"===Le(e).position;let a=i?Me(e):e;for(;we(a)&&!Ae(a);){const t=Le(a),n=Se(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||ke(a)&&!n&&Ye(e,a))?r=r.filter(e=>e!==a):o=t,a=Me(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=qe(t,i[0],o);let s=a.top,l=a.right,c=a.bottom,d=a.left;for(let e=1;e<i.length;e++){const n=qe(t,i[e],o);s=H(n.top,s),l=F(n.right,l),c=F(n.bottom,c),d=H(n.left,d)}return{width:l-d,height:c-s,x:d,y:s}},getOffsetParent:Je,getElementRects:async function(e){const t=this.getOffsetParent||Je,n=this.getDimensions,r=await n(e.floating);return{reference:Xe(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Ie(e);return{width:t,height:n}},getScale:Fe,isElement:we,isRTL:function(e){return"rtl"===Le(e).direction}};function et(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function tt(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=je(e),d=o||i?[...c?We(c):[],...t?We(t):[]]:[];d.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});const u=c&&s?function(e,t){let n,r=null;const o=be(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),{left:d,top:u,width:m,height:f}=c;if(s||t(),!m||!f)return;const p={rootMargin:-G(u)+"px "+-G(o.clientWidth-(d+m))+"px "+-G(o.clientHeight-(u+f))+"px "+-G(d)+"px",threshold:H(0,F(1,l))||1};let g=!0;function h(t){const r=t[0].intersectionRatio;if(r!==l){if(!g)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||et(c,e.getBoundingClientRect())||a(),g=!1}try{r=new IntersectionObserver(h,{...p,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(h,p)}r.observe(e)}(!0),i}(c,n):null;let m,f=-1,p=null;a&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;null==(e=p)||e.observe(t)})),n()}),c&&!l&&p.observe(c),t&&p.observe(t));let g=l?Ge(e):null;return l&&function t(){const r=Ge(e);g&&!et(g,r)&&n();g=r,m=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==u||u(),null==(e=p)||e.disconnect(),p=null,l&&cancelAnimationFrame(m)}}const nt=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=X(n),s=K(n),l="y"===Q(n),c=pe.has(a)?-1:1,d=i&&l?-1:1,u=Y(t,e);let{mainAxis:m,crossAxis:f,alignmentAxis:p}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return s&&"number"==typeof p&&(f="end"===s?-1*p:p),l?{x:f*d,y:m*c}:{x:m*c,y:f*d}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},rt=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:i}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=Y(e,t),d={x:n,y:r},u=await i.detectOverflow(t,c),m=Q(X(o)),f=Z(m);let p=d[f],g=d[m];if(a){const e="y"===f?"bottom":"right";p=q(p+u["y"===f?"top":"left"],p,p-u[e])}if(s){const e="y"===m?"bottom":"right";g=q(g+u["y"===m?"top":"left"],g,g-u[e])}const h=l.fn({...t,[f]:p,[m]:g});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[f]:a,[m]:s}}}}}},ot=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:m,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:g=!0,...h}=Y(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const y=X(o),b=Q(s),v=X(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=m||(v||!g?[se(s)]:function(e){const t=se(e);return[te(e),t,te(t)]}(s)),E="none"!==p;!m&&E&&x.push(...ae(s,g,p,w));const k=[s,...x],N=await l.detectOverflow(t,h),C=[];let R=(null==(r=i.flip)?void 0:r.overflows)||[];if(d&&C.push(N[y]),u){const e=function(e,t,n){void 0===n&&(n=!1);const r=K(e),o=ee(e),i=J(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=se(a)),[a,se(a)]}(o,a,w);C.push(N[e[0]],N[e[1]])}if(R=[...R,{placement:o,overflows:C}],!C.every(e=>e<=0)){var P,T;const e=((null==(P=i.flip)?void 0:P.index)||0)+1,t=k[e];if(t){if(!("alignment"===u&&b!==Q(t))||R.every(e=>Q(e.placement)!==b||e.overflows[0]>0))return{data:{index:e,overflows:R},reset:{placement:t}}}let n=null==(T=R.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:T.placement;if(!n)switch(f){case"bestFit":{var O;const e=null==(O=R.filter(e=>{if(E){const t=Q(e.placement);return t===b||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:O[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},it=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:a,elements:s}=t,{apply:l=()=>{},...c}=Y(e,t),d=await a.detectOverflow(t,c),u=X(o),m=K(o),f="y"===Q(o),{width:p,height:g}=i.floating;let h,y;"top"===u||"bottom"===u?(h=u,y=m===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(y=u,h="end"===m?"top":"bottom");const b=g-d.top-d.bottom,v=p-d.left-d.right,w=F(g-d[h],b),x=F(p-d[y],v),E=!t.middlewareData.shift;let k=w,N=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(N=v),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(k=b),E&&!m){const e=H(d.left,0),t=H(d.right,0),n=H(d.top,0),r=H(d.bottom,0);f?N=p-2*(0!==e||0!==t?e+t:H(d.left,d.right)):k=g-2*(0!==n||0!==r?n+r:H(d.top,d.bottom))}await l({...t,availableWidth:N,availableHeight:k});const C=await a.getDimensions(s.floating);return p!==C.width||g!==C.height?{reset:{rects:!0}}:{}}}},at=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...i}=Y(e,t);switch(o){case"referenceHidden":{const e=me(await r.detectOverflow(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:fe(e)}}}case"escaped":{const e=me(await r.detectOverflow(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:fe(e)}}}default:return{}}}}},st=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:d=0}=Y(e,t)||{};if(null==c)return{};const u=le(d),m={x:n,y:r},f=ee(o),p=J(f),g=await a.getDimensions(c),h="y"===f,y=h?"top":"left",b=h?"bottom":"right",v=h?"clientHeight":"clientWidth",w=i.reference[p]+i.reference[f]-m[f]-i.floating[p],x=m[f]-i.reference[f],E=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let k=E?E[v]:0;k&&await(null==a.isElement?void 0:a.isElement(E))||(k=s.floating[v]||i.floating[p]);const N=w/2-x/2,C=k/2-g[p]/2-1,R=F(u[y],C),P=F(u[b],C),T=R,O=k-g[p]-P,S=k/2-g[p]/2+N,D=q(T,S,O),A=!l.arrow&&null!=K(o)&&S!==D&&i.reference[p]/2-(S<T?R:P)-g[p]/2<0,L=A?S<T?S-T:S-O:0;return{[f]:m[f]+L,data:{[f]:D,centerOffset:S-D-L,...A&&{alignmentOffset:L}},reset:A}}}),lt=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=Y(e,t),d={x:n,y:r},u=Q(o),m=Z(u);let f=d[m],p=d[u];const g=Y(s,t),h="number"==typeof g?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const e="y"===m?"height":"width",t=i.reference[m]-i.floating[e]+h.mainAxis,n=i.reference[m]+i.reference[e]-h.mainAxis;f<t?f=t:f>n&&(f=n)}if(c){var y,b;const e="y"===m?"width":"height",t=pe.has(X(o)),n=i.reference[u]-i.floating[e]+(t&&(null==(y=a.offset)?void 0:y[u])||0)+(t?0:h.crossAxis),r=i.reference[u]+i.reference[e]+(t?0:(null==(b=a.offset)?void 0:b[u])||0)-(t?h.crossAxis:0);p<n?p=n:p>r&&(p=r)}return{[m]:f,[u]:p}}}},ct=(e,t,n)=>{const r=new Map,o={platform:Qe,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=a.detectOverflow?a:{...a,detectOverflow:ue},l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:u}=de(c,r,l),m=r,f=0;const p={};for(let n=0;n<i.length;n++){const g=i[n];if(!g)continue;const{name:h,fn:y}=g,{x:b,y:v,data:w,reset:x}=await y({x:d,y:u,initialPlacement:r,placement:m,strategy:o,middlewareData:p,rects:c,platform:s,elements:{reference:e,floating:t}});d=null!=b?b:d,u=null!=v?v:u,p[h]={...p[h],...w},x&&f<50&&(f++,"object"==typeof x&&(x.placement&&(m=x.placement),x.rects&&(c=!0===x.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):x.rects),({x:d,y:u}=de(c,m,l))),n=-1)}return{x:d,y:u,placement:m,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})};var dt="undefined"!=typeof document?n:function(){};function ut(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!ut(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!ut(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function mt(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ft(e,t){const n=mt(e);return Math.round(t*n)/n}function pt(t){const n=e.useRef(t);return dt(()=>{n.current=t}),n}const gt=(e,t)=>{const n=nt(e);return{name:n.name,fn:n.fn,options:[e,t]}},ht=(e,t)=>{const n=rt(e);return{name:n.name,fn:n.fn,options:[e,t]}},yt=(e,t)=>{const n=ot(e);return{name:n.name,fn:n.fn,options:[e,t]}},bt=(e,t)=>{const n=it(e);return{name:n.name,fn:n.fn,options:[e,t]}},vt=(e,t)=>{const n=at(e);return{name:n.name,fn:n.fn,options:[e,t]}},wt=(e,t)=>{const n=(e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?st({element:n.current,padding:r}).fn(t):{}:n?st({element:n,padding:r}).fn(t):{};var o}}))(e);return{name:n.name,fn:n.fn,options:[e,t]}};var xt=e.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return d(P.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:d("polygon",{points:"0,0 30,0 15,10"})})});xt.displayName="Arrow";var Et=xt;var kt="Popper",[Nt,Ct]=E(kt),[Rt,Pt]=Nt(kt),Tt=t=>{const{__scopePopper:n,children:r}=t,[o,i]=e.useState(null);return d(Rt,{scope:n,anchor:o,onAnchorChange:i,children:r})};Tt.displayName=kt;var Ot="PopperAnchor",St=e.forwardRef((t,n)=>{const{__scopePopper:r,virtualRef:o,...i}=t,a=Pt(Ot,r),s=e.useRef(null),l=x(n,s),c=e.useRef(null);return e.useEffect(()=>{const e=c.current;c.current=o?.current||s.current,e!==c.current&&a.onAnchorChange(c.current)}),o?null:d(P.div,{...i,ref:l})});St.displayName=Ot;var Dt="PopperContent",[At,Lt]=Nt(Dt),zt=e.forwardRef((t,n)=>{const{__scopePopper:r,side:o="bottom",sideOffset:i=0,align:a="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:m=0,sticky:p="partial",hideWhenDetached:g=!1,updatePositionStrategy:h="optimized",onPlaced:y,...b}=t,v=Pt(Dt,r),[w,E]=e.useState(null),k=x(n,e=>E(e)),[N,C]=e.useState(null),R=function(t){const[n,r]=e.useState(void 0);return W(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const e=new ResizeObserver(e=>{if(!Array.isArray(e))return;if(!e.length)return;const n=e[0];let o,i;if("borderBoxSize"in n){const e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=t.offsetWidth,i=t.offsetHeight;r({width:o,height:i})});return e.observe(t,{box:"border-box"}),()=>e.unobserve(t)}r(void 0)},[t]),n}(N),O=R?.width??0,S=R?.height??0,D=o+("center"!==a?"-"+a:""),A="number"==typeof m?m:{top:0,right:0,bottom:0,left:0,...m},L=Array.isArray(u)?u:[u],z=L.length>0,M={padding:A,boundary:L.filter(_t),altBoundary:z},{refs:$,floatingStyles:_,placement:I,isPositioned:j,middlewareData:F}=function(t){void 0===t&&(t={});const{placement:n="bottom",strategy:r="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:c,open:d}=t,[u,m]=e.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[p,g]=e.useState(o);ut(p,o)||g(o);const[h,y]=e.useState(null),[b,v]=e.useState(null),w=e.useCallback(e=>{e!==N.current&&(N.current=e,y(e))},[]),x=e.useCallback(e=>{e!==C.current&&(C.current=e,v(e))},[]),E=a||h,k=s||b,N=e.useRef(null),C=e.useRef(null),R=e.useRef(u),P=null!=c,T=pt(c),O=pt(i),S=pt(d),D=e.useCallback(()=>{if(!N.current||!C.current)return;const e={placement:n,strategy:r,middleware:p};O.current&&(e.platform=O.current),ct(N.current,C.current,e).then(e=>{const t={...e,isPositioned:!1!==S.current};A.current&&!ut(R.current,t)&&(R.current=t,f.flushSync(()=>{m(t)}))})},[p,n,r,O,S]);dt(()=>{!1===d&&R.current.isPositioned&&(R.current.isPositioned=!1,m(e=>({...e,isPositioned:!1})))},[d]);const A=e.useRef(!1);dt(()=>(A.current=!0,()=>{A.current=!1}),[]),dt(()=>{if(E&&(N.current=E),k&&(C.current=k),E&&k){if(T.current)return T.current(E,k,D);D()}},[E,k,D,T,P]);const L=e.useMemo(()=>({reference:N,floating:C,setReference:w,setFloating:x}),[w,x]),z=e.useMemo(()=>({reference:E,floating:k}),[E,k]),M=e.useMemo(()=>{const e={position:r,left:0,top:0};if(!z.floating)return e;const t=ft(z.floating,u.x),n=ft(z.floating,u.y);return l?{...e,transform:"translate("+t+"px, "+n+"px)",...mt(z.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,l,z.floating,u.x,u.y]);return e.useMemo(()=>({...u,update:D,refs:L,elements:z,floatingStyles:M}),[u,D,L,z,M])}({strategy:"fixed",placement:D,whileElementsMounted:(...e)=>tt(...e,{animationFrame:"always"===h}),elements:{reference:v.anchor},middleware:[gt({mainAxis:i+S,alignmentAxis:s}),c&&ht({mainAxis:!0,crossAxis:!1,limiter:"partial"===p?{fn:lt(H).fn,options:[H,B]}:void 0,...M}),c&&yt({...M}),bt({...M,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),N&&wt({element:N,padding:l}),It({arrowWidth:O,arrowHeight:S}),g&&vt({strategy:"referenceHidden",...M})]});var H,B;const[G,V]=jt(I),U=T(y);W(()=>{j&&U?.()},[j,U]);const q=F.arrow?.x,Y=F.arrow?.y,X=0!==F.arrow?.centerOffset,[K,Z]=e.useState();return W(()=>{w&&Z(window.getComputedStyle(w).zIndex)},[w]),d("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{..._,transform:j?_.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:K,"--radix-popper-transform-origin":[F.transformOrigin?.x,F.transformOrigin?.y].join(" "),...F.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:d(At,{scope:r,placedSide:G,onArrowChange:C,arrowX:q,arrowY:Y,shouldHideArrow:X,children:d(P.div,{"data-side":G,"data-align":V,...b,ref:k,style:{...b.style,animation:j?void 0:"none"}})})})});zt.displayName=Dt;var Mt="PopperArrow",$t={top:"bottom",right:"left",bottom:"top",left:"right"},Wt=e.forwardRef(function(e,t){const{__scopePopper:n,...r}=e,o=Lt(Mt,n),i=$t[o.placedSide];return d("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:d(Et,{...r,ref:t,style:{...r.style,display:"block"}})})});function _t(e){return null!==e}Wt.displayName=Mt;var It=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,i=0!==o.arrow?.centerOffset,a=i?0:e.arrowWidth,s=i?0:e.arrowHeight,[l,c]=jt(n),d={start:"0%",center:"50%",end:"100%"}[c],u=(o.arrow?.x??0)+a/2,m=(o.arrow?.y??0)+s/2;let f="",p="";return"bottom"===l?(f=i?d:`${u}px`,p=-s+"px"):"top"===l?(f=i?d:`${u}px`,p=`${r.floating.height+s}px`):"right"===l?(f=-s+"px",p=i?d:`${m}px`):"left"===l&&(f=`${r.floating.width+s}px`,p=i?d:`${m}px`),{data:{x:f,y:p}}}});function jt(e){const[t,n="center"]=e.split("-");return[t,n]}var Ft=Tt,Ht=St,Bt=zt,Gt=Wt;var Vt=t=>{const{present:n,children:r}=t,o=function(t){const[n,r]=e.useState(),o=e.useRef(null),i=e.useRef(t),a=e.useRef("none"),s=t?"mounted":"unmounted",[l,c]=function(t,n){return e.useReducer((e,t)=>n[e][t]??e,t)}(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect(()=>{const e=Ut(o.current);a.current="mounted"===l?e:"none"},[l]),W(()=>{const e=o.current,n=i.current;if(n!==t){const r=a.current,o=Ut(e);if(t)c("MOUNT");else if("none"===o||"none"===e?.display)c("UNMOUNT");else{c(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}i.current=t}},[t,c]),W(()=>{if(n){let e;const t=n.ownerDocument.defaultView??window,r=r=>{const a=Ut(o.current).includes(CSS.escape(r.animationName));if(r.target===n&&a&&(c("ANIMATION_END"),!i.current)){const r=n.style.animationFillMode;n.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=r)})}},s=e=>{e.target===n&&(a.current=Ut(o.current))};return n.addEventListener("animationstart",s),n.addEventListener("animationcancel",r),n.addEventListener("animationend",r),()=>{t.clearTimeout(e),n.removeEventListener("animationstart",s),n.removeEventListener("animationcancel",r),n.removeEventListener("animationend",r)}}c("ANIMATION_END")},[n,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:e.useCallback(e=>{o.current=e?getComputedStyle(e):null,r(e)},[])}}(n),i="function"==typeof r?r({present:o.isPresent}):e.Children.only(r),a=x(o.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(i));return"function"==typeof r||o.isPresent?e.cloneElement(i,{ref:a}):null};function Ut(e){return e?.animationName||"none"}Vt.displayName="Presence";var qt=e[" useInsertionEffect ".trim().toString()]||W;function Yt({prop:t,defaultProp:n,onChange:r=()=>{},caller:o}){const[i,a,s]=function({defaultProp:t,onChange:n}){const[r,o]=e.useState(t),i=e.useRef(r),a=e.useRef(n);return qt(()=>{a.current=n},[n]),e.useEffect(()=>{i.current!==r&&(a.current?.(r),i.current=r)},[r,i]),[r,o,a]}({defaultProp:n,onChange:r}),l=void 0!==t,c=l?t:i;{const n=e.useRef(void 0!==t);e.useEffect(()=>{const e=n.current;if(e!==l){const t=e?"controlled":"uncontrolled",n=l?"controlled":"uncontrolled";console.warn(`${o} is changing from ${t} to ${n}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}n.current=l},[l,o])}const d=e.useCallback(e=>{if(l){const n=function(e){return"function"==typeof e}(e)?e(t):e;n!==t&&s.current?.(n)}else a(e)},[l,t,a,s]);return[c,d]}var Xt=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Kt=e.forwardRef((e,t)=>d(P.span,{...e,ref:t,style:{...Xt,...e.style}}));Kt.displayName="VisuallyHidden";var Zt=Kt,[Jt]=E("Tooltip",[Ct]),Qt=Ct(),en="TooltipProvider",tn=700,nn="tooltip.open",[rn,on]=Jt(en),an=t=>{const{__scopeTooltip:n,delayDuration:r=tn,skipDelayDuration:o=300,disableHoverableContent:i=!1,children:a}=t,s=e.useRef(!0),l=e.useRef(!1),c=e.useRef(0);return e.useEffect(()=>{const e=c.current;return()=>window.clearTimeout(e)},[]),d(rn,{scope:n,isOpenDelayedRef:s,delayDuration:r,onOpen:e.useCallback(()=>{window.clearTimeout(c.current),s.current=!1},[]),onClose:e.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.current=!0,o)},[o]),isPointerInTransitRef:l,onPointerInTransitChange:e.useCallback(e=>{l.current=e},[]),disableHoverableContent:i,children:a})};an.displayName=en;var sn="Tooltip",[ln,cn]=Jt(sn),dn=t=>{const{__scopeTooltip:n,children:r,open:o,defaultOpen:i,onOpenChange:a,disableHoverableContent:s,delayDuration:l}=t,c=on(sn,t.__scopeTooltip),u=Qt(n),[m,f]=e.useState(null),p=function(t){const[n,r]=e.useState(_());return W(()=>{r(e=>e??String(I++))},[t]),n?`radix-${n}`:""}(),g=e.useRef(0),h=s??c.disableHoverableContent,y=l??c.delayDuration,b=e.useRef(!1),[v,w]=Yt({prop:o,defaultProp:i??!1,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(nn))):c.onClose(),a?.(e)},caller:sn}),x=e.useMemo(()=>v?b.current?"delayed-open":"instant-open":"closed",[v]),E=e.useCallback(()=>{window.clearTimeout(g.current),g.current=0,b.current=!1,w(!0)},[w]),k=e.useCallback(()=>{window.clearTimeout(g.current),g.current=0,w(!1)},[w]),N=e.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{b.current=!0,w(!0),g.current=0},y)},[y,w]);return e.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),d(Ft,{...u,children:d(ln,{scope:n,contentId:p,open:v,stateAttribute:x,trigger:m,onTriggerChange:f,onTriggerEnter:e.useCallback(()=>{c.isOpenDelayedRef.current?N():E()},[c.isOpenDelayedRef,N,E]),onTriggerLeave:e.useCallback(()=>{h?k():(window.clearTimeout(g.current),g.current=0)},[k,h]),onOpen:E,onClose:k,disableHoverableContent:h,children:r})})};dn.displayName=sn;var un="TooltipTrigger",mn=e.forwardRef((t,n)=>{const{__scopeTooltip:r,...o}=t,i=cn(un,r),a=on(un,r),s=Qt(r),l=x(n,e.useRef(null),i.onTriggerChange),c=e.useRef(!1),u=e.useRef(!1),m=e.useCallback(()=>c.current=!1,[]);return e.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),d(Ht,{asChild:!0,...s,children:d(P.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...o,ref:l,onPointerMove:b(t.onPointerMove,e=>{"touch"!==e.pointerType&&(u.current||a.isPointerInTransitRef.current||(i.onTriggerEnter(),u.current=!0))}),onPointerLeave:b(t.onPointerLeave,()=>{i.onTriggerLeave(),u.current=!1}),onPointerDown:b(t.onPointerDown,()=>{i.open&&i.onClose(),c.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:b(t.onFocus,()=>{c.current||i.onOpen()}),onBlur:b(t.onBlur,i.onClose),onClick:b(t.onClick,i.onClose)})})});mn.displayName=un;var[fn,pn]=Jt("TooltipPortal",{forceMount:void 0}),gn="TooltipContent",hn=e.forwardRef((e,t)=>{const n=pn(gn,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,a=cn(gn,e.__scopeTooltip);return d(Vt,{present:r||a.open,children:a.disableHoverableContent?d(xn,{side:o,...i,ref:t}):d(yn,{side:o,...i,ref:t})})}),yn=e.forwardRef((t,n)=>{const r=cn(gn,t.__scopeTooltip),o=on(gn,t.__scopeTooltip),i=e.useRef(null),a=x(n,i),[s,l]=e.useState(null),{trigger:c,onClose:u}=r,m=i.current,{onPointerInTransitChange:f}=o,p=e.useCallback(()=>{l(null),f(!1)},[f]),g=e.useCallback((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,function(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}(r,n.getBoundingClientRect())),i=function(e){const t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0),function(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const r=e[n];for(;t.length>=2;){const e=t[t.length-1],n=t[t.length-2];if(!((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x)))break;t.pop()}t.push(r)}t.pop();const n=[];for(let t=e.length-1;t>=0;t--){const r=e[t];for(;n.length>=2;){const e=n[n.length-1],t=n[n.length-2];if(!((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x)))break;n.pop()}n.push(r)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...o,...function(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())]);l(i),f(!0)},[f]);return e.useEffect(()=>()=>p(),[p]),e.useEffect(()=>{if(c&&m){const e=e=>g(e,m),t=e=>g(e,c);return c.addEventListener("pointerleave",e),m.addEventListener("pointerleave",t),()=>{c.removeEventListener("pointerleave",e),m.removeEventListener("pointerleave",t)}}},[c,m,g,p]),e.useEffect(()=>{if(s){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||m?.contains(t),o=!function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const a=t[e],s=t[i],l=a.x,c=a.y,d=s.x,u=s.y;c>r!=u>r&&n<(d-l)*(r-c)/(u-c)+l&&(o=!o)}return o}(n,s);r?p():o&&(p(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[c,m,s,u,p]),d(xn,{...t,ref:a})}),[bn,vn]=Jt(sn,{isInside:!1}),wn=function(e){const t=({children:e})=>d(u,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=C,t}("TooltipContent"),xn=e.forwardRef((t,n)=>{const{__scopeTooltip:r,children:o,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:s,...l}=t,c=cn(gn,r),u=Qt(r),{onClose:f}=c;return e.useEffect(()=>(document.addEventListener(nn,f),()=>document.removeEventListener(nn,f)),[f]),e.useEffect(()=>{if(c.trigger){const e=e=>{const t=e.target;t?.contains(c.trigger)&&f()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[c.trigger,f]),d(z,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:f,children:m(Bt,{"data-state":c.stateAttribute,...u,...l,ref:n,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[d(wn,{children:o}),d(bn,{scope:r,isInside:!0,children:d(Zt,{id:c.contentId,role:"tooltip",children:i||o})})]})})});hn.displayName=gn;var En="TooltipArrow";e.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Qt(n);return vn(En,n).isInside?null:d(Gt,{...o,...r,ref:t})}).displayName=En;var kn=an,Nn=dn,Cn=mn,Rn=hn;function Pn(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Pn(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const Tn=e=>{const t=An(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),On(n,t)||Dn(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},On=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?On(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const i=e.join("-");return t.validators.find(({validator:e})=>e(i))?.classGroupId},Sn=/^\[(.+)\]$/,Dn=e=>{if(Sn.test(e)){const t=Sn.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},An=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return $n(Object.entries(e.classGroups),n).forEach(([e,n])=>{Ln(n,r,e,t)}),r},Ln=(e,t,n,r)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:zn(t,e)).classGroupId=n)}if("function"==typeof e)return Mn(e)?void Ln(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach(([e,o])=>{Ln(o,zn(t,e),n,r)})})},zn=(e,t)=>{let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},Mn=e=>e.isThemeGetter,$n=(e,t)=>t?e.map(([e,n])=>[e,n.map(e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,n])=>[t+e,n])):e)]):e,Wn=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}},_n=e=>{const{separator:t,experimentalParseClassName:n}=e,r=1===t.length,o=t[0],i=t.length,a=e=>{const n=[];let a,s=0,l=0;for(let c=0;c<e.length;c++){let d=e[c];if(0===s){if(d===o&&(r||e.slice(c,c+i)===t)){n.push(e.slice(l,c)),l=c+i;continue}if("/"===d){a=c;continue}}"["===d?s++:"]"===d&&s--}const c=0===n.length?e:e.substring(l),d=c.startsWith("!");return{modifiers:n,hasImportantModifier:d,baseClassName:d?c.substring(1):c,maybePostfixModifierPosition:a&&a>l?a-l:void 0}};return n?e=>n({className:e,parseClassName:a}):a},In=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)}),t.push(...n.sort()),t},jn=/\s+/;function Fn(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=Hn(e))&&(r&&(r+=" "),r+=t);return r}const Hn=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Hn(e[r]))&&(n&&(n+=" "),n+=t);return n};function Bn(e,...t){let n,r,o,i=function(s){const l=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:Wn(e.cacheSize),parseClassName:_n(e),...Tn(e)}))(l),r=n.cache.get,o=n.cache.set,i=a,a(s)};function a(e){const t=r(e);if(t)return t;const i=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],a=e.trim().split(jn);let s="";for(let e=a.length-1;e>=0;e-=1){const t=a[e],{modifiers:l,hasImportantModifier:c,baseClassName:d,maybePostfixModifierPosition:u}=n(t);let m=Boolean(u),f=r(m?d.substring(0,u):d);if(!f){if(!m){s=t+(s.length>0?" "+s:s);continue}if(f=r(d),!f){s=t+(s.length>0?" "+s:s);continue}m=!1}const p=In(l).join(":"),g=c?p+"!":p,h=g+f;if(i.includes(h))continue;i.push(h);const y=o(f,m);for(let e=0;e<y.length;++e){const t=y[e];i.push(g+t)}s=t+(s.length>0?" "+s:s)}return s})(e,n);return o(e,i),i}return function(){return i(Fn.apply(null,arguments))}}const Gn=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},Vn=/^\[(?:([a-z-]+):)?(.+)\]$/i,Un=/^\d+\/\d+$/,qn=new Set(["px","full","screen"]),Yn=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Xn=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Kn=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Zn=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Jn=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Qn=e=>tr(e)||qn.has(e)||Un.test(e),er=e=>pr(e,"length",gr),tr=e=>Boolean(e)&&!Number.isNaN(Number(e)),nr=e=>pr(e,"number",tr),rr=e=>Boolean(e)&&Number.isInteger(Number(e)),or=e=>e.endsWith("%")&&tr(e.slice(0,-1)),ir=e=>Vn.test(e),ar=e=>Yn.test(e),sr=new Set(["length","size","percentage"]),lr=e=>pr(e,sr,hr),cr=e=>pr(e,"position",hr),dr=new Set(["image","url"]),ur=e=>pr(e,dr,br),mr=e=>pr(e,"",yr),fr=()=>!0,pr=(e,t,n)=>{const r=Vn.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))},gr=e=>Xn.test(e)&&!Kn.test(e),hr=()=>!1,yr=e=>Zn.test(e),br=e=>Jn.test(e),vr=Bn(()=>{const e=Gn("colors"),t=Gn("spacing"),n=Gn("blur"),r=Gn("brightness"),o=Gn("borderColor"),i=Gn("borderRadius"),a=Gn("borderSpacing"),s=Gn("borderWidth"),l=Gn("contrast"),c=Gn("grayscale"),d=Gn("hueRotate"),u=Gn("invert"),m=Gn("gap"),f=Gn("gradientColorStops"),p=Gn("gradientColorStopPositions"),g=Gn("inset"),h=Gn("margin"),y=Gn("opacity"),b=Gn("padding"),v=Gn("saturate"),w=Gn("scale"),x=Gn("sepia"),E=Gn("skew"),k=Gn("space"),N=Gn("translate"),C=()=>["auto",ir,t],R=()=>[ir,t],P=()=>["",Qn,er],T=()=>["auto",tr,ir],O=()=>["","0",ir],S=()=>[tr,ir];return{cacheSize:500,separator:":",theme:{colors:[fr],spacing:[Qn,er],blur:["none","",ar,ir],brightness:S(),borderColor:[e],borderRadius:["none","","full",ar,ir],borderSpacing:R(),borderWidth:P(),contrast:S(),grayscale:O(),hueRotate:S(),invert:O(),gap:R(),gradientColorStops:[e],gradientColorStopPositions:[or,er],inset:C(),margin:C(),opacity:S(),padding:R(),saturate:S(),scale:S(),sepia:O(),skew:S(),space:R(),translate:R()},classGroups:{aspect:[{aspect:["auto","square","video",ir]}],container:["container"],columns:[{columns:[ar]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",ir]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",rr,ir]}],basis:[{basis:C()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ir]}],grow:[{grow:O()}],shrink:[{shrink:O()}],order:[{order:["first","last","none",rr,ir]}],"grid-cols":[{"grid-cols":[fr]}],"col-start-end":[{col:["auto",{span:["full",rr,ir]},ir]}],"col-start":[{"col-start":T()}],"col-end":[{"col-end":T()}],"grid-rows":[{"grid-rows":[fr]}],"row-start-end":[{row:["auto",{span:[rr,ir]},ir]}],"row-start":[{"row-start":T()}],"row-end":[{"row-end":T()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ir]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ir]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],me:[{me:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ir,t]}],"min-w":[{"min-w":[ir,t,"min","max","fit"]}],"max-w":[{"max-w":[ir,t,"none","full","min","max","fit","prose",{screen:[ar]},ar]}],h:[{h:[ir,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ir,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ir,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ir,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ar,er]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",nr]}],"font-family":[{font:[fr]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ir]}],"line-clamp":[{"line-clamp":["none",tr,nr]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Qn,ir]}],"list-image":[{"list-image":["none",ir]}],"list-style-type":[{list:["none","disc","decimal",ir]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Qn,er]}],"underline-offset":[{"underline-offset":["auto",Qn,ir]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ir]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ir]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",cr]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",lr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ur]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[p]}],"gradient-via-pos":[{via:[p]}],"gradient-to-pos":[{to:[p]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[Qn,ir]}],"outline-w":[{outline:[Qn,er]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:P()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[Qn,er]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ar,mr]}],"shadow-color":[{shadow:[fr]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",ar,ir]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[u]}],saturate:[{saturate:[v]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ir]}],duration:[{duration:S()}],ease:[{ease:["linear","in","out","in-out",ir]}],delay:[{delay:S()}],animate:[{animate:["none","spin","ping","pulse","bounce",ir]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[rr,ir]}],"translate-x":[{"translate-x":[N]}],"translate-y":[{"translate-y":[N]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ir]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ir]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ir]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Qn,er,nr]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});function wr(...e){return vr(function(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Pn(e))&&(r&&(r+=" "),r+=t);return r}(e))}const xr=kn,Er=Nn,kr=Cn,Nr=e.forwardRef(({className:t,sideOffset:n=4,...r},o)=>e.createElement(Rn,{ref:o,sideOffset:n,className:wr("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...r}));Nr.displayName=Rn.displayName;const Cr=t.forwardRef(({id:e,className:n,align:i,side:a,sideOffset:s=8,visible:l,content:c,width:d,delayDuration:u=100,children:m,...f},p)=>{const[g,h]=r(!1);return o(()=>{g&&setTimeout(()=>h(!1),2e3)},[g]),t.createElement(xr,null,t.createElement(Er,{open:l,delayDuration:u},t.createElement(kr,{asChild:!0,ref:p,...f},m),t.createElement(Nr,{id:e,className:y("gyramais-tooltip-container",n),align:i,side:a,sideOffset:s,style:{maxWidth:d||"auto"},onClick:()=>{"string"==typeof c&&(navigator.clipboard.writeText(c),h(!0))}},"string"==typeof c?t.createElement("div",{className:y("gyramais-tooltip-content",n)},g?"Copiado!":c):c)))});Cr.displayName="Tooltip";const Rr=5.25,Pr=2*Math.PI*Rr,Tr=({done:e,total:n})=>{const r=n>0?Math.min(1,Math.max(0,e/n)):0;return t.createElement("svg",{className:"gyramais-guide-ring",width:"14",height:"14",viewBox:"0 0 14 14","aria-hidden":"true",focusable:"false"},t.createElement("circle",{className:"gyramais-guide-ring-track",cx:"7",cy:"7",r:Rr}),t.createElement("circle",{className:"gyramais-guide-ring-value",cx:"7",cy:"7",r:Rr,strokeDasharray:Pr,strokeDashoffset:Pr*(1-r),transform:"rotate(-90 7 7)"}))},Or=t.forwardRef(({id:e,className:n,icon:r,label:o,progress:i,count:a,collapsed:s=!1,active:l=!1,onClick:c,...d},u)=>{const m=!!i&&i.total>0,f=m&&i.done>=i.total,p="number"==typeof a&&a>0,g=p?a>99?"99+":String(a):"",h=((e,t,n)=>{const r=[e];return t&&t.total>0&&r.push(`${t.done} de ${t.total} concluídos`),n&&n>0&&r.push(1===n?"1 não vista":`${n} não vistas`),r.join(", ")})(o,i,a),b=t.createElement("button",{ref:s?void 0:u,id:e,type:"button","aria-label":h,"data-active":l?"true":void 0,...d,onClick:c,className:y("gyramais-guide-launcher",{"is-active":l,"is-collapsed":s},n)},r?t.createElement("span",{className:"gyramais-guide-launcher-icon","aria-hidden":"true"},r):null,s?p?t.createElement("span",{className:"gyramais-guide-launcher-mini-count","aria-hidden":"true"},g):m&&!f?t.createElement("span",{className:"gyramais-guide-launcher-dot","aria-hidden":"true"}):null:t.createElement(t.Fragment,null,t.createElement("span",{className:"gyramais-guide-launcher-label"},o),m?t.createElement("span",{className:y("gyramais-guide-launcher-progress",{"is-complete":f}),"aria-hidden":"true"},t.createElement(Tr,{done:i.done,total:i.total}),t.createElement("span",null,i.done,"/",i.total)):null,p?t.createElement("span",{className:"gyramais-guide-launcher-count","aria-hidden":"true"},g):null));if(!s)return b;const v=m?`${o} ${i.done}/${i.total}`:p?`${o} (${g})`:o;return t.createElement(Cr,{ref:u,content:v,side:"right",delayDuration:200},b)});Or.displayName="GuideLauncher";var Sr={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Dr=(e,t)=>{const n=i(({color:n="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:i,children:s,...l},c)=>{return a("svg",{ref:c,...Sr,width:r,height:r,stroke:n,strokeWidth:i?24*Number(o)/Number(r):o,className:`lucide lucide-${d=e,d.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,...l},[...t.map(([e,t])=>a(e,t)),...(Array.isArray(s)?s:[s])||[]]);var d});return n.displayName=`${e}`,n},Ar=Dr("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),Lr=Dr("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),zr=Dr("MoreHorizontal",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]),Mr=Dr("Sparkles",[["path",{d:"m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z",key:"17u4zn"}],["path",{d:"M5 3v4",key:"bklmnn"}],["path",{d:"M19 17v4",key:"iiml17"}],["path",{d:"M3 5h4",key:"nem4j1"}],["path",{d:"M17 19h4",key:"lbex7p"}]]),$r=({id:e,className:n,variant:r="text",lines:o=3,size:i=40,width:a,height:s,animated:l=!0,decorative:c=!1})=>{const d=l?"":"gyramais-skeleton-static",u=c?{"aria-hidden":!0}:{role:"status","aria-label":"Carregando"};if("text"===r)return t.createElement("div",{id:e,...u,className:y("gyramais-skeleton-lines",n)},Array.from({length:o}).map((e,n)=>t.createElement("span",{key:n,className:y("gyramais-skeleton gyramais-skeleton-line",d),style:{width:a??(o>1&&n===o-1?"60%":"100%"),height:s}})));const m="circle"===r;return t.createElement("span",{id:e,...u,className:y("gyramais-skeleton",`gyramais-skeleton-${r}`,d,n),style:{width:m?i:a??"100%",height:m?i:s??"100%"}})},Wr=()=>s(e=>{if(!["ArrowDown","ArrowUp","Home","End"].includes(e.key))return;const t=e.currentTarget,n=Array.from(t.querySelectorAll("[data-guide-roving]:not([disabled])"));if(!n.length)return;const r=n.indexOf(document.activeElement);let o=r;"ArrowDown"===e.key&&(o=r<0?0:(r+1)%n.length),"ArrowUp"===e.key&&(o=r<=0?n.length-1:r-1),"Home"===e.key&&(o=0),"End"===e.key&&(o=n.length-1),e.preventDefault(),n[o]?.focus()},[]),_r=()=>t.createElement("svg",{className:"gyramais-guide-check",width:"16",height:"16",viewBox:"0 0 16 16","aria-hidden":"true",focusable:"false"},t.createElement("path",{d:"M4.4 8.3 6.9 10.7 11.6 5.6"})),Ir=({items:e})=>{const[n,i]=r(!1),a=c(null),s=c(null),d=l(),u=Wr();o(()=>{if(!n)return;const e=a.current?.querySelector("[data-guide-roving]");e?.focus();const t=e=>{a.current?.contains(e.target)||i(!1)};return document.addEventListener("pointerdown",t),()=>document.removeEventListener("pointerdown",t)},[n]);const m=()=>{i(!1),s.current?.focus()};return t.createElement("div",{className:"gyramais-guide-menu",ref:a},t.createElement("button",{ref:s,type:"button",className:"gyramais-guide-icon-button","aria-label":"Mais opções","aria-haspopup":"menu","aria-expanded":n,"aria-controls":n?d:void 0,onClick:()=>i(e=>!e)},t.createElement(zr,{size:16,strokeWidth:1.75,"aria-hidden":"true"})),n?t.createElement("div",{id:d,role:"menu","aria-label":"Mais opções",className:"gyramais-guide-menu-list",onKeyDown:e=>{if("Escape"===e.key||"Tab"===e.key)return e.stopPropagation(),"Escape"===e.key&&e.preventDefault(),void m();u(e)}},e.map(e=>t.createElement("button",{key:e.label,type:"button",role:"menuitem","data-guide-roving":!0,className:"gyramais-guide-menu-item",onClick:()=>{m(),e.onClick()}},e.label))):null)},jr=({id:e,className:n,title:i,subtitle:a,items:s,onMinimize:d,menu:u,footer:m,loading:f=!1,emptyText:p="Nenhum passo por aqui no momento."})=>{const g=l(),h=Wr(),b=s.length,v=s.filter(e=>e.done).length,w=s.find(e=>!e.done)?.key,x=b>0&&v===b,E=c(null),[k,N]=r(()=>new Set),[C,R]=r(""),P=c(new Set);o(()=>{const e=new Map(s.map(e=>[e.key,!!e.done])),t=E.current;if(E.current=e,!t)return;const n=s.filter(e=>e.done&&!1===t.get(e.key));if(!n.length)return;const r=n[n.length-1];R(`Passo concluído: ${r.title}. ${v} de ${b} concluídos.`),N(e=>{const t=new Set(e);return n.forEach(e=>t.add(e.key)),t});const o=window.setTimeout(()=>{P.current.delete(o),N(e=>{const t=new Set(e);return n.forEach(e=>t.delete(e.key)),t})},900);P.current.add(o)},[s,v,b]),o(()=>{const e=P.current;return()=>e.forEach(e=>window.clearTimeout(e))},[]);const T=!!u&&u.length>0;return t.createElement("section",{id:e,"aria-labelledby":g,"aria-busy":f||void 0,className:y("gyramais-guide-card","gyramais-guide-checklist",n)},t.createElement("header",{className:"gyramais-guide-card-header"},t.createElement("div",{className:"gyramais-guide-card-heading"},t.createElement("h3",{id:g,className:"gyramais-guide-card-title"},i),a?t.createElement("p",{className:"gyramais-guide-card-subtitle"},a):null),T||d?t.createElement("div",{className:"gyramais-guide-card-actions"},T?t.createElement(Ir,{items:u}):null,d?t.createElement("button",{type:"button",className:"gyramais-guide-icon-button","aria-label":"Minimizar",onClick:d},t.createElement(Ar,{size:16,strokeWidth:1.75,"aria-hidden":"true"})):null):null),f?t.createElement("div",{className:"gyramais-guide-checklist-loading",role:"status","aria-label":"Carregando"},t.createElement("div",{className:"gyramais-guide-progress","aria-hidden":"true"},Array.from({length:5}).map((e,n)=>t.createElement("span",{key:n,className:"gyramais-guide-progress-segment"}))),t.createElement("div",{className:"gyramais-guide-skeleton-rows","aria-hidden":"true"},[78,64,86,58].map(e=>t.createElement("div",{key:e,className:"gyramais-guide-skeleton-row"},t.createElement($r,{variant:"circle",size:16,decorative:!0}),t.createElement($r,{variant:"block",height:10,width:`${e}%`,decorative:!0}))))):0===b?t.createElement("p",{className:"gyramais-guide-empty-text"},p):t.createElement(t.Fragment,null,t.createElement("div",{className:"gyramais-guide-progress-wrap"},t.createElement("div",{className:"gyramais-guide-progress",role:"progressbar","aria-label":`Progresso de ${i}`,"aria-valuemin":0,"aria-valuemax":b,"aria-valuenow":v,"aria-valuetext":`${v} de ${b} concluídos`},s.map(e=>t.createElement("span",{key:e.key,className:y("gyramais-guide-progress-segment",{"is-done":e.done})}))),t.createElement("p",{className:"gyramais-guide-progress-caption","aria-hidden":"true"},x?"Todos os passos concluídos":t.createElement(t.Fragment,null,t.createElement("span",{className:"gyramais-guide-num"},v," de ",b)," ","concluídos"))),t.createElement("ol",{className:"gyramais-guide-items",onKeyDown:h},s.map(e=>{const n=e.key===w,r=`${g}-${e.key}-desc`;return t.createElement("li",{key:e.key},t.createElement("button",{type:"button","data-guide-roving":!0,"aria-describedby":e.description?r:void 0,onClick:e.onClick,className:y("gyramais-guide-item",{"is-done":e.done,"is-next":n,"is-just-done":k.has(e.key)})},t.createElement("span",{className:"gyramais-guide-item-mark","aria-hidden":"true"},e.done?t.createElement(_r,null):e.icon?t.createElement("span",{className:"gyramais-guide-item-icon"},e.icon):null),t.createElement("span",{className:"gyramais-guide-item-body"},t.createElement("span",{className:"gyramais-guide-item-title"},t.createElement("span",{className:"gyramais-guide-item-title-text"},e.title),e.done?t.createElement("span",{className:"gyramais-guide-sr-only"},", concluído"):n?t.createElement("span",{className:"gyramais-guide-sr-only"},", próximo passo"):null),e.description?t.createElement("span",{id:r,className:y("gyramais-guide-item-description",{"gyramais-guide-sr-only":!n})},e.description):null),e.meta?t.createElement("span",{className:"gyramais-guide-item-meta"},e.meta):null,t.createElement(Lr,{className:"gyramais-guide-item-chevron",size:14,strokeWidth:1.75,"aria-hidden":"true"})))}))),m?t.createElement("div",{className:"gyramais-guide-card-footer"},m):null,t.createElement("div",{className:"gyramais-guide-sr-only",role:"status","aria-live":"polite"},C))},Fr=({id:e,className:n,title:r,items:o,onMarkAllRead:i,emptyText:a="Nenhuma novidade por enquanto.",loading:s=!1})=>{const c=l(),d=Wr(),u=o.filter(e=>e.unread).length;return t.createElement("section",{id:e,"aria-labelledby":c,"aria-busy":s||void 0,className:y("gyramais-guide-card","gyramais-guide-news",n)},t.createElement("header",{className:"gyramais-guide-card-header"},t.createElement("div",{className:"gyramais-guide-card-heading is-inline"},t.createElement("h3",{id:c,className:"gyramais-guide-card-title"},r),!s&&u>0?t.createElement("span",{className:"gyramais-guide-news-count"},1===u?"1 nova":`${u} novas`):null),!s&&i&&u>0?t.createElement("button",{type:"button",className:"gyramais-guide-text-button",onClick:i},"Marcar como lidas"):null),s?t.createElement("div",{className:"gyramais-guide-news-loading",role:"status","aria-label":"Carregando"},[0,1,2].map(e=>t.createElement("div",{key:e,className:"gyramais-guide-news-skeleton","aria-hidden":"true"},t.createElement($r,{variant:"block",height:11,width:1===e?"58%":"72%",decorative:!0}),t.createElement($r,{variant:"block",height:9,width:"92%",decorative:!0}),t.createElement($r,{variant:"block",height:9,width:"40%",decorative:!0})))):0===o.length?t.createElement("div",{className:"gyramais-guide-empty"},t.createElement("span",{className:"gyramais-guide-empty-icon","aria-hidden":"true"},t.createElement(Mr,{size:16,strokeWidth:1.75})),t.createElement("p",{className:"gyramais-guide-empty-text"},a)):t.createElement("ul",{className:"gyramais-guide-news-items",onKeyDown:d},o.map(e=>t.createElement("li",{key:e.key},t.createElement("button",{type:"button","data-guide-roving":!0,onClick:e.onClick,className:y("gyramais-guide-news-item",{"is-unread":e.unread})},t.createElement("span",{className:"gyramais-guide-news-body"},e.media?t.createElement("span",{className:"gyramais-guide-news-media","aria-hidden":"true"},e.media):null,t.createElement("span",{className:"gyramais-guide-news-title"},t.createElement("span",{className:"gyramais-guide-news-dot","aria-hidden":"true"}),e.title,e.unread?t.createElement("span",{className:"gyramais-guide-sr-only"},", não vista"):null),e.summary?t.createElement("span",{className:"gyramais-guide-news-summary"},e.summary):null,e.date?t.createElement("span",{className:"gyramais-guide-news-date"},e.date):null))))))},Hr=({id:e,className:n,title:r,subtitle:o,options:i})=>{const a=l(),s=Wr();return t.createElement("div",{id:e,className:y("gyramais-guide-choice",n)},t.createElement("div",{className:"gyramais-guide-choice-header"},t.createElement("h2",{id:a,className:"gyramais-guide-choice-title"},r),o?t.createElement("p",{className:"gyramais-guide-choice-subtitle"},o):null),t.createElement("ul",{className:"gyramais-guide-choice-options","aria-labelledby":a,onKeyDown:s},i.map(e=>t.createElement("li",{key:e.key},t.createElement("button",{type:"button","data-guide-roving":!0,onClick:e.onClick,className:y("gyramais-guide-choice-option",{"is-recommended":e.recommended})},e.icon?t.createElement("span",{className:"gyramais-guide-choice-icon","aria-hidden":"true"},e.icon):null,t.createElement("span",{className:"gyramais-guide-choice-body"},t.createElement("span",{className:"gyramais-guide-choice-option-title"},e.title,e.recommended?t.createElement("span",{className:"gyramais-guide-choice-badge"},"Recomendado"):null),e.description?t.createElement("span",{className:"gyramais-guide-choice-description"},e.description):null),t.createElement(Lr,{className:"gyramais-guide-choice-chevron",size:16,strokeWidth:1.75,"aria-hidden":"true"}))))))},Br=({id:e,className:n,title:r,action:o,items:i,more:a,collapsed:s=!1,loading:c=!1,emptyText:d})=>{const u=l();if(s)return o?t.createElement("div",{id:e,className:y("gyramais-sider-list","is-collapsed",n)},t.createElement(Cr,{content:o.label,side:"right",delayDuration:200},t.createElement("button",{type:"button","aria-label":o.label,className:"gyramais-sider-list-collapsed-action",onClick:o.onClick},o.icon))):null;const m=!c&&0===i.length;return m&&!d?null:t.createElement("section",{id:e,"aria-labelledby":u,"aria-busy":c||void 0,className:y("gyramais-sider-list",n)},t.createElement("div",{className:"gyramais-sider-list-header"},t.createElement("h3",{id:u,className:"gyramais-sider-list-title"},r),o?t.createElement(Cr,{content:o.label,side:"top",delayDuration:300},t.createElement("button",{type:"button","aria-label":o.label,className:"gyramais-sider-list-action",onClick:o.onClick},o.icon)):null),c?t.createElement("div",{className:"gyramais-sider-list-loading",role:"status","aria-label":"Carregando"},["82%","64%","74%"].map(e=>t.createElement("div",{key:e,className:"gyramais-sider-list-skeleton","aria-hidden":"true"},t.createElement($r,{variant:"block",height:10,width:e,decorative:!0})))):m?t.createElement("p",{className:"gyramais-sider-list-empty"},d):t.createElement("ul",{className:"gyramais-sider-list-items"},i.map(e=>t.createElement("li",{key:e.key},t.createElement("button",{type:"button",title:e.label,"aria-current":e.active?"true":void 0,onClick:e.onClick,className:y("gyramais-sider-list-item",{"is-active":e.active})},e.icon?t.createElement("span",{className:"gyramais-sider-list-item-icon","aria-hidden":"true"},e.icon):null,t.createElement("span",{className:"gyramais-sider-list-item-label"},e.label))))),!a||c||m?null:t.createElement("button",{type:"button",className:"gyramais-sider-list-more",onClick:a.onClick},t.createElement("span",null,a.label),t.createElement(Lr,{size:12,strokeWidth:2,"aria-hidden":"true"})))};export{jr as GuideChecklist,Hr as GuideChoice,Or as GuideLauncher,Fr as GuideNewsList,Br as SiderList};
|
|
6
|
+
*/g=h,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];o&&(e=r(e,n(o)))}return e}function n(n){if("string"==typeof n||"number"==typeof n)return n;if("object"!=typeof n)return"";if(Array.isArray(n))return t.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var o="";for(var i in n)e.call(n,i)&&n[i]&&(o=r(o,i));return o}function r(e,t){return t?e?e+" "+t:e+t:e}g.exports?(t.default=t,g.exports=t):window.classNames=t}();var y=p(h.exports);function b(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function v(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function w(...e){return t=>{let n=!1;const r=e.map(e=>{const r=v(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():v(e[t],null)}}}}function x(...t){return e.useCallback(w(...t),t)}function E(t,n=[]){let r=[];const o=()=>{const n=r.map(t=>e.createContext(t));return function(r){const o=r?.[t]||n;return e.useMemo(()=>({[`__scope${t}`]:{...r,[t]:o}}),[r,o])}};return o.scopeName=t,[function(n,o){const i=e.createContext(o),a=r.length;r=[...r,o];const s=n=>{const{scope:r,children:o,...s}=n,l=r?.[t]?.[a]||i,c=e.useMemo(()=>s,Object.values(s));return d(l.Provider,{value:c,children:o})};return s.displayName=n+"Provider",[s,function(r,s){const l=s?.[t]?.[a]||i,c=e.useContext(l);if(c)return c;if(void 0!==o)return o;throw new Error(`\`${r}\` must be used within \`${n}\``)}]},k(o,...n)]}function k(...t){const n=t[0];if(1===t.length)return n;const r=()=>{const r=t.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(t){const o=r.reduce((e,{useScope:n,scopeName:r})=>({...e,...n(t)[`__scope${r}`]}),{});return e.useMemo(()=>({[`__scope${n.scopeName}`]:o}),[o])}};return r.scopeName=n.scopeName,r}function N(t){const n=e.forwardRef((t,n)=>{const{children:r,...o}=t;if(e.isValidElement(r)){const t=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(r),i=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(o,r.props);return r.type!==e.Fragment&&(i.ref=n?w(n,t):t),e.cloneElement(r,i)}return e.Children.count(r)>1?e.Children.only(null):null});return n.displayName=`${t}.SlotClone`,n}var C=Symbol("radix.slottable");function R(t){return e.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===C}var T=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((t,n)=>{const r=function(t){const n=N(t),r=e.forwardRef((t,r)=>{const{children:o,...i}=t,a=e.Children.toArray(o),s=a.find(R);if(s){const t=s.props.children,o=a.map(n=>n===s?e.Children.count(t)>1?e.Children.only(null):e.isValidElement(t)?t.props.children:null:n);return d(n,{...i,ref:r,children:e.isValidElement(t)?e.cloneElement(t,void 0,o):null})}return d(n,{...i,ref:r,children:o})});return r.displayName=`${t}.Slot`,r}(`Primitive.${n}`),o=e.forwardRef((e,t)=>{const{asChild:o,...i}=e,a=o?r:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),d(a,{...i,ref:t})});return o.displayName=`Primitive.${n}`,{...t,[n]:o}},{});function P(t){const n=e.useRef(t);return e.useEffect(()=>{n.current=t}),e.useMemo(()=>(...e)=>n.current?.(...e),[])}var O,S="dismissableLayer.update",D="dismissableLayer.pointerDownOutside",A="dismissableLayer.focusOutside",L=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),z=e.forwardRef((t,n)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...c}=t,u=e.useContext(L),[m,f]=e.useState(null),p=m?.ownerDocument??globalThis?.document,[,g]=e.useState({}),h=x(n,e=>f(e)),y=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),w=y.indexOf(v),E=m?y.indexOf(m):-1,k=u.layersWithOutsidePointerEventsDisabled.size>0,N=E>=w,C=function(t,n=globalThis?.document){const r=P(t),o=e.useRef(!1),i=e.useRef(()=>{});return e.useEffect(()=>{const e=e=>{if(e.target&&!o.current){let t=function(){$(D,r,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=t,n.addEventListener("click",i.current,{once:!0})):t()}else n.removeEventListener("click",i.current);o.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}},[n,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{const t=e.target,n=[...u.branches].some(e=>e.contains(t));N&&!n&&(i?.(e),s?.(e),e.defaultPrevented||l?.())},p),R=function(t,n=globalThis?.document){const r=P(t),o=e.useRef(!1);return e.useEffect(()=>{const e=e=>{if(e.target&&!o.current){$(A,r,{originalEvent:e},{discrete:!1})}};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{const t=e.target;[...u.branches].some(e=>e.contains(t))||(a?.(e),s?.(e),e.defaultPrevented||l?.())},p);return function(t,n=globalThis?.document){const r=P(t);e.useEffect(()=>{const e=e=>{"Escape"===e.key&&r(e)};return n.addEventListener("keydown",e,{capture:!0}),()=>n.removeEventListener("keydown",e,{capture:!0})},[r,n])}(e=>{E===u.layers.size-1&&(o?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))},p),e.useEffect(()=>{if(m)return r&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(O=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(m)),u.layers.add(m),M(),()=>{r&&1===u.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=O)}},[m,p,r,u]),e.useEffect(()=>()=>{m&&(u.layers.delete(m),u.layersWithOutsidePointerEventsDisabled.delete(m),M())},[m,u]),e.useEffect(()=>{const e=()=>g({});return document.addEventListener(S,e),()=>document.removeEventListener(S,e)},[]),d(T.div,{...c,ref:h,style:{pointerEvents:k?N?"auto":"none":void 0,...t.style},onFocusCapture:b(t.onFocusCapture,R.onFocusCapture),onBlurCapture:b(t.onBlurCapture,R.onBlurCapture),onPointerDownCapture:b(t.onPointerDownCapture,C.onPointerDownCapture)})});z.displayName="DismissableLayer";function M(){const e=new CustomEvent(S);document.dispatchEvent(e)}function $(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?function(e,t){e&&f.flushSync(()=>e.dispatchEvent(t))}(o,i):o.dispatchEvent(i)}e.forwardRef((t,n)=>{const r=e.useContext(L),o=e.useRef(null),i=x(n,o);return e.useEffect(()=>{const e=o.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),d(T.div,{...t,ref:i})}).displayName="DismissableLayerBranch";var W=globalThis?.document?e.useLayoutEffect:()=>{},_=e[" useId ".trim().toString()]||(()=>{}),I=0;const j=["top","right","bottom","left"],F=Math.min,H=Math.max,B=Math.round,G=Math.floor,V=e=>({x:e,y:e}),U={left:"right",right:"left",bottom:"top",top:"bottom"};function q(e,t,n){return H(e,F(t,n))}function Y(e,t){return"function"==typeof e?e(t):e}function K(e){return e.split("-")[0]}function X(e){return e.split("-")[1]}function Z(e){return"x"===e?"y":"x"}function J(e){return"y"===e?"height":"width"}function Q(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function ee(e){return Z(Q(e))}function te(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const ne=["left","right"],re=["right","left"],oe=["top","bottom"],ie=["bottom","top"];function ae(e,t,n,r){const o=X(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?re:ne:t?ne:re;case"left":case"right":return t?oe:ie;default:return[]}}(K(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(te)))),i}function se(e){const t=K(e);return U[t]+e.slice(t.length)}function le(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function ce(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function de(e,t,n){let{reference:r,floating:o}=e;const i=Q(t),a=ee(t),s=J(a),l=K(t),c="y"===i,d=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,m=r[s]/2-o[s]/2;let f;switch(l){case"top":f={x:d,y:r.y-o.height};break;case"bottom":f={x:d,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:u};break;case"left":f={x:r.x-o.width,y:u};break;default:f={x:r.x,y:r.y}}switch(X(t)){case"start":f[a]-=m*(n&&c?-1:1);break;case"end":f[a]+=m*(n&&c?-1:1)}return f}async function ue(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:m=!1,padding:f=0}=Y(t,e),p=le(f),g=s[m?"floating"===u?"reference":"floating":u],h=ce(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(g)))||n?g:g.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:l})),y="floating"===u?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),v=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},w=ce(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:b,strategy:l}):y);return{top:(h.top-w.top+p.top)/v.y,bottom:(w.bottom-h.bottom+p.bottom)/v.y,left:(h.left-w.left+p.left)/v.x,right:(w.right-h.right+p.right)/v.x}}function me(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function fe(e){return j.some(t=>e[t]>=0)}const pe=new Set(["left","top"]);function ge(){return"undefined"!=typeof window}function he(e){return ve(e)?(e.nodeName||"").toLowerCase():"#document"}function ye(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function be(e){var t;return null==(t=(ve(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ve(e){return!!ge()&&(e instanceof Node||e instanceof ye(e).Node)}function we(e){return!!ge()&&(e instanceof Element||e instanceof ye(e).Element)}function xe(e){return!!ge()&&(e instanceof HTMLElement||e instanceof ye(e).HTMLElement)}function Ee(e){return!(!ge()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof ye(e).ShadowRoot)}function ke(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Le(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function Ne(e){return/^(table|td|th)$/.test(he(e))}function Ce(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}const Re=/transform|translate|scale|rotate|perspective|filter/,Te=/paint|layout|strict|content/,Pe=e=>!!e&&"none"!==e;let Oe;function Se(e){const t=we(e)?Le(e):e;return Pe(t.transform)||Pe(t.translate)||Pe(t.scale)||Pe(t.rotate)||Pe(t.perspective)||!De()&&(Pe(t.backdropFilter)||Pe(t.filter))||Re.test(t.willChange||"")||Te.test(t.contain||"")}function De(){return null==Oe&&(Oe="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Oe}function Ae(e){return/^(html|body|#document)$/.test(he(e))}function Le(e){return ye(e).getComputedStyle(e)}function ze(e){return we(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Me(e){if("html"===he(e))return e;const t=e.assignedSlot||e.parentNode||Ee(e)&&e.host||be(e);return Ee(t)?t.host:t}function $e(e){const t=Me(e);return Ae(t)?e.ownerDocument?e.ownerDocument.body:e.body:xe(t)&&ke(t)?t:$e(t)}function We(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=$e(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=ye(o);if(i){const e=_e(a);return t.concat(a,a.visualViewport||[],ke(o)?o:[],e&&n?We(e):[])}return t.concat(o,We(o,[],n))}function _e(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ie(e){const t=Le(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=xe(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=B(n)!==i||B(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function je(e){return we(e)?e:e.contextElement}function Fe(e){const t=je(e);if(!xe(t))return V(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Ie(t);let a=(i?B(n.width):n.width)/r,s=(i?B(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const He=V(0);function Be(e){const t=ye(e);return De()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:He}function Ge(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=je(e);let a=V(1);t&&(r?we(r)&&(a=Fe(r)):a=Fe(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==ye(e))&&t}(i,n,r)?Be(i):V(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,d=o.width/a.x,u=o.height/a.y;if(i){const e=ye(i),t=r&&we(r)?ye(r):r;let n=e,o=_e(n);for(;o&&r&&t!==n;){const e=Fe(o),t=o.getBoundingClientRect(),r=Le(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,d*=e.x,u*=e.y,l+=i,c+=a,n=ye(o),o=_e(n)}}return ce({width:d,height:u,x:l,y:c})}function Ve(e,t){const n=ze(e).scrollLeft;return t?t.left+n:Ge(be(e)).left+n}function Ue(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Ve(e,n),y:n.top+t.scrollTop}}function qe(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=ye(e),r=be(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=De();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}const c=Ve(r);if(c<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,a=Math.abs(r.clientWidth-t.clientWidth-o);a<=25&&(i-=a)}else c<=25&&(i+=c);return{width:i,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=be(e),n=ze(e),r=e.ownerDocument.body,o=H(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=H(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Ve(e);const s=-n.scrollTop;return"rtl"===Le(r).direction&&(a+=H(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(be(e));else if(we(t))r=function(e,t){const n=Ge(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=xe(e)?Fe(e):V(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Be(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ce(r)}function Ye(e,t){const n=Me(e);return!(n===t||!we(n)||Ae(n))&&("fixed"===Le(n).position||Ye(n,t))}function Ke(e,t,n){const r=xe(t),o=be(t),i="fixed"===n,a=Ge(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=V(0);function c(){l.x=Ve(o)}if(r||!r&&!i)if(("body"!==he(t)||ke(o))&&(s=ze(t)),r){const e=Ge(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&c();i&&!r&&o&&c();const d=!o||r||i?V(0):Ue(o,s);return{x:a.left+s.scrollLeft-l.x-d.x,y:a.top+s.scrollTop-l.y-d.y,width:a.width,height:a.height}}function Xe(e){return"static"===Le(e).position}function Ze(e,t){if(!xe(e)||"fixed"===Le(e).position)return null;if(t)return t(e);let n=e.offsetParent;return be(e)===n&&(n=n.ownerDocument.body),n}function Je(e,t){const n=ye(e);if(Ce(e))return n;if(!xe(e)){let t=Me(e);for(;t&&!Ae(t);){if(we(t)&&!Xe(t))return t;t=Me(t)}return n}let r=Ze(e,t);for(;r&&Ne(r)&&Xe(r);)r=Ze(r,t);return r&&Ae(r)&&Xe(r)&&!Se(r)?n:r||function(e){let t=Me(e);for(;xe(t)&&!Ae(t);){if(Se(t))return t;if(Ce(t))return null;t=Me(t)}return null}(e)||n}const Qe={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=be(r),s=!!t&&Ce(t.floating);if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},c=V(1);const d=V(0),u=xe(r);if((u||!u&&!i)&&(("body"!==he(r)||ke(a))&&(l=ze(r)),u)){const e=Ge(r);c=Fe(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}const m=!a||u||i?V(0):Ue(a,l);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x+m.x,y:n.y*c.y-l.scrollTop*c.y+d.y+m.y}},getDocumentElement:be,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?Ce(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=We(e,[],!1).filter(e=>we(e)&&"body"!==he(e)),o=null;const i="fixed"===Le(e).position;let a=i?Me(e):e;for(;we(a)&&!Ae(a);){const t=Le(a),n=Se(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||ke(a)&&!n&&Ye(e,a))?r=r.filter(e=>e!==a):o=t,a=Me(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=qe(t,i[0],o);let s=a.top,l=a.right,c=a.bottom,d=a.left;for(let e=1;e<i.length;e++){const n=qe(t,i[e],o);s=H(n.top,s),l=F(n.right,l),c=F(n.bottom,c),d=H(n.left,d)}return{width:l-d,height:c-s,x:d,y:s}},getOffsetParent:Je,getElementRects:async function(e){const t=this.getOffsetParent||Je,n=this.getDimensions,r=await n(e.floating);return{reference:Ke(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Ie(e);return{width:t,height:n}},getScale:Fe,isElement:we,isRTL:function(e){return"rtl"===Le(e).direction}};function et(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function tt(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=je(e),d=o||i?[...c?We(c):[],...t?We(t):[]]:[];d.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});const u=c&&s?function(e,t){let n,r=null;const o=be(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),{left:d,top:u,width:m,height:f}=c;if(s||t(),!m||!f)return;const p={rootMargin:-G(u)+"px "+-G(o.clientWidth-(d+m))+"px "+-G(o.clientHeight-(u+f))+"px "+-G(d)+"px",threshold:H(0,F(1,l))||1};let g=!0;function h(t){const r=t[0].intersectionRatio;if(r!==l){if(!g)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||et(c,e.getBoundingClientRect())||a(),g=!1}try{r=new IntersectionObserver(h,{...p,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(h,p)}r.observe(e)}(!0),i}(c,n):null;let m,f=-1,p=null;a&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;null==(e=p)||e.observe(t)})),n()}),c&&!l&&p.observe(c),t&&p.observe(t));let g=l?Ge(e):null;return l&&function t(){const r=Ge(e);g&&!et(g,r)&&n();g=r,m=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==u||u(),null==(e=p)||e.disconnect(),p=null,l&&cancelAnimationFrame(m)}}const nt=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=K(n),s=X(n),l="y"===Q(n),c=pe.has(a)?-1:1,d=i&&l?-1:1,u=Y(t,e);let{mainAxis:m,crossAxis:f,alignmentAxis:p}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return s&&"number"==typeof p&&(f="end"===s?-1*p:p),l?{x:f*d,y:m*c}:{x:m*c,y:f*d}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},rt=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:i}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=Y(e,t),d={x:n,y:r},u=await i.detectOverflow(t,c),m=Q(K(o)),f=Z(m);let p=d[f],g=d[m];if(a){const e="y"===f?"bottom":"right";p=q(p+u["y"===f?"top":"left"],p,p-u[e])}if(s){const e="y"===m?"bottom":"right";g=q(g+u["y"===m?"top":"left"],g,g-u[e])}const h=l.fn({...t,[f]:p,[m]:g});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[f]:a,[m]:s}}}}}},ot=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:m,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:g=!0,...h}=Y(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const y=K(o),b=Q(s),v=K(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=m||(v||!g?[se(s)]:function(e){const t=se(e);return[te(e),t,te(t)]}(s)),E="none"!==p;!m&&E&&x.push(...ae(s,g,p,w));const k=[s,...x],N=await l.detectOverflow(t,h),C=[];let R=(null==(r=i.flip)?void 0:r.overflows)||[];if(d&&C.push(N[y]),u){const e=function(e,t,n){void 0===n&&(n=!1);const r=X(e),o=ee(e),i=J(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=se(a)),[a,se(a)]}(o,a,w);C.push(N[e[0]],N[e[1]])}if(R=[...R,{placement:o,overflows:C}],!C.every(e=>e<=0)){var T,P;const e=((null==(T=i.flip)?void 0:T.index)||0)+1,t=k[e];if(t){if(!("alignment"===u&&b!==Q(t))||R.every(e=>Q(e.placement)!==b||e.overflows[0]>0))return{data:{index:e,overflows:R},reset:{placement:t}}}let n=null==(P=R.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:P.placement;if(!n)switch(f){case"bestFit":{var O;const e=null==(O=R.filter(e=>{if(E){const t=Q(e.placement);return t===b||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:O[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},it=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:a,elements:s}=t,{apply:l=()=>{},...c}=Y(e,t),d=await a.detectOverflow(t,c),u=K(o),m=X(o),f="y"===Q(o),{width:p,height:g}=i.floating;let h,y;"top"===u||"bottom"===u?(h=u,y=m===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(y=u,h="end"===m?"top":"bottom");const b=g-d.top-d.bottom,v=p-d.left-d.right,w=F(g-d[h],b),x=F(p-d[y],v),E=!t.middlewareData.shift;let k=w,N=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(N=v),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(k=b),E&&!m){const e=H(d.left,0),t=H(d.right,0),n=H(d.top,0),r=H(d.bottom,0);f?N=p-2*(0!==e||0!==t?e+t:H(d.left,d.right)):k=g-2*(0!==n||0!==r?n+r:H(d.top,d.bottom))}await l({...t,availableWidth:N,availableHeight:k});const C=await a.getDimensions(s.floating);return p!==C.width||g!==C.height?{reset:{rects:!0}}:{}}}},at=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...i}=Y(e,t);switch(o){case"referenceHidden":{const e=me(await r.detectOverflow(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:fe(e)}}}case"escaped":{const e=me(await r.detectOverflow(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:fe(e)}}}default:return{}}}}},st=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:d=0}=Y(e,t)||{};if(null==c)return{};const u=le(d),m={x:n,y:r},f=ee(o),p=J(f),g=await a.getDimensions(c),h="y"===f,y=h?"top":"left",b=h?"bottom":"right",v=h?"clientHeight":"clientWidth",w=i.reference[p]+i.reference[f]-m[f]-i.floating[p],x=m[f]-i.reference[f],E=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let k=E?E[v]:0;k&&await(null==a.isElement?void 0:a.isElement(E))||(k=s.floating[v]||i.floating[p]);const N=w/2-x/2,C=k/2-g[p]/2-1,R=F(u[y],C),T=F(u[b],C),P=R,O=k-g[p]-T,S=k/2-g[p]/2+N,D=q(P,S,O),A=!l.arrow&&null!=X(o)&&S!==D&&i.reference[p]/2-(S<P?R:T)-g[p]/2<0,L=A?S<P?S-P:S-O:0;return{[f]:m[f]+L,data:{[f]:D,centerOffset:S-D-L,...A&&{alignmentOffset:L}},reset:A}}}),lt=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=Y(e,t),d={x:n,y:r},u=Q(o),m=Z(u);let f=d[m],p=d[u];const g=Y(s,t),h="number"==typeof g?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const e="y"===m?"height":"width",t=i.reference[m]-i.floating[e]+h.mainAxis,n=i.reference[m]+i.reference[e]-h.mainAxis;f<t?f=t:f>n&&(f=n)}if(c){var y,b;const e="y"===m?"width":"height",t=pe.has(K(o)),n=i.reference[u]-i.floating[e]+(t&&(null==(y=a.offset)?void 0:y[u])||0)+(t?0:h.crossAxis),r=i.reference[u]+i.reference[e]+(t?0:(null==(b=a.offset)?void 0:b[u])||0)-(t?h.crossAxis:0);p<n?p=n:p>r&&(p=r)}return{[m]:f,[u]:p}}}},ct=(e,t,n)=>{const r=new Map,o={platform:Qe,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=a.detectOverflow?a:{...a,detectOverflow:ue},l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:u}=de(c,r,l),m=r,f=0;const p={};for(let n=0;n<i.length;n++){const g=i[n];if(!g)continue;const{name:h,fn:y}=g,{x:b,y:v,data:w,reset:x}=await y({x:d,y:u,initialPlacement:r,placement:m,strategy:o,middlewareData:p,rects:c,platform:s,elements:{reference:e,floating:t}});d=null!=b?b:d,u=null!=v?v:u,p[h]={...p[h],...w},x&&f<50&&(f++,"object"==typeof x&&(x.placement&&(m=x.placement),x.rects&&(c=!0===x.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):x.rects),({x:d,y:u}=de(c,m,l))),n=-1)}return{x:d,y:u,placement:m,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})};var dt="undefined"!=typeof document?n:function(){};function ut(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!ut(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!ut(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function mt(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ft(e,t){const n=mt(e);return Math.round(t*n)/n}function pt(t){const n=e.useRef(t);return dt(()=>{n.current=t}),n}const gt=(e,t)=>{const n=nt(e);return{name:n.name,fn:n.fn,options:[e,t]}},ht=(e,t)=>{const n=rt(e);return{name:n.name,fn:n.fn,options:[e,t]}},yt=(e,t)=>{const n=ot(e);return{name:n.name,fn:n.fn,options:[e,t]}},bt=(e,t)=>{const n=it(e);return{name:n.name,fn:n.fn,options:[e,t]}},vt=(e,t)=>{const n=at(e);return{name:n.name,fn:n.fn,options:[e,t]}},wt=(e,t)=>{const n=(e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?st({element:n.current,padding:r}).fn(t):{}:n?st({element:n,padding:r}).fn(t):{};var o}}))(e);return{name:n.name,fn:n.fn,options:[e,t]}};var xt=e.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return d(T.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:d("polygon",{points:"0,0 30,0 15,10"})})});xt.displayName="Arrow";var Et=xt;var kt="Popper",[Nt,Ct]=E(kt),[Rt,Tt]=Nt(kt),Pt=t=>{const{__scopePopper:n,children:r}=t,[o,i]=e.useState(null);return d(Rt,{scope:n,anchor:o,onAnchorChange:i,children:r})};Pt.displayName=kt;var Ot="PopperAnchor",St=e.forwardRef((t,n)=>{const{__scopePopper:r,virtualRef:o,...i}=t,a=Tt(Ot,r),s=e.useRef(null),l=x(n,s),c=e.useRef(null);return e.useEffect(()=>{const e=c.current;c.current=o?.current||s.current,e!==c.current&&a.onAnchorChange(c.current)}),o?null:d(T.div,{...i,ref:l})});St.displayName=Ot;var Dt="PopperContent",[At,Lt]=Nt(Dt),zt=e.forwardRef((t,n)=>{const{__scopePopper:r,side:o="bottom",sideOffset:i=0,align:a="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:m=0,sticky:p="partial",hideWhenDetached:g=!1,updatePositionStrategy:h="optimized",onPlaced:y,...b}=t,v=Tt(Dt,r),[w,E]=e.useState(null),k=x(n,e=>E(e)),[N,C]=e.useState(null),R=function(t){const[n,r]=e.useState(void 0);return W(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const e=new ResizeObserver(e=>{if(!Array.isArray(e))return;if(!e.length)return;const n=e[0];let o,i;if("borderBoxSize"in n){const e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=t.offsetWidth,i=t.offsetHeight;r({width:o,height:i})});return e.observe(t,{box:"border-box"}),()=>e.unobserve(t)}r(void 0)},[t]),n}(N),O=R?.width??0,S=R?.height??0,D=o+("center"!==a?"-"+a:""),A="number"==typeof m?m:{top:0,right:0,bottom:0,left:0,...m},L=Array.isArray(u)?u:[u],z=L.length>0,M={padding:A,boundary:L.filter(_t),altBoundary:z},{refs:$,floatingStyles:_,placement:I,isPositioned:j,middlewareData:F}=function(t){void 0===t&&(t={});const{placement:n="bottom",strategy:r="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:c,open:d}=t,[u,m]=e.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[p,g]=e.useState(o);ut(p,o)||g(o);const[h,y]=e.useState(null),[b,v]=e.useState(null),w=e.useCallback(e=>{e!==N.current&&(N.current=e,y(e))},[]),x=e.useCallback(e=>{e!==C.current&&(C.current=e,v(e))},[]),E=a||h,k=s||b,N=e.useRef(null),C=e.useRef(null),R=e.useRef(u),T=null!=c,P=pt(c),O=pt(i),S=pt(d),D=e.useCallback(()=>{if(!N.current||!C.current)return;const e={placement:n,strategy:r,middleware:p};O.current&&(e.platform=O.current),ct(N.current,C.current,e).then(e=>{const t={...e,isPositioned:!1!==S.current};A.current&&!ut(R.current,t)&&(R.current=t,f.flushSync(()=>{m(t)}))})},[p,n,r,O,S]);dt(()=>{!1===d&&R.current.isPositioned&&(R.current.isPositioned=!1,m(e=>({...e,isPositioned:!1})))},[d]);const A=e.useRef(!1);dt(()=>(A.current=!0,()=>{A.current=!1}),[]),dt(()=>{if(E&&(N.current=E),k&&(C.current=k),E&&k){if(P.current)return P.current(E,k,D);D()}},[E,k,D,P,T]);const L=e.useMemo(()=>({reference:N,floating:C,setReference:w,setFloating:x}),[w,x]),z=e.useMemo(()=>({reference:E,floating:k}),[E,k]),M=e.useMemo(()=>{const e={position:r,left:0,top:0};if(!z.floating)return e;const t=ft(z.floating,u.x),n=ft(z.floating,u.y);return l?{...e,transform:"translate("+t+"px, "+n+"px)",...mt(z.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,l,z.floating,u.x,u.y]);return e.useMemo(()=>({...u,update:D,refs:L,elements:z,floatingStyles:M}),[u,D,L,z,M])}({strategy:"fixed",placement:D,whileElementsMounted:(...e)=>tt(...e,{animationFrame:"always"===h}),elements:{reference:v.anchor},middleware:[gt({mainAxis:i+S,alignmentAxis:s}),c&&ht({mainAxis:!0,crossAxis:!1,limiter:"partial"===p?{fn:lt(H).fn,options:[H,B]}:void 0,...M}),c&&yt({...M}),bt({...M,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),N&&wt({element:N,padding:l}),It({arrowWidth:O,arrowHeight:S}),g&&vt({strategy:"referenceHidden",...M})]});var H,B;const[G,V]=jt(I),U=P(y);W(()=>{j&&U?.()},[j,U]);const q=F.arrow?.x,Y=F.arrow?.y,K=0!==F.arrow?.centerOffset,[X,Z]=e.useState();return W(()=>{w&&Z(window.getComputedStyle(w).zIndex)},[w]),d("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{..._,transform:j?_.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:X,"--radix-popper-transform-origin":[F.transformOrigin?.x,F.transformOrigin?.y].join(" "),...F.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:d(At,{scope:r,placedSide:G,onArrowChange:C,arrowX:q,arrowY:Y,shouldHideArrow:K,children:d(T.div,{"data-side":G,"data-align":V,...b,ref:k,style:{...b.style,animation:j?void 0:"none"}})})})});zt.displayName=Dt;var Mt="PopperArrow",$t={top:"bottom",right:"left",bottom:"top",left:"right"},Wt=e.forwardRef(function(e,t){const{__scopePopper:n,...r}=e,o=Lt(Mt,n),i=$t[o.placedSide];return d("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:d(Et,{...r,ref:t,style:{...r.style,display:"block"}})})});function _t(e){return null!==e}Wt.displayName=Mt;var It=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,i=0!==o.arrow?.centerOffset,a=i?0:e.arrowWidth,s=i?0:e.arrowHeight,[l,c]=jt(n),d={start:"0%",center:"50%",end:"100%"}[c],u=(o.arrow?.x??0)+a/2,m=(o.arrow?.y??0)+s/2;let f="",p="";return"bottom"===l?(f=i?d:`${u}px`,p=-s+"px"):"top"===l?(f=i?d:`${u}px`,p=`${r.floating.height+s}px`):"right"===l?(f=-s+"px",p=i?d:`${m}px`):"left"===l&&(f=`${r.floating.width+s}px`,p=i?d:`${m}px`),{data:{x:f,y:p}}}});function jt(e){const[t,n="center"]=e.split("-");return[t,n]}var Ft=Pt,Ht=St,Bt=zt,Gt=Wt;var Vt=t=>{const{present:n,children:r}=t,o=function(t){const[n,r]=e.useState(),o=e.useRef(null),i=e.useRef(t),a=e.useRef("none"),s=t?"mounted":"unmounted",[l,c]=function(t,n){return e.useReducer((e,t)=>n[e][t]??e,t)}(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect(()=>{const e=Ut(o.current);a.current="mounted"===l?e:"none"},[l]),W(()=>{const e=o.current,n=i.current;if(n!==t){const r=a.current,o=Ut(e);if(t)c("MOUNT");else if("none"===o||"none"===e?.display)c("UNMOUNT");else{c(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}i.current=t}},[t,c]),W(()=>{if(n){let e;const t=n.ownerDocument.defaultView??window,r=r=>{const a=Ut(o.current).includes(CSS.escape(r.animationName));if(r.target===n&&a&&(c("ANIMATION_END"),!i.current)){const r=n.style.animationFillMode;n.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=r)})}},s=e=>{e.target===n&&(a.current=Ut(o.current))};return n.addEventListener("animationstart",s),n.addEventListener("animationcancel",r),n.addEventListener("animationend",r),()=>{t.clearTimeout(e),n.removeEventListener("animationstart",s),n.removeEventListener("animationcancel",r),n.removeEventListener("animationend",r)}}c("ANIMATION_END")},[n,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:e.useCallback(e=>{o.current=e?getComputedStyle(e):null,r(e)},[])}}(n),i="function"==typeof r?r({present:o.isPresent}):e.Children.only(r),a=x(o.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(i));return"function"==typeof r||o.isPresent?e.cloneElement(i,{ref:a}):null};function Ut(e){return e?.animationName||"none"}Vt.displayName="Presence";var qt=e[" useInsertionEffect ".trim().toString()]||W;function Yt({prop:t,defaultProp:n,onChange:r=()=>{},caller:o}){const[i,a,s]=function({defaultProp:t,onChange:n}){const[r,o]=e.useState(t),i=e.useRef(r),a=e.useRef(n);return qt(()=>{a.current=n},[n]),e.useEffect(()=>{i.current!==r&&(a.current?.(r),i.current=r)},[r,i]),[r,o,a]}({defaultProp:n,onChange:r}),l=void 0!==t,c=l?t:i;{const n=e.useRef(void 0!==t);e.useEffect(()=>{const e=n.current;if(e!==l){const t=e?"controlled":"uncontrolled",n=l?"controlled":"uncontrolled";console.warn(`${o} is changing from ${t} to ${n}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}n.current=l},[l,o])}const d=e.useCallback(e=>{if(l){const n=function(e){return"function"==typeof e}(e)?e(t):e;n!==t&&s.current?.(n)}else a(e)},[l,t,a,s]);return[c,d]}var Kt=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Xt=e.forwardRef((e,t)=>d(T.span,{...e,ref:t,style:{...Kt,...e.style}}));Xt.displayName="VisuallyHidden";var Zt=Xt,[Jt]=E("Tooltip",[Ct]),Qt=Ct(),en="TooltipProvider",tn=700,nn="tooltip.open",[rn,on]=Jt(en),an=t=>{const{__scopeTooltip:n,delayDuration:r=tn,skipDelayDuration:o=300,disableHoverableContent:i=!1,children:a}=t,s=e.useRef(!0),l=e.useRef(!1),c=e.useRef(0);return e.useEffect(()=>{const e=c.current;return()=>window.clearTimeout(e)},[]),d(rn,{scope:n,isOpenDelayedRef:s,delayDuration:r,onOpen:e.useCallback(()=>{window.clearTimeout(c.current),s.current=!1},[]),onClose:e.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.current=!0,o)},[o]),isPointerInTransitRef:l,onPointerInTransitChange:e.useCallback(e=>{l.current=e},[]),disableHoverableContent:i,children:a})};an.displayName=en;var sn="Tooltip",[ln,cn]=Jt(sn),dn=t=>{const{__scopeTooltip:n,children:r,open:o,defaultOpen:i,onOpenChange:a,disableHoverableContent:s,delayDuration:l}=t,c=on(sn,t.__scopeTooltip),u=Qt(n),[m,f]=e.useState(null),p=function(t){const[n,r]=e.useState(_());return W(()=>{r(e=>e??String(I++))},[t]),n?`radix-${n}`:""}(),g=e.useRef(0),h=s??c.disableHoverableContent,y=l??c.delayDuration,b=e.useRef(!1),[v,w]=Yt({prop:o,defaultProp:i??!1,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(nn))):c.onClose(),a?.(e)},caller:sn}),x=e.useMemo(()=>v?b.current?"delayed-open":"instant-open":"closed",[v]),E=e.useCallback(()=>{window.clearTimeout(g.current),g.current=0,b.current=!1,w(!0)},[w]),k=e.useCallback(()=>{window.clearTimeout(g.current),g.current=0,w(!1)},[w]),N=e.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{b.current=!0,w(!0),g.current=0},y)},[y,w]);return e.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),d(Ft,{...u,children:d(ln,{scope:n,contentId:p,open:v,stateAttribute:x,trigger:m,onTriggerChange:f,onTriggerEnter:e.useCallback(()=>{c.isOpenDelayedRef.current?N():E()},[c.isOpenDelayedRef,N,E]),onTriggerLeave:e.useCallback(()=>{h?k():(window.clearTimeout(g.current),g.current=0)},[k,h]),onOpen:E,onClose:k,disableHoverableContent:h,children:r})})};dn.displayName=sn;var un="TooltipTrigger",mn=e.forwardRef((t,n)=>{const{__scopeTooltip:r,...o}=t,i=cn(un,r),a=on(un,r),s=Qt(r),l=x(n,e.useRef(null),i.onTriggerChange),c=e.useRef(!1),u=e.useRef(!1),m=e.useCallback(()=>c.current=!1,[]);return e.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),d(Ht,{asChild:!0,...s,children:d(T.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...o,ref:l,onPointerMove:b(t.onPointerMove,e=>{"touch"!==e.pointerType&&(u.current||a.isPointerInTransitRef.current||(i.onTriggerEnter(),u.current=!0))}),onPointerLeave:b(t.onPointerLeave,()=>{i.onTriggerLeave(),u.current=!1}),onPointerDown:b(t.onPointerDown,()=>{i.open&&i.onClose(),c.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:b(t.onFocus,()=>{c.current||i.onOpen()}),onBlur:b(t.onBlur,i.onClose),onClick:b(t.onClick,i.onClose)})})});mn.displayName=un;var[fn,pn]=Jt("TooltipPortal",{forceMount:void 0}),gn="TooltipContent",hn=e.forwardRef((e,t)=>{const n=pn(gn,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,a=cn(gn,e.__scopeTooltip);return d(Vt,{present:r||a.open,children:a.disableHoverableContent?d(xn,{side:o,...i,ref:t}):d(yn,{side:o,...i,ref:t})})}),yn=e.forwardRef((t,n)=>{const r=cn(gn,t.__scopeTooltip),o=on(gn,t.__scopeTooltip),i=e.useRef(null),a=x(n,i),[s,l]=e.useState(null),{trigger:c,onClose:u}=r,m=i.current,{onPointerInTransitChange:f}=o,p=e.useCallback(()=>{l(null),f(!1)},[f]),g=e.useCallback((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,function(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}(r,n.getBoundingClientRect())),i=function(e){const t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0),function(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const r=e[n];for(;t.length>=2;){const e=t[t.length-1],n=t[t.length-2];if(!((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x)))break;t.pop()}t.push(r)}t.pop();const n=[];for(let t=e.length-1;t>=0;t--){const r=e[t];for(;n.length>=2;){const e=n[n.length-1],t=n[n.length-2];if(!((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x)))break;n.pop()}n.push(r)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...o,...function(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())]);l(i),f(!0)},[f]);return e.useEffect(()=>()=>p(),[p]),e.useEffect(()=>{if(c&&m){const e=e=>g(e,m),t=e=>g(e,c);return c.addEventListener("pointerleave",e),m.addEventListener("pointerleave",t),()=>{c.removeEventListener("pointerleave",e),m.removeEventListener("pointerleave",t)}}},[c,m,g,p]),e.useEffect(()=>{if(s){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||m?.contains(t),o=!function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const a=t[e],s=t[i],l=a.x,c=a.y,d=s.x,u=s.y;c>r!=u>r&&n<(d-l)*(r-c)/(u-c)+l&&(o=!o)}return o}(n,s);r?p():o&&(p(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[c,m,s,u,p]),d(xn,{...t,ref:a})}),[bn,vn]=Jt(sn,{isInside:!1}),wn=function(e){const t=({children:e})=>d(u,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=C,t}("TooltipContent"),xn=e.forwardRef((t,n)=>{const{__scopeTooltip:r,children:o,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:s,...l}=t,c=cn(gn,r),u=Qt(r),{onClose:f}=c;return e.useEffect(()=>(document.addEventListener(nn,f),()=>document.removeEventListener(nn,f)),[f]),e.useEffect(()=>{if(c.trigger){const e=e=>{const t=e.target;t?.contains(c.trigger)&&f()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[c.trigger,f]),d(z,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:f,children:m(Bt,{"data-state":c.stateAttribute,...u,...l,ref:n,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[d(wn,{children:o}),d(bn,{scope:r,isInside:!0,children:d(Zt,{id:c.contentId,role:"tooltip",children:i||o})})]})})});hn.displayName=gn;var En="TooltipArrow";e.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Qt(n);return vn(En,n).isInside?null:d(Gt,{...o,...r,ref:t})}).displayName=En;var kn=an,Nn=dn,Cn=mn,Rn=hn;function Tn(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Tn(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const Pn=e=>{const t=An(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),On(n,t)||Dn(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},On=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?On(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const i=e.join("-");return t.validators.find(({validator:e})=>e(i))?.classGroupId},Sn=/^\[(.+)\]$/,Dn=e=>{if(Sn.test(e)){const t=Sn.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},An=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return $n(Object.entries(e.classGroups),n).forEach(([e,n])=>{Ln(n,r,e,t)}),r},Ln=(e,t,n,r)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:zn(t,e)).classGroupId=n)}if("function"==typeof e)return Mn(e)?void Ln(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach(([e,o])=>{Ln(o,zn(t,e),n,r)})})},zn=(e,t)=>{let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},Mn=e=>e.isThemeGetter,$n=(e,t)=>t?e.map(([e,n])=>[e,n.map(e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,n])=>[t+e,n])):e)]):e,Wn=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}},_n=e=>{const{separator:t,experimentalParseClassName:n}=e,r=1===t.length,o=t[0],i=t.length,a=e=>{const n=[];let a,s=0,l=0;for(let c=0;c<e.length;c++){let d=e[c];if(0===s){if(d===o&&(r||e.slice(c,c+i)===t)){n.push(e.slice(l,c)),l=c+i;continue}if("/"===d){a=c;continue}}"["===d?s++:"]"===d&&s--}const c=0===n.length?e:e.substring(l),d=c.startsWith("!");return{modifiers:n,hasImportantModifier:d,baseClassName:d?c.substring(1):c,maybePostfixModifierPosition:a&&a>l?a-l:void 0}};return n?e=>n({className:e,parseClassName:a}):a},In=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)}),t.push(...n.sort()),t},jn=/\s+/;function Fn(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=Hn(e))&&(r&&(r+=" "),r+=t);return r}const Hn=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Hn(e[r]))&&(n&&(n+=" "),n+=t);return n};function Bn(e,...t){let n,r,o,i=function(s){const l=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:Wn(e.cacheSize),parseClassName:_n(e),...Pn(e)}))(l),r=n.cache.get,o=n.cache.set,i=a,a(s)};function a(e){const t=r(e);if(t)return t;const i=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],a=e.trim().split(jn);let s="";for(let e=a.length-1;e>=0;e-=1){const t=a[e],{modifiers:l,hasImportantModifier:c,baseClassName:d,maybePostfixModifierPosition:u}=n(t);let m=Boolean(u),f=r(m?d.substring(0,u):d);if(!f){if(!m){s=t+(s.length>0?" "+s:s);continue}if(f=r(d),!f){s=t+(s.length>0?" "+s:s);continue}m=!1}const p=In(l).join(":"),g=c?p+"!":p,h=g+f;if(i.includes(h))continue;i.push(h);const y=o(f,m);for(let e=0;e<y.length;++e){const t=y[e];i.push(g+t)}s=t+(s.length>0?" "+s:s)}return s})(e,n);return o(e,i),i}return function(){return i(Fn.apply(null,arguments))}}const Gn=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},Vn=/^\[(?:([a-z-]+):)?(.+)\]$/i,Un=/^\d+\/\d+$/,qn=new Set(["px","full","screen"]),Yn=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Kn=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Xn=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Zn=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Jn=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Qn=e=>tr(e)||qn.has(e)||Un.test(e),er=e=>pr(e,"length",gr),tr=e=>Boolean(e)&&!Number.isNaN(Number(e)),nr=e=>pr(e,"number",tr),rr=e=>Boolean(e)&&Number.isInteger(Number(e)),or=e=>e.endsWith("%")&&tr(e.slice(0,-1)),ir=e=>Vn.test(e),ar=e=>Yn.test(e),sr=new Set(["length","size","percentage"]),lr=e=>pr(e,sr,hr),cr=e=>pr(e,"position",hr),dr=new Set(["image","url"]),ur=e=>pr(e,dr,br),mr=e=>pr(e,"",yr),fr=()=>!0,pr=(e,t,n)=>{const r=Vn.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))},gr=e=>Kn.test(e)&&!Xn.test(e),hr=()=>!1,yr=e=>Zn.test(e),br=e=>Jn.test(e),vr=Bn(()=>{const e=Gn("colors"),t=Gn("spacing"),n=Gn("blur"),r=Gn("brightness"),o=Gn("borderColor"),i=Gn("borderRadius"),a=Gn("borderSpacing"),s=Gn("borderWidth"),l=Gn("contrast"),c=Gn("grayscale"),d=Gn("hueRotate"),u=Gn("invert"),m=Gn("gap"),f=Gn("gradientColorStops"),p=Gn("gradientColorStopPositions"),g=Gn("inset"),h=Gn("margin"),y=Gn("opacity"),b=Gn("padding"),v=Gn("saturate"),w=Gn("scale"),x=Gn("sepia"),E=Gn("skew"),k=Gn("space"),N=Gn("translate"),C=()=>["auto",ir,t],R=()=>[ir,t],T=()=>["",Qn,er],P=()=>["auto",tr,ir],O=()=>["","0",ir],S=()=>[tr,ir];return{cacheSize:500,separator:":",theme:{colors:[fr],spacing:[Qn,er],blur:["none","",ar,ir],brightness:S(),borderColor:[e],borderRadius:["none","","full",ar,ir],borderSpacing:R(),borderWidth:T(),contrast:S(),grayscale:O(),hueRotate:S(),invert:O(),gap:R(),gradientColorStops:[e],gradientColorStopPositions:[or,er],inset:C(),margin:C(),opacity:S(),padding:R(),saturate:S(),scale:S(),sepia:O(),skew:S(),space:R(),translate:R()},classGroups:{aspect:[{aspect:["auto","square","video",ir]}],container:["container"],columns:[{columns:[ar]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",ir]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",rr,ir]}],basis:[{basis:C()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ir]}],grow:[{grow:O()}],shrink:[{shrink:O()}],order:[{order:["first","last","none",rr,ir]}],"grid-cols":[{"grid-cols":[fr]}],"col-start-end":[{col:["auto",{span:["full",rr,ir]},ir]}],"col-start":[{"col-start":P()}],"col-end":[{"col-end":P()}],"grid-rows":[{"grid-rows":[fr]}],"row-start-end":[{row:["auto",{span:[rr,ir]},ir]}],"row-start":[{"row-start":P()}],"row-end":[{"row-end":P()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ir]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ir]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],me:[{me:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ir,t]}],"min-w":[{"min-w":[ir,t,"min","max","fit"]}],"max-w":[{"max-w":[ir,t,"none","full","min","max","fit","prose",{screen:[ar]},ar]}],h:[{h:[ir,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ir,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ir,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ir,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ar,er]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",nr]}],"font-family":[{font:[fr]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ir]}],"line-clamp":[{"line-clamp":["none",tr,nr]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Qn,ir]}],"list-image":[{"list-image":["none",ir]}],"list-style-type":[{list:["none","disc","decimal",ir]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Qn,er]}],"underline-offset":[{"underline-offset":["auto",Qn,ir]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ir]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ir]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",cr]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",lr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ur]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[p]}],"gradient-via-pos":[{via:[p]}],"gradient-to-pos":[{to:[p]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[Qn,ir]}],"outline-w":[{outline:[Qn,er]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:T()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[Qn,er]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ar,mr]}],"shadow-color":[{shadow:[fr]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",ar,ir]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[u]}],saturate:[{saturate:[v]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ir]}],duration:[{duration:S()}],ease:[{ease:["linear","in","out","in-out",ir]}],delay:[{delay:S()}],animate:[{animate:["none","spin","ping","pulse","bounce",ir]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[rr,ir]}],"translate-x":[{"translate-x":[N]}],"translate-y":[{"translate-y":[N]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ir]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ir]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ir]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Qn,er,nr]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});function wr(...e){return vr(function(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Tn(e))&&(r&&(r+=" "),r+=t);return r}(e))}const xr=kn,Er=Nn,kr=Cn,Nr=e.forwardRef(({className:t,sideOffset:n=4,...r},o)=>e.createElement(Rn,{ref:o,sideOffset:n,className:wr("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...r}));Nr.displayName=Rn.displayName;const Cr=t.forwardRef(({id:e,className:n,align:i,side:a,sideOffset:s=8,visible:l,content:c,width:d,delayDuration:u=100,children:m,...f},p)=>{const[g,h]=r(!1);return o(()=>{g&&setTimeout(()=>h(!1),2e3)},[g]),t.createElement(xr,null,t.createElement(Er,{open:l,delayDuration:u},t.createElement(kr,{asChild:!0,ref:p,...f},m),t.createElement(Nr,{id:e,className:y("gyramais-tooltip-container",n),align:i,side:a,sideOffset:s,style:{maxWidth:d||"auto"},onClick:()=>{"string"==typeof c&&(navigator.clipboard.writeText(c),h(!0))}},"string"==typeof c?t.createElement("div",{className:y("gyramais-tooltip-content",n)},g?"Copiado!":c):c)))});Cr.displayName="Tooltip";const Rr=5.25,Tr=2*Math.PI*Rr,Pr=({done:e,total:n})=>{const r=n>0?Math.min(1,Math.max(0,e/n)):0;return r>=1?t.createElement("svg",{className:"gyramais-guide-ring gyramais-guide-ring-done",width:"14",height:"14",viewBox:"0 0 14 14","aria-hidden":"true",focusable:"false"},t.createElement("circle",{cx:"7",cy:"7",r:"7"}),t.createElement("path",{d:"M4.2 7.2 6.1 9.1 9.9 5.1"})):t.createElement("svg",{className:"gyramais-guide-ring",width:"14",height:"14",viewBox:"0 0 14 14","aria-hidden":"true",focusable:"false"},t.createElement("circle",{className:"gyramais-guide-ring-track",cx:"7",cy:"7",r:Rr}),t.createElement("circle",{className:"gyramais-guide-ring-value",cx:"7",cy:"7",r:Rr,strokeDasharray:Tr,strokeDashoffset:Tr*(1-r),transform:"rotate(-90 7 7)"}))},Or=t.forwardRef(({id:e,className:n,icon:r,label:o,progress:i,count:a,collapsed:s=!1,active:l=!1,onClick:c,...d},u)=>{const m=!!i&&i.total>0,f=m&&i.done>=i.total,p="number"==typeof a&&a>0,g=p?a>99?"99+":String(a):"",h=((e,t,n)=>{const r=[e];return t&&t.total>0&&r.push(`${t.done} de ${t.total} concluídos`),n&&n>0&&r.push(1===n?"1 não vista":`${n} não vistas`),r.join(", ")})(o,i,a),b=t.createElement("button",{ref:s?void 0:u,id:e,type:"button","aria-label":h,"data-active":l?"true":void 0,...d,onClick:c,className:y("gyramais-guide-launcher",{"is-active":l,"is-collapsed":s},n)},r||s?t.createElement("span",{className:"gyramais-guide-launcher-icon","aria-hidden":"true"},r??t.createElement("span",{className:"gyramais-guide-launcher-initial"},o.trim().charAt(0).toUpperCase()),s&&(p||m&&!f)?t.createElement("span",{className:"gyramais-guide-launcher-dot"}):null):null,s?null:t.createElement(t.Fragment,null,t.createElement("span",{className:"gyramais-guide-launcher-label"},o),m?t.createElement("span",{className:y("gyramais-guide-launcher-progress",{"is-complete":f}),"aria-hidden":"true"},t.createElement(Pr,{done:i.done,total:i.total}),t.createElement("span",null,i.done,"/",i.total)):null,p?t.createElement("span",{className:"gyramais-guide-launcher-count","aria-hidden":"true"},g):null));if(!s)return b;const v=m?`${o} ${i.done}/${i.total}`:p?`${o} (${g})`:o;return t.createElement(Cr,{ref:u,content:v,side:"right",delayDuration:200},b)});Or.displayName="GuideLauncher";var Sr={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Dr=(e,t)=>{const n=i(({color:n="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:i,children:s,...l},c)=>{return a("svg",{ref:c,...Sr,width:r,height:r,stroke:n,strokeWidth:i?24*Number(o)/Number(r):o,className:`lucide lucide-${d=e,d.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,...l},[...t.map(([e,t])=>a(e,t)),...(Array.isArray(s)?s:[s])||[]]);var d});return n.displayName=`${e}`,n},Ar=Dr("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),Lr=Dr("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),zr=Dr("Megaphone",[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]]),Mr=Dr("MoreHorizontal",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]),$r=({id:e,className:n,variant:r="text",lines:o=3,size:i=40,width:a,height:s,animated:l=!0,decorative:c=!1})=>{const d=l?"":"gyramais-skeleton-static",u=c?{"aria-hidden":!0}:{role:"status","aria-label":"Carregando"};if("text"===r)return t.createElement("div",{id:e,...u,className:y("gyramais-skeleton-lines",n)},Array.from({length:o}).map((e,n)=>t.createElement("span",{key:n,className:y("gyramais-skeleton gyramais-skeleton-line",d),style:{width:a??(o>1&&n===o-1?"60%":"100%"),height:s}})));const m="circle"===r;return t.createElement("span",{id:e,...u,className:y("gyramais-skeleton",`gyramais-skeleton-${r}`,d,n),style:{width:m?i:a??"100%",height:m?i:s??"100%"}})},Wr=()=>s(e=>{if(!["ArrowDown","ArrowUp","Home","End"].includes(e.key))return;const t=e.currentTarget,n=Array.from(t.querySelectorAll("[data-guide-roving]:not([disabled])"));if(!n.length)return;const r=n.indexOf(document.activeElement);let o=r;"ArrowDown"===e.key&&(o=r<0?0:(r+1)%n.length),"ArrowUp"===e.key&&(o=r<=0?n.length-1:r-1),"Home"===e.key&&(o=0),"End"===e.key&&(o=n.length-1),e.preventDefault(),n[o]?.focus()},[]),_r=()=>t.createElement("svg",{className:"gyramais-guide-check",width:"16",height:"16",viewBox:"0 0 16 16","aria-hidden":"true",focusable:"false"},t.createElement("path",{d:"M4.4 8.3 6.9 10.7 11.6 5.6"})),Ir=({items:e})=>{const[n,i]=r(!1),a=c(null),s=c(null),d=l(),u=Wr();o(()=>{if(!n)return;const e=a.current?.querySelector("[data-guide-roving]");e?.focus();const t=e=>{a.current?.contains(e.target)||i(!1)},r=e=>{"Escape"===e.key&&(e.preventDefault(),i(!1),s.current?.focus())};return document.addEventListener("pointerdown",t),window.addEventListener("keydown",r,!0),()=>{document.removeEventListener("pointerdown",t),window.removeEventListener("keydown",r,!0)}},[n]);const m=()=>{i(!1),s.current?.focus()};return t.createElement("div",{className:"gyramais-guide-menu",ref:a},t.createElement("button",{ref:s,type:"button",className:"gyramais-guide-icon-button","aria-label":"Mais opções","aria-haspopup":"menu","aria-expanded":n,"aria-controls":n?d:void 0,onClick:()=>i(e=>!e)},t.createElement(Mr,{size:16,strokeWidth:1.75,"aria-hidden":"true"})),n?t.createElement("div",{id:d,role:"menu","aria-label":"Mais opções",className:"gyramais-guide-menu-list",onKeyDown:e=>{if("Tab"===e.key)return e.stopPropagation(),void m();u(e)}},e.map(e=>t.createElement("button",{key:e.label,type:"button",role:"menuitem","data-guide-roving":!0,className:"gyramais-guide-menu-item",onClick:()=>{m(),e.onClick()}},e.label))):null)},jr=({id:e,className:n,title:i,subtitle:a,items:s,onMinimize:d,menu:u,footer:m,loading:f=!1,emptyText:p="Nenhum passo pendente.",animateKeys:g})=>{const h=l(),b=Wr(),v=s.length,w=s.filter(e=>e.done).length,x=s.find(e=>!e.done)?.key,E=v>0&&w===v,k=c(null),[N,C]=r(()=>new Set((g??[]).filter(e=>s.some(t=>t.key===e&&t.done)))),[R,T]=r(""),P=c(new Set);o(()=>{if(!N.size)return;const e=Array.from(N),t=window.setTimeout(()=>{P.current.delete(t),C(t=>{const n=new Set(t);return e.forEach(e=>n.delete(e)),n})},900);P.current.add(t)},[]),o(()=>{const e=new Map(s.map(e=>[e.key,!!e.done])),t=k.current;if(k.current=e,!t)return;const n=s.filter(e=>e.done&&!1===t.get(e.key));if(!n.length)return;const r=`Passo concluído: ${n[n.length-1].title}. ${w} de ${v} concluídos.`;T("");const o=window.setTimeout(()=>{P.current.delete(o),T(r)},50);P.current.add(o),C(e=>{const t=new Set(e);return n.forEach(e=>t.add(e.key)),t});const i=window.setTimeout(()=>{P.current.delete(i),C(e=>{const t=new Set(e);return n.forEach(e=>t.delete(e.key)),t})},900);P.current.add(i)},[s,w,v]),o(()=>{const e=P.current;return()=>e.forEach(e=>window.clearTimeout(e))},[]);const O=!!u&&u.length>0;return t.createElement("section",{id:e,"aria-labelledby":h,"aria-busy":f||void 0,className:y("gyramais-guide-card","gyramais-guide-checklist",n)},t.createElement("header",{className:"gyramais-guide-card-header"},t.createElement("div",{className:"gyramais-guide-card-heading"},t.createElement("h3",{id:h,className:"gyramais-guide-card-title"},i),a?t.createElement("p",{className:"gyramais-guide-card-subtitle"},a):null),O||d?t.createElement("div",{className:"gyramais-guide-card-actions"},O?t.createElement(Ir,{items:u}):null,d?t.createElement("button",{type:"button",className:"gyramais-guide-icon-button","aria-label":"Minimizar",onClick:d},t.createElement(Ar,{size:16,strokeWidth:1.75,"aria-hidden":"true"})):null):null),f?t.createElement("div",{className:"gyramais-guide-checklist-loading",role:"status","aria-label":"Carregando"},t.createElement("div",{className:"gyramais-guide-progress","aria-hidden":"true"},Array.from({length:5}).map((e,n)=>t.createElement("span",{key:n,className:"gyramais-guide-progress-segment"}))),t.createElement("div",{className:"gyramais-guide-skeleton-rows","aria-hidden":"true"},[78,64,86,58,70].map(e=>t.createElement("div",{key:e,className:"gyramais-guide-skeleton-row"},t.createElement($r,{variant:"circle",size:16,decorative:!0}),t.createElement($r,{variant:"block",height:10,width:`${e}%`,decorative:!0}))))):0===v?t.createElement("p",{className:"gyramais-guide-empty-text"},p):t.createElement(t.Fragment,null,t.createElement("div",{className:"gyramais-guide-progress-wrap"},t.createElement("div",{className:"gyramais-guide-progress",role:"progressbar","aria-label":`Progresso de ${i}`,"aria-valuemin":0,"aria-valuemax":v,"aria-valuenow":w,"aria-valuetext":`${w} de ${v} concluídos`},s.map(e=>t.createElement("span",{key:e.key,className:y("gyramais-guide-progress-segment",{"is-done":e.done})}))),t.createElement("p",{className:"gyramais-guide-progress-caption","aria-hidden":"true"},E?"Todos os passos concluídos":t.createElement(t.Fragment,null,t.createElement("span",{className:"gyramais-guide-num"},w," de ",v)," ","concluídos"))),t.createElement("ol",{className:"gyramais-guide-items",onKeyDown:b},s.map((e,n)=>{const r=e.key===x,o=`${h}-${n}-desc`;return t.createElement("li",{key:e.key},t.createElement("button",{type:"button","data-guide-roving":!0,"aria-describedby":e.description?o:void 0,onClick:e.onClick,className:y("gyramais-guide-item",{"is-done":e.done,"is-next":r,"is-just-done":N.has(e.key)})},t.createElement("span",{className:"gyramais-guide-item-mark","aria-hidden":"true"},e.done?t.createElement(_r,null):e.icon?t.createElement("span",{className:"gyramais-guide-item-icon"},e.icon):null),t.createElement("span",{className:"gyramais-guide-item-body"},t.createElement("span",{className:"gyramais-guide-item-title"},t.createElement("span",{className:"gyramais-guide-item-title-text"},e.title),e.done?t.createElement("span",{className:"gyramais-guide-sr-only"},", concluído"):r?t.createElement("span",{className:"gyramais-guide-sr-only"},", próximo passo"):null),e.description?t.createElement("span",{id:o,className:y("gyramais-guide-item-description",{"gyramais-guide-sr-only":!r})},e.description):null),e.meta?t.createElement("span",{className:"gyramais-guide-item-meta"},e.meta):null,t.createElement(Lr,{className:"gyramais-guide-item-chevron",size:14,strokeWidth:1.75,"aria-hidden":"true"})))}))),m?t.createElement("div",{className:"gyramais-guide-card-footer"},m):null,t.createElement("div",{className:"gyramais-guide-sr-only",role:"status","aria-live":"polite"},R))},Fr=({id:e,className:n,title:r,items:o,onMarkAllRead:i,emptyText:a="Nenhuma novidade por enquanto.",loading:s=!1})=>{const c=l(),d=Wr(),u=o.filter(e=>e.unread).length;return t.createElement("section",{id:e,"aria-labelledby":c,"aria-busy":s||void 0,className:y("gyramais-guide-card","gyramais-guide-news",n)},t.createElement("header",{className:"gyramais-guide-card-header"},t.createElement("div",{className:"gyramais-guide-card-heading is-inline"},t.createElement("h3",{id:c,className:"gyramais-guide-card-title"},r)),!s&&i&&u>0?t.createElement("button",{type:"button",className:"gyramais-guide-text-button",onClick:i},"Marcar todas como lidas"):null),s?t.createElement("div",{className:"gyramais-guide-news-loading",role:"status","aria-label":"Carregando"},[0,1,2].map(e=>t.createElement("div",{key:e,className:"gyramais-guide-news-skeleton","aria-hidden":"true"},t.createElement($r,{variant:"block",height:11,width:1===e?"58%":"72%",decorative:!0}),t.createElement($r,{variant:"block",height:9,width:"92%",decorative:!0}),t.createElement($r,{variant:"block",height:9,width:"40%",decorative:!0})))):0===o.length?t.createElement("div",{className:"gyramais-guide-empty"},t.createElement("span",{className:"gyramais-guide-empty-icon","aria-hidden":"true"},t.createElement(zr,{size:16,strokeWidth:1.75})),t.createElement("p",{className:"gyramais-guide-empty-text"},a)):t.createElement("ul",{className:"gyramais-guide-news-items",onKeyDown:d},o.map(e=>t.createElement("li",{key:e.key},t.createElement("button",{type:"button","data-guide-roving":!0,onClick:e.onClick,className:y("gyramais-guide-news-item",{"is-unread":e.unread})},t.createElement("span",{className:"gyramais-guide-news-body"},e.media?t.createElement("span",{className:"gyramais-guide-news-media","aria-hidden":"true"},e.media):null,t.createElement("span",{className:"gyramais-guide-news-title"},t.createElement("span",{className:"gyramais-guide-news-dot","aria-hidden":"true"}),e.title,e.unread?t.createElement("span",{className:"gyramais-guide-sr-only"},", não vista"):null),e.summary?t.createElement("span",{className:"gyramais-guide-news-summary"},e.summary):null,e.date?t.createElement("span",{className:"gyramais-guide-news-date"},e.date):null))))))},Hr=({id:e,className:n,title:r,subtitle:o,options:i})=>{const a=l(),s=Wr();return t.createElement("div",{id:e,className:y("gyramais-guide-choice",n)},t.createElement("div",{className:"gyramais-guide-choice-header"},t.createElement("h2",{id:a,className:"gyramais-guide-choice-title"},r),o?t.createElement("p",{className:"gyramais-guide-choice-subtitle"},o):null),t.createElement("ul",{className:"gyramais-guide-choice-options","aria-labelledby":a,onKeyDown:s},i.map(e=>t.createElement("li",{key:e.key},t.createElement("button",{type:"button","data-guide-roving":!0,onClick:e.onClick,className:y("gyramais-guide-choice-option",{"is-recommended":e.recommended})},e.icon?t.createElement("span",{className:"gyramais-guide-choice-icon","aria-hidden":"true"},e.icon):null,t.createElement("span",{className:"gyramais-guide-choice-body"},t.createElement("span",{className:"gyramais-guide-choice-option-title"},e.title,e.recommended?t.createElement("span",{className:"gyramais-guide-choice-badge"},"Recomendado"):null),e.description?t.createElement("span",{className:"gyramais-guide-choice-description"},e.description):null),t.createElement(Lr,{className:"gyramais-guide-choice-chevron",size:16,strokeWidth:1.75,"aria-hidden":"true"}))))))},Br=({id:e,className:n,title:r,action:o,items:i,more:a,collapsed:s=!1,collapsedIcon:c,loading:d=!1,emptyText:u})=>{const m=l();if(s)return o?t.createElement("div",{id:e,className:y("gyramais-sider-list","is-collapsed",n)},t.createElement(Cr,{content:o.label,side:"right",delayDuration:200},t.createElement("button",{type:"button","aria-label":o.label,className:"gyramais-sider-list-collapsed-action",onClick:o.onClick},c??o.icon))):null;const f=!d&&0===i.length;return f&&!u?null:t.createElement("section",{id:e,"aria-labelledby":m,"aria-busy":d||void 0,className:y("gyramais-sider-list",n)},t.createElement("div",{className:"gyramais-sider-list-header"},t.createElement("h3",{id:m,className:"gyramais-sider-list-title"},r),o?t.createElement(Cr,{content:o.label,side:"top",delayDuration:300},t.createElement("button",{type:"button","aria-label":o.label,className:"gyramais-sider-list-action",onClick:o.onClick},o.icon)):null),d?t.createElement("div",{className:"gyramais-sider-list-loading",role:"status","aria-label":"Carregando"},["82%","64%","74%"].map(e=>t.createElement("div",{key:e,className:"gyramais-sider-list-skeleton","aria-hidden":"true"},t.createElement($r,{variant:"block",height:10,width:e,decorative:!0})))):f?t.createElement("p",{className:"gyramais-sider-list-empty"},u):t.createElement("ul",{className:"gyramais-sider-list-items"},i.map(e=>t.createElement("li",{key:e.key},t.createElement("button",{type:"button",title:e.label,"aria-current":e.active?"true":void 0,onClick:e.onClick,className:y("gyramais-sider-list-item",{"is-active":e.active})},e.icon?t.createElement("span",{className:"gyramais-sider-list-item-icon","aria-hidden":"true"},e.icon):null,t.createElement("span",{className:"gyramais-sider-list-item-label"},e.label))))),!a||d||f?null:t.createElement("button",{type:"button",className:"gyramais-sider-list-more",onClick:a.onClick},t.createElement("span",null,a.label),t.createElement(Lr,{size:12,strokeWidth:2,"aria-hidden":"true"})))};export{jr as GuideChecklist,Hr as GuideChoice,Or as GuideLauncher,Fr as GuideNewsList,Br as SiderList};
|
|
7
7
|
//# sourceMappingURL=index.js.map
|