PageSourceSearch

https://www.automox.com/_next/static/chunks/7040-91abc4f597056e91.js

js automox.com collected 2026-09-24 08:46:42 UTC 43,852 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7040],{3468:(e,t,r)=>{r.d(t,{A:()=>o});var n=r(12115),i=r(95155);function o(e,t=[]){let r=[],l=()=>{let t=r.map(e=>n.createContext(e));return function(r){let i=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:i}}),[r,i])}};return l.scopeName=e,[function(t,o){let l=n.createContext(o),a=r.length;r=[...r,o];let s=t=>{let{scope:r,children:o,...s}=t,u=r?.[e]?.[a]||l,d=n.useMemo(()=>s,Object.values(s));return(0,i.jsx)(u.Provider,{value:d,children:o})};return s.displayName=t+"Provider",[s,function(r,i){let s=i?.[e]?.[a]||l,u=n.useContext(s);if(u)return u;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 i=r.reduce((t,{useScope:r,scopeName:n})=>{let i=r(e)[`__scope${n}`];return{...t,...i}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}(l,...t)]}},4129:(e,t,r)=>{r.d(t,{N:()=>i});var n=r(12115),i=globalThis?.document?n.useLayoutEffect:()=>{}},15378:(e,t,r)=>{r.d(t,{_:()=>i});var n=r(96994);function i(e,t,r){var i=(0,n._)(e,t,"set");if(i.set)i.set.call(e,r);else{if(!i.writable)throw TypeError("attempted to set read only private field");i.value=r}return r}},23558:(e,t,r)=>{r.d(t,{i:()=>a});var n,i=r(12115),o=r(4129),l=(n||(n=r.t(i,2)))[" useInsertionEffect ".trim().toString()]||o.N;function a({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){let[o,a,s]=function({defaultProp:e,onChange:t}){let[r,n]=i.useState(e),o=i.useRef(r),a=i.useRef(t);return l(()=>{a.current=t},[t]),i.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}({defaultProp:t,onChange:r}),u=void 0!==e,d=u?e:o;{let t=i.useRef(void 0!==e);i.useEffect(()=>{let e=t.current;if(e!==u){let t=u?"controlled":"uncontrolled";console.warn(`${n} 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,n])}return[d,i.useCallback(t=>{if(u){let r="function"==typeof t?t(e):t;r!==e&&s.current?.(r)}else a(t)},[u,e,a,s])]}Symbol("RADIX:SYNC_STATE")},48233:(e,t,r)=>{r.d(t,{UC:()=>eD,C1:()=>ek,q7:()=>eP,N_:()=>eI,B8:()=>eT,bL:()=>ej,l9:()=>eS,LM:()=>eL});var n,i,o=r(12115),l=r(47650),a=r(3468),s=r(92556),u=r(94446),d=r(95155);function c(e){let t=function(e){let t=o.forwardRef((e,t)=>{let{children:r,...n}=e;if(o.isValidElement(r)){var i;let e,l,a=(i=r,(l=(e=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.ref:(l=(e=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.props.ref:i.props.ref||i.ref),s=function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==o.Fragment&&(s.ref=t?(0,u.t)(t,a):a),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,...i}=e,l=o.Children.toArray(n),a=l.find(p);if(a){let e=a.props.children,n=l.map(t=>t!==a?t:o.Children.count(e)>1?o.Children.only(null):o.isValidElement(e)?e.props.children:null);return(0,d.jsx)(t,{...i,ref:r,children:o.isValidElement(e)?o.cloneElement(e,void 0,n):null})}return(0,d.jsx)(t,{...i,ref:r,children:n})});return r.displayName=`${e}.Slot`,r}var f=Symbol("radix.slottable");function p(e){return o.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===f}var h=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=c(`Primitive.${t}`),n=o.forwardRef((e,n)=>{let{asChild:i,...o}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,d.jsx)(i?r:t,{...o,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function v(e,t){e&&l.flushSync(()=>
1e.dispatchEvent(t))}var m=r(23558),y=r(66218),w=r(4129),g=e=>{let{present:t,children:r}=e,n=function(e){var t,r;let[n,i]=o.useState(),l=o.useRef(null),a=o.useRef(e),s=o.useRef("none"),[u,d]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},o.useReducer((e,t)=>{let n=r[e][t];return null!=n?n:e},t));return o.useEffect(()=>{let e=x(l.current);s.current="mounted"===u?e:"none"},[u]),(0,w.N)(()=>{let t=l.current,r=a.current;if(r!==e){let n=s.current,i=x(t);e?d("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?d("UNMOUNT"):r&&n!==i?d("ANIMATION_OUT"):d("UNMOUNT"),a.current=e}},[e,d]),(0,w.N)(()=>{if(n){var e;let t,r=null!=(e=n.ownerDocument.defaultView)?e:window,i=e=>{let i=x(l.current).includes(CSS.escape(e.animationName));if(e.target===n&&i&&(d("ANIMATION_END"),!a.current)){let e=n.style.animationFillMode;n.style.animationFillMode="forwards",t=r.setTimeout(()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=e)})}},o=e=>{e.target===n&&(s.current=x(l.current))};return n.addEventListener("animationstart",o),n.addEventListener("animationcancel",i),n.addEventListener("animationend",i),()=>{r.clearTimeout(t),n.removeEventListener("animationstart",o),n.removeEventListener("animationcancel",i),n.removeEventListener("animationend",i)}}d("ANIMATION_END")},[n,d]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:o.useCallback(e=>{l.current=e?getComputedStyle(e):null,i(e)},[])}}(t),i="function"==typeof r?r({present:n.isPresent}):o.Children.only(r),l=(0,u.s)(n.ref,function(e){var t,r;let n=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,i=n&&"isReactWarning"in n&&n.isReactWarning;return i?e.ref:(i=(n=null==(r=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:r.get)&&"isReactWarning"in n&&n.isReactWarning)?e.props.ref:e.props.ref||e.ref}(i));return"function"==typeof r||n.isPresent?o.cloneElement(i,{ref:l}):null};function x(e){return(null==e?void 0:e.animationName)||"none"}g.displayName="Presence";var R=r(68946),b=r(67325),E=r(75777),N=r(15378);function C(e){let t=e+"CollectionProvider",[r,n]=(0,a.A)(t),[i,l]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=e=>{let{scope:t,children:r}=e,n=o.useRef(null),l=o.useRef(new Map).current;return(0,d.jsx)(i,{scope:t,itemMap:l,collectionRef:n,children:r})};s.displayName=t;let f=e+"CollectionSlot",p=c(f),h=o.forwardRef((e,t)=>{let{scope:r,children:n}=e,i=l(f,r),o=(0,u.s)(t,i.collectionRef);return(0,d.jsx)(p,{ref:o,children:n})});h.displayName=f;let v=e+"CollectionItemSlot",m="data-radix-collection-item",y=c(v),w=o.forwardRef((e,t)=>{let{scope:r,children:n,...i}=e,a=o.useRef(null),s=(0,u.s)(t,a),c=l(v,r);return o.useEffect(()=>(c.itemMap.set(a,{ref:a,...i}),()=>void c.itemMap.delete(a))),(0,d.jsx)(y,{...{[m]:""},ref:s,children:n})});return w.displayName=v,[{Provider:s,Slot:h,ItemSlot:w},function(t){let r=l(e+"CollectionConsumer",t);return o.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(m,"]")));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 A=new WeakMap;function _(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let r=function(e,t){let r=e.length,n=O(t),i=n>=0?n:r+n;return i<0||i>=r?-1:i}(e,t);return -1===r?void 0:e[r]}function O(e){return e!=e||0===e?0:Math.trunc(e)}function M(e){let t=o.useRef(e);return o.useEffect(()=>{t.current=e}),o.useMemo(()=>(...e)=>t.current?.(...e),[])}n=new WeakMap,class e extends Map{set(e,t){return A.get(this)&&(this.has(e)?(0,b._)(this,n)[(0,b._)(this,n).indexOf(e)]=e:(0,b._)(this,n).push(e)),super.set(e,t),this}insert(e,t,r){let i,o=this.has(t),l=(0,b._)(this,n).length,a=O(e),s=a>=0?a:l+a,u=s<0||s>=l?-1:s;if(u===this.size||o&&u===this.size-1||-1===u)return this.set(t,r),this;let d=this.size+ +!o;a<0&&s++;let c=[...(0,b._)(this,n)],f=!1;for(let e=s;e<d;e++)if(s===e){let n=c[e];c[e]===t&&(n=c[e+1]),o&&this.delete(t),i=this.get(n),this.set(t,r)}else{f||c[e-1]!==t||(f=!0);let r=c[f?e:e-1],n=i;i=this.get(r),this.delete(r),this.set(r,n)}return this}with(t,r,n){let i=new e(this);return i.insert(t,r,n),i}before(e){let t=(0,b._)(this,n).indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let i=(0,b._)(this,n).indexOf(e);return -1===i?this:this.insert(i,t,r)}after(e){let t=(0,b._)(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 i=(0,b._)(this,n).indexOf(e);return -1===i?this:this.insert(i+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return(0,N._)(this,n,[]),super.clear()}delete(e){let t=super.delete(e);return t&&(0,b._)(this,n).splice((0,b._)(this,n).indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=_((0,b._)(this,n),e);
1if(void 0!==t)return this.get(t)}entryAt(e){let t=_((0,b._)(this,n),e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return(0,b._)(this,n).indexOf(e)}keyAt(e){return _((0,b._)(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=[],i=0;for(let e of this)Reflect.apply(t,r,[e,i,this])&&n.push(e),i++;return new e(n)}map(t,r){let n=[],i=0;for(let e of this)n.push([e[0],Reflect.apply(t,r,[e,i,this])]),i++;return new e(n)}reduce(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let[n,i]=t,o=0,l=null!=i?i:this.at(0);for(let e of this)l=0===o&&1===t.length?e:Reflect.apply(n,this,[l,e,o,this]),o++;return l}reduceRight(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let[n,i]=t,o=null!=i?i:this.at(-1);for(let e=this.size-1;e>=0;e--){let r=this.at(e);o=e===this.size-1&&1===t.length?r:Reflect.apply(n,this,[o,r,e,this])}return o}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 i=[...this.entries()];return i.splice(...r),new e(i)}slice(t,r){let n=new e,i=this.size-1;if(void 0===t)return n;t<0&&(t+=this.size),void 0!==r&&r>0&&(i=r-1);for(let e=t;e<=i;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),(0,E._)(this,n,{writable:!0,value:void 0}),(0,N._)(this,n,[...super.keys()]),A.set(this,!0)}};var j="dismissableLayer.update",T=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),P=o.forwardRef((e,t)=>{var r,n;let{disableOutsidePointerEvents:l=!1,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:f,onInteractOutside:p,onDismiss:v,...m}=e,y=o.useContext(T),[w,g]=o.useState(null),x=null!=(n=null==w?void 0:w.ownerDocument)?n:null==(r=globalThis)?void 0:r.document,[,R]=o.useState({}),b=(0,u.s)(t,e=>g(e)),E=Array.from(y.layers),[N]=[...y.layersWithOutsidePointerEventsDisabled].slice(-1),C=E.indexOf(N),A=w?E.indexOf(w):-1,_=y.layersWithOutsidePointerEventsDisabled.size>0,O=A>=C,P=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,n=M(e),i=o.useRef(!1),l=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t=function(){I("dismissableLayer.pointerDownOutside",n,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(r.removeEventListener("click",l.current),l.current=t,r.addEventListener("click",l.current,{once:!0})):t()}else r.removeEventListener("click",l.current);i.current=!1},t=window.setTimeout(()=>{r.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),r.removeEventListener("pointerdown",e),r.removeEventListener("click",l.current)}},[r,n]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let t=e.target,r=[...y.branches].some(e=>e.contains(t));O&&!r&&(null==c||c(e),null==p||p(e),e.defaultPrevented||null==v||v())},x),k=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,n=M(e),i=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!i.current&&I("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return r.addEventListener("focusin",e),()=>r.removeEventListener("focusin",e)},[r,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{let t=e.target;![...y.branches].some(e=>e.contains(t))&&(null==f||f(e),null==p||p(e),e.defaultPrevented||null==v||v())},x);return!function(e,t=globalThis?.document){let r=M(e);o.useEffect(()=>{let e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[r,t])}(e=>{A===y.layers.size-1&&(null==a||a(e),!e.defaultPrevented&&v&&(e.preventDefault(),v()))},x),o.useEffect(()=>{if(w)return l&&(0===y.layersWithOutsidePointerEventsDisabled.size&&(i=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),y.layersWithOutsidePointerEventsDisabled.add(w)),y.layers.add(w),S(),()=>{l&&1===y.layersWithOutsidePointerEventsDisabled.size&&(x.body.style.pointerEvents=i)}},[w,x,l,y]),o.useEffect(()=>()=>{w&&(y.layers.delete(w),y.layersWithOutsidePointerEventsDisabled.delete(w),S())},[w,y]),o.useEffect(()=>{let e=()=>R({});return document.addEventListener(j,e),()=>document.removeEventListener(j,e)},[]),(0,d.jsx)(h.div,{...m,ref:b,style:{pointerEvents:_?O?"auto":"none":void 0,...e.style},onFocusCapture:(0,s.mK)(e.onFocusCapture,k.onFocusCapture),onBlurCapture:(0,s.mK)(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:(0,s.mK)(e.onPointerDownCapture,P.onPointerDownCapture)})});function S(){let e=new CustomEvent(j);document.dispatchEvent(e)}function I(e,t,r,n){let{discrete:i}=n,o=r.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),i?v(o,l):o.dispatchEvent(l)}P.displayName="DismissableLayer",o.forwardRef((e,t)=>
1{let r=o.useContext(T),n=o.useRef(null),i=(0,u.s)(t,n);return o.useEffect(()=>{let e=n.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,d.jsx)(h.div,{...e,ref:i})}).displayName="DismissableLayerBranch";var k=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"}),D=o.forwardRef((e,t)=>(0,d.jsx)(h.span,{...e,ref:t,style:{...k,...e.style}}));D.displayName="VisuallyHidden";var L="NavigationMenu",[z,F,K]=C(L),[W,U,V]=C(L),[$,B]=(0,a.A)(L,[K,V]),[H,q]=$(L),[Y,G]=$(L),X=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,value:n,onValueChange:i,defaultValue:l,delayDuration:a=200,skipDelayDuration:s=300,orientation:c="horizontal",dir:f,...p}=e,[v,w]=o.useState(null),g=(0,u.s)(t,e=>w(e)),x=(0,y.jH)(f),R=o.useRef(0),b=o.useRef(0),E=o.useRef(0),[N,C]=o.useState(!0),[A,_]=(0,m.i)({prop:n,onChange:e=>{let t=s>0;""!==e?(window.clearTimeout(E.current),t&&C(!1)):(window.clearTimeout(E.current),E.current=window.setTimeout(()=>C(!0),s)),null==i||i(e)},defaultProp:null!=l?l:"",caller:L}),O=o.useCallback(()=>{window.clearTimeout(b.current),b.current=window.setTimeout(()=>_(""),150)},[_]),M=o.useCallback(e=>{window.clearTimeout(b.current),_(e)},[_]),j=o.useCallback(e=>{A===e?window.clearTimeout(b.current):R.current=window.setTimeout(()=>{window.clearTimeout(b.current),_(e)},a)},[A,_,a]);return o.useEffect(()=>()=>{window.clearTimeout(R.current),window.clearTimeout(b.current),window.clearTimeout(E.current)},[]),(0,d.jsx)(J,{scope:r,isRootMenu:!0,value:A,dir:x,orientation:c,rootNavigationMenu:v,onTriggerEnter:e=>{window.clearTimeout(R.current),N?j(e):M(e)},onTriggerLeave:()=>{window.clearTimeout(R.current),O()},onContentEnter:()=>window.clearTimeout(b.current),onContentLeave:O,onItemSelect:e=>{_(t=>t===e?"":e)},onItemDismiss:()=>_(""),children:(0,d.jsx)(h.nav,{"aria-label":"Main","data-orientation":c,dir:x,...p,ref:g})})});X.displayName=L;var Z="NavigationMenuSub";o.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,value:n,onValueChange:i,defaultValue:o,orientation:l="horizontal",...a}=e,s=q(Z,r),[u,c]=(0,m.i)({prop:n,onChange:i,defaultProp:null!=o?o:"",caller:Z});return(0,d.jsx)(J,{scope:r,isRootMenu:!1,value:u,dir:s.dir,orientation:l,rootNavigationMenu:s.rootNavigationMenu,onTriggerEnter:e=>c(e),onItemSelect:e=>c(e),onItemDismiss:()=>c(""),children:(0,d.jsx)(h.div,{"data-orientation":l,...a,ref:t})})}).displayName=Z;var J=e=>{let{scope:t,isRootMenu:r,rootNavigationMenu:n,dir:i,orientation:l,children:a,value:s,onItemSelect:u,onItemDismiss:c,onTriggerEnter:f,onTriggerLeave:p,onContentEnter:h,onContentLeave:v}=e,[m,y]=o.useState(null),[w,g]=o.useState(new Map),[x,b]=o.useState(null);return(0,d.jsx)(H,{scope:t,isRootMenu:r,rootNavigationMenu:n,value:s,previousValue:function(e){let t=o.useRef({value:e,previous:e});return o.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(s),baseId:(0,R.B)(),dir:i,orientation:l,viewport:m,onViewportChange:y,indicatorTrack:x,onIndicatorTrackChange:b,onTriggerEnter:M(f),onTriggerLeave:M(p),onContentEnter:M(h),onContentLeave:M(v),onItemSelect:M(u),onItemDismiss:M(c),onViewportContentChange:o.useCallback((e,t)=>{g(r=>(r.set(e,t),new Map(r)))},[]),onViewportContentRemove:o.useCallback(e=>{g(t=>t.has(e)?(t.delete(e),new Map(t)):t)},[]),children:(0,d.jsx)(z.Provider,{scope:t,children:(0,d.jsx)(Y,{scope:t,items:w,children:a})})})},Q="NavigationMenuList",ee=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,...n}=e,i=q(Q,r),o=(0,d.jsx)(h.ul,{"data-orientation":i.orientation,...n,ref:t});return(0,d.jsx)(h.div,{style:{position:"relative"},ref:i.onIndicatorTrackChange,children:(0,d.jsx)(z.Slot,{scope:r,children:i.isRootMenu?(0,d.jsx)(ex,{asChild:!0,children:o}):o})})});ee.displayName=Q;var et="NavigationMenuItem",[er,en]=$(et),ei=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,value:n,...i}=e,l=(0,R.B)(),a=o.useRef(null),s=o.useRef(null),u=o.useRef(null),c=o.useRef(()=>{}),f=o.useRef(!1),p=o.useCallback(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"start";if(a.current){c.current();let t=eE(a.current);t.length&&eN("start"===e?t:t.reverse())}},[]),v=o.useCallback(()=>
1{if(a.current){let e=eE(a.current);e.length&&(c.current=function(e){return e.forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),()=>{e.forEach(e=>{let t=e.dataset.tabindex;e.setAttribute("tabindex",t)})}}(e))}},[]);return(0,d.jsx)(er,{scope:r,value:n||l||"LEGACY_REACT_AUTO_VALUE",triggerRef:s,contentRef:a,focusProxyRef:u,wasEscapeCloseRef:f,onEntryKeyDown:p,onFocusProxyEnter:p,onRootContentClose:v,onContentFocusOutside:v,children:(0,d.jsx)(h.li,{...i,ref:t})})});ei.displayName=et;var eo="NavigationMenuTrigger",el=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,disabled:n,...i}=e,l=q(eo,e.__scopeNavigationMenu),a=en(eo,e.__scopeNavigationMenu),c=o.useRef(null),f=(0,u.s)(c,a.triggerRef,t),p=e_(l.baseId,a.value),v=eO(l.baseId,a.value),m=o.useRef(!1),y=o.useRef(!1),w=a.value===l.value;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(z.ItemSlot,{scope:r,value:a.value,children:(0,d.jsx)(eb,{asChild:!0,children:(0,d.jsx)(h.button,{id:p,disabled:n,"data-disabled":n?"":void 0,"data-state":eA(w),"aria-expanded":w,"aria-controls":v,...i,ref:f,onPointerEnter:(0,s.mK)(e.onPointerEnter,()=>{y.current=!1,a.wasEscapeCloseRef.current=!1}),onPointerMove:(0,s.mK)(e.onPointerMove,eM(()=>{n||y.current||a.wasEscapeCloseRef.current||m.current||(l.onTriggerEnter(a.value),m.current=!0)})),onPointerLeave:(0,s.mK)(e.onPointerLeave,eM(()=>{n||(l.onTriggerLeave(),m.current=!1)})),onClick:(0,s.mK)(e.onClick,()=>{l.onItemSelect(a.value),y.current=w}),onKeyDown:(0,s.mK)(e.onKeyDown,e=>{let t={horizontal:"ArrowDown",vertical:"rtl"===l.dir?"ArrowLeft":"ArrowRight"}[l.orientation];w&&e.key===t&&(a.onEntryKeyDown(),e.preventDefault())})})})}),w&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(D,{"aria-hidden":!0,tabIndex:0,ref:a.focusProxyRef,onFocus:e=>{let t=a.contentRef.current,r=e.relatedTarget,n=r===c.current,i=null==t?void 0:t.contains(r);(n||!i)&&a.onFocusProxyEnter(n?"start":"end")}}),l.viewport&&(0,d.jsx)("span",{"aria-owns":v})]})]})});el.displayName=eo;var ea="navigationMenu.linkSelect",es=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,active:n,onSelect:i,...o}=e;return(0,d.jsx)(eb,{asChild:!0,children:(0,d.jsx)(h.a,{"data-active":n?"":void 0,"aria-current":n?"page":void 0,...o,ref:t,onClick:(0,s.mK)(e.onClick,e=>{let t=e.target,r=new CustomEvent(ea,{bubbles:!0,cancelable:!0});t.addEventListener(ea,e=>null==i?void 0:i(e),{once:!0}),v(t,r),r.defaultPrevented||e.metaKey||v(t,new CustomEvent(ev,{bubbles:!0,cancelable:!0}))},{checkForDefaultPrevented:!1})})})});es.displayName="NavigationMenuLink";var eu="NavigationMenuIndicator",ed=o.forwardRef((e,t)=>{let{forceMount:r,...n}=e,i=q(eu,e.__scopeNavigationMenu),o=!!i.value;return i.indicatorTrack?l.createPortal((0,d.jsx)(g,{present:r||o,children:(0,d.jsx)(ec,{...n,ref:t})}),i.indicatorTrack):null});ed.displayName=eu;var ec=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,...n}=e,i=q(eu,r),l=F(r),[a,s]=o.useState(null),[u,c]=o.useState(null),f="horizontal"===i.orientation,p=!!i.value;o.useEffect(()=>{var e;let t=null==(e=l().find(e=>e.value===i.value))?void 0:e.ref.current;t&&s(t)},[l,i.value]);let v=()=>{a&&c({size:f?a.offsetWidth:a.offsetHeight,offset:f?a.offsetLeft:a.offsetTop})};return eC(a,v),eC(i.indicatorTrack,v),u?(0,d.jsx)(h.div,{"aria-hidden":!0,"data-state":p?"visible":"hidden","data-orientation":i.orientation,...n,ref:t,style:{position:"absolute",...f?{left:0,width:u.size+"px",transform:"translateX(".concat(u.offset,"px)")}:{top:0,height:u.size+"px",transform:"translateY(".concat(u.offset,"px)")},...n.style}}):null}),ef="NavigationMenuContent",ep=o.forwardRef((e,t)=>{let{forceMount:r,...n}=e,i=q(ef,e.__scopeNavigationMenu),o=en(ef,e.__scopeNavigationMenu),l=(0,u.s)(o.contentRef,t),a=o.value===i.value,c={value:o.value,triggerRef:o.triggerRef,focusProxyRef:o.focusProxyRef,wasEscapeCloseRef:o.wasEscapeCloseRef,onContentFocusOutside:o.onContentFocusOutside,onRootContentClose:o.onRootContentClose,...n};return i.viewport?(0,d.jsx)(eh,{forceMount:r,...c,ref:l}):(0,d.jsx)(g,{present:r||a,children:(0,d.jsx)(em,{"data-state":eA(a),...c,ref:l,onPointerEnter:(0,s.mK)(e.onPointerEnter,i.onContentEnter),onPointerLeave:(0,s.mK)(e.onPointerLeave,eM(i.onContentLeave)),style:{pointerEvents:!a&&i.isRootMenu?"none":void 0,...c.style}})})});ep.displayName=ef;var eh=o.forwardRef((e,t)=>
1{let{onViewportContentChange:r,onViewportContentRemove:n}=q(ef,e.__scopeNavigationMenu);return(0,w.N)(()=>{r(e.value,{ref:t,...e})},[e,t,r]),(0,w.N)(()=>()=>n(e.value),[e.value,n]),null}),ev="navigationMenu.rootContentDismiss",em=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,value:n,triggerRef:i,focusProxyRef:l,wasEscapeCloseRef:a,onRootContentClose:c,onContentFocusOutside:f,...p}=e,h=q(ef,r),v=o.useRef(null),m=(0,u.s)(v,t),y=e_(h.baseId,n),w=eO(h.baseId,n),g=F(r),x=o.useRef(null),{onItemDismiss:R}=h;o.useEffect(()=>{let e=v.current;if(h.isRootMenu&&e){let t=()=>{var t;R(),c(),e.contains(document.activeElement)&&(null==(t=i.current)||t.focus())};return e.addEventListener(ev,t),()=>e.removeEventListener(ev,t)}},[h.isRootMenu,e.value,i,R,c]);let b=o.useMemo(()=>{let e=g().map(e=>e.value);"rtl"===h.dir&&e.reverse();let t=e.indexOf(h.value),r=e.indexOf(h.previousValue),i=n===h.value,o=r===e.indexOf(n);if(!i&&!o)return x.current;let l=(()=>{if(t!==r){if(i&&-1!==r)return t>r?"from-end":"from-start";if(o&&-1!==t)return t>r?"to-start":"to-end"}return null})();return x.current=l,l},[h.previousValue,h.value,h.dir,g,n]);return(0,d.jsx)(ex,{asChild:!0,children:(0,d.jsx)(P,{id:w,"aria-labelledby":y,"data-motion":b,"data-orientation":h.orientation,...p,ref:m,disableOutsidePointerEvents:!1,onDismiss:()=>{var e;let t=new Event(ev,{bubbles:!0,cancelable:!0});null==(e=v.current)||e.dispatchEvent(t)},onFocusOutside:(0,s.mK)(e.onFocusOutside,e=>{var t;f();let r=e.target;(null==(t=h.rootNavigationMenu)?void 0:t.contains(r))&&e.preventDefault()}),onPointerDownOutside:(0,s.mK)(e.onPointerDownOutside,e=>{var t;let r=e.target,n=g().some(e=>{var t;return null==(t=e.ref.current)?void 0:t.contains(r)}),i=h.isRootMenu&&(null==(t=h.viewport)?void 0:t.contains(r));(n||i||!h.isRootMenu)&&e.preventDefault()}),onKeyDown:(0,s.mK)(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey;if("Tab"===e.key&&!t){let t=eE(e.currentTarget),n=document.activeElement,i=t.findIndex(e=>e===n);if(eN(e.shiftKey?t.slice(0,i).reverse():t.slice(i+1,t.length)))e.preventDefault();else{var r;null==(r=l.current)||r.focus()}}}),onEscapeKeyDown:(0,s.mK)(e.onEscapeKeyDown,e=>{a.current=!0})})})}),ey="NavigationMenuViewport",ew=o.forwardRef((e,t)=>{let{forceMount:r,...n}=e,i=!!q(ey,e.__scopeNavigationMenu).value;return(0,d.jsx)(g,{present:r||i,children:(0,d.jsx)(eg,{...n,ref:t})})});ew.displayName=ey;var eg=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,children:n,...i}=e,l=q(ey,r),a=(0,u.s)(t,l.onViewportChange),c=G(ef,e.__scopeNavigationMenu),[f,p]=o.use
1State(null),[v,m]=o.useState(null),y=f?(null==f?void 0:f.width)+"px":void 0,w=f?(null==f?void 0:f.height)+"px":void 0,x=!!l.value,R=x?l.value:l.previousValue;return eC(v,()=>{v&&p({width:v.offsetWidth,height:v.offsetHeight})}),(0,d.jsx)(h.div,{"data-state":eA(x),"data-orientation":l.orientation,...i,ref:a,style:{pointerEvents:!x&&l.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":y,"--radix-navigation-menu-viewport-height":w,...i.style},onPointerEnter:(0,s.mK)(e.onPointerEnter,l.onContentEnter),onPointerLeave:(0,s.mK)(e.onPointerLeave,eM(l.onContentLeave)),children:Array.from(c.items).map(e=>{let[t,{ref:r,forceMount:n,...i}]=e,o=R===t;return(0,d.jsx)(g,{present:n||o,children:(0,d.jsx)(em,{...i,ref:(0,u.t)(r,e=>{o&&e&&m(e)})})},t)})})}),ex=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,...n}=e,i=q("FocusGroup",r);return(0,d.jsx)(W.Provider,{scope:r,children:(0,d.jsx)(W.Slot,{scope:r,children:(0,d.jsx)(h.div,{dir:i.dir,...n,ref:t})})})}),eR=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],eb=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,...n}=e,i=U(r),o=q("FocusGroupItem",r);return(0,d.jsx)(W.ItemSlot,{scope:r,children:(0,d.jsx)(h.button,{...n,ref:t,onKeyDown:(0,s.mK)(e.onKeyDown,e=>{if(["Home","End",...eR].includes(e.key)){let t=i().map(e=>e.ref.current);if(["rtl"===o.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&t.reverse(),eR.includes(e.key)){let r=t.indexOf(e.currentTarget);t=t.slice(r+1)}setTimeout(()=>eN(t)),e.preventDefault()}})})})});function eE(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function eN(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function eC(e,t){let r=M(t);(0,w.N)(()=>{let t=0;if(e){let n=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(r)});return n.observe(e),()=>{window.cancelAnimationFrame(t),n.unobserve(e)}}},[e,r])}function eA(e){return e?"open":"closed"}function e_(e,t){return"".concat(e,"-trigger-").concat(t)}function eO(e,t){return"".concat(e,"-content-").concat(t)}function eM(e){return t=>"mouse"===t.pointerType?e(t):void 0}var ej=X,eT=ee,eP=ei,eS=el,eI=es,ek=ed,eD=ep,eL=ew},57398:(e,t,r)=>{r.d(t,{UC:()=>em,Y9:()=>eh,q7:()=>ep,bL:()=>ef,l9:()=>ev});var n,i=r(12115),o=r(3468),l=r(67325),a=r(75777),s=r(15378),u=r(94446),d=r(95155);function c(e){let t=function(e){let t=i.forwardRef((e,t)=>{let{children:r,...n}=e;if(i.isValidElement(r)){var o;let e,l,a=(o=r,(l=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(l=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),s=function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==i.Fragment&&(s.ref=t?(0,u.t)(t,a):a),i.cloneElement(r,s)}return i.Children.count(r)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),r=i.forwardRef((e,r)=>{let{children:n,...o}=e,l=i.Children.toArray(n),a=l.find(p);if(a){let e=a.props.children,n=l.map(t=>t!==a?t:i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null);return(0,d.jsx)(t,{...o,ref:r,children:i.isValidElement(e)?i.cloneElement(e,void 0,n):null})}return(0,d.jsx)(t,{...o,ref:r,children:n})});return r.displayName=`${e}.Slot`,r}var f=Symbol("radix.slottable");function p(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===f}var h=new WeakMap;function v(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let r=function(e,t){let r=e.length,n=m(t),i=n>=0?n:r+n;return i<0||i>=r?-1:i}(e,t);return -1===r?void 0:e[r]}function m(e){return e!=e||0===e?0:Math.trunc(e)}n=new WeakMap,class e extends Map{set(e,t){return h.get(this)&&(this.has(e)?(0,l._)(this,n)[(0,l._)(this,n).indexOf(e)]=e:(0,l._)(this,n).push(e)),super.set(e,t),this}insert(e,t,r){let i,o=this.has(t),a=(0,l._)(this,n).length,s=m(e),u=s>=0?s:a+s,d=u<0||u>=a?-1:u;if(d===this.size||o&&d===this.size-1||-1===d)return this.set(t,r),this;let c=this.size+ +!o;s<0&&u++;let f=[...(0,l._)(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]),o&&this.delete(t),i=this.get(n),this.set(t,r)}else{p||f[e-1]!==t||(p=!0);let r=f[p?e:e-1],n=i;i=this.get(r),this.delete(r),this.set(r,n)}return this}with(t,r,n){let i=new e(this);return i.insert(t,r,n),i}before(e){let t=(0,l._)(this,n).indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let i=(0,l._)(this,n).indexOf(e);return -1===i?this:this.insert(i,t,r)}after(e){let t=(0,l._)(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 i=(0,l._)(this,n).indexOf(e);return -1===i?this:this.insert(i+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return(0,s._)(this,n,[]),super.clear()}delete(e){let t=super.delete(e);return t&&(0,l._)(this,n).splice((0,l._)(this,n).indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=v((0,l._)(this,n),e);
1if(void 0!==t)return this.get(t)}entryAt(e){let t=v((0,l._)(this,n),e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return(0,l._)(this,n).indexOf(e)}keyAt(e){return v((0,l._)(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=[],i=0;for(let e of this)Reflect.apply(t,r,[e,i,this])&&n.push(e),i++;return new e(n)}map(t,r){let n=[],i=0;for(let e of this)n.push([e[0],Reflect.apply(t,r,[e,i,this])]),i++;return new e(n)}reduce(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let[n,i]=t,o=0,l=null!=i?i:this.at(0);for(let e of this)l=0===o&&1===t.length?e:Reflect.apply(n,this,[l,e,o,this]),o++;return l}reduceRight(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let[n,i]=t,o=null!=i?i:this.at(-1);for(let e=this.size-1;e>=0;e--){let r=this.at(e);o=e===this.size-1&&1===t.length?r:Reflect.apply(n,this,[o,r,e,this])}return o}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 i=[...this.entries()];return i.splice(...r),new e(i)}slice(t,r){let n=new e,i=this.size-1;if(void 0===t)return n;t<0&&(t+=this.size),void 0!==r&&r>0&&(i=r-1);for(let e=t;e<=i;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),(0,a._)(this,n,{writable:!0,value:void 0}),(0,s._)(this,n,[...super.keys()]),h.set(this,!0)}};var y=r(92556),w=r(23558);r(47650);var g=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=c(`Primitive.${t}`),n=i.forwardRef((e,n)=>{let{asChild:i,...o}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,d.jsx)(i?r:t,{...o,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),x=r(4129),R=e=>{let{present:t,children:r}=e,n=function(e){var t,r;let[n,o]=i.useState(),l=i.useRef(null),a=i.useRef(e),s=i.useRef("none"),[u,d]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},i.useReducer((e,t)=>{let n=r[e][t];return null!=n?n:e},t));return i.useEffect(()=>{let e=b(l.current);s.current="mounted"===u?e:"none"},[u]),(0,x.N)(()=>{let t=l.current,r=a.current;if(r!==e){let n=s.current,i=b(t);e?d("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?d("UNMOUNT"):r&&n!==i?d("ANIMATION_OUT"):d("UNMOUNT"),a.current=e}},[e,d]),(0,x.N)(()=>{if(n){var e;let t,r=null!=(e=n.ownerDocument.defaultView)?e:window,i=e=>{let i=b(l.current).includes(CSS.escape(e.animationName));if(e.target===n&&i&&(d("ANIMATION_END"),!a.current)){let e=n.style.animationFillMode;n.style.animationFillMode="forwards",t=r.setTimeout(()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=e)})}},o=e=>{e.target===n&&(s.current=b(l.current))};return n.addEventListener("animationstart",o),n.addEventListener("animationcancel",i),n.addEventListener("animationend",i),()=>{r.clearTimeout(t),n.removeEventListener("animationstart",o),n.removeEventListener("animationcancel",i),n.removeEventListener("animationend",i)}}d("ANIMATION_END")},[n,d]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:i.useCallback(e=>{l.current=e?getComputedStyle(e):null,o(e)},[])}}(t),o="function"==typeof r?r({present:n.isPresent}):i.Children.only(r),l=(0,u.s)(n.ref,function(e){var t,r;let n=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,i=n&&"isReactWarning"in n&&n.isReactWarning;return i?e.ref:(i=(n=null==(r=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:r.get)&&"isReactWarning"in n&&n.isReactWarning)?e.props.ref:e.props.ref||e.ref}(o));return"function"==typeof r||n.isPresent?i.cloneElement(o,{ref:l}):null};function b(e){return(null==e?void 0:e.animationName)||"none"}R.displayName="Presence";
1var E=r(68946),N="Collapsible",[C,A]=(0,o.A)(N),[_,O]=C(N),M=i.forwardRef((e,t)=>{let{__scopeCollapsible:r,open:n,defaultOpen:o,disabled:l,onOpenChange:a,...s}=e,[u,c]=(0,w.i)({prop:n,defaultProp:null!=o&&o,onChange:a,caller:N});return(0,d.jsx)(_,{scope:r,disabled:l,contentId:(0,E.B)(),open:u,onOpenToggle:i.useCallback(()=>c(e=>!e),[c]),children:(0,d.jsx)(g.div,{"data-state":k(u),"data-disabled":l?"":void 0,...s,ref:t})})});M.displayName=N;var j="CollapsibleTrigger",T=i.forwardRef((e,t)=>{let{__scopeCollapsible:r,...n}=e,i=O(j,r);return(0,d.jsx)(g.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":k(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...n,ref:t,onClick:(0,y.mK)(e.onClick,i.onOpenToggle)})});T.displayName=j;var P="CollapsibleContent",S=i.forwardRef((e,t)=>{let{forceMount:r,...n}=e,i=O(P,e.__scopeCollapsible);return(0,d.jsx)(R,{present:r||i.open,children:e=>{let{present:r}=e;return(0,d.jsx)(I,{...n,ref:t,present:r})}})});S.displayName=P;var I=i.forwardRef((e,t)=>{let{__scopeCollapsible:r,present:n,children:o,...l}=e,a=O(P,r),[s,c]=i.useState(n),f=i.useRef(null),p=(0,u.s)(t,f),h=i.useRef(0),v=h.current,m=i.useRef(0),y=m.current,w=a.open||s,R=i.useRef(w),b=i.useRef(void 0);return i.useEffect(()=>{let e=requestAnimationFrame(()=>R.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,x.N)(()=>{let e=f.current;if(e){b.current=b.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();h.current=t.height,m.current=t.width,R.current||(e.style.transitionDuration=b.current.transitionDuration,e.style.animationName=b.current.animationName),c(n)}},[a.open,n]),(0,d.jsx)(g.div,{"data-state":k(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!w,...l,ref:p,style:{"--radix-collapsible-content-height":v?"".concat(v,"px"):void 0,"--radix-collapsible-content-width":y?"".concat(y,"px"):void 0,...e.style},children:w&&o})});function k(e){return e?"open":"closed"}var D=r(66218),L="Accordion",z=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[F,K,W]=function(e){let t=e+"CollectionProvider",[r,n]=(0,o.A)(t),[l,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=e=>{let{scope:t,children:r}=e,n=i.useRef(null),o=i.useRef(new Map).current;return(0,d.jsx)(l,{scope:t,itemMap:o,collectionRef:n,children:r})};s.displayName=t;let f=e+"CollectionSlot",p=c(f),h=i.forwardRef((e,t)=>{let{scope:r,children:n}=e,i=a(f,r),o=(0,u.s)(t,i.collectionRef);return(0,d.jsx)(p,{ref:o,children:n})});h.displayName=f;let v=e+"CollectionItemSlot",m="data-radix-collection-item",y=c(v),w=i.forwardRef((e,t)=>{let{scope:r,children:n,...o}=e,l=i.useRef(null),s=(0,u.s)(t,l),c=a(v,r);return i.useEffect(()=>(c.itemMap.set(l,{ref:l,...o}),()=>void c.itemMap.delete(l))),(0,d.jsx)(y,{...{[m]:""},ref:s,children:n})});return w.displayName=v,[{Provider:s,Slot:h,ItemSlot:w},function(t){let r=a(e+"CollectionConsumer",t);return i.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(m,"]")));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},n]}(L),[U,V]=(0,o.A)(L,[W,A]),$=A(),B=i.forwardRef((e,t)=>{let{type:r,...n}=e;return(0,d.jsx)(F.Provider,{scope:e.__scopeAccordion,children:"multiple"===r?(0,d.jsx)(Z,{...n,ref:t}):(0,d.jsx)(X,{...n,ref:t})})});B.displayName=L;var[H,q]=U(L),[Y,G]=U(L,{collapsible:!1}),X=i.forwardRef((e,t)=>{let{value:r,defaultValue:n,onValueChange:o=()=>{},collapsible:l=!1,...a}=e,[s,u]=(0,w.i)({prop:r,defaultProp:null!=n?n:"",onChange:o,caller:L});return(0,d.jsx)(H,{scope:e.__scopeAccordion,value:i.useMemo(()=>s?[s]:[],[s]),onItemOpen:u,onItemClose:i.useCallback(()=>l&&u(""),[l,u]),children:(0,d.jsx)(Y,{scope:e.__scopeAccordion,collapsible:l,children:(0,d.jsx)(ee,{...a,ref:t})})})}),Z=i.forwardRef((e,t)=>{let{value:r,defaultValue:n,onValueChange:o=()=>{},...l}=e,[a,s]=(0,w.i)({prop:r,defaultProp:null!=n?n:[],onChange:o,caller:L}),u=i.useCallback(e=>s(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[...t,e]}),[s]),c=i.useCallback(e=>s(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.filter(t=>t!==e)}),[s]);return(0,d.jsx)(H,{scope:e.__scopeAccordion,value:a,onItemOpen:u,onItemClose:c,children:(0,d.jsx)(Y,{scope:e.__scopeAccordion,collapsible:!0,children:(0,d.jsx)(ee,{...l,ref:t})})})}),[J,Q]=U(L),ee=i.forwardRef((e,t)=>
1{let{__scopeAccordion:r,disabled:n,dir:o,orientation:l="vertical",...a}=e,s=i.useRef(null),c=(0,u.s)(s,t),f=K(r),p="ltr"===(0,D.jH)(o),h=(0,y.mK)(e.onKeyDown,e=>{var t;if(!z.includes(e.key))return;let r=e.target,n=f().filter(e=>{var t;return!(null==(t=e.ref.current)?void 0:t.disabled)}),i=n.findIndex(e=>e.ref.current===r),o=n.length;if(-1===i)return;e.preventDefault();let a=i,s=o-1,u=()=>{(a=i+1)>s&&(a=0)},d=()=>{(a=i-1)<0&&(a=s)};switch(e.key){case"Home":a=0;break;case"End":a=s;break;case"ArrowRight":"horizontal"===l&&(p?u():d());break;case"ArrowDown":"vertical"===l&&u();break;case"ArrowLeft":"horizontal"===l&&(p?d():u());break;case"ArrowUp":"vertical"===l&&d()}null==(t=n[a%o].ref.current)||t.focus()});return(0,d.jsx)(J,{scope:r,disabled:n,direction:o,orientation:l,children:(0,d.jsx)(F.Slot,{scope:r,children:(0,d.jsx)(g.div,{...a,"data-orientation":l,ref:c,onKeyDown:n?void 0:h})})})}),et="AccordionItem",[er,en]=U(et),ei=i.forwardRef((e,t)=>{let{__scopeAccordion:r,value:n,...i}=e,o=Q(et,r),l=q(et,r),a=$(r),s=(0,E.B)(),u=n&&l.value.includes(n)||!1,c=o.disabled||e.disabled;return(0,d.jsx)(er,{scope:r,open:u,disabled:c,triggerId:s,children:(0,d.jsx)(M,{"data-orientation":o.orientation,"data-state":ec(u),...a,...i,ref:t,disabled:c,open:u,onOpenChange:e=>{e?l.onItemOpen(n):l.onItemClose(n)}})})});ei.displayName=et;var eo="AccordionHeader",el=i.forwardRef((e,t)=>{let{__scopeAccordion:r,...n}=e,i=Q(L,r),o=en(eo,r);return(0,d.jsx)(g.h3,{"data-orientation":i.orientation,"data-state":ec(o.open),"data-disabled":o.disabled?"":void 0,...n,ref:t})});el.displayName=eo;var ea="AccordionTrigger",es=i.forwardRef((e,t)=>{let{__scopeAccordion:r,...n}=e,i=Q(L,r),o=en(ea,r),l=G(ea,r),a=$(r);return(0,d.jsx)(F.ItemSlot,{scope:r,children:(0,d.jsx)(T,{"aria-disabled":o.open&&!l.collapsible||void 0,"data-orientation":i.orientation,id:o.triggerId,...a,...n,ref:t})})});es.displayName=ea;var eu="AccordionContent",ed=i.forwardRef((e,t)=>{let{__scopeAccordion:r,...n}=e,i=Q(L,r),o=en(eu,r),l=$(r);return(0,d.jsx)(S,{role:"region","aria-labelledby":o.triggerId,"data-orientation":i.orientation,...l,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function ec(e){return e?"open":"closed"}ed.displayName=eu;var ef=B,ep=ei,eh=el,ev=es,em=ed},66218:(e,t,r)=>{r.d(t,{jH:()=>o});var n=r(12115);r(95155);var i=n.createContext(void 0);function o(e){let t=n.useContext(i);return e||t||"ltr"}},67325:(e,t,r)=>{r.d(t,{_:()=>i});var n=r(96994);function i(e,t){var r=(0,n._)(e,t,"get");return r.get?r.get.call(e):r.value}},68946:(e,t,r)=>{r.d(t,{B:()=>s});var n,i=r(12115),o=r(4129),l=(n||(n=r.t(i,2)))[" useId ".trim().toString()]||(()=>void 0),a=0;function s(e){let[t,r]=i.useState(l());return(0,o.N)(()=>{e||r(e=>e??String(a++))},[e]),e||(t?`radix-${t}`:"")}},75777:(e,t,r)=>{r.d(t,{_:()=>n});function n(e,t,r){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");t.set(e,r)}},92556:(e,t,r)=>{function n(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}r.d(t,{mK:()=>n}),"undefined"!=typeof window&&window.document&&window.document.createElement},96994:(e,t,r)=>{r.d(t,{_:()=>n});function n(e,t,r){if(!t.has(e))throw TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}}}]);

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.