PageSourceSearch

https://www.8bitcn.com/_next/static/immutable/chunks/1v_9kqv8nnryj.js

js 8bitcn.com collected 2026-10-04 00:26:39 UTC 164,851 bytes, 58 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,77220,e=>{"use strict";var t=e.i(327193);let r=(0,e.i(829647).default)("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]);var a=e.i(575007),n=e.i(167881);e.s(["default",0,function({command:e,copyCommand:o}){let i=e.split(" ").at(-1);return(0,t.jsxs)(n.Button,{className:"font-mono text-xs md:text-sm",onClick:()=>{navigator.clipboard.writeText(o),(0,a.toast)("Command copied to clipboard")},variant:"outline",children:[(0,t.jsx)(r,{className:"size-3 md:size-4"}),(0,t.jsx)("span",{className:"hidden sm:block",children:e}),(0,t.jsx)("span",{className:"block sm:hidden",children:(0,t.jsx)("span",{className:"font-mono",children:i})})]})}],77220)},935276,e=>{"use strict";var t=e.i(327193),r=e.i(475127),a=e.i(887584);e.s(["CalendarExample",0,function(){let[e,n]=(0,r.useState)(()=>new Date);return(0,t.jsx)(a.Calendar,{className:"h-max w-full bg-card",mode:"single",onSelect:n,selected:e})}])},790016,e=>{"use strict";var t=e.i(327193),r=e.i(475127),a=e.i(887584),n=e.i(386162),o=e.i(782890);e.s(["Calendar13",0,function(){let[e,i]=(0,r.useState)("dropdown"),[s,l]=(0,r.useState)(()=>new Date(2025,5,12));return(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,t.jsx)(a.Calendar,{captionLayout:e,defaultMonth:s,mode:"single",onSelect:l,selected:s}),(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(n.Label,{className:"px-1",htmlFor:"dropdown",children:"Dropdown"}),(0,t.jsxs)(o.Select,{onValueChange:e=>i(e),value:e,children:[(0,t.jsx)(o.SelectTrigger,{className:"w-full bg-background",id:"dropdown",children:(0,t.jsx)(o.SelectValue,{placeholder:"Dropdown"})}),(0,t.jsxs)(o.SelectContent,{align:"center",children:[(0,t.jsx)(o.SelectItem,{value:"dropdown",children:"Month and Year"}),(0,t.jsx)(o.SelectItem,{value:"dropdown-months",children:"Month Only"}),(0,t.jsx)(o.SelectItem,{value:"dropdown-years",children:"Year Only"})]})]})]})]})}])},984224,e=>{"use strict";var t=e.i(327193);let r=(0,e.i(829647).default)("chevrons-up-down",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]);var a=e.i(475127),n=e.i(530549),o=e.i(325954),i=e.i(920685),s=e.i(318203);let l=[{value:"next.js",label:"Next.js"},{value:"sveltekit",label:"SvelteKit"},{value:"nuxt.js",label:"Nuxt.js"},{value:"remix",label:"Remix"},{value:"astro",label:"Astro"}];e.s(["ComboBoxExample",0,function(){let[e,d]=(0,a.useState)(!1),[c,u]=(0,a.useState)("");return(0,t.jsxs)(i.Popover,{onOpenChange:d,open:e,children:[(0,t.jsx)(i.PopoverTrigger,{asChild:!0,children:(0,t.jsx)(n.Button,{"aria-expanded":e,className:"w-auto px-10",role:"combobox",variant:"outline",children:(0,t.jsxs)("div",{className:"flex items-center",children:[c?l.find(e=>e.value===c)?.label:"Select framework...",(0,t.jsx)(r,{className:"absolute right-4 size-4 shrink-0 opacity-50"})]})})}),(0,t.jsx)(i.PopoverContent,{className:"w-auto p-0 md:w-[320px]",children:(0,t.jsxs)(o.Command,{children:[(0,t.jsx)(o.CommandInput,{placeholder:"Search framework..."}),(0,t.jsxs)(o.CommandList,{children:[(0,t.jsx)(o.CommandEmpty,{children:"No framework found."}),(0,t.jsx)(o.CommandGroup,{children:l.map(e=>(0,t.jsxs)(o.CommandItem,{onSelect:e=>{u(e===c?"":e),d(!1)},value:e.value,children:[(0,t.jsxs)("svg",{className:(0,s.cn)("mr-2 size-6",c===e.value?"opacity-100":"opacity-0"),fill:"currentColor",height:"50",stroke:"currentColor",strokeWidth:"0.25",viewBox:"0 0 256 256",width:"50",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("title",{children:"Check"}),(0,t.jsx)("rect",{height:"14",rx:"1",transform:"rotate(90 80 128)",width:"14",x:"80",y:"128"}),(0,t.jsx)("rect",{height:"14",rx:"1",transform:"rotate(90 96 144)",width:"14",x:"96",y:"144"}),(0,t.jsx)("rect",{height:"14",rx:"1",transform:"rotate(90 112 160)",width:"14",x:"112",y:"160"}),(0,t.jsx)("rect",{height:"14",rx:"1",transform:"rotate(90 128 144)",width:"14",x:"128",y:"144"}),(0,t.jsx)("rect",{height:"14",rx:"1",transform:"rotate(90 144 128)",width:"14",x:"144",y:"128"}),(0,t.jsx)("rect",{height:"14",rx:"1",transform:"rotate(90 160 112)",width:"14",x:"160",y:"112"}),(0,t.jsx)("rect",{height:"14",rx:"1",transform:"rotate(90 176 96)",width:"14",x:"176",y:"96"}),(0,t.jsx)("rect",{height:"14",rx:"1",transform:"rotate(90 192 80)",width:"14",x:"192",y:"80"})]}),e.label]},e.value))})]})]})})]})}],984224)},892297,e=>{"use strict";var t=e.i(327193),r=e.i(321108),a=e.i(475127),n=e.i(94035),o=e.i(767240),i=e.i(515201),s=e.i(943001),l=e.i(559451),d=e.i(443644),c=e.i(97229),u=e.i(948983),p=e.i(168048),f=e.i(724112),m=e.i(125902),x=e.i(715084),h=e.i(91467),g=e.i(79603),v=e.i(507885),b="NavigationMenu",[y,w,j]=(0,f.createCollection)(b),[C,N,S]=(0,f.createCollection)(b),[k,R]=(0,o.createContextScope)(b,[j,S]),[P,T]=k(b),[E,z]=k(b),A=a.forwardRef((e,r)=>{let{__scopeNavigationMenu:n,value:o,onValueChange:i,defaultValue:u,delayDuration:p=200,skipDelayDuration:f=300,orientation:m="horizontal",dir:x,...h}=e,[g,v]=a.useState(null),y=(0,d.useComposedRefs)(r,v),w=(0,c.useDirection)(x),j=a.useRef(0),C=a.useRef(0),N=a.useRef(0),[S,k]=a.useState(!0),[R,P]=(0,l.useControllableState)({prop:o,onChange:e=>{let t=f>0;""!==e?(window.clearTimeout(N.current),t&&k(!1)):(window.clearTimeout(N.current),N.current=window.setTimeout(()=>k(!0),f)),i?.(e)},defaultProp:u??"",caller:b}),T=a.useCallback(()=>{window.clearTimeout(C.current),C.current=window.setTimeout(()=>P(""),150)},[P]),E=a.useCallback(e=>{window.clearTimeout(C.current),P(e)},[P]),z=a.useCallback(e=>{R===e?window.clearTimeout(C.current):j.current=window.setTimeout(()=>{window.clearTimeout(C.current),P(e)},p)},[R,P,p]);return a.useEffect(()=>()=>{window.clearTimeout(j.current),window.clearTimeout(C.current),window.clearTimeout(N.current)},[]),(0,t.jsx)(M,{scope:n,isRootMenu:!0,value:R,dir:w,orientation:m,rootNavigationMenu:g,onTriggerEnter:e=>{window.clearTimeout(j.current),S?z(e):E(e)},onTriggerLeave:()=>{window.clearTimeout(j.current),T()},onContentEnter:()=>window.clearTimeout(C.current),onContentLeave:T,onItemSelect:e=>{P(t=>t===e?"":e)},onItemDismiss:()=>P(""),children:(0,t.jsx)(s.Primitive.nav,{"aria-label":"Main","data-orientation":m,dir:w,...h,ref:y})})});A.displayName=b;var D="NavigationMenuSub";a.forwardRef((e,r)=>{let{__scopeNavigationMenu:a,value:n,onValueChange:o,defaultValue:i,orientation:d="horizontal",...c}=e,u=T(D,a),[p,f]=(0,l.useControllableState)({prop:n,onChange:o,defaultProp:i??"",caller:D});
1return(0,t.jsx)(M,{scope:a,isRootMenu:!1,value:p,dir:u.dir,orientation:d,rootNavigationMenu:u.rootNavigationMenu,onTriggerEnter:e=>f(e),onItemSelect:e=>f(e),onItemDismiss:()=>f(""),children:(0,t.jsx)(s.Primitive.div,{"data-orientation":d,...c,ref:r})})}).displayName=D;var M=e=>{let{scope:r,isRootMenu:n,rootNavigationMenu:o,dir:i,orientation:s,children:l,value:d,onItemSelect:c,onItemDismiss:u,onTriggerEnter:f,onTriggerLeave:m,onContentEnter:h,onContentLeave:v}=e,[b,w]=a.useState(null),[j,C]=a.useState(new Map),[N,S]=a.useState(null);return(0,t.jsx)(P,{scope:r,isRootMenu:n,rootNavigationMenu:o,value:d,previousValue:(0,x.usePrevious)(d),baseId:(0,p.useId)(),dir:i,orientation:s,viewport:b,onViewportChange:w,indicatorTrack:N,onIndicatorTrackChange:S,onTriggerEnter:(0,g.useCallbackRef)(f),onTriggerLeave:(0,g.useCallbackRef)(m),onContentEnter:(0,g.useCallbackRef)(h),onContentLeave:(0,g.useCallbackRef)(v),onItemSelect:(0,g.useCallbackRef)(c),onItemDismiss:(0,g.useCallbackRef)(u),onViewportContentChange:a.useCallback((e,t)=>{C(r=>(r.set(e,t),new Map(r)))},[]),onViewportContentRemove:a.useCallback(e=>{C(t=>t.has(e)?(t.delete(e),new Map(t)):t)},[]),children:(0,t.jsx)(y.Provider,{scope:r,children:(0,t.jsx)(E,{scope:r,items:j,children:l})})})},I="NavigationMenuList",L=a.forwardRef((e,r)=>{let{__scopeNavigationMenu:a,...n}=e,o=T(I,a),i=(0,t.jsx)(s.Primitive.ul,{"data-orientation":o.orientation,...n,ref:r});return(0,t.jsx)(s.Primitive.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange,children:(0,t.jsx)(y.Slot,{scope:a,children:o.isRootMenu?(0,t.jsx)(ea,{asChild:!0,children:i}):i})})});L.displayName=I;var O="NavigationMenuItem",[H,_]=k(O),F=a.forwardRef((e,r)=>{let{__scopeNavigationMenu:n,value:o,...i}=e,l=(0,p.useId)(),d=a.useRef(null),c=a.useRef(null),u=a.useRef(null),f=a.useRef(()=>{}),m=a.useRef(!1),x=a.useCallback((e="start")=>{if(d.current){f.current();let t=ei(d.current);t.length&&es("start"===e?t:t.reverse())}},[]),h=a.useCallback(()=>{if(d.current){var e;let t=ei(d.current);t.length&&((e=t).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),f.current=()=>{e.forEach(e=>{let t=e.dataset.tabindex;e.setAttribute("tabindex",t)})})}},[]);return(0,t.jsx)(H,{scope:n,value:o||l||"LEGACY_REACT_AUTO_VALUE",triggerRef:c,contentRef:d,focusProxyRef:u,wasEscapeCloseRef:m,onEntryKeyDown:x,onFocusProxyEnter:x,onRootContentClose:h,onContentFocusOutside:h,children:(0,t.jsx)(s.Primitive.li,{...i,ref:r})})});F.displayName=O;var B="NavigationMenuTrigger",G=a.forwardRef((e,r)=>{let{__scopeNavigationMenu:n,disabled:o,...l}=e,c=T(B,e.__scopeNavigationMenu),u=_(B,e.__scopeNavigationMenu),p=a.useRef(null),f=(0,d.useComposedRefs)(p,u.triggerRef,r),m=ec(c.baseId,u.value),x=eu(c.baseId,u.value),h=a.useRef(!1),g=a.useRef(!1),b=u.value===c.value;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(y.ItemSlot,{scope:n,value:u.value,children:(0,t.jsx)(eo,{asChild:!0,children:(0,t.jsx)(s.Primitive.button,{id:m,disabled:o,"data-disabled":o?"":void 0,"data-state":ed(b),"aria-expanded":b,"aria-controls":b?x:void 0,...l,ref:f,onPointerEnter:(0,i.composeEventHandlers)(e.onPointerEnter,()=>{g.current=!1,u.wasEscapeCloseRef.current=!1}),onPointerMove:(0,i.composeEventHandlers)(e.onPointerMove,ep(()=>{o||g.current||u.wasEscapeCloseRef.current||h.current||(c.onTriggerEnter(u.value),h.current=!0)})),onPointerLeave:(0,i.composeEventHandlers)(e.onPointerLeave,ep(()=>{o||(c.onTriggerLeave(),h.current=!1)})),onClick:(0,i.composeEventHandlers)(e.onClick,()=>{c.onItemSelect(u.value),g.current=b}),onKeyDown:(0,i.composeEventHandlers)(e.onKeyDown,e=>{let t={horizontal:"ArrowDown",vertical:"rtl"===c.dir?"ArrowLeft":"ArrowRight"}[c.orientation];b&&e.key===t&&(u.onEntryKeyDown(),e.preventDefault())})})})}),b&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(v.Root,{"aria-hidden":!0,tabIndex:0,ref:u.focu
1sProxyRef,onFocus:e=>{let t=u.contentRef.current,r=e.relatedTarget,a=r===p.current,n=t?.contains(r);(a||!n)&&u.onFocusProxyEnter(a?"start":"end")}}),c.viewport&&(0,t.jsx)("span",{"aria-owns":x})]})]})});G.displayName=B;var $="navigationMenu.linkSelect",V=a.forwardRef((e,r)=>{let{__scopeNavigationMenu:a,active:n,onSelect:o,...l}=e;return(0,t.jsx)(eo,{asChild:!0,children:(0,t.jsx)(s.Primitive.a,{"data-active":n?"":void 0,"aria-current":n?"page":void 0,...l,ref:r,onClick:(0,i.composeEventHandlers)(e.onClick,e=>{let t=e.target,r=new CustomEvent($,{bubbles:!0,cancelable:!0});if(t.addEventListener($,e=>o?.(e),{once:!0}),(0,s.dispatchDiscreteCustomEvent)(t,r),!r.defaultPrevented&&!e.metaKey){let e=new CustomEvent(J,{bubbles:!0,cancelable:!0});(0,s.dispatchDiscreteCustomEvent)(t,e)}},{checkForDefaultPrevented:!1})})})});V.displayName="NavigationMenuLink";var W="NavigationMenuIndicator",Y=a.forwardRef((e,r)=>{let{forceMount:a,...o}=e,i=T(W,e.__scopeNavigationMenu),s=!!i.value;return i.indicatorTrack?n.createPortal((0,t.jsx)(u.Presence,{present:a||s,children:(0,t.jsx)(U,{...o,ref:r})}),i.indicatorTrack):null});Y.displayName=W;var U=a.forwardRef((e,r)=>{let{__scopeNavigationMenu:n,...o}=e,i=T(W,n),l=w(n),[d,c]=a.useState(null),[u,p]=a.useState(null),f="horizontal"===i.orientation,m=!!i.value;a.useEffect(()=>{let e=l(),t=e.find(e=>e.value===i.value)?.ref.current;t&&c(t)},[l,i.value]);let x=()=>{d&&p({size:f?d.offsetWidth:d.offsetHeight,offset:f?d.offsetLeft:d.offsetTop})};return el(d,x),el(i.indicatorTrack,x),u?(0,t.jsx)(s.Primitive.div,{"aria-hidden":!0,"data-state":m?"visible":"hidden","data-orientation":i.orientation,...o,ref:r,style:{position:"absolute",...f?{left:0,width:u.size+"px",transform:`translateX(${u.offset}px)`}:{top:0,height:u.size+"px",transform:`translateY(${u.offset}px)`},...o.style}}):null}),q="NavigationMenuContent",K=a.forwardRef((e,r)=>{let{forceMount:a,...n}=e,o=T(q,e.__scopeNavigationMenu),s=_(q,e.__scopeNavigationMenu),l=(0,d.useComposedRefs)(s.contentRef,r),c=s.value===o.value,p={value:s.value,triggerRef:s.triggerRef,focusProxyRef:s.focusProxyRef,wasEscapeCloseRef:s.wasEscapeCloseRef,onContentFocusOutside:s.onContentFocusOutside,onRootContentClose:s.onRootContentClose,...n};return o.viewport?(0,t.jsx)(X,{forceMount:a,...p,ref:l}):(0,t.jsx)(u.Presence,{present:a||c,children:(0,t.jsx)(Q,{"data-state":ed(c),...p,ref:l,onPointerEnter:(0,i.composeEventHandlers)(e.onPointerEnter,o.onContentEnter),onPointerLeave:(0,i.composeEventHandlers)(e.onPointerLeave,ep(o.onContentLeave)),style:{pointerEvents:!c&&o.isRootMenu?"none":void 0,...p.style}})})});K.displayName=q;var X=a.forwardRef((e,t)=>{let{onViewportContentChange:r,onViewportContentRemove:a}=T(q,e.__scopeNavigationMenu);return(0,h.useLayoutEffect)(()=>{r(e.value,{ref:t,...e})},[e,t,r]),(0,h.useLayoutEffect)(()=>()=>a(e.value),[e.value,a]),null}),J="navigationMenu.rootContentDismiss",Q=a.forwardRef((e,r)=>{let{__scopeNavigationMenu:n,value:o,triggerRef:s,focusProxyRef:l,wasEscapeCloseRef:c,onRootContentClose:u,onContentFocusOutside:p,...f}=e,x=T(q,n),h=a.useRef(null),g=(0,d.useComposedRefs)(h,r),v=ec(x.baseId,o),b=eu(x.baseId,o),y=w(n),j=a.useRef(null),{onItemDismiss:C}=x;a.useEffect(()=>{let e=h.current;if(x.isRootMenu&&e){let t=()=>{C(),u(),e.contains(document.activeElement)&&s.current?.focus()};return e.addEventListener(J,t),()=>e.removeEventListener(J,t)}},[x.isRootMenu,e.value,s,C,u]);let N=a.useMemo(()=>{let e=y().map(e=>e.value);"rtl"===x.dir&&e.reverse();let t=e.indexOf(x.value),r=e.indexOf(x.previousValue),a=o===x.value,n=r===e.indexOf(o);if(!a&&!n)return j.current;let i=(()=>{if(t!==r){if(a&&-1!==r)return t>r?"from-end":"from-start";if(n&&-1!==t)return t>r?"to-start":"to-end"}return null})();return j.current=i,i},[x.previousValue,x.value,x.dir,y,o]);return(0,t.jsx)(ea,{asChild:!0,children:(0,t.jsx)(m.DismissableLayer,{id:b,"aria-labelledby":v,"data-motion":N,"data-orientation":x.orientation,...f,ref:g,disableOutsidePointerEvents:!1,onDismiss:()=>{let e=new Event(J,{bubbles:!0,cancelable:!0});h.current?.dispatchEvent(e)},onFocusOutside:(0,i.composeEventHandlers)(e.onFocusOutside,e=>{p();let t=e.target;x.rootNavigationMenu?.contains(t)&&e.preventDefault()}),onPointerDownOutside:(0,i.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.target,r=y().some(e=>e.ref.current?.contains(t)),a=x.isRootMenu&&x.viewport?.contains(t);(r||a||!x.isRootMenu)&&e.preventDefault()}),onKeyDown:(0,i.composeEventHandlers)(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey;if("Tab"===e.key&&!t){let t=ei(e.currentTarget),r=document.activeElement,a=t.findIndex(e=>e===r);es(e.shiftKey?t.slice(0,a).reverse():t.slice(a+1,t.length))?e.preventDefault():l.current?.focus()}}),onEscapeKeyDown:(0,i.composeEventHandlers)(e.onEscapeKeyDown,e=>{c.current=!0})})})}),Z="NavigationMenuViewport",ee=a.forwardRef((e,r)=>{let{forceMount:a,...n}=e,o=!!T(Z,e.__scopeNavigationMenu).value;return(0,t.jsx)(u.Presence,{present:a||o,children:(0,t.jsx)(et,{...n,ref:r})})});ee.displayName=Z;var et=a.forwardRef((e,r)=>{let{__scopeNavigationMenu:n,children:o,...l}=e,c=T(Z,n),p=(0,d.useComposedRefs)(r,c.onViewportChange),f=z(q,e.__scopeNavigationMenu),[m,x]=a.use
1State(null),[h,g]=a.useState(null),v=m?m?.width+"px":void 0,b=m?m?.height+"px":void 0,y=!!c.value,w=y?c.value:c.previousValue;return el(h,()=>{h&&x({width:h.offsetWidth,height:h.offsetHeight})}),(0,t.jsx)(s.Primitive.div,{"data-state":ed(y),"data-orientation":c.orientation,...l,ref:p,style:{pointerEvents:!y&&c.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":v,"--radix-navigation-menu-viewport-height":b,...l.style},onPointerEnter:(0,i.composeEventHandlers)(e.onPointerEnter,c.onContentEnter),onPointerLeave:(0,i.composeEventHandlers)(e.onPointerLeave,ep(c.onContentLeave)),children:Array.from(f.items).map(([e,{ref:r,forceMount:a,...n}])=>{let o=w===e;return(0,t.jsx)(u.Presence,{present:a||o,children:(0,t.jsx)(er,{...n,contentRef:r,isActive:o,onActiveContentChange:g})},e)})})}),er=({contentRef:e,isActive:r,onActiveContentChange:n,...o})=>{let i=a.useCallback(e=>{r&&e&&n(e)},[r,n]),s=(0,d.useComposedRefs)(e,i);return(0,t.jsx)(Q,{...o,ref:s})},ea=a.forwardRef((e,r)=>{let{__scopeNavigationMenu:a,...n}=e,o=T("FocusGroup",a);return(0,t.jsx)(C.Provider,{scope:a,children:(0,t.jsx)(C.Slot,{scope:a,children:(0,t.jsx)(s.Primitive.div,{dir:o.dir,...n,ref:r})})})}),en=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],eo=a.forwardRef((e,r)=>{let{__scopeNavigationMenu:a,...n}=e,o=N(a),l=T("FocusGroupItem",a);return(0,t.jsx)(C.ItemSlot,{scope:a,children:(0,t.jsx)(s.Primitive.button,{...n,ref:r,onKeyDown:(0,i.composeEventHandlers)(e.onKeyDown,e=>{if(["Home","End",...en].includes(e.key)){let t=o().map(e=>e.ref.current);if(["rtl"===l.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&t.reverse(),en.includes(e.key)){let r=t.indexOf(e.currentTarget);t=t.slice(r+1)}setTimeout(()=>es(t)),e.preventDefault()}})})})});function ei(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 es(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function el(e,t){let r=(0,g.useCallbackRef)(t);(0,h.useLayoutEffect)(()=>{let t=0;if(e){let a=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(r)});return a.observe(e),()=>{window.cancelAnimationFrame(t),a.unobserve(e)}}},[e,r])}function ed(e){return e?"open":"closed"}function ec(e,t){return`${e}-trigger-${t}`}function eu(e,t){return`${e}-content-${t}`}function ep(e){return t=>"mouse"===t.pointerType?e(t):void 0}var ef=e.i(294237),em=e.i(318203),ex=e.i(462500);function eh({className:e,...r}){return(0,t.jsx)(L,{"data-slot":"navigation-menu-list",className:(0,em.cn)("group flex flex-1 list-none items-center justify-center gap-1",e),...r})}function eg({className:e,...r}){return(0,t.jsx)(F,{"data-slot":"navigation-menu-item",className:(0,em.cn)("relative",e),...r})}let ev=(0,ef.cva)("group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1");function eb({className:e,children:r,...a}){return(0,t.jsxs)(G,{"data-slot":"navigation-menu-trigger",className:(0,em.cn)(ev(),"group",e),...a,children:[r," ",(0,t.jsx)(ex.ChevronDownIcon,{className:"relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]})}function ey({className:e,...r}){return(0,t.jsx)(K,{"data-slot":"navigation-menu-content",className:(0,em.cn)("data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full p-2 pr-2.5 md:absolute md:w-auto","group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none",e),...r})}function ew({className:e,...r}){return(0,t.jsx)(V,{"data-slot":"navigation-menu-link",className:(0,em.cn)("data-[active=true]:focus:bg-accent data-[active=true]:hover:bg-accent data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex flex-col gap-1 rounded-sm p-2 text-sm transition-all outline-none focus-visible:ring-[3px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4",e),...r})}let ej=(0,ef.cva)("",{variants:{font:{normal:"",retro:"retro"}},defaultVariants:{font:"retro"}}),eC=e=>ej({font:e});function eN({className:e,font:r,children:a,viewport:n=!0,...o}){return(0,t.jsxs)(A,{"data-slot":"navigation-menu","data-viewport":n,className:(0,em.cn)("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",eC(r),e),...o,children:[a,n&&(0,t.jsx)(eT,{})]})}function eS({className:e,font:r,...a}){return(0,t.jsx)(eh,{className:(0,em.cn)(eC(r),e),...a})}function ek({className:e,font:r,...a}){return(0,t.jsx)(eg,{className:(0,em.cn)("static",eC(r),e),...a})}function eR({className:e,font:r,...a}){return(0,t.jsx)(eb,{className:(0,em.cn)(eC(r),e),...a})}function eP({className:e,font:r,children:a,...n}){return(0,t.jsx)(ey,{className:(0,em.cn)(eC(r),e),...n,children:a})}function eT({className:e,font:r,...a}){return(0,t.jsx)("div",{className:(0,em.cn)("absolute top-full left-0 isolate z-50 flex justify-center"),children:(0,t.jsx)(ee,{"data-slot":"navigation-menu-viewport",className:(0,em.cn)("origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-3 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]",eC(r),"shadow-[6px_0px_0px_0px_var(--foreground),-6px_0px_0px_0px_var(--foreground),0px_-6px_0px_0px_var(--foreground),0px_6px_0px_0px_var(--foreground)]","dark:shadow-[6px_0px_0px_0px_var(--ring),-6px_0px_0px_0px_var(--ring),0px_-6px_0px_0px_var(--ring),0px_6px_0px_0px_var(--ring)]",e),...a})})}function eE({className:e,font:r,...a}){return(0,t.jsx)(ew,{className:(0,em.cn)(eC(r),e),...a})}function ez({className:e,font:r,...a}){return(0,t.jsx)(Y,{"data-slot":"navigation-menu-indicator",className:(0,em.cn)("data-[state=visible]:animate-in data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden",eC(r),e),...a,children:(0,t.jsx)("div",{className:"bg-foreground dark:bg-ring relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md"})})}
1let eA=[{title:"Alert Dialog",href:"/docs/components/alert-dialog",description:"A modal dialog that interrupts the user with important content and expects a response."},{title:"Hover Card",href:"/docs/components/hover-card",description:"For sighted users to preview content available behind a link."},{title:"Progress",href:"/docs/components/progress",description:"Displays an indicator showing the completion progress of a task, typically displayed as a progress bar."},{title:"Scroll-area",href:"/docs/components/scroll-area",description:"Augments native scroll functionality for custom, cross-browser styling."},{title:"Tabs",href:"/docs/components/tabs",description:"A set of layered sections of content—known as tab panels—that are displayed one at a time."},{title:"Tooltip",href:"/docs/components/tooltip",description:"A popup that displays information related to an element when the element receives keyboard focus or the mouse hovers over it."}];function eD({title:e,children:a,href:n,...o}){return(0,t.jsx)("li",{...o,children:(0,t.jsx)(eE,{asChild:!0,children:(0,t.jsxs)(r.default,{href:n,children:[(0,t.jsx)("div",{className:"font-medium text-sm leading-none",children:e}),(0,t.jsx)("p",{className:"line-clamp-2 text-muted-foreground text-sm leading-snug",children:a})]})})})}e.s(["default",0,function(){return(0,t.jsx)(eN,{children:(0,t.jsxs)(eS,{children:[(0,t.jsxs)(ek,{children:[(0,t.jsx)(eR,{children:"Getting started"}),(0,t.jsx)(eP,{children:(0,t.jsxs)("ul",{className:"grid gap-2 md:w-[400px] lg:w-[500px] lg:grid-cols-[.75fr_1fr]",children:[(0,t.jsx)("li",{className:"row-span-3",children:(0,t.jsx)(eE,{asChild:!0,children:(0,t.jsxs)(r.default,{className:"flex h-full w-full select-none flex-col justify-end rounded-md bg-linear-to-b from-muted/50 to-muted p-6 no-underline outline-hidden focus:shadow-md",href:"/",children:[(0,t.jsx)("div",{className:"mt-4 mb-2 font-medium text-lg",children:"8bitcn/ui"}),(0,t.jsx)("p",{className:"text-muted-foreground text-sm leading-tight",children:"Beautifully designed components built with Tailwind CSS."})]})})}),(0,t.jsx)(eD,{href:"/docs",title:"Installation",children:"How to install dependencies and structure your app."}),(0,t.jsx)(eD,{href:"/docs/components/accordion",title:"Components",children:"Re-usable components built using Radix UI and Tailwind CSS."}),(0,t.jsx)(eD,{href:"/blocks/authentication",title:"Building Blocks",children:"Building Retro Blocks for the Web"})]})})]}),(0,t.jsxs)(ek,{children:[(0,t.jsx)(eR,{children:"Components"}),(0,t.jsx)(eP,{children:(0,t.jsx)("ul",{className:"grid w-[400px] gap-2 md:w-[500px] md:grid-cols-2 lg:w-[600px]",children:eA.map(e=>(0,t.jsx)(eD,{href:e.href,title:e.title,children:e.description},e.title))})})]}),(0,t.jsx)(ek,{children:(0,t.jsx)(eE,{asChild:!0,className:ev(),children:(0,t.jsx)(r.default,{href:"/docs",children:"Documentation"})})}),(0,t.jsx)(ez,{})]})})}],892297)},514563,e=>{"use strict";var t=e.i(327193),r=e.i(475127),a=e.i(887584);e.s(["RangeCalendar",0,function(){let[e,n]=(0,r.useState)(()=>({from:new Date(2025,5,12),to:new Date(2025,5,12)}));return(0,t.jsx)(a.Calendar,{defaultMonth:e?.from,mode:"range",numberOfMonths:2,onSelect:n,selected:e})}])},179265,e=>{"use strict";var t=e.i(327193),r=e.i(171812),a=e.i(173044),n=e.i(437296);function o({...e}){return(0,t.jsx)(n.Root,{"data-slot":"collapsible",...e})}function i({...e}){return(0,t.jsx)(n.CollapsibleTrigger,{"data-slot":"collapsible-trigger",...e})}function s({...e}){return(0,t.jsx)(n.CollapsibleContent,{"data-slot":"collapsible-content",...e})}var l=e.i(811522);function d({menu:e}){return(0,t.jsx)(o,{asChild:!0,children:(0,t.jsxs)(l.SidebarMenuItem,{children:[(0,t.jsx)(i,{asChild:!0,children:(0,t.jsxs)(l.SidebarMenuButton,{children:[(0,t.jsx)(a.default,{alt:e.imgAlt,height:16,src:e.imgSrc,style:{width:"16px"},width:16}),(0,t.jsx)("span",{children:e.title}),(0,t.jsx)(r.ChevronDown,{className:"ml-auto"})]})}),(0,t.jsx)(s,{children:(0,t.jsx)(l.SidebarMenuSub,{children:e.subMenus.map(e=>(0,t.jsx)(c,{subMenu:e},e))})})]})})}function c({subMenu:e}){return(0,t.jsx)(l.SidebarMenuSubItem,{children:(0,t.jsx)(l.SidebarMenuSubButton,{children:e})})}e.s(["SidebarExample",0,function(){return(0,t.jsx)("div",{style:{border:"1px var(--border) solid",width:"100%"},children:(0,t.jsxs)(l.SidebarProvider,{style:{minHeight:350,maxHeight:350},children:[(0,t.jsx)(l.Sidebar,{collapsible:"icon",style:{position:"relative",maxHeight:350,overflowY:"auto"},children:(0,t.jsx)(l.SidebarContent,{children:(0,t.jsxs)(l.SidebarGroup,{children:[(0,t.jsx)(l.SidebarGroupLabel,{children:"Lore"}),(0,t.jsx)(l.SidebarMenu,{children:[{imgSrc:"/icons/sword.png",imgAlt:"Sword",title:"Weapons",subMenus:["Ironfang","Stormcleaver","Duskblade"]},{imgSrc:"/icons/shield.png",imgAlt:"Shield",title:"Shields",subMenus:["Mirrorwall","Hearthguard","Oathkeeper"]},{imgSrc:"/images/goblin.png",imgAlt:"Goblin",title:"Monsters",subMenus:["Goblin","Giant","Dragon"]}].map(e=>(0,t.jsx)(d,{menu:e},e.title))})]})})}),(0,t.jsx)(l.SidebarInset,{children:(0,t.jsx)(l.SidebarTrigger,{})})]})})}],179265)},819801,e=>{"use strict";var t=e.i(327193),r=e.i(729034),a=e.i(625257),n=e.i(121536),o=e.i(783375),i=e.i(533386),s=e.i(514690),l=e.i(530549),d=e.i(788369);e.s(["default",0,function(){let{activeTheme:e,setActiveTheme:c}=(0,r.useThemeConfig)();return(0,t.jsxs)("div",{className:"space-y-8",children:[(0,t.jsx)("div",{className:"space-y-4",children:(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("div",{className:"font-medium text-sm",children:"Theme Selector"}),(0,t.jsx)("p",{className:"text-muted-foreground text-xs",children:"Theme selector with retro themes dropdown"}),(0,t.jsx)("div",{className:"w-64",children:(0,t.jsx)(o.SelectThemeDropdown,{activeTheme:e,setActiveTheme:c})})]})}),(0,t.jsx)("div",{className:"space-y-4",children:(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("div",{className:"font-medium text-sm",children:"Current Theme"}),(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsx)(i.Badge,{children:e}),(0,t.jsx)("span",{className:"text-muted-foreground text-xs",children:"Active theme applied to this page"})]})]})}),(0,t.jsxs)("div",{className:"retro space-y-4",children:[(0,t.jsx)("h4",{className:"font-medium text-md",children:"Available Themes"}),(0,t.jsx)("p",{className:"text-muted-foreground text-sm",children:"Click on any theme below to switch to it instantly"}),(0,t.jsx)("div",{className:"flex flex-wrap gap-5",children:Object.values(s.Theme).map(r=>(0,t.jsx)(l.Button,{onClick:()=>c(r),variant:e===r?"outline":"default",children:r.replace("-"," ")},r))})]}),(0,t.jsx)("h3",{className:"font-bold text-lg",children:"Installation"}),(0,t.jsx)(d.Separator,{}),(0,t.jsx)(n.default,{packageName:"theme-selector"}),(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)("h4",{className:"font-medium text-md",children:"Put it in your layout"}),(0,t.jsx)(a.default,{children:`import { ActiveThemeProvider }
1 from "@/components/active-theme"
2
3// You can also overwrite your globals.css file
4import "./retro-globals.css";
5
6export default function RootLayout({ children }: { children: React.ReactNode }) {
7  return (
8    ...
9    <ActiveThemeProvider>
10      {children}
11    </ActiveThemeProvider>
12    ...
13  )
14}`}),(0,t.jsx)("h4",{className:"font-medium text-md",children:"Usage Examples"}),(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)(a.default,{children:`import { SelectThemeDropdown } from "@/components/select-theme-dropdown";
15          
16  export default function Component() {
17  const { activeTheme, setActiveTheme } = useThemeConfig();
18
19  return (
20    <SelectThemeDropdown
21      activeTheme={activeTheme}
22      setActiveTheme={setActiveTheme}
23    />
24  )
25}`}),(0,t.jsx)("h4",{className:"font-medium text-md",children:"Custom With Button"}),(0,t.jsx)(a.default,{children:`import { useThemeConfig } from "@/components/active-theme"
26import { Theme } from "@/lib/themes"
27
28function MyComponent() {
29  const { activeTheme, setActiveTheme } = useThemeConfig()
30  
31  return (
32    <div>
33      <p>Current theme: {activeTheme}</p>
34      <button onClick={() => setActiveTheme(Theme.Sega)}>
35        Switch to Sega
36      </button>
37    </div>
38  )
39}`})]})]})]})}])},290009,e=>{"use strict";var t=e.i(327193),r=e.i(530549),a=e.i(575007);e.s(["ToastExample",0,function(){return(0,t.jsx)(r.Button,{onClick:()=>(0,a.toast)("8bitcn is an awesome project!"),children:"Show Toast"})}])},121536,e=>{"use strict";var t=e.i(327193),r=e.i(961907),a=e.i(282889),n=e.i(475127),o=e.i(575007),i=e.i(167881),s=e.i(127341);e.s(["default",0,function({packageName:e}){let[l,d]=(0,n.useState)(`pnpm dlx shadcn@latest add @8bitcn/${e}
39`),[c,u]=(0,n.useState)(!1);return(0,t.jsx)("div",{className:"overflow-hidden border",children:(0,t.jsx)("div",{className:"bg-background",children:(0,t.jsxs)(s.Tabs,{defaultValue:"pnpm",children:[(0,t.jsxs)(s.TabsList,{className:"h-12 w-full justify-between rounded-none border-b bg-background px-2",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(s.TabsTrigger,{className:"rounded-none px-2 data-[state=active]:border-x-2 data-[state=active]:border-b-2 data-[state=active]:border-b-primary data-[state=active]:bg-transparent data-[state=active]:shadow-none",onClick:()=>d(`pnpm dlx shadcn@latest add @8bitcn/${e}`),value:"pnpm",children:"pnpm"}),(0,t.jsx)(s.TabsTrigger,{className:"rounded-none px-2 data-[state=active]:border-b-2 data-[state=active]:border-b-primary data-[state=active]:bg-transparent data-[state=active]:shadow-none",onClick:()=>d(`npx shadcn@latest add @8bitcn/${e}`),value:"npm",children:"npm"}),(0,t.jsx)(s.TabsTrigger,{className:"rounded-none px-2 data-[state=active]:border-b-2 data-[state=active]:border-b-primary data-[state=active]:bg-transparent data-[state=active]:shadow-none",onClick:()=>d(`yarn dlx shadcn@latest add @8bitcn/${e}`),value:"yarn",children:"yarn"}),(0,t.jsx)(s.TabsTrigger,{className:"rounded-none px-2 data-[state=active]:border-b-2 data-[state=active]:border-b-primary data-[state=active]:bg-transparent data-[state=active]:shadow-none",onClick:()=>d(`bunx --bun shadcn@latest add @8bitcn/${e}`),value:"bun",children:"bun"})]}),(0,t.jsx)(i.Button,{className:"rounded-md hover:bg-primary/20",onClick:()=>{navigator.clipboard.writeText(l),u(!0),(0,o.toast)("Command copied to clipboard"),setTimeout(()=>{u(!1)},3e3)},size:"icon",variant:"ghost",children:c?(0,t.jsx)(r.Check,{className:"size-3"}):(0,t.jsx)(a.Clipboard,{className:"size-3"})})]}),(0,t.jsx)(s.TabsContent,{className:"p-4 pt-2",value:"pnpm",children:(0,t.jsxs)("div",{className:"font-mono text-sm",children:["pnpm dlx shadcn@latest add @8bitcn/",e]})}),(0,t.jsx)(s.TabsContent,{className:"p-4 pt-2",value:"npm",children:(0,t.jsxs)("div",{className:"font-mono text-sm",children:["npx shadcn@latest add @8bitcn/",e]})}),(0,t.jsx)(s.TabsContent,{className:"p-4 pt-2",value:"yarn",children:(0,t.jsxs)("div",{className:"font-mono text-sm",children:["yarn dlx shadcn@latest add @8bitcn/",e]})}),(0,t.jsx)(s.TabsContent,{className:"p-4 pt-2",value:"bun",children:(0,t.jsxs)("div",{className:"font-mono text-sm",children:["bunx --bun shadcn@latest add @8bitcn/",e]})})]})})})}])},233111,e=>{"use strict";var t=e.i(327193),r=e.i(921761),a=e.i(318203),n=e.i(890538);let o=n.Accordion;e.s(["Accordion",0,o,"AccordionContent",0,function({className:e,children:o,font:i,...s}){return(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(n.AccordionContent,{className:(0,a.cn)("overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down","normal"!==i&&"retro",e),...s,children:(0,t.jsx)("div",{className:"pb-4 pt-0 relative z-10 p-1",children:o})}),(0,t.jsx)(r.Content,{asChild:!0,forceMount:!0})]})},"AccordionItem",0,function({className:e,children:r,...o}){return(0,t.jsx)(n.AccordionItem,{className:(0,a.cn)("border-dashed border-b-4 border-foreground dark:border-ring relative",e),...o,children:r})},"AccordionTrigger",0,function({className:e,children:r,font:o,...i}){return(0,t.jsx)(n.AccordionTrigger,{className:(0,a.cn)("normal"!==o&&"retro",e),...i,children:r})}])},763032,e=>{"use strict";var t=e.i(327193),r=e.i(294237),a=e.i(318203),n=e.i(475127),o=e.i(767240),i=e.i(443644),s=e.i(684533),l=e.i(515201),d="AlertDialog",[c,u]=(0,o.createContextScope)(d,[s.createDialogScope]),p=(0,s.createDialogScope)(),f=e=>{let{__scopeAlertDialog:r,...a}=e,n=p(r);return(0,t.jsx)(s.Root,{...n,...a,modal:!0})};f.displayName=d;var m=n.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...n}=e,o=p(a);return(0,t.jsx)(s.Trigger,{...o,...n,ref:r})});m.displayName="AlertDialogTrigger";var x=e=>{let{__scopeAlertDialog:r,...a}=e,n=p(r);return(0,t.jsx)(s.Portal,{...n,...a})};x.displayName="AlertDialogPortal";var h=n.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...n}=e,o=p(a);return(0,t.jsx)(s.Overlay,{...o,...n,ref:r})});h.displayName="AlertDialogOverlay";var g="AlertDialogContent",[v,b]=c(g),y=n.forwardRef((e,r)=>{let{__scopeAlertDialog:a,children:o,...d}=e,c=p(a),u=n.useRef(null),f=(0,i.useComposedRefs)(r,u),m=n.useRef(null);return(0,t.jsx)(v,{scope:a,cancelRef:m,children:(0,t.jsx)(s.Content,{role:"alertdialog",...c,...d,ref:f,onOpenAutoFocus:(0,l.composeEventHandlers)(d.onOpenAutoFocus,e=>{e.preventDefault(),m.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:o})})});y.displayName=g;var w=n.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...n}=e,o=p(a);return(0,t.jsx)(s.Title,{...o,...n,ref:r})});w.displayName="AlertDialogTitle";var j=n.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...n}=e,o=p(a);return(0,t.jsx)(s.Description,{...o,...n,ref:r})});j.displayName="AlertDialogDescription";var C=n.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...n}=e,o=p(a);return(0,t.jsx)(s.Close,{...o,...n,ref:r})});C.displayName="AlertDialogAction";var N="AlertDialogCancel",S=n.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...n}=e,{cancelRef:o}=b(N,a),l=p(a),d=(0,i.useComposedRefs)(r,o);return(0,t.jsx)(s.Close,{...l,...n,ref:d})});S.displayName=N;var k=e.i(167881);function R({...e}){return(0,t.jsx)(f,{"data-slot":"alert-dialog",...e})}function P({...e}){return(0,t.jsx)(m,{"data-slot":"alert-dialog-trigger",...e})}function T({...e}){return(0,t.jsx)(x,{"data-slot":"alert-dialog-portal",...e})}function E({className:e,...r}){return(0,t.jsx)(h,{"data-slot":"alert-dialog-overlay",className:(0,a.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...r})}function z({className:e,...r}){return(0,t.jsxs)(T,{children:[(0,t.jsx)(E,{}),(0,t.jsx)(y,{"data-slot":"alert-dialog-content",className:(0,a.cn)("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 roun
39ded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",e),...r})]})}function A({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,a.cn)("flex flex-col gap-2 text-center sm:text-left",e),...r})}function D({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,a.cn)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...r})}function M({className:e,...r}){return(0,t.jsx)(w,{"data-slot":"alert-dialog-title",className:(0,a.cn)("text-lg font-semibold",e),...r})}function I({className:e,...r}){return(0,t.jsx)(j,{"data-slot":"alert-dialog-description",className:(0,a.cn)("text-muted-foreground text-sm",e),...r})}function L({className:e,...r}){return(0,t.jsx)(C,{className:(0,a.cn)((0,k.buttonVariants)(),e),...r})}function O({className:e,...r}){return(0,t.jsx)(S,{className:(0,a.cn)((0,k.buttonVariants)({variant:"outline"}),e),...r})}let H=(0,r.cva)("",{variants:{font:{normal:"",retro:"retro"}},defaultVariants:{font:"retro"}});function _({...e}){return(0,t.jsx)(T,{...e})}function F({className:e,...r}){return(0,t.jsx)(E,{className:(0,a.cn)(e),...r})}e.s(["AlertDialog",0,function({...e}){return(0,t.jsx)(R,{...e})},"AlertDialogAction",0,function({className:e,...r}){return(0,t.jsxs)(L,{className:(0,a.cn)("rounded-none active:translate-y-1 transition-transform relative bg-primary","ring-0 border-none",e),...r,children:[r.children,(0,t.jsx)("div",{className:"absolute -top-1.5 w-1/2 left-1.5 h-1.5 bg-foreground dark:bg-ring"}),(0,t.jsx)("div",{className:"absolute -top-1.5 w-1/2 right-1.5 h-1.5 bg-foreground dark:bg-ring"}),(0,t.jsx)("div",{className:"absolute -bottom-1.5 w-1/2 left-1.5 h-1.5 bg-foreground dark:bg-ring"}),(0,t.jsx)("div",{className:"absolute -bottom-1.5 w-1/2 right-1.5 h-1.5 bg-foreground dark:bg-ring"}),(0,t.jsx)("div",{className:"absolute top-0 left-0 size-1.5 bg-foreground dark:bg-ring"}),(0,t.jsx)("div",{className:"absolute top-0 right-0 size-1.5 bg-foreground dark:bg-ring"}),(0,t.jsx)("div",{className:"absolute bottom-0 left-0 size-1.5 bg-foreground dark:bg-ring"}),(0,t.jsx)("div",{className:"absolute bottom-0 right-0 size-1.5 bg-foreground dark:bg-ring"}),(0,t.jsx)("div",{className:"absolute top-1.5 -left-1.5 h-2/3 w-1.5 bg-foreground dark:bg-ring"}),(0,t.jsx)("div",{className:"absolute top-1.5 -right-1.5 h-2/3 w-1.5 bg-foreground dark:bg-ring"}),(0,t.jsx)("div",{className:"absolute top-0 left-0 w-full h-1.5 bg-foreground
39/20"}),(0,t.jsx)("div",{className:"absolute top-1.5 left-0 w-3 h-1.5 bg-foreground/20"}),(0,t.jsx)("div",{className:"absolute bottom-0 left-0 w-full h-1.5 bg-foreground/20"}),(0,t.jsx)("div",{className:"absolute bottom-1.5 right-0 w-3 h-1.5 bg-foreground/20"})]})},"AlertDialogCancel",0,function({className:e,...r}){return(0,t.jsxs)(O,{className:(0,a.cn)("rounded-none active:translate-y-1 transition-transform relative bg-background","ring-0 border-none",e),...r,children:[r.children,(0,t.jsx)("div",{className:"absolute -top-1.5 w-1/2 left-1.5 h-1.5 bg-foreground dark:bg-ring"}),(0,t.jsx)("div",{className:"absolute -top-1.5 w-1/2 right-1.5 h-1.5 bg-foreground dark:bg-ring"}),(0,t.jsx)("div",{className:"absolute -bottom-1.5 w-1/2 left-1.5 h-1.5 bg-foreground dark:bg-ring"}),(0,t.jsx)("div",{className:"absolute -bottom-1.5 w-1/2 right-1.5 h-1.5 bg-foreground dark:bg-ring"}),(0,t.jsx)("div",{className:"absolute top-0 left-0 size-1.5 bg-foreground dark:bg-ring"}),(0,t.jsx)("div",{className:"absolute top-0 right-0 size-1.5 bg-foreground dark:bg-ring"}),(0,t.jsx)("div",{className:"absolute bottom-0 left-0 size-1.5 bg-foreground dark:bg-ring"}),(0,t.jsx)("div",{className:"absolute bottom-0 right-0 size-1.5 bg-foreground dark:bg-ring"}),(0,t.jsx)("div",{className:"absolute top-1.5 -left-1.5 h-2/3 w-1.5 bg-foreground dark:bg-ring"}),(0,t.jsx)("div",{className:"absolute top-1.5 -right-1.5 h-2/3 w-1.5 bg-foreground dark:bg-ring"})]})},"AlertDialogContent",0,function({className:e,children:r,font:n,...o}){return(0,t.jsxs)(_,{children:[(0,t.jsx)(F,{}),(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(z,{className:(0,a.cn)("rounded-none border-y-6 border-foreground dark:border-ring","normal"!==n&&"retro",e),...o,children:[r,(0,t.jsx)("div",{className:"absolute inset-0 border-x-6 -mx-1.5 border-foreground dark:border-ring pointer-events-none","aria-hidden":"true"})]})})]})},"AlertDialogDescription",0,function({className:e,...r}){return(0,t.jsx)(I,{className:(0,a.cn)(e),...r})},"AlertDialogFooter",0,function({className:e,...r}){return(0,t.jsx)(D,{className:(0,a.cn)("flex flex-col-reverse sm:flex-row gap-4",e),...r})},"AlertDialogHeader",0,function({className:e,...r}){return(0,t.jsx)(A,{className:(0,a.cn)(e),...r})},"AlertDialogOverlay",0,F,"AlertDialogPortal",0,_,"AlertDialogTitle",0,function({className:e,...r}){return(0,t.jsx)(M,{className:(0,a.cn)(e),...r})},"AlertDialogTrigger",0,function({className:e,asChild:r=!0,...n}){return(0,t.jsx)(P,{className:(0,a.cn)(e),asChild:r,...n})},"alertDialogVariants",0,H],763032)},880781,e=>{"use strict";var t=e.i(327193);let r=(0,e.i(829647).default)("activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);var a=e.i(356552),n=e.i(752351),o=e.i(584877),i=e.i(898335),s=e.i(403980);let l=[{month:"January",desktop:99},{month:"February",desktop:204},{month:"March",desktop:180},{month:"April",desktop:120},{month:"May",desktop:180},{month:"June",desktop:42}],d={desktop:{label:"Desktop",color:"var(--chart-1)",icon:r}};e.s(["default",0,function(){return(0,t.jsx)(s.ChartContainer,{config:d,children:(0,t.jsxs)(n.AreaChart,{data:l,margin:{left:20,right:20},children:[(0,t.jsx)(o.CartesianGrid,{vertical:!1}),(0,t.jsx)(i.XAxis,{dataKey:"month",tickLine:!1,axisLine:!1,tickMargin:8,tickFormatter:e=>e.slice(0,3)}),(0,t.jsx)(s.ChartTooltip,{cursor:!1,content:(0,t.jsx)(s.ChartTooltipContent,{hideLabel:!0})}),(0,t.jsx)(a.Area,{dataKey:"desktop",type:"step",fill:"var(--color-desktop)",stroke:"var(--color-desktop)",activeDot:{fill:"var(--chart-active-dot)"}})]})})},"description",0,"A step area chart"],880781)},519625,e=>{"use strict";var t=e.i(327193),r=e.i(356552),a=e.i(752351),n=e.i(584877),o=e.i(898335),i=e.i(475127),s=e.i(7284),l=e.i(818904),d=e.i(483951),c=e.i(806366),u=e.i(641952),p=e.i(332028),f=e.i(14095),m=e.i(459261),x=e.i(21379),h=e.i(902993),g=e.i(262902),v=e.i(176048),b=["type"],y=["dangerouslySetInnerHTML","ticks","scale"],w=["id","scale"];function j(){return(j=Object.assign.bind()).apply(null,arguments)}function C(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function N(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
39t%2?C(Object(r),!0).forEach(function(t){var a,n,o;a=e,n=t,o=r[t],(n=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=typeof a)return a;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(n))in a?Object.defineProperty(a,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):a[n]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function S(e,t){if(null==e)return{};var r,a,n=function(e,t){if(null==e)return{};var r={};for(var a in e)if(({}).hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;r[a]=e[a]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function k(e){var t=(0,c.useAppDispatch)(),r=(0,i.useRef)(null),a=(0,g.useCartesianChartLayout)(),n=e.type,o=S(e,b),s=(0,v.getAxisTypeBasedOnLayout)(a,"yAxis",n),l=(0,i.useMemo)(()=>{if(null!=s)return N(N({},o),{},{type:s})},[s,o]);return(0,i.useLayoutEffect)(()=>{null!=l&&(null===r.current?t((0,d.addYAxis)(l)):r.current!==l&&t((0,d.replaceYAxis)({prev:r.current,next:l})),r.current=l)},[l,t]),(0,i.useLayoutEffect)(()=>()=>{r.current&&(t((0,d.removeYAxis)(r.current)),r.current=null)},[t]),null}function R(e){var t=e.yAxisId,r=e.className,a=e.width,n=e.label,o=(0,i.useRef)(null),x=(0,i.useRef)(null),h=(0,c.useAppSelector)(p.selectAxisViewBox),g=(0,f.useIsPanorama)(),v=(0,c.useAppDispatch)(),b="yAxis",C=(0,c.useAppSelector)(e=>(0,u.selectYAxisSize)(e,t)),N=(0,c.useAppSelector)(e=>(0,u.selectYAxisPosition)(e,t)),k=(0,c.useAppSelector)(e=>(0,u.selectTicksOfAxis)(e,b,t,g)),R=(0,c.useAppSelector)(e=>(0,u.selectYAxisSettingsNoDefaults)(e,t));if((0,i.useLayoutEffect)(()=>{if(!("auto"!==a||!C||(0,m.isLabelContentAFunction)(n)||(0,i.isValidElement)(n))&&null!=R){var e=o.current;if(e){var r=e.getCalculatedWidth();Math.round(C.width)!==Math.round(r)&&v((0,d.updateYAxisWidth)({id:t,width:r}))}}},[k,C,v,n,t,a,R]),null==C||null==N||null==R)return null;e.dangerouslySetInnerHTML,e.ticks,e.scale;var P=S(e,y);R.id,R.scale;var T=S(R,w);return i.createElement(l.CartesianAxis,j({},P,T,{ref:o,labelRef:x,x:N.x,y:N.y,tickTextProps:"auto"===a?{width:void 0}:{width:a},width:C.width,height:C.height,className:(0,s.clsx)("recharts-".concat(b," ").concat(b),r),viewBox:h,ticks:k,axisType:b,axisId:t}))}var P={allowDataOverflow:u.implicitYAxis.allowDataOverflow,allowDecimals:u.implicitYAxis.allowDecimals,allowDuplicatedCategory:u.implicitYAxis.allowDuplicatedCategory,angle:u.implicitYAxis.angle,axisLine:l.defaultCartesianAxisProps.axisLine,hide:!1,includeHidden:u.implicitYAxis.includeHidden,interval:u.implicitYAxis.interval,label:!1,minTickGap:u.implicitYAxis.minTickGap,mirror:u.implicitYAxis.mirror,orientation:u.implicitYAxis.orientation,padding:u.implicitYAxis.padding,reversed:u.implicitYAxis.reversed,scale:u.implicitYAxis.scale,tick:u.implicitYAxis.tick,tickCount:u.implicitYAxis.tickCount,tickLine:l.defaultCartesianAxisProps.tickLine,tickSize:l.defaultCartesianAxisProps.tickSize,type:u.implicitYAxis.type,niceTicks:u.implicitYAxis.niceTicks,width:u.implicitYAxis.width,yAxisId:0},T=i.memo(e=>{var t=(0,x.resolveDefaultProps)(e,P);return i.createElement(i.Fragment,null,i.createElement(k,{interval:t.interval,id:t.yAxisId,scale:t.scale,type:t.type,domain:t.domain,allowDataOverflow:t.allowDataOverflow,dataKey:t.dataKey,allowDuplicatedCategory:t.allowDuplicatedCategory,allowDecimals:t.allowDecimals,tickCount:t.tickCount,padding:t.padding,includeHidden:t.includeHidden,reversed:t.reversed,ticks:t.ticks,width:t.width,orientation:t.orientation,mirror:t.mirror,hide:t.hide,unit:t.unit,name:t.name,angle:t.angle,minTickGap:t.minTickGap,tick:t.tick,tickFormatter:t.tickFormatter,niceTicks:t.niceTicks}),i.createElement(R,t))},h.axisPropsAreEqual);T.displayName="YAxis";var E=e.i(403980);let z=[{month:"January",desktop:186,mobile:80},{month:"February",desktop:305,mobile:200},{month:"March",desktop:237,mobile:120},{month:"April",desktop:73,mobile:190},{month:"May",desktop:209,mobile:130},{month:"June",desktop:214,mobile:140}],A={desktop:{label:"Desktop",color:"var(--chart-1)"},mobile:{label:"Mobile",color:"var(--chart-2)"}};e.s(["ChartExample",0,function(){return(0,t.jsx)(E.ChartContainer,{config:A,className:"min-h-[200px] w-full retro",children:(0,t.jsxs)(a.AreaChart,{accessibilityLayer:!0,data:z,children:[(0,t.jsx)(n.CartesianGrid,{}
39),(0,t.jsx)(o.XAxis,{dataKey:"month",tickLine:!1,axisLine:!1,tickMargin:8,tickFormatter:e=>e.slice(0,3)}),(0,t.jsx)(E.ChartTooltip,{cursor:!1,content:(0,t.jsx)(E.ChartTooltipContent,{})}),(0,t.jsx)(T,{width:47,tickLine:!1,axisLine:!1,tickMargin:8,tickCount:3}),(0,t.jsx)(r.Area,{dataKey:"mobile",fill:"var(--chart-2)",stroke:"var(--chart-2)",stackId:"a"}),(0,t.jsx)(r.Area,{dataKey:"desktop",fill:"var(--chart-1)",stroke:"var(--chart-1)",stackId:"a"})]})})},"description",0,"An area chart with axes"],519625)},884794,e=>{"use strict";var t=e.i(327193),r=e.i(173044),a=e.i(475127),n=e.i(318203),o=e.i(431451),i=e.i(533386),s=e.i(530549),l=e.i(400541);let d=["Critical strike!","Holy damage!","Shield block!","Orc smash!","Combo x2!","Parried!","Devastating blow!","Glancing hit!"];e.s(["default",0,function({leftFighter:e={name:"Paladin",subtitle:"Holy Vanguard",image:"/images/8bit-paladin.png",hp:100,maxHp:100},rightFighter:c={name:"Orc Warrior",subtitle:"Arena Berserker",image:"/images/8bit-orc-warrior.png",hp:100,maxHp:100},className:u}){let[p,f]=(0,a.useState)(e),[m,x]=(0,a.useState)(c),[h,g]=(0,a.useState)(1),[v,b]=(0,a.useState)("Fight!"),[y,w]=(0,a.useState)(null),j=p.hp<=0?m.name:m.hp<=0?p.name:null,C=(0,a.useCallback)(()=>{if(j)return;let e=Math.floor(20*Math.random())+5,t=d[Math.floor(Math.random()*d.length)];h%2==1?(x(t=>({...t,hp:Math.max(0,t.hp-e)})),b(`${p.name}: ${t} -${e} HP`),w("right")):(f(t=>({...t,hp:Math.max(0,t.hp-e)})),b(`${m.name}: ${t} -${e} HP`),w("left")),g(e=>e+1)},[h,j,p.name,m.name]),N=(0,a.useCallback)(()=>{f(e),x(c),g(1),b("Round 1 — Fight!"),w(null)},[e,c]);return(0,t.jsx)("div",{className:(0,n.cn)("retro w-full px-4 py-12 md:py-16",u),children:(0,t.jsxs)("div",{className:"mx-auto max-w-2xl",children:[(0,t.jsx)("div",{className:"mb-6 text-center",children:(0,t.jsx)(i.Badge,{children:"DUEL"})}),(0,t.jsxs)("div",{className:"flex flex-col gap-4 md:hidden",children:[(0,t.jsxs)("div",{className:"flex flex-col items-center gap-2",children:[(0,t.jsxs)("div",{className:"w-full max-w-[180px]",children:[(0,t.jsxs)("div",{className:"retro mb-1 flex justify-between text-[8px]",children:[(0,t.jsx)("span",{children:"HP"}),(0,t.jsxs)("span",{children:[p.hp,"/",p.maxHp]})]}),(0,t.jsx)(l.default,{value:p.hp/p.maxHp*100,variant:"retro"})]}),(0,t.jsx)(r.default,{alt:p.name,className:(0,n.cn)("pixelated transition-transform duration-200","left"===y&&"scale-90"),height:132,src:p.image,width:132}),(0,t.jsx)("p",{className:"retro font-bold text-xs",children:p.name}),(0,t.jsx)("p",{className:"retro text-muted-foreground text-[8px]",children:p.subtitle})]}),(0,t.jsxs)("div",{className:"flex flex-col items-center gap-3 rounded-lg border border-border/60 bg-muted/20 px-3 py-4",children:[(0,t.jsx)("p",{className:"retro font-bold text-2xl",children:"VS"}),j?(0,t.jsxs)("div",{className:"flex w-full flex-col items-center gap-2",children:[(0,t.jsxs)(i.Badge,{children:[j," wins!"]}),(0,t.jsx)(s.Button,{className:"w-full max-w-[180px]",onClick:N,size:"sm",variant:"outline",children:"Rematch"})]}):(0,t.jsx)(s.Button,{className:"w-full max-w-[180px] text-[9px]",onClick:C,size:"sm",children:"Hit"}),(0,t.jsxs)("p",{className:"retro text-muted-foreground text-[8px]",children:["Round ",h]})]}),(0,t.jsxs)("div",{className:"flex flex-col items-center gap-2",children:[(0,t.jsxs)("div",{className:"w-full max-w-[180px]",children:[(0,t.jsxs)("div",{className:"retro mb-1 flex justify-between text-[8px]",children:[(0,t.jsx)("span",{children:"HP"}),(0,t.jsxs)("span",{children:[m.hp,"/",m.maxHp]})]}),(0,t.jsx)(l.default,{value:m.hp/m.maxHp*100,variant:"retro"})]}),(0,t.jsx)(r.default,{alt:m.name,className:(0,n.cn)("pixelated transition-transform duration-200","right"===y&&"scale-90"),height:132,src:m.image,width:132}),(0,t.jsx)("p",{className:"retro font-bold text-xs",children:m.name}),(0,t.jsx)("p",{className:"retro text-muted-foreground text-[8px]",children:m.subtitle})]})]}),(0,t.jsxs)("div",{className:"hidden items-center gap-4 md:flex",children:[(0,t.jsxs)("div",{className:"flex flex-1 flex-col items-center gap-2",children:[(0,t.jsxs)("div",{className:"w-full max-w-[120px]",children:[(0,t.jsxs)("div",{className:"retro mb-1 flex justify-between text-[8px]",children:[(0,t.jsx)("span",{children:"HP"}),(0,t.jsxs)("span",{children:[p.hp,"/",p.maxHp]})]}),(0,t.jsx)(l.default,{value:p.hp/p.maxHp*100,variant:"retro"})]}),(0,t.jsx)(r.default,{alt:p.name,className:(0,n.cn)("pixelated transition-transform duration-200","left"===y&&"scale-90"),height:120,src:p.image,width:120}),(0,t.jsx)("p",{className:"retro font-bold text-xs",children:p.name}),(0,t.jsx)("p",{className:"retro text-muted-foreground text-[8px]",children:p.subtitle})]}),(0,t.jsxs)("div",{className:"flex flex-col items-center gap-3",children:[(0,t.jsx)("p",{className:"retro font-bold text-3xl",children:"VS"}),j?(0,t.jsxs)("div",{className:"flex flex-col items-center gap-2",children:[(0,t.jsxs)(i.Badge,{children:[j," wins!"]}),(0,t.jsx)(s.Button,{onClick:N,size:"sm",variant:"outline",children:"Rematch"})]}):(0,t.jsx)(s.Button,{className:"text-[9px]",onClick:C,size:"sm",children:"Hit"})]}),(0,t.jsxs)("div",{className:"flex flex-1 flex-col items-center gap-2",children:[(0,t.jsxs)("div",{className:"w-full max-w-[120px]",children:[(0,t.jsxs)("div",{className:"retro mb-1 flex justify-between text-[8px]",children:[(0,t.jsx)("span",{children:"HP"}),(0,t.jsxs)("span",{children:[m.hp,"/",m.maxHp]})]}),(0,t.jsx)(l.default,{value:m.hp/m.maxHp*100,variant:"retro"})]}),(0,t.jsx)(r.default,{alt:m.name,className:(0,n.cn)("pixelated transition-transform duration-200","right"===y&&"scale-90"),height:120,src:m.image,width:120}),(0,t.jsx)("p",{className:"retro font-bold text-xs",children:m.name}),(0,t.jsx)("p",{className:"retro text-muted-foreground text-[8px]",children:m.subtitle})]})]}),(0,t.jsx)("div",{className:"mt-6 min-h-[84px]",children:(0,t.jsxs)(o.Alert,{children:[(0,t.jsxs)(o.AlertTitle,{children:["Round ",h]}),(0,t.jsx)(o.AlertDescription,{children:v})]})})]})})}])},839730,e=>{"use strict";var t=e.i(327193),r=e.i(475127),a=e.i(318203),n=e.i(233111),o=e.i(248780);let i=[{category:"General",question:"What is 8bitcn?",answer:"A retro-styled component library for React. Think shadcn/ui but everything looks like it came from a 1985 arcade 
39cabinet."},{category:"General",question:"Is this production ready?",answer:"Yes. Every component is accessible, responsive, and tested. The pixel borders are decorative — the engineering is serious."},{category:"Setup",question:"How do I install components?",answer:"Use the shadcn CLI: pnpm dlx shadcn@latest add @8bitcn/button. Components are copied into your project — no runtime dependency."},{category:"Setup",question:"Does it work with existing shadcn?",answer:"Absolutely. 8bitcn wraps shadcn components. Your existing setup stays intact. Just add the retro layer on top."},{category:"Billing",question:"Is the library free?",answer:"The core library is MIT licensed and free forever. Premium blocks and templates will be available separately."},{category:"Billing",question:"Do you offer team licenses?",answer:"Not yet, but it's on the roadmap. For now, one purchase covers your entire team since components are copy-pasted."}];e.s(["default",0,function({title:e="Help Center",description:s="Search or browse common questions",items:l=i,className:d}){let[c,u]=(0,r.useState)(""),p=c?l.filter(e=>e.question.toLowerCase().includes(c.toLowerCase())||e.answer.toLowerCase().includes(c.toLowerCase())):l,f=[...new Set(p.map(e=>e.category).filter(Boolean))];return(0,t.jsx)("section",{className:(0,a.cn)("w-full px-4 py-16",d),children:(0,t.jsxs)("div",{className:"mx-auto max-w-2xl",children:[(e||s)&&(0,t.jsxs)("div",{className:"mb-6 text-center",children:[e&&(0,t.jsx)("h2",{className:"retro mb-3 font-bold text-2xl tracking-tight md:text-3xl",children:e}),s&&(0,t.jsx)("p",{className:"retro mx-auto max-w-xl text-muted-foreground text-[9px]",children:s})]}),(0,t.jsx)("div",{className:"mb-8",children:(0,t.jsx)(o.Input,{"aria-label":"Search frequently asked questions",className:"retro text-xs",onChange:e=>u(e.target.value),placeholder:"Search questions...",type:"search",value:c})}),0===p.length?(0,t.jsx)("p",{className:"retro py-8 text-center text-muted-foreground text-xs",children:"No results found. Try a different search."}):f.length>0?(0,t.jsx)("div",{className:"space-y-8",children:f.map(e=>(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"retro mb-3 text-muted-foreground text-[10px] uppercase tracking-widest",children:e}),(0,t.jsx)(n.Accordion,{collapsible:!0,type:"single",children:p.filter(t=>t.category===e).map((r,a)=>(0,t.jsxs)(n.AccordionItem,{value:`${e}-${a}`,children:[(0,t.jsx)(n.AccordionTrigger,{className:"retro text-left text-xs",children:r.question}),(0,t.jsx)(n.AccordionContent,{className:"retro text-[9px] leading-relaxed text-muted-foreground",children:r.answer})]},r.question))})]},e))}):(0,t.jsx)(n.Accordion,{collapsible:!0,type:"single",children:p.map((e,r)=>(0,t.jsxs)(n.AccordionItem,{value:`faq-${r}`,children:[(0,t.jsx)(n.AccordionTrigger,{className:"retro text-left text-xs",children:e.question}),(0,t.jsx)(n.AccordionContent,{className:"retro text-[9px] leading-relaxed text-muted-foreground",children:e.answer})]},e.question))})]})})}])},774197,e=>{"use strict";var t=e.i(327193),r=e.i(321108),a=e.i(475127),n=e.i(318203),o=e.i(533386),i=e.i(530549),s=e.i(253452);function l({children:e}){let[r,n]=(0,a.useState)(!0);return(0,a.useEffect)(()=>{let e=setInterval(()=>n(e=>!e),800);return()=>clearInterval(e)},[]),(0,t.jsx)("span",{className:r?"opacity-100":"opacity-0",children:e})}e.s(["default",0,function({title:e,subtitle:a,description:d,actions:c=[],stats:u=[],className:p,children:f}){let m=u.length>0?u:[{label:"COMPONENTS",value:"50+"},{label:"GITHUB STARS",value:"1.7K"},{label:"CONTRIBUTORS",value:"100+"}];return(0,t.jsxs)("section",{className:(0,n.cn)("relative w-full overflow-hidden px-4 py-16 md:py-24",p),children:[(0,t.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 opacity-[0.03]",style:{backgroundImage:"repeating-linear-gradient(0deg, transparent, transparent 2px, currentColor 2px, currentColor 3px)"}}),(0,t.jsxs)("div",{className:"relative mx-auto max-w-4xl text-center",children:[a&&(0,t.jsx)("div",{className:"mb-6",children:(0,t.jsx)(o.Badge,{children:a})}),(0,t.jsx)("h1",{className:"retro mb-6 font-bold text-4xl tracking-tight md:text-6xl lg:text-7xl",children:e}),d&&(0,t.jsx)("p",{className:"mx-auto mb-8 max-w-xl text-muted-foreground retro text-[9px] leading-relaxed",children:d}),(0,t.jsx)("div",{className:"mb-8 flex flex-wrap justify-center gap-4",children:m.map(e=>(0,t.jsx)(s.Card,{children:(0,t.jsxs)(s.CardContent,{className:"flex flex-col items-center px-6 py-4",children:[(0,t.jsx)("span",{className:"retro font-bold text-xl md:text-2xl",children:e.value}),(0,t.jsx)("span",{className:"retro mt-1 text-muted-foreground text-[10px]",children:e.label})]})},e.label))}),c.length>0?(0,t.jsx)("div",{className:"flex flex-wrap justify-center gap-4",children:c.map(e=>e.href?(0,t.jsx)(i.Button,{asChild:!0,variant:e.variant,children:(0,t.jsx)(r.default,{href:e.href,children:e.label})},e.label):(0,t.jsx)(i.Button,{onClick:e.onClick,variant:e.variant,children:e.label},e.label))}):(0,t.jsx)("div",{className:"retro text-muted-foreground text-xs",children:(0,t.jsx)(l,{children:"PRESS START"})}),f]})]})}])},823983,e=>{"use strict";var t=e.i(327193),r=e.i(475127),a=e.i(318203),n=e.i(387206);let o=["Press any key to continue...","Did you know? Saving often prevents lost progress!","Tip: Explore every corner for hidden treasures.","Remember to take breaks during long gaming sessions!","Pro tip: Read the manual for secret moves."];e.s(["default",0,function({className:e,title:i="LOADING",tips:s=o,progress:l=0,showPercentage:d=!0,tipInterval:c=3e3,variant:u="default",autoProgress:p=!1,autoProgressDuration:f=5e3,...m}){let[x,h]=(0,r.useState)(0),[g,v]=(0,r.useState)(!0),[b,y]=(0,r.useState)(p?0:l);(0,r.useEffect)(()=>
39{if(!p)return void y(l);y(0);let e=setInterval(()=>{y(t=>{let r=t+5;return r>=100?(clearInterval(e),100):r})},f/20);return()=>clearInterval(e)},[p,f,l]),(0,r.useEffect)(()=>{if(0===s.length)return;let e=setInterval(()=>{h(e=>(e+1)%s.length)},c);return()=>clearInterval(e)},[s,c]),(0,r.useEffect)(()=>{let e=setInterval(()=>{v(e=>!e)},530);return()=>clearInterval(e)},[]);let w=p?b:l,j=(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center gap-6 p-8",children:[(0,t.jsx)("h2",{className:(0,a.cn)("retro text-xl md:text-2xl text-center","animate-pulse"),children:i}),(0,t.jsxs)("div",{className:"w-full max-w-md space-y-2",children:[d&&(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsxs)("span",{className:"retro text-xs text-muted-foreground",children:[Math.round(w),"%"]})}),(0,t.jsx)(n.Progress,{value:w,variant:"retro",progressBg:"bg-primary",className:"h-4"})]}),s.length>0&&(0,t.jsx)("div",{className:"w-full max-w-md min-h-16 flex items-center justify-center",children:(0,t.jsx)("p",{className:"retro text-[0.625rem] md:text-xs text-center text-muted-foreground leading-relaxed animate-pulse",children:s[x]})})]});return"fullscreen"===u?(0,t.jsx)("div",{className:(0,a.cn)("fixed inset-0 z-50 flex items-center justify-center","bg-background",e),...m,children:(0,t.jsx)("div",{className:"w-full max-w-lg px-4",children:j})}):(0,t.jsx)("div",{className:(0,a.cn)("w-full",e),...m,children:j})}])},928046,e=>{"use strict";var t=e.i(327193),r=e.i(173044),a=e.i(321108),n=e.i(475127),o=e.i(318203),i=e.i(533386),s=e.i(530549);e.s(["default",0,function({title:e="Click to go through the portal",description:l="The gateway is open. One step and you're in the next realm.",badge:d="FAST TRAVEL",primaryLabel:c="Enter Portal",secondaryLabel:u="Choose Destination",travelingText:p="Traveling...",href:f="/docs",hrefSecondary:m="/docs/blocks",imageSrc:x="/images/8bit-portal.png",onEnter:h,className:g}){let[v,b]=(0,n.useState)(!1),y=(0,n.useCallback)(()=>{b(!0),h?setTimeout(()=>{h(),b(!1)},800):setTimeout(()=>{b(!1)},800)},[h]);return(0,t.jsxs)("div",{className:(0,o.cn)("retro flex w-full flex-col items-center gap-6 bg-background px-4 py-16 text-center md:py-24",g),children:[d&&(0,t.jsx)(i.Badge,{variant:"secondary",children:v?p:d}),(0,t.jsx)("h2",{className:"retro max-w-md font-bold text-2xl tracking-tight sm:text-3xl",children:e}),(0,t.jsx)("p",{className:"retro max-w-sm text-muted-foreground text-[9px]",children:l}),x&&(0,t.jsx)("button",{"aria-label":c,className:(0,o.cn)("group relative cursor-pointer border-0 bg-transparent p-0 transition-transform duration-300 motion-reduce:transform-none motion-reduce:transition-none",v?"scale-110":"hover:scale-105"),disabled:v,onClick:y,type:"button",children:(0,t.jsx)(r.default,{alt:"Portal",className:(0,o.cn)("pixelated transition-opacity duration-300 motion-reduce:transition-none",v&&"animate-pulse motion-reduce:animate-none"),height:220,src:x,width:220})}),(0,t.jsxs)("div",{className:"flex flex-wrap justify-center gap-4",children:[f&&!v?(0,t.jsx)(s.Button,{asChild:!0,children:(0,t.jsx)(a.default,{href:f,children:c})}):(0,t.jsx)(s.Button,{disabled:v,onClick:f?void 0:y,children:v?p:c}),u&&m&&(0,t.jsx)(s.Button,{asChild:!0,variant:"outline",children:(0,t.jsx)(a.default,{href:m,children:u})})]}),(0,t.jsx)("p",{className:"retro text-muted-foreground text-[8px]",children:v?"Opening gateway...":"No cooldown required."})]})}])},87271,e=>{"use strict";var t=e.i(327193),r=e.i(475127),a=e.i(318203),n=e.i(533386),o=e.i(530549),i=e.i(253452),s=e.i(788369);let l=[{name:"Starter",monthlyPrice:"$0",yearlyPrice:"$0",description:"Try the basics. No gold required.",cta:"PLAY FREE",features:["5 battles/day","1 save slot","Basic weapons"]},{name:"Pro",monthlyPrice:"$12",yearlyPrice:"$99",description:"The full arsenal. Most popular.",cta:"UPGRADE",badge:"BEST VALUE",highlighted:!0,features:["Unlimited battles","10 save slots","Rare weapons","Custom skins","Priority servers"]},{name:"Guild",monthlyPrice:"$39",yearlyPrice:"$349",description:"For teams and clans.",cta:"FORM GUILD",features:["Everything in Pro","Unlimited save slots","Legendary weapons","Guild hall","Dedicated server","Custom branding"]}];e.s(["default",0,function({title:e="Level Up Your Plan",description:d="Monthly or yearly — your call, adventurer",plans:c=l,className:u}){let[p,f]=(0,r.useState)(!1);return(0,t.jsx)("section",{className:(0,a.cn)("w-full px-4 py-16",u),children:(0,t.jsxs)("div",{className:"mx-auto max-w-5xl",children:[(e||d)&&(0,t.jsxs)("div",{className:"mb-6 text-center",children:[e&&(0,t.jsx)("h2",{className:"retro mb-3 font-bold text-2xl tracking-tight md:text-3xl",children:e}),d&&(0,t.jsx)("p",{className:"retro mx-auto max-w-xl text-muted-foreground text-[9px]",children:d})]}),(0,t.jsxs)("div",{className:"mb-10 flex items-center justify-center gap-4",children:[(0,t.jsx)(o.Button,{onClick:()=>f(!1),size:"sm",variant:p?"outline":"default",children:"MONTHLY"}),(0,t.jsx)(o.Button,{onClick:()=>f(!0),size:"sm",variant:p?"default":"outline",children:"YEARLY"})]}),(0,t.jsx)("div",{className:"grid gap-x-6 gap-y-3 md:grid-cols-3",children:c.map(e=>(0,t.jsxs)(i.Card,{className:(0,a.cn)("relative flex flex-col",e.highlighted&&"border-primary"),children:[e.badge&&(0,t.jsx)("div",{className:"absolute -top-4.5 left-1/2 -translate-x-1/2 z-10",children:(0,t.jsx)(n.Badge,{className:"text-[9px]",children:e.badge})}),(0,t.jsxs)(i.CardHeader,{className:"text-center",children:[(0,t.jsx)(i.CardTitle,{className:"retro text-sm",children:e.name}),(0,t.jsxs)("div",{className:"mt-2 flex items-baseline justify-center gap-1",children:[(0,t.jsx)("span",{className:"retro font-bold text-3xl",children:p?e.yearlyPrice:e.monthlyPrice}),(0,t.jsx)("span",{className:"retro text-muted-foreground text-[9px]",children:p?"/yr":"/mo"})]}),(0,t.jsx)(i.CardDescription,{className:"mt-2 text-xs",children:e.description})]}),(0,t.jsx)(s.Separator,{}),(0,t.jsxs)(i.CardContent,{className:"flex flex-1 flex-col pt-4",children:[(0,t.jsx)("ul",{className:"mb-6 flex-1 space-y-2",children:e.features.map(e=>(0,t.jsxs)("li",{className:"flex items-center gap-2 text-xs",children:[(0,t.jsx)("span",{className:"retro text-[10px]",children:"+"}),e]},e))}),(0,t.jsx)("div",{className:"-mx-1.5",children:(0,t.jsx)(o.Button,{className:"w-full",variant:e.highlighted?"default":"outline",children:e.cta})})]})]},e.name))})]})})}])},928425,e=>{"use strict";var t=e.i(327193),r=e.i(318203),a=e.i(233111),n=e.i(533386),o=e.i(253452),i=e.i(551952);function s({quest:e}
39){let r=e.shortDescription||(e.description.length>100?`${e.description.substring(0,100)}...`:e.description);return(0,t.jsxs)(a.AccordionItem,{className:"border-b-2 border-foreground dark:border-ring",value:e.id,children:[(0,t.jsx)(a.AccordionTrigger,{className:"hover:no-underline py-3 px-4",children:(0,t.jsx)("div",{className:"flex items-center gap-3 w-full",children:(0,t.jsx)("div",{className:"flex-1 text-left",children:(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row items-center justify-between sm:pr-10 gap-3",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("h3",{className:"text-sm font-medium text-center sm:text-left",children:e.title}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:r})]}),(0,t.jsx)(n.Badge,{variant:(e=>{switch(e){case"active":return"default";case"completed":return"secondary";case"failed":return"destructive";default:return"outline"}})(e.status),className:"text-[9px]",children:e.status.toUpperCase()})]})})})}),(0,t.jsx)(a.AccordionContent,{className:"px-4 pb-3",children:(0,t.jsx)("div",{className:"pt-2",children:(0,t.jsx)("p",{className:"text-xs text-muted-foreground leading-relaxed",children:e.description})})})]})}function l({message:e}){return(0,t.jsx)("div",{className:"flex flex-col items-center justify-center px-4 text-center",children:(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e})})}function d({quests:e,className:c,showEmptyState:u=!0,emptyStateMessage:p="No quests available."}){let f=e.filter(e=>"active"===e.status),m=[...f,...e.filter(e=>"active"!==e.status)];return(0,t.jsxs)(o.Card,{className:(0,r.cn)("w-full",c),children:[(0,t.jsx)(o.CardHeader,{className:"pb-3",children:(0,t.jsxs)(o.CardTitle,{className:"flex items-center gap-2 text-base justify-between",children:["Quest Log",f.length>0&&(0,t.jsxs)(n.Badge,{className:"ml-2",children:[f.length," Active"]})]})}),(0,t.jsx)(o.CardContent,{className:"p-0",children:0===e.length&&u?(0,t.jsx)(l,{message:p}):(0,t.jsx)(i.ScrollArea,{className:"w-full h-[400px]",children:(0,t.jsx)(a.Accordion,{type:"multiple",className:"w-full",children:m.map(e=>(0,t.jsx)(s,{quest:e},e.id))})})})]})}e.s(["QuestLog",0,d,"default",0,d])},69341,e=>{"use strict";var t=e.i(327193),r=e.i(475127),a=e.i(294237),n=e.i(318203),o=e.i(533386),i=e.i(530549),s=e.i(253452),l=e.i(788369);let d=(0,a.cva)("group relative flex gap-2 sm:gap-4 p-2 sm:p-4 transition-all duration-200 cursor-pointer border-2",{variants:{state:{empty:"border-dashed border-muted-foreground/30 hover:border-primary/50 hover:bg-accent/30",filled:"border-border hover:border-primary hover:bg-accent/50 bg-muted/30"}},defaultVariants:{state:"empty"}}),c=(0,a.cva)("flex items-center justify-center border-4 overflow-hidden flex-shrink-0",{variants:{state:{empty:"border-dashed border-muted-foreground/40 bg-muted/10",filled:"border-foreground dark:border-ring bg-background"}},defaultVariants:{state:"empty"}});function u({className:e}
39){return(0,t.jsx)("svg",{className:e,fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2zm0 2v14h14V5H5zm2 2h6v4H7V7zm8 0h2v3h-2V7zm-8 6h10v4H7v-4z"})})}function p({preview:e,isEmpty:r,slotNumber:a}){return(0,t.jsx)("div",{"aria-hidden":"true",className:(0,n.cn)(c({state:r?"empty":"filled"}),"size-14 sm:size-20 md:size-24"),children:r?(0,t.jsxs)("div",{className:"flex flex-col items-center gap-0.5 sm:gap-1",children:[(0,t.jsx)(u,{className:"size-5 sm:size-8 text-muted-foreground/50"}),(0,t.jsx)("span",{className:"retro text-[8px] sm:text-[10px] text-muted-foreground/50",children:a})]}):e?(0,t.jsx)("img",{alt:"Save preview",className:"size-full object-cover pixelated",loading:"lazy",src:e}):(0,t.jsxs)("div",{className:"flex flex-col items-center gap-0.5 sm:gap-1",children:[(0,t.jsx)(u,{className:"size-5 sm:size-8 text-muted-foreground"}),(0,t.jsx)("span",{className:"retro text-[8px] sm:text-[10px] text-muted-foreground",children:a})]})})}function f({slot:e,index:r,showPreview:a,showTimestamp:s,onClick:l}){let c=e.isEmpty?"empty":"filled",u=r+1,m=e.name||`Slot ${u}`;return(0,t.jsxs)("div",{className:(0,n.cn)(d({state:c}),"overflow-hidden"),onClick:()=>{l?.(e)},onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),l?.(e))},role:"button",tabIndex:0,"aria-label":e.isEmpty?`Empty save slot ${u}`:`Save slot ${u}: ${m}`,children:[a&&(0,t.jsx)(p,{preview:e.preview,isEmpty:e.isEmpty,slotNumber:u}),(0,t.jsxs)("div",{className:"flex-1 min-w-0 flex flex-col justify-center gap-1 sm:gap-2 overflow-hidden",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1 sm:gap-2",children:[(0,t.jsx)("h3",{className:(0,n.cn)("retro text-[10px] sm:text-xs md:text-sm font-medium truncate flex-1 min-w-0",e.isEmpty&&"text-muted-foreground"),children:e.isEmpty?`EMPTY ${u}`:m}),!e.isEmpty&&(0,t.jsx)(o.Badge,{className:"text-[7px] sm:text-[9px] retro shrink-0 hidden sm:inline-flex",variant:"secondary",children:"SAVED"})]}),!e.isEmpty&&(0,t.jsxs)(t.Fragment,{children:[e.description&&(0,t.jsx)("p",{className:"text-[9px] sm:text-xs text-muted-foreground truncate",children:e.description}),s&&e.timestamp&&(0,t.jsx)("p",{className:"text-[8px] sm:text-[10px] text-muted-foreground/70 retro",children:function(e){let t="string"==typeof e?new Date(e):e;if(!t||Number.isNaN(t.getTime()))return"Unknown date";let r=Math.floor((new Date().getTime()-t.getTime())/864e5);return 0===r?"Today":1===r?"Yesterday":r<7?`${r} days ago`:t.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}(e.timestamp)})]}),e.isEmpty&&(0,t.jsx)("p",{className:"text-[9px] sm:text-xs text-muted-foreground/60 retro",children:"Click to save"})]}),!e.isEmpty&&(0,t.jsx)("div",{className:"flex items-center opacity-0 group-hover:opacity-100 transition-opacity",children:(0,t.jsx)(i.Button,{variant:"ghost",size:"sm",className:"text-xs h-auto py-1 px-2",onClick:t=>{t.stopPropagation(),l?.(e)},"aria-label":`Load save from slot ${u}`,children:"LOAD"})})]})}function m({slots:e,onSlotClick:a,layout:i="vertical",maxSlots:d=10,maxVisibleSlots:c=4,className:u,title:p="SAVE FILES",showTimestamp:x=!0,showPreview:h=!0,...g}){let v=r.useMemo(()=>e.slice(0,d),[e,d]),b=r.useMemo(()=>v.filter(e=>!e.isEmpty).length,[v]),y=(0,n.cn)("gap-3","grid"===i?"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3":"flex flex-col"),w=v.length>c&&"vertical"===i,j=(0,t.jsx)("div",{className:y,children:0===v.length?(0,t.jsx)("div",{className:"text-center py-8 text-muted-foreground col-span-full",children:(0,t.jsx)("p",{className:"retro text-sm",children:"No save slots available"})}):v.map((e,r)=>(0,t.jsx)(f,{index:r,onClick:a,showPreview:h,showTimestamp:x,slot:e},e.id))});return(0,t.jsxs)(s.Card,{className:u,"data-slot":"save-slots",font:"retro",...g,children:[p&&(0,t.jsx)(s.CardHeader,{children:(0,t.jsxs)(s.CardTitle,{className:"text-center flex items-center justify-center gap-3 flex-wrap",children:[(0,t.jsx)("span",{children:p}),b>0&&(0,t.jsxs)(o.Badge,{className:"text-[9px]",variant:"default",children:[b," SAVED"]})]})}),(0,t.jsxs)(s.CardContent,{className:"space-y-5",children:[w?(0,t.jsx)("div",{className:"overflow-y-auto",style:{maxHeight:`${100*c+(c-1)*12}px`},children:j}):j,v.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.Separator,{}),(0,t.jsx)("div",{className:"mt-4 pt-4",children:(0,t.jsxs)("p",{className:(0,n.cn)("text-xs text-muted-foreground text-center retro"),children:[b," of ",v.length," slots used"]})})]})]})]})}e.s(["SaveSlots",0,m,"default",0,m])},792737,e=>{"use strict";var t=e.i(327193),r=e.i(318203),a=e.i(533386),n=e.i(253452),o=e.i(431218);function i({rating:e}){return(0,t.jsxs)("span",{className:"retro text-[10px]",children:["[*]".repeat(e),"[.]".repeat(5-e)]})}let s=[{name:"SwordSmith",role:"Founder",quote:"Replaced our entire component library in a weekend. Customers love the retro feel.",rating:5},{name:"ArcadePro",role:"Frontend Dev",quote:"The carousel and accordion components are rock solid. Zero accessibility issues.",rating:5,badge:"POWER USER"},{name:"NeonByte",role:"Solo Dev",quote:"I was skeptical about pixel borders in production. My bounce rate dropped 40%.",rating:4},{name:"QuestRunner",role:"Agency Owner",quote:"We use this for all our gaming clients. Saves us weeks of custom work.",rating:5},{name:"GlitchHero",role:"Open Source",quote:"Great DX. The docs are clear and components just work. Contributed my first PR in 10 minutes.",rating:5,badge:"CONTRIBUTOR"}];e.s(["default",0,function({title:e="Player Reviews",description:l="Real feedback from the community",items:d=s,className:c}){return(0,t.jsx)("section",{className:(0,r.cn)("w-full px-4 py-16",c),children:(0,t.jsxs)("div",{className:"mx-auto max-w-4xl",children:[(e||l)&&(0,t.jsxs)("div",{className:"mb-10 text-center",children:[e&&(0,t.jsx)("h2",{className:"retro mb-3 font-bold text-2xl tracking-tight md:text-3xl",children:e}),l&&(0,t.jsx)("p",{className:"retro text-muted-foreground text-[9px]",children:l})]}),(0,t.jsxs)(o.Carousel,{className:"mx-auto w-full max-w-3xl",opts:{align:"start",loop:!0},children:[(0,t.jsx)(o.CarouselContent,{children:d.map(e=>(0,t.jsx)(o.CarouselItem,{className:"sm:basis-1/2",children:(0,t.jsx)("div",{className:"h-full p-2",children:(0,t.jsxs)(n.Card,{className:"relative h-full",children:[e.badge&&(0,t.jsx)("div",{className:"absolute top-2 right-4 z-10",children:(0,t.jsx)(a.Badge,{className:"text-[9px]",children:e.badge})}),(0,t.jsxs)(n.CardContent,{className:"flex h-full flex-col pt-6",children:[(0,t.jsx)(i,{rating:e.rating}),(0,t.jsxs)("p",{className:"mt-3 flex-1 retro text-[9px] leading-relaxed",children:['"',e.quote,'"']}),(0,t.jsxs)("div",{className:"mt-4",children:[(0,t.jsx)("span",{className:"retro font-bold text-[10px]",children:e.name}),(0,t.jsxs)("span",{className:"retro text-muted-foreground text-[10px]",children:[" ","/ ",e.role]})]})]})]})})},e.name))}),(0,t.jsx)(o.CarouselPrevious,{}),(0,t.jsx)(o.CarouselNext,{})]})]})})}])},173772,e=>{"use strict";var t=e.i(327193),r=e.i(437296),a=e.i(318203);e.s(["Collapsible",0,function({children:e,...n}){let{className:o}=n;return(0,t.jsx)("div",{className:(0,a.cn)("relative",o),children:(0,t.jsx)(r.Collapsible,{...n,className:(0,a.cn)(o,"retro"),children:e})})},"CollapsibleContent",0,function({children:e,...n}){let{className:o}=n;return(0,t.jsx)(r.CollapsibleContent,{"data-slot":"collapsible-content",className:(0,a.cn)(o,"retro"),...n,children:e})},"CollapsibleTrigger",0,function({children:e,...n}){let{className:o}=n;return(0,t.jsx)(r.CollapsibleTrigger,{"data-slot":"collapsible-trigger",className:(0,a.cn)(o,"retro"),...n,children:e})}])},977587,e=>{"use strict";var t=e.i(327193),r=e.i(475127),a=e.i(515201),n=e.i(767240),o=e.i(943001),i=e.i(882177),s=e.i(559451),l="ContextMenu",[d,c]=(0,n.createContextScope)(l,[i.createMenuScope]),u=(0,i.createMenuScope)(),[p,f]=d(l),m=e=>{let{__scopeContextMenu:a,children:n,onOpenChange:o,open:d,dir:c,modal:f=!0}=e,m=r.useRef(!1);{let e=r.useRef(!1);r.useEffect(()=>
39{!0!==d||m.current||e.current||(e.current=!0,console.warn("ContextMenu: The `open` prop has been set to `true` before the user has interacted with the trigger, so its position is indeterminate. This is likely unintended and will result in the menu being anchored to the top-left corner of the viewport."))},[d])}let[x,h]=(0,s.useControllableState)({prop:d,defaultProp:!1,onChange:o,caller:l}),g=u(a);return(0,t.jsx)(p,{scope:a,open:x,onOpenChange:h,modal:f,hasInteractedRef:m,children:(0,t.jsx)(i.Root,{...g,dir:c,open:x,onOpenChange:h,modal:f,children:n})})};m.displayName=l;var x="ContextMenuTrigger",h=r.forwardRef((e,n)=>{let{__scopeContextMenu:s,disabled:l=!1,...d}=e,c=f(x,s),p=u(s),m=r.useRef({x:0,y:0}),h=r.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...m.current})}),g=r.useRef(0),v=r.useCallback(()=>window.clearTimeout(g.current),[]),b=e=>{c.hasInteractedRef.current=!0,m.current={x:e.clientX,y:e.clientY},c.onOpenChange(!0)};return r.useEffect(()=>v,[v]),r.useEffect(()=>void(l&&v()),[l,v]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.Anchor,{...p,virtualRef:h}),(0,t.jsx)(o.Primitive.span,{"data-state":c.open?"open":"closed","data-disabled":l?"":void 0,...d,ref:n,style:{WebkitTouchCallout:"none",...e.style},onContextMenu:l?e.onContextMenu:(0,a.composeEventHandlers)(e.onContextMenu,e=>{v(),b(e),e.preventDefault()}),onPointerDown:l?e.onPointerDown:(0,a.composeEventHandlers)(e.onPointerDown,A(e=>{v(),c.open&&c.onOpenChange(!1),g.current=window.setTimeout(()=>b(e),700)})),onPointerMove:l?e.onPointerMove:(0,a.composeEventHandlers)(e.onPointerMove,A(v)),onPointerCancel:l?e.onPointerCancel:(0,a.composeEventHandlers)(e.onPointerCancel,A(v)),onPointerUp:l?e.onPointerUp:(0,a.composeEventHandlers)(e.onPointerUp,A(v))})]})});h.displayName=x;var g=e=>{let{__scopeContextMenu:r,...a}=e,n=u(r);return(0,t.jsx)(i.Portal,{...n,...a})};g.displayName="ContextMenuPortal";var v="ContextMenuContent",b=r.forwardRef((e,a)=>{let{__scopeContextMenu:n,...o}=e,s=f(v,n),l=u(n),d=r.useRef(!1);return(0,t.jsx)(i.Content,{...l,...o,ref:a,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),!t.defaultPrevented&&d.current&&t.preventDefault(),d.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||s.modal||(d.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});b.displayName=v;var y=r.forwardRef((e,r)=>{let{__scopeContextMenu:a,...n}=e,o=u(a);return(0,t.jsx)(i.Group,{...o,...n,ref:r})});y.displayName="ContextMenuGroup";var w=r.forwardRef((e,r)=>{let{__scopeContextMenu:a,...n}=e,o=u(a);return(0,t.jsx)(i.Label,{...o,...n,ref:r})});w.displayName="ContextMenuLabel";var j=r.forwardRef((e,r)=>{let{__scopeContextMenu:a,...n}=e,o=u(a);return(0,t.jsx)(i.Item,{...o,...n,ref:r})});j.displayName="ContextMenuItem";var C=r.forwardRef((e,r)=>{let{__scopeContextMenu:a,...n}=e,o=u(a);return(0,t.jsx)(i.CheckboxItem,{...o,...n,ref:r})});C.displayName="ContextMenuCheckboxItem";var N=r.forwardRef((e,r)=>{let{__scopeContextMenu:a,...n}=e,o=u(a);return(0,t.jsx)(i.RadioGroup,{...o,...n,ref:r})});N.displayName="ContextMenuRadioGroup";var S=r.forwardRef((e,r)=>{let{__scopeContextMenu:a,...n}=e,o=u(a);return(0,t.jsx)(i.RadioItem,{...o,...n,ref:r})});S.displayName="ContextMenuRadioItem";var k=r.forwardRef((e,r)=>{let{__scopeContextMenu:a,...n}=e,o=u(a);return(0,t.jsx)(i.ItemIndicator,{...o,...n,ref:r})});k.displayName="ContextMenuItemIndicator";var R=r.forwardRef((e,r)=>{let{__scopeContextMenu:a,...n}=e,o=u(a);return(0,t.jsx)(i.Separator,{...o,...n,ref:r})});R.displayName="ContextMenuSeparator",r.forwardRef((e,r)=>{let{__scopeContextMenu:a,...n}=e,o=u(a);return(0,t.jsx)(i.Arrow,{...o,...n,ref:r})}).displayName="ContextMenuArrow";var P="ContextMenuSub",T=e=>{let{__scopeContextMenu:r,children:a,onOpenChange:n,open:o,defaultOpen:l}=e,d=u(r),[c,p]=(0,s.useControllableState)({prop:o,defaultProp:l??!1,onChange:n,caller:P});return(0,t.jsx)(i.Sub,{...d,open:c,onOpenChange:p,children:a})};T.displayName=P;var E=r.forwardRef((e,r)=>{let{__scopeContextMenu:a,...n}=e,o=u(a);return(0,t.jsx)(i.SubTrigger,{...o,...n,ref:r})});E.displayName="ContextMenuSubTrigger";var z=r.forwardRef((e,r)=>{let{__scopeContextMenu:a,...n}=e,o=u(a);
39return(0,t.jsx)(i.SubContent,{...o,...n,ref:r,style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});function A(e){return t=>"mouse"!==t.pointerType?e(t):void 0}z.displayName="ContextMenuSubContent";var D=e.i(643724),M=e.i(216704),I=e.i(318203);let L=r.forwardRef(({className:e,inset:r,children:a,...n},o)=>(0,t.jsxs)(E,{ref:o,className:(0,I.cn)("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:border-y-4 focus:border-foreground h-8 focus:dark:border-ring border-dashed focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",r&&"pl-8",e),...n,children:[a,(0,t.jsx)(D.ChevronRight,{className:"ml-auto size-4"})]}));L.displayName=E.displayName;let O=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)(z,{ref:a,className:(0,I.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-context-menu-content-transform-origin]",e),...r}));O.displayName=z.displayName;let H=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)(g,{children:(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(b,{ref:a,className:(0,I.cn)("z-50 max-h-[--radix-context-menu-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border-x-4 border-y-6 border-foreground dark:border-ring bg-popover p-1 text-popover-foreground animate-in fade-in-80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-context-menu-content-transform-origin]","retro",e),...r}),(0,t.jsx)("div",{className:"absolute inset-0 border-x-6 -mx-1.5 border-foreground dark:border-ring pointer-events-none","aria-hidden":"true"})]})}));H.displayName=b.displayName;let _=r.forwardRef(({className:e,inset:r,...a},n)=>(0,t.jsx)(j,{ref:n,className:(0,I.cn)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:border-y-4 focus:border-foreground h-8 focus:dark:border-ring border-dashed focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r&&"pl-8",e),...a}));_.displayName=j.displayName;let F=r.forwardRef(({className:e,children:r,checked:a,...n},o)=>(0,t.jsxs)(C,{ref:o,className:(0,I.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:border-y-4 focus:border-foreground h-8 focus:dark:border-ring border-dashed focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:a,...n,children:[(0,t.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,t.jsx)(k,{children:(0,t.jsxs)("svg",{width:"50",height:"50",viewBox:"0 0 256 256",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",strokeWidth:"0.25","aria-label":"check",className:"size-9",children:[(0,t.jsx)("rect",{x:"80",y:"128",width:"14",height:"14",rx:"1",transform:"rotate(90 80 128)"}),(0,t.jsx)("rect",{x:"96",y:"144",width:"14",height:"14",rx:"1",transform:"rotate(90 96 144)"}),(0,t.jsx)("rect",{x:"112",y:"160",width:"14",height:"14",rx:"1",transform:"rotate(90 112 160)"}),(0,t.jsx)("rect",{x:"128",y:"144",width:"14",height:"14",rx:"1",transform:"rotate(90 128 144)"}),(0,t.jsx)("rect",{x:"144",y:"128",width:"14",height:"14",rx:"1",transform:"rotate(90 144 128)"}),(0,t.jsx)("rect",{x:"160",y:"112",width:"14",height:"14",rx:"1",transform:"rotate(90 160 112)"}),(0,t.jsx)("rect",{x:"176",y:"96",width:"14",height:"14",rx:"1",transform:"rotate(90 176 96)"}),(0,t.jsx)("rect",{x:"192",y:"80",width:"14",height:"14",rx:"1",transform:"rotate(90 192 80)"})]})})}),r]}));F.displayName=C.displayName;let B=r.forwardRef(({className:e,children:r,...a},n)=>(0,t.jsxs)(S,{ref:n,className:(0,I.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:border-y-4 focus:border-foreground h-8 focus:dark:border-ring border-dashed focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[(0,t.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,t.jsx)(k,{children:(0,t.jsx)(M.Circle,{className:"size-2 fill-current"})})}),r]}));B.displayName=S.displayName;let G=r.forwardRef(({className:e,inset:r,...a},n)=>(0,t.jsx)(w,{ref:n,className:(0,I.cn)("px-2 py-1.5 text-sm font-semibold text-foreground",r&&"pl-8",e),...a}));G.displayName=w.displayName;let $=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)(R,{ref:a,className:(0,I.cn)("-mx-1 my-1 h-px bg-border",e),...r}));$.displayName=R.displayName;let V=({className:e,...r})=>(0,t.jsx)("span",{className:(0,I.cn)("ml-auto text-xs tracking-widest text-muted-foreground",e),...r});V.displayName="ContextMenuShortcut",e.s(["ContextMenu",0,m,"ContextMenuCheckboxItem",0,F,"ContextMenuContent",0,H,"ContextMenuGroup",0,y,"ContextMenuItem",0,_,"ContextMenuLabel",0,G,"ContextMenuPortal",0,g,"ContextMenuRadioGroup",0,N,"ContextMenuRadioItem",0,B,"ContextMenuSeparator",0,$,"ContextMenuShortcut",0,V,"ContextMenuSub",0,T,"ContextMenuSubContent",0,O,"ContextMenuSubTrigger",0,L,"ContextMenuTrigger",0,h],977587)},371287,e=>{"use strict";var t=e.i(327193),r=e.i(294237),a=e.i(318203);let n=(0,r.cva)("flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",icon:"relative bg-muted text-foreground flex size-12 shrink-0 items-center justify-center"},font:{normal:"",retro:"retro"}},defaultVariants:{variant:"default",font:"retro"}});e.s(["Empty",0,function({className:e,font:r,...n}){return(0,t.jsx)("div",{"data-slot":"empty",className:(0,a.cn)("flex min-w-0 flex-1 flex-col items-center justify-center gap-6 rounded-lg border-dashed p-6 text-center text-balance md:p-12","normal"!==r&&"retro",e),...n})},"EmptyContent",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"empty-content",className:(0,a.cn)("flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance",e),...r})},"EmptyDescription",0,function({className:e,...r}){return(0,t.jsx)("p",{"data-slot":"empty-description",className:(0,a.cn)("text-muted-foreground [&>a:hover]:text-primary text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4",e),...r})},"EmptyHeader",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"empty-header",className:(0,a.cn)("flex max-w-sm flex-col items-center gap-2 text-center",e),...r})},"EmptyMedia",0,function({className:e,variant:r="default",...o}){return(0,t.jsxs)("div",{className:(0,a.cn)("relative size-max",e),children:[(0,t.jsx)("div",{"data-slot":"empty-icon","data-variant":r,className:(0,a.cn)(n({variant:r,className:e})),...o}),"default"!==r&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"absolute top-0 left-0 w-full h-1.5 bg-foreground dark:bg-ring pointer-events-none"}),(0,t.jsx)("div",{className:"absolute bottom-0 w-full h-1.5 bg-foreground dark:bg-ring pointer-events-none"}),(0,t.jsx)("div",{className:"absolute top-1.5 -left-1.5 w-1.5 h-1/2 bg-foreground dark:bg-ring pointer-events-none"}),(0,t.jsx)("div",{className:"absolute bottom-1.5 -left-1.5 w-1.5 h-1/2 bg-foreground dark:bg-ring pointer-events-none"}),(0,t.jsx)("div",{className:"absolute top-1.5 -right-1.5 w-1.5 h-1/2 bg-foreground dark:bg-ring pointer-events-none"}),(0,t.jsx)("div",{className:"absolute bottom-1.5 -right-1.5 w-1.5 h-1/2 bg-foreground dark:bg-ring pointer-events-none"})]})]})},"EmptyTitle",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"empty-title",className:(0,a.cn)("text-lg font-medium tracking-tight",e),...r})}])},73068,e=>{"use strict";var t=e.i(327193),r=e.i(475127),a=e.i(515201),n=e.i(443644),o=e.i(767240),i=e.i(943001),s=e.i(448680),l=e.i(559451),d=e.i(97229),c=e.i(270724),u=e.i(715084),p=e.i(948983),f="Radio",[m,x]=(0,o.createContextScope)(f),[h,g]=m(f);function v(e){let{__scopeRadio:a,checked:n=!1,children:o,disabled:i,form:s,name:l,onCheck:d,required:c,value:u="on",internal_do_not_use_render:p}=e,[f,m]=r.useState(null),[x,g]=r.useState(null),v=r.useRef(!1),b=!f||!!s||!!f.closest("form"),y={checked:n,disabled:i,required:c,name:l,form:s,value:u,control:f,setControl:m,hasConsumerStoppedPropagationRef:v,isFormControl:b,bubbleInput:x,setBubbleInput:g,onCheck:()=>d?.()};return(0,t.jsx)(h,{scope:a,...y,children:"function"==typeof p?p(y):o})}var b="RadioTrigger",y=r.forwardRef(({__scopeRadio:e,onClick:r,...o},s)=>{let{checked:l,disabled:d,value:c,setControl:u,onCheck:p,hasConsumerStoppedPropagationRef:f,isFormControl:m,bubbleInput:x}=g(b,e),h=(0,n.useComposedRefs)(s,u);return(0,t.jsx)(i.Primitive.button,{type:"button",role:"radio","aria-checked":l,"data-state":S(l),"data-disabled":d?"":void 0,disabled:d,value:c,...o,ref:h,onClick:(0,a.composeEventHandlers)(r,e=>{l||p(),x&&m&&(f.current=e.isPropagationStopped(),f.current||e.stopPropagation())})})});y.displayName=b,r.forwardRef((e,r)=>{let{__scopeRadio:a,name:n,checked:o,required:i,disabled:s,value:l,onCheck:d,form:c,...u}=e;return(0,t.jsx)(v,{__scopeRadio:a,checked:o,disabled:s,required:i,onCheck:d,name:n,form:c,value:l,internal_do_not_use_render:({isFormControl:e})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(y,{...u,ref:r,__scopeRadio:a}),e&&(0,t.jsx)(N,{__scopeRadio:a})]})})}).displayName=f;var w="RadioIndicator",j=r.forwardRef((e,r)=>{let{__scopeRadio:a,forceMount:n,...o}=e,s=g(w,a);return(0,t.jsx)(p.Presence,{present:n||s.checked,children:(0,t.jsx)(i.Primitive.span,{"data-state":S(s.checked),"data-disabled":s.disabled?"":void 0,...o,ref:r})})});j.displayName=w;var C="RadioBubbleInput",N=r.forwardRef(({__scopeRadio:e,...a},o)=>{let{control:s,checked:l,required:d,disabled:p,name:f,value:m,form:x,bubbleInput:h,setBubbleInput:v,hasConsumerStoppedPropagationRef:b}=g(C,e),y=(0,n.useComposedRefs)(o,v),w=(0,u.usePrevious)(l),j=(0,c.useSize)(s);r.useEffect(()=>{if(!h)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=!b.current;if(w!==l&&e){let r=new Event("click",{bubbles:t});e.call(h,l),h.dispatchEvent(r)}},[h,w,l,b]);let N=r.useRef(l);return(0,t.jsx)(i.Primitive.input,{type:"radio","aria-hidden":!0,defaultChecked:N.current,required:d,disabled:p,name:f,value:m,form:x,...a,tabIndex:-1,ref:y,style:{...a.style,...j,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function S(e){return e?"checked":"unchecked"}N.displayName=C;var k=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],R="RadioGroup",[P,T]=(0,o.createContextScope)(R,[s.createRovingFocusGroupScope,x]),E=(0,s.createRovingFocusGroupScope)(),z=x(),[A,D]=P(R),M=r.forwardRef((e,r)=>{let{__scopeRadioGroup:a,name:n,defaultValue:o,value:c,required:u=!1,disabled:p=!1,orientation:f,dir:m,loop:x=!0,onValueChange:h,...g}=e,v=E(a),b=(0,d.useDirection)(m),[y,w]=(0,l.useControllableState)({prop:c,defaultProp:o??null,onChange:h,caller:R});return(0,t.jsx)(A,{scope:a,name:n,required:u,disabled:p,value:y,onValueChange:w,children:(0,t.jsx)(s.Root,{asChild:!0,...v,orientation:f,dir:b,loop:x,children:(0,t.jsx)(i.Primitive.div,{role:"radiogroup","aria-required":u,"aria-orientation":f,"data-disabled":p?"":void 0,dir:b,...g,ref:r})})})});M.displayName=R;var I="RadioGroupItemTrigger";function L(e){let{__scopeRadioGroup:r,value:a,disabled:n,children:o,internal_do_not_use_render:i}=e,s=D("RadioGroupItemProvider",r),l=z(r),d=s.disabled||n;return(0,t.jsx)(v,{...l,checked:s.value===a,disabled:d,required:s.required,name:s.name,value:a,onCheck:()=>s.onValueChange(a),internal_do_not_use_render:i,children:o})}var O=r.forwardRef((e,o)=>{let{__scopeRadioGroup:i,...l}=e,d=E(i),c=z(i),{checked:u,disabled:p}=g(I,c.__scopeRadio),f=r.useRef(null),m=(0,n.useComposedRefs)(o,f),x=r.useRef(!1);return r.useEffect(()=>{let e=e=>
39{k.includes(e.key)&&(x.current=!0)},t=()=>x.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[]),(0,t.jsx)(s.Item,{asChild:!0,...d,focusable:!p,active:u,children:(0,t.jsx)(y,{...c,...l,ref:m,onKeyDown:(0,a.composeEventHandlers)(l.onKeyDown,e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:(0,a.composeEventHandlers)(l.onFocus,()=>{x.current&&f.current?.click()})})})});O.displayName=I;var H=r.forwardRef((e,r)=>{let{__scopeRadioGroup:a,value:n,disabled:o,...i}=e;return(0,t.jsx)(L,{__scopeRadioGroup:a,value:n,disabled:o,internal_do_not_use_render:({isFormControl:e})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(O,{...i,ref:r,__scopeRadioGroup:a}),e&&(0,t.jsx)(_,{__scopeRadioGroup:a})]})})});H.displayName="RadioGroupItem";var _=r.forwardRef((e,r)=>{let{__scopeRadioGroup:a,...n}=e,o=z(a);return(0,t.jsx)(N,{...o,...n,ref:r})});_.displayName="RadioGroupItemBubbleInput";var F=r.forwardRef((e,r)=>{let{__scopeRadioGroup:a,...n}=e,o=z(a);return(0,t.jsx)(j,{...o,...n,ref:r})});F.displayName="RadioGroupIndicator";var B=e.i(294237),G=e.i(318203),$=e.i(216704);let V=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)(M,{className:(0,G.cn)("grid gap-2",e),...r,ref:a}));V.displayName=M.displayName,r.forwardRef(({className:e,...r},a)=>(0,t.jsx)(H,{ref:a,className:(0,G.cn)("aspect-square size-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...r,children:(0,t.jsx)(F,{className:"flex items-center justify-center",children:(0,t.jsx)($.Circle,{className:"h-2.5 w-2.5 fill-current text-current"})})})).displayName=H.displayName;let W=(0,B.cva)("",{variants:{font:{normal:"",retro:"retro"}},defaultVariants:{font:"retro"}});e.s(["RadioGroup",0,function({className:e,...r}){return(0,t.jsx)(V,{className:(0,G.cn)("",e),...r})},"RadioGroupItem",0,function({className:e,ref:r,...a}){return(0,t.jsxs)("div",{className:(0,G.cn)("relative",e),children:[(0,t.jsx)(H,{ref:r,className:(0,G.cn)("flex items-center justify-center rounded-none border-none py-3 peer border-input dark:bg-input/30 focus-visible:border-ring focus-visible:ring-ring/50 size-4 shrink-0 outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary",e),...a,children:(0,t.jsx)(F,{children:(0,t.jsxs)("svg",{viewBox:"0 0 256 256",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",strokeWidth:"0",className:"w-2.5","aria-label":"square",children:[(0,t.jsx)("rect",{x:"30",y:"35",width:"200",height:"200",rx:"0"}),(0,t.jsx)("rect",{x:"80",y:"5",width:"100",height:"200",rx:"0"}),(0,t.jsx)("rect",{x:"0",y:"85",width:"100",height:"100",rx:"0"}),(0,t.jsx)("rect",{x:"80",y:"65",width:"100",height:"200",rx:"0"}),(0,t.jsx)("rect",{x:"200",y:"85",width:"100",height:"100",rx:"0"})]})})}),(0,t.jsx)("div",{className:"absolute top-[0px] w-2.5 left-1.5 h-1 bg-foreground dark:bg-ring"}),(0,t.jsx)("div",{className:"absolute top-[0px] w-2.5 right-1.5 h-1 bg-foreground dark:bg-ring"}),(0,t.jsx)("div",{className:"absolute bottom-[0px] w-2.5 left-1.5 h-1 bg-foreground dark:bg-ring"}),(0,t.jsx)("div",{className:"absolute bottom-[0px] w-2.5 right-1.5 h-1 bg-foreground dark:bg-ring"}),(0,t.jsx)("div",{className:"absolute top-[4px] -left-1 w-1 h-[15px] bg-foreground dark:bg-ring"}),(0,t.jsx)("div",{className:"absolute top-[4px] -right-1 w-1 h-[15px] bg-foreground dark:bg-ring"}),(0,t.jsx)("div",{className:"absolute top-[2px] -right-0.5 w-1 h-1 bg-foreground dark:bg-ring"}),(0,t.jsx)("div",{className:"absolute top-[2px] -left-0.5 w-1 h-1 bg-foreground dark:bg-ring"}),(0,t.jsx)("div",{className:"absolute bottom-[2px] -right-0.5 w-1 h-1 bg-foreground dark:bg-ring"}),(0,t.jsx)("div",{className:"absolute bottom-[2px] -left-0.5 w-1 h-1 bg-foreground dark:bg-ring"})]})},"radioGroupVariants",0,W],73068)},835643,e=>{"use strict";let t,r;var a=e.i(327193),n=e.i(475127);function o({groupSize:e,panelElement:t,styleProp:r}){let a,[n,i]=function(e){switch(typeof e){case"number":return[e,"px"];case"string":{let t=parseFloat(e);return e.endsWith("%")?[t,"%"]:e.endsWith("px")?[t,"px"]:e.endsWith("rem")?[t,"rem"]:e.endsWith("em")?[t,"em"]:e.endsWith("vh")?[t,"vh"]:e.endsWith("vw")?[t,"vw"]:[t,"%"]}}}(r);switch(i){case"%":a=n/100*e;break;case"px":a=n;break;case"rem":a=n*parseFloat(getComputedStyle(t.ownerDocument.documentElement).fontSize);break;case"em":a=n*parseFloat(getComputedStyle(t).fontSize);break;case"vh":a=n/100*window.innerHeight;break;case"vw":a=n/100*window.innerWidth}return a}function i(e){return parseFloat(e.toFixed(3))}function s({group:e}){let{orientation:t,panels:r}=e;return r.reduce((e,r)=>e+="horizontal"===t?r.element.offsetWidth:r.element.offsetHeight,0)}function l(e){let{panels:t}=e,r=s({group:e});return 0===r?t.map(e=>({groupResizeBehavior:e.panelConstraints.groupResizeBehavior,collapsedSize:0,collapsible:!0===e.panelConstraints.collapsible,defaultSize:void 0,disabled:e.panelConstraints.disabled,minSize:0,maxSize:100,panelId:e.id})):t.map(e=>{let t,{element:a,panelConstraints:n}=e,s=0;void 0!==n.collapsedSize&&(s=i(o({groupSize:r,panelElement:a,styleProp:n.collapsedSize})/r*100)),void 0!==n.defaultSize&&(t=i(o({groupSize:r,panelElement:a,styleProp:n.defaultSize})/r*100));let l=0;void 0!==n.minSize&&(l=i(o({groupSize:r,panelElement:a,styleProp:n.minSize})/r*100));let d=100;return void 0!==n.maxSize&&(d=i(o({groupSize:r,panelElement:a,styleProp:n.maxSize})/r*100)),{groupResizeBehavior:n.groupResizeBehavior,collapsedSize:s,collapsible:!0===n.collapsible,defaultSize:t,disabled:n.disabled,minSize:l,maxSize:d,panelId:e.id}})}function d(e,t="Assertion error"){if(!e)throw Error(t)}function c(e,t){return Array.from(t).sort("horizontal"===e?u:p)}function u(e,t){let r=e.element.offsetLeft-t.element.offsetLeft;return 0!==r?r:e.element.offsetWidth-t.element.offsetWidth}function p(e,t){let r=e.element.offsetTop-t.element.offsetTop;return 0!==r?r:e.element.offsetHeight-t.element.offsetHeight}function f(e){return null!==e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function m(e,t){return{x:e.x>=t.left&&e.x<=t.right?0:Math.min(Math.abs(e.x-t.left),Math.abs(e.x-t.right)),y:e.y>=t.top&&e.y<=t.bottom?0:Math.min(Math.abs(e.y-t.top),Math.abs(e.y-t.bottom))}}function x(e){let{element:r,orientation:a,panels:n,separators:o}=e,i=c(a,Array.from(r.children).filter(f).map(e=>({element:e}))).map(({element:e})=>e),l=[],u=!1,p=!1,x=-1,h=-1,g=0,v,b=[];{let e=-1;for(let t of i)t.hasAttribute("data-panel")&&(e++,t.hasAttribute("data-disabled")||(g++,-1===x&&(x=e),h=e))}if(g>1){let r=-1;for(let c of i)if(c.hasAttribute("data-panel")){r++;let o=n.find(e=>e.element===c);if(o){if(v){let n,i=v.element.getBoundingClientRect(),f=c.getBoundingClientRect();if(p){let e="horizontal"===a?new DOMRect(i.right,i.top,0,i.height):new DOMRect(i.left,i.bottom,i.width,0),t="horizontal"===a?new DOMRect(f.left,f.top,0,f.height):new DOMRect(f.left,f.top,f.width,0);switch(b.length){case 0:n=[e,t];break;case 1:{let r=b[0],o=function({orientation:e,rects:t,targetRect:r}){let a={x:r.x+r.width/2,y:r.y+r.height/2},n,o=Number.MAX_VALUE;for(let r of t){let{x:t,y:i}=m(a,r),s="horizontal"===e?t:i;s<o&&(o=s,n=r)}return d(n,"No rect found"),n}({orientation:a,rects:[i,f],targetRect:r.element.getBoundingClientRect()});n=[r,o===i?t:e];break}default:n=b}}else n=b.length?b:["horizontal"===a?new DOMRect(i.right,f.top,f.left-i.right,f.height):new DOMRect(f.left,i.bottom,f.width,f.top-i.bottom)];for(let a of n){let n="width"in a?a:a.element.getBoundingClientRect(),i=(void 0===t&&(t="function"==typeof matchMedia&&!!matchMedia("(pointer:coarse)").matches),t)?e.resizeTargetMinimumSize.coarse:e.resizeTargetMinimumSize.fine;if(n.width<i){let e=i-n.width;n=new DOMRect(n.x-e/2,n.y,n.width+e,n.height)}if(n.height<i){let e=i-n.height;n=new DOMRect(n.x,n.y-e/2,n.width,n.height+e)}let d=r<=x||r>h;u||d||l.push({group:e,groupSize:s({group:e}),panels:[v,o],separator:"width"in a?void 0:a,rect:n}),u=!1}}p=!1,v=o,b=[]}}else if(c.hasAttribute("data-separator")){null!==c.ariaDisabled&&(u=!0);let e=o.find(e=>e.element===c);
39e?b.push(e):(v=void 0,b=[])}else p=!0}return l}class h{#e={};addListener(e,t){let r=this.#e[e];return void 0===r?this.#e[e]=[t]:r.includes(t)||r.push(t),()=>{this.removeListener(e,t)}}emit(e,t){let r=this.#e[e];if(void 0!==r)if(1===r.length)r[0].call(null,t);else{let e=!1,a=null,n=Array.from(r);for(let r=0;r<n.length;r++){let o=n[r];try{o.call(null,t)}catch(t){null===a&&(e=!0,a=t)}}if(e)throw a}}removeAllListeners(){this.#e={}}removeListener(e,t){let r=this.#e[e];if(void 0!==r){let e=r.indexOf(t);e>=0&&r.splice(e,1)}}}let g={cursorFlags:0,state:"inactive"},v=new h;function b(e){let t=g;g=e,v.emit("change",{prev:t,next:e})}let y=e=>e,w=()=>{};function j(){return void 0===r&&(r=!1,"u">typeof window&&(window.navigator.userAgent.includes("Chrome")||window.navigator.userAgent.includes("Firefox"))&&(r=!0)),r}let C=new WeakMap;function N(e){if(null===e.defaultView||void 0===e.defaultView)return;let{prevStyle:t,styleSheet:r}=C.get(e)??{};void 0===r&&(r=new e.defaultView.CSSStyleSheet,e.adoptedStyleSheets&&(Object.isExtensible(e.adoptedStyleSheets)?e.adoptedStyleSheets.push(r):e.adoptedStyleSheets=[...e.adoptedStyleSheets,r]));let a=g;switch(a.state){case"active":case"hover":{let e=function({cursorFlags:e,groups:t,state:r}){let a=0,n=0;switch(r){case"active":case"hover":t.forEach(e=>{if(!e.mutableState.disableCursor)switch(e.orientation){case"horizontal":a++;break;case"vertical":n++}})}if(0!==a||0!==n){if("active"===r&&e&&j()){let t=(4&e)!=0,r=(8&e)!=0;if((1&e)!=0)return t?"se-resize":r?"ne-resize":"e-resize";if((2&e)!=0)return t?"sw-resize":r?"nw-resize":"w-resize";if(t)return"s-resize";if(r)return"n-resize"}return j()?a>0&&n>0?"move":a>0?"ew-resize":"ns-resize":a>0&&n>0?"grab":a>0?"col-resize":"row-resize"}}({cursorFlags:a.cursorFlags,groups:a.hitRegions.map(e=>e.group),state:a.state}),n=`*, *:hover {cursor: ${e} !important; }`;if(t===n)return;t=n,e?0===r.cssRules.length?r.insertRule(n):r.replaceSync(n):1===r.cssRules.length&&r.deleteRule(0);break}case"inactive":t=void 0,1===r.cssRules.length&&r.deleteRule(0)}C.set(e,{prevStyle:t,styleSheet:r})}let S=new Map,k=new h;function R(e,t){for(let[t]of S)if(t.id===e)return t}function P(e,t){for(let[t,r]of S)if(t.id===e)return r;if(t)throw Error(`Could not find data for Group with id ${e}`)}function T(e,t){return k.addListener("groupChange",r=>{r.group.id===e&&t(r)})}function E(e,t,r){let a=S.get(e);(S=new Map(S)).set(e,t),k.emit("groupChange",{group:e,isUserInteraction:r?.isUserInteraction===!0,prev:a,next:t})}function z(e){let t=g,r=!1;return"active"===t.state&&(b({cursorFlags:0,state:"inactive"}),t.hitRegions.length>0&&(N(e),r=!0,t.hitRegions.forEach(e=>{let t=P(e.group.id,!0);E(e.group,t,{isUserInteraction:!0})}))),r}function A(e){e.defaultPrevented||z(e.currentTarget)}let D=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function M(e){let t=e.length;for(;t--;){let r=e[t];if(d(r,"Missing node"),function(e){let t,r=getComputedStyle(e);return!!("fixed"===r.position||"auto"!==r.zIndex&&("static"!==r.position||"flex"===(t=getComputedStyle(O(e)??e).display)||"inline-flex"===t)||1>+r.opacity||"transform"in r&&"none"!==r.transform||"webkitTransform"in r&&"none"!==r.webkitTransform||"mixBlendMode"in r&&"normal"!==r.mixBlendMode||"filter"in r&&"none"!==r.filter||"webkitFilter"in r&&"none"!==r.webkitFilter||"isolation"in r&&"isolate"===r.isolation||D.test(r.willChange)||"touch"===r.webkitOverflowScrolling)}(r))return r}return null}function I(e){return e&&Number(getComputedStyle(e).zIndex)||0}function L(e){let t=[];for(;e;)t.push(e),e=O(e);return t}function O(e){let{parentNode:t}=e;return null!==t&&"object"==typeof t&&"nodeType"in t&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE?t.host:t}function H(e,t){let r=[];return t.forEach((t,a)=>{if(a.disabled)return;let n=x(a),o=function(e,t,r){let a,n={x:1/0,y:1/0};for(let o of t){let t=m(r,o.rect);switch(e){case"horizontal":t.x<=n.x&&(a=o,n=t);break;case"vertical":t.y<=n.y&&(a=o,n=t)}}return a?{distance:n,hitRegion:a}:void 0}(a.orientation,n,{x:e.clientX,y:e.clientY});o&&o.distance.x<=0&&o.distance.y<=0&&function({groupElement:e,hitRegion:t,pointerEventTarget:r}){if(!f(r)||r.contains(e)||e.contains(r))return!0;
39if(function(e,t){let r;if(e===t)throw Error("Cannot compare node with itself");let a={a:L(e),b:L(t)};for(;a.a.at(-1)===a.b.at(-1);)r=a.a.pop(),a.b.pop();d(r,"Stacking order can only be calculated for elements with a common ancestor");let n={a:I(M(a.a)),b:I(M(a.b))};if(n.a===n.b){let e=r.childNodes,t={a:a.a.at(-1),b:a.b.at(-1)},n=e.length;for(;n--;){let r=e[n];if(r===t.a)return 1;if(r===t.b)return -1}}return Math.sign(n.a-n.b)}(r,e)>0){let n=r;for(;n;){var a;if(n.contains(e))break;if(a=n.getBoundingClientRect(),a.x<t.x+t.width&&a.x+a.width>t.x&&a.y<t.y+t.height&&a.y+a.height>t.y)return!1;n=n.parentElement}}return!0}({groupElement:a.element,hitRegion:o.hitRegion.rect,pointerEventTarget:e.target})&&r.push(o.hitRegion)}),r}function _(e,t,r=0){return Math.abs(i(e)-i(t))<=r}function F(e,t){return _(e,t)?0:e>t?1:-1}function B({overrideDisabledPanels:e,panelConstraints:t,prevSize:r,size:a}){let{collapsedSize:n=0,collapsible:o,disabled:s,maxSize:l=100,minSize:d=0}=t;return s&&!e?r:(0>F(a,d)&&(a=o&&0>F(a,(n+d)/2)?n:d),i(a=Math.min(l,a)))}function G({delta:e,initialLayout:t,panelConstraints:r,pivotIndices:a,prevLayout:n,trigger:o}){if(_(e,0))return t;let i="imperative-api"===o,s=Object.values(t),l=Object.values(n),c=[...s],[u,p]=a;d(null!=u,"Invalid first pivot index"),d(null!=p,"Invalid second pivot index");let f=0;if("keyboard"===o){{let t=e<0?p:u,a=r[t];d(a,`Panel constraints not found for index ${t}`);let{collapsedSize:n=0,collapsible:o,minSize:i=0}=a;if(o){let r=s[t];if(d(null!=r,`Previous layout not found for panel index ${t}`),_(r,n)){let t=i-r;F(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}{let t=e<0?u:p,a=r[t];d(a,`No panel constraints found for index ${t}`);let{collapsedSize:n=0,collapsible:o,minSize:i=0}=a;if(o){let r=s[t];if(d(null!=r,`Previous layout not found for panel index ${t}`),_(r,i)){let t=r-n;F(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}}else{let t=e<0?p:u,a=r[t];d(a,`Panel constraints not found for index ${t}`);let n=s[t],{collapsible:o,collapsedSize:i,minSize:l}=a;if(o&&0>F(n,l))if(e>0){let t=l-i;0>F(n+e,l)&&(e=0>=F(e,t/2)?0:t)}else{let t=l-i;0>F(n-e,l)&&(e=F(100+e,100-t/2)>0?0:-t)}}{let t=e<0?1:-1,a=e<0?p:u,n=0;for(;;){let e=s[a];if(d(null!=e,`Previous layout not found for panel index ${a}`),n+=B({overrideDisabledPanels:i,panelConstraints:r[a],prevSize:e,size:100})-e,(a+=t)<0||a>=r.length)break}let o=Math.min(Math.abs(e),Math.abs(n));e=e<0?0-o:o}{let t=e<0?u:p;for(;t>=0&&t<r.length;){let a=Math.abs(e)-Math.abs(f),n=s[t];d(null!=n,`Previous layout not found for panel index ${t}`);let o=n-a,l=B({overrideDisabledPanels:i,panelConstraints:r[t],prevSize:n,size:o});if(!_(n,l)&&(f+=n-l,c[t]=l,f.toFixed(3).localeCompare(Math.abs(e).toFixed(3),void 0,{numeric:!0})>=0))break;e<0?t--:t++}}if(function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!=t[r])return!1;return!0}(l,c))return n;{let t=e<0?p:u,a=s[t];d(null!=a,`Previous layout not found for panel index ${t}`);let n=a+f,o=B({overrideDisabledPanels:i,panelConstraints:r[t],prevSize:a,size:n});if(c[t]=o,!_(o,n)){let t=n-o,a=e<0?p:u;for(;a>=0&&a<r.length;){let n=c[a];d(null!=n,`Previous layout not found for panel index ${a}`);let o=n+t,s=B({overrideDisabledPanels:i,panelConstraints:r[a],prevSize:n,size:o});if(_(n,s)||(t-=s-n,c[a]=s),_(t,0))break;e>0?a--:a++}}}if(!_(Object.values(c).reduce((e,t)=>t+e,0),100,.1))return n;let m=Object.keys(n);return c.reduce((e,t,r)=>(e[m[r]]=t,e),{})}function $(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e)if(void 0===t[r]||0!==F(e[r],t[r]))return!1;return!0}function V({layout:e,panelConstraints:t}){let r=Object.values(e),a=[...r],n=a.reduce((e,t)=>e+t,0);if(a.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${a.map(e=>`${e}%`).join(", ")}`);if(!_(n,100)&&a.length>0)for(let e=0;e<t.length;e++){let t=a[e];d(null!=t,`No layout data found for index ${e}`);let r=100/n*t;a[e]=r}let o=0;for(let e=0;e<t.length;e++){let n=r[e];d(null!=n,`No layout data found for index ${e}`);let i=a[e];d(null!=i,`No layout data found for index ${e}`);let s=B({overrideDisabledPanels:!0,panelConstraints:t[e],prevSize:n,size:i});i!=s&&(o+=i-s,a[e]=s)}if(!_(o,0))for(let e=0;e<t.length;e++){let r=a[e];d(null!=r,`No layout data found for index ${e}`);let n=r+o,i=B({overrideDisabledPanels:!0,panelConstraints:t[e],prevSize:r,size:n});if(r!==i&&(o-=i-r,a[e]=i,_(o,0)))break}let i=Object.keys(e);return a.reduce((e,t,r)=>(e[i[r]]=t,e),{})}function W({groupId:e,panelId:t}){let r=()=>{for(let[t,{defaultLayoutDeferred:r,derivedPanelConstraints:a,layout:n,groupSize:o,separatorToPanels:i}]of S)if(t.id===e)return{defaultLayoutDeferred:r,derivedPanelConstraints:a,group:t,groupSize:o,layout:n,separatorToPanels:i};throw Error(`Group ${e} not found`)},a=()=>{let e=r().derivedPanelConstraints.find(e=>e.panelId===t);if(void 0!==e)return e;throw Error(`Panel constraints not found for Panel ${t}`)},n=()=>{let e=r().group.panels.find(e=>e.id===t);if(void 0!==e)return e;throw Error(`Layout not found for Panel ${t}`)},l=()=>{let e=r().layout[t];if(void 0!==e)return e;throw Error(`Layout not found for Panel ${t}`)},d=e=>{if(e===l())return;let{defaultLayoutDeferred:a,derivedPanelConstraints:n,group:o,groupSize:s,layout:d,separatorToPanels:c}=r(),u=V({layout:(({nextSize:e,panels:r,prevLayout:a,derivedPanelConstraints:n})=>{let o=l(),s=r.findIndex(e=>e.id===t),d=0===s,c=s===r.length-1;if(c&&e<o&&(d||r.slice(0,s).every((e,t)=>{let r=n[t];return r?.collapsible&&_(r.collapsedSize,a[r.panelId])}))){let e=r.slice(0,s).reduce((e,t)=>
39e+a[t.id],0);return{...a,[t]:i(100-e)}}return G({delta:c?o-e:e-o,initialLayout:a,panelConstraints:n,pivotIndices:c?[s-1,s]:[s,s+1],prevLayout:a,trigger:"imperative-api"})})({nextSize:e,panels:o.panels,prevLayout:d,derivedPanelConstraints:n}),panelConstraints:n});$(d,u)||E(o,{defaultLayoutDeferred:a,derivedPanelConstraints:n,groupSize:s,layout:u,separatorToPanels:c})};return{collapse:()=>{let{collapsible:e,collapsedSize:t}=a(),{mutableValues:r}=n(),o=l();e&&o!==t&&(r.expandToSize=o,d(t))},expand:()=>{let{collapsible:e,collapsedSize:t,minSize:r}=a(),{mutableValues:o}=n(),i=l();if(e&&i===t){let e=o.expandToSize??r;0===e&&(e=1),d(e)}},getSize:()=>{let{group:e}=r(),t=l(),{element:a}=n();return{asPercentage:t,inPixels:"horizontal"===e.orientation?a.offsetWidth:a.offsetHeight}},isCollapsed:()=>{let{collapsible:e,collapsedSize:t}=a(),r=l();return e&&_(t,r)},resize:e=>{let{group:t}=r(),{element:a}=n(),l=s({group:t});d(i(o({groupSize:l,panelElement:a,styleProp:e})/l*100))}}}function Y(e){e.defaultPrevented||H(e,S).forEach(t=>{if(t.separator&&!t.separator.disableDoubleClick){let r=t.panels.find(e=>void 0!==e.panelConstraints.defaultSize);if(r){let a=r.panelConstraints.defaultSize,n=W({groupId:t.group.id,panelId:r.id});n&&void 0!==a&&(n.resize(a),e.preventDefault())}}})}function U(e){for(let[t]of S)if(t.separators.some(t=>t.element===e))return t;throw Error("Could not find parent Group for separator element")}function q({groupId:e}){let t=()=>{for(let[t,r]of S)if(t.id===e)return{group:t,...r};throw Error(`Could not find Group with id "${e}"`)};return{getLayout(){let{defaultLayoutDeferred:e,layout:r}=t();return e?{}:r},setLayout(e){let{defaultLayoutDeferred:r,derivedPanelConstraints:a,group:n,groupSize:o,layout:i,separatorToPanels:s}=t(),l=V({layout:e,panelConstraints:a});return r?i:($(i,l)||E(n,{defaultLayoutDeferred:r,derivedPanelConstraints:a,groupSize:o,layout:l,separatorToPanels:s}),l)}}}function K(e,t){let r=U(e),a=P(r.id,!0),n=r.separators.find(t=>t.element===e);d(n,"Matching separator not found");let o=a.separatorToPanels.get(n);d(o,"Matching panels not found");let i=o.map(e=>r.panels.indexOf(e)),s=q({groupId:r.id}).getLayout(),l=V({layout:G({delta:t,initialLayout:s,panelConstraints:a.derivedPanelConstraints,pivotIndices:i,prevLayout:s,trigger:"keyboard"}),panelConstraints:a.derivedPanelConstraints});$(s,l)||E(r,{defaultLayoutDeferred:a.defaultLayoutDeferred,derivedPanelConstraints:a.derivedPanelConstraints,groupSize:a.groupSize,layout:l,separatorToPanels:a.separatorToPanels},{isUserInteraction:!0})}function X(e){if(e.defaultPrevented)return;let t=e.currentTarget,r=U(t);if(!r.disabled)switch(e.key){case"ArrowDown":e.preventDefault(),"vertical"===r.orientation&&K(t,5);break;case"ArrowLeft":e.preventDefault(),"horizontal"===r.orientation&&K(t,-5);break;case"ArrowRight":e.preventDefault(),"horizontal"===r.orientation&&K(t,5);break;case"ArrowUp":e.preventDefault(),"vertical"===r.orientation&&K(t,-5);break;case"End":e.preventDefault(),K(t,100);break;case"Enter":{e.preventDefault();let r=U(t),{derivedPanelConstraints:a,layout:n,separatorToPanels:o}=P(r.id,!0),i=r.separators.find(e=>e.element===t);d(i,"Matching separator not found");let s=o.get(i);d(s,"Matching panels not found");let l=s[0],c=a.find(e=>e.panelId===l.id);if(d(c,"Panel metadata not found"),c.collapsible){let e=n[l.id];K(t,(c.collapsedSize===e?r.mutableState.expandedPanelSizes[l.id]??c.minSize:c.collapsedSize)-e)}break}case"F6":{e.preventDefault();let r=U(t).separators.map(e=>e.element),a=Array.from(r).findIndex(t=>t===e.currentTarget);d(null!==a,"Index not found");let n=e.shiftKey?a>0?a-1:r.length-1:a+1<r.length?a+1:0;r[n].focus({preventScroll:!0});break}case"Home":e.preventDefault(),K(t,-100)}}function J(e){if(e.defaultPrevented||"mouse"===e.pointerType&&e.button>0)return;let t=S,r=H(e,t),a=new Map,n=!1;r.forEach(e=>{e.separator&&(n||(n=!0,e.separator.element.focus({focusVisible:!1,preventScroll:!0})));let r=t.get(e.group);r&&a.set(e.group,r.layout)}),b({cursorFlags:0,hitRegions:r,initialLayoutMap:a,pointerDownAtPoint:{x:e.clientX,y:e.clientY},state:"active"}),r.length&&e.preventDefault()}function Q({document:e,event:t,hitRegions:r,initialLayoutMap:a,mountedGroups:n,pointerDownAtPoint:o,prevCursorFlags:i}){var s;let l,d,c=0;
39r.forEach(e=>{let{group:r,groupSize:i}=e,{orientation:s,panels:l}=r,{disableCursor:d}=r.mutableState,u=0;u=o?"horizontal"===s?(t.clientX-o.x)/i*100:(t.clientY-o.y)/i*100:"horizontal"===s?t.clientX<0?-100:100:t.clientY<0?-100:100;let p=a.get(r),f=n.get(r);if(!p||!f)return;let{defaultLayoutDeferred:m,derivedPanelConstraints:x,groupSize:h,layout:g,separatorToPanels:v}=f;if(x&&g&&v){let t=G({delta:u,initialLayout:p,panelConstraints:x,pivotIndices:e.panels.map(e=>l.indexOf(e)),prevLayout:g,trigger:"mouse-or-touch"});if($(t,g)){if(0!==u&&!d)switch(s){case"horizontal":c|=u<0?1:2;break;case"vertical":c|=u<0?4:8}}else E(e.group,{defaultLayoutDeferred:m,derivedPanelConstraints:x,groupSize:h,layout:t,separatorToPanels:v})}});let u=0;0===t.movementX?u|=3&i:u|=3&c,0===t.movementY?u|=12&i:u|=12&c,s=u,l=g,(d={...g}).cursorFlags=s,g=d,v.emit("change",{prev:l,next:d}),N(e)}function Z(e){let t=S,r=g;"active"===r.state&&Q({document:e.currentTarget,event:e,hitRegions:r.hitRegions,initialLayoutMap:r.initialLayoutMap,mountedGroups:t,prevCursorFlags:r.cursorFlags})}function ee(e){if(e.defaultPrevented)return;let t=g,r=S;if("active"===t.state){if(0===e.buttons){b({cursorFlags:0,state:"inactive"}),t.hitRegions.forEach(e=>{let t=P(e.group.id,!0);E(e.group,t,{isUserInteraction:!0})});return}for(let r of t.hitRegions)if(r.separator){let{element:t}=r.separator;t.hasPointerCapture?.(e.pointerId)||t.setPointerCapture?.(e.pointerId)}Q({document:e.currentTarget,event:e,hitRegions:t.hitRegions,initialLayoutMap:t.initialLayoutMap,mountedGroups:r,pointerDownAtPoint:t.pointerDownAtPoint,prevCursorFlags:t.cursorFlags})}else{let a=H(e,r);0===a.length?"inactive"!==t.state&&b({cursorFlags:0,state:"inactive"}):b({cursorFlags:0,hitRegions:a,state:"hover"}),N(e.currentTarget)}}function et(e){e.relatedTarget instanceof HTMLIFrameElement&&"hover"===g.state&&b({cursorFlags:0,state:"inactive"})}function er(e){e.defaultPrevented||("mouse"!==e.pointerType||!(e.button>0))&&z(e.currentTarget)&&e.preventDefault()}function ea(e){let t=0,r=0,a={};for(let n of e)if(void 0!==n.defaultSize){t++;let e=i(n.defaultSize);r+=e,a[n.panelId]=e}else a[n.panelId]=void 0;let n=e.length-t;if(0!==n){let t=i((100-r)/n);for(let r of e)void 0===r.defaultSize&&(a[r.panelId]=t)}return a}let en=new Map;function eo(e){let t=(0,n.useId)();return`${e??t}`}let ei="u">typeof window?n.useLayoutEffect:n.useEffect;function es(e){let t=(0,n.useRef)(e);return ei(()=>{t.current=e},[e]),(0,n.useCallback)((...e)=>t.current?.(...e),[t])}function el(...e){return es(t=>{e.forEach(e=>{if(e)switch(typeof e){case"function":e(t);break;case"object":e.current=t}})})}function ed(e){let t=(0,n.useRef)({...e});return ei(()=>{for(let r in e)t.current[r]=e[r]},[e]),t.current}let ec=(0,n.createContext)(null);function eu({children:e,className:t,defaultLayout:r,disableCursor:o,disabled:u,elementRef:p,groupRef:f,id:m,onLayoutChange:h,onLayoutChanged:v,orientation:b="horizontal",resizeTargetMinimumSize:w={coarse:20,fine:10},style:j,...C}){let N,k=(0,n.useRef)({onLayoutChange:{},onLayoutChanged:{}}),z=es(e=>{$(k.current.onLayoutChange,e)||(k.current.onLayoutChange=e,h?.(e))}),D=es((e,t)=>{$(k.current.onLayoutChanged,e)||(k.current.onLayoutChanged=e,v?.(e,{isUserInteraction:t}))}),M=eo(m),I=(0,n.useRef)(null),[L,O]=function(){let[e,t]=(0,n.useState)({});return[e,(0,n.useCallback)(()=>t({}),[])]}(),H=(0,n.useRef)({lastExpandedPanelSizes:{},layouts:{},panels:[],resizeTargetMinimumSize:w,separators:[]}),F=el(I,p);N=(0,n.useRef)({getLayout:()=>({}),setLayout:y}),(0,n.useImperativeHandle)(f,()=>N.current,[]),ei(()=>{Object.assign(N.current,q({groupId:M}))});let B=es((e,t)=>{let a=g,n=R(e),o=P(e);if(o){let e=!1;return"active"===a.state&&(e=a.hitRegions.some(e=>e.group===n)),{flexGrow:o.layout[t]??1,pointerEvents:e?"none":void 0}}if(r?.[t])return{flexGrow:r?.[t]}}),G=ed({defaultLayout:r,disableCursor:o}),W=(0,n.useMemo)(()=>({get disableCursor(){return!!G.disableCursor},getPanelStyles:B,id:M,orientation:b,registerPanel:e=>{let t=H.current;return t.panels=c(b,[...t.panels,e]),O(),()=>{t.panels=t.panels.filter(t=>t!==e),O()}},registerSeparator:e=>{let t=H.current;return t.separators=c(b,[...t.separators,e]),O(),()=>{t.separators=t.separators.filter(t=>t!==e),O()}},updatePanelProps:(e,{disabled:t})=>{let r=H.current.panels.find(t=>
39t.id===e);r&&(r.panelConstraints.disabled=t);let a=R(M),n=P(M);a&&n&&E(a,{...n,derivedPanelConstraints:l(a)})},updateSeparatorProps:(e,{disabled:t,disableDoubleClick:r})=>{let a=H.current.separators.find(t=>t.id===e);a&&(a.disabled=t,a.disableDoubleClick=r)}}),[B,M,O,b,G]),U=(0,n.useRef)(null);return ei(()=>{let e,t,r,a,n,o,c,p,f,m,h,v,y,w=I.current;if(null===w)return;let j=H.current;if(void 0!==G.defaultLayout&&Object.keys(G.defaultLayout).length===j.panels.length)for(let t of(e={},j.panels)){let r=G.defaultLayout[t.id];void 0!==r&&(e[t.id]=r)}let C={disabled:!!u,element:w,id:M,mutableState:{defaultLayout:e,disableCursor:!!G.disableCursor,expandedPanelSizes:H.current.lastExpandedPanelSizes,layouts:H.current.layouts},orientation:b,panels:j.panels,resizeTargetMinimumSize:j.resizeTargetMinimumSize,separators:j.separators};U.current=C;let N=(t=!0,d(C.element.ownerDocument.defaultView,"Cannot register an unmounted Group"),r=C.element.ownerDocument.defaultView.ResizeObserver,a=new Set,n=new Set,(o=new r(e=>{for(let r of e){let{borderBoxSize:e,target:a}=r;if(a===C.element){if(t){let e=s({group:C});if(0===e)return;let t=P(C.id);if(!t)return;let r=l(C),a=t.defaultLayoutDeferred?ea(r):t.layout,n=V({layout:function({group:e,nextGroupSize:t,prevGroupSize:r,prevLayout:a}){if(r<=0||t<=0||r===t)return a;let n=0,o=0,s=!1,l=new Map,d=[];for(let c of e.panels){let e=a[c.id]??0;if("preserve-pixel-size"===c.panelConstraints.groupResizeBehavior){s=!0;let a=i(e/100*r/t*100);l.set(c.id,a),n+=a}else d.push(c.id),o+=e}if(!s||0===d.length)return a;let c=100-n,u={...a};if(l.forEach((e,t)=>{u[t]=e}),o>0)for(let e of d){let t=a[e]??0;u[e]=i(t/o*c)}else{let e=i(c/d.length);for(let t of d)u[t]=e}return u}({group:C,nextGroupSize:e,prevGroupSize:t.groupSize,prevLayout:a}),panelConstraints:r});if(!t.defaultLayoutDeferred&&$(t.layout,n)&&function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e)if(e[r]!==t[r])return!1;return!0}(t.derivedPanelConstraints,r)&&t.groupSize===e)return;E(C,{defaultLayoutDeferred:!1,derivedPanelConstraints:r,groupSize:e,layout:n,separatorToPanels:t.separatorToPanels})}}else!function(e,t,r){if(!r[0])return;let a=e.panels.find(e=>e.element===t);if(!a||!a.onResize)return;let n=s({group:e}),o="horizontal"===e.orientation?a.element.offsetWidth:a.element.offsetHeight,l=a.mutableValues.prevSize,d={asPercentage:i(o/n*100),inPixels:o};a.mutableValues.prevSize=d,a.onResize(d,a.id,l)}(C,a,e)}})).observe(C.element),C.panels.forEach(e=>{d(!a.has(e.id),`Panel ids must be unique; id "${e.id}" was used more than once`),a.add(e.id),e.onResize&&o.observe(e.element)}),c=s({group:C}),p=l(C),f=C.panels.map(({id:e})=>e).join(","),(m=C.mutableState.defaultLayout)&&(function(e,t){let r=e.map(e=>e.id),a=Object.keys(t);if(r.length!==a.length)return!1;for(let e of r)if(!a.includes(e))return!1;return!0}(C.panels,m)||(m=void 0)),h=V({layout:C.mutableState.layouts[f]??m??ea(p),panelConstraints:p}),v=C.element.ownerDocument,en.set(v,(en.get(v)??0)+1),y=new Map,x(C).forEach(e=>{e.separator&&y.set(e.separator,e.panels)}),E(C,{defaultLayoutDeferred:0===c,derivedPanelConstraints:p,groupSize:c,layout:h,separatorToPanels:y}),C.separators.forEach(e=>{d(!n.has(e.id),`Separator ids must be unique; id "${e.id}" was used more than once`),n.add(e.id),e.element.addEventListener("keydown",X)}),1===en.get(v)&&(v.addEventListener("contextmenu",A,!0),v.addEventListener("dblclick",Y,!0),v.addEventListener("pointerdown",J,!0),v.addEventListener("pointerleave",Z),v.addEventListener("pointermove",ee),v.addEventListener("pointerout",et),v.addEventListener("pointerup",er,!0)),function(){t=!1,en.set(v,Math.max(0,(en.get(v)??0)-1)),(S=new Map(S)).delete(C),C.separators.forEach(e=>{e.element.removeEventListener("keydown",X)}),en.get(v)||(v.removeEventListener("contextmenu",A,!0),v.removeEventListener("dblclick",Y,!0),v.removeEventListener("pointerdown",J,!0),v.removeEventListener("pointerleave",Z),v.removeEventListener("pointermove",ee),v.removeEventListener("pointerout",et),v.removeEventListener("pointerup",er,!0)),o.disconnect()}),{defaultLayoutDeferred:k,derivedPanelConstraints:R,layout:L}=P(C.id,!0);!k&&R.length>0&&(z(L),D(L,!1));let O=T(M,e=>{let{defaultLayoutDeferred:t,derivedPanelConstraints:r,layout:a}=e.next;if(t||0===r.length)return;let n=C.panels.map(({id:e})=>e).join(",");C.mutableState.layouts[n]=a,r.forEach(t=>{if(t.collapsible){let{layout:r}=e.prev??{};if(r){let e=_(t.collapsedSize,a[t.panelId]),n=_(t.collapsedSize,r[t.panelId]);e&&!n&&(C.mutableState.expandedPanelSizes[t.panelId]=r[t.panelId])}}});let o="active"!==g.state;z(a),o&&D(a,e.isUserInteraction)});return()=>{U.current=null,N(),O()}},[u,M,D,z,b,L,G]),(0,n.useEffect)(()=>{let e=U.current;e&&(e.mutableState.defaultLayout=r,e.mutableState.disableCursor=!!o)}),(0,a.jsx)(ec.Provider,{value:W,children:(0,a.jsx)("div",{...C,className:t,"data-group":!0,"data-testid":M,id:M,ref:F,style:{height:"100%",width:"100%",overflow:"hidden",...j,display:"flex",flexDirection:"horizontal"===b?"row":"column",flexWrap:"nowrap",touchAction:"horizontal"===b?"pan-y":"pan-x"},children:e})})}function ep(){let e=(0,n.useContext)(ec);return d(e,"Group Context not found;
39 did you render a Panel or Separator outside of a Group?"),e}function ef({children:e,className:t,collapsedSize:r="0%",collapsible:o=!1,defaultSize:i,disabled:s,elementRef:l,groupResizeBehavior:d="preserve-relative-size",id:c,maxSize:u="100%",minSize:p="0%",onResize:f,panelRef:m,style:x,...h}){let g,v=!!c,b=eo(c),y=ed({disabled:s}),j=(0,n.useRef)(null),C=el(j,l),{getPanelStyles:N,id:S,orientation:k,registerPanel:R,updatePanelProps:P}=ep(),E=null!==f,z=es((e,t,r)=>{f?.(e,c,r)});ei(()=>{let e=j.current;if(null!==e)return R({element:e,id:b,idIsStable:v,mutableValues:{expandToSize:void 0,prevSize:void 0},onResize:E?z:void 0,panelConstraints:{groupResizeBehavior:d,collapsedSize:r,collapsible:o,defaultSize:i,disabled:y.disabled,maxSize:u,minSize:p}})},[d,r,o,i,E,b,v,u,p,z,R,y]),(0,n.useEffect)(()=>{P(b,{disabled:s})},[s,b,P]),function(e,t){let{id:r}=ep(),a=(0,n.useRef)({collapse:w,expand:w,getSize:()=>({asPercentage:0,inPixels:0}),isCollapsed:()=>!1,resize:w});(0,n.useImperativeHandle)(t,()=>a.current,[]),ei(()=>{Object.assign(a.current,W({groupId:r,panelId:e}))})}(b,m);let A=()=>{let e=N(S,b);if(e)return JSON.stringify(e)},D=(0,n.useSyncExternalStore)(e=>T(S,e),A,A);return g=D?JSON.parse(D):void 0!==i?{flexGrow:void 0,flexShrink:void 0,flexBasis:i}:{flexGrow:1},(0,a.jsx)("div",{...h,"data-disabled":s||void 0,"data-panel":!0,"data-testid":b,id:b,ref:C,style:{...em,display:"flex",flexBasis:0,flexShrink:1,overflow:"visible",...g},children:(0,a.jsx)("div",{className:t,style:{maxHeight:"100%",maxWidth:"100%",flexGrow:1,overflow:"auto",...x,touchAction:"horizontal"===k?"pan-y":"pan-x"},children:e})})}eu.displayName="Group",ef.displayName="Panel";let em={minHeight:0,maxHeight:"100%",height:"auto",minWidth:0,maxWidth:"100%",width:"auto",border:"none",borderWidth:0,padding:0,margin:0};function ex({children:e,className:t,disabled:r,disableDoubleClick:o,elementRef:i,id:s,style:l,...d}){let c,u,p=eo(s),f=ed({disabled:r,disableDoubleClick:o}),[m,x]=(0,n.useState)({}),[h,g]=(0,n.useState)("inactive"),[b,y]=(0,n.useState)(!1),w=(0,n.useRef)(null),j=el(w,i),{disableCursor:C,id:N,orientation:S,registerSeparator:k,updateSeparatorProps:R}=ep();return ei(()=>{let e=w.current;if(null!==e){var t;let r={disabled:f.disabled,disableDoubleClick:f.disableDoubleClick,element:e,id:p},a=k(r),n=(t=e=>{g("inactive"!==e.next.state&&e.next.hitRegions.some(e=>e.separator===r)?e.next.state:"inactive")},v.addListener("change",t)),o=T(N,e=>{let{derivedPanelConstraints:t,layout:a,separatorToPanels:n}=e.next,o=n.get(r);if(o){let e=o[0],r=o.indexOf(e);x(function({layout:e,panelConstraints:t,panelId:r,panelIndex:a}){let n,o,i=e[r],s=t.find(e=>e.panelId===r);if(s){let l=s.maxSize,d=s.collapsible?s.collapsedSize:s.minSize,c=[a,a+1];o=V({layout:G({delta:d-i,initialLayout:e,panelConstraints:t,pivotIndices:c,prevLayout:e}),panelConstraints:t})[r],n=V({layout:G({delta:l-i,initialLayout:e,panelConstraints:t,pivotIndices:c,prevLayout:e}),panelConstraints:t})[r]}return{valueControls:r,valueMax:n,valueMin:o,valueNow:i}}({layout:a,panelConstraints:t,panelId:e.id,panelIndex:r}))}});return()=>{n(),o(),a()}}},[N,p,k,f]),(0,n.useEffect)(()=>{R(p,{disabled:r,disableDoubleClick:o})},[r,o,p,R]),r&&!C&&(c="not-allowed"),u=r?"disabled":"active"===h?"active":b?"focus":h,(0,a.jsx)("div",{...d,"aria-controls":m.valueControls,"aria-disabled":r||void 0,"aria-orientation":"horizontal"===S?"vertical":"horizontal","aria-valuemax":m.valueMax,"aria-valuemin":m.valueMin,"aria-valuenow":m.valueNow,children:e,className:t,"data-separator":u,"data-testid":p,id:p,onBlur:()=>y(!1),onFocus:()=>y(!0),ref:j,role:"separator",style:{flexBasis:"auto",cursor:c,...l,flexGrow:0,flexShrink:0,touchAction:"none"},tabIndex:r?void 0:0})}ex.displayName="Separator";var eh=e.i(318203);e.s(["ResizableHandle",0,({withHandle:e,className:t,...r})=>(0,a.jsxs)(ex,{className:(0,eh.cn)("relative flex w-[1px] items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-[6px] data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90 focus:dark:outline-ring","bg-foreground dark:bg-ring",t),...r,children:[(0,a.jsx)("div",{className:"absolute w-[6px] h-full border bg-foreground dark:bg-ring border-foreground dark:border-ring pointer-events-none"}),e&&(0,a.jsx)("div",{className:"relative w-[12px] aspect-video h-[20px] z-10 border-3 border-foreground dark:border-ring"})]}),"ResizablePanel",0,function({className:e,children:t,...r}){return(0,a.jsx)(ef,{className:(0,eh.cn)(e),...r,children:t})},"ResizablePanelGroup",0,({className:e,children:t,...r})=>(0,a.jsx)("div",{className:(0,eh.cn)("w-full h-full relative",e),children:(0,a.jsxs)(eu,{className:(0,eh.cn)("flex h-full w-full data-[panel-group-direction=vertical]:flex-col"),...r,children:[t,(0,a.jsx)("div",{className:"absolute top-0 left-0 w-full h-1.5 bg-foreground dark:bg-ring pointer-events-none"}),(0,a.jsx)("div",{className:"absolute bottom-0 w-full h-1.5 bg-foreground dark:bg-ring pointer-events-none"}),(0,a.jsx)("div",{className:"absolute top-1 -left-1 w-1.5 h-1/2 bg-foreground dark:bg-ring pointer-events-none"}),(0,a.jsx)("div",{className:"absolute bottom-1 -left-1 w-1.5 h-1/2 bg-foreground dark:bg-ring pointer-events-none"}),(0,a.jsx)("div",{className:"absolute top-1 -right-1 w-1.5 h-1/2 bg-foreground dark:bg-ring pointer-events-none"}),(0,a.jsx)("div",{className:"absolute bottom-1 -right-1 w-1.5 h-1/2 bg-foreground dark:bg-ring pointer-events-none"})]})})],835643)},472741,e=>{"use strict";var t=e.i(327193),r=e.i(294237),a=e.i(318203),n=e.i(760024);let o=(0,r.cva)("",{variants:{font:{normal:"",retro:"retro"},variant:{default:"bg-transparent",outline:"bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",font:"retro",size:"default"}});e.s(["Toggle",0,function({children:e,font:r,...o}){let{variant:i,className:s}=o;return(0,t.jsxs)(n.Toggle,{...o,className:(0,a.cn)("rounded-none active:translate-y-1 transition-transform relative border-none active:translate-x-1","data-[state=on]:bg-primary data-[state=on]:text-primary-foreground","normal"!==r&&"retro",s),children:[e,(0,t.jsx)(t.Fragment,{children:"outline"===i&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"absolute inset-0 border-y-6 -my-1.5 border-foreground dark:border-ring pointer-events-none","aria-hidden":"true"}),(0,t.jsx)("div",{className:"absolute inset-0 border-x-6 -mx-1.5 border-foreground dark:border-ring pointer-events-none","aria-hidden":"true"})]})})]})},"toggleVariants",0,o])},322424,e=>{"use strict";var t=e.i(327193),r=e.i(294237),a=e.i(318203),n=e.i(728231);let o=(0,r.cva)("",{variants:{font:{normal:"",retro:"retro"}},defaultVariants:{font:"retro"}});e.s(["Tooltip",0,function({children:e,...r}){return(0,t.jsx)(n.Tooltip,{"data-slot":"tooltip",...r,children:e})},"TooltipContent",0,function({className:e,children:r,font:i,...s}){let l=o({font:i});return(0,t.jsx)("div",{className:(0,a.cn)("relative inline-flex",e),children:(0,t.jsxs)(n.TooltipContent,{...s,"data-slot":"tooltip-content",className:(0,a.cn)("rounded-none",l,e),children:[r,(0,t.jsx)("div",{className:(0,a.cn)("absolute top-1.5 bottom-1.5 -left-1.5 w-1.5 bg-primary",l)}),(0,t.jsx)("div",{className:(0,a.cn)("absolute top-1.5 bottom-1.5 -right-1.5 w-1.5 bg-primary ",l)})]})})},"TooltipProvider",0,function({children:e,delayDuration:r=0,...a}){return(0,t.jsx)(n.TooltipProvider,{delayDuration:r,...a,children:e})},"TooltipTrigger",0,function({children:e,asChild:r=!0,...a}){return(0,t.jsx)(n.TooltipTrigger,{"data-slot":"tooltip-trigger",asChild:r,...a,children:e})},"tooltipVariants",0,o])},890538,921761,e=>{"use strict";var t=e.i(327193),r=e.i(475127),a=e.i(767240),n=e.i(724112),o=e.i(443644),i=e.i(515201),s=e.i(559451),l=e.i(943001),d=e.i(437296),c=e.i(168048),u=e.i(97229),p="Accordion",f=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[m,x,h]=(0,n.createCollection)(p),[g,v]=(0,a.createContextScope)(p,[h,d.createCollapsibleScope]),b=(0,d.createCollapsibleScope)(),y=r.forwardRef((e,r)=>{let{type:a,...n}=e;return(0,t.jsx)(m.Provider,{scope:e.__scopeAccordion,children:"multiple"===a?(0,t.jsx)(k,{...n,ref:r}):(0,t.jsx)(S,{...n,ref:r})})});y.displayName=p;var[w,j]=g(p),[C,N]=g(p,{collapsible:!1}),S=r.forwardRef((e,a)=>{let{value:n,defaultValue:o,onValueChange:i=()=>{},collapsible:l=!1,...d}=e,[c,u]=(0,s.useControllableState)({prop:n,defaultProp:o??"",onChange:i,caller:p});return(0,t.jsx)(w,{scope:e.__scopeAccordion,value:r.useMemo(()=>c?[c]:[],[c]),onItemOpen:u,onItemClose:r.useCallback(()=>l&&u(""),[l,u]),children:(0,t.jsx)(C,{scope:e.__scopeAccordion,collapsible:l,children:(0,t.jsx)(T,{...d,ref:a})})})}),k=r.forwardRef((e,a)=>{let{value:n,defaultValue:o,onValueChange:i=()=>{},...l}=e,[d,c]=(0,s.useControllableState)({prop:n,defaultProp:o??[],onChange:i,caller:p}),u=r.useCallback(e=>c((t=[])=>[...t,e]),[c]),f=r.useCallback(e=>c((t=[])=>t.filter(t=>t!==e)),[c]);return(0,t.jsx)(w,{scope:e.__scopeAccordion,value:d,onItemOpen:u,onItemClose:f,children:(0,t.jsx)(C,{scope:e.__scopeAccordion,collapsible:!0,children:(0,t.jsx)(T,{...l,ref:a})})})}),[R,P]=g(p),T=r.forwardRef((e,a)=>{let{__scopeAccordion:n,disabled:s,dir:d,orientation:c="vertical",...p}=e,h=r.useRef(null),g=(0,o.useComposedRefs)(h,a),v=x(n),b="ltr"===(0,u.useDirection)(d),y=(0,i.composeEventHandlers)(e.onKeyDown,e=>
39{if(!f.includes(e.key))return;let t=e.target,r=v().filter(e=>!e.ref.current?.disabled),a=r.findIndex(e=>e.ref.current===t),n=r.length;if(-1===a)return;e.preventDefault();let o=a,i=n-1,s=()=>{(o=a+1)>i&&(o=0)},l=()=>{(o=a-1)<0&&(o=i)};switch(e.key){case"Home":o=0;break;case"End":o=i;break;case"ArrowRight":"horizontal"===c&&(b?s():l());break;case"ArrowDown":"vertical"===c&&s();break;case"ArrowLeft":"horizontal"===c&&(b?l():s());break;case"ArrowUp":"vertical"===c&&l()}let d=o%n;r[d].ref.current?.focus()});return(0,t.jsx)(R,{scope:n,disabled:s,direction:d,orientation:c,children:(0,t.jsx)(m.Slot,{scope:n,children:(0,t.jsx)(l.Primitive.div,{...p,"data-orientation":c,ref:g,onKeyDown:s?void 0:y})})})}),E="AccordionItem",[z,A]=g(E),D=r.forwardRef((e,r)=>{let{__scopeAccordion:a,value:n,...o}=e,i=P(E,a),s=j(E,a),l=b(a),u=(0,c.useId)(),p=n&&s.value.includes(n)||!1,f=i.disabled||e.disabled;return(0,t.jsx)(z,{scope:a,open:p,disabled:f,triggerId:u,children:(0,t.jsx)(d.Root,{"data-orientation":i.orientation,"data-state":F(p),...l,...o,ref:r,disabled:f,open:p,onOpenChange:e=>{e?s.onItemOpen(n):s.onItemClose(n)}})})});D.displayName=E;var M="AccordionHeader",I=r.forwardRef((e,r)=>{let{__scopeAccordion:a,...n}=e,o=P(p,a),i=A(M,a);return(0,t.jsx)(l.Primitive.h3,{"data-orientation":o.orientation,"data-state":F(i.open),"data-disabled":i.disabled?"":void 0,...n,ref:r})});I.displayName=M;var L="AccordionTrigger",O=r.forwardRef((e,r)=>{let{__scopeAccordion:a,...n}=e,o=P(p,a),i=A(L,a),s=N(L,a),l=b(a);return(0,t.jsx)(m.ItemSlot,{scope:a,children:(0,t.jsx)(d.Trigger,{"aria-disabled":i.open&&!s.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId,...l,...n,ref:r})})});O.displayName=L;var H="AccordionContent",_=r.forwardRef((e,r)=>{let{__scopeAccordion:a,...n}=e,o=P(p,a),i=A(H,a),s=b(a);return(0,t.jsx)(d.Content,{role:"region","aria-labelledby":i.triggerId,"data-orientation":o.orientation,...s,...n,ref:r,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function F(e){return e?"open":"closed"}_.displayName=H,e.s(["Content",0,_,"Header",0,I,"Item",0,D,"Root",0,y,"Trigger",0,O],921761);var B=e.i(171812),G=e.i(318203);let $=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)(D,{ref:a,className:(0,G.cn)("border-b",e),...r}));$.displayName="AccordionItem";let V=r.forwardRef(({className:e,children:r,...a},n)=>(0,t.jsx)(I,{className:"flex",children:(0,t.jsxs)(O,{ref:n,className:(0,G.cn)("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline text-left [&[data-state=open]>svg]:rotate-180",e),...a,children:[r,(0,t.jsx)(B.ChevronDown,{className:"size-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})}));V.displayName=O.displayName;let W=r.forwardRef(({className:e,children:r,...a},n)=>(0,t.jsx)(_,{ref:n,className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...a,children:(0,t.jsx)("div",{className:(0,G.cn)("pb-4 pt-0",e),children:r})}));W.displayName=_.displayName,e.s(["Accordion",0,y,"AccordionContent",0,W,"AccordionItem",0,$,"AccordionTrigger",0,V],890538)},251424,e=>{"use strict";var t,r=e.i(327193),a=e.i(475127),n=e.i(515201),o=e.i(767240),i=e.i(559451),s=e.i(443644),l=e.i(720279),d=(e.i(817993),e.i(948983)),c=e.i(943001),u=e.i(125902),p="HoverCard",[f,m]=(0,o.createContextScope)(p,[l.createPopperScope]),x=(0,l.createPopperScope)(),[h,g]=f(p),v=e=>{let{__scopeHoverCard:t,children:n,open:o,defaultOpen:s,onOpenChange:d,openDelay:c=700,closeDelay:u=300}=e,f=x(t),m=a.useRef(0),g=a.useRef(0),v=a.useRef(!1),b=a.useRef(!1),[y,w]=(0,i.useControllableState)({prop:o,defaultProp:s??!1,onChange:d,caller:p}),j=a.useCallback(()=>{clearTimeout(g.current),m.current=window.setTimeout(()=>w(!0),c)},[c,w]),C=a.useCallback(()=>{clearTimeout(m.current),v.current||b.current||(g.current=window.setTimeout(()=>w(!1),u))},[u,w]),N=a.useCallback(()=>w(!1),[w]);return a.useEffect(()=>()=>{clearTimeout(m.current),clearTimeout(g.current)},[]),(0,r.jsx)(h,{scope:t,open:y,onOpenChange:w,onOpen:j,onClose:C,onDismiss:N,hasSelectionRef:v,isPointerDownOnContentRef:b,children:(0,r.jsx)(l.Root,{...f,children:n})})};v.displayName=p;var b="HoverCardTrigger",y=a.forwardRef((e,t)=>
39{let{__scopeHoverCard:a,...o}=e,i=g(b,a),s=x(a);return(0,r.jsx)(l.Anchor,{asChild:!0,...s,children:(0,r.jsx)(c.Primitive.a,{"data-state":i.open?"open":"closed",...o,ref:t,onPointerEnter:(0,n.composeEventHandlers)(e.onPointerEnter,k(i.onOpen)),onPointerLeave:(0,n.composeEventHandlers)(e.onPointerLeave,k(i.onClose)),onFocus:(0,n.composeEventHandlers)(e.onFocus,i.onOpen),onBlur:(0,n.composeEventHandlers)(e.onBlur,i.onClose),onTouchStart:(0,n.composeEventHandlers)(e.onTouchStart,e=>e.preventDefault())})})});y.displayName=b;var[w,j]=f("HoverCardPortal",{forceMount:void 0}),C="HoverCardContent",N=a.forwardRef((e,t)=>{let a=j(C,e.__scopeHoverCard),{forceMount:o=a.forceMount,...i}=e,s=g(C,e.__scopeHoverCard);return(0,r.jsx)(d.Presence,{present:o||s.open,children:(0,r.jsx)(S,{"data-state":s.open?"open":"closed",...i,onPointerEnter:(0,n.composeEventHandlers)(e.onPointerEnter,k(s.onOpen)),onPointerLeave:(0,n.composeEventHandlers)(e.onPointerLeave,k(s.onClose)),ref:t})})});N.displayName=C;var S=a.forwardRef((e,o)=>{let{__scopeHoverCard:i,onEscapeKeyDown:d,onPointerDownOutside:c,onFocusOutside:p,onInteractOutside:f,...m}=e,h=g(C,i),v=x(i),b=a.useRef(null),y=(0,s.useComposedRefs)(o,b),[w,j]=a.useState(!1);return a.useEffect(()=>{if(w){let e=document.body;return t=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=t,e.style.webkitUserSelect=t}}},[w]),a.useEffect(()=>{if(b.current){let e=()=>{j(!1),h.isPointerDownOnContentRef.current=!1,setTimeout(()=>{document.getSelection()?.toString()!==""&&(h.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),h.hasSelectionRef.current=!1,h.isPointerDownOnContentRef.current=!1}}},[h.isPointerDownOnContentRef,h.hasSelectionRef]),a.useEffect(()=>{b.current&&(function(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;r.nextNode();)t.push(r.currentNode);return t})(b.current).forEach(e=>e.setAttribute("tabindex","-1"))}),(0,r.jsx)(u.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:f,onEscapeKeyDown:d,onPointerDownOutside:c,onFocusOutside:(0,n.composeEventHandlers)(p,e=>{e.preventDefault()}),onDismiss:h.onDismiss,children:(0,r.jsx)(l.Content,{...v,...m,onPointerDown:(0,n.composeEventHandlers)(m.onPointerDown,e=>{e.currentTarget.contains(e.target)&&j(!0),h.hasSelectionRef.current=!1,h.isPointerDownOnContentRef.current=!0}),ref:y,style:{...m.style,userSelect:w?"text":void 0,WebkitUserSelect:w?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})});function k(e){return t=>"touch"===t.pointerType?void 0:e()}a.forwardRef((e,t)=>{let{__scopeHoverCard:a,...n}=e,o=x(a);return(0,r.jsx)(l.Arrow,{...o,...n,ref:t})}).displayName="HoverCardArrow";var R=e.i(318203);let P=a.forwardRef(({className:e,align:t="center",sideOffset:a=4,...n},o)=>(0,r.jsx)(N,{ref:o,align:t,sideOffset:a,className:(0,R.cn)("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-hover-card-content-transform-origin]",e),...n}));P.displayName=N.displayName,e.s(["HoverCard",0,v,"HoverCardContent",0,P,"HoverCardTrigger",0,y],251424)},871443,e=>{"use strict";var t=e.i(327193),r=e.i(475127),a=Object.defineProperty,n=Object.defineProperties,o=Object.getOwnPropertyDescriptors,i=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,d=(e,t,r)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,c=r.createContext({}),u=r.forwardRef((e,t)=>
vendor: 4,152 bytes, line 39
39{let a;var u,m,x,h,g,{value:v,onChange:b,maxLength:y,textAlign:w="left",pattern:j,placeholder:C,inputMode:N="numeric",onComplete:S,pushPasswordManagerStrategy:k="increase-width",pasteTransformer:R,containerClassName:P,noScriptCSSFallback:T=f,render:E,children:z}=e,A=((e,t)=>{var r={};for(var a in e)s.call(e,a)&&0>t.indexOf(a)&&(r[a]=e[a]);if(null!=e&&i)for(var a of i(e))0>t.indexOf(a)&&l.call(e,a)&&(r[a]=e[a]);return r})(e,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]);let[D,M]=r.useState("string"==typeof A.defaultValue?A.defaultValue:""),I=null!=v?v:D,L=(a=r.useRef(),r.useEffect(()=>{a.current=I}),a.current),O=r.useCallback(e=>{null==b||b(e),M(e)},[b]),H=r.useMemo(()=>j?"string"==typeof j?new RegExp(j):j:null,[j]),_=r.useRef(null),F=r.useRef(null),B=r.useRef({value:I,onChange:O,isIOS:"u">typeof window&&(null==(m=null==(u=null==window?void 0:window.CSS)?void 0:u.supports)?void 0:m.call(u,"-webkit-touch-callout","none"))}),G=r.useRef({prev:[null==(x=_.current)?void 0:x.selectionStart,null==(h=_.current)?void 0:h.selectionEnd,null==(g=_.current)?void 0:g.selectionDirection]});r.useImperativeHandle(t,()=>_.current,[]),r.useEffect(()=>{let e=_.current,t=F.current;if(!e||!t)return;function r(){if(document.activeElement!==e){q(null),X(null);return}let t=e.selectionStart,r=e.selectionEnd,a=e.selectionDirection,n=e.maxLength,o=e.value,i=G.current.prev,s=-1,l=-1,d;if(0!==o.length&&null!==t&&null!==r){let e=t===r,a=t===o.length&&o.length<n;if(e&&!a){if(0===t)s=0,l=1,d="forward";else if(t===n)s=t-1,l=t,d="backward";else if(n>1&&o.length>1){let e=0;if(null!==i[0]&&null!==i[1]){d=t<i[1]?"backward":"forward";let r=i[0]===i[1]&&i[0]<n;"backward"!==d||r||(e=-1)}s=e+t,l=e+t+1}}-1!==s&&-1!==l&&s!==l&&_.current.setSelectionRange(s,l,d)}let c=-1!==s?s:t,u=-1!==l?l:r,p=null!=d?d:a;q(c),X(u),G.current.prev=[c,u,p]}if(B.current.value!==e.value&&B.current.onChange(e.value),G.current.prev=[e.selectionStart,e.selectionEnd,e.selectionDirection],document.addEventListener("selectionchange",r,{capture:!0}),r(),document.activeElement===e&&Y(!0),!document.getElementById("input-otp-style")){let e=document.createElement("style");if(e.id="input-otp-style",document.head.appendChild(e),e.sheet){let t="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";p(e.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),p(e.sheet,`[data-input-otp]:autofill { ${t} }`),p(e.sheet,`[data-input-otp]:-webkit-autofill { ${t} }`),p(e.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),p(e.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let a=()=>{t&&t.style.setProperty("--root-height",`${e.clientHeight}px`)};a();let n=new ResizeObserver(a);return n.observe(e),()=>{document.removeEventListener("selectionchange",r,{capture:!0}),n.disconnect()}},[]);let[$,V]=r.useState(!1),[W,Y]=r.useState(!1),[U,q]=r.useState(null),[K,X]=r.useState(null);r.useEffect(()=>{var e;setTimeout(e=()=>{var e,t,r,a;null==(e=_.current)||e.dispatchEvent(new Event("input"));let n=null==(t=_.current)?void 0:t.selectionStart,o=null==(r=_.current)?void 0:r.selectionEnd,i=null==(a=_.current)?void 0:a.selectionDirection;null!==n&&null!==o&&(q(n),X(o),G.current.prev=[n,o,i])},0),setTimeout(e,10),setTimeout(e,50)},[I,W]),r.useEffect(()=>{void 0!==L&&I!==L&&L.length<y&&I.length===y&&(null==S||S(I))},[y,S,L,I]);let J=function({containerRef:e,inputRef:t,pushPasswordManagerStrategy:a,isFocused:n}){let[o,i]=r.useState(!1),[s,l]=r.useState(!1),[d,c]=r.useState(!1),u=r.useMemo(()=>"none"!==a&&("increase-width"===a||"experimental-no-flickering"===a)&&o&&s,[o,s,a]
39),p=r.useCallback(()=>{let r=e.current,n=t.current;if(!r||!n||d||"none"===a)return;let o=r.getBoundingClientRect().left+r.offsetWidth,s=r.getBoundingClientRect().top+r.offsetHeight/2;0===document.querySelectorAll('[data-lastpass-icon-root],com-1password-button,[data-dashlanecreated],[style$="2147483647 !important;"]').length&&document.elementFromPoint(o-18,s)===r||(i(!0),c(!0))},[e,t,d,a]);return r.useEffect(()=>{let t=e.current;if(!t||"none"===a)return;function r(){l(window.innerWidth-t.getBoundingClientRect().right>=40)}r();let n=setInterval(r,1e3);return()=>{clearInterval(n)}},[e,a]),r.useEffect(()=>{let e=n||document.activeElement===t.current;if("none"===a||!e)return;let r=setTimeout(p,0),o=setTimeout(p,2e3),i=setTimeout(p,5e3),s=setTimeout(()=>{c(!0)},6e3);return()=>{clearTimeout(r),clearTimeout(o),clearTimeout(i),clearTimeout(s)}},[t,n,a,p]),{hasPWMBadge:o,willPushPWMBadge:u,PWM_BADGE_SPACE_WIDTH:"40px"}}({containerRef:F,inputRef:_,pushPasswordManagerStrategy:k,isFocused:W}),Q=r.useCallback(e=>{let t=e.currentTarget.value.slice(0,y);t.length>0&&H&&!H.test(t)?e.preventDefault():("string"==typeof L&&t.length<L.length&&document.dispatchEvent(new Event("selectionchange")),O(t))},[y,O,L,H]),Z=r.useCallback(()=>{var e;if(_.current){let t=Math.min(_.current.value.length,y-1),r=_.current.value.length;null==(e=_.current)||e.setSelectionRange(t,r),q(t),X(r)}Y(!0)},[y]),ee=r.useCallback(e=>{var t,r;let a=_.current;if(!R&&(!B.current.isIOS||!e.clipboardData||!a))return;let n=e.clipboardData.getData("text/plain"),o=R?R(n):n;e.preventDefault();let i=null==(t=_.current)?void 0:t.selectionStart,s=null==(r=_.current)?void 0:r.selectionEnd,l=(i!==s?I.slice(0,i)+o+I.slice(s):I.slice(0,i)+o+I.slice(i)).slice(0,y);if(l.length>0&&H&&!H.test(l))return;a.value=l,O(l);let d=Math.min(l.length,y-1),c=l.length;a.setSelectionRange(d,c),q(d),X(c)},[y,O,H,I]),et=r.useMemo(()=>({position:"relative",cursor:A.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[A.disabled]),er=r.useMemo(()=>({position:"absolute",inset:0,width:J.willPushPWMBadge?`calc(100% + ${J.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:J.willPushPWMBadge?`inset(0 ${J.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:w,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[J.PWM_BADGE_SPACE_WIDTH,J.willPushPWMBadge,w]),ea=r.useMemo(()=>r.createElement("input",n(((e,t)=>{for(var r in t||(t={}))s.call(t,r)&&d(e,r,t[r]);if(i)for(var r of i(t))l.call(t,r)&&d(e,r,t[r]);return e})({autoComplete:A.autoComplete||"one-time-code"},A),o({"data-input-otp":!0,"data-input-otp-placeholder-shown":0===I.length||void 0,"data-input-otp-mss":U,"data-input-otp-mse":K,inputMode:N,pattern:null==H?void 0:H.source,"aria-placeholder":C,style:er,maxLength:y,value:I,ref:_,onPaste:e=>{var t;ee(e),null==(t=A.onPaste)||t.call(A,e)},onChange:Q,onMouseOver:e=>{var t;V(!0),null==(t=A.onMouseOver)||t.call(A,e)},onMouseLeave:e=>{var t;V(!1),null==(t=A.onMouseLeave)||t.call(A,e)},onFocus:e=>{var t;Z(),null==(t=A.onFocus)||t.call(A,e)},onBlur:e=>{var t;Y(!1),null==(t=A.onBlur)||t.call(A,e)}}))),[Q,Z,ee,N,er,y,K,U,A,null==H?void 0:H.source,I]),en=r.useMemo(()=>({slots:Array.from({length:y}).map((e,t)=>{var r;let a=W&&null!==U&&null!==K&&(U===K&&t===U||t>=U&&t<K),n=void 0!==I[t]?I[t]:null;return{char:n,placeholderChar:void 0!==I[0]?null:null!=(r=null==C?void 0:C[t])?r:null,isActive:a,hasFakeCaret:a&&null===n}}),isFocused:W,isHovering:!A.disabled&&$}),[W,$,y,K,U,A.disabled,I]),eo=r.useMemo(()=>E?E(en):r.createElement(c.Provider,{value:en},z),[z,en,E]);return r.createElement(r.Fragment,null,null!==T&&r.createElement("noscript",null,r.createElement("style",null,T)),r.createElement("div",{ref:F,"data-input-otp-container":!0,style:et,className:P},eo,r.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},ea)))});function p(e,t){try{e.insertRule(t)}catch(e){console.error("input-otp could not insert CSS rule:",t)}}u.displayName="Input";var f=`
40[data-input-otp] {
41  --nojs-bg: white !important;
42  --nojs-fg: black !important;
43
44  background-color: var(--nojs-bg) !important;
45  color: var(--nojs-fg) !important;
46  caret-color: var(--nojs-fg) !important;
47  letter-spacing: .25em !important;
48  text-align: center !important;
49  border: 1px solid var(--nojs-fg) !important;
50  border-radius: 4px !important;
51  width: 100% !important;
52}
53@media (prefers-color-scheme: dark) {
54  [data-input-otp] {
55    --nojs-bg: black !important;
56    --nojs-fg: white !important;
57  }
58}`;let m=(0,e.i(829647).default)("dot",[["circle",{cx:"12.1",cy:"12.1",r:"1",key:"18d7e5"}]]);var x=e.i(318203);let h=r.forwardRef(({className:e,containerClassName:r,...a},n)=>(0,t.jsx)(u,{ref:n,containerClassName:(0,x.cn)("flex items-center gap-2 has-[:disabled]:opacity-50",r),className:(0,x.cn)("disabled:cursor-not-allowed",e),...a}));h.displayName="InputOTP";let g=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)("div",{ref:a,className:(0,x.cn)("flex items-center",e),...r}));g.displayName="InputOTPGroup";let v=r.forwardRef(({index:e,className:a,...n},o)=>{let{char:i,hasFakeCaret:s,isActive:l}=r.useContext(c).slots[e];return(0,t.jsxs)("div",{ref:o,className:(0,x.cn)("relative flex h-10 w-10 items-center justify-center border-y border-r border-input text-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",l&&"z-10 ring-2 ring-ring ring-offset-background",a),...n,children:[i,s&&(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:(0,t.jsx)("div",{className:"h-4 w-px animate-caret-blink bg-foreground duration-1000"})})]})});v.displayName="InputOTPSlot";let b=r.forwardRef(({...e},r)=>(0,t.jsx)("div",{ref:r,role:"separator",...e,children:(0,t.jsx)(m,{})}));b.displayName="InputOTPSeparator",e.s(["InputOTP",0,h,"InputOTPGroup",0,g,"InputOTPSeparator",0,b,"InputOTPSlot",0,v],871443)},243237,e=>{"use strict";var t=e.i(327193),r=e.i(475127),a=e.i(767240),n=e.i(943001),o=e.i(448680),i=e.i(397524),s=e.i(559451),l=e.i(97229),d="ToggleGroup",[c,u]=(0,a.createContextScope)(d,[o.createRovingFocusGroupScope]),p=(0,o.createRovingFocusGroupScope)(),f=r.forwardRef((e,r)=>{let{type:a,...n}=e;if("single"===a)return(0,t.jsx)(h,{role:"radiogroup",...n,ref:r});if("multiple"===a)return(0,t.jsx)(g,{role:"toolbar",...n,ref:r});throw Error(`Missing prop \`type\` expected on \`${d}\``)});f.displayName=d;
58var[m,x]=c(d),h=r.forwardRef((e,a)=>{let{value:n,defaultValue:o,onValueChange:i=()=>{},...l}=e,[c,u]=(0,s.useControllableState)({prop:n,defaultProp:o??"",onChange:i,caller:d});return(0,t.jsx)(m,{scope:e.__scopeToggleGroup,type:"single",value:r.useMemo(()=>c?[c]:[],[c]),onItemActivate:u,onItemDeactivate:r.useCallback(()=>u(""),[u]),children:(0,t.jsx)(y,{...l,ref:a})})}),g=r.forwardRef((e,a)=>{let{value:n,defaultValue:o,onValueChange:i=()=>{},...l}=e,[c,u]=(0,s.useControllableState)({prop:n,defaultProp:o??[],onChange:i,caller:d}),p=r.useCallback(e=>u((t=[])=>[...t,e]),[u]),f=r.useCallback(e=>u((t=[])=>t.filter(t=>t!==e)),[u]);return(0,t.jsx)(m,{scope:e.__scopeToggleGroup,type:"multiple",value:c,onItemActivate:p,onItemDeactivate:f,children:(0,t.jsx)(y,{...l,ref:a})})});f.displayName=d;var[v,b]=c(d),y=r.forwardRef((e,r)=>{let{__scopeToggleGroup:a,disabled:i=!1,rovingFocus:s=!0,orientation:d,dir:c,loop:u=!0,...f}=e,m=p(a),x=(0,l.useDirection)(c),h={dir:x,...f};return(0,t.jsx)(v,{scope:a,rovingFocus:s,disabled:i,children:s?(0,t.jsx)(o.Root,{asChild:!0,...m,orientation:d,dir:x,loop:u,children:(0,t.jsx)(n.Primitive.div,{...h,ref:r})}):(0,t.jsx)(n.Primitive.div,{...h,ref:r})})}),w="ToggleGroupItem",j=r.forwardRef((e,a)=>{let n=x(w,e.__scopeToggleGroup),i=b(w,e.__scopeToggleGroup),s=p(e.__scopeToggleGroup),l=n.value.includes(e.value),d=i.disabled||e.disabled,c={...e,pressed:l,disabled:d},u=r.useRef(null);return i.rovingFocus?(0,t.jsx)(o.Item,{asChild:!0,...s,focusable:!d,active:l,ref:u,children:(0,t.jsx)(C,{...c,ref:a})}):(0,t.jsx)(C,{...c,ref:a})});j.displayName=w;var C=r.forwardRef((e,r)=>{let{__scopeToggleGroup:a,value:n,...o}=e,s=x(w,a),l={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},d="single"===s.type?l:void 0;return(0,t.jsx)(i.Toggle,{...d,...o,ref:r,onPressedChange:e=>{e?s.onItemActivate(n):s.onItemDeactivate(n)}})}),N=e.i(318203),S=e.i(760024);let k=r.createContext({size:"default",variant:"default"}),R=r.forwardRef(({className:e,variant:r,size:a,children:n,...o},i)=>(0,t.jsx)(f,{ref:i,className:(0,N.cn)("flex items-center justify-center gap-1",e),...o,children:(0,t.jsx)(k.Provider,{value:{variant:r,size:a},children:n})}));R.displayName=f.displayName;let P=r.forwardRef(({className:e,children:a,variant:n,size:o,...i},s)=>{let l=r.useContext(k);return(0,t.jsx)(j,{ref:s,className:(0,N.cn)((0,S.toggleVariants)({variant:l.variant||n,size:l.size||o}),e),...i,children:a})});P.displayName=j.displayName,e.s(["ToggleGroup",0,R,"ToggleGroupItem",0,P],243237)},760024,397524,e=>{"use strict";var t=e.i(327193),r=e.i(475127),a=e.i(515201),n=e.i(559451),o=e.i(943001),i="Toggle",s=r.forwardRef((e,r)=>{let{pressed:s,defaultPressed:l,onPressedChange:d,...c}=e,[u,p]=(0,n.useControllableState)({prop:s,onChange:d,defaultProp:l??!1,caller:i});return(0,t.jsx)(o.Primitive.button,{type:"button","aria-pressed":u,"data-state":u?"on":"off","data-disabled":e.disabled?"":void 0,...c,ref:r,onClick:(0,a.composeEventHandlers)(e.onClick,()=>{e.disabled||p(!u)})})});s.displayName=i,e.s(["Root",0,s,"Toggle",0,s],397524);var l=e.i(294237),d=e.i(318203);let c=(0,l.cva)("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),u=r.forwardRef(({className:e,variant:r,size:a,...n},o)=>(0,t.jsx)(s,{ref:o,className:(0,d.cn)(c({variant:r,size:a,className:e})),...n}));u.displayName=s.displayName,e.s(["Toggle",0,u,"toggleVariants",0,c],760024)},437296,e=>{"use strict";var t=e.i(475127),r=e.i(515201),a=e.i(767240),n=e.i(559451),o=e.i(91467),i=e.i(443644),s=e.i(943001),l=e.i(948983),d=e.i(168048),c=e.i(327193),u="Collapsible",[p,f]=(0,a.createContextScope)(u),[m,x]=p(u),h=t.forwardRef((e,r)=>{let{__scopeCollapsible:a,open:o,defaultOpen:i,disabled:l,onOpenChange:p,...f}=e,[x,h]=(0,n.useControllableState)({prop:o,defaultProp:i??!1,onChange:p,caller:u});return(0,c.jsx)(m,{scope:a,disabled:l,contentId:(0,d.useId)(),open:x,onOpenToggle:t.useCallback(()=>h(e=>!e),[h]),children:(0,c.jsx)(s.Primitive.div,{"data-state":j(x),"data-disabled":l?"":void 0,...f,ref:r})})});h.displayName=u;var g="CollapsibleTrigger",v=t.forwardRef((e,t)=>
58{let{__scopeCollapsible:a,...n}=e,o=x(g,a);return(0,c.jsx)(s.Primitive.button,{type:"button","aria-controls":o.open?o.contentId:void 0,"aria-expanded":o.open||!1,"data-state":j(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...n,ref:t,onClick:(0,r.composeEventHandlers)(e.onClick,o.onOpenToggle)})});v.displayName=g;var b="CollapsibleContent",y=t.forwardRef((e,t)=>{let{forceMount:r,...a}=e,n=x(b,e.__scopeCollapsible);return(0,c.jsx)(l.Presence,{present:r||n.open,children:({present:e})=>(0,c.jsx)(w,{...a,ref:t,present:e})})});y.displayName=b;var w=t.forwardRef((e,r)=>{let{__scopeCollapsible:a,present:n,children:l,...d}=e,u=x(b,a),[p,f]=t.useState(n),m=t.useRef(null),h=(0,i.useComposedRefs)(r,m),g=t.useRef(0),v=g.current,y=t.useRef(0),w=y.current,C=u.open||p,N=t.useRef(C),S=t.useRef(void 0);return t.useEffect(()=>{let e=requestAnimationFrame(()=>N.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,o.useLayoutEffect)(()=>{let e=m.current;if(e){S.current=S.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();g.current=t.height,y.current=t.width,N.current||(e.style.transitionDuration=S.current.transitionDuration,e.style.animationName=S.current.animationName),f(n)}},[u.open,n]),(0,c.jsx)(s.Primitive.div,{"data-state":j(u.open),"data-disabled":u.disabled?"":void 0,id:u.contentId,hidden:!C,...d,ref:h,style:{"--radix-collapsible-content-height":v?`${v}px`:void 0,"--radix-collapsible-content-width":w?`${w}px`:void 0,...e.style},children:C&&l})});function j(e){return e?"open":"closed"}e.s(["Collapsible",0,h,"CollapsibleContent",0,y,"CollapsibleTrigger",0,v,"Content",0,y,"Root",0,h,"Trigger",0,v,"createCollapsibleScope",0,f])},171812,e=>{"use strict";var t=e.i(228423);e.s(["ChevronDown",()=>t.default])}]);

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.