@gyramais/gyra-design 0.2.48 → 0.2.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Button/Button.d.ts +7 -0
- package/dist/components/Button/index.js.map +1 -1
- package/dist/components/Card/Card.d.ts +1 -7
- package/dist/components/Card/index.js +6 -6
- package/dist/components/Card/index.js.map +1 -1
- package/dist/components/ContextMenu/index.js +1 -1
- package/dist/components/ContextMenu/index.js.map +1 -1
- package/dist/components/DropdownMenu/index.js +1 -1
- package/dist/components/DropdownMenu/index.js.map +1 -1
- package/dist/components/Empty/Empty.d.ts +1 -18
- package/dist/components/Empty/index.js +40 -2
- package/dist/components/Empty/index.js.map +1 -1
- package/dist/components/Filter/index.js.map +1 -1
- package/dist/components/FloatingCard/index.js +7 -7
- package/dist/components/FloatingCard/index.js.map +1 -1
- package/dist/components/List/index.js +40 -2
- package/dist/components/List/index.js.map +1 -1
- package/dist/components/Modal/index.js.map +1 -1
- package/dist/components/MultiSelectPicker/index.js +1 -1
- package/dist/components/MultiSelectPicker/index.js.map +1 -1
- package/dist/components/OperatorPicker/index.js +1 -1
- package/dist/components/OperatorPicker/index.js.map +1 -1
- package/dist/components/PickerPopover/index.js +1 -1
- package/dist/components/PickerPopover/index.js.map +1 -1
- package/dist/components/Popover/Popover.d.ts +3 -1
- package/dist/components/Popover/index.js +1 -1
- package/dist/components/Popover/index.js.map +1 -1
- package/dist/components/Rail/Rail.d.ts +59 -0
- package/dist/components/Rail/RailGate.d.ts +22 -0
- package/dist/components/Rail/RailMini.d.ts +25 -0
- package/dist/components/Rail/RailStep.d.ts +45 -0
- package/dist/components/Rail/index.d.ts +6 -0
- package/dist/components/Rail/index.js +45 -0
- package/dist/components/Rail/index.js.map +1 -0
- package/dist/components/Rail/labels.d.ts +25 -0
- package/dist/components/Rail/types.d.ts +75 -0
- package/dist/components/RuleSearchPicker/index.js +1 -1
- package/dist/components/RuleSearchPicker/index.js.map +1 -1
- package/dist/components/SegmentedPicker/SegmentedPicker.d.ts +7 -1
- package/dist/components/SegmentedPicker/index.js +2 -2
- package/dist/components/SegmentedPicker/index.js.map +1 -1
- package/dist/components/Switch/Switch.d.ts +7 -1
- package/dist/components/Switch/index.js +1 -1
- package/dist/components/Switch/index.js.map +1 -1
- package/dist/components/Table/Table.d.ts +1 -14
- package/dist/components/Table/index.js +40 -2
- package/dist/components/Table/index.js.map +1 -1
- package/dist/emails/balance-sheet-finalized/components/Button/Button.d.ts +7 -0
- package/dist/emails/balance-sheet-finalized/components/Card/Card.d.ts +1 -7
- package/dist/emails/balance-sheet-finalized/components/Empty/Empty.d.ts +1 -18
- package/dist/emails/balance-sheet-finalized/components/Popover/Popover.d.ts +3 -1
- package/dist/emails/balance-sheet-finalized/components/Rail/Rail.d.ts +59 -0
- package/dist/emails/balance-sheet-finalized/components/Rail/RailGate.d.ts +22 -0
- package/dist/emails/balance-sheet-finalized/components/Rail/RailMini.d.ts +25 -0
- package/dist/emails/balance-sheet-finalized/components/Rail/RailStep.d.ts +45 -0
- package/dist/emails/balance-sheet-finalized/components/Rail/index.d.ts +6 -0
- package/dist/emails/balance-sheet-finalized/components/Rail/labels.d.ts +25 -0
- package/dist/emails/balance-sheet-finalized/components/Rail/types.d.ts +75 -0
- package/dist/emails/balance-sheet-finalized/components/SegmentedPicker/SegmentedPicker.d.ts +7 -1
- package/dist/emails/balance-sheet-finalized/components/Switch/Switch.d.ts +7 -1
- package/dist/emails/balance-sheet-finalized/components/Table/Table.d.ts +1 -14
- package/dist/emails/balance-sheet-finalized/index.d.ts +1 -1
- package/dist/emails/email/components/Button/Button.d.ts +7 -0
- package/dist/emails/email/components/Card/Card.d.ts +1 -7
- package/dist/emails/email/components/Empty/Empty.d.ts +1 -18
- package/dist/emails/email/components/Popover/Popover.d.ts +3 -1
- package/dist/emails/email/components/Rail/Rail.d.ts +59 -0
- package/dist/emails/email/components/Rail/RailGate.d.ts +22 -0
- package/dist/emails/email/components/Rail/RailMini.d.ts +25 -0
- package/dist/emails/email/components/Rail/RailStep.d.ts +45 -0
- package/dist/emails/email/components/Rail/index.d.ts +6 -0
- package/dist/emails/email/components/Rail/labels.d.ts +25 -0
- package/dist/emails/email/components/Rail/types.d.ts +75 -0
- package/dist/emails/email/components/SegmentedPicker/SegmentedPicker.d.ts +7 -1
- package/dist/emails/email/components/Switch/Switch.d.ts +7 -1
- package/dist/emails/email/components/Table/Table.d.ts +1 -14
- package/dist/emails/email/index.d.ts +1 -1
- package/dist/index.css +859 -372
- package/package.json +1 -1
- package/dist/components/Skeleton/Skeleton.d.ts +0 -50
- package/dist/components/Skeleton/index.d.ts +0 -1
- package/dist/components/Skeleton/index.js +0 -7
- package/dist/components/Skeleton/index.js.map +0 -1
- package/dist/emails/balance-sheet-finalized/components/Skeleton/Skeleton.d.ts +0 -50
- package/dist/emails/balance-sheet-finalized/components/Skeleton/index.d.ts +0 -1
- package/dist/emails/email/components/Skeleton/Skeleton.d.ts +0 -50
- package/dist/emails/email/components/Skeleton/index.d.ts +0 -1
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
Copyright (c) 2018 Jed Watson.
|
|
4
4
|
Licensed under the MIT License (MIT), see
|
|
5
5
|
http://jedwatson.github.io/classnames
|
|
6
|
-
*/u=d,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}u.exports?(t.default=t,u.exports=t):window.classNames=t}();var f=c(d.exports);function p(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function m(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function h(...e){return t=>{let n=!1;const r=e.map(e=>{const r=m(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():m(e[t],null)}}}}function g(...t){return e.useCallback(h(...t),t)}function v(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),s=r.length;r=[...r,o];const l=n=>{const{scope:r,children:o,...l}=n,c=r?.[t]?.[s]||i,u=e.useMemo(()=>l,Object.values(l));return a(c.Provider,{value:u,children:o})};return l.displayName=n+"Provider",[l,function(r,a){const l=a?.[t]?.[s]||i,c=e.useContext(l);if(c)return c;if(void 0!==o)return o;throw new Error(`\`${r}\` must be used within \`${n}\``)}]},b(o,...n)]}function b(...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 y(t){const n=w(t),r=e.forwardRef((t,r)=>{const{children:o,...i}=t,s=e.Children.toArray(o),l=s.find(E);if(l){const t=l.props.children,o=s.map(n=>n===l?e.Children.count(t)>1?e.Children.only(null):e.isValidElement(t)?t.props.children:null:n);return a(n,{...i,ref:r,children:e.isValidElement(t)?e.cloneElement(t,void 0,o):null})}return a(n,{...i,ref:r,children:o})});return r.displayName=`${t}.Slot`,r}function w(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?h(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 x=Symbol("radix.slottable");function E(t){return e.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===x}var C=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((t,n)=>{const r=y(`Primitive.${n}`),o=e.forwardRef((e,t)=>{const{asChild:o,...i}=e,s=o?r:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),a(s,{...i,ref:t})});return o.displayName=`Primitive.${n}`,{...t,[n]:o}},{});function P(t){const n=e.useRef(t);return e.useEffect(()=>{n.current=t}),e.useMemo(()=>(...e)=>n.current?.(...e),[])}var R,O="dismissableLayer.update",S="dismissableLayer.pointerDownOutside",k="dismissableLayer.focusOutside",A=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),N=e.forwardRef((t,n)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:l,onDismiss:c,...u}=t,d=e.useContext(A),[f,m]=e.useState(null),h=f?.ownerDocument??globalThis?.document,[,v]=e.useState({}),b=g(n,e=>m(e)),y=Array.from(d.layers),[w]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=y.indexOf(w),E=f?y.indexOf(f):-1,N=d.layersWithOutsidePointerEventsDisabled.size>0,L=E>=x,M=function(t,n=globalThis?.document){const r=P(t),o=e.useRef(!1),i=e.useRef(()=>{});return e.useEffect(()=>{const e=e=>{if(e.target&&!o.current){let t=function(){D(S,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=[...d.branches].some(e=>e.contains(t));L&&!n&&(i?.(e),l?.(e),e.defaultPrevented||c?.())},h),_=function(t,n=globalThis?.document){const r=P(t),o=e.useRef(!1);return e.useEffect(()=>{const e=e=>{if(e.target&&!o.current){D(k,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;[...d.branches].some(e=>e.contains(t))||(s?.(e),l?.(e),e.defaultPrevented||c?.())},h);return function(t,n=globalThis?.document){const r=P(t);e.useEffect(()=>{const e=e=>{"Escape"===e.key&&r(e)};return n.addEventListener("keydown",e,{capture:!0}),()=>n.removeEventListener("keydown",e,{capture:!0})},[r,n])}(e=>{E===d.layers.size-1&&(o?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))},h),e.useEffect(()=>{if(f)return r&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(R=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),T(),()=>{r&&1===d.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=R)}},[f,h,r,d]),e.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),T())},[f,d]),e.useEffect(()=>{const e=()=>v({});return document.addEventListener(O,e),()=>document.removeEventListener(O,e)},[]),a(C.div,{...u,ref:b,style:{pointerEvents:N?L?"auto":"none":void 0,...t.style},onFocusCapture:p(t.onFocusCapture,_.onFocusCapture),onBlurCapture:p(t.onBlurCapture,_.onBlurCapture),onPointerDownCapture:p(t.onPointerDownCapture,M.onPointerDownCapture)})});N.displayName="DismissableLayer";function T(){const e=new CustomEvent(O);document.dispatchEvent(e)}function D(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&&s.flushSync(()=>e.dispatchEvent(t))}(o,i):o.dispatchEvent(i)}e.forwardRef((t,n)=>{const r=e.useContext(A),o=e.useRef(null),i=g(n,o);return e.useEffect(()=>{const e=o.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),a(C.div,{...t,ref:i})}).displayName="DismissableLayerBranch";var L=0;function M(){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 _="focusScope.autoFocusOnMount",z="focusScope.autoFocusOnUnmount",F={bubbles:!1,cancelable:!0},I=e.forwardRef((t,n)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...l}=t,[c,u]=e.useState(null),d=P(i),f=P(s),p=e.useRef(null),m=g(n,e=>u(e)),h=e.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;e.useEffect(()=>{if(o){let e=function(e){if(h.paused||!c)return;const t=e.target;c.contains(t)?p.current=t:B(p.current,{select:!0})},t=function(e){if(h.paused||!c)return;const t=e.relatedTarget;null!==t&&(c.contains(t)||B(p.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&B(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,h.paused]),e.useEffect(()=>{if(c){H.add(h);const t=document.activeElement;if(!c.contains(t)){const n=new CustomEvent(_,F);c.addEventListener(_,d),c.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(B(r,{select:t}),document.activeElement!==n)return}((e=W(c),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&B(c))}return()=>{c.removeEventListener(_,d),setTimeout(()=>{const e=new CustomEvent(z,F);c.addEventListener(z,f),c.dispatchEvent(e),e.defaultPrevented||B(t??document.body,{select:!0}),c.removeEventListener(z,f),H.remove(h)},0)}}var e},[c,d,f,h]);const v=e.useCallback(e=>{if(!r&&!o)return;if(h.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=W(e),n=j(t,e),r=j(t.reverse(),e);return[n,r]}(t);o&&i?e.shiftKey||n!==i?e.shiftKey&&n===o&&(e.preventDefault(),r&&B(i,{select:!0})):(e.preventDefault(),r&&B(o,{select:!0})):n===t&&e.preventDefault()}},[r,o,h.paused]);return a(C.div,{tabIndex:-1,...l,ref:m,onKeyDown:v})});function W(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 j(e,t){for(const n of e)if(!$(n,{upTo:t}))return n}function $(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 B(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()}}I.displayName="FocusScope";var H=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=G(e,t),e.unshift(t)},remove(t){e=G(e,t),e[0]?.resume()}}}();function G(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var U=globalThis?.document?e.useLayoutEffect:()=>{},V=e[" useId ".trim().toString()]||(()=>{}),Y=0;function K(t){const[n,r]=e.useState(V());return U(()=>{r(e=>e??String(Y++))},[t]),t||(n?`radix-${n}`:"")}const X=["top","right","bottom","left"],q=Math.min,Z=Math.max,J=Math.round,Q=Math.floor,ee=e=>({x:e,y:e}),te={left:"right",right:"left",bottom:"top",top:"bottom"};function ne(e,t,n){return Z(e,q(t,n))}function re(e,t){return"function"==typeof e?e(t):e}function oe(e){return e.split("-")[0]}function ie(e){return e.split("-")[1]}function ae(e){return"x"===e?"y":"x"}function se(e){return"y"===e?"height":"width"}function le(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function ce(e){return ae(le(e))}function ue(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const de=["left","right"],fe=["right","left"],pe=["top","bottom"],me=["bottom","top"];function he(e,t,n,r){const o=ie(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?fe:de:t?de:fe;case"left":case"right":return t?pe:me;default:return[]}}(oe(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(ue)))),i}function ge(e){const t=oe(e);return te[t]+e.slice(t.length)}function ve(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 be(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 ye(e,t,n){let{reference:r,floating:o}=e;const i=le(t),a=ce(t),s=se(a),l=oe(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let p;switch(l){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:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(ie(t)){case"start":p[a]-=f*(n&&c?-1:1);break;case"end":p[a]+=f*(n&&c?-1:1)}return p}async function we(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=re(t,e),m=ve(p),h=s[f?"floating"===d?"reference":"floating":d],g=be(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),y=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},w=be(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:b,strategy:l}):v);return{top:(g.top-w.top+m.top)/y.y,bottom:(w.bottom-g.bottom+m.bottom)/y.y,left:(g.left-w.left+m.left)/y.x,right:(w.right-g.right+m.right)/y.x}}function xe(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ee(e){return X.some(t=>e[t]>=0)}const Ce=new Set(["left","top"]);function Pe(){return"undefined"!=typeof window}function Re(e){return ke(e)?(e.nodeName||"").toLowerCase():"#document"}function Oe(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Se(e){var t;return null==(t=(ke(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ke(e){return!!Pe()&&(e instanceof Node||e instanceof Oe(e).Node)}function Ae(e){return!!Pe()&&(e instanceof Element||e instanceof Oe(e).Element)}function Ne(e){return!!Pe()&&(e instanceof HTMLElement||e instanceof Oe(e).HTMLElement)}function Te(e){return!(!Pe()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Oe(e).ShadowRoot)}function De(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Be(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function Le(e){return/^(table|td|th)$/.test(Re(e))}function Me(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}const _e=/transform|translate|scale|rotate|perspective|filter/,ze=/paint|layout|strict|content/,Fe=e=>!!e&&"none"!==e;let Ie;function We(e){const t=Ae(e)?Be(e):e;return Fe(t.transform)||Fe(t.translate)||Fe(t.scale)||Fe(t.rotate)||Fe(t.perspective)||!je()&&(Fe(t.backdropFilter)||Fe(t.filter))||_e.test(t.willChange||"")||ze.test(t.contain||"")}function je(){return null==Ie&&(Ie="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ie}function $e(e){return/^(html|body|#document)$/.test(Re(e))}function Be(e){return Oe(e).getComputedStyle(e)}function He(e){return Ae(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ge(e){if("html"===Re(e))return e;const t=e.assignedSlot||e.parentNode||Te(e)&&e.host||Se(e);return Te(t)?t.host:t}function Ue(e){const t=Ge(e);return $e(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ne(t)&&De(t)?t:Ue(t)}function Ve(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Ue(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Oe(o);if(i){const e=Ye(a);return t.concat(a,a.visualViewport||[],De(o)?o:[],e&&n?Ve(e):[])}return t.concat(o,Ve(o,[],n))}function Ye(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ke(e){const t=Be(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ne(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=J(n)!==i||J(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function Xe(e){return Ae(e)?e:e.contextElement}function qe(e){const t=Xe(e);if(!Ne(t))return ee(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Ke(t);let a=(i?J(n.width):n.width)/r,s=(i?J(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Ze=ee(0);function Je(e){const t=Oe(e);return je()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Ze}function Qe(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Xe(e);let a=ee(1);t&&(r?Ae(r)&&(a=qe(r)):a=qe(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Oe(e))&&t}(i,n,r)?Je(i):ee(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=Oe(i),t=r&&Ae(r)?Oe(r):r;let n=e,o=Ye(n);for(;o&&r&&t!==n;){const e=qe(o),t=o.getBoundingClientRect(),r=Be(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=a,n=Oe(o),o=Ye(n)}}return be({width:u,height:d,x:l,y:c})}function et(e,t){const n=He(e).scrollLeft;return t?t.left+n:Qe(Se(e)).left+n}function tt(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-et(e,n),y:n.top+t.scrollTop}}function nt(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Oe(e),r=Se(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=je();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}const c=et(r);if(c<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,a=Math.abs(r.clientWidth-t.clientWidth-o);a<=25&&(i-=a)}else c<=25&&(i+=c);return{width:i,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=Se(e),n=He(e),r=e.ownerDocument.body,o=Z(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Z(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+et(e);const s=-n.scrollTop;return"rtl"===Be(r).direction&&(a+=Z(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(Se(e));else if(Ae(t))r=function(e,t){const n=Qe(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Ne(e)?qe(e):ee(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=Je(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return be(r)}function rt(e,t){const n=Ge(e);return!(n===t||!Ae(n)||$e(n))&&("fixed"===Be(n).position||rt(n,t))}function ot(e,t,n){const r=Ne(t),o=Se(t),i="fixed"===n,a=Qe(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=ee(0);function c(){l.x=et(o)}if(r||!r&&!i)if(("body"!==Re(t)||De(o))&&(s=He(t)),r){const e=Qe(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&c();i&&!r&&o&&c();const u=!o||r||i?ee(0):tt(o,s);return{x:a.left+s.scrollLeft-l.x-u.x,y:a.top+s.scrollTop-l.y-u.y,width:a.width,height:a.height}}function it(e){return"static"===Be(e).position}function at(e,t){if(!Ne(e)||"fixed"===Be(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Se(e)===n&&(n=n.ownerDocument.body),n}function st(e,t){const n=Oe(e);if(Me(e))return n;if(!Ne(e)){let t=Ge(e);for(;t&&!$e(t);){if(Ae(t)&&!it(t))return t;t=Ge(t)}return n}let r=at(e,t);for(;r&&Le(r)&&it(r);)r=at(r,t);return r&&$e(r)&&it(r)&&!We(r)?n:r||function(e){let t=Ge(e);for(;Ne(t)&&!$e(t);){if(We(t))return t;if(Me(t))return null;t=Ge(t)}return null}(e)||n}const lt={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=Se(r),s=!!t&&Me(t.floating);if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},c=ee(1);const u=ee(0),d=Ne(r);if((d||!d&&!i)&&(("body"!==Re(r)||De(a))&&(l=He(r)),d)){const e=Qe(r);c=qe(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const f=!a||d||i?ee(0):tt(a,l);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-l.scrollTop*c.y+u.y+f.y}},getDocumentElement:Se,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?Me(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Ve(e,[],!1).filter(e=>Ae(e)&&"body"!==Re(e)),o=null;const i="fixed"===Be(e).position;let a=i?Ge(e):e;for(;Ae(a)&&!$e(a);){const t=Be(a),n=We(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||De(a)&&!n&&rt(e,a))?r=r.filter(e=>e!==a):o=t,a=Ge(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=nt(t,i[0],o);let s=a.top,l=a.right,c=a.bottom,u=a.left;for(let e=1;e<i.length;e++){const n=nt(t,i[e],o);s=Z(n.top,s),l=q(n.right,l),c=q(n.bottom,c),u=Z(n.left,u)}return{width:l-u,height:c-s,x:u,y:s}},getOffsetParent:st,getElementRects:async function(e){const t=this.getOffsetParent||st,n=this.getDimensions,r=await n(e.floating);return{reference:ot(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}=Ke(e);return{width:t,height:n}},getScale:qe,isElement:Ae,isRTL:function(e){return"rtl"===Be(e).direction}};function ct(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ut(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=Xe(e),u=o||i?[...c?Ve(c):[],...t?Ve(t):[]]:[];u.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});const d=c&&s?function(e,t){let n,r=null;const o=Se(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=c;if(s||t(),!f||!p)return;const m={rootMargin:-Q(d)+"px "+-Q(o.clientWidth-(u+f))+"px "+-Q(o.clientHeight-(d+p))+"px "+-Q(u)+"px",threshold:Z(0,q(1,l))||1};let h=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!h)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||ct(c,e.getBoundingClientRect())||a(),h=!1}try{r=new IntersectionObserver(g,{...m,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,m)}r.observe(e)}(!0),i}(c,n):null;let f,p=-1,m=null;a&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),c&&!l&&m.observe(c),t&&m.observe(t));let h=l?Qe(e):null;return l&&function t(){const r=Qe(e);h&&!ct(h,r)&&n();h=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=m)||e.disconnect(),m=null,l&&cancelAnimationFrame(f)}}const dt=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=oe(n),s=ie(n),l="y"===le(n),c=Ce.has(a)?-1:1,u=i&&l?-1:1,d=re(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof m&&(p="end"===s?-1*m:m),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},ft=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:i}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=re(e,t),u={x:n,y:r},d=await i.detectOverflow(t,c),f=le(oe(o)),p=ae(f);let m=u[p],h=u[f];if(a){const e="y"===p?"bottom":"right";m=ne(m+d["y"===p?"top":"left"],m,m-d[e])}if(s){const e="y"===f?"bottom":"right";h=ne(h+d["y"===f?"top":"left"],h,h-d[e])}const g=l.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:a,[f]:s}}}}}},pt=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...g}=re(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=oe(o),b=le(s),y=oe(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=f||(y||!h?[ge(s)]:function(e){const t=ge(e);return[ue(e),t,ue(t)]}(s)),E="none"!==m;!f&&E&&x.push(...he(s,h,m,w));const C=[s,...x],P=await l.detectOverflow(t,g),R=[];let O=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&R.push(P[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=ie(e),o=ce(e),i=se(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=ge(a)),[a,ge(a)]}(o,a,w);R.push(P[e[0]],P[e[1]])}if(O=[...O,{placement:o,overflows:R}],!R.every(e=>e<=0)){var S,k;const e=((null==(S=i.flip)?void 0:S.index)||0)+1,t=C[e];if(t){if(!("alignment"===d&&b!==le(t))||O.every(e=>le(e.placement)!==b||e.overflows[0]>0))return{data:{index:e,overflows:O},reset:{placement:t}}}let n=null==(k=O.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:k.placement;if(!n)switch(p){case"bestFit":{var A;const e=null==(A=O.filter(e=>{if(E){const t=le(e.placement);return t===b||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:A[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},mt=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:a,elements:s}=t,{apply:l=()=>{},...c}=re(e,t),u=await a.detectOverflow(t,c),d=oe(o),f=ie(o),p="y"===le(o),{width:m,height:h}=i.floating;let g,v;"top"===d||"bottom"===d?(g=d,v=f===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(v=d,g="end"===f?"top":"bottom");const b=h-u.top-u.bottom,y=m-u.left-u.right,w=q(h-u[g],b),x=q(m-u[v],y),E=!t.middlewareData.shift;let C=w,P=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(P=y),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(C=b),E&&!f){const e=Z(u.left,0),t=Z(u.right,0),n=Z(u.top,0),r=Z(u.bottom,0);p?P=m-2*(0!==e||0!==t?e+t:Z(u.left,u.right)):C=h-2*(0!==n||0!==r?n+r:Z(u.top,u.bottom))}await l({...t,availableWidth:P,availableHeight:C});const R=await a.getDimensions(s.floating);return m!==R.width||h!==R.height?{reset:{rects:!0}}:{}}}},ht=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...i}=re(e,t);switch(o){case"referenceHidden":{const e=xe(await r.detectOverflow(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Ee(e)}}}case"escaped":{const e=xe(await r.detectOverflow(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Ee(e)}}}default:return{}}}}},gt=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=re(e,t)||{};if(null==c)return{};const d=ve(u),f={x:n,y:r},p=ce(o),m=se(p),h=await a.getDimensions(c),g="y"===p,v=g?"top":"left",b=g?"bottom":"right",y=g?"clientHeight":"clientWidth",w=i.reference[m]+i.reference[p]-f[p]-i.floating[m],x=f[p]-i.reference[p],E=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let C=E?E[y]:0;C&&await(null==a.isElement?void 0:a.isElement(E))||(C=s.floating[y]||i.floating[m]);const P=w/2-x/2,R=C/2-h[m]/2-1,O=q(d[v],R),S=q(d[b],R),k=O,A=C-h[m]-S,N=C/2-h[m]/2+P,T=ne(k,N,A),D=!l.arrow&&null!=ie(o)&&N!==T&&i.reference[m]/2-(N<k?O:S)-h[m]/2<0,L=D?N<k?N-k:N-A:0;return{[p]:f[p]+L,data:{[p]:T,centerOffset:N-T-L,...D&&{alignmentOffset:L}},reset:D}}}),vt=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=re(e,t),u={x:n,y:r},d=le(o),f=ae(d);let p=u[f],m=u[d];const h=re(s,t),g="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+g.mainAxis,n=i.reference[f]+i.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(c){var v,b;const e="y"===f?"width":"height",t=Ce.has(oe(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(v=a.offset)?void 0:v[d])||0)+(t?0:g.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(b=a.offset)?void 0:b[d])||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},bt=(e,t,n)=>{const r=new Map,o={platform:lt,...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:we},l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=ye(c,r,l),f=r,p=0;const m={};for(let n=0;n<i.length;n++){const h=i[n];if(!h)continue;const{name:g,fn:v}=h,{x:b,y:y,data:w,reset:x}=await v({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:m,rects:c,platform:s,elements:{reference:e,floating:t}});u=null!=b?b:u,d=null!=y?y:d,m[g]={...m[g],...w},x&&p<50&&(p++,"object"==typeof x&&(x.placement&&(f=x.placement),x.rects&&(c=!0===x.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):x.rects),({x:u,y:d}=ye(c,f,l))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:m}})(e,t,{...o,platform:i})};var yt="undefined"!=typeof document?n:function(){};function wt(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(!wt(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)&&!wt(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function xt(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Et(e,t){const n=xt(e);return Math.round(t*n)/n}function Ct(t){const n=e.useRef(t);return yt(()=>{n.current=t}),n}const Pt=(e,t)=>{const n=dt(e);return{name:n.name,fn:n.fn,options:[e,t]}},Rt=(e,t)=>{const n=ft(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ot=(e,t)=>({fn:vt(e).fn,options:[e,t]}),St=(e,t)=>{const n=pt(e);return{name:n.name,fn:n.fn,options:[e,t]}},kt=(e,t)=>{const n=mt(e);return{name:n.name,fn:n.fn,options:[e,t]}},At=(e,t)=>{const n=ht(e);return{name:n.name,fn:n.fn,options:[e,t]}},Nt=(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?gt({element:n.current,padding:r}).fn(t):{}:n?gt({element:n,padding:r}).fn(t):{};var o}}))(e);return{name:n.name,fn:n.fn,options:[e,t]}};var Tt=e.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return a(C.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:a("polygon",{points:"0,0 30,0 15,10"})})});Tt.displayName="Arrow";var Dt=Tt;var Lt="Popper",[Mt,_t]=v(Lt),[zt,Ft]=Mt(Lt),It=t=>{const{__scopePopper:n,children:r}=t,[o,i]=e.useState(null);return a(zt,{scope:n,anchor:o,onAnchorChange:i,children:r})};It.displayName=Lt;var Wt="PopperAnchor",jt=e.forwardRef((t,n)=>{const{__scopePopper:r,virtualRef:o,...i}=t,s=Ft(Wt,r),l=e.useRef(null),c=g(n,l),u=e.useRef(null);return e.useEffect(()=>{const e=u.current;u.current=o?.current||l.current,e!==u.current&&s.onAnchorChange(u.current)}),o?null:a(C.div,{...i,ref:c})});jt.displayName=Wt;var $t="PopperContent",[Bt,Ht]=Mt($t),Gt=e.forwardRef((t,n)=>{const{__scopePopper:r,side:o="bottom",sideOffset:i=0,align:l="center",alignOffset:c=0,arrowPadding:u=0,avoidCollisions:d=!0,collisionBoundary:f=[],collisionPadding:p=0,sticky:m="partial",hideWhenDetached:h=!1,updatePositionStrategy:v="optimized",onPlaced:b,...y}=t,w=Ft($t,r),[x,E]=e.useState(null),R=g(n,e=>E(e)),[O,S]=e.useState(null),k=function(t){const[n,r]=e.useState(void 0);return U(()=>{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),A=k?.width??0,N=k?.height??0,T=o+("center"!==l?"-"+l:""),D="number"==typeof p?p:{top:0,right:0,bottom:0,left:0,...p},L=Array.isArray(f)?f:[f],M=L.length>0,_={padding:D,boundary:L.filter(Kt),altBoundary:M},{refs:z,floatingStyles:F,placement:I,isPositioned:W,middlewareData:j}=function(t){void 0===t&&(t={});const{placement:n="bottom",strategy:r="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:l}={},transform:c=!0,whileElementsMounted:u,open:d}=t,[f,p]=e.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[m,h]=e.useState(o);wt(m,o)||h(o);const[g,v]=e.useState(null),[b,y]=e.useState(null),w=e.useCallback(e=>{e!==P.current&&(P.current=e,v(e))},[]),x=e.useCallback(e=>{e!==R.current&&(R.current=e,y(e))},[]),E=a||g,C=l||b,P=e.useRef(null),R=e.useRef(null),O=e.useRef(f),S=null!=u,k=Ct(u),A=Ct(i),N=Ct(d),T=e.useCallback(()=>{if(!P.current||!R.current)return;const e={placement:n,strategy:r,middleware:m};A.current&&(e.platform=A.current),bt(P.current,R.current,e).then(e=>{const t={...e,isPositioned:!1!==N.current};D.current&&!wt(O.current,t)&&(O.current=t,s.flushSync(()=>{p(t)}))})},[m,n,r,A,N]);yt(()=>{!1===d&&O.current.isPositioned&&(O.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[d]);const D=e.useRef(!1);yt(()=>(D.current=!0,()=>{D.current=!1}),[]),yt(()=>{if(E&&(P.current=E),C&&(R.current=C),E&&C){if(k.current)return k.current(E,C,T);T()}},[E,C,T,k,S]);const L=e.useMemo(()=>({reference:P,floating:R,setReference:w,setFloating:x}),[w,x]),M=e.useMemo(()=>({reference:E,floating:C}),[E,C]),_=e.useMemo(()=>{const e={position:r,left:0,top:0};if(!M.floating)return e;const t=Et(M.floating,f.x),n=Et(M.floating,f.y);return c?{...e,transform:"translate("+t+"px, "+n+"px)",...xt(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:T,refs:L,elements:M,floatingStyles:_}),[f,T,L,M,_])}({strategy:"fixed",placement:T,whileElementsMounted:(...e)=>ut(...e,{animationFrame:"always"===v}),elements:{reference:w.anchor},middleware:[Pt({mainAxis:i+N,alignmentAxis:c}),d&&Rt({mainAxis:!0,crossAxis:!1,limiter:"partial"===m?Ot():void 0,..._}),d&&St({..._}),kt({..._,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&&Nt({element:O,padding:u}),Xt({arrowWidth:A,arrowHeight:N}),h&&At({strategy:"referenceHidden",..._})]}),[$,B]=qt(I),H=P(b);U(()=>{W&&H?.()},[W,H]);const G=j.arrow?.x,V=j.arrow?.y,Y=0!==j.arrow?.centerOffset,[K,X]=e.useState();return U(()=>{x&&X(window.getComputedStyle(x).zIndex)},[x]),a("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...F,transform:W?F.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:K,"--radix-popper-transform-origin":[j.transformOrigin?.x,j.transformOrigin?.y].join(" "),...j.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:a(Bt,{scope:r,placedSide:$,onArrowChange:S,arrowX:G,arrowY:V,shouldHideArrow:Y,children:a(C.div,{"data-side":$,"data-align":B,...y,ref:R,style:{...y.style,animation:W?void 0:"none"}})})})});Gt.displayName=$t;var Ut="PopperArrow",Vt={top:"bottom",right:"left",bottom:"top",left:"right"},Yt=e.forwardRef(function(e,t){const{__scopePopper:n,...r}=e,o=Ht(Ut,n),i=Vt[o.placedSide];return a("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:a(Dt,{...r,ref:t,style:{...r.style,display:"block"}})})});function Kt(e){return null!==e}Yt.displayName=Ut;var Xt=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,i=0!==o.arrow?.centerOffset,a=i?0:e.arrowWidth,s=i?0:e.arrowHeight,[l,c]=qt(n),u={start:"0%",center:"50%",end:"100%"}[c],d=(o.arrow?.x??0)+a/2,f=(o.arrow?.y??0)+s/2;let p="",m="";return"bottom"===l?(p=i?u:`${d}px`,m=-s+"px"):"top"===l?(p=i?u:`${d}px`,m=`${r.floating.height+s}px`):"right"===l?(p=-s+"px",m=i?u:`${f}px`):"left"===l&&(p=`${r.floating.width+s}px`,m=i?u:`${f}px`),{data:{x:p,y:m}}}});function qt(e){const[t,n="center"]=e.split("-");return[t,n]}var Zt=It,Jt=jt,Qt=Gt,en=Yt,tn=e.forwardRef((t,n)=>{const{container:r,...o}=t,[i,s]=e.useState(!1);U(()=>s(!0),[]);const c=r||i&&globalThis?.document?.body;return c?l.createPortal(a(C.div,{...o,ref:n}),c):null});tn.displayName="Portal";var nn=t=>{const{present:n,children:r}=t,o=function(t){const[n,r]=e.useState(),o=e.useRef(null),i=e.useRef(t),a=e.useRef("none"),s=t?"mounted":"unmounted",[l,c]=function(t,n){return e.useReducer((e,t)=>n[e][t]??e,t)}(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect(()=>{const e=rn(o.current);a.current="mounted"===l?e:"none"},[l]),U(()=>{const e=o.current,n=i.current;if(n!==t){const r=a.current,o=rn(e);if(t)c("MOUNT");else if("none"===o||"none"===e?.display)c("UNMOUNT");else{c(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}i.current=t}},[t,c]),U(()=>{if(n){let e;const t=n.ownerDocument.defaultView??window,r=r=>{const a=rn(o.current).includes(CSS.escape(r.animationName));if(r.target===n&&a&&(c("ANIMATION_END"),!i.current)){const r=n.style.animationFillMode;n.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=r)})}},s=e=>{e.target===n&&(a.current=rn(o.current))};return n.addEventListener("animationstart",s),n.addEventListener("animationcancel",r),n.addEventListener("animationend",r),()=>{t.clearTimeout(e),n.removeEventListener("animationstart",s),n.removeEventListener("animationcancel",r),n.removeEventListener("animationend",r)}}c("ANIMATION_END")},[n,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:e.useCallback(e=>{o.current=e?getComputedStyle(e):null,r(e)},[])}}(n),i="function"==typeof r?r({present:o.isPresent}):e.Children.only(r),a=g(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 rn(e){return e?.animationName||"none"}nn.displayName="Presence";var on=e[" useInsertionEffect ".trim().toString()]||U;function an({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 on(()=>{a.current=n},[n]),e.useEffect(()=>{i.current!==r&&(a.current?.(r),i.current=r)},[r,i]),[r,o,a]}({defaultProp:n,onChange:r}),l=void 0!==t,c=l?t:i;{const n=e.useRef(void 0!==t);e.useEffect(()=>{const e=n.current;if(e!==l){const t=e?"controlled":"uncontrolled",n=l?"controlled":"uncontrolled";console.warn(`${o} is changing from ${t} to ${n}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}n.current=l},[l,o])}const u=e.useCallback(e=>{if(l){const n=function(e){return"function"==typeof e}(e)?e(t):e;n!==t&&s.current?.(n)}else a(e)},[l,t,a,s]);return[c,u]}var sn=new WeakMap,ln=new WeakMap,cn={},un=0,dn=function(e){return e&&(e.host||dn(e.parentNode))},fn=function(e,t,n,r){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=dn(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]);cn[n]||(cn[n]=new WeakMap);var i=cn[n],a=[],s=new Set,l=new Set(o),c=function(e){e&&!s.has(e)&&(s.add(e),c(e.parentNode))};o.forEach(c);var u=function(e){e&&!l.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,l=(sn.get(e)||0)+1,c=(i.get(e)||0)+1;sn.set(e,l),i.set(e,c),a.push(e),1===l&&o&&ln.set(e,!0),1===c&&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(),un++,function(){a.forEach(function(e){var t=sn.get(e)-1,o=i.get(e)-1;sn.set(e,t),i.set(e,o),t||(ln.has(e)||e.removeAttribute(r),ln.delete(e)),o||e.removeAttribute(n)}),--un||(sn=new WeakMap,sn=new WeakMap,ln=new WeakMap,cn={})}},pn=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"))),fn(r,o,n,"aria-hidden")):function(){return null}},mn=function(){return mn=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},mn.apply(this,arguments)};function hn(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 gn="right-scroll-bar-position",vn="width-before-scroll-bar";function bn(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var yn="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,wn=new WeakMap;function xn(e,t){var n,o,i,a=(n=null,o=function(t){return e.forEach(function(e){return bn(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 yn(function(){var t=wn.get(a);if(t){var n=new Set(t),r=new Set(e),o=a.current;n.forEach(function(e){r.has(e)||bn(e,null)}),r.forEach(function(e){n.has(e)||bn(e,o)})}wn.set(a,e)},[e]),a}function En(e){return e}var Cn=function(t){var n=t.sideCar,r=hn(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,mn({},r))};Cn.isSideCarExport=!0;var Pn=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=En);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=mn({async:!0,ssr:!1},e),t}(),Rn=function(){},On=e.forwardRef(function(t,n){var r=e.useRef(null),o=e.useState({onScrollCapture:Rn,onWheelCapture:Rn,onTouchMoveCapture:Rn}),i=o[0],a=o[1],s=t.forwardProps,l=t.children,c=t.className,u=t.removeScrollBar,d=t.enabled,f=t.shards,p=t.sideCar,m=t.noRelative,h=t.noIsolation,g=t.inert,v=t.allowPinchZoom,b=t.as,y=void 0===b?"div":b,w=t.gapMode,x=hn(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=p,C=xn([r,n]),P=mn(mn({},x),i);return e.createElement(e.Fragment,null,d&&e.createElement(E,{sideCar:Pn,removeScrollBar:u,shards:f,noRelative:m,noIsolation:h,inert:g,setCallbacks:a,allowPinchZoom:!!v,lockRef:r,gapMode:w}),s?e.cloneElement(e.Children.only(l),mn(mn({},P),{ref:C})):e.createElement(y,mn({},P,{className:c,ref:C}),l))});On.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},On.classNames={fullWidth:vn,zeroRight:gn};function Sn(){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 kn=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=Sn())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},An=function(){var t,n=(t=kn(),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}},Nn={left:0,top:0,right:0,gap:0},Tn=function(e){return parseInt(e||"",10)||0},Dn=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return Nn;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[Tn(n),Tn(r),Tn(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])}},Ln=An(),Mn="data-scroll-locked",_n=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(Mn,"] {\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(gn," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(vn," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(gn," .").concat(gn," {\n right: 0 ").concat(r,";\n }\n \n .").concat(vn," .").concat(vn," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(Mn,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},zn=function(){var e=parseInt(document.body.getAttribute(Mn)||"0",10);return isFinite(e)?e:0},Fn=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(Mn,(zn()+1).toString()),function(){var e=zn()-1;e<=0?document.body.removeAttribute(Mn):document.body.setAttribute(Mn,e.toString())}},[]);var a=e.useMemo(function(){return Dn(i)},[i]);return e.createElement(Ln,{styles:_n(a,!n,i,r?"":"!important")})},In=!1;if("undefined"!=typeof window)try{var Wn=Object.defineProperty({},"passive",{get:function(){return In=!0,!0}});window.addEventListener("test",Wn,Wn),window.removeEventListener("test",Wn,Wn)}catch(e){In=!1}var jn=!!In&&{passive:!1},$n=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])},Bn=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),Hn(e,r)){var o=Gn(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Hn=function(e,t){return"v"===e?function(e){return $n(e,"overflowY")}(t):function(e){return $n(e,"overflowX")}(t)},Gn=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},Un=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Vn=function(e){return[e.deltaX,e.deltaY]},Yn=function(e){return e&&"current"in e?e.current:e},Kn=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Xn=0,qn=[];function Zn(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Jn,Qn=(Jn=function(t){var n=e.useRef([]),r=e.useRef([0,0]),o=e.useRef(),i=e.useState(Xn++)[0],a=e.useState(An)[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(Yn),!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 l=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=Un(e),a=r.current,l="deltaX"in e?e.deltaX:a[0]-i[0],c="deltaY"in e?e.deltaY:a[1]-i[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=Bn(d,u);if(!m)return!0;if(m?n=d:(n="v"===d?"h":"v",m=Bn(d,u)),!m)return!1;if(!o.current&&"changedTouches"in e&&(l||c)&&(o.current=n),!n)return!0;var h=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),l=!1,c=i>0,u=0,d=0;do{if(!a)break;var f=Gn(e,a),p=f[0],m=f[1]-f[2]-o*p;(p||m)&&Hn(e,a)&&(u+=m,d+=p);var h=a.parentNode;a=h&&h.nodeType===Node.DOCUMENT_FRAGMENT_NODE?h.host:h}while(!s&&a!==document.body||s&&(t.contains(a)||t===a));return(c&&Math.abs(u)<1||!c&&Math.abs(d)<1)&&(l=!0),l}(h,t,e,"h"===h?l:c)},[]),c=e.useCallback(function(e){var t=e;if(qn.length&&qn[qn.length-1]===a){var r="deltaY"in t?Vn(t):Un(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(Yn).filter(Boolean).filter(function(e){return e.contains(t.target)});(i.length>0?l(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:Zn(r)};n.current.push(i),setTimeout(function(){n.current=n.current.filter(function(e){return e!==i})},1)},[]),d=e.useCallback(function(e){r.current=Un(e),o.current=void 0},[]),f=e.useCallback(function(e){u(e.type,Vn(e),e.target,l(e,t.lockRef.current))},[]),p=e.useCallback(function(e){u(e.type,Un(e),e.target,l(e,t.lockRef.current))},[]);e.useEffect(function(){return qn.push(a),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,jn),document.addEventListener("touchmove",c,jn),document.addEventListener("touchstart",d,jn),function(){qn=qn.filter(function(e){return e!==a}),document.removeEventListener("wheel",c,jn),document.removeEventListener("touchmove",c,jn),document.removeEventListener("touchstart",d,jn)}},[]);var m=t.removeScrollBar,h=t.inert;return e.createElement(e.Fragment,null,h?e.createElement(a,{styles:Kn(i)}):null,m?e.createElement(Fn,{noRelative:t.noRelative,gapMode:t.gapMode}):null)},Pn.useMedium(Jn),Cn),er=e.forwardRef(function(t,n){return e.createElement(On,mn({},t,{ref:n,sideCar:Qn}))});er.classNames=On.classNames;var tr="Popover",[nr]=v(tr,[_t]),rr=_t(),[or,ir]=nr(tr),ar=t=>{const{__scopePopover:n,children:r,open:o,defaultOpen:i,onOpenChange:s,modal:l=!1}=t,c=rr(n),u=e.useRef(null),[d,f]=e.useState(!1),[p,m]=an({prop:o,defaultProp:i??!1,onChange:s,caller:tr});return a(Zt,{...c,children:a(or,{scope:n,contentId:K(),triggerRef:u,open:p,onOpenChange:m,onOpenToggle:e.useCallback(()=>m(e=>!e),[m]),hasCustomAnchor:d,onCustomAnchorAdd:e.useCallback(()=>f(!0),[]),onCustomAnchorRemove:e.useCallback(()=>f(!1),[]),modal:l,children:r})})};ar.displayName=tr;var sr="PopoverAnchor";e.forwardRef((t,n)=>{const{__scopePopover:r,...o}=t,i=ir(sr,r),s=rr(r),{onCustomAnchorAdd:l,onCustomAnchorRemove:c}=i;return e.useEffect(()=>(l(),()=>c()),[l,c]),a(Jt,{...s,...o,ref:n})}).displayName=sr;var lr="PopoverTrigger",cr=e.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=ir(lr,n),i=rr(n),s=g(t,o.triggerRef),l=a(C.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":xr(o.open),...r,ref:s,onClick:p(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?l:a(Jt,{asChild:!0,...i,children:l})});cr.displayName=lr;var ur="PopoverPortal",[dr,fr]=nr(ur,{forceMount:void 0}),pr=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=ir(ur,t);return a(dr,{scope:t,forceMount:n,children:a(nn,{present:n||i.open,children:a(tn,{asChild:!0,container:o,children:r})})})};pr.displayName=ur;var mr="PopoverContent",hr=e.forwardRef((e,t)=>{const n=fr(mr,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=ir(mr,e.__scopePopover);return a(nn,{present:r||i.open,children:i.modal?a(vr,{...o,ref:t}):a(br,{...o,ref:t})})});hr.displayName=mr;var gr=y("PopoverContent.RemoveScroll"),vr=e.forwardRef((t,n)=>{const r=ir(mr,t.__scopePopover),o=e.useRef(null),i=g(n,o),s=e.useRef(!1);return e.useEffect(()=>{const e=o.current;if(e)return pn(e)},[]),a(er,{as:gr,allowPinchZoom:!0,children:a(yr,{...t,ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:p(t.onCloseAutoFocus,e=>{e.preventDefault(),s.current||r.triggerRef.current?.focus()}),onPointerDownOutside:p(t.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;s.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:p(t.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),br=e.forwardRef((t,n)=>{const r=ir(mr,t.__scopePopover),o=e.useRef(!1),i=e.useRef(!1);return a(yr,{...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()}})}),yr=e.forwardRef((t,n)=>{const{__scopePopover:r,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:s,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,...p}=t,m=ir(mr,r),h=rr(r);return e.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??M()),document.body.insertAdjacentElement("beforeend",e[1]??M()),L++,()=>{1===L&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),L--}},[]),a(I,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:s,children:a(N,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:f,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onDismiss:()=>m.onOpenChange(!1),children:a(Qt,{"data-state":xr(m.open),role:"dialog",id:m.contentId,...h,...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)"}})})})}),wr="PopoverClose";e.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=ir(wr,n);return a(C.button,{type:"button",...r,ref:t,onClick:p(e.onClick,()=>o.onOpenChange(!1))})}).displayName=wr;function xr(e){return e?"open":"closed"}e.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=rr(n);return a(en,{...o,...r,ref:t})}).displayName="PopoverArrow";var Er=ar,Cr=cr,Pr=pr,Rr=hr;function Or(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=Or(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const Sr=e=>{const t=Tr(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),kr(n,t)||Nr(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},kr=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?kr(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},Ar=/^\[(.+)\]$/,Nr=e=>{if(Ar.test(e)){const t=Ar.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Tr=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return _r(Object.entries(e.classGroups),n).forEach(([e,n])=>{Dr(n,r,e,t)}),r},Dr=(e,t,n,r)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:Lr(t,e)).classGroupId=n)}if("function"==typeof e)return Mr(e)?void Dr(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach(([e,o])=>{Dr(o,Lr(t,e),n,r)})})},Lr=(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},Mr=e=>e.isThemeGetter,_r=(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,zr=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)}}},Fr=e=>{const{separator:t,experimentalParseClassName:n}=e,r=1===t.length,o=t[0],i=t.length,a=e=>{const n=[];let a,s=0,l=0;for(let c=0;c<e.length;c++){let u=e[c];if(0===s){if(u===o&&(r||e.slice(c,c+i)===t)){n.push(e.slice(l,c)),l=c+i;continue}if("/"===u){a=c;continue}}"["===u?s++:"]"===u&&s--}const c=0===n.length?e:e.substring(l),u=c.startsWith("!");return{modifiers:n,hasImportantModifier:u,baseClassName:u?c.substring(1):c,maybePostfixModifierPosition:a&&a>l?a-l:void 0}};return n?e=>n({className:e,parseClassName:a}):a},Ir=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},Wr=/\s+/;function jr(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=$r(e))&&(r&&(r+=" "),r+=t);return r}const $r=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=$r(e[r]))&&(n&&(n+=" "),n+=t);return n};function Br(e,...t){let n,r,o,i=function(s){const l=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:zr(e.cacheSize),parseClassName:Fr(e),...Sr(e)}))(l),r=n.cache.get,o=n.cache.set,i=a,a(s)};function a(e){const t=r(e);if(t)return t;const i=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],a=e.trim().split(Wr);let s="";for(let e=a.length-1;e>=0;e-=1){const t=a[e],{modifiers:l,hasImportantModifier:c,baseClassName:u,maybePostfixModifierPosition:d}=n(t);let f=Boolean(d),p=r(f?u.substring(0,d):u);if(!p){if(!f){s=t+(s.length>0?" "+s:s);continue}if(p=r(u),!p){s=t+(s.length>0?" "+s:s);continue}f=!1}const m=Ir(l).join(":"),h=c?m+"!":m,g=h+p;if(i.includes(g))continue;i.push(g);const v=o(p,f);for(let e=0;e<v.length;++e){const t=v[e];i.push(h+t)}s=t+(s.length>0?" "+s:s)}return s})(e,n);return o(e,i),i}return function(){return i(jr.apply(null,arguments))}}const Hr=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},Gr=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ur=/^\d+\/\d+$/,Vr=new Set(["px","full","screen"]),Yr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Kr=/\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$/,Xr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,qr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Zr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Jr=e=>eo(e)||Vr.has(e)||Ur.test(e),Qr=e=>mo(e,"length",ho),eo=e=>Boolean(e)&&!Number.isNaN(Number(e)),to=e=>mo(e,"number",eo),no=e=>Boolean(e)&&Number.isInteger(Number(e)),ro=e=>e.endsWith("%")&&eo(e.slice(0,-1)),oo=e=>Gr.test(e),io=e=>Yr.test(e),ao=new Set(["length","size","percentage"]),so=e=>mo(e,ao,go),lo=e=>mo(e,"position",go),co=new Set(["image","url"]),uo=e=>mo(e,co,bo),fo=e=>mo(e,"",vo),po=()=>!0,mo=(e,t,n)=>{const r=Gr.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))},ho=e=>Kr.test(e)&&!Xr.test(e),go=()=>!1,vo=e=>qr.test(e),bo=e=>Zr.test(e),yo=Br(()=>{const e=Hr("colors"),t=Hr("spacing"),n=Hr("blur"),r=Hr("brightness"),o=Hr("borderColor"),i=Hr("borderRadius"),a=Hr("borderSpacing"),s=Hr("borderWidth"),l=Hr("contrast"),c=Hr("grayscale"),u=Hr("hueRotate"),d=Hr("invert"),f=Hr("gap"),p=Hr("gradientColorStops"),m=Hr("gradientColorStopPositions"),h=Hr("inset"),g=Hr("margin"),v=Hr("opacity"),b=Hr("padding"),y=Hr("saturate"),w=Hr("scale"),x=Hr("sepia"),E=Hr("skew"),C=Hr("space"),P=Hr("translate"),R=()=>["auto",oo,t],O=()=>[oo,t],S=()=>["",Jr,Qr],k=()=>["auto",eo,oo],A=()=>["","0",oo],N=()=>[eo,oo];return{cacheSize:500,separator:":",theme:{colors:[po],spacing:[Jr,Qr],blur:["none","",io,oo],brightness:N(),borderColor:[e],borderRadius:["none","","full",io,oo],borderSpacing:O(),borderWidth:S(),contrast:N(),grayscale:A(),hueRotate:N(),invert:A(),gap:O(),gradientColorStops:[e],gradientColorStopPositions:[ro,Qr],inset:R(),margin:R(),opacity:N(),padding:O(),saturate:N(),scale:N(),sepia:A(),skew:N(),space:O(),translate:O()},classGroups:{aspect:[{aspect:["auto","square","video",oo]}],container:["container"],columns:[{columns:[io]}],"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",oo]}],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:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",no,oo]}],basis:[{basis:R()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",oo]}],grow:[{grow:A()}],shrink:[{shrink:A()}],order:[{order:["first","last","none",no,oo]}],"grid-cols":[{"grid-cols":[po]}],"col-start-end":[{col:["auto",{span:["full",no,oo]},oo]}],"col-start":[{"col-start":k()}],"col-end":[{"col-end":k()}],"grid-rows":[{"grid-rows":[po]}],"row-start-end":[{row:["auto",{span:[no,oo]},oo]}],"row-start":[{"row-start":k()}],"row-end":[{"row-end":k()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",oo]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",oo]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[C]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[C]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",oo,t]}],"min-w":[{"min-w":[oo,t,"min","max","fit"]}],"max-w":[{"max-w":[oo,t,"none","full","min","max","fit","prose",{screen:[io]},io]}],h:[{h:[oo,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[oo,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[oo,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[oo,t,"auto","min","max","fit"]}],"font-size":[{text:["base",io,Qr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",to]}],"font-family":[{font:[po]}],"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",oo]}],"line-clamp":[{"line-clamp":["none",eo,to]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Jr,oo]}],"list-image":[{"list-image":["none",oo]}],"list-style-type":[{list:["none","disc","decimal",oo]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"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",Jr,Qr]}],"underline-offset":[{"underline-offset":["auto",Jr,oo]}],"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:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",oo]}],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",oo]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",lo]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",so]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},uo]}],"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":[v]}],"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":[v]}],"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":[Jr,oo]}],"outline-w":[{outline:[Jr,Qr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:S()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[Jr,Qr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",io,fo]}],"shadow-color":[{shadow:[po]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",io,oo]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[y]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"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",oo]}],duration:[{duration:N()}],ease:[{ease:["linear","in","out","in-out",oo]}],delay:[{delay:N()}],animate:[{animate:["none","spin","ping","pulse","bounce",oo]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[no,oo]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"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",oo]}],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",oo]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"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",oo]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Jr,Qr,to]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});function wo(...e){return yo(function(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Or(e))&&(r&&(r+=" "),r+=t);return r}(e))}const xo=Er,Eo=Cr,Co=e.forwardRef(({className:t,align:n="center",sideOffset:r=4,...o},i)=>e.createElement(Pr,null,e.createElement(Rr,{ref:i,align:n,sideOffset:r,className:wo("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})));Co.displayName=Rr.displayName;const Po=({id:e,className:n,align:r,side:o,sideOffset:i=8,visible:a,content:s,children:l,onPointerDownOutside:c,onOpenAutoFocus:u})=>t.createElement(xo,{open:a},t.createElement(Eo,{asChild:!0},l),t.createElement(Co,{id:e,className:f("gyramais-popover-content",n),align:r,side:o,sideOffset:i,onPointerDownOutside:c,onOpenAutoFocus:u},s)),Ro=({id:e,className:n,visible:r,align:o="end",side:i="bottom",sideOffset:a=6,width:s=320,trigger:l,children:c,onPointerDownOutside:u})=>{const d="number"==typeof s?`${s}px`:s;return t.createElement(Po,{id:e,visible:r,align:o,side:i,sideOffset:a,className:f("gyramais-context-menu",n),onPointerDownOutside:u,content:t.createElement("div",{className:"gyramais-context-menu-inner",style:{width:d}},c)},l)},Oo=o({});Ro.Section=({className:e,label:n,hint:r,children:o})=>t.createElement("div",{className:f("gyramais-context-menu-section",e)},n&&t.createElement("div",{className:"gyramais-context-menu-section-lab"},n),r&&t.createElement("div",{className:"gyramais-context-menu-section-hint"},r),o),Ro.Divider=()=>t.createElement("div",{className:"gyramais-context-menu-divider"}),Ro.RadioGroup=({value:e,onChange:n,children:r})=>t.createElement(Oo.Provider,{value:{value:e,onChange:n}},t.createElement("div",{className:"gyramais-context-menu-radios"},r)),Ro.RadioItem=({value:e,label:n,sublabel:r,icon:o,disabled:a})=>{const s=i(Oo),l=s.value===e;return t.createElement("button",{type:"button",role:"menuitemradio","aria-checked":l,disabled:a,className:f("gyramais-context-menu-radio",l&&"is-on"),onClick:()=>!a&&s.onChange?.(e)},o&&t.createElement("span",{className:"gyramais-context-menu-radio-icon"},o),t.createElement("span",{className:"gyramais-context-menu-radio-body"},t.createElement("span",{className:"gyramais-context-menu-radio-t"},n),r&&t.createElement("span",{className:"gyramais-context-menu-radio-s"},r)))},Ro.DangerAction=({icon:e,onClick:n,disabled:r,children:o})=>t.createElement("button",{type:"button",disabled:r,className:"gyramais-context-menu-danger",onClick:n},e&&t.createElement("span",{className:"gyramais-context-menu-danger-icon"},e),t.createElement("span",null,o));export{Ro as ContextMenu};
|
|
6
|
+
*/u=d,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}u.exports?(t.default=t,u.exports=t):window.classNames=t}();var f=c(d.exports);function p(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function m(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function h(...e){return t=>{let n=!1;const r=e.map(e=>{const r=m(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():m(e[t],null)}}}}function g(...t){return e.useCallback(h(...t),t)}function v(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),s=r.length;r=[...r,o];const l=n=>{const{scope:r,children:o,...l}=n,c=r?.[t]?.[s]||i,u=e.useMemo(()=>l,Object.values(l));return a(c.Provider,{value:u,children:o})};return l.displayName=n+"Provider",[l,function(r,a){const l=a?.[t]?.[s]||i,c=e.useContext(l);if(c)return c;if(void 0!==o)return o;throw new Error(`\`${r}\` must be used within \`${n}\``)}]},b(o,...n)]}function b(...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 y(t){const n=w(t),r=e.forwardRef((t,r)=>{const{children:o,...i}=t,s=e.Children.toArray(o),l=s.find(E);if(l){const t=l.props.children,o=s.map(n=>n===l?e.Children.count(t)>1?e.Children.only(null):e.isValidElement(t)?t.props.children:null:n);return a(n,{...i,ref:r,children:e.isValidElement(t)?e.cloneElement(t,void 0,o):null})}return a(n,{...i,ref:r,children:o})});return r.displayName=`${t}.Slot`,r}function w(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?h(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 x=Symbol("radix.slottable");function E(t){return e.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===x}var C=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((t,n)=>{const r=y(`Primitive.${n}`),o=e.forwardRef((e,t)=>{const{asChild:o,...i}=e,s=o?r:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),a(s,{...i,ref:t})});return o.displayName=`Primitive.${n}`,{...t,[n]:o}},{});function P(t){const n=e.useRef(t);return e.useEffect(()=>{n.current=t}),e.useMemo(()=>(...e)=>n.current?.(...e),[])}var R,O="dismissableLayer.update",S="dismissableLayer.pointerDownOutside",k="dismissableLayer.focusOutside",A=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),N=e.forwardRef((t,n)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:l,onDismiss:c,...u}=t,d=e.useContext(A),[f,m]=e.useState(null),h=f?.ownerDocument??globalThis?.document,[,v]=e.useState({}),b=g(n,e=>m(e)),y=Array.from(d.layers),[w]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=y.indexOf(w),E=f?y.indexOf(f):-1,N=d.layersWithOutsidePointerEventsDisabled.size>0,L=E>=x,M=function(t,n=globalThis?.document){const r=P(t),o=e.useRef(!1),i=e.useRef(()=>{});return e.useEffect(()=>{const e=e=>{if(e.target&&!o.current){let t=function(){D(S,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=[...d.branches].some(e=>e.contains(t));L&&!n&&(i?.(e),l?.(e),e.defaultPrevented||c?.())},h),_=function(t,n=globalThis?.document){const r=P(t),o=e.useRef(!1);return e.useEffect(()=>{const e=e=>{if(e.target&&!o.current){D(k,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;[...d.branches].some(e=>e.contains(t))||(s?.(e),l?.(e),e.defaultPrevented||c?.())},h);return function(t,n=globalThis?.document){const r=P(t);e.useEffect(()=>{const e=e=>{"Escape"===e.key&&r(e)};return n.addEventListener("keydown",e,{capture:!0}),()=>n.removeEventListener("keydown",e,{capture:!0})},[r,n])}(e=>{E===d.layers.size-1&&(o?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))},h),e.useEffect(()=>{if(f)return r&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(R=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),T(),()=>{r&&1===d.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=R)}},[f,h,r,d]),e.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),T())},[f,d]),e.useEffect(()=>{const e=()=>v({});return document.addEventListener(O,e),()=>document.removeEventListener(O,e)},[]),a(C.div,{...u,ref:b,style:{pointerEvents:N?L?"auto":"none":void 0,...t.style},onFocusCapture:p(t.onFocusCapture,_.onFocusCapture),onBlurCapture:p(t.onBlurCapture,_.onBlurCapture),onPointerDownCapture:p(t.onPointerDownCapture,M.onPointerDownCapture)})});N.displayName="DismissableLayer";function T(){const e=new CustomEvent(O);document.dispatchEvent(e)}function D(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&&s.flushSync(()=>e.dispatchEvent(t))}(o,i):o.dispatchEvent(i)}e.forwardRef((t,n)=>{const r=e.useContext(A),o=e.useRef(null),i=g(n,o);return e.useEffect(()=>{const e=o.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),a(C.div,{...t,ref:i})}).displayName="DismissableLayerBranch";var L=0;function M(){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 _="focusScope.autoFocusOnMount",z="focusScope.autoFocusOnUnmount",F={bubbles:!1,cancelable:!0},I=e.forwardRef((t,n)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...l}=t,[c,u]=e.useState(null),d=P(i),f=P(s),p=e.useRef(null),m=g(n,e=>u(e)),h=e.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;e.useEffect(()=>{if(o){let e=function(e){if(h.paused||!c)return;const t=e.target;c.contains(t)?p.current=t:B(p.current,{select:!0})},t=function(e){if(h.paused||!c)return;const t=e.relatedTarget;null!==t&&(c.contains(t)||B(p.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&B(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,h.paused]),e.useEffect(()=>{if(c){H.add(h);const t=document.activeElement;if(!c.contains(t)){const n=new CustomEvent(_,F);c.addEventListener(_,d),c.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(B(r,{select:t}),document.activeElement!==n)return}((e=W(c),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&B(c))}return()=>{c.removeEventListener(_,d),setTimeout(()=>{const e=new CustomEvent(z,F);c.addEventListener(z,f),c.dispatchEvent(e),e.defaultPrevented||B(t??document.body,{select:!0}),c.removeEventListener(z,f),H.remove(h)},0)}}var e},[c,d,f,h]);const v=e.useCallback(e=>{if(!r&&!o)return;if(h.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=W(e),n=j(t,e),r=j(t.reverse(),e);return[n,r]}(t);o&&i?e.shiftKey||n!==i?e.shiftKey&&n===o&&(e.preventDefault(),r&&B(i,{select:!0})):(e.preventDefault(),r&&B(o,{select:!0})):n===t&&e.preventDefault()}},[r,o,h.paused]);return a(C.div,{tabIndex:-1,...l,ref:m,onKeyDown:v})});function W(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 j(e,t){for(const n of e)if(!$(n,{upTo:t}))return n}function $(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 B(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()}}I.displayName="FocusScope";var H=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=G(e,t),e.unshift(t)},remove(t){e=G(e,t),e[0]?.resume()}}}();function G(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var U=globalThis?.document?e.useLayoutEffect:()=>{},V=e[" useId ".trim().toString()]||(()=>{}),Y=0;function K(t){const[n,r]=e.useState(V());return U(()=>{r(e=>e??String(Y++))},[t]),t||(n?`radix-${n}`:"")}const X=["top","right","bottom","left"],q=Math.min,Z=Math.max,J=Math.round,Q=Math.floor,ee=e=>({x:e,y:e}),te={left:"right",right:"left",bottom:"top",top:"bottom"};function ne(e,t,n){return Z(e,q(t,n))}function re(e,t){return"function"==typeof e?e(t):e}function oe(e){return e.split("-")[0]}function ie(e){return e.split("-")[1]}function ae(e){return"x"===e?"y":"x"}function se(e){return"y"===e?"height":"width"}function le(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function ce(e){return ae(le(e))}function ue(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const de=["left","right"],fe=["right","left"],pe=["top","bottom"],me=["bottom","top"];function he(e,t,n,r){const o=ie(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?fe:de:t?de:fe;case"left":case"right":return t?pe:me;default:return[]}}(oe(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(ue)))),i}function ge(e){const t=oe(e);return te[t]+e.slice(t.length)}function ve(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 be(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 ye(e,t,n){let{reference:r,floating:o}=e;const i=le(t),a=ce(t),s=se(a),l=oe(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let p;switch(l){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:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(ie(t)){case"start":p[a]-=f*(n&&c?-1:1);break;case"end":p[a]+=f*(n&&c?-1:1)}return p}async function we(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=re(t,e),m=ve(p),h=s[f?"floating"===d?"reference":"floating":d],g=be(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),y=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},w=be(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:b,strategy:l}):v);return{top:(g.top-w.top+m.top)/y.y,bottom:(w.bottom-g.bottom+m.bottom)/y.y,left:(g.left-w.left+m.left)/y.x,right:(w.right-g.right+m.right)/y.x}}function xe(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ee(e){return X.some(t=>e[t]>=0)}const Ce=new Set(["left","top"]);function Pe(){return"undefined"!=typeof window}function Re(e){return ke(e)?(e.nodeName||"").toLowerCase():"#document"}function Oe(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Se(e){var t;return null==(t=(ke(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ke(e){return!!Pe()&&(e instanceof Node||e instanceof Oe(e).Node)}function Ae(e){return!!Pe()&&(e instanceof Element||e instanceof Oe(e).Element)}function Ne(e){return!!Pe()&&(e instanceof HTMLElement||e instanceof Oe(e).HTMLElement)}function Te(e){return!(!Pe()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Oe(e).ShadowRoot)}function De(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Be(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function Le(e){return/^(table|td|th)$/.test(Re(e))}function Me(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}const _e=/transform|translate|scale|rotate|perspective|filter/,ze=/paint|layout|strict|content/,Fe=e=>!!e&&"none"!==e;let Ie;function We(e){const t=Ae(e)?Be(e):e;return Fe(t.transform)||Fe(t.translate)||Fe(t.scale)||Fe(t.rotate)||Fe(t.perspective)||!je()&&(Fe(t.backdropFilter)||Fe(t.filter))||_e.test(t.willChange||"")||ze.test(t.contain||"")}function je(){return null==Ie&&(Ie="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ie}function $e(e){return/^(html|body|#document)$/.test(Re(e))}function Be(e){return Oe(e).getComputedStyle(e)}function He(e){return Ae(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ge(e){if("html"===Re(e))return e;const t=e.assignedSlot||e.parentNode||Te(e)&&e.host||Se(e);return Te(t)?t.host:t}function Ue(e){const t=Ge(e);return $e(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ne(t)&&De(t)?t:Ue(t)}function Ve(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Ue(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Oe(o);if(i){const e=Ye(a);return t.concat(a,a.visualViewport||[],De(o)?o:[],e&&n?Ve(e):[])}return t.concat(o,Ve(o,[],n))}function Ye(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ke(e){const t=Be(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ne(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=J(n)!==i||J(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function Xe(e){return Ae(e)?e:e.contextElement}function qe(e){const t=Xe(e);if(!Ne(t))return ee(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Ke(t);let a=(i?J(n.width):n.width)/r,s=(i?J(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Ze=ee(0);function Je(e){const t=Oe(e);return je()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Ze}function Qe(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Xe(e);let a=ee(1);t&&(r?Ae(r)&&(a=qe(r)):a=qe(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Oe(e))&&t}(i,n,r)?Je(i):ee(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=Oe(i),t=r&&Ae(r)?Oe(r):r;let n=e,o=Ye(n);for(;o&&r&&t!==n;){const e=qe(o),t=o.getBoundingClientRect(),r=Be(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=a,n=Oe(o),o=Ye(n)}}return be({width:u,height:d,x:l,y:c})}function et(e,t){const n=He(e).scrollLeft;return t?t.left+n:Qe(Se(e)).left+n}function tt(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-et(e,n),y:n.top+t.scrollTop}}function nt(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Oe(e),r=Se(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=je();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}const c=et(r);if(c<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,a=Math.abs(r.clientWidth-t.clientWidth-o);a<=25&&(i-=a)}else c<=25&&(i+=c);return{width:i,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=Se(e),n=He(e),r=e.ownerDocument.body,o=Z(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Z(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+et(e);const s=-n.scrollTop;return"rtl"===Be(r).direction&&(a+=Z(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(Se(e));else if(Ae(t))r=function(e,t){const n=Qe(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Ne(e)?qe(e):ee(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=Je(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return be(r)}function rt(e,t){const n=Ge(e);return!(n===t||!Ae(n)||$e(n))&&("fixed"===Be(n).position||rt(n,t))}function ot(e,t,n){const r=Ne(t),o=Se(t),i="fixed"===n,a=Qe(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=ee(0);function c(){l.x=et(o)}if(r||!r&&!i)if(("body"!==Re(t)||De(o))&&(s=He(t)),r){const e=Qe(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&c();i&&!r&&o&&c();const u=!o||r||i?ee(0):tt(o,s);return{x:a.left+s.scrollLeft-l.x-u.x,y:a.top+s.scrollTop-l.y-u.y,width:a.width,height:a.height}}function it(e){return"static"===Be(e).position}function at(e,t){if(!Ne(e)||"fixed"===Be(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Se(e)===n&&(n=n.ownerDocument.body),n}function st(e,t){const n=Oe(e);if(Me(e))return n;if(!Ne(e)){let t=Ge(e);for(;t&&!$e(t);){if(Ae(t)&&!it(t))return t;t=Ge(t)}return n}let r=at(e,t);for(;r&&Le(r)&&it(r);)r=at(r,t);return r&&$e(r)&&it(r)&&!We(r)?n:r||function(e){let t=Ge(e);for(;Ne(t)&&!$e(t);){if(We(t))return t;if(Me(t))return null;t=Ge(t)}return null}(e)||n}const lt={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=Se(r),s=!!t&&Me(t.floating);if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},c=ee(1);const u=ee(0),d=Ne(r);if((d||!d&&!i)&&(("body"!==Re(r)||De(a))&&(l=He(r)),d)){const e=Qe(r);c=qe(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const f=!a||d||i?ee(0):tt(a,l);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-l.scrollTop*c.y+u.y+f.y}},getDocumentElement:Se,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?Me(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Ve(e,[],!1).filter(e=>Ae(e)&&"body"!==Re(e)),o=null;const i="fixed"===Be(e).position;let a=i?Ge(e):e;for(;Ae(a)&&!$e(a);){const t=Be(a),n=We(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||De(a)&&!n&&rt(e,a))?r=r.filter(e=>e!==a):o=t,a=Ge(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=nt(t,i[0],o);let s=a.top,l=a.right,c=a.bottom,u=a.left;for(let e=1;e<i.length;e++){const n=nt(t,i[e],o);s=Z(n.top,s),l=q(n.right,l),c=q(n.bottom,c),u=Z(n.left,u)}return{width:l-u,height:c-s,x:u,y:s}},getOffsetParent:st,getElementRects:async function(e){const t=this.getOffsetParent||st,n=this.getDimensions,r=await n(e.floating);return{reference:ot(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}=Ke(e);return{width:t,height:n}},getScale:qe,isElement:Ae,isRTL:function(e){return"rtl"===Be(e).direction}};function ct(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ut(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=Xe(e),u=o||i?[...c?Ve(c):[],...t?Ve(t):[]]:[];u.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});const d=c&&s?function(e,t){let n,r=null;const o=Se(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=c;if(s||t(),!f||!p)return;const m={rootMargin:-Q(d)+"px "+-Q(o.clientWidth-(u+f))+"px "+-Q(o.clientHeight-(d+p))+"px "+-Q(u)+"px",threshold:Z(0,q(1,l))||1};let h=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!h)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||ct(c,e.getBoundingClientRect())||a(),h=!1}try{r=new IntersectionObserver(g,{...m,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,m)}r.observe(e)}(!0),i}(c,n):null;let f,p=-1,m=null;a&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),c&&!l&&m.observe(c),t&&m.observe(t));let h=l?Qe(e):null;return l&&function t(){const r=Qe(e);h&&!ct(h,r)&&n();h=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=m)||e.disconnect(),m=null,l&&cancelAnimationFrame(f)}}const dt=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=oe(n),s=ie(n),l="y"===le(n),c=Ce.has(a)?-1:1,u=i&&l?-1:1,d=re(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof m&&(p="end"===s?-1*m:m),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},ft=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:i}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=re(e,t),u={x:n,y:r},d=await i.detectOverflow(t,c),f=le(oe(o)),p=ae(f);let m=u[p],h=u[f];if(a){const e="y"===p?"bottom":"right";m=ne(m+d["y"===p?"top":"left"],m,m-d[e])}if(s){const e="y"===f?"bottom":"right";h=ne(h+d["y"===f?"top":"left"],h,h-d[e])}const g=l.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:a,[f]:s}}}}}},pt=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...g}=re(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=oe(o),b=le(s),y=oe(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=f||(y||!h?[ge(s)]:function(e){const t=ge(e);return[ue(e),t,ue(t)]}(s)),E="none"!==m;!f&&E&&x.push(...he(s,h,m,w));const C=[s,...x],P=await l.detectOverflow(t,g),R=[];let O=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&R.push(P[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=ie(e),o=ce(e),i=se(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=ge(a)),[a,ge(a)]}(o,a,w);R.push(P[e[0]],P[e[1]])}if(O=[...O,{placement:o,overflows:R}],!R.every(e=>e<=0)){var S,k;const e=((null==(S=i.flip)?void 0:S.index)||0)+1,t=C[e];if(t){if(!("alignment"===d&&b!==le(t))||O.every(e=>le(e.placement)!==b||e.overflows[0]>0))return{data:{index:e,overflows:O},reset:{placement:t}}}let n=null==(k=O.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:k.placement;if(!n)switch(p){case"bestFit":{var A;const e=null==(A=O.filter(e=>{if(E){const t=le(e.placement);return t===b||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:A[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},mt=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:a,elements:s}=t,{apply:l=()=>{},...c}=re(e,t),u=await a.detectOverflow(t,c),d=oe(o),f=ie(o),p="y"===le(o),{width:m,height:h}=i.floating;let g,v;"top"===d||"bottom"===d?(g=d,v=f===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(v=d,g="end"===f?"top":"bottom");const b=h-u.top-u.bottom,y=m-u.left-u.right,w=q(h-u[g],b),x=q(m-u[v],y),E=!t.middlewareData.shift;let C=w,P=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(P=y),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(C=b),E&&!f){const e=Z(u.left,0),t=Z(u.right,0),n=Z(u.top,0),r=Z(u.bottom,0);p?P=m-2*(0!==e||0!==t?e+t:Z(u.left,u.right)):C=h-2*(0!==n||0!==r?n+r:Z(u.top,u.bottom))}await l({...t,availableWidth:P,availableHeight:C});const R=await a.getDimensions(s.floating);return m!==R.width||h!==R.height?{reset:{rects:!0}}:{}}}},ht=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...i}=re(e,t);switch(o){case"referenceHidden":{const e=xe(await r.detectOverflow(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Ee(e)}}}case"escaped":{const e=xe(await r.detectOverflow(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Ee(e)}}}default:return{}}}}},gt=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=re(e,t)||{};if(null==c)return{};const d=ve(u),f={x:n,y:r},p=ce(o),m=se(p),h=await a.getDimensions(c),g="y"===p,v=g?"top":"left",b=g?"bottom":"right",y=g?"clientHeight":"clientWidth",w=i.reference[m]+i.reference[p]-f[p]-i.floating[m],x=f[p]-i.reference[p],E=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let C=E?E[y]:0;C&&await(null==a.isElement?void 0:a.isElement(E))||(C=s.floating[y]||i.floating[m]);const P=w/2-x/2,R=C/2-h[m]/2-1,O=q(d[v],R),S=q(d[b],R),k=O,A=C-h[m]-S,N=C/2-h[m]/2+P,T=ne(k,N,A),D=!l.arrow&&null!=ie(o)&&N!==T&&i.reference[m]/2-(N<k?O:S)-h[m]/2<0,L=D?N<k?N-k:N-A:0;return{[p]:f[p]+L,data:{[p]:T,centerOffset:N-T-L,...D&&{alignmentOffset:L}},reset:D}}}),vt=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=re(e,t),u={x:n,y:r},d=le(o),f=ae(d);let p=u[f],m=u[d];const h=re(s,t),g="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+g.mainAxis,n=i.reference[f]+i.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(c){var v,b;const e="y"===f?"width":"height",t=Ce.has(oe(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(v=a.offset)?void 0:v[d])||0)+(t?0:g.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(b=a.offset)?void 0:b[d])||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},bt=(e,t,n)=>{const r=new Map,o={platform:lt,...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:we},l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=ye(c,r,l),f=r,p=0;const m={};for(let n=0;n<i.length;n++){const h=i[n];if(!h)continue;const{name:g,fn:v}=h,{x:b,y:y,data:w,reset:x}=await v({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:m,rects:c,platform:s,elements:{reference:e,floating:t}});u=null!=b?b:u,d=null!=y?y:d,m[g]={...m[g],...w},x&&p<50&&(p++,"object"==typeof x&&(x.placement&&(f=x.placement),x.rects&&(c=!0===x.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):x.rects),({x:u,y:d}=ye(c,f,l))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:m}})(e,t,{...o,platform:i})};var yt="undefined"!=typeof document?n:function(){};function wt(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(!wt(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)&&!wt(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function xt(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Et(e,t){const n=xt(e);return Math.round(t*n)/n}function Ct(t){const n=e.useRef(t);return yt(()=>{n.current=t}),n}const Pt=(e,t)=>{const n=dt(e);return{name:n.name,fn:n.fn,options:[e,t]}},Rt=(e,t)=>{const n=ft(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ot=(e,t)=>({fn:vt(e).fn,options:[e,t]}),St=(e,t)=>{const n=pt(e);return{name:n.name,fn:n.fn,options:[e,t]}},kt=(e,t)=>{const n=mt(e);return{name:n.name,fn:n.fn,options:[e,t]}},At=(e,t)=>{const n=ht(e);return{name:n.name,fn:n.fn,options:[e,t]}},Nt=(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?gt({element:n.current,padding:r}).fn(t):{}:n?gt({element:n,padding:r}).fn(t):{};var o}}))(e);return{name:n.name,fn:n.fn,options:[e,t]}};var Tt=e.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return a(C.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:a("polygon",{points:"0,0 30,0 15,10"})})});Tt.displayName="Arrow";var Dt=Tt;var Lt="Popper",[Mt,_t]=v(Lt),[zt,Ft]=Mt(Lt),It=t=>{const{__scopePopper:n,children:r}=t,[o,i]=e.useState(null);return a(zt,{scope:n,anchor:o,onAnchorChange:i,children:r})};It.displayName=Lt;var Wt="PopperAnchor",jt=e.forwardRef((t,n)=>{const{__scopePopper:r,virtualRef:o,...i}=t,s=Ft(Wt,r),l=e.useRef(null),c=g(n,l),u=e.useRef(null);return e.useEffect(()=>{const e=u.current;u.current=o?.current||l.current,e!==u.current&&s.onAnchorChange(u.current)}),o?null:a(C.div,{...i,ref:c})});jt.displayName=Wt;var $t="PopperContent",[Bt,Ht]=Mt($t),Gt=e.forwardRef((t,n)=>{const{__scopePopper:r,side:o="bottom",sideOffset:i=0,align:l="center",alignOffset:c=0,arrowPadding:u=0,avoidCollisions:d=!0,collisionBoundary:f=[],collisionPadding:p=0,sticky:m="partial",hideWhenDetached:h=!1,updatePositionStrategy:v="optimized",onPlaced:b,...y}=t,w=Ft($t,r),[x,E]=e.useState(null),R=g(n,e=>E(e)),[O,S]=e.useState(null),k=function(t){const[n,r]=e.useState(void 0);return U(()=>{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),A=k?.width??0,N=k?.height??0,T=o+("center"!==l?"-"+l:""),D="number"==typeof p?p:{top:0,right:0,bottom:0,left:0,...p},L=Array.isArray(f)?f:[f],M=L.length>0,_={padding:D,boundary:L.filter(Kt),altBoundary:M},{refs:z,floatingStyles:F,placement:I,isPositioned:W,middlewareData:j}=function(t){void 0===t&&(t={});const{placement:n="bottom",strategy:r="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:l}={},transform:c=!0,whileElementsMounted:u,open:d}=t,[f,p]=e.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[m,h]=e.useState(o);wt(m,o)||h(o);const[g,v]=e.useState(null),[b,y]=e.useState(null),w=e.useCallback(e=>{e!==P.current&&(P.current=e,v(e))},[]),x=e.useCallback(e=>{e!==R.current&&(R.current=e,y(e))},[]),E=a||g,C=l||b,P=e.useRef(null),R=e.useRef(null),O=e.useRef(f),S=null!=u,k=Ct(u),A=Ct(i),N=Ct(d),T=e.useCallback(()=>{if(!P.current||!R.current)return;const e={placement:n,strategy:r,middleware:m};A.current&&(e.platform=A.current),bt(P.current,R.current,e).then(e=>{const t={...e,isPositioned:!1!==N.current};D.current&&!wt(O.current,t)&&(O.current=t,s.flushSync(()=>{p(t)}))})},[m,n,r,A,N]);yt(()=>{!1===d&&O.current.isPositioned&&(O.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[d]);const D=e.useRef(!1);yt(()=>(D.current=!0,()=>{D.current=!1}),[]),yt(()=>{if(E&&(P.current=E),C&&(R.current=C),E&&C){if(k.current)return k.current(E,C,T);T()}},[E,C,T,k,S]);const L=e.useMemo(()=>({reference:P,floating:R,setReference:w,setFloating:x}),[w,x]),M=e.useMemo(()=>({reference:E,floating:C}),[E,C]),_=e.useMemo(()=>{const e={position:r,left:0,top:0};if(!M.floating)return e;const t=Et(M.floating,f.x),n=Et(M.floating,f.y);return c?{...e,transform:"translate("+t+"px, "+n+"px)",...xt(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:T,refs:L,elements:M,floatingStyles:_}),[f,T,L,M,_])}({strategy:"fixed",placement:T,whileElementsMounted:(...e)=>ut(...e,{animationFrame:"always"===v}),elements:{reference:w.anchor},middleware:[Pt({mainAxis:i+N,alignmentAxis:c}),d&&Rt({mainAxis:!0,crossAxis:!1,limiter:"partial"===m?Ot():void 0,..._}),d&&St({..._}),kt({..._,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&&Nt({element:O,padding:u}),Xt({arrowWidth:A,arrowHeight:N}),h&&At({strategy:"referenceHidden",..._})]}),[$,B]=qt(I),H=P(b);U(()=>{W&&H?.()},[W,H]);const G=j.arrow?.x,V=j.arrow?.y,Y=0!==j.arrow?.centerOffset,[K,X]=e.useState();return U(()=>{x&&X(window.getComputedStyle(x).zIndex)},[x]),a("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...F,transform:W?F.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:K,"--radix-popper-transform-origin":[j.transformOrigin?.x,j.transformOrigin?.y].join(" "),...j.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:a(Bt,{scope:r,placedSide:$,onArrowChange:S,arrowX:G,arrowY:V,shouldHideArrow:Y,children:a(C.div,{"data-side":$,"data-align":B,...y,ref:R,style:{...y.style,animation:W?void 0:"none"}})})})});Gt.displayName=$t;var Ut="PopperArrow",Vt={top:"bottom",right:"left",bottom:"top",left:"right"},Yt=e.forwardRef(function(e,t){const{__scopePopper:n,...r}=e,o=Ht(Ut,n),i=Vt[o.placedSide];return a("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:a(Dt,{...r,ref:t,style:{...r.style,display:"block"}})})});function Kt(e){return null!==e}Yt.displayName=Ut;var Xt=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,i=0!==o.arrow?.centerOffset,a=i?0:e.arrowWidth,s=i?0:e.arrowHeight,[l,c]=qt(n),u={start:"0%",center:"50%",end:"100%"}[c],d=(o.arrow?.x??0)+a/2,f=(o.arrow?.y??0)+s/2;let p="",m="";return"bottom"===l?(p=i?u:`${d}px`,m=-s+"px"):"top"===l?(p=i?u:`${d}px`,m=`${r.floating.height+s}px`):"right"===l?(p=-s+"px",m=i?u:`${f}px`):"left"===l&&(p=`${r.floating.width+s}px`,m=i?u:`${f}px`),{data:{x:p,y:m}}}});function qt(e){const[t,n="center"]=e.split("-");return[t,n]}var Zt=It,Jt=jt,Qt=Gt,en=Yt,tn=e.forwardRef((t,n)=>{const{container:r,...o}=t,[i,s]=e.useState(!1);U(()=>s(!0),[]);const c=r||i&&globalThis?.document?.body;return c?l.createPortal(a(C.div,{...o,ref:n}),c):null});tn.displayName="Portal";var nn=t=>{const{present:n,children:r}=t,o=function(t){const[n,r]=e.useState(),o=e.useRef(null),i=e.useRef(t),a=e.useRef("none"),s=t?"mounted":"unmounted",[l,c]=function(t,n){return e.useReducer((e,t)=>n[e][t]??e,t)}(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect(()=>{const e=rn(o.current);a.current="mounted"===l?e:"none"},[l]),U(()=>{const e=o.current,n=i.current;if(n!==t){const r=a.current,o=rn(e);if(t)c("MOUNT");else if("none"===o||"none"===e?.display)c("UNMOUNT");else{c(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}i.current=t}},[t,c]),U(()=>{if(n){let e;const t=n.ownerDocument.defaultView??window,r=r=>{const a=rn(o.current).includes(CSS.escape(r.animationName));if(r.target===n&&a&&(c("ANIMATION_END"),!i.current)){const r=n.style.animationFillMode;n.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=r)})}},s=e=>{e.target===n&&(a.current=rn(o.current))};return n.addEventListener("animationstart",s),n.addEventListener("animationcancel",r),n.addEventListener("animationend",r),()=>{t.clearTimeout(e),n.removeEventListener("animationstart",s),n.removeEventListener("animationcancel",r),n.removeEventListener("animationend",r)}}c("ANIMATION_END")},[n,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:e.useCallback(e=>{o.current=e?getComputedStyle(e):null,r(e)},[])}}(n),i="function"==typeof r?r({present:o.isPresent}):e.Children.only(r),a=g(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 rn(e){return e?.animationName||"none"}nn.displayName="Presence";var on=e[" useInsertionEffect ".trim().toString()]||U;function an({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 on(()=>{a.current=n},[n]),e.useEffect(()=>{i.current!==r&&(a.current?.(r),i.current=r)},[r,i]),[r,o,a]}({defaultProp:n,onChange:r}),l=void 0!==t,c=l?t:i;{const n=e.useRef(void 0!==t);e.useEffect(()=>{const e=n.current;if(e!==l){const t=e?"controlled":"uncontrolled",n=l?"controlled":"uncontrolled";console.warn(`${o} is changing from ${t} to ${n}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}n.current=l},[l,o])}const u=e.useCallback(e=>{if(l){const n=function(e){return"function"==typeof e}(e)?e(t):e;n!==t&&s.current?.(n)}else a(e)},[l,t,a,s]);return[c,u]}var sn=new WeakMap,ln=new WeakMap,cn={},un=0,dn=function(e){return e&&(e.host||dn(e.parentNode))},fn=function(e,t,n,r){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=dn(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]);cn[n]||(cn[n]=new WeakMap);var i=cn[n],a=[],s=new Set,l=new Set(o),c=function(e){e&&!s.has(e)&&(s.add(e),c(e.parentNode))};o.forEach(c);var u=function(e){e&&!l.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,l=(sn.get(e)||0)+1,c=(i.get(e)||0)+1;sn.set(e,l),i.set(e,c),a.push(e),1===l&&o&&ln.set(e,!0),1===c&&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(),un++,function(){a.forEach(function(e){var t=sn.get(e)-1,o=i.get(e)-1;sn.set(e,t),i.set(e,o),t||(ln.has(e)||e.removeAttribute(r),ln.delete(e)),o||e.removeAttribute(n)}),--un||(sn=new WeakMap,sn=new WeakMap,ln=new WeakMap,cn={})}},pn=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"))),fn(r,o,n,"aria-hidden")):function(){return null}},mn=function(){return mn=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},mn.apply(this,arguments)};function hn(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 gn="right-scroll-bar-position",vn="width-before-scroll-bar";function bn(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var yn="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,wn=new WeakMap;function xn(e,t){var n,o,i,a=(n=null,o=function(t){return e.forEach(function(e){return bn(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 yn(function(){var t=wn.get(a);if(t){var n=new Set(t),r=new Set(e),o=a.current;n.forEach(function(e){r.has(e)||bn(e,null)}),r.forEach(function(e){n.has(e)||bn(e,o)})}wn.set(a,e)},[e]),a}function En(e){return e}var Cn=function(t){var n=t.sideCar,r=hn(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,mn({},r))};Cn.isSideCarExport=!0;var Pn=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=En);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=mn({async:!0,ssr:!1},e),t}(),Rn=function(){},On=e.forwardRef(function(t,n){var r=e.useRef(null),o=e.useState({onScrollCapture:Rn,onWheelCapture:Rn,onTouchMoveCapture:Rn}),i=o[0],a=o[1],s=t.forwardProps,l=t.children,c=t.className,u=t.removeScrollBar,d=t.enabled,f=t.shards,p=t.sideCar,m=t.noRelative,h=t.noIsolation,g=t.inert,v=t.allowPinchZoom,b=t.as,y=void 0===b?"div":b,w=t.gapMode,x=hn(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=p,C=xn([r,n]),P=mn(mn({},x),i);return e.createElement(e.Fragment,null,d&&e.createElement(E,{sideCar:Pn,removeScrollBar:u,shards:f,noRelative:m,noIsolation:h,inert:g,setCallbacks:a,allowPinchZoom:!!v,lockRef:r,gapMode:w}),s?e.cloneElement(e.Children.only(l),mn(mn({},P),{ref:C})):e.createElement(y,mn({},P,{className:c,ref:C}),l))});On.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},On.classNames={fullWidth:vn,zeroRight:gn};function Sn(){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 kn=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=Sn())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},An=function(){var t,n=(t=kn(),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}},Nn={left:0,top:0,right:0,gap:0},Tn=function(e){return parseInt(e||"",10)||0},Dn=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return Nn;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[Tn(n),Tn(r),Tn(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])}},Ln=An(),Mn="data-scroll-locked",_n=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(Mn,"] {\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(gn," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(vn," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(gn," .").concat(gn," {\n right: 0 ").concat(r,";\n }\n \n .").concat(vn," .").concat(vn," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(Mn,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},zn=function(){var e=parseInt(document.body.getAttribute(Mn)||"0",10);return isFinite(e)?e:0},Fn=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(Mn,(zn()+1).toString()),function(){var e=zn()-1;e<=0?document.body.removeAttribute(Mn):document.body.setAttribute(Mn,e.toString())}},[]);var a=e.useMemo(function(){return Dn(i)},[i]);return e.createElement(Ln,{styles:_n(a,!n,i,r?"":"!important")})},In=!1;if("undefined"!=typeof window)try{var Wn=Object.defineProperty({},"passive",{get:function(){return In=!0,!0}});window.addEventListener("test",Wn,Wn),window.removeEventListener("test",Wn,Wn)}catch(e){In=!1}var jn=!!In&&{passive:!1},$n=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])},Bn=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),Hn(e,r)){var o=Gn(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Hn=function(e,t){return"v"===e?function(e){return $n(e,"overflowY")}(t):function(e){return $n(e,"overflowX")}(t)},Gn=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},Un=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Vn=function(e){return[e.deltaX,e.deltaY]},Yn=function(e){return e&&"current"in e?e.current:e},Kn=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Xn=0,qn=[];function Zn(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Jn,Qn=(Jn=function(t){var n=e.useRef([]),r=e.useRef([0,0]),o=e.useRef(),i=e.useState(Xn++)[0],a=e.useState(An)[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(Yn),!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 l=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=Un(e),a=r.current,l="deltaX"in e?e.deltaX:a[0]-i[0],c="deltaY"in e?e.deltaY:a[1]-i[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=Bn(d,u);if(!m)return!0;if(m?n=d:(n="v"===d?"h":"v",m=Bn(d,u)),!m)return!1;if(!o.current&&"changedTouches"in e&&(l||c)&&(o.current=n),!n)return!0;var h=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),l=!1,c=i>0,u=0,d=0;do{if(!a)break;var f=Gn(e,a),p=f[0],m=f[1]-f[2]-o*p;(p||m)&&Hn(e,a)&&(u+=m,d+=p);var h=a.parentNode;a=h&&h.nodeType===Node.DOCUMENT_FRAGMENT_NODE?h.host:h}while(!s&&a!==document.body||s&&(t.contains(a)||t===a));return(c&&Math.abs(u)<1||!c&&Math.abs(d)<1)&&(l=!0),l}(h,t,e,"h"===h?l:c)},[]),c=e.useCallback(function(e){var t=e;if(qn.length&&qn[qn.length-1]===a){var r="deltaY"in t?Vn(t):Un(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(Yn).filter(Boolean).filter(function(e){return e.contains(t.target)});(i.length>0?l(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:Zn(r)};n.current.push(i),setTimeout(function(){n.current=n.current.filter(function(e){return e!==i})},1)},[]),d=e.useCallback(function(e){r.current=Un(e),o.current=void 0},[]),f=e.useCallback(function(e){u(e.type,Vn(e),e.target,l(e,t.lockRef.current))},[]),p=e.useCallback(function(e){u(e.type,Un(e),e.target,l(e,t.lockRef.current))},[]);e.useEffect(function(){return qn.push(a),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,jn),document.addEventListener("touchmove",c,jn),document.addEventListener("touchstart",d,jn),function(){qn=qn.filter(function(e){return e!==a}),document.removeEventListener("wheel",c,jn),document.removeEventListener("touchmove",c,jn),document.removeEventListener("touchstart",d,jn)}},[]);var m=t.removeScrollBar,h=t.inert;return e.createElement(e.Fragment,null,h?e.createElement(a,{styles:Kn(i)}):null,m?e.createElement(Fn,{noRelative:t.noRelative,gapMode:t.gapMode}):null)},Pn.useMedium(Jn),Cn),er=e.forwardRef(function(t,n){return e.createElement(On,mn({},t,{ref:n,sideCar:Qn}))});er.classNames=On.classNames;var tr="Popover",[nr]=v(tr,[_t]),rr=_t(),[or,ir]=nr(tr),ar=t=>{const{__scopePopover:n,children:r,open:o,defaultOpen:i,onOpenChange:s,modal:l=!1}=t,c=rr(n),u=e.useRef(null),[d,f]=e.useState(!1),[p,m]=an({prop:o,defaultProp:i??!1,onChange:s,caller:tr});return a(Zt,{...c,children:a(or,{scope:n,contentId:K(),triggerRef:u,open:p,onOpenChange:m,onOpenToggle:e.useCallback(()=>m(e=>!e),[m]),hasCustomAnchor:d,onCustomAnchorAdd:e.useCallback(()=>f(!0),[]),onCustomAnchorRemove:e.useCallback(()=>f(!1),[]),modal:l,children:r})})};ar.displayName=tr;var sr="PopoverAnchor";e.forwardRef((t,n)=>{const{__scopePopover:r,...o}=t,i=ir(sr,r),s=rr(r),{onCustomAnchorAdd:l,onCustomAnchorRemove:c}=i;return e.useEffect(()=>(l(),()=>c()),[l,c]),a(Jt,{...s,...o,ref:n})}).displayName=sr;var lr="PopoverTrigger",cr=e.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=ir(lr,n),i=rr(n),s=g(t,o.triggerRef),l=a(C.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":xr(o.open),...r,ref:s,onClick:p(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?l:a(Jt,{asChild:!0,...i,children:l})});cr.displayName=lr;var ur="PopoverPortal",[dr,fr]=nr(ur,{forceMount:void 0}),pr=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=ir(ur,t);return a(dr,{scope:t,forceMount:n,children:a(nn,{present:n||i.open,children:a(tn,{asChild:!0,container:o,children:r})})})};pr.displayName=ur;var mr="PopoverContent",hr=e.forwardRef((e,t)=>{const n=fr(mr,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=ir(mr,e.__scopePopover);return a(nn,{present:r||i.open,children:i.modal?a(vr,{...o,ref:t}):a(br,{...o,ref:t})})});hr.displayName=mr;var gr=y("PopoverContent.RemoveScroll"),vr=e.forwardRef((t,n)=>{const r=ir(mr,t.__scopePopover),o=e.useRef(null),i=g(n,o),s=e.useRef(!1);return e.useEffect(()=>{const e=o.current;if(e)return pn(e)},[]),a(er,{as:gr,allowPinchZoom:!0,children:a(yr,{...t,ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:p(t.onCloseAutoFocus,e=>{e.preventDefault(),s.current||r.triggerRef.current?.focus()}),onPointerDownOutside:p(t.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;s.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:p(t.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),br=e.forwardRef((t,n)=>{const r=ir(mr,t.__scopePopover),o=e.useRef(!1),i=e.useRef(!1);return a(yr,{...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()}})}),yr=e.forwardRef((t,n)=>{const{__scopePopover:r,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:s,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,...p}=t,m=ir(mr,r),h=rr(r);return e.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??M()),document.body.insertAdjacentElement("beforeend",e[1]??M()),L++,()=>{1===L&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),L--}},[]),a(I,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:s,children:a(N,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:f,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onDismiss:()=>m.onOpenChange(!1),children:a(Qt,{"data-state":xr(m.open),role:"dialog",id:m.contentId,...h,...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)"}})})})}),wr="PopoverClose";e.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=ir(wr,n);return a(C.button,{type:"button",...r,ref:t,onClick:p(e.onClick,()=>o.onOpenChange(!1))})}).displayName=wr;function xr(e){return e?"open":"closed"}e.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=rr(n);return a(en,{...o,...r,ref:t})}).displayName="PopoverArrow";var Er=ar,Cr=cr,Pr=pr,Rr=hr;function Or(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=Or(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const Sr=e=>{const t=Tr(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),kr(n,t)||Nr(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},kr=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?kr(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},Ar=/^\[(.+)\]$/,Nr=e=>{if(Ar.test(e)){const t=Ar.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Tr=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return _r(Object.entries(e.classGroups),n).forEach(([e,n])=>{Dr(n,r,e,t)}),r},Dr=(e,t,n,r)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:Lr(t,e)).classGroupId=n)}if("function"==typeof e)return Mr(e)?void Dr(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach(([e,o])=>{Dr(o,Lr(t,e),n,r)})})},Lr=(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},Mr=e=>e.isThemeGetter,_r=(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,zr=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)}}},Fr=e=>{const{separator:t,experimentalParseClassName:n}=e,r=1===t.length,o=t[0],i=t.length,a=e=>{const n=[];let a,s=0,l=0;for(let c=0;c<e.length;c++){let u=e[c];if(0===s){if(u===o&&(r||e.slice(c,c+i)===t)){n.push(e.slice(l,c)),l=c+i;continue}if("/"===u){a=c;continue}}"["===u?s++:"]"===u&&s--}const c=0===n.length?e:e.substring(l),u=c.startsWith("!");return{modifiers:n,hasImportantModifier:u,baseClassName:u?c.substring(1):c,maybePostfixModifierPosition:a&&a>l?a-l:void 0}};return n?e=>n({className:e,parseClassName:a}):a},Ir=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},Wr=/\s+/;function jr(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=$r(e))&&(r&&(r+=" "),r+=t);return r}const $r=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=$r(e[r]))&&(n&&(n+=" "),n+=t);return n};function Br(e,...t){let n,r,o,i=function(s){const l=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:zr(e.cacheSize),parseClassName:Fr(e),...Sr(e)}))(l),r=n.cache.get,o=n.cache.set,i=a,a(s)};function a(e){const t=r(e);if(t)return t;const i=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],a=e.trim().split(Wr);let s="";for(let e=a.length-1;e>=0;e-=1){const t=a[e],{modifiers:l,hasImportantModifier:c,baseClassName:u,maybePostfixModifierPosition:d}=n(t);let f=Boolean(d),p=r(f?u.substring(0,d):u);if(!p){if(!f){s=t+(s.length>0?" "+s:s);continue}if(p=r(u),!p){s=t+(s.length>0?" "+s:s);continue}f=!1}const m=Ir(l).join(":"),h=c?m+"!":m,g=h+p;if(i.includes(g))continue;i.push(g);const v=o(p,f);for(let e=0;e<v.length;++e){const t=v[e];i.push(h+t)}s=t+(s.length>0?" "+s:s)}return s})(e,n);return o(e,i),i}return function(){return i(jr.apply(null,arguments))}}const Hr=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},Gr=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ur=/^\d+\/\d+$/,Vr=new Set(["px","full","screen"]),Yr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Kr=/\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$/,Xr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,qr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Zr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Jr=e=>eo(e)||Vr.has(e)||Ur.test(e),Qr=e=>mo(e,"length",ho),eo=e=>Boolean(e)&&!Number.isNaN(Number(e)),to=e=>mo(e,"number",eo),no=e=>Boolean(e)&&Number.isInteger(Number(e)),ro=e=>e.endsWith("%")&&eo(e.slice(0,-1)),oo=e=>Gr.test(e),io=e=>Yr.test(e),ao=new Set(["length","size","percentage"]),so=e=>mo(e,ao,go),lo=e=>mo(e,"position",go),co=new Set(["image","url"]),uo=e=>mo(e,co,bo),fo=e=>mo(e,"",vo),po=()=>!0,mo=(e,t,n)=>{const r=Gr.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))},ho=e=>Kr.test(e)&&!Xr.test(e),go=()=>!1,vo=e=>qr.test(e),bo=e=>Zr.test(e),yo=Br(()=>{const e=Hr("colors"),t=Hr("spacing"),n=Hr("blur"),r=Hr("brightness"),o=Hr("borderColor"),i=Hr("borderRadius"),a=Hr("borderSpacing"),s=Hr("borderWidth"),l=Hr("contrast"),c=Hr("grayscale"),u=Hr("hueRotate"),d=Hr("invert"),f=Hr("gap"),p=Hr("gradientColorStops"),m=Hr("gradientColorStopPositions"),h=Hr("inset"),g=Hr("margin"),v=Hr("opacity"),b=Hr("padding"),y=Hr("saturate"),w=Hr("scale"),x=Hr("sepia"),E=Hr("skew"),C=Hr("space"),P=Hr("translate"),R=()=>["auto",oo,t],O=()=>[oo,t],S=()=>["",Jr,Qr],k=()=>["auto",eo,oo],A=()=>["","0",oo],N=()=>[eo,oo];return{cacheSize:500,separator:":",theme:{colors:[po],spacing:[Jr,Qr],blur:["none","",io,oo],brightness:N(),borderColor:[e],borderRadius:["none","","full",io,oo],borderSpacing:O(),borderWidth:S(),contrast:N(),grayscale:A(),hueRotate:N(),invert:A(),gap:O(),gradientColorStops:[e],gradientColorStopPositions:[ro,Qr],inset:R(),margin:R(),opacity:N(),padding:O(),saturate:N(),scale:N(),sepia:A(),skew:N(),space:O(),translate:O()},classGroups:{aspect:[{aspect:["auto","square","video",oo]}],container:["container"],columns:[{columns:[io]}],"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",oo]}],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:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",no,oo]}],basis:[{basis:R()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",oo]}],grow:[{grow:A()}],shrink:[{shrink:A()}],order:[{order:["first","last","none",no,oo]}],"grid-cols":[{"grid-cols":[po]}],"col-start-end":[{col:["auto",{span:["full",no,oo]},oo]}],"col-start":[{"col-start":k()}],"col-end":[{"col-end":k()}],"grid-rows":[{"grid-rows":[po]}],"row-start-end":[{row:["auto",{span:[no,oo]},oo]}],"row-start":[{"row-start":k()}],"row-end":[{"row-end":k()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",oo]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",oo]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[C]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[C]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",oo,t]}],"min-w":[{"min-w":[oo,t,"min","max","fit"]}],"max-w":[{"max-w":[oo,t,"none","full","min","max","fit","prose",{screen:[io]},io]}],h:[{h:[oo,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[oo,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[oo,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[oo,t,"auto","min","max","fit"]}],"font-size":[{text:["base",io,Qr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",to]}],"font-family":[{font:[po]}],"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",oo]}],"line-clamp":[{"line-clamp":["none",eo,to]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Jr,oo]}],"list-image":[{"list-image":["none",oo]}],"list-style-type":[{list:["none","disc","decimal",oo]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"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",Jr,Qr]}],"underline-offset":[{"underline-offset":["auto",Jr,oo]}],"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:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",oo]}],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",oo]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",lo]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",so]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},uo]}],"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":[v]}],"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":[v]}],"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":[Jr,oo]}],"outline-w":[{outline:[Jr,Qr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:S()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[Jr,Qr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",io,fo]}],"shadow-color":[{shadow:[po]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",io,oo]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[y]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"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",oo]}],duration:[{duration:N()}],ease:[{ease:["linear","in","out","in-out",oo]}],delay:[{delay:N()}],animate:[{animate:["none","spin","ping","pulse","bounce",oo]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[no,oo]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"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",oo]}],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",oo]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"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",oo]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Jr,Qr,to]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});function wo(...e){return yo(function(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Or(e))&&(r&&(r+=" "),r+=t);return r}(e))}const xo=Er,Eo=Cr,Co=e.forwardRef(({className:t,align:n="center",sideOffset:r=4,...o},i)=>e.createElement(Pr,null,e.createElement(Rr,{ref:i,align:n,sideOffset:r,className:wo("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})));Co.displayName=Rr.displayName;const Po=({id:e,className:n,align:r,side:o,sideOffset:i=8,collisionPadding:a=8,visible:s,content:l,children:c,onPointerDownOutside:u,onOpenAutoFocus:d})=>t.createElement(xo,{open:s},t.createElement(Eo,{asChild:!0},c),t.createElement(Co,{id:e,className:f("gyramais-popover-content",n),align:r,side:o,sideOffset:i,collisionPadding:a,onPointerDownOutside:u,onOpenAutoFocus:d},l)),Ro=({id:e,className:n,visible:r,align:o="end",side:i="bottom",sideOffset:a=6,width:s=320,trigger:l,children:c,onPointerDownOutside:u})=>{const d="number"==typeof s?`${s}px`:s;return t.createElement(Po,{id:e,visible:r,align:o,side:i,sideOffset:a,className:f("gyramais-context-menu",n),onPointerDownOutside:u,content:t.createElement("div",{className:"gyramais-context-menu-inner",style:{width:d}},c)},l)},Oo=o({});Ro.Section=({className:e,label:n,hint:r,children:o})=>t.createElement("div",{className:f("gyramais-context-menu-section",e)},n&&t.createElement("div",{className:"gyramais-context-menu-section-lab"},n),r&&t.createElement("div",{className:"gyramais-context-menu-section-hint"},r),o),Ro.Divider=()=>t.createElement("div",{className:"gyramais-context-menu-divider"}),Ro.RadioGroup=({value:e,onChange:n,children:r})=>t.createElement(Oo.Provider,{value:{value:e,onChange:n}},t.createElement("div",{className:"gyramais-context-menu-radios"},r)),Ro.RadioItem=({value:e,label:n,sublabel:r,icon:o,disabled:a})=>{const s=i(Oo),l=s.value===e;return t.createElement("button",{type:"button",role:"menuitemradio","aria-checked":l,disabled:a,className:f("gyramais-context-menu-radio",l&&"is-on"),onClick:()=>!a&&s.onChange?.(e)},o&&t.createElement("span",{className:"gyramais-context-menu-radio-icon"},o),t.createElement("span",{className:"gyramais-context-menu-radio-body"},t.createElement("span",{className:"gyramais-context-menu-radio-t"},n),r&&t.createElement("span",{className:"gyramais-context-menu-radio-s"},r)))},Ro.DangerAction=({icon:e,onClick:n,disabled:r,children:o})=>t.createElement("button",{type:"button",disabled:r,className:"gyramais-context-menu-danger",onClick:n},e&&t.createElement("span",{className:"gyramais-context-menu-danger-icon"},e),t.createElement("span",null,o));export{Ro as ContextMenu};
|
|
7
7
|
//# sourceMappingURL=index.js.map
|