PageSourceSearch

https://yieldstack.ai/assets/js/vendor-ui-Dm0WpAJv.js

js yieldstack.ai collected 2026-10-05 13:20:10 UTC 83,002 bytes, 41 lines download raw bytes

1import{a,R as Fe,b as Nt}from"./vendor-react-DtPELkcG.js";import{j as w}from"./vendor-data-eKzBdYhD.js";function sn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Eo(...e){return t=>{let n=!1;const r=e.map(o=>{const i=sn(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():sn(e[o],null)}}}}function $(...e){return a.useCallback(Eo(...e),e)}function Re(e){const t=a.forwardRef((n,r)=>{let{children:o,...i}=n,s=null,c=!1;const f=[];cn(o)&&typeof Ke=="function"&&(o=Ke(o._payload)),a.Children.forEach(o,m=>{if(Mo(m)){c=!0;const p=m;let v="child"in p.props?p.props.child:p.props.children;cn(v)&&typeof Ke=="function"&&(v=Ke(v._payload)),s=Co(p,v),f.push(s?.props?.children)}else f.push(m)}),s?s=a.cloneElement(s,void 0,f):!c&&a.Children.count(o)===1&&a.isValidElement(o)&&(s=o);const d=s?So(s):void 0,l=$(r,d);if(!s){if(o||o===0)throw new Error(c?Do(e):Oo(e));return o}const u=Ro(i,s.props??{});return s.type!==a.Fragment&&(u.ref=r?l:d),a.cloneElement(s,u)});return t.displayName=`${e}.Slot`,t}var Ba=Re("Slot"),Ln=Symbol.for("radix.slottable");function Wa(e){const t=n=>"child"in n?n.children(n.child):n.children;return t.displayName=`${e}.Slottable`,t.__radixId=Ln,t}var Co=(e,t)=>{if("child"in e.props){const n=e.props.child;return a.isValidElement(n)?a.cloneElement(n,void 0,e.props.children(n.props.children)):null}return a.isValidElement(t)?t:null};function Ro(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]=(...c)=>{const f=i(...c);return o(...c),f}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function So(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 Mo(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ln}var Po=Symbol.for("react.lazy");function cn(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Po&&"_payload"in e&&Ao(e._payload)}function Ao(e){return typeof e=="object"&&e!==null&&"then"in e}var Oo=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,Do=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,Ke=Fe[" use ".trim().toString()];function Pe(e,t=[]){let n=[];function r(i,s){const c=a.createContext(s);c.displayName=i+"Context";const f=n.length;n=[...n,s];const d=u=>{const{scope:m,children:p,...v}=u,h=m?.[e]?.[f]||c,g=a.useMemo(()=>v,Object.values(v));return w.jsx(h.Provider,{value:g,children:p})};d.displayName=i+"Provider";function l(u,m){const p=m?.[e]?.[f]||c,v=a.useContext(p);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${u}\` must be used within \`${i}\``)}return[d,l]}const o=()=>{const i=n.map(s=>a.createContext(s));return function(c){const f=c?.[e]||i;return a.useMemo(()=>({[`__scope${e}`]:{...c,[e]:f}}),[c,f])}};return o.scopeName=e,[r,_o(o,...t)]}function _o(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((c,{useScope:f,scopeName:d})=>{const u=f(i)[`__scope${d}`];return{...c,...u}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var Io=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],j=Io.reduce((e,t)=>{const n=Re(`Primitive.${t}`),r=a.forwardRef((o,i)=>{const{asChild:s,...c}=o,f=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(f,{...c,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Fn(e,t){e&&Nt.flushSync(()=>e.dispatchEvent(t))}function D(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}var J=globalThis?.document?a.useLayoutEffect:()=>{},To=Fe[" useId ".trim().toString()]||(()=>{}),No=0;function be(e){const[t,n]=a.useState(To());return J(()=>{n(r=>r??String(No++))},[e]),e||(t?`radix-${t}`:"")}var an=Fe[" useEffectEvent ".trim().toString()],un=Fe[" useInsertionEffect ".trim().toString()];function Lo(e){if(typeof an=="function")return an(e);const t=a.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof un=="function"?un(()=>{t.current=e}):J(()=>{t.current=e}),a.useMemo(()=>((...n)=>t.current?.(...n)),[])}var Fo=Fe[" useInsertionEffect ".trim().toString()]||J;function Lt({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=ko({defaultProp:t,onChange:n}),c=e!==void 0,f=c?e:o;{const l=a.useRef(e!==void 0);a.useEffect(()=>{const u=l.current;if(u!==c){const m=u?"controlled":"uncontrolled",p=c?"controlled":"uncontrolled"}l.current=c},[c,r])}const d=a.useCallback(l=>{if(c){const u=jo(l)?l(e):l;u!==e&&s.current?.(u)}else i(l)},[c,e,i,s]);return[f,d]}function ko({defaultProp:e,onChange:t}){const[n,r]=a.useState(e),o=a.useRef(n),i=a.useRef(t);return Fo(()=>{i.current=t},[t]),a.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}function jo(e){return typeof e=="function"}function ce(e){const t=a.useRef(e);return a.useEffect(()=>{t.current=e}),a.useMemo(()=>((...n)=>t.current?.(...n)),[])}var $o="DismissableLayer",Pt="dismissableLayer.update",Bo="dismissableLayer.pointerDownOutside",Wo="dism
1issableLayer.focusOutside",ln,Ft=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),ct=a.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:c,onDismiss:f,...d}=e,l=a.useContext(Ft),[u,m]=a.useState(null),p=u?.ownerDocument??globalThis?.document,[,v]=a.useState({}),h=$(t,m),g=Array.from(l.layers),[y]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),x=g.indexOf(y),b=u?g.indexOf(u):-1,E=l.layersWithOutsidePointerEventsDisabled.size>0,C=b>=x,S=a.useRef(!1),M=Go(P=>{const T=P.target;if(!(T instanceof Node))return;const F=[...l.branches].some(N=>N.contains(T));!C||F||(i?.(P),c?.(P),P.defaultPrevented||f?.())},{ownerDocument:p,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:S,dismissableSurfaces:l.dismissableSurfaces}),O=Ho(P=>{if(r&&S.current)return;const T=P.target;[...l.branches].some(N=>N.contains(T))||(s?.(P),c?.(P),P.defaultPrevented||f?.())},p),L=u?b===g.length-1:!1,_=Lo(P=>{P.key==="Escape"&&(o?.(P),!P.defaultPrevented&&f&&(P.preventDefault(),f()))});return a.useEffect(()=>{if(L)return p.addEventListener("keydown",_,{capture:!0}),()=>p.removeEventListener("keydown",_,{capture:!0})},[p,L]),a.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(ln=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),fn(),()=>{n&&(l.layersWithOutsidePointerEventsDisabled.delete(u),l.layersWithOutsidePointerEventsDisabled.size===0&&(p.body.style.pointerEvents=ln))}},[u,p,n,l]),a.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),fn())},[u,l]),a.useEffect(()=>{const P=()=>v({});return document.addEventListener(Pt,P),()=>document.removeEventListener(Pt,P)},[]),w.jsx(j.div,{...d,ref:h,style:{pointerEvents:E?C?"auto":"none":void 0,...e.style},onFocusCapture:D(e.onFocusCapture,O.onFocusCapture),onBlurCapture:D(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:D(e.onPointerDownCapture,M.onPointerDownCapture)})});ct.displayName=$o;var Uo="DismissableLayerBranch",kn=a.forwardRef((e,t)=>{const n=a.useContext(Ft),r=a.useRef(null),o=$(t,r);return a.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),w.jsx(j.div,{...e,ref:o})});kn.displayName=Uo;function Ko(){const e=a.useContext(Ft),[t,n]=a.useState(null);return a.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}function Go(e,t){const{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:i}=t,s=ce(e),c=a.useRef(!1),f=a.useRef(!1),d=a.useRef(new Map),l=a.useRef(()=>{});return a.useEffect(()=>{function u(){f.current=!1,o.current=!1,d.current.clear()}function m(){return Array.from(d.current.values()).some(Boolean)}function p(x){if(!f.current)return;const b=x.target;b instanceof Node&&[...i].some(C=>C.contains(b))||d.current.set(x.type,!0),x.type==="click"&&window.setTimeout(()=>{f.current&&l.current()},0)}function v(x){f.current&&d.current.set(x.type,!1)}const h=x=>{if(x.target&&!c.current){let b=function(){n.removeEventListener("click",l.current);const C=m();u(),C||jn(Bo,s,E,{discrete:!0})};const E={originalEvent:x};f.current=!0,o.current=r&&x.button===0,d.current.clear(),!r||x.button!==0?b():(n.removeEventListener("click",l.current),l.current=b,n.addEventListener("click",l.current,{once:!0}))}else n.removeEventListener("click",l.current),u();c.current=!1},g=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const x of g)n.addEventListener(x,p,!0),n.addEventListener(x,v);const y=window.setTimeout(()=>{n.addEventListener("pointerdown",h)},0);return()=>{window.clearTimeout(y),n.removeEventListener("pointerdown",h),n.removeEventListener("click",l.current);for(const x of g)n.removeEventListener(x,p,!0),n.removeEventListener(x,v)}},[n,s,r,o,i]),{onPointerDownCapture:()=>c.current=!0}}function Ho(e,t=globalThis?.document){const n=ce(e),r=a.useRef(!1);return a.useEffect(()=>{const o=i=>{i.target&&!r.current&&jn(Wo,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function fn(){const e=new CustomEvent(Pt);document.dispatchEvent(e)}function jn(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?Fn(o,i):o.dispatchEvent(i)}var Ua=ct,Ka=kn,gt="focusScope.autoFocusOnMount",wt="focusScope.autoFocusOnUnmount",dn={bubbles:!1,cancelable:!0},Vo="FocusScope",kt=a.forwardRef((e,t)=>
vendor: 4,960 bytes, line 1
1{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[c,f]=a.useState(null),d=ce(o),l=ce(i),u=a.useRef(null),m=$(t,f),p=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect(()=>{if(r){let h=function(b){if(p.paused||!c)return;const E=b.target;c.contains(E)?u.current=E:se(u.current,{select:!0})},g=function(b){if(p.paused||!c)return;const E=b.relatedTarget;E!==null&&(c.contains(E)||se(u.current,{select:!0}))},y=function(b){if(document.activeElement===document.body)for(const C of b)C.removedNodes.length>0&&se(c)};document.addEventListener("focusin",h),document.addEventListener("focusout",g);const x=new MutationObserver(y);return c&&x.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",g),x.disconnect()}}},[r,c,p.paused]),a.useEffect(()=>{if(c){mn.add(p);const h=document.activeElement;if(!c.contains(h)){const y=new CustomEvent(gt,dn);c.addEventListener(gt,d),c.dispatchEvent(y),y.defaultPrevented||(zo(Qo($n(c)),{select:!0}),document.activeElement===h&&se(c))}return()=>{c.removeEventListener(gt,d),setTimeout(()=>{const y=new CustomEvent(wt,dn);c.addEventListener(wt,l),c.dispatchEvent(y),y.defaultPrevented||se(h??document.body,{select:!0}),c.removeEventListener(wt,l),mn.remove(p)},0)}}},[c,d,l,p]);const v=a.useCallback(h=>{if(!n&&!r||p.paused)return;const g=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,y=document.activeElement;if(g&&y){const x=h.currentTarget,[b,E]=Yo(x);b&&E?!h.shiftKey&&y===E?(h.preventDefault(),n&&se(b,{select:!0})):h.shiftKey&&y===b&&(h.preventDefault(),n&&se(E,{select:!0})):y===x&&h.preventDefault()}},[n,r,p.paused]);return w.jsx(j.div,{tabIndex:-1,...s,ref:m,onKeyDown:v})});kt.displayName=Vo;function zo(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(se(r,{select:t}),document.activeElement!==n)return}function Yo(e){const t=$n(e),n=pn(t,e),r=pn(t.reverse(),e);return[n,r]}function $n(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function pn(e,t){for(const n of e)if(!Xo(n,{upTo:t}))return n}function Xo(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Zo(e){return e instanceof HTMLInputElement&&"select"in e}function se(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Zo(e)&&t&&e.select()}}var mn=qo();function qo(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=hn(e,t),e.unshift(t)},remove(t){e=hn(e,t),e[0]?.resume()}}}function hn(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Qo(e){return e.filter(t=>t.tagName!=="A")}var Jo="Portal",jt=a.forwardRef((e,t)=>{const{container:n,...r}=e,[o,i]=a.useState(!1);J(()=>i(!0),[]);const s=n||o&&globalThis?.document?.body;return s?Nt.createPortal(w.jsx(j.div,{...r,ref:t}),s):null});jt.displayName=Jo;function ei(e,t){return a.useReducer((n,r)=>t[n][r]??n,e)}var le=e=>{const{present:t,children:n}=e,r=ti(t),o=typeof n=="function"?n({present:r.isPresent}):a.Children.only(n),i=ni(r.ref,ri(o));return typeof n=="function"||r.isPresent?a.cloneElement(o,{ref:i}):null};le.displayName="Presence";function ti(e){const[t,n]=a.useState(),r=a.useRef(null),o=a.useRef(e),i=a.useRef("none"),s=e?"mounted":"unmounted",[c,f]=ei(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect(()=>{const d=Ge(r.current);i.current=c==="mounted"?d:"none"},[c]),J(()=>{const d=r.current,l=o.current;if(l!==e){const m=i.current,p=Ge(d);e?f("MOUNT"):p==="none"||d?.display==="none"?f("UNMOUNT"):f(l&&m!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,f]),J(()=>{if(t){let d;const l=t.ownerDocument.defaultView??window,u=p=>{const h=Ge(r.current).includes(CSS.escape(p.animationName));if(p.target===t&&h&&(f("ANIMATION_END"),!o.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",d=l.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},m=p=>{p.target===t&&(i.current=Ge(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{l.clearTimeout(d),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:a.useCallback(d=>{r.current=d?getComputedStyle(d):null,n(d)},[])}}function vn(e,t){if(typeof e=="function")return e(t);
vendor: 30,112 bytes, lines 1-41
1e!=null&&(e.current=t)}function ni(...e){const t=a.useRef(e);return t.current=e,a.useCallback(n=>{const r=t.current;let o=!1;const i=r.map(s=>{const c=vn(s,n);return!o&&typeof c=="function"&&(o=!0),c});if(o)return()=>{for(let s=0;s<i.length;s++){const c=i[s];typeof c=="function"?c():vn(r[s],null)}}},[])}function Ge(e){return e?.animationName||"none"}function ri(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)}var He=0,ge=null;function Bn(){a.useEffect(()=>{ge||(ge={start:gn(),end:gn()});const{start:e,end:t}=ge;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),He++,()=>{He===1&&(ge?.start.remove(),ge?.end.remove(),ge=null),He=Math.max(0,He-1)}},[])}function gn(){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 q=function(){return q=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},q.apply(this,arguments)};function Wn(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,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 Ga(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function c(l){try{d(r.next(l))}catch(u){s(u)}}function f(l){try{d(r.throw(l))}catch(u){s(u)}}function d(l){l.done?i(l.value):o(l.value).then(c,f)}d((r=r.apply(e,t||[])).next())})}function oi(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var qe="right-scroll-bar-position",Qe="width-before-scroll-bar",ii="with-scroll-bars-hidden",si="--removed-body-scroll-bar-size";function yt(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function ci(e,t){var n=a.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var ai=typeof window<"u"?a.useLayoutEffect:a.useEffect,wn=new WeakMap;function ui(e,t){var n=ci(null,function(r){return e.forEach(function(o){return yt(o,r)})});return ai(function(){var r=wn.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(c){i.has(c)||yt(c,null)}),i.forEach(function(c){o.has(c)||yt(c,s)})}wn.set(n,e)},[e]),n}function li(e){return e}function fi(e,t){t===void 0&&(t=li);var n=[],r=!1,o={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(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(c){return c!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(c){return i(c)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var c=n;n=[],c.forEach(i),s=n}var f=function(){var l=s;s=[],l.forEach(i)},d=function(){return Promise.resolve().then(f)};d(),n={push:function(l){s.push(l),d()},filter:function(l){return s=s.filter(l),n}}}};return o}function di(e){e===void 0&&(e={});var t=fi(null);return t.options=q({async:!0,ssr:!1},e),t}var Un=function(e){var t=e.sideCar,n=Wn(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 a.createElement(r,q({},n))};Un.isSideCarExport=!0;function pi(e,t){return e.useMedium(t),Un}var Kn=di(),xt=function(){},at=a.forwardRef(function(e,t){var n=a.useRef(null),r=a.useState({onScrollCapture:xt,onWheelCapture:xt,onTouchMoveCapture:xt}),o=r[0],i=r[1],s=e.forwardProps,c=e.children,f=e.className,d=e.removeScrollBar,l=e.enabled,u=e.shards,m=e.sideCar,p=e.noRelative,v=e.noIsolation,h=e.inert,g=e.allowPinchZoom,y=e.as,x=y===void 0?"div":y,b=e.gapMode,E=Wn(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=m,S=ui([n,t]),M=q(q({},E),o);return a.createElement(a.Fragment,null,l&&a.createElement(C,{sideCar:Kn,removeScrollBar:d,shards:u,noRelative:p,noIsolation:v,inert:h,setCallbacks:i,allowPinchZoom:!!g,lockRef:n,gapMode:b}),s?a.cloneElement(a.Children.only(c),q(q({},M),{ref:S})):a.createElement(x,q({},M,{className:f,ref:S}),c))});at.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};at.classNames={fullWidth:Qe,zeroRight:qe};var mi=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function hi(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=mi();return t&&e.setAttribute("nonce",t),e}function vi(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function gi(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var wi=function(){var e=0,t=null;return{add:function(n){e==0&&(t=hi())&&(vi(t,n),gi(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},yi=function(){var e=wi();return function(t,n){a.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Gn=function(){var e=yi(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},xi={left:0,top:0,right:0,gap:0},bt=function(e){return parseInt(e||"",10)||0},bi=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[bt(n),bt(r),bt(o)]},Ei=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return xi;var t=bi(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])}},Ci=Gn(),Ee="data-scroll-locked",Ri=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,c=e.gap;return n===void 0&&(n="margin"),`
2  .`.concat(ii,` {
3   overflow: hidden `).concat(r,`;
4   padding-right: `).concat(c,"px ").concat(r,`;
5  }
6  body[`).concat(Ee,`] {
7    overflow: hidden `).concat(r,`;
8    overscroll-behavior: contain;
9    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
10    padding-left: `.concat(o,`px;
11    padding-top: `).concat(i,`px;
12    padding-right: `).concat(s,`px;
13    margin-left:0;
14    margin-top:0;
15    margin-right: `).concat(c,"px ").concat(r,`;
16    `),n==="padding"&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),`
17  }
18  
19  .`).concat(qe,` {
20    right: `).concat(c,"px ").concat(r,`;
21  }
22  
23  .`).concat(Qe,` {
24    margin-right: `).concat(c,"px ").concat(r,`;
25  }
26  
27  .`).concat(qe," .").concat(qe,` {
28    right: 0 `).concat(r,`;
29  }
30  
31  .`).concat(Qe," .").concat(Qe,` {
32    margin-right: 0 `).concat(r,`;
33  }
34  
35  body[`).concat(Ee,`] {
36    `).concat(si,": ").concat(c,`px;
37  }
38`)},yn=function(){var e=parseInt(document.body.getAttribute(Ee)||"0",10);return isFinite(e)?e:0},Si=function(){a.useEffect(function(){return document.body.setAttribute(Ee,(yn()+1).toString()),function(){var e=yn()-1;e<=0?document.body.removeAttribute(Ee):document.body.setAttribute(Ee,e.toString())}},[])},Mi=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Si();var i=a.useMemo(function(){return Ei(o)},[o]);return a.createElement(Ci,{styles:Ri(i,!t,o,n?"":"!important")})},At=!1;if(typeof window<"u")try{var Ve=Object.defineProperty({},"passive",{get:function(){return At=!0,!0}});window.addEventListener("test",Ve,Ve),window.removeEventListener("test",Ve,Ve)}catch{At=!1}var we=At?{passive:!1}:!1,Pi=function(e){return e.tagName==="TEXTAREA"},Hn=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Pi(e)&&n[t]==="visible")},Ai=function(e){return Hn(e,"overflowY")},Oi=function(e){return Hn(e,"overflowX")},xn=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Vn(e,r);if(o){var i=zn(e,r),s=i[1],c=i[2];if(s>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Di=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},_i=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Vn=function(e,t){return e==="v"?Ai(t):Oi(t)},zn=function(e,t){return e==="v"?Di(t):_i(t)},Ii=function(e,t){return e==="h"&&t==="rtl"?-1:1},Ti=function(e,t,n,r,o){var i=Ii(e,window.getComputedStyle(t).direction),s=i*r,c=n.target,f=t.contains(c),d=!1,l=s>0,u=0,m=0;do{if(!c)break;var p=zn(e,c),v=p[0],h=p[1],g=p[2],y=h-g-i*v;(v||y)&&Vn(e,c)&&(u+=y,m+=v);var x=c.parentNode;c=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!f&&c!==document.body||f&&(t.contains(c)||t===c));return(l&&Math.abs(u)<1||!l&&Math.abs(m)<1)&&(d=!0),d},ze=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},bn=function(e){return[e.deltaX,e.deltaY]},En=function(e){return e&&"current"in e?e.current:e},Ni=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Li=function(e){return`
39  .block-interactivity-`.concat(e,` {pointer-events: none;}
40  .allow-interactivity-`).concat(e,` {pointer-events: all;}
41`)},Fi=0,ye=[];function ki(e){var t=a.useRef([]),n=a.useRef([0,0]),r=a.useRef(),o=a.useState(Fi++)[0],i=a.useState(Gn)[0],s=a.useRef(e);a.useEffect(function(){s.current=e},[e]),a.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=oi([e.lockRef.current],(e.shards||[]).map(En),!0).filter(Boolean);return h.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=a.useCallback(function(h,g){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!s.current.allowPinchZoom;var y=ze(h),x=n.current,b="deltaX"in h?h.deltaX:x[0]-y[0],E="deltaY"in h?h.deltaY:x[1]-y[1],C,S=h.target,M=Math.abs(b)>Math.abs(E)?"h":"v";if("touches"in h&&M==="h"&&S.type==="range")return!1;var O=window.getSelection(),L=O&&O.anchorNode,_=L?L===S||L.contains(S):!1;if(_)return!1;var P=xn(M,S);if(!P)return!0;if(P?C=M:(C=M==="v"?"h":"v",P=xn(M,S)),!P)return!1;if(!r.current&&"changedTouches"in h&&(b||E)&&(r.current=C),!C)return!0;var T=r.current||C;return Ti(T,g,h,T==="h"?b:E)},[]),f=a.useCallback(function(h){var g=h;if(!(!ye.length||ye[ye.length-1]!==i)){var y="deltaY"in g?bn(g):ze(g),x=t.current.filter(function(C){return C.name===g.type&&(C.target===g.target||g.target===C.shadowParent)&&Ni(C.delta,y)})[0];if(x&&x.should){g.cancelable&&g.preventDefault();return}if(!x){var b=(s.current.shards||[]).map(En).filter(Boolean).filter(function(C){return C.contains(g.target)}),E=b.length>0?c(g,b[0]):!s.current.noIsolation;E&&g.cancelable&&g.preventDefault()}}},[]),d=a.useCallback(function(h,g,y,x){var b={name:h,delta:g,target:y,should:x,shadowParent:ji(y)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(E){return E!==b})},1)},[]),l=a.useCallback(function(h){n.current=ze(h),r.current=void 0},[]),u=a.useCallback(function(h){d(h.type,bn(h),h.target,c(h,e.lockRef.current))},[]),m=a.useCallback(function(h){d(h.type,ze(h),h.target,c(h,e.lockRef.current))},[]);a.useEffect(function(){return ye.push(i),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:m}),document.addEventListener("wheel",f,we),document.addEventListener("touchmove",f,we),document.addEventListener("touchstart",l,we),function(){ye=ye.filter(function(h){return h!==i}),document.removeEventListener("wheel",f,we),document.removeEventListener("touchmove",f,we),document.removeEventListener("touchstart",l,we)}},[]);var p=e.removeScrollBar,v=e.inert;return a.createElement(a.Fragment,null,v?a.createElement(i,{styles:Li(o)}):null,p?a.createElement(Mi,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ji(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const $i=pi(Kn,ki);var $t=a.forwardRef(function(e,t){return a.createElement(at,q({},e,{ref:t,sideCar:$i}))});$t.classNames=at.classNames;var Bi=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},xe=new WeakMap,Ye=new WeakMap,Xe={},Et=0,Yn=function(e){return e&&(e.host||Yn(e.parentNode))},Wi=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Yn(n);return r&&e.contains(r)?r:null}).filter(function(n){return!!n})},Ui=function(e,t,n,r){var o=Wi(t,Array.isArray(e)?e:[e]);Xe[n]||(Xe[n]=new WeakMap);var i=Xe[n],s=[],c=new Set,f=new Set(o),d=function(u){!u||c.has(u)||(c.add(u),d(u.parentNode))};o.forEach(d);var l=function(u){!u||f.has(u)||Array.prototype.forEach.call(u.children,function(m){if(c.has(m))l(m);else try{var p=m.getAttribute(r),v=p!==null&&p!=="false",h=(xe.get(m)||0)+1,g=(i.get(m)||0)+1;xe.set(m,h),i.set(m,g),s.push(m),h===1&&v&&Ye.set(m,!0),g===1&&m.setAttribute(n,"true"),v||m.setAttribute(r,"true")}catch{}})};return l(t),c.clear(),Et++,function(){s.forEach(function(u){var m=xe.get(u)-1,p=i.get(u)-1;xe.set(u,m),i.set(u,p),m||(Ye.has(u)||u.removeAttribute(r),Ye.delete(u)),p||u.removeAttribute(n)}),Et--,Et||(xe=new WeakMap,xe=new WeakMap,Ye=new WeakMap,Xe={})}},Xn=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Bi(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Ui(r,o,n,"aria-hidden")):function(){return null}},ut="Dialog",[Zn,Ha]=Pe(ut),[Ki,X]=Zn(ut),Gi=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,c=a.useRef(null),f=a.useRef(null),[d,l]=Lt({prop:r,defaultProp:o??!1,onChange:i,caller:ut});return w.jsx(Ki,{scope:t,triggerRef:c,contentRef:f,contentId:be(),titleId:be(),descriptionId:be(),open:d,onOpenChange:l,onOpenToggle:a.useCallback(()=>l(u=>!u),[l]),modal:s,children:n})};Gi.displayName=ut;var qn="DialogTrigger",Hi=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=X(qn,n),i=$(t,o.triggerRef);return w.jsx(j.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":Wt(o.open),...r,ref:i,onClick:D(e.onClick,o.onOpenToggle)})});Hi.displayName=qn;var Bt="DialogPortal",[Vi,Qn]=Zn(Bt,{forceMount:void 0}),zi=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=X(Bt,t);return w.jsx(Vi,{scope:t,forceMount:n,children:a.Children.map(r,s=>w.jsx(le,{present:n||i.open,children:w.jsx(jt,{asChild:!0,container:o,children:s})}))})};zi.displayName=Bt;var et="DialogOverlay",Yi=a.forwardRef((e,t)=>{const n=Qn(et,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=X(et,e.__scopeDialog);return i.modal?w.jsx(le,{present:r||i.open,children:w.jsx(Zi,{...o,ref:t})}):null});Yi.displayName=et;var Xi=Re("DialogOverlay.RemoveScroll"),Zi=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=X(et,n),i=Ko(),s=$(t,i);return w.jsx($t,{as:Xi,allowPinchZoom:!0,shards:[o.contentRef],children:w.jsx(j.div,{"data-state":Wt(o.open),...r,ref:s,style:{pointerEvents:"auto",...r.style}})})}),Se="DialogContent",qi=a.forwardRef((e,t)=>{const n=Qn(Se,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=X(Se,e.__scopeDialog);return w.jsx(le,{present:r||i.open,children:i.modal?w.jsx(Qi,{...o,ref:t}):w.jsx(Ji,{...o,ref:t})})});qi.displayName=Se;var Qi=a.forwardRef((e,t)=>{const n=X(Se,e.__scopeDialog),r=a.useRef(null),o=$(t,n.contentRef,r);return a.useEffect(()=>{const i=r.current;if(i)return Xn(i)},[]),w.jsx(Jn,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:D(e.onCloseAutoFocus,i=>{i.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:D(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,c=s.button===0&&s.ctrlKey===!0;(s.button===2||c)&&i.preventDefault()}),onFocusOutside:D(e.onFocusOutside,i=>i.preventDefault())})}),Ji=a.forwardRef((e,t)=>{const n=X(Se,e.__scopeDialog),r=a.useRef(!1),o=a.useRef(!1);return w.jsx(Jn,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(r.current||n.triggerRef.current?.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;n.triggerRef.current?.contains(s)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),Jn=a.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=e,c=X(Se,n);return Bn(),w.jsx(w.Fragment,{children:w.jsx(kt,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:w.jsx(ct,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":Wt(c.open),...s,ref:t,deferPointerDownOutside:!0,onDismiss:()=>c.onOpenChange(!1)})})})}),er="DialogTitle",es=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=X(er,n);return w.jsx(j.h2,{id:o.titleId,...r,ref:t})});es.displayName=er;var tr="DialogDescription",ts=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=X(tr,n);return w.jsx(j.p,{id:o.descriptionId,...r,ref:t})});ts.displayName=tr;var nr="DialogClose",ns=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=X(nr,n);return w.jsx(j.button,{type:"button",...r,ref:t,onClick:D(e.onClick,()=>o.onOpenChange(!1))})});ns.displayName=nr;function Wt(e){return e?"open":"closed"}const rs=["top","right","bottom","left"],ae=Math.min,G=Math.max,tt=Math.round,Ze=Math.floor,ee=e=>({x:e,y:e}),os={left:"right",right:"left",bottom:"top",top:"bottom"};function Ot(e,t,n){return G(e,ae(t,n))}function ne(e,t){return typeof e=="function"?e(t):e}function re(e){return e.split("-")[0]}function Ae(e){return e.split("-")[1]}function Ut(e){return e==="x"?"y":"x"}function Kt(e){return e==="y"?"height":"width"}function Q(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Gt(e){return Ut(Q(e))}function is(e,t,n){n===void 0&&(n=!1);const r=Ae(e),o=Gt(e),i=Kt(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=nt(s)),[s,nt(s)]}function ss(e){const t=nt(e);return[Dt(e),t,Dt(t)]}function Dt(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Cn=["left","right"],Rn=["right","left"],cs=["top","bottom"],as=["bottom","top"];function us(e,t,n){switch(e){case"top":case"bottom":return n?t?Rn:Cn:t?Cn:Rn;case"left":case"right":return t?cs:as;default:return[]}}function ls(e,t,n,r){const o=Ae(e);let i=us(re(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Dt)))),i}function nt(e){const t=re(e);return os[t]+e.slice(t.length)}function fs(e){return{top:0,right:0,bottom:0,left:0,...e}}function rr(e){return typeof e!="number"?fs(e):{top:e,right:e,bottom:e,left:e}}function rt(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 Sn(e,t,n){let{reference:r,floating:o}=e;const i=Q(t),s=Gt(t),c=Kt(s),f=re(t),d=i==="y",l=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,m=r[c]/2-o[c]/2;let p;switch(f){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:u};break;case"left":p={x:r.x-o.width,y:u};break;default:p={x:r.x,y:r.y}}switch(Ae(t)){case"start":p[s]-=m*(n&&d?-1:1);break;case"end":p[s]+=m*(n&&d?-1:1);break}return p}async function ds(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:c,strategy:f}=e,{boundary:d="clippingAncestors",rootBoundary:l="viewport",elementContext:u="floating",altBoundary:m=!1,padding:p=0}=ne(t,e),v=rr(p),g=c[m?u==="floating"?"reference":"floating":u],y=rt(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(g)))==null||n?g:g.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:d,rootBoundary:l,strategy:f})),x=u==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),E=await(i.isElement==null?void 0:i.isElement(b))?await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1}:{x:1,y:1},C=rt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:x,offsetParent:b,strategy:f}):x);return{top:(y.top-C.top+v.top)/E.y,bottom:(C.bottom-y.bottom+v.bottom)/E.y,left:(y.left-C.left+v.left)/E.x,right:(C.right-y.right+v.right)/E.x}}const ps=50,ms=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,c=s.detectOverflow?s:{...s,detectOverflow:ds},f=await(s.isRTL==null?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:l,y:u}=Sn(d,r,f),m=r,p=0;const v={};for(let h=0;h<i.length;h++){const g=i[h];if(!g)continue;const{name:y,fn:x}=g,{x:b,y:E,data:C,reset:S}=await x({x:l,y:u,initialPlacement:r,placement:m,strategy:o,middlewareData:v,rects:d,platform:c,elements:{reference:e,floating:t}});l=b??l,u=E??u,v[y]={...v[y],...C},S&&p<ps&&(p++,typeof S=="object"&&(S.placement&&(m=S.placement),S.rects&&(d=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:l,y:u}=Sn(d,m,f)),h=-1)}return{x:l,y:u,placement:m,strategy:o,middlewareData:v}},hs=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:c,middlewareData:f}=t,{element:d,padding:l=0}=ne(e,t)||{};if(d==null)return{};const u=rr(l),m={x:n,y:r},p=Gt(o),v=Kt(p),h=await s.getDimensions(d),g=p==="y",y=g?"top":"left",x=g?"bottom":"right",b=g?"clientHeight":"clientWidth",E=i.reference[v]+i.reference[p]-m[p]-i.floating[v],C=m[p]-i.reference[p],S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let M=S?S[b]:0;(!M||!await(s.isElement==null?void 0:s.isElement(S)))&&(M=c.floating[b]||i.floating[v]);const O=E/2-C/2,L=M/2-h[v]/2-1,_=ae(u[y],L),P=ae(u[x],L),T=_,F=M-h[v]-P,N=M/2-h[v]/2+O,W=Ot(T,N,F),I=!f.arrow&&Ae(o)!=null&&N!==W&&i.reference[v]/2-(N<T?_:P)-h[v]/2<0,k=I?N<T?N-T:N-F:0;return{[p]:m[p]+k,data:{[p]:W,centerOffset:N-W-k,...I&&{alignmentOffset:k}},reset:I}}}),vs=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:c,platform:f,elements:d}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:m,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:h=!0,...g}=ne(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const y=re(o),x=Q(c),b=re(c)===c,E=await(f.isRTL==null?void 0:f.isRTL(d.floating)),C=m||(b||!h?[nt(c)]:ss(c)),S=v!=="none";!m&&S&&C.push(...ls(c,h,v,E));const M=[c,...C],O=await f.detectOverflow(t,g),L=[];let _=((r=i.flip)==null?void 0:r.overflows)||[];if(l&&L.push(O[y]),u){const N=is(o,s,E);L.push(O[N[0]],O[N[1]])}if(_=[..._,{placement:o,overflows:L}],!L.every(N=>N<=0)){var P,T;const N=(((P=i.flip)==null?void 0:P.index)||0)+1,W=M[N];if(W&&(!(u==="alignment"?x!==Q(W):!1)||_.every(A=>Q(A.placement)===x?A.overflows[0]>0:!0)))return{data:{index:N,overflows:_},reset:{placement:W}};let I=(T=_.filter(k=>k.overflows[0]<=0).sort((k,A)=>k.overflows[1]-A.overflows[1])[0])==null?void 0:T.placement;if(!I)switch(p){case"bestFit":{var F;const k=(F=_.filter(A=>{if(S){const R=Q(A.placement);return R===x||R==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(R=>R>0).reduce((R,B)=>R+B,0)]).sort((A,R)=>A[1]-R[1])[0])==null?void 0:F[0];k&&(I=k);break}case"initialPlacement":I=c;break}if(o!==I)return{reset:{placement:I}}}return{}}}};function Mn(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Pn(e){return rs.some(t=>e[t]>=0)}const gs=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...i}=ne(e,t);switch(o){case"referenceHidden":{const s=await r.detectOverflow(t,{...i,elementContext:"reference"}),c=Mn(s,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:Pn(c)}}}case"escaped":{const s=await r.detectOverflow(t,{...i,altBoundary:!0}),c=Mn(s,n.floating);return{data:{escapedOffsets:c,escaped:Pn(c)}}}default:return{}}}}},or=new Set(["left","top"]);async function ws(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=re(n),c=Ae(n),f=Q(n)==="y",d=or.has(s)?-1:1,l=i&&f?-1:1,u=ne(t,e);let{mainAxis:m,crossAxis:p,alignmentAxis:v}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return c&&typeof v=="number"&&(p=c==="end"?v*-1:v),f?{x:p*l,y:m*d}:{x:m*d,y:p*l}}const ys=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:c}=t,f=await ws(t,e);return s===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+f.x,y:i+f.y,data:{...f,placement:s}}}}},xs=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:i}=t,{mainAxis:s=!0,crossAxis:c=!1,limiter:f={fn:y=>{let{x,y:b}=y;return{x,y:b}}},...d}=ne(e,t),l={x:n,y:r},u=await i.detectOverflow(t,d),m=Q(re(o)),p=Ut(m);let v=l[p],h=l[m];if(s){const y=p==="y"?"top":"left",x=p==="y"?"bottom":"right",b=v+u[y],E=v-u[x];v=Ot(b,v,E)}if(c){const y=m==="y"?"top":"left",x=m==="y"?"bottom":"right",b=h+u[y],E=h-u[x];h=Ot(b,h,E)}const g=f.fn({...t,[p]:v,[m]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:s,[m]:c}}}}}},bs=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:c=0,mainAxis:f=!0,crossAxis:d=!0}=ne(e,t),l={x:n,y:r},u=Q(o),m=Ut(u);let p=l[m],v=l[u];const h=ne(c,t),g=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(f){const b=m==="y"?"height":"width",E=i.reference[m]-i.floating[b]+g.mainAxis,C=i.reference[m]+i.reference[b]-g.mainAxis;p<E?p=E:p>C&&(p=C)}if(d){var y,x;const b=m==="y"?"width":"height",E=or.has(re(o)),C=i.reference[u]-i.floating[b]+(E&&((y=s.offset)==null?void 0:y[u])||0)+(E?0:g.crossAxis),S=i.reference[u]+i.reference[b]+(E?0:((x=s.offset)==null?void 0:x[u])||0)-(E?g.crossAxis:0);v<C?v=C:v>S&&(v=S)}return{[m]:p,[u]:v}}}},Es=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:c}=t,{apply:f=()=>{},...d}=ne(e,t),l=await s.detectOverflow(t,d),u=re(o),m=Ae(o),p=Q(o)==="y",{width:v,height:h}=i.floating;let g,y;u==="top"||u==="bottom"?(g=u,y=m===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(y=u,g=m==="end"?"top":"bottom");const x=h-l.top-l.bottom,b=v-l.left-l.right,E=ae(h-l[g],x),C=ae(v-l[y],b),S=!t.middlewareData.shift;let M=E,O=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(O=b),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(M=x),S&&!m){const _=G(l.left,0),P=G(l.right,0),T=G(l.top,0),F=G(l.bottom,0);p?O=v-2*(_!==0||P!==0?_+P:G(l.left,l.right)):M=h-2*(T!==0||F!==0?T+F:G(l.top,l.bottom))}await f({...t,availableWidth:O,availableHeight:M});const L=await s.getDimensions(c.floating);return v!==L.width||h!==L.height?{reset:{rects:!0}}:{}}}};function lt(){return typeof window<"u"}function Oe(e){return ir(e)?(e.nodeName||"").toLowerCase():"#document"}function H(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function te(e){var t;return(t=(ir(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ir(e){return lt()?e instanceof Node||e instanceof H(e).Node:!1}function z(e){return lt()?e instanceof Element||e instanceof H(e).Element:!1}function oe(e){return lt()?e instanceof HTMLElement||e instanceof H(e).HTMLElement:!1}function An(e){return!lt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof H(e).ShadowRoot}function ke(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Y(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&o!=="inline"&&o!=="contents"}function Cs(e){return/^(table|td|th)$/.test(Oe(e))}function ft(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Rs=/transform|translate|scale|rotate|perspective|filter/,Ss=/paint|layout|strict|content/,de=e=>!!e&&e!=="none";let Ct;function Ht(e){const t=z(e)?Y(e):e;return de(t.transform)||de(t.translate)||de(t.scale)||de(t.rotate)||de(t.perspective)||!Vt()&&(de(t.backdropFilter)||de(t.filter))||Rs.test(t.willChange||"")||Ss.test(t.contain||"")}function Ms(e){let t=ue(e);for(;oe(t)&&!Me(t);){if(Ht(t))return t;if(ft(t))return null;t=ue(t)}return null}function Vt(){return Ct==null&&(Ct=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ct}function Me(e){return/^(html|body|#document)$/.test(Oe(e))}function Y(e){return H(e).getComputedStyle(e)}function dt(e){return z(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ue(e){if(Oe(e)==="html")return e;const t=e.assignedSlot||e.parentNode||An(e)&&e.host||te(e);return An(t)?t.host:t}function sr(e){const t=ue(e);return Me(t)?e.ownerDocument?e.ownerDocument.body:e.body:oe(t)&&ke(t)?t:sr(t)}function Te(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=sr(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=H(o);if(i){const c=_t(s);
vendor: 6,171 bytes, line 41
41return t.concat(s,s.visualViewport||[],ke(o)?o:[],c&&n?Te(c):[])}else return t.concat(o,Te(o,[],n))}function _t(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function cr(e){const t=Y(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=oe(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,c=tt(n)!==i||tt(r)!==s;return c&&(n=i,r=s),{width:n,height:r,$:c}}function zt(e){return z(e)?e:e.contextElement}function Ce(e){const t=zt(e);if(!oe(t))return ee(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=cr(t);let s=(i?tt(n.width):n.width)/r,c=(i?tt(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const Ps=ee(0);function ar(e){const t=H(e);return!Vt()||!t.visualViewport?Ps:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function As(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==H(e)?!1:t}function pe(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=zt(e);let s=ee(1);t&&(r?z(r)&&(s=Ce(r)):s=Ce(e));const c=As(i,n,r)?ar(i):ee(0);let f=(o.left+c.x)/s.x,d=(o.top+c.y)/s.y,l=o.width/s.x,u=o.height/s.y;if(i){const m=H(i),p=r&&z(r)?H(r):r;let v=m,h=_t(v);for(;h&&r&&p!==v;){const g=Ce(h),y=h.getBoundingClientRect(),x=Y(h),b=y.left+(h.clientLeft+parseFloat(x.paddingLeft))*g.x,E=y.top+(h.clientTop+parseFloat(x.paddingTop))*g.y;f*=g.x,d*=g.y,l*=g.x,u*=g.y,f+=b,d+=E,v=H(h),h=_t(v)}}return rt({width:l,height:u,x:f,y:d})}function pt(e,t){const n=dt(e).scrollLeft;return t?t.left+n:pe(te(e)).left+n}function ur(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-pt(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Os(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=te(r),c=t?ft(t.floating):!1;if(r===s||c&&i)return n;let f={scrollLeft:0,scrollTop:0},d=ee(1);const l=ee(0),u=oe(r);if((u||!u&&!i)&&((Oe(r)!=="body"||ke(s))&&(f=dt(r)),u)){const p=pe(r);d=Ce(r),l.x=p.x+r.clientLeft,l.y=p.y+r.clientTop}const m=s&&!u&&!i?ur(s,f):ee(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-f.scrollLeft*d.x+l.x+m.x,y:n.y*d.y-f.scrollTop*d.y+l.y+m.y}}function Ds(e){return Array.from(e.getClientRects())}function _s(e){const t=te(e),n=dt(e),r=e.ownerDocument.body,o=G(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=G(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+pt(e);const c=-n.scrollTop;return Y(r).direction==="rtl"&&(s+=G(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:c}}const On=25;function Is(e,t){const n=H(e),r=te(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,c=0,f=0;if(o){i=o.width,s=o.height;const l=Vt();(!l||l&&t==="fixed")&&(c=o.offsetLeft,f=o.offsetTop)}const d=pt(r);if(d<=0){const l=r.ownerDocument,u=l.body,m=getComputedStyle(u),p=l.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,v=Math.abs(r.clientWidth-u.clientWidth-p);v<=On&&(i-=v)}else d<=On&&(i+=d);return{width:i,height:s,x:c,y:f}}function Ts(e,t){const n=pe(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=oe(e)?Ce(e):ee(1),s=e.clientWidth*i.x,c=e.clientHeight*i.y,f=o*i.x,d=r*i.y;return{width:s,height:c,x:f,y:d}}function Dn(e,t,n){let r;if(t==="viewport")r=Is(e,n);else if(t==="document")r=_s(te(e));else if(z(t))r=Ts(t,n);else{const o=ar(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return rt(r)}function lr(e,t){const n=ue(e);return n===t||!z(n)||Me(n)?!1:Y(n).position==="fixed"||lr(n,t)}function Ns(e,t){const n=t.get(e);if(n)return n;let r=Te(e,[],!1).filter(c=>z(c)&&Oe(c)!=="body"),o=null;const i=Y(e).position==="fixed";let s=i?ue(e):e;for(;z(s)&&!Me(s);){const c=Y(s),f=Ht(s);!f&&c.position==="fixed"&&(o=null),(i?!f&&!o:!f&&c.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||ke(s)&&!f&&lr(e,s))?r=r.filter(l=>l!==s):o=c,s=ue(s)}return t.set(e,r),r}function Ls(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?ft(t)?[]:Ns(t,this._c):[].concat(n),r],c=Dn(t,s[0],o);let f=c.top,d=c.right,l=c.bottom,u=c.left;for(let m=1;m<s.length;m++){const p=Dn(t,s[m],o);f=G(p.top,f),d=ae(p.right,d),l=ae(p.bottom,l),u=G(p.left,u)}return{width:d-u,height:l-f,x:u,y:f}}function Fs(e){const{width:t,height:n}=cr(e);return{width:t,height:n}}function ks(e,t,n){const r=oe(t),o=te(t),i=n==="fixed",s=pe(e,!0,i,t);let c={scrollLeft:0,scrollTop:0};const f=ee(0);function d(){f.x=pt(o)}if(r||!r&&!i)if((Oe(t)!=="body"||ke(o))&&(c=dt(t)),r){const p=pe(t,!0,i,t);f.x=p.x+t.clientLeft,f.y=p.y+t.clientTop}else o&&d();i&&!r&&o&&d();const l=o&&!r&&!i?ur(o,c):ee(0),u=s.left+c.scrollLeft-f.x-l.x,m=s.top+c.scrollTop-f.y-l.y;return{x:u,y:m,width:s.width,height:s.height}}function Rt(e){return Y(e).position==="static"}function _n(e,t){if(!oe(e)||Y(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return te(e)===n&&(n=n.ownerDocument.body),n}function fr(e,t){const n=H(e);if(ft(e))return n;if(!oe(e)){let o=ue(e);for(;o&&!Me(o);){if(z(o)&&!Rt(o))return o;o=ue(o)}return n}let r=_n(e,t);for(;r&&Cs(r)&&Rt(r);)r=_n(r,t);return r&&Me(r)&&Rt(r)&&!Ht(r)?n:r||Ms(e)||n}const js=async function(e){const t=this.getOffsetParent||fr,n=this.getDimensions,r=await n(e.floating);return{reference:ks(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function $s(e){return Y(e).direction==="rtl"}const Bs={convertOffsetParentRelativeRectToViewportRelativeRect:Os,getDocumentElement:te,getClippingRect:Ls,getOffsetParent:fr,getElementRects:js,getClientRects:Ds,getDimensions:Fs,getScale:Ce,isElement:z,isRTL:$s};function dr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ws(e,t){let n=null,r;const o=te(e);function i(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function s(c,f){c===void 0&&(c=!1),f===void 0&&(f=1),i();const d=e.getBoundingClientRect(),{left:l,top:u,width:m,height:p}=d;if(c||t(),!m||!p)return;const v=Ze(u),h=Ze(o.clientWidth-(l+m)),g=Ze(o.clientHeight-(u+p)),y=Ze(l),b={rootMargin:-v+"px "+-h+"px "+-g+"px "+-y+"px",threshold:G(0,ae(1,f))||1};let E=!0;function C(S){const M=S[0].intersectionRatio;if(M!==f){if(!E)return s();
vendor: 10,839 bytes, line 41
41M?s(!1,M):r=setTimeout(()=>{s(!1,1e-7)},1e3)}M===1&&!dr(d,e.getBoundingClientRect())&&s(),E=!1}try{n=new IntersectionObserver(C,{...b,root:o.ownerDocument})}catch{n=new IntersectionObserver(C,b)}n.observe(e)}return s(!0),i}function Us(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,d=zt(e),l=o||i?[...d?Te(d):[],...t?Te(t):[]]:[];l.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const u=d&&c?Ws(d,n):null;let m=-1,p=null;s&&(p=new ResizeObserver(y=>{let[x]=y;x&&x.target===d&&p&&t&&(p.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var b;(b=p)==null||b.observe(t)})),n()}),d&&!f&&p.observe(d),t&&p.observe(t));let v,h=f?pe(e):null;f&&g();function g(){const y=pe(e);h&&!dr(h,y)&&n(),h=y,v=requestAnimationFrame(g)}return n(),()=>{var y;l.forEach(x=>{o&&x.removeEventListener("scroll",n),i&&x.removeEventListener("resize",n)}),u?.(),(y=p)==null||y.disconnect(),p=null,f&&cancelAnimationFrame(v)}}const Ks=ys,Gs=xs,Hs=vs,Vs=Es,zs=gs,In=hs,Ys=bs,Xs=(e,t,n)=>{const r=new Map,o={platform:Bs,...n},i={...o.platform,_c:r};return ms(e,t,{...o,platform:i})};var Zs=typeof document<"u",qs=function(){},Je=Zs?a.useLayoutEffect:qs;function ot(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!ot(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;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!ot(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function pr(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Tn(e,t){const n=pr(e);return Math.round(t*n)/n}function St(e){const t=a.useRef(e);return Je(()=>{t.current=e}),t}function Qs(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:c=!0,whileElementsMounted:f,open:d}=e,[l,u]=a.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,p]=a.useState(r);ot(m,r)||p(r);const[v,h]=a.useState(null),[g,y]=a.useState(null),x=a.useCallback(A=>{A!==S.current&&(S.current=A,h(A))},[]),b=a.useCallback(A=>{A!==M.current&&(M.current=A,y(A))},[]),E=i||v,C=s||g,S=a.useRef(null),M=a.useRef(null),O=a.useRef(l),L=f!=null,_=St(f),P=St(o),T=St(d),F=a.useCallback(()=>{if(!S.current||!M.current)return;const A={placement:t,strategy:n,middleware:m};P.current&&(A.platform=P.current),Xs(S.current,M.current,A).then(R=>{const B={...R,isPositioned:T.current!==!1};N.current&&!ot(O.current,B)&&(O.current=B,Nt.flushSync(()=>{u(B)}))})},[m,t,n,P,T]);Je(()=>{d===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,u(A=>({...A,isPositioned:!1})))},[d]);const N=a.useRef(!1);Je(()=>(N.current=!0,()=>{N.current=!1}),[]),Je(()=>{if(E&&(S.current=E),C&&(M.current=C),E&&C){if(_.current)return _.current(E,C,F);F()}},[E,C,F,_,L]);const W=a.useMemo(()=>({reference:S,floating:M,setReference:x,setFloating:b}),[x,b]),I=a.useMemo(()=>({reference:E,floating:C}),[E,C]),k=a.useMemo(()=>{const A={position:n,left:0,top:0};if(!I.floating)return A;const R=Tn(I.floating,l.x),B=Tn(I.floating,l.y);return c?{...A,transform:"translate("+R+"px, "+B+"px)",...pr(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:R,top:B}},[n,c,I.floating,l.x,l.y]);return a.useMemo(()=>({...l,update:F,refs:W,elements:I,floatingStyles:k}),[l,F,W,I,k])}const Js=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?In({element:r.current,padding:o}).fn(n):{}:r?In({element:r,padding:o}).fn(n):{}}}},ec=(e,t)=>{const n=Ks(e);return{name:n.name,fn:n.fn,options:[e,t]}},tc=(e,t)=>{const n=Gs(e);return{name:n.name,fn:n.fn,options:[e,t]}},nc=(e,t)=>({fn:Ys(e).fn,options:[e,t]}),rc=(e,t)=>{const n=Hs(e);return{name:n.name,fn:n.fn,options:[e,t]}},oc=(e,t)=>{const n=Vs(e);return{name:n.name,fn:n.fn,options:[e,t]}},ic=(e,t)=>{const n=zs(e);return{name:n.name,fn:n.fn,options:[e,t]}},sc=(e,t)=>{const n=Js(e);return{name:n.name,fn:n.fn,options:[e,t]}};var cc="Arrow",mr=a.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return w.jsx(j.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:w.jsx("polygon",{points:"0,0 30,0 15,10"})})});mr.displayName=cc;var ac=mr;function uc(e){const[t,n]=a.useState(void 0);return J(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,c;if("borderBoxSize"in i){const f=i.borderBoxSize,d=Array.isArray(f)?f[0]:f;s=d.inlineSize,c=d.blockSize}else s=e.offsetWidth,c=e.offsetHeight;n({width:s,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Yt="Popper",[hr,vr]=Pe(Yt),[lc,gr]=hr(Yt),wr=e=>{const{__scopePopper:t,children:n}=e,[r,o]=a.useState(null),[i,s]=a.useState(void 0);return w.jsx(lc,{scope:t,anchor:r,onAnchorChange:o,placementState:i,setPlacementState:s,children:n})};wr.displayName=Yt;var yr="PopperAnchor",xr=a.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=gr(yr,n),s=a.useRef(null),c=i.onAnchorChange,f=a.useCallback(v=>{s.current=v,v&&c(v)},[c]),d=$(t,f),l=a.useRef(null);a.useEffect(()=>{if(!r)return;const v=l.current;l.current=r.current,v!==l.current&&c(l.current)});const u=i.placementState&&Zt(i.placementState),m=u?.[0],p=u?.[1];return r?null:w.jsx(j.div,{"data-radix-popper-side":m,"data-radix-popper-align":p,...o,ref:d})});xr.displayName=yr;var Xt="PopperContent",[fc,dc]=hr(Xt),br=a.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:c=0,avoidCollisions:f=!0,collisionBoundary:d=[],collisionPadding:l=0,sticky:u="partial",hideWhenDetached:m=!1,updatePositionStrategy:p="optimized",onPlaced:v,...h}=e,g=gr(Xt,n),[y,x]=a.useState(null),b=$(t,x),[E,C]=a.useState(null),S=uc(E),M=S?.width??0,O=S?.height??0,L=r+(i!=="center"?"-"+i:""),_=typeof l=="number"?l:{top:0,right:0,bottom:0,left:0,...l},P=Array.isArray(d)?d:[d],T=P.length>0,F={padding:_,boundary:P.filter(mc),altBoundary:T},{refs:N,floatingStyles:W,placement:I,isPositioned:k,middlewareData:A}=Qs({strategy:"fixed",placement:L,whileElementsMounted:(...ve)=>Us(...ve,{animationFrame:p==="always"}),elements:{reference:g.anchor},middleware:[ec({mainAxis:o+O,alignmentAxis:s}),f&&tc({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?nc():void 0,...F}),f&&rc({...F}),oc({...F,apply:({elements:ve,rects:on,availableWidth:wo,availableHeight:yo})=>{const{width:xo,height:bo}=on.reference,Ue=ve.floating.style;Ue.setProperty("--radix-popper-available-width",`${wo}px`),Ue.setProperty("--radix-popper-available-height",`${yo}px`),Ue.setProperty("--radix-popper-anchor-width",`${xo}px`),Ue.setProperty("--radix-popper-anchor-height",`${bo}px`)}}),E&&sc({element:E,padding:c}),hc({arrowWidth:M,arrowHeight:O}),m&&ic({strategy:"referenceHidden",...F,boundary:T?F.boundary:void 0})]}),R=g.setPlacementState;J(()=>(R(I),()=>{R(void 0)}),[I,R]);const[B,Z]=Zt(I),ie=ce(v);J(()=>{k&&ie?.()},[k,ie]);const De=A.arrow?.x,_e=A.arrow?.y,We=A.arrow?.centerOffset!==0,[fe,U]=a.useState();return J(()=>{y&&U(window.getComputedStyle(y).zIndex)},[y]),w.jsx("div",{ref:N.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:k?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:fe,"--radix-popper-transform-origin":[A.transformOrigin?.x,A.transformOrigin?.y].join(" "),...A.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:w.jsx(fc,{scope:n,placedSide:B,placedAlign:Z,onArrowChange:C,arrowX:De,arrowY:_e,shouldHideArrow:We,children:w.jsx(j.div,{"data-side":B,"data-align":Z,...h,ref:b,style:{...h.style,animation:k?void 0:"none"}})})})});br.displayName=Xt;var Er="PopperArrow",pc={top:"bottom",right:"left",bottom:"top",left:"right"},Cr=a.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=dc(Er,r),s=pc[i.placedSide];return w.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:w.jsx(ac,{...o,ref:n,style:{...o.style,display:"block"}})})});Cr.displayName=Er;function mc(e){return e!==null}var hc=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,s=o.arrow?.centerOffset!==0,c=s?0:e.arrowWidth,f=s?0:e.arrowHeight,[d,l]=Zt(n),u={start:"0%",center:"50%",end:"100%"}[l],m=(o.arrow?.x??0)+c/2,p=(o.arrow?.y??0)+f/2;let v="",h="";return d==="bottom"?(v=s?u:`${m}px`,h=`${-f}px`):d==="top"?(v=s?u:`${m}px`,h=`${r.floating.height+f}px`):d==="right"?(v=`${-f}px`,h=s?u:`${p}px`):d==="left"&&(v=`${r.floating.width+f}px`,h=s?u:`${p}px`),{data:{x:v,y:h}}}});function Zt(e){const[t,n="center"]=e.split("-");return[t,n]}var vc=wr,gc=xr,wc=br,yc=Cr;function Rr(e){const t=e+"CollectionProvider",[n,r]=Pe(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=h=>{const{scope:g,children:y}=h,x=a.useRef(null),b=a.useRef(new Map).current;return w.jsx(o,{scope:g,itemMap:b,collectionRef:x,children:y})};s.displayName=t;const c=e+"CollectionSlot",f=Re(c),d=a.forwardRef((h,g)=>{const{scope:y,children:x}=h,b=i(c,y),E=$(g,b.collectionRef);return w.jsx(f,{ref:E,children:x})});d.displayName=c;const l=e+"CollectionItemSlot",u="data-radix-collection-item",m=Re(l),p=a.forwardRef((h,g)=>{const{scope:y,children:x,...b}=h,E=a.useRef(null),C=$(g,E),S=i(l,y);return a.useEffect(()=>(S.itemMap.set(E,{ref:E,...b}),()=>{S.itemMap.delete(E)})),w.jsx(m,{[u]:"",ref:C,children:x})});p.displayName=l;function v(h){const g=i(e+"CollectionConsumer",h);return a.useCallback(()=>{const x=g.collectionRef.current;if(!x)return[];const b=Array.from(x.querySelectorAll(`[${u}]`));return Array.from(g.itemMap.values()).sort((S,M)=>b.indexOf(S.ref.current)-b.indexOf(M.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:s,Slot:d,ItemSlot:p},v,r]}var xc=a.createContext(void 0);function Sr(e){const t=a.useContext(xc);return e||t||"ltr"}var Mt="rovingFocusGroup.onEntryFocus",bc={bubbles:!1,cancelable:!0},je="RovingFocusGroup",[It,Mr,Ec]=Rr(je),[Cc,Pr]=Pe(je,[Ec]),[Rc,Sc]=Cc(je),Ar=a.forwardRef((e,t)=>
vendor: 4,473 bytes, line 41
41w.jsx(It.Provider,{scope:e.__scopeRovingFocusGroup,children:w.jsx(It.Slot,{scope:e.__scopeRovingFocusGroup,children:w.jsx(Mc,{...e,ref:t})})}));Ar.displayName=je;var Mc=a.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:s,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:f,onEntryFocus:d,preventScrollOnEntryFocus:l=!1,...u}=e,m=a.useRef(null),p=$(t,m),v=Sr(i),[h,g]=Lt({prop:s,defaultProp:c??null,onChange:f,caller:je}),[y,x]=a.useState(!1),b=ce(d),E=Mr(n),C=a.useRef(!1),[S,M]=a.useState(0);return a.useEffect(()=>{const O=m.current;if(O)return O.addEventListener(Mt,b),()=>O.removeEventListener(Mt,b)},[b]),w.jsx(Rc,{scope:n,orientation:r,dir:v,loop:o,currentTabStopId:h,onItemFocus:a.useCallback(O=>g(O),[g]),onItemShiftTab:a.useCallback(()=>x(!0),[]),onFocusableItemAdd:a.useCallback(()=>M(O=>O+1),[]),onFocusableItemRemove:a.useCallback(()=>M(O=>O-1),[]),children:w.jsx(j.div,{tabIndex:y||S===0?-1:0,"data-orientation":r,...u,ref:p,style:{outline:"none",...e.style},onMouseDown:D(e.onMouseDown,()=>{C.current=!0}),onFocus:D(e.onFocus,O=>{const L=!C.current;if(O.target===O.currentTarget&&L&&!y){const _=new CustomEvent(Mt,bc);if(O.currentTarget.dispatchEvent(_),!_.defaultPrevented){const P=E().filter(I=>I.focusable),T=P.find(I=>I.active),F=P.find(I=>I.id===h),W=[T,F,...P].filter(Boolean).map(I=>I.ref.current);_r(W,l)}}C.current=!1}),onBlur:D(e.onBlur,()=>x(!1))})})}),Or="RovingFocusGroupItem",Dr=a.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,children:s,...c}=e,f=be(),d=i||f,l=Sc(Or,n),u=l.currentTabStopId===d,m=Mr(n),{onFocusableItemAdd:p,onFocusableItemRemove:v,currentTabStopId:h}=l;return a.useEffect(()=>{if(r)return p(),()=>v()},[r,p,v]),w.jsx(It.ItemSlot,{scope:n,id:d,focusable:r,active:o,children:w.jsx(j.span,{tabIndex:u?0:-1,"data-orientation":l.orientation,...c,ref:t,onMouseDown:D(e.onMouseDown,g=>{r?l.onItemFocus(d):g.preventDefault()}),onFocus:D(e.onFocus,()=>l.onItemFocus(d)),onKeyDown:D(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){l.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const y=Oc(g,l.orientation,l.dir);if(y!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let b=m().filter(E=>E.focusable).map(E=>E.ref.current);if(y==="last")b.reverse();else if(y==="prev"||y==="next"){y==="prev"&&b.reverse();const E=b.indexOf(g.currentTarget);b=l.loop?Dc(b,E+1):b.slice(E+1)}setTimeout(()=>_r(b))}}),children:typeof s=="function"?s({isCurrentTabStop:u,hasTabStop:h!=null}):s})})});Dr.displayName=Or;var Pc={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Ac(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Oc(e,t,n){const r=Ac(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Pc[r]}function _r(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Dc(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var _c=Ar,Ic=Dr,Tt=["Enter"," "],Tc=["ArrowDown","PageUp","Home"],Ir=["ArrowUp","PageDown","End"],Nc=[...Tc,...Ir],Lc={ltr:[...Tt,"ArrowRight"],rtl:[...Tt,"ArrowLeft"]},Fc={ltr:["ArrowLeft"],rtl:["ArrowRight"]},$e="Menu",[Ne,kc,jc]=Rr($e),[me,Tr]=Pe($e,[jc,vr,Pr]),mt=vr(),Nr=Pr(),[$c,he]=me($e),[Bc,Be]=me($e),Lr=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:i,modal:s=!0}=e,c=mt(t),[f,d]=a.useState(null),l=a.useRef(!1),u=ce(i),m=Sr(o);return a.useEffect(()=>{const p=()=>{l.current=!0,document.addEventListener("pointerdown",v,{capture:!0,once:!0}),document.addEventListener("pointermove",v,{capture:!0,once:!0})},v=()=>l.current=!1;return document.addEventListener("keydown",p,{capture:!0}),()=>{document.removeEventListener("keydown",p,{capture:!0}),document.removeEventListener("pointerdown",v,{capture:!0}),document.removeEventListener("pointermove",v,{capture:!0})}},[]),a.useEffect(()=>{if(!n)return;const p=()=>u(!1);return window.addEventListener("blur",p),()=>window.removeEventListener("blur",p)},[n,u]),w.jsx(vc,{...c,children:w.jsx($c,{scope:t,open:n,onOpenChange:u,content:f,onContentChange:d,children:w.jsx(Bc,{scope:t,onClose:a.useCallback(()=>u(!1),[u]),isUsingKeyboardRef:l,dir:m,modal:s,children:r})})})};Lr.displayName=$e;var Wc="MenuAnchor",qt=a.forwardRef((e,t)=>
vendor: 13,432 bytes, line 41
41{const{__scopeMenu:n,...r}=e,o=mt(n);return w.jsx(gc,{...o,...r,ref:t})});qt.displayName=Wc;var Qt="MenuPortal",[Uc,Fr]=me(Qt,{forceMount:void 0}),kr=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=he(Qt,t);return w.jsx(Uc,{scope:t,forceMount:n,children:w.jsx(le,{present:n||i.open,children:w.jsx(jt,{asChild:!0,container:o,children:r})})})};kr.displayName=Qt;var V="MenuContent",[Kc,Jt]=me(V),jr=a.forwardRef((e,t)=>{const n=Fr(V,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=he(V,e.__scopeMenu),s=Be(V,e.__scopeMenu);return w.jsx(Ne.Provider,{scope:e.__scopeMenu,children:w.jsx(le,{present:r||i.open,children:w.jsx(Ne.Slot,{scope:e.__scopeMenu,children:s.modal?w.jsx(Gc,{...o,ref:t}):w.jsx(Hc,{...o,ref:t})})})})}),Gc=a.forwardRef((e,t)=>{const n=he(V,e.__scopeMenu),r=a.useRef(null),o=$(t,r);return a.useEffect(()=>{const i=r.current;if(i)return Xn(i)},[]),w.jsx(en,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:D(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Hc=a.forwardRef((e,t)=>{const n=he(V,e.__scopeMenu);return w.jsx(en,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Vc=Re("MenuContent.ScrollLock"),en=a.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:s,disableOutsidePointerEvents:c,onEntryFocus:f,onEscapeKeyDown:d,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:m,onDismiss:p,disableOutsideScroll:v,...h}=e,g=he(V,n),y=Be(V,n),x=mt(n),b=Nr(n),E=kc(n),[C,S]=a.useState(null),M=a.useRef(null),O=$(t,M,g.onContentChange),L=a.useRef(0),_=a.useRef(""),P=a.useRef(0),T=a.useRef(null),F=a.useRef("right"),N=a.useRef(0),W=v?$t:a.Fragment,I=v?{as:Vc,allowPinchZoom:!0}:void 0,k=R=>{const B=_.current+R,Z=E().filter(U=>!U.disabled),ie=document.activeElement,De=Z.find(U=>U.ref.current===ie)?.textValue,_e=Z.map(U=>U.textValue),We=oa(_e,B,De),fe=Z.find(U=>U.textValue===We)?.ref.current;(function U(ve){_.current=ve,window.clearTimeout(L.current),ve!==""&&(L.current=window.setTimeout(()=>U(""),1e3))})(B),fe&&setTimeout(()=>fe.focus())};a.useEffect(()=>()=>window.clearTimeout(L.current),[]),Bn();const A=a.useCallback(R=>F.current===T.current?.side&&sa(R,T.current?.area),[]);return w.jsx(Kc,{scope:n,searchRef:_,onItemEnter:a.useCallback(R=>{A(R)&&R.preventDefault()},[A]),onItemLeave:a.useCallback(R=>{A(R)||(M.current?.focus(),S(null))},[A]),onTriggerLeave:a.useCallback(R=>{A(R)&&R.preventDefault()},[A]),pointerGraceTimerRef:P,onPointerGraceIntentChange:a.useCallback(R=>{T.current=R},[]),children:w.jsx(W,{...I,children:w.jsx(kt,{asChild:!0,trapped:o,onMountAutoFocus:D(i,R=>{R.preventDefault(),M.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:w.jsx(ct,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:d,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:m,onDismiss:p,children:w.jsx(_c,{asChild:!0,...b,dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:C,onCurrentTabStopIdChange:S,onEntryFocus:D(f,R=>{y.isUsingKeyboardRef.current||R.preventDefault()}),preventScrollOnEntryFocus:!0,children:w.jsx(wc,{role:"menu","aria-orientation":"vertical","data-state":eo(g.open),"data-radix-menu-content":"",dir:y.dir,...x,...h,ref:O,style:{outline:"none",...h.style},onKeyDown:D(h.onKeyDown,R=>{const Z=R.target.closest("[data-radix-menu-content]")===R.currentTarget,ie=R.ctrlKey||R.altKey||R.metaKey,De=R.key.length===1;Z&&(R.key==="Tab"&&R.preventDefault(),!ie&&De&&k(R.key));const _e=M.current;if(R.target!==_e||!Nc.includes(R.key))return;R.preventDefault();const fe=E().filter(U=>!U.disabled).map(U=>U.ref.current);Ir.includes(R.key)&&fe.reverse(),na(fe)}),onBlur:D(e.onBlur,R=>{R.currentTarget.contains(R.target)||(window.clearTimeout(L.current),_.current="")}),onPointerMove:D(e.onPointerMove,Le(R=>{const B=R.target,Z=N.current!==R.clientX;if(R.currentTarget.contains(B)&&Z){const ie=R.clientX>N.current?"right":"left";F.current=ie,N.current=R.clientX}}))})})})})})})});jr.displayName=V;var zc="MenuGroup",tn=a.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return w.jsx(j.div,{role:"group",...r,ref:t})});tn.displayName=zc;var Yc="MenuLabel",$r=a.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return w.jsx(j.div,{...r,ref:t})});$r.displayName=Yc;var it="MenuItem",Nn="menu.itemSelect",ht=a.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,i=a.useRef(null),s=Be(it,e.__scopeMenu),c=Jt(it,e.__scopeMenu),f=$(t,i),d=a.useRef(!1),l=()=>{const u=i.current;if(!n&&u){const m=new CustomEvent(Nn,{bubbles:!0,cancelable:!0});u.addEventListener(Nn,p=>r?.(p),{once:!0}),Fn(u,m),m.defaultPrevented?d.current=!1:s.onClose()}};return w.jsx(Br,{...o,ref:f,disabled:n,onClick:D(e.onClick,l),onPointerDown:u=>{e.onPointerDown?.(u),d.current=!0},onPointerUp:D(e.onPointerUp,u=>{d.current||u.currentTarget?.click()}),onKeyDown:D(e.onKeyDown,u=>{const m=c.searchRef.current!=="";n||m&&u.key===" "||Tt.includes(u.key)&&(u.currentTarget.click(),u.preventDefault())})})});ht.displayName=it;var Br=a.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=e,s=Jt(it,n),c=Nr(n),f=a.useRef(null),d=$(t,f),[l,u]=a.useState(!1),[m,p]=a.useState("");return a.useEffect(()=>{const v=f.current;v&&p((v.textContent??"").trim())},[i.children]),w.jsx(Ne.ItemSlot,{scope:n,disabled:r,textValue:o??m,children:w.jsx(Ic,{asChild:!0,...c,focusable:!r,children:w.jsx(j.div,{role:"menuitem","data-highlighted":l?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...i,ref:d,onPointerMove:D(e.onPointerMove,Le(v=>{r?s.onItemLeave(v):(s.onItemEnter(v),v.defaultPrevented||v.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:D(e.onPointerLeave,Le(v=>s.onItemLeave(v))),onFocus:D(e.onFocus,()=>u(!0)),onBlur:D(e.onBlur,()=>u(!1))})})})}),Xc="MenuCheckboxItem",Wr=a.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return w.jsx(Vr,{scope:e.__scopeMenu,checked:n,children:w.jsx(ht,{role:"menuitemcheckbox","aria-checked":st(n)?"mixed":n,...o,ref:t,"data-state":rn(n),onSelect:D(o.onSelect,()=>r?.(st(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Wr.displayName=Xc;var Ur="MenuRadioGroup",[Zc,qc]=me(Ur,{value:void 0,onValueChange:()=>{}}),Kr=a.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,i=ce(r);return w.jsx(Zc,{scope:e.__scopeMenu,value:n,onValueChange:i,children:w.jsx(tn,{...o,ref:t})})});Kr.displayName=Ur;var Gr="MenuRadioItem",Hr=a.forwardRef((e,t)=>{const{value:n,...r}=e,o=qc(Gr,e.__scopeMenu),i=n===o.value;return w.jsx(Vr,{scope:e.__scopeMenu,checked:i,children:w.jsx(ht,{role:"menuitemradio","aria-checked":i,...r,ref:t,"data-state":rn(i),onSelect:D(r.onSelect,()=>o.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});Hr.displayName=Gr;var nn="MenuItemIndicator",[Vr,Qc]=me(nn,{checked:!1}),zr=a.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,i=Qc(nn,n);return w.jsx(le,{present:r||st(i.checked)||i.checked===!0,children:w.jsx(j.span,{...o,ref:t,"data-state":rn(i.checked)})})});zr.displayName=nn;var Jc="MenuSeparator",Yr=a.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return w.jsx(j.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});Yr.displayName=Jc;var ea="MenuArrow",Xr=a.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=mt(n);return w.jsx(yc,{...o,...r,ref:t})});Xr.displayName=ea;var ta="MenuSub",[Va,Zr]=me(ta),Ie="MenuSubTrigger",qr=a.forwardRef((e,t)=>{const n=he(Ie,e.__scopeMenu),r=Be(Ie,e.__scopeMenu),o=Zr(Ie,e.__scopeMenu),i=Jt(Ie,e.__scopeMenu),s=a.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:f}=i,d={__scopeMenu:e.__scopeMenu},l=a.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);a.useEffect(()=>l,[l]),a.useEffect(()=>{const m=c.current;return()=>{window.clearTimeout(m),f(null)}},[c,f]);const u=$(t,o.onTriggerChange);return w.jsx(qt,{asChild:!0,...d,children:w.jsx(Br,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":n.open?o.contentId:void 0,"data-state":eo(n.open),...e,ref:u,onClick:m=>{e.onClick?.(m),!(e.disabled||m.defaultPrevented)&&(m.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:D(e.onPointerMove,Le(m=>{i.onItemEnter(m),!m.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(i.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),l()},100))})),onPointerLeave:D(e.onPointerLeave,Le(m=>{l();const p=n.content?.getBoundingClientRect();if(p){const v=n.content?.dataset.side,h=v==="right",g=h?-5:5,y=p[h?"left":"right"],x=p[h?"right":"left"];i.onPointerGraceIntentChange({area:[{x:m.clientX+g,y:m.clientY},{x:y,y:p.top},{x,y:p.top},{x,y:p.bottom},{x:y,y:p.bottom}],side:v}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(m),m.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:D(e.onKeyDown,m=>{const p=i.searchRef.current!=="";e.disabled||p&&m.key===" "||Lc[r.dir].includes(m.key)&&(n.onOpenChange(!0),n.content?.focus(),m.preventDefault())})})})});qr.displayName=Ie;var Qr="MenuSubContent",Jr=a.forwardRef((e,t)=>{const n=Fr(V,e.__scopeMenu),{forceMount:r=n.forceMount,align:o="start",...i}=e,s=he(V,e.__scopeMenu),c=Be(V,e.__scopeMenu),f=Zr(Qr,e.__scopeMenu),d=a.useRef(null),l=$(t,d);return w.jsx(Ne.Provider,{scope:e.__scopeMenu,children:w.jsx(le,{present:r||s.open,children:w.jsx(Ne.Slot,{scope:e.__scopeMenu,children:w.jsx(en,{id:f.contentId,"aria-labelledby":f.triggerId,...i,ref:l,align:o,side:c.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:u=>{c.isUsingKeyboardRef.current&&d.current?.focus(),u.preventDefault()},onCloseAutoFocus:u=>u.preventDefault(),onFocusOutside:D(e.onFocusOutside,u=>{u.target!==f.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:D(e.onEscapeKeyDown,u=>{c.onClose(),u.preventDefault()}),onKeyDown:D(e.onKeyDown,u=>{const m=u.currentTarget.contains(u.target),p=Fc[c.dir].includes(u.key);m&&p&&(s.onOpenChange(!1),f.trigger?.focus(),u.preventDefault())})})})})})});Jr.displayName=Qr;function eo(e){return e?"open":"closed"}function st(e){return e==="indeterminate"}function rn(e){return st(e)?"indeterminate":e?"checked":"unchecked"}function na(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function ra(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function oa(e,t,n){const o=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let s=ra(e,Math.max(i,0));o.length===1&&(s=s.filter(d=>d!==n));const f=s.find(d=>d.toLowerCase().startsWith(o.toLowerCase()));return f!==n?f:void 0}function ia(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const c=t[i],f=t[s],d=c.x,l=c.y,u=f.x,m=f.y;l>r!=m>r&&n<(u-d)*(r-l)/(m-l)+d&&(o=!o)}return o}function sa(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return ia(n,t)}function Le(e){return t=>t.pointerType==="mouse"?e(t):void 0}var ca=Lr,aa=qt,ua=kr,la=jr,fa=tn,da=$r,pa=ht,ma=Wr,ha=Kr,va=Hr,ga=zr,wa=Yr,ya=Xr,xa=qr,ba=Jr,vt="DropdownMenu",[Ea]=Pe(vt,[Tr]),K=Tr(),[Ca,to]=Ea(vt),no=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:i,onOpenChange:s,modal:c=!0}=e,f=K(t),d=a.useRef(null),[l,u]=Lt({prop:o,defaultProp:i??!1,onChange:s,caller:vt});return w.jsx(Ca,{scope:t,triggerId:be(),triggerRef:d,contentId:be(),open:l,onOpenChange:u,onOpenToggle:a.useCallback(()=>u(m=>!m),[u]),modal:c,children:w.jsx(ca,{...f,open:l,onOpenChange:u,dir:r,modal:c,children:n})})};no.displayName=vt;var ro="DropdownMenuTrigger",oo=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,i=to(ro,n),s=K(n),c=$(t,i.triggerRef);return w.jsx(aa,{asChild:!0,...s,children:w.jsx(j.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:c,onPointerDown:D(e.onPointerDown,f=>{!r&&f.button===0&&f.ctrlKey===!1&&(i.onOpenToggle(),i.open||f.preventDefault())}),onKeyDown:D(e.onKeyDown,f=>{r||(["Enter"," "].includes(f.key)&&i.onOpenToggle(),f.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(f.key)&&f.preventDefault())})})})});oo.displayName=ro;var Ra="DropdownMenuPortal",io=e=>{const{__scopeDropdownMenu:t,...n}=e,r=K(t);return w.jsx(ua,{...r,...n})};io.displayName=Ra;var so="DropdownMenuContent",co=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=to(so,n),i=K(n),s=a.useRef(!1);return w.jsx(la,{id:o.contentId,"aria-labelledby":o.triggerId,...i,...r,ref:t,onCloseAutoFocus:D(e.onCloseAutoFocus,c=>{s.current||o.triggerRef.current?.focus(),s.current=!1,c.preventDefault()}),onInteractOutside:D(e.onInteractOutside,c=>{const f=c.detail.originalEvent,d=f.button===0&&f.ctrlKey===!0,l=f.button===2||d;(!o.modal||l)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});co.displayName=so;var Sa="DropdownMenuGroup",Ma=a.forwardRef((e,t)=>
41{const{__scopeDropdownMenu:n,...r}=e,o=K(n);return w.jsx(fa,{...o,...r,ref:t})});Ma.displayName=Sa;var Pa="DropdownMenuLabel",ao=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=K(n);return w.jsx(da,{...o,...r,ref:t})});ao.displayName=Pa;var Aa="DropdownMenuItem",uo=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=K(n);return w.jsx(pa,{...o,...r,ref:t})});uo.displayName=Aa;var Oa="DropdownMenuCheckboxItem",lo=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=K(n);return w.jsx(ma,{...o,...r,ref:t})});lo.displayName=Oa;var Da="DropdownMenuRadioGroup",fo=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=K(n);return w.jsx(ha,{...o,...r,ref:t})});fo.displayName=Da;var _a="DropdownMenuRadioItem",po=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=K(n);return w.jsx(va,{...o,...r,ref:t})});po.displayName=_a;var Ia="DropdownMenuItemIndicator",mo=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=K(n);return w.jsx(ga,{...o,...r,ref:t})});mo.displayName=Ia;var Ta="DropdownMenuSeparator",ho=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=K(n);return w.jsx(wa,{...o,...r,ref:t})});ho.displayName=Ta;var Na="DropdownMenuArrow",La=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=K(n);return w.jsx(ya,{...o,...r,ref:t})});La.displayName=Na;var Fa="DropdownMenuSubTrigger",vo=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=K(n);return w.jsx(xa,{...o,...r,ref:t})});vo.displayName=Fa;var ka="DropdownMenuSubContent",go=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=K(n);return w.jsx(ba,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});go.displayName=ka;var za=no,Ya=oo,Xa=io,Za=co,qa=ao,Qa=uo,Ja=lo,eu=fo,tu=po,nu=mo,ru=ho,ou=vo,iu=go;export{Pr as $,gc as A,Za as B,wc as C,Yi as D,Ja as E,kt as F,nu as G,tu as H,Qa as I,ru as J,za as K,qa as L,eu as M,J as N,uc as O,j as P,Ka as Q,vc as R,Ba as S,Ya as T,ce as U,Rr as V,Ua as W,Fn as X,Sr as Y,_c as Z,Ic as _,zi as a,Ha as a0,Ga as a1,qi as b,Pe as c,ns as d,es as e,ts as f,Gi as g,Hi as h,le as i,ct as j,vr as k,Wa as l,be as m,Lt as n,D as o,jt as p,yc as q,Xn as r,$t as s,Re as t,$ as u,Bn as v,Eo as w,ou as x,iu as y,Xa 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.