1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,253398,789170,e=>{"use strict";e.i(458331),e.i(414155);var t=e.i(843476),r=e.i(657688);e.s(["SyllabuzzLoading",0,function({message:e="Buzzing..."}){return(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-6 p-8",children:[(0,t.jsxs)("div",{className:"relative size-24",children:[(0,t.jsx)("div",{className:"absolute inset-0 animate-spin rounded-full border-4 border-main-yellow/20 border-t-main-yellow"}),(0,t.jsx)(r.default,{src:"/symbol.svg",alt:"Syllabuzz logo",width:64,height:64,className:"-translate-1/2 absolute top-1/2 left-1/2 size-16 rounded-lg bg-white"})]}),(0,t.jsx)("p",{className:"font-medium text-gray-700 text-sm",children:e}),(0,t.jsx)("div",{className:"h-1 w-48 overflow-hidden rounded-full bg-main-yellow/20",children:(0,t.jsx)("div",{className:"size-full animate-pulse rounded-full bg-main-yellow",style:{animation:"pulse 1.5s ease-in-out infinite"}})})]})}],789170),e.s([],253398)},63090,e=>{"use strict";var t=e.i(843476);let r=(0,e.i(456420).default)("bookmark",[["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",key:"oz39mx"}]]);var n=e.i(95187);let i=(0,n.createServerReference)("7fa304479826c2af407cd252149f12a5d7a5dc7d73",n.callServer,void 0,n.findSourceMapURL,"setFavorite"),a=(0,n.createServerReference)("7fa5db319cd819ab03e06776941ddf3e4262ef233c",n.callServer,void 0,n.findSourceMapURL,"setFavorite");var l=e.i(271645),s=e.i(846696),o=e.i(613300);e.s(["Favorite",0,({courseId:e,professorId:n,className:u,value:c=!1})=>{let{optimisticState:d,execute:f,isPending:h}=function(e,t){let{serverAction:r,onSuccess:n,onError:i,successToast:a,errorToast:o,disableToast:u=!1}=t,[c,d]=(0,l.useOptimistic)(e),[f,h]=(0,l.useTransition)();return{optimisticState:c,execute:t=>{h(async()=>{d(t);let l=await r(t);l.success?(e=>{if(!1===u&&null!=a){let t="function"==typeof a?a(e):a;s.toast.success(t)}n?.(e)})(l.data):(t=>{if(d(e),!1===u){let e=null!=o?"function"==typeof o?o(t):o:t.message??"An error occurred";s.toast.error(e)}i?.(t)})(l.error)})},isPending:f}}(c,{serverAction:async t=>null!=e?await i(e,t):await a(n,t),errorToast:"Failed to update favorite. Please try again.",disableToast:!0});return(0,t.jsx)(r,{className:(0,o.cn)("size-6 rounded-full bg-transparent p-0 text-gray-800 hover:cursor-pointer hover:bg-gray-200 lg:size-8 lg:p-1",d&&"fill-main-yellow text-black",h&&"opacity-70",u),onClick:()=>f(!d)})}],63090)},755838,(e,t,r)=>{"use strict";var n=e.r(271645),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=n.useState,l=n.useEffect,s=n.useLayoutEffect,o=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var c="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=a({inst:{value:r,getSnapshot:t}}),i=n[0].inst,c=n[1];return s(function(){i.value=r,i.getSnapshot=t,u(i)&&c({inst:i})},[e,r,t]),l(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),o(r),r};r.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},802239,(e,t,r)=>{"use strict";t.exports=e.r(755838)},716327,e=>{"use strict";let t=(0,e.i(456420).default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);e.s(["ChevronDown",0,t],716327)},269035,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(248425),i="horizontal",a=["horizontal","vertical"],l=r.forwardRef((e,r)=>{var l;let{decorative:s,orientation:o=i,...u}=e,c=(l=o,a.includes(l))?o:i;return(0,t.jsx)(n.Primitive.div,{"data-orientation":c,...s?{role:"none"}:{"aria-orientation":"vertical"===c?c:void 0,role:"separator"},...u,ref:r})});l.displayName="Separator";var s=e.i(613300);e.s(["Separator",0,function({className:e,orientation:r="horizontal",decorative:n=!0,...i}){return(0,t.jsx)(l,{decorative:n,orientation:r,className:(0,s.cn)("shrink-0 bg-border","horizontal"===r?"h-px w-full":"h-full w-px",e),...i})}],269035)},75830,e=>{"use strict";var t=e.i(271645),r=e.i(30030),n=e.i(820783),i=e.i(991918),a=e.i(843476),l=new WeakMap;function s(e,t){var r,n;let i,a,l;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let s=(r=e,n=t,i=r.length,(l=(a=o(n))>=0?a:i+a)<0||l>=i?-1:l);return -1===s?void 0:e[s]}function o(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#e;constructor(e){super(e),this.#e=[...super.keys()],l.set(this,!0)}set(e,t){return l.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,r){let n,i=this.has(t),a=this.#e.length,l=o(e),s=l>=0?l:a+l,u=s<0||s>=a?-1:s;if(u===this.size||i&&u===this.size-1||-1===u)return this.set(t,r),this;let c=this.size+ +!i;l<0&&s++;let d=[...this.#e],f=!1;for(let e=s;e<c;e++)if(s===e){let a=d[e];d[e]===t&&(a=d[e+1]),i&&this.delete(t),n=this.get(a),this.set(t,r)}else{f||d[e-1]!==t||(f=!0);let r=d[f?e:e-1],i=n;n=this.get(r),this.delete(r),this.set(r,i)}return this}with(t,r,n){let i=new e(this);return i.insert(t,r,n),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n,t,r)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=s(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=s(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return s(this.#e,e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return n;r++}}findIndex(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return r;r++}return -1}filter(t,r){let n=[],i=0;for(let e of this)Reflect.apply(t,r,[e,i,this])&&n.push(e),i++;return new e(n)}map(t,r){let n=[],i=0;for(let e of this)n.push([e[0],Reflect.apply(t,r,[e,i,this])]),i++;return new e(n)}reduce(...e){let[t,r]=e,n=0,i=r??this.at(0);for(let r of this)i=0===n&&1===e.length?r:Reflect.apply(t,this,[i,r,n,this]),n++;return i}reduceRight(...e){let[t,r]=e,n=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let i=this.at(r);
1n=r===this.size-1&&1===e.length?i:Reflect.apply(t,this,[n,i,r,this])}return n}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),n=this.get(r);t.set(r,n)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let n=new e,i=this.size-1;if(void 0===t)return n;t<0&&(t+=this.size),void 0!==r&&r>0&&(i=r-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),r=this.get(t);n.set(t,r)}return n}every(e,t){let r=0;for(let n of this){if(!Reflect.apply(e,t,[n,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return!0;r++}return!1}}),e.s(["createCollection",0,function(e){let l=e+"CollectionProvider",[s,o]=(0,r.createContextScope)(l),[u,c]=s(l,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:r,children:n}=e,i=t.useRef(null),l=t.useRef(new Map).current;return(0,a.jsx)(u,{scope:r,itemMap:l,collectionRef:i,children:n})};d.displayName=l;let f=e+"CollectionSlot",h=(0,i.createSlot)(f),p=t.forwardRef((e,t)=>{let{scope:r,children:i}=e,l=c(f,r),s=(0,n.useComposedRefs)(t,l.collectionRef);return(0,a.jsx)(h,{ref:s,children:i})});p.displayName=f;let m=e+"CollectionItemSlot",v="data-radix-collection-item",y=(0,i.createSlot)(m),g=t.forwardRef((e,r)=>{let{scope:i,children:l,...s}=e,o=t.useRef(null),u=(0,n.useComposedRefs)(r,o),d=c(m,i);return t.useEffect(()=>(d.itemMap.set(o,{ref:o,...s}),()=>void d.itemMap.delete(o))),(0,a.jsx)(y,{...{[v]:""},ref:u,children:l})});return g.displayName=m,[{Provider:d,Slot:p,ItemSlot:g},function(r){let n=c(e+"CollectionConsumer",r);return t.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${v}]`));return Array.from(n.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[n.collectionRef,n.itemMap])},o]}])},586318,e=>{"use strict";var t=e.i(271645);e.i(843476);var r=t.createContext(void 0);e.s(["useDirection",0,function(e){let n=t.useContext(r);return e||n||"ltr"}])},842727,e=>{"use strict";var t=e.i(271645),r=e.i(981140),n=e.i(75830),i=e.i(820783),a=e.i(30030),l=e.i(610772),s=e.i(248425),o=e.i(30207),u=e.i(369340),c=e.i(586318),d=e.i(843476),f="rovingFocusGroup.onEntryFocus",h={bubbles:!1,cancelable:!0},p="RovingFocusGroup",[m,v,y]=(0,n.createCollection)(p),[g,b]=(0,a.createContextScope)(p,[y]),[x,w]=g(p),R=t.forwardRef((e,t)=>(0,d.jsx)(m.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,d.jsx)(m.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,d.jsx)(S,{...e,ref:t})})}));R.displayName=p;var S=t.forwardRef((e,n)=>{let{__scopeRovingFocusGroup:a,orientation:l,loop:m=!1,dir:y,currentTabStopId:g,defaultCurrentTabStopId:b,onCurrentTabStopIdChange:w,onEntryFocus:R,preventScrollOnEntryFocus:S=!1,...E}=e,k=t.useRef(null),j=(0,i.useComposedRefs)(n,k),N=(0,c.useDirection)(y),[O,T]=(0,u.useControllableState)({prop:g,defaultProp:b??null,onChange:w,caller:p}),[A,_]=t.useState(!1),L=(0,o.useCallbackRef)(R),z=v(a),I=t.useRef(!1),[M,D]=t.useState(0);return t.useEffect(()=>{let e=k.current;if(e)return e.addEventListener(f,L),()=>e.removeEventListener(f,L)},[L]),(0,d.jsx)(x,{scope:a,orientation:l,dir:N,loop:m,currentTabStopId:O,onItemFocus:t.useCallback(e=>T(e),[T]),onItemShiftTab:t.useCallback(()=>_(!0),[]),onFocusableItemAdd:t.useCallback(()=>D(e=>e+1),[]),onFocusableItemRemove:t.useCallback(()=>D(e=>e-1),[]),children:(0,d.jsx)(s.Primitive.div,{tabIndex:A||0===M?-1:0,"data-orientation":l,...E,ref:j,style:{outline:"none",...e.style},onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,()=>{I.current=!0}),onFocus:(0,r.composeEventHandlers)(e.onFocus,e=>{let t=!I.current;if(e.target===e.currentTarget&&t&&!A){let t=new CustomEvent(f,h);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=z().filter(e=>e.focusable);C([e.find(e=>e.active),e.find(e=>e.id===O),...e].filter(Boolean).map(e=>e.ref.current),S)}}I.current=!1}),onBlur:(0,r.composeEventHandlers)(e.onBlur,()=>_(!1))})})}),E="RovingFocusGroupItem",k=t.forwardRef((e,n)=>{let{__scopeRovingFocusGroup:i,focusable:a=!0,active:o=!1,tabStopId:u,children:c,...f}=e,h=(0,l.useId)(),p=u||h,y=w(E,i),g=y.currentTabStopId===p,b=v(i),{onFocusableItemAdd:x,onFocusableItemRemove:R,currentTabStopId:S}=y;return t.useEffect(()=>{if(a)return x(),()=>R()},[a,x,R]),(0,d.jsx)(m.ItemSlot,{scope:i,id:p,focusable:a,active:o,children:(0,d.jsx)(s.Primitive.span,{tabIndex:g?0:-1,"data-orientation":y.orientation,...f,ref:n,onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,e=>{a?y.onItemFocus(p):e.preventDefault()}),onFocus:(0,r.composeEventHandlers)(e.onFocus,()=>y.onItemFocus(p)),onKeyDown:(0,r.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void y.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let i=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return j[i]}(e,y.orientation,y.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let i=b().filter(e=>
1e.focusable).map(e=>e.ref.current);if("last"===t)i.reverse();else if("prev"===t||"next"===t){var r,n;"prev"===t&&i.reverse();let a=i.indexOf(e.currentTarget);i=y.loop?(r=i,n=a+1,r.map((e,t)=>r[(n+t)%r.length])):i.slice(a+1)}setTimeout(()=>C(i))}}),children:"function"==typeof c?c({isCurrentTabStop:g,hasTabStop:null!=S}):c})})});k.displayName=E;var j={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function C(e,t=!1){let r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}e.s(["Item",0,k,"Root",0,R,"createRovingFocusGroupScope",0,b])},381691,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(981140),i=e.i(30030),a=e.i(842727),l=e.i(296626),s=e.i(248425),o=e.i(586318),u=e.i(369340),c=e.i(610772),d="Tabs",[f,h]=(0,i.createContextScope)(d,[a.createRovingFocusGroupScope]),p=(0,a.createRovingFocusGroupScope)(),[m,v]=f(d),y=r.forwardRef((e,r)=>{let{__scopeTabs:n,value:i,onValueChange:a,defaultValue:l,orientation:f="horizontal",dir:h,activationMode:p="automatic",...v}=e,y=(0,o.useDirection)(h),[g,b]=(0,u.useControllableState)({prop:i,onChange:a,defaultProp:l??"",caller:d});return(0,t.jsx)(m,{scope:n,baseId:(0,c.useId)(),value:g,onValueChange:b,orientation:f,dir:y,activationMode:p,children:(0,t.jsx)(s.Primitive.div,{dir:y,"data-orientation":f,...v,ref:r})})});y.displayName=d;var g="TabsList",b=r.forwardRef((e,r)=>{let{__scopeTabs:n,loop:i=!0,...l}=e,o=v(g,n),u=p(n);return(0,t.jsx)(a.Root,{asChild:!0,...u,orientation:o.orientation,dir:o.dir,loop:i,children:(0,t.jsx)(s.Primitive.div,{role:"tablist","aria-orientation":o.orientation,...l,ref:r})})});b.displayName=g;var x="TabsTrigger",w=r.forwardRef((e,r)=>{let{__scopeTabs:i,value:l,disabled:o=!1,...u}=e,c=v(x,i),d=p(i),f=E(c.baseId,l),h=k(c.baseId,l),m=l===c.value;return(0,t.jsx)(a.Item,{asChild:!0,...d,focusable:!o,active:m,children:(0,t.jsx)(s.Primitive.button,{type:"button",role:"tab","aria-selected":m,"aria-controls":h,"data-state":m?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:f,...u,ref:r,onMouseDown:(0,n.composeEventHandlers)(e.onMouseDown,e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():c.onValueChange(l)}),onKeyDown:(0,n.composeEventHandlers)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&c.onValueChange(l)}),onFocus:(0,n.composeEventHandlers)(e.onFocus,()=>{let e="manual"!==c.activationMode;m||o||!e||c.onValueChange(l)})})})});w.displayName=x;var R="TabsContent",S=r.forwardRef((e,n)=>{let{__scopeTabs:i,value:a,forceMount:o,children:u,...c}=e,d=v(R,i),f=E(d.baseId,a),h=k(d.baseId,a),p=a===d.value,m=r.useRef(p);return r.useEffect(()=>{let e=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,t.jsx)(l.Presence,{present:o||p,children:({present:r})=>(0,t.jsx)(s.Primitive.div,{"data-state":p?"active":"inactive","data-orientation":d.orientation,role:"tabpanel","aria-labelledby":f,hidden:!r,id:h,tabIndex:0,...c,ref:n,style:{...e.style,animationDuration:m.current?"0s":void 0},children:r&&u})})});function E(e,t){return`${e}-trigger-${t}`}function k(e,t){return`${e}-content-${t}`}S.displayName=R;var j=e.i(613300);function C({className:e,ref:r,...n}){return(0,t.jsx)(b,{ref:r,className:(0,j.cn)("scrollbar-none relative inline-flex items-center overflow-x-auto text-muted-foreground","m-2 mb-0 h-10 w-[calc(100%-16px)] overflow-hidden rounded-full bg-black","md:m-0 md:mb-2 md:h-12 md:gap-6 md:rounded-none md:border-black/10 md:border-b md:bg-transparent md:p-0",e),...n})}function N({className:e,ref:r,...n}){return(0,t.jsx)(w,{ref:r,className:(0,j.cn)("inline-flex items-center justify-center whitespace-nowrap ring-offset-background transition-[color,background,transform] duration-300","focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50","mx-1 py-1.5 text-[14px]","min-w-0 flex-1 rounded-full text-white/80 hover:text-white","data-[state=active]:bg-main-yellow data-[state=active]:font-medium data-[state=active]:text-black data-[state=active]:shadow-sm","data-[state=active]:shadow-[0_0_0_1px_rgba(0,0,0,0.25)] data-[state=active]:ring-0","data-[state=active]:translate-y-[-0.5px]","md:flex-none md:rounded-none md:shadow-none md:data-[state=active]:bg-transparent md:data-[state=active]:text-black md:data-[state=active]:shadow-none","md:px-5 md:text-[16
1px] md:text-muted-foreground md:data-[state=active]:font-bold md:hover:text-foreground",e),...n})}function O({className:e,ref:r,...n}){return(0,t.jsx)(S,{ref:r,className:(0,j.cn)("mt-2 ring-offset-background focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...n})}e.s(["AppTabs",0,function({tabs:e,initialKey:n,className:i,listClassName:a,onChange:l,belowList:s}){let o=null!=n&&e.some(e=>e.key===n)?n:e[0]?.key??"",[u,c]=(0,r.useState)(o),{headerRef:d,indicator:f}=function(e){let t=r.useRef(null),[n,i]=r.useState({left:0,width:0}),a=r.useCallback(()=>{let e=t.current;if(!e)return;let r=e.querySelector('[role="tablist"]'),n=e.querySelector('[role="tab"][data-state="active"]');if(!r||!n)return;let a=parseFloat(getComputedStyle(r).paddingLeft||"0");i({left:n.offsetLeft-r.scrollLeft+a,width:n.offsetWidth})},[]);return r.useEffect(()=>{a()},[a]),r.useEffect(()=>{let e=()=>a();return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[a]),{headerRef:t,indicator:n}}(e.length);return(0,t.jsx)("div",{className:(0,j.cn)("flex w-full flex-col gap-4",i),children:(0,t.jsxs)(y,{value:u,onValueChange:e=>{c(e),l?.(e)},children:[(0,t.jsx)("div",{ref:d,className:"relative",children:(0,t.jsxs)(C,{className:(0,j.cn)("before:pointer-events-none before:absolute before:top-0 before:left-0 before:h-full before:w-6","after:pointer-events-none after:absolute after:top-0 after:right-0 after:h-full after:w-6",a),children:[e.map(({key:e,label:r})=>(0,t.jsx)(N,{value:e,children:r},e)),(0,t.jsx)("div",{"aria-hidden":!0,className:(0,j.cn)("pointer-events-none absolute bottom-0 left-0 hidden h-0.75 rounded-full bg-main-yellow","transition-[transform,width] duration-300 ease-out","md:block"),style:{width:`${f.width}px`,transform:`translateX(${f.left}px)`}})]})}),null!=s&&!1!==s&&(0,t.jsx)("div",{className:(0,j.cn)("mt-1 flex justify-end px-2 lg:px-4"),children:s}),e.map(({key:e,content:r})=>(0,t.jsx)(O,{value:e,forceMount:!0,hidden:u!==e,className:"relative",children:r},e))]})})}],381691)},867927,e=>{"use strict";let t=(0,e.i(456420).default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["ChevronRight",0,t],867927)},287074,24071,e=>{"use strict";var t=e.i(843476);let r=(0,e.i(456420).default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);e.s(["ChevronLeft",0,r],24071);var n=e.i(867927),i=e.i(271645),a=e.i(613300);e.s(["HorizontalScrollerWithNav",0,function({children:e,itemWidth:l=280,itemHeight:s=96,gap:o=12,step:u,className:c="",ariaLabel:d}){let f=(0,i.useRef)(null),[h,p]=(0,i.useState)(!1),[m,v]=(0,i.useState)(!1),[y,g]=(0,i.useState)(0),[b,x]=(0,i.useState)(1),w=e=>f.current?.scrollBy({left:e,behavior:"smooth"}),R=u??l+o;return(0,i.useLayoutEffect)(()=>{let e=f.current;if(!e)return;let t=()=>{let t=e.clientWidth,r=e.scrollWidth,n=e.scrollLeft,i=Math.max(0,r-t),a=n>=i-1,l=Math.max(1,Math.ceil(i/R)+1),s=a?l-1:Math.min(l-1,Math.round(n/R));p(n>1),v(!a),x(l),g(s)};t(),e.addEventListener("scroll",t);let r=new ResizeObserver(t);return r.observe(e),()=>{e.removeEventListener("scroll",t),r.disconnect()}},[R]),(0,t.jsxs)("div",{className:(0,a.cn)("relative",c),children:[(0,t.jsx)("button",{type:"button",onClick:()=>w(-R),disabled:!h,className:(0,a.cn)("absolute top-1/2 left-1 z-10 -translate-y-1/2 rounded-full bg-white/90 p-1 shadow-sm ring-1 ring-black/10","sm:mt-0","-mt-1",!h&&"cursor-default opacity-40"),"aria-label":"Scroll left",children:(0,t.jsx)(r,{className:"size-5 text-gray-800"})}),(0,t.jsx)("button",{type:"button",onClick:()=>w(R),disabled:!m,className:(0,a.cn)("absolute top-1/2 right-1 z-10 -translate-y-1/2 rounded-full bg-white/90 p-1 shadow-sm ring-1 ring-black/10","sm:mt-0","-mt-1",!m&&"cursor-default opacity-40"),"aria-label":"Scroll right",children:(0,t.jsx)(n.ChevronRight,{className:"size-5 text-gray-800"})}),(0,t.jsx)("section",{ref:f,className:"snap-x snap-mandatory overflow-x-auto overflow-y-hidden overscroll-x-contain [scrollbar-width:thin]","aria-label":d,children:(0,t.jsx)("ul",{className:"flex min-w-full pr-3",style:{gap:o},children:i.default.Children.toArray(e).map(e=>{let r=e.key;return(0,t.jsx)("li",{className:"shrink-0 snap-start",style:{width:l,height:s},children:(0,t.jsx)("div",{className:"h-full",children:e})},r)})})}),(0,t.jsx)("div",{className:"mt-2 flex justify-center gap-1",children:Array.from({length:b},(e,t)=>`dot-${t}`).map((e,r)=>(0,t.jsx)("span",{className:(0,a.cn)("size-1.5 rounded-full bg-gray-300",r===Math.min(y,b-1)&&"bg-gray-800")},e))})]})}],287074)},501465,283599,e=>{"use strict";let t,r;var n=e.i(843476),i=e.i(716327),a=e.i(271645),l=e.i(802239);e.s(["ERROR_REVALIDATE_EVENT",0,3,"FOCUS_EVENT",0,0,"MUTATE_EVENT",0,2,"RECONNECT_EVENT",0,1],211671);var s=Object.prototype.hasOwnProperty;let o=new WeakMap,u=()=>{},c=u(),d=Object,f=e=>e===c,h=(e,t)=>({...e,...t}),p={},m={},v="undefined",y=typeof window!=v,g=typeof document!=v,b=y&&"Deno"in window,x=(e,t)=>{let r=o.get(e);return[()=>!f(t)&&e.get(t)||p,n=>
1{if(!f(t)){let i=e.get(t);t in m||(m[t]=i),r[5](t,h(i,n),i||p)}},r[6],()=>!f(t)&&t in m?m[t]:!f(t)&&e.get(t)||p]},w=!0,[R,S]=y&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[u,u],E={initFocus:e=>(g&&document.addEventListener("visibilitychange",e),R("focus",e),()=>{g&&document.removeEventListener("visibilitychange",e),S("focus",e)}),initReconnect:e=>{let t=()=>{w=!0,e()},r=()=>{w=!1};return R("online",t),R("offline",r),()=>{S("online",t),S("offline",r)}}},k=!a.default.useId,j=!y||b,C=j?a.useEffect:a.useLayoutEffect,N="u">typeof navigator&&navigator.connection,O=!j&&N&&(["slow-2g","2g"].includes(N.effectiveType)||N.saveData),T=new WeakMap,A=(e,t)=>e===`[object ${t}]`,_=0,L=e=>{let t,r,n=typeof e,i=d.prototype.toString.call(e),a=A(i,"Date"),l=A(i,"RegExp"),s=A(i,"Object");if(d(e)!==e||a||l)t=a?e.toJSON():"symbol"==n?e.toString():"string"==n?JSON.stringify(e):""+e;else{if(t=T.get(e))return t;if(t=++_+"~",T.set(e,t),Array.isArray(e)){for(r=0,t="@";r<e.length;r++)t+=L(e[r])+",";T.set(e,t)}if(s){t="#";let n=d.keys(e).sort();for(;!f(r=n.pop());)f(e[r])||(t+=r+":"+L(e[r])+",");T.set(e,t)}}return t},z=e=>{if("function"==typeof e)try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?L(e):"",t]},I=0,M=()=>++I;async function D(...e){let[t,r,n,i]=e,a=h({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{}),l=a.populateCache,s=a.rollbackOnError,u=a.optimisticData,d=a.throwOnError;if("function"==typeof r){let e=[];for(let n of t.keys())!/^\$(inf|sub)\$/.test(n)&&r(t.get(n)._k)&&e.push(n);return Promise.all(e.map(p))}return p(r);async function p(r){let i,[h]=z(r);if(!h)return;let[p,m]=x(t,h),[v,y,g,b]=o.get(t),w=()=>{let e=v[h];return("function"==typeof a.revalidate?a.revalidate(p().data,r):!1!==a.revalidate)&&(delete g[h],delete b[h],e&&e[0])?e[0](2).then(()=>p().data):p().data};if(e.length<3)return w();let R=n,S=!1,E=M();y[h]=[E,0];let k=!f(u),j=p(),C=j.data,N=j._c,O=f(N)?C:N;if(k&&m({data:u="function"==typeof u?u(O,C):u,_c:O}),"function"==typeof R)try{R=R(O)}catch(e){i=e,S=!0}if(R&&"function"==typeof R.then){let e;if(R=await R.catch(e=>{i=e,S=!0}),E!==y[h][0]){if(S)throw i;return R}S&&k&&(e=i,"function"==typeof s?s(e):!1!==s)&&(l=!0,m({data:O,_c:c}))}if(l&&!S&&("function"==typeof l?m({data:l(R,O),error:c,_c:c}):m({data:R,error:c,_c:c})),y[h][1]=M(),Promise.resolve(w()).then(()=>{m({_c:c})}),S){if(d)throw i;return}return R}}let F=(e,t)=>{for(let r in e)e[r][0]&&e[r][0](t)},V=(e,t)=>{if(!o.has(e)){let r=h(E,t),n=Object.create(null),i=D.bind(c,e),a=u,l=Object.create(null),s=(e,t)=>{let r=l[e]||[];return l[e]=r,r.push(t),()=>r.splice(r.indexOf(t),1)},d=(t,r,n)=>{e.set(t,r);let i=l[t];if(i)for(let e of i)e(r,n)},f=()=>{if(!o.has(e)&&(o.set(e,[n,Object.create(null),Object.create(null),Object.create(null),i,d,s]),!j)){let t=r.initFocus(setTimeout.bind(c,F.bind(c,n,0))),i=r.initReconnect(setTimeout.bind(c,F.bind(c,n,1)));a=()=>{t&&t(),i&&i(),o.delete(e)}}};return f(),[e,i,f,a]}return[e,o.get(e)[4]]},[P,W]=V(new Map),$=h({onLoadingSlow:u,onSuccess:u,onError:u,onErrorRetry:(e,t,r,n,i)=>{let a=r.errorRetryCount,l=i.retryCount,s=~~((Math.random()+.5)*(1<<(l<8?l:8)))*r.errorRetryInterval;(f(a)||!(l>a))&&setTimeout(n,s,i)},onDiscarded:u,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:O?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:O?5e3:3e3,compare:function e(t,r){var n,i;if(t===r)return!0;if(t&&r&&(n=t.constructor)===r.constructor){if(n===Date)return t.getTime()===r.getTime();if(n===RegExp)return t.toString()===r.toString();if(n===Array){if((i=t.length)===r.length)for(;i--&&e(t[i],r[i]););return -1===i}if(!n||"object"==typeof t){for(n in i=0,t)if(s.call(t,n)&&++i&&!s.call(r,n)||!(n in r)||!e(t[n],r[n]))return!1;return Object.keys(r).length===i}}return t!=t&&r!=r},isPaused:()=>!1,cache:P,mutate:W,fallback:{}},{isOnline:()=>w,isVisible:()=>{let e=g&&document.visibilityState;return f(e)||"hidden"!==e}}),U=(e,t)=>{let r=h(e,t);if(t){let{use:n,fallback:i}=e,{use:a,fallback:l}=t;n&&a&&(r.use=n.concat(a)),i&&l&&(r.fallback=h(i,l))}return r},K=(0,a.createContext)({});var H=e.i(211671);let q="$inf$",B=y&&window.__SWR_DEVTOOLS_USE__,G=B?window.__SWR_DEVTOOLS_USE__:[],J=e=>"function"==typeof e[1]?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],X=G.concat(e=>(t,r,n)=>{let i=r&&((...e)=>
1{let[n]=z(t),[,,,i]=o.get(P);if(n.startsWith(q))return r(...e);let a=i[n];return f(a)?r(...e):(delete i[n],a)});return e(t,i,n)});B&&(window.__SWR_DEVTOOLS_REACT__=a.default);let Y=()=>{},Q=Y(),Z=(new WeakMap,a.default.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}})),ee={dedupe:!0},et=Promise.resolve(c),er=()=>u;d.defineProperty(e=>{let{value:t}=e,r=(0,a.useContext)(K),n="function"==typeof t,i=(0,a.useMemo)(()=>n?t(r):t,[n,r,t]),l=(0,a.useMemo)(()=>n?i:U(r,i),[n,r,i]),s=i&&i.provider,o=(0,a.useRef)(c);s&&!o.current&&(o.current=V(s(l.cache||P),i));let u=o.current;return u&&(l.cache=u[0],l.mutate=u[1]),C(()=>{if(u)return u[2]&&u[2](),u[3]},[]),(0,a.createElement)(K.Provider,h(e,{value:l}))},"defaultValue",{value:$});let en=(t=(e,t,r)=>{let{cache:n,compare:i,suspense:s,fallbackData:u,revalidateOnMount:d,revalidateIfStale:p,refreshInterval:m,refreshWhenHidden:g,refreshWhenOffline:b,keepPreviousData:w,strictServerPrefetchWarning:R}=r,[S,E,N,O]=o.get(n),[T,A]=z(e),_=(0,a.useRef)(!1),L=(0,a.useRef)(!1),I=(0,a.useRef)(T),F=(0,a.useRef)(t),V=(0,a.useRef)(r),P=()=>V.current.isVisible()&&V.current.isOnline(),[W,$,U,K]=x(n,T),q=(0,a.useRef)({}).current,B=f(u)?f(r.fallback)?c:r.fallback[T]:u,G=(e,t)=>{for(let r in q)if("data"===r){if(!i(e[r],t[r])&&(!f(e[r])||!i(es,t[r])))return!1}else if(t[r]!==e[r])return!1;return!0},J=!_.current,X=(0,a.useMemo)(()=>{let e=W(),r=K(),n=e=>{let r=h(e);return(delete r._k,(()=>{if(!T||!t||V.current.isPaused())return!1;if(J&&!f(d))return d;let e=f(B)?r.data:B;return f(e)||p})())?{isValidating:!0,isLoading:!0,...r}:r},i=n(e),a=e===r?i:n(r),l=i;return[()=>{let e=n(W());return G(e,l)?(l.data=e.data,l.isLoading=e.isLoading,l.isValidating=e.isValidating,l.error=e.error,l):(l=e,e)},()=>a]},[n,T]),Y=(0,l.useSyncExternalStore)((0,a.useCallback)(e=>U(T,(t,r)=>{G(r,t)||e()}),[n,T]),X[0],X[1]),Q=S[T]&&S[T].length>0,en=Y.data,ei=f(en)?B&&"function"==typeof B.then?Z(B):B:en,ea=Y.error,el=(0,a.useRef)(ei),es=w?f(en)?f(el.current)?ei:el.current:en:ei,eo=T&&f(ei),eu=(0,a.useRef)(null);j||(0,l.useSyncExternalStore)(er,()=>(eu.current=!1,eu),()=>(eu.current=!0,eu));let ec=eu.current;R&&ec&&!s&&eo&&console.warn(`Missing pre-initiated data for serialized key "${T}" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);let ed=!(!T||!t||V.current.isPaused())&&(!Q||!!f(ea))&&(J&&!f(d)?d:s?!f(ei)&&p:f(ei)||p),ef=J&&ed,eh=f(Y.isValidating)?ef:Y.isValidating,ep=f(Y.isLoading)?ef:Y.isLoading,em=(0,a.useCallback)(async e=>{let t,n,a=F.current;if(!T||!a||L.current||V.current.isPaused())return!1;let l=!0,s=e||{},o=!N[T]||!s.dedupe,u=()=>k?!L.current&&T===I.current&&_.current:T===I.current,d={isValidating:!1,isLoading:!1},h=()=>{$(d)},p=()=>{let e=N[T];e&&e[1]===n&&delete N[T]},m={isValidating:!0};f(W().data)&&(m.isLoading=!0);try{if(o&&($(m),r.loadingTimeout&&f(W().data)&&setTimeout(()=>{l&&u()&&V.current.onLoadingSlow(T,r)},r.loadingTimeout),N[T]=[a(A),M()]),[t,n]=N[T],t=await t,o&&setTimeout(p,r.dedupingInterval),!N[T]||N[T][1]!==n)return o&&u()&&V.current.onDiscarded(T),!1;d.error=c;let e=E[T];if(!f(e)&&(n<=e[0]||n<=e[1]||0===e[1]))return h(),o&&u()&&V.current.onDiscarded(T),!1;let s=W().data;d.data=i(s,t)?s:t,o&&u()&&V.current.onSuccess(t,T,r)}catch(r){p();let e=V.current,{shouldRetryOnError:t}=e;!e.isPaused()&&(d.error=r,o&&u())&&(e.onError(r,T,e),(!0===t||"function"==typeof t&&t(r))&&(!V.current.revalidateOnFocus||!V.current.revalidateOnReconnect||P())&&e.onErrorRetry(r,T,e,e=>{let t=S[T];t&&t[0]&&t[0](H.ERROR_REVALIDATE_EVENT,e)},{retryCount:(s.retryCount||0)+1,dedupe:!0}))}return l=!1,h(),!0},[T,n]),ev=(0,a.useCallback)((...e)=>D(n,I.current,...e),[]);if(C(()=>{F.current=t,V.current=r,f(en)||(el.current=en)}),C(()=>{var e;let t;if(!T)return;let r=em.bind(c,ee),n=0;V.current.revalidateOnFocus&&(n=Date.now()+V.current.focusThrottleInterval);let i=(e=(e,t={})=>
1{if(e==H.FOCUS_EVENT){let e=Date.now();V.current.revalidateOnFocus&&e>n&&P()&&(n=e+V.current.focusThrottleInterval,r())}else if(e==H.RECONNECT_EVENT)V.current.revalidateOnReconnect&&P()&&r();else if(e==H.MUTATE_EVENT)return em();else if(e==H.ERROR_REVALIDATE_EVENT)return em(t)},(t=S[T]||(S[T]=[])).push(e),()=>{let r=t.indexOf(e);r>=0&&(t[r]=t[t.length-1],t.pop())});if(L.current=!1,I.current=T,_.current=!0,$({_k:A}),ed&&!N[T])if(f(ei)||j)r();else y&&typeof window.requestAnimationFrame!=v?window.requestAnimationFrame(r):setTimeout(r,1);return()=>{L.current=!0,i()}},[T]),C(()=>{let e;function t(){let t="function"==typeof m?m(W().data):m;t&&-1!==e&&(e=setTimeout(r,t))}function r(){!W().error&&(g||V.current.isVisible())&&(b||V.current.isOnline())?em(ee).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[m,g,b,T]),(0,a.useDebugValue)(es),s){if(!k&&j&&eo)throw Error("Fallback data is required when using Suspense in SSR.");eo&&(F.current=t,V.current=r,L.current=!1);let e=O[T];if(Z(!f(e)&&eo?ev(e):et),!f(ea)&&eo)throw ea;let n=eo?em(ee):et;!f(es)&&eo&&(n.status="fulfilled",n.value=!0),Z(n)}return{mutate:ev,get data(){return q.data=!0,es},get error(){return q.error=!0,ea},get isValidating(){return q.isValidating=!0,eh},get isLoading(){return q.isLoading=!0,ep}}},function(...e){let r,n=(r=(0,a.useContext)(K),(0,a.useMemo)(()=>h($,r),[r])),[i,l,s]=J(e),o=U(n,s),u=t,{use:c}=o,d=(c||[]).concat(X);for(let e=d.length;e--;)u=d[e](u);return u(i,l||o.fetcher||null,o)});e.s(["default",0,en],283599);let ei=()=>{},ea=ei(),el=Object,es=e=>e===ea,eo=new WeakMap,eu=(e,t)=>e===`[object ${t}]`,ec=0,ed=e=>{let t,r,n=typeof e,i=el.prototype.toString.call(e),a=eu(i,"Date"),l=eu(i,"RegExp"),s=eu(i,"Object");if(el(e)!==e||a||l)t=a?e.toJSON():"symbol"==n?e.toString():"string"==n?JSON.stringify(e):""+e;else{if(t=eo.get(e))return t;if(t=++ec+"~",eo.set(e,t),Array.isArray(e)){for(r=0,t="@";r<e.length;r++)t+=ed(e[r])+",";eo.set(e,t)}if(s){t="#";let n=el.keys(e).sort();for(;!es(r=n.pop());)es(e[r])||(t+=r+":"+ed(e[r])+",");eo.set(e,t)}}return t},ef=Promise.resolve(),eh=(r=e=>(t,r,n)=>{let i,s=(0,a.useRef)(!1),{cache:u,initialSize:d=1,revalidateAll:h=!1,persistSize:p=!1,revalidateFirstPage:m=!0,revalidateOnMount:v=!1,parallel:y=!1}=n,[,,,g]=o.get(P);try{(i=(e=>{if("function"==typeof e)try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?ed(e):"",t]})(t?t(0,null):null)[0])&&(i=q+i)}catch(e){}let[b,w,R]=x(u,i),S=(0,a.useCallback)(()=>f(b()._l)?d:b()._l,[u,i,d]);(0,l.useSyncExternalStore)((0,a.useCallback)(e=>i?R(i,()=>{e()}):()=>{},[u,i]),S,S);let E=(0,a.useCallback)(()=>{let e=b()._l;return f(e)?d:e},[i,d]),k=(0,a.useRef)(E());C(()=>{if(!s.current){s.current=!0;return}i&&w({_l:p?k.current:E()})},[i,u]);let j=v&&!s.current,N=e(i,async e=>{let i=b()._i,a=b()._r;w({_r:c});let l=[],s=E(),[o]=x(u,e),d=o().data,p=[],v=null;for(let e=0;e<s;++e){let[s,o]=z(t(e,y?null:v));if(!s)break;let[c,b]=x(u,s),w=c().data,R=h||i||f(w)||m&&!e&&!f(d)||j||d&&!f(d[e])&&!n.compare(d[e],w);if(r&&("function"==typeof a?a(w,o):R)){let t=async()=>{if(s in g){let e=g[s];delete g[s],w=await e}else w=await r(o);b({data:w,_k:o}),l[e]=w};y?p.push(t):await t()}else l[e]=w;y||(v=w)}return y&&await Promise.all(p.map(e=>e())),w({_i:c}),l},n),O=(0,a.useCallback)(function(e,t){let r="boolean"==typeof t?{revalidate:t}:t||{},n=!1!==r.revalidate;return i?(n&&(f(e)?w({_i:!0,_r:r.revalidate}):w({_i:!1,_r:r.revalidate})),arguments.length?N.mutate(e,{...r,revalidate:n}):N.mutate()):ef},[i,u]),T=(0,a.useCallback)(e=>{let r;if(!i)return ef;let[,n]=x(u,i);if("function"==typeof e?r=e(E()):"number"==typeof e&&(r=e),"number"!=typeof r)return ef;n({_l:r}),k.current=r;let a=[],[l]=x(u,i),s=null;for(let e=0;e<r;++e){let[r]=z(t(e,s)),[n]=x(u,r),i=r?n().data:c;if(f(i))return O(l().data);a.push(i),s=i}return O(a)},[i,u,O,E]);return{size:E(),setSize:T,mutate:O,get data(){return N.data},get error(){return N.error},get isValidating(){return N.isValidating},get isLoading(){return N.isLoading}}},(...e)=>{let[t,n,i]=J(e),a=(i.use||[]).concat(r);return en(t,n,{...i,use:a})});e.i(253398);var ep=e.i(789170),em=e.i(613300);function ev(e,t,r){let{data:n,size:i,setSize:l,isLoading:s,mutate:o,error:u}=eh((0,a.useCallback)((e,n)=>null!=n&&0===n.length?null:{start:e*r,end:(e+1)*r-1,key:t},[r,t]),e,{revalidateFirstPage:!0,revalidateAll:!1,dedupingInterval:2e3,revalidateOnFocus:!0,revalidateOnReconnect:!0,shouldRetryOnError:()=>!1}),c=s||i>0&&null!=n&&null==n[i-1],d=n?.[n.length-1],f=null!=d&&Array.isArray(d)&&d.length<r,h=null==n||1===n.length&&null!=n[0]&&0===n[0].length,p=n?n.flatMap(e=>e??[]):[];return{data:(0,a.useMemo)(()=>{let e=new Set;return p.filter(t=>{let r=t?.id;return null==r||!e.has(r)&&(e.add(r),!0)})},[p]),isLoading:s,isEmpty:h,isReachingEnd:f,isLoadingMore:c,size:i,setSize:l,mutate:o,error:u}}e.s(["InfiniteScroll",0,function({className:e,containerClassName:t,fetcherAction:r,fetcherKey:l,renderItemAction:s,renderItemsAction:o,pageSize:u,loadingComponent:c,emptyComponent:d,noMoreItemsComponent:f,scroll:h=!1,useAutoLoad:p=!0}){let{data:m,size:v,setSize:y,isLoading:g,isReachingEnd:b,isLoadingMore:x,isEmpty:w,mutate:R,error:S}=ev(async e=>{let t=new Promise((e,t)=>
1setTimeout(()=>t(Error("InfiniteScroll fetch timeout")),8e3));return Promise.race([r(e),t])},l,u),E=(0,a.useRef)(null),k="function"==typeof o;return((0,a.useEffect)(()=>{if(!p)return;let e=new IntersectionObserver(e=>{!e[0].isIntersecting||b||x||y(v+1)},{rootMargin:"100px"}),t=E.current;return t&&e.observe(t),()=>e.disconnect()},[v,b,x,y,p]),g)?c??(0,n.jsx)(ep.SyllabuzzLoading,{}):null!=S?(0,n.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 py-8 text-gray-500 text-sm",children:[(0,n.jsx)("p",{children:"Failed to load. Please reload and try again."}),(0,n.jsx)("button",{type:"button",className:"rounded-sm border border-gray-300 px-3 py-1 text-blue-600 hover:bg-gray-50",onClick:()=>R(),children:"Retry"})]}):(0,n.jsxs)("div",{className:(0,em.cn)("flex h-full flex-col",h?"overflow-y-scroll":"",t),children:[k?o(m,b&&!w,()=>R(),!b&&(0,n.jsx)("div",{ref:E,className:"w-full",children:x&&(0,n.jsx)(ep.SyllabuzzLoading,{})})):(0,n.jsx)("div",{className:(0,em.cn)("flex flex-col",e),children:m.map((e,t)=>s(e,t.toString()))}),w&&(d??(0,n.jsx)("p",{className:"py-4 text-center font-bold text-gray-500 text-sm",children:"No items found"})),!k&&!b&&(0,n.jsx)("div",{ref:E,className:"w-full",children:x&&(0,n.jsx)(ep.SyllabuzzLoading,{})}),!p&&!b&&!w&&(0,n.jsx)("button",{type:"button",className:"flex items-center justify-center py-4 text-blue-500 text-xs hover:text-blue-700 focus:underline focus:outline-hidden disabled:cursor-not-allowed disabled:opacity-50",onClick:()=>y(v+1),disabled:x,children:x?(0,n.jsxs)("span",{className:"flex items-center",children:["Loading...",(0,n.jsx)("span",{className:"ml-2 animate-spin",children:"â³"})]}):(0,n.jsxs)("span",{className:"flex items-center",children:["Load more",(0,n.jsx)(i.ChevronDown,{className:"ml-1 size-4"})]})}),b&&!w&&(f??(0,n.jsx)("p",{className:"py-4 text-center font-bold text-gray-500 text-sm",children:"No more items"}))]})},"useInfinite",0,ev],501465)}]);
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.