vendor: 9,475 bytes, lines 1-9
1import{r as l,R as $,a as _t,v as Fo,b as Tn}from"./vendor-react-CiOZ79yH.js";var On={exports:{}},qe={};/** 2 * @license React 3 * react-jsx-runtime.production.min.js 4 * 5 * Copyright (c) Facebook, Inc. and its affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var ko=l,$o=Symbol.for("react.element"),Wo=Symbol.for("react.fragment"),Bo=Object.prototype.hasOwnProperty,Vo=ko.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ho={key:!0,ref:!0,__self:!0,__source:!0};function _n(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)Bo.call(t,r)&&!Ho.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:$o,type:e,key:i,ref:s,props:o,_owner:Vo.current}}qe.Fragment=Wo;qe.jsx=_n;qe.jsxs=_n;On.exports=qe;var b=On.exports;function W(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function rn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Dn(...e){return t=>{let n=!1;const r=e.map(o=>{const i=rn(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():rn(e[o],null)}}}}function B(...e){return l.useCallback(Dn(...e),e)}function Uo(e,t){const n=l.createContext(t),r=i=>{const{children:s,...a}=i,u=l.useMemo(()=>a,Object.values(a));return b.jsx(n.Provider,{value:u,children:s})};r.displayName=e+"Provider";function o(i){const s=l.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function ge(e,t=[]){let n=[];function r(i,s){const a=l.createContext(s),u=n.length;n=[...n,s];const c=d=>{const{scope:h,children:m,...y}=d,p=h?.[e]?.[u]||a,v=l.useMemo(()=>y,Object.values(y));return b.jsx(p.Provider,{value:v,children:m})};c.displayName=i+"Provider";function f(d,h){const m=h?.[e]?.[u]||a,y=l.useContext(m);if(y)return y;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[c,f]}const o=()=>{const i=n.map(s=>l.createContext(s));return function(a){const u=a?.[e]||i;return l.useMemo(()=>({[`__scope${e}`]:{...a,[e]:u}}),[a,u])}};return o.scopeName=e,[r,Ko(o,...t)]}function Ko(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:u,scopeName:c})=>{const d=u(i)[`__scope${c}`];return{...a,...d}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function Re(e){const t=zo(e),n=l.forwardRef((r,o)=>{const{children:i,...s}=r,a=l.Children.toArray(i),u=a.find(Yo);if(u){const c=u.props.children,f=a.map(d=>d===u?l.Children.count(c)>1?l.Children.only(null):l.isValidElement(c)?c.props.children:null:d);return b.jsx(t,{...s,ref:o,children:l.isValidElement(c)?l.cloneElement(c,void 0,f):null})}return b.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var Cc=Re("Slot");function zo(e){const t=l.forwardRef((n,r)=>{const{children:o,...i}=n;if(l.isValidElement(o)){const s=Go(o),a=Xo(i,o.props);return o.type!==l.Fragment&&(a.ref=r?Dn(r,s):s),l.cloneElement(o,a)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Nn=Symbol("radix.slottable");function Rc(e){const t=({children:n})=>b.jsx(b.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Nn,t}function Yo(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Nn}function Xo(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{const u=i(...a);return o(...a),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Go(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function In(e){const t=e+"CollectionProvider",[n,r]=ge(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=p=>{const{scope:v,children:w}=p,g=$.useRef(null),x=$.useRef(new Map).current;return b.jsx(o,{scope:v,itemMap:x,collectionRef:g,children:w})};s.displayName=t;const a=e+"CollectionSlot",u=Re(a),c=$.forwardRef((p,v)=>{const{scope:w,children:g}=p,x=i(a,w),E=B(v,x.collectionRef);return b.jsx(u,{ref:E,children:g})});c.displayName=a;const f=e+"CollectionItemSlot",d="data-radix-collection-item",h=Re(f),m=$.forwardRef((p,v)=>{const{scope:w,children:g,...x}=p,E=$.useRef(null),C=B(v,E),S=i(f,w);return $.useEffect(()=>(S.itemMap.set(E,{ref:E,...x}),()=>void S.itemMap.delete(E))),b.jsx(h,{[d]:"",ref:C,children:g})});m.displayName=f;function y(p){const v=i(e+"CollectionConsumer",p);return $.useCallback(()=>{const g=v.collectionRef.current;if(!g)return[];const x=Array.from(g.querySelectorAll(`[${d}]`));return Array.from(v.itemMap.values()).sort((S,R)=>x.indexOf(S.ref.current)-x.indexOf(R.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:s,Slot:c,ItemSlot:m},y,r]}var qo=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],I=qo.reduce((e,t)=>{const n=Re(`Primitive.${t}`),r=l.forwardRef((o,i)=>{const{asChild:s,...a}=o,u=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(u,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Mn(e,t){e&&_t.flushSync(()=>e.dispatchEvent(t))}function Q(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...n)=>t.current?.(...n),[])}function Zo(e,t=globalThis?.document){const n=Q(e);l.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 Qo="DismissableLayer",wt="dismissableLayer.update",Jo="dismissableLayer.pointerDownOutside",ei="dismissableLayer.focusOutside",on,Ln=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Dt=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...u}=e,c=l.useContext(Ln),[f,d]=l.useState(null),h=f?.ownerDocument??globalThis?.document,[,m]=l.useState({}),y=B(t,R=>d(R)),p=Array.from(c.layers),[v]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),w=p.indexOf(v),g=f?p.indexOf(f):-1,x=c.layersWithOutsidePointerEventsDisabled.size>0,E=g>=w,C=ni(R=>{const T=R.target,D=[...c.branches].some(_=>_.contains(T));!E||D||(o?.(R),s?.(R),R.defaultPrevented||a?.())},h),S=ri(R=>{const T=R.target;[...c.branches].some(_=>_.contains(T))||(i?.(R),s?.(R),R.defaultPrevented||a?.())},h);return Zo(R=>{g===c.layers.size-1&&(r?.(R),!R.defaultPrevented&&a&&(R.preventDefault(),a()))},h),l.useEffect(()=>{if(f)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(on=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(f)),c.layers.add(f),sn(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=on)}},[f,h,n,c]),l.useEffect(()=>()=>{f&&(c.layers.delete(f),c.layersWithOutsidePointerEventsDisabled.delete(f),sn())},[f,c]),l.useEffect(()=>{const R=()=>m({});return document.addEventListener(wt,R),()=>document.removeEventListener(wt,R)},[]),b.jsx(I.div,{...u,ref:y,style:{pointerEvents:x?E?"auto":"none":void 0,...e.style},onFocusCapture:W(e.onFocusCapture,S.onFocusCapture),onBlurCapture:W(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:W(e.onPointerDownCapture,C.onPointerDownCapture)})});Dt.displayName=Qo;var ti="DismissableLayerBranch",jn=l.forwardRef((e,t)=>{const n=l.useContext(Ln),r=l.useRef(null),o=B(t,r);return l.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),b.jsx(I.div,{...e,ref:o})});jn.displayName=ti;function ni(e,t=globalThis?.document){const n=Q(e),r=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let u=function(){Fn(Jo,n,c,{discrete:!0})};const c={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},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function ri(e,t=globalThis?.document){const n=Q(e),r=l.useRef(!1);return l.useEffect(()=>{const o=i=>{i.target&&!r.current&&Fn(ei,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function sn(){const e=new CustomEvent(wt);document.dispatchEvent(e)}function Fn(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Mn(o,i):o.dispatchEvent(i)}var oi=Dt,ii=jn,J=globalThis?.document?l.useLayoutEffect:()=>{},si="Portal",Nt=l.forwardRef((e,t)=>
vendor: 4,170 bytes, line 9
9{const{container:n,...r}=e,[o,i]=l.useState(!1);J(()=>i(!0),[]);const s=n||o&&globalThis?.document?.body;return s?Fo.createPortal(b.jsx(I.div,{...r,ref:t}),s):null});Nt.displayName=si;function ai(e,t){return l.useReducer((n,r)=>t[n][r]??n,e)}var ye=e=>{const{present:t,children:n}=e,r=ci(t),o=typeof n=="function"?n({present:r.isPresent}):l.Children.only(n),i=B(r.ref,li(o));return typeof n=="function"||r.isPresent?l.cloneElement(o,{ref:i}):null};ye.displayName="Presence";function ci(e){const[t,n]=l.useState(),r=l.useRef(null),o=l.useRef(e),i=l.useRef("none"),s=e?"mounted":"unmounted",[a,u]=ai(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const c=Ie(r.current);i.current=a==="mounted"?c:"none"},[a]),J(()=>{const c=r.current,f=o.current;if(f!==e){const h=i.current,m=Ie(c);e?u("MOUNT"):m==="none"||c?.display==="none"?u("UNMOUNT"):u(f&&h!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),J(()=>{if(t){let c;const f=t.ownerDocument.defaultView??window,d=m=>{const p=Ie(r.current).includes(m.animationName);if(m.target===t&&p&&(u("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",c=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},h=m=>{m.target===t&&(i.current=Ie(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{f.clearTimeout(c),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:l.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function Ie(e){return e?.animationName||"none"}function li(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ui=Tn[" useInsertionEffect ".trim().toString()]||J;function Ae({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=fi({defaultProp:t,onChange:n}),a=e!==void 0,u=a?e:o;{const f=l.useRef(e!==void 0);l.useEffect(()=>{const d=f.current;d!==a&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=a},[a,r])}const c=l.useCallback(f=>{if(a){const d=di(f)?f(e):f;d!==e&&s.current?.(d)}else i(f)},[a,e,i,s]);return[u,c]}function fi({defaultProp:e,onChange:t}){const[n,r]=l.useState(e),o=l.useRef(n),i=l.useRef(t);return ui(()=>{i.current=t},[t]),l.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}function di(e){return typeof e=="function"}var pi=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),mi="VisuallyHidden",Ze=l.forwardRef((e,t)=>b.jsx(I.span,{...e,ref:t,style:{...pi,...e.style}}));Ze.displayName=mi;var Sc=Ze,It="ToastProvider",[Mt,vi,hi]=In("Toast"),[kn,Pc]=ge("Toast",[hi]),[gi,Qe]=kn(It),$n=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:s}=e,[a,u]=l.useState(null),[c,f]=l.useState(0),d=l.useRef(!1),h=l.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${It}\`. Expected non-empty \`string\`.`),b.jsx(Mt.Provider,{scope:t,children:b.jsx(gi,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:c,viewport:a,onViewportChange:u,onToastAdd:l.useCallback(()=>f(m=>m+1),[]),onToastRemove:l.useCallback(()=>f(m=>m-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:h,children:s})})};$n.displayName=It;var Wn="ToastViewport",yi=["F8"],bt="toast.viewportPause",xt="toast.viewportResume",Bn=l.forwardRef((e,t)=>
vendor: 8,350 bytes, line 9
9{const{__scopeToast:n,hotkey:r=yi,label:o="Notifications ({hotkey})",...i}=e,s=Qe(Wn,n),a=vi(n),u=l.useRef(null),c=l.useRef(null),f=l.useRef(null),d=l.useRef(null),h=B(t,d,s.onViewportChange),m=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),y=s.toastCount>0;l.useEffect(()=>{const v=w=>{r.length!==0&&r.every(x=>w[x]||w.code===x)&&d.current?.focus()};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[r]),l.useEffect(()=>{const v=u.current,w=d.current;if(y&&v&&w){const g=()=>{if(!s.isClosePausedRef.current){const S=new CustomEvent(bt);w.dispatchEvent(S),s.isClosePausedRef.current=!0}},x=()=>{if(s.isClosePausedRef.current){const S=new CustomEvent(xt);w.dispatchEvent(S),s.isClosePausedRef.current=!1}},E=S=>{!v.contains(S.relatedTarget)&&x()},C=()=>{v.contains(document.activeElement)||x()};return v.addEventListener("focusin",g),v.addEventListener("focusout",E),v.addEventListener("pointermove",g),v.addEventListener("pointerleave",C),window.addEventListener("blur",g),window.addEventListener("focus",x),()=>{v.removeEventListener("focusin",g),v.removeEventListener("focusout",E),v.removeEventListener("pointermove",g),v.removeEventListener("pointerleave",C),window.removeEventListener("blur",g),window.removeEventListener("focus",x)}}},[y,s.isClosePausedRef]);const p=l.useCallback(({tabbingDirection:v})=>{const g=a().map(x=>{const E=x.ref.current,C=[E,...Di(E)];return v==="forwards"?C:C.reverse()});return(v==="forwards"?g.reverse():g).flat()},[a]);return l.useEffect(()=>{const v=d.current;if(v){const w=g=>{const x=g.altKey||g.ctrlKey||g.metaKey;if(g.key==="Tab"&&!x){const C=document.activeElement,S=g.shiftKey;if(g.target===v&&S){c.current?.focus();return}const D=p({tabbingDirection:S?"backwards":"forwards"}),_=D.findIndex(M=>M===C);lt(D.slice(_+1))?g.preventDefault():S?c.current?.focus():f.current?.focus()}};return v.addEventListener("keydown",w),()=>v.removeEventListener("keydown",w)}},[a,p]),b.jsxs(ii,{ref:u,role:"region","aria-label":o.replace("{hotkey}",m),tabIndex:-1,style:{pointerEvents:y?void 0:"none"},children:[y&&b.jsx(Et,{ref:c,onFocusFromOutsideViewport:()=>{const v=p({tabbingDirection:"forwards"});lt(v)}}),b.jsx(Mt.Slot,{scope:n,children:b.jsx(I.ol,{tabIndex:-1,...i,ref:h})}),y&&b.jsx(Et,{ref:f,onFocusFromOutsideViewport:()=>{const v=p({tabbingDirection:"backwards"});lt(v)}})]})});Bn.displayName=Wn;var Vn="ToastFocusProxy",Et=l.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=Qe(Vn,n);return b.jsx(Ze,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:s=>{const a=s.relatedTarget;!i.viewport?.contains(a)&&r()}})});Et.displayName=Vn;var Te="Toast",wi="toast.swipeStart",bi="toast.swipeMove",xi="toast.swipeCancel",Ei="toast.swipeEnd",Hn=l.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...s}=e,[a,u]=Ae({prop:r,defaultProp:o??!0,onChange:i,caller:Te});return b.jsx(ye,{present:n||a,children:b.jsx(Si,{open:a,...s,ref:t,onClose:()=>u(!1),onPause:Q(e.onPause),onResume:Q(e.onResume),onSwipeStart:W(e.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:W(e.onSwipeMove,c=>{const{x:f,y:d}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${f}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:W(e.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:W(e.onSwipeEnd,c=>{const{x:f,y:d}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${f}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),u(!1)})})})});Hn.displayName=Te;var[Ci,Ri]=kn(Te,{onClose(){}}),Si=l.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:s,onEscapeKeyDown:a,onPause:u,onResume:c,onSwipeStart:f,onSwipeMove:d,onSwipeCancel:h,onSwipeEnd:m,...y}=e,p=Qe(Te,n),[v,w]=l.useState(null),g=B(t,P=>w(P)),x=l.useRef(null),E=l.useRef(null),C=o||p.duration,S=l.useRef(0),R=l.useRef(C),T=l.useRef(0),{onToastAdd:D,onToastRemove:_}=p,M=Q(()=>{v?.contains(document.activeElement)&&p.viewport?.focus(),s()}),k=l.useCallback(P=>{!P||P===1/0||(window.clearTimeout(T.current),S.current=new Date().getTime(),T.current=window.setTimeout(M,P))},[M]);l.useEffect(()=>{const P=p.viewport;if(P){const L=()=>{k(R.current),c?.()},O=()=>{const N=new Date().getTime()-S.current;R.current=R.current-N,window.clearTimeout(T.current),u?.()};return P.addEventListener(bt,O),P.addEventListener(xt,L),()=>{P.removeEventListener(bt,O),P.removeEventListener(xt,L)}}},[p.viewport,C,u,c,k]),l.useEffect(()=>{i&&!p.isClosePausedRef.current&&k(C)},[i,C,p.isClosePausedRef,k]),l.useEffect(()=>(D(),()=>_()),[D,_]);const j=l.useMemo(()=>v?qn(v):null,[v]);return p.viewport?b.jsxs(b.Fragment,{children:[j&&b.jsx(Pi,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:j}),b.jsx(Ci,{scope:n,onClose:M,children:_t.createPortal(b.jsx(Mt.ItemSlot,{scope:n,children:b.jsx(oi,{asChild:!0,onEscapeKeyDown:W(a,()=>{p.isFocusedToastEscapeKeyDownRef.current||M(),p.isFocusedToastEscapeKeyDownRef.current=!1}),children:b.jsx(I.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":p.swipeDirection,...y,ref:g,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:W(e.onKeyDown,P=>{P.key==="Escape"&&(a?.(P.nativeEvent),P.nativeEvent.defaultPrevented||(p.isFocusedToastEscapeKeyDownRef.current=!0,M()))}),onPointerDown:W(e.onPointerDown,P=>{P.button===0&&(x.current={x:P.clientX,y:P.clientY})}),onPointerMove:W(e.onPointerMove,P=>{if(!x.current)return;const L=P.clientX-x.current.x,O=P.clientY-x.current.y,N=!!E.current,A=["left","right"].includes(p.swipeDirection),F=["left","up"].includes(p.swipeDirection)?Math.min:Math.max,U=A?F(0,L):0,_e=A?0:F(0,O),xe=P.pointerType==="touch"?10:2,le={x:U,y:_e},De={originalEvent:P,delta:le};N?(E.current=le,Me(bi,d,De,{discrete:!1})):an(le,p.swipeDirection,xe)?(E.current=le,Me(wi,f,De,{discrete:!1}),P.target.setPointerCapture(P.pointerId)):(Math.abs(L)>xe||Math.abs(O)>xe)&&(x.current=null)}),onPointerUp:W(e.onPointerUp,P=>{const L=E.current,O=P.target;if(O.hasPointerCapture(P.pointerId)&&O.releasePointerCapture(P.pointerId),E.current=null,x.current=null,L){const N=P.currentTarget,A={originalEvent:P,delta:L};an(L,p.swipeDirection,p.swipeThreshold)?Me(Ei,m,A,{discrete:!0}):Me(xi,h,A,{discrete:!0}),N.addEventListener("click",F=>F.preventDefault(),{once:!0})}})})})}),p.viewport)})]}):null}),Pi=e=>{const{__scopeToast:t,children:n,...r}=e,o=Qe(Te,t),[i,s]=l.useState(!1),[a,u]=l.useState(!1);return Oi(()=>s(!0)),l.useEffect(()=>{const c=window.setTimeout(()=>u(!0),1e3);return()=>window.clearTimeout(c)},[]),a?null:b.jsx(Nt,{asChild:!0,children:b.jsx(Ze,{...r,children:i&&b.jsxs(b.Fragment,{children:[o.label," ",n]})})})},Ai="ToastTitle",Un=l.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return b.jsx(I.div,{...r,ref:t})});Un.displayName=Ai;var Ti="ToastDescription",Kn=l.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return b.jsx(I.div,{...r,ref:t})});Kn.displayName=Ti;var zn="ToastAction",Yn=l.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?b.jsx(Gn,{altText:n,asChild:!0,children:b.jsx(Lt,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${zn}\`. Expected non-empty \`string\`.`),null)});Yn.displayName=zn;var Xn="ToastClose",Lt=l.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=Ri(Xn,n);return b.jsx(Gn,{asChild:!0,children:b.jsx(I.button,{type:"button",...r,ref:t,onClick:W(e.onClick,o.onClose)})})});Lt.displayName=Xn;var Gn=l.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return b.jsx(I.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function qn(e){const t=[];
vendor: 14,216 bytes, line 9
9return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),_i(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const s=r.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...qn(r))}}),t}function Me(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Mn(o,i):o.dispatchEvent(i)}var an=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return t==="left"||t==="right"?i&&r>n:!i&&o>n};function Oi(e=()=>{}){const t=Q(e);J(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function _i(e){return e.nodeType===e.ELEMENT_NODE}function Di(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 lt(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var Ac=$n,Tc=Bn,Oc=Hn,_c=Un,Dc=Kn,Nc=Yn,Ic=Lt,Ni=Tn[" useId ".trim().toString()]||(()=>{}),Ii=0;function Ce(e){const[t,n]=l.useState(Ni());return J(()=>{n(r=>r??String(Ii++))},[e]),t?`radix-${t}`:""}const Mi=["top","right","bottom","left"],ie=Math.min,V=Math.max,He=Math.round,Le=Math.floor,Z=e=>({x:e,y:e}),Li={left:"right",right:"left",bottom:"top",top:"bottom"},ji={start:"end",end:"start"};function Ct(e,t,n){return V(e,ie(t,n))}function ne(e,t){return typeof e=="function"?e(t):e}function re(e){return e.split("-")[0]}function we(e){return e.split("-")[1]}function jt(e){return e==="x"?"y":"x"}function Ft(e){return e==="y"?"height":"width"}const Fi=new Set(["top","bottom"]);function q(e){return Fi.has(re(e))?"y":"x"}function kt(e){return jt(q(e))}function ki(e,t,n){n===void 0&&(n=!1);const r=we(e),o=kt(e),i=Ft(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Ue(s)),[s,Ue(s)]}function $i(e){const t=Ue(e);return[Rt(e),t,Rt(t)]}function Rt(e){return e.replace(/start|end/g,t=>ji[t])}const cn=["left","right"],ln=["right","left"],Wi=["top","bottom"],Bi=["bottom","top"];function Vi(e,t,n){switch(e){case"top":case"bottom":return n?t?ln:cn:t?cn:ln;case"left":case"right":return t?Wi:Bi;default:return[]}}function Hi(e,t,n,r){const o=we(e);let i=Vi(re(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Rt)))),i}function Ue(e){return e.replace(/left|right|bottom|top/g,t=>Li[t])}function Ui(e){return{top:0,right:0,bottom:0,left:0,...e}}function Zn(e){return typeof e!="number"?Ui(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 un(e,t,n){let{reference:r,floating:o}=e;const i=q(t),s=kt(t),a=Ft(s),u=re(t),c=i==="y",f=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,h=r[a]/2-o[a]/2;let m;switch(u){case"top":m={x:f,y:r.y-o.height};break;case"bottom":m={x:f,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:d};break;case"left":m={x:r.x-o.width,y:d};break;default:m={x:r.x,y:r.y}}switch(we(t)){case"start":m[s]-=h*(n&&c?-1:1);break;case"end":m[s]+=h*(n&&c?-1:1);break}return m}const Ki=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:d}=un(c,r,u),h=r,m={},y=0;for(let p=0;p<a.length;p++){const{name:v,fn:w}=a[p],{x:g,y:x,data:E,reset:C}=await w({x:f,y:d,initialPlacement:r,placement:h,strategy:o,middlewareData:m,rects:c,platform:s,elements:{reference:e,floating:t}});f=g??f,d=x??d,m={...m,[v]:{...m[v],...E}},C&&y<=50&&(y++,typeof C=="object"&&(C.placement&&(h=C.placement),C.rects&&(c=C.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:f,y:d}=un(c,h,u)),p=-1)}return{x:f,y:d,placement:h,strategy:o,middlewareData:m}};async function Se(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:h=!1,padding:m=0}=ne(t,e),y=Zn(m),v=a[h?d==="floating"?"reference":"floating":d],w=Ke(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(v)))==null||n?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:f,strategy:u})),g=d==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),E=await(i.isElement==null?void 0:i.isElement(x))?await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1}:{x:1,y:1},C=Ke(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:x,strategy:u}):g);return{top:(w.top-C.top+y.top)/E.y,bottom:(C.bottom-w.bottom+y.bottom)/E.y,left:(w.left-C.left+y.left)/E.x,right:(C.right-w.right+y.right)/E.x}}const zi=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:u}=t,{element:c,padding:f=0}=ne(e,t)||{};if(c==null)return{};const d=Zn(f),h={x:n,y:r},m=kt(o),y=Ft(m),p=await s.getDimensions(c),v=m==="y",w=v?"top":"left",g=v?"bottom":"right",x=v?"clientHeight":"clientWidth",E=i.reference[y]+i.reference[m]-h[m]-i.floating[y],C=h[m]-i.reference[m],S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let R=S?S[x]:0;(!R||!await(s.isElement==null?void 0:s.isElement(S)))&&(R=a.floating[x]||i.floating[y]);const T=E/2-C/2,D=R/2-p[y]/2-1,_=ie(d[w],D),M=ie(d[g],D),k=_,j=R-p[y]-M,P=R/2-p[y]/2+T,L=Ct(k,P,j),O=!u.arrow&&we(o)!=null&&P!==L&&i.reference[y]/2-(P<k?_:M)-p[y]/2<0,N=O?P<k?P-k:P-j:0;return{[m]:h[m]+N,data:{[m]:L,centerOffset:P-L-N,...O&&{alignmentOffset:N}},reset:O}}}),Yi=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:u,elements:c}=t,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:p=!0,...v}=ne(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const w=re(o),g=q(a),x=re(a)===a,E=await(u.isRTL==null?void 0:u.isRTL(c.floating)),C=h||(x||!p?[Ue(a)]:$i(a)),S=y!=="none";!h&&S&&C.push(...Hi(a,p,y,E));const R=[a,...C],T=await Se(t,v),D=[];let _=((r=i.flip)==null?void 0:r.overflows)||[];if(f&&D.push(T[w]),d){const P=ki(o,s,E);D.push(T[P[0]],T[P[1]])}if(_=[..._,{placement:o,overflows:D}],!D.every(P=>P<=0)){var M,k;const P=(((M=i.flip)==null?void 0:M.index)||0)+1,L=R[P];if(L&&(!(d==="alignment"?g!==q(L):!1)||_.every(A=>A.overflows[0]>0&&q(A.placement)===g)))return{data:{index:P,overflows:_},reset:{placement:L}};let O=(k=_.filter(N=>N.overflows[0]<=0).sort((N,A)=>N.overflows[1]-A.overflows[1])[0])==null?void 0:k.placement;if(!O)switch(m){case"bestFit":{var j;const N=(j=_.filter(A=>{if(S){const F=q(A.placement);return F===g||F==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(F=>F>0).reduce((F,U)=>F+U,0)]).sort((A,F)=>A[1]-F[1])[0])==null?void 0:j[0];N&&(O=N);break}case"initialPlacement":O=a;break}if(o!==O)return{reset:{placement:O}}}return{}}}};function fn(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function dn(e){return Mi.some(t=>e[t]>=0)}const Xi=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 i=await Se(t,{...o,elementContext:"reference"}),s=fn(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:dn(s)}}}case"escaped":{const i=await Se(t,{...o,altBoundary:!0}),s=fn(i,n.floating);return{data:{escapedOffsets:s,escaped:dn(s)}}}default:return{}}}}},Qn=new Set(["left","top"]);async function Gi(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=re(n),a=we(n),u=q(n)==="y",c=Qn.has(s)?-1:1,f=i&&u?-1:1,d=ne(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:y}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof y=="number"&&(m=a==="end"?y*-1:y),u?{x:m*f,y:h*c}:{x:h*c,y:m*f}}const qi=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,u=await Gi(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:s}}}}},Zi=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:v=>{let{x:w,y:g}=v;return{x:w,y:g}}},...u}=ne(e,t),c={x:n,y:r},f=await Se(t,u),d=q(re(o)),h=jt(d);let m=c[h],y=c[d];if(i){const v=h==="y"?"top":"left",w=h==="y"?"bottom":"right",g=m+f[v],x=m-f[w];m=Ct(g,m,x)}if(s){const v=d==="y"?"top":"left",w=d==="y"?"bottom":"right",g=y+f[v],x=y-f[w];y=Ct(g,y,x)}const p=a.fn({...t,[h]:m,[d]:y});return{...p,data:{x:p.x-n,y:p.y-r,enabled:{[h]:i,[d]:s}}}}}},Qi=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:u=!0,crossAxis:c=!0}=ne(e,t),f={x:n,y:r},d=q(o),h=jt(d);let m=f[h],y=f[d];const p=ne(a,t),v=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(u){const x=h==="y"?"height":"width",E=i.reference[h]-i.floating[x]+v.mainAxis,C=i.reference[h]+i.reference[x]-v.mainAxis;m<E?m=E:m>C&&(m=C)}if(c){var w,g;const x=h==="y"?"width":"height",E=Qn.has(re(o)),C=i.reference[d]-i.floating[x]+(E&&((w=s.offset)==null?void 0:w[d])||0)+(E?0:v.crossAxis),S=i.reference[d]+i.reference[x]+(E?0:((g=s.offset)==null?void 0:g[d])||0)-(E?v.crossAxis:0);y<C?y=C:y>S&&(y=S)}return{[h]:m,[d]:y}}}},Ji=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:u=()=>{},...c}=ne(e,t),f=await Se(t,c),d=re(o),h=we(o),m=q(o)==="y",{width:y,height:p}=i.floating;let v,w;d==="top"||d==="bottom"?(v=d,w=h===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(w=d,v=h==="end"?"top":"bottom");const g=p-f.top-f.bottom,x=y-f.left-f.right,E=ie(p-f[v],g),C=ie(y-f[w],x),S=!t.middlewareData.shift;let R=E,T=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(T=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(R=g),S&&!h){const _=V(f.left,0),M=V(f.right,0),k=V(f.top,0),j=V(f.bottom,0);m?T=y-2*(_!==0||M!==0?_+M:V(f.left,f.right)):R=p-2*(k!==0||j!==0?k+j:V(f.top,f.bottom))}await u({...t,availableWidth:T,availableHeight:R});const D=await s.getDimensions(a.floating);return y!==D.width||p!==D.height?{reset:{rects:!0}}:{}}}};function Je(){return typeof window<"u"}function be(e){return Jn(e)?(e.nodeName||"").toLowerCase():"#document"}function H(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function te(e){var t;return(t=(Jn(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Jn(e){return Je()?e instanceof Node||e instanceof H(e).Node:!1}function z(e){return Je()?e instanceof Element||e instanceof H(e).Element:!1}function ee(e){return Je()?e instanceof HTMLElement||e instanceof H(e).HTMLElement:!1}function pn(e){return!Je()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof H(e).ShadowRoot}const es=new Set(["inline","contents"]);function Oe(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Y(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!es.has(o)}const ts=new Set(["table","td","th"]);function ns(e){return ts.has(be(e))}const rs=[":popover-open",":modal"];function et(e){return rs.some(t=>{try{return e.matches(t)}catch{return!1}})}const os=["transform","translate","scale","rotate","perspective"],is=["transform","translate","scale","rotate","perspective","filter"],ss=["paint","layout","strict","content"];function $t(e){const t=Wt(),n=z(e)?Y(e):e;return os.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||is.some(r=>(n.willChange||"").includes(r))||ss.some(r=>(n.contain||"").includes(r))}function as(e){let t=se(e);for(;ee(t)&&!ve(t);){if($t(t))return t;if(et(t))return null;t=se(t)}return null}function Wt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const cs=new Set(["html","body","#document"]);function ve(e){return cs.has(be(e))}function Y(e){return H(e).getComputedStyle(e)}function tt(e){return z(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function se(e){if(be(e)==="html")return e;const t=e.assignedSlot||e.parentNode||pn(e)&&e.host||te(e);return pn(t)?t.host:t}function er(e){const t=se(e);return ve(t)?e.ownerDocument?e.ownerDocument.body:e.body:ee(t)&&Oe(t)?t:er(t)}function Pe(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=er(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=H(o);if(i){const a=St(s);return t.concat(s,s.visualViewport||[],Oe(o)?o:[],a&&n?Pe(a):[])}return t.concat(o,Pe(o,[],n))}function St(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function tr(e){const t=Y(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ee(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=He(n)!==i||He(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Bt(e){return z(e)?e:e.contextElement}function pe(e){const t=Bt(e);if(!ee(t))return Z(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=tr(t);let s=(i?He(n.width):n.width)/r,a=(i?He(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const ls=Z(0);function nr(e){const t=H(e);
vendor: 6,619 bytes, line 9
9return!Wt()||!t.visualViewport?ls:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function us(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==H(e)?!1:t}function ae(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Bt(e);let s=Z(1);t&&(r?z(r)&&(s=pe(r)):s=pe(e));const a=us(i,n,r)?nr(i):Z(0);let u=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,f=o.width/s.x,d=o.height/s.y;if(i){const h=H(i),m=r&&z(r)?H(r):r;let y=h,p=St(y);for(;p&&r&&m!==y;){const v=pe(p),w=p.getBoundingClientRect(),g=Y(p),x=w.left+(p.clientLeft+parseFloat(g.paddingLeft))*v.x,E=w.top+(p.clientTop+parseFloat(g.paddingTop))*v.y;u*=v.x,c*=v.y,f*=v.x,d*=v.y,u+=x,c+=E,y=H(p),p=St(y)}}return Ke({width:f,height:d,x:u,y:c})}function Vt(e,t){const n=tt(e).scrollLeft;return t?t.left+n:ae(te(e)).left+n}function rr(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:Vt(e,r)),i=r.top+t.scrollTop;return{x:o,y:i}}function fs(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=te(r),a=t?et(t.floating):!1;if(r===s||a&&i)return n;let u={scrollLeft:0,scrollTop:0},c=Z(1);const f=Z(0),d=ee(r);if((d||!d&&!i)&&((be(r)!=="body"||Oe(s))&&(u=tt(r)),ee(r))){const m=ae(r);c=pe(r),f.x=m.x+r.clientLeft,f.y=m.y+r.clientTop}const h=s&&!d&&!i?rr(s,u,!0):Z(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+f.x+h.x,y:n.y*c.y-u.scrollTop*c.y+f.y+h.y}}function ds(e){return Array.from(e.getClientRects())}function ps(e){const t=te(e),n=tt(e),r=e.ownerDocument.body,o=V(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=V(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Vt(e);const a=-n.scrollTop;return Y(r).direction==="rtl"&&(s+=V(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}function ms(e,t){const n=H(e),r=te(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,u=0;if(o){i=o.width,s=o.height;const c=Wt();(!c||c&&t==="fixed")&&(a=o.offsetLeft,u=o.offsetTop)}return{width:i,height:s,x:a,y:u}}const vs=new Set(["absolute","fixed"]);function hs(e,t){const n=ae(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=ee(e)?pe(e):Z(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,u=o*i.x,c=r*i.y;return{width:s,height:a,x:u,y:c}}function mn(e,t,n){let r;if(t==="viewport")r=ms(e,n);else if(t==="document")r=ps(te(e));else if(z(t))r=hs(t,n);else{const o=nr(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ke(r)}function or(e,t){const n=se(e);return n===t||!z(n)||ve(n)?!1:Y(n).position==="fixed"||or(n,t)}function gs(e,t){const n=t.get(e);if(n)return n;let r=Pe(e,[],!1).filter(a=>z(a)&&be(a)!=="body"),o=null;const i=Y(e).position==="fixed";let s=i?se(e):e;for(;z(s)&&!ve(s);){const a=Y(s),u=$t(s);!u&&a.position==="fixed"&&(o=null),(i?!u&&!o:!u&&a.position==="static"&&!!o&&vs.has(o.position)||Oe(s)&&!u&&or(e,s))?r=r.filter(f=>f!==s):o=a,s=se(s)}return t.set(e,r),r}function ys(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?et(t)?[]:gs(t,this._c):[].concat(n),r],a=s[0],u=s.reduce((c,f)=>{const d=mn(t,f,o);return c.top=V(d.top,c.top),c.right=ie(d.right,c.right),c.bottom=ie(d.bottom,c.bottom),c.left=V(d.left,c.left),c},mn(t,a,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function ws(e){const{width:t,height:n}=tr(e);return{width:t,height:n}}function bs(e,t,n){const r=ee(t),o=te(t),i=n==="fixed",s=ae(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const u=Z(0);function c(){u.x=Vt(o)}if(r||!r&&!i)if((be(t)!=="body"||Oe(o))&&(a=tt(t)),r){const m=ae(t,!0,i,t);u.x=m.x+t.clientLeft,u.y=m.y+t.clientTop}else o&&c();i&&!r&&o&&c();const f=o&&!r&&!i?rr(o,a):Z(0),d=s.left+a.scrollLeft-u.x-f.x,h=s.top+a.scrollTop-u.y-f.y;return{x:d,y:h,width:s.width,height:s.height}}function ut(e){return Y(e).position==="static"}function vn(e,t){if(!ee(e)||Y(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return te(e)===n&&(n=n.ownerDocument.body),n}function ir(e,t){const n=H(e);if(et(e))return n;if(!ee(e)){let o=se(e);for(;o&&!ve(o);){if(z(o)&&!ut(o))return o;o=se(o)}return n}let r=vn(e,t);for(;r&&ns(r)&&ut(r);)r=vn(r,t);return r&&ve(r)&&ut(r)&&!$t(r)?n:r||as(e)||n}const xs=async function(e){const t=this.getOffsetParent||ir,n=this.getDimensions,r=await n(e.floating);return{reference:bs(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Es(e){return Y(e).direction==="rtl"}const Cs={convertOffsetParentRelativeRectToViewportRelativeRect:fs,getDocumentElement:te,getClippingRect:ys,getOffsetParent:ir,getElementRects:xs,getClientRects:ds,getDimensions:ws,getScale:pe,isElement:z,isRTL:Es};function sr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Rs(e,t){let n=null,r;const o=te(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,u){a===void 0&&(a=!1),u===void 0&&(u=1),i();const c=e.getBoundingClientRect(),{left:f,top:d,width:h,height:m}=c;if(a||t(),!h||!m)return;const y=Le(d),p=Le(o.clientWidth-(f+h)),v=Le(o.clientHeight-(d+m)),w=Le(f),x={rootMargin:-y+"px "+-p+"px "+-v+"px "+-w+"px",threshold:V(0,ie(1,u))||1};let E=!0;function C(S){const R=S[0].intersectionRatio;if(R!==u){if(!E)return s();R?s(!1,R):r=setTimeout(()=>{s(!1,1e-7)},1e3)}R===1&&!sr(c,e.getBoundingClientRect())&&s(),E=!1}try{n=new IntersectionObserver(C,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(C,x)}n.observe(e)}return s(!0),i}function Ss(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,c=Bt(e),f=o||i?[...c?Pe(c):[],...Pe(t)]:[];f.forEach(w=>{o&&w.addEventListener("scroll",n,{passive:!0}),i&&w.addEventListener("resize",n)});const d=c&&a?Rs(c,n):null;let h=-1,m=null;s&&(m=new ResizeObserver(w=>{let[g]=w;g&&g.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var x;(x=m)==null||x.observe(t)})),n()}),c&&!u&&m.observe(c),m.observe(t));let y,p=u?ae(e):null;u&&v();function v(){const w=ae(e);p&&!sr(p,w)&&n(),p=w,y=requestAnimationFrame(v)}return n(),()=>{var w;f.forEach(g=>{o&&g.removeEventListener("scroll",n),i&&g.removeEventListener("resize",n)}),d?.(),(w=m)==null||w.disconnect(),m=null,u&&cancelAnimationFrame(y)}}const Ps=qi,As=Zi,Ts=Yi,Os=Ji,_s=Xi,hn=zi,Ds=Qi,Ns=(e,t,n)=>{const r=new Map,o={platform:Cs,...n},i={...o.platform,_c:r};return Ki(e,t,{...o,platform:i})};var Is=typeof document<"u",Ms=function(){},We=Is?l.useLayoutEffect:Ms;function ze(e,t){if(e===t)return!0;
vendor: 1,498 bytes, line 9
9if(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(!ze(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!ze(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function ar(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function gn(e,t){const n=ar(e);return Math.round(t*n)/n}function ft(e){const t=l.useRef(e);return We(()=>{t.current=e}),t}function Ls(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:u,open:c}=e,[f,d]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=l.useState(r);ze(h,r)||m(r);const[y,p]=l.useState(null),[v,w]=l.useState(null),g=l.useCallback(A=>{A!==S.current&&(S.current=A,p(A))},[]),x=l.useCallback(A=>{A!==R.current&&(R.current=A,w(A))},[]),E=i||y,C=s||v,S=l.useRef(null),R=l.useRef(null),T=l.useRef(f),D=u!=null,_=ft(u),M=ft(o),k=ft(c),j=l.useCallback(()=>{if(!S.current||!R.current)return;const A={placement:t,strategy:n,middleware:h};M.current&&(A.platform=M.current),Ns(S.current,R.current,A).then(F=>{const U={...F,isPositioned:k.current!==!1};
vendor: 4,816 bytes, line 9
9P.current&&!ze(T.current,U)&&(T.current=U,_t.flushSync(()=>{d(U)}))})},[h,t,n,M,k]);We(()=>{c===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(A=>({...A,isPositioned:!1})))},[c]);const P=l.useRef(!1);We(()=>(P.current=!0,()=>{P.current=!1}),[]),We(()=>{if(E&&(S.current=E),C&&(R.current=C),E&&C){if(_.current)return _.current(E,C,j);j()}},[E,C,j,_,D]);const L=l.useMemo(()=>({reference:S,floating:R,setReference:g,setFloating:x}),[g,x]),O=l.useMemo(()=>({reference:E,floating:C}),[E,C]),N=l.useMemo(()=>{const A={position:n,left:0,top:0};if(!O.floating)return A;const F=gn(O.floating,f.x),U=gn(O.floating,f.y);return a?{...A,transform:"translate("+F+"px, "+U+"px)",...ar(O.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:F,top:U}},[n,a,O.floating,f.x,f.y]);return l.useMemo(()=>({...f,update:j,refs:L,elements:O,floatingStyles:N}),[f,j,L,O,N])}const js=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?hn({element:r.current,padding:o}).fn(n):{}:r?hn({element:r,padding:o}).fn(n):{}}}},Fs=(e,t)=>({...Ps(e),options:[e,t]}),ks=(e,t)=>({...As(e),options:[e,t]}),$s=(e,t)=>({...Ds(e),options:[e,t]}),Ws=(e,t)=>({...Ts(e),options:[e,t]}),Bs=(e,t)=>({...Os(e),options:[e,t]}),Vs=(e,t)=>({..._s(e),options:[e,t]}),Hs=(e,t)=>({...js(e),options:[e,t]});var Us="Arrow",cr=l.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return b.jsx(I.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:b.jsx("polygon",{points:"0,0 30,0 15,10"})})});cr.displayName=Us;var Ks=cr;function zs(e){const[t,n]=l.useState(void 0);return J(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const u=i.borderBoxSize,c=Array.isArray(u)?u[0]:u;s=c.inlineSize,a=c.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Ht="Popper",[lr,Mc]=ge(Ht),[Ys,ur]=lr(Ht),fr=e=>{const{__scopePopper:t,children:n}=e,[r,o]=l.useState(null);return b.jsx(Ys,{scope:t,anchor:r,onAnchorChange:o,children:n})};fr.displayName=Ht;var dr="PopperAnchor",pr=l.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=ur(dr,n),s=l.useRef(null),a=B(t,s);return l.useEffect(()=>{i.onAnchorChange(r?.current||s.current)}),r?null:b.jsx(I.div,{...o,ref:a})});pr.displayName=dr;var Ut="PopperContent",[Xs,Gs]=lr(Ut),mr=l.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:u=!0,collisionBoundary:c=[],collisionPadding:f=0,sticky:d="partial",hideWhenDetached:h=!1,updatePositionStrategy:m="optimized",onPlaced:y,...p}=e,v=ur(Ut,n),[w,g]=l.useState(null),x=B(t,Ee=>g(Ee)),[E,C]=l.useState(null),S=zs(E),R=S?.width??0,T=S?.height??0,D=r+(i!=="center"?"-"+i:""),_=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},M=Array.isArray(c)?c:[c],k=M.length>0,j={padding:_,boundary:M.filter(Zs),altBoundary:k},{refs:P,floatingStyles:L,placement:O,isPositioned:N,middlewareData:A}=Ls({strategy:"fixed",placement:D,whileElementsMounted:(...Ee)=>Ss(...Ee,{animationFrame:m==="always"}),elements:{reference:v.anchor},middleware:[Fs({mainAxis:o+T,alignmentAxis:s}),u&&ks({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?$s():void 0,...j}),u&&Ws({...j}),Bs({...j,apply:({elements:Ee,rects:nn,availableWidth:Io,availableHeight:Mo})=>{const{width:Lo,height:jo}=nn.reference,Ne=Ee.floating.style;Ne.setProperty("--radix-popper-available-width",`${Io}px`),Ne.setProperty("--radix-popper-available-height",`${Mo}px`),Ne.setProperty("--radix-popper-anchor-width",`${Lo}px`),Ne.setProperty("--radix-popper-anchor-height",`${jo}px`)}}),E&&Hs({element:E,padding:a}),Qs({arrowWidth:R,arrowHeight:T}),h&&Vs({strategy:"referenceHidden",...j})]}),[F,U]=gr(O),_e=Q(y);J(()=>{N&&_e?.()},[N,_e]);const xe=A.arrow?.x,le=A.arrow?.y,De=A.arrow?.centerOffset!==0,[Do,No]=l.useState();return J(()=>{w&&No(window.getComputedStyle(w).zIndex)},[w]),b.jsx("div",{ref:P.setFloating,"data-radix-popper-content-wrapper":"",style:{...L,transform:N?L.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Do,"--radix-popper-transform-origin":[A.transformOrigin?.x,A.transformOrigin?.y].join(" "),...A.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:b.jsx(Xs,{scope:n,placedSide:F,onArrowChange:C,arrowX:xe,arrowY:le,shouldHideArrow:De,children:b.jsx(I.div,{"data-side":F,"data-align":U,...p,ref:x,style:{...p.style,animation:N?void 0:"none"}})})})});mr.displayName=Ut;var vr="PopperArrow",qs={top:"bottom",right:"left",bottom:"top",left:"r
9ight"},hr=l.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=Gs(vr,r),s=qs[i.placedSide];return b.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:b.jsx(Ks,{...o,ref:n,style:{...o.style,display:"block"}})})});hr.displayName=vr;function Zs(e){return e!==null}var Qs=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,s=o.arrow?.centerOffset!==0,a=s?0:e.arrowWidth,u=s?0:e.arrowHeight,[c,f]=gr(n),d={start:"0%",center:"50%",end:"100%"}[f],h=(o.arrow?.x??0)+a/2,m=(o.arrow?.y??0)+u/2;let y="",p="";return c==="bottom"?(y=s?d:`${h}px`,p=`${-u}px`):c==="top"?(y=s?d:`${h}px`,p=`${r.floating.height+u}px`):c==="right"?(y=`${-u}px`,p=s?d:`${m}px`):c==="left"&&(y=`${r.floating.width+u}px`,p=s?d:`${m}px`),{data:{x:y,y:p}}}});function gr(e){const[t,n="center"]=e.split("-");return[t,n]}var Lc=fr,jc=pr,Fc=mr,kc=hr,Js=l.createContext(void 0);function ea(e){const t=l.useContext(Js);return e||t||"ltr"}function $c(e){const t=l.useRef({value:e,previous:e});return l.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var dt="focusScope.autoFocusOnMount",pt="focusScope.autoFocusOnUnmount",yn={bubbles:!1,cancelable:!0},ta="FocusScope",yr=l.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,u]=l.useState(null),c=Q(o),f=Q(i),d=l.useRef(null),h=B(t,p=>u(p)),m=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(r){let p=function(x){if(m.paused||!a)return;const E=x.target;a.contains(E)?d.current=E:oe(d.current,{select:!0})},v=function(x){if(m.paused||!a)return;const E=x.relatedTarget;E!==null&&(a.contains(E)||oe(d.current,{select:!0}))},w=function(x){if(document.activeElement===document.body)for(const C of x)C.removedNodes.length>0&&oe(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",v);const g=new MutationObserver(w);return a&&g.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",v),g.disconnect()}}},[r,a,m.paused]),l.useEffect(()=>{if(a){bn.add(m);const p=document.activeElement;if(!a.contains(p)){const w=new CustomEvent(dt,yn);a.addEventListener(dt,c),a.dispatchEvent(w),w.defaultPrevented||(na(aa(wr(a)),{select:!0}),document.activeElement===p&&oe(a))}return()=>{a.removeEventListener(dt,c),setTimeout(()=>{const w=new CustomEvent(pt,yn);a.addEventListener(pt,f),a.dispatchEvent(w),w.defaultPrevented||oe(p??document.body,{select:!0}),a.removeEventListener(pt,f),bn.remove(m)},0)}}},[a,c,f,m]);const y=l.useCallback(p=>{if(!n&&!r||m.paused)return;const v=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,w=document.activeElement;if(v&&w){const g=p.currentTarget,[x,E]=ra(g);x&&E?!p.shiftKey&&w===E?(p.preventDefault(),n&&oe(x,{select:!0})):p.shiftKey&&w===x&&(p.preventDefault(),n&&oe(E,{select:!0})):w===g&&p.preventDefault()}},[n,r,m.paused]);return b.jsx(I.div,{tabIndex:-1,...s,ref:h,onKeyDown:y})});yr.displayName=ta;function na(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(oe(r,{select:t}),document.activeElement!==n)return}function ra(e){const t=wr(e),n=wn(t,e),r=wn(t.reverse(),e);return[n,r]}function wr(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(!oa(n,{upTo:t}))return n}function oa(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 ia(e){return e instanceof HTMLInputElement&&"select"in e}function oe(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ia(e)&&t&&e.select()}}var bn=sa();function sa(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=xn(e,t),e.unshift(t)},remove(t){e=xn(e,t),e[0]?.resume()}}}function xn(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function aa(e){return e.filter(t=>t.tagName!=="A")}var mt=0;function ca(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??En()),document.body.insertAdjacentElement("beforeend",e[1]??En()),mt++,()=>{mt===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),mt--}},[])}function En(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.
vendor: 4,332 bytes, line 9
9style.position="fixed",e.style.pointerEvents="none",e}var Pt=function(e,t){return Pt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},Pt(e,t)};function br(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Pt(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var K=function(){return K=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},K.apply(this,arguments)};function nt(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 xr(e,t,n,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(i=(o<3?s(i):o>3?s(t,n,i):s(t,n))||i);return o>3&&i&&Object.defineProperty(t,n,i),i}function Er(e,t){return function(n,r){t(n,r,e)}}function Cr(e,t,n,r,o,i){function s(w){if(w!==void 0&&typeof w!="function")throw new TypeError("Function expected");return w}for(var a=r.kind,u=a==="getter"?"get":a==="setter"?"set":"value",c=!t&&e?r.static?e:e.prototype:null,f=t||(c?Object.getOwnPropertyDescriptor(c,r.name):{}),d,h=!1,m=n.length-1;m>=0;m--){var y={};for(var p in r)y[p]=p==="access"?{}:r[p];for(var p in r.access)y.access[p]=r.access[p];y.addInitializer=function(w){if(h)throw new TypeError("Cannot add initializers after decoration has completed");i.push(s(w||null))};var v=(0,n[m])(a==="accessor"?{get:f.get,set:f.set}:f[u],y);if(a==="accessor"){if(v===void 0)continue;if(v===null||typeof v!="object")throw new TypeError("Object expected");(d=s(v.get))&&(f.get=d),(d=s(v.set))&&(f.set=d),(d=s(v.init))&&o.unshift(d)}else(d=s(v))&&(a==="field"?o.unshift(d):f[u]=d)}c&&Object.defineProperty(c,r.name,f),h=!0}function Rr(e,t,n){for(var r=arguments.length>2,o=0;o<t.length;o++)n=r?t[o].call(e,n):t[o].call(e);return r?n:void 0}function Sr(e){return typeof e=="symbol"?e:"".concat(e)}function Pr(e,t,n){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function Ar(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function Tr(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(f){try{c(r.next(f))}catch(d){s(d)}}function u(f){try{c(r.throw(f))}catch(d){s(d)}}function c(f){f.done?i(f.value):o(f.value).then(a,u)}c((r=r.apply(e,t||[])).next())})}function Or(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(f){return u([c,f])}}function u(c){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(n=0)),n;)try{if(r=1,o&&(i=c[0]&2?o.return:c[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,c[1])).done)return i;switch(o=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,o=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){n.label=c[1];break}if(c[0]===6&&n.label<i[1]){n.label=i[1],i=c;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(c);break}i[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(f){c=[6,f],o=0}finally{r=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var rt=Object.create?function(e,t,n,r){r===void 0&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);
vendor: 4,412 bytes, line 9
9(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]};function _r(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&rt(t,e,n)}function Ye(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Kt(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function Dr(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Kt(arguments[t]));return e}function Nr(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),o=0,t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,o++)r[o]=i[s];return r}function zt(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}function he(e){return this instanceof he?(this.v=e,this):new he(e)}function Ir(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(m){return function(y){return Promise.resolve(y).then(m,d)}}function a(m,y){r[m]&&(o[m]=function(p){return new Promise(function(v,w){i.push([m,p,v,w])>1||u(m,p)})},y&&(o[m]=y(o[m])))}function u(m,y){try{c(r[m](y))}catch(p){h(i[0][3],p)}}function c(m){m.value instanceof he?Promise.resolve(m.value.v).then(f,d):h(i[0][2],m)}function f(m){u("next",m)}function d(m){u("throw",m)}function h(m,y){m(y),i.shift(),i.length&&u(i[0][0],i[0][1])}}function Mr(e){var t,n;return t={},r("next"),r("throw",function(o){throw o}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(o,i){t[o]=e[o]?function(s){return(n=!n)?{value:he(e[o](s)),done:!1}:i?i(s):s}:i}}function Lr(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Ye=="function"?Ye(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,u){s=e[i](s),o(a,u,s.done,s.value)})}}function o(i,s,a,u){Promise.resolve(u).then(function(c){i({value:c,done:a})},s)}}function jr(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var la=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},At=function(e){return At=Object.getOwnPropertyNames||function(t){var n=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[n.length]=r);return n},At(e)};function Fr(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=At(e),r=0;r<n.length;r++)n[r]!=="default"&&rt(t,e,n[r]);return la(t,e),t}function kr(e){return e&&e.__esModule?e:{default:e}}function $r(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)}function Wr(e,t,n,r,o){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?o.call(e,n):o?o.value=n:t.set(e,n),n}function Br(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function Vr(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var r,o;
vendor: 1,695 bytes, line 9
9if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(o=r)}if(typeof r!="function")throw new TypeError("Object not disposable.");o&&(r=function(){try{o.call(this)}catch(i){return Promise.reject(i)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var ua=typeof SuppressedError=="function"?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function Hr(e){function t(i){e.error=e.hasError?new ua(i,e.error,"An error was suppressed during disposal."):i,e.hasError=!0}var n,r=0;function o(){for(;n=e.stack.pop();)try{if(!n.async&&r===1)return r=0,e.stack.push(n),Promise.resolve().then(o);if(n.dispose){var i=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(i).then(o,function(s){return t(s),o()})}else r|=1}catch(s){t(s)}if(r===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return o()}function Ur(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(n,r,o,i,s){return r?t?".jsx":".js":o&&(!i||!s)?n:o+i+"."+s.toLowerCase()+"js"}):e}const fa={__extends:br,__assign:K,__rest:nt,__decorate:xr,__param:Er,__esDecorate:Cr,__runInitializers:Rr,__propKey:Sr,__setFunctionName:Pr,__metadata:Ar,__awaiter:Tr,__generator:Or,__createBinding:rt,__exportStar:_r,__values:Ye,__read:Kt,__spread:Dr,__spreadArrays:Nr,__spreadArray:zt,__await:he,__asyncGenerator:Ir,__asyncDelegator:Mr,__asyncValues:Lr,__makeTemplateOb
vendor: 5,733 bytes, lines 9-24
9ject:jr,__importStar:Fr,__importDefault:kr,__classPrivateFieldGet:$r,__classPrivateFieldSet:Wr,__classPrivateFieldIn:Br,__addDisposableResource:Vr,__disposeResources:Hr,__rewriteRelativeImportExtension:Ur},Wc=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:Vr,get __assign(){return K},__asyncDelegator:Mr,__asyncGenerator:Ir,__asyncValues:Lr,__await:he,__awaiter:Tr,__classPrivateFieldGet:$r,__classPrivateFieldIn:Br,__classPrivateFieldSet:Wr,__createBinding:rt,__decorate:xr,__disposeResources:Hr,__esDecorate:Cr,__exportStar:_r,__extends:br,__generator:Or,__importDefault:kr,__importStar:Fr,__makeTemplateObject:jr,__metadata:Ar,__param:Er,__propKey:Sr,__read:Kt,__rest:nt,__rewriteRelativeImportExtension:Ur,__runInitializers:Rr,__setFunctionName:Pr,__spread:Dr,__spreadArray:zt,__spreadArrays:Nr,__values:Ye,default:fa},Symbol.toStringTag,{value:"Module"}));var Be="right-scroll-bar-position",Ve="width-before-scroll-bar",da="with-scroll-bars-hidden",pa="--removed-body-scroll-bar-size";function vt(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function ma(e,t){var n=l.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 va=typeof window<"u"?l.useLayoutEffect:l.useEffect,Cn=new WeakMap;function ha(e,t){var n=ma(null,function(r){return e.forEach(function(o){return vt(o,r)})});return va(function(){var r=Cn.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(a){i.has(a)||vt(a,null)}),i.forEach(function(a){o.has(a)||vt(a,s)})}Cn.set(n,e)},[e]),n}function ga(e){return e}function ya(e,t){t===void 0&&(t=ga);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var u=function(){var f=s;s=[],f.forEach(i)},c=function(){return Promise.resolve().then(u)};c(),n={push:function(f){s.push(f),c()},filter:function(f){return s=s.filter(f),n}}}};return o}function wa(e){e===void 0&&(e={});var t=ya(null);return t.options=K({async:!0,ssr:!1},e),t}var Kr=function(e){var t=e.sideCar,n=nt(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 l.createElement(r,K({},n))};Kr.isSideCarExport=!0;function ba(e,t){return e.useMedium(t),Kr}var zr=wa(),ht=function(){},ot=l.forwardRef(function(e,t){var n=l.useRef(null),r=l.useState({onScrollCapture:ht,onWheelCapture:ht,onTouchMoveCapture:ht}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,u=e.className,c=e.removeScrollBar,f=e.enabled,d=e.shards,h=e.sideCar,m=e.noRelative,y=e.noIsolation,p=e.inert,v=e.allowPinchZoom,w=e.as,g=w===void 0?"div":w,x=e.gapMode,E=nt(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=h,S=ha([n,t]),R=K(K({},E),o);return l.createElement(l.Fragment,null,f&&l.createElement(C,{sideCar:zr,removeScrollBar:c,shards:d,noRelative:m,noIsolation:y,inert:p,setCallbacks:i,allowPinchZoom:!!v,lockRef:n,gapMode:x}),s?l.cloneElement(l.Children.only(a),K(K({},R),{ref:S})):l.createElement(g,K({},R,{className:u,ref:S}),a))});ot.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ot.classNames={fullWidth:Ve,zeroRight:Be};var xa=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Ea(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=xa();return t&&e.setAttribute("nonce",t),e}function Ca(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ra(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Sa=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Ea())&&(Ca(t,n),Ra(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Pa=function(){var e=Sa();return function(t,n){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Yr=function(){var e=Pa(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Aa={left:0,top:0,right:0,gap:0},gt=function(e){return parseInt(e||"",10)||0},Ta=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[gt(n),gt(r),gt(o)]},Oa=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Aa;var t=Ta(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])}},_a=Yr(),me="data-scroll-locked",Da=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),` 10 .`.concat(da,` { 11 overflow: hidden `).concat(r,`; 12 padding-right: `).concat(a,"px ").concat(r,`; 13 } 14 body[`).concat(me,`] { 15 overflow: hidden `).concat(r,`; 16 overscroll-behavior: contain; 17 `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` 18 padding-left: `.concat(o,`px; 19 padding-top: `).concat(i,`px; 20 padding-right: `).concat(s,`px; 21 margin-left:0; 22 margin-top:0; 23 margin-right: `).concat(a,"px ").concat(r,`; 24 `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";
24")].filter(Boolean).join(""),` 25 } 26 27 .`).concat(Be,` { 28 right: `).concat(a,"px ").concat(r,`; 29 } 30 31 .`).concat(Ve,` { 32 margin-right: `).concat(a,"px ").concat(r,`; 33 } 34 35 .`).concat(Be," .").concat(Be,` { 36 right: 0 `).concat(r,`; 37 } 38 39 .`).concat(Ve," .").concat(Ve,` { 40 margin-right: 0 `).concat(r,`; 41 } 42 43 body[`).concat(me,`] { 44 `).concat(pa,": ").concat(a,`px; 45 } 46`)},Rn=function(){var e=parseInt(document.body.getAttribute(me)||"0",10);return isFinite(e)?e:0},Na=function(){l.useEffect(function(){return document.body.setAttribute(me,(Rn()+1).toString()),function(){var e=Rn()-1;e<=0?document.body.removeAttribute(me):document.body.setAttribute(me,e.toString())}},[])},Ia=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Na();var i=l.useMemo(function(){return Oa(o)},[o]);return l.createElement(_a,{styles:Da(i,!t,o,n?"":"!important")})},Tt=!1;if(typeof window<"u")try{var je=Object.defineProperty({},"passive",{get:function(){return Tt=!0,!0}});window.addEventListener("test",je,je),window.removeEventListener("test",je,je)}catch{Tt=!1}var ue=Tt?{passive:!1}:!1,Ma=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&&!Ma(e)&&n[t]==="visible")},La=function(e){return Xr(e,"overflowY")},ja=function(e){return Xr(e,"overflowX")},Sn=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 i=qr(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Fa=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},ka=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Gr=function(e,t){return e==="v"?La(t):ja(t)},qr=function(e,t){return e==="v"?Fa(t):ka(t)},$a=function(e,t){return e==="h"&&t==="rtl"?-1:1},Wa=function(e,t,n,r,o){var i=$a(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,u=t.contains(a),c=!1,f=s>0,d=0,h=0;do{if(!a)break;var m=qr(e,a),y=m[0],p=m[1],v=m[2],w=p-v-i*y;(y||w)&&Gr(e,a)&&(d+=w,h+=y);var g=a.parentNode;a=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!u&&a!==document.body||u&&(t.contains(a)||t===a));return(f&&(Math.abs(d)<1||!o)||!f&&(Math.abs(h)<1||!o))&&(c=!0),c},Fe=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Pn=function(e){return[e.deltaX,e.deltaY]},An=function(e){return e&&"current"in e?e.current:e},Ba=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Va=function(e){return` 47 .block-interactivity-`.concat(e,` {pointer-events: none;} 48 .allow-interactivity-`).concat(e,` {pointer-events: all;} 49`)},Ha=0,fe=[];function Ua(e){var t=l.useRef([]),n=l.useRef([0,0]),r=l.useRef(),o=l.useState(Ha++)[0],i=l.useState(Yr)[0],s=l.useRef(e);l.useEffect(function(){s.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var p=zt([e.lockRef.current],(e.shards||[]).map(An),!0).filter(Boolean);return p.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),p.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=l.useCallback(function(p,v){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!s.current.allowPinchZoom;var w=Fe(p),g=n.current,x="deltaX"in p?p.deltaX:g[0]-w[0],E="deltaY"in p?p.deltaY:g[1]-w[1],C,S=p.target,R=Math.abs(x)>Math.abs(E)?"h":"v";if("touches"in p&&R==="h"&&S.type==="range")return!1;var T=Sn(R,S);if(!T)return!0;if(T?C=R:(C=R==="v"?"h":"v",T=Sn(R,S)),!T)return!1;if(!r.current&&"changedTouches"in p&&(x||E)&&(r.current=C),!C)return!0;var D=r.current||C;return Wa(D,v,p,D==="h"?x:E,!0)},[]),u=l.useCallback(function(p){var v=p;if(!(!fe.length||fe[fe.length-1]!==i)){var w="deltaY"in v?Pn(v):Fe(v),g=t.current.filter(function(C){return C.name===v.type&&(C.target===v.target||v.target===C.shadowParent)&&Ba(C.delta,w)})[0];if(g&&g.should){v.cancelable&&v.preventDefault();return}
vendor: 8,715 bytes, lines 49-53
49if(!g){var x=(s.current.shards||[]).map(An).filter(Boolean).filter(function(C){return C.contains(v.target)}),E=x.length>0?a(v,x[0]):!s.current.noIsolation;E&&v.cancelable&&v.preventDefault()}}},[]),c=l.useCallback(function(p,v,w,g){var x={name:p,delta:v,target:w,should:g,shadowParent:Ka(w)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(E){return E!==x})},1)},[]),f=l.useCallback(function(p){n.current=Fe(p),r.current=void 0},[]),d=l.useCallback(function(p){c(p.type,Pn(p),p.target,a(p,e.lockRef.current))},[]),h=l.useCallback(function(p){c(p.type,Fe(p),p.target,a(p,e.lockRef.current))},[]);l.useEffect(function(){return fe.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",u,ue),document.addEventListener("touchmove",u,ue),document.addEventListener("touchstart",f,ue),function(){fe=fe.filter(function(p){return p!==i}),document.removeEventListener("wheel",u,ue),document.removeEventListener("touchmove",u,ue),document.removeEventListener("touchstart",f,ue)}},[]);var m=e.removeScrollBar,y=e.inert;return l.createElement(l.Fragment,null,y?l.createElement(i,{styles:Va(o)}):null,m?l.createElement(Ia,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Ka(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const za=ba(zr,Ua);var Zr=l.forwardRef(function(e,t){return l.createElement(ot,K({},e,{ref:t,sideCar:za}))});Zr.classNames=ot.classNames;var Ya=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},de=new WeakMap,ke=new WeakMap,$e={},yt=0,Qr=function(e){return e&&(e.host||Qr(e.parentNode))},Xa=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})},Ga=function(e,t,n,r){var o=Xa(t,Array.isArray(e)?e:[e]);$e[n]||($e[n]=new WeakMap);var i=$e[n],s=[],a=new Set,u=new Set(o),c=function(d){!d||a.has(d)||(a.add(d),c(d.parentNode))};o.forEach(c);var f=function(d){!d||u.has(d)||Array.prototype.forEach.call(d.children,function(h){if(a.has(h))f(h);else try{var m=h.getAttribute(r),y=m!==null&&m!=="false",p=(de.get(h)||0)+1,v=(i.get(h)||0)+1;de.set(h,p),i.set(h,v),s.push(h),p===1&&y&&ke.set(h,!0),v===1&&h.setAttribute(n,"true"),y||h.setAttribute(r,"true")}catch(w){console.error("aria-hidden: cannot operate on ",h,w)}})};return f(t),a.clear(),yt++,function(){s.forEach(function(d){var h=de.get(d)-1,m=i.get(d)-1;de.set(d,h),i.set(d,m),h||(ke.has(d)||d.removeAttribute(r),ke.delete(d)),m||d.removeAttribute(n)}),yt--,yt||(de=new WeakMap,de=new WeakMap,ke=new WeakMap,$e={})}},qa=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Ya(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),Ga(r,o,n,"aria-hidden")):function(){return null}},it="Dialog",[Jr,Bc]=ge(it),[Za,X]=Jr(it),eo=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,a=l.useRef(null),u=l.useRef(null),[c,f]=Ae({prop:r,defaultProp:o??!1,onChange:i,caller:it});return b.jsx(Za,{scope:t,triggerRef:a,contentRef:u,contentId:Ce(),titleId:Ce(),descriptionId:Ce(),open:c,onOpenChange:f,onOpenToggle:l.useCallback(()=>f(d=>!d),[f]),modal:s,children:n})};eo.displayName=it;var to="DialogTrigger",Qa=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=X(to,n),i=B(t,o.triggerRef);return b.jsx(I.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Gt(o.open),...r,ref:i,onClick:W(e.onClick,o.onOpenToggle)})});Qa.displayName=to;var Yt="DialogPortal",[Ja,no]=Jr(Yt,{forceMount:void 0}),ro=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=X(Yt,t);return b.jsx(Ja,{scope:t,forceMount:n,children:l.Children.map(r,s=>b.jsx(ye,{present:n||i.open,children:b.jsx(Nt,{asChild:!0,container:o,children:s})}))})};ro.displayName=Yt;var Xe="DialogOverlay",oo=l.forwardRef((e,t)=>{const n=no(Xe,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=X(Xe,e.__scopeDialog);return i.modal?b.jsx(ye,{present:r||i.open,children:b.jsx(tc,{...o,ref:t})}):null});oo.displayName=Xe;var ec=Re("DialogOverlay.RemoveScroll"),tc=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=X(Xe,n);return b.jsx(Zr,{as:ec,allowPinchZoom:!0,shards:[o.contentRef],children:b.jsx(I.div,{"data-state":Gt(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),ce="DialogContent",io=l.forwardRef((e,t)=>{const n=no(ce,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=X(ce,e.__scopeDialog);return b.jsx(ye,{present:r||i.open,children:i.modal?b.jsx(nc,{...o,ref:t}):b.jsx(rc,{...o,ref:t})})});io.displayName=ce;var nc=l.forwardRef((e,t)=>{const n=X(ce,e.__scopeDialog),r=l.useRef(null),o=B(t,n.contentRef,r);return l.useEffect(()=>{const i=r.current;if(i)return qa(i)},[]),b.jsx(so,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:W(e.onCloseAutoFocus,i=>{i.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:W(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&i.preventDefault()}),onFocusOutside:W(e.onFocusOutside,i=>i.preventDefault())})}),rc=l.forwardRef((e,t)=>{const n=X(ce,e.__scopeDialog),r=l.useRef(!1),o=l.useRef(!1);return b.jsx(so,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(r.current||n.triggerRef.current?.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;n.triggerRef.current?.contains(s)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),so=l.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=e,a=X(ce,n),u=l.useRef(null),c=B(t,u);return ca(),b.jsxs(b.Fragment,{children:[b.jsx(yr,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:b.jsx(Dt,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Gt(a.open),...s,ref:c,onDismiss:()=>a.onOpenChange(!1)})}),b.jsxs(b.Fragment,{children:[b.jsx(oc,{titleId:a.titleId}),b.jsx(sc,{contentRef:u,descriptionId:a.descriptionId})]})]})}),Xt="DialogTitle",ao=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=X(Xt,n);return b.jsx(I.h2,{id:o.titleId,...r,ref:t})});ao.displayName=Xt;var co="DialogDescription",lo=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=X(co,n);return b.jsx(I.p,{id:o.descriptionId,...r,ref:t})});lo.displayName=co;var uo="DialogClose",fo=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=X(uo,n);return b.jsx(I.button,{type:"button",...r,ref:t,onClick:W(e.onClick,()=>o.onOpenChange(!1))})});fo.displayName=uo;function Gt(e){return e?"open":"closed"}var po="DialogTitleWarning",[Vc,mo]=Uo(po,{contentName:ce,titleName:Xt,docsSlug:"dialog"}),oc=({titleId:e})=>{const t=mo(po),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 50 51If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 52 53For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return l.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},ic="DialogDescriptionWarning",sc=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${mo(ic).contentName}}.`;return l.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Hc=eo,Uc=ro,Kc=oo,zc=io,Yc=ao,Xc=lo,Gc=fo,st="Collapsible",[ac,vo]=ge(st),[cc,qt]=ac(st),ho=l.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:i,onOpenChange:s,...a}=e,[u,c]=Ae({prop:r,defaultProp:o??!1,onChange:s,caller:st});return b.jsx(cc,{scope:n,disabled:i,contentId:Ce(),open:u,onOpenToggle:l.useCallback(()=>c(f=>!f),[c]),children:b.jsx(I.div,{"data-state":Qt(u),"data-disabled":i?"":void 0,...a,ref:t})})});ho.displayName=st;var go="CollapsibleTrigger",yo=l.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=qt(go,n);return b.jsx(I.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Qt(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:W(e.onClick,o.onOpenToggle)})});yo.displayName=go;var Zt="CollapsibleContent",wo=l.forwardRef((e,t)=>
vendor: 4,336 bytes, line 53
53{const{forceMount:n,...r}=e,o=qt(Zt,e.__scopeCollapsible);return b.jsx(ye,{present:n||o.open,children:({present:i})=>b.jsx(lc,{...r,ref:t,present:i})})});wo.displayName=Zt;var lc=l.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...i}=e,s=qt(Zt,n),[a,u]=l.useState(r),c=l.useRef(null),f=B(t,c),d=l.useRef(0),h=d.current,m=l.useRef(0),y=m.current,p=s.open||a,v=l.useRef(p),w=l.useRef(void 0);return l.useEffect(()=>{const g=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(g)},[]),J(()=>{const g=c.current;if(g){w.current=w.current||{transitionDuration:g.style.transitionDuration,animationName:g.style.animationName},g.style.transitionDuration="0s",g.style.animationName="none";const x=g.getBoundingClientRect();d.current=x.height,m.current=x.width,v.current||(g.style.transitionDuration=w.current.transitionDuration,g.style.animationName=w.current.animationName),u(r)}},[s.open,r]),b.jsx(I.div,{"data-state":Qt(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!p,...i,ref:f,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":y?`${y}px`:void 0,...e.style},children:p&&o})});function Qt(e){return e?"open":"closed"}var uc=ho,fc=yo,dc=wo,G="Accordion",pc=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Jt,mc,vc]=In(G),[at,qc]=ge(G,[vc,vo]),en=vo(),bo=$.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,i=r;return b.jsx(Jt.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?b.jsx(wc,{...i,ref:t}):b.jsx(yc,{...o,ref:t})})});bo.displayName=G;var[xo,hc]=at(G),[Eo,gc]=at(G,{collapsible:!1}),yc=$.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:i=!1,...s}=e,[a,u]=Ae({prop:n,defaultProp:r??"",onChange:o,caller:G});return b.jsx(xo,{scope:e.__scopeAccordion,value:$.useMemo(()=>a?[a]:[],[a]),onItemOpen:u,onItemClose:$.useCallback(()=>i&&u(""),[i,u]),children:b.jsx(Eo,{scope:e.__scopeAccordion,collapsible:i,children:b.jsx(Co,{...s,ref:t})})})}),wc=$.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...i}=e,[s,a]=Ae({prop:n,defaultProp:r??[],onChange:o,caller:G}),u=$.useCallback(f=>a((d=[])=>[...d,f]),[a]),c=$.useCallback(f=>a((d=[])=>d.filter(h=>h!==f)),[a]);return b.jsx(xo,{scope:e.__scopeAccordion,value:s,onItemOpen:u,onItemClose:c,children:b.jsx(Eo,{scope:e.__scopeAccordion,collapsible:!0,children:b.jsx(Co,{...i,ref:t})})})}),[bc,ct]=at(G),Co=$.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:i="vertical",...s}=e,a=$.useRef(null),u=B(a,t),c=mc(n),d=ea(o)==="ltr",h=W(e.onKeyDown,m=>{if(!pc.includes(m.key))return;const y=m.target,p=c().filter(T=>!T.ref.current?.disabled),v=p.findIndex(T=>T.ref.current===y),w=p.length;if(v===-1)return;m.preventDefault();let g=v;const x=0,E=w-1,C=()=>{g=v+1,g>E&&(g=x)},S=()=>{g=v-1,g<x&&(g=E)};switch(m.key){case"Home":g=x;break;case"End":g=E;break;case"ArrowRight":i==="horizontal"&&(d?C():S());break;case"ArrowDown":i==="vertical"&&C();break;case"ArrowLeft":i==="horizontal"&&(d?S():C());break;case"ArrowUp":i==="vertical"&&S();break}const R=g%w;p[R].ref.current?.focus()});return b.jsx(bc,{scope:n,disabled:r,direction:o,orientation:i,children:b.jsx(Jt.Slot,{scope:n,children:b.jsx(I.div,{...s,"data-orientation":i,ref:u,onKeyDown:r?void 0:h})})})}),Ge="AccordionItem",[xc,tn]=at(Ge),Ro=$.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...o}=e,i=ct(Ge,n),s=hc(Ge,n),a=en(n),u=Ce(),c=r&&s.value.includes(r)||!1,f=i.disabled||e.disabled;return b.jsx(xc,{scope:n,open:c,disabled:f,triggerId:u,children:b.jsx(uc,{"data-orientation":i.orientation,"data-state":_o(c),...a,...o,ref:t,disabled:f,open:c,onOpenChange:d=>{d?s.onItemOpen(r):s.onItemClose(r)}})})});Ro.displayName=Ge;var So="AccordionHeader",Po=$.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ct(G,n),i=tn(So,n);return b.jsx(I.h3,{"data-orientation":o.orientation,"data-state":_o(i.open),"data-disabled":i.disabled?"":void 0,...r,ref:t})});Po.displayName=So;var Ot="AccordionTrigger",Ao=$.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ct(G,n),i=tn(Ot,n),s=gc(Ot,n),a=en(n);return b.jsx(Jt.ItemSlot,{scope:n,children:b.jsx(fc,{"aria-disabled":i.open&&!s.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId,...a,...r,ref:t})})});Ao.displayName=Ot;var To="AccordionContent",Oo=$.forwardRef((e,t)=>
vendor: 859 bytes, line 53
53{const{__scopeAccordion:n,...r}=e,o=ct(G,n),i=tn(To,n),s=en(n);return b.jsx(dc,{role:"region","aria-labelledby":i.triggerId,"data-orientation":o.orientation,...s,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});Oo.displayName=To;function _o(e){return e?"open":"closed"}var Zc=bo,Qc=Ro,Jc=Po,el=Ao,tl=Oo;export{Nc as A,Wc as B,Ic as C,Dc as D,nt as E,el as F,tl as G,Jc as H,Qc as I,Zc as J,J as K,qa as L,ca as M,Zr as N,Kc as O,Ac as P,yr as Q,Oc as R,Cc as S,_c as T,pi as U,Tc as V,Q as W,Nt as X,Re as Y,Tr as _,Mc as a,jc as b,ge as c,I as d,W as e,ye as f,Dt as g,Fc as h,Sc as i,b as j,kc as k,Ce as l,Ae as m,Lc as n,Rc as o,In as p,ea as q,zs as r,$c as s,zc as t,B as u,Gc as v,Yc as w,Xc as x,Uc as y,Hc 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.