@gyramais/gyra-design 0.2.49 → 0.2.52

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.
Files changed (56) hide show
  1. package/dist/components/ContextMenu/index.js +1 -1
  2. package/dist/components/ContextMenu/index.js.map +1 -1
  3. package/dist/components/Drawer/Drawer.d.ts +25 -1
  4. package/dist/components/Drawer/index.js +7 -7
  5. package/dist/components/Drawer/index.js.map +1 -1
  6. package/dist/components/DropdownMenu/index.js +1 -1
  7. package/dist/components/DropdownMenu/index.js.map +1 -1
  8. package/dist/components/Modal/Modal.d.ts +11 -1
  9. package/dist/components/Modal/index.js +9 -9
  10. package/dist/components/Modal/index.js.map +1 -1
  11. package/dist/components/MultiSelectPicker/index.js +7 -7
  12. package/dist/components/MultiSelectPicker/index.js.map +1 -1
  13. package/dist/components/OperatorPicker/index.js +1 -1
  14. package/dist/components/OperatorPicker/index.js.map +1 -1
  15. package/dist/components/PickerPopover/index.js +1 -1
  16. package/dist/components/PickerPopover/index.js.map +1 -1
  17. package/dist/components/Popover/Popover.d.ts +16 -1
  18. package/dist/components/Popover/index.js +1 -1
  19. package/dist/components/Popover/index.js.map +1 -1
  20. package/dist/components/Rail/Rail.d.ts +19 -5
  21. package/dist/components/Rail/RailInlineSelect.d.ts +44 -0
  22. package/dist/components/Rail/RailMini.d.ts +11 -7
  23. package/dist/components/Rail/RailStep.d.ts +8 -13
  24. package/dist/components/Rail/index.d.ts +1 -0
  25. package/dist/components/Rail/index.js +7 -7
  26. package/dist/components/Rail/index.js.map +1 -1
  27. package/dist/components/Rail/labels.d.ts +34 -5
  28. package/dist/components/Rail/types.d.ts +53 -8
  29. package/dist/components/RuleSearchPicker/index.js +1 -1
  30. package/dist/components/RuleSearchPicker/index.js.map +1 -1
  31. package/dist/components/SegmentedPicker/index.js +1 -1
  32. package/dist/components/SegmentedPicker/index.js.map +1 -1
  33. package/dist/emails/balance-sheet-finalized/components/Drawer/Drawer.d.ts +25 -1
  34. package/dist/emails/balance-sheet-finalized/components/Modal/Modal.d.ts +11 -1
  35. package/dist/emails/balance-sheet-finalized/components/Popover/Popover.d.ts +16 -1
  36. package/dist/emails/balance-sheet-finalized/components/Rail/Rail.d.ts +19 -5
  37. package/dist/emails/balance-sheet-finalized/components/Rail/RailInlineSelect.d.ts +44 -0
  38. package/dist/emails/balance-sheet-finalized/components/Rail/RailMini.d.ts +11 -7
  39. package/dist/emails/balance-sheet-finalized/components/Rail/RailStep.d.ts +8 -13
  40. package/dist/emails/balance-sheet-finalized/components/Rail/index.d.ts +1 -0
  41. package/dist/emails/balance-sheet-finalized/components/Rail/labels.d.ts +34 -5
  42. package/dist/emails/balance-sheet-finalized/components/Rail/types.d.ts +53 -8
  43. package/dist/emails/balance-sheet-finalized/index.d.ts +33 -64
  44. package/dist/emails/email/components/Drawer/Drawer.d.ts +25 -1
  45. package/dist/emails/email/components/Modal/Modal.d.ts +11 -1
  46. package/dist/emails/email/components/Popover/Popover.d.ts +16 -1
  47. package/dist/emails/email/components/Rail/Rail.d.ts +19 -5
  48. package/dist/emails/email/components/Rail/RailInlineSelect.d.ts +44 -0
  49. package/dist/emails/email/components/Rail/RailMini.d.ts +11 -7
  50. package/dist/emails/email/components/Rail/RailStep.d.ts +8 -13
  51. package/dist/emails/email/components/Rail/index.d.ts +1 -0
  52. package/dist/emails/email/components/Rail/labels.d.ts +34 -5
  53. package/dist/emails/email/components/Rail/types.d.ts +53 -8
  54. package/dist/emails/email/index.d.ts +94 -64
  55. package/dist/index.css +769 -249
  56. package/package.json +1 -1
@@ -3,7 +3,7 @@
3
3
  Copyright (c) 2018 Jed Watson.
4
4
  Licensed under the MIT License (MIT), see
5
5
  http://jedwatson.github.io/classnames
6
- */h=g,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}h.exports?(t.default=t,h.exports=t):window.classNames=t}();var v=m(g.exports);function b(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function w(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function x(...e){return t=>{let n=!1;const r=e.map(e=>{const r=w(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():w(e[t],null)}}}}function E(...t){return e.useCallback(x(...t),t)}function S(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,c=r?.[t]?.[a]||i,l=e.useMemo(()=>s,Object.values(s));return u(c.Provider,{value:l,children:o})};return s.displayName=n+"Provider",[s,function(r,s){const c=s?.[t]?.[a]||i,l=e.useContext(c);if(l)return l;if(void 0!==o)return o;throw new Error(`\`${r}\` must be used within \`${n}\``)}]},O(o,...n)]}function O(...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 k(t){const n=C(t),r=e.forwardRef((t,r)=>{const{children:o,...i}=t,a=e.Children.toArray(o),s=a.find($);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 u(n,{...i,ref:r,children:e.isValidElement(t)?e.cloneElement(t,void 0,o):null})}return u(n,{...i,ref:r,children:o})});return r.displayName=`${t}.Slot`,r}function C(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?x(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 _=Symbol("radix.slottable");function $(t){return e.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===_}var P=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((t,n)=>{const r=k(`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),u(a,{...i,ref:t})});return o.displayName=`Primitive.${n}`,{...t,[n]:o}},{});function N(t){const n=e.useRef(t);return e.useEffect(()=>{n.current=t}),e.useMemo(()=>(...e)=>n.current?.(...e),[])}var A,T="dismissableLayer.update",R="dismissableLayer.pointerDownOutside",M="dismissableLayer.focusOutside",j=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),I=e.forwardRef((t,n)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:c,...l}=t,f=e.useContext(j),[d,p]=e.useState(null),m=d?.ownerDocument??globalThis?.document,[,y]=e.useState({}),h=E(n,e=>p(e)),g=Array.from(f.layers),[v]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),w=g.indexOf(v),x=d?g.indexOf(d):-1,S=f.layersWithOutsidePointerEventsDisabled.size>0,O=x>=w,k=function(t,n=globalThis?.document){const r=N(t),o=e.useRef(!1),i=e.useRef(()=>{});return e.useEffect(()=>{const e=e=>{if(e.target&&!o.current){let t=function(){L(R,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=[...f.branches].some(e=>e.contains(t));O&&!n&&(i?.(e),s?.(e),e.defaultPrevented||c?.())},m),C=function(t,n=globalThis?.document){const r=N(t),o=e.useRef(!1);return e.useEffect(()=>{const e=e=>{if(e.target&&!o.current){L(M,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;[...f.branches].some(e=>e.contains(t))||(a?.(e),s?.(e),e.defaultPrevented||c?.())},m);return function(t,n=globalThis?.document){const r=N(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=>{x===f.layers.size-1&&(o?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))},m),e.useEffect(()=>{if(d)return r&&(0===f.layersWithOutsidePointerEventsDisabled.size&&(A=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(d)),f.layers.add(d),z(),()=>{r&&1===f.layersWithOutsidePointerEventsDisabled.size&&(m.body.style.pointerEvents=A)}},[d,m,r,f]),e.useEffect(()=>()=>{d&&(f.layers.delete(d),f.layersWithOutsidePointerEventsDisabled.delete(d),z())},[d,f]),e.useEffect(()=>{const e=()=>y({});return document.addEventListener(T,e),()=>document.removeEventListener(T,e)},[]),u(P.div,{...l,ref:h,style:{pointerEvents:S?O?"auto":"none":void 0,...t.style},onFocusCapture:b(t.onFocusCapture,C.onFocusCapture),onBlurCapture:b(t.onBlurCapture,C.onBlurCapture),onPointerDownCapture:b(t.onPointerDownCapture,k.onPointerDownCapture)})});I.displayName="DismissableLayer";var D=e.forwardRef((t,n)=>{const r=e.useContext(j),o=e.useRef(null),i=E(n,o);return e.useEffect(()=>{const e=o.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),u(P.div,{...t,ref:i})});function z(){const e=new CustomEvent(T);document.dispatchEvent(e)}function L(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&&d.flushSync(()=>e.dispatchEvent(t))}(o,i):o.dispatchEvent(i)}D.displayName="DismissableLayerBranch";var F=0;function V(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var W="focusScope.autoFocusOnMount",B="focusScope.autoFocusOnUnmount",U={bubbles:!1,cancelable:!0},H=e.forwardRef((t,n)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...s}=t,[c,l]=e.useState(null),f=N(i),d=N(a),p=e.useRef(null),m=E(n,e=>l(e)),y=e.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;e.useEffect(()=>{if(o){let e=function(e){if(y.paused||!c)return;const t=e.target;c.contains(t)?p.current=t:Y(p.current,{select:!0})},t=function(e){if(y.paused||!c)return;const t=e.relatedTarget;null!==t&&(c.contains(t)||Y(p.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&Y(c)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return c&&r.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[o,c,y.paused]),e.useEffect(()=>{if(c){X.add(y);const t=document.activeElement;if(!c.contains(t)){const n=new CustomEvent(W,U);c.addEventListener(W,f),c.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Y(r,{select:t}),document.activeElement!==n)return}((e=G(c),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&Y(c))}return()=>{c.removeEventListener(W,f),setTimeout(()=>{const e=new CustomEvent(B,U);c.addEventListener(B,d),c.dispatchEvent(e),e.defaultPrevented||Y(t??document.body,{select:!0}),c.removeEventListener(B,d),X.remove(y)},0)}}var e},[c,f,d,y]);const h=e.useCallback(e=>{if(!r&&!o)return;if(y.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[o,i]=function(e){const t=G(e),n=K(t,e),r=K(t.reverse(),e);return[n,r]}(t);o&&i?e.shiftKey||n!==i?e.shiftKey&&n===o&&(e.preventDefault(),r&&Y(i,{select:!0})):(e.preventDefault(),r&&Y(o,{select:!0})):n===t&&e.preventDefault()}},[r,o,y.paused]);return u(P.div,{tabIndex:-1,...s,ref:m,onKeyDown:h})});function G(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function K(e,t){for(const n of e)if(!q(n,{upTo:t}))return n}function q(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function Y(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}H.displayName="FocusScope";var X=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=J(e,t),e.unshift(t)},remove(t){e=J(e,t),e[0]?.resume()}}}();function J(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var Z=globalThis?.document?e.useLayoutEffect:()=>{},Q=e[" useId ".trim().toString()]||(()=>{}),ee=0;function te(t){const[n,r]=e.useState(Q());return Z(()=>{r(e=>e??String(ee++))},[t]),t||(n?`radix-${n}`:"")}const ne=["top","right","bottom","left"],re=Math.min,oe=Math.max,ie=Math.round,ae=Math.floor,se=e=>({x:e,y:e}),ce={left:"right",right:"left",bottom:"top",top:"bottom"};function le(e,t,n){return oe(e,re(t,n))}function ue(e,t){return"function"==typeof e?e(t):e}function fe(e){return e.split("-")[0]}function de(e){return e.split("-")[1]}function pe(e){return"x"===e?"y":"x"}function me(e){return"y"===e?"height":"width"}function ye(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function he(e){return pe(ye(e))}function ge(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const ve=["left","right"],be=["right","left"],we=["top","bottom"],xe=["bottom","top"];function Ee(e,t,n,r){const o=de(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?be:ve:t?ve:be;case"left":case"right":return t?we:xe;default:return[]}}(fe(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(ge)))),i}function Se(e){const t=fe(e);return ce[t]+e.slice(t.length)}function Oe(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 ke(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 Ce(e,t,n){let{reference:r,floating:o}=e;const i=ye(t),a=he(t),s=me(a),c=fe(t),l="y"===i,u=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,d=r[s]/2-o[s]/2;let p;switch(c){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-o.width,y:f};break;default:p={x:r.x,y:r.y}}switch(de(t)){case"start":p[a]-=d*(n&&l?-1:1);break;case"end":p[a]+=d*(n&&l?-1:1)}return p}async function _e(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=ue(t,e),m=Oe(p),y=s[d?"floating"===f?"reference":"floating":f],h=ke(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(y)))||n?y:y.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:l,rootBoundary:u,strategy:c})),g="floating"===f?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,v=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),b=await(null==i.isElement?void 0:i.isElement(v))&&await(null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},w=ke(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:v,strategy:c}):g);return{top:(h.top-w.top+m.top)/b.y,bottom:(w.bottom-h.bottom+m.bottom)/b.y,left:(h.left-w.left+m.left)/b.x,right:(w.right-h.right+m.right)/b.x}}function $e(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Pe(e){return ne.some(t=>e[t]>=0)}const Ne=new Set(["left","top"]);function Ae(){return"undefined"!=typeof window}function Te(e){return je(e)?(e.nodeName||"").toLowerCase():"#document"}function Re(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Me(e){var t;return null==(t=(je(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function je(e){return!!Ae()&&(e instanceof Node||e instanceof Re(e).Node)}function Ie(e){return!!Ae()&&(e instanceof Element||e instanceof Re(e).Element)}function De(e){return!!Ae()&&(e instanceof HTMLElement||e instanceof Re(e).HTMLElement)}function ze(e){return!(!Ae()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Re(e).ShadowRoot)}function Le(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ye(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function Fe(e){return/^(table|td|th)$/.test(Te(e))}function Ve(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}const We=/transform|translate|scale|rotate|perspective|filter/,Be=/paint|layout|strict|content/,Ue=e=>!!e&&"none"!==e;let He;function Ge(e){const t=Ie(e)?Ye(e):e;return Ue(t.transform)||Ue(t.translate)||Ue(t.scale)||Ue(t.rotate)||Ue(t.perspective)||!Ke()&&(Ue(t.backdropFilter)||Ue(t.filter))||We.test(t.willChange||"")||Be.test(t.contain||"")}function Ke(){return null==He&&(He="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),He}function qe(e){return/^(html|body|#document)$/.test(Te(e))}function Ye(e){return Re(e).getComputedStyle(e)}function Xe(e){return Ie(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Je(e){if("html"===Te(e))return e;const t=e.assignedSlot||e.parentNode||ze(e)&&e.host||Me(e);return ze(t)?t.host:t}function Ze(e){const t=Je(e);return qe(t)?e.ownerDocument?e.ownerDocument.body:e.body:De(t)&&Le(t)?t:Ze(t)}function Qe(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Ze(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Re(o);if(i){const e=et(a);return t.concat(a,a.visualViewport||[],Le(o)?o:[],e&&n?Qe(e):[])}return t.concat(o,Qe(o,[],n))}function et(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function tt(e){const t=Ye(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=De(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=ie(n)!==i||ie(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function nt(e){return Ie(e)?e:e.contextElement}function rt(e){const t=nt(e);if(!De(t))return se(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=tt(t);let a=(i?ie(n.width):n.width)/r,s=(i?ie(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const ot=se(0);function it(e){const t=Re(e);return Ke()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ot}function at(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=nt(e);let a=se(1);t&&(r?Ie(r)&&(a=rt(r)):a=rt(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Re(e))&&t}(i,n,r)?it(i):se(0);let c=(o.left+s.x)/a.x,l=(o.top+s.y)/a.y,u=o.width/a.x,f=o.height/a.y;if(i){const e=Re(i),t=r&&Ie(r)?Re(r):r;let n=e,o=et(n);for(;o&&r&&t!==n;){const e=rt(o),t=o.getBoundingClientRect(),r=Ye(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,f*=e.y,c+=i,l+=a,n=Re(o),o=et(n)}}return ke({width:u,height:f,x:c,y:l})}function st(e,t){const n=Xe(e).scrollLeft;return t?t.left+n:at(Me(e)).left+n}function ct(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-st(e,n),y:n.top+t.scrollTop}}function lt(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Re(e),r=Me(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;const e=Ke();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,c=o.offsetTop)}const l=st(r);if(l<=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 l<=25&&(i+=l);return{width:i,height:a,x:s,y:c}}(e,n);else if("document"===t)r=function(e){const t=Me(e),n=Xe(e),r=e.ownerDocument.body,o=oe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=oe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+st(e);const s=-n.scrollTop;return"rtl"===Ye(r).direction&&(a+=oe(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(Me(e));else if(Ie(t))r=function(e,t){const n=at(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=De(e)?rt(e):se(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=it(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ke(r)}function ut(e,t){const n=Je(e);return!(n===t||!Ie(n)||qe(n))&&("fixed"===Ye(n).position||ut(n,t))}function ft(e,t,n){const r=De(t),o=Me(t),i="fixed"===n,a=at(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=se(0);function l(){c.x=st(o)}if(r||!r&&!i)if(("body"!==Te(t)||Le(o))&&(s=Xe(t)),r){const e=at(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else o&&l();i&&!r&&o&&l();const u=!o||r||i?se(0):ct(o,s);return{x:a.left+s.scrollLeft-c.x-u.x,y:a.top+s.scrollTop-c.y-u.y,width:a.width,height:a.height}}function dt(e){return"static"===Ye(e).position}function pt(e,t){if(!De(e)||"fixed"===Ye(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Me(e)===n&&(n=n.ownerDocument.body),n}function mt(e,t){const n=Re(e);if(Ve(e))return n;if(!De(e)){let t=Je(e);for(;t&&!qe(t);){if(Ie(t)&&!dt(t))return t;t=Je(t)}return n}let r=pt(e,t);for(;r&&Fe(r)&&dt(r);)r=pt(r,t);return r&&qe(r)&&dt(r)&&!Ge(r)?n:r||function(e){let t=Je(e);for(;De(t)&&!qe(t);){if(Ge(t))return t;if(Ve(t))return null;t=Je(t)}return null}(e)||n}const yt={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=Me(r),s=!!t&&Ve(t.floating);if(r===a||s&&i)return n;let c={scrollLeft:0,scrollTop:0},l=se(1);const u=se(0),f=De(r);if((f||!f&&!i)&&(("body"!==Te(r)||Le(a))&&(c=Xe(r)),f)){const e=at(r);l=rt(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const d=!a||f||i?se(0):ct(a,c);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+d.x,y:n.y*l.y-c.scrollTop*l.y+u.y+d.y}},getDocumentElement:Me,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?Ve(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Qe(e,[],!1).filter(e=>Ie(e)&&"body"!==Te(e)),o=null;const i="fixed"===Ye(e).position;let a=i?Je(e):e;for(;Ie(a)&&!qe(a);){const t=Ye(a),n=Ge(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||Le(a)&&!n&&ut(e,a))?r=r.filter(e=>e!==a):o=t,a=Je(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=lt(t,i[0],o);let s=a.top,c=a.right,l=a.bottom,u=a.left;for(let e=1;e<i.length;e++){const n=lt(t,i[e],o);s=oe(n.top,s),c=re(n.right,c),l=re(n.bottom,l),u=oe(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}},getOffsetParent:mt,getElementRects:async function(e){const t=this.getOffsetParent||mt,n=this.getDimensions,r=await n(e.floating);return{reference:ft(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}=tt(e);return{width:t,height:n}},getScale:rt,isElement:Ie,isRTL:function(e){return"rtl"===Ye(e).direction}};function ht(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function gt(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:c=!1}=r,l=nt(e),u=o||i?[...l?Qe(l):[],...t?Qe(t):[]]:[];u.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});const f=l&&s?function(e,t){let n,r=null;const o=Me(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,c){void 0===s&&(s=!1),void 0===c&&(c=1),i();const l=e.getBoundingClientRect(),{left:u,top:f,width:d,height:p}=l;if(s||t(),!d||!p)return;const m={rootMargin:-ae(f)+"px "+-ae(o.clientWidth-(u+d))+"px "+-ae(o.clientHeight-(f+p))+"px "+-ae(u)+"px",threshold:oe(0,re(1,c))||1};let y=!0;function h(t){const r=t[0].intersectionRatio;if(r!==c){if(!y)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||ht(l,e.getBoundingClientRect())||a(),y=!1}try{r=new IntersectionObserver(h,{...m,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(h,m)}r.observe(e)}(!0),i}(l,n):null;let d,p=-1,m=null;a&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),l&&!c&&m.observe(l),t&&m.observe(t));let y=c?at(e):null;return c&&function t(){const r=at(e);y&&!ht(y,r)&&n();y=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=m)||e.disconnect(),m=null,c&&cancelAnimationFrame(d)}}const vt=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,c=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=fe(n),s=de(n),c="y"===ye(n),l=Ne.has(a)?-1:1,u=i&&c?-1:1,f=ue(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:m}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&"number"==typeof m&&(p="end"===s?-1*m:m),c?{x:p*u,y:d*l}:{x:d*l,y:p*u}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:a}}}}},bt=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:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=ue(e,t),u={x:n,y:r},f=await i.detectOverflow(t,l),d=ye(fe(o)),p=pe(d);let m=u[p],y=u[d];if(a){const e="y"===p?"bottom":"right";m=le(m+f["y"===p?"top":"left"],m,m-f[e])}if(s){const e="y"===d?"bottom":"right";y=le(y+f["y"===d?"top":"left"],y,y-f[e])}const h=c.fn({...t,[p]:m,[d]:y});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[p]:a,[d]:s}}}}}},wt=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:c,elements:l}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:y=!0,...h}=ue(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const g=fe(o),v=ye(s),b=fe(s)===s,w=await(null==c.isRTL?void 0:c.isRTL(l.floating)),x=d||(b||!y?[Se(s)]:function(e){const t=Se(e);return[ge(e),t,ge(t)]}(s)),E="none"!==m;!d&&E&&x.push(...Ee(s,y,m,w));const S=[s,...x],O=await c.detectOverflow(t,h),k=[];let C=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&k.push(O[g]),f){const e=function(e,t,n){void 0===n&&(n=!1);const r=de(e),o=he(e),i=me(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);k.push(O[e[0]],O[e[1]])}if(C=[...C,{placement:o,overflows:k}],!k.every(e=>e<=0)){var _,$;const e=((null==(_=i.flip)?void 0:_.index)||0)+1,t=S[e];if(t){if(!("alignment"===f&&v!==ye(t))||C.every(e=>ye(e.placement)!==v||e.overflows[0]>0))return{data:{index:e,overflows:C},reset:{placement:t}}}let n=null==($=C.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:$.placement;if(!n)switch(p){case"bestFit":{var P;const e=null==(P=C.filter(e=>{if(E){const t=ye(e.placement);return t===v||"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:P[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},xt=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:c=()=>{},...l}=ue(e,t),u=await a.detectOverflow(t,l),f=fe(o),d=de(o),p="y"===ye(o),{width:m,height:y}=i.floating;let h,g;"top"===f||"bottom"===f?(h=f,g=d===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(g=f,h="end"===d?"top":"bottom");const v=y-u.top-u.bottom,b=m-u.left-u.right,w=re(y-u[h],v),x=re(m-u[g],b),E=!t.middlewareData.shift;let S=w,O=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(O=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(S=v),E&&!d){const e=oe(u.left,0),t=oe(u.right,0),n=oe(u.top,0),r=oe(u.bottom,0);p?O=m-2*(0!==e||0!==t?e+t:oe(u.left,u.right)):S=y-2*(0!==n||0!==r?n+r:oe(u.top,u.bottom))}await c({...t,availableWidth:O,availableHeight:S});const k=await a.getDimensions(s.floating);return m!==k.width||y!==k.height?{reset:{rects:!0}}:{}}}},Et=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...i}=ue(e,t);switch(o){case"referenceHidden":{const e=$e(await r.detectOverflow(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Pe(e)}}}case"escaped":{const e=$e(await r.detectOverflow(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Pe(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:c}=t,{element:l,padding:u=0}=ue(e,t)||{};if(null==l)return{};const f=Oe(u),d={x:n,y:r},p=he(o),m=me(p),y=await a.getDimensions(l),h="y"===p,g=h?"top":"left",v=h?"bottom":"right",b=h?"clientHeight":"clientWidth",w=i.reference[m]+i.reference[p]-d[p]-i.floating[m],x=d[p]-i.reference[p],E=await(null==a.getOffsetParent?void 0:a.getOffsetParent(l));let S=E?E[b]:0;S&&await(null==a.isElement?void 0:a.isElement(E))||(S=s.floating[b]||i.floating[m]);const O=w/2-x/2,k=S/2-y[m]/2-1,C=re(f[g],k),_=re(f[v],k),$=C,P=S-y[m]-_,N=S/2-y[m]/2+O,A=le($,N,P),T=!c.arrow&&null!=de(o)&&N!==A&&i.reference[m]/2-(N<$?C:_)-y[m]/2<0,R=T?N<$?N-$:N-P:0;return{[p]:d[p]+R,data:{[p]:A,centerOffset:N-A-R,...T&&{alignmentOffset:R}},reset:T}}}),Ot=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:c=!0,crossAxis:l=!0}=ue(e,t),u={x:n,y:r},f=ye(o),d=pe(f);let p=u[d],m=u[f];const y=ue(s,t),h="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(c){const e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+h.mainAxis,n=i.reference[d]+i.reference[e]-h.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){var g,v;const e="y"===d?"width":"height",t=Ne.has(fe(o)),n=i.reference[f]-i.floating[e]+(t&&(null==(g=a.offset)?void 0:g[f])||0)+(t?0:h.crossAxis),r=i.reference[f]+i.reference[e]+(t?0:(null==(v=a.offset)?void 0:v[f])||0)-(t?h.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[d]:p,[f]:m}}}},kt=(e,t,n)=>{const r=new Map,o={platform:yt,...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:_e},c=await(null==a.isRTL?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=Ce(l,r,c),d=r,p=0;const m={};for(let n=0;n<i.length;n++){const y=i[n];if(!y)continue;const{name:h,fn:g}=y,{x:v,y:b,data:w,reset:x}=await g({x:u,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=null!=v?v:u,f=null!=b?b:f,m[h]={...m[h],...w},x&&p<50&&(p++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(l=!0===x.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):x.rects),({x:u,y:f}=Ce(l,d,c))),n=-1)}return{x:u,y:f,placement:d,strategy:o,middlewareData:m}})(e,t,{...o,platform:i})};var Ct="undefined"!=typeof document?n:function(){};function _t(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(!_t(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)&&!_t(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function $t(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Pt(e,t){const n=$t(e);return Math.round(t*n)/n}function Nt(t){const n=e.useRef(t);return Ct(()=>{n.current=t}),n}const At=(e,t)=>{const n=vt(e);return{name:n.name,fn:n.fn,options:[e,t]}},Tt=(e,t)=>{const n=bt(e);return{name:n.name,fn:n.fn,options:[e,t]}},Rt=(e,t)=>({fn:Ot(e).fn,options:[e,t]}),Mt=(e,t)=>{const n=wt(e);return{name:n.name,fn:n.fn,options:[e,t]}},jt=(e,t)=>{const n=xt(e);return{name:n.name,fn:n.fn,options:[e,t]}},It=(e,t)=>{const n=Et(e);return{name:n.name,fn:n.fn,options:[e,t]}},Dt=(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 zt=e.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return u(P.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:u("polygon",{points:"0,0 30,0 15,10"})})});zt.displayName="Arrow";var Lt=zt;var Ft="Popper",[Vt,Wt]=S(Ft),[Bt,Ut]=Vt(Ft),Ht=t=>{const{__scopePopper:n,children:r}=t,[o,i]=e.useState(null);return u(Bt,{scope:n,anchor:o,onAnchorChange:i,children:r})};Ht.displayName=Ft;var Gt="PopperAnchor",Kt=e.forwardRef((t,n)=>{const{__scopePopper:r,virtualRef:o,...i}=t,a=Ut(Gt,r),s=e.useRef(null),c=E(n,s),l=e.useRef(null);return e.useEffect(()=>{const e=l.current;l.current=o?.current||s.current,e!==l.current&&a.onAnchorChange(l.current)}),o?null:u(P.div,{...i,ref:c})});Kt.displayName=Gt;var qt="PopperContent",[Yt,Xt]=Vt(qt),Jt=e.forwardRef((t,n)=>{const{__scopePopper:r,side:o="bottom",sideOffset:i=0,align:a="center",alignOffset:s=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:f=[],collisionPadding:p=0,sticky:m="partial",hideWhenDetached:y=!1,updatePositionStrategy:h="optimized",onPlaced:g,...v}=t,b=Ut(qt,r),[w,x]=e.useState(null),S=E(n,e=>x(e)),[O,k]=e.useState(null),C=function(t){const[n,r]=e.useState(void 0);return Z(()=>{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}(O),_=C?.width??0,$=C?.height??0,A=o+("center"!==a?"-"+a:""),T="number"==typeof p?p:{top:0,right:0,bottom:0,left:0,...p},R=Array.isArray(f)?f:[f],M=R.length>0,j={padding:T,boundary:R.filter(tn),altBoundary:M},{refs:I,floatingStyles:D,placement:z,isPositioned:L,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:c=!0,whileElementsMounted:l,open:u}=t,[f,p]=e.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[m,y]=e.useState(o);_t(m,o)||y(o);const[h,g]=e.useState(null),[v,b]=e.useState(null),w=e.useCallback(e=>{e!==O.current&&(O.current=e,g(e))},[]),x=e.useCallback(e=>{e!==k.current&&(k.current=e,b(e))},[]),E=a||h,S=s||v,O=e.useRef(null),k=e.useRef(null),C=e.useRef(f),_=null!=l,$=Nt(l),P=Nt(i),N=Nt(u),A=e.useCallback(()=>{if(!O.current||!k.current)return;const e={placement:n,strategy:r,middleware:m};P.current&&(e.platform=P.current),kt(O.current,k.current,e).then(e=>{const t={...e,isPositioned:!1!==N.current};T.current&&!_t(C.current,t)&&(C.current=t,d.flushSync(()=>{p(t)}))})},[m,n,r,P,N]);Ct(()=>{!1===u&&C.current.isPositioned&&(C.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[u]);const T=e.useRef(!1);Ct(()=>(T.current=!0,()=>{T.current=!1}),[]),Ct(()=>{if(E&&(O.current=E),S&&(k.current=S),E&&S){if($.current)return $.current(E,S,A);A()}},[E,S,A,$,_]);const R=e.useMemo(()=>({reference:O,floating:k,setReference:w,setFloating:x}),[w,x]),M=e.useMemo(()=>({reference:E,floating:S}),[E,S]),j=e.useMemo(()=>{const e={position:r,left:0,top:0};if(!M.floating)return e;const t=Pt(M.floating,f.x),n=Pt(M.floating,f.y);return c?{...e,transform:"translate("+t+"px, "+n+"px)",...$t(M.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,c,M.floating,f.x,f.y]);return e.useMemo(()=>({...f,update:A,refs:R,elements:M,floatingStyles:j}),[f,A,R,M,j])}({strategy:"fixed",placement:A,whileElementsMounted:(...e)=>gt(...e,{animationFrame:"always"===h}),elements:{reference:b.anchor},middleware:[At({mainAxis:i+$,alignmentAxis:s}),l&&Tt({mainAxis:!0,crossAxis:!1,limiter:"partial"===m?Rt():void 0,...j}),l&&Mt({...j}),jt({...j,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`)}}),O&&Dt({element:O,padding:c}),nn({arrowWidth:_,arrowHeight:$}),y&&It({strategy:"referenceHidden",...j})]}),[V,W]=rn(z),B=N(g);Z(()=>{L&&B?.()},[L,B]);const U=F.arrow?.x,H=F.arrow?.y,G=0!==F.arrow?.centerOffset,[K,q]=e.useState();return Z(()=>{w&&q(window.getComputedStyle(w).zIndex)},[w]),u("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...D,transform:L?D.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:u(Yt,{scope:r,placedSide:V,onArrowChange:k,arrowX:U,arrowY:H,shouldHideArrow:G,children:u(P.div,{"data-side":V,"data-align":W,...v,ref:S,style:{...v.style,animation:L?void 0:"none"}})})})});Jt.displayName=qt;var Zt="PopperArrow",Qt={top:"bottom",right:"left",bottom:"top",left:"right"},en=e.forwardRef(function(e,t){const{__scopePopper:n,...r}=e,o=Xt(Zt,n),i=Qt[o.placedSide];return u("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:u(Lt,{...r,ref:t,style:{...r.style,display:"block"}})})});function tn(e){return null!==e}en.displayName=Zt;var nn=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,[c,l]=rn(n),u={start:"0%",center:"50%",end:"100%"}[l],f=(o.arrow?.x??0)+a/2,d=(o.arrow?.y??0)+s/2;let p="",m="";return"bottom"===c?(p=i?u:`${f}px`,m=-s+"px"):"top"===c?(p=i?u:`${f}px`,m=`${r.floating.height+s}px`):"right"===c?(p=-s+"px",m=i?u:`${d}px`):"left"===c&&(p=`${r.floating.width+s}px`,m=i?u:`${d}px`),{data:{x:p,y:m}}}});function rn(e){const[t,n="center"]=e.split("-");return[t,n]}var on=Ht,an=Kt,sn=Jt,cn=en,ln=e.forwardRef((t,n)=>{const{container:r,...o}=t,[i,a]=e.useState(!1);Z(()=>a(!0),[]);const s=r||i&&globalThis?.document?.body;return s?p.createPortal(u(P.div,{...o,ref:n}),s):null});ln.displayName="Portal";var un=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",[c,l]=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=fn(o.current);a.current="mounted"===c?e:"none"},[c]),Z(()=>{const e=o.current,n=i.current;if(n!==t){const r=a.current,o=fn(e);if(t)l("MOUNT");else if("none"===o||"none"===e?.display)l("UNMOUNT");else{l(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}i.current=t}},[t,l]),Z(()=>{if(n){let e;const t=n.ownerDocument.defaultView??window,r=r=>{const a=fn(o.current).includes(CSS.escape(r.animationName));if(r.target===n&&a&&(l("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=fn(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)}}l("ANIMATION_END")},[n,l]),{isPresent:["mounted","unmountSuspended"].includes(c),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=E(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 fn(e){return e?.animationName||"none"}un.displayName="Presence";var dn=e[" useInsertionEffect ".trim().toString()]||Z;function pn({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 dn(()=>{a.current=n},[n]),e.useEffect(()=>{i.current!==r&&(a.current?.(r),i.current=r)},[r,i]),[r,o,a]}({defaultProp:n,onChange:r}),c=void 0!==t,l=c?t:i;{const n=e.useRef(void 0!==t);e.useEffect(()=>{const e=n.current;if(e!==c){const t=e?"controlled":"uncontrolled",n=c?"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=c},[c,o])}const u=e.useCallback(e=>{if(c){const n=function(e){return"function"==typeof e}(e)?e(t):e;n!==t&&s.current?.(n)}else a(e)},[c,t,a,s]);return[l,u]}var mn=new WeakMap,yn=new WeakMap,hn={},gn=0,vn=function(e){return e&&(e.host||vn(e.parentNode))},bn=function(e,t,n,r){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=vn(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);hn[n]||(hn[n]=new WeakMap);var i=hn[n],a=[],s=new Set,c=new Set(o),l=function(e){e&&!s.has(e)&&(s.add(e),l(e.parentNode))};o.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,c=(mn.get(e)||0)+1,l=(i.get(e)||0)+1;mn.set(e,c),i.set(e,l),a.push(e),1===c&&o&&yn.set(e,!0),1===l&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return u(t),s.clear(),gn++,function(){a.forEach(function(e){var t=mn.get(e)-1,o=i.get(e)-1;mn.set(e,t),i.set(e,o),t||(yn.has(e)||e.removeAttribute(r),yn.delete(e)),o||e.removeAttribute(n)}),--gn||(mn=new WeakMap,mn=new WeakMap,yn=new WeakMap,hn={})}},wn=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),bn(r,o,n,"aria-hidden")):function(){return null}},xn=function(){return xn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},xn.apply(this,arguments)};function En(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}"function"==typeof SuppressedError&&SuppressedError;var Sn="right-scroll-bar-position",On="width-before-scroll-bar";function kn(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var Cn="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,_n=new WeakMap;function $n(e,t){var n,o,i,a=(n=null,o=function(t){return e.forEach(function(e){return kn(e,t)})},(i=r(function(){return{value:n,callback:o,facade:{get current(){return i.value},set current(e){var t=i.value;t!==e&&(i.value=e,i.callback(e,t))}}}})[0]).callback=o,i.facade);return Cn(function(){var t=_n.get(a);if(t){var n=new Set(t),r=new Set(e),o=a.current;n.forEach(function(e){r.has(e)||kn(e,null)}),r.forEach(function(e){n.has(e)||kn(e,o)})}_n.set(a,e)},[e]),a}function Pn(e){return e}var Nn=function(t){var n=t.sideCar,r=En(t,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=n.read();if(!o)throw new Error("Sidecar medium not found");return e.createElement(o,xn({},r))};Nn.isSideCarExport=!0;var An=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=Pn);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}}}(null);return t.options=xn({async:!0,ssr:!1},e),t}(),Tn=function(){},Rn=e.forwardRef(function(t,n){var r=e.useRef(null),o=e.useState({onScrollCapture:Tn,onWheelCapture:Tn,onTouchMoveCapture:Tn}),i=o[0],a=o[1],s=t.forwardProps,c=t.children,l=t.className,u=t.removeScrollBar,f=t.enabled,d=t.shards,p=t.sideCar,m=t.noRelative,y=t.noIsolation,h=t.inert,g=t.allowPinchZoom,v=t.as,b=void 0===v?"div":v,w=t.gapMode,x=En(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=p,S=$n([r,n]),O=xn(xn({},x),i);return e.createElement(e.Fragment,null,f&&e.createElement(E,{sideCar:An,removeScrollBar:u,shards:d,noRelative:m,noIsolation:y,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),s?e.cloneElement(e.Children.only(c),xn(xn({},O),{ref:S})):e.createElement(b,xn({},O,{className:l,ref:S}),c))});Rn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Rn.classNames={fullWidth:On,zeroRight:Sn};function Mn(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var jn=function(){var e=0,t=null;return{add:function(n){var r;0==e&&(t=Mn())&&(!function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}(t,n),r=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(r)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},In=function(){var t,n=(t=jn(),function(n,r){e.useEffect(function(){return t.add(n),function(){t.remove()}},[n&&r])});return function(e){var t=e.styles,r=e.dynamic;return n(t,r),null}},Dn={left:0,top:0,right:0,gap:0},zn=function(e){return parseInt(e||"",10)||0},Ln=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return Dn;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[zn(n),zn(r),zn(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Fn=In(),Vn="data-scroll-locked",Wn=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body[").concat(Vn,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(Sn," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(On," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(Sn," .").concat(Sn," {\n right: 0 ").concat(r,";\n }\n \n .").concat(On," .").concat(On," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(Vn,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},Bn=function(){var e=parseInt(document.body.getAttribute(Vn)||"0",10);return isFinite(e)?e:0},Un=function(t){var n=t.noRelative,r=t.noImportant,o=t.gapMode,i=void 0===o?"margin":o;e.useEffect(function(){return document.body.setAttribute(Vn,(Bn()+1).toString()),function(){var e=Bn()-1;e<=0?document.body.removeAttribute(Vn):document.body.setAttribute(Vn,e.toString())}},[]);var a=e.useMemo(function(){return Ln(i)},[i]);return e.createElement(Fn,{styles:Wn(a,!n,i,r?"":"!important")})},Hn=!1;if("undefined"!=typeof window)try{var Gn=Object.defineProperty({},"passive",{get:function(){return Hn=!0,!0}});window.addEventListener("test",Gn,Gn),window.removeEventListener("test",Gn,Gn)}catch(e){Hn=!1}var Kn=!!Hn&&{passive:!1},qn=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},Yn=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),Xn(e,r)){var o=Jn(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Xn=function(e,t){return"v"===e?function(e){return qn(e,"overflowY")}(t):function(e){return qn(e,"overflowX")}(t)},Jn=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},Zn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Qn=function(e){return[e.deltaX,e.deltaY]},er=function(e){return e&&"current"in e?e.current:e},tr=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},nr=0,rr=[];function or(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var ir,ar=(ir=function(t){var n=e.useRef([]),r=e.useRef([0,0]),o=e.useRef(),i=e.useState(nr++)[0],a=e.useState(In)[0],s=e.useRef(t);e.useEffect(function(){s.current=t},[t]),e.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var e=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([t.lockRef.current],(t.shards||[]).map(er),!0).filter(Boolean);return e.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),e.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var c=e.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var n,i=Zn(e),a=r.current,c="deltaX"in e?e.deltaX:a[0]-i[0],l="deltaY"in e?e.deltaY:a[1]-i[1],u=e.target,f=Math.abs(c)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===f&&"range"===u.type)return!1;var d=window.getSelection(),p=d&&d.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=Yn(f,u);if(!m)return!0;if(m?n=f:(n="v"===f?"h":"v",m=Yn(f,u)),!m)return!1;if(!o.current&&"changedTouches"in e&&(c||l)&&(o.current=n),!n)return!0;var y=o.current||n;return function(e,t,n,r){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),i=o*r,a=n.target,s=t.contains(a),c=!1,l=i>0,u=0,f=0;do{if(!a)break;var d=Jn(e,a),p=d[0],m=d[1]-d[2]-o*p;(p||m)&&Xn(e,a)&&(u+=m,f+=p);var y=a.parentNode;a=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!s&&a!==document.body||s&&(t.contains(a)||t===a));return(l&&Math.abs(u)<1||!l&&Math.abs(f)<1)&&(c=!0),c}(y,t,e,"h"===y?c:l)},[]),l=e.useCallback(function(e){var t=e;if(rr.length&&rr[rr.length-1]===a){var r="deltaY"in t?Qn(t):Zn(t),o=n.current.filter(function(e){return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&(n=e.delta,o=r,n[0]===o[0]&&n[1]===o[1]);var n,o})[0];if(o&&o.should)t.cancelable&&t.preventDefault();else if(!o){var i=(s.current.shards||[]).map(er).filter(Boolean).filter(function(e){return e.contains(t.target)});(i.length>0?c(t,i[0]):!s.current.noIsolation)&&t.cancelable&&t.preventDefault()}}},[]),u=e.useCallback(function(e,t,r,o){var i={name:e,delta:t,target:r,should:o,shadowParent:or(r)};n.current.push(i),setTimeout(function(){n.current=n.current.filter(function(e){return e!==i})},1)},[]),f=e.useCallback(function(e){r.current=Zn(e),o.current=void 0},[]),d=e.useCallback(function(e){u(e.type,Qn(e),e.target,c(e,t.lockRef.current))},[]),p=e.useCallback(function(e){u(e.type,Zn(e),e.target,c(e,t.lockRef.current))},[]);e.useEffect(function(){return rr.push(a),t.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",l,Kn),document.addEventListener("touchmove",l,Kn),document.addEventListener("touchstart",f,Kn),function(){rr=rr.filter(function(e){return e!==a}),document.removeEventListener("wheel",l,Kn),document.removeEventListener("touchmove",l,Kn),document.removeEventListener("touchstart",f,Kn)}},[]);var m=t.removeScrollBar,y=t.inert;return e.createElement(e.Fragment,null,y?e.createElement(a,{styles:tr(i)}):null,m?e.createElement(Un,{noRelative:t.noRelative,gapMode:t.gapMode}):null)},An.useMedium(ir),Nn),sr=e.forwardRef(function(t,n){return e.createElement(Rn,xn({},t,{ref:n,sideCar:ar}))});sr.classNames=Rn.classNames;var cr="Popover",[lr]=S(cr,[Wt]),ur=Wt(),[fr,dr]=lr(cr),pr=t=>{const{__scopePopover:n,children:r,open:o,defaultOpen:i,onOpenChange:a,modal:s=!1}=t,c=ur(n),l=e.useRef(null),[f,d]=e.useState(!1),[p,m]=pn({prop:o,defaultProp:i??!1,onChange:a,caller:cr});return u(on,{...c,children:u(fr,{scope:n,contentId:te(),triggerRef:l,open:p,onOpenChange:m,onOpenToggle:e.useCallback(()=>m(e=>!e),[m]),hasCustomAnchor:f,onCustomAnchorAdd:e.useCallback(()=>d(!0),[]),onCustomAnchorRemove:e.useCallback(()=>d(!1),[]),modal:s,children:r})})};pr.displayName=cr;var mr="PopoverAnchor";e.forwardRef((t,n)=>{const{__scopePopover:r,...o}=t,i=dr(mr,r),a=ur(r),{onCustomAnchorAdd:s,onCustomAnchorRemove:c}=i;return e.useEffect(()=>(s(),()=>c()),[s,c]),u(an,{...a,...o,ref:n})}).displayName=mr;var yr="PopoverTrigger",hr=e.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=dr(yr,n),i=ur(n),a=E(t,o.triggerRef),s=u(P.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":$r(o.open),...r,ref:a,onClick:b(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:u(an,{asChild:!0,...i,children:s})});hr.displayName=yr;var gr="PopoverPortal",[vr,br]=lr(gr,{forceMount:void 0}),wr=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=dr(gr,t);return u(vr,{scope:t,forceMount:n,children:u(un,{present:n||i.open,children:u(ln,{asChild:!0,container:o,children:r})})})};wr.displayName=gr;var xr="PopoverContent",Er=e.forwardRef((e,t)=>{const n=br(xr,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=dr(xr,e.__scopePopover);return u(un,{present:r||i.open,children:i.modal?u(Or,{...o,ref:t}):u(kr,{...o,ref:t})})});Er.displayName=xr;var Sr=k("PopoverContent.RemoveScroll"),Or=e.forwardRef((t,n)=>{const r=dr(xr,t.__scopePopover),o=e.useRef(null),i=E(n,o),a=e.useRef(!1);return e.useEffect(()=>{const e=o.current;if(e)return wn(e)},[]),u(sr,{as:Sr,allowPinchZoom:!0,children:u(Cr,{...t,ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:b(t.onCloseAutoFocus,e=>{e.preventDefault(),a.current||r.triggerRef.current?.focus()}),onPointerDownOutside:b(t.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;a.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:b(t.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),kr=e.forwardRef((t,n)=>{const r=dr(xr,t.__scopePopover),o=e.useRef(!1),i=e.useRef(!1);return u(Cr,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{t.onCloseAutoFocus?.(e),e.defaultPrevented||(o.current||r.triggerRef.current?.focus(),e.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:e=>{t.onInteractOutside?.(e),e.defaultPrevented||(o.current=!0,"pointerdown"===e.detail.originalEvent.type&&(i.current=!0));const n=e.target,a=r.triggerRef.current?.contains(n);a&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&i.current&&e.preventDefault()}})}),Cr=e.forwardRef((t,n)=>{const{__scopePopover:r,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:c,onPointerDownOutside:l,onFocusOutside:f,onInteractOutside:d,...p}=t,m=dr(xr,r),y=ur(r);return e.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??V()),document.body.insertAdjacentElement("beforeend",e[1]??V()),F++,()=>{1===F&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),F--}},[]),u(H,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:a,children:u(I,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:d,onEscapeKeyDown:c,onPointerDownOutside:l,onFocusOutside:f,onDismiss:()=>m.onOpenChange(!1),children:u(sn,{"data-state":$r(m.open),role:"dialog",id:m.contentId,...y,...p,ref:n,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),_r="PopoverClose";e.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=dr(_r,n);return u(P.button,{type:"button",...r,ref:t,onClick:b(e.onClick,()=>o.onOpenChange(!1))})}).displayName=_r;function $r(e){return e?"open":"closed"}e.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=ur(n);return u(cn,{...o,...r,ref:t})}).displayName="PopoverArrow";var Pr=pr,Nr=hr,Ar=wr,Tr=Er;function Rr(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=Rr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Mr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Rr(e))&&(r&&(r+=" "),r+=t);return r}const jr=e=>{const t=Lr(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),Ir(n,t)||zr(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},Ir=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Ir(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},Dr=/^\[(.+)\]$/,zr=e=>{if(Dr.test(e)){const t=Dr.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Lr=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Br(Object.entries(e.classGroups),n).forEach(([e,n])=>{Fr(n,r,e,t)}),r},Fr=(e,t,n,r)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:Vr(t,e)).classGroupId=n)}if("function"==typeof e)return Wr(e)?void Fr(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach(([e,o])=>{Fr(o,Vr(t,e),n,r)})})},Vr=(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},Wr=e=>e.isThemeGetter,Br=(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,Ur=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)}}},Hr=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,c=0;for(let l=0;l<e.length;l++){let u=e[l];if(0===s){if(u===o&&(r||e.slice(l,l+i)===t)){n.push(e.slice(c,l)),c=l+i;continue}if("/"===u){a=l;continue}}"["===u?s++:"]"===u&&s--}const l=0===n.length?e:e.substring(c),u=l.startsWith("!");return{modifiers:n,hasImportantModifier:u,baseClassName:u?l.substring(1):l,maybePostfixModifierPosition:a&&a>c?a-c:void 0}};return n?e=>n({className:e,parseClassName:a}):a},Gr=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},Kr=/\s+/;function qr(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=Yr(e))&&(r&&(r+=" "),r+=t);return r}const Yr=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Yr(e[r]))&&(n&&(n+=" "),n+=t);return n};function Xr(e,...t){let n,r,o,i=function(s){const c=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:Ur(e.cacheSize),parseClassName:Hr(e),...jr(e)}))(c),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(Kr);let s="";for(let e=a.length-1;e>=0;e-=1){const t=a[e],{modifiers:c,hasImportantModifier:l,baseClassName:u,maybePostfixModifierPosition:f}=n(t);let d=Boolean(f),p=r(d?u.substring(0,f):u);if(!p){if(!d){s=t+(s.length>0?" "+s:s);continue}if(p=r(u),!p){s=t+(s.length>0?" "+s:s);continue}d=!1}const m=Gr(c).join(":"),y=l?m+"!":m,h=y+p;if(i.includes(h))continue;i.push(h);const g=o(p,d);for(let e=0;e<g.length;++e){const t=g[e];i.push(y+t)}s=t+(s.length>0?" "+s:s)}return s})(e,n);return o(e,i),i}return function(){return i(qr.apply(null,arguments))}}const Jr=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},Zr=/^\[(?:([a-z-]+):)?(.+)\]$/i,Qr=/^\d+\/\d+$/,eo=new Set(["px","full","screen"]),to=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,no=/\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$/,ro=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,oo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,io=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ao=e=>co(e)||eo.has(e)||Qr.test(e),so=e=>Eo(e,"length",So),co=e=>Boolean(e)&&!Number.isNaN(Number(e)),lo=e=>Eo(e,"number",co),uo=e=>Boolean(e)&&Number.isInteger(Number(e)),fo=e=>e.endsWith("%")&&co(e.slice(0,-1)),po=e=>Zr.test(e),mo=e=>to.test(e),yo=new Set(["length","size","percentage"]),ho=e=>Eo(e,yo,Oo),go=e=>Eo(e,"position",Oo),vo=new Set(["image","url"]),bo=e=>Eo(e,vo,Co),wo=e=>Eo(e,"",ko),xo=()=>!0,Eo=(e,t,n)=>{const r=Zr.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))},So=e=>no.test(e)&&!ro.test(e),Oo=()=>!1,ko=e=>oo.test(e),Co=e=>io.test(e),_o=()=>{const e=Jr("colors"),t=Jr("spacing"),n=Jr("blur"),r=Jr("brightness"),o=Jr("borderColor"),i=Jr("borderRadius"),a=Jr("borderSpacing"),s=Jr("borderWidth"),c=Jr("contrast"),l=Jr("grayscale"),u=Jr("hueRotate"),f=Jr("invert"),d=Jr("gap"),p=Jr("gradientColorStops"),m=Jr("gradientColorStopPositions"),y=Jr("inset"),h=Jr("margin"),g=Jr("opacity"),v=Jr("padding"),b=Jr("saturate"),w=Jr("scale"),x=Jr("sepia"),E=Jr("skew"),S=Jr("space"),O=Jr("translate"),k=()=>["auto",po,t],C=()=>[po,t],_=()=>["",ao,so],$=()=>["auto",co,po],P=()=>["","0",po],N=()=>[co,po];return{cacheSize:500,separator:":",theme:{colors:[xo],spacing:[ao,so],blur:["none","",mo,po],brightness:N(),borderColor:[e],borderRadius:["none","","full",mo,po],borderSpacing:C(),borderWidth:_(),contrast:N(),grayscale:P(),hueRotate:N(),invert:P(),gap:C(),gradientColorStops:[e],gradientColorStopPositions:[fo,so],inset:k(),margin:k(),opacity:N(),padding:C(),saturate:N(),scale:N(),sepia:P(),skew:N(),space:C(),translate:C()},classGroups:{aspect:[{aspect:["auto","square","video",po]}],container:["container"],columns:[{columns:[mo]}],"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",po]}],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:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",uo,po]}],basis:[{basis:k()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",po]}],grow:[{grow:P()}],shrink:[{shrink:P()}],order:[{order:["first","last","none",uo,po]}],"grid-cols":[{"grid-cols":[xo]}],"col-start-end":[{col:["auto",{span:["full",uo,po]},po]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[xo]}],"row-start-end":[{row:["auto",{span:[uo,po]},po]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",po]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",po]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"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:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],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":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",po,t]}],"min-w":[{"min-w":[po,t,"min","max","fit"]}],"max-w":[{"max-w":[po,t,"none","full","min","max","fit","prose",{screen:[mo]},mo]}],h:[{h:[po,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[po,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[po,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[po,t,"auto","min","max","fit"]}],"font-size":[{text:["base",mo,so]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",lo]}],"font-family":[{font:[xo]}],"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",po]}],"line-clamp":[{"line-clamp":["none",co,lo]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ao,po]}],"list-image":[{"list-image":["none",po]}],"list-style-type":[{list:["none","disc","decimal",po]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"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",ao,so]}],"underline-offset":[{"underline-offset":["auto",ao,po]}],"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:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",po]}],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",po]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",go]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ho]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},bo]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],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":[g]}],"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":[g]}],"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":[ao,po]}],"outline-w":[{outline:[ao,so]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:_()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[ao,so]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",mo,wo]}],"shadow-color":[{shadow:[xo]}],opacity:[{opacity:[g]}],"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:[c]}],"drop-shadow":[{"drop-shadow":["","none",mo,po]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[f]}],saturate:[{saturate:[b]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"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",po]}],duration:[{duration:N()}],ease:[{ease:["linear","in","out","in-out",po]}],delay:[{delay:N()}],animate:[{animate:["none","spin","ping","pulse","bounce",po]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[uo,po]}],"translate-x":[{"translate-x":[O]}],"translate-y":[{"translate-y":[O]}],"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",po]}],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",po]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"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",po]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ao,so,lo]}],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"]}}},$o=Xr(_o);function Po(...e){return $o(Mr(e))}const No=Pr,Ao=Nr,To=e.forwardRef(({className:t,align:n="center",sideOffset:r=4,...o},i)=>e.createElement(Ar,null,e.createElement(Tr,{ref:i,align:n,sideOffset:r,className:Po("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-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),...o})));To.displayName=Tr.displayName;const Ro=({id:e,className:n,align:r,side:o,sideOffset:i=8,collisionPadding:a=8,visible:s,content:c,children:l,onPointerDownOutside:u,onOpenAutoFocus:f})=>t.createElement(No,{open:s},t.createElement(Ao,{asChild:!0},l),t.createElement(To,{id:e,className:v("gyramais-popover-content",n),align:r,side:o,sideOffset:i,collisionPadding:a,onPointerDownOutside:u,onOpenAutoFocus:f},c));var Mo={},jo={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(jo);var Io=jo.exports,Do={};function zo(){return zo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zo.apply(null,arguments)}function Lo(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Fo(t){if(e.isValidElement(t)||!Lo(t))return t;const n={};return Object.keys(t).forEach(e=>{n[e]=Fo(t[e])}),n}function Vo(t,n,r={clone:!0}){const o=r.clone?zo({},t):t;return Lo(t)&&Lo(n)&&Object.keys(n).forEach(i=>{e.isValidElement(n[i])?o[i]=n[i]:Lo(n[i])&&Object.prototype.hasOwnProperty.call(t,i)&&Lo(t[i])?o[i]=Vo(t[i],n[i],r):r.clone?o[i]=Lo(n[i])?Fo(n[i]):n[i]:o[i]=n[i]}),o}var Wo,Bo=Object.freeze({__proto__:null,default:Vo,isPlainObject:Lo}),Uo={exports:{}},Ho={exports:{}},Go={};var Ko,qo,Yo,Xo,Jo,Zo,Qo,ei,ti,ni,ri,oi,ii,ai,si={};
6
+ */h=g,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}h.exports?(t.default=t,h.exports=t):window.classNames=t}();var v=m(g.exports);function b(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function w(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function x(...e){return t=>{let n=!1;const r=e.map(e=>{const r=w(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():w(e[t],null)}}}}function E(...t){return e.useCallback(x(...t),t)}function S(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,c=r?.[t]?.[a]||i,l=e.useMemo(()=>s,Object.values(s));return u(c.Provider,{value:l,children:o})};return s.displayName=n+"Provider",[s,function(r,s){const c=s?.[t]?.[a]||i,l=e.useContext(c);if(l)return l;if(void 0!==o)return o;throw new Error(`\`${r}\` must be used within \`${n}\``)}]},O(o,...n)]}function O(...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 k(t){const n=C(t),r=e.forwardRef((t,r)=>{const{children:o,...i}=t,a=e.Children.toArray(o),s=a.find($);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 u(n,{...i,ref:r,children:e.isValidElement(t)?e.cloneElement(t,void 0,o):null})}return u(n,{...i,ref:r,children:o})});return r.displayName=`${t}.Slot`,r}function C(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?x(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 _=Symbol("radix.slottable");function $(t){return e.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===_}var P=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((t,n)=>{const r=k(`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),u(a,{...i,ref:t})});return o.displayName=`Primitive.${n}`,{...t,[n]:o}},{});function N(t){const n=e.useRef(t);return e.useEffect(()=>{n.current=t}),e.useMemo(()=>(...e)=>n.current?.(...e),[])}var A,T="dismissableLayer.update",R="dismissableLayer.pointerDownOutside",M="dismissableLayer.focusOutside",j=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),I=e.forwardRef((t,n)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:c,...l}=t,f=e.useContext(j),[d,p]=e.useState(null),m=d?.ownerDocument??globalThis?.document,[,y]=e.useState({}),h=E(n,e=>p(e)),g=Array.from(f.layers),[v]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),w=g.indexOf(v),x=d?g.indexOf(d):-1,S=f.layersWithOutsidePointerEventsDisabled.size>0,O=x>=w,k=function(t,n=globalThis?.document){const r=N(t),o=e.useRef(!1),i=e.useRef(()=>{});return e.useEffect(()=>{const e=e=>{if(e.target&&!o.current){let t=function(){L(R,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=[...f.branches].some(e=>e.contains(t));O&&!n&&(i?.(e),s?.(e),e.defaultPrevented||c?.())},m),C=function(t,n=globalThis?.document){const r=N(t),o=e.useRef(!1);return e.useEffect(()=>{const e=e=>{if(e.target&&!o.current){L(M,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;[...f.branches].some(e=>e.contains(t))||(a?.(e),s?.(e),e.defaultPrevented||c?.())},m);return function(t,n=globalThis?.document){const r=N(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=>{x===f.layers.size-1&&(o?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))},m),e.useEffect(()=>{if(d)return r&&(0===f.layersWithOutsidePointerEventsDisabled.size&&(A=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(d)),f.layers.add(d),z(),()=>{r&&1===f.layersWithOutsidePointerEventsDisabled.size&&(m.body.style.pointerEvents=A)}},[d,m,r,f]),e.useEffect(()=>()=>{d&&(f.layers.delete(d),f.layersWithOutsidePointerEventsDisabled.delete(d),z())},[d,f]),e.useEffect(()=>{const e=()=>y({});return document.addEventListener(T,e),()=>document.removeEventListener(T,e)},[]),u(P.div,{...l,ref:h,style:{pointerEvents:S?O?"auto":"none":void 0,...t.style},onFocusCapture:b(t.onFocusCapture,C.onFocusCapture),onBlurCapture:b(t.onBlurCapture,C.onBlurCapture),onPointerDownCapture:b(t.onPointerDownCapture,k.onPointerDownCapture)})});I.displayName="DismissableLayer";var D=e.forwardRef((t,n)=>{const r=e.useContext(j),o=e.useRef(null),i=E(n,o);return e.useEffect(()=>{const e=o.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),u(P.div,{...t,ref:i})});function z(){const e=new CustomEvent(T);document.dispatchEvent(e)}function L(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&&d.flushSync(()=>e.dispatchEvent(t))}(o,i):o.dispatchEvent(i)}D.displayName="DismissableLayerBranch";var F=0;function V(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var W="focusScope.autoFocusOnMount",B="focusScope.autoFocusOnUnmount",U={bubbles:!1,cancelable:!0},H=e.forwardRef((t,n)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...s}=t,[c,l]=e.useState(null),f=N(i),d=N(a),p=e.useRef(null),m=E(n,e=>l(e)),y=e.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;e.useEffect(()=>{if(o){let e=function(e){if(y.paused||!c)return;const t=e.target;c.contains(t)?p.current=t:Y(p.current,{select:!0})},t=function(e){if(y.paused||!c)return;const t=e.relatedTarget;null!==t&&(c.contains(t)||Y(p.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&Y(c)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return c&&r.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[o,c,y.paused]),e.useEffect(()=>{if(c){X.add(y);const t=document.activeElement;if(!c.contains(t)){const n=new CustomEvent(W,U);c.addEventListener(W,f),c.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Y(r,{select:t}),document.activeElement!==n)return}((e=G(c),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&Y(c))}return()=>{c.removeEventListener(W,f),setTimeout(()=>{const e=new CustomEvent(B,U);c.addEventListener(B,d),c.dispatchEvent(e),e.defaultPrevented||Y(t??document.body,{select:!0}),c.removeEventListener(B,d),X.remove(y)},0)}}var e},[c,f,d,y]);const h=e.useCallback(e=>{if(!r&&!o)return;if(y.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[o,i]=function(e){const t=G(e),n=K(t,e),r=K(t.reverse(),e);return[n,r]}(t);o&&i?e.shiftKey||n!==i?e.shiftKey&&n===o&&(e.preventDefault(),r&&Y(i,{select:!0})):(e.preventDefault(),r&&Y(o,{select:!0})):n===t&&e.preventDefault()}},[r,o,y.paused]);return u(P.div,{tabIndex:-1,...s,ref:m,onKeyDown:h})});function G(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function K(e,t){for(const n of e)if(!q(n,{upTo:t}))return n}function q(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function Y(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}H.displayName="FocusScope";var X=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=J(e,t),e.unshift(t)},remove(t){e=J(e,t),e[0]?.resume()}}}();function J(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var Z=globalThis?.document?e.useLayoutEffect:()=>{},Q=e[" useId ".trim().toString()]||(()=>{}),ee=0;function te(t){const[n,r]=e.useState(Q());return Z(()=>{r(e=>e??String(ee++))},[t]),t||(n?`radix-${n}`:"")}const ne=["top","right","bottom","left"],re=Math.min,oe=Math.max,ie=Math.round,ae=Math.floor,se=e=>({x:e,y:e}),ce={left:"right",right:"left",bottom:"top",top:"bottom"};function le(e,t,n){return oe(e,re(t,n))}function ue(e,t){return"function"==typeof e?e(t):e}function fe(e){return e.split("-")[0]}function de(e){return e.split("-")[1]}function pe(e){return"x"===e?"y":"x"}function me(e){return"y"===e?"height":"width"}function ye(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function he(e){return pe(ye(e))}function ge(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const ve=["left","right"],be=["right","left"],we=["top","bottom"],xe=["bottom","top"];function Ee(e,t,n,r){const o=de(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?be:ve:t?ve:be;case"left":case"right":return t?we:xe;default:return[]}}(fe(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(ge)))),i}function Se(e){const t=fe(e);return ce[t]+e.slice(t.length)}function Oe(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 ke(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 Ce(e,t,n){let{reference:r,floating:o}=e;const i=ye(t),a=he(t),s=me(a),c=fe(t),l="y"===i,u=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,d=r[s]/2-o[s]/2;let p;switch(c){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-o.width,y:f};break;default:p={x:r.x,y:r.y}}switch(de(t)){case"start":p[a]-=d*(n&&l?-1:1);break;case"end":p[a]+=d*(n&&l?-1:1)}return p}async function _e(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=ue(t,e),m=Oe(p),y=s[d?"floating"===f?"reference":"floating":f],h=ke(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(y)))||n?y:y.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:l,rootBoundary:u,strategy:c})),g="floating"===f?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,v=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),b=await(null==i.isElement?void 0:i.isElement(v))&&await(null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},w=ke(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:v,strategy:c}):g);return{top:(h.top-w.top+m.top)/b.y,bottom:(w.bottom-h.bottom+m.bottom)/b.y,left:(h.left-w.left+m.left)/b.x,right:(w.right-h.right+m.right)/b.x}}function $e(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Pe(e){return ne.some(t=>e[t]>=0)}const Ne=new Set(["left","top"]);function Ae(){return"undefined"!=typeof window}function Te(e){return je(e)?(e.nodeName||"").toLowerCase():"#document"}function Re(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Me(e){var t;return null==(t=(je(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function je(e){return!!Ae()&&(e instanceof Node||e instanceof Re(e).Node)}function Ie(e){return!!Ae()&&(e instanceof Element||e instanceof Re(e).Element)}function De(e){return!!Ae()&&(e instanceof HTMLElement||e instanceof Re(e).HTMLElement)}function ze(e){return!(!Ae()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Re(e).ShadowRoot)}function Le(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ye(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function Fe(e){return/^(table|td|th)$/.test(Te(e))}function Ve(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}const We=/transform|translate|scale|rotate|perspective|filter/,Be=/paint|layout|strict|content/,Ue=e=>!!e&&"none"!==e;let He;function Ge(e){const t=Ie(e)?Ye(e):e;return Ue(t.transform)||Ue(t.translate)||Ue(t.scale)||Ue(t.rotate)||Ue(t.perspective)||!Ke()&&(Ue(t.backdropFilter)||Ue(t.filter))||We.test(t.willChange||"")||Be.test(t.contain||"")}function Ke(){return null==He&&(He="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),He}function qe(e){return/^(html|body|#document)$/.test(Te(e))}function Ye(e){return Re(e).getComputedStyle(e)}function Xe(e){return Ie(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Je(e){if("html"===Te(e))return e;const t=e.assignedSlot||e.parentNode||ze(e)&&e.host||Me(e);return ze(t)?t.host:t}function Ze(e){const t=Je(e);return qe(t)?e.ownerDocument?e.ownerDocument.body:e.body:De(t)&&Le(t)?t:Ze(t)}function Qe(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Ze(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Re(o);if(i){const e=et(a);return t.concat(a,a.visualViewport||[],Le(o)?o:[],e&&n?Qe(e):[])}return t.concat(o,Qe(o,[],n))}function et(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function tt(e){const t=Ye(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=De(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=ie(n)!==i||ie(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function nt(e){return Ie(e)?e:e.contextElement}function rt(e){const t=nt(e);if(!De(t))return se(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=tt(t);let a=(i?ie(n.width):n.width)/r,s=(i?ie(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const ot=se(0);function it(e){const t=Re(e);return Ke()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ot}function at(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=nt(e);let a=se(1);t&&(r?Ie(r)&&(a=rt(r)):a=rt(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Re(e))&&t}(i,n,r)?it(i):se(0);let c=(o.left+s.x)/a.x,l=(o.top+s.y)/a.y,u=o.width/a.x,f=o.height/a.y;if(i){const e=Re(i),t=r&&Ie(r)?Re(r):r;let n=e,o=et(n);for(;o&&r&&t!==n;){const e=rt(o),t=o.getBoundingClientRect(),r=Ye(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,f*=e.y,c+=i,l+=a,n=Re(o),o=et(n)}}return ke({width:u,height:f,x:c,y:l})}function st(e,t){const n=Xe(e).scrollLeft;return t?t.left+n:at(Me(e)).left+n}function ct(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-st(e,n),y:n.top+t.scrollTop}}function lt(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Re(e),r=Me(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;const e=Ke();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,c=o.offsetTop)}const l=st(r);if(l<=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 l<=25&&(i+=l);return{width:i,height:a,x:s,y:c}}(e,n);else if("document"===t)r=function(e){const t=Me(e),n=Xe(e),r=e.ownerDocument.body,o=oe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=oe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+st(e);const s=-n.scrollTop;return"rtl"===Ye(r).direction&&(a+=oe(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(Me(e));else if(Ie(t))r=function(e,t){const n=at(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=De(e)?rt(e):se(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=it(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ke(r)}function ut(e,t){const n=Je(e);return!(n===t||!Ie(n)||qe(n))&&("fixed"===Ye(n).position||ut(n,t))}function ft(e,t,n){const r=De(t),o=Me(t),i="fixed"===n,a=at(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=se(0);function l(){c.x=st(o)}if(r||!r&&!i)if(("body"!==Te(t)||Le(o))&&(s=Xe(t)),r){const e=at(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else o&&l();i&&!r&&o&&l();const u=!o||r||i?se(0):ct(o,s);return{x:a.left+s.scrollLeft-c.x-u.x,y:a.top+s.scrollTop-c.y-u.y,width:a.width,height:a.height}}function dt(e){return"static"===Ye(e).position}function pt(e,t){if(!De(e)||"fixed"===Ye(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Me(e)===n&&(n=n.ownerDocument.body),n}function mt(e,t){const n=Re(e);if(Ve(e))return n;if(!De(e)){let t=Je(e);for(;t&&!qe(t);){if(Ie(t)&&!dt(t))return t;t=Je(t)}return n}let r=pt(e,t);for(;r&&Fe(r)&&dt(r);)r=pt(r,t);return r&&qe(r)&&dt(r)&&!Ge(r)?n:r||function(e){let t=Je(e);for(;De(t)&&!qe(t);){if(Ge(t))return t;if(Ve(t))return null;t=Je(t)}return null}(e)||n}const yt={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=Me(r),s=!!t&&Ve(t.floating);if(r===a||s&&i)return n;let c={scrollLeft:0,scrollTop:0},l=se(1);const u=se(0),f=De(r);if((f||!f&&!i)&&(("body"!==Te(r)||Le(a))&&(c=Xe(r)),f)){const e=at(r);l=rt(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const d=!a||f||i?se(0):ct(a,c);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+d.x,y:n.y*l.y-c.scrollTop*l.y+u.y+d.y}},getDocumentElement:Me,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?Ve(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Qe(e,[],!1).filter(e=>Ie(e)&&"body"!==Te(e)),o=null;const i="fixed"===Ye(e).position;let a=i?Je(e):e;for(;Ie(a)&&!qe(a);){const t=Ye(a),n=Ge(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||Le(a)&&!n&&ut(e,a))?r=r.filter(e=>e!==a):o=t,a=Je(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=lt(t,i[0],o);let s=a.top,c=a.right,l=a.bottom,u=a.left;for(let e=1;e<i.length;e++){const n=lt(t,i[e],o);s=oe(n.top,s),c=re(n.right,c),l=re(n.bottom,l),u=oe(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}},getOffsetParent:mt,getElementRects:async function(e){const t=this.getOffsetParent||mt,n=this.getDimensions,r=await n(e.floating);return{reference:ft(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}=tt(e);return{width:t,height:n}},getScale:rt,isElement:Ie,isRTL:function(e){return"rtl"===Ye(e).direction}};function ht(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function gt(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:c=!1}=r,l=nt(e),u=o||i?[...l?Qe(l):[],...t?Qe(t):[]]:[];u.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});const f=l&&s?function(e,t){let n,r=null;const o=Me(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,c){void 0===s&&(s=!1),void 0===c&&(c=1),i();const l=e.getBoundingClientRect(),{left:u,top:f,width:d,height:p}=l;if(s||t(),!d||!p)return;const m={rootMargin:-ae(f)+"px "+-ae(o.clientWidth-(u+d))+"px "+-ae(o.clientHeight-(f+p))+"px "+-ae(u)+"px",threshold:oe(0,re(1,c))||1};let y=!0;function h(t){const r=t[0].intersectionRatio;if(r!==c){if(!y)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||ht(l,e.getBoundingClientRect())||a(),y=!1}try{r=new IntersectionObserver(h,{...m,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(h,m)}r.observe(e)}(!0),i}(l,n):null;let d,p=-1,m=null;a&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),l&&!c&&m.observe(l),t&&m.observe(t));let y=c?at(e):null;return c&&function t(){const r=at(e);y&&!ht(y,r)&&n();y=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=m)||e.disconnect(),m=null,c&&cancelAnimationFrame(d)}}const vt=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,c=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=fe(n),s=de(n),c="y"===ye(n),l=Ne.has(a)?-1:1,u=i&&c?-1:1,f=ue(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:m}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&"number"==typeof m&&(p="end"===s?-1*m:m),c?{x:p*u,y:d*l}:{x:d*l,y:p*u}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:a}}}}},bt=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:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=ue(e,t),u={x:n,y:r},f=await i.detectOverflow(t,l),d=ye(fe(o)),p=pe(d);let m=u[p],y=u[d];if(a){const e="y"===p?"bottom":"right";m=le(m+f["y"===p?"top":"left"],m,m-f[e])}if(s){const e="y"===d?"bottom":"right";y=le(y+f["y"===d?"top":"left"],y,y-f[e])}const h=c.fn({...t,[p]:m,[d]:y});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[p]:a,[d]:s}}}}}},wt=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:c,elements:l}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:y=!0,...h}=ue(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const g=fe(o),v=ye(s),b=fe(s)===s,w=await(null==c.isRTL?void 0:c.isRTL(l.floating)),x=d||(b||!y?[Se(s)]:function(e){const t=Se(e);return[ge(e),t,ge(t)]}(s)),E="none"!==m;!d&&E&&x.push(...Ee(s,y,m,w));const S=[s,...x],O=await c.detectOverflow(t,h),k=[];let C=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&k.push(O[g]),f){const e=function(e,t,n){void 0===n&&(n=!1);const r=de(e),o=he(e),i=me(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);k.push(O[e[0]],O[e[1]])}if(C=[...C,{placement:o,overflows:k}],!k.every(e=>e<=0)){var _,$;const e=((null==(_=i.flip)?void 0:_.index)||0)+1,t=S[e];if(t){if(!("alignment"===f&&v!==ye(t))||C.every(e=>ye(e.placement)!==v||e.overflows[0]>0))return{data:{index:e,overflows:C},reset:{placement:t}}}let n=null==($=C.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:$.placement;if(!n)switch(p){case"bestFit":{var P;const e=null==(P=C.filter(e=>{if(E){const t=ye(e.placement);return t===v||"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:P[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},xt=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:c=()=>{},...l}=ue(e,t),u=await a.detectOverflow(t,l),f=fe(o),d=de(o),p="y"===ye(o),{width:m,height:y}=i.floating;let h,g;"top"===f||"bottom"===f?(h=f,g=d===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(g=f,h="end"===d?"top":"bottom");const v=y-u.top-u.bottom,b=m-u.left-u.right,w=re(y-u[h],v),x=re(m-u[g],b),E=!t.middlewareData.shift;let S=w,O=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(O=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(S=v),E&&!d){const e=oe(u.left,0),t=oe(u.right,0),n=oe(u.top,0),r=oe(u.bottom,0);p?O=m-2*(0!==e||0!==t?e+t:oe(u.left,u.right)):S=y-2*(0!==n||0!==r?n+r:oe(u.top,u.bottom))}await c({...t,availableWidth:O,availableHeight:S});const k=await a.getDimensions(s.floating);return m!==k.width||y!==k.height?{reset:{rects:!0}}:{}}}},Et=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...i}=ue(e,t);switch(o){case"referenceHidden":{const e=$e(await r.detectOverflow(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Pe(e)}}}case"escaped":{const e=$e(await r.detectOverflow(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Pe(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:c}=t,{element:l,padding:u=0}=ue(e,t)||{};if(null==l)return{};const f=Oe(u),d={x:n,y:r},p=he(o),m=me(p),y=await a.getDimensions(l),h="y"===p,g=h?"top":"left",v=h?"bottom":"right",b=h?"clientHeight":"clientWidth",w=i.reference[m]+i.reference[p]-d[p]-i.floating[m],x=d[p]-i.reference[p],E=await(null==a.getOffsetParent?void 0:a.getOffsetParent(l));let S=E?E[b]:0;S&&await(null==a.isElement?void 0:a.isElement(E))||(S=s.floating[b]||i.floating[m]);const O=w/2-x/2,k=S/2-y[m]/2-1,C=re(f[g],k),_=re(f[v],k),$=C,P=S-y[m]-_,N=S/2-y[m]/2+O,A=le($,N,P),T=!c.arrow&&null!=de(o)&&N!==A&&i.reference[m]/2-(N<$?C:_)-y[m]/2<0,R=T?N<$?N-$:N-P:0;return{[p]:d[p]+R,data:{[p]:A,centerOffset:N-A-R,...T&&{alignmentOffset:R}},reset:T}}}),Ot=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:c=!0,crossAxis:l=!0}=ue(e,t),u={x:n,y:r},f=ye(o),d=pe(f);let p=u[d],m=u[f];const y=ue(s,t),h="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(c){const e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+h.mainAxis,n=i.reference[d]+i.reference[e]-h.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){var g,v;const e="y"===d?"width":"height",t=Ne.has(fe(o)),n=i.reference[f]-i.floating[e]+(t&&(null==(g=a.offset)?void 0:g[f])||0)+(t?0:h.crossAxis),r=i.reference[f]+i.reference[e]+(t?0:(null==(v=a.offset)?void 0:v[f])||0)-(t?h.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[d]:p,[f]:m}}}},kt=(e,t,n)=>{const r=new Map,o={platform:yt,...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:_e},c=await(null==a.isRTL?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=Ce(l,r,c),d=r,p=0;const m={};for(let n=0;n<i.length;n++){const y=i[n];if(!y)continue;const{name:h,fn:g}=y,{x:v,y:b,data:w,reset:x}=await g({x:u,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=null!=v?v:u,f=null!=b?b:f,m[h]={...m[h],...w},x&&p<50&&(p++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(l=!0===x.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):x.rects),({x:u,y:f}=Ce(l,d,c))),n=-1)}return{x:u,y:f,placement:d,strategy:o,middlewareData:m}})(e,t,{...o,platform:i})};var Ct="undefined"!=typeof document?n:function(){};function _t(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(!_t(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)&&!_t(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function $t(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Pt(e,t){const n=$t(e);return Math.round(t*n)/n}function Nt(t){const n=e.useRef(t);return Ct(()=>{n.current=t}),n}const At=(e,t)=>{const n=vt(e);return{name:n.name,fn:n.fn,options:[e,t]}},Tt=(e,t)=>{const n=bt(e);return{name:n.name,fn:n.fn,options:[e,t]}},Rt=(e,t)=>({fn:Ot(e).fn,options:[e,t]}),Mt=(e,t)=>{const n=wt(e);return{name:n.name,fn:n.fn,options:[e,t]}},jt=(e,t)=>{const n=xt(e);return{name:n.name,fn:n.fn,options:[e,t]}},It=(e,t)=>{const n=Et(e);return{name:n.name,fn:n.fn,options:[e,t]}},Dt=(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 zt=e.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return u(P.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:u("polygon",{points:"0,0 30,0 15,10"})})});zt.displayName="Arrow";var Lt=zt;var Ft="Popper",[Vt,Wt]=S(Ft),[Bt,Ut]=Vt(Ft),Ht=t=>{const{__scopePopper:n,children:r}=t,[o,i]=e.useState(null);return u(Bt,{scope:n,anchor:o,onAnchorChange:i,children:r})};Ht.displayName=Ft;var Gt="PopperAnchor",Kt=e.forwardRef((t,n)=>{const{__scopePopper:r,virtualRef:o,...i}=t,a=Ut(Gt,r),s=e.useRef(null),c=E(n,s),l=e.useRef(null);return e.useEffect(()=>{const e=l.current;l.current=o?.current||s.current,e!==l.current&&a.onAnchorChange(l.current)}),o?null:u(P.div,{...i,ref:c})});Kt.displayName=Gt;var qt="PopperContent",[Yt,Xt]=Vt(qt),Jt=e.forwardRef((t,n)=>{const{__scopePopper:r,side:o="bottom",sideOffset:i=0,align:a="center",alignOffset:s=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:f=[],collisionPadding:p=0,sticky:m="partial",hideWhenDetached:y=!1,updatePositionStrategy:h="optimized",onPlaced:g,...v}=t,b=Ut(qt,r),[w,x]=e.useState(null),S=E(n,e=>x(e)),[O,k]=e.useState(null),C=function(t){const[n,r]=e.useState(void 0);return Z(()=>{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}(O),_=C?.width??0,$=C?.height??0,A=o+("center"!==a?"-"+a:""),T="number"==typeof p?p:{top:0,right:0,bottom:0,left:0,...p},R=Array.isArray(f)?f:[f],M=R.length>0,j={padding:T,boundary:R.filter(tn),altBoundary:M},{refs:I,floatingStyles:D,placement:z,isPositioned:L,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:c=!0,whileElementsMounted:l,open:u}=t,[f,p]=e.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[m,y]=e.useState(o);_t(m,o)||y(o);const[h,g]=e.useState(null),[v,b]=e.useState(null),w=e.useCallback(e=>{e!==O.current&&(O.current=e,g(e))},[]),x=e.useCallback(e=>{e!==k.current&&(k.current=e,b(e))},[]),E=a||h,S=s||v,O=e.useRef(null),k=e.useRef(null),C=e.useRef(f),_=null!=l,$=Nt(l),P=Nt(i),N=Nt(u),A=e.useCallback(()=>{if(!O.current||!k.current)return;const e={placement:n,strategy:r,middleware:m};P.current&&(e.platform=P.current),kt(O.current,k.current,e).then(e=>{const t={...e,isPositioned:!1!==N.current};T.current&&!_t(C.current,t)&&(C.current=t,d.flushSync(()=>{p(t)}))})},[m,n,r,P,N]);Ct(()=>{!1===u&&C.current.isPositioned&&(C.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[u]);const T=e.useRef(!1);Ct(()=>(T.current=!0,()=>{T.current=!1}),[]),Ct(()=>{if(E&&(O.current=E),S&&(k.current=S),E&&S){if($.current)return $.current(E,S,A);A()}},[E,S,A,$,_]);const R=e.useMemo(()=>({reference:O,floating:k,setReference:w,setFloating:x}),[w,x]),M=e.useMemo(()=>({reference:E,floating:S}),[E,S]),j=e.useMemo(()=>{const e={position:r,left:0,top:0};if(!M.floating)return e;const t=Pt(M.floating,f.x),n=Pt(M.floating,f.y);return c?{...e,transform:"translate("+t+"px, "+n+"px)",...$t(M.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,c,M.floating,f.x,f.y]);return e.useMemo(()=>({...f,update:A,refs:R,elements:M,floatingStyles:j}),[f,A,R,M,j])}({strategy:"fixed",placement:A,whileElementsMounted:(...e)=>gt(...e,{animationFrame:"always"===h}),elements:{reference:b.anchor},middleware:[At({mainAxis:i+$,alignmentAxis:s}),l&&Tt({mainAxis:!0,crossAxis:!1,limiter:"partial"===m?Rt():void 0,...j}),l&&Mt({...j}),jt({...j,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`)}}),O&&Dt({element:O,padding:c}),nn({arrowWidth:_,arrowHeight:$}),y&&It({strategy:"referenceHidden",...j})]}),[V,W]=rn(z),B=N(g);Z(()=>{L&&B?.()},[L,B]);const U=F.arrow?.x,H=F.arrow?.y,G=0!==F.arrow?.centerOffset,[K,q]=e.useState();return Z(()=>{w&&q(window.getComputedStyle(w).zIndex)},[w]),u("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...D,transform:L?D.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:u(Yt,{scope:r,placedSide:V,onArrowChange:k,arrowX:U,arrowY:H,shouldHideArrow:G,children:u(P.div,{"data-side":V,"data-align":W,...v,ref:S,style:{...v.style,animation:L?void 0:"none"}})})})});Jt.displayName=qt;var Zt="PopperArrow",Qt={top:"bottom",right:"left",bottom:"top",left:"right"},en=e.forwardRef(function(e,t){const{__scopePopper:n,...r}=e,o=Xt(Zt,n),i=Qt[o.placedSide];return u("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:u(Lt,{...r,ref:t,style:{...r.style,display:"block"}})})});function tn(e){return null!==e}en.displayName=Zt;var nn=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,[c,l]=rn(n),u={start:"0%",center:"50%",end:"100%"}[l],f=(o.arrow?.x??0)+a/2,d=(o.arrow?.y??0)+s/2;let p="",m="";return"bottom"===c?(p=i?u:`${f}px`,m=-s+"px"):"top"===c?(p=i?u:`${f}px`,m=`${r.floating.height+s}px`):"right"===c?(p=-s+"px",m=i?u:`${d}px`):"left"===c&&(p=`${r.floating.width+s}px`,m=i?u:`${d}px`),{data:{x:p,y:m}}}});function rn(e){const[t,n="center"]=e.split("-");return[t,n]}var on=Ht,an=Kt,sn=Jt,cn=en,ln=e.forwardRef((t,n)=>{const{container:r,...o}=t,[i,a]=e.useState(!1);Z(()=>a(!0),[]);const s=r||i&&globalThis?.document?.body;return s?p.createPortal(u(P.div,{...o,ref:n}),s):null});ln.displayName="Portal";var un=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",[c,l]=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=fn(o.current);a.current="mounted"===c?e:"none"},[c]),Z(()=>{const e=o.current,n=i.current;if(n!==t){const r=a.current,o=fn(e);if(t)l("MOUNT");else if("none"===o||"none"===e?.display)l("UNMOUNT");else{l(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}i.current=t}},[t,l]),Z(()=>{if(n){let e;const t=n.ownerDocument.defaultView??window,r=r=>{const a=fn(o.current).includes(CSS.escape(r.animationName));if(r.target===n&&a&&(l("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=fn(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)}}l("ANIMATION_END")},[n,l]),{isPresent:["mounted","unmountSuspended"].includes(c),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=E(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 fn(e){return e?.animationName||"none"}un.displayName="Presence";var dn=e[" useInsertionEffect ".trim().toString()]||Z;function pn({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 dn(()=>{a.current=n},[n]),e.useEffect(()=>{i.current!==r&&(a.current?.(r),i.current=r)},[r,i]),[r,o,a]}({defaultProp:n,onChange:r}),c=void 0!==t,l=c?t:i;{const n=e.useRef(void 0!==t);e.useEffect(()=>{const e=n.current;if(e!==c){const t=e?"controlled":"uncontrolled",n=c?"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=c},[c,o])}const u=e.useCallback(e=>{if(c){const n=function(e){return"function"==typeof e}(e)?e(t):e;n!==t&&s.current?.(n)}else a(e)},[c,t,a,s]);return[l,u]}var mn=new WeakMap,yn=new WeakMap,hn={},gn=0,vn=function(e){return e&&(e.host||vn(e.parentNode))},bn=function(e,t,n,r){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=vn(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);hn[n]||(hn[n]=new WeakMap);var i=hn[n],a=[],s=new Set,c=new Set(o),l=function(e){e&&!s.has(e)&&(s.add(e),l(e.parentNode))};o.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,c=(mn.get(e)||0)+1,l=(i.get(e)||0)+1;mn.set(e,c),i.set(e,l),a.push(e),1===c&&o&&yn.set(e,!0),1===l&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return u(t),s.clear(),gn++,function(){a.forEach(function(e){var t=mn.get(e)-1,o=i.get(e)-1;mn.set(e,t),i.set(e,o),t||(yn.has(e)||e.removeAttribute(r),yn.delete(e)),o||e.removeAttribute(n)}),--gn||(mn=new WeakMap,mn=new WeakMap,yn=new WeakMap,hn={})}},wn=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),bn(r,o,n,"aria-hidden")):function(){return null}},xn=function(){return xn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},xn.apply(this,arguments)};function En(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}"function"==typeof SuppressedError&&SuppressedError;var Sn="right-scroll-bar-position",On="width-before-scroll-bar";function kn(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var Cn="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,_n=new WeakMap;function $n(e,t){var n,o,i,a=(n=null,o=function(t){return e.forEach(function(e){return kn(e,t)})},(i=r(function(){return{value:n,callback:o,facade:{get current(){return i.value},set current(e){var t=i.value;t!==e&&(i.value=e,i.callback(e,t))}}}})[0]).callback=o,i.facade);return Cn(function(){var t=_n.get(a);if(t){var n=new Set(t),r=new Set(e),o=a.current;n.forEach(function(e){r.has(e)||kn(e,null)}),r.forEach(function(e){n.has(e)||kn(e,o)})}_n.set(a,e)},[e]),a}function Pn(e){return e}var Nn=function(t){var n=t.sideCar,r=En(t,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=n.read();if(!o)throw new Error("Sidecar medium not found");return e.createElement(o,xn({},r))};Nn.isSideCarExport=!0;var An=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=Pn);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}}}(null);return t.options=xn({async:!0,ssr:!1},e),t}(),Tn=function(){},Rn=e.forwardRef(function(t,n){var r=e.useRef(null),o=e.useState({onScrollCapture:Tn,onWheelCapture:Tn,onTouchMoveCapture:Tn}),i=o[0],a=o[1],s=t.forwardProps,c=t.children,l=t.className,u=t.removeScrollBar,f=t.enabled,d=t.shards,p=t.sideCar,m=t.noRelative,y=t.noIsolation,h=t.inert,g=t.allowPinchZoom,v=t.as,b=void 0===v?"div":v,w=t.gapMode,x=En(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=p,S=$n([r,n]),O=xn(xn({},x),i);return e.createElement(e.Fragment,null,f&&e.createElement(E,{sideCar:An,removeScrollBar:u,shards:d,noRelative:m,noIsolation:y,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:w}),s?e.cloneElement(e.Children.only(c),xn(xn({},O),{ref:S})):e.createElement(b,xn({},O,{className:l,ref:S}),c))});Rn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Rn.classNames={fullWidth:On,zeroRight:Sn};function Mn(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var jn=function(){var e=0,t=null;return{add:function(n){var r;0==e&&(t=Mn())&&(!function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}(t,n),r=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(r)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},In=function(){var t,n=(t=jn(),function(n,r){e.useEffect(function(){return t.add(n),function(){t.remove()}},[n&&r])});return function(e){var t=e.styles,r=e.dynamic;return n(t,r),null}},Dn={left:0,top:0,right:0,gap:0},zn=function(e){return parseInt(e||"",10)||0},Ln=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return Dn;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[zn(n),zn(r),zn(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Fn=In(),Vn="data-scroll-locked",Wn=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body[").concat(Vn,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(Sn," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(On," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(Sn," .").concat(Sn," {\n right: 0 ").concat(r,";\n }\n \n .").concat(On," .").concat(On," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(Vn,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},Bn=function(){var e=parseInt(document.body.getAttribute(Vn)||"0",10);return isFinite(e)?e:0},Un=function(t){var n=t.noRelative,r=t.noImportant,o=t.gapMode,i=void 0===o?"margin":o;e.useEffect(function(){return document.body.setAttribute(Vn,(Bn()+1).toString()),function(){var e=Bn()-1;e<=0?document.body.removeAttribute(Vn):document.body.setAttribute(Vn,e.toString())}},[]);var a=e.useMemo(function(){return Ln(i)},[i]);return e.createElement(Fn,{styles:Wn(a,!n,i,r?"":"!important")})},Hn=!1;if("undefined"!=typeof window)try{var Gn=Object.defineProperty({},"passive",{get:function(){return Hn=!0,!0}});window.addEventListener("test",Gn,Gn),window.removeEventListener("test",Gn,Gn)}catch(e){Hn=!1}var Kn=!!Hn&&{passive:!1},qn=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},Yn=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),Xn(e,r)){var o=Jn(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Xn=function(e,t){return"v"===e?function(e){return qn(e,"overflowY")}(t):function(e){return qn(e,"overflowX")}(t)},Jn=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},Zn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Qn=function(e){return[e.deltaX,e.deltaY]},er=function(e){return e&&"current"in e?e.current:e},tr=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},nr=0,rr=[];function or(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var ir,ar=(ir=function(t){var n=e.useRef([]),r=e.useRef([0,0]),o=e.useRef(),i=e.useState(nr++)[0],a=e.useState(In)[0],s=e.useRef(t);e.useEffect(function(){s.current=t},[t]),e.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var e=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([t.lockRef.current],(t.shards||[]).map(er),!0).filter(Boolean);return e.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),e.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var c=e.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var n,i=Zn(e),a=r.current,c="deltaX"in e?e.deltaX:a[0]-i[0],l="deltaY"in e?e.deltaY:a[1]-i[1],u=e.target,f=Math.abs(c)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===f&&"range"===u.type)return!1;var d=window.getSelection(),p=d&&d.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=Yn(f,u);if(!m)return!0;if(m?n=f:(n="v"===f?"h":"v",m=Yn(f,u)),!m)return!1;if(!o.current&&"changedTouches"in e&&(c||l)&&(o.current=n),!n)return!0;var y=o.current||n;return function(e,t,n,r){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),i=o*r,a=n.target,s=t.contains(a),c=!1,l=i>0,u=0,f=0;do{if(!a)break;var d=Jn(e,a),p=d[0],m=d[1]-d[2]-o*p;(p||m)&&Xn(e,a)&&(u+=m,f+=p);var y=a.parentNode;a=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!s&&a!==document.body||s&&(t.contains(a)||t===a));return(l&&Math.abs(u)<1||!l&&Math.abs(f)<1)&&(c=!0),c}(y,t,e,"h"===y?c:l)},[]),l=e.useCallback(function(e){var t=e;if(rr.length&&rr[rr.length-1]===a){var r="deltaY"in t?Qn(t):Zn(t),o=n.current.filter(function(e){return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&(n=e.delta,o=r,n[0]===o[0]&&n[1]===o[1]);var n,o})[0];if(o&&o.should)t.cancelable&&t.preventDefault();else if(!o){var i=(s.current.shards||[]).map(er).filter(Boolean).filter(function(e){return e.contains(t.target)});(i.length>0?c(t,i[0]):!s.current.noIsolation)&&t.cancelable&&t.preventDefault()}}},[]),u=e.useCallback(function(e,t,r,o){var i={name:e,delta:t,target:r,should:o,shadowParent:or(r)};n.current.push(i),setTimeout(function(){n.current=n.current.filter(function(e){return e!==i})},1)},[]),f=e.useCallback(function(e){r.current=Zn(e),o.current=void 0},[]),d=e.useCallback(function(e){u(e.type,Qn(e),e.target,c(e,t.lockRef.current))},[]),p=e.useCallback(function(e){u(e.type,Zn(e),e.target,c(e,t.lockRef.current))},[]);e.useEffect(function(){return rr.push(a),t.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",l,Kn),document.addEventListener("touchmove",l,Kn),document.addEventListener("touchstart",f,Kn),function(){rr=rr.filter(function(e){return e!==a}),document.removeEventListener("wheel",l,Kn),document.removeEventListener("touchmove",l,Kn),document.removeEventListener("touchstart",f,Kn)}},[]);var m=t.removeScrollBar,y=t.inert;return e.createElement(e.Fragment,null,y?e.createElement(a,{styles:tr(i)}):null,m?e.createElement(Un,{noRelative:t.noRelative,gapMode:t.gapMode}):null)},An.useMedium(ir),Nn),sr=e.forwardRef(function(t,n){return e.createElement(Rn,xn({},t,{ref:n,sideCar:ar}))});sr.classNames=Rn.classNames;var cr="Popover",[lr]=S(cr,[Wt]),ur=Wt(),[fr,dr]=lr(cr),pr=t=>{const{__scopePopover:n,children:r,open:o,defaultOpen:i,onOpenChange:a,modal:s=!1}=t,c=ur(n),l=e.useRef(null),[f,d]=e.useState(!1),[p,m]=pn({prop:o,defaultProp:i??!1,onChange:a,caller:cr});return u(on,{...c,children:u(fr,{scope:n,contentId:te(),triggerRef:l,open:p,onOpenChange:m,onOpenToggle:e.useCallback(()=>m(e=>!e),[m]),hasCustomAnchor:f,onCustomAnchorAdd:e.useCallback(()=>d(!0),[]),onCustomAnchorRemove:e.useCallback(()=>d(!1),[]),modal:s,children:r})})};pr.displayName=cr;var mr="PopoverAnchor";e.forwardRef((t,n)=>{const{__scopePopover:r,...o}=t,i=dr(mr,r),a=ur(r),{onCustomAnchorAdd:s,onCustomAnchorRemove:c}=i;return e.useEffect(()=>(s(),()=>c()),[s,c]),u(an,{...a,...o,ref:n})}).displayName=mr;var yr="PopoverTrigger",hr=e.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=dr(yr,n),i=ur(n),a=E(t,o.triggerRef),s=u(P.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":$r(o.open),...r,ref:a,onClick:b(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:u(an,{asChild:!0,...i,children:s})});hr.displayName=yr;var gr="PopoverPortal",[vr,br]=lr(gr,{forceMount:void 0}),wr=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=dr(gr,t);return u(vr,{scope:t,forceMount:n,children:u(un,{present:n||i.open,children:u(ln,{asChild:!0,container:o,children:r})})})};wr.displayName=gr;var xr="PopoverContent",Er=e.forwardRef((e,t)=>{const n=br(xr,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=dr(xr,e.__scopePopover);return u(un,{present:r||i.open,children:i.modal?u(Or,{...o,ref:t}):u(kr,{...o,ref:t})})});Er.displayName=xr;var Sr=k("PopoverContent.RemoveScroll"),Or=e.forwardRef((t,n)=>{const r=dr(xr,t.__scopePopover),o=e.useRef(null),i=E(n,o),a=e.useRef(!1);return e.useEffect(()=>{const e=o.current;if(e)return wn(e)},[]),u(sr,{as:Sr,allowPinchZoom:!0,children:u(Cr,{...t,ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:b(t.onCloseAutoFocus,e=>{e.preventDefault(),a.current||r.triggerRef.current?.focus()}),onPointerDownOutside:b(t.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;a.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:b(t.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),kr=e.forwardRef((t,n)=>{const r=dr(xr,t.__scopePopover),o=e.useRef(!1),i=e.useRef(!1);return u(Cr,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{t.onCloseAutoFocus?.(e),e.defaultPrevented||(o.current||r.triggerRef.current?.focus(),e.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:e=>{t.onInteractOutside?.(e),e.defaultPrevented||(o.current=!0,"pointerdown"===e.detail.originalEvent.type&&(i.current=!0));const n=e.target,a=r.triggerRef.current?.contains(n);a&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&i.current&&e.preventDefault()}})}),Cr=e.forwardRef((t,n)=>{const{__scopePopover:r,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:c,onPointerDownOutside:l,onFocusOutside:f,onInteractOutside:d,...p}=t,m=dr(xr,r),y=ur(r);return e.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??V()),document.body.insertAdjacentElement("beforeend",e[1]??V()),F++,()=>{1===F&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),F--}},[]),u(H,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:a,children:u(I,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:d,onEscapeKeyDown:c,onPointerDownOutside:l,onFocusOutside:f,onDismiss:()=>m.onOpenChange(!1),children:u(sn,{"data-state":$r(m.open),role:"dialog",id:m.contentId,...y,...p,ref:n,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),_r="PopoverClose";e.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=dr(_r,n);return u(P.button,{type:"button",...r,ref:t,onClick:b(e.onClick,()=>o.onOpenChange(!1))})}).displayName=_r;function $r(e){return e?"open":"closed"}e.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=ur(n);return u(cn,{...o,...r,ref:t})}).displayName="PopoverArrow";var Pr=pr,Nr=hr,Ar=wr,Tr=Er;function Rr(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=Rr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Mr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Rr(e))&&(r&&(r+=" "),r+=t);return r}const jr=e=>{const t=Lr(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),Ir(n,t)||zr(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},Ir=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Ir(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},Dr=/^\[(.+)\]$/,zr=e=>{if(Dr.test(e)){const t=Dr.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Lr=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Br(Object.entries(e.classGroups),n).forEach(([e,n])=>{Fr(n,r,e,t)}),r},Fr=(e,t,n,r)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:Vr(t,e)).classGroupId=n)}if("function"==typeof e)return Wr(e)?void Fr(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach(([e,o])=>{Fr(o,Vr(t,e),n,r)})})},Vr=(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},Wr=e=>e.isThemeGetter,Br=(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,Ur=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)}}},Hr=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,c=0;for(let l=0;l<e.length;l++){let u=e[l];if(0===s){if(u===o&&(r||e.slice(l,l+i)===t)){n.push(e.slice(c,l)),c=l+i;continue}if("/"===u){a=l;continue}}"["===u?s++:"]"===u&&s--}const l=0===n.length?e:e.substring(c),u=l.startsWith("!");return{modifiers:n,hasImportantModifier:u,baseClassName:u?l.substring(1):l,maybePostfixModifierPosition:a&&a>c?a-c:void 0}};return n?e=>n({className:e,parseClassName:a}):a},Gr=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},Kr=/\s+/;function qr(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=Yr(e))&&(r&&(r+=" "),r+=t);return r}const Yr=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Yr(e[r]))&&(n&&(n+=" "),n+=t);return n};function Xr(e,...t){let n,r,o,i=function(s){const c=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:Ur(e.cacheSize),parseClassName:Hr(e),...jr(e)}))(c),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(Kr);let s="";for(let e=a.length-1;e>=0;e-=1){const t=a[e],{modifiers:c,hasImportantModifier:l,baseClassName:u,maybePostfixModifierPosition:f}=n(t);let d=Boolean(f),p=r(d?u.substring(0,f):u);if(!p){if(!d){s=t+(s.length>0?" "+s:s);continue}if(p=r(u),!p){s=t+(s.length>0?" "+s:s);continue}d=!1}const m=Gr(c).join(":"),y=l?m+"!":m,h=y+p;if(i.includes(h))continue;i.push(h);const g=o(p,d);for(let e=0;e<g.length;++e){const t=g[e];i.push(y+t)}s=t+(s.length>0?" "+s:s)}return s})(e,n);return o(e,i),i}return function(){return i(qr.apply(null,arguments))}}const Jr=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},Zr=/^\[(?:([a-z-]+):)?(.+)\]$/i,Qr=/^\d+\/\d+$/,eo=new Set(["px","full","screen"]),to=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,no=/\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$/,ro=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,oo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,io=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ao=e=>co(e)||eo.has(e)||Qr.test(e),so=e=>Eo(e,"length",So),co=e=>Boolean(e)&&!Number.isNaN(Number(e)),lo=e=>Eo(e,"number",co),uo=e=>Boolean(e)&&Number.isInteger(Number(e)),fo=e=>e.endsWith("%")&&co(e.slice(0,-1)),po=e=>Zr.test(e),mo=e=>to.test(e),yo=new Set(["length","size","percentage"]),ho=e=>Eo(e,yo,Oo),go=e=>Eo(e,"position",Oo),vo=new Set(["image","url"]),bo=e=>Eo(e,vo,Co),wo=e=>Eo(e,"",ko),xo=()=>!0,Eo=(e,t,n)=>{const r=Zr.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))},So=e=>no.test(e)&&!ro.test(e),Oo=()=>!1,ko=e=>oo.test(e),Co=e=>io.test(e),_o=()=>{const e=Jr("colors"),t=Jr("spacing"),n=Jr("blur"),r=Jr("brightness"),o=Jr("borderColor"),i=Jr("borderRadius"),a=Jr("borderSpacing"),s=Jr("borderWidth"),c=Jr("contrast"),l=Jr("grayscale"),u=Jr("hueRotate"),f=Jr("invert"),d=Jr("gap"),p=Jr("gradientColorStops"),m=Jr("gradientColorStopPositions"),y=Jr("inset"),h=Jr("margin"),g=Jr("opacity"),v=Jr("padding"),b=Jr("saturate"),w=Jr("scale"),x=Jr("sepia"),E=Jr("skew"),S=Jr("space"),O=Jr("translate"),k=()=>["auto",po,t],C=()=>[po,t],_=()=>["",ao,so],$=()=>["auto",co,po],P=()=>["","0",po],N=()=>[co,po];return{cacheSize:500,separator:":",theme:{colors:[xo],spacing:[ao,so],blur:["none","",mo,po],brightness:N(),borderColor:[e],borderRadius:["none","","full",mo,po],borderSpacing:C(),borderWidth:_(),contrast:N(),grayscale:P(),hueRotate:N(),invert:P(),gap:C(),gradientColorStops:[e],gradientColorStopPositions:[fo,so],inset:k(),margin:k(),opacity:N(),padding:C(),saturate:N(),scale:N(),sepia:P(),skew:N(),space:C(),translate:C()},classGroups:{aspect:[{aspect:["auto","square","video",po]}],container:["container"],columns:[{columns:[mo]}],"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",po]}],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:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",uo,po]}],basis:[{basis:k()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",po]}],grow:[{grow:P()}],shrink:[{shrink:P()}],order:[{order:["first","last","none",uo,po]}],"grid-cols":[{"grid-cols":[xo]}],"col-start-end":[{col:["auto",{span:["full",uo,po]},po]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[xo]}],"row-start-end":[{row:["auto",{span:[uo,po]},po]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",po]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",po]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"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:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],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":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",po,t]}],"min-w":[{"min-w":[po,t,"min","max","fit"]}],"max-w":[{"max-w":[po,t,"none","full","min","max","fit","prose",{screen:[mo]},mo]}],h:[{h:[po,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[po,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[po,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[po,t,"auto","min","max","fit"]}],"font-size":[{text:["base",mo,so]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",lo]}],"font-family":[{font:[xo]}],"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",po]}],"line-clamp":[{"line-clamp":["none",co,lo]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ao,po]}],"list-image":[{"list-image":["none",po]}],"list-style-type":[{list:["none","disc","decimal",po]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"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",ao,so]}],"underline-offset":[{"underline-offset":["auto",ao,po]}],"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:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",po]}],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",po]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",go]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ho]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},bo]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],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":[g]}],"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":[g]}],"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":[ao,po]}],"outline-w":[{outline:[ao,so]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:_()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[ao,so]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",mo,wo]}],"shadow-color":[{shadow:[xo]}],opacity:[{opacity:[g]}],"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:[c]}],"drop-shadow":[{"drop-shadow":["","none",mo,po]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[f]}],saturate:[{saturate:[b]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"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",po]}],duration:[{duration:N()}],ease:[{ease:["linear","in","out","in-out",po]}],delay:[{delay:N()}],animate:[{animate:["none","spin","ping","pulse","bounce",po]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[uo,po]}],"translate-x":[{"translate-x":[O]}],"translate-y":[{"translate-y":[O]}],"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",po]}],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",po]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"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",po]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ao,so,lo]}],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"]}}},$o=Xr(_o);function Po(...e){return $o(Mr(e))}const No=Pr,Ao=Nr,To=e.forwardRef(({className:t,align:n="center",sideOffset:r=4,...o},i)=>e.createElement(Ar,null,e.createElement(Tr,{ref:i,align:n,sideOffset:r,className:Po("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-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),...o})));To.displayName=Tr.displayName;const Ro=({id:e,className:n,align:r,side:o,sideOffset:i=8,collisionPadding:a=8,visible:s,content:c,children:l,onPointerDownOutside:u,onOpenAutoFocus:f,onOpenChange:d,onEscapeKeyDown:p,onCloseAutoFocus:m})=>t.createElement(No,{open:s,onOpenChange:d},t.createElement(Ao,{asChild:!0},l),t.createElement(To,{id:e,className:v("gyramais-popover-content",n),align:r,side:o,sideOffset:i,collisionPadding:a,onPointerDownOutside:u,onOpenAutoFocus:f,onEscapeKeyDown:p,onCloseAutoFocus:m},c));var Mo={},jo={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(jo);var Io=jo.exports,Do={};function zo(){return zo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zo.apply(null,arguments)}function Lo(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Fo(t){if(e.isValidElement(t)||!Lo(t))return t;const n={};return Object.keys(t).forEach(e=>{n[e]=Fo(t[e])}),n}function Vo(t,n,r={clone:!0}){const o=r.clone?zo({},t):t;return Lo(t)&&Lo(n)&&Object.keys(n).forEach(i=>{e.isValidElement(n[i])?o[i]=n[i]:Lo(n[i])&&Object.prototype.hasOwnProperty.call(t,i)&&Lo(t[i])?o[i]=Vo(t[i],n[i],r):r.clone?o[i]=Lo(n[i])?Fo(n[i]):n[i]:o[i]=n[i]}),o}var Wo,Bo=Object.freeze({__proto__:null,default:Vo,isPlainObject:Lo}),Uo={exports:{}},Ho={exports:{}},Go={};var Ko,qo,Yo,Xo,Jo,Zo,Qo,ei,ti,ni,ri,oi,ii,ai,si={};
7
7
  /** @license React v16.13.1
8
8
  * react-is.development.js
9
9
  *