vendor: 13,097 bytes, lines 1-25
1function _a(e,t){for(var n=0;n<t.length;n++){const o=t[n];if(typeof o!="string"&&!Array.isArray(o)){for(const r in o)if(r!=="default"&&!(r in e)){const s=Object.getOwnPropertyDescriptor(o,r);s&&Object.defineProperty(e,r,s.get?s:{enumerable:!0,get:()=>o[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var gp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function sr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ir={exports:{}},Kt={};/** 2 * @license React 3 * react-jsx-runtime.production.js 4 * 5 * Copyright (c) Meta Platforms, Inc. and 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 Ta=Symbol.for("react.transitional.element"),Aa=Symbol.for("react.fragment");function ar(e,t,n){var o=null;if(n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),"key"in t){n={};for(var r in t)r!=="key"&&(n[r]=t[r])}else n=t;return t=n.ref,{$$typeof:Ta,type:e,key:o,ref:t!==void 0?t:null,props:n}}Kt.Fragment=Aa;Kt.jsx=ar;Kt.jsxs=ar;ir.exports=Kt;var p=ir.exports,cr={exports:{}},N={};/** 10 * @license React 11 * react.production.js 12 * 13 * Copyright (c) Meta Platforms, Inc. and affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var Xn=Symbol.for("react.transitional.element"),Ma=Symbol.for("react.portal"),Oa=Symbol.for("react.fragment"),Ia=Symbol.for("react.strict_mode"),Na=Symbol.for("react.profiler"),Da=Symbol.for("react.consumer"),ja=Symbol.for("react.context"),La=Symbol.for("react.forward_ref"),ka=Symbol.for("react.suspense"),Fa=Symbol.for("react.memo"),lr=Symbol.for("react.lazy"),$a=Symbol.for("react.activity"),Mo=Symbol.iterator;function Ba(e){return e===null||typeof e!="object"?null:(e=Mo&&e[Mo]||e["@@iterator"],typeof e=="function"?e:null)}var ur={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},dr=Object.assign,fr={};function et(e,t,n){this.props=e,this.context=t,this.refs=fr,this.updater=n||ur}et.prototype.isReactComponent={};et.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};et.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function pr(){}pr.prototype=et.prototype;function qn(e,t,n){this.props=e,this.context=t,this.refs=fr,this.updater=n||ur}var Zn=qn.prototype=new pr;Zn.constructor=qn;dr(Zn,et.prototype);Zn.isPureReactComponent=!0;var Oo=Array.isArray;function Nn(){}var X={H:null,A:null,T:null,S:null},vr=Object.prototype.hasOwnProperty;function Qn(e,t,n){var o=n.ref;return{$$typeof:Xn,type:e,key:t,ref:o!==void 0?o:null,props:n}}function Ha(e,t){return Qn(e.type,t,e.props)}function Jn(e){return typeof e=="object"&&e!==null&&e.$$typeof===Xn}function Wa(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Io=/\/+/g;function bn(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Wa(""+e.key):t.toString(36)}function Ua(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(Nn,Nn):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function ze(e,t,n,o,r){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(s){case"bigint":case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Xn:case Ma:i=!0;break;case lr:return i=e._init,ze(i(e._payload),t,n,o,r)}}if(i)return r=r(e),i=o===""?"."+bn(e,0):o,Oo(r)?(n="",i!=null&&(n=i.replace(Io,"$&/")+"/"),ze(r,t,n,"",function(u){return u})):r!=null&&(Jn(r)&&(r=Ha(r,n+(r.key==null||e&&e.key===r.key?"":(""+r.key).replace(Io,"$&/")+"/")+i)),t.push(r)),1;i=0;var a=o===""?".":o+":";if(Oo(e))for(var l=0;l<e.length;l++)o=e[l],s=a+bn(o,l),i+=ze(o,t,n,s,r);else if(l=Ba(e),typeof l=="function")for(e=l.call(e),l=0;!(o=e.next()).done;)o=o.value,s=a+bn(o,l++),i+=ze(o,t,n,s,r);else if(s==="object"){if(typeof e.then=="function")return ze(Ua(e),t,n,o,r);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return i}function _t(e,t,n){if(e==null)return e;var o=[],r=0;return ze(e,o,"","",function(s){return t.call(n,s,r++)}),o}function Va(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var No=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Ga={map:_t,forEach:function(e,t,n){_t(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return _t(e,function(){t++}),t},toArray:function(e){return _t(e,function(t){return t})||[]},only:function(e){if(!Jn(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};N.Activity=$a;N.Children=Ga;N.Component=et;N.Fragment=Oa;N.Profiler=Na;N.PureComponent=qn;N.StrictMode=Ia;N.Suspense=ka;N.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=X;N.__COMPILER_RUNTIME={__proto__:null,c:function(e){return X.H.useMemoCache(e)}};N.cache=function(e){return function(){return e.apply(null,arguments)}};N.cacheSignal=function(){return null};N.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var o=dr({},e.props),r=e.key;if(t!=null)for(s in t.key!==void 0&&(r=""+t.key),t)!vr.call(t,s)||s==="key"||s==="__self"||s==="__source"||s==="ref"&&t.ref===void 0||(o[s]=t[s]);var s=arguments.length-2;if(s===1)o.children=n;else if(1<s){for(var i=Array(s),a=0;a<s;a++)i[a]=arguments[a+2];o.children=i}return Qn(e.type,r,o)};N.createContext=function(e){return e={$$typeof:ja,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:Da,_context:e},e};N.createElement=function(e,t,n){var o,r={},s=null;if(t!=null)for(o in t.key!==void 0&&(s=""+t.key),t)vr.call(t,o)&&o!=="key"&&o!=="__self"&&o!=="__source"&&(r[o]=t[o]);var i=arguments.length-2;if(i===1)r.children=n;else if(1<i){for(var a=Array(i),l=0;l<i;l++)a[l]=arguments[l+2];r.children=a}if(e&&e.defaultProps)for(o in i=e.defaultProps,i)r[o]===void 0&&(r[o]=i[o]);return Qn(e,s,r)};N.createRef=function(){return{current:null}};N.forwardRef=function(e){return{$$typeof:La,render:e}};N.isValidElement=Jn;N.lazy=function(e){return{$$typeof:lr,_payload:{_status:-1,_result:e},_init:Va}};N.memo=function(e,t){return{$$typeof:Fa,type:e,compare:t===void 0?null:t}};N.startTransition=function(e){var t=X.T,n={};X.T=n;try{var o=e(),r=X.S;r!==null&&r(n,o),typeof o=="object"&&o!==null&&typeof o.then=="function"&&o.then(Nn,No)}catch(s){No(s)}finally{t!==null&&n.types!==null&&(t.types=n.types),X.T=t}};N.unstable_useCacheRefresh=function(){return X.H.useCacheRefresh()};N.use=function(e){return X.H.use(e)};N.useActionState=function(e,t,n){return X.H.useActionState(e,t,n)};N.useCallback=function(e,t){return X.H.useCallback(e,t)};N.useContext=function(e){return X.H.useContext(e)};N.useDebugValue=function(){};N.useDeferredValue=function(e,t){return X.H.useDeferredValue(e,t)};N.useEffect=function(e,t){return X.H.useEffect(e,t)};N.useEffectEvent=function(e){return X.H.useEffectEvent(e)};N.useId=function(){return X.H.useId()};N.useImperativeHandle=function(e,t,n){return X.H.useImperativeHandle(e,t,n)};N.useInsertionEffect=function(e,t){return X.H.useInsertionEffect(e,t)};N.useLayoutEffect=function(e,t){return X.H.useLayoutEffect(e,t)};N.useMemo=function(e,t){return X.H.useMemo(e,t)};N.useOptimistic=function(e,t){return X.H.useOptimistic(e,t)};N.useReducer=function(e,t,n){return X.H.useReducer(e,t,n)};N.useRef=function(e){return X.H.useRef(e)};N.useState=function(e){return X.H.useState(e)};N.useSyncExternalStore=function(e,t,n){return X.H.useSyncExternalStore(e,t,n)};N.useTransition=function(){return X.H.useTransition()};N.version="19.2.3";cr.exports=N;var c=cr.exports;const q=sr(c),mr=_a({__proto__:null,default:q},[c]);var hr={exports:{}},ee={};/** 18 * @license React 19 * react-dom.production.js 20 * 21 * Copyright (c) Meta Platforms, Inc. and affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */var Ka=c;function gr(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Ae(){}var J={d:{f:Ae,r:function(){throw Error(gr(522))},D:Ae,C:Ae,L:Ae,m:Ae,X:Ae,S:Ae,M:Ae},p:0,findDOMNode:null},Ya=Symbol.for("react.portal");function za(e,t,n){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ya,key:o==null?null:""+o,children:e,containerInfo:t,implementation:n}}var lt=Ka.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Yt(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}ee.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=J;ee.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(gr(299));return za(e,t,null,n)};ee.flushSync=function(e){var t=lt.T,n=J.p;try{if(lt.T=null,J.p=2,e)return e()}finally{lt.T=t,J.p=n,J.d.f()}};ee.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,J.d.C(e,t))};ee.prefetchDNS=function(e){typeof e=="string"&&J.d.D(e)};ee.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,o=Yt(n,t.crossOrigin),r=typeof t.integrity=="string"?t.integrity:void 0,s=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?J.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:o,integrity:r,fetchPriority:s}):n==="script"&&J.d.X(e,{crossOrigin:o,integrity:r,fetchPriority:s,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};ee.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=Yt(t.as,t.crossOrigin);J.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&J.d.M(e)};ee.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,o=Yt(n,t.crossOrigin);J.d.L(e,n,{crossOrigin:o,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};ee.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=Yt(t.as,t.crossOrigin);J.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else J.d.m(e)};ee.requestFormReset=function(e){J.d.r(e)};ee.unstable_batchedUpdates=function(e,t){return e(t)};ee.useFormState=function(e,t,n){return lt.H.useFormState(e,t,n)};ee.useFormStatus=function(){return lt.H.useHostTransitionStatus()};ee.version="19.2.3";function yr(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(yr)}catch(e){console.error(e)}}yr(),hr.exports=ee;var mt=hr.exports;const Xa=sr(mt);function R(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function Do(e,t){if(typeof e=="function")return e(t);
vendor: 24,385 bytes, line 25
25e!=null&&(e.current=t)}function zt(...e){return t=>{let n=!1;const o=e.map(r=>{const s=Do(r,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let r=0;r<o.length;r++){const s=o[r];typeof s=="function"?s():Do(e[r],null)}}}}function F(...e){return c.useCallback(zt(...e),e)}function qa(e,t){const n=c.createContext(t),o=s=>{const{children:i,...a}=s,l=c.useMemo(()=>a,Object.values(a));return p.jsx(n.Provider,{value:l,children:i})};o.displayName=e+"Provider";function r(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[o,r]}function de(e,t=[]){let n=[];function o(s,i){const a=c.createContext(i),l=n.length;n=[...n,i];const u=f=>{var x;const{scope:m,children:h,...w}=f,v=((x=m==null?void 0:m[e])==null?void 0:x[l])||a,g=c.useMemo(()=>w,Object.values(w));return p.jsx(v.Provider,{value:g,children:h})};u.displayName=s+"Provider";function d(f,m){var v;const h=((v=m==null?void 0:m[e])==null?void 0:v[l])||a,w=c.useContext(h);if(w)return w;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[u,d]}const r=()=>{const s=n.map(i=>c.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return c.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return r.scopeName=e,[o,Za(r,...t)]}function Za(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(s){const i=o.reduce((a,{useScope:l,scopeName:u})=>{const f=l(s)[`__scope${u}`];return{...a,...f}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Oe(e){const t=Qa(e),n=c.forwardRef((o,r)=>{const{children:s,...i}=o,a=c.Children.toArray(s),l=a.find(ec);if(l){const u=l.props.children,d=a.map(f=>f===l?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:f);return p.jsx(t,{...i,ref:r,children:c.isValidElement(u)?c.cloneElement(u,void 0,d):null})}return p.jsx(t,{...i,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}var yp=Oe("Slot");function Qa(e){const t=c.forwardRef((n,o)=>{const{children:r,...s}=n;if(c.isValidElement(r)){const i=nc(r),a=tc(s,r.props);return r.type!==c.Fragment&&(a.ref=o?zt(o,i):i),c.cloneElement(r,a)}return c.Children.count(r)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var wr=Symbol("radix.slottable");function Ja(e){const t=({children:n})=>p.jsx(p.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=wr,t}function ec(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===wr}function tc(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...a)=>{const l=s(...a);return r(...a),l}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function nc(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Xt(e){const t=e+"CollectionProvider",[n,o]=de(t),[r,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=v=>{const{scope:g,children:x}=v,y=q.useRef(null),C=q.useRef(new Map).current;return p.jsx(r,{scope:g,itemMap:C,collectionRef:y,children:x})};i.displayName=t;const a=e+"CollectionSlot",l=Oe(a),u=q.forwardRef((v,g)=>{const{scope:x,children:y}=v,C=s(a,x),b=F(g,C.collectionRef);return p.jsx(l,{ref:b,children:y})});u.displayName=a;const d=e+"CollectionItemSlot",f="data-radix-collection-item",m=Oe(d),h=q.forwardRef((v,g)=>{const{scope:x,children:y,...C}=v,b=q.useRef(null),E=F(g,b),_=s(d,x);return q.useEffect(()=>(_.itemMap.set(b,{ref:b,...C}),()=>void _.itemMap.delete(b))),p.jsx(m,{[f]:"",ref:E,children:y})});h.displayName=d;function w(v){const g=s(e+"CollectionConsumer",v);return q.useCallback(()=>{const y=g.collectionRef.current;if(!y)return[];const C=Array.from(y.querySelectorAll(`[${f}]`));return Array.from(g.itemMap.values()).sort((_,S)=>C.indexOf(_.ref.current)-C.indexOf(S.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:i,Slot:u,ItemSlot:h},w,o]}var oc=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],O=oc.reduce((e,t)=>{const n=Oe(`Primitive.${t}`),o=c.forwardRef((r,s)=>{const{asChild:i,...a}=r,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...a,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function xr(e,t){e&&mt.flushSync(()=>e.dispatchEvent(t))}function be(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)},[])}function rc(e,t=globalThis==null?void 0:globalThis.document){const n=be(e);c.useEffect(()=>{const o=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[n,t])}var sc="DismissableLayer",Dn="dismissableLayer.update",ic="dismissableLayer.pointerDownOutside",ac="dismissableLayer.focusOutside",jo,Cr=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),We=c.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...l}=e,u=c.useContext(Cr),[d,f]=c.useState(null),m=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=c.useState({}),w=F(t,S=>f(S)),v=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=v.indexOf(g),y=d?v.indexOf(d):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,b=y>=x,E=lc(S=>{const T=S.target,j=[...u.branches].some(D=>D.contains(T));!b||j||(r==null||r(S),i==null||i(S),S.defaultPrevented||a==null||a())},m),_=uc(S=>{const T=S.target;[...u.branches].some(D=>D.contains(T))||(s==null||s(S),i==null||i(S),S.defaultPrevented||a==null||a())},m);return rc(S=>{y===u.layers.size-1&&(o==null||o(S),!S.defaultPrevented&&a&&(S.preventDefault(),a()))},m),c.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(jo=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Lo(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=jo)}},[d,m,n,u]),c.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Lo())},[d,u]),c.useEffect(()=>{const S=()=>h({});return document.addEventListener(Dn,S),()=>document.removeEventListener(Dn,S)},[]),p.jsx(O.div,{...l,ref:w,style:{pointerEvents:C?b?"auto":"none":void 0,...e.style},onFocusCapture:R(e.onFocusCapture,_.onFocusCapture),onBlurCapture:R(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:R(e.onPointerDownCapture,E.onPointerDownCapture)})});We.displayName=sc;var cc="DismissableLayerBranch",br=c.forwardRef((e,t)=>{const n=c.useContext(Cr),o=c.useRef(null),r=F(t,o);return c.useEffect(()=>{const s=o.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),p.jsx(O.div,{...e,ref:r})});br.displayName=cc;function lc(e,t=globalThis==null?void 0:globalThis.document){const n=be(e),o=c.useRef(!1),r=c.useRef(()=>{});return c.useEffect(()=>{const s=a=>{if(a.target&&!o.current){let l=function(){Er(ic,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=l,t.addEventListener("click",r.current,{once:!0})):l()}else t.removeEventListener("click",r.current);o.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function uc(e,t=globalThis==null?void 0:globalThis.document){const n=be(e),o=c.useRef(!1);return c.useEffect(()=>{const r=s=>{s.target&&!o.current&&Er(ac,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Lo(){const e=new CustomEvent(Dn);document.dispatchEvent(e)}function Er(e,t,n,{discrete:o}){const r=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?xr(r,s):r.dispatchEvent(s)}var wp=We,xp=br,Q=globalThis!=null&&globalThis.document?c.useLayoutEffect:()=>{},dc="Portal",ht=c.forwardRef((e,t)=>{var a;const{container:n,...o}=e,[r,s]=c.useState(!1);Q(()=>s(!0),[]);const i=n||r&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?Xa.createPortal(p.jsx(O.div,{...o,ref:t}),i):null});ht.displayName=dc;function fc(e,t){return c.useReducer((n,o)=>t[n][o]??n,e)}var ce=e=>{const{present:t,children:n}=e,o=pc(t),r=typeof n=="function"?n({present:o.isPresent}):c.Children.only(n),s=F(o.ref,vc(r));return typeof n=="function"||o.isPresent?c.cloneElement(r,{ref:s}):null};ce.displayName="Presence";function pc(e){const[t,n]=c.useState(),o=c.useRef(null),r=c.useRef(e),s=c.useRef("none"),i=e?"mounted":"unmounted",[a,l]=fc(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{const u=Tt(o.current);s.current=a==="mounted"?u:"none"},[a]),Q(()=>{const u=o.current,d=r.current;if(d!==e){const m=s.current,h=Tt(u);e?l("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(d&&m!==h?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,l]),Q(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,f=h=>{const v=Tt(o.current).includes(h.animationName);if(h.target===t&&v&&(l("ANIMATION_END"),!r.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},m=h=>{h.target===t&&(s.current=Tt(o.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:c.useCallback(u=>{o.current=u?getComputedStyle(u):null,n(u)},[])}}function Tt(e){return(e==null?void 0:e.animationName)||"none"}function vc(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var mc=mr[" useInsertionEffect ".trim().toString()]||Q;function pe({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){const[r,s,i]=hc({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:r;{const d=c.useRef(e!==void 0);c.useEffect(()=>{const f=d.current;f!==a&&console.warn(`${o} is changing from ${f?"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.`),d.current=a},[a,o])}const u=c.useCallback(d=>{var f;if(a){const m=gc(d)?d(e):d;m!==e&&((f=i.current)==null||f.call(i,m))}else s(d)},[a,e,s,i]);return[l,u]}function hc({defaultProp:e,onChange:t}){const[n,o]=c.useState(e),r=c.useRef(n),s=c.useRef(t);return mc(()=>{s.current=t},[t]),c.useEffect(()=>{var i;r.current!==n&&((i=s.current)==null||i.call(s,n),r.current=n)},[n,r]),[n,o,s]}function gc(e){return typeof e=="function"}var Sr=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"}),yc="VisuallyHidden",Rr=c.forwardRef((e,t)=>p.jsx(O.span,{...e,ref:t,style:{...Sr,...e.style}}));Rr.displayName=yc;var wc=Rr,xc=mr[" useId ".trim().toString()]||(()=>{}),Cc=0;function oe(e){const[t,n]=c.useState(xc());return Q(()=>{n(o=>o??String(Cc++))},[e]),t?`radix-${t}`:""}const bc=["top","right","bottom","left"],Ie=Math.min,ie=Math.max,kt=Math.round,At=Math.floor,Ce=e=>({x:e,y:e}),Ec={left:"right",right:"left",bottom:"top",top:"bottom"},Sc={start:"end",end:"start"};function jn(e,t,n){return ie(e,Ie(t,n))}function _e(e,t){return typeof e=="function"?e(t):e}function Te(e){return e.split("-")[0]}function tt(e){return e.split("-")[1]}function eo(e){return e==="x"?"y":"x"}function to(e){return e==="y"?"height":"width"}const Rc=new Set(["top","bottom"]);function xe(e){return Rc.has(Te(e))?"y":"x"}function no(e){return eo(xe(e))}function Pc(e,t,n){n===void 0&&(n=!1);const o=tt(e),r=no(e),s=to(r);let i=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Ft(i)),[i,Ft(i)]}function _c(e){const t=Ft(e);return[Ln(e),t,Ln(t)]}function Ln(e){return e.replace(/start|end/g,t=>Sc[t])}const ko=["left","right"],Fo=["right","left"],Tc=["top","bottom"],Ac=["bottom","top"];function Mc(e,t,n){switch(e){case"top":case"bottom":return n?t?Fo:ko:t?ko:Fo;case"left":case"right":return t?Tc:Ac;default:return[]}}function Oc(e,t,n,o){const r=tt(e);let s=Mc(Te(e),n==="start",o);return r&&(s=s.map(i=>i+"-"+r),t&&(s=s.concat(s.map(Ln)))),s}function Ft(e){return e.replace(/left|right|bottom|top/g,t=>Ec[t])}function Ic(e){return{top:0,right:0,bottom:0,left:0,...e}}function Pr(e){return typeof e!="number"?Ic(e):{top:e,right:e,bottom:e,left:e}}function $t(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function $o(e,t,n){let{reference:o,floating:r}=e;const s=xe(t),i=no(t),a=to(i),l=Te(t),u=s==="y",d=o.x+o.width/2-r.width/2,f=o.y+o.height/2-r.height/2,m=o[a]/2-r[a]/2;let h;switch(l){case"top":h={x:d,y:o.y-r.height};break;case"bottom":h={x:d,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:f};break;case"left":h={x:o.x-r.width,y:f};break;default:h={x:o.x,y:o.y}}switch(tt(t)){case"start":h[i]-=m*(n&&u?-1:1);break;case"end":h[i]+=m*(n&&u?-1:1);break}return h}const Nc=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:f}=$o(u,o,l),m=o,h={},w=0;for(let v=0;v<a.length;v++){const{name:g,fn:x}=a[v],{x:y,y:C,data:b,reset:E}=await x({x:d,y:f,initialPlacement:o,placement:m,strategy:r,middlewareData:h,rects:u,platform:i,elements:{reference:e,floating:t}});d=y??d,f=C??f,h={...h,[g]:{...h[g],...b}},E&&w<=50&&(w++,typeof E=="object"&&(E.placement&&(m=E.placement),E.rects&&(u=E.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:r}):E.rects),{x:d,y:f}=$o(u,m,l)),v=-1)}return{x:d,y:f,placement:m,strategy:r,middlewareData:h}};async function ut(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:s,rects:i,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:m=!1,padding:h=0}=_e(t,e),w=Pr(h),g=a[m?f==="floating"?"reference":"floating":f],x=$t(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(g)))==null||n?g:g.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:l})),y=f==="floating"?{x:o,y:r,width:i.floating.width,height:i.floating.height}:i.reference,C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),b=await(s.isElement==null?void 0:s.isElement(C))?await(s.getScale==null?void 0:s.getScale(C))||{x:1,y:1}:{x:1,y:1},E=$t(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:C,strategy:l}):y);return{top:(x.top-E.top+w.top)/b.y,bottom:(E.bottom-x.bottom+w.bottom)/b.y,left:(x.left-E.left+w.left)/b.x,right:(E.right-x.right+w.right)/b.x}}const Dc=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:s,platform:i,elements:a,middlewareData:l}=t,{element:u,padding:d=0}=_e(e,t)||{};if(u==null)return{};const f=Pr(d),m={x:n,y:o},h=no(r),w=to(h),v=await i.getDimensions(u),g=h==="y",x=g?"top":"left",y=g?"bottom":"right",C=g?"clientHeight":"clientWidth",b=s.reference[w]+s.reference[h]-m[h]-s.floating[w],E=m[h]-s.reference[h],_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let S=_?_[C]:0;(!S||!await(i.isElement==null?void 0:i.isElement(_)))&&(S=a.floating[C]||s.floating[w]);const T=b/2-E/2,j=S/2-v[w]/2-1,D=Ie(f[x],j),B=Ie(f[y],j),H=D,k=S-v[w]-B,L=S/2-v[w]/2+T,K=jn(H,L,k),I=!l.arrow&&tt(r)!=null&&L!==K&&s.reference[w]/2-(L<H?D:B)-v[w]/2<0,$=I?L<H?L-H:L-k:0;return{[h]:m[h]+$,data:{[h]:K,centerOffset:L-K-$,...I&&{alignmentOffset:$}},reset:I}}}),jc=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:s,rects:i,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:m,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:v=!0,...g}=_e(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const x=Te(r),y=xe(a),C=Te(a)===a,b=await(l.isRTL==null?void 0:l.isRTL(u.floating)),E=m||(C||!v?[Ft(a)]:_c(a)),_=w!=="none";!m&&_&&E.push(...Oc(a,v,w,b));const S=[a,...E],T=await ut(t,g),j=[];let D=((o=s.flip)==null?void 0:o.overflows)||[];if(d&&j.push(T[x]),f){const L=Pc(r,i,b);j.push(T[L[0]],T[L[1]])}if(D=[...D,{placement:r,overflows:j}],!j.every(L=>L<=0)){var B,H;const L=(((B=s.flip)==null?void 0:B.index)||0)+1,K=S[L];if(K&&(!(f==="alignment"?y!==xe(K):!1)||D.every(A=>A.overflows[0]>0&&xe(A.placement)===y)))return{data:{index:L,overflows:D},reset:{placement:K}};let I=(H=D.filter($=>$.overflows[0]<=0).sort(($,A)=>$.overflows[1]-A.overflows[1])[0])==null?void 0:H.placement;if(!I)switch(h){case"bestFit":{var k;const $=(k=D.filter(A=>{if(_){const P=xe(A.placement);return P===y||P==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(P=>P>0).reduce((P,Y)=>P+Y,0)]).sort((A,P)=>A[1]-P[1])[0])==null?void 0:k[0];$&&(I=$);break}case"initialPlacement":I=a;break}if(r!==I)return{reset:{placement:I}}}return{}}}};function Bo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ho(e){return bc.some(t=>e[t]>=0)}const Lc=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=_e(e,t);switch(o){case"referenceHidden":{const s=await ut(t,{...r,elementContext:"reference"}),i=Bo(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Ho(i)}}}case"escaped":{const s=await ut(t,{...r,altBoundary:!0}),i=Bo(s,n.floating);return{data:{escapedOffsets:i,escaped:Ho(i)}}}default:return{}}}}},_r=new Set(["left","top"]);async function kc(e,t){const{placement:n,platform:o,elements:r}=e,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),i=Te(n),a=tt(n),l=xe(n)==="y",u=_r.has(i)?-1:1,d=s&&l?-1:1,f=_e(t,e);let{mainAxis:m,crossAxis:h,alignmentAxis:w}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof w=="number"&&(h=a==="end"?w*-1:w),l?{x:h*d,y:m*u}:{x:m*u,y:h*d}}const Fc=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:s,placement:i,middlewareData:a}=t,l=await kc(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:s+l.y,data:{...l,placement:i}}}}},$c=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:g=>{let{x,y}=g;return{x,y}}},...l}=_e(e,t),u={x:n,y:o},d=await ut(t,l),f=xe(Te(r)),m=eo(f);let h=u[m],w=u[f];if(s){const g=m==="y"?"top":"left",x=m==="y"?"bottom":"right",y=h+d[g],C=h-d[x];h=jn(y,h,C)}if(i){const g=f==="y"?"top":"left",x=f==="y"?"bottom":"right",y=w+d[g],C=w-d[x];w=jn(y,w,C)}const v=a.fn({...t,[m]:h,[f]:w});return{...v,data:{x:v.x-n,y:v.y-o,enabled:{[m]:s,[f]:i}}}}}},Bc=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=_e(e,t),d={x:n,y:o},f=xe(r),m=eo(f);let h=d[m],w=d[f];const v=_e(a,t),g=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(l){const C=m==="y"?"height":"width",b=s.reference[m]-s.floating[C]+g.mainAxis,E=s.reference[m]+s.reference[C]-g.mainAxis;h<b?h=b:h>E&&(h=E)}if(u){var x,y;const C=m==="y"?"width":"height",b=_r.has(Te(r)),E=s.reference[f]-s.floating[C]+(b&&((x=i.offset)==null?void 0:x[f])||0)+(b?0:g.crossAxis),_=s.reference[f]+s.reference[C]+(b?0:((y=i.offset)==null?void 0:y[f])||0)-(b?g.crossAxis:0);w<E?w=E:w>_&&(w=_)}return{[m]:h,[f]:w}}}},Hc=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:s,platform:i,elements:a}=t,{apply:l=()=>{},...u}=_e(e,t),d=await ut(t,u),f=Te(r),m=tt(r),h=xe(r)==="y",{width:w,height:v}=s.floating;let g,x;f==="top"||f==="bottom"?(g=f,x=m===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(x=f,g=m==="end"?"top":"bottom");const y=v-d.top-d.bottom,C=w-d.left-d.right,b=Ie(v-d[g],y),E=Ie(w-d[x],C),_=!t.middlewareData.shift;let S=b,T=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(T=C),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(S=y),_&&!m){const D=ie(d.left,0),B=ie(d.right,0),H=ie(d.top,0),k=ie(d.bottom,0);h?T=w-2*(D!==0||B!==0?D+B:ie(d.left,d.right)):S=v-2*(H!==0||k!==0?H+k:ie(d.top,d.bottom))}await l({...t,availableWidth:T,availableHeight:S});const j=await i.getDimensions(a.floating);return w!==j.width||v!==j.height?{reset:{rects:!0}}:{}}}};function qt(){return typeof window<"u"}function nt(e){return Tr(e)?(e.nodeName||"").toLowerCase():"#document"}function ae(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Se(e){var t;return(t=(Tr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Tr(e){return qt()?e instanceof Node||e instanceof ae(e).Node:!1}function ve(e){return qt()?e instanceof Element||e instanceof ae(e).Element:!1}function Ee(e){return qt()?e instanceof HTMLElement||e instanceof ae(e).HTMLElement:!1}function Wo(e){return!qt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ae(e).ShadowRoot}const Wc=new Set(["inline","contents"]);function gt(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=me(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!Wc.has(r)}const Uc=new Set(["table","td","th"]);function Vc(e){return Uc.has(nt(e))}const Gc=[":popover-open",":modal"];function Zt(e){return Gc.some(t=>{try{return e.matches(t)}catch{return!1}})}const Kc=["transform","translate","scale","rotate","perspective"],Yc=["transform","translate","scale","rotate","perspective","filter"],zc=["paint","layout","strict","content"];function oo(e){const t=ro(),n=ve(e)?me(e):e;return Kc.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Yc.some(o=>(n.willChange||"").includes(o))||zc.some(o=>(n.contain||"").includes(o))}function Xc(e){let t=Ne(e);for(;Ee(t)&&!Ze(t);){if(oo(t))return t;if(Zt(t))return null;t=Ne(t)}return null}function ro(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const qc=new Set(["html","body","#document"]);function Ze(e){return qc.has(nt(e))}function me(e){return ae(e).getComputedStyle(e)}function Qt(e){return ve(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ne(e){if(nt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Wo(e)&&e.host||Se(e);return Wo(t)?t.host:t}function Ar(e){const t=Ne(e);return Ze(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ee(t)&>(t)?t:Ar(t)}function dt(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=Ar(e),s=r===((o=e.ownerDocument)==null?void 0:o.body),i=ae(r);if(s){const a=kn(i);
vendor: 6,601 bytes, line 25
25return t.concat(i,i.visualViewport||[],gt(r)?r:[],a&&n?dt(a):[])}return t.concat(r,dt(r,[],n))}function kn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Mr(e){const t=me(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=Ee(e),s=r?e.offsetWidth:n,i=r?e.offsetHeight:o,a=kt(n)!==s||kt(o)!==i;return a&&(n=s,o=i),{width:n,height:o,$:a}}function so(e){return ve(e)?e:e.contextElement}function Xe(e){const t=so(e);if(!Ee(t))return Ce(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:s}=Mr(t);let i=(s?kt(n.width):n.width)/o,a=(s?kt(n.height):n.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const Zc=Ce(0);function Or(e){const t=ae(e);return!ro()||!t.visualViewport?Zc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Qc(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ae(e)?!1:t}function Fe(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=so(e);let i=Ce(1);t&&(o?ve(o)&&(i=Xe(o)):i=Xe(e));const a=Qc(s,n,o)?Or(s):Ce(0);let l=(r.left+a.x)/i.x,u=(r.top+a.y)/i.y,d=r.width/i.x,f=r.height/i.y;if(s){const m=ae(s),h=o&&ve(o)?ae(o):o;let w=m,v=kn(w);for(;v&&o&&h!==w;){const g=Xe(v),x=v.getBoundingClientRect(),y=me(v),C=x.left+(v.clientLeft+parseFloat(y.paddingLeft))*g.x,b=x.top+(v.clientTop+parseFloat(y.paddingTop))*g.y;l*=g.x,u*=g.y,d*=g.x,f*=g.y,l+=C,u+=b,w=ae(v),v=kn(w)}}return $t({width:d,height:f,x:l,y:u})}function io(e,t){const n=Qt(e).scrollLeft;return t?t.left+n:Fe(Se(e)).left+n}function Ir(e,t,n){n===void 0&&(n=!1);const o=e.getBoundingClientRect(),r=o.left+t.scrollLeft-(n?0:io(e,o)),s=o.top+t.scrollTop;return{x:r,y:s}}function Jc(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const s=r==="fixed",i=Se(o),a=t?Zt(t.floating):!1;if(o===i||a&&s)return n;let l={scrollLeft:0,scrollTop:0},u=Ce(1);const d=Ce(0),f=Ee(o);if((f||!f&&!s)&&((nt(o)!=="body"||gt(i))&&(l=Qt(o)),Ee(o))){const h=Fe(o);u=Xe(o),d.x=h.x+o.clientLeft,d.y=h.y+o.clientTop}const m=i&&!f&&!s?Ir(i,l,!0):Ce(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+m.x,y:n.y*u.y-l.scrollTop*u.y+d.y+m.y}}function el(e){return Array.from(e.getClientRects())}function tl(e){const t=Se(e),n=Qt(e),o=e.ownerDocument.body,r=ie(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=ie(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let i=-n.scrollLeft+io(e);const a=-n.scrollTop;return me(o).direction==="rtl"&&(i+=ie(t.clientWidth,o.clientWidth)-r),{width:r,height:s,x:i,y:a}}function nl(e,t){const n=ae(e),o=Se(e),r=n.visualViewport;let s=o.clientWidth,i=o.clientHeight,a=0,l=0;if(r){s=r.width,i=r.height;const u=ro();(!u||u&&t==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}return{width:s,height:i,x:a,y:l}}const ol=new Set(["absolute","fixed"]);function rl(e,t){const n=Fe(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,s=Ee(e)?Xe(e):Ce(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,l=r*s.x,u=o*s.y;return{width:i,height:a,x:l,y:u}}function Uo(e,t,n){let o;if(t==="viewport")o=nl(e,n);else if(t==="document")o=tl(Se(e));else if(ve(t))o=rl(t,n);else{const r=Or(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return $t(o)}function Nr(e,t){const n=Ne(e);return n===t||!ve(n)||Ze(n)?!1:me(n).position==="fixed"||Nr(n,t)}function sl(e,t){const n=t.get(e);if(n)return n;let o=dt(e,[],!1).filter(a=>ve(a)&&nt(a)!=="body"),r=null;const s=me(e).position==="fixed";let i=s?Ne(e):e;for(;ve(i)&&!Ze(i);){const a=me(i),l=oo(i);!l&&a.position==="fixed"&&(r=null),(s?!l&&!r:!l&&a.position==="static"&&!!r&&ol.has(r.position)||gt(i)&&!l&&Nr(e,i))?o=o.filter(d=>d!==i):r=a,i=Ne(i)}return t.set(e,o),o}function il(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[...n==="clippingAncestors"?Zt(t)?[]:sl(t,this._c):[].concat(n),o],a=i[0],l=i.reduce((u,d)=>{const f=Uo(t,d,r);return u.top=ie(f.top,u.top),u.right=Ie(f.right,u.right),u.bottom=Ie(f.bottom,u.bottom),u.left=ie(f.left,u.left),u},Uo(t,a,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function al(e){const{width:t,height:n}=Mr(e);return{width:t,height:n}}function cl(e,t,n){const o=Ee(t),r=Se(t),s=n==="fixed",i=Fe(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=Ce(0);function u(){l.x=io(r)}if(o||!o&&!s)if((nt(t)!=="body"||gt(r))&&(a=Qt(t)),o){const h=Fe(t,!0,s,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else r&&u();s&&!o&&r&&u();const d=r&&!o&&!s?Ir(r,a):Ce(0),f=i.left+a.scrollLeft-l.x-d.x,m=i.top+a.scrollTop-l.y-d.y;return{x:f,y:m,width:i.width,height:i.height}}function En(e){return me(e).position==="static"}function Vo(e,t){if(!Ee(e)||me(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Se(e)===n&&(n=n.ownerDocument.body),n}function Dr(e,t){const n=ae(e);if(Zt(e))return n;if(!Ee(e)){let r=Ne(e);for(;r&&!Ze(r);){if(ve(r)&&!En(r))return r;r=Ne(r)}return n}let o=Vo(e,t);for(;o&&Vc(o)&&En(o);)o=Vo(o,t);return o&&Ze(o)&&En(o)&&!oo(o)?n:o||Xc(e)||n}const ll=async function(e){const t=this.getOffsetParent||Dr,n=this.getDimensions,o=await n(e.floating);return{reference:cl(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function ul(e){return me(e).direction==="rtl"}const dl={convertOffsetParentRelativeRectToViewportRelativeRect:Jc,getDocumentElement:Se,getClippingRect:il,getOffsetParent:Dr,getElementRects:ll,getClientRects:el,getDimensions:al,getScale:Xe,isElement:ve,isRTL:ul};function jr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function fl(e,t){let n=null,o;const r=Se(e);function s(){var a;clearTimeout(o),(a=n)==null||a.disconnect(),n=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const u=e.getBoundingClientRect(),{left:d,top:f,width:m,height:h}=u;if(a||t(),!m||!h)return;const w=At(f),v=At(r.clientWidth-(d+m)),g=At(r.clientHeight-(f+h)),x=At(d),C={rootMargin:-w+"px "+-v+"px "+-g+"px "+-x+"px",threshold:ie(0,Ie(1,l))||1};let b=!0;function E(_){const S=_[0].intersectionRatio;if(S!==l){if(!b)return i();S?i(!1,S):o=setTimeout(()=>{i(!1,1e-7)},1e3)}S===1&&!jr(u,e.getBoundingClientRect())&&i(),b=!1}try{n=new IntersectionObserver(E,{...C,root:r.ownerDocument})}catch{n=new IntersectionObserver(E,C)}n.observe(e)}return i(!0),s}function pl(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,u=so(e),d=r||s?[...u?dt(u):[],...dt(t)]:[];d.forEach(x=>{r&&x.addEventListener("scroll",n,{passive:!0}),s&&x.addEventListener("resize",n)});
vendor: 6,181 bytes, line 25
25const f=u&&a?fl(u,n):null;let m=-1,h=null;i&&(h=new ResizeObserver(x=>{let[y]=x;y&&y.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var C;(C=h)==null||C.observe(t)})),n()}),u&&!l&&h.observe(u),h.observe(t));let w,v=l?Fe(e):null;l&&g();function g(){const x=Fe(e);v&&!jr(v,x)&&n(),v=x,w=requestAnimationFrame(g)}return n(),()=>{var x;d.forEach(y=>{r&&y.removeEventListener("scroll",n),s&&y.removeEventListener("resize",n)}),f==null||f(),(x=h)==null||x.disconnect(),h=null,l&&cancelAnimationFrame(w)}}const vl=Fc,ml=$c,hl=jc,gl=Hc,yl=Lc,Go=Dc,wl=Bc,xl=(e,t,n)=>{const o=new Map,r={platform:dl,...n},s={...r.platform,_c:o};return Nc(e,t,{...r,platform:s})};var Cl=typeof document<"u",bl=function(){},Dt=Cl?c.useLayoutEffect:bl;function Bt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!Bt(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const s=r[o];if(!(s==="_owner"&&e.$$typeof)&&!Bt(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Lr(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ko(e,t){const n=Lr(e);return Math.round(t*n)/n}function Sn(e){const t=c.useRef(e);return Dt(()=>{t.current=e}),t}function El(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[d,f]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=c.useState(o);Bt(m,o)||h(o);const[w,v]=c.useState(null),[g,x]=c.useState(null),y=c.useCallback(A=>{A!==_.current&&(_.current=A,v(A))},[]),C=c.useCallback(A=>{A!==S.current&&(S.current=A,x(A))},[]),b=s||w,E=i||g,_=c.useRef(null),S=c.useRef(null),T=c.useRef(d),j=l!=null,D=Sn(l),B=Sn(r),H=Sn(u),k=c.useCallback(()=>{if(!_.current||!S.current)return;const A={placement:t,strategy:n,middleware:m};B.current&&(A.platform=B.current),xl(_.current,S.current,A).then(P=>{const Y={...P,isPositioned:H.current!==!1};L.current&&!Bt(T.current,Y)&&(T.current=Y,mt.flushSync(()=>{f(Y)}))})},[m,t,n,B,H]);Dt(()=>{u===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,f(A=>({...A,isPositioned:!1})))},[u]);const L=c.useRef(!1);Dt(()=>(L.current=!0,()=>{L.current=!1}),[]),Dt(()=>{if(b&&(_.current=b),E&&(S.current=E),b&&E){if(D.current)return D.current(b,E,k);k()}},[b,E,k,D,j]);const K=c.useMemo(()=>({reference:_,floating:S,setReference:y,setFloating:C}),[y,C]),I=c.useMemo(()=>({reference:b,floating:E}),[b,E]),$=c.useMemo(()=>{const A={position:n,left:0,top:0};if(!I.floating)return A;const P=Ko(I.floating,d.x),Y=Ko(I.floating,d.y);return a?{...A,transform:"translate("+P+"px, "+Y+"px)",...Lr(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:P,top:Y}},[n,a,I.floating,d.x,d.y]);return c.useMemo(()=>({...d,update:k,refs:K,elements:I,floatingStyles:$}),[d,k,K,I,$])}const Sl=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?Go({element:o.current,padding:r}).fn(n):{}:o?Go({element:o,padding:r}).fn(n):{}}}},Rl=(e,t)=>({...vl(e),options:[e,t]}),Pl=(e,t)=>({...ml(e),options:[e,t]}),_l=(e,t)=>({...wl(e),options:[e,t]}),Tl=(e,t)=>({...hl(e),options:[e,t]}),Al=(e,t)=>({...gl(e),options:[e,t]}),Ml=(e,t)=>({...yl(e),options:[e,t]}),Ol=(e,t)=>({...Sl(e),options:[e,t]});var Il="Arrow",kr=c.forwardRef((e,t)=>{const{children:n,width:o=10,height:r=5,...s}=e;return p.jsx(O.svg,{...s,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});kr.displayName=Il;var Nl=kr;function Dl(e){const[t,n]=c.useState(void 0);return Q(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const s=r[0];let i,a;if("borderBoxSize"in s){const l=s.borderBoxSize,u=Array.isArray(l)?l[0]:l;i=u.inlineSize,a=u.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}var ao="Popper",[Fr,De]=de(ao),[jl,$r]=Fr(ao),Br=e=>{const{__scopePopper:t,children:n}=e,[o,r]=c.useState(null);return p.jsx(jl,{scope:t,anchor:o,onAnchorChange:r,children:n})};Br.displayName=ao;var Hr="PopperAnchor",Wr=c.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,s=$r(Hr,n),i=c.useRef(null),a=F(t,i);return c.useEffect(()=>{s.onAnchorChange((o==null?void 0:o.current)||i.current)}),o?null:p.jsx(O.div,{...r,ref:a})});Wr.displayName=Hr;var co="PopperContent",[Ll,kl]=Fr(co),Ur=c.forwardRef((e,t)=>{var M,U,z,W,V,G;const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:m=!1,updatePositionStrategy:h="optimized",onPlaced:w,...v}=e,g=$r(co,n),[x,y]=c.useState(null),C=F(t,se=>y(se)),[b,E]=c.useState(null),_=Dl(b),S=(_==null?void 0:_.width)??0,T=(_==null?void 0:_.height)??0,j=o+(s!=="center"?"-"+s:""),D=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},B=Array.isArray(u)?u:[u],H=B.length>0,k={padding:D,boundary:B.filter($l),altBoundary:H},{refs:L,floatingStyles:K,placement:I,isPositioned:$,middlewareData:A}=El({strategy:"fixed",placement:j,whileElementsMounted:(...se)=>pl(...se,{animationFrame:h==="always"}),elements:{reference:g.anchor},middleware:[Rl({mainAxis:r+T,alignmentAxis:i}),l&&Pl({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?_l():void 0,...k}),l&&Tl({...k}),Al({...k,apply:({elements:se,rects:ye,availableWidth:rt,availableHeight:st})=>{const{width:it,height:Pa}=ye.reference,Pt=se.floating.style;Pt.setProperty("--radix-popper-available-width",`${rt}px`),Pt.setProperty("--radix-popper-available-height",`${st}px`),Pt.setProperty("--radix-popper-anchor-width",`${it}
25px`),Pt.setProperty("--radix-popper-anchor-height",`${Pa}px`)}}),b&&Ol({element:b,padding:a}),Bl({arrowWidth:S,arrowHeight:T}),m&&Ml({strategy:"referenceHidden",...k})]}),[P,Y]=Kr(I),Z=be(w);Q(()=>{$&&(Z==null||Z())},[$,Z]);const ne=(M=A.arrow)==null?void 0:M.x,Re=(U=A.arrow)==null?void 0:U.y,le=((z=A.arrow)==null?void 0:z.centerOffset)!==0,[Pe,re]=c.useState();return Q(()=>{x&&re(window.getComputedStyle(x).zIndex)},[x]),p.jsx("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...K,transform:$?K.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Pe,"--radix-popper-transform-origin":[(W=A.transformOrigin)==null?void 0:W.x,(V=A.transformOrigin)==null?void 0:V.y].join(" "),...((G=A.hide)==null?void 0:G.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(Ll,{scope:n,placedSide:P,onArrowChange:E,arrowX:ne,arrowY:Re,shouldHideArrow:le,children:p.jsx(O.div,{"data-side":P,"data-align":Y,...v,ref:C,style:{...v.style,animation:$?void 0:"none"}})})})});Ur.displayName=co;var Vr="PopperArrow",Fl={top:"bottom",right:"left",bottom:"top",left:"right"},Gr=c.forwardRef(function(t,n){const{__scopePopper:o,...r}=t,s=kl(Vr,o),i=Fl[s.placedSide];return p.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:p.jsx(Nl,{...r,ref:n,style:{...r.style,display:"block"}})})});Gr.displayName=Vr;function $l(e){return e!==null}var Bl=e=>({name:"transformOrigin",options:e,fn(t){var g,x,y;const{placement:n,rects:o,middlewareData:r}=t,i=((g=r.arrow)==null?void 0:g.centerOffset)!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[u,d]=Kr(n),f={start:"0%",center:"50%",end:"100%"}[d],m=(((x=r.arrow)==null?void 0:x.x)??0)+a/2,h=(((y=r.arrow)==null?void 0:y.y)??0)+l/2;let w="",v="";return u==="bottom"?(w=i?f:`${m}px`,v=`${-l}px`):u==="top"?(w=i?f:`${m}px`,v=`${o.floating.height+l}px`):u==="right"?(w=`${-l}px`,v=i?f:`${h}px`):u==="left"&&(w=`${o.floating.width+l}px`,v=i?f:`${h}px`),{data:{x:w,y:v}}}});function Kr(e){const[t,n="center"]=e.split("-");return[t,n]}var Jt=Br,yt=Wr,en=Ur,tn=Gr,[nn,Cp]=de("Tooltip",[De]),on=De(),Yr="TooltipProvider",Hl=700,Fn="tooltip.open",[Wl,lo]=nn(Yr),zr=e=>{const{__scopeTooltip:t,delayDuration:n=Hl,skipDelayDuration:o=300,disableHoverableContent:r=!1,children:s}=e,i=c.useRef(!0),a=c.useRef(!1),l=c.useRef(0);return c.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),p.jsx(Wl,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:c.useCallback(()=>{window.clearTimeout(l.current),i.current=!1},[]),onClose:c.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.current=!0,o)},[o]),isPointerInTransitRef:a,onPointerInTransitChange:c.useCallback(u=>{a.current=u},[]),disableHoverableContent:r,children:s})};zr.displayName=Yr;var ft="Tooltip",[Ul,rn]=nn(ft),Xr=e=>{const{__scopeTooltip:t,children:n,open:o,defaultOpen:r,onOpenChange:s,disableHoverableContent:i,delayDuration:a}=e,l=lo(ft,e.__scopeTooltip),u=on(t),[d,f]=c.useState(null),m=oe(),h=c.useRef(0),w=i??l.disableHoverableContent,v=a??l.delayDuration,g=c.useRef(!1),[x,y]=pe({prop:o,defaultProp:r??!1,onChange:S=>{S?(l.onOpen(),document.dispatchEvent(new CustomEvent(Fn))):l.onClose(),s==null||s(S)},caller:ft}),C=c.useMemo(()=>x?g.current?"delayed-open":"instant-open":"closed",[x]),b=c.useCallback(()=>{window.clearTimeout(h.current),h.current=0,g.current=!1,y(!0)},[y]),E=c.useCallback(()=>{window.clearTimeout(h.current),h.current=0,y(!1)},[y]),_=c.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{g.current=!0,y(!0),h.current=0},v)},[v,y]);return c.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),p.jsx(Jt,{...u,children:p.jsx(Ul,{scope:t,contentId:m,open:x,stateAttribute:C,trigger:d,onTriggerChange:f,onTriggerEnter:c.useCallback(()=>{l.isOpenDelayedRef.current?_():b()},[l.isOpenDelayedRef,_,b]),onTriggerLeave:c.useCallback(()=>{w?E():(window.clearTimeout(h.current),h.current=0)},[E,w]),onOpen:b,onClose:E,disableHoverableContent:w,children:n})})};Xr.displayName=ft;
vendor: 14,848 bytes, lines 25-40
25var $n="TooltipTrigger",qr=c.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=rn($n,n),s=lo($n,n),i=on(n),a=c.useRef(null),l=F(t,a,r.onTriggerChange),u=c.useRef(!1),d=c.useRef(!1),f=c.useCallback(()=>u.current=!1,[]);return c.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),p.jsx(yt,{asChild:!0,...i,children:p.jsx(O.button,{"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute,...o,ref:l,onPointerMove:R(e.onPointerMove,m=>{m.pointerType!=="touch"&&!d.current&&!s.isPointerInTransitRef.current&&(r.onTriggerEnter(),d.current=!0)}),onPointerLeave:R(e.onPointerLeave,()=>{r.onTriggerLeave(),d.current=!1}),onPointerDown:R(e.onPointerDown,()=>{r.open&&r.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:R(e.onFocus,()=>{u.current||r.onOpen()}),onBlur:R(e.onBlur,r.onClose),onClick:R(e.onClick,r.onClose)})})});qr.displayName=$n;var Vl="TooltipPortal",[bp,Gl]=nn(Vl,{forceMount:void 0}),Qe="TooltipContent",Zr=c.forwardRef((e,t)=>{const n=Gl(Qe,e.__scopeTooltip),{forceMount:o=n.forceMount,side:r="top",...s}=e,i=rn(Qe,e.__scopeTooltip);return p.jsx(ce,{present:o||i.open,children:i.disableHoverableContent?p.jsx(Qr,{side:r,...s,ref:t}):p.jsx(Kl,{side:r,...s,ref:t})})}),Kl=c.forwardRef((e,t)=>{const n=rn(Qe,e.__scopeTooltip),o=lo(Qe,e.__scopeTooltip),r=c.useRef(null),s=F(t,r),[i,a]=c.useState(null),{trigger:l,onClose:u}=n,d=r.current,{onPointerInTransitChange:f}=o,m=c.useCallback(()=>{a(null),f(!1)},[f]),h=c.useCallback((w,v)=>{const g=w.currentTarget,x={x:w.clientX,y:w.clientY},y=Zl(x,g.getBoundingClientRect()),C=Ql(x,y),b=Jl(v.getBoundingClientRect()),E=tu([...C,...b]);a(E),f(!0)},[f]);return c.useEffect(()=>()=>m(),[m]),c.useEffect(()=>{if(l&&d){const w=g=>h(g,d),v=g=>h(g,l);return l.addEventListener("pointerleave",w),d.addEventListener("pointerleave",v),()=>{l.removeEventListener("pointerleave",w),d.removeEventListener("pointerleave",v)}}},[l,d,h,m]),c.useEffect(()=>{if(i){const w=v=>{const g=v.target,x={x:v.clientX,y:v.clientY},y=(l==null?void 0:l.contains(g))||(d==null?void 0:d.contains(g)),C=!eu(x,i);y?m():C&&(m(),u())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[l,d,i,u,m]),p.jsx(Qr,{...e,ref:s})}),[Yl,zl]=nn(ft,{isInside:!1}),Xl=Ja("TooltipContent"),Qr=c.forwardRef((e,t)=>{const{__scopeTooltip:n,children:o,"aria-label":r,onEscapeKeyDown:s,onPointerDownOutside:i,...a}=e,l=rn(Qe,n),u=on(n),{onClose:d}=l;return c.useEffect(()=>(document.addEventListener(Fn,d),()=>document.removeEventListener(Fn,d)),[d]),c.useEffect(()=>{if(l.trigger){const f=m=>{const h=m.target;h!=null&&h.contains(l.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,d]),p.jsx(We,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:p.jsxs(en,{"data-state":l.stateAttribute,...u,...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:[p.jsx(Xl,{children:o}),p.jsx(Yl,{scope:n,isInside:!0,children:p.jsx(wc,{id:l.contentId,role:"tooltip",children:r||o})})]})})});Zr.displayName=Qe;var Jr="TooltipArrow",ql=c.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=on(n);return zl(Jr,n).isInside?null:p.jsx(tn,{...r,...o,ref:t})});ql.displayName=Jr;function Zl(e,t){const n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,o,r,s)){case s:return"left";case r:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function Ql(e,t,n=5){const o=[];switch(t){case"top":o.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":o.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":o.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":o.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return o}function Jl(e){const{top:t,right:n,bottom:o,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:o},{x:r,y:o}]}function eu(e,t){const{x:n,y:o}=e;let r=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const a=t[s],l=t[i],u=a.x,d=a.y,f=l.x,m=l.y;d>o!=m>o&&n<(f-u)*(o-d)/(m-d)+u&&(r=!r)}return r}function tu(e){const t=e.slice();return t.sort((n,o)=>n.x<o.x?-1:n.x>o.x?1:n.y<o.y?-1:n.y>o.y?1:0),nu(t)}function nu(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const r=e[o];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(r.y-i.y)>=(s.y-i.y)*(r.x-i.x))t.pop();else break}t.push(r)}t.pop();const n=[];for(let o=e.length-1;o>=0;o--){const r=e[o];for(;n.length>=2;){const s=n[n.length-1],i=n[n.length-2];if((s.x-i.x)*(r.y-i.y)>=(s.y-i.y)*(r.x-i.x))n.pop();else break}n.push(r)}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 Ep=zr,Sp=Xr,Rp=qr,Pp=Zr,we=function(){return we=Object.assign||function(t){for(var n,o=1,r=arguments.length;o<r;o++){n=arguments[o];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},we.apply(this,arguments)};function es(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}function _p(e,t,n,o){function r(s){return s instanceof n?s:new n(function(i){i(s)})}return new(n||(n=Promise))(function(s,i){function a(d){try{u(o.next(d))}catch(f){i(f)}}function l(d){try{u(o.throw(d))}catch(f){i(f)}}function u(d){d.done?s(d.value):r(d.value).then(a,l)}u((o=o.apply(e,t||[])).next())})}function ou(e,t,n){if(n||arguments.length===2)for(var o=0,r=t.length,s;o<r;o++)(s||!(o in t))&&(s||(s=Array.prototype.slice.call(t,0,o)),s[o]=t[o]);return e.concat(s||Array.prototype.slice.call(t))}var Rn="focusScope.autoFocusOnMount",Pn="focusScope.autoFocusOnUnmount",Yo={bubbles:!1,cancelable:!0},ru="FocusScope",wt=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:s,...i}=e,[a,l]=c.useState(null),u=be(r),d=be(s),f=c.useRef(null),m=F(t,v=>l(v)),h=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(o){let v=function(C){if(h.paused||!a)return;const b=C.target;a.contains(b)?f.current=b:Me(f.current,{select:!0})},g=function(C){if(h.paused||!a)return;const b=C.relatedTarget;b!==null&&(a.contains(b)||Me(f.current,{select:!0}))},x=function(C){if(document.activeElement===document.body)for(const E of C)E.removedNodes.length>0&&Me(a)};document.addEventListener("focusin",v),document.addEventListener("focusout",g);const y=new MutationObserver(x);return a&&y.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",g),y.disconnect()}}},[o,a,h.paused]),c.useEffect(()=>{if(a){Xo.add(h);const v=document.activeElement;if(!a.contains(v)){const x=new CustomEvent(Rn,Yo);a.addEventListener(Rn,u),a.dispatchEvent(x),x.defaultPrevented||(su(uu(ts(a)),{select:!0}),document.activeElement===v&&Me(a))}return()=>{a.removeEventListener(Rn,u),setTimeout(()=>{const x=new CustomEvent(Pn,Yo);a.addEventListener(Pn,d),a.dispatchEvent(x),x.defaultPrevented||Me(v??document.body,{select:!0}),a.removeEventListener(Pn,d),Xo.remove(h)},0)}}},[a,u,d,h]);const w=c.useCallback(v=>{if(!n&&!o||h.paused)return;const g=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,x=document.activeElement;if(g&&x){const y=v.currentTarget,[C,b]=iu(y);C&&b?!v.shiftKey&&x===b?(v.preventDefault(),n&&Me(C,{select:!0})):v.shiftKey&&x===C&&(v.preventDefault(),n&&Me(b,{select:!0})):x===y&&v.preventDefault()}},[n,o,h.paused]);return p.jsx(O.div,{tabIndex:-1,...i,ref:m,onKeyDown:w})});wt.displayName=ru;function su(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(Me(o,{select:t}),document.activeElement!==n)return}function iu(e){const t=ts(e),n=zo(t,e),o=zo(t.reverse(),e);return[n,o]}function ts(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function zo(e,t){for(const n of e)if(!au(n,{upTo:t}))return n}function au(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 cu(e){return e instanceof HTMLInputElement&&"select"in e}function Me(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&cu(e)&&t&&e.select()}}var Xo=lu();function lu(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=qo(e,t),e.unshift(t)},remove(t){var n;e=qo(e,t),(n=e[0])==null||n.resume()}}}function qo(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function uu(e){return e.filter(t=>t.tagName!=="A")}var _n=0;function sn(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Zo()),document.body.insertAdjacentElement("beforeend",e[1]??Zo()),_n++,()=>{_n===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),_n--}},[])}function Zo(){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 jt="right-scroll-bar-position",Lt="width-before-scroll-bar",du="with-scroll-bars-hidden",fu="--removed-body-scroll-bar-size";function Tn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function pu(e,t){var n=c.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(o){var r=n.value;r!==o&&(n.value=o,n.callback(o,r))}}}})[0];return n.callback=t,n.facade}var vu=typeof window<"u"?c.useLayoutEffect:c.useEffect,Qo=new WeakMap;function mu(e,t){var n=pu(null,function(o){return e.forEach(function(r){return Tn(r,o)})});return vu(function(){var o=Qo.get(n);if(o){var r=new Set(o),s=new Set(e),i=n.current;r.forEach(function(a){s.has(a)||Tn(a,null)}),s.forEach(function(a){r.has(a)||Tn(a,i)})}Qo.set(n,e)},[e]),n}function hu(e){return e}function gu(e,t){t===void 0&&(t=hu);var n=[],o=!1,r={read:function(){if(o)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,o);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(o=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){o=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var l=function(){var d=i;i=[],d.forEach(s)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(d){i.push(d),u()},filter:function(d){return i=i.filter(d),n}}}};return r}function yu(e){e===void 0&&(e={});var t=gu(null);return t.options=we({async:!0,ssr:!1},e),t}var ns=function(e){var t=e.sideCar,n=es(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return c.createElement(o,we({},n))};ns.isSideCarExport=!0;function wu(e,t){return e.useMedium(t),ns}var os=yu(),An=function(){},an=c.forwardRef(function(e,t){var n=c.useRef(null),o=c.useState({onScrollCapture:An,onWheelCapture:An,onTouchMoveCapture:An}),r=o[0],s=o[1],i=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,m=e.sideCar,h=e.noRelative,w=e.noIsolation,v=e.inert,g=e.allowPinchZoom,x=e.as,y=x===void 0?"div":x,C=e.gapMode,b=es(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=m,_=mu([n,t]),S=we(we({},b),r);return c.createElement(c.Fragment,null,d&&c.createElement(E,{sideCar:os,removeScrollBar:u,shards:f,noRelative:h,noIsolation:w,inert:v,setCallbacks:s,allowPinchZoom:!!g,lockRef:n,gapMode:C}),i?c.cloneElement(c.Children.only(a),we(we({},S),{ref:_})):c.createElement(y,we({},S,{className:l,ref:_}),a))});an.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};an.classNames={fullWidth:Lt,zeroRight:jt};var xu=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Cu(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=xu();return t&&e.setAttribute("nonce",t),e}function bu(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Eu(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Su=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Cu())&&(bu(t,n),Eu(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ru=function(){var e=Su();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},rs=function(){var e=Ru(),t=function(n){var o=n.styles,r=n.dynamic;return e(o,r),null};return t},Pu={left:0,top:0,right:0,gap:0},Mn=function(e){return parseInt(e||"",10)||0},_u=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[Mn(n),Mn(o),Mn(r)]},Tu=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Pu;var t=_u(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},Au=rs(),qe="data-scroll-locked",Mu=function(e,t,n,o){var r=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),` 26 .`.concat(du,` { 27 overflow: hidden `).concat(o,`; 28 padding-right: `).concat(a,"px ").concat(o,`; 29 } 30 body[`).concat(qe,`] { 31 overflow: hidden `).concat(o,`; 32 overscroll-behavior: contain; 33 `).concat([t&&"position: relative ".concat(o,";"),n==="margin"&&` 34 padding-left: `.concat(r,`px; 35 padding-top: `).concat(s,`px; 36 padding-right: `).concat(i,`px; 37 margin-left:0; 38 margin-top:0; 39 margin-right: `).concat(a,"px ").concat(o,`; 40 `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(o,";
40")].filter(Boolean).join(""),` 41 } 42 43 .`).concat(jt,` { 44 right: `).concat(a,"px ").concat(o,`; 45 } 46 47 .`).concat(Lt,` { 48 margin-right: `).concat(a,"px ").concat(o,`; 49 } 50 51 .`).concat(jt," .").concat(jt,` { 52 right: 0 `).concat(o,`; 53 } 54 55 .`).concat(Lt," .").concat(Lt,` { 56 margin-right: 0 `).concat(o,`; 57 } 58 59 body[`).concat(qe,`] { 60 `).concat(fu,": ").concat(a,`px; 61 } 62`)},Jo=function(){var e=parseInt(document.body.getAttribute(qe)||"0",10);return isFinite(e)?e:0},Ou=function(){c.useEffect(function(){return document.body.setAttribute(qe,(Jo()+1).toString()),function(){var e=Jo()-1;e<=0?document.body.removeAttribute(qe):document.body.setAttribute(qe,e.toString())}},[])},Iu=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,r=o===void 0?"margin":o;Ou();var s=c.useMemo(function(){return Tu(r)},[r]);return c.createElement(Au,{styles:Mu(s,!t,r,n?"":"!important")})},Bn=!1;if(typeof window<"u")try{var Mt=Object.defineProperty({},"passive",{get:function(){return Bn=!0,!0}});window.addEventListener("test",Mt,Mt),window.removeEventListener("test",Mt,Mt)}catch{Bn=!1}var Ge=Bn?{passive:!1}:!1,Nu=function(e){return e.tagName==="TEXTAREA"},ss=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Nu(e)&&n[t]==="visible")},Du=function(e){return ss(e,"overflowY")},ju=function(e){return ss(e,"overflowX")},er=function(e,t){var n=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var r=is(e,o);if(r){var s=as(e,o),i=s[1],a=s[2];if(i>a)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},Lu=function(e){var t=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[t,n,o]},ku=function(e){var t=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[t,n,o]},is=function(e,t){return e==="v"?Du(t):ju(t)},as=function(e,t){return e==="v"?Lu(t):ku(t)},Fu=function(e,t){return e==="h"&&t==="rtl"?-1:1},$u=function(e,t,n,o,r){var s=Fu(e,window.getComputedStyle(t).direction),i=s*o,a=n.target,l=t.contains(a),u=!1,d=i>0,f=0,m=0;do{if(!a)break;var h=as(e,a),w=h[0],v=h[1],g=h[2],x=v-g-s*w;(w||x)&&is(e,a)&&(f+=x,m+=w);var y=a.parentNode;a=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(d&&(Math.abs(f)<1||!r)||!d&&(Math.abs(m)<1||!r))&&(u=!0),u},Ot=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},tr=function(e){return[e.deltaX,e.deltaY]},nr=function(e){return e&&"current"in e?e.current:e},Bu=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Hu=function(e){return` 63 .block-interactivity-`.concat(e,` {pointer-events: none;} 64 .allow-interactivity-`).concat(e,` {pointer-events: all;} 65`)},Wu=0,Ke=[];function Uu(e){var t=c.useRef([]),n=c.useRef([0,0]),o=c.useRef(),r=c.useState(Wu++)[0],s=c.useState(rs)[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(r));var v=ou([e.lockRef.current],(e.shards||[]).map(nr),!0).filter(Boolean);return v.forEach(function(g){return g.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),v.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var a=c.useCallback(function(v,g){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!i.current.allowPinchZoom;var x=Ot(v),y=n.current,C="deltaX"in v?v.deltaX:y[0]-x[0],b="deltaY"in v?v.deltaY:y[1]-x[1],E,_=v.target,S=Math.abs(C)>Math.abs(b)?"h":"v";if("touches"in v&&S==="h"&&_.type==="range")return!1;var T=er(S,_);if(!T)return!0;if(T?E=S:(E=S==="v"?"h":"v",T=er(S,_)),!T)return!1;if(!o.current&&"changedTouches"in v&&(C||b)&&(o.current=E),!E)return!0;var j=o.current||E;return $u(j,g,v,j==="h"?C:b,!0)},[]),l=c.useCallback(function(v){var g=v;if(!(!Ke.length||Ke[Ke.length-1]!==s)){var x="deltaY"in g?tr(g):Ot(g),y=t.current.filter(function(E){return E.name===g.type&&(E.target===g.target||g.target===E.shadowParent)&&Bu(E.delta,x)})[0];if(y&&y.should){g.cancelable&&g.preventDefault();return}
vendor: 4,330 bytes, line 65
65if(!y){var C=(i.current.shards||[]).map(nr).filter(Boolean).filter(function(E){return E.contains(g.target)}),b=C.length>0?a(g,C[0]):!i.current.noIsolation;b&&g.cancelable&&g.preventDefault()}}},[]),u=c.useCallback(function(v,g,x,y){var C={name:v,delta:g,target:x,should:y,shadowParent:Vu(x)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(b){return b!==C})},1)},[]),d=c.useCallback(function(v){n.current=Ot(v),o.current=void 0},[]),f=c.useCallback(function(v){u(v.type,tr(v),v.target,a(v,e.lockRef.current))},[]),m=c.useCallback(function(v){u(v.type,Ot(v),v.target,a(v,e.lockRef.current))},[]);c.useEffect(function(){return Ke.push(s),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:m}),document.addEventListener("wheel",l,Ge),document.addEventListener("touchmove",l,Ge),document.addEventListener("touchstart",d,Ge),function(){Ke=Ke.filter(function(v){return v!==s}),document.removeEventListener("wheel",l,Ge),document.removeEventListener("touchmove",l,Ge),document.removeEventListener("touchstart",d,Ge)}},[]);var h=e.removeScrollBar,w=e.inert;return c.createElement(c.Fragment,null,w?c.createElement(s,{styles:Hu(r)}):null,h?c.createElement(Iu,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Vu(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Gu=wu(os,Uu);var xt=c.forwardRef(function(e,t){return c.createElement(an,we({},e,{ref:t,sideCar:Gu}))});xt.classNames=an.classNames;var Ku=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ye=new WeakMap,It=new WeakMap,Nt={},On=0,cs=function(e){return e&&(e.host||cs(e.parentNode))},Yu=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=cs(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},zu=function(e,t,n,o){var r=Yu(t,Array.isArray(e)?e:[e]);Nt[n]||(Nt[n]=new WeakMap);var s=Nt[n],i=[],a=new Set,l=new Set(r),u=function(f){!f||a.has(f)||(a.add(f),u(f.parentNode))};r.forEach(u);var d=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(m){if(a.has(m))d(m);else try{var h=m.getAttribute(o),w=h!==null&&h!=="false",v=(Ye.get(m)||0)+1,g=(s.get(m)||0)+1;Ye.set(m,v),s.set(m,g),i.push(m),v===1&&w&&It.set(m,!0),g===1&&m.setAttribute(n,"true"),w||m.setAttribute(o,"true")}catch(x){console.error("aria-hidden: cannot operate on ",m,x)}})};return d(t),a.clear(),On++,function(){i.forEach(function(f){var m=Ye.get(f)-1,h=s.get(f)-1;Ye.set(f,m),s.set(f,h),m||(It.has(f)||f.removeAttribute(o),It.delete(f)),h||f.removeAttribute(n)}),On--,On||(Ye=new WeakMap,Ye=new WeakMap,It=new WeakMap,Nt={})}},cn=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=Ku(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live]"))),zu(o,r,n,"aria-hidden")):function(){return null}},ln="Dialog",[ls,Tp]=de(ln),[Xu,he]=ls(ln),us=e=>{const{__scopeDialog:t,children:n,open:o,defaultOpen:r,onOpenChange:s,modal:i=!0}=e,a=c.useRef(null),l=c.useRef(null),[u,d]=pe({prop:o,defaultProp:r??!1,onChange:s,caller:ln});return p.jsx(Xu,{scope:t,triggerRef:a,contentRef:l,contentId:oe(),titleId:oe(),descriptionId:oe(),open:u,onOpenChange:d,onOpenToggle:c.useCallback(()=>d(f=>!f),[d]),modal:i,children:n})};us.displayName=ln;var ds="DialogTrigger",fs=c.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=he(ds,n),s=F(t,r.triggerRef);return p.jsx(O.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":po(r.open),...o,ref:s,onClick:R(e.onClick,r.onOpenToggle)})});fs.displayName=ds;var uo="DialogPortal",[qu,ps]=ls(uo,{forceMount:void 0}),vs=e=>{const{__scopeDialog:t,forceMount:n,children:o,container:r}=e,s=he(uo,t);return p.jsx(qu,{scope:t,forceMount:n,children:c.Children.map(o,i=>p.jsx(ce,{present:n||s.open,children:p.jsx(ht,{asChild:!0,container:r,children:i})}))})};vs.displayName=uo;var Ht="DialogOverlay",ms=c.forwardRef((e,t)=>{const n=ps(Ht,e.__scopeDialog),{forceMount:o=n.forceMount,...r}=e,s=he(Ht,e.__scopeDialog);return s.modal?p.jsx(ce,{present:o||s.open,children:p.jsx(Qu,{...r,ref:t})}):null});ms.displayName=Ht;var Zu=Oe("DialogOverlay.RemoveScroll"),Qu=c.forwardRef((e,t)=>
vendor: 40,848 bytes, lines 65-69
65{const{__scopeDialog:n,...o}=e,r=he(Ht,n);return p.jsx(xt,{as:Zu,allowPinchZoom:!0,shards:[r.contentRef],children:p.jsx(O.div,{"data-state":po(r.open),...o,ref:t,style:{pointerEvents:"auto",...o.style}})})}),$e="DialogContent",hs=c.forwardRef((e,t)=>{const n=ps($e,e.__scopeDialog),{forceMount:o=n.forceMount,...r}=e,s=he($e,e.__scopeDialog);return p.jsx(ce,{present:o||s.open,children:s.modal?p.jsx(Ju,{...r,ref:t}):p.jsx(ed,{...r,ref:t})})});hs.displayName=$e;var Ju=c.forwardRef((e,t)=>{const n=he($e,e.__scopeDialog),o=c.useRef(null),r=F(t,n.contentRef,o);return c.useEffect(()=>{const s=o.current;if(s)return cn(s)},[]),p.jsx(gs,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:R(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:R(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,a=i.button===0&&i.ctrlKey===!0;(i.button===2||a)&&s.preventDefault()}),onFocusOutside:R(e.onFocusOutside,s=>s.preventDefault())})}),ed=c.forwardRef((e,t)=>{const n=he($e,e.__scopeDialog),o=c.useRef(!1),r=c.useRef(!1);return p.jsx(gs,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var i,a;(i=e.onCloseAutoFocus)==null||i.call(e,s),s.defaultPrevented||(o.current||(a=n.triggerRef.current)==null||a.focus(),s.preventDefault()),o.current=!1,r.current=!1},onInteractOutside:s=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,s),s.defaultPrevented||(o.current=!0,s.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const i=s.target;((u=n.triggerRef.current)==null?void 0:u.contains(i))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&r.current&&s.preventDefault()}})}),gs=c.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:r,onCloseAutoFocus:s,...i}=e,a=he($e,n),l=c.useRef(null),u=F(t,l);return sn(),p.jsxs(p.Fragment,{children:[p.jsx(wt,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:r,onUnmountAutoFocus:s,children:p.jsx(We,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":po(a.open),...i,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),p.jsxs(p.Fragment,{children:[p.jsx(td,{titleId:a.titleId}),p.jsx(od,{contentRef:l,descriptionId:a.descriptionId})]})]})}),fo="DialogTitle",ys=c.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=he(fo,n);return p.jsx(O.h2,{id:r.titleId,...o,ref:t})});ys.displayName=fo;var ws="DialogDescription",xs=c.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=he(ws,n);return p.jsx(O.p,{id:r.descriptionId,...o,ref:t})});xs.displayName=ws;var Cs="DialogClose",bs=c.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=he(Cs,n);return p.jsx(O.button,{type:"button",...o,ref:t,onClick:R(e.onClick,()=>r.onOpenChange(!1))})});bs.displayName=Cs;function po(e){return e?"open":"closed"}var Es="DialogTitleWarning",[Ap,Ss]=qa(Es,{contentName:$e,titleName:fo,docsSlug:"dialog"}),td=({titleId:e})=>{const t=Ss(Es),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 66 67If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 68 69For 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},nd="DialogDescriptionWarning",od=({contentRef:e,descriptionId:t})=>{const o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ss(nd).contentName}}.`;return c.useEffect(()=>{var s;const r=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(o))},[o,e,t]),null},Mp=us,Op=fs,Ip=vs,Np=ms,Dp=hs,jp=ys,Lp=xs,kp=bs,rd=c.createContext(void 0);function Ct(e){const t=c.useContext(rd);return e||t||"ltr"}var In="rovingFocusGroup.onEntryFocus",sd={bubbles:!1,cancelable:!0},bt="RovingFocusGroup",[Hn,Rs,id]=Xt(bt),[ad,un]=de(bt,[id]),[cd,ld]=ad(bt),Ps=c.forwardRef((e,t)=>p.jsx(Hn.Provider,{scope:e.__scopeRovingFocusGroup,children:p.jsx(Hn.Slot,{scope:e.__scopeRovingFocusGroup,children:p.jsx(ud,{...e,ref:t})})}));Ps.displayName=bt;var ud=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:o,loop:r=!1,dir:s,currentTabStopId:i,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...f}=e,m=c.useRef(null),h=F(t,m),w=Ct(s),[v,g]=pe({prop:i,defaultProp:a??null,onChange:l,caller:bt}),[x,y]=c.useState(!1),C=be(u),b=Rs(n),E=c.useRef(!1),[_,S]=c.useState(0);return c.useEffect(()=>{const T=m.current;if(T)return T.addEventListener(In,C),()=>T.removeEventListener(In,C)},[C]),p.jsx(cd,{scope:n,orientation:o,dir:w,loop:r,currentTabStopId:v,onItemFocus:c.useCallback(T=>g(T),[g]),onItemShiftTab:c.useCallback(()=>y(!0),[]),onFocusableItemAdd:c.useCallback(()=>S(T=>T+1),[]),onFocusableItemRemove:c.useCallback(()=>S(T=>T-1),[]),children:p.jsx(O.div,{tabIndex:x||_===0?-1:0,"data-orientation":o,...f,ref:h,style:{outline:"none",...e.style},onMouseDown:R(e.onMouseDown,()=>{E.current=!0}),onFocus:R(e.onFocus,T=>{const j=!E.current;if(T.target===T.currentTarget&&j&&!x){const D=new CustomEvent(In,sd);if(T.currentTarget.dispatchEvent(D),!D.defaultPrevented){const B=b().filter(I=>I.focusable),H=B.find(I=>I.active),k=B.find(I=>I.id===v),K=[H,k,...B].filter(Boolean).map(I=>I.ref.current);As(K,d)}}E.current=!1}),onBlur:R(e.onBlur,()=>y(!1))})})}),_s="RovingFocusGroupItem",Ts=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:o=!0,active:r=!1,tabStopId:s,children:i,...a}=e,l=oe(),u=s||l,d=ld(_s,n),f=d.currentTabStopId===u,m=Rs(n),{onFocusableItemAdd:h,onFocusableItemRemove:w,currentTabStopId:v}=d;return c.useEffect(()=>{if(o)return h(),()=>w()},[o,h,w]),p.jsx(Hn.ItemSlot,{scope:n,id:u,focusable:o,active:r,children:p.jsx(O.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...a,ref:t,onMouseDown:R(e.onMouseDown,g=>{o?d.onItemFocus(u):g.preventDefault()}),onFocus:R(e.onFocus,()=>d.onItemFocus(u)),onKeyDown:R(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){d.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const x=pd(g,d.orientation,d.dir);if(x!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let C=m().filter(b=>b.focusable).map(b=>b.ref.current);if(x==="last")C.reverse();else if(x==="prev"||x==="next"){x==="prev"&&C.reverse();const b=C.indexOf(g.currentTarget);C=d.loop?vd(C,b+1):C.slice(b+1)}setTimeout(()=>As(C))}}),children:typeof i=="function"?i({isCurrentTabStop:f,hasTabStop:v!=null}):i})})});Ts.displayName=_s;var dd={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function fd(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function pd(e,t,n){const o=fd(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return dd[o]}function As(e,t=!1){const n=document.activeElement;for(const o of e)if(o===n||(o.focus({preventScroll:t}),document.activeElement!==n))return}function vd(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var Ms=Ps,Os=Ts,Wn=["Enter"," "],md=["ArrowDown","PageUp","Home"],Is=["ArrowUp","PageDown","End"],hd=[...md,...Is],gd={ltr:[...Wn,"ArrowRight"],rtl:[...Wn,"ArrowLeft"]},yd={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Et="Menu",[pt,wd,xd]=Xt(Et),[Ue,Ns]=de(Et,[xd,De,un]),dn=De(),Ds=un(),[Cd,Ve]=Ue(Et),[bd,St]=Ue(Et),js=e=>{const{__scopeMenu:t,open:n=!1,children:o,dir:r,onOpenChange:s,modal:i=!0}=e,a=dn(t),[l,u]=c.useState(null),d=c.useRef(!1),f=be(s),m=Ct(r);return c.useEffect(()=>{const h=()=>{d.current=!0,document.addEventListener("pointerdown",w,{capture:!0,once:!0}),document.addEventListener("pointermove",w,{capture:!0,once:!0})},w=()=>d.current=!1;return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",w,{capture:!0}),document.removeEventListener("pointermove",w,{capture:!0})}},[]),p.jsx(Jt,{...a,children:p.jsx(Cd,{scope:t,open:n,onOpenChange:f,content:l,onContentChange:u,children:p.jsx(bd,{scope:t,onClose:c.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:d,dir:m,modal:i,children:o})})})};js.displayName=Et;var Ed="MenuAnchor",vo=c.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,r=dn(n);return p.jsx(yt,{...r,...o,ref:t})});vo.displayName=Ed;var mo="MenuPortal",[Sd,Ls]=Ue(mo,{forceMount:void 0}),ks=e=>{const{__scopeMenu:t,forceMount:n,children:o,container:r}=e,s=Ve(mo,t);return p.jsx(Sd,{scope:t,forceMount:n,children:p.jsx(ce,{present:n||s.open,children:p.jsx(ht,{asChild:!0,container:r,children:o})})})};ks.displayName=mo;var ue="MenuContent",[Rd,ho]=Ue(ue),Fs=c.forwardRef((e,t)=>{const n=Ls(ue,e.__scopeMenu),{forceMount:o=n.forceMount,...r}=e,s=Ve(ue,e.__scopeMenu),i=St(ue,e.__scopeMenu);return p.jsx(pt.Provider,{scope:e.__scopeMenu,children:p.jsx(ce,{present:o||s.open,children:p.jsx(pt.Slot,{scope:e.__scopeMenu,children:i.modal?p.jsx(Pd,{...r,ref:t}):p.jsx(_d,{...r,ref:t})})})})}),Pd=c.forwardRef((e,t)=>{const n=Ve(ue,e.__scopeMenu),o=c.useRef(null),r=F(t,o);return c.useEffect(()=>{const s=o.current;if(s)return cn(s)},[]),p.jsx(go,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:R(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),_d=c.forwardRef((e,t)=>{const n=Ve(ue,e.__scopeMenu);return p.jsx(go,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Td=Oe("MenuContent.ScrollLock"),go=c.forwardRef((e,t)=>{const{__scopeMenu:n,loop:o=!1,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:m,onDismiss:h,disableOutsideScroll:w,...v}=e,g=Ve(ue,n),x=St(ue,n),y=dn(n),C=Ds(n),b=wd(n),[E,_]=c.useState(null),S=c.useRef(null),T=F(t,S,g.onContentChange),j=c.useRef(0),D=c.useRef(""),B=c.useRef(0),H=c.useRef(null),k=c.useRef("right"),L=c.useRef(0),K=w?xt:c.Fragment,I=w?{as:Td,allowPinchZoom:!0}:void 0,$=P=>{var M,U;const Y=D.current+P,Z=b().filter(z=>!z.disabled),ne=document.activeElement,Re=(M=Z.find(z=>z.ref.current===ne))==null?void 0:M.textValue,le=Z.map(z=>z.textValue),Pe=Bd(le,Y,Re),re=(U=Z.find(z=>z.textValue===Pe))==null?void 0:U.ref.current;(function z(W){D.current=W,window.clearTimeout(j.current),W!==""&&(j.current=window.setTimeout(()=>z(""),1e3))})(Y),re&&setTimeout(()=>re.focus())};c.useEffect(()=>()=>window.clearTimeout(j.current),[]),sn();const A=c.useCallback(P=>{var Z,ne;return k.current===((Z=H.current)==null?void 0:Z.side)&&Wd(P,(ne=H.current)==null?void 0:ne.area)},[]);return p.jsx(Rd,{scope:n,searchRef:D,onItemEnter:c.useCallback(P=>{A(P)&&P.preventDefault()},[A]),onItemLeave:c.useCallback(P=>{var Y;A(P)||((Y=S.current)==null||Y.focus(),_(null))},[A]),onTriggerLeave:c.useCallback(P=>{A(P)&&P.preventDefault()},[A]),pointerGraceTimerRef:B,onPointerGraceIntentChange:c.useCallback(P=>{H.current=P},[]),children:p.jsx(K,{...I,children:p.jsx(wt,{asChild:!0,trapped:r,onMountAutoFocus:R(s,P=>{var Y;P.preventDefault(),(Y=S.current)==null||Y.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:p.jsx(We,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:m,onDismiss:h,children:p.jsx(Ms,{asChild:!0,...C,dir:x.dir,orientation:"vertical",loop:o,currentTabStopId:E,onCurrentTabStopIdChange:_,onEntryFocus:R(l,P=>{x.isUsingKeyboardRef.current||P.preventDefault()}),preventScrollOnEntryFocus:!0,children:p.jsx(en,{role:"menu","aria-orientation":"vertical","data-state":ei(g.open),"data-radix-menu-content":"",dir:x.dir,...y,...v,ref:T,style:{outline:"none",...v.style},onKeyDown:R(v.onKeyDown,P=>{const Z=P.target.closest("[data-radix-menu-content]")===P.currentTarget,ne=P.ctrlKey||P.altKey||P.metaKey,Re=P.key.length===1;Z&&(P.key==="Tab"&&P.preventDefault(),!ne&&Re&&$(P.key));const le=S.current;if(P.target!==le||!hd.includes(P.key))return;P.preventDefault();const re=b().filter(M=>!M.disabled).map(M=>M.ref.current);Is.includes(P.key)&&re.reverse(),Fd(re)}),onBlur:R(e.onBlur,P=>{P.currentTarget.contains(P.target)||(window.clearTimeout(j.current),D.current="")}),onPointerMove:R(e.onPointerMove,vt(P=>{const Y=P.target,Z=L.current!==P.clientX;if(P.currentTarget.contains(Y)&&Z){const ne=P.clientX>L.current?"right":"left";k.current=ne,L.current=P.clientX}}))})})})})})})});Fs.displayName=ue;var Ad="MenuGroup",yo=c.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return p.jsx(O.div,{role:"group",...o,ref:t})});yo.displayName=Ad;var Md="MenuLabel",$s=c.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return p.jsx(O.div,{...o,ref:t})});$s.displayName=Md;var Wt="MenuItem",or="menu.itemSelect",fn=c.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:o,...r}=e,s=c.useRef(null),i=St(Wt,e.__scopeMenu),a=ho(Wt,e.__scopeMenu),l=F(t,s),u=c.useRef(!1),d=()=>{const f=s.current;if(!n&&f){const m=new CustomEvent(or,{bubbles:!0,cancelable:!0});f.addEventListener(or,h=>o==null?void 0:o(h),{once:!0}),xr(f,m),m.defaultPrevented?u.current=!1:i.onClose()}};return p.jsx(Bs,{...r,ref:l,disabled:n,onClick:R(e.onClick,d),onPointerDown:f=>{var m;(m=e.onPointerDown)==null||m.call(e,f),u.current=!0},onPointerUp:R(e.onPointerUp,f=>{var m;u.current||(m=f.currentTarget)==null||m.click()}),onKeyDown:R(e.onKeyDown,f=>{const m=a.searchRef.current!=="";n||m&&f.key===" "||Wn.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});fn.displayName=Wt;var Bs=c.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:o=!1,textValue:r,...s}=e,i=ho(Wt,n),a=Ds(n),l=c.useRef(null),u=F(t,l),[d,f]=c.useState(!1),[m,h]=c.useState("");return c.useEffect(()=>{const w=l.current;w&&h((w.textContent??"").trim())},[s.children]),p.jsx(pt.ItemSlot,{scope:n,disabled:o,textValue:r??m,children:p.jsx(Os,{asChild:!0,...a,focusable:!o,children:p.jsx(O.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...s,ref:u,onPointerMove:R(e.onPointerMove,vt(w=>{o?i.onItemLeave(w):(i.onItemEnter(w),w.defaultPrevented||w.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:R(e.onPointerLeave,vt(w=>i.onItemLeave(w))),onFocus:R(e.onFocus,()=>f(!0)),onBlur:R(e.onBlur,()=>f(!1))})})})}),Od="MenuCheckboxItem",Hs=c.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:o,...r}=e;return p.jsx(Ks,{scope:e.__scopeMenu,checked:n,children:p.jsx(fn,{role:"menuitemcheckbox","aria-checked":Ut(n)?"mixed":n,...r,ref:t,"data-state":xo(n),onSelect:R(r.onSelect,()=>o==null?void 0:o(Ut(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Hs.displayName=Od;var Ws="MenuRadioGroup",[Id,Nd]=Ue(Ws,{value:void 0,onValueChange:()=>{}}),Us=c.forwardRef((e,t)=>{const{value:n,onValueChange:o,...r}=e,s=be(o);return p.jsx(Id,{scope:e.__scopeMenu,value:n,onValueChange:s,children:p.jsx(yo,{...r,ref:t})})});Us.displayName=Ws;var Vs="MenuRadioItem",Gs=c.forwardRef((e,t)=>{const{value:n,...o}=e,r=Nd(Vs,e.__scopeMenu),s=n===r.value;return p.jsx(Ks,{scope:e.__scopeMenu,checked:s,children:p.jsx(fn,{role:"menuitemradio","aria-checked":s,...o,ref:t,"data-state":xo(s),onSelect:R(o.onSelect,()=>{var i;return(i=r.onValueChange)==null?void 0:i.call(r,n)},{checkForDefaultPrevented:!1})})})});Gs.displayName=Vs;var wo="MenuItemIndicator",[Ks,Dd]=Ue(wo,{checked:!1}),Ys=c.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:o,...r}=e,s=Dd(wo,n);return p.jsx(ce,{present:o||Ut(s.checked)||s.checked===!0,children:p.jsx(O.span,{...r,ref:t,"data-state":xo(s.checked)})})});Ys.displayName=wo;var jd="MenuSeparator",zs=c.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return p.jsx(O.div,{role:"separator","aria-orientation":"horizontal",...o,ref:t})});zs.displayName=jd;var Ld="MenuArrow",Xs=c.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,r=dn(n);return p.jsx(tn,{...r,...o,ref:t})});Xs.displayName=Ld;var kd="MenuSub",[Fp,qs]=Ue(kd),at="MenuSubTrigger",Zs=c.forwardRef((e,t)=>{const n=Ve(at,e.__scopeMenu),o=St(at,e.__scopeMenu),r=qs(at,e.__scopeMenu),s=ho(at,e.__scopeMenu),i=c.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:l}=s,u={__scopeMenu:e.__scopeMenu},d=c.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return c.useEffect(()=>d,[d]),c.useEffect(()=>{const f=a.current;return()=>{window.clearTimeout(f),l(null)}},[a,l]),p.jsx(vo,{asChild:!0,...u,children:p.jsx(Bs,{id:r.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":r.contentId,"data-state":ei(n.open),...e,ref:zt(t,r.onTriggerChange),onClick:f=>{var m;(m=e.onClick)==null||m.call(e,f),!(e.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:R(e.onPointerMove,vt(f=>{s.onItemEnter(f),!f.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(s.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),d()},100))})),onPointerLeave:R(e.onPointerLeave,vt(f=>{var h,w;d();const m=(h=n.content)==null?void 0:h.getBoundingClientRect();if(m){const v=(w=n.content)==null?void 0:w.dataset.side,g=v==="right",x=g?-5:5,y=m[g?"left":"right"],C=m[g?"right":"left"];s.onPointerGraceIntentChange({area:[{x:f.clientX+x,y:f.clientY},{x:y,y:m.top},{x:C,y:m.top},{x:C,y:m.bottom},{x:y,y:m.bottom}],side:v}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(f),f.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:R(e.onKeyDown,f=>{var h;const m=s.searchRef.current!=="";e.disabled||m&&f.key===" "||gd[o.dir].includes(f.key)&&(n.onOpenChange(!0),(h=n.content)==null||h.focus(),f.preventDefault())})})})});Zs.displayName=at;var Qs="MenuSubContent",Js=c.forwardRef((e,t)=>{const n=Ls(ue,e.__scopeMenu),{forceMount:o=n.forceMount,...r}=e,s=Ve(ue,e.__scopeMenu),i=St(ue,e.__scopeMenu),a=qs(Qs,e.__scopeMenu),l=c.useRef(null),u=F(t,l);return p.jsx(pt.Provider,{scope:e.__scopeMenu,children:p.jsx(ce,{present:o||s.open,children:p.jsx(pt.Slot,{scope:e.__scopeMenu,children:p.jsx(go,{id:a.contentId,"aria-labelledby":a.triggerId,...r,ref:u,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{var f;i.isUsingKeyboardRef.current&&((f=l.current)==null||f.focus()),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:R(e.onFocusOutside,d=>{d.target!==a.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:R(e.onEscapeKeyDown,d=>{i.onClose(),d.preventDefault()}),onKeyDown:R(e.onKeyDown,d=>{var h;const f=d.currentTarget.contains(d.target),m=yd[i.dir].includes(d.key);f&&m&&(s.onOpenChange(!1),(h=a.trigger)==null||h.focus(),d.preventDefault())})})})})})});Js.displayName=Qs;function ei(e){return e?"open":"closed"}function Ut(e){return e==="indeterminate"}function xo(e){return Ut(e)?"indeterminate":e?"checked":"unchecked"}function Fd(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function $d(e,t){return e.map((n,o)=>e[(t+o)%e.length])}function Bd(e,t,n){const r=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=$d(e,Math.max(s,0));r.length===1&&(i=i.filter(u=>u!==n));const l=i.find(u=>u.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}function Hd(e,t){const{x:n,y:o}=e;let r=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const a=t[s],l=t[i],u=a.x,d=a.y,f=l.x,m=l.y;d>o!=m>o&&n<(f-u)*(o-d)/(m-d)+u&&(r=!r)}return r}function Wd(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Hd(n,t)}function vt(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Ud=js,Vd=vo,Gd=ks,Kd=Fs,Yd=yo,zd=$s,Xd=fn,qd=Hs,Zd=Us,Qd=Gs,Jd=Ys,ef=zs,tf=Xs,nf=Zs,of=Js,pn="DropdownMenu",[rf,$p]=de(pn,[Ns]),te=Ns(),[sf,ti]=rf(pn),ni=e=>{const{__scopeDropdownMenu:t,children:n,dir:o,open:r,defaultOpen:s,onOpenChange:i,modal:a=!0}=e,l=te(t),u=c.useRef(null),[d,f]=pe({prop:r,defaultProp:s??!1,onChange:i,caller:pn});return p.jsx(sf,{scope:t,triggerId:oe(),triggerRef:u,contentId:oe(),open:d,onOpenChange:f,onOpenToggle:c.useCallback(()=>f(m=>!m),[f]),modal:a,children:p.jsx(Ud,{...l,open:d,onOpenChange:f,dir:o,modal:a,children:n})})};ni.displayName=pn;var oi="DropdownMenuTrigger",ri=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:o=!1,...r}=e,s=ti(oi,n),i=te(n);return p.jsx(Vd,{asChild:!0,...i,children:p.jsx(O.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":o?"":void 0,disabled:o,...r,ref:zt(t,s.triggerRef),onPointerDown:R(e.onPointerDown,a=>{!o&&a.button===0&&a.ctrlKey===!1&&(s.onOpenToggle(),s.open||a.preventDefault())}),onKeyDown:R(e.onKeyDown,a=>{o||(["Enter"," "].includes(a.key)&&s.onOpenToggle(),a.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});ri.displayName=oi;var af="DropdownMenuPortal",si=e=>{const{__scopeDropdownMenu:t,...n}=e,o=te(t);return p.jsx(Gd,{...o,...n})};si.displayName=af;var ii="DropdownMenuContent",ai=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=ti(ii,n),s=te(n),i=c.useRef(!1);return p.jsx(Kd,{id:r.contentId,"aria-labelledby":r.triggerId,...s,...o,ref:t,onCloseAutoFocus:R(e.onCloseAutoFocus,a=>{var l;i.current||(l=r.triggerRef.current)==null||l.focus(),i.current=!1,a.preventDefault()}),onInteractOutside:R(e.onInteractOutside,a=>{const l=a.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0,d=l.button===2||u;(!r.modal||d)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});ai.displayName=ii;var cf="DropdownMenuGroup",lf=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=te(n);return p.jsx(Yd,{...r,...o,ref:t})});lf.displayName=cf;var uf="DropdownMenuLabel",ci=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=te(n);return p.jsx(zd,{...r,...o,ref:t})});ci.displayName=uf;var df="DropdownMenuItem",li=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=te(n);return p.jsx(Xd,{...r,...o,ref:t})});li.displayName=df;var ff="DropdownMenuCheckboxItem",ui=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=te(n);return p.jsx(qd,{...r,...o,ref:t})});ui.displayName=ff;var pf="DropdownMenuRadioGroup",vf=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=te(n);return p.jsx(Zd,{...r,...o,ref:t})});vf.displayName=pf;var mf="DropdownMenuRadioItem",di=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=te(n);return p.jsx(Qd,{...r,...o,ref:t})});di.displayName=mf;var hf="DropdownMenuItemIndicator",fi=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=te(n);return p.jsx(Jd,{...r,...o,ref:t})});fi.displayName=hf;var gf="DropdownMenuSeparator",pi=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=te(n);return p.jsx(ef,{...r,...o,ref:t})});pi.displayName=gf;var yf="DropdownMenuArrow",wf=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=te(n);return p.jsx(tf,{...r,...o,ref:t})});wf.displayName=yf;var xf="DropdownMenuSubTrigger",vi=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=te(n);return p.jsx(nf,{...r,...o,ref:t})});vi.displayName=xf;var Cf="DropdownMenuSubContent",mi=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=te(n);return p.jsx(of,{...r,...o,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});mi.displayName=Cf;var Bp=ni,Hp=ri,Wp=si,Up=ai,Vp=ci,Gp=li,Kp=ui,Yp=di,zp=fi,Xp=pi,qp=vi,Zp=mi;function bf(e){const t=c.useRef({value:e,previous:e});return c.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function rr(e,[t,n]){return Math.min(n,Math.max(t,e))}var Ef=[" ","Enter","ArrowUp","ArrowDown"],Sf=[" ","Enter"],Be="Select",[vn,mn,Rf]=Xt(Be),[ot,Qp]=de(Be,[Rf,De]),hn=De(),[Pf,je]=ot(Be),[_f,Tf]=ot(Be),hi=e=>{const{__scopeSelect:t,children:n,open:o,defaultOpen:r,onOpenChange:s,value:i,defaultValue:a,onValueChange:l,dir:u,name:d,autoComplete:f,disabled:m,required:h,form:w}=e,v=hn(t),[g,x]=c.useState(null),[y,C]=c.useState(null),[b,E]=c.useState(!1),_=Ct(u),[S,T]=pe({prop:o,defaultProp:r??!1,onChange:s,caller:Be}),[j,D]=pe({prop:i,defaultProp:a,onChange:l,caller:Be}),B=c.useRef(null),H=g?w||!!g.closest("form"):!0,[k,L]=c.useState(new Set),K=Array.from(k).map(I=>I.props.value).join(";");return p.jsx(Jt,{...v,children:p.jsxs(Pf,{required:h,scope:t,trigger:g,onTriggerChange:x,valueNode:y,onValueNodeChange:C,valueNodeHasChildren:b,onValueNodeHasChildrenChange:E,contentId:oe(),value:j,onValueChange:D,open:S,onOpenChange:T,dir:_,triggerPointerDownPosRef:B,disabled:m,children:[p.jsx(vn.Provider,{scope:t,children:p.jsx(_f,{scope:e.__scopeSelect,onNativeOptionAdd:c.useCallback(I=>{L($=>new Set($).add(I))},[]),onNativeOptionRemove:c.useCallback(I=>{L($=>{const A=new Set($);return A.delete(I),A})},[]),children:n})}),H?p.jsxs(Bi,{"aria-hidden":!0,required:h,tabIndex:-1,name:d,autoComplete:f,value:j,onChange:I=>D(I.target.value),disabled:m,form:w,children:[j===void 0?p.jsx("option",{value:""}):null,Array.from(k)]},K):null]})})};hi.displayName=Be;var gi="SelectTrigger",yi=c.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:o=!1,...r}=e,s=hn(n),i=je(gi,n),a=i.disabled||o,l=F(t,i.onTriggerChange),u=mn(n),d=c.useRef("touch"),[f,m,h]=Wi(v=>{const g=u().filter(C=>!C.disabled),x=g.find(C=>C.value===i.value),y=Ui(g,v,x);y!==void 0&&i.onValueChange(y.value)}),w=v=>{a||(i.onOpenChange(!0),h()),v&&(i.triggerPointerDownPosRef.current={x:Math.round(v.pageX),y:Math.round(v.pageY)})};return p.jsx(yt,{asChild:!0,...s,children:p.jsx(O.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":Hi(i.value)?"":void 0,...r,ref:l,onClick:R(r.onClick,v=>{v.currentTarget.focus(),d.current!=="mouse"&&w(v)}),onPointerDown:R(r.onPointerDown,v=>{d.current=v.pointerType;const g=v.target;g.hasPointerCapture(v.pointerId)&&g.releasePointerCapture(v.pointerId),v.button===0&&v.ctrlKey===!1&&v.pointerType==="mouse"&&(w(v),v.preventDefault())}),onKeyDown:R(r.onKeyDown,v=>{const g=f.current!=="";!(v.ctrlKey||v.altKey||v.metaKey)&&v.key.length===1&&m(v.key),!(g&&v.key===" ")&&Ef.includes(v.key)&&(w(),v.preventDefault())})})})});yi.displayName=gi;var wi="SelectValue",xi=c.forwardRef((e,t)=>{const{__scopeSelect:n,className:o,style:r,children:s,placeholder:i="",...a}=e,l=je(wi,n),{onValueNodeHasChildrenChange:u}=l,d=s!==void 0,f=F(t,l.onValueNodeChange);return Q(()=>{u(d)},[u,d]),p.jsx(O.span,{...a,ref:f,style:{pointerEvents:"none"},children:Hi(l.value)?p.jsx(p.Fragment,{children:i}):s})});xi.displayName=wi;var Af="SelectIcon",Ci=c.forwardRef((e,t)=>{const{__scopeSelect:n,children:o,...r}=e;return p.jsx(O.span,{"aria-hidden":!0,...r,ref:t,children:o||"â¼"})});Ci.displayName=Af;var Mf="SelectPortal",bi=e=>p.jsx(ht,{asChild:!0,...e});bi.displayName=Mf;var He="SelectContent",Ei=c.forwardRef((e,t)=>{const n=je(He,e.__scopeSelect),[o,r]=c.useState();if(Q(()=>{r(new DocumentFragment)},[]),!n.open){const s=o;return s?mt.createPortal(p.jsx(Si,{scope:e.__scopeSelect,children:p.jsx(vn.Slot,{scope:e.__scopeSelect,children:p.jsx("div",{children:e.children})})}),s):null}return p.jsx(Ri,{...e,ref:t})});Ei.displayName=He;var fe=10,[Si,Le]=ot(He),Of="SelectContentImpl",If=Oe("SelectContent.RemoveScroll"),Ri=c.forwardRef((e,t)=>{const{__scopeSelect:n,position:o="item-aligned",onCloseAutoFocus:r,onEscapeKeyDown:s,onPointerDownOutside:i,side:a,sideOffset:l,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:m,collisionPadding:h,sticky:w,hideWhenDetached:v,avoidCollisions:g,...x}=e,y=je(He,n),[C,b]=c.useState(null),[E,_]=c.useState(null),S=F(t,M=>b(M)),[T,j]=c.useState(null),[D,B]=c.useState(null),H=mn(n),[k,L]=c.useState(!1),K=c.useRef(!1);c.useEffect(()=>{if(C)return cn(C)},[C]),sn();const I=c.useCallback(M=>{const[U,...z]=H().map(G=>G.ref.current),[W]=z.slice(-1),V=document.activeElement;for(const G of M)if(G===V||(G==null||G.scrollIntoView({block:"nearest"}),G===U&&E&&(E.scrollTop=0),G===W&&E&&(E.scrollTop=E.scrollHeight),G==null||G.focus(),document.activeElement!==V))return},[H,E]),$=c.useCallback(()=>I([T,C]),[I,T,C]);c.useEffect(()=>{k&&$()},[k,$]);const{onOpenChange:A,triggerPointerDownPosRef:P}=y;c.useEffect(()=>{if(C){let M={x:0,y:0};const U=W=>{var V,G;M={x:Math.abs(Math.round(W.pageX)-(((V=P.current)==null?void 0:V.x)??0)),y:Math.abs(Math.round(W.pageY)-(((G=P.current)==null?void 0:G.y)??0))}},z=W=>{M.x<=10&&M.y<=10?W.preventDefault():C.contains(W.target)||A(!1),document.removeEventListener("pointermove",U),P.current=null};return P.current!==null&&(document.addEventListener("pointermove",U),document.addEventListener("pointerup",z,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",U),document.removeEventListener("pointerup",z,{capture:!0})}}},[C,A,P]),c.useEffect(()=>{const M=()=>A(!1);return window.addEventListener("blur",M),window.addEventListener("resize",M),()=>{window.removeEventListener("blur",M),window.removeEventListener("resize",M)}},[A]);const[Y,Z]=Wi(M=>{const U=H().filter(V=>!V.disabled),z=U.find(V=>V.ref.current===document.activeElement),W=Ui(U,M,z);W&&setTimeout(()=>W.ref.current.focus())}),ne=c.useCallback((M,U,z)=>{const W=!K.current&&!z;(y.value!==void 0&&y.value===U||W)&&(j(M),W&&(K.current=!0))},[y.value]),Re=c.useCallback(()=>C==null?void 0:C.focus(),[C]),le=c.useCallback((M,U,z)=>{const W=!K.current&&!z;(y.value!==void 0&&y.value===U||W)&&B(M)},[y.value]),Pe=o==="popper"?Un:Pi,re=Pe===Un?{side:a,sideOffset:l,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:m,collisionPadding:h,sticky:w,hideWhenDetached:v,avoidCollisions:g}:{};return p.jsx(Si,{scope:n,content:C,viewport:E,onViewportChange:_,itemRefCallback:ne,selectedItem:T,onItemLeave:Re,itemTextRefCallback:le,focusSelectedItem:$,selectedItemText:D,position:o,isPositioned:k,searchRef:Y,children:p.jsx(xt,{as:If,allowPinchZoom:!0,children:p.jsx(wt,{asChild:!0,trapped:y.open,onMountAutoFocus:M=>{M.preventDefault()},onUnmountAutoFocus:R(r,M=>{var U;(U=y.trigger)==null||U.focus({preventScroll:!0}),M.preventDefault()}),children:p.jsx(We,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:M=>M.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:p.jsx(Pe,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:M=>M.preventDefault(),...x,...re,onPlaced:()=>L(!0),ref:S,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:R(x.onKeyDown,M=>{const U=M.ctrlKey||M.altKey||M.metaKey;if(M.key==="Tab"&&M.preventDefault(),!U&&M.key.length===1&&Z(M.key),["ArrowUp","ArrowDown","Home","End"].includes(M.key)){let W=H().filter(V=>!V.disabled).map(V=>V.ref.current);if(["ArrowUp","End"].includes(M.key)&&(W=W.slice().reverse()),["ArrowUp","ArrowDown"].includes(M.key)){const V=M.target,G=W.indexOf(V);W=W.slice(G+1)}setTimeout(()=>I(W)),M.preventDefault()}})})})})})})});Ri.displayName=Of;var Nf="SelectItemAlignedPosition",Pi=c.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:o,...r}=e,s=je(He,n),i=Le(He,n),[a,l]=c.useState(null),[u,d]=c.useState(null),f=F(t,S=>d(S)),m=mn(n),h=c.useRef(!1),w=c.useRef(!0),{viewport:v,selectedItem:g,selectedItemText:x,focusSelectedItem:y}=i,C=c.useCallback(()=>{if(s.trigger&&s.valueNode&&a&&u&&v&&g&&x){const S=s.trigger.getBoundingClientRect(),T=u.getBoundingClientRect(),j=s.valueNode.getBoundingClientRect(),D=x.getBoundingClientRect();if(s.dir!=="rtl"){const V=D.left-T.left,G=j.left-V,se=S.left-G,ye=S.width+se,rt=Math.max(ye,T.width),st=window.innerWidth-fe,it=rr(G,[fe,Math.max(fe,st-rt)]);a.style.minWidth=ye+"px",a.style.left=it+"px"}else{const V=T.right-D.right,G=window.innerWidth-j.right-V,se=window.innerWidth-S.right-G,ye=S.width+se,rt=Math.max(ye,T.width),st=window.innerWidth-fe,it=rr(G,[fe,Math.max(fe,st-rt)]);a.style.minWidth=ye+"px",a.style.right=it+"px"}const B=m(),H=window.innerHeight-fe*2,k=v.scrollHeight,L=window.getComputedStyle(u),K=parseInt(L.borderTopWidth,10),I=parseInt(L.paddingTop,10),$=parseInt(L.borderBottomWidth,10),A=parseInt(L.paddingBottom,10),P=K+I+k+A+$,Y=Math.min(g.offsetHeight*5,P),Z=window.getComputedStyle(v),ne=parseInt(Z.paddingTop,10),Re=parseInt(Z.paddingBottom,10),le=S.top+S.height/2-fe,Pe=H-le,re=g.offsetHeight/2,M=g.offsetTop+re,U=K+I+M,z=P-U;if(U<=le){const V=B.length>0&&g===B[B.length-1].ref.current;a.style.bottom="0px";const G=u.clientHeight-v.offsetTop-v.offsetHeight,se=Math.max(Pe,re+(V?Re:0)+G+$),ye=U+se;a.style.height=ye+"px"}else{const V=B.length>0&&g===B[0].ref.current;a.style.top="0px";const se=Math.max(le,K+v.offsetTop+(V?ne:0)+re)+z;a.style.height=se+"px",v.scrollTop=U-le+v.offsetTop}a.style.margin=`${fe}px 0`,a.style.minHeight=Y+"px",a.style.maxHeight=H+"px",o==null||o(),requestAnimationFrame(()=>h.current=!0)}},[m,s.trigger,s.valueNode,a,u,v,g,x,s.dir,o]);Q(()=>C(),[C]);const[b,E]=c.useState();Q(()=>{u&&E(window.getComputedStyle(u).zIndex)},[u]);const _=c.useCallback(S=>{S&&w.current===!0&&(C(),y==null||y(),w.current=!1)},[C,y]);return p.jsx(jf,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:h,onScrollButtonChange:_,children:p.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:b},children:p.jsx(O.div,{...r,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...r.style}})})})});Pi.displayName=Nf;var Df="SelectPopperPosition",Un=c.forwardRef((e,t)=>{const{__scopeSelect:n,align:o="start",collisionPadding:r=fe,...s}=e,i=hn(n);return p.jsx(en,{...i,...s,ref:t,align:o,collisionPadding:r,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Un.displayName=Df;var[jf,Co]=ot(He,{}),Vn="SelectViewport",_i=c.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:o,...r}=e,s=Le(Vn,n),i=Co(Vn,n),a=F(t,s.onViewportChange),l=c.useRef(0);return p.jsxs(p.Fragment,{children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),p.jsx(vn.Slot,{scope:n,children:p.jsx(O.div,{"data-radix-select-viewport":"",role:"presentation",...r,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...r.style},onScroll:R(r.onScroll,u=>{const d=u.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:m}=i;if(m!=null&&m.current&&f){const h=Math.abs(l.current-d.scrollTop);if(h>0){const w=window.innerHeight-fe*2,v=parseFloat(f.style.minHeight),g=parseFloat(f.style.height),x=Math.max(v,g);if(x<w){const y=x+h,C=Math.min(w,y),b=y-C;f.style.height=C+"px",f.style.bottom==="0px"&&(d.scrollTop=b>0?b:0,f.style.justifyContent="flex-end")}}}l.current=d.scrollTop})})})]})});_i.displayName=Vn;var Ti="SelectGroup",[Lf,kf]=ot(Ti),Ff=c.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=oe();return p.jsx(Lf,{scope:n,id:r,children:p.jsx(O.div,{role:"group","aria-labelledby":r,...o,ref:t})})});Ff.displayName=Ti;var Ai="SelectLabel",Mi=c.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=kf(Ai,n);return p.jsx(O.div,{id:r.id,...o,ref:t})});Mi.displayName=Ai;var Vt="SelectItem",[$f,Oi]=ot(Vt),Ii=c.forwardRef((e,t)=>{const{__scopeSelect:n,value:o,disabled:r=!1,textValue:s,...i}=e,a=je(Vt,n),l=Le(Vt,n),u=a.value===o,[d,f]=c.useState(s??""),[m,h]=c.useState(!1),w=F(t,y=>{var C;return(C=l.itemRefCallback)==null?void 0:C.call(l,y,o,r)}),v=oe(),g=c.useRef("touch"),x=()=>{r||(a.onValueChange(o),a.onOpenChange(!1))};if(o==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return p.jsx($f,{scope:n,value:o,disabled:r,textId:v,isSelected:u,onItemTextChange:c.useCallback(y=>{f(C=>C||((y==null?void 0:y.textContent)??"").trim())},[]),children:p.jsx(vn.ItemSlot,{scope:n,value:o,disabled:r,textValue:d,children:p.jsx(O.div,{role:"option","aria-labelledby":v,"data-highlighted":m?"":void 0,"aria-selected":u&&m,"data-state":u?"checked":"unchecked","aria-disabled":r||void 0,"data-disabled":r?"":void 0,tabIndex:r?void 0:-1,...i,ref:w,onFocus:R(i.onFocus,()=>h(!0)),onBlur:R(i.onBlur,()=>h(!1)),onClick:R(i.onClick,()=>{g.current!=="mouse"&&x()}),onPointerUp:R(i.onPointerUp,()=>{g.current==="mouse"&&x()}),onPointerDown:R(i.onPointerDown,y=>{g.current=y.pointerType}),onPointerMove:R(i.onPointerMove,y=>{var C;g.current=y.pointerType,r?(C=l.onItemLeave)==null||C.call(l):g.current==="mouse"&&y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:R(i.onPointerLeave,y=>{var C;y.currentTarget===document.activeElement&&((C=l.onItemLeave)==null||C.call(l))}),onKeyDown:R(i.onKeyDown,y=>{var b;((b=l.searchRef)==null?void 0:b.current)!==""&&y.key===" "||(Sf.includes(y.key)&&x(),y.key===" "&&y.preventDefault())})})})})});Ii.displayName=Vt;var ct="SelectItemText",Ni=c.forwardRef((e,t)=>{const{__scopeSelect:n,className:o,style:r,...s}=e,i=je(ct,n),a=Le(ct,n),l=Oi(ct,n),u=Tf(ct,n),[d,f]=c.useState(null),m=F(t,x=>f(x),l.onItemTextChange,x=>{var y;return(y=a.itemTextRefCallback)==null?void 0:y.call(a,x,l.value,l.disabled)}),h=d==null?void 0:d.textContent,w=c.useMemo(()=>p.jsx("option",{value:l.value,disabled:l.disabled,children:h},l.value),[l.disabled,l.value,h]),{onNativeOptionAdd:v,onNativeOptionRemove:g}=u;return Q(()=>(v(w),()=>g(w)),[v,g,w]),p.jsxs(p.Fragment,{children:[p.jsx(O.span,{id:l.textId,...s,ref:m}),l.isSelected&&i.valueNode&&!i.valueNodeHasChildren?mt.createPortal(s.children,i.valueNode):null]})});Ni.displayName=ct;var Di="SelectItemIndicator",ji=c.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e;return Oi(Di,n).isSelected?p.jsx(O.span,{"aria-hidden":!0,...o,ref:t}):null});ji.displayName=Di;var Gn="SelectScrollUpButton",Li=c.forwardRef((e,t)=>{const n=Le(Gn,e.__scopeSelect),o=Co(Gn,e.__scopeSelect),[r,s]=c.useState(!1),i=F(t,o.onScrollButtonChange);return Q(()=>{if(n.viewport&&n.isPositioned){let a=function(){const u=l.scrollTop>0;s(u)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),r?p.jsx(Fi,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop-l.offsetHeight)}}):null});Li.displayName=Gn;var Kn="SelectScrollDownButton",ki=c.forwardRef((e,t)=>{const n=Le(Kn,e.__scopeSelect),o=Co(Kn,e.__scopeSelect),[r,s]=c.useState(!1),i=F(t,o.onScrollButtonChange);return Q(()=>{if(n.viewport&&n.isPositioned){let a=function(){const u=l.scrollHeight-l.clientHeight,d=Math.ceil(l.scrollTop)<u;s(d)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),r?p.jsx(Fi,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop+l.offsetHeight)}}):null});ki.displayName=Kn;var Fi=c.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:o,...r}=e,s=Le("SelectScrollButton",n),i=c.useRef(null),a=mn(n),l=c.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return c.useEffect(()=>()=>l(),[l]),Q(()=>{var d;const u=a().find(f=>f.ref.current===document.activeElement);(d=u==null?void 0:u.ref.current)==null||d.scrollIntoView({block:"nearest"})},[a]),p.jsx(O.div,{"aria-hidden":!0,...r,ref:t,style:{flexShrink:0,...r.style},onPointerDown:R(r.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(o,50))}),onPointerMove:R(r.onPointerMove,()=>{var u;(u=s.onItemLeave)==null||u.call(s),i.current===null&&(i.current=window.setInterval(o,50))}),onPointerLeave:R(r.onPointerLeave,()=>{l()})})}),Bf="SelectSeparator",$i=c.forwardRef((e,t)=>
vendor: 4,277 bytes, line 69
69{const{__scopeSelect:n,...o}=e;return p.jsx(O.div,{"aria-hidden":!0,...o,ref:t})});$i.displayName=Bf;var Yn="SelectArrow",Hf=c.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=hn(n),s=je(Yn,n),i=Le(Yn,n);return s.open&&i.position==="popper"?p.jsx(tn,{...r,...o,ref:t}):null});Hf.displayName=Yn;var Wf="SelectBubbleInput",Bi=c.forwardRef(({__scopeSelect:e,value:t,...n},o)=>{const r=c.useRef(null),s=F(o,r),i=bf(t);return c.useEffect(()=>{const a=r.current;if(!a)return;const l=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(l,"value").set;if(i!==t&&d){const f=new Event("change",{bubbles:!0});d.call(a,t),a.dispatchEvent(f)}},[i,t]),p.jsx(O.select,{...n,style:{...Sr,...n.style},ref:s,defaultValue:t})});Bi.displayName=Wf;function Hi(e){return e===""||e===void 0}function Wi(e){const t=be(e),n=c.useRef(""),o=c.useRef(0),r=c.useCallback(i=>{const a=n.current+i;t(a),function l(u){n.current=u,window.clearTimeout(o.current),u!==""&&(o.current=window.setTimeout(()=>l(""),1e3))}(a)},[t]),s=c.useCallback(()=>{n.current="",window.clearTimeout(o.current)},[]);return c.useEffect(()=>()=>window.clearTimeout(o.current),[]),[n,r,s]}function Ui(e,t,n){const r=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=Uf(e,Math.max(s,0));r.length===1&&(i=i.filter(u=>u!==n));const l=i.find(u=>u.textValue.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}function Uf(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var Jp=hi,ev=yi,tv=xi,nv=Ci,ov=bi,rv=Ei,sv=_i,iv=Mi,av=Ii,cv=Ni,lv=ji,uv=Li,dv=ki,fv=$i,gn="Tabs",[Vf,pv]=de(gn,[un]),Vi=un(),[Gf,bo]=Vf(gn),Gi=c.forwardRef((e,t)=>{const{__scopeTabs:n,value:o,onValueChange:r,defaultValue:s,orientation:i="horizontal",dir:a,activationMode:l="automatic",...u}=e,d=Ct(a),[f,m]=pe({prop:o,onChange:r,defaultProp:s??"",caller:gn});return p.jsx(Gf,{scope:n,baseId:oe(),value:f,onValueChange:m,orientation:i,dir:d,activationMode:l,children:p.jsx(O.div,{dir:d,"data-orientation":i,...u,ref:t})})});Gi.displayName=gn;var Ki="TabsList",Yi=c.forwardRef((e,t)=>{const{__scopeTabs:n,loop:o=!0,...r}=e,s=bo(Ki,n),i=Vi(n);return p.jsx(Ms,{asChild:!0,...i,orientation:s.orientation,dir:s.dir,loop:o,children:p.jsx(O.div,{role:"tablist","aria-orientation":s.orientation,...r,ref:t})})});Yi.displayName=Ki;var zi="TabsTrigger",Xi=c.forwardRef((e,t)=>{const{__scopeTabs:n,value:o,disabled:r=!1,...s}=e,i=bo(zi,n),a=Vi(n),l=Qi(i.baseId,o),u=Ji(i.baseId,o),d=o===i.value;return p.jsx(Os,{asChild:!0,...a,focusable:!r,active:d,children:p.jsx(O.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":u,"data-state":d?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:l,...s,ref:t,onMouseDown:R(e.onMouseDown,f=>{!r&&f.button===0&&f.ctrlKey===!1?i.onValueChange(o):f.preventDefault()}),onKeyDown:R(e.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&i.onValueChange(o)}),onFocus:R(e.onFocus,()=>{const f=i.activationMode!=="manual";!d&&!r&&f&&i.onValueChange(o)})})})});Xi.displayName=zi;var qi="TabsContent",Zi=c.forwardRef((e,t)=>{const{__scopeTabs:n,value:o,forceMount:r,children:s,...i}=e,a=bo(qi,n),l=Qi(a.baseId,o),u=Ji(a.baseId,o),d=o===a.value,f=c.useRef(d);return c.useEffect(()=>{const m=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(m)},[]),p.jsx(ce,{present:r||d,children:({present:m})=>p.jsx(O.div,{"data-state":d?"active":"inactive","data-orientation":a.orientation,role:"tabpanel","aria-labelledby":l,hidden:!m,id:u,tabIndex:0,...i,ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0},children:m&&s})})});Zi.displayName=qi;function Qi(e,t){return`${e}-trigger-${t}`}function Ji(e,t){return`${e}-content-${t}`}var vv=Gi,mv=Yi,hv=Xi,gv=Zi,yn="Popover",[ea,yv]=de(yn,[De]),Rt=De(),[Kf,ke]=ea(yn),ta=e=>{const{__scopePopover:t,children:n,open:o,defaultOpen:r,onOpenChange:s,modal:i=!1}=e,a=Rt(t),l=c.useRef(null),[u,d]=c.useState(!1),[f,m]=pe({prop:o,defaultProp:r??!1,onChange:s,caller:yn});return p.jsx(Jt,{...a,children:p.jsx(Kf,{scope:t,contentId:oe(),triggerRef:l,open:f,onOpenChange:m,onOpenToggle:c.useCallback(()=>m(h=>!h),[m]),hasCustomAnchor:u,onCustomAnchorAdd:c.useCallback(()=>d(!0),[]),onCustomAnchorRemove:c.useCallback(()=>d(!1),[]),modal:i,children:n})})};ta.displayName=yn;var na="PopoverAnchor",Yf=c.forwardRef((e,t)=>
vendor: 4,379 bytes, line 69
69{const{__scopePopover:n,...o}=e,r=ke(na,n),s=Rt(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:a}=r;return c.useEffect(()=>(i(),()=>a()),[i,a]),p.jsx(yt,{...s,...o,ref:t})});Yf.displayName=na;var oa="PopoverTrigger",ra=c.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,r=ke(oa,n),s=Rt(n),i=F(t,r.triggerRef),a=p.jsx(O.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":la(r.open),...o,ref:i,onClick:R(e.onClick,r.onOpenToggle)});return r.hasCustomAnchor?a:p.jsx(yt,{asChild:!0,...s,children:a})});ra.displayName=oa;var Eo="PopoverPortal",[zf,Xf]=ea(Eo,{forceMount:void 0}),sa=e=>{const{__scopePopover:t,forceMount:n,children:o,container:r}=e,s=ke(Eo,t);return p.jsx(zf,{scope:t,forceMount:n,children:p.jsx(ce,{present:n||s.open,children:p.jsx(ht,{asChild:!0,container:r,children:o})})})};sa.displayName=Eo;var Je="PopoverContent",ia=c.forwardRef((e,t)=>{const n=Xf(Je,e.__scopePopover),{forceMount:o=n.forceMount,...r}=e,s=ke(Je,e.__scopePopover);return p.jsx(ce,{present:o||s.open,children:s.modal?p.jsx(Zf,{...r,ref:t}):p.jsx(Qf,{...r,ref:t})})});ia.displayName=Je;var qf=Oe("PopoverContent.RemoveScroll"),Zf=c.forwardRef((e,t)=>{const n=ke(Je,e.__scopePopover),o=c.useRef(null),r=F(t,o),s=c.useRef(!1);return c.useEffect(()=>{const i=o.current;if(i)return cn(i)},[]),p.jsx(xt,{as:qf,allowPinchZoom:!0,children:p.jsx(aa,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:R(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),s.current||(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:R(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0,u=a.button===2||l;s.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:R(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),Qf=c.forwardRef((e,t)=>{const n=ke(Je,e.__scopePopover),o=c.useRef(!1),r=c.useRef(!1);return p.jsx(aa,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var i,a;(i=e.onCloseAutoFocus)==null||i.call(e,s),s.defaultPrevented||(o.current||(a=n.triggerRef.current)==null||a.focus(),s.preventDefault()),o.current=!1,r.current=!1},onInteractOutside:s=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,s),s.defaultPrevented||(o.current=!0,s.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const i=s.target;((u=n.triggerRef.current)==null?void 0:u.contains(i))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&r.current&&s.preventDefault()}})}),aa=c.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:o,onOpenAutoFocus:r,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:d,...f}=e,m=ke(Je,n),h=Rt(n);return sn(),p.jsx(wt,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:r,onUnmountAutoFocus:s,children:p.jsx(We,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:d,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>m.onOpenChange(!1),children:p.jsx(en,{"data-state":la(m.open),role:"dialog",id:m.contentId,...h,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),ca="PopoverClose",Jf=c.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,r=ke(ca,n);return p.jsx(O.button,{type:"button",...o,ref:t,onClick:R(e.onClick,()=>r.onOpenChange(!1))})});Jf.displayName=ca;var ep="PopoverArrow",tp=c.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,r=Rt(n);return p.jsx(tn,{...r,...o,ref:t})});tp.displayName=ep;function la(e){return e?"open":"closed"}var wv=ta,xv=ra,Cv=sa,bv=ia,wn="Collapsible",[np,ua]=de(wn),[op,So]=np(wn),da=c.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:o,defaultOpen:r,disabled:s,onOpenChange:i,...a}=e,[l,u]=pe({prop:o,defaultProp:r??!1,onChange:i,caller:wn});return p.jsx(op,{scope:n,disabled:s,contentId:oe(),open:l,onOpenToggle:c.useCallback(()=>u(d=>!d),[u]),children:p.jsx(O.div,{"data-state":Po(l),"data-disabled":s?"":void 0,...a,ref:t})})});da.displayName=wn;var fa="CollapsibleTrigger",pa=c.forwardRef((e,t)=>
vendor: 4,170 bytes, line 69
69{const{__scopeCollapsible:n,...o}=e,r=So(fa,n);return p.jsx(O.button,{type:"button","aria-controls":r.contentId,"aria-expanded":r.open||!1,"data-state":Po(r.open),"data-disabled":r.disabled?"":void 0,disabled:r.disabled,...o,ref:t,onClick:R(e.onClick,r.onOpenToggle)})});pa.displayName=fa;var Ro="CollapsibleContent",va=c.forwardRef((e,t)=>{const{forceMount:n,...o}=e,r=So(Ro,e.__scopeCollapsible);return p.jsx(ce,{present:n||r.open,children:({present:s})=>p.jsx(rp,{...o,ref:t,present:s})})});va.displayName=Ro;var rp=c.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:o,children:r,...s}=e,i=So(Ro,n),[a,l]=c.useState(o),u=c.useRef(null),d=F(t,u),f=c.useRef(0),m=f.current,h=c.useRef(0),w=h.current,v=i.open||a,g=c.useRef(v),x=c.useRef(void 0);return c.useEffect(()=>{const y=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(y)},[]),Q(()=>{const y=u.current;if(y){x.current=x.current||{transitionDuration:y.style.transitionDuration,animationName:y.style.animationName},y.style.transitionDuration="0s",y.style.animationName="none";const C=y.getBoundingClientRect();f.current=C.height,h.current=C.width,g.current||(y.style.transitionDuration=x.current.transitionDuration,y.style.animationName=x.current.animationName),l(o)}},[i.open,o]),p.jsx(O.div,{"data-state":Po(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!v,...s,ref:d,style:{"--radix-collapsible-content-height":m?`${m}px`:void 0,"--radix-collapsible-content-width":w?`${w}px`:void 0,...e.style},children:v&&r})});function Po(e){return e?"open":"closed"}var sp=da,ip=pa,ap=va,ge="Accordion",cp=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[_o,lp,up]=Xt(ge),[xn,Ev]=de(ge,[up,ua]),To=ua(),ma=q.forwardRef((e,t)=>{const{type:n,...o}=e,r=o,s=o;return p.jsx(_o.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?p.jsx(vp,{...s,ref:t}):p.jsx(pp,{...r,ref:t})})});ma.displayName=ge;var[ha,dp]=xn(ge),[ga,fp]=xn(ge,{collapsible:!1}),pp=q.forwardRef((e,t)=>{const{value:n,defaultValue:o,onValueChange:r=()=>{},collapsible:s=!1,...i}=e,[a,l]=pe({prop:n,defaultProp:o??"",onChange:r,caller:ge});return p.jsx(ha,{scope:e.__scopeAccordion,value:q.useMemo(()=>a?[a]:[],[a]),onItemOpen:l,onItemClose:q.useCallback(()=>s&&l(""),[s,l]),children:p.jsx(ga,{scope:e.__scopeAccordion,collapsible:s,children:p.jsx(ya,{...i,ref:t})})})}),vp=q.forwardRef((e,t)=>{const{value:n,defaultValue:o,onValueChange:r=()=>{},...s}=e,[i,a]=pe({prop:n,defaultProp:o??[],onChange:r,caller:ge}),l=q.useCallback(d=>a((f=[])=>[...f,d]),[a]),u=q.useCallback(d=>a((f=[])=>f.filter(m=>m!==d)),[a]);return p.jsx(ha,{scope:e.__scopeAccordion,value:i,onItemOpen:l,onItemClose:u,children:p.jsx(ga,{scope:e.__scopeAccordion,collapsible:!0,children:p.jsx(ya,{...s,ref:t})})})}),[mp,Cn]=xn(ge),ya=q.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:o,dir:r,orientation:s="vertical",...i}=e,a=q.useRef(null),l=F(a,t),u=lp(n),f=Ct(r)==="ltr",m=R(e.onKeyDown,h=>{var T;if(!cp.includes(h.key))return;const w=h.target,v=u().filter(j=>{var D;return!((D=j.ref.current)!=null&&D.disabled)}),g=v.findIndex(j=>j.ref.current===w),x=v.length;if(g===-1)return;h.preventDefault();let y=g;const C=0,b=x-1,E=()=>{y=g+1,y>b&&(y=C)},_=()=>{y=g-1,y<C&&(y=b)};switch(h.key){case"Home":y=C;break;case"End":y=b;break;case"ArrowRight":s==="horizontal"&&(f?E():_());break;case"ArrowDown":s==="vertical"&&E();break;case"ArrowLeft":s==="horizontal"&&(f?_():E());break;case"ArrowUp":s==="vertical"&&_();break}const S=y%x;(T=v[S].ref.current)==null||T.focus()});return p.jsx(mp,{scope:n,disabled:o,direction:r,orientation:s,children:p.jsx(_o.Slot,{scope:n,children:p.jsx(O.div,{...i,"data-orientation":s,ref:l,onKeyDown:o?void 0:m})})})}),Gt="AccordionItem",[hp,Ao]=xn(Gt),wa=q.forwardRef((e,t)=>{const{__scopeAccordion:n,value:o,...r}=e,s=Cn(Gt,n),i=dp(Gt,n),a=To(n),l=oe(),u=o&&i.value.includes(o)||!1,d=s.disabled||e.disabled;return p.jsx(hp,{scope:n,open:u,disabled:d,triggerId:l,children:p.jsx(sp,{"data-orientation":s.orientation,"data-state":Ra(u),...a,...r,ref:t,disabled:d,open:u,onOpenChange:f=>{f?i.onItemOpen(o):i.onItemClose(o)}})})});wa.displayName=Gt;var xa="AccordionHeader",Ca=q.forwardRef((e,t)=>
vendor: 1,780 bytes, line 69
69{const{__scopeAccordion:n,...o}=e,r=Cn(ge,n),s=Ao(xa,n);return p.jsx(O.h3,{"data-orientation":r.orientation,"data-state":Ra(s.open),"data-disabled":s.disabled?"":void 0,...o,ref:t})});Ca.displayName=xa;var zn="AccordionTrigger",ba=q.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,r=Cn(ge,n),s=Ao(zn,n),i=fp(zn,n),a=To(n);return p.jsx(_o.ItemSlot,{scope:n,children:p.jsx(ip,{"aria-disabled":s.open&&!i.collapsible||void 0,"data-orientation":r.orientation,id:s.triggerId,...a,...o,ref:t})})});ba.displayName=zn;var Ea="AccordionContent",Sa=q.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,r=Cn(ge,n),s=Ao(Ea,n),i=To(n);return p.jsx(ap,{role:"region","aria-labelledby":s.triggerId,"data-orientation":r.orientation,...i,...o,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});Sa.displayName=Ea;function Ra(e){return e?"open":"closed"}var Sv=ma,Rv=wa,Pv=Ca,_v=ba,Tv=Sa;export{bf as $,Wp as A,xp as B,Pp as C,Lp as D,Up as E,Kp as F,zp as G,Yp as H,Gp as I,Xp as J,Bp as K,Vp as L,Hp as M,kp as N,Np as O,O as P,De as Q,wp as R,yp as S,Rp as T,yt as U,Rr as V,We as W,en as X,tn as Y,Jt as Z,_p as _,es as a,Dl as a0,ev as a1,nv as a2,uv as a3,dv as a4,ov as a5,rv as a6,sv as a7,iv as a8,av as a9,gp as aA,sr as aB,lv as aa,cv as ab,fv as ac,Jp as ad,tv as ae,Ct as af,rr as ag,mv as ah,hv as ai,gv as aj,vv as ak,Tp as al,Ap as am,Ja as an,un as ao,Ms as ap,Os as aq,bv as ar,Cv as as,wv as at,xv as au,Rv as av,Pv as aw,_v as ax,Tv as ay,Sv as az,mt as b,Xt as c,de as d,pe as e,ce as f,be as g,R as h,ht as i,p as j,Q as k,xr as l,q as m,Xa as n,Ep as o,Sp as p,mr as q,c as r,Dp as s,jp as t,F as u,Ip as v,Mp as w,Op as x,qp as y,Zp 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.