1var e,t,n=e=>{throw TypeError(e)},r=(e,t,r)=>t.has(e)||n("Cannot "+r),o=(e,t,n)=>(r(e,t,"read from private field"),n?n.call(e):t.get(e)),i=(e,t,n,o)=>(r(e,t,"write to private field"),o?o.call(e,n):t.set(e,n),n);import{r as a,a as s,R as c,b as u}from"./vendor-Cr9yl5FV.js";var l,f,d={exports:{}},p={},h=(f||(f=1,d.exports=function(){if(l)return p;l=1;var e=a(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function s(e,n,a){var s,c={},u=null,l=null;for(s in void 0!==a&&(u=""+a),void 0!==n.key&&(u=""+n.key),void 0!==n.ref&&(l=n.ref),n)r.call(n,s)&&!i.hasOwnProperty(s)&&(c[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===c[s]&&(c[s]=n[s]);return{$$typeof:t,type:e,key:u,ref:l,props:c,_owner:o.current}}return p.Fragment=n,p.jsx=s,p.jsxs=s,p}()),d.exports),m=Object.defineProperty,v=(e,t)=>m(e,"name",{value:t,configurable:!0}),g=!("undefined"==typeof window||!window.document||!window.document.createElement);function y(e,t,{checkForDefaultPrevented:n=!0}={}){return v(function(r){if(e?.(r),!1===n||!r||!r.defaultPrevented)return t?.(r)},"handleEvent")}function b(e){if(!g)throw new Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}function w(e){return"IFRAME"===e.tagName}v(y,"composeEventHandlers"),v(function(e){if(!g)throw new Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window},"getOwnerWindow"),v(b,"getOwnerDocument"),v(function e(t,n=!1){const{activeElement:r}=b(t);if(!r?.nodeName)return null;if(w(r)&&r.contentDocument)return e(r.contentDocument.body,n);if(n){const e=r.getAttribute("aria-activedescendant");if(e){const t=b(r).getElementById(e);if(t)return t}}return r},"getActiveElement"),v(w,"isFrame");var x=Object.defineProperty,E=(e,t)=>x(e,"name",{value:t,configurable:!0});function C(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function R(...e){return t=>{let n=!1;const r=e.map(e=>{const r=C(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():C(e[t],null)}}}}function S(...e){return s.useCallback(R(...e),e)}E(C,"setRef"),E(R,"composeRefs"),E(S,"useComposedRefs");var O=Object.defineProperty,P=(e,t)=>O(e,"name",{value:t,configurable:!0});function D(e,t=[]){let n=[];function r(t,r){const o=s.createContext(r);o.displayName=t+"Context";const i=n.length;n=[...n,r];const a=P(t=>{const{scope:n,children:r,...a}=t,c=n?.[e]?.[i]||o,u=s.useMemo(()=>a,Object.values(a));return h.jsx(c.Provider,{value:u,children:r})},"Provider");function c(n,a,c={}){const{optional:u=!1}=c,l=a?.[e]?.[i]||o,f=s.useContext(l);if(f)return f;if(void 0!==r)return r;if(!u)throw new Error(`\`${n}\` must be used within \`${t}\``)}return a.displayName=t+"Provider",P(c,"useContext"),[a,c]}P(r,"createContext");const o=P(()=>{const t=n.map(e=>s.createContext(e));return P(function(n){const r=n?.[e]||t;return s.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},"useScope")},"createScope");return o.scopeName=e,[r,A(o,...t)]}function A(...e){const t=e[0];if(1===e.length)return t;const n=P(()=>{const n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return P(function(e){const r=n.reduce((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]}),{});return s.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},"useComposedScopes")},"createScope");return n.scopeName=t.scopeName,n}P(function(e,t){const n=s.createContext(t);n.displayName=e+"Context";const r=P(e=>{const{children:t,...r}=e,o=s.useMemo(()=>r,Object.values(r));return h.jsx(n.Provider,{value:o,children:t})},"Provider");function o(r,o={}){const{optional:i=!1}=o,a=s.useContext(n);if(a)return a;if(void 0!==t)return t;if(!i)throw new Error(`\`${r}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",P(o,"useContext"),[r,o]},"createContext"),P(D,"createContextScope"),P(A,"composeContextScopes");var T=Object.defineProperty,I=(e,t)=>T(e,"name",{value:t,configurable:!0});
vendor: 8,911 bytes, line 1
1function j(e){const t=s.forwardRef((t,n)=>{let{children:r,...o}=t,i=null,a=!1;const c=[];$(r)&&"function"==typeof U&&(r=U(r._payload)),s.Children.forEach(r,e=>{if(W(e)){a=!0;const t=e;let n="child"in t.props?t.props.child:t.props.children;$(n)&&"function"==typeof U&&(n=U(n._payload)),i=L(t,n),c.push(i?.props?.children)}else c.push(e)}),i?i=s.cloneElement(i,void 0,c):!a&&1===s.Children.count(r)&&s.isValidElement(r)&&(i=r);const u=i?N(i):void 0,l=S(n,u);if(!i){if(r||0===r)throw new Error(a?V(e):H(e));return r}const f=F(o,i.props??{});return i.type!==s.Fragment&&(f.ref=n?l:u),s.cloneElement(i,f)});return t.displayName=`${e}.Slot`,t}I(j,"createSlot");var M=j("Slot"),_=Symbol.for("radix.slottable");function k(e){const t=I(e=>"child"in e?e.children(e.child):e.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=_,t}I(k,"createSlottable");var L=I((e,t)=>{if("child"in e.props){const t=e.props.child;return s.isValidElement(t)?s.cloneElement(t,void 0,e.props.children(t.props.children)):null}return s.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function F(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}}function N(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function W(e){return s.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===_}I(F,"mergeProps"),I(N,"getElementRef"),I(W,"isSlottable");var B=Symbol.for("react.lazy");function $(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===B&&"_payload"in e&&z(e._payload)}function z(e){return"object"==typeof e&&null!==e&&"then"in e}I($,"isLazyComponent"),I(z,"isPromiseLike");var H=I(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),V=I(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),U=c[" use ".trim().toString()],K=Object.defineProperty,G=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const n=j(`Primitive.${t}`),r=s.forwardRef((e,r)=>{const{asChild:o,...i}=e,a=o?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),h.jsx(a,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Y(e,t){e&&u.flushSync(()=>e.dispatchEvent(t))}function X(e){const t=s.useRef(e);return s.useEffect(()=>{t.current=e}),s.useMemo(()=>(...e)=>t.current?.(...e),[])}K(Y,"name",{value:"dispatchDiscreteCustomEvent",configurable:!0}),(0,Object.defineProperty)(X,"name",{value:"useCallbackRef",configurable:!0});var q,Z=Object.defineProperty,J=(e,t)=>Z(e,"name",{value:t,configurable:!0}),Q="dismissableLayer.update",ee=s.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),te=s.forwardRef(J(function(e,t){const{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:c,onDismiss:u,...l}=e,f=s.useContext(ee),[d,p]=s.useState(null),m=d?.ownerDocument??globalThis?.document,[,v]=s.useState({}),g=S(t,p),b=Array.from(f.layers),[w]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),x=w?b.indexOf(w):-1,E=d?b.indexOf(d):-1,C=f.layersWithOutsidePointerEventsDisabled.size>0,R=E>=x,O=s.useRef(!1),P=ie(e=>{i?.(e),c?.(e),e.defaultPrevented||u?.()},{ownerDocument:m,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:O,dismissableSurfaces:f.dismissableSurfaces,shouldHandlePointerDownOutside:s.useCallback(e=>{if(!(e instanceof Node))return!1;const t=[...f.branches].some(t=>t.contains(e));return R&&!t},[f.branches,R])}),D=ae(e=>{if(r&&O.current)return;const t=e.target;[...f.branches].some(e=>e.contains(t))||(a?.(e),c?.(e),e.defaultPrevented||u?.())},m),A=!!d&&E===b.length-1,T=X(e=>{"Escape"===e.key&&(o?.(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))});return s.useEffect(()=>{if(A)return m.addEventListener("keydown",T,{capture:!0}),()=>m.removeEventListener("keydown",T,{capture:!0})},[m,A,T]),s.useEffect(()=>{if(d)return n&&(0===f.layersWithOutsidePointerEventsDisabled.size&&(q=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(d)),f.layers.add(d),se(),()=>{n&&(f.layersWithOutsidePointerEventsDisabled.delete(d),0===f.layersWithOutsidePointerEventsDisabled.size&&(m.body.style.pointerEvents=q))}},[d,m,n,f]),s.useEffect(()=>()=>{d&&(f.layers.delete(d),f.layersWithOutsidePointerEventsDisabled.delete(d),se())},[d,f]),s.useEffect(()=>{const e=J(()=>v({}),"handleUpdate");return document.addEventListener(Q,e),()=>document.removeEventListener(Q,e)},[]),h.jsx(G.div,{...l,ref:g,style:{pointerEvents:C?R?"auto":"none":void 0,...e.style},onFocusCapture:y(e.onFocusCapture,D.onFocusCapture),onBlurCapture:y(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:y(e.onPointerDownCapture,P.onPointerDownCapture)})},"DismissableLayer")),ne=s.forwardRef(J(function(e,t){const n=s.useContext(ee),r=s.useRef(null),o=S(t,r);return s.useEffect(()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),h.jsx(G.div,{...e,ref:o})},"DismissableLayerBranch"));function re(){const e=s.useContext(ee),[t,n]=s.useState(null);return s.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}J(re,"useDismissableLayerSurface");var oe=J(()=>!0,"IS_TRUE");function ie(e,t){const{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:i,shouldHandlePointerDownOutside:a=oe}=t,c=X(e),u=s.useRef(!1),l=s.useRef(!1),f=s.useRef(new Map),d=s.useRef(()=>{});return s.useEffect(()=>{function e(){l.current=!1,o.current=!1,f.current.clear()}function t(){return Array.from(f.current.values()).some(Boolean)}function s(e){if(!l.current)return;const t=e.target;t instanceof Node&&[...i].some(e=>e.contains(t))||f.current.set(e.type,!0),"click"===e.type&&window.setTimeout(()=>{l.current&&d.current()},0)}function p(e){l.current&&f.current.set(e.type,!1)}J(e,"resetOutsideInteraction"),J(t,"isOutsideInteractionIntercepted"),J(s,"handleInteractionCapture"),J(p,"handleInteractionBubble");const h=J(i=>{if(i.target&&!u.current){let s=function(){n.removeEventListener("click",d.current);const r=t();e(),r||ce("dismissableLayer.pointerDownOutside",c,p,{discrete:!0})};if(J(s,"handleAndDispatchPointerDownOutsideEvent"),!a(i.target))return n.removeEventListener("click",d.current),e(),void(u.current=!1);const p={originalEvent:i};l.current=!0,o.current=r&&0===i.button,f.current.clear(),r&&0===i.button?(n.removeEventListener("click",d.current),d.current=s,n.addEventListener("click",d.current,{once:!0})):s()}else n.removeEventListener("click",d.current),e();u.current=!1},"handlePointerDown"),m=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const r of m)n.addEventListener(r,s,!0),n.addEventListener(r,p);const v=window.setTimeout(()=>{n.addEventListener("pointerdown",h)},0);return()=>{window.clearTimeout(v),n.removeEventListener("pointerdown",h),n.removeEventListener("click",d.current);for(const e of m)n.removeEventListener(e,s,!0),n.removeEventListener(e,p)}},[n,c,r,o,i,a]),{onPointerDownCapture:J(()=>u.current=!0,"onPointerDownCapture")}}function ae(e,t=globalThis?.document){const n=X(e),r=s.useRef(!1);return s.useEffect(()=>{const e=J(e=>{e.target&&!r.current&&ce("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:J(()=>r.current=!0,"onFocusCapture"),onBlurCapture:J(()=>r.current=!1,"onBlurCapture")}}function se(){const e=new CustomEvent(Q);document.dispatchEvent(e)}function ce(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?Y(o,i):o.dispatchEvent(i)}J(ie,"usePointerDownOutside"),J(ae,"useFocusOutside"),J(se,"dispatchUpdate"),J(ce,"handleAndDispatchCustomEvent");var ue=te,le=ne,fe=globalThis?.document?s.useLayoutEffect:()=>{},de=Object.defineProperty,pe=c[" useId ".trim().toString()]||(()=>{}),he=0;function me(e){const[t,n]=s.useState(pe());return fe(()=>{e||n(e=>e??String(he++))},[e]),e||(t?`radix-${t}`:"")}de(me,"name",{value:"useId",configurable:!0});const ve=["top","right","bottom","left"],ge=Math.min,ye=Math.max,be=Math.round,we=Math.floor,xe=e=>({x:e,y:e}
vendor: 4,920 bytes, line 1
1),Ee={left:"right",right:"left",bottom:"top",top:"bottom"},Ce={start:"end",end:"start"};function Re(e,t,n){return ye(e,ge(t,n))}function Se(e,t){return"function"==typeof e?e(t):e}function Oe(e){return e.split("-")[0]}function Pe(e){return e.split("-")[1]}function De(e){return"x"===e?"y":"x"}function Ae(e){return"y"===e?"height":"width"}const Te=new Set(["top","bottom"]);function Ie(e){return Te.has(Oe(e))?"y":"x"}function je(e){return De(Ie(e))}function Me(e){return e.replace(/start|end/g,e=>Ce[e])}const _e=["left","right"],ke=["right","left"],Le=["top","bottom"],Fe=["bottom","top"];function Ne(e){return e.replace(/left|right|bottom|top/g,e=>Ee[e])}function We(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 $e(e,t,n){let{reference:r,floating:o}=e;const i=Ie(t),a=je(t),s=Ae(a),c=Oe(t),u="y"===i,l=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,d=r[s]/2-o[s]/2;let p;switch(c){case"top":p={x:l,y:r.y-o.height};break;case"bottom":p={x:l,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-o.width,y:f};break;default:p={x:r.x,y:r.y}}switch(Pe(t)){case"start":p[a]-=d*(n&&u?-1:1);break;case"end":p[a]+=d*(n&&u?-1:1)}return p}async function ze(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:l="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=Se(t,e),h=We(p),m=s[d?"floating"===f?"reference":"floating":f],v=Be(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:l,strategy:c})),g="floating"===f?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),b=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},w=Be(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:y,strategy:c}):g);return{top:(v.top-w.top+h.top)/b.y,bottom:(w.bottom-v.bottom+h.bottom)/b.y,left:(v.left-w.left+h.left)/b.x,right:(w.right-v.right+h.right)/b.x}}function He(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ve(e){return ve.some(t=>e[t]>=0)}const Ue=new Set(["left","top"]);function Ke(){return"undefined"!=typeof window}function Ge(e){return qe(e)?(e.nodeName||"").toLowerCase():"#document"}function Ye(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Xe(e){var t;return null==(t=(qe(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function qe(e){return!!Ke()&&(e instanceof Node||e instanceof Ye(e).Node)}function Ze(e){return!!Ke()&&(e instanceof Element||e instanceof Ye(e).Element)}function Je(e){return!!Ke()&&(e instanceof HTMLElement||e instanceof Ye(e).HTMLElement)}function Qe(e){return!(!Ke()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Ye(e).ShadowRoot)}const et=new Set(["inline","contents"]);function tt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=pt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!et.has(o)}const nt=new Set(["table","td","th"]);function rt(e){return nt.has(Ge(e))}const ot=[":popover-open",":modal"];function it(e){return ot.some(t=>{try{return e.matches(t)}catch(n){return!1}})}const at=["transform","translate","scale","rotate","perspective"],st=["transform","translate","scale","rotate","perspective","filter"],ct=["paint","layout","strict","content"];function ut(e){const t=lt(),n=Ze(e)?pt(e):e;return at.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||st.some(e=>(n.willChange||"").includes(e))||ct.some(e=>(n.contain||"").includes(e))}function lt(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const ft=new Set(["html","body","#document"]);function dt(e){return ft.has(Ge(e))}function pt(e){return Ye(e).getComputedStyle(e)}function ht(e){return Ze(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function mt(e){if("html"===Ge(e))return e;const t=e.assignedSlot||e.parentNode||Qe(e)&&e.host||Xe(e);return Qe(t)?t.host:t}function vt(e){const t=mt(e);return dt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Je(t)&&tt(t)?t:vt(t)}function gt(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=vt(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Ye(o);if(i){const e=yt(a);
vendor: 5,957 bytes, line 1
1return t.concat(a,a.visualViewport||[],tt(o)?o:[],e&&n?gt(e):[])}return t.concat(o,gt(o,[],n))}function yt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function bt(e){const t=pt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Je(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=be(n)!==i||be(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function wt(e){return Ze(e)?e:e.contextElement}function xt(e){const t=wt(e);if(!Je(t))return xe(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=bt(t);let a=(i?be(n.width):n.width)/r,s=(i?be(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Et=xe(0);function Ct(e){const t=Ye(e);return lt()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Et}function Rt(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=wt(e);let a=xe(1);t&&(r?Ze(r)&&(a=xt(r)):a=xt(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Ye(e))&&t}(i,n,r)?Ct(i):xe(0);let c=(o.left+s.x)/a.x,u=(o.top+s.y)/a.y,l=o.width/a.x,f=o.height/a.y;if(i){const e=Ye(i),t=r&&Ze(r)?Ye(r):r;let n=e,o=yt(n);for(;o&&r&&t!==n;){const e=xt(o),t=o.getBoundingClientRect(),r=pt(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,u*=e.y,l*=e.x,f*=e.y,c+=i,u+=a,n=Ye(o),o=yt(n)}}return Be({width:l,height:f,x:c,y:u})}function St(e,t){const n=ht(e).scrollLeft;return t?t.left+n:Rt(Xe(e)).left+n}function Ot(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:St(e,r)),y:r.top+t.scrollTop}}const Pt=new Set(["absolute","fixed"]);function Dt(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Ye(e),r=Xe(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;const e=lt();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s,y:c}}(e,n);else if("document"===t)r=function(e){const t=Xe(e),n=ht(e),r=e.ownerDocument.body,o=ye(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=ye(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+St(e);const s=-n.scrollTop;return"rtl"===pt(r).direction&&(a+=ye(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(Xe(e));else if(Ze(t))r=function(e,t){const n=Rt(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Je(e)?xt(e):xe(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=Ct(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Be(r)}function At(e,t){const n=mt(e);return!(n===t||!Ze(n)||dt(n))&&("fixed"===pt(n).position||At(n,t))}function Tt(e,t,n){const r=Je(t),o=Xe(t),i="fixed"===n,a=Rt(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=xe(0);function u(){c.x=St(o)}if(r||!r&&!i)if(("body"!==Ge(t)||tt(o))&&(s=ht(t)),r){const e=Rt(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else o&&u();i&&!r&&o&&u();const l=!o||r||i?xe(0):Ot(o,s);return{x:a.left+s.scrollLeft-c.x-l.x,y:a.top+s.scrollTop-c.y-l.y,width:a.width,height:a.height}}function It(e){return"static"===pt(e).position}function jt(e,t){if(!Je(e)||"fixed"===pt(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Xe(e)===n&&(n=n.ownerDocument.body),n}function Mt(e,t){const n=Ye(e);if(it(e))return n;if(!Je(e)){let t=mt(e);for(;t&&!dt(t);){if(Ze(t)&&!It(t))return t;t=mt(t)}return n}let r=jt(e,t);for(;r&&rt(r)&&It(r);)r=jt(r,t);return r&&dt(r)&&It(r)&&!ut(r)?n:r||function(e){let t=mt(e);for(;Je(t)&&!dt(t);){if(ut(t))return t;if(it(t))return null;t=mt(t)}return null}(e)||n}const _t={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=Xe(r),s=!!t&&it(t.floating);if(r===a||s&&i)return n;let c={scrollLeft:0,scrollTop:0},u=xe(1);const l=xe(0),f=Je(r);if((f||!f&&!i)&&(("body"!==Ge(r)||tt(a))&&(c=ht(r)),Je(r))){const e=Rt(r);u=xt(r),l.x=e.x+r.clientLeft,l.y=e.y+r.clientTop}const d=!a||f||i?xe(0):Ot(a,c,!0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+l.x+d.x,y:n.y*u.y-c.scrollTop*u.y+l.y+d.y}},getDocumentElement:Xe,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?it(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=gt(e,[],!1).filter(e=>Ze(e)&&"body"!==Ge(e)),o=null;const i="fixed"===pt(e).position;let a=i?mt(e):e;for(;Ze(a)&&!dt(a);){const t=pt(a),n=ut(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&Pt.has(o.position)||tt(a)&&!n&&At(e,a))?r=r.filter(e=>e!==a):o=t,a=mt(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],s=i.reduce((e,n)=>{const r=Dt(t,n,o);return e.top=ye(r.top,e.top),e.right=ge(r.right,e.right),e.bottom=ge(r.bottom,e.bottom),e.left=ye(r.left,e.left),e},Dt(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Mt,getElementRects:async function(e){const t=this.getOffsetParent||Mt,n=this.getDimensions,r=await n(e.floating);return{reference:Tt(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}=bt(e);return{width:t,height:n}},getScale:xt,isElement:Ze,isRTL:function(e){return"rtl"===pt(e).direction}};function kt(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}const Lt=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,c=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=Oe(n),s=Pe(n),c="y"===Ie(n),u=Ue.has(a)?-1:1,l=i&&c?-1:1,f=Se(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:h}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}
vendor: 5,733 bytes, line 1
1:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&"number"==typeof h&&(p="end"===s?-1*h:h),c?{x:p*l,y:d*u}:{x:d*u,y:p*l}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:a}}}}},Ft=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=Se(e,t),u={x:n,y:r},l=await ze(t,c),f=Ie(Oe(o)),d=De(f);let p=u[d],h=u[f];if(i){const e="y"===d?"bottom":"right";p=Re(p+l["y"===d?"top":"left"],p,p-l[e])}if(a){const e="y"===f?"bottom":"right";h=Re(h+l["y"===f?"top":"left"],h,h-l[e])}const m=s.fn({...t,[d]:p,[f]:h});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[d]:i,[f]:a}}}}}},Nt=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:c,elements:u}=t,{mainAxis:l=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...v}=Se(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const g=Oe(o),y=Ie(s),b=Oe(s)===s,w=await(null==c.isRTL?void 0:c.isRTL(u.floating)),x=d||(b||!m?[Ne(s)]:function(e){const t=Ne(e);return[Me(e),t,Me(t)]}(s)),E="none"!==h;!d&&E&&x.push(...function(e,t,n,r){const o=Pe(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?ke:_e:t?_e:ke;case"left":case"right":return t?Le:Fe;default:return[]}}(Oe(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(Me)))),i}(s,m,h,w));const C=[s,...x],R=await ze(t,v),S=[];let O=(null==(r=i.flip)?void 0:r.overflows)||[];if(l&&S.push(R[g]),f){const e=function(e,t,n){void 0===n&&(n=!1);const r=Pe(e),o=je(e),i=Ae(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Ne(a)),[a,Ne(a)]}(o,a,w);S.push(R[e[0]],R[e[1]])}if(O=[...O,{placement:o,overflows:S}],!S.every(e=>e<=0)){var P,D;const e=((null==(P=i.flip)?void 0:P.index)||0)+1,t=C[e];if(t&&("alignment"!==f||y===Ie(t)||O.every(e=>e.overflows[0]>0&&Ie(e.placement)===y)))return{data:{index:e,overflows:O},reset:{placement:t}};let n=null==(D=O.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:D.placement;if(!n)switch(p){case"bestFit":{var A;const e=null==(A=O.filter(e=>{if(E){const t=Ie(e.placement);return t===y||"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{}}}},Wt=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:a,elements:s}=t,{apply:c=()=>{},...u}=Se(e,t),l=await ze(t,u),f=Oe(o),d=Pe(o),p="y"===Ie(o),{width:h,height:m}=i.floating;let v,g;"top"===f||"bottom"===f?(v=f,g=d===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(g=f,v="end"===d?"top":"bottom");const y=m-l.top-l.bottom,b=h-l.left-l.right,w=ge(m-l[v],y),x=ge(h-l[g],b),E=!t.middlewareData.shift;let C=w,R=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(R=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(C=y),E&&!d){const e=ye(l.left,0),t=ye(l.right,0),n=ye(l.top,0),r=ye(l.bottom,0);p?R=h-2*(0!==e||0!==t?e+t:ye(l.left,l.right)):C=m-2*(0!==n||0!==r?n+r:ye(l.top,l.bottom))}await c({...t,availableWidth:R,availableHeight:C});const S=await a.getDimensions(s.floating);return h!==S.width||m!==S.height?{reset:{rects:!0}}:{}}}},Bt=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Se(e,t);switch(r){case"referenceHidden":{const e=He(await ze(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Ve(e)}}}case"escaped":{const e=He(await ze(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Ve(e)}}}default:return{}}}}},$t=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:c}=t,{element:u,padding:l=0}=Se(e,t)||{};if(null==u)return{};const f=We(l),d={x:n,y:r},p=je(o),h=Ae(p),m=await a.getDimensions(u),v="y"===p,g=v?"top":"left",y=v?"bottom":"right",b=v?"clientHeight":"clientWidth",w=i.reference[h]+i.reference[p]-d[p]-i.floating[h],x=d[p]-i.reference[p],E=await(null==a.getOffsetParent?void 0:a.getOffsetParent(u));let C=E?E[b]:0;C&&await(null==a.isElement?void 0:a.isElement(E))||(C=s.floating[b]||i.floating[h]);const R=w/2-x/2,S=C/2-m[h]/2-1,O=ge(f[g],S),P=ge(f[y],S),D=O,A=C-m[h]-P,T=C/2-m[h]/2+R,I=Re(D,T,A),j=!c.arrow&&null!=Pe(o)&&T!==I&&i.reference[h]/2-(T<D?O:P)-m[h]/2<0,M=j?T<D?T-D:T-A:0;return{[p]:d[p]+M,data:{[p]:I,centerOffset:T-I-M,...j&&{alignmentOffset:M}},reset:j}}}),zt=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:c=!0,crossAxis:u=!0}=Se(e,t),l={x:n,y:r},f=Ie(o),d=De(f);let p=l[d],h=l[f];const m=Se(s,t),v="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+v.mainAxis,n=i.reference[d]+i.reference[e]-v.mainAxis;p<t?p=t:p>n&&(p=n)}if(u){var g,y;const e="y"===d?"width":"height",t=Ue.has(Oe(o)),n=i.reference[f]-i.floating[e]+(t&&(null==(g=a.offset)?void 0:g[f])||0)+(t?0:v.crossAxis),r=i.reference[f]+i.reference[e]+(t?0:(null==(y=a.offset)?void 0:y[f])||0)-(t?v.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[d]:p,[f]:h}}}};var Ht="undefined"!=typeof document?s.useLayoutEffect:function(){};function Vt(e,t){if(e===t)return!0;
1if(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(!Vt(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||Vt(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function Ut(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Kt(e,t){const n=Ut(e);return Math.round(t*n)/n}function Gt(e){const t=s.useRef(e);return Ht(()=>{t.current=e}),t}const Yt=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?$t({element:n.current,padding:r}).fn(t):{}:n?$t({element:n,padding:r}).fn(t):{};var o}}),Xt=(e,t)=>({...Lt(e),options:[e,t]}),qt=(e,t)=>({...Ft(e),options:[e,t]}),Zt=(e,t)=>({...zt(e),options:[e,t]}),Jt=(e,t)=>({...Nt(e),options:[e,t]}),Qt=(e,t)=>({...Wt(e),options:[e,t]}),en=(e,t)=>({...Bt(e),options:[e,t]}),tn=(e,t)=>({...Yt(e),options:[e,t]});function nn(e){const[t,n]=s.useState(void 0);return fe(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver(t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(0,Object.defineProperty)(nn,"name",{value:"useSize",configurable:!0});var rn=Object.defineProperty,on=(e,t)=>rn(e,"name",{value:t,configurable:!0}),an="Popper",[sn,cn]=D(an),[un,ln]=sn(an),fn=on(e=>{const{__scopePopper:t,children:n}=e,[r,o]=s.useState(null),[i,a]=s.useState(void 0);return h.jsx(un,{scope:t,anchor:r,onAnchorChange:o,placementState:i,setPlacementState:a,children:n})},"Popper"),dn=s.forwardRef(on(function(e,t){const{__scopePopper:n,virtualRef:r,...o}=e,i=ln("PopperAnchor",n),a=s.useRef(null),c=i.onAnchorChange,u=S(t,s.useCallback(e=>{a.current=e,e&&c(e)},[c])),l=s.useRef(null);s.useEffect(()=>{if(!r)return;const e=l.current;l.current=r.current,e!==l.current&&c(l.current)});const f=i.placementState&&bn(i.placementState),d=f?.[0],p=f?.[1];return r?null:h.jsx(G.div,{"data-radix-popper-side":d,"data-radix-popper-align":p,...o,ref:u})},"PopperAnchor")),pn="PopperContent",[hn,mn]=sn(pn),vn=s.forwardRef(on(function(e,t){const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:a=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:f=[],collisionPadding:d=0,sticky:p="partial",hideWhenDetached:m=!1,updatePositionStrategy:v="optimized",onPlaced:g,...y}=e,b=ln(pn,n),[w,x]=s.useState(null),E=S(t,x),[C,R]=s.useState(null),O=nn(C),P=O?.width??0,D=O?.height??0,A=r+("center"!==i?"-"+i:""),T="number"==typeof d?d:{top:0,right:0,bottom:0,left:0,...d},I=Array.isArray(f)?f:[f],j=I.length>0,M={padding:T,boundary:I.filter(gn),altBoundary:j},{refs:_,floatingStyles:k,placement:L,isPositioned:F,middlewareData:N}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:c=!0,whileElementsMounted:l,open:f}=e,[d,p]=s.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=s.useState(r);Vt(h,r)||m(r);const[v,g]=s.useState(null),[y,b]=s.useState(null),w=s.useCallback(e=>{e!==R.current&&(R.current=e,g(e))},[]),x=s.useCallback(e=>{e!==S.current&&(S.current=e,b(e))},[]),E=i||v,C=a||y,R=s.useRef(null),S=s.useRef(null),O=s.useRef(d),P=null!=l,D=Gt(l),A=Gt(o),T=Gt(f),I=s.useCallback(()=>{if(!R.current||!S.current)return;const e={placement:t,strategy:n,middleware:h};A.current&&(e.platform=A.current),((e,t,n)=>{const r=new Map,o={platform:_t,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}
vendor: 14,484 bytes, line 1
1=n,s=i.filter(Boolean),c=await(null==a.isRTL?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:l,y:f}=$e(u,r,c),d=r,p={},h=0;for(let m=0;m<s.length;m++){const{name:n,fn:i}=s[m],{x:v,y:g,data:y,reset:b}=await i({x:l,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});l=null!=v?v:l,f=null!=g?g:f,p={...p,[n]:{...p[n],...y}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(u=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:l,y:f}=$e(u,d,c))),m=-1)}return{x:l,y:f,placement:d,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})})(R.current,S.current,e).then(e=>{const t={...e,isPositioned:!1!==T.current};j.current&&!Vt(O.current,t)&&(O.current=t,u.flushSync(()=>{p(t)}))})},[h,t,n,A,T]);Ht(()=>{!1===f&&O.current.isPositioned&&(O.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[f]);const j=s.useRef(!1);Ht(()=>(j.current=!0,()=>{j.current=!1}),[]),Ht(()=>{if(E&&(R.current=E),C&&(S.current=C),E&&C){if(D.current)return D.current(E,C,I);I()}},[E,C,I,D,P]);const M=s.useMemo(()=>({reference:R,floating:S,setReference:w,setFloating:x}),[w,x]),_=s.useMemo(()=>({reference:E,floating:C}),[E,C]),k=s.useMemo(()=>{const e={position:n,left:0,top:0};if(!_.floating)return e;const t=Kt(_.floating,d.x),r=Kt(_.floating,d.y);return c?{...e,transform:"translate("+t+"px, "+r+"px)",...Ut(_.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,c,_.floating,d.x,d.y]);return s.useMemo(()=>({...d,update:I,refs:M,elements:_,floatingStyles:k}),[d,I,M,_,k])}({strategy:"fixed",placement:A,whileElementsMounted:on((...e)=>function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,u=wt(e),l=o||i?[...u?gt(u):[],...gt(t)]:[];l.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});const f=u&&s?function(e,t){let n,r=null;const o=Xe(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,c){void 0===s&&(s=!1),void 0===c&&(c=1),i();const u=e.getBoundingClientRect(),{left:l,top:f,width:d,height:p}=u;if(s||t(),!d||!p)return;const h={rootMargin:-we(f)+"px "+-we(o.clientWidth-(l+d))+"px "+-we(o.clientHeight-(f+p))+"px "+-we(l)+"px",threshold:ye(0,ge(1,c))||1};let m=!0;function v(t){const r=t[0].intersectionRatio;if(r!==c){if(!m)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||kt(u,e.getBoundingClientRect())||a(),m=!1}try{r=new IntersectionObserver(v,{...h,root:o.ownerDocument})}catch(g){r=new IntersectionObserver(v,h)}r.observe(e)}(!0),i}(u,n):null;let d,p=-1,h=null;a&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),u&&!c&&h.observe(u),h.observe(t));let m=c?Rt(e):null;return c&&function t(){const r=Rt(e);m&&!kt(m,r)&&n(),m=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;l.forEach(e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=h)||e.disconnect(),h=null,c&&cancelAnimationFrame(d)}}(...e,{animationFrame:"always"===v}),"whileElementsMounted"),elements:{reference:b.anchor},middleware:[Xt({mainAxis:o+D,alignmentAxis:a}),l&&qt({mainAxis:!0,crossAxis:!1,limiter:"partial"===p?Zt():void 0,...M}),l&&Jt({...M}),Qt({...M,apply:on(({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`)},"apply")}),C&&tn({element:C,padding:c}),yn({arrowWidth:P,arrowHeight:D}),m&&en({strategy:"referenceHidden",...M,boundary:j?M.boundary:void 0})]}),W=b.setPlacementState;fe(()=>(W(L),()=>{W(void 0)}),[L,W]);const[B,$]=bn(L),z=X(g);fe(()=>{F&&z?.()},[F,z]);const H=N.arrow?.x,V=N.arrow?.y,U=0!==N.arrow?.centerOffset,[K,Y]=s.useState();return fe(()=>{w&&Y(window.getComputedStyle(w).zIndex)},[w]),h.jsx("div",{ref:_.setFloating,"data-radix-popper-content-wrapper":"",style:{...k,transform:F?k.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:K,"--radix-popper-transform-origin":[N.transformOrigin?.x,N.transformOrigin?.y].join(" "),...N.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:h.jsx(hn,{scope:n,placedSide:B,placedAlign:$,onArrowChange:R,arrowX:H,arrowY:V,shouldHideArrow:U,children:h.jsx(G.div,{"data-side":B,"data-align":$,...y,ref:E,style:{...y.style,animation:F?y.style?.animation:"none"}})})})},"PopperContent"));function gn(e){return null!==e}on(gn,"isNotNull");var yn=on(e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,i=0!==o.arrow?.centerOffset,a=i?0:e.arrowWidth,s=i?0:e.arrowHeight,[c,u]=bn(n),l={start:"0%",center:"50%",end:"100%"}[u],f=(o.arrow?.x??0)+a/2,d=(o.arrow?.y??0)+s/2;let p="",h="";return"bottom"===c?(p=i?l:`${f}px`,h=-s+"px"):"top"===c?(p=i?l:`${f}px`,h=`${r.floating.height+s}px`):"right"===c?(p=-s+"px",h=i?l:`${d}px`):"left"===c&&(p=`${r.floating.width+s}px`,h=i?l:`${d}px`),{data:{x:p,y:h}}}}),"transformOrigin");function bn(e){const[t,n="center"]=e.split("-");return[t,n]}on(bn,"getSideAndAlignFromPlacement");var wn=fn,xn=dn,En=vn,Cn=Object.defineProperty,Rn=(e,t)=>Cn(e,"name",{value:t,configurable:!0}),Sn=s.forwardRef(Rn(function(e,t){const{container:n,...r}=e,[o,i]=s.useState(!1);fe(()=>i(!0),[]);const a=n||o&&globalThis?.document?.body;return a?u.createPortal(h.jsx(G.div,{...r,ref:t}),a):null},"Portal")),On=Object.defineProperty,Pn=(e,t)=>On(e,"name",{value:t,configurable:!0});function Dn(e,t){return s.useReducer((e,n)=>t[e][n]??e,e)}Pn(Dn,"useStateMachine");var An=Pn(e=>{const{present:t,children:n}=e,r=Tn(t),o="function"==typeof n?n({present:r.isPresent}):s.Children.only(n),i=jn(r.ref,_n(o));return"function"==typeof n||r.isPresent?s.cloneElement(o,{ref:i}):null},"Presence");function Tn(e){const[t,n]=s.useState(),r=s.useRef(null),o=s.useRef(e),i=s.useRef("none"),a=s.useRef(void 0),c=e?"mounted":"unmounted",[u,l]=Dn(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return s.useEffect(()=>{"mounted"===u?(i.current=a.current??Mn(r.current),a.current=void 0):i.current="none"},[u]),fe(()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,s=Mn(t);e?(a.current=s,l("MOUNT")):l("none"===s||"none"===t?.display?"UNMOUNT":n&&r!==s?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),fe(()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,a=Pn(i=>{const a=Mn(r.current).includes(CSS.escape(i.animationName));if(i.target===t&&a&&(l("ANIMATION_END"),!o.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)})}},"handleAnimationEnd"),s=Pn(e=>{e.target===t&&(i.current=Mn(r.current))},"handleAnimationStart");return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",a),t.addEventListener("animationend",a),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",a),t.removeEventListener("animationend",a)}}l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:s.useCallback(e=>{if(e){const t=getComputedStyle(e);r.current=t,a.current=Mn(t)}else r.current=null;n(e)},[])}}function In(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function jn(...e){const t=s.useRef(e);return t.current=e,s.useCallback(e=>{const n=t.current;let r=!1;const o=n.map(t=>{const n=In(t,e);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let e=0;e<o.length;e++){const t=o[e];"function"==typeof t?t():In(n[e],null)}}},[])}function Mn(e){return e?.animationName||"none"}function _n(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}Pn(Tn,"usePresence"),Pn(In,"setRef"),Pn(jn,"useStableComposedRefs"),Pn(Mn,"getAnimationName"),Pn(_n,"getElementRef");var kn=Object.defineProperty,Ln=c[" useEffectEvent ".trim().toString()],Fn=c[" useInsertionEffect ".trim().toString()];function Nn(e){if("function"==typeof Ln)return Ln(e);const t=s.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return"function"==typeof Fn?Fn(()=>{t.current=e}):fe(()=>{t.current=e}),s.useMemo(()=>(...e)=>t.current?.(...e),[])}kn(Nn,"name",{value:"useEffectEvent",configurable:!0});var Wn=Object.defineProperty,Bn=(e,t)=>Wn(e,"name",{value:t,configurable:!0}),$n=c[" useInsertionEffect ".trim().toString()]||fe;function zn({prop:e,defaultProp:t,onChange:n=Bn(()=>{},"onChange"),caller:r}){const[o,i,a]=Hn({defaultProp:t,onChange:n}),c=void 0!==e;return[c?e:o,s.useCallback(t=>{if(c){const n=Vn(t)?t(e):t;n!==e&&a.current?.(n)}else i(t)},[c,e,i,a])]}function Hn({defaultProp:e,onChange:t}){const[n,r]=s.useState(e),o=s.useRef(n),i=s.useRef(t);return $n(()=>{i.current=t},[t]),s.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}function Vn(e){return"function"==typeof e}Bn(zn,"useControllableState"),Bn(Hn,"useUncontrolledState"),Bn(Vn,"isFunction");var Un=Symbol("RADIX:SYNC_STATE");Bn(function(e,t,n,r){const{prop:o,defaultProp:i,onChange:a,caller:c}=t,u=void 0!==o,l=Nn(a),f=[{...n,state:i}];r&&f.push(r);const[d,p]=s.useReducer((t,n)=>{if(n.type===Un)return{...t,state:n.state};const r=e(t,n);return u&&!Object.is(r.state,t.state)&&l(r.state),r},...f),h=d.state,m=s.useRef(h);s.useEffect(()=>{m.current!==h&&(m.current=h,u||l(h))},[h,m,u]);const v=s.useMemo(()=>void 0!==o?{...d,state:o}:d,[d,o]);return s.useEffect(()=>{u&&!Object.is(o,d.state)&&p({type:Un,state:o})},[o,d.state,u]),[v,p]},"useControllableStateReducer");var Kn=Object.defineProperty,Gn=(e,t)=>Kn(e,"name",{value:t,configurable:!0}),Yn="focusScope.autoFocusOnMount",Xn="focusScope.autoFocusOnUnmount",qn={bubbles:!1,cancelable:!0},Zn=s.forwardRef(Gn(function(e,t){const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[c,u]=s.useState(null),l=X(o),f=X(i),d=s.useRef(null),p=S(t,u),m=s.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;s.useEffect(()=>{if(r){let e=function(e){if(m.paused||!c)return;const t=e.target;c.contains(t)?d.current=t:or(d.current,{select:!0})},t=function(e){if(m.paused||!c)return;const t=e.relatedTarget;null!==t&&(c.contains(t)||or(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&or(c)};Gn(e,"handleFocusIn"),Gn(t,"handleFocusOut"),Gn(n,"handleMutations"),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()}}},[r,c,m.paused]),s.useEffect(()=>{if(c){ir.add(m);const e=document.activeElement;if(!c.contains(e)){const t=new CustomEvent(Yn,qn);c.addEventListener(Yn,l),c.dispatchEvent(t),t.defaultPrevented||(Jn(cr(er(c)),{select:!0}),document.activeElement===e&&or(c))}return()=>{c.removeEventListener(Yn,l),setTimeout(()=>{const t=new CustomEvent(Xn,qn);c.addEventListener(Xn,f),c.dispatchEvent(t),t.defaultPrevented||or(e??document.body,{select:!0}),c.removeEventListener(Xn,f),ir.remove(m)},0)}}},[c,l,f,m]);const v=s.useCallback(e=>{if(!n&&!r)return;if(m.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,i]=Qn(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&or(i,{select:!0})):(e.preventDefault(),n&&or(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,m.paused]);return h.jsx(G.div,{tabIndex:-1,...a,ref:p,onKeyDown:v})},"FocusScope"));function Jn(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(or(r,{select:t}),document.activeElement!==n)return}function Qn(e){const t=er(e);return[tr(t,e),tr(t.reverse(),e)]}function er(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:Gn(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},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}function tr(e,t){const n="function"==typeof t.checkVisibility&&t.checkVisibility({checkVisibilityCSS:!0});for(const r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):nr(r,{upTo:t})))return r}function nr(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 rr(e){return e instanceof HTMLInputElement&&"select"in e}function or(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&rr(e)&&t&&e.select()}}Gn(Jn,"focusFirst"),Gn(Qn,"getTabbableEdges"),Gn(er,"getTabbableCandidates"),Gn(tr,"findVisible"),Gn(nr,"isHidden"),Gn(rr,"isSelectableInput"),Gn(or,"focus");var ir=ar();function ar(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=sr(e,t),e.unshift(t)},remove(t){e=sr(e,t),e[0]?.resume()}}}function sr(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}function cr(e){return e.filter(e=>"A"!==e.tagName)}Gn(ar,"createFocusScopesStack"),Gn(sr,"arrayRemove"),Gn(cr,"removeLinks");var ur=Object.defineProperty,lr=(e,t)=>ur(e,"name",{value:t,configurable:!0}),fr=0,dr=null;function pr(){s.useEffect(()=>{dr||(dr={start:hr(),end:hr()});const{start:e,end:t}=dr;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),fr++,()=>{1===fr&&(dr?.start.remove(),dr?.end.remove(),dr=null),fr=Math.max(0,fr-1)}},[])}function hr(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.
1style.position="fixed",e.style.pointerEvents="none",e}lr(function(e){return pr(),e.children},"FocusGuards"),lr(pr,"useFocusGuards"),lr(hr,"createFocusGuard");var mr=function(){return mr=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},mr.apply(this,arguments)};function vr(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 gr="right-scroll-bar-position",yr="width-before-scroll-bar";function br(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var wr="undefined"!=typeof window?s.useLayoutEffect:s.useEffect,xr=new WeakMap;function Er(e){return e}var Cr=function(e){var t=e.sideCar,n=vr(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return s.createElement(r,mr({},n))};Cr.isSideCarExport=!0;var Rr=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=Er);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]:null},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}}}}}();return t.options=mr({async:!0,ssr:!1},e),t}(),Sr=function(){},Or=s.forwardRef(function(e,t){var n=s.useRef(null),r=s.useState({onScrollCapture:Sr,onWheelCapture:Sr,onTouchMoveCapture:Sr}),o=r[0],i=r[1],a=e.forwardProps,c=e.children,u=e.className,l=e.removeScrollBar,f=e.enabled,d=e.shards,p=e.sideCar,h=e.noRelative,m=e.noIsolation,v=e.inert,g=e.allowPinchZoom,y=e.as,b=void 0===y?"div":y,w=e.gapMode,x=vr(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=p,C=function(e){var t,n,r=(t=function(t){return e.forEach(function(e){return br(e,t)})},(n=s.useState(function(){return{value:null,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0]).callback=t,n.facade);return wr(function(){var t=xr.get(r);if(t){var n=new Set(t),o=new Set(e),i=r.current;n.forEach(function(e){o.has(e)||br(e,null)}),o.forEach(function(e){n.has(e)||br(e,i)})}xr.set(r,e)},[e]),r}([n,t]),R=mr(mr({},x),o);return s.createElement(s.Fragment,null,f&&s.createElement(E,{sideCar:Rr,removeScrollBar:l,shards:d,noRelative:h,noIsolation:m,inert:v,setCallbacks:i,allowPinchZoom:!!g,lockRef:n,gapMode:w}),a?s.cloneElement(s.Children.only(c),mr(mr({},R),{ref:C})):s.createElement(b,mr({},R,{className:u,ref:C}),c))});Or.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Or.classNames={fullWidth:yr,zeroRight:gr};var Pr=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=function(){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}())&&(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)}}},Dr=function(){var e,t=(e=Pr(),function(t,n){s.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},Ar={left:0,top:0,right:0,gap:0},Tr=function(e){return parseInt(e||"",10)||0}
vendor: 4,232 bytes, line 1
1,Ir=Dr(),jr="data-scroll-locked",Mr=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(jr,"] {\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(gr," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(yr," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(gr," .").concat(gr," {\n right: 0 ").concat(r,";\n }\n \n .").concat(yr," .").concat(yr," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(jr,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},_r=function(){var e=parseInt(document.body.getAttribute(jr)||"0",10);return isFinite(e)?e:0},kr=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;s.useEffect(function(){return document.body.setAttribute(jr,(_r()+1).toString()),function(){var e=_r()-1;e<=0?document.body.removeAttribute(jr):document.body.setAttribute(jr,e.toString())}},[]);var i=s.useMemo(function(){return function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return Ar;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[Tr(n),Tr(r),Tr(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])}}(o)},[o]);return s.createElement(Ir,{styles:Mr(i,!t,o,n?"":"!important")})},Lr=!1;if("undefined"!=typeof window)try{var Fr=Object.defineProperty({},"passive",{get:function(){return Lr=!0,!0}});window.addEventListener("test",Fr,Fr),window.removeEventListener("test",Fr,Fr)}catch(ta){Lr=!1}var Nr=!!Lr&&{passive:!1},Wr=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])},Br=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),$r(e,r)){var o=zr(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},$r=function(e,t){return"v"===e?function(e){return Wr(e,"overflowY")}(t):function(e){return Wr(e,"overflowX")}(t)},zr=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},Hr=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Vr=function(e){return[e.deltaX,e.deltaY]},Ur=function(e){return e&&"current"in e?e.current:e},Kr=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Gr=0,Yr=[];function Xr(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const qr=(Zr=function(e){var t=s.useRef([]),n=s.useRef([0,0]),r=s.useRef(),o=s.useState(Gr++)[0],i=s.useState(Dr)[0],a=s.useRef(e);s.useEffect(function(){a.current=e},[e]),s.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=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))}([e.lockRef.current],(e.shards||[]).map(Ur),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}}
vendor: 4,316 bytes, line 1
1,[e.inert,e.lockRef.current,e.shards]);var c=s.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var o,i=Hr(e),s=n.current,c="deltaX"in e?e.deltaX:s[0]-i[0],u="deltaY"in e?e.deltaY:s[1]-i[1],l=e.target,f=Math.abs(c)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===f&&"range"===l.type)return!1;var d=window.getSelection(),p=d&&d.anchorNode;if(p&&(p===l||p.contains(l)))return!1;var h=Br(f,l);if(!h)return!0;if(h?o=f:(o="v"===f?"h":"v",h=Br(f,l)),!h)return!1;if(!r.current&&"changedTouches"in e&&(c||u)&&(r.current=o),!o)return!0;var m=r.current||o;return function(e,t,n,r){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),i=o*r,a=n.target,s=t.contains(a),c=!1,u=i>0,l=0,f=0;do{if(!a)break;var d=zr(e,a),p=d[0],h=d[1]-d[2]-o*p;(p||h)&&$r(e,a)&&(l+=h,f+=p);var m=a.parentNode;a=m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?m.host:m}while(!s&&a!==document.body||s&&(t.contains(a)||t===a));return(u&&Math.abs(l)<1||!u&&Math.abs(f)<1)&&(c=!0),c}(m,t,e,"h"===m?c:u)},[]),u=s.useCallback(function(e){var n=e;if(Yr.length&&Yr[Yr.length-1]===i){var r="deltaY"in n?Vr(n):Hr(n),o=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&(t=e.delta,o=r,t[0]===o[0]&&t[1]===o[1]);var t,o})[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var s=(a.current.shards||[]).map(Ur).filter(Boolean).filter(function(e){return e.contains(n.target)});(s.length>0?c(n,s[0]):!a.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=s.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:Xr(r)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),f=s.useCallback(function(e){n.current=Hr(e),r.current=void 0},[]),d=s.useCallback(function(t){l(t.type,Vr(t),t.target,c(t,e.lockRef.current))},[]),p=s.useCallback(function(t){l(t.type,Hr(t),t.target,c(t,e.lockRef.current))},[]);s.useEffect(function(){return Yr.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",u,Nr),document.addEventListener("touchmove",u,Nr),document.addEventListener("touchstart",f,Nr),function(){Yr=Yr.filter(function(e){return e!==i}),document.removeEventListener("wheel",u,Nr),document.removeEventListener("touchmove",u,Nr),document.removeEventListener("touchstart",f,Nr)}},[]);var h=e.removeScrollBar,m=e.inert;return s.createElement(s.Fragment,null,m?s.createElement(i,{styles:Kr(o)}):null,h?s.createElement(kr,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},Rr.useMedium(Zr),Cr);var Zr,Jr=s.forwardRef(function(e,t){return s.createElement(Or,mr({},e,{ref:t,sideCar:qr}))});Jr.classNames=Or.classNames;var Qr=new WeakMap,eo=new WeakMap,to={},no=0,ro=function(e){return e&&(e.host||ro(e.parentNode))},oo=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"))),function(e,t,n,r){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=ro(t);return n&&e.contains(n)?n:null}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);to[n]||(to[n]=new WeakMap);var i=to[n],a=[],s=new Set,c=new Set(o),u=function(e){e&&!s.has(e)&&(s.add(e),u(e.parentNode))};o.forEach(u);var l=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))l(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,c=(Qr.get(e)||0)+1,u=(i.get(e)||0)+1;Qr.set(e,c),i.set(e,u),a.push(e),1===c&&o&&eo.set(e,!0),1===u&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(f){}})};return l(t),s.clear(),no++,function(){a.forEach(function(e){var t=Qr.get(e)-1,o=i.get(e)-1;Qr.set(e,t),i.set(e,o),t||(eo.has(e)||e.removeAttribute(r),eo.delete(e)),o||e.removeAttribute(n)}),--no||(Qr=new WeakMap,Qr=new WeakMap,eo=new WeakMap,to={})}}(r,o,n,"aria-hidden")):function(){return null}},io=Object.defineProperty,ao=(e,t)=>io(e,"name",{value:t,configurable:!0}),so="Dialog",[co,uo]=D(so),[lo,fo]=co(so),po=ao(e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:
1a=!0}=e,c=s.useRef(null),u=s.useRef(null),[l,f]=zn({prop:r,defaultProp:o??!1,onChange:i,caller:so}),[d,p]=s.useState(0),[m,v]=s.useState(0);return h.jsx(lo,{scope:t,triggerRef:c,contentRef:u,contentId:me(),titleId:me(),descriptionId:me(),titlePresent:d>0,descriptionPresent:m>0,setTitleCount:p,setDescriptionCount:v,open:l,onOpenChange:f,onOpenToggle:s.useCallback(()=>f(e=>!e),[f]),modal:a,children:n})},"Dialog"),ho=s.forwardRef(ao(function(e,t){const{__scopeDialog:n,...r}=e,o=fo("DialogTrigger",n),i=S(t,o.triggerRef);return h.jsx(G.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":Io(o.open),...r,ref:i,onClick:y(e.onClick,o.onOpenToggle)})},"DialogTrigger")),mo="DialogPortal",[vo,go]=co(mo,{forceMount:void 0}),yo=ao(e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=fo(mo,t);return h.jsx(vo,{scope:t,forceMount:n,children:s.Children.map(r,e=>h.jsx(An,{present:n||i.open,children:h.jsx(Sn,{asChild:!0,container:o,children:e})}))})},"DialogPortal"),bo="DialogOverlay",wo=s.forwardRef(ao(function(e,t){const n=go(bo,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=fo(bo,e.__scopeDialog);return i.modal?h.jsx(An,{present:r||i.open,children:h.jsx(Eo,{...o,ref:t})}):null},"DialogOverlay")),xo=j("DialogOverlay.RemoveScroll"),Eo=s.forwardRef(ao(function(e,t){const{__scopeDialog:n,...r}=e,o=fo(bo,n),i=S(t,re());return h.jsx(Jr,{as:xo,allowPinchZoom:!0,shards:[o.contentRef],children:h.jsx(G.div,{"data-state":Io(o.open),...r,ref:i,style:{pointerEvents:"auto",...r.style}})})},"DialogOverlayImpl")),Co="DialogContent",Ro=s.forwardRef(ao(function(e,t){const n=go(Co,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=fo(Co,e.__scopeDialog);return h.jsx(An,{present:r||i.open,children:i.modal?h.jsx(So,{...o,ref:t}):h.jsx(Oo,{...o,ref:t})})},"DialogContent")),So=s.forwardRef(ao(function(e,t){const n=fo(Co,e.__scopeDialog),r=s.useRef(null),o=S(t,n.contentRef,r);return s.useEffect(()=>{const e=r.current;if(e)return oo(e)},[]),h.jsx(Po,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:y(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:y(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:y(e.onFocusOutside,e=>e.preventDefault())})},"DialogContentModal")),Oo=s.forwardRef(ao(function(e,t){const n=fo(Co,e.__scopeDialog),r=s.useRef(!1),o=s.useRef(!1);return h.jsx(Po,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const i=t.target,a=n.triggerRef.current?.contains(i);a&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})},"DialogContentNonModal")),Po=s.forwardRef(ao(function(e,t){const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,s=fo(Co,n);return pr(),h.jsx(h.Fragment,{children:h.jsx(Zn,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:h.jsx(te,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionPresent?s.descriptionId:void 0,"aria-labelledby":s.titlePresent?s.titleId:void 0,"data-state":Io(s.open),...a,ref:t,deferPointerDownOutside:!0,onDismiss:()=>s.onOpenChange(!1)})})})},"DialogContentImpl")),Do=s.forwardRef(ao(function(e,t){const{__scopeDialog:n,...r}=e,o=fo("DialogTitle",n),{setTitleCount:i}=o;return fe(()=>(i(e=>e+1),()=>i(e=>e-1)),[i]),h.jsx(G.h2,{id:o.titleId,...r,ref:t})},"DialogTitle")),Ao=s.forwardRef(ao(function(e,t){const{__scopeDialog:n,...r}=e,o=fo("DialogDescription",n),{setDescriptionCount:i}=o;return fe(()=>(i(e=>e+1),()=>i(e=>e-1)),[i]),h.jsx(G.p,{id:o.descriptionId,...r,ref:t})},"DialogDescription")),To=s.forwardRef(ao(function(e,t){const{__scopeDialog:n,...r}=e,o=fo("DialogClose",n);return h.jsx(G.button,{type:"button",...r,ref:t,onClick:y(e.onClick,()=>o.onOpenChange(!1))})},"DialogClose"));function Io(e){return e?"open":"closed"}ao(Io,"getState");var jo=Object.defineProperty,Mo=(e,t)=>jo(e,"name",{value:t,configurable:!0});function _o(e){const t=e+"CollectionProvider",[n,r]=D(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=Mo(e=>{const{scope:t,children:n}=e,r=s.useRef(null),i=s.useRef(new Map).current;return h.jsx(o,{scope:t,itemMap:i,collectionRef:r,children:n})},"CollectionProvider");a.displayName=t;const c=e+"CollectionSlot",u=j(c),l=s.forwardRef((e,t)=>
1{const{scope:n,children:r}=e,o=S(t,i(c,n).collectionRef);return h.jsx(u,{ref:o,children:r})});l.displayName=c;const f=e+"CollectionItemSlot",d="data-radix-collection-item",p=j(f),m=s.forwardRef((e,t)=>{const{scope:n,children:r,...o}=e,a=s.useRef(null),c=S(t,a),u=i(f,n);return s.useEffect(()=>(u.itemMap.set(a,{ref:a,...o}),()=>{u.itemMap.delete(a)})),h.jsx(p,{[d]:"",ref:c,children:r})});function v(t){const n=i(e+"CollectionConsumer",t);return s.useCallback(()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return m.displayName=f,Mo(v,"useCollection"),[{Provider:a,Slot:l,ItemSlot:m},v,r]}Mo(_o,"createCollection");var ko=new WeakMap,Lo=(t=class extends Map{constructor(t){var r,o;super(t),r=this,(o=e).has(r)?n("Cannot add the same private member more than once"):o instanceof WeakSet?o.add(r):o.set(r,void 0),i(this,e,[...super.keys()]),ko.set(this,!0)}set(t,n){return ko.get(this)&&(this.has(t)?o(this,e)[o(this,e).indexOf(t)]=t:o(this,e).push(t)),super.set(t,n),this}insert(t,n,r){const i=this.has(n),a=o(this,e).length,s=Wo(t);let c=s>=0?s:a+s;const u=c<0||c>=a?-1:c;if(u===this.size||i&&u===this.size-1||-1===u)return this.set(n,r),this;const l=this.size+(i?0:1);s<0&&c++;const f=[...o(this,e)];let d,p=!1;for(let e=c;e<l;e++)if(c===e){let t=f[e];f[e]===n&&(t=f[e+1]),i&&this.delete(n),d=this.get(t),this.set(n,r)}else{p||f[e-1]!==n||(p=!0);const t=f[p?e:e-1],r=d;d=this.get(t),this.delete(t),this.set(t,r)}return this}with(e,n,r){const o=new t(this);return o.insert(e,n,r),o}before(t){const n=o(this,e).indexOf(t)-1;if(!(n<0))return this.entryAt(n)}setBefore(t,n,r){const i=o(this,e).indexOf(t);return-1===i?this:this.insert(i,n,r)}after(t){let n=o(this,e).indexOf(t);if(n=-1===n||n===this.size-1?-1:n+1,-1!==n)return this.entryAt(n)}setAfter(t,n,r){const i=o(this,e).indexOf(t);return-1===i?this:this.insert(i+1,n,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return i(this,e,[]),super.clear()}delete(t){const n=super.delete(t);return n&&o(this,e).splice(o(this,e).indexOf(t),1),n}deleteAt(e){const t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(t){const n=Fo(o(this,e),t);if(void 0!==n)return this.get(n)}entryAt(t){const n=Fo(o(this,e),t);if(void 0!==n)return[n,this.get(n)]}indexOf(t){return o(this,e).indexOf(t)}keyAt(t){return Fo(o(this,e),t)}from(e,t){const n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){const n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(const r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(const r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return-1}filter(e,n){const r=[];let o=0;for(const t of this)Reflect.apply(e,n,[t,o,this])&&r.push(t),o++;return new t(r)}map(e,n){const r=[];let o=0;for(const t of this)r.push([t[0],Reflect.apply(e,n,[t,o,this])]),o++;return new t(r)}reduce(...e){const[t,n]=e;let r=0,o=n??this.at(0);for(const i of this)o=0===r&&1===e.length?i:Reflect.apply(t,this,[o,i,r,this]),r++;return o}reduceRight(...e){const[t,n]=e;let r=n??this.at(-1);for(let o=this.size-1;o>=0;o--){const n=this.at(o);r=o===this.size-1&&1===e.length?n:Reflect.apply(t,this,[r,n,o,this])}return r}toSorted(e){const n=[...this.entries()].sort(e);return new t(n)}toReversed(){const e=new t;for(let t=this.size-1;t>=0;t--){const n=this.keyAt(t),r=this.get(n);e.set(n,r)}return e}toSpliced(...e){const n=[...this.entries()];return n.splice(...e),new t(n)}slice(e,n){const r=new t;let o=this.size-1;if(void 0===e)return r;e<0&&(e+=this.size),void 0!==n&&n>0&&(o=n-1);for(let t=e;t<=o;t++){const e=this.keyAt(t),n=this.get(e);r.set(e,n)}return r}every(e,t){let n=0;for(const r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(const r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}},e=new WeakMap,Mo(t,"OrderedDict"),t);function Fo(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);const n=No(e,t);return-1===n?void 0:e[n]}function No(e,t){const n=e.length,r=Wo(t),o=r>=0?r:n+r;return o<0||o>=n?-1:o}function Wo(e){return e!=e||0===e?0:Math.trunc(e)}function Bo(e,t){if(e===t)return!0;
1if("object"!=typeof e||"object"!=typeof t)return!1;if(null==e||null==t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n){if(!Object.prototype.hasOwnProperty.call(t,o))return!1;if(e[o]!==t[o])return!1}return!0}function $o(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function zo(e,t){return e[1].element&&t[1].element?$o(e[1].element,t[1].element)?-1:1:0}function Ho(e){return new MutationObserver(t=>{for(const n of t)if("childList"===n.type)return void e()})}Mo(Fo,"at"),Mo(No,"toSafeIndex"),Mo(Wo,"toSafeInteger"),Mo(function(e){const t=e+"CollectionProvider",[n,r]=D(t),[o,i]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new Lo,setItemMap:Mo(()=>{},"setItemMap")}),a=Mo(({state:e,...t})=>e?h.jsx(u,{...t,state:e}):h.jsx(c,{...t}),"CollectionProvider");a.displayName=t;const c=Mo(e=>{const t=y();return h.jsx(u,{...e,state:t})},"CollectionInit");c.displayName=t+"Init";const u=Mo(e=>{const{scope:t,children:n,state:r}=e,i=s.useRef(null),[a,c]=s.useState(null),u=S(i,c),[l,f]=r;return s.useEffect(()=>{if(!a)return;const e=Ho(()=>{});return e.observe(a,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[a]),h.jsx(o,{scope:t,itemMap:l,setItemMap:f,collectionRef:u,collectionRefObject:i,collectionElement:a,children:n})},"CollectionProviderImpl");u.displayName=t+"Impl";const l=e+"CollectionSlot",f=j(l),d=s.forwardRef((e,t)=>{const{scope:n,children:r}=e,o=S(t,i(l,n).collectionRef);return h.jsx(f,{ref:o,children:r})});d.displayName=l;const p=e+"CollectionItemSlot",m="data-radix-collection-item",v=j(p),g=s.forwardRef((e,t)=>{const{scope:n,children:r,...o}=e,a=s.useRef(null),[c,u]=s.useState(null),l=S(t,a,u),f=i(p,n),{setItemMap:d}=f,g=s.useRef(o);Bo(g.current,o)||(g.current=o);const y=g.current;return s.useEffect(()=>{const e=y;return d(t=>c?t.has(c)?t.set(c,{...e,element:c}).toSorted(zo):(t.set(c,{...e,element:c}),t.toSorted(zo)):t),()=>{d(e=>c&&e.has(c)?(e.delete(c),new Lo(e)):e)}},[c,y,d]),h.jsx(v,{[m]:"",ref:l,children:r})});function y(){return s.useState(new Lo)}function b(t){const{itemMap:n}=i(e+"CollectionConsumer",t);return n}return g.displayName=p,Mo(y,"useInitCollection"),Mo(b,"useCollection"),[{Provider:a,Slot:d,ItemSlot:g},{createCollectionScope:r,useCollection:b,useInitCollection:y}]},"createCollection"),Mo(Bo,"shallowEqual"),Mo($o,"isElementPreceding"),Mo(zo,"sortByDocumentPosition"),Mo(Ho,"getChildListObserver");var Vo=Object.defineProperty,Uo=s.createContext(void 0);function Ko(e){const t=s.useContext(Uo);return e||t||"ltr"}Vo(Ko,"name",{value:"useDirection",configurable:!0});var Go=Object.defineProperty,Yo=(e,t)=>Go(e,"name",{value:t,configurable:!0}),Xo=!1;function qo(){const[e,t]=s.useState(Xo);return s.useEffect(()=>{Xo||(Xo=!0,t(!0))},[]),e}Yo(qo,"useIsHydrated");var Zo=c[" useSyncExternalStore ".trim().toString()];function Jo(){return()=>{}}function Qo(){return Zo(Jo,()=>!0,()=>!1)}Yo(Jo,"subscribe"),Yo(Qo,"useIsHydratedModern");var ei="function"==typeof Zo?Qo:qo,ti=Object.defineProperty,ni=(e,t)=>ti(e,"name",{value:t,configurable:!0}),ri="rovingFocusGroup.onEntryFocus",oi={bubbles:!1,cancelable:!0},ii="RovingFocusGroup",[ai,si,ci]=_o(ii),[ui,li]=D(ii,[ci]),[fi,di]=ui(ii),pi=s.forwardRef(ni(function(e,t){return h.jsx(ai.Provider,{scope:e.__scopeRovingFocusGroup,children:h.jsx(ai.Slot,{scope:e.__scopeRovingFocusGroup,children:h.jsx(hi,{...e,ref:t})})})},"RovingFocusGroup")),hi=s.forwardRef(ni(function(e,t){const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:u,onEntryFocus:l,preventScrollOnEntryFocus:f=!1,...d}=e,p=s.useRef(null),m=S(t,p),v=Ko(i),[g,b]=zn({prop:a,defaultProp:c??null,onChange:u,caller:ii}),[w,x]=s.useState(!1),E=X(l),C=si(n),R=s.useRef(!1),[O,P]=s.useState(0);return s.useEffect(()=>{const e=p.current;if(e)return e.addEventListener(ri,E),()=>e.removeEventListener(ri,E)},[E]),h.jsx(fi,{scope:n,orientation:r,dir:v,loop:o,currentTabStopId:g,onItemFocus:s.useCallback(e=>b(e),[b]),onItemShiftTab:s.useCallback(()=>x(!0),[]),onFocusableItemAdd:s.useCallback(()=>P(e=>e+1),[]),onFocusableItemRemove:s.useCallback(()=>P(e=>e-1),[]),children:h.jsx(G.div,{tabIndex:w||0===O?-1:0,"data-orientation":r,...d,ref:m,style:{outline:"none",...e.style},onMouseDown:y(e.onMouseDown,()=>{R.current=!0}),onFocus:y(e.onFocus,e=>{const t=!R.current;if(e.target===e.currentTarget&&t&&!w){const t=new CustomEvent(ri,oi);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=C().filter(e=>
1e.focusable);bi([e.find(e=>e.active),e.find(e=>e.id===g),...e].filter(Boolean).map(e=>e.ref.current),f)}}R.current=!1}),onBlur:y(e.onBlur,()=>x(!1))})})},"RovingFocusGroupImpl")),mi=s.forwardRef(ni(function(e,t){const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,children:a,...c}=e,u=me(),l=i||u,f=di("RovingFocusGroupItem",n),d=f.currentTabStopId===l,p=si(n),{onFocusableItemAdd:m,onFocusableItemRemove:v,currentTabStopId:g}=f,b=ei();return fe(()=>{if(b&&r)return m(),()=>v()},[b,r,m,v]),s.useEffect(()=>{if(!b&&r)return m(),()=>v()},[b,r,m,v]),h.jsx(ai.ItemSlot,{scope:n,id:l,focusable:r,active:o,children:h.jsx(G.span,{tabIndex:d?0:-1,"data-orientation":f.orientation,...c,ref:t,onMouseDown:y(e.onMouseDown,e=>{r?f.onItemFocus(l):e.preventDefault()}),onFocus:y(e.onFocus,()=>f.onItemFocus(l)),onKeyDown:y(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void f.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=yi(e,f.orientation,f.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=p().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();const r=n.indexOf(e.currentTarget);n=f.loop?wi(n,r+1):n.slice(r+1)}setTimeout(()=>bi(n))}}),children:"function"==typeof a?a({isCurrentTabStop:d,hasTabStop:null!=g}):a})})},"RovingFocusGroupItem")),vi={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function gi(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}function yi(e,t,n){const r=gi(e.key,n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)))return vi[r]}function bi(e,t=!1){const n=document.activeElement;for(const r of e){if(r===n)return;if(r.focus({preventScroll:t}),document.activeElement!==n)return}}function wi(e,t){return e.map((n,r)=>e[(t+r)%e.length])}ni(gi,"getDirectionAwareKey"),ni(yi,"getFocusIntent"),ni(bi,"focusFirst"),ni(wi,"wrapArray");var xi=pi,Ei=mi,Ci=Object.defineProperty,Ri=(e,t)=>Ci(e,"name",{value:t,configurable:!0}),Si="Tabs",[Oi,Pi]=D(Si,[li]),Di=li(),[Ai,Ti]=Oi(Si),Ii=s.forwardRef(Ri(function(e,t){const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:i,orientation:a="horizontal",dir:s,activationMode:c="automatic",...u}=e,l=Ko(s),[f,d]=zn({prop:r,onChange:o,defaultProp:i??"",caller:Si});return h.jsx(Ai,{scope:n,baseId:me(),value:f,onValueChange:d,orientation:a,dir:l,activationMode:c,children:h.jsx(G.div,{dir:l,"data-orientation":a,...u,ref:t})})},"Tabs")),ji=s.forwardRef(Ri(function(e,t){const{__scopeTabs:n,loop:r=!0,...o}=e,i=Ti("TabsList",n),a=Di(n);return h.jsx(xi,{asChild:!0,...a,orientation:i.orientation,dir:i.dir,loop:r,children:h.jsx(G.div,{role:"tablist","aria-orientation":i.orientation,...o,ref:t})})},"TabsList")),Mi=s.forwardRef(Ri(function(e,t){const{__scopeTabs:n,value:r,disabled:o=!1,...i}=e,a=Ti("TabsTrigger",n),s=Di(n),c=ki(a.baseId,r),u=Li(a.baseId,r),l=r===a.value;return h.jsx(Ei,{asChild:!0,...s,focusable:!o,active:l,children:h.jsx(G.button,{type:"button",role:"tab","aria-selected":l,"aria-controls":u,"data-state":l?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:c,...i,ref:t,onMouseDown:y(e.onMouseDown,e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():a.onValueChange(r)}),onKeyDown:y(e.onKeyDown,e=>{o||e.target!==e.currentTarget||[" ","Enter"].includes(e.key)&&a.onValueChange(r)}),onFocus:y(e.onFocus,()=>{const e="manual"!==a.activationMode;l||o||!e||a.onValueChange(r)})})})},"TabsTrigger")),_i=s.forwardRef(Ri(function(e,t){const{__scopeTabs:n,value:r,forceMount:o,children:i,...a}=e,c=Ti("TabsContent",n),u=ki(c.baseId,r),l=Li(c.baseId,r),f=r===c.value,d=s.useRef(f);return s.useEffect(()=>{const e=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(e)},[]),h.jsx(An,{present:o||f,children:({present:n})=>h.jsx(G.div,{"data-state":f?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":u,hidden:!n,id:l,tabIndex:0,...a,ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0},children:n&&i})})},"TabsContent"));function ki(e,t){return`${e}-trigger-${t}`}function Li(e,t){return`${e}-content-${t}`}Ri(ki,"makeTriggerId"),Ri(Li,"makeContentId");var Fi=Ii,Ni=ji,Wi=Mi,Bi=_i,$i=Object.defineProperty,zi=(e,t)=>$i(e,"name",{value:t,configurable:!0}
1),Hi="Collapsible",[Vi,Ui]=D(Hi),[Ki,Gi]=Vi(Hi),Yi=s.forwardRef(zi(function(e,t){const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:i,onOpenChange:a,...c}=e,[u,l]=zn({prop:r,defaultProp:o??!1,onChange:a,caller:Hi});return h.jsx(Ki,{scope:n,disabled:i,contentId:me(),open:u,onOpenToggle:s.useCallback(()=>l(e=>!e),[l]),children:h.jsx(G.div,{"data-state":Qi(u),"data-disabled":i?"":void 0,...c,ref:t})})},"Collapsible")),Xi=s.forwardRef(zi(function(e,t){const{__scopeCollapsible:n,...r}=e,o=Gi("CollapsibleTrigger",n);return h.jsx(G.button,{type:"button","aria-controls":o.open?o.contentId:void 0,"aria-expanded":o.open||!1,"data-state":Qi(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:y(e.onClick,o.onOpenToggle)})},"CollapsibleTrigger")),qi="CollapsibleContent",Zi=s.forwardRef(zi(function(e,t){const{forceMount:n,...r}=e,o=Gi(qi,e.__scopeCollapsible);return h.jsx(An,{present:n||o.open,children:({present:e})=>h.jsx(Ji,{...r,ref:t,present:e})})},"CollapsibleContent")),Ji=s.forwardRef(zi(function(e,t){const{__scopeCollapsible:n,present:r,children:o,...i}=e,a=Gi(qi,n),[c,u]=s.useState(r),l=s.useRef(null),f=S(t,l),d=s.useRef(0),p=d.current,m=s.useRef(0),v=m.current,g=a.open||c,y=s.useRef(g),b=s.useRef(void 0);return s.useEffect(()=>{const e=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(e)},[]),fe(()=>{const e=l.current;if(e){b.current=b.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";const t=e.getBoundingClientRect();d.current=t.height,m.current=t.width,y.current||(e.style.transitionDuration=b.current.transitionDuration,e.style.animationName=b.current.animationName),u(r)}},[a.open,r]),h.jsx(G.div,{"data-state":Qi(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!g,...i,ref:f,style:{"--radix-collapsible-content-height":p?`${p}px`:void 0,"--radix-collapsible-content-width":v?`${v}px`:void 0,...e.style},children:g&&o})},"CollapsibleContentImpl"));function Qi(e){return e?"open":"closed"}zi(Qi,"getState");var ea=Yi;export{xn as A,le as B,En as C,te as D,Xi as E,Zi as F,oo as G,pr as H,Jr as I,Zn as J,j as K,Fi as L,Ni as M,Bi as N,G as P,wn as R,M as S,Wi as T,An as a,S as b,D as c,cn as d,k as e,me as f,zn as g,y as h,po as i,h as j,yo as k,Ro as l,To as m,Do as n,wo as o,Ao as p,ho as q,X as r,ue as s,_o as t,fe as u,Sn as v,Y as w,Ko as x,nn as y,ea as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.