PageSourceSearch

https://app.karax.ai/_next/static/chunks/vendor-shared-cbdef5fd-ea0e71cfe24217a5.js

js karax.ai collected 2026-10-01 23:55:56 UTC 25,539 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8229],{51777:function(e,t,r){r.d(t,{VY:function(){return H},h_:function(){return K},fC:function(){return z},xz:function(){return B}});var n=r(2265),o=r(6741),l=r(98575),i=r(73966),a=r(22308),u=r(86097),s=r(99103),c=r(99255),d=r(23680),f=r(83832),p=r(71599),v=r(82912),m=r(57437),h=n.forwardRef((e,t)=>{let{children:r,...o}=e,l=n.Children.toArray(r),i=l.find(w);if(i){let e=i.props.children,r=l.map(t=>t!==i?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,m.jsx)(g,{...o,ref:t,children:n.isValidElement(e)?n.cloneElement(e,void 0,r):null})}return(0,m.jsx)(g,{...o,ref:t,children:r})});h.displayName="Slot";var g=n.forwardRef((e,t)=>{let{children:r,...o}=e;if(n.isValidElement(r)){var i,a;let e,u;let s=(e=null===(i=Object.getOwnPropertyDescriptor(r.props,"ref"))||void 0===i?void 0:i.get)&&"isReactWarning"in e&&e.isReactWarning?r.ref:(e=null===(a=Object.getOwnPropertyDescriptor(r,"ref"))||void 0===a?void 0:a.get)&&"isReactWarning"in e&&e.isReactWarning?r.props.ref:r.props.ref||r.ref;return n.cloneElement(r,{...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]=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];l(...t),o(...t)}:o&&(r[n]=o):"style"===n?r[n]={...o,...l}:"className"===n&&(r[n]=[o,l].filter(Boolean).join(" "))}return{...e,...r}}(o,r.props),ref:t?(0,l.F)(t,s):s})}return n.Children.count(r)>1?n.Children.only(null):null});g.displayName="SlotClone";var y=e=>{let{children:t}=e;return(0,m.jsx)(m.Fragment,{children:t})};function w(e){return n.isValidElement(e)&&e.type===y}var x=r(80886),b=r(5478),R=r(60703),C="Popover",[N,E]=(0,i.b)(C,[d.D7]),j=(0,d.D7)(),[A,P]=N(C),O=e=>{let{__scopePopover:t,children:r,open:o,defaultOpen:l,onOpenChange:i,modal:a=!1}=e,u=j(t),s=n.useRef(null),[f,p]=n.useState(!1),[v=!1,h]=(0,x.T)({prop:o,defaultProp:l,onChange:i});return(0,m.jsx)(d.fC,{...u,children:(0,m.jsx)(A,{scope:t,contentId:(0,c.M)(),triggerRef:s,open:v,onOpenChange:h,onOpenToggle:n.useCallback(()=>h(e=>!e),[h]),hasCustomAnchor:f,onCustomAnchorAdd:n.useCallback(()=>p(!0),[]),onCustomAnchorRemove:n.useCallback(()=>p(!1),[]),modal:a,children:r})})};O.displayName=C;var S="PopoverAnchor";n.forwardRef((e,t)=>{let{__scopePopover:r,...o}=e,l=P(S,r),i=j(r),{onCustomAnchorAdd:a,onCustomAnchorRemove:u}=l;return n.useEffect(()=>(a(),()=>u()),[a,u]),(0,m.jsx)(d.ee,{...i,...o,ref:t})}).displayName=S;var M="PopoverTrigger",F=n.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,i=P(M,r),a=j(r),u=(0,l.e)(t,i.triggerRef),s=(0,m.jsx)(v.WV.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":Y(i.open),...n,ref:u,onClick:(0,o.M)(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:(0,m.jsx)(d.ee,{asChild:!0,...a,children:s})});F.displayName=M;var _="PopoverPortal",[D,I]=N(_,{forceMount:void 0}),T=e=>{let{__scopePopover:t,forceMount:r,children:n,container:o}=e,l=P(_,t);return(0,m.jsx)(D,{scope:t,forceMount:r,children:(0,m.jsx)(p.z,{present:r||l.open,children:(0,m.jsx)(f.h,{asChild:!0,container:o,children:n})})})};T.displayName=_;var W="PopoverContent",k=n.forwardRef((e,t)=>{let r=I(W,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,l=P(W,e.__scopePopover);return(0,m.jsx)(p.z,{present:n||l.open,children:l.modal?(0,m.jsx)(V,{...o,ref:t}):(0,m.jsx)($,{...o,ref:t})})});k.displayName=W;var V=n.forwardRef((e,t)=>{let r=P(W,e.__scopePopover),i=n.useRef(null),a=(0,l.e)(t,i),u=n.useRef(!1);return n.useEffect(()=>{let e=i.current;if(e)return(0,b.Ry)(e)},[]),(0,m.jsx)(R.Z,{as:h,allowPinchZoom:!0,children:(0,m.jsx)(U,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),u.current||null===(t=r.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,o.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;u.current=n},{checkForDefaultPrevented:!1}),onFocusOutside:(0,o.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),$=n.forwardRef((e,t)=>
1{let r=P(W,e.__scopePopover),o=n.useRef(!1),l=n.useRef(!1);return(0,m.jsx)(U,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var n,i;null===(n=e.onCloseAutoFocus)||void 0===n||n.call(e,t),t.defaultPrevented||(o.current||null===(i=r.triggerRef.current)||void 0===i||i.focus(),t.preventDefault()),o.current=!1,l.current=!1},onInteractOutside:t=>{var n,i;null===(n=e.onInteractOutside)||void 0===n||n.call(e,t),t.defaultPrevented||(o.current=!0,"pointerdown"!==t.detail.originalEvent.type||(l.current=!0));let a=t.target;(null===(i=r.triggerRef.current)||void 0===i?void 0:i.contains(a))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&l.current&&t.preventDefault()}})}),U=n.forwardRef((e,t)=>{let{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:l,disableOutsidePointerEvents:i,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:v,...h}=e,g=P(W,r),y=j(r);return(0,u.EW)(),(0,m.jsx)(s.M,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:l,children:(0,m.jsx)(a.XB,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:v,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:p,onDismiss:()=>g.onOpenChange(!1),children:(0,m.jsx)(d.VY,{"data-state":Y(g.open),role:"dialog",id:g.contentId,...y,...h,ref:t,style:{...h.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)"}})})})}),L="PopoverClose";function Y(e){return e?"open":"closed"}n.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,l=P(L,r);return(0,m.jsx)(v.WV.button,{type:"button",...n,ref:t,onClick:(0,o.M)(e.onClick,()=>l.onOpenChange(!1))})}).displayName=L,n.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,o=j(r);return(0,m.jsx)(d.Eh,{...o,...n,ref:t})}).displayName="PopoverArrow";var z=O,B=F,K=T,H=k},23680:function(e,t,r){r.d(t,{ee:function(){return F},Eh:function(){return D},VY:function(){return _},fC:function(){return M},D7:function(){return m}});var n=r(2265),o=r(97859),l=r(50032),i=r(61168),a=r(98575),u=r(57437),s=r(82912),c=r(26606),d=r(61188),f=r(90420),p="Popper",[v,m]=function(e,t=[]){let r=[],o=()=>{let t=r.map(e=>n.createContext(e));return function(r){let o=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:o}}),[r,o])}};return o.scopeName=e,[function(t,o){let l=n.createContext(o),i=r.length;function a(t){let{scope:r,children:o,...a}=t,s=r?.[e][i]||l,c=n.useMemo(()=>a,Object.values(a));return(0,u.jsx)(s.Provider,{value:c,children:o})}return r=[...r,o],a.displayName=t+"Provider",[a,function(r,a){let u=a?.[e][i]||l,s=n.useContext(u);if(s)return s;if(void 0!==o)return o;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=r.reduce((t,{useScope:r,scopeName:n})=>{let o=r(e)[`__scope${n}`];return{...t,...o}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}(o,...t)]}(p),[h,g]=v(p),y=e=>{let{__scopePopper:t,children:r}=e,[o,l]=n.useState(null);return(0,u.jsx)(h,{scope:t,anchor:o,onAnchorChange:l,children:r})};y.displayName=p;var w="PopperAnchor",x=n.forwardRef((e,t)=>{let{__scopePopper:r,virtualRef:o,...l}=e,i=g(w,r),c=n.useRef(null),d=(0,a.e)(t,c);return n.useEffect(()=>{i.onAnchorChange((null==o?void 0:o.current)||c.current)}),o?null:(0,u.jsx)(s.WV.div,{...l,ref:d})});x.displayName=w;var b="PopperContent",[R,C]=v(b),N=n.forwardRef((e,t)=>{var r,i,p,v,m,h,y,w;let{__scopePopper:x,side:C="bottom",sideOffset:N=0,align:E="center",alignOffset:j=0,arrowPadding:A=0,avoidCollisions:M=!0,collisionBoundary:F=[],collisionPadding:_=0,sticky:D="partial",hideWhenDetached:I=!1,updatePositionStrategy:T="optimized",onPlaced:W,...k}=e,V=g(b,x),[$,U]=n.useState(null),L=(0,a.e)(t,e=>U(e)),[Y,z]=n.useState(null),B=(0,f.t)(Y),K=null!==(y=null==B?void 0:B.width)&&void 0!==y?y:0,H=null!==(w=null==B?void 0:B.height)&&void 0!==w?w:0,G="number"==typeof _?_:{top:0,right:0,bottom:0,left:0,..._},X=Array.isArray(F)?F:[F],Z=X.length>0,q={padding:G,boundary:X.filter(P),altBoundary:Z},{refs:J,floatingStyles:Q,placement:ee,isPositioned:et,middlewareData:er}=(0,o.YF)({strategy:"fixed",placement:C+("center"!==E?"-"+E:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,l.Me)(...t,{animationFrame:"always"===T})},elements:{reference:V.anchor},middleware:[(0,o.cv)({mainAxis:N+H,alignmentAxis:j}),M&&(0,o.uY)({mainAxis:!0,crossAxis:!1,limiter:"partial"===D?(0,o.dr)():void 0,...q}),M&&(0,o.RR)({...q}),(0,o.dp)({...q,apply:e=>{let{elements:t,rects:r,availableWidth:n,availableHeight:o}=e,{width:l,height:i}=r.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width","".concat(n,"px")),a.setProperty("--radix-popper-available-height","".concat(o,"px")),a.setProperty("--radix-popper-anchor-width","".concat(l,"px")),a.setProperty("--radix-popper-anchor-height","".concat(i,"px"))}}),Y&&(0,o.x7)({element:Y,padding:A}),O({arrowWidth:K,arrowHeight:H}),I&&(0,o.Cp)({strategy:"referenceHidden",...q})]}),[en,eo]=S(ee),el=(0,c.W)(W);(0,d.b)(()=>{et&&(null==el||el())},[et,el]);let ei=null===(r=er.arrow)||void 0===r?void 0:r.x,ea=null===(i=er.arrow)||void 0===i?void 0:i.y,eu=(null===(p=er.arrow)||void 0===p?void 0:p.centerOffset)!==0,[es,ec]=n.useState();return(0,d.b)(()=>{$&&ec(window.getComputedStyle($).zIndex)},[$]),(0,u.jsx)("div",{ref:J.setFloating,"data-radix-popper-content-wrapper":"",style:{...Q,transform:et?Q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:es,"--radix-popper-transform-origin":[null===(v=er.transformOrigin)||void 0===v?void 0:v.x,null===(m=er.transformOrigin)||void 0===m?void 0:m.y].join(" "),...(null===(h=er.hide)||void 0===h?void 0:h.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,u.jsx)(R,{scope:x,placedSide:en,onArrowChange:z,arrowX:ei,arrowY:ea,shouldHideArrow:eu,children:(0,u.jsx)(s.WV.div,{"data-side":en,"data-align":eo,...k,ref:L,style:{...k.style,animation:et?void 0:"none"}})})})});N.displayName=b;var E="PopperArrow",j={top:"bottom",right:"left",bottom:"top",left:"r
1ight"},A=n.forwardRef(function(e,t){let{__scopePopper:r,...n}=e,o=C(E,r),l=j[o.placedSide];return(0,u.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,u.jsx)(i.f,{...n,ref:t,style:{...n.style,display:"block"}})})});function P(e){return null!==e}A.displayName=E;var O=e=>({name:"transformOrigin",options:e,fn(t){var r,n,o,l,i;let{placement:a,rects:u,middlewareData:s}=t,c=(null===(r=s.arrow)||void 0===r?void 0:r.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,v]=S(a),m={start:"0%",center:"50%",end:"100%"}[v],h=(null!==(l=null===(n=s.arrow)||void 0===n?void 0:n.x)&&void 0!==l?l:0)+d/2,g=(null!==(i=null===(o=s.arrow)||void 0===o?void 0:o.y)&&void 0!==i?i:0)+f/2,y="",w="";return"bottom"===p?(y=c?m:"".concat(h,"px"),w="".concat(-f,"px")):"top"===p?(y=c?m:"".concat(h,"px"),w="".concat(u.floating.height+f,"px")):"right"===p?(y="".concat(-f,"px"),w=c?m:"".concat(g,"px")):"left"===p&&(y="".concat(u.floating.width+f,"px"),w=c?m:"".concat(g,"px")),{data:{x:y,y:w}}}});function S(e){let[t,r="center"]=e.split("-");return[t,r]}var M=y,F=x,_=N,D=A},83832:function(e,t,r){r.d(t,{h:function(){return u}});var n=r(2265),o=r(54887),l=r(82912),i=r(61188),a=r(57437),u=n.forwardRef((e,t)=>{var r,u;let{container:s,...c}=e,[d,f]=n.useState(!1);(0,i.b)(()=>f(!0),[]);let p=s||d&&(null===(u=globalThis)||void 0===u?void 0:null===(r=u.document)||void 0===r?void 0:r.body);return p?o.createPortal((0,a.jsx)(l.WV.div,{...c,ref:t}),p):null});u.displayName="Portal"},71599:function(e,t,r){r.d(t,{z:function(){return i}});var n=r(2265),o=r(98575),l=r(61188),i=e=>{var t,r;let i,u;let{present:s,children:c}=e,d=function(e){var t,r;let[o,i]=n.useState(),u=n.useRef({}),s=n.useRef(e),c=n.useRef("none"),[d,f]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},n.useReducer((e,t)=>{let n=r[e][t];return null!=n?n:e},t));return n.useEffect(()=>{let e=a(u.current);c.current="mounted"===d?e:"none"},[d]),(0,l.b)(()=>{let t=u.current,r=s.current;if(r!==e){let n=c.current,o=a(t);e?f("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):r&&n!==o?f("ANIMATION_OUT"):f("UNMOUNT"),s.current=e}},[e,f]),(0,l.b)(()=>{if(o){var e;let t;let r=null!==(e=o.ownerDocument.defaultView)&&void 0!==e?e:window,n=e=>{let n=a(u.current).includes(e.animationName);if(e.target===o&&n&&(f("ANIMATION_END"),!s.current)){let e=o.style.animationFillMode;o.style.animationFillMode="forwards",t=r.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=e)})}},l=e=>{e.target===o&&(c.current=a(u.current))};return o.addEventListener("animationstart",l),o.addEventListener("animationcancel",n),o.addEventListener("animationend",n),()=>{r.clearTimeout(t),o.removeEventListener("animationstart",l),o.removeEventListener("animationcancel",n),o.removeEventListener("animationend",n)}}f("ANIMATION_END")},[o,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:n.useCallback(e=>{e&&(u.current=getComputedStyle(e)),i(e)},[])}}(s),f="function"==typeof c?c({present:d.isPresent}):n.Children.only(c),p=(0,o.e)(d.ref,(i=null===(t=Object.getOwnPropertyDescriptor(f.props,"ref"))||void 0===t?void 0:t.get)&&"isReactWarning"in i&&i.isReactWarning?f.ref:(i=null===(r=Object.getOwnPropertyDescriptor(f,"ref"))||void 0===r?void 0:r.get)&&"isReactWarning"in i&&i.isReactWarning?f.props.ref:f.props.ref||f.ref);return"function"==typeof c||d.isPresent?n.cloneElement(f,{ref:p}):null};function a(e){return(null==e?void 0:e.animationName)||"none"}i.displayName="Presence"},82912:function(e,t,r){r.d(t,{WV:function(){return d},jH:function(){return f}});var n=r(2265),o=r(54887),l=r(98575),i=r(57437),a=n.forwardRef((e,t)=>
1{let{children:r,...o}=e,l=n.Children.toArray(r),a=l.find(c);if(a){let e=a.props.children,r=l.map(t=>t!==a?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,i.jsx)(u,{...o,ref:t,children:n.isValidElement(e)?n.cloneElement(e,void 0,r):null})}return(0,i.jsx)(u,{...o,ref:t,children:r})});a.displayName="Slot";var u=n.forwardRef((e,t)=>{let{children:r,...o}=e;if(n.isValidElement(r)){var i,a;let e,u;let s=(e=null===(i=Object.getOwnPropertyDescriptor(r.props,"ref"))||void 0===i?void 0:i.get)&&"isReactWarning"in e&&e.isReactWarning?r.ref:(e=null===(a=Object.getOwnPropertyDescriptor(r,"ref"))||void 0===a?void 0:a.get)&&"isReactWarning"in e&&e.isReactWarning?r.props.ref:r.props.ref||r.ref;return n.cloneElement(r,{...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]=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];l(...t),o(...t)}:o&&(r[n]=o):"style"===n?r[n]={...o,...l}:"className"===n&&(r[n]=[o,l].filter(Boolean).join(" "))}return{...e,...r}}(o,r.props),ref:t?(0,l.F)(t,s):s})}return n.Children.count(r)>1?n.Children.only(null):null});u.displayName="SlotClone";var s=e=>{let{children:t}=e;return(0,i.jsx)(i.Fragment,{children:t})};function c(e){return n.isValidElement(e)&&e.type===s}var d=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=n.forwardRef((e,r)=>{let{asChild:n,...o}=e,l=n?a:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(l,{...o,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function f(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}},21555:function(e,t,r){r.d(t,{ck:function(){return W},fC:function(){return T},Pc:function(){return A}});var n=r(2265),o=r.t(n,2);function l(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}"undefined"!=typeof window&&window.document&&window.document.createElement,r(53359),r(31378),r(70262);var i=r(57437);function a(e,t=[]){let r=[],o=()=>{let t=r.map(e=>n.createContext(e));return function(r){let o=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:o}}),[r,o])}};return o.scopeName=e,[function(t,o){let l=n.createContext(o),a=r.length;r=[...r,o];let u=t=>{let{scope:r,children:o,...u}=t,s=r?.[e]?.[a]||l,c=n.useMemo(()=>u,Object.values(u));return(0,i.jsx)(s.Provider,{value:c,children:o})};return u.displayName=t+"Provider",[u,function(r,i){let u=i?.[e]?.[a]||l,s=n.useContext(u);if(s)return s;if(void 0!==o)return o;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=r.reduce((t,{useScope:r,scopeName:n})=>{let o=r(e)[`__scope${n}`];return{...t,...o}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}(o,...t)]}function u(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function s(...e){return t=>{let r=!1,n=e.map(e=>{let n=u(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():u(e[t],null)}}}}function c(...e){return n.useCallback(s(...e),e)}function d(e){let t=function(e){let t=n.forwardRef((e,t)=>{let{children:r,...o}=e;if(n.isValidElement(r)){var l,i;let e,a;let u=(e=null===(l=Object.getOwnPropertyDescriptor(r.props,"ref"))||void 0===l?void 0:l.get)&&"isReactWarning"in e&&e.isReactWarning?r.ref:(e=null===(i=Object.getOwnPropertyDescriptor(r,"ref"))||void 0===i?void 0:i.get)&&"isReactWarning"in e&&e.isReactWarning?r.props.ref:r.props.ref||r.ref,c=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]=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let n=l(...t);return o(...t),n}:o&&(r[n]=o):"style"===n?r[n]={...o,...l}:"className"===n&&(r[n]=[o,l].filter(Boolean).join(" "))}return{...e,...r}}(o,r.props);return r.type!==n.Fragment&&(c.ref=t?s(t,u):u),n.cloneElement(r,c)}return n.Children.count(r)>1?n.Children.only(null):null});return t.displayName="".concat(e,".SlotClone"),t}(e),r=n.forwardRef((e,r)=>{let{children:o,...l}=e,a=n.Children.toArray(o),u=a.find(p);if(u){let e=u.props.children,o=a.map(t=>t!==u?t:n.Children.count(e)>
11?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,i.jsx)(t,{...l,ref:r,children:n.isValidElement(e)?n.cloneElement(e,void 0,o):null})}return(0,i.jsx)(t,{...l,ref:r,children:o})});return r.displayName="".concat(e,".Slot"),r}var f=Symbol("radix.slottable");function p(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===f}var v=globalThis?.document?n.useLayoutEffect:()=>{},m=o[" useId ".trim().toString()]||(()=>void 0),h=0;r(54887);var g=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=d(`Primitive.${t}`),o=n.forwardRef((e,n)=>{let{asChild:o,...l}=e,a=o?r:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(a,{...l,ref:n})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{}),y=o[" useInsertionEffect ".trim().toString()]||v;Symbol("RADIX:SYNC_STATE");var w=n.createContext(void 0),x="rovingFocusGroup.onEntryFocus",b={bubbles:!1,cancelable:!0},R="RovingFocusGroup",[C,N,E]=function(e){let t=e+"CollectionProvider",[r,o]=a(t),[l,u]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=e=>{let{scope:t,children:r}=e,o=n.useRef(null),a=n.useRef(new Map).current;return(0,i.jsx)(l,{scope:t,itemMap:a,collectionRef:o,children:r})};s.displayName=t;let f=e+"CollectionSlot",p=d(f),v=n.forwardRef((e,t)=>{let{scope:r,children:n}=e,o=c(t,u(f,r).collectionRef);return(0,i.jsx)(p,{ref:o,children:n})});v.displayName=f;let m=e+"CollectionItemSlot",h="data-radix-collection-item",g=d(m),y=n.forwardRef((e,t)=>{let{scope:r,children:o,...l}=e,a=n.useRef(null),s=c(t,a),d=u(m,r);return n.useEffect(()=>(d.itemMap.set(a,{ref:a,...l}),()=>void d.itemMap.delete(a))),(0,i.jsx)(g,{[h]:"",ref:s,children:o})});return y.displayName=m,[{Provider:s,Slot:v,ItemSlot:y},function(t){let r=u(e+"CollectionConsumer",t);return n.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(h,"]")));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},o]}(R),[j,A]=a(R,[E]),[P,O]=j(R),S=n.forwardRef((e,t)=>(0,i.jsx)(C.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,i.jsx)(C.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,i.jsx)(M,{...e,ref:t})})}));S.displayName=R;var M=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:o,loop:a=!1,dir:u,currentTabStopId:s,defaultCurrentTabStopId:d,onCurrentTabStopIdChange:f,onEntryFocus:p,preventScrollOnEntryFocus:v=!1,...m}=e,h=n.useRef(null),C=c(t,h),E=function(e){let t=n.useContext(w);return e||t||"ltr"}(u),[j,A]=function({prop:e,defaultProp:t,onChange:r=()=>{},caller:o}){let[l,i,a]=function({defaultProp:e,onChange:t}){let[r,o]=n.useState(e),l=n.useRef(r),i=n.useRef(t);return y(()=>{i.current=t},[t]),n.useEffect(()=>{l.current!==r&&(i.current?.(r),l.current=r)},[r,l]),[r,o,i]}({defaultProp:t,onChange:r}),u=void 0!==e,s=u?e:l;{let t=n.useRef(void 0!==e);n.useEffect(()=>{let e=t.current;if(e!==u){let t=u?"controlled":"uncontrolled";console.warn(`${o} is changing from ${e?"controlled":"uncontrolled"} to ${t}. 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.`)}t.current=u},[u,o])}return[s,n.useCallback(t=>{if(u){let r="function"==typeof t?t(e):t;r!==e&&a.current?.(r)}else i(t)},[u,e,i,a])]}({prop:s,defaultProp:null!=d?d:null,onChange:f,caller:R}),[O,S]=n.useState(!1),M=function(e){let t=n.useRef(e);return n.useEffect(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}(p),F=N(r),_=n.useRef(!1),[D,T]=n.useState(0);return n.useEffect(()=>{let e=h.current;if(e)return e.addEventListener(x,M),()=>e.removeEventListener(x,M)},[M]),(0,i.jsx)(P,{scope:r,orientation:o,dir:E,loop:a,currentTabStopId:j,onItemFocus:n.useCallback(e=>A(e),[A]),onItemShiftTab:n.useCallback(()=>S(!0),[]),onFocusableItemAdd:n.useCallback(()=>T(e=>e+1),[]),onFocusableItemRemove:n.useCallback(()=>T(e=>e-1),[]),children:(0,i.jsx)(g.div,{tabIndex:O||0===D?-1:0,"data-orientation":o,...m,ref:C,style:{outline:"none",...e.style},onMouseDown:l(e.onMouseDown,()=>{_.current=!0}),onFocus:l(e.onFocus,e=>{let t=!_.current;if(e.target===e.currentTarget&&t&&!O){let t=new CustomEvent(x,b);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=F().filter(e=>
1e.focusable);I([e.find(e=>e.active),e.find(e=>e.id===j),...e].filter(Boolean).map(e=>e.ref.current),v)}}_.current=!1}),onBlur:l(e.onBlur,()=>S(!1))})})}),F="RovingFocusGroupItem",_=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:o=!0,active:a=!1,tabStopId:u,children:s,...c}=e,d=function(e){let[t,r]=n.useState(m());return v(()=>{r(e=>e??String(h++))},[void 0]),t?`radix-${t}`:""}(),f=u||d,p=O(F,r),y=p.currentTabStopId===f,w=N(r),{onFocusableItemAdd:x,onFocusableItemRemove:b,currentTabStopId:R}=p;return n.useEffect(()=>{if(o)return x(),()=>b()},[o,x,b]),(0,i.jsx)(C.ItemSlot,{scope:r,id:f,focusable:o,active:a,children:(0,i.jsx)(g.span,{tabIndex:y?0:-1,"data-orientation":p.orientation,...c,ref:t,onMouseDown:l(e.onMouseDown,e=>{o?p.onItemFocus(f):e.preventDefault()}),onFocus:l(e.onFocus,()=>p.onItemFocus(f)),onKeyDown:l(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){p.onItemShiftTab();return}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 D[o]}(e,p.orientation,p.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=w().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 l=o.indexOf(e.currentTarget);o=p.loop?(r=o,n=l+1,r.map((e,t)=>r[(n+t)%r.length])):o.slice(l+1)}setTimeout(()=>I(o))}}),children:"function"==typeof s?s({isCurrentTabStop:y,hasTabStop:null!=R}):s})})});_.displayName=F;var D={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function I(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 T=S,W=_}}]);

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.