PageSourceSearch

https://www.rifftrax.com/sites/all/themes/dante/dist/chunks/1790809380/CI6S1NDO.js

js rifftrax.com collected 2026-10-01 11:25:12 UTC 26,378 bytes, 11 lines download raw bytes

1import{__toESM as e}from"./DDUEPe6U.js";import{Anchor$1 as t,Arrow$1 as r,BsCheck as n,Combination_default as o,Content$1 as i,DismissableLayer as l,FocusScope as a,Portal$2 as u,Presence as s,Primitive as d,Root2$1 as c,_classPrivateFieldGet2 as f,_classPrivateFieldInitSpec as p,_classPrivateFieldSet2 as h,classes as v,composeEventHandlers as m,composeRefs as w,createContextScope as g,createPopperScope as x,createSlot as y,dispatchDiscreteCustomEvent as R,hideOthers as b,require_jsx_runtime as C,require_react as j,useCallbackRef as M,useComposedRefs as D,useControllableState as k,useFocusGuards as _,useId as I,withClass as A}from"./Dqgz-G6s.js";var P,S=e(j(),1),T=e(C(),1);function E(e){let t=e+"CollectionProvider",[r,n]=g(t),[o,i]=r(t,{collectionRef:{current:null},itemMap:new Map}),l=e=>{let{scope:t,children:r}=e,n=S.default.useRef(null),i=S.default.useRef(new Map).current;return(0,T.jsx)(o,{scope:t,itemMap:i,collectionRef:n,children:r})};l.displayName=t;let a=e+"CollectionSlot",u=y(a),s=S.default.forwardRef((e,t)=>{let{scope:r,children:n}=e,o=D(t,i(a,r).collectionRef);return(0,T.jsx)(u,{ref:o,children:n})});s.displayName=a;let d=e+"CollectionItemSlot",c="data-radix-collection-item",f=y(d),p=S.default.forwardRef((e,t)=>{let{scope:r,children:n,...o}=e,l=S.default.useRef(null),a=D(t,l),u=i(d,r);return S.default.useEffect(()=>(u.itemMap.set(l,{ref:l,...o}),()=>void u.itemMap.delete(l))),(0,T.jsx)(f,{[c]:"",ref:a,children:n})});return p.displayName=d,[{Provider:l,Slot:s,ItemSlot:p},function(t){let r=i(e+"CollectionConsumer",t);return S.default.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${c}]`));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 O=new WeakMap;function F(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let r=function(e,t){let r=e.length,n=N(t),o=n>=0?n:r+n;return o<0||o>=r?-1:o}(e,t);return -1===r?void 0:e[r]}function N(e){return e!=e||0===e?0:Math.trunc(e)}P=new WeakMap,class e extends Map{constructor(e){super(e),p(this,P,void 0),h(P,this,[...super.keys()]),O.set(this,!0)}set(e,t){return O.get(this)&&(this.has(e)?f(P,this)[f(P,this).indexOf(e)]=e:f(P,this).push(e)),super.set(e,t),this}insert(e,t,r){let n,o=this.has(t),i=f(P,this).length,l=N(e),a=l>=0?l:i+l,u=a<0||a>=i?-1:a;if(u===this.size||o&&u===this.size-1||-1===u)return this.set(t,r),this;let s=this.size+ +!o;l<0&&a++;let d=[...f(P,this)],c=!1;for(let e=a;e<s;e++)if(a===e){let i=d[e];d[e]===t&&(i=d[e+1]),o&&this.delete(t),n=this.get(i),this.set(t,r)}else{c||d[e-1]!==t||(c=!0);let r=d[c?e:e-1],o=n;n=this.get(r),this.delete(r),this.set(r,o)}return this}with(t,r,n){let o=new e(this);return o.insert(t,r,n),o}before(e){let t=f(P,this).indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let n=f(P,this).indexOf(e);return -1===n?this:this.insert(n,t,r)}after(e){let t=f(P,this).indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let n=f(P,this).indexOf(e);return -1===n?this:this.insert(n+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return h(P,this,[]),super.clear()}delete(e){let t=super.delete(e);return t&&f(P,this).splice(f(P,this).indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=F(f(P,this),e);if(void 0!==t)return this.get(t)}entryAt(e){let t=F(f(P,this),e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return f(P,this).indexOf(e)}keyAt(e){return F(f(P,this),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(...e){let[t,r]=e,n=0,o=null!=r?r:this.at(0);for(let r of this)o=0===n&&1===e.length?r:Reflect.apply(t,this,[o,r,n,this]),n++;return o}reduceRight(...e){let[t,r]=e,n=null!=r?r:this.at(-1);for(let r=this.size-1;r>=0;r--){let o=this.at(r);n=r===this.size-1&&1===e.length?o:Reflect.apply(t,this,[n,o,r,this])}return n}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(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}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}};var L=S.createContext(void 0);function K(e){let t=S.useContext(L);return e||t||"ltr"}var z="rovingFocusGroup.onEntryFocus",G={bubbles:!1,cancelable:!0},$="RovingFocusGroup",[U,B,V]=E($),[X,W]=g($,[V]),[H,Y]=X($),q=S.forwardRef((e,t)=>
1(0,T.jsx)(U.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,T.jsx)(U.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,T.jsx)(Z,{...e,ref:t})})}));q.displayName=$;var Z=S.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:i,currentTabStopId:l,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:u,onEntryFocus:s,preventScrollOnEntryFocus:c=!1,...f}=e,p=S.useRef(null),h=D(t,p),v=K(i),[w,g]=k({prop:l,defaultProp:null!=a?a:null,onChange:u,caller:$}),[x,y]=S.useState(!1),R=M(s),b=B(r),C=S.useRef(!1),[j,_]=S.useState(0);return S.useEffect(()=>{let e=p.current;if(e)return e.addEventListener(z,R),()=>e.removeEventListener(z,R)},[R]),(0,T.jsx)(H,{scope:r,orientation:n,dir:v,loop:o,currentTabStopId:w,onItemFocus:S.useCallback(e=>g(e),[g]),onItemShiftTab:S.useCallback(()=>y(!0),[]),onFocusableItemAdd:S.useCallback(()=>_(e=>e+1),[]),onFocusableItemRemove:S.useCallback(()=>_(e=>e-1),[]),children:(0,T.jsx)(d.div,{tabIndex:x||0===j?-1:0,"data-orientation":n,...f,ref:h,style:{outline:"none",...e.style},onMouseDown:m(e.onMouseDown,()=>{C.current=!0}),onFocus:m(e.onFocus,e=>{let t=!C.current;if(e.target===e.currentTarget&&t&&!x){let t=new CustomEvent(z,G);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=b().filter(e=>e.focusable);et([e.find(e=>e.active),e.find(e=>e.id===w),...e].filter(Boolean).map(e=>e.ref.current),c)}}C.current=!1}),onBlur:m(e.onBlur,()=>y(!1))})})}),J="RovingFocusGroupItem",Q=S.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:i,children:l,...a}=e,u=I(),s=i||u,c=Y(J,r),f=c.currentTabStopId===s,p=B(r),{onFocusableItemAdd:h,onFocusableItemRemove:v,currentTabStopId:w}=c;return S.useEffect(()=>{if(n)return h(),()=>v()},[n,h,v]),(0,T.jsx)(U.ItemSlot,{scope:r,id:s,focusable:n,active:o,children:(0,T.jsx)(d.span,{tabIndex:f?0:-1,"data-orientation":c.orientation,...a,ref:t,onMouseDown:m(e.onMouseDown,e=>{n?c.onItemFocus(s):e.preventDefault()}),onFocus:m(e.onFocus,()=>c.onItemFocus(s)),onKeyDown:m(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void c.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 ee[o]}(e,c.orientation,c.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=p().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){var r,n;"prev"===t&&o.reverse();let i=o.indexOf(e.currentTarget);o=c.loop?(r=o,n=i+1,r.map((e,t)=>r[(n+t)%r.length])):o.slice(i+1)}setTimeout(()=>et(o))}}),children:"function"==typeof l?l({isCurrentTabStop:f,hasTabStop:null!=w}):l})})});Q.displayName=J;var ee={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function et(e,t=!1){let r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var er=["Enter"," "],en=["ArrowUp","PageDown","End"],eo=["ArrowDown","PageUp","Home",...en],ei={ltr:[...er,"ArrowRight"],rtl:[...er,"ArrowLeft"]},el={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ea="Menu",[eu,es,ed]=E(ea),[ec,ef]=g(ea,[ed,x,W]),ep=x(),eh=W(),[ev,em]=ec(ea),[ew,eg]=ec(ea),ex=e=>{let{__scopeMenu:t,open:r=!1,children:n,dir:o,onOpenChange:i,modal:l=!0}=e,a=ep(t),[u,s]=S.useState(null),d=S.useRef(!1),f=M(i),p=K(o);return S.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,T.jsx)(c,{...a,children:(0,T.jsx)(ev,{scope:t,open:r,onOpenChange:f,content:u,onContentChange:s,children:(0,T.jsx)(ew,{scope:t,onClose:S.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:d,dir:p,modal:l,children:n})})})};ex.displayName=ea;var ey=S.forwardRef((e,r)=>{let{__scopeMenu:n,...o}=e,i=ep(n);return(0,T.jsx)(t,{...i,...o,ref:r})});ey.displayName="MenuAnchor";var eR="MenuPortal",[eb,eC]=ec(eR,{forceMount:void 0}),ej=e=>{let{__scopeMenu:t,forceMount:r,children:n,container:o}=e,i=em(eR,t);return(0,T.jsx)(eb,{scope:t,forceMount:r,children:(0,T.jsx)(s,{present:r||i.open,children:(0,T.jsx)(u,{asChild:!0,container:o,children:n})})})};ej.displayName=eR;var eM="MenuContent",[eD,ek]=ec(eM),e_=S.forwardRef((e,t)=>
1{let r=eC(eM,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,i=em(eM,e.__scopeMenu),l=eg(eM,e.__scopeMenu);return(0,T.jsx)(eu.Provider,{scope:e.__scopeMenu,children:(0,T.jsx)(s,{present:n||i.open,children:(0,T.jsx)(eu.Slot,{scope:e.__scopeMenu,children:l.modal?(0,T.jsx)(eI,{...o,ref:t}):(0,T.jsx)(eA,{...o,ref:t})})})})}),eI=S.forwardRef((e,t)=>{let r=em(eM,e.__scopeMenu),n=S.useRef(null),o=D(t,n);return S.useEffect(()=>{let e=n.current;if(e)return b(e)},[]),(0,T.jsx)(eS,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:m(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),eA=S.forwardRef((e,t)=>{let r=em(eM,e.__scopeMenu);return(0,T.jsx)(eS,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),eP=y("MenuContent.ScrollLock"),eS=S.forwardRef((e,t)=>{let{__scopeMenu:r,loop:n=!1,trapFocus:u,onOpenAutoFocus:s,onCloseAutoFocus:d,disableOutsidePointerEvents:c,onEntryFocus:f,onEscapeKeyDown:p,onPointerDownOutside:h,onFocusOutside:v,onInteractOutside:w,onDismiss:g,disableOutsideScroll:x,...y}=e,R=em(eM,r),b=eg(eM,r),C=ep(r),j=eh(r),M=es(r),[k,I]=S.useState(null),A=S.useRef(null),P=D(t,A,R.onContentChange),E=S.useRef(0),O=S.useRef(""),F=S.useRef(0),N=S.useRef(null),L=S.useRef("right"),K=S.useRef(0),z=x?o:S.Fragment;S.useEffect(()=>()=>window.clearTimeout(E.current),[]),_();let G=S.useCallback(e=>{var t,r,n,o;return L.current===(null==(t=N.current)?void 0:t.side)&&(n=e,!!(o=null==(r=N.current)?void 0:r.area)&&function(e,t){let{x:r,y:n}=e,o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){let l=t[e],a=t[i],u=l.x,s=l.y,d=a.x,c=a.y;s>n!=c>n&&r<(d-u)*(n-s)/(c-s)+u&&(o=!o)}return o}({x:n.clientX,y:n.clientY},o))},[]);return(0,T.jsx)(eD,{scope:r,searchRef:O,onItemEnter:S.useCallback(e=>{G(e)&&e.preventDefault()},[G]),onItemLeave:S.useCallback(e=>{var t;G(e)||(null==(t=A.current)||t.focus(),I(null))},[G]),onTriggerLeave:S.useCallback(e=>{G(e)&&e.preventDefault()},[G]),pointerGraceTimerRef:F,onPointerGraceIntentChange:S.useCallback(e=>{N.current=e},[]),children:(0,T.jsx)(z,{...x?{as:eP,allowPinchZoom:!0}:void 0,children:(0,T.jsx)(a,{asChild:!0,trapped:u,onMountAutoFocus:m(s,e=>{var t;e.preventDefault(),null==(t=A.current)||t.focus({preventScroll:!0})}),onUnmountAutoFocus:d,children:(0,T.jsx)(l,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:p,onPointerDownOutside:h,onFocusOutside:v,onInteractOutside:w,onDismiss:g,children:(0,T.jsx)(q,{asChild:!0,...j,dir:b.dir,orientation:"vertical",loop:n,currentTabStopId:k,onCurrentTabStopIdChange:I,onEntryFocus:m(f,e=>{b.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,T.jsx)(i,{role:"menu","aria-orientation":"vertical","data-state":e4(R.open),"data-radix-menu-content":"",dir:b.dir,...C,...y,ref:P,style:{outline:"none",...y.style},onKeyDown:m(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=O.current+e,o=M().filter(e=>!e.disabled),i=document.activeElement,l=null==(t=o.find(e=>e.ref.current===i))?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,i=r?e.indexOf(r):-1,l=(n=Math.max(i,0),e.map((t,r)=>e[(n+r)%e.length]));1===o.length&&(l=l.filter(e=>e!==r));let a=l.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return a!==r?a:void 0}(o.map(e=>e.textValue),n,l),u=null==(r=o.find(e=>e.textValue===a))?void 0:r.ref.current;!function e(t){O.current=t,window.clearTimeout(E.current),""!==t&&(E.current=window.setTimeout(()=>e(""),1e3))}(n),u&&setTimeout(()=>u.focus())})(e.key));let o=A.current;if(e.target!==o||!eo.includes(e.key))return;e.preventDefault();let i=M().filter(e=>!e.disabled).map(e=>e.ref.current);en.includes(e.key)&&i.reverse(),function(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}(i)}),onBlur:m(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(E.current),O.current="")}),onPointerMove:m(e.onPointerMove,e7(e=>{let t=e.target,r=K.current!==e.clientX;e.currentTarget.contains(t)&&r&&(L.current=e.clientX>K.current?"right":"left",K.current=e.clientX)}))})})})})})})});e_.displayName=eM;var eT=S.forwardRef((e,t)=>
1{let{__scopeMenu:r,...n}=e;return(0,T.jsx)(d.div,{role:"group",...n,ref:t})});eT.displayName="MenuGroup";var eE=S.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,T.jsx)(d.div,{...n,ref:t})});eE.displayName="MenuLabel";var eO="MenuItem",eF="menu.itemSelect",eN=S.forwardRef((e,t)=>{let{disabled:r=!1,onSelect:n,...o}=e,i=S.useRef(null),l=eg(eO,e.__scopeMenu),a=ek(eO,e.__scopeMenu),u=D(t,i),s=S.useRef(!1);return(0,T.jsx)(eL,{...o,ref:u,disabled:r,onClick:m(e.onClick,()=>{let e=i.current;if(!r&&e){let t=new CustomEvent(eF,{bubbles:!0,cancelable:!0});e.addEventListener(eF,e=>null==n?void 0:n(e),{once:!0}),R(e,t),t.defaultPrevented?s.current=!1:l.onClose()}}),onPointerDown:t=>{var r;null==(r=e.onPointerDown)||r.call(e,t),s.current=!0},onPointerUp:m(e.onPointerUp,e=>{var t;s.current||null==(t=e.currentTarget)||t.click()}),onKeyDown:m(e.onKeyDown,e=>{let t=""!==a.searchRef.current;r||t&&" "===e.key||er.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});eN.displayName=eO;var eL=S.forwardRef((e,t)=>{let{__scopeMenu:r,disabled:n=!1,textValue:o,...i}=e,l=ek(eO,r),a=eh(r),u=S.useRef(null),s=D(t,u),[c,f]=S.useState(!1),[p,h]=S.useState("");return S.useEffect(()=>{let e=u.current;if(e){var t;h((null!=(t=e.textContent)?t:"").trim())}},[i.children]),(0,T.jsx)(eu.ItemSlot,{scope:r,disabled:n,textValue:null!=o?o:p,children:(0,T.jsx)(Q,{asChild:!0,...a,focusable:!n,children:(0,T.jsx)(d.div,{role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...i,ref:s,onPointerMove:m(e.onPointerMove,e7(e=>{n?l.onItemLeave(e):(l.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:m(e.onPointerLeave,e7(e=>l.onItemLeave(e))),onFocus:m(e.onFocus,()=>f(!0)),onBlur:m(e.onBlur,()=>f(!1))})})})}),eK=S.forwardRef((e,t)=>{let{checked:r=!1,onCheckedChange:n,...o}=e;return(0,T.jsx)(eW,{scope:e.__scopeMenu,checked:r,children:(0,T.jsx)(eN,{role:"menuitemcheckbox","aria-checked":e5(r)?"mixed":r,...o,ref:t,"data-state":e6(r),onSelect:m(o.onSelect,()=>null==n?void 0:n(!!e5(r)||!r),{checkForDefaultPrevented:!1})})})});eK.displayName="MenuCheckboxItem";var ez="MenuRadioGroup",[eG,e$]=ec(ez,{value:void 0,onValueChange:()=>{}}),eU=S.forwardRef((e,t)=>{let{value:r,onValueChange:n,...o}=e,i=M(n);return(0,T.jsx)(eG,{scope:e.__scopeMenu,value:r,onValueChange:i,children:(0,T.jsx)(eT,{...o,ref:t})})});eU.displayName=ez;var eB="MenuRadioItem",eV=S.forwardRef((e,t)=>{let{value:r,...n}=e,o=e$(eB,e.__scopeMenu),i=r===o.value;return(0,T.jsx)(eW,{scope:e.__scopeMenu,checked:i,children:(0,T.jsx)(eN,{role:"menuitemradio","aria-checked":i,...n,ref:t,"data-state":e6(i),onSelect:m(n.onSelect,()=>{var e;return null==(e=o.onValueChange)?void 0:e.call(o,r)},{checkForDefaultPrevented:!1})})})});eV.displayName=eB;var eX="MenuItemIndicator",[eW,eH]=ec(eX,{checked:!1}),eY=S.forwardRef((e,t)=>{let{__scopeMenu:r,forceMount:n,...o}=e,i=eH(eX,r);return(0,T.jsx)(s,{present:n||e5(i.checked)||!0===i.checked,children:(0,T.jsx)(d.span,{...o,ref:t,"data-state":e6(i.checked)})})});eY.displayName=eX;var eq=S.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,T.jsx)(d.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});eq.displayName="MenuSeparator";var eZ=S.forwardRef((e,t)=>{let{__scopeMenu:n,...o}=e,i=ep(n);return(0,T.jsx)(r,{...i,...o,ref:t})});eZ.displayName="MenuArrow";var[eJ,eQ]=ec("MenuSub"),e0="MenuSubTrigger",e1=S.forwardRef((e,t)=>{let r=em(e0,e.__scopeMenu),n=eg(e0,e.__scopeMenu),o=eQ(e0,e.__scopeMenu),i=ek(e0,e.__scopeMenu),l=S.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:u}=i,s={__scopeMenu:e.__scopeMenu},d=S.useCallback(()=>{l.current&&window.clearTimeout(l.current),l.current=null},[]);return S.useEffect(()=>d,[d]),S.useEffect(()=>{let e=a.current;return()=>{window.clearTimeout(e),u(null)}},[a,u]),(0,T.jsx)(ey,{asChild:!0,...s,children:(0,T.jsx)(eL,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":o.contentId,"data-state":e4(r.open),...e,ref:w(t,o.onTriggerChange),onClick:t=>{var n;null==(n=e.onClick)||n.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focu
1s(),r.open||r.onOpenChange(!0))},onPointerMove:m(e.onPointerMove,e7(t=>{i.onItemEnter(t),!t.defaultPrevented&&(e.disabled||r.open||l.current||(i.onPointerGraceIntentChange(null),l.current=window.setTimeout(()=>{r.onOpenChange(!0),d()},100)))})),onPointerLeave:m(e.onPointerLeave,e7(e=>{var t,n;d();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,u=o[l?"left":"right"],s=o[l?"right":"left"];i.onPointerGraceIntentChange({area:[{x:e.clientX+(l?-5:5),y:e.clientY},{x:u,y:o.top},{x:s,y:o.top},{x:s,y:o.bottom},{x:u,y:o.bottom}],side:t}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(e),e.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:m(e.onKeyDown,t=>{let o=""!==i.searchRef.current;if(!e.disabled&&(!o||" "!==t.key)&&ei[n.dir].includes(t.key)){var l;r.onOpenChange(!0),null==(l=r.content)||l.focus(),t.preventDefault()}})})})});e1.displayName=e0;var e2="MenuSubContent",e3=S.forwardRef((e,t)=>{let r=eC(eM,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,i=em(eM,e.__scopeMenu),l=eg(eM,e.__scopeMenu),a=eQ(e2,e.__scopeMenu),u=S.useRef(null),d=D(t,u);return(0,T.jsx)(eu.Provider,{scope:e.__scopeMenu,children:(0,T.jsx)(s,{present:n||i.open,children:(0,T.jsx)(eu.Slot,{scope:e.__scopeMenu,children:(0,T.jsx)(eS,{id:a.c
1ontentId,"aria-labelledby":a.triggerId,...o,ref:d,align:"start",side:"rtl"===l.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;l.isUsingKeyboardRef.current&&(null==(t=u.current)||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:m(e.onFocusOutside,e=>{e.target!==a.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:m(e.onEscapeKeyDown,e=>{l.onClose(),e.preventDefault()}),onKeyDown:m(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),r=el[l.dir].includes(e.key);if(t&&r){var n;i.onOpenChange(!1),null==(n=a.trigger)||n.focus(),e.preventDefault()}})})})})})});function e4(e){return e?"open":"closed"}function e5(e){return"indeterminate"===e}function e6(e){return e5(e)?"indeterminate":e?"checked":"unchecked"}function e7(e){return t=>"mouse"===t.pointerType?e(t):void 0}e3.displayName=e2;var e8="DropdownMenu",[e9,te]=g(e8,[ef]),tt=ef(),[tr,tn]=e9(e8),to=e=>{let{__scopeDropdownMenu:t,children:r,dir:n,open:o,defaultOpen:i,onOpenChange:l,modal:a=!0}=e,u=tt(t),s=S.useRef(null),[d,c]=k({prop:o,defaultProp:null!=i&&i,onChange:l,caller:e8});return(0,T.jsx)(tr,{scope:t,triggerId:I(),triggerRef:s,contentId:I(),open:d,onOpenChange:c,onOpenToggle:S.useCallback(()=>c(e=>!e),[c]),modal:a,children:(0,T.jsx)(ex,{...u,open:d,onOpenChange:c,dir:n,modal:a,children:r})})};to.displayName=e8;var ti="DropdownMenuTrigger",tl=S.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,disabled:n=!1,...o}=e,i=tn(ti,r),l=tt(r);return(0,T.jsx)(ey,{asChild:!0,...l,children:(0,T.jsx)(d.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...o,ref:w(t,i.triggerRef),onPointerDown:m(e.onPointerDown,e=>{!n&&0===e.button&&!1===e.ctrlKey&&(i.onOpenToggle(),i.open||e.preventDefault())}),onKeyDown:m(e.onKeyDown,e=>{!n&&(["Enter"," "].includes(e.key)&&i.onOpenToggle(),"ArrowDown"===e.key&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});tl.displayName=ti;var ta=e=>{let{__scopeDropdownMenu:t,...r}=e,n=tt(t);return(0,T.jsx)(ej,{...n,...r})};ta.displayName="DropdownMenuPortal";var tu="DropdownMenuContent",ts=S.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=tn(tu,r),i=tt(r),l=S.useRef(!1);return(0,T.jsx)(e_,{id:o.contentId,"aria-labelledby":o.triggerId,...i,...n,ref:t,onCloseAutoFocus:m(e.onCloseAutoFocus,e=>{var t;l.current||null==(t=o.triggerRef.current)||t.focus(),l.current=!1,e.preventDefault()}),onInteractOutside:m(e.onInteractOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;(!o.modal||n)&&(l.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)"}})});ts.displayName=tu,S.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=tt(r);return(0,T.jsx)(eT,{...o,...n,ref:t})}).displayName="DropdownMenuGroup",S.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=tt(r);return(0,T.jsx)(eE,{...o,...n,ref:t})}).displayName="DropdownMenuLabel";var td=S.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=tt(r);return(0,T.jsx)(eN,{...o,...n,ref:t})});td.displayName="DropdownMenuItem",S.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=tt(r);return(0,T.jsx)(eK,{...o,...n,ref:t})}).displayName="DropdownMenuCheckboxItem";var tc=S.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=tt(r);return(0,T.jsx)(eU,{...o,...n,ref:t})});tc.displayName="DropdownMenuRadioGroup";var tf=S.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=tt(r);return(0,T.jsx)(eV,{...o,...n,ref:t})});tf.displayName="DropdownMenuRadioItem";var tp=S.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=tt(r);return(0,T.jsx)(eY,{...o,...n,ref:t})});tp.displayName="DropdownMenuItemIndicator",S.forwardRef((e,t)=>
1{let{__scopeDropdownMenu:r,...n}=e,o=tt(r);return(0,T.jsx)(eq,{...o,...n,ref:t})}).displayName="DropdownMenuSeparator",S.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=tt(r);return(0,T.jsx)(eZ,{...o,...n,ref:t})}).displayName="DropdownMenuArrow",S.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=tt(r);return(0,T.jsx)(e1,{...o,...n,ref:t})}).displayName="DropdownMenuSubTrigger",S.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=tt(r);return(0,T.jsx)(e3,{...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";let th=to,tv=tl,tm=ta,tw=tc,tg=(0,S.forwardRef)(({children:e,disabled:t,"data-highlighted":r,...n},o)=>(0,T.jsx)("li",{className:v(`
2      focus-visible:outline-none
3      ${t?"disabled":""}
4    `),"data-highlighted":r,...n,ref:o,children:e instanceof Function?e({highlighted:void 0!==r}):e})),tx=A`
5  menu
6  rounded-box
7  bg-base-200
8  shadow-xl
9  z-10
10  max-h-(--radix-dropdown-menu-content-available-height)
11`("ul"),ty=(0,S.forwardRef)(({className:e,children:t,...r},n)=>(0,T.jsx)(ts,{...r,asChild:!0,ref:n,children:(0,T.jsx)(tx,{className:e,children:t})})),tR=(0,S.forwardRef)(({children:e,_disabled:t,link:r,onSelect:n,...o},i)=>{let l=void 0===r?n:"function"==typeof r?r:()=>window.open(r,"_self");return(0,T.jsx)(td,{...o,onSelect:l,asChild:!0,ref:i,children:(0,T.jsx)(tg,{children:e})})}),tb=({children:e,...t})=>(0,T.jsx)(tf,{...t,asChild:!0,children:(0,T.jsx)(tg,{children:(0,T.jsxs)("button",{type:"button",children:[(0,T.jsx)("div",{className:"w-4",children:(0,T.jsx)(tp,{children:(0,T.jsx)(n,{})})}),(0,T.jsx)("div",{children:e})]})})});export{ty as Content$2,tR as Item,tm as Portal$4,tw as RadioGroup,tb as RadioItem,th as Root$1,tv as Trigger$2,E as createCollection,K as useDirection};

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.