PageSourceSearch

https://www.tulsafleetrepair.com/assets/vendor-radix-il8ASf1s.js

js tulsafleetrepair.com collected 2026-10-07 05:03:01 UTC 106,010 bytes, 62 lines download raw bytes

vendor: 9,456 bytes, line 1
1import{r as c,j as h,R as B,a as Bt,G as bs,b as ys}from"./vendor-react-CO7_cS_D.js";function _(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Cs(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Zn(...e){return t=>e.forEach(n=>Cs(n,t))}function $(...e){return c.useCallback(Zn(...e),e)}function Es(e,t=[]){let n=[];function r(s,i){const a=c.createContext(i),u=n.length;n=[...n,i];function l(f){const{scope:p,children:m,...g}=f,v=(p==null?void 0:p[e][u])||a,w=c.useMemo(()=>g,Object.values(g));return h.jsx(v.Provider,{value:w,children:m})}function d(f,p){const m=(p==null?void 0:p[e][u])||a,g=c.useContext(m);if(g)return g;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${s}\``)}return l.displayName=s+"Provider",[l,d]}const o=()=>{const s=n.map(i=>c.createContext(i));return function(a){const u=(a==null?void 0:a[e])||s;return c.useMemo(()=>({[`__scope${e}`]:{...a,[e]:u}}),[a,u])}};return o.scopeName=e,[r,Ss(o,...t)]}function Ss(...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(s){const i=r.reduce((a,{useScope:u,scopeName:l})=>{const f=u(s)[`__scope${l}`];return{...a,...f}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var Oe=c.forwardRef((e,t)=>{const{children:n,...r}=e,o=c.Children.toArray(n),s=o.find(Ts);if(s){const i=s.props.children,a=o.map(u=>u===s?c.Children.count(i)>1?c.Children.only(null):c.isValidElement(i)?i.props.children:null:u);return h.jsx(At,{...r,ref:t,children:c.isValidElement(i)?c.cloneElement(i,void 0,a):null})}return h.jsx(At,{...r,ref:t,children:n})});Oe.displayName="Slot";var At=c.forwardRef((e,t)=>{const{children:n,...r}=e;if(c.isValidElement(n)){const o=Ps(n);return c.cloneElement(n,{...Rs(r,n.props),ref:t?Zn(t,o):o})}return c.Children.count(n)>1?c.Children.only(null):null});At.displayName="SlotClone";var Qn=({children:e})=>h.jsx(h.Fragment,{children:e});function Ts(e){return c.isValidElement(e)&&e.type===Qn}function Rs(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{s(...a),o(...a)}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Ps(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Vt(e){const t=e+"CollectionProvider",[n,r]=Es(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=m=>{const{scope:g,children:v}=m,w=B.useRef(null),x=B.useRef(new Map).current;return h.jsx(o,{scope:g,itemMap:x,collectionRef:w,children:v})};i.displayName=t;const a=e+"CollectionSlot",u=B.forwardRef((m,g)=>{const{scope:v,children:w}=m,x=s(a,v),b=$(g,x.collectionRef);return h.jsx(Oe,{ref:b,children:w})});u.displayName=a;const l=e+"CollectionItemSlot",d="data-radix-collection-item",f=B.forwardRef((m,g)=>{const{scope:v,children:w,...x}=m,b=B.useRef(null),y=$(g,b),C=s(l,v);return B.useEffect(()=>(C.itemMap.set(b,{ref:b,...x}),()=>void C.itemMap.delete(b))),h.jsx(Oe,{[d]:"",ref:y,children:w})});f.displayName=l;function p(m){const g=s(e+"CollectionConsumer",m);return B.useCallback(()=>{const w=g.collectionRef.current;if(!w)return[];const x=Array.from(w.querySelectorAll(`[${d}]`));return Array.from(g.itemMap.values()).sort((C,E)=>x.indexOf(C.ref.current)-x.indexOf(E.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:i,Slot:u,ItemSlot:f},p,r]}function As(e,t){const n=c.createContext(t),r=s=>{const{children:i,...a}=s,u=c.useMemo(()=>a,Object.values(a));return h.jsx(n.Provider,{value:u,children:i})};r.displayName=e+"Provider";function o(s){const i=c.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function de(e,t=[]){let n=[];function r(s,i){const a=c.createContext(i),u=n.length;n=[...n,i];const l=f=>{var x;const{scope:p,children:m,...g}=f,v=((x=p==null?void 0:p[e])==null?void 0:x[u])||a,w=c.useMemo(()=>g,Object.values(g));return h.jsx(v.Provider,{value:w,children:m})};l.displayName=s+"Provider";function d(f,p){var v;const m=((v=p==null?void 0:p[e])==null?void 0:v[u])||a,g=c.useContext(m);if(g)return g;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[l,d]}const o=()=>{const s=n.map(i=>c.createContext(i));return function(a){const u=(a==null?void 0:a[e])||s;return c.useMemo(()=>({[`__scope${e}`]:{...a,[e]:u}}),[a,u])}};return o.scopeName=e,[r,Os(o,...t)]}function Os(...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(s){const i=r.reduce((a,{useScope:u,scopeName:l})=>{const f=u(s)[`__scope${l}`];return{...a,...f}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var _s=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],N=_s.reduce((e,t)=>{const n=c.forwardRef((r,o)=>{const{asChild:s,...i}=r,a=s?Oe:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(a,{...i,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Jn(e,t){e&&Bt.flushSync(()=>e.dispatchEvent(t))}function H(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Ns(e,t=globalThis==null?void 0:globalThis.document){const n=H(e);c.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Ds="DismissableLayer",Ot="dismissableLayer.update",Is="dismissableLayer.pointerDownOutside",Ms="dismissableLayer.focusOutside",An,er=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Je=c.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...u}=e,l=c.useContext(er),[d,f]=c.useState(null),p=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=c.useState({}),g=$(t,T=>f(T)),v=Array.from(l.layers),[w]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),x=v.indexOf(w),b=d?v.indexOf(d):-1,y=l.layersWithOutsidePointerEventsDisabled.size>0,C=b>=x,E=Fs(T=>{const P=T.target,A=[...l.branches].some(O=>O.contains(P));!C||A||(o==null||o(T),i==null||i(T),T.defaultPrevented||a==null||a())},p),S=js(T=>{const P=T.target;[...l.branches].some(O=>O.contains(P))||(s==null||s(T),i==null||i(T),T.defaultPrevented||a==null||a())},p);return Ns(T=>{b===l.layers.size-1&&(r==null||r(T),!T.defaultPrevented&&a&&(T.preventDefault(),a()))},p),c.useEffect(()=>{if(d)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(An=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(d)),l.layers.add(d),On(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=An)}},[d,p,n,l]),c.useEffect(()=>()=>{d&&(l.layers.delete(d),l.layersWithOutsidePointerEventsDisabled.delete(d),On())},[d,l]),c.useEffect(()=>{const T=()=>m({});return document.addEventListener(Ot,T),()=>document.removeEventListener(Ot,T)},[]),h.jsx(N.div,{...u,ref:g,style:{pointerEvents:y?C?"auto":"none":void 0,...e.style},onFocusCapture:_(e.onFocusCapture,S.onFocusCapture),onBlurCapture:_(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:_(e.onPointerDownCapture,E.onPointerDownCapture)})});Je.displayName=Ds;var Ls="DismissableLayerBranch",tr=c.forwardRef((e,t)=>{const n=c.useContext(er),r=c.useRef(null),o=$(t,r);return c.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),h.jsx(N.div,{...e,ref:o})});tr.displayName=Ls;function Fs(e,t=globalThis==null?void 0:globalThis.document){const n=H(e),r=c.useRef(!1),o=c.useRef(()=>{});return c.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let u=function(){nr(Is,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function js(e,t=globalThis==null?void 0:globalThis.document){const n=H(e),r=c.useRef(!1);return c.useEffect(()=>{const o=s=>{s.target&&!r.current&&nr(Ms,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function On(){const e=new CustomEvent(Ot);document.dispatchEvent(e)}function nr(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Jn(o,s):o.dispatchEvent(s)}var ks=Je,$s=tr,Y=globalThis!=null&&globalThis.document?c.useLayoutEffect:()=>{},Ws="Portal",Ut=c.forwardRef((e,t)=>
1{var a;const{container:n,...r}=e,[o,s]=c.useState(!1);Y(()=>s(!0),[]);const i=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?bs.createPortal(h.jsx(N.div,{...r,ref:t}),i):null});Ut.displayName=Ws;function Hs(e,t){return c.useReducer((n,r)=>t[n][r]??n,e)}var K=e=>{const{present:t,children:n}=e,r=Bs(t),o=typeof n=="function"?n({present:r.isPresent}):c.Children.only(n),s=$(r.ref,Vs(o));return typeof n=="function"||r.isPresent?c.cloneElement(o,{ref:s}):null};K.displayName="Presence";function Bs(e){const[t,n]=c.useState(),r=c.useRef({}),o=c.useRef(e),s=c.useRef("none"),i=e?"mounted":"unmounted",[a,u]=Hs(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{const l=Le(r.current);s.current=a==="mounted"?l:"none"},[a]),Y(()=>{const l=r.current,d=o.current;if(d!==e){const p=s.current,m=Le(l);e?u("MOUNT"):m==="none"||(l==null?void 0:l.display)==="none"?u("UNMOUNT"):u(d&&p!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),Y(()=>{if(t){let l;const d=t.ownerDocument.defaultView??window,f=m=>{const v=Le(r.current).includes(m.animationName);if(m.target===t&&v&&(u("ANIMATION_END"),!o.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",l=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},p=m=>{m.target===t&&(s.current=Le(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(l),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:c.useCallback(l=>{l&&(r.current=getComputedStyle(l)),n(l)},[])}}function Le(e){return(e==null?void 0:e.animationName)||"none"}function Vs(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function fe({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=Us({defaultProp:t,onChange:n}),s=e!==void 0,i=s?e:r,a=H(n),u=c.useCallback(l=>{if(s){const f=typeof l=="function"?l(e):l;f!==e&&a(f)}else o(l)},[s,e,o,a]);return[i,u]}function Us({defaultProp:e,onChange:t}){const n=c.useState(e),[r]=n,o=c.useRef(r),s=H(t);return c.useEffect(()=>{o.current!==r&&(s(r),o.current=r)},[r,o,s]),n}var zs="VisuallyHidden",et=c.forwardRef((e,t)=>h.jsx(N.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));et.displayName=zs;var Ys=et,zt="ToastProvider",[Yt,Ks,Xs]=Vt("Toast"),[rr,Vl]=de("Toast",[Xs]),[Gs,tt]=rr(zt),or=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:s=50,children:i}=e,[a,u]=c.useState(null),[l,d]=c.useState(0),f=c.useRef(!1),p=c.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${zt}\`. Expected non-empty \`string\`.`),h.jsx(Yt.Provider,{scope:t,children:h.jsx(Gs,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:s,toastCount:l,viewport:a,onViewportChange:u,onToastAdd:c.useCallback(()=>d(m=>m+1),[]),onToastRemove:c.useCallback(()=>d(m=>m-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:p,children:i})})};or.displayName=zt;var sr="ToastViewport",qs=["F8"],_t="toast.viewportPause",Nt="toast.viewportResume",ir=c.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=qs,label:o="Notifications ({hotkey})",...s}=e,i=tt(sr,n),a=Ks(n),u=c.useRef(null),l=c.useRef(null),d=c.useRef(null),f=c.useRef(null),p=$(t,f,i.onViewportChange),m=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),g=i.toastCount>0;c.useEffect(()=>{const w=x=>{var y;r.length!==0&&r.every(C=>x[C]||x.code===C)&&((y=f.current)==null||y.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[r]),c.useEffect(()=>{const w=u.current,x=f.current;if(g&&w&&x){const b=()=>{if(!i.isClosePausedRef.current){const S=new CustomEvent(_t);x.dispatchEvent(S),i.isClosePausedRef.current=!0}},y=()=>
1{if(i.isClosePausedRef.current){const S=new CustomEvent(Nt);x.dispatchEvent(S),i.isClosePausedRef.current=!1}},C=S=>{!w.contains(S.relatedTarget)&&y()},E=()=>{w.contains(document.activeElement)||y()};return w.addEventListener("focusin",b),w.addEventListener("focusout",C),w.addEventListener("pointermove",b),w.addEventListener("pointerleave",E),window.addEventListener("blur",b),window.addEventListener("focus",y),()=>{w.removeEventListener("focusin",b),w.removeEventListener("focusout",C),w.removeEventListener("pointermove",b),w.removeEventListener("pointerleave",E),window.removeEventListener("blur",b),window.removeEventListener("focus",y)}}},[g,i.isClosePausedRef]);const v=c.useCallback(({tabbingDirection:w})=>{const b=a().map(y=>{const C=y.ref.current,E=[C,...li(C)];return w==="forwards"?E:E.reverse()});return(w==="forwards"?b.reverse():b).flat()},[a]);return c.useEffect(()=>{const w=f.current;if(w){const x=b=>{var E,S,T;const y=b.altKey||b.ctrlKey||b.metaKey;if(b.key==="Tab"&&!y){const P=document.activeElement,A=b.shiftKey;if(b.target===w&&A){(E=l.current)==null||E.focus();return}const F=v({tabbingDirection:A?"backwards":"forwards"}),j=F.findIndex(R=>R===P);gt(F.slice(j+1))?b.preventDefault():A?(S=l.current)==null||S.focus():(T=d.current)==null||T.focus()}};return w.addEventListener("keydown",x),()=>w.removeEventListener("keydown",x)}},[a,v]),h.jsxs($s,{ref:u,role:"region","aria-label":o.replace("{hotkey}",m),tabIndex:-1,style:{pointerEvents:g?void 0:"none"},children:[g&&h.jsx(Dt,{ref:l,onFocusFromOutsideViewport:()=>{const w=v({tabbingDirection:"forwards"});gt(w)}}),h.jsx(Yt.Slot,{scope:n,children:h.jsx(N.ol,{tabIndex:-1,...s,ref:p})}),g&&h.jsx(Dt,{ref:d,onFocusFromOutsideViewport:()=>{const w=v({tabbingDirection:"backwards"});gt(w)}})]})});ir.displayName=sr;var ar="ToastFocusProxy",Dt=c.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,s=tt(ar,n);return h.jsx(et,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:i=>{var l;const a=i.relatedTarget;!((l=s.viewport)!=null&&l.contains(a))&&r()}})});Dt.displayName=ar;var nt="Toast",Zs="toast.swipeStart",Qs="toast.swipeMove",Js="toast.swipeCancel",ei="toast.swipeEnd",cr=c.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:s,...i}=e,[a=!0,u]=fe({prop:r,defaultProp:o,onChange:s});return h.jsx(K,{present:n||a,children:h.jsx(ri,{open:a,...i,ref:t,onClose:()=>u(!1),onPause:H(e.onPause),onResume:H(e.onResume),onSwipeStart:_(e.onSwipeStart,l=>{l.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:_(e.onSwipeMove,l=>{const{x:d,y:f}=l.detail.delta;l.currentTarget.setAttribute("data-swipe","move"),l.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),l.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:_(e.onSwipeCancel,l=>{l.currentTarget.setAttribute("data-swipe","cancel"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),l.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:_(e.onSwipeEnd,l=>{const{x:d,y:f}=l.detail.delta;l.currentTarget.setAttribute("data-swipe","end"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),l.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),l.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),u(!1)})})})});cr.displayName=nt;var[ti,ni]=rr(nt,{onClose(){}}),ri=c.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:s,onClose:i,onEscapeKeyDown:a,onPause:u,onResume:l,onSwipeStart:d,onSwipeMove:f,onSwipeCancel:p,onSwipeEnd:m,...g}=e,v=tt(nt,n),[w,x]=c.useState(null),b=$(t,R=>x(R)),y=c.useRef(null),C=c.useRef(null),E=o||v.duration,S=c.useRef(0),T=c.useRef(E),P=c.useRef(0),{onToastAdd:A,onToastRemove:O}=v,M=H(()=>{var L;(w==null?void 0:w.contains(document.activeElement))&&((L=v.viewport)==null||L.focus()),i()}),F=c.useCallback(R=>
vendor: 4,522 bytes, line 1
1{!R||R===1/0||(window.clearTimeout(P.current),S.current=new Date().getTime(),P.current=window.setTimeout(M,R))},[M]);c.useEffect(()=>{const R=v.viewport;if(R){const L=()=>{F(T.current),l==null||l()},I=()=>{const k=new Date().getTime()-S.current;T.current=T.current-k,window.clearTimeout(P.current),u==null||u()};return R.addEventListener(_t,I),R.addEventListener(Nt,L),()=>{R.removeEventListener(_t,I),R.removeEventListener(Nt,L)}}},[v.viewport,E,u,l,F]),c.useEffect(()=>{s&&!v.isClosePausedRef.current&&F(E)},[s,E,v.isClosePausedRef,F]),c.useEffect(()=>(A(),()=>O()),[A,O]);const j=c.useMemo(()=>w?mr(w):null,[w]);return v.viewport?h.jsxs(h.Fragment,{children:[j&&h.jsx(oi,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:j}),h.jsx(ti,{scope:n,onClose:M,children:Bt.createPortal(h.jsx(Yt.ItemSlot,{scope:n,children:h.jsx(ks,{asChild:!0,onEscapeKeyDown:_(a,()=>{v.isFocusedToastEscapeKeyDownRef.current||M(),v.isFocusedToastEscapeKeyDownRef.current=!1}),children:h.jsx(N.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":v.swipeDirection,...g,ref:b,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:_(e.onKeyDown,R=>{R.key==="Escape"&&(a==null||a(R.nativeEvent),R.nativeEvent.defaultPrevented||(v.isFocusedToastEscapeKeyDownRef.current=!0,M()))}),onPointerDown:_(e.onPointerDown,R=>{R.button===0&&(y.current={x:R.clientX,y:R.clientY})}),onPointerMove:_(e.onPointerMove,R=>{if(!y.current)return;const L=R.clientX-y.current.x,I=R.clientY-y.current.y,k=!!C.current,D=["left","right"].includes(v.swipeDirection),W=["left","up"].includes(v.swipeDirection)?Math.min:Math.max,z=D?W(0,L):0,me=D?0:W(0,I),Pe=R.pointerType==="touch"?10:2,he={x:z,y:me},Ie={originalEvent:R,delta:he};k?(C.current=he,Fe(Qs,f,Ie,{discrete:!1})):_n(he,v.swipeDirection,Pe)?(C.current=he,Fe(Zs,d,Ie,{discrete:!1}),R.target.setPointerCapture(R.pointerId)):(Math.abs(L)>Pe||Math.abs(I)>Pe)&&(y.current=null)}),onPointerUp:_(e.onPointerUp,R=>{const L=C.current,I=R.target;if(I.hasPointerCapture(R.pointerId)&&I.releasePointerCapture(R.pointerId),C.current=null,y.current=null,L){const k=R.currentTarget,D={originalEvent:R,delta:L};_n(L,v.swipeDirection,v.swipeThreshold)?Fe(ei,m,D,{discrete:!0}):Fe(Js,p,D,{discrete:!0}),k.addEventListener("click",W=>W.preventDefault(),{once:!0})}})})})}),v.viewport)})]}):null}),oi=e=>{const{__scopeToast:t,children:n,...r}=e,o=tt(nt,t),[s,i]=c.useState(!1),[a,u]=c.useState(!1);return ai(()=>i(!0)),c.useEffect(()=>{const l=window.setTimeout(()=>u(!0),1e3);return()=>window.clearTimeout(l)},[]),a?null:h.jsx(Ut,{asChild:!0,children:h.jsx(et,{...r,children:s&&h.jsxs(h.Fragment,{children:[o.label," ",n]})})})},si="ToastTitle",lr=c.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return h.jsx(N.div,{...r,ref:t})});lr.displayName=si;var ii="ToastDescription",ur=c.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return h.jsx(N.div,{...r,ref:t})});ur.displayName=ii;var dr="ToastAction",fr=c.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?h.jsx(vr,{altText:n,asChild:!0,children:h.jsx(Kt,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${dr}\`. Expected non-empty \`string\`.`),null)});fr.displayName=dr;var pr="ToastClose",Kt=c.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=ni(pr,n);return h.jsx(vr,{asChild:!0,children:h.jsx(N.button,{type:"button",...r,ref:t,onClick:_(e.onClick,o.onClose)})})});Kt.displayName=pr;var vr=c.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return h.jsx(N.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function mr(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),ci(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",s=r.dataset.radixToastAnnounceExclude==="";if(!o)if(s){const i=r.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...mr(r))}}),t}function Fe(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Jn(o,s):o.dispatchEvent(s)}var _n=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),s=r>o;return t==="left"||t==="right"?s&&r>n:!s&&o>n};function ai(e=()=>{}){const t=H(e);Y(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}
vendor: 10,945 bytes, line 1
1function ci(e){return e.nodeType===e.ELEMENT_NODE}function li(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 gt(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var Ul=or,zl=ir,Yl=cr,Kl=lr,Xl=ur,Gl=fr,ql=Kt,ui=ys.useId||(()=>{}),di=0;function ie(e){const[t,n]=c.useState(ui());return Y(()=>{e||n(r=>r??String(di++))},[e]),e||(t?`radix-${t}`:"")}const fi=["top","right","bottom","left"],ae=Math.min,V=Math.max,ze=Math.round,je=Math.floor,ce=e=>({x:e,y:e}),pi={left:"right",right:"left",bottom:"top",top:"bottom"},vi={start:"end",end:"start"};function It(e,t,n){return V(e,ae(t,n))}function ne(e,t){return typeof e=="function"?e(t):e}function re(e){return e.split("-")[0]}function Te(e){return e.split("-")[1]}function Xt(e){return e==="x"?"y":"x"}function Gt(e){return e==="y"?"height":"width"}function le(e){return["top","bottom"].includes(re(e))?"y":"x"}function qt(e){return Xt(le(e))}function mi(e,t,n){n===void 0&&(n=!1);const r=Te(e),o=qt(e),s=Gt(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Ye(i)),[i,Ye(i)]}function hi(e){const t=Ye(e);return[Mt(e),t,Mt(t)]}function Mt(e){return e.replace(/start|end/g,t=>vi[t])}function gi(e,t,n){const r=["left","right"],o=["right","left"],s=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?s:i;default:return[]}}function wi(e,t,n,r){const o=Te(e);let s=gi(re(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Mt)))),s}function Ye(e){return e.replace(/left|right|bottom|top/g,t=>pi[t])}function xi(e){return{top:0,right:0,bottom:0,left:0,...e}}function hr(e){return typeof e!="number"?xi(e):{top:e,right:e,bottom:e,left:e}}function Ke(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Nn(e,t,n){let{reference:r,floating:o}=e;const s=le(t),i=qt(t),a=Gt(i),u=re(t),l=s==="y",d=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,p=r[a]/2-o[a]/2;let m;switch(u){case"top":m={x:d,y:r.y-o.height};break;case"bottom":m={x:d,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:f};break;case"left":m={x:r.x-o.width,y:f};break;default:m={x:r.x,y:r.y}}switch(Te(t)){case"start":m[i]-=p*(n&&l?-1:1);break;case"end":m[i]+=p*(n&&l?-1:1);break}return m}const bi=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),u=await(i.isRTL==null?void 0:i.isRTL(t));let l=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=Nn(l,r,u),p=r,m={},g=0;for(let v=0;v<a.length;v++){const{name:w,fn:x}=a[v],{x:b,y,data:C,reset:E}=await x({x:d,y:f,initialPlacement:r,placement:p,strategy:o,middlewareData:m,rects:l,platform:i,elements:{reference:e,floating:t}});d=b??d,f=y??f,m={...m,[w]:{...m[w],...C}},E&&g<=50&&(g++,typeof E=="object"&&(E.placement&&(p=E.placement),E.rects&&(l=E.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:d,y:f}=Nn(l,p,u)),v=-1)}return{x:d,y:f,placement:p,strategy:o,middlewareData:m}};async function _e(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:u}=e,{boundary:l="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:m=0}=ne(t,e),g=hr(m),w=a[p?f==="floating"?"reference":"floating":f],x=Ke(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(w)))==null||n?w:w.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:l,rootBoundary:d,strategy:u})),b=f==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,y=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),C=await(s.isElement==null?void 0:s.isElement(y))?await(s.getScale==null?void 0:s.getScale(y))||{x:1,y:1}:{x:1,y:1},E=Ke(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:y,strategy:u}):b);return{top:(x.top-E.top+g.top)/C.y,bottom:(E.bottom-x.bottom+g.bottom)/C.y,left:(x.left-E.left+g.left)/C.x,right:(E.right-x.right+g.right)/C.x}}const yi=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:u}=t,{element:l,padding:d=0}=ne(e,t)||{};if(l==null)return{};const f=hr(d),p={x:n,y:r},m=qt(o),g=Gt(m),v=await i.getDimensions(l),w=m==="y",x=w?"top":"left",b=w?"bottom":"right",y=w?"clientHeight":"clientWidth",C=s.reference[g]+s.reference[m]-p[m]-s.floating[g],E=p[m]-s.reference[m],S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l));let T=S?S[y]:0;(!T||!await(i.isElement==null?void 0:i.isElement(S)))&&(T=a.floating[y]||s.floating[g]);const P=C/2-E/2,A=T/2-v[g]/2-1,O=ae(f[x],A),M=ae(f[b],A),F=O,j=T-v[g]-M,R=T/2-v[g]/2+P,L=It(F,R,j),I=!u.arrow&&Te(o)!=null&&R!==L&&s.reference[g]/2-(R<F?O:M)-v[g]/2<0,k=I?R<F?R-F:R-j:0;return{[m]:p[m]+k,data:{[m]:L,centerOffset:R-L-k,...I&&{alignmentOffset:k}},reset:I}}}),Ci=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:u,elements:l}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:v=!0,...w}=ne(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const x=re(o),b=le(a),y=re(a)===a,C=await(u.isRTL==null?void 0:u.isRTL(l.floating)),E=p||(y||!v?[Ye(a)]:hi(a)),S=g!=="none";!p&&S&&E.push(...wi(a,v,g,C));const T=[a,...E],P=await _e(t,w),A=[];let O=((r=s.flip)==null?void 0:r.overflows)||[];if(d&&A.push(P[x]),f){const R=mi(o,i,C);A.push(P[R[0]],P[R[1]])}if(O=[...O,{placement:o,overflows:A}],!A.every(R=>R<=0)){var M,F;const R=(((M=s.flip)==null?void 0:M.index)||0)+1,L=T[R];if(L)return{data:{index:R,overflows:O},reset:{placement:L}};let I=(F=O.filter(k=>k.overflows[0]<=0).sort((k,D)=>k.overflows[1]-D.overflows[1])[0])==null?void 0:F.placement;if(!I)switch(m){case"bestFit":{var j;const k=(j=O.filter(D=>{if(S){const W=le(D.placement);return W===b||W==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(W=>W>0).reduce((W,z)=>W+z,0)]).sort((D,W)=>D[1]-W[1])[0])==null?void 0:j[0];k&&(I=k);break}case"initialPlacement":I=a;break}if(o!==I)return{reset:{placement:I}}}return{}}}};function Dn(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function In(e){return fi.some(t=>e[t]>=0)}const Ei=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=ne(e,t);switch(r){case"referenceHidden":{const s=await _e(t,{...o,elementContext:"reference"}),i=Dn(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:In(i)}}}case"escaped":{const s=await _e(t,{...o,altBoundary:!0}),i=Dn(s,n.floating);return{data:{escapedOffsets:i,escaped:In(i)}}}default:return{}}}}};async function Si(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=re(n),a=Te(n),u=le(n)==="y",l=["left","top"].includes(i)?-1:1,d=s&&u?-1:1,f=ne(t,e);let{mainAxis:p,crossAxis:m,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof g=="number"&&(m=a==="end"?g*-1:g),u?{x:m*d,y:p*l}:{x:p*l,y:m*d}}const Ti=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,u=await Si(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+u.x,y:s+u.y,data:{...u,placement:i}}}}},Ri=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:w=>{let{x,y:b}=w;return{x,y:b}}},...u}=ne(e,t),l={x:n,y:r},d=await _e(t,u),f=le(re(o)),p=Xt(f);let m=l[p],g=l[f];if(s){const w=p==="y"?"top":"left",x=p==="y"?"bottom":"right",b=m+d[w],y=m-d[x];m=It(b,m,y)}if(i){const w=f==="y"?"top":"left",x=f==="y"?"bottom":"right",b=g+d[w],y=g-d[x];g=It(b,g,y)}const v=a.fn({...t,[p]:m,[f]:g});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[p]:s,[f]:i}}}}}},Pi=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:u=!0,crossAxis:l=!0}=ne(e,t),d={x:n,y:r},f=le(o),p=Xt(f);let m=d[p],g=d[f];const v=ne(a,t),w=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(u){const y=p==="y"?"height":"width",C=s.reference[p]-s.floating[y]+w.mainAxis,E=s.reference[p]+s.reference[y]-w.mainAxis;m<C?m=C:m>E&&(m=E)}if(l){var x,b;const y=p==="y"?"width":"height",C=["top","left"].includes(re(o)),E=s.reference[f]-s.floating[y]+(C&&((x=i.offset)==null?void 0:x[f])||0)+(C?0:w.crossAxis),S=s.reference[f]+s.reference[y]+(C?0:((b=i.offset)==null?void 0:b[f])||0)-(C?w.crossAxis:0);g<E?g=E:g>S&&(g=S)}return{[p]:m,[f]:g}}}},Ai=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:u=()=>{},...l}=ne(e,t),d=await _e(t,l),f=re(o),p=Te(o),m=le(o)==="y",{width:g,height:v}=s.floating;let w,x;f==="top"||f==="bottom"?(w=f,x=p===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(x=f,w=p==="end"?"top":"bottom");const b=v-d.top-d.bottom,y=g-d.left-d.right,C=ae(v-d[w],b),E=ae(g-d[x],y),S=!t.middlewareData.shift;let T=C,P=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(T=b),S&&!p){const O=V(d.left,0),M=V(d.right,0),F=V(d.top,0),j=V(d.bottom,0);m?P=g-2*(O!==0||M!==0?O+M:V(d.left,d.right)):T=v-2*(F!==0||j!==0?F+j:V(d.top,d.bottom))}await u({...t,availableWidth:P,availableHeight:T});const A=await i.getDimensions(a.floating);return g!==A.width||v!==A.height?{reset:{rects:!0}}:{}}}};function rt(){return typeof window<"u"}function Re(e){return gr(e)?(e.nodeName||"").toLowerCase():"#document"}function U(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ee(e){var t;return(t=(gr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function gr(e){return rt()?e instanceof Node||e instanceof U(e).Node:!1}function G(e){return rt()?e instanceof Element||e instanceof U(e).Element:!1}function J(e){return rt()?e instanceof HTMLElement||e instanceof U(e).HTMLElement:!1}function Mn(e){return!rt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof U(e).ShadowRoot}function De(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=q(e);
vendor: 4,386 bytes, line 1
1return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Oi(e){return["table","td","th"].includes(Re(e))}function ot(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Zt(e){const t=Qt(),n=G(e)?q(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function _i(e){let t=ue(e);for(;J(t)&&!Ce(t);){if(Zt(t))return t;if(ot(t))return null;t=ue(t)}return null}function Qt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ce(e){return["html","body","#document"].includes(Re(e))}function q(e){return U(e).getComputedStyle(e)}function st(e){return G(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ue(e){if(Re(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Mn(e)&&e.host||ee(e);return Mn(t)?t.host:t}function wr(e){const t=ue(e);return Ce(t)?e.ownerDocument?e.ownerDocument.body:e.body:J(t)&&De(t)?t:wr(t)}function Ne(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=wr(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=U(o);if(s){const a=Lt(i);return t.concat(i,i.visualViewport||[],De(o)?o:[],a&&n?Ne(a):[])}return t.concat(o,Ne(o,[],n))}function Lt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function xr(e){const t=q(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=J(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=ze(n)!==s||ze(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function Jt(e){return G(e)?e:e.contextElement}function be(e){const t=Jt(e);if(!J(t))return ce(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=xr(t);let i=(s?ze(n.width):n.width)/r,a=(s?ze(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const Ni=ce(0);function br(e){const t=U(e);return!Qt()||!t.visualViewport?Ni:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Di(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==U(e)?!1:t}function pe(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Jt(e);let i=ce(1);t&&(r?G(r)&&(i=be(r)):i=be(e));const a=Di(s,n,r)?br(s):ce(0);let u=(o.left+a.x)/i.x,l=(o.top+a.y)/i.y,d=o.width/i.x,f=o.height/i.y;if(s){const p=U(s),m=r&&G(r)?U(r):r;let g=p,v=Lt(g);for(;v&&r&&m!==g;){const w=be(v),x=v.getBoundingClientRect(),b=q(v),y=x.left+(v.clientLeft+parseFloat(b.paddingLeft))*w.x,C=x.top+(v.clientTop+parseFloat(b.paddingTop))*w.y;u*=w.x,l*=w.y,d*=w.x,f*=w.y,u+=y,l+=C,g=U(v),v=Lt(g)}}return Ke({width:d,height:f,x:u,y:l})}function Ii(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=ee(r),a=t?ot(t.floating):!1;if(r===i||a&&s)return n;let u={scrollLeft:0,scrollTop:0},l=ce(1);const d=ce(0),f=J(r);if((f||!f&&!s)&&((Re(r)!=="body"||De(i))&&(u=st(r)),J(r))){const p=pe(r);l=be(r),d.x=p.x+r.clientLeft,d.y=p.y+r.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-u.scrollLeft*l.x+d.x,y:n.y*l.y-u.scrollTop*l.y+d.y}}function Mi(e){return Array.from(e.getClientRects())}function Ft(e,t){const n=st(e).scrollLeft;return t?t.left+n:pe(ee(e)).left+n}function Li(e){const t=ee(e),n=st(e),r=e.ownerDocument.body,o=V(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=V(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Ft(e);const a=-n.scrollTop;return q(r).direction==="rtl"&&(i+=V(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}function Fi(e,t){const n=U(e),r=ee(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,u=0;if(o){s=o.width,i=o.height;const l=Qt();(!l||l&&t==="fixed")&&(a=o.offsetLeft,u=o.offsetTop)}return{width:s,height:i,x:a,y:u}}function ji(e,t){const n=pe(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=J(e)?be(e):ce(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,u=o*s.x,l=r*s.y;return{width:i,height:a,x:u,y:l}}function Ln(e,t,n){let r;if(t==="viewport")r=Fi(e,n);else if(t==="document")r=Li(ee(e));else if(G(t))r=ji(t,n);else{const o=br(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return Ke(r)}
vendor: 4,148 bytes, line 1
1function yr(e,t){const n=ue(e);return n===t||!G(n)||Ce(n)?!1:q(n).position==="fixed"||yr(n,t)}function ki(e,t){const n=t.get(e);if(n)return n;let r=Ne(e,[],!1).filter(a=>G(a)&&Re(a)!=="body"),o=null;const s=q(e).position==="fixed";let i=s?ue(e):e;for(;G(i)&&!Ce(i);){const a=q(i),u=Zt(i);!u&&a.position==="fixed"&&(o=null),(s?!u&&!o:!u&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||De(i)&&!u&&yr(e,i))?r=r.filter(d=>d!==i):o=a,i=ue(i)}return t.set(e,r),r}function $i(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?ot(t)?[]:ki(t,this._c):[].concat(n),r],a=i[0],u=i.reduce((l,d)=>{const f=Ln(t,d,o);return l.top=V(f.top,l.top),l.right=ae(f.right,l.right),l.bottom=ae(f.bottom,l.bottom),l.left=V(f.left,l.left),l},Ln(t,a,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function Wi(e){const{width:t,height:n}=xr(e);return{width:t,height:n}}function Hi(e,t,n){const r=J(t),o=ee(t),s=n==="fixed",i=pe(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const u=ce(0);if(r||!r&&!s)if((Re(t)!=="body"||De(o))&&(a=st(t)),r){const m=pe(t,!0,s,t);u.x=m.x+t.clientLeft,u.y=m.y+t.clientTop}else o&&(u.x=Ft(o));let l=0,d=0;if(o&&!r&&!s){const m=o.getBoundingClientRect();d=m.top+a.scrollTop,l=m.left+a.scrollLeft-Ft(o,m)}const f=i.left+a.scrollLeft-u.x-l,p=i.top+a.scrollTop-u.y-d;return{x:f,y:p,width:i.width,height:i.height}}function wt(e){return q(e).position==="static"}function Fn(e,t){if(!J(e)||q(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ee(e)===n&&(n=n.ownerDocument.body),n}function Cr(e,t){const n=U(e);if(ot(e))return n;if(!J(e)){let o=ue(e);for(;o&&!Ce(o);){if(G(o)&&!wt(o))return o;o=ue(o)}return n}let r=Fn(e,t);for(;r&&Oi(r)&&wt(r);)r=Fn(r,t);return r&&Ce(r)&&wt(r)&&!Zt(r)?n:r||_i(e)||n}const Bi=async function(e){const t=this.getOffsetParent||Cr,n=this.getDimensions,r=await n(e.floating);return{reference:Hi(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Vi(e){return q(e).direction==="rtl"}const Ui={convertOffsetParentRelativeRectToViewportRelativeRect:Ii,getDocumentElement:ee,getClippingRect:$i,getOffsetParent:Cr,getElementRects:Bi,getClientRects:Mi,getDimensions:Wi,getScale:be,isElement:G,isRTL:Vi};function zi(e,t){let n=null,r;const o=ee(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,u){a===void 0&&(a=!1),u===void 0&&(u=1),s();const{left:l,top:d,width:f,height:p}=e.getBoundingClientRect();if(a||t(),!f||!p)return;const m=je(d),g=je(o.clientWidth-(l+f)),v=je(o.clientHeight-(d+p)),w=je(l),b={rootMargin:-m+"px "+-g+"px "+-v+"px "+-w+"px",threshold:V(0,ae(1,u))||1};let y=!0;function C(E){const S=E[0].intersectionRatio;if(S!==u){if(!y)return i();S?i(!1,S):r=setTimeout(()=>{i(!1,1e-7)},1e3)}y=!1}try{n=new IntersectionObserver(C,{...b,root:o.ownerDocument})}catch{n=new IntersectionObserver(C,b)}n.observe(e)}return i(!0),s}function Yi(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,l=Jt(e),d=o||s?[...l?Ne(l):[],...Ne(t)]:[];d.forEach(x=>{o&&x.addEventListener("scroll",n,{passive:!0}),s&&x.addEventListener("resize",n)});const f=l&&a?zi(l,n):null;let p=-1,m=null;i&&(m=new ResizeObserver(x=>{let[b]=x;b&&b.target===l&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var y;(y=m)==null||y.observe(t)})),n()}),l&&!u&&m.observe(l),m.observe(t));let g,v=u?pe(e):null;u&&w();function w(){const x=pe(e);v&&(x.x!==v.x||x.y!==v.y||x.width!==v.width||x.height!==v.height)&&n(),v=x,g=requestAnimationFrame(w)}return n(),()=>{var x;d.forEach(b=>{o&&b.removeEventListener("scroll",n),s&&b.removeEventListener("resize",n)}),f==null||f(),(x=m)==null||x.disconnect(),m=null,u&&cancelAnimationFrame(g)}}const Ki=Ti,Xi=Ri,Gi=Ci,qi=Ai,Zi=Ei,jn=yi,Qi=Pi,Ji=(e,t,n)=>{const r=new Map,o={platform:Ui,...n},s={...o.platform,_c:r};return bi(e,t,{...o,platform:s})};var Be=typeof document<"u"?c.useLayoutEffect:c.useEffect;function Xe(e,t){if(e===t)return!0;
vendor: 4,857 bytes, line 1
1if(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(!Xe(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 s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!Xe(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Er(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function kn(e,t){const n=Er(e);return Math.round(t*n)/n}function xt(e){const t=c.useRef(e);return Be(()=>{t.current=e}),t}function ea(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:u,open:l}=e,[d,f]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=c.useState(r);Xe(p,r)||m(r);const[g,v]=c.useState(null),[w,x]=c.useState(null),b=c.useCallback(D=>{D!==S.current&&(S.current=D,v(D))},[]),y=c.useCallback(D=>{D!==T.current&&(T.current=D,x(D))},[]),C=s||g,E=i||w,S=c.useRef(null),T=c.useRef(null),P=c.useRef(d),A=u!=null,O=xt(u),M=xt(o),F=xt(l),j=c.useCallback(()=>{if(!S.current||!T.current)return;const D={placement:t,strategy:n,middleware:p};M.current&&(D.platform=M.current),Ji(S.current,T.current,D).then(W=>{const z={...W,isPositioned:F.current!==!1};R.current&&!Xe(P.current,z)&&(P.current=z,Bt.flushSync(()=>{f(z)}))})},[p,t,n,M,F]);Be(()=>{l===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,f(D=>({...D,isPositioned:!1})))},[l]);const R=c.useRef(!1);Be(()=>(R.current=!0,()=>{R.current=!1}),[]),Be(()=>{if(C&&(S.current=C),E&&(T.current=E),C&&E){if(O.current)return O.current(C,E,j);j()}},[C,E,j,O,A]);const L=c.useMemo(()=>({reference:S,floating:T,setReference:b,setFloating:y}),[b,y]),I=c.useMemo(()=>({reference:C,floating:E}),[C,E]),k=c.useMemo(()=>{const D={position:n,left:0,top:0};if(!I.floating)return D;const W=kn(I.floating,d.x),z=kn(I.floating,d.y);return a?{...D,transform:"translate("+W+"px, "+z+"px)",...Er(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:W,top:z}},[n,a,I.floating,d.x,d.y]);return c.useMemo(()=>({...d,update:j,refs:L,elements:I,floatingStyles:k}),[d,j,L,I,k])}const ta=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?jn({element:r.current,padding:o}).fn(n):{}:r?jn({element:r,padding:o}).fn(n):{}}}},na=(e,t)=>({...Ki(e),options:[e,t]}),ra=(e,t)=>({...Xi(e),options:[e,t]}),oa=(e,t)=>({...Qi(e),options:[e,t]}),sa=(e,t)=>({...Gi(e),options:[e,t]}),ia=(e,t)=>({...qi(e),options:[e,t]}),aa=(e,t)=>({...Zi(e),options:[e,t]}),ca=(e,t)=>({...ta(e),options:[e,t]});var la="Arrow",Sr=c.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return h.jsx(N.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:h.jsx("polygon",{points:"0,0 30,0 15,10"})})});Sr.displayName=la;var ua=Sr;function da(e,t=[]){let n=[];function r(s,i){const a=c.createContext(i),u=n.length;n=[...n,i];function l(f){const{scope:p,children:m,...g}=f,v=(p==null?void 0:p[e][u])||a,w=c.useMemo(()=>g,Object.values(g));return h.jsx(v.Provider,{value:w,children:m})}function d(f,p){const m=(p==null?void 0:p[e][u])||a,g=c.useContext(m);if(g)return g;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${s}\``)}return l.displayName=s+"Provider",[l,d]}const o=()=>{const s=n.map(i=>c.createContext(i));return function(a){const u=(a==null?void 0:a[e])||s;return c.useMemo(()=>({[`__scope${e}`]:{...a,[e]:u}}),[a,u])}};return o.scopeName=e,[r,fa(o,...t)]}function fa(...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(s){const i=r.reduce((a,{useScope:u,scopeName:l})=>{const f=u(s)[`__scope${l}`];return{...a,...f}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function pa(e){const[t,n]=c.useState(void 0);return Y(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,a;if("borderBoxSize"in s){const u=s.borderBoxSize,l=Array.isArray(u)?u[0]:u;i=l.inlineSize,a=l.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var en="Popper",[Tr,Rr]=da(en),[va,Pr]=Tr(en),Ar=e=>{const{__scopePopper:t,children:n}=e,[r,o]=c.useState(null);return h.jsx(va,{scope:t,anchor:r,onAnchorChange:o,children:n})};Ar.displayName=en;var Or="PopperAnchor",_r=c.forwardRef((e,t)=>
vendor: 5,947 bytes, line 1
1{const{__scopePopper:n,virtualRef:r,...o}=e,s=Pr(Or,n),i=c.useRef(null),a=$(t,i);return c.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:h.jsx(N.div,{...o,ref:a})});_r.displayName=Or;var tn="PopperContent",[ma,ha]=Tr(tn),Nr=c.forwardRef((e,t)=>{var yn,Cn,En,Sn,Tn,Rn;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:u=!0,collisionBoundary:l=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:p=!1,updatePositionStrategy:m="optimized",onPlaced:g,...v}=e,w=Pr(tn,n),[x,b]=c.useState(null),y=$(t,Ae=>b(Ae)),[C,E]=c.useState(null),S=pa(C),T=(S==null?void 0:S.width)??0,P=(S==null?void 0:S.height)??0,A=r+(s!=="center"?"-"+s:""),O=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},M=Array.isArray(l)?l:[l],F=M.length>0,j={padding:O,boundary:M.filter(wa),altBoundary:F},{refs:R,floatingStyles:L,placement:I,isPositioned:k,middlewareData:D}=ea({strategy:"fixed",placement:A,whileElementsMounted:(...Ae)=>Yi(...Ae,{animationFrame:m==="always"}),elements:{reference:w.anchor},middleware:[na({mainAxis:o+P,alignmentAxis:i}),u&&ra({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?oa():void 0,...j}),u&&sa({...j}),ia({...j,apply:({elements:Ae,rects:Pn,availableWidth:hs,availableHeight:gs})=>{const{width:ws,height:xs}=Pn.reference,Me=Ae.floating.style;Me.setProperty("--radix-popper-available-width",`${hs}px`),Me.setProperty("--radix-popper-available-height",`${gs}px`),Me.setProperty("--radix-popper-anchor-width",`${ws}px`),Me.setProperty("--radix-popper-anchor-height",`${xs}px`)}}),C&&ca({element:C,padding:a}),xa({arrowWidth:T,arrowHeight:P}),p&&aa({strategy:"referenceHidden",...j})]}),[W,z]=Mr(I),me=H(g);Y(()=>{k&&(me==null||me())},[k,me]);const Pe=(yn=D.arrow)==null?void 0:yn.x,he=(Cn=D.arrow)==null?void 0:Cn.y,Ie=((En=D.arrow)==null?void 0:En.centerOffset)!==0,[vs,ms]=c.useState();return Y(()=>{x&&ms(window.getComputedStyle(x).zIndex)},[x]),h.jsx("div",{ref:R.setFloating,"data-radix-popper-content-wrapper":"",style:{...L,transform:k?L.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:vs,"--radix-popper-transform-origin":[(Sn=D.transformOrigin)==null?void 0:Sn.x,(Tn=D.transformOrigin)==null?void 0:Tn.y].join(" "),...((Rn=D.hide)==null?void 0:Rn.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:h.jsx(ma,{scope:n,placedSide:W,onArrowChange:E,arrowX:Pe,arrowY:he,shouldHideArrow:Ie,children:h.jsx(N.div,{"data-side":W,"data-align":z,...v,ref:y,style:{...v.style,animation:k?void 0:"none"}})})})});Nr.displayName=tn;var Dr="PopperArrow",ga={top:"bottom",right:"left",bottom:"top",left:"right"},Ir=c.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=ha(Dr,r),i=ga[s.placedSide];return h.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:h.jsx(ua,{...o,ref:n,style:{...o.style,display:"block"}})})});Ir.displayName=Dr;function wa(e){return e!==null}var xa=e=>({name:"transformOrigin",options:e,fn(t){var w,x,b;const{placement:n,rects:r,middlewareData:o}=t,i=((w=o.arrow)==null?void 0:w.centerOffset)!==0,a=i?0:e.arrowWidth,u=i?0:e.arrowHeight,[l,d]=Mr(n),f={start:"0%",center:"50%",end:"100%"}[d],p=(((x=o.arrow)==null?void 0:x.x)??0)+a/2,m=(((b=o.arrow)==null?void 0:b.y)??0)+u/2;let g="",v="";return l==="bottom"?(g=i?f:`${p}px`,v=`${-u}px`):l==="top"?(g=i?f:`${p}px`,v=`${r.floating.height+u}px`):l==="right"?(g=`${-u}px`,v=i?f:`${m}px`):l==="left"&&(g=`${r.floating.width+u}px`,v=i?f:`${m}px`),{data:{x:g,y:v}}}});function Mr(e){const[t,n="center"]=e.split("-");return[t,n]}var ba=Ar,ya=_r,Ca=Nr,Ea=Ir,[it,Zl]=de("Tooltip",[Rr]),at=Rr(),Lr="TooltipProvider",Sa=700,jt="tooltip.open",[Ta,nn]=it(Lr),Fr=e=>{const{__scopeTooltip:t,delayDuration:n=Sa,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,[i,a]=c.useState(!0),u=c.useRef(!1),l=c.useRef(0);return c.useEffect(()=>{const d=l.current;return()=>window.clearTimeout(d)},[]),h.jsx(Ta,{scope:t,isOpenDelayed:i,delayDuration:n,onOpen:c.useCallback(()=>{window.clearTimeout(l.current),a(!1)},[]),onClose:c.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a(!0),r)},[r]),isPointerInTransitRef:u,onPointerInTransitChange:c.useCallback(d=>{u.current=d},[]),disableHoverableContent:o,children:s})};Fr.displayName=Lr;var ct="Tooltip",[Ra,lt]=it(ct),jr=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:s,disableHoverableContent:i,delayDuration:a}=e,u=nn(ct,e.__scopeTooltip),l=at(t),[d,f]=c.useState(null),p=ie(),m=c.useRef(0),g=i??u.disableHoverableContent,v=a??u.delayDuration,w=c.useRef(!1),[x=!1,b]=fe({prop:r,defaultProp:o,onChange:T=>{T?(u.onOpen(),document.dispatchEvent(new CustomEvent(jt))):u.onClose(),s==null||s(T)}}),y=c.useMemo(()=>x?w.current?"delayed-open":"instant-open":"closed",[x]),C=c.useCallback(()=>{window.clearTimeout(m.current),m.current=0,w.current=!1,b(!0)},[b]),E=c.useCallback(()=>{window.clearTimeout(m.current),m.current=0,b(!1)},[b]),S=c.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{w.current=!0,b(!0),m.current=0},v)},[v,b]);return c.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),h.jsx(ba,{...l,children:h.jsx(Ra,{scope:t,contentId:p,open:x,stateAttribute:y,trigger:d,onTriggerChange:f,onTriggerEnter:c.useCallback(()=>{u.isOpenDelayed?S():C()},[u.isOpenDelayed,S,C]),onTriggerLeave:c.useCallback(()=>{g?E():(window.clearTimeout(m.current),m.current=0)},[E,g]),onOpen:C,onClose:E,disableHoverableContent:g,children:n})})};jr.displayName=ct;var kt="TooltipTrigger",kr=c.forwardRef((e,t)=>
vendor: 5,252 bytes, line 1
1{const{__scopeTooltip:n,...r}=e,o=lt(kt,n),s=nn(kt,n),i=at(n),a=c.useRef(null),u=$(t,a,o.onTriggerChange),l=c.useRef(!1),d=c.useRef(!1),f=c.useCallback(()=>l.current=!1,[]);return c.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),h.jsx(ya,{asChild:!0,...i,children:h.jsx(N.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:u,onPointerMove:_(e.onPointerMove,p=>{p.pointerType!=="touch"&&!d.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:_(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:_(e.onPointerDown,()=>{l.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:_(e.onFocus,()=>{l.current||o.onOpen()}),onBlur:_(e.onBlur,o.onClose),onClick:_(e.onClick,o.onClose)})})});kr.displayName=kt;var Pa="TooltipPortal",[Ql,Aa]=it(Pa,{forceMount:void 0}),Ee="TooltipContent",$r=c.forwardRef((e,t)=>{const n=Aa(Ee,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,i=lt(Ee,e.__scopeTooltip);return h.jsx(K,{present:r||i.open,children:i.disableHoverableContent?h.jsx(Wr,{side:o,...s,ref:t}):h.jsx(Oa,{side:o,...s,ref:t})})}),Oa=c.forwardRef((e,t)=>{const n=lt(Ee,e.__scopeTooltip),r=nn(Ee,e.__scopeTooltip),o=c.useRef(null),s=$(t,o),[i,a]=c.useState(null),{trigger:u,onClose:l}=n,d=o.current,{onPointerInTransitChange:f}=r,p=c.useCallback(()=>{a(null),f(!1)},[f]),m=c.useCallback((g,v)=>{const w=g.currentTarget,x={x:g.clientX,y:g.clientY},b=Ia(x,w.getBoundingClientRect()),y=Ma(x,b),C=La(v.getBoundingClientRect()),E=ja([...y,...C]);a(E),f(!0)},[f]);return c.useEffect(()=>()=>p(),[p]),c.useEffect(()=>{if(u&&d){const g=w=>m(w,d),v=w=>m(w,u);return u.addEventListener("pointerleave",g),d.addEventListener("pointerleave",v),()=>{u.removeEventListener("pointerleave",g),d.removeEventListener("pointerleave",v)}}},[u,d,m,p]),c.useEffect(()=>{if(i){const g=v=>{const w=v.target,x={x:v.clientX,y:v.clientY},b=(u==null?void 0:u.contains(w))||(d==null?void 0:d.contains(w)),y=!Fa(x,i);b?p():y&&(p(),l())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[u,d,i,l,p]),h.jsx(Wr,{...e,ref:s})}),[_a,Na]=it(ct,{isInside:!1}),Wr=c.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:i,...a}=e,u=lt(Ee,n),l=at(n),{onClose:d}=u;return c.useEffect(()=>(document.addEventListener(jt,d),()=>document.removeEventListener(jt,d)),[d]),c.useEffect(()=>{if(u.trigger){const f=p=>{const m=p.target;m!=null&&m.contains(u.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[u.trigger,d]),h.jsx(Je,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:h.jsxs(Ca,{"data-state":u.stateAttribute,...l,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[h.jsx(Qn,{children:r}),h.jsx(_a,{scope:n,isInside:!0,children:h.jsx(Ys,{id:u.contentId,role:"tooltip",children:o||r})})]})})});$r.displayName=Ee;var Hr="TooltipArrow",Da=c.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=at(n);return Na(Hr,n).isInside?null:h.jsx(Ea,{...o,...r,ref:t})});Da.displayName=Hr;function Ia(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Ma(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function La(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function Fa(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const a=t[s].x,u=t[s].y,l=t[i].x,d=t[i].y;u>r!=d>r&&n<(l-a)*(r-u)/(d-u)+a&&(o=!o)}return o}function ja(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),ka(t)}function ka(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],i=n[n.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Jl=Fr,eu=jr,tu=kr,nu=$r,bt="focusScope.autoFocusOnMount",yt="focusScope.autoFocusOnUnmount",$n={bubbles:!1,cancelable:!0},$a="FocusScope",Br=c.forwardRef((e,t)=>
vendor: 5,040 bytes, line 1
1{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[a,u]=c.useState(null),l=H(o),d=H(s),f=c.useRef(null),p=$(t,v=>u(v)),m=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(r){let v=function(y){if(m.paused||!a)return;const C=y.target;a.contains(C)?f.current=C:se(f.current,{select:!0})},w=function(y){if(m.paused||!a)return;const C=y.relatedTarget;C!==null&&(a.contains(C)||se(f.current,{select:!0}))},x=function(y){if(document.activeElement===document.body)for(const E of y)E.removedNodes.length>0&&se(a)};document.addEventListener("focusin",v),document.addEventListener("focusout",w);const b=new MutationObserver(x);return a&&b.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",w),b.disconnect()}}},[r,a,m.paused]),c.useEffect(()=>{if(a){Hn.add(m);const v=document.activeElement;if(!a.contains(v)){const x=new CustomEvent(bt,$n);a.addEventListener(bt,l),a.dispatchEvent(x),x.defaultPrevented||(Wa(za(Vr(a)),{select:!0}),document.activeElement===v&&se(a))}return()=>{a.removeEventListener(bt,l),setTimeout(()=>{const x=new CustomEvent(yt,$n);a.addEventListener(yt,d),a.dispatchEvent(x),x.defaultPrevented||se(v??document.body,{select:!0}),a.removeEventListener(yt,d),Hn.remove(m)},0)}}},[a,l,d,m]);const g=c.useCallback(v=>{if(!n&&!r||m.paused)return;const w=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,x=document.activeElement;if(w&&x){const b=v.currentTarget,[y,C]=Ha(b);y&&C?!v.shiftKey&&x===C?(v.preventDefault(),n&&se(y,{select:!0})):v.shiftKey&&x===y&&(v.preventDefault(),n&&se(C,{select:!0})):x===b&&v.preventDefault()}},[n,r,m.paused]);return h.jsx(N.div,{tabIndex:-1,...i,ref:p,onKeyDown:g})});Br.displayName=$a;function Wa(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(se(r,{select:t}),document.activeElement!==n)return}function Ha(e){const t=Vr(e),n=Wn(t,e),r=Wn(t.reverse(),e);return[n,r]}function Vr(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 Wn(e,t){for(const n of e)if(!Ba(n,{upTo:t}))return n}function Ba(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 Va(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&&Va(e)&&t&&e.select()}}var Hn=Ua();function Ua(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Bn(e,t),e.unshift(t)},remove(t){var n;e=Bn(e,t),(n=e[0])==null||n.resume()}}}function Bn(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function za(e){return e.filter(t=>t.tagName!=="A")}var Ct=0;function Ya(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Vn()),document.body.insertAdjacentElement("beforeend",e[1]??Vn()),Ct++,()=>{Ct===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Ct--}},[])}function Vn(){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 s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Q.apply(this,arguments)};function Ur(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 Ka(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var Ve="right-scroll-bar-position",Ue="width-before-scroll-bar",Xa="with-scroll-bars-hidden",Ga="--removed-body-scroll-bar-size";function Et(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function qa(e,t){var n=c.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 Za=typeof window<"u"?c.useLayoutEffect:c.useEffect,Un=new WeakMap;function Qa(e,t){var n=qa(null,function(r){return e.forEach(function(o){return Et(o,r)})});return Za(function(){var r=Un.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(a){s.has(a)||Et(a,null)}
vendor: 4,105 bytes, lines 1-16
1),s.forEach(function(a){o.has(a)||Et(a,i)})}Un.set(n,e)},[e]),n}function Ja(e){return e}function ec(e,t){t===void 0&&(t=Ja);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(s){var i=t(s,r);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var u=function(){var d=i;i=[],d.forEach(s)},l=function(){return Promise.resolve().then(u)};l(),n={push:function(d){i.push(d),l()},filter:function(d){return i=i.filter(d),n}}}};return o}function tc(e){e===void 0&&(e={});var t=ec(null);return t.options=Q({async:!0,ssr:!1},e),t}var zr=function(e){var t=e.sideCar,n=Ur(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 c.createElement(r,Q({},n))};zr.isSideCarExport=!0;function nc(e,t){return e.useMedium(t),zr}var Yr=tc(),St=function(){},ut=c.forwardRef(function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:St,onWheelCapture:St,onTouchMoveCapture:St}),o=r[0],s=r[1],i=e.forwardProps,a=e.children,u=e.className,l=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,m=e.noIsolation,g=e.inert,v=e.allowPinchZoom,w=e.as,x=w===void 0?"div":w,b=e.gapMode,y=Ur(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=p,E=Qa([n,t]),S=Q(Q({},y),o);return c.createElement(c.Fragment,null,d&&c.createElement(C,{sideCar:Yr,removeScrollBar:l,shards:f,noIsolation:m,inert:g,setCallbacks:s,allowPinchZoom:!!v,lockRef:n,gapMode:b}),i?c.cloneElement(c.Children.only(a),Q(Q({},S),{ref:E})):c.createElement(x,Q({},S,{className:u,ref:E}),a))});ut.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ut.classNames={fullWidth:Ue,zeroRight:Ve};var rc=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function oc(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=rc();return t&&e.setAttribute("nonce",t),e}function sc(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ic(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var ac=function(){var e=0,t=null;return{add:function(n){e==0&&(t=oc())&&(sc(t,n),ic(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},cc=function(){var e=ac();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Kr=function(){var e=cc(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},lc={left:0,top:0,right:0,gap:0},Tt=function(e){return parseInt(e||"",10)||0},uc=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[Tt(n),Tt(r),Tt(o)]},dc=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return lc;var t=uc(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])}},fc=Kr(),ye="data-scroll-locked",pc=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
2  .`.concat(Xa,` {
3   overflow: hidden `).concat(r,`;
4   padding-right: `).concat(a,"px ").concat(r,`;
5  }
6  body[`).concat(ye,`] {
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(s,`px;
12    padding-right: `).concat(i,`px;
13    margin-left:0;
14    margin-top:0;
15    margin-right: `).concat(a,"px ").concat(r,`;
16    `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";
16")].filter(Boolean).join(""),`
17  }
18  
19  .`).concat(Ve,` {
20    right: `).concat(a,"px ").concat(r,`;
21  }
22  
23  .`).concat(Ue,` {
24    margin-right: `).concat(a,"px ").concat(r,`;
25  }
26  
27  .`).concat(Ve," .").concat(Ve,` {
28    right: 0 `).concat(r,`;
29  }
30  
31  .`).concat(Ue," .").concat(Ue,` {
32    margin-right: 0 `).concat(r,`;
33  }
34  
35  body[`).concat(ye,`] {
36    `).concat(Ga,": ").concat(a,`px;
37  }
38`)},zn=function(){var e=parseInt(document.body.getAttribute(ye)||"0",10);return isFinite(e)?e:0},vc=function(){c.useEffect(function(){return document.body.setAttribute(ye,(zn()+1).toString()),function(){var e=zn()-1;e<=0?document.body.removeAttribute(ye):document.body.setAttribute(ye,e.toString())}},[])},mc=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;vc();var s=c.useMemo(function(){return dc(o)},[o]);return c.createElement(fc,{styles:pc(s,!t,o,n?"":"!important")})},$t=!1;if(typeof window<"u")try{var ke=Object.defineProperty({},"passive",{get:function(){return $t=!0,!0}});window.addEventListener("test",ke,ke),window.removeEventListener("test",ke,ke)}catch{$t=!1}var ge=$t?{passive:!1}:!1,hc=function(e){return e.tagName==="TEXTAREA"},Xr=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!hc(e)&&n[t]==="visible")},gc=function(e){return Xr(e,"overflowY")},wc=function(e){return Xr(e,"overflowX")},Yn=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Gr(e,r);if(o){var s=qr(e,r),i=s[1],a=s[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},xc=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},bc=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Gr=function(e,t){return e==="v"?gc(t):wc(t)},qr=function(e,t){return e==="v"?xc(t):bc(t)},yc=function(e,t){return e==="h"&&t==="rtl"?-1:1},Cc=function(e,t,n,r,o){var s=yc(e,window.getComputedStyle(t).direction),i=s*r,a=n.target,u=t.contains(a),l=!1,d=i>0,f=0,p=0;do{var m=qr(e,a),g=m[0],v=m[1],w=m[2],x=v-w-s*g;(g||x)&&Gr(e,a)&&(f+=x,p+=g),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!u&&a!==document.body||u&&(t.contains(a)||t===a));return(d&&(Math.abs(f)<1||!o)||!d&&(Math.abs(p)<1||!o))&&(l=!0),l},$e=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Kn=function(e){return[e.deltaX,e.deltaY]},Xn=function(e){return e&&"current"in e?e.current:e},Ec=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Sc=function(e){return`
39  .block-interactivity-`.concat(e,` {pointer-events: none;}
40  .allow-interactivity-`).concat(e,` {pointer-events: all;}
41`)},Tc=0,we=[];function Rc(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),o=c.useState(Tc++)[0],s=c.useState(Kr)[0],i=c.useRef(e);c.useEffect(function(){i.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=Ka([e.lockRef.current],(e.shards||[]).map(Xn),!0).filter(Boolean);return v.forEach(function(w){return w.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=c.useCallback(function(v,w){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!i.current.allowPinchZoom;var x=$e(v),b=n.current,y="deltaX"in v?v.deltaX:b[0]-x[0],C="deltaY"in v?v.deltaY:b[1]-x[1],E,S=v.target,T=Math.abs(y)>Math.abs(C)?"h":"v";if("touches"in v&&T==="h"&&S.type==="range")return!1;var P=Yn(T,S);if(!P)return!0;if(P?E=T:(E=T==="v"?"h":"v",P=Yn(T,S)),!P)return!1;if(!r.current&&"changedTouches"in v&&(y||C)&&(r.current=E),!E)return!0;var A=r.current||E;return Cc(A,w,v,A==="h"?y:C,!0)},[]),u=c.useCallback(function(v){var w=v;if(!(!we.length||we[we.length-1]!==s)){var x="deltaY"in w?Kn(w):$e(w),b=t.current.filter(function(E){return E.name===w.type&&(E.target===w.target||w.target===E.shadowParent)&&Ec(E.delta,x)})[0];if(b&&b.should){w.cancelable&&w.preventDefault();return}
vendor: 11,851 bytes, lines 41-45
41if(!b){var y=(i.current.shards||[]).map(Xn).filter(Boolean).filter(function(E){return E.contains(w.target)}),C=y.length>0?a(w,y[0]):!i.current.noIsolation;C&&w.cancelable&&w.preventDefault()}}},[]),l=c.useCallback(function(v,w,x,b){var y={name:v,delta:w,target:x,should:b,shadowParent:Pc(x)};t.current.push(y),setTimeout(function(){t.current=t.current.filter(function(C){return C!==y})},1)},[]),d=c.useCallback(function(v){n.current=$e(v),r.current=void 0},[]),f=c.useCallback(function(v){l(v.type,Kn(v),v.target,a(v,e.lockRef.current))},[]),p=c.useCallback(function(v){l(v.type,$e(v),v.target,a(v,e.lockRef.current))},[]);c.useEffect(function(){return we.push(s),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",u,ge),document.addEventListener("touchmove",u,ge),document.addEventListener("touchstart",d,ge),function(){we=we.filter(function(v){return v!==s}),document.removeEventListener("wheel",u,ge),document.removeEventListener("touchmove",u,ge),document.removeEventListener("touchstart",d,ge)}},[]);var m=e.removeScrollBar,g=e.inert;return c.createElement(c.Fragment,null,g?c.createElement(s,{styles:Sc(o)}):null,m?c.createElement(mc,{gapMode:e.gapMode}):null)}function Pc(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Ac=nc(Yr,Rc);var Zr=c.forwardRef(function(e,t){return c.createElement(ut,Q({},e,{ref:t,sideCar:Ac}))});Zr.classNames=ut.classNames;var Oc=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},xe=new WeakMap,We=new WeakMap,He={},Rt=0,Qr=function(e){return e&&(e.host||Qr(e.parentNode))},_c=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Qr(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Nc=function(e,t,n,r){var o=_c(t,Array.isArray(e)?e:[e]);He[n]||(He[n]=new WeakMap);var s=He[n],i=[],a=new Set,u=new Set(o),l=function(f){!f||a.has(f)||(a.add(f),l(f.parentNode))};o.forEach(l);var d=function(f){!f||u.has(f)||Array.prototype.forEach.call(f.children,function(p){if(a.has(p))d(p);else try{var m=p.getAttribute(r),g=m!==null&&m!=="false",v=(xe.get(p)||0)+1,w=(s.get(p)||0)+1;xe.set(p,v),s.set(p,w),i.push(p),v===1&&g&&We.set(p,!0),w===1&&p.setAttribute(n,"true"),g||p.setAttribute(r,"true")}catch(x){console.error("aria-hidden: cannot operate on ",p,x)}})};return d(t),a.clear(),Rt++,function(){i.forEach(function(f){var p=xe.get(f)-1,m=s.get(f)-1;xe.set(f,p),s.set(f,m),p||(We.has(f)||f.removeAttribute(r),We.delete(f)),m||f.removeAttribute(n)}),Rt--,Rt||(xe=new WeakMap,xe=new WeakMap,We=new WeakMap,He={})}},Dc=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Oc(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),Nc(r,o,n,"aria-hidden")):function(){return null}},rn="Dialog",[Jr,ru]=de(rn),[Ic,Z]=Jr(rn),eo=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:i=!0}=e,a=c.useRef(null),u=c.useRef(null),[l=!1,d]=fe({prop:r,defaultProp:o,onChange:s});return h.jsx(Ic,{scope:t,triggerRef:a,contentRef:u,contentId:ie(),titleId:ie(),descriptionId:ie(),open:l,onOpenChange:d,onOpenToggle:c.useCallback(()=>d(f=>!f),[d]),modal:i,children:n})};eo.displayName=rn;var to="DialogTrigger",no=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Z(to,n),s=$(t,o.triggerRef);return h.jsx(N.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":an(o.open),...r,ref:s,onClick:_(e.onClick,o.onOpenToggle)})});no.displayName=to;var on="DialogPortal",[Mc,ro]=Jr(on,{forceMount:void 0}),oo=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=Z(on,t);return h.jsx(Mc,{scope:t,forceMount:n,children:c.Children.map(r,i=>h.jsx(K,{present:n||s.open,children:h.jsx(Ut,{asChild:!0,container:o,children:i})}))})};oo.displayName=on;var Ge="DialogOverlay",so=c.forwardRef((e,t)=>{const n=ro(Ge,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Z(Ge,e.__scopeDialog);return s.modal?h.jsx(K,{present:r||s.open,children:h.jsx(Lc,{...o,ref:t})}):null});so.displayName=Ge;var Lc=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Z(Ge,n);return h.jsx(Zr,{as:Oe,allowPinchZoom:!0,shards:[o.contentRef],children:h.jsx(N.div,{"data-state":an(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),ve="DialogContent",io=c.forwardRef((e,t)=>{const n=ro(ve,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Z(ve,e.__scopeDialog);return h.jsx(K,{present:r||s.open,children:s.modal?h.jsx(Fc,{...o,ref:t}):h.jsx(jc,{...o,ref:t})})});io.displayName=ve;var Fc=c.forwardRef((e,t)=>{const n=Z(ve,e.__scopeDialog),r=c.useRef(null),o=$(t,n.contentRef,r);return c.useEffect(()=>{const s=r.current;if(s)return Dc(s)},[]),h.jsx(ao,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:_(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:_(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,a=i.button===0&&i.ctrlKey===!0;(i.button===2||a)&&s.preventDefault()}),onFocusOutside:_(e.onFocusOutside,s=>s.preventDefault())})}),jc=c.forwardRef((e,t)=>{const n=Z(ve,e.__scopeDialog),r=c.useRef(!1),o=c.useRef(!1);return h.jsx(ao,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var i,a;(i=e.onCloseAutoFocus)==null||i.call(e,s),s.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var u,l;(u=e.onInteractOutside)==null||u.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=s.target;((l=n.triggerRef.current)==null?void 0:l.contains(i))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),ao=c.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...i}=e,a=Z(ve,n),u=c.useRef(null),l=$(t,u);return Ya(),h.jsxs(h.Fragment,{children:[h.jsx(Br,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:h.jsx(Je,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":an(a.open),...i,ref:l,onDismiss:()=>a.onOpenChange(!1)})}),h.jsxs(h.Fragment,{children:[h.jsx(kc,{titleId:a.titleId}),h.jsx(Wc,{contentRef:u,descriptionId:a.descriptionId})]})]})}),sn="DialogTitle",co=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Z(sn,n);return h.jsx(N.h2,{id:o.titleId,...r,ref:t})});co.displayName=sn;var lo="DialogDescription",uo=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Z(lo,n);return h.jsx(N.p,{id:o.descriptionId,...r,ref:t})});uo.displayName=lo;var fo="DialogClose",po=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Z(fo,n);return h.jsx(N.button,{type:"button",...r,ref:t,onClick:_(e.onClick,()=>o.onOpenChange(!1))})});po.displayName=fo;function an(e){return e?"open":"closed"}var vo="DialogTitleWarning",[ou,mo]=As(vo,{contentName:ve,titleName:sn,docsSlug:"dialog"}),kc=({titleId:e})=>{const t=mo(vo),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
42
43If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
44
45For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return c.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},$c="DialogDescriptionWarning",Wc=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${mo($c).contentName}}.`;return c.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},su=eo,iu=no,au=oo,cu=so,lu=io,uu=co,du=uo,fu=po,Hc="Separator",Gn="horizontal",Bc=["horizontal","vertical"],ho=c.forwardRef((e,t)=>{const{decorative:n,orientation:r=Gn,...o}=e,s=Vc(r)?r:Gn,a=n?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return h.jsx(N.div,{"data-orientation":s,...a,...o,ref:t})});ho.displayName=Hc;function Vc(e){return Bc.includes(e)}var pu=ho,Uc="AspectRatio",go=c.forwardRef((e,t)=>{const{ratio:n=1/1,style:r,...o}=e;return h.jsx("div",{style:{position:"relative",width:"100%",paddingBottom:`${100/n}%`},"data-radix-aspect-ratio-wrapper":"",children:h.jsx(N.div,{...o,ref:t,style:{...r,position:"absolute",top:0,right:0,bottom:0,left:0}})})});go.displayName=Uc;var vu=go,zc="Label",wo=c.forwardRef((e,t)=>h.jsx(N.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));wo.displayName=zc;var mu=wo;function Yc(e,t=[]){let n=[];function r(s,i){const a=c.createContext(i),u=n.length;n=[...n,i];function l(f){const{scope:p,children:m,...g}=f,v=(p==null?void 0:p[e][u])||a,w=c.useMemo(()=>g,Object.values(g));return h.jsx(v.Provider,{value:w,children:m})}function d(f,p){const m=(p==null?void 0:p[e][u])||a,g=c.useContext(m);if(g)return g;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${s}\``)}return l.displayName=s+"Provider",[l,d]}const o=()=>{const s=n.map(i=>c.createContext(i));return function(a){const u=(a==null?void 0:a[e])||s;return c.useMemo(()=>({[`__scope${e}`]:{...a,[e]:u}}),[a,u])}};return o.scopeName=e,[r,Kc(o,...t)]}function Kc(...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(s){const i=r.reduce((a,{useScope:u,scopeName:l})=>{const f=u(s)[`__scope${l}`];return{...a,...f}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var Xc=c.createContext(void 0);function dt(e){const t=c.useContext(Xc);return e||t||"ltr"}var Pt="rovingFocusGroup.onEntryFocus",Gc={bubbles:!1,cancelable:!0},ft="RovingFocusGroup",[Wt,xo,qc]=Vt(ft),[Zc,bo]=Yc(ft,[qc]),[Qc,Jc]=Zc(ft),yo=c.forwardRef((e,t)=>h.jsx(Wt.Provider,{scope:e.__scopeRovingFocusGroup,children:h.jsx(Wt.Slot,{scope:e.__scopeRovingFocusGroup,children:h.jsx(el,{...e,ref:t})})}));yo.displayName=ft;var el=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:s,currentTabStopId:i,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:u,onEntryFocus:l,preventScrollOnEntryFocus:d=!1,...f}=e,p=c.useRef(null),m=$(t,p),g=dt(s),[v=null,w]=fe({prop:i,defaultProp:a,onChange:u}),[x,b]=c.useState(!1),y=H(l),C=xo(n),E=c.useRef(!1),[S,T]=c.useState(0);return c.useEffect(()=>{const P=p.current;if(P)return P.addEventListener(Pt,y),()=>P.removeEventListener(Pt,y)},[y]),h.jsx(Qc,{scope:n,orientation:r,dir:g,loop:o,currentTabStopId:v,onItemFocus:c.useCallback(P=>w(P),[w]),onItemShiftTab:c.useCallback(()=>b(!0),[]),onFocusableItemAdd:c.useCallback(()=>T(P=>P+1),[]),onFocusableItemRemove:c.useCallback(()=>T(P=>P-1),[]),children:h.jsx(N.div,{tabIndex:x||S===0?-1:0,"data-orientation":r,...f,ref:m,style:{outline:"none",...e.style},onMouseDown:_(e.onMouseDown,()=>{E.current=!0}),onFocus:_(e.onFocus,P=>{const A=!E.current;if(P.target===P.currentTarget&&A&&!x){const O=new CustomEvent(Pt,Gc);if(P.currentTarget.dispatchEvent(O),!O.defaultPrevented){const M=C().filter(I=>I.focusable),F=M.find(I=>I.active),j=M.find(I=>I.id===v),L=[F,j,...M].filter(Boolean).map(I=>I.ref.current);So(L,d)}}E.current=!1}),onBlur:_(e.onBlur,()=>b(!1))})})}),Co="RovingFocusGroupItem",Eo=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:s,...i}=e,a=ie(),u=s||a,l=Jc(Co,n),d=l.currentTabStopId===u,f=xo(n),{onFocusableItemAdd:p,onFocusableItemRemove:m}=l;return c.useEffect(()=>{if(r)return p(),()=>m()}
vendor: 4,290 bytes, line 45
45,[r,p,m]),h.jsx(Wt.ItemSlot,{scope:n,id:u,focusable:r,active:o,children:h.jsx(N.span,{tabIndex:d?0:-1,"data-orientation":l.orientation,...i,ref:t,onMouseDown:_(e.onMouseDown,g=>{r?l.onItemFocus(u):g.preventDefault()}),onFocus:_(e.onFocus,()=>l.onItemFocus(u)),onKeyDown:_(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){l.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const v=rl(g,l.orientation,l.dir);if(v!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let x=f().filter(b=>b.focusable).map(b=>b.ref.current);if(v==="last")x.reverse();else if(v==="prev"||v==="next"){v==="prev"&&x.reverse();const b=x.indexOf(g.currentTarget);x=l.loop?ol(x,b+1):x.slice(b+1)}setTimeout(()=>So(x))}})})})});Eo.displayName=Co;var tl={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function nl(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function rl(e,t,n){const r=nl(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return tl[r]}function So(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function ol(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var sl=yo,il=Eo,cn="Tabs",[al,hu]=de(cn,[bo]),To=bo(),[cl,ln]=al(cn),Ro=c.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:s,orientation:i="horizontal",dir:a,activationMode:u="automatic",...l}=e,d=dt(a),[f,p]=fe({prop:r,onChange:o,defaultProp:s});return h.jsx(cl,{scope:n,baseId:ie(),value:f,onValueChange:p,orientation:i,dir:d,activationMode:u,children:h.jsx(N.div,{dir:d,"data-orientation":i,...l,ref:t})})});Ro.displayName=cn;var Po="TabsList",Ao=c.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,s=ln(Po,n),i=To(n);return h.jsx(sl,{asChild:!0,...i,orientation:s.orientation,dir:s.dir,loop:r,children:h.jsx(N.div,{role:"tablist","aria-orientation":s.orientation,...o,ref:t})})});Ao.displayName=Po;var Oo="TabsTrigger",_o=c.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...s}=e,i=ln(Oo,n),a=To(n),u=Io(i.baseId,r),l=Mo(i.baseId,r),d=r===i.value;return h.jsx(il,{asChild:!0,...a,focusable:!o,active:d,children:h.jsx(N.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":l,"data-state":d?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:u,...s,ref:t,onMouseDown:_(e.onMouseDown,f=>{!o&&f.button===0&&f.ctrlKey===!1?i.onValueChange(r):f.preventDefault()}),onKeyDown:_(e.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&i.onValueChange(r)}),onFocus:_(e.onFocus,()=>{const f=i.activationMode!=="manual";!d&&!o&&f&&i.onValueChange(r)})})})});_o.displayName=Oo;var No="TabsContent",Do=c.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:s,...i}=e,a=ln(No,n),u=Io(a.baseId,r),l=Mo(a.baseId,r),d=r===a.value,f=c.useRef(d);return c.useEffect(()=>{const p=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(p)},[]),h.jsx(K,{present:o||d,children:({present:p})=>h.jsx(N.div,{"data-state":d?"active":"inactive","data-orientation":a.orientation,role:"tabpanel","aria-labelledby":u,hidden:!p,id:l,tabIndex:0,...i,ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0},children:p&&s})})});Do.displayName=No;function Io(e,t){return`${e}-trigger-${t}`}function Mo(e,t){return`${e}-content-${t}`}var gu=Ro,wu=Ao,xu=_o,bu=Do;function ll(e,[t,n]){return Math.min(n,Math.max(t,e))}function ul(e,t){return c.useReducer((n,r)=>t[n][r]??n,e)}var un="ScrollArea",[Lo,yu]=de(un),[dl,X]=Lo(un),Fo=c.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:o,scrollHideDelay:s=600,...i}=e,[a,u]=c.useState(null),[l,d]=c.useState(null),[f,p]=c.useState(null),[m,g]=c.useState(null),[v,w]=c.useState(null),[x,b]=c.useState(0),[y,C]=c.useState(0),[E,S]=c.useState(!1),[T,P]=c.useState(!1),A=$(t,M=>u(M)),O=dt(o);return h.jsx(dl,{scope:n,type:r,dir:O,scrollHideDelay:s,scrollArea:a,viewport:l,onViewportChange:d,content:f,onContentChange:p,scrollbarX:m,onScrollbarXChange:g,scrollbarXEnabled:E,onScrollbarXEnabledChange:S,scrollbarY:v,onScrollbarYChange:w,scrollbarYEnabled:T,onScrollbarYEnabledChange:P,onCornerWidthChange:b,onCornerHeight
vendor: 12,992 bytes, lines 45-62
45Change:C,children:h.jsx(N.div,{dir:O,...i,ref:A,style:{position:"relative","--radix-scroll-area-corner-width":x+"px","--radix-scroll-area-corner-height":y+"px",...e.style}})})});Fo.displayName=un;var jo="ScrollAreaViewport",ko=c.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,asChild:o,nonce:s,...i}=e,a=X(jo,n),u=c.useRef(null),l=$(t,u,a.onViewportChange);return h.jsxs(h.Fragment,{children:[h.jsx("style",{dangerouslySetInnerHTML:{__html:`
46[data-radix-scroll-area-viewport] {
47  scrollbar-width: none;
48  -ms-overflow-style: none;
49  -webkit-overflow-scrolling: touch;
50}
51[data-radix-scroll-area-viewport]::-webkit-scrollbar {
52  display: none;
53}
54:where([data-radix-scroll-area-viewport]) {
55  display: flex;
56  flex-direction: column;
57  align-items: stretch;
58}
59:where([data-radix-scroll-area-content]) {
60  flex-grow: 1;
61}
62`},nonce:s}),h.jsx(N.div,{"data-radix-scroll-area-viewport":"",...i,asChild:o,ref:l,style:{overflowX:a.scrollbarXEnabled?"scroll":"hidden",overflowY:a.scrollbarYEnabled?"scroll":"hidden",...e.style},children:El({asChild:o,children:r},d=>h.jsx("div",{"data-radix-scroll-area-content":"",ref:a.onContentChange,style:{minWidth:a.scrollbarXEnabled?"fit-content":void 0},children:d}))})]})});ko.displayName=jo;var te="ScrollAreaScrollbar",fl=c.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=X(te,e.__scopeScrollArea),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:i}=o,a=e.orientation==="horizontal";return c.useEffect(()=>(a?s(!0):i(!0),()=>{a?s(!1):i(!1)}),[a,s,i]),o.type==="hover"?h.jsx(pl,{...r,ref:t,forceMount:n}):o.type==="scroll"?h.jsx(vl,{...r,ref:t,forceMount:n}):o.type==="auto"?h.jsx($o,{...r,ref:t,forceMount:n}):o.type==="always"?h.jsx(dn,{...r,ref:t}):null});fl.displayName=te;var pl=c.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=X(te,e.__scopeScrollArea),[s,i]=c.useState(!1);return c.useEffect(()=>{const a=o.scrollArea;let u=0;if(a){const l=()=>{window.clearTimeout(u),i(!0)},d=()=>{u=window.setTimeout(()=>i(!1),o.scrollHideDelay)};return a.addEventListener("pointerenter",l),a.addEventListener("pointerleave",d),()=>{window.clearTimeout(u),a.removeEventListener("pointerenter",l),a.removeEventListener("pointerleave",d)}}},[o.scrollArea,o.scrollHideDelay]),h.jsx(K,{present:n||s,children:h.jsx($o,{"data-state":s?"visible":"hidden",...r,ref:t})})}),vl=c.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=X(te,e.__scopeScrollArea),s=e.orientation==="horizontal",i=vt(()=>u("SCROLL_END"),100),[a,u]=ul("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return c.useEffect(()=>{if(a==="idle"){const l=window.setTimeout(()=>u("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(l)}},[a,o.scrollHideDelay,u]),c.useEffect(()=>{const l=o.viewport,d=s?"scrollLeft":"scrollTop";if(l){let f=l[d];const p=()=>{const m=l[d];f!==m&&(u("SCROLL"),i()),f=m};return l.addEventListener("scroll",p),()=>l.removeEventListener("scroll",p)}},[o.viewport,s,u,i]),h.jsx(K,{present:n||a!=="hidden",children:h.jsx(dn,{"data-state":a==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:_(e.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:_(e.onPointerLeave,()=>u("POINTER_LEAVE"))})})}),$o=c.forwardRef((e,t)=>{const n=X(te,e.__scopeScrollArea),{forceMount:r,...o}=e,[s,i]=c.useState(!1),a=e.orientation==="horizontal",u=vt(()=>{if(n.viewport){const l=n.viewport.offsetWidth<n.viewport.scrollWidth,d=n.viewport.offsetHeight<n.viewport.scrollHeight;i(a?l:d)}},10);return Se(n.viewport,u),Se(n.content,u),h.jsx(K,{present:r||s,children:h.jsx(dn,{"data-state":s?"visible":"hidden",...o,ref:t})})}),dn=c.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,o=X(te,e.__scopeScrollArea),s=c.useRef(null),i=c.useRef(0),[a,u]=c.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),l=Vo(a.viewport,a.content),d={...r,sizes:a,onSizesChange:u,hasThumb:l>0&&l<1,onThumbChange:p=>s.current=p,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:p=>i.current=p};function f(p,m){return yl(p,i.current,a,m)}return n==="horizontal"?h.jsx(ml,{...d,ref:t,onThumbPositionChange:()=>{if(o.viewport&&s.current){const p=o.viewport.scrollLeft,m=qn(p,a,o.dir);s.current.style.transform=`translate3d(${m}px, 0, 0)`}},onWheelScroll:p=>{o.viewport&&(o.viewport.scrollLeft=p)},onDragScroll:p=>{o.viewport&&(o.viewport.scrollLeft=f(p,o.dir))}}):n==="vertical"?h.jsx(hl,{...d,ref:t,onThumbPositionChange:()=>{if(o.viewport&&s.current){const p=o.viewport.scrollTop,m=qn(p,a);s.current.style.transform=`translate3d(0, ${m}px, 0)`}},onWheelScroll:p=>{o.viewport&&(o.viewport.scrollTop=p)},onDragScroll:p=>{o.viewport&&(o.viewport.scrollTop=f(p))}}):null}),ml=c.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,s=X(te,e.__scopeScrollArea),[i,a]=c.useState(),u=c.useRef(null),l=$(t,u,s.onScrollbarXChange);return c.useEffect(()=>{u.current&&a(getComputedStyle(u.current))},[u]),h.jsx(Ho,{"data-orientation":"horizontal",...o,ref:l,sizes:n,style:{bottom:0,left:s.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:s.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":pt(n)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.x),onDragScroll:d=>e.onDragScroll(d.x),onWheelScroll:(d,f)=>{if(s.viewport){const p=s.viewport.scrollLeft+d.deltaX;e.onWheelScroll(p),zo(p,f)&&d.preventDefault()}},onResize:()=>{u.current&&s.viewport&&i&&r({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:u.current.clientWidth,paddingStart:Ze(i.paddingLeft),paddingEnd:Ze(i.paddingRight)}})}})}),hl=c.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,s=X(te,e.__scopeScrollArea),[i,a]=c.useState(),u=c.useRef(null),l=$(t,u,s.onScrollbarYChange);return c.useEffect(()=>{u.current&&a(getComputedStyle(u.current))},[u]),h.jsx(Ho,{"data-orientation":"vertical",...o,ref:l,sizes:n,style:{top:0,right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":pt(n)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.y),onDragScroll:d=>e.onDragScroll(d.y),onWheelScroll:(d,f)=>{if(s.viewport){const p=s.viewport.scrollTop+d.deltaY;e.onWheelScroll(p),zo(p,f)&&d.preventDefault()}},onResize:()=>{u.current&&s.viewport&&i&&r({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:u.current.clientHeight,paddingStart:Ze(i.paddingTop),paddingEnd:Ze(i.paddingBottom)}})}})}),[gl,Wo]=Lo(te),Ho=c.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:o,onThumbChange:s,onThumbPointerUp:i,onThumbPointerDown:a,onThumbPositionChange:u,onDragScroll:l,onWheelScroll:d,onResize:f,...p}=e,m=X(te,n),[g,v]=c.useState(null),w=$(t,A=>v(A)),x=c.useRef(null),b=c.useRef(""),y=m.viewport,C=r.content-r.viewport,E=H(d),S=H(u),T=vt(f,10);function P(A){if(x.current){const O=A.clientX-x.current.left,M=A.clientY-x.current.top;l({x:O,y:M})}}return c.useEffect(()=>{const A=O=>{const M=O.target;(g==null?void 0:g.contains(M))&&E(O,C)};return document.addEventListener("wheel",A,{passive:!1}),()=>document.removeEventListener("wheel",A,{passive:!1})},[y,g,C,E]),c.useEffect(S,[r,S]),Se(g,T),Se(m.content,T),h.jsx(gl,{scope:n,scrollbar:g,hasThumb:o,onThumbChange:H(s),onThumbPointerUp:H(i),onThumbPositionChange:S,onThumbPointerDown:H(a),children:h.jsx(N.div,{...p,ref:w,style:{position:"absolute",...p.style},onPointerDown:_(e.onPointerDown,A=>{A.button===0&&(A.target.setPointerCapture(A.pointerId),x.current=g.getBoundingClientRect(),b.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",m.viewport&&(m.viewport.style.scrollBehavior="auto"),P(A))}),onPointerMove:_(e.onPointerMove,P),onPointerUp:_(e.onPointerUp,A=>{const O=A.target;O.hasPointerCapture(A.pointerId)&&O.releasePointerCapture(A.pointerId),document.body.style.webkitUserSelect=b.current,m.viewport&&(m.viewport.style.scrollBehavior=""),x.current=null})})})}),qe="ScrollAreaThumb",wl=c.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Wo(qe,e.__scopeScrollArea);return h.jsx(K,{present:n||o.hasThumb,children:h.jsx(xl,{ref:t,...r})})}),xl=c.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...o}=e,s=X(qe,n),i=Wo(qe,n),{onThumbPositionChange:a}=i,u=$(t,f=>i.onThumbChange(f)),l=c.useRef(),d=vt(()=>{l.current&&(l.current(),l.current=void 0)},100);return c.useEffect(()=>{const f=s.viewport;if(f){const p=()=>{if(d(),!l.current){const m=Cl(f,a);l.current=m,a()}};return a(),f.addEventListener("scroll",p),()=>f.removeEventListener("scroll",p)}},[s.viewport,d,a]),h.jsx(N.div,{"data-state":i.hasThumb?"visible":"hidden",...o,ref:u,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:_(e.onPointerDownCapture,f=>{const m=f.target.getBoundingClientRect(),g=f.clientX-m.left,v=f.clientY-m.top;i.onThumbPointerDown({x:g,y:v})}),onPointerUp:_(e.onPointerUp,i.onThumbPointerUp)})});wl.displayName=qe;var fn="ScrollAreaCorner",Bo=c.forwardRef((e,t)=>{const n=X(fn,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?h.jsx(bl,{...e,ref:t}):null});Bo.displayName=fn;var bl=c.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,o=X(fn,n),[s,i]=c.useState(0),[a,u]=c.useState(0),l=!!(s&&a);return Se(o.scrollbarX,()=>{var f;const d=((f=o.scrollbarX)==null?void 0:f.offsetHeight)||0;o.onCornerHeightChange(d),u(d)}),Se(o.scrollbarY,()=>{var f;const d=((f=o.scrollbarY)==null?void 0:f.offsetWidth)||0;o.onCornerWidthChange(d),i(d)}),l?h.jsx(N.div,{...r,ref:t,style:{width:s,height:a,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function Ze(e){return e?parseInt(e,10):0}function Vo(e,t){const n=e/t;return isNaN(n)?0:n}function pt(e){const t=Vo(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function yl(e,t,n,r="ltr"){const o=pt(n),s=o/2,i=t||s,a=o-i,u=n.scrollbar.paddingStart+i,l=n.scrollbar.size-n.scrollbar.paddingEnd-a,d=n.content-n.viewport,f=r==="ltr"?[0,d]:[d*-1,0];return Uo([u,l],f)(e)}function qn(e,t,n="ltr"){const r=pt(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,s=t.scrollbar.size-o,i=t.content-t.viewport,a=s-r,u=n==="ltr"?[0,i]:[i*-1,0],l=ll(e,u);return Uo([0,i],[0,a])(l)}function Uo(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function zo(e,t){return e>0&&e<t}var Cl=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function o(){const s={left:e.scrollLeft,top:e.scrollTop},i=n.left!==s.left,a=n.top!==s.top;(i||a)&&t(),n=s,r=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(r)};function vt(e,t){const n=H(e),r=c.useRef(0);return c.useEffect(()=>()=>window.clearTimeout(r.current),[]),c.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function Se(e,t){const n=H(t);Y(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}function El(e,t){const{asChild:n,children:r}=e;if(!n)return typeof t=="function"?t(r):t;const o=c.Children.only(r);return c.cloneElement(o,{children:typeof t=="function"?t(o.props.children):t})}var Cu=Fo,Eu=ko,Su=Bo,pn="Collapsible",[Sl,Yo]=de(pn),[Tl,vn]=Sl(pn),Ko=c.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:s,onOpenChange:i,...a}=e,[u=!1,l]=fe({prop:r,defaultProp:o,onChange:i});return h.jsx(Tl,{scope:n,disabled:s,contentId:ie(),open:u,onOpenToggle:c.useCallback(()=>l(d=>!d),[l]),children:h.jsx(N.div,{"data-state":hn(u),"data-disabled":s?"":void 0,...a,ref:t})})});Ko.displayName=pn;var Xo="CollapsibleTrigger",Go=c.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=vn(Xo,n);return h.jsx(N.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":hn(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:_(e.onClick,o.onOpenToggle)})});Go.displayName=Xo;var mn="CollapsibleContent",qo=c.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=vn(mn,e.__scopeCollapsible);return h.jsx(K,{present:n||o.open,children:({present:s})=>h.jsx(Rl,{...r,ref:t,present:s})})});qo.displayName=mn;var Rl=c.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...s}=e,i=vn(mn,n),[a,u]=c.useState(r),l=c.useRef(null),d=$(t,l),f=c.useRef(0),p=f.current,m=c.useRef(0),g=m.current,v=i.open||a,w=c.useRef(v),x=c.useRef();return c.useEffect(()=>{const b=requestAnimationFrame(()=>w.current=!1);return()=>cancelAnimationFrame(b)},[]),Y(()=>{const b=l.current;if(b){x.current=x.current||{transitionDuration:b.style.transitionDuration,animationName:b.style.animationName},b.style.transitionDuration="0s",b.style.animationName="none";const y=b.getBoundingClientRect();
vendor: 4,103 bytes, line 62
62f.current=y.height,m.current=y.width,w.current||(b.style.transitionDuration=x.current.transitionDuration,b.style.animationName=x.current.animationName),u(r)}},[i.open,r]),h.jsx(N.div,{"data-state":hn(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!v,...s,ref:d,style:{"--radix-collapsible-content-height":p?`${p}px`:void 0,"--radix-collapsible-content-width":g?`${g}px`:void 0,...e.style},children:v&&o})});function hn(e){return e?"open":"closed"}var Pl=Ko,Al=Go,Ol=qo,oe="Accordion",_l=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[gn,Nl,Dl]=Vt(oe),[mt,Tu]=de(oe,[Dl,Yo]),wn=Yo(),Zo=B.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,s=r;return h.jsx(gn.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?h.jsx(Fl,{...s,ref:t}):h.jsx(Ll,{...o,ref:t})})});Zo.displayName=oe;var[Qo,Il]=mt(oe),[Jo,Ml]=mt(oe,{collapsible:!1}),Ll=B.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:s=!1,...i}=e,[a,u]=fe({prop:n,defaultProp:r,onChange:o});return h.jsx(Qo,{scope:e.__scopeAccordion,value:a?[a]:[],onItemOpen:u,onItemClose:B.useCallback(()=>s&&u(""),[s,u]),children:h.jsx(Jo,{scope:e.__scopeAccordion,collapsible:s,children:h.jsx(es,{...i,ref:t})})})}),Fl=B.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...s}=e,[i=[],a]=fe({prop:n,defaultProp:r,onChange:o}),u=B.useCallback(d=>a((f=[])=>[...f,d]),[a]),l=B.useCallback(d=>a((f=[])=>f.filter(p=>p!==d)),[a]);return h.jsx(Qo,{scope:e.__scopeAccordion,value:i,onItemOpen:u,onItemClose:l,children:h.jsx(Jo,{scope:e.__scopeAccordion,collapsible:!0,children:h.jsx(es,{...s,ref:t})})})}),[jl,ht]=mt(oe),es=B.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:s="vertical",...i}=e,a=B.useRef(null),u=$(a,t),l=Nl(n),f=dt(o)==="ltr",p=_(e.onKeyDown,m=>{var P;if(!_l.includes(m.key))return;const g=m.target,v=l().filter(A=>{var O;return!((O=A.ref.current)!=null&&O.disabled)}),w=v.findIndex(A=>A.ref.current===g),x=v.length;if(w===-1)return;m.preventDefault();let b=w;const y=0,C=x-1,E=()=>{b=w+1,b>C&&(b=y)},S=()=>{b=w-1,b<y&&(b=C)};switch(m.key){case"Home":b=y;break;case"End":b=C;break;case"ArrowRight":s==="horizontal"&&(f?E():S());break;case"ArrowDown":s==="vertical"&&E();break;case"ArrowLeft":s==="horizontal"&&(f?S():E());break;case"ArrowUp":s==="vertical"&&S();break}const T=b%x;(P=v[T].ref.current)==null||P.focus()});return h.jsx(jl,{scope:n,disabled:r,direction:o,orientation:s,children:h.jsx(gn.Slot,{scope:n,children:h.jsx(N.div,{...i,"data-orientation":s,ref:u,onKeyDown:r?void 0:p})})})}),Qe="AccordionItem",[kl,xn]=mt(Qe),ts=B.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...o}=e,s=ht(Qe,n),i=Il(Qe,n),a=wn(n),u=ie(),l=r&&i.value.includes(r)||!1,d=s.disabled||e.disabled;return h.jsx(kl,{scope:n,open:l,disabled:d,triggerId:u,children:h.jsx(Pl,{"data-orientation":s.orientation,"data-state":as(l),...a,...o,ref:t,disabled:d,open:l,onOpenChange:f=>{f?i.onItemOpen(r):i.onItemClose(r)}})})});ts.displayName=Qe;var ns="AccordionHeader",rs=B.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ht(oe,n),s=xn(ns,n);return h.jsx(N.h3,{"data-orientation":o.orientation,"data-state":as(s.open),"data-disabled":s.disabled?"":void 0,...r,ref:t})});rs.displayName=ns;var Ht="AccordionTrigger",os=B.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ht(oe,n),s=xn(Ht,n),i=Ml(Ht,n),a=wn(n);return h.jsx(gn.ItemSlot,{scope:n,children:h.jsx(Al,{"aria-disabled":s.open&&!i.collapsible||void 0,"data-orientation":o.orientation,id:s.triggerId,...a,...r,ref:t})})});os.displayName=Ht;var ss="AccordionContent",is=B.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ht(oe,n),s=xn(ss,n),i=wn(n);return h.jsx(Ol,{role:"region","aria-labelledby":s.triggerId,"data-orientation":o.orientation,...i,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});is.displayName=ss;function as(e){return e?"open":"closed"}var Ru=Zo,Pu=ts,Au=rs,Ou=os,_u=is,bn="Avatar",[$l,Nu]=de(bn),[Wl,cs]=$l(bn),ls=c.forwardRef((e,t)=>
62{const{__scopeAvatar:n,...r}=e,[o,s]=c.useState("idle");return h.jsx(Wl,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:s,children:h.jsx(N.span,{...r,ref:t})})});ls.displayName=bn;var us="AvatarImage",ds=c.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...s}=e,i=cs(us,n),a=Hl(r,s.referrerPolicy),u=H(l=>{o(l),i.onImageLoadingStatusChange(l)});return Y(()=>{a!=="idle"&&u(a)},[a,u]),a==="loaded"?h.jsx(N.img,{...s,ref:t,src:r}):null});ds.displayName=us;var fs="AvatarFallback",ps=c.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,s=cs(fs,n),[i,a]=c.useState(r===void 0);return c.useEffect(()=>{if(r!==void 0){const u=window.setTimeout(()=>a(!0),r);return()=>window.clearTimeout(u)}},[r]),i&&s.imageLoadingStatus!=="loaded"?h.jsx(N.span,{...o,ref:t}):null});ps.displayName=fs;function Hl(e,t){const[n,r]=c.useState("idle");return Y(()=>{if(!e){r("error");return}let o=!0;const s=new window.Image,i=a=>()=>{o&&r(a)};return r("loading"),s.onload=i("loaded"),s.onerror=i("error"),s.src=e,t&&(s.referrerPolicy=t),()=>{o=!1}},[e,t]),n}var Du=ls,Iu=ds,Mu=ps;export{Gl as A,_u as B,ql as C,Xl as D,Mu as F,Au as H,Iu as I,wu as L,cu as O,Ul as P,Yl as R,Oe as S,Kl as T,zl as V,nu as a,Jl as b,eu as c,tu as d,lu as e,fu as f,uu as g,du as h,au as i,su as j,iu as k,pu as l,vu as m,mu as n,xu as o,bu as p,gu as q,Cu as r,Eu as s,Su as t,fl as u,wl as v,Du as w,Ru as x,Pu as y,Ou 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.