1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6060],{6060:(e,t,r)=>{r.d(t,{UC:()=>tu,ZL:()=>ta,bL:()=>tl,l9:()=>ti});var n,o=r(12115),l=r(92556),i=r(94446),a=r(3468),u=r(23558),s=r(88142);function c(e,t,r){if(!t.has(e))throw TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function d(e,t){var r=c(e,t,"get");return r.get?r.get.call(e):r.value}function f(e,t,r){var n=c(e,t,"set");if(n.set)n.set.call(e,r);else{if(!n.writable)throw TypeError("attempted to set read only private field");n.value=r}return r}var p=r(95155);function h(e){let t=function(e){let t=o.forwardRef((e,t)=>{let{children:r,...n}=e;if(o.isValidElement(r)){var l;let e,a,u=(l=r,(a=(e=Object.getOwnPropertyDescriptor(l.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.ref:(a=(e=Object.getOwnPropertyDescriptor(l,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.props.ref:l.props.ref||l.ref),s=function(e,t){let r={...t};for(let n in t){let o=e[n],l=t[n];/^on[A-Z]/.test(n)?o&&l?r[n]=(...e)=>{let t=l(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...l}:"className"===n&&(r[n]=[o,l].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==o.Fragment&&(s.ref=t?(0,i.t)(t,u):u),o.cloneElement(r,s)}return o.Children.count(r)>1?o.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),r=o.forwardRef((e,r)=>{let{children:n,...l}=e,i=o.Children.toArray(n),a=i.find(v);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:o.Children.count(e)>1?o.Children.only(null):o.isValidElement(e)?e.props.children:null);return(0,p.jsx)(t,{...l,ref:r,children:o.isValidElement(e)?o.cloneElement(e,void 0,n):null})}return(0,p.jsx)(t,{...l,ref:r,children:n})});return r.displayName=`${e}.Slot`,r}var m=Symbol("radix.slottable");function v(e){return o.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===m}function g(e){let t=e+"CollectionProvider",[r,n]=(0,a.A)(t),[l,u]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=e=>{let{scope:t,children:r}=e,n=o.useRef(null),i=o.useRef(new Map).current;return(0,p.jsx)(l,{scope:t,itemMap:i,collectionRef:n,children:r})};s.displayName=t;let c=e+"CollectionSlot",d=h(c),f=o.forwardRef((e,t)=>{let{scope:r,children:n}=e,o=u(c,r),l=(0,i.s)(t,o.collectionRef);return(0,p.jsx)(d,{ref:l,children:n})});f.displayName=c;let m=e+"CollectionItemSlot",v="data-radix-collection-item",g=h(m),w=o.forwardRef((e,t)=>{let{scope:r,children:n,...l}=e,a=o.useRef(null),s=(0,i.s)(t,a),c=u(m,r);return o.useEffect(()=>(c.itemMap.set(a,{ref:a,...l}),()=>void c.itemMap.delete(a))),(0,p.jsx)(g,{...{[v]:""},ref:s,children:n})});return w.displayName=m,[{Provider:s,Slot:f,ItemSlot:w},function(t){let r=u(e+"CollectionConsumer",t);return o.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(v,"]")));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},n]}var w=new WeakMap;function y(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let r=function(e,t){let r=e.length,n=x(t),o=n>=0?n:r+n;return o<0||o>=r?-1:o}(e,t);return -1===r?void 0:e[r]}function x(e){return e!=e||0===e?0:Math.trunc(e)}n=new WeakMap,class e extends Map{set(e,t){return w.get(this)&&(this.has(e)?d(this,n)[d(this,n).indexOf(e)]=e:d(this,n).push(e)),super.set(e,t),this}insert(e,t,r){let o,l=this.has(t),i=d(this,n).length,a=x(e),u=a>=0?a:i+a,s=u<0||u>=i?-1:u;if(s===this.size||l&&s===this.size-1||-1===s)return this.set(t,r),this;let c=this.size+ +!l;a<0&&u++;let f=[...d(this,n)],p=!1;for(let e=u;e<c;e++)if(u===e){let n=f[e];f[e]===t&&(n=f[e+1]),l&&this.delete(t),o=this.get(n),this.set(t,r)}else{p||f[e-1]!==t||(p=!0);let r=f[p?e:e-1],n=o;o=this.get(r),this.delete(r),this.set(r,n)}return this}with(t,r,n){let o=new e(this);return o.insert(t,r,n),o}before(e){let t=d(this,n).indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let o=d(this,n).indexOf(e);return -1===o?this:this.insert(o,t,r)}after(e){let t=d(this,n).indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let o=d(this,n).indexOf(e);return -1===o?this:this.insert(o+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return f(this,n,[]),super.clear()}delete(e){let t=super.delete(e);return t&&d(this,n).splice(d(this,n).indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=y(d(this,n),e);
1if(void 0!==t)return this.get(t)}entryAt(e){let t=y(d(this,n),e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return d(this,n).indexOf(e)}keyAt(e){return y(d(this,n),e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return n;r++}}findIndex(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return r;r++}return -1}filter(t,r){let n=[],o=0;for(let e of this)Reflect.apply(t,r,[e,o,this])&&n.push(e),o++;return new e(n)}map(t,r){let n=[],o=0;for(let e of this)n.push([e[0],Reflect.apply(t,r,[e,o,this])]),o++;return new e(n)}reduce(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let[n,o]=t,l=0,i=null!=o?o:this.at(0);for(let e of this)i=0===l&&1===t.length?e:Reflect.apply(n,this,[i,e,l,this]),l++;return i}reduceRight(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let[n,o]=t,l=null!=o?o:this.at(-1);for(let e=this.size-1;e>=0;e--){let r=this.at(e);l=e===this.size-1&&1===t.length?r:Reflect.apply(n,this,[l,r,e,this])}return l}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),n=this.get(r);t.set(r,n)}return t}toSpliced(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];let o=[...this.entries()];return o.splice(...r),new e(o)}slice(t,r){let n=new e,o=this.size-1;if(void 0===t)return n;t<0&&(t+=this.size),void 0!==r&&r>0&&(o=r-1);for(let e=t;e<=o;e++){let t=this.keyAt(e),r=this.get(t);n.set(t,r)}return n}every(e,t){let r=0;for(let n of this){if(!Reflect.apply(e,t,[n,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return!0;r++}return!1}constructor(e){super(e),function(e,t,r){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");t.set(e,r)}(this,n,{writable:!0,value:void 0}),f(this,n,[...super.keys()]),w.set(this,!0)}};var R=o.createContext(void 0);function C(e){let t=o.useContext(R);return e||t||"ltr"}var b=r(44831),M=r(19526),j=r(69666),D=r(68946),k=r(66093),_=r(75433),E=r(76842),A=r(70222),K="rovingFocusGroup.onEntryFocus",I={bubbles:!1,cancelable:!0},O="RovingFocusGroup",[P,S,T]=g(O),[N,F]=(0,a.A)(O,[T]),[L,G]=N(O),z=o.forwardRef((e,t)=>(0,p.jsx)(P.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(P.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(B,{...e,ref:t})})}));z.displayName=O;var B=o.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:n,loop:a=!1,dir:c,currentTabStopId:d,defaultCurrentTabStopId:f,onCurrentTabStopIdChange:h,onEntryFocus:m,preventScrollOnEntryFocus:v=!1,...g}=e,w=o.useRef(null),y=(0,i.s)(t,w),x=C(c),[R,b]=(0,u.i)({prop:d,defaultProp:null!=f?f:null,onChange:h,caller:O}),[M,j]=o.useState(!1),D=(0,A.c)(m),k=S(r),_=o.useRef(!1),[E,P]=o.useState(0);return o.useEffect(()=>{let e=w.current;if(e)return e.addEventListener(K,D),()=>e.removeEventListener(K,D)},[D]),(0,p.jsx)(L,{scope:r,orientation:n,dir:x,loop:a,currentTabStopId:R,onItemFocus:o.useCallback(e=>b(e),[b]),onItemShiftTab:o.useCallback(()=>j(!0),[]),onFocusableItemAdd:o.useCallback(()=>P(e=>e+1),[]),onFocusableItemRemove:o.useCallback(()=>P(e=>e-1),[]),children:(0,p.jsx)(s.sG.div,{tabIndex:M||0===E?-1:0,"data-orientation":n,...g,ref:y,style:{outline:"none",...e.style},onMouseDown:(0,l.mK)(e.onMouseDown,()=>{_.current=!0}),onFocus:(0,l.mK)(e.onFocus,e=>{let t=!_.current;if(e.target===e.currentTarget&&t&&!M){let t=new CustomEvent(K,I);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=k().filter(e=>e.focusable);X([e.find(e=>e.active),e.find(e=>e.id===R),...e].filter(Boolean).map(e=>e.ref.current),v)}}_.current=!1}),onBlur:(0,l.mK)(e.onBlur,()=>j(!1))})})}),V="RovingFocusGroupItem",U=o.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:n=!0,active:i=!1,tabStopId:a,children:u,...c}=e,d=(0,D.B)(),f=a||d,h=G(V,r),m=h.currentTabStopId===f,v=S(r),{onFocusableItemAdd:g,onFocusableItemRemove:w,currentTabStopId:y}=h;return o.useEffect(()=>{if(n)return g(),()=>w()},[n,g,w]),(0,p.jsx)(P.ItemSlot,{scope:r,id:f,focusable:n,active:i,children:(0,p.jsx)(s.sG.span,{tabIndex:m?0:-1,"data-orientation":h.orientation,...c,ref:t,onMouseDown:(0,l.mK)(e.onMouseDown,e=>{n?h.onItemFocus(f):e.preventDefault()}),onFocus:(0,l.mK)(e.onFocus,()=>h.onItemFocus(f)),onKeyDown:(0,l.mK)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void h.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let o=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return W[o]}(e,h.orientation,h.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=v().filter(e=>
1e.focusable).map(e=>e.ref.current);if("last"===t)r.reverse();else if("prev"===t||"next"===t){"prev"===t&&r.reverse();let n=r.indexOf(e.currentTarget);r=h.loop?function(e,t){return e.map((r,n)=>e[(t+n)%e.length])}(r,n+1):r.slice(n+1)}setTimeout(()=>X(r))}}),children:"function"==typeof u?u({isCurrentTabStop:m,hasTabStop:null!=y}):u})})});U.displayName=V;var W={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function X(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var Z=Symbol("radix.slottable");function $(e){return o.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Z}var q=r(97745),H=r(40101),Y=["Enter"," "],J=["ArrowUp","PageDown","End"],Q=["ArrowDown","PageUp","Home",...J],ee={ltr:[...Y,"ArrowRight"],rtl:[...Y,"ArrowLeft"]},et={ltr:["ArrowLeft"],rtl:["ArrowRight"]},er="Menu",[en,eo,el]=g(er),[ei,ea]=(0,a.A)(er,[el,k.Bk,F]),eu=(0,k.Bk)(),es=F(),[ec,ed]=ei(er),[ef,ep]=ei(er),eh=e=>{let{__scopeMenu:t,open:r=!1,children:n,dir:l,onOpenChange:i,modal:a=!0}=e,u=eu(t),[s,c]=o.useState(null),d=o.useRef(!1),f=(0,A.c)(i),h=C(l);return o.useEffect(()=>{let e=()=>{d.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>d.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,p.jsx)(k.bL,{...u,children:(0,p.jsx)(ec,{scope:t,open:r,onOpenChange:f,content:s,onContentChange:c,children:(0,p.jsx)(ef,{scope:t,onClose:o.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:d,dir:h,modal:a,children:n})})})};eh.displayName=er;var em=o.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,o=eu(r);return(0,p.jsx)(k.Mz,{...o,...n,ref:t})});em.displayName="MenuAnchor";var ev="MenuPortal",[eg,ew]=ei(ev,{forceMount:void 0}),ey=e=>{let{__scopeMenu:t,forceMount:r,children:n,container:o}=e,l=ed(ev,t);return(0,p.jsx)(eg,{scope:t,forceMount:r,children:(0,p.jsx)(E.C,{present:r||l.open,children:(0,p.jsx)(_.Z,{asChild:!0,container:o,children:n})})})};ey.displayName=ev;var ex="MenuContent",[eR,eC]=ei(ex),eb=o.forwardRef((e,t)=>{let r=ew(ex,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,l=ed(ex,e.__scopeMenu),i=ep(ex,e.__scopeMenu);return(0,p.jsx)(en.Provider,{scope:e.__scopeMenu,children:(0,p.jsx)(E.C,{present:n||l.open,children:(0,p.jsx)(en.Slot,{scope:e.__scopeMenu,children:i.modal?(0,p.jsx)(eM,{...o,ref:t}):(0,p.jsx)(ej,{...o,ref:t})})})})}),eM=o.forwardRef((e,t)=>{let r=ed(ex,e.__scopeMenu),n=o.useRef(null),a=(0,i.s)(t,n);return o.useEffect(()=>{let e=n.current;if(e)return(0,q.Eq)(e)},[]),(0,p.jsx)(ek,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:(0,l.mK)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),ej=o.forwardRef((e,t)=>{let r=ed(ex,e.__scopeMenu);return(0,p.jsx)(ek,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),eD=function(e){let t=function(e){let t=o.forwardRef((e,t)=>{let{children:r,...n}=e;if(o.isValidElement(r)){var l;let e,a,u=(l=r,(a=(e=Object.getOwnPropertyDescriptor(l.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.ref:(a=(e=Object.getOwnPropertyDescriptor(l,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.props.ref:l.props.ref||l.ref),s=function(e,t){let r={...t};for(let n in t){let o=e[n],l=t[n];/^on[A-Z]/.test(n)?o&&l?r[n]=(...e)=>{let t=l(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...l}:"className"===n&&(r[n]=[o,l].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==o.Fragment&&(s.ref=t?(0,i.t)(t,u):u),o.cloneElement(r,s)}return o.Children.count(r)>1?o.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),r=o.forwardRef((e,r)=>{let{children:n,...l}=e,i=o.Children.toArray(n),a=i.find($);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:o.Children.count(e)>1?o.Children.only(null):o.isValidElement(e)?e.props.children:null);return(0,p.jsx)(t,{...l,ref:r,children:o.isValidElement(e)?o.cloneElement(e,void 0,n):null})}return(0,p.jsx)(t,{...l,ref:r,children:n})});return r.displayName=`${e}.Slot`,r}("MenuContent.ScrollLock"),ek=o.forwardRef((e,t)=>
1{let{__scopeMenu:r,loop:n=!1,trapFocus:a,onOpenAutoFocus:u,onCloseAutoFocus:s,disableOutsidePointerEvents:c,onEntryFocus:d,onEscapeKeyDown:f,onPointerDownOutside:h,onFocusOutside:m,onInteractOutside:v,onDismiss:g,disableOutsideScroll:w,...y}=e,x=ed(ex,r),R=ep(ex,r),C=eu(r),D=es(r),_=eo(r),[E,A]=o.useState(null),K=o.useRef(null),I=(0,i.s)(t,K,x.onContentChange),O=o.useRef(0),P=o.useRef(""),S=o.useRef(0),T=o.useRef(null),N=o.useRef("right"),F=o.useRef(0),L=w?H.A:o.Fragment;o.useEffect(()=>()=>window.clearTimeout(O.current),[]),(0,M.Oh)();let G=o.useCallback(e=>{var t,r;return N.current===(null==(t=T.current)?void 0:t.side)&&function(e,t){return!!t&&function(e,t){let{x:r,y:n}=e,o=!1;for(let e=0,l=t.length-1;e<t.length;l=e++){let i=t[e],a=t[l],u=i.x,s=i.y,c=a.x,d=a.y;s>n!=d>n&&r<(c-u)*(n-s)/(d-s)+u&&(o=!o)}return o}({x:e.clientX,y:e.clientY},t)}(e,null==(r=T.current)?void 0:r.area)},[]);return(0,p.jsx)(eR,{scope:r,searchRef:P,onItemEnter:o.useCallback(e=>{G(e)&&e.preventDefault()},[G]),onItemLeave:o.useCallback(e=>{var t;G(e)||(null==(t=K.current)||t.focus(),A(null))},[G]),onTriggerLeave:o.useCallback(e=>{G(e)&&e.preventDefault()},[G]),pointerGraceTimerRef:S,onPointerGraceIntentChange:o.useCallback(e=>{T.current=e},[]),children:(0,p.jsx)(L,{...w?{as:eD,allowPinchZoom:!0}:void 0,children:(0,p.jsx)(j.n,{asChild:!0,trapped:a,onMountAutoFocus:(0,l.mK)(u,e=>{var t;e.preventDefault(),null==(t=K.current)||t.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:(0,p.jsx)(b.qW,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:f,onPointerDownOutside:h,onFocusOutside:m,onInteractOutside:v,onDismiss:g,children:(0,p.jsx)(z,{asChild:!0,...D,dir:R.dir,orientation:"vertical",loop:n,currentTabStopId:E,onCurrentTabStopIdChange:A,onEntryFocus:(0,l.mK)(d,e=>{R.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,p.jsx)(k.UC,{role:"menu","aria-orientation":"vertical","data-state":eQ(x.open),"data-radix-menu-content":"",dir:R.dir,...C,...y,ref:I,style:{outline:"none",...y.style},onKeyDown:(0,l.mK)(y.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,n=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!r&&n&&(e=>{var t,r;let n=P.current+e,o=_().filter(e=>!e.disabled),l=document.activeElement,i=null==(t=o.find(e=>e.ref.current===l))?void 0:t.textValue,a=function(e,t,r){var n;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,l=r?e.indexOf(r):-1,i=(n=Math.max(l,0),e.map((t,r)=>e[(n+r)%e.length]));1===o.length&&(i=i.filter(e=>e!==r));let a=i.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return a!==r?a:void 0}(o.map(e=>e.textValue),n,i),u=null==(r=o.find(e=>e.textValue===a))?void 0:r.ref.current;!function e(t){P.current=t,window.clearTimeout(O.current),""!==t&&(O.current=window.setTimeout(()=>e(""),1e3))}(n),u&&setTimeout(()=>u.focus())})(e.key));let o=K.current;if(e.target!==o||!Q.includes(e.key))return;e.preventDefault();let l=_().filter(e=>!e.disabled).map(e=>e.ref.current);J.includes(e.key)&&l.reverse(),function(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}(l)}),onBlur:(0,l.mK)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(O.current),P.current="")}),onPointerMove:(0,l.mK)(e.onPointerMove,e6(e=>{let t=e.target,r=F.current!==e.clientX;e.currentTarget.contains(t)&&r&&(N.current=e.clientX>F.current?"right":"left",F.current=e.clientX)}))})})})})})})});eb.displayName=ex;var e_=o.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,p.jsx)(s.sG.div,{role:"group",...n,ref:t})});e_.displayName="MenuGroup";var eE=o.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,p.jsx)(s.sG.div,{...n,ref:t})});eE.displayName="MenuLabel";var eA="MenuItem",eK="menu.itemSelect",eI=o.forwardRef((e,t)=>{let{disabled:r=!1,onSelect:n,...a}=e,u=o.useRef(null),c=ep(eA,e.__scopeMenu),d=eC(eA,e.__scopeMenu),f=(0,i.s)(t,u),h=o.useRef(!1);return(0,p.jsx)(eO,{...a,ref:f,disabled:r,onClick:(0,l.mK)(e.onClick,()=>{let e=u.current;if(!r&&e){let t=new CustomEvent(eK,{bubbles:!0,cancelable:!0});e.addEventListener(eK,e=>null==n?void 0:n(e),{once:!0}),(0,s.hO)(e,t),t.defaultPrevented?h.current=!1:c.onClose()}}),onPointerDown:t=>{var r;null==(r=e.onPointerDown)||r.call(e,t),h.current=!0},onPointerUp:(0,l.mK)(e.onPointerUp,e=>{var t;h.current||null==(t=e.currentTarget)||t.click()}),onKeyDown:(0,l.mK)(e.onKeyDown,e=>{let t=""!==d.searchRef.current;
1r||t&&" "===e.key||Y.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});eI.displayName=eA;var eO=o.forwardRef((e,t)=>{let{__scopeMenu:r,disabled:n=!1,textValue:a,...u}=e,c=eC(eA,r),d=es(r),f=o.useRef(null),h=(0,i.s)(t,f),[m,v]=o.useState(!1),[g,w]=o.useState("");return o.useEffect(()=>{let e=f.current;if(e){var t;w((null!=(t=e.textContent)?t:"").trim())}},[u.children]),(0,p.jsx)(en.ItemSlot,{scope:r,disabled:n,textValue:null!=a?a:g,children:(0,p.jsx)(U,{asChild:!0,...d,focusable:!n,children:(0,p.jsx)(s.sG.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...u,ref:h,onPointerMove:(0,l.mK)(e.onPointerMove,e6(e=>{n?c.onItemLeave(e):(c.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,l.mK)(e.onPointerLeave,e6(e=>c.onItemLeave(e))),onFocus:(0,l.mK)(e.onFocus,()=>v(!0)),onBlur:(0,l.mK)(e.onBlur,()=>v(!1))})})})}),eP=o.forwardRef((e,t)=>{let{checked:r=!1,onCheckedChange:n,...o}=e;return(0,p.jsx)(eB,{scope:e.__scopeMenu,checked:r,children:(0,p.jsx)(eI,{role:"menuitemcheckbox","aria-checked":e0(r)?"mixed":r,...o,ref:t,"data-state":e1(r),onSelect:(0,l.mK)(o.onSelect,()=>null==n?void 0:n(!!e0(r)||!r),{checkForDefaultPrevented:!1})})})});eP.displayName="MenuCheckboxItem";var eS="MenuRadioGroup",[eT,eN]=ei(eS,{value:void 0,onValueChange:()=>{}}),eF=o.forwardRef((e,t)=>{let{value:r,onValueChange:n,...o}=e,l=(0,A.c)(n);return(0,p.jsx)(eT,{scope:e.__scopeMenu,value:r,onValueChange:l,children:(0,p.jsx)(e_,{...o,ref:t})})});eF.displayName=eS;var eL="MenuRadioItem",eG=o.forwardRef((e,t)=>{let{value:r,...n}=e,o=eN(eL,e.__scopeMenu),i=r===o.value;return(0,p.jsx)(eB,{scope:e.__scopeMenu,checked:i,children:(0,p.jsx)(eI,{role:"menuitemradio","aria-checked":i,...n,ref:t,"data-state":e1(i),onSelect:(0,l.mK)(n.onSelect,()=>{var e;return null==(e=o.onValueChange)?void 0:e.call(o,r)},{checkForDefaultPrevented:!1})})})});eG.displayName=eL;var ez="MenuItemIndicator",[eB,eV]=ei(ez,{checked:!1}),eU=o.forwardRef((e,t)=>{let{__scopeMenu:r,forceMount:n,...o}=e,l=eV(ez,r);return(0,p.jsx)(E.C,{present:n||e0(l.checked)||!0===l.checked,children:(0,p.jsx)(s.sG.span,{...o,ref:t,"data-state":e1(l.checked)})})});eU.displayName=ez;var eW=o.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,p.jsx)(s.sG.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});eW.displayName="MenuSeparator";var eX=o.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,o=eu(r);return(0,p.jsx)(k.i3,{...o,...n,ref:t})});eX.displayName="MenuArrow";var[eZ,e$]=ei("MenuSub"),eq="MenuSubTrigger",eH=o.forwardRef((e,t)=>{let r=ed(eq,e.__scopeMenu),n=ep(eq,e.__scopeMenu),a=e$(eq,e.__scopeMenu),u=eC(eq,e.__scopeMenu),s=o.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:d}=u,f={__scopeMenu:e.__scopeMenu},h=o.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return o.useEffect(()=>h,[h]),o.useEffect(()=>{let e=c.current;return()=>{window.clearTimeout(e),d(null)}},[c,d]),(0,p.jsx)(em,{asChild:!0,...f,children:(0,p.jsx)(eO,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":a.contentId,"data-state":eQ(r.open),...e,ref:(0,i.t)(t,a.onTriggerChange),onClick:t=>{var n;null==(n=e.onClick)||n.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:(0,l.mK)(e.onPointerMove,e6(t=>{u.onItemEnter(t),!t.defaultPrevented&&(e.disabled||r.open||s.current||(u.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{r.onOpenChange(!0),h()},100)))})),onPointerLeave:(0,l.mK)(e.onPointerLeave,e6(e=>{var t,n;h();let o=null==(t=r.content)?void 0:t.getBoundingClientRect();if(o){let t=null==(n=r.content)?void 0:n.dataset.side,l="right"===t,i=o[l?"left":"right"],a=o[l?"right":"left"];u.onPointerGraceIntentChange({area:[{x:e.clientX+(l?-5:5),y:e.clientY},{x:i,y:o.top},{x:a,y:o.top},{x:a,y:o.bottom},{x:i,y:o.bottom}],side:t}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>u.onPointerGraceIntentChange(null),300)}else{if(u.onTriggerLeave(e),e.defaultPrevented)return;u.onPointerGraceIntentChange(null)}})),onKeyDown:(0,l.mK)(e.onKeyDown,t=>{let o=""!==u.searchRef.current;if(!e.disabled&&(!o||" "!==t.key)&&ee[n.dir].includes(t.key)){var l;r.onOpenChange(!0),null==(l=r.content)||l.focus(),t.preventDefault()}})})})});eH.displayName=eq;var eY="MenuSubContent",eJ=o.forwardRef((e,t)=>
1{let r=ew(ex,e.__scopeMenu),{forceMount:n=r.forceMount,...a}=e,u=ed(ex,e.__scopeMenu),s=ep(ex,e.__scopeMenu),c=e$(eY,e.__scopeMenu),d=o.useRef(null),f=(0,i.s)(t,d);return(0,p.jsx)(en.Provider,{scope:e.__scopeMenu,children:(0,p.jsx)(E.C,{present:n||u.open,children:(0,p.jsx)(en.Slot,{scope:e.__scopeMenu,children:(0,p.jsx)(ek,{id:c.contentId,"aria-labelledby":c.triggerId,...a,ref:f,align:"start",side:"rtl"===s.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;s.isUsingKeyboardRef.current&&(null==(t=d.current)||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,l.mK)(e.onFocusOutside,e=>{e.target!==c.trigger&&u.onOpenChange(!1)}),onEscapeKeyDown:(0,l.mK)(e.onEscapeKeyDown,e=>{s.onClose(),e.preventDefault()}),onKeyDown:(0,l.mK)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),r=et[s.dir].includes(e.key);if(t&&r){var n;u.onOpenChange(!1),null==(n=c.trigger)||n.focus(),e.preventDefault()}})})})})})});function eQ(e){return e?"open":"closed"}function e0(e){return"indeterminate"===e}function e1(e){return e0(e)?"indeterminate":e?"checked":"unchecked"}function e6(e){return t=>"mouse"===t.pointerType?e(t):void 0}eJ.displayName=eY;var e5="DropdownMenu",[e4,e2]=(0,a.A)(e5,[ea]),e3=ea(),[e9,e8]=e4(e5),e7=e=>{let{__scopeDropdownMenu:t,children:r,dir:n,open:l,defaultOpen:i,onOpenChange:a,modal:s=!0}=e,c=e3(t),d=o.useRef(null),[f,h]=(0,u.i)({prop:l,defaultProp:null!=i&&i,onChange:a,caller:e5});return(0,p.jsx)(e9,{scope:t,triggerId:(0,D.B)(),triggerRef:d,contentId:(0,D.B)(),open:f,onOpenChange:h,onOpenToggle:o.useCallback(()=>h(e=>!e),[h]),modal:s,children:(0,p.jsx)(eh,{...c,open:f,onOpenChange:h,dir:n,modal:s,children:r})})};e7.displayName=e5;var te="DropdownMenuTrigger",tt=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,disabled:n=!1,...o}=e,a=e8(te,r),u=e3(r);return(0,p.jsx)(em,{asChild:!0,...u,children:(0,p.jsx)(s.sG.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...o,ref:(0,i.t)(t,a.triggerRef),onPointerDown:(0,l.mK)(e.onPointerDown,e=>{!n&&0===e.button&&!1===e.ctrlKey&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:(0,l.mK)(e.onKeyDown,e=>{!n&&(["Enter"," "].includes(e.key)&&a.onOpenToggle(),"ArrowDown"===e.key&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});tt.displayName=te;var tr=e=>{let{__scopeDropdownMenu:t,...r}=e,n=e3(t);return(0,p.jsx)(ey,{...n,...r})};tr.displayName="DropdownMenuPortal";var tn="DropdownMenuContent",to=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=e8(tn,r),a=e3(r),u=o.useRef(!1);return(0,p.jsx)(eb,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...n,ref:t,onCloseAutoFocus:(0,l.mK)(e.onCloseAutoFocus,e=>{var t;u.current||null==(t=i.triggerRef.current)||t.focus(),u.current=!1,e.preventDefault()}),onInteractOutside:(0,l.mK)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;(!i.modal||n)&&(u.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)"}})});to.displayName=tn,o.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=e3(r);return(0,p.jsx)(e_,{...o,...n,ref:t})}).displayName="DropdownMenuGroup",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=e3(r);return(0,p.jsx)(eE,{...o,...n,ref:t})}).displayName="DropdownMenuLabel",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=e3(r);return(0,p.jsx)(eI,{...o,...n,ref:t})}).displayName="DropdownMenuItem",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=e3(r);return(0,p.jsx)(eP,{...o,...n,ref:t})}).displayName="DropdownMenuCheckboxItem",o.forwardRef((e,t)=>
1{let{__scopeDropdownMenu:r,...n}=e,o=e3(r);return(0,p.jsx)(eF,{...o,...n,ref:t})}).displayName="DropdownMenuRadioGroup",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=e3(r);return(0,p.jsx)(eG,{...o,...n,ref:t})}).displayName="DropdownMenuRadioItem",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=e3(r);return(0,p.jsx)(eU,{...o,...n,ref:t})}).displayName="DropdownMenuItemIndicator",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=e3(r);return(0,p.jsx)(eW,{...o,...n,ref:t})}).displayName="DropdownMenuSeparator",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=e3(r);return(0,p.jsx)(eX,{...o,...n,ref:t})}).displayName="DropdownMenuArrow",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=e3(r);return(0,p.jsx)(eH,{...o,...n,ref:t})}).displayName="DropdownMenuSubTrigger",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=e3(r);return(0,p.jsx)(eJ,{...o,...n,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)"}})}).displayName="DropdownMenuSubContent";var tl=e7,ti=tt,ta=tr,tu=to}}]);
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.