PageSourceSearch

https://elyunque.com/assets/root-CI32mXb7.js

js elyunque.com collected 2026-10-02 11:55:11 UTC 90,434 bytes, 1 lines download raw bytes

1import{u as He,d as _e,j as l,r as h,f as Ct,R as B,a as Nt,b as An,w as Sn,C as Mn,c as Rn,M as In,D as Dn,S as kn,G as Tn,O as On,H as Pn,i as Fn,L as Ln}from"./chunk-LFPYN7LY-B779Kk1g.js";import{c as P}from"./compiler-runtime-DuSUUlRl.js";import{a as V,c as Et}from"./createLucideIcon-BnGDyo2W.js";import{d as jt,l as _t}from"./routeTranslations-DQ7XaLWA.js";import{u as Bn,L as $}from"./LocaleAwareLink-BYSvIoVs.js";import{r as $n,R as zn}from"./index-D5SGGCct.js";import{c as Ge,u as H,a as Kn,B as Se}from"./button-CJ6dnycV.js";import{C as Vn}from"./chevron-down-D87xMwmv.js";import{u as Ae}from"./useTranslation-Brewh9Zx.js";import{L as Wn,M as Ye,a as Un,S as Hn,A as Gn}from"./shell-C3-TZEco.js";import{S as be,L as Yn}from"./search-C_jhxYhQ.js";import"./context-BjFU3aNW.js";function it(t){const e=P.c(23),{className:n}=t,{locale:s}=He(),r=_e();let o;e[0]!==s||e[1]!==r?(o=y=>{if(y===s)return;document.cookie=`cfremix_locale=${y}; path=/; max-age=31536000; SameSite=Lax`;const N=jt(s,r.pathname),b=N.length?`/${N.join("/")}`:"/";window.location.href=_t(y,b)},e[0]=s,e[1]=r,e[2]=o):o=e[2];const i=o;let a;e[3]!==n?(a=V("flex items-center bg-muted/60 border border-border rounded-full p-1",n),e[3]=n,e[4]=a):a=e[4];let c;e[5]!==i?(c=()=>i("es"),e[5]=i,e[6]=c):c=e[6];const d=s==="es"?"bg-primary text-primary-foreground shadow-sm":"text-muted-foreground hover:text-foreground";let u;e[7]!==d?(u=V("px-3 py-1 text-xs font-bold rounded-full transition-colors",d),e[7]=d,e[8]=u):u=e[8];let f;e[9]!==c||e[10]!==u?(f=l.jsx("button",{onClick:c,"aria-label":"Cambiar a Español",className:u,children:"Español"}),e[9]=c,e[10]=u,e[11]=f):f=e[11];let g;e[12]!==i?(g=()=>i("en"),e[12]=i,e[13]=g):g=e[13];const m=s==="en"?"bg-primary text-primary-foreground shadow-sm":"text-muted-foreground hover:text-foreground";let p;e[14]!==m?(p=V("px-3 py-1 text-xs font-bold rounded-full transition-colors",m),e[14]=m,e[15]=p):p=e[15];let v;e[16]!==g||e[17]!==p?(v=l.jsx("button",{onClick:g,"aria-label":"Switch to English",className:p,children:"English"}),e[16]=g,e[17]=p,e[18]=v):v=e[18];let x;return e[19]!==v||e[20]!==a||e[21]!==f?(x=l.jsxs("div",{className:a,children:[f,v]}),e[19]=v,e[20]=a,e[21]=f,e[22]=x):x=e[22],x}function At(t,e=[]){let n=[];function s(o,i){const a=h.createContext(i),c=n.length;n=[...n,i];const d=f=>{const{scope:g,children:m,...p}=f,v=g?.[t]?.[c]||a,x=h.useMemo(()=>p,Object.values(p));return l.jsx(v.Provider,{value:x,children:m})};d.displayName=o+"Provider";function u(f,g){const m=g?.[t]?.[c]||a,p=h.useContext(m);if(p)return p;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${o}\``)}return[d,u]}const r=()=>{const o=n.map(i=>h.createContext(i));return function(a){const c=a?.[t]||o;return h.useMemo(()=>({[`__scope${t}`]:{...a,[t]:c}}),[a,c])}};return r.scopeName=t,[s,Qn(r,...e)]}function Qn(...t){const e=t[0];if(t.length===1)return e;const n=()=>{const s=t.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(o){const i=s.reduce((a,{useScope:c,scopeName:d})=>{const f=c(o)[`__scope${d}`];return{...a,...f}},{});return h.useMemo(()=>({[`__scope${e.scopeName}`]:i}),[i])}};return n.scopeName=e.scopeName,n}function O(t,e,{checkForDefaultPrevented:n=!0}={}){return function(r){if(t?.(r),n===!1||!r.defaultPrevented)return e?.(r)}}function Xn(t){const e=Jn(t),n=h.forwardRef((s,r)=>{const{children:o,...i}=s,a=h.Children.toArray(o),c=a.find(qn);if(c){const d=c.props.children,u=a.map(f=>f===c?h.Children.count(d)>1?h.Children.only(null):h.isValidElement(d)?d.props.children:null:f);return l.jsx(e,{...i,ref:r,children:h.isValidElement(d)?h.cloneElement(d,void 0,u):null})}return l.jsx(e,{...i,ref:r,children:o})});return n.displayName=`${t}.Slot`,n}function Jn(t){const e=h.forwardRef((n,s)=>{const{children:r,...o}=n;if(h.isValidElement(r)){const i=ts(r),a=es(o,r.props);return r.type!==h.Fragment&&(a.ref=s?Ge(s,i):i),h.cloneElement(r,a)}return h.Children.count(r)>1?h.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var Zn=Symbol("radix.slottable");function qn(t){return h.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Zn}function es(t,e){const n={...e};for(const s in e){const r=t[s],o=e[s];/^on[A-Z]/.test(s)?r&&o?n[s]=(...a)=>{const c=o(...a);return r(...a),c}:r&&(n[s]=r):s==="style"?n[s]={...r,...o}
vendor: 4,963 bytes, line 1
1:s==="className"&&(n[s]=[r,o].filter(Boolean).join(" "))}return{...t,...n}}function ts(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var ns=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],z=ns.reduce((t,e)=>{const n=Xn(`Primitive.${e}`),s=h.forwardRef((r,o)=>{const{asChild:i,...a}=r,c=i?n:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(c,{...a,ref:o})});return s.displayName=`Primitive.${e}`,{...t,[e]:s}},{});function Re(t,e){t&&$n.flushSync(()=>t.dispatchEvent(e))}var Z=globalThis?.document?h.useLayoutEffect:()=>{},ss=Ct[" useInsertionEffect ".trim().toString()]||Z;function St({prop:t,defaultProp:e,onChange:n=()=>{},caller:s}){const[r,o,i]=rs({defaultProp:e,onChange:n}),a=t!==void 0,c=a?t:r;{const u=h.useRef(t!==void 0);h.useEffect(()=>{const f=u.current;f!==a&&console.warn(`${s} is changing from ${f?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=a},[a,s])}const d=h.useCallback(u=>{if(a){const f=os(u)?u(t):u;f!==t&&i.current?.(f)}else o(u)},[a,t,o,i]);return[c,d]}function rs({defaultProp:t,onChange:e}){const[n,s]=h.useState(t),r=h.useRef(n),o=h.useRef(e);return ss(()=>{o.current=e},[e]),h.useEffect(()=>{r.current!==n&&(o.current?.(n),r.current=n)},[n,r]),[n,s,o]}function os(t){return typeof t=="function"}var is=h.createContext(void 0);function as(t){const e=h.useContext(is);return t||e||"ltr"}function cs(t,e){return h.useReducer((n,s)=>e[n][s]??n,t)}var ce=t=>{const{present:e,children:n}=t,s=ls(e),r=typeof n=="function"?n({present:s.isPresent}):h.Children.only(n),o=H(s.ref,us(r));return typeof n=="function"||s.isPresent?h.cloneElement(r,{ref:o}):null};ce.displayName="Presence";function ls(t){const[e,n]=h.useState(),s=h.useRef(null),r=h.useRef(t),o=h.useRef("none"),i=t?"mounted":"unmounted",[a,c]=cs(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const d=ge(s.current);o.current=a==="mounted"?d:"none"},[a]),Z(()=>{const d=s.current,u=r.current;if(u!==t){const g=o.current,m=ge(d);t?c("MOUNT"):m==="none"||d?.display==="none"?c("UNMOUNT"):c(u&&g!==m?"ANIMATION_OUT":"UNMOUNT"),r.current=t}},[t,c]),Z(()=>{if(e){let d;const u=e.ownerDocument.defaultView??window,f=m=>{const v=ge(s.current).includes(CSS.escape(m.animationName));if(m.target===e&&v&&(c("ANIMATION_END"),!r.current)){const x=e.style.animationFillMode;e.style.animationFillMode="forwards",d=u.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=x)})}},g=m=>{m.target===e&&(o.current=ge(s.current))};return e.addEventListener("animationstart",g),e.addEventListener("animationcancel",f),e.addEventListener("animationend",f),()=>{u.clearTimeout(d),e.removeEventListener("animationstart",g),e.removeEventListener("animationcancel",f),e.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[e,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:h.useCallback(d=>{s.current=d?getComputedStyle(d):null,n(d)},[])}}function ge(t){return t?.animationName||"none"}function us(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var ds=Ct[" useId ".trim().toString()]||(()=>{}),fs=0;function Mt(t){const[e,n]=h.useState(ds());return Z(()=>{n(s=>s??String(fs++))},[t]),e?`radix-${e}`:""}function at(t){const e=hs(t),n=h.forwardRef((s,r)=>{const{children:o,...i}=s,a=h.Children.toArray(o),c=a.find(gs);if(c){const d=c.props.children,u=a.map(f=>f===c?h.Children.count(d)>1?h.Children.only(null):h.isValidElement(d)?d.props.children:null:f);return l.jsx(e,{...i,ref:r,children:h.isValidElement(d)?h.cloneElement(d,void 0,u):null})}return l.jsx(e,{...i,ref:r,children:o})});return n.displayName=`${t}.Slot`,n}function hs(t){const e=h.forwardRef((n,s)=>{const{children:r,...o}=n;if(h.isValidElement(r)){const i=vs(r),a=ps(o,r.props);return r.type!==h.Fragment&&(a.ref=s?Ge(s,i):i),h.cloneElement(r,a)}return h.Children.count(r)>1?h.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var ms=Symbol("radix.slottable");function gs(t){return h.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===ms}function ps(t,e){const n={...e};for(const s in e){const r=t[s],o=e[s];/^on[A-Z]/.test(s)?r&&o?n[s]=(...a)=>{const c=o(...a);return r(...a),c}:r&&(n[s]=r):s==="style"?n[s]={...r,...o}
vendor: 5,642 bytes, line 1
1:s==="className"&&(n[s]=[r,o].filter(Boolean).join(" "))}return{...t,...n}}function vs(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}function Rt(t){const e=t+"CollectionProvider",[n,s]=At(e),[r,o]=n(e,{collectionRef:{current:null},itemMap:new Map}),i=v=>{const{scope:x,children:y}=v,N=B.useRef(null),b=B.useRef(new Map).current;return l.jsx(r,{scope:x,itemMap:b,collectionRef:N,children:y})};i.displayName=e;const a=t+"CollectionSlot",c=at(a),d=B.forwardRef((v,x)=>{const{scope:y,children:N}=v,b=o(a,y),w=H(x,b.collectionRef);return l.jsx(c,{ref:w,children:N})});d.displayName=a;const u=t+"CollectionItemSlot",f="data-radix-collection-item",g=at(u),m=B.forwardRef((v,x)=>{const{scope:y,children:N,...b}=v,w=B.useRef(null),j=H(x,w),E=o(u,y);return B.useEffect(()=>(E.itemMap.set(w,{ref:w,...b}),()=>{E.itemMap.delete(w)})),l.jsx(g,{[f]:"",ref:j,children:N})});m.displayName=u;function p(v){const x=o(t+"CollectionConsumer",v);return B.useCallback(()=>{const N=x.collectionRef.current;if(!N)return[];const b=Array.from(N.querySelectorAll(`[${f}]`));return Array.from(x.itemMap.values()).sort((E,_)=>b.indexOf(E.ref.current)-b.indexOf(_.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:i,Slot:d,ItemSlot:m},p,s]}function U(t){const e=h.useRef(t);return h.useEffect(()=>{e.current=t}),h.useMemo(()=>(...n)=>e.current?.(...n),[])}function xs(t,e=globalThis?.document){const n=U(t);h.useEffect(()=>{const s=r=>{r.key==="Escape"&&n(r)};return e.addEventListener("keydown",s,{capture:!0}),()=>e.removeEventListener("keydown",s,{capture:!0})},[n,e])}var ys="DismissableLayer",Ie="dismissableLayer.update",bs="dismissableLayer.pointerDownOutside",ws="dismissableLayer.focusOutside",ct,It=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Dt=h.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:s,onPointerDownOutside:r,onFocusOutside:o,onInteractOutside:i,onDismiss:a,...c}=t,d=h.useContext(It),[u,f]=h.useState(null),g=u?.ownerDocument??globalThis?.document,[,m]=h.useState({}),p=H(e,_=>f(_)),v=Array.from(d.layers),[x]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=v.indexOf(x),N=u?v.indexOf(u):-1,b=d.layersWithOutsidePointerEventsDisabled.size>0,w=N>=y,j=Es(_=>{const M=_.target,C=[...d.branches].some(A=>A.contains(M));!w||C||(r?.(_),i?.(_),_.defaultPrevented||a?.())},g),E=js(_=>{const M=_.target;[...d.branches].some(A=>A.contains(M))||(o?.(_),i?.(_),_.defaultPrevented||a?.())},g);return xs(_=>{N===d.layers.size-1&&(s?.(_),!_.defaultPrevented&&a&&(_.preventDefault(),a()))},g),h.useEffect(()=>{if(u)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(ct=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(u)),d.layers.add(u),lt(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=ct)}},[u,g,n,d]),h.useEffect(()=>()=>{u&&(d.layers.delete(u),d.layersWithOutsidePointerEventsDisabled.delete(u),lt())},[u,d]),h.useEffect(()=>{const _=()=>m({});return document.addEventListener(Ie,_),()=>document.removeEventListener(Ie,_)},[]),l.jsx(z.div,{...c,ref:p,style:{pointerEvents:b?w?"auto":"none":void 0,...t.style},onFocusCapture:O(t.onFocusCapture,E.onFocusCapture),onBlurCapture:O(t.onBlurCapture,E.onBlurCapture),onPointerDownCapture:O(t.onPointerDownCapture,j.onPointerDownCapture)})});Dt.displayName=ys;var Cs="DismissableLayerBranch",Ns=h.forwardRef((t,e)=>{const n=h.useContext(It),s=h.useRef(null),r=H(e,s);return h.useEffect(()=>{const o=s.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),l.jsx(z.div,{...t,ref:r})});Ns.displayName=Cs;function Es(t,e=globalThis?.document){const n=U(t),s=h.useRef(!1),r=h.useRef(()=>{});return h.useEffect(()=>{const o=a=>{if(a.target&&!s.current){let c=function(){kt(bs,n,d,{discrete:!0})};const d={originalEvent:a};a.pointerType==="touch"?(e.removeEventListener("click",r.current),r.current=c,e.addEventListener("click",r.current,{once:!0})):c()}else e.removeEventListener("click",r.current);s.current=!1},i=window.setTimeout(()=>{e.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(i),e.removeEventListener("pointerdown",o),e.removeEventListener("click",r.current)}},[e,n]),{onPointerDownCapture:()=>s.current=!0}}function js(t,e=globalThis?.document){const n=U(t),s=h.useRef(!1);return h.useEffect(()=>{const r=o=>{o.target&&!s.current&&kt(ws,n,{originalEvent:o},{discrete:!1})};return e.addEventListener("focusin",r),()=>e.removeEventListener("focusin",r)},[e,n]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function lt(){const t=new CustomEvent(Ie);document.dispatchEvent(t)}function kt(t,e,n,{discrete:s}){const r=n.originalEvent.target,o=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&r.addEventListener(t,e,{once:!0}),s?Re(r,o):r.dispatchEvent(o)}function _s(t){const e=h.useRef({value:t,previous:t});return h.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}var As=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Ss="VisuallyHidden",Tt=h.forwardRef((t,e)=>l.jsx(z.span,{...t,ref:e,style:{...As,...t.style}}));Tt.displayName=Ss;var Ms=Tt,q="NavigationMenu",[Qe,Ot,Rs]=Rt(q),[De,Is,Ds]=Rt(q),[Xe]=At(q,[Rs,Ds]),[ks,W]=Xe(q),[Ts,Os]=Xe(q),Pt
vendor: 10,871 bytes, line 1
1=h.forwardRef((t,e)=>{const{__scopeNavigationMenu:n,value:s,onValueChange:r,defaultValue:o,delayDuration:i=200,skipDelayDuration:a=300,orientation:c="horizontal",dir:d,...u}=t,[f,g]=h.useState(null),m=H(e,C=>g(C)),p=as(d),v=h.useRef(0),x=h.useRef(0),y=h.useRef(0),[N,b]=h.useState(!0),[w,j]=St({prop:s,onChange:C=>{const A=C!=="",R=a>0;A?(window.clearTimeout(y.current),R&&b(!1)):(window.clearTimeout(y.current),y.current=window.setTimeout(()=>b(!0),a)),r?.(C)},defaultProp:o??"",caller:q}),E=h.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>j(""),150)},[j]),_=h.useCallback(C=>{window.clearTimeout(x.current),j(C)},[j]),M=h.useCallback(C=>{w===C?window.clearTimeout(x.current):v.current=window.setTimeout(()=>{window.clearTimeout(x.current),j(C)},i)},[w,j,i]);return h.useEffect(()=>()=>{window.clearTimeout(v.current),window.clearTimeout(x.current),window.clearTimeout(y.current)},[]),l.jsx(Ft,{scope:n,isRootMenu:!0,value:w,dir:p,orientation:c,rootNavigationMenu:f,onTriggerEnter:C=>{window.clearTimeout(v.current),N?M(C):_(C)},onTriggerLeave:()=>{window.clearTimeout(v.current),E()},onContentEnter:()=>window.clearTimeout(x.current),onContentLeave:E,onItemSelect:C=>{j(A=>A===C?"":C)},onItemDismiss:()=>j(""),children:l.jsx(z.nav,{"aria-label":"Main","data-orientation":c,dir:p,...u,ref:m})})});Pt.displayName=q;var ke="NavigationMenuSub",Ps=h.forwardRef((t,e)=>{const{__scopeNavigationMenu:n,value:s,onValueChange:r,defaultValue:o,orientation:i="horizontal",...a}=t,c=W(ke,n),[d,u]=St({prop:s,onChange:r,defaultProp:o??"",caller:ke});return l.jsx(Ft,{scope:n,isRootMenu:!1,value:d,dir:c.dir,orientation:i,rootNavigationMenu:c.rootNavigationMenu,onTriggerEnter:f=>u(f),onItemSelect:f=>u(f),onItemDismiss:()=>u(""),children:l.jsx(z.div,{"data-orientation":i,...a,ref:e})})});Ps.displayName=ke;var Ft=t=>{const{scope:e,isRootMenu:n,rootNavigationMenu:s,dir:r,orientation:o,children:i,value:a,onItemSelect:c,onItemDismiss:d,onTriggerEnter:u,onTriggerLeave:f,onContentEnter:g,onContentLeave:m}=t,[p,v]=h.useState(null),[x,y]=h.useState(new Map),[N,b]=h.useState(null);return l.jsx(ks,{scope:e,isRootMenu:n,rootNavigationMenu:s,value:a,previousValue:_s(a),baseId:Mt(),dir:r,orientation:o,viewport:p,onViewportChange:v,indicatorTrack:N,onIndicatorTrackChange:b,onTriggerEnter:U(u),onTriggerLeave:U(f),onContentEnter:U(g),onContentLeave:U(m),onItemSelect:U(c),onItemDismiss:U(d),onViewportContentChange:h.useCallback((w,j)=>{y(E=>(E.set(w,j),new Map(E)))},[]),onViewportContentRemove:h.useCallback(w=>{y(j=>j.has(w)?(j.delete(w),new Map(j)):j)},[]),children:l.jsx(Qe.Provider,{scope:e,children:l.jsx(Ts,{scope:e,items:x,children:i})})})},Lt="NavigationMenuList",Bt=h.forwardRef((t,e)=>{const{__scopeNavigationMenu:n,...s}=t,r=W(Lt,n),o=l.jsx(z.ul,{"data-orientation":r.orientation,...s,ref:e});return l.jsx(z.div,{style:{position:"relative"},ref:r.onIndicatorTrackChange,children:l.jsx(Qe.Slot,{scope:n,children:r.isRootMenu?l.jsx(Qt,{asChild:!0,children:o}):o})})});Bt.displayName=Lt;var $t="NavigationMenuItem",[Fs,zt]=Xe($t),Kt=h.forwardRef((t,e)=>{const{__scopeNavigationMenu:n,value:s,...r}=t,o=Mt(),i=s||o||"LEGACY_REACT_AUTO_VALUE",a=h.useRef(null),c=h.useRef(null),d=h.useRef(null),u=h.useRef(()=>{}),f=h.useRef(!1),g=h.useCallback((p="start")=>{if(a.current){u.current();const v=Oe(a.current);v.length&&qe(p==="start"?v:v.reverse())}},[]),m=h.useCallback(()=>{if(a.current){const p=Oe(a.current);p.length&&(u.current=Ws(p))}},[]);return l.jsx(Fs,{scope:n,value:i,triggerRef:c,contentRef:a,focusProxyRef:d,wasEscapeCloseRef:f,onEntryKeyDown:g,onFocusProxyEnter:g,onRootContentClose:m,onContentFocusOutside:m,children:l.jsx(z.li,{...r,ref:e})})});Kt.displayName=$t;var Te="NavigationMenuTrigger",Vt=h.forwardRef((t,e)=>{const{__scopeNavigationMenu:n,disabled:s,...r}=t,o=W(Te,t.__scopeNavigationMenu),i=zt(Te,t.__scopeNavigationMenu),a=h.useRef(null),c=H(a,i.triggerRef,e),d=Jt(o.baseId,i.value),u=Zt(o.baseId,i.value),f=h.useRef(!1),g=h.useRef(!1),m=i.value===o.value;return l.jsxs(l.Fragment,{children:[l.jsx(Qe.ItemSlot,{scope:n,value:i.value,children:l.jsx(Xt,{asChild:!0,children:l.jsx(z.button,{id:d,disabled:s,"data-disabled":s?"":void 0,"data-state":et(m),"aria-expanded":m,"aria-controls":u,...r,ref:c,onPointerEnter:O(t.onPointerEnter,()=>{g.current=!1,i.wasEscapeCloseRef.current=!1}),onPointerMove:O(t.onPointerMove,we(()=>{s||g.current||i.wasEscapeCloseRef.current||f.current||(o.onTriggerEnter(i.value),f.current=!0)})),onPointerLeave:O(t.onPointerLeave,we(()=>{s||(o.onTriggerLeave(),f.current=!1)})),onClick:O(t.onClick,()=>{o.onItemSelect(i.value),g.current=m}),onKeyDown:O(t.onKeyDown,p=>{const x={horizontal:"ArrowDown",vertical:o.dir==="rtl"?"ArrowLeft":"ArrowRight"}[o.orientation];m&&p.key===x&&(i.onEntryKeyDown(),p.preventDefault())})})})}),m&&l.jsxs(l.Fragment,{children:[l.jsx(Ms,{"aria-hidden":!0,tabIndex:0,ref:i.focusProxyRef,onFocus:p=>{const v=i.contentRef.current,x=p.relatedTarget,y=x===a.current,N=v?.contains(x);(y||!N)&&i.onFocusProxyEnter(y?"start":"end")}}),o.viewport&&l.jsx("span",{"aria-owns":u})]})]})});Vt.displayName=Te;var Ls="NavigationMenuLink",ut="navigationMenu.linkSelect",Wt=h.forwardRef((t,e)=>{const{__scopeNavigationMenu:n,active:s,onSelect:r,...o}=t;return l.jsx(Xt,{asChild:!0,children:l.jsx(z.a,{"data-active":s?"":void 0,"aria-current":s?"page":void 0,...o,ref:e,onClick:O(t.onClick,i=>{const a=i.target,c=new CustomEvent(ut,{bubbles:!0,cancelable:!0});if(a.addEventListener(ut,d=>r?.(d),{once:!0}),Re(a,c),!c.defaultPrevented&&!i.metaKey){const d=new CustomEvent(ve,{bubbles:!0,cancelable:!0});Re(a,d)}},{checkForDefaultPrevented:!1})})})});Wt.displayName=Ls;var Je="NavigationMenuIndicator",Ut=h.forwardRef((t,e)=>{const{forceMount:n,...s}=t,r=W(Je,t.__scopeNavigationMenu),o=!!r.value;return r.indicatorTrack?zn.createPortal(l.jsx(ce,{present:n||o,children:l.jsx(Bs,{...s,ref:e})}),r.indicatorTrack):null});Ut.displayName=Je;var Bs=h.forwardRef((t,e)=>{const{__scopeNavigationMenu:n,...s}=t,r=W(Je,n),o=Ot(n),[i,a]=h.useState(null),[c,d]=h.useState(null),u=r.orientation==="horizontal",f=!!r.value;h.useEffect(()=>{const p=o().find(v=>v.value===r.value)?.ref.current;p&&a(p)},[o,r.value]);const g=()=>{i&&d({size:u?i.offsetWidth:i.offsetHeight,offset:u?i.offsetLeft:i.offsetTop})};return Pe(i,g),Pe(r.indicatorTrack,g),c?l.jsx(z.div,{"aria-hidden":!0,"data-state":f?"visible":"hidden","data-orientation":r.orientation,...s,ref:e,style:{position:"absolute",...u?{left:0,width:c.size+"px",transform:`translateX(${c.offset}px)`}:{top:0,height:c.size+"px",transform:`translateY(${c.offset}px)`},...s.style}}):null}),ie="NavigationMenuContent",Ht=h.forwardRef((t,e)=>{const{forceMount:n,...s}=t,r=W(ie,t.__scopeNavigationMenu),o=zt(ie,t.__scopeNavigationMenu),i=H(o.contentRef,e),a=o.value===r.value,c={value:o.value,triggerRef:o.triggerRef,focusProxyRef:o.focusProxyRef,wasEscapeCloseRef:o.wasEscapeCloseRef,onContentFocusOutside:o.onContentFocusOutside,onRootContentClose:o.onRootContentClose,...s};return r.viewport?l.jsx($s,{forceMount:n,...c,ref:i}):l.jsx(ce,{present:n||a,children:l.jsx(Gt,{"data-state":et(a),...c,ref:i,onPointerEnter:O(t.onPointerEnter,r.onContentEnter),onPointerLeave:O(t.onPointerLeave,we(r.onContentLeave)),style:{pointerEvents:!a&&r.isRootMenu?"none":void 0,...c.style}})})});Ht.displayName=ie;var $s=h.forwardRef((t,e)=>{const n=W(ie,t.__scopeNavigationMenu),{onViewportContentChange:s,onViewportContentRemove:r}=n;return Z(()=>{s(t.value,{ref:e,...t})},[t,e,s]),Z(()=>()=>r(t.value),[t.value,r]),null}),ve="navigationMenu.rootContentDismiss",Gt=h.forwardRef((t,e)=>{const{__scopeNavigationMenu:n,value:s,triggerRef:r,focusProxyRef:o,wasEscapeCloseRef:i,onRootContentClose:a,onContentFocusOutside:c,...d}=t,u=W(ie,n),f=h.useRef(null),g=H(f,e),m=Jt(u.baseId,s),p=Zt(u.baseId,s),v=Ot(n),x=h.useRef(null),{onItemDismiss:y}=u;h.useEffect(()=>{const b=f.current;if(u.isRootMenu&&b){const w=()=>{y(),a(),b.contains(document.activeElement)&&r.current?.focus()};return b.addEventListener(ve,w),()=>b.removeEventListener(ve,w)}},[u.isRootMenu,t.value,r,y,a]);const N=h.useMemo(()=>{const w=v().map(A=>A.value);u.dir==="rtl"&&w.reverse();const j=w.indexOf(u.value),E=w.indexOf(u.previousValue),_=s===u.value,M=E===w.indexOf(s);if(!_&&!M)return x.current;const C=(()=>{if(j!==E){if(_&&E!==-1)return j>E?"from-end":"from-start";if(M&&j!==-1)return j>E?"to-start":"to-end"}return null})();return x.current=C,C},[u.previousValue,u.value,u.dir,v,s]);return l.jsx(Qt,{asChild:!0,children:l.jsx(Dt,{id:p,"aria-labelledby":m,"data-motion":N,"data-orientation":u.orientation,...d,ref:g,disableOutsidePointerEvents:!1,onDismiss:()=>{const b=new Event(ve,{bubbles:!0,cancelable:!0});f.current?.dispatchEvent(b)},onFocusOutside:O(t.onFocusOutside,b=>{c();const w=b.target;u.rootNavigationMenu?.contains(w)&&b.preventDefault()}),onPointerDownOutside:O(t.onPointerDownOutside,b=>{const w=b.target,j=v().some(_=>_.ref.current?.contains(w)),E=u.isRootMenu&&u.viewport?.contains(w);(j||E||!u.isRootMenu)&&b.preventDefault()}),onKeyDown:O(t.onKeyDown,b=>{const w=b.altKey||b.ctrlKey||b.metaKey;if(b.key==="Tab"&&!w){const E=Oe(b.currentTarget),_=document.activeElement,M=E.findIndex(R=>R===_),A=b.shiftKey?E.slice(0,M).reverse():E.slice(M+1,E.length);qe(A)?b.preventDefault():o.current?.focus()}}),onEscapeKeyDown:O(t.onEscapeKeyDown,b=>{i.current=!0})})})}),Ze="NavigationMenuViewport",Yt=h.forwardRef((t,e)=>{const{forceMount:n,...s}=t,o=!!W(Ze,t.__scopeNavigationMenu).value;return l.jsx(ce,{present:n||o,children:l.jsx(zs,{...s,ref:e})})});Yt.displayName=Ze;var zs=h.forwardRef((t,e)=>{const{__scopeNavigationMenu:n,children:s,...r}=t,o=W(Ze,n),i=H(e,o.onViewportChange),a=Os(ie,t.__scopeNavigationMenu),[c,d]=h.useState(null),[u,f]=h.useState(null),g=c?c?.width+"px":void 0,m=c?c?.height+"px":void 0,p=!!o.value,v=p?o.value:o.previousValue;return Pe(u,()=>{u&&d({width:u.offsetWidth,height:u.offsetHeight})}),l.jsx(z.div,{"data-state":et(p),"data-orientation":o.orientation,...r,ref:i,style:{pointerEvents:!p&&o.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":g,"--radix-navigation-menu-viewport-height":m,...r.style},onPointerEnter:O(t.onPointerEnter,o.onContentEnter),onPointerLeave:O(t.onPointerLeave,we(o.onContentLeave)),children:Array.from(a.items).map(([y,{ref:N,forceMount:b,...w}])=>{const j=v===y;return l.jsx(ce,{present:b||j,children:l.jsx(Gt,{...w,ref:Ge(N,E=>{j&&E&&f(E)})})},y)})})}),Ks="FocusGroup",Qt=h.forwardRef((t,e)=>{const{__scopeNavigationMenu:n,...s}=t,r=W(Ks,n);return l.jsx(De.Provider,{scope:n,children:l.jsx(De.Slot,{scope:n,children:l.jsx(z.div,{dir:r.dir,...s,ref:e})})})}),dt=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],Vs="FocusGroupItem",Xt=h.forwardRef((t,e)=>{const{__scopeNavigationMenu:n,...s}=t,r=Is(n),o=W(Vs,n);return l.jsx(De.ItemSlot,{scope:n,children:l.jsx(z.button,{...s,ref:e,onKeyDown:O(t.onKeyDown,i=>
1{if(["Home","End",...dt].includes(i.key)){let c=r().map(f=>f.ref.current);if([o.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(i.key)&&c.reverse(),dt.includes(i.key)){const f=c.indexOf(i.currentTarget);c=c.slice(f+1)}setTimeout(()=>qe(c)),i.preventDefault()}})})})});function Oe(t){const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const r=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||r?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e}function qe(t){const e=document.activeElement;return t.some(n=>n===e?!0:(n.focus(),document.activeElement!==e))}function Ws(t){return t.forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),()=>{t.forEach(e=>{const n=e.dataset.tabindex;e.setAttribute("tabindex",n)})}}function Pe(t,e){const n=U(e);Z(()=>{let s=0;if(t){const r=new ResizeObserver(()=>{cancelAnimationFrame(s),s=window.requestAnimationFrame(n)});return r.observe(t),()=>{window.cancelAnimationFrame(s),r.unobserve(t)}}},[t,n])}function et(t){return t?"open":"closed"}function Jt(t,e){return`${t}-trigger-${e}`}function Zt(t,e){return`${t}-content-${e}`}function we(t){return e=>e.pointerType==="mouse"?t(e):void 0}var qt=Pt,en=Bt,Us=Kt,tn=Vt,Hs=Wt,nn=Ut,sn=Ht,rn=Yt;const Gs=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],ft=Et("house",Gs);const Ys=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],on=Et("x",Ys),an=h.forwardRef((t,e)=>{const n=P.c(12);let s,r,o;n[0]!==t?({className:r,children:s,...o}=t,n[0]=t,n[1]=s,n[2]=r,n[3]=o):(s=n[1],r=n[2],o=n[3]);let i;n[4]!==r?(i=V("relative z-10 flex max-w-max flex-1 items-center justify-center",r),n[4]=r,n[5]=i):i=n[5];let a;n[6]===Symbol.for("react.memo_cache_sentinel")?(a=l.jsx(hn,{}),n[6]=a):a=n[6];let c;return n[7]!==s||n[8]!==o||n[9]!==e||n[10]!==i?(c=l.jsxs(qt,{ref:e,className:i,...o,children:[s,a]}),n[7]=s,n[8]=o,n[9]=e,n[10]=i,n[11]=c):c=n[11],c});an.displayName=qt.displayName;const cn=h.forwardRef((t,e)=>{const n=P.c(9);let s,r;n[0]!==t?({className:s,...r}=t,n[0]=t,n[1]=s,n[2]=r):(s=n[1],r=n[2]);let o;n[3]!==s?(o=V("group flex flex-1 list-none items-center justify-center space-x-1",s),n[3]=s,n[4]=o):o=n[4];let i;return n[5]!==r||n[6]!==e||n[7]!==o?(i=l.jsx(en,{ref:e,className:o,...r}),n[5]=r,n[6]=e,n[7]=o,n[8]=i):i=n[8],i});cn.displayName=en.displayName;const ln=h.forwardRef((t,e)=>{const n=P.c(9);let s,r;n[0]!==t?({className:s,...r}=t,n[0]=t,n[1]=s,n[2]=r):(s=n[1],r=n[2]);let o;n[3]!==s?(o=V("relative",s),n[3]=s,n[4]=o):o=n[4];let i;return n[5]!==r||n[6]!==e||n[7]!==o?(i=l.jsx(Us,{ref:e,className:o,...r}),n[5]=r,n[6]=e,n[7]=o,n[8]=i):i=n[8],i});ln.displayName="NavigationMenuItem";const un=Kn("group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-2 lg:px-3 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent data-[active]:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground"),dn=h.forwardRef((t,e)=>{const n=P.c(12);let s,r,o;n[0]!==t?({className:r,children:s,...o}=t,n[0]=t,n[1]=s,n[2]=r,n[3]=o):(s=n[1],r=n[2],o=n[3]);let i;n[4]!==r?(i=V(un(),"group",r),n[4]=r,n[5]=i):i=n[5];let a;n[6]===Symbol.for("react.memo_cache_sentinel")?(a=l.jsx(Vn,{className:"relative top-px ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180","aria-hidden":"true"}),n[6]=a):a=n[6];let c;return n[7]!==s||n[8]!==o||n[9]!==e||n[10]!==i?(c=l.jsxs(tn,{ref:e,className:i,...o,children:[s," ",a]}),n[7]=s,n[8]=o,n[9]=e,n[10]=i,n[11]=c):c=n[11],c});dn.displayName=tn.displayName;const fn=h.forwardRef((t,e)=>{const n=P.c(9);let s,r;n[0]!==t?({className:s,...r}=t,n[0]=t,n[1]=s,n[2]=r):(s=n[1],r=n[2]);let o;n[3]!==s?(o=V("left-0 top-0 w-full 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 md:absolute md:w-auto",s),n[3]=s,n[4]=o):o=n[4];let i;
1return n[5]!==r||n[6]!==e||n[7]!==o?(i=l.jsx(sn,{ref:e,className:o,...r}),n[5]=r,n[6]=e,n[7]=o,n[8]=i):i=n[8],i});fn.displayName=sn.displayName;const Fe=Hs,hn=h.forwardRef((t,e)=>{const n=P.c(10);let s,r;n[0]!==t?({className:s,...r}=t,n[0]=t,n[1]=s,n[2]=r):(s=n[1],r=n[2]);let o;n[3]===Symbol.for("react.memo_cache_sentinel")?(o=V("absolute left-0 top-full flex justify-center"),n[3]=o):o=n[3];let i;n[4]!==s?(i=V("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",s),n[4]=s,n[5]=i):i=n[5];let a;return n[6]!==r||n[7]!==e||n[8]!==i?(a=l.jsx("div",{className:o,children:l.jsx(rn,{className:i,ref:e,...r})}),n[6]=r,n[7]=e,n[8]=i,n[9]=a):a=n[9],a});hn.displayName=rn.displayName;const Qs=h.forwardRef((t,e)=>{const n=P.c(10);let s,r;n[0]!==t?({className:s,...r}=t,n[0]=t,n[1]=s,n[2]=r):(s=n[1],r=n[2]);let o;n[3]!==s?(o=V("top-full z-1 flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",s),n[3]=s,n[4]=o):o=n[4];let i;n[5]===Symbol.for("react.memo_cache_sentinel")?(i=l.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"}),n[5]=i):i=n[5];let a;return n[6]!==r||n[7]!==e||n[8]!==o?(a=l.jsx(nn,{ref:e,className:o,...r,children:i}),n[6]=r,n[7]=e,n[8]=o,n[9]=a):a=n[9],a});Qs.displayName=nn.displayName;const tt=t=>Array.isArray(t)&&t.every(e=>typeof e.title=="string"&&typeof e.href=="string"&&(e.description===void 0||typeof e.description=="string")&&(e.items===void 0||tt(e.items))),mn=[Wn,Ye,Un,Hn],gn=["/images/content/birds/san-pedrito-todus-mexicanus.jpg","/images/content/explore/trails/el-yunque-trail.jpg","/images/nav/explore.jpg","/images/cards/history.jpg"],Xs=t=>{const e=P.c(9),{title:n,href:s,description:r,closeMenu:o}=t;let i;e[0]!==n?(i=l.jsx("div",{className:"text-sm font-bold leading-none font-sans text-foreground group-hover:text-primary transition-colors",children:n}),e[0]=n,e[1]=i):i=e[1];let a;e[2]!==r?(a=r&&l.jsx("p",{className:"text-sm leading-snug text-muted-foreground font-serif mt-1.5",children:r}),e[2]=r,e[3]=a):a=e[3];let c;return e[4]!==o||e[5]!==s||e[6]!==i||e[7]!==a?(c=l.jsx("li",{children:l.jsx(Fe,{asChild:!0,children:l.jsxs($,{to:s,className:"block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-none transition-colors hover:bg-accent/10 hover:text-primary focus:bg-accent/10 focus:text-primary group",onClick:o,children:[i,a]})})}),e[4]=o,e[5]=s,e[6]=i,e[7]=a,e[8]=c):c=e[8],c};function Js(){const t=P.c(9),{t:e}=Ae("common"),n=e("links",{returnObjects:!0}),s=Nt(),r=Bn(),o=tt(n)?n:[];Array.isArray(n)||console.error("Invalid links data:",n);const i=o.slice(0,4),a=an,c=150,d=cn,u="gap-1";let f;t[0]!==r||t[1]!==s?(f=(v,x)=>{const y=mn[x]||Ye;return l.jsx(ln,{children:v.items?l.jsxs(l.Fragment,{children:[l.jsx(dn,{onClick:N=>{v.href&&s(r(v.href))},className:"group/trigger bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground data-active:bg-accent data-active:text-accent-foreground font-sans font-bold text-sm tracking-wide",children:l.jsxs("span",{className:"flex items-center gap-1.5",children:[l.jsx(y,{className:"w-4 h-4 text-muted-foreground group-hover/trigger:text-accent-foreground group-focus/trigger:text-accent-foreground group-data-[state=open]/trigger:text-accent-foreground group-data-active/trigger:text-accent-foreground transition-colors"}),v.title]})}),l.jsx(fn,{children:l.jsxs("div",{className:"flex w-150 lg:w-175 p-4 bg-card rounded-md shadow-lg border-border",children:[l.jsx(Fe,{asChild:!0,children:l.jsxs($,{to:v.href,className:"w-1/3 rounded-md p-6 border border-border flex flex-col justify-end relative overflow-hidden group focus:outline-none focus:ring-2 focus:ring-primary",children:[l.jsx("img",{src:gn[x]||"/images/nav/explore.jpg",alt:v.title,className:"absolute inset-0 w-full h-full object-cover transition-transform duration-700 group-hover:scale-105"}),l.jsx("div",{className:"absolute inset-0 bg-linear-to-t from-black/90 via-black/30 to-black/10 group-hover:bg-black/40 transition-colors duration-500 pointer-events-none"}),l.jsxs("div",{className:"relative z-10 text-white",children:[l.jsx(y,{className:"w-10 h-10 mb-4 opacity-90 drop-shadow-md"}),l.jsx("h3",{className:"text-xl font-serif font-bold mb-2 drop-shadow-md",children:v.title}),l.jsx("span",{className:"text-sm font-bold uppercase group-hover:underline inline-flex items-center mt-2 drop-shadow-md",children:"Open Hub →"})]})]})}),l.jsx("ul",{className:"w-2/3 grid grid-cols-2 gap-x-2 gap-y-3 p-4",children:v.items.map(Zs)})]})})]}):l.jsx(Fe,{asChild:!0,children:l.jsx($,{to:v.href,className:V(un(),"group/trigger bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground data-active:bg-accent data-active:text-accent-foreground font-sans font-bold text-sm tracking-wide"),children:l.jsxs("span",{className:"flex items-center gap-1.5",children:[l.jsx(y,{className:"w-4 h-4 text-muted-foreground group-hover/trigger:text-accent-foreground group-focus/trigger:text-accent-foreground group-data-[state=open]/trigger:text-accent-foreground group-data-active/trigger:text-accent-foreground transition-colors"}),v.title]})})})},x)},t[0]=r,t[1]=s,t[2]=f):f=t[2];const g=i.map(f);let m;t[3]!==d||t[4]!==g?(m=l.jsx(d,{className:u,children:g}),t[3]=d,t[4]=g,t[5]=m):m=t[5];let p;return t[6]!==a||t[7]!==m?(p=l.jsx(a,{delayDuration:c,children:m}),t[6]=a,t[7]=m,t[8]=p):p=t[8],p}function Zs(t,e){return l.jsx(Xs,{title:t.title,href:t.href,description:t.description},e)}const qs=t=>{const e=P.c(6),{t:n}=Ae("common");let s,r;if(e[0]!==n){const i=n("links",{returnObjects:!0}),c=(tt(i)?i:[]).slice(0,4);s="flex flex-col px-3 py-2 pb-4 space-y-3",r=c.map(tr),e[0]=n,e[1]=s,e[2]=r}else s=e[1],r=e[2];let o;return e[3]!==s||e[4]!==r?(o=l.jsx("nav",{className:s,children:r}),e[3]=s,e[4]=r,e[5]=o):o=e[5],o};function er(t,e){return l.jsx("li",{children:l.jsx($,{to:t.href,className:"block text-[0.95rem] font-sans font-medium text-foreground
1/80 hover:text-primary transition-colors tracking-wide",children:t.title})},e)}function tr(t,e){const n=mn[e]||Ye;return l.jsxs("div",{className:"relative rounded-xl overflow-hidden shadow-sm border border-border group bg-background",children:[l.jsx($,{to:t.href,className:"absolute right-0 top-0 bottom-0 w-1/2 h-full z-0 block overflow-hidden","aria-label":t.title,children:l.jsx("img",{src:gn[e]||"/images/nav/explore.jpg",alt:"",className:"w-full h-full object-cover object-center transition-transform duration-500 hover:scale-105"})}),l.jsxs("div",{className:"relative z-10 flex flex-col pt-3 pb-4 pl-4 pr-2 w-1/2 bg-white/95 backdrop-blur-[2px] border-r border-stone-200 md:bg-transparent",children:[l.jsxs($,{to:t.href,className:"flex items-center gap-2.5 w-full text-left font-serif text-[1.35rem] font-bold text-foreground hover:text-primary transition-colors focus:outline-none",children:[l.jsx(n,{className:"w-5 h-5 text-primary"}),t.title]}),t.items&&l.jsx("div",{className:"mt-2.5",children:l.jsx("ul",{className:"flex flex-col space-y-2 pl-[1.8rem]",children:t.items.map(er)})})]})]},e)}var pn={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},ht=B.createContext&&B.createContext(pn),nr=["attr","size","title"];function sr(t,e){if(t==null)return{};var n,s,r=rr(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(s=0;s<o.length;s++)n=o[s],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function rr(t,e){if(t==null)return{};var n={};for(var s in t)if({}.hasOwnProperty.call(t,s)){if(e.indexOf(s)!==-1)continue;n[s]=t[s]}return n}function Ce(){return Ce=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var s in n)({}).hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Ce.apply(null,arguments)}function mt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,s)}return n}function Ne(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?mt(Object(n),!0).forEach(function(s){or(t,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):mt(Object(n)).forEach(function(s){Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(n,s))})}return t}function or(t,e,n){return(e=ir(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ir(t){var e=ar(t,"string");return typeof e=="symbol"?e:e+""}function ar(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var s=n.call(t,e);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function vn(t){return t&&t.map((e,n)=>B.createElement(e.tag,Ne({key:n},e.attr),vn(e.child)))}function xn(t){return e=>B.createElement(cr,Ce({attr:Ne({},t.attr)},e),vn(t.child))}function cr(t){var e=n=>{var{attr:s,size:r,title:o}=t,i=sr(t,nr),a=r||n.size||"1em",c;return n.className&&(c=n.className),t.className&&(c=(c?c+" ":"")+t.className),B.createElement("svg",Ce({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,s,i,{className:c,style:Ne(Ne({color:t.color||n.color},n.style),t.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),o&&B.createElement("title",null,o),t.children)};return ht!==void 0?B.createElement(ht.Consumer,null,n=>e(n)):e(pn)}function lr(t){return xn({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"},child:[]}]})(t)}function ur(t){return xn({attr:{viewBox:"0 0 1024 1024",fill:"currentColor",fillRule:"evenodd"},child:[{tag:"path",attr:{d:"M799.855 166.312c.023.007.043.018.084.059l57.69 57.69c.041.041.052.06.059.084a.118.118 0 0 1 0 .069c-.007.023-.018.042-.059.083L569.926 512l287.703 287.703c.041.04.052.06.059.083a.118.118 0 0 1 0 .07c-.007.022-.018.042-.059.083l-57.69 57.69c-.041.041-.06.052-.084.059a.118.118 0 0 1-.069 0c-.023-.007-.042-.018-.083-.059L512 569.926 224.297 857.629c-.04.041-.06.052-.083.059a.118.118 0 0 1-.07 0c-.022-.007-.042-.018-.083-.059l-57.69-57.69c-.041-.041-.052-.06-.059-.084a.118.118 0 0 1 0-.069c.007-.023.018-.042.059-.083L454.073 512 166.371 224.297c-.041-.04-.052-.06-.059-.083a.118.118 0 0 1 0-.07c.007-.022.018-.042.059-.083l57.69-57.69c.041-.041.06-.052.084-.059a.118.118 0 0 1 .069 0c.023.007.042.018.083.059L512 454.073l287.703-287.702c.04-.041.06-.052.083-.059a.118.118 0 0 1 .07 0Z"},child:[]}]})(t)}function Q(t){return Array.isArray?Array.isArray(t):bn(t)==="[object Array]"}function dr(t){if(typeof t=="string")return t;if(typeof t=="bigint")return t.toString();const e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function Le(t){return t==null?"":dr(t)}function F(t){return typeof t=="string"}function xe(t){return typeof t=="number"}function fr(t){return t===!0||t===!1||hr(t)&&bn(t)=="[object Boolean]"}function yn(t){return typeof t=="object"}function hr(t){return yn(t)&&t!==null}function K(t){return t!=null}function pe(t){return!t.trim().length}
1function bn(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const mr="Incorrect 'index' type",Be="Invalid doc index: must be a non-negative integer within the bounds of the docs array",gr=t=>`Invalid value for key ${t}`,pr=t=>`Pattern length exceeds max of ${t}.`,vr=t=>`Missing ${t} property in key`,xr=t=>`Property 'weight' in key '${t}' must be a positive integer`,yr="Fuse.match does not support useTokenSearch: token search requires corpus-level statistics (df, fieldCount) that a one-off string comparison does not have. Use new Fuse(...).search(...) instead.",gt=Object.prototype.hasOwnProperty;class br{constructor(e){this._keys=[],this._keyMap={};let n=0;e.forEach(s=>{const r=wn(s);this._keys.push(r),this._keyMap[r.id]=r,n+=r.weight}),this._keys.forEach(s=>{s.weight/=n})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function wn(t){let e=null,n=null,s=null,r=1,o=null;if(F(t)||Q(t))s=t,e=pt(t),n=ye(t);else{if(!gt.call(t,"name"))throw new Error(vr("name"));const i=t.name;if(s=i,gt.call(t,"weight")&&t.weight!==void 0&&(r=t.weight,r<=0))throw new Error(xr(ye(i)));e=pt(i),n=ye(i),o=t.getFn??null}return{path:e,id:n,weight:r,src:s,getFn:o}}function pt(t){return Q(t)?t:t.split(".")}function ye(t){return Q(t)?t.join("."):t}function wr(t,e){const n=[];let s=!1;const r=(o,i,a,c)=>{if(K(o))if(!i[a])n.push(c!==void 0?{v:o,i:c}:o);else{const d=i[a],u=o[d];if(!K(u))return;if(a===i.length-1&&(F(u)||xe(u)||fr(u)||typeof u=="bigint"))n.push(c!==void 0?{v:Le(u),i:c}:Le(u));else if(Q(u)){s=!0;for(let f=0,g=u.length;f<g;f+=1)r(u[f],i,a+1,f)}else i.length&&r(u,i,a+1,c)}};return r(t,F(e)?e.split("."):e,0),s?n:n[0]}const Cr={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},Nr={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1},Er={location:0,threshold:.6,distance:100},jr={useExtendedSearch:!1,useTokenSearch:!1,tokenize:void 0,tokenMatch:"any",getFn:wr,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},S=Object.freeze({...Nr,...Cr,...Er,...jr});function _r(t=1,e=3){const n=new Map,s=Math.pow(10,e);return{get(r){let o=1,i=!1;for(let c=0;c<r.length;c++)r.charCodeAt(c)===32?i||(o++,i=!0):i=!1;if(n.has(o))return n.get(o);const a=Math.round(s/Math.pow(o,.5*t))/s;return n.set(o,a),a},clear(){n.clear()}}}class nt{constructor({getFn:e=S.getFn,fieldNormWeight:n=S.fieldNormWeight}={}){this.norm=_r(n,3),this.getFn=e,this.isCreated=!1,this.docs=[],this.keys=[],this._keysMap={},this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((n,s)=>{this._keysMap[n.id]=s})}create(){if(this.isCreated||!this.docs.length)return;this.isCreated=!0;const e=this.docs.length;this.records=new Array(e);let n=0;if(F(this.docs[0]))for(let s=0;s<e;s++){const r=this._createStringRecord(this.docs[s],s);r&&(this.records[n++]=r)}else for(let s=0;s<e;s++)this.records[n++]=this._createObjectRecord(this.docs[s],s);this.records.length=n,this.norm.clear()}add(e,n){if(!Number.isInteger(n)||n<0)throw new Error(Be);if(F(e)){const r=this._createStringRecord(e,n);return r&&this.records.push(r),r}const s=this._createObjectRecord(e,n);return this.records.push(s),s}removeAt(e){if(!Number.isInteger(e)||e<0)throw new Error(Be);for(let n=0,s=this.records.length;n<s;n+=1)if(this.records[n].i===e){this.records.splice(n,1);break}for(let n=0,s=this.records.length;n<s;n+=1)this.records[n].i>e&&(this.records[n].i-=1)}removeAll(e){const n=new Set;for(const r of e)Number.isInteger(r)&&r>=0&&n.add(r);if(n.size===0)return;this.records=this.records.filter(r=>!n.has(r.i));const s=Array.from(n).sort((r,o)=>r-o);for(const r of this.records){let o=0,i=s.length;for(;o<i;){const a=o+i>>>1;s[a]<r.i?o=a+1:i=a}r.i-=o}}getValueForItemAtKeyId(e,n){return e[this._keysMap[n]]}size(){return this.records.length}_createStringRecord(e,n){return!K(e)||pe(e)?null:{v:e,i:n,n:this.norm.get(e)}}_createObjectRecord(e,n){const s={i:n,$:{}};for(let r=0,o=this.keys.length;r<o;r++){const i=this.keys[r],a=i.getFn?i.getFn(e):this.getFn(e,i.path);if(K(a)){if(Q(a)){const c=[];for(let d=0,u=a.length;d<u;d+=1){const f=a[d];if(K(f)){if(F(f)){if(!pe(f)){const g={v:f,i:d,n:this.norm.get(f)};c.push(g)}}else if(K(f.v)){const g=F(f.v)?f.v:Le(f.v);if(!pe(g)){const m={v:g,i:f.i,n:this.norm.get(g)};c.push(m)}}}}s.$[r]=c}else if(F(a)&&!pe(a)){const c={v:a,n:this.norm.get(a)};s.$[r]=c}}}return s}toJSON(){return{keys:this.keys.map(({getFn:e,...n})=>n),records:this.records}}}function Cn(t,e,{getFn:n=S.getFn,fieldNormWeight:s=S.fieldNormWeight}={}){const r=new nt({getFn:n,fieldNormWeight:s});return r.setKeys(t.map(wn)),r.setSources(e),r.create(),r}function Ar(t,{getFn:e=S.getFn,fieldNormWeight:n=S.fieldNormWeight}={}){const{keys:s,records:r}=t,o=new nt({getFn:e,fieldNormWeight:n});return o.setKeys(s),o.setIndexRecords(r),o}function Sr(t=[],e=S.minMatchCharLength){const n=[];let s=-1,r=-1,o=0;for(let i=t.length;o<i;o+=1){const a=t[o];a&&s===-1?s=o:!a&&s!==-1&&(r=o-1,r-s+1>=e&&n.push([s,r]),s=-1)}return t[o-1]&&o-s>=e&&n.push([s,o-1]),n}const J=32;function Mr(t,e,n,{location:s=S.location,distance:r=S.distance,threshold:o=S.threshold,findAllMatches:i=S.findAllMatches,minMatchCharLength:a=S.minMatchCharLength,includeMatches:c=S.includeMatches,ignoreLocation:d=S.ignoreLocation}={}){if(e.length>J)throw new Error(pr(J));const u=e.length,f=t.length,g=Math.max(0,Math.min(s,f));let m=o,p=g;const v=(C,A)=>{const R=C/u;if(d)return R;const T=Math.abs(g-A);return r?R+T/r:T?1:R},x=a>1||c,y=x?Array(f):[];let N;for(;(N=t.indexOf(e,p))>-1;){const C=v(0,N);if(m=Math.min(C,m),p=N+u,x){let A=0;for(;A<u;)y[N+A]=1,A+=1}}p=-1;let b=[],w=1,j=0,E=u+f;const _=1<<u-1;for(let C=0;C<u;C+=1){let A=0,R=E;for(;A<R;)v(C,g+R)<=m?A=R:E=R,R=Math.floor((E-A)/2+A);E=R;let T=Math.max(1,g-R+1);const D=i?f:Math.min(g+R,f)+u,I=Array(D+2);I[D+1]=(1<<C)-1;for(let k=D;k>=T;k-=1){const G=k-1,Y=n[t[G]];if(I[k]=(I[k+1]<<1|1)&Y,C&&(I[k]|=(b[k+1]|b[k])<<1|1|b[k+1]),I[k]&_&&(w=v(C,G),w<=m)){if(m=w,p=G,j=C,p<=g)break;T=Math.max(1,2*g-p)}}if(v(C+1,g)>m)break;b=I}if(x&&p>=0){const C=Math.min(f-1,p+u-1+j);for(let A=p;A<=C;A+=1)n[t[A]]&&(y[A]=1)}const M={isMatch:p>=0,score:Math.max(.001,w)};if(x){const C=Sr(y,a);C.length?c&&(M.indices=C):M.isMatch=!1}return M}function Rr(t){const e={};for(let n=0,s=t.length;n<s;n+=1){const r=t.charAt(n);e[r]=(e[r]||0)|1<<s-n-1}return e}function st(t){if(t.length<=1)return t;t.sort((n,s)=>n[0]-s[0]||n[1]-s[1]);const e=[t[0]];for(let n=1,s=t.length;n<s;n+=1){const r=e[e.length-1],o=t[n];o[0]<=r[1]+1?r[1]=Math.max(r[1],o[1]):e.push(o)}return e}const Nn={ł:"l",Ł:"L",đ:"d",Đ:"D",ø:"o",Ø:"O",ħ:"h",Ħ:"H",ŧ:"t",Ŧ:"T",ı:"i",ß:"ss"},Ir=new RegExp("["+Object.keys(Nn).join("")+"]","g"),ae=typeof String.prototype.normalize=="function"?t=>
1t.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,"").replace(Ir,e=>Nn[e]):t=>t;class rt{constructor(e,{location:n=S.location,threshold:s=S.threshold,distance:r=S.distance,includeMatches:o=S.includeMatches,findAllMatches:i=S.findAllMatches,minMatchCharLength:a=S.minMatchCharLength,isCaseSensitive:c=S.isCaseSensitive,ignoreDiacritics:d=S.ignoreDiacritics,ignoreLocation:u=S.ignoreLocation}={}){if(this.options={location:n,threshold:s,distance:r,includeMatches:o,findAllMatches:i,minMatchCharLength:a,isCaseSensitive:c,ignoreDiacritics:d,ignoreLocation:u},e=c?e:e.toLowerCase(),e=d?ae(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;const f=(m,p)=>{this.chunks.push({pattern:m,alphabet:Rr(m),startIndex:p})},g=this.pattern.length;if(g>J){let m=0;const p=g%J,v=g-p;for(;m<v;)f(this.pattern.substr(m,J),m),m+=J;if(p){const x=g-J;f(this.pattern.substr(x),x)}}else f(this.pattern,0)}searchIn(e){const{isCaseSensitive:n,ignoreDiacritics:s,includeMatches:r}=this.options;if(e=n?e:e.toLowerCase(),e=s?ae(e):e,this.pattern===e){const v={isMatch:!0,score:0};return r&&(v.indices=[[0,e.length-1]]),v}const{location:o,distance:i,threshold:a,findAllMatches:c,minMatchCharLength:d,ignoreLocation:u}=this.options,f=[];let g=0,m=!1;this.chunks.forEach(({pattern:v,alphabet:x,startIndex:y})=>{const{isMatch:N,score:b,indices:w}=Mr(e,v,x,{location:o+y,distance:i,threshold:a,findAllMatches:c,minMatchCharLength:d,includeMatches:r,ignoreLocation:u});N&&(m=!0),g+=b,N&&w&&f.push(...w)});const p={isMatch:m,score:m?g/this.chunks.length:1};return m&&r&&(p.indices=st(f)),p}}const Dr=new Set(["fuzzy","include"]);function kr(t){return t.startsWith("inverse")}const $e=[{type:"exact",multiRegex:/^="(.*)"$/,singleRegex:/^=(.*)$/,create:t=>({type:"exact",search(e){const n=e===t;return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}})},{type:"include",multiRegex:/^'"(.*)"$/,singleRegex:/^'(.*)$/,create:t=>({type:"include",search(e){let n=0,s;const r=[],o=t.length;for(;(s=e.indexOf(t,n))>-1;)n=s+o,r.push([s,n-1]);const i=!!r.length;return{isMatch:i,score:i?0:1,indices:r}}})},{type:"prefix-exact",multiRegex:/^\^"(.*)"$/,singleRegex:/^\^(.*)$/,create:t=>({type:"prefix-exact",search(e){const n=e.startsWith(t);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}})},{type:"inverse-prefix-exact",multiRegex:/^!\^"(.*)"$/,singleRegex:/^!\^(.*)$/,create:t=>({type:"inverse-prefix-exact",search(e){const n=!e.startsWith(t);return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}})},{type:"inverse-suffix-exact",multiRegex:/^!"(.*)"\$$/,singleRegex:/^!(.*)\$$/,create:t=>({type:"inverse-suffix-exact",search(e){const n=!e.endsWith(t);return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}})},{type:"suffix-exact",multiRegex:/^"(.*)"\$$/,singleRegex:/^(.*)\$$/,create:t=>({type:"suffix-exact",search(e){const n=e.endsWith(t);return{isMatch:n,score:n?0:1,indices:[e.length-t.length,e.length-1]}}})},{type:"inverse-exact",multiRegex:/^!"(.*)"$/,singleRegex:/^!(.*)$/,create:t=>({type:"inverse-exact",search(e){const n=e.indexOf(t)===-1;return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}})},{type:"fuzzy",multiRegex:/^"(.*)"$/,singleRegex:/^(.*)$/,create:(t,e={})=>{const n=new rt(t,{location:e.location??S.location,threshold:e.threshold??S.threshold,distance:e.distance??S.distance,includeMatches:e.includeMatches??S.includeMatches,findAllMatches:e.findAllMatches??S.findAllMatches,minMatchCharLength:e.minMatchCharLength??S.minMatchCharLength,isCaseSensitive:e.isCaseSensitive??S.isCaseSensitive,ignoreDiacritics:e.ignoreDiacritics??S.ignoreDiacritics,ignoreLocation:e.ignoreLocation??S.ignoreLocation});return{type:"fuzzy",search(s){return n.searchIn(s)}}}}],vt=$e.length,Tr="\0",Or="|";function Pr(t){const e=[],n=t.length;let s=0;for(;s<n;){for(;s<n&&t[s]===" ";)s++;if(s>=n)break;let r=s;for(;r<n&&t[r]!==" "&&t[r]!=='"';)r++;
1if(r<n&&t[r]==='"'){for(r++;r<n;){if(t[r]==='"'){const o=r+1;if(o>=n||t[o]===" "){r++;break}if(t[o]==="$"&&(o+1>=n||t[o+1]===" ")){r+=2;break}}r++}e.push(t.substring(s,r)),s=r}else{for(;r<n&&t[r]!==" ";)r++;e.push(t.substring(s,r)),s=r}}return e}function xt(t,e){const n=t.match(e);return n?n[1]:null}function Fr(t,e={}){return t.replace(/\\\|/g,Tr).split(Or).map(s=>{const r=s.replace(/\u0000/g,"|"),o=Pr(r.trim()).filter(a=>a&&!!a.trim()),i=[];for(let a=0,c=o.length;a<c;a+=1){const d=o[a];let u=!1,f=-1;for(;!u&&++f<vt;){const g=$e[f],m=xt(d,g.multiRegex);m&&(i.push(g.create(m,e)),u=!0)}if(!u)for(f=-1;++f<vt;){const g=$e[f],m=xt(d,g.singleRegex);if(m){i.push(g.create(m,e));break}}}return i})}class Lr{constructor(e,{isCaseSensitive:n=S.isCaseSensitive,ignoreDiacritics:s=S.ignoreDiacritics,includeMatches:r=S.includeMatches,minMatchCharLength:o=S.minMatchCharLength,ignoreLocation:i=S.ignoreLocation,findAllMatches:a=S.findAllMatches,location:c=S.location,threshold:d=S.threshold,distance:u=S.distance}={}){this.query=null,this.options={isCaseSensitive:n,ignoreDiacritics:s,includeMatches:r,minMatchCharLength:o,findAllMatches:a,ignoreLocation:i,location:c,threshold:d,distance:u},e=n?e:e.toLowerCase(),e=s?ae(e):e,this.pattern=e,this.query=Fr(this.pattern,this.options)}static condition(e,n){return n.useExtendedSearch}searchIn(e){const n=this.query;if(!n)return{isMatch:!1,score:1};const{includeMatches:s,isCaseSensitive:r,ignoreDiacritics:o}=this.options;e=r?e:e.toLowerCase(),e=o?ae(e):e;let i=0;const a=[];let c=0,d=!1;for(let u=0,f=n.length;u<f;u+=1){const g=n[u];a.length=0,i=0,d=!1;for(let m=0,p=g.length;m<p;m+=1){const v=g[m],{isMatch:x,indices:y,score:N}=v.search(e);if(x)i+=1,c+=N,kr(v.type)&&(d=!0),s&&(Dr.has(v.type)?a.push(...y):a.push(y));else{c=0,i=0,a.length=0,d=!1;break}}if(i){const m={isMatch:!0,score:c/i};return d&&(m.hasInverse=!0),s&&(m.indices=st(a)),m}}return{isMatch:!1,score:1}}}const ze=[];function ot(...t){ze.push(...t)}function Ee(t,e){for(let n=0,s=ze.length;n<s;n+=1){const r=ze[n];if(r.condition(t,e))return new r(t,e)}return new rt(t,e)}const je={AND:"$and",OR:"$or"},Ke={PATH:"$path",PATTERN:"$val"},Ve=t=>!!(t[je.AND]||t[je.OR]),Br=t=>!!t[Ke.PATH],$r=t=>!Q(t)&&yn(t)&&!Ve(t),yt=t=>({[je.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function En(t,e,{auto:n=!0}={}){const s=r=>{if(F(r)){const c={keyId:null,pattern:r};return n&&(c.searcher=Ee(r,e)),c}const o=Object.keys(r),i=Br(r);if(!i&&o.length>1&&!Ve(r))return s(yt(r));if($r(r)){const c=i?r[Ke.PATH]:o[0],d=i?r[Ke.PATTERN]:r[c];if(!F(d))throw new Error(gr(c));const u={keyId:ye(c),pattern:d};return n&&(u.searcher=Ee(d,e)),u}const a={children:[],operator:o[0]};return o.forEach(c=>{const d=r[c];Q(d)&&d.forEach(u=>{a.children.push(s(u))})}),a};return Ve(t)||(t=yt(t)),s(t)}function We(t,{ignoreFieldNorm:e=S.ignoreFieldNorm}){let n=1;return t.forEach(({key:s,norm:r,score:o})=>{const i=s?s.weight:null;n*=Math.pow(o===0&&i?Number.EPSILON:o,(i||1)*(e?1:r))}),n}function zr(t,{ignoreFieldNorm:e=S.ignoreFieldNorm}){t.forEach(n=>{n.score=We(n.matches,{ignoreFieldNorm:e})})}class Kr{constructor(e){this.limit=e,this.heap=[]}get size(){return this.heap.length}shouldInsert(e){return this.size<this.limit||e<this.heap[0].score}insert(e){this.size<this.limit?(this.heap.push(e),this._bubbleUp(this.size-1)):e.score<this.heap[0].score&&(this.heap[0]=e,this._sinkDown(0))}extractSorted(e){return this.heap.sort(e)}_bubbleUp(e){const n=this.heap;for(;e>0;){const s=e-1>>1;if(n[e].score<=n[s].score)break;const r=n[e];n[e]=n[s],n[s]=r,e=s}}_sinkDown(e){const n=this.heap,s=n.length;let r=e;do{e=r;const o=2*e+1,i=2*e+2;if(o<s&&n[o].score>n[r].score&&(r=o),i<s&&n[i].score>n[r].score&&(r=i),r!==e){const a=n[e];n[e]=n[r],n[r]=a}}while(r!==e)}}function Vr(t){const e=[];return t.matches.forEach(n=>{if(!K(n.indices)||!n.indices.length)return;const s={indices:n.indices,value:n.value};n.key&&(s.key=n.key.id),n.idx>-1&&(s.refIndex=n.idx),e.push(s)}),e}function Wr(t,e,{includeMatches:n=S.includeMatches,includeScore:s=S.includeScore}={}){return t.map(r=>{const{idx:o}=r,i={item:e[o],refIndex:o};return n&&(i.matches=Vr(r)),s&&(i.score=r.score),i})}const Ur=/[\p{L}\p{M}\p{N}_]+/gu,bt=new WeakSet;function Hr(t){bt.has(t)||(bt.add(t),console.warn(`[Fuse] tokenize regex ${t} lacks the global flag; only the first match per text will be returned. Add the 'g' flag.`))}function Gr(t){if(typeof t=="function"){let e=!1;return n=>{const s=t(n);if(!e&&(e=!0,!Array.isArray(s)||s.some(r=>typeof r!="string")))throw new Error(`[Fuse] tokenize function must return string[]; received ${Array.isArray(s)?"array containing non-strings":typeof s}.`);return s}}return t instanceof RegExp?(t.global||Hr(t),e=>e.match(t)||[]):e=>e.match(Ur)||[]}function Ue({isCaseSensitive:t=!1,ignoreDiacritics:e=!1,tokenize:n}={}){const s=Gr(n);return{tokenize(r){return t||(r=r.toLowerCase()),e&&(r=ae(r)),s(r)}}}const jn=31;class Yr{static condition(e,n){return n.useTokenSearch}constructor(e,n){this.options=n,this.analyzer=Ue({isCaseSensitive:n.isCaseSensitive,ignoreDiacritics:n.ignoreDiacritics,tokenize:n.tokenize});const s=this.analyzer.tokenize(e),r=n._invertedIndex,{df:o,fieldCount:i}=r;this.termSearchers=[],this.idfWeights=[];for(const a of s){this.termSearchers.push(new rt(a,{location:n.location,threshold:n.threshold,distance:n.distance,includeMatches:n.includeMatches,findAllMatches:n.findAllMatches,minMatchCharLength:n.minMatchCharLength,isCaseSensitive:n.isCaseSensitive,ignoreDiacritics:n.ignoreDiacritics,ignoreLocation:!0}
1));const c=o.get(a)||0,d=Math.log(1+(i-c+.5)/(c+.5));this.idfWeights.push(d)}this.combineAll=n.tokenMatch==="all",this.numTerms=this.termSearchers.length,this.useMask=this.numTerms<=jn}searchIn(e){if(!this.termSearchers.length)return{isMatch:!1,score:1};const n=[];let s=0,r=0,o=0,i=0;const a=this.combineAll&&!this.useMask?new Set:null;for(let u=0;u<this.termSearchers.length;u++){const f=this.termSearchers[u].searchIn(e),g=this.idfWeights[u];r+=g,f.isMatch&&(o++,s+=g*(1-f.score),f.indices&&n.push(...f.indices),this.combineAll&&(this.useMask?i|=1<<u:a.add(u)))}if(o===0)return{isMatch:!1,score:1};const c=r>0?1-s/r:0,d={isMatch:!0,score:Math.max(.001,c)};return this.options.includeMatches&&n.length&&(d.indices=st(n)),this.combineAll&&(this.useMask?d.matchedMask=i:d.matchedTerms=a,d.termCount=this.numTerms),d}}function Me(t,e,n,s){const r=s.tokenize(e);if(!r.length)return;t.fieldCount++,t.docFieldCount.set(n,(t.docFieldCount.get(n)||0)+1);const o=new Set(r);let i=t.docTermFieldHits.get(n);i||(i=new Map,t.docTermFieldHits.set(n,i));for(const a of o)i.set(a,(i.get(a)||0)+1),t.df.set(a,(t.df.get(a)||0)+1)}function _n(t,e,n,s){const{i:r,v:o,$:i}=e;if(o!==void 0){Me(t,o,r,s);return}if(i)for(let a=0;a<n;a++){const c=i[a];if(c)if(Array.isArray(c))for(const d of c)Me(t,d.v,r,s);else Me(t,c.v,r,s)}}function Qr(t,e,n){const s={fieldCount:0,df:new Map,docFieldCount:new Map,docTermFieldHits:new Map};for(const r of t)_n(s,r,e,n);return s}function Xr(t,e,n,s){_n(t,e,n,s)}function Jr(t,e){const n=t.docFieldCount.get(e);if(n===void 0)return;t.fieldCount-=n,t.docFieldCount.delete(e);const s=t.docTermFieldHits.get(e);if(s){for(const[r,o]of s){const i=(t.df.get(r)||0)-o;i<=0?t.df.delete(r):t.df.set(r,i)}t.docTermFieldHits.delete(e)}}function wt(t,e){if(e.length===0)return;const n=Array.from(new Set(e)).sort((a,c)=>a-c);for(const a of n)Jr(t,a);const s=a=>{let c=0,d=n.length;for(;c<d;){const u=c+d>>>1;n[u]<a?c=u+1:d=u}return a-c},r=n[0],o=new Map;for(const[a,c]of t.docFieldCount)o.set(a>r?s(a):a,c);t.docFieldCount=o;const i=new Map;for(const[a,c]of t.docTermFieldHits)i.set(a>r?s(a):a,c);t.docTermFieldHits=i}class X{constructor(e,n,s){this.options={...S,...n},this.options.useExtendedSearch,this.options.useTokenSearch,this._keyStore=new br(this.options.keys),this._docs=e,this._myIndex=null,this._invertedIndex=null,this.setCollection(e,s),this._lastQuery=null,this._lastSearcher=null}_getSearcher(e){if(this._lastQuery===e)return this._lastSearcher;const n=this._invertedIndex?{...this.options,_invertedIndex:this._invertedIndex}:this.options,s=Ee(e,n);return this._lastQuery=e,this._lastSearcher=s,s}setCollection(e,n){if(this._docs=e,n&&!(n instanceof nt))throw new Error(mr);if(this._myIndex=n||Cn(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight}),this.options.useTokenSearch){const s=Ue({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});this._invertedIndex=Qr(this._myIndex.records,this._myIndex.keys.length,s)}this._invalidateSearcherCache()}add(e){if(!K(e))return;this._docs.push(e);const n=this._myIndex.add(e,this._docs.length-1);if(this._invertedIndex&&n){const s=Ue({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});Xr(this._invertedIndex,n,this._myIndex.keys.length,s)}this._invalidateSearcherCache()}remove(e=()=>!1){const n=[],s=[];for(let r=0,o=this._docs.length;r<o;r+=1)e(this._docs[r],r)&&(n.push(this._docs[r]),s.push(r));if(s.length){this._invertedIndex&&wt(this._invertedIndex,s);const r=new Set(s);this._docs=this._docs.filter((o,i)=>!r.has(i)),this._myIndex.removeAll(s),this._invalidateSearcherCache()}return n}removeAt(e){if(!Number.isInteger(e)||e<0||e>=this._docs.length)throw new Error(Be);this._invertedIndex&&wt(this._invertedIndex,[e]);const n=this._docs.splice(e,1)[0];return this._myIndex.removeAt(e),this._invalidateSearcherCache(),n}_invalidateSearcherCache(){this._lastQuery=null,this._lastSearcher=null}getIndex(){return this._myIndex}search(e,n){const{limit:s=-1}=n||{},{includeMatches:r,includeScore:o,shouldSort:i,sortFn:a,ignoreFieldNorm:c}=this.options;if(F(e)&&!e.trim()){let f=this._docs.map((g,m)=>({item:g,refIndex:m}));return xe(s)&&s>-1&&(f=f.slice(0,s)),f}const d=xe(s)&&s>0&&F(e);let u;if(d){const f=new Kr(s);F(this._docs[0])?this._searchStringList(e,{heap:f,ignoreFieldNorm:c}):this._searchObjectList(e,{heap:f,ignoreFieldNorm:c}),u=f.extractSorted(a)}else u=F(e)?F(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e),zr(u,{ignoreFieldNorm:c}),i&&u.sort(a),xe(s)&&s>-1&&(u=u.slice(0,s));return Wr(u,this._docs,{includeMatches:r,includeScore:o})}_searchStringList(e,{heap:n,ignoreFieldNorm:s}={}){const r=this._getSearcher(e),o=this.options.useTokenSearch&&this.options.tokenMatch==="all",{records:i}=this._myIndex,a=n?null:[];
1return i.forEach(({v:c,i:d,n:u})=>{if(!K(c))return;const f=r.searchIn(c);if(f.isMatch){const g={score:f.score,value:c,norm:u,indices:f.indices};o&&(g.matchedMask=f.matchedMask,g.matchedTerms=f.matchedTerms,g.termCount=f.termCount);const m=[g];if(!o||this._coversAllTokens(m)){const p={item:c,idx:d,matches:m};n?(p.score=We(p.matches,{ignoreFieldNorm:s}),n.shouldInsert(p.score)&&n.insert(p)):a.push(p)}}}),a}_searchLogical(e){const n=En(e,this.options),s=(a,c,d)=>{if(!("children"in a)){const{keyId:m,searcher:p}=a;let v;return m===null?(v=[],this._myIndex.keys.forEach((x,y)=>{v.push(...this._findMatches({key:x,value:c[y],searcher:p}))})):v=this._findMatches({key:this._keyStore.get(m),value:this._myIndex.getValueForItemAtKeyId(c,m),searcher:p}),v&&v.length?[{idx:d,item:c,matches:v}]:[]}const{children:u,operator:f}=a,g=[];for(let m=0,p=u.length;m<p;m+=1){const v=u[m],x=s(v,c,d);if(x.length)g.push(...x);else if(f===je.AND)return[]}return g},r=this._myIndex.records,o=new Map,i=[];return r.forEach(({$:a,i:c})=>{if(K(a)){const d=s(n,a,c);d.length&&(o.has(c)||(o.set(c,{idx:c,item:a,matches:[]}),i.push(o.get(c))),d.forEach(({matches:u})=>{o.get(c).matches.push(...u)}))}}),i}_searchObjectList(e,{heap:n,ignoreFieldNorm:s}={}){const r=this._getSearcher(e),o=this.options.useTokenSearch&&this.options.tokenMatch==="all",{keys:i,records:a}=this._myIndex,c=n?null:[];return a.forEach(({$:d,i:u})=>{if(!K(d))return;const f=[];let g=!1,m=!1;if(i.forEach((p,v)=>{const x=this._findMatches({key:p,value:d[v],searcher:r});x.length?(f.push(...x),x[0].hasInverse&&(m=!0)):g=!0}),!(m&&g)&&f.length&&(!o||this._coversAllTokens(f))){const p={idx:u,item:d,matches:f};n?(p.score=We(p.matches,{ignoreFieldNorm:s}),n.shouldInsert(p.score)&&n.insert(p)):c.push(p)}}),c}_findMatches({key:e,value:n,searcher:s}){if(!K(n))return[];const r=[];if(Q(n))n.forEach(({v:o,i,n:a})=>{if(!K(o))return;const c=s.searchIn(o);if(c.isMatch){const d={score:c.score,key:e,value:o,idx:i,norm:a,indices:c.indices,hasInverse:c.hasInverse};c.termCount!==void 0&&(d.matchedMask=c.matchedMask,d.matchedTerms=c.matchedTerms,d.termCount=c.termCount),r.push(d)}});else{const{v:o,n:i}=n,a=s.searchIn(o);if(a.isMatch){const c={score:a.score,key:e,value:o,norm:i,indices:a.indices,hasInverse:a.hasInverse};a.termCount!==void 0&&(c.matchedMask=a.matchedMask,c.matchedTerms=a.matchedTerms,c.termCount=a.termCount),r.push(c)}}return r}_coversAllTokens(e){const n=e.length?e[0].termCount:void 0;if(n===void 0)return!0;if(n<=jn){let r=0;for(let o=0;o<e.length;o++)r|=e[o].matchedMask||0;return r===2**n-1}const s=new Set;for(let r=0;r<e.length;r++){const o=e[r].matchedTerms;if(o)for(const i of o)s.add(i)}return s.size===n}}X.version="7.4.1";X.createIndex=Cn;X.parseIndex=Ar;X.config=S;X.match=function(t,e,n){if(n&&n.useTokenSearch)throw new Error(yr);return Ee(t,{...S,...n}).searchIn(e)};X.parseQuery=En;ot(Lr);ot(Yr);X.use=function(...t){t.forEach(e=>ot(e))};function Zr(t){const e=P.c(34),{isOpen:n,onClose:s,locale:r}=t,[o,i]=h.useState("");let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=[],e[0]=a):a=e[0];const[c,d]=h.useState(a),[u,f]=h.useState(null),g=h.useRef(null),m=Nt();let p,v;e[1]!==u||e[2]!==n||e[3]!==r?(p=()=>(n?(document.body.style.overflow="hidden",setTimeout(()=>{g.current?.focus()},100),u||fetch(`/search-index-${r}.json`).then(to).then(D=>{const I=new X(D,{keys:[{name:"title",weight:2},{name:"description",weight:1.5},{name:"content",weight:1}],threshold:.1,ignoreLocation:!0,ignoreDiacritics:!0});f(I)}).catch(eo)):(document.body.style.overflow="",i(""),d([])),qr),v=[n,r,u],e[1]=u,e[2]=n,e[3]=r,e[4]=p,e[5]=v):(p=e[4],v=e[5]),h.useEffect(p,v);let x,y;if(e[6]!==u||e[7]!==o?(x=()=>{if(!u||!o.trim()){d([]);return}const D=setTimeout(()=>{const I=u.search(o);d(I.slice(0,10))},150);return()=>clearTimeout(D)},y=[o,u],e[6]=u,e[7]=o,e[8]=x,e[9]=y):(x=e[8],y=e[9]),h.useEffect(x,y),!n)return null;let N;e[10]===Symbol.for("react.memo_cache_sentinel")?(N=l.jsx(be,{className:"absolute left-4 top-1/2 -translate-y-1/2 w-6 h-6 text-muted-foreground"}),e[10]=N):N=e[10];
1const b=r==="en"?"Search species, trails, history...":"Buscar especies, veredas, historia...";let w;e[11]===Symbol.for("react.memo_cache_sentinel")?(w=D=>i(D.target.value),e[11]=w):w=e[11];let j;e[12]!==s?(j=D=>{D.key==="Escape"&&s()},e[12]=s,e[13]=j):j=e[13];let E;e[14]!==o||e[15]!==b||e[16]!==j?(E=l.jsxs("div",{className:"relative flex-1",children:[N,l.jsx("input",{ref:g,type:"text",className:"w-full bg-muted/30 border border-border rounded-full py-4 pl-14 pr-6 text-xl focus:outline-none focus:ring-2 focus:ring-primary text-foreground",placeholder:b,value:o,onChange:w,onKeyDown:j})]}),e[14]=o,e[15]=b,e[16]=j,e[17]=E):E=e[17];let _;e[18]===Symbol.for("react.memo_cache_sentinel")?(_=l.jsx(on,{className:"w-8 h-8"}),e[18]=_):_=e[18];let M;e[19]!==s?(M=l.jsx("button",{onClick:s,className:"p-3 text-muted-foreground hover:text-foreground hover:bg-muted/50 rounded-full transition-colors","aria-label":"Close search",children:_}),e[19]=s,e[20]=M):M=e[20];let C;e[21]!==E||e[22]!==M?(C=l.jsxs("div",{className:"flex items-center gap-4 border-b border-border pb-4",children:[E,M]}),e[21]=E,e[22]=M,e[23]=C):C=e[23];let A;e[24]!==r||e[25]!==m||e[26]!==o||e[27]!==c?(A=c.length>0?c.map(D=>{const{item:I}=D;return l.jsx("button",{onClick:()=>{m(I.url)},className:"w-full text-left p-4 rounded-2xl hover:bg-muted/30 transition-colors border border-transparent hover:border-border group",children:l.jsxs("div",{className:"flex justify-between items-start gap-4",children:[l.jsxs("div",{children:[l.jsx("h3",{className:"text-xl font-bold font-serif text-primary group-hover:underline mb-1",children:I.title||I.url.split("/").pop()}),I.description&&l.jsx("p",{className:"text-muted-foreground text-sm line-clamp-2",children:I.description})]}),l.jsx(Gn,{className:"w-5 h-5 text-muted-foreground group-hover:text-primary shrink-0 mt-1 transition-transform group-hover:translate-x-1"})]})},I.url)}):o.trim()?l.jsx("div",{className:"text-center py-20 text-muted-foreground",children:r==="en"?"No results found.":"No se encontraron resultados."}):l.jsx("div",{className:"text-center py-20 text-muted-foreground",children:r==="en"?"Type to start searching...":"Escribe para empezar a buscar..."}),e[24]=r,e[25]=m,e[26]=o,e[27]=c,e[28]=A):A=e[28];let R;e[29]!==A?(R=l.jsx("div",{className:"flex-1 overflow-y-auto py-6 space-y-2",children:A}),e[29]=A,e[30]=R):R=e[30];let T;return e[31]!==C||e[32]!==R?(T=l.jsx("div",{className:"fixed inset-0 z-[300] bg-background/95 backdrop-blur-md flex flex-col",children:l.jsxs("div",{className:"mx-auto w-full px-4 py-4 md:py-8 flex flex-col h-full max-w-4xl",children:[C,R]})}),e[31]=C,e[32]=R,e[33]=T):T=e[33],T}function qr(){document.body.style.overflow=""}function eo(t){return console.error("Failed to load search index",t)}function to(t){return t.json()}function no(){const t=P.c(10),n=An().state!=="idle",[s,r]=h.useState(0),[o,i]=h.useState(!1),[a,c]=h.useState(!1);let d,u;if(t[0]!==n?(d=()=>{let v,x,y;return n?(i(!0),r(10),v=setInterval(()=>{r(so)},300),y=setTimeout(()=>{c(!0)},500)):(r(100),c(!1),x=setTimeout(()=>{i(!1),r(0)},300)),()=>{clearInterval(v),clearTimeout(x),clearTimeout(y)}},u=[n],t[0]=n,t[1]=d,t[2]=u):(d=t[1],u=t[2]),h.useEffect(d,u),!o)return null;const f=`${s}%`;let g;t[3]!==f?(g=l.jsx("div",{className:"fixed top-0 left-0 right-0 z-[9999] h-1 w-full bg-transparent overflow-hidden pointer-events-none",children:l.jsx("div",{className:"h-full bg-green-600 transition-all duration-300 ease-out",style:{width:f}})}),t[3]=f,t[4]=g):g=t[4];let m;t[5]!==a?(m=a&&l.jsx("div",{className:"fixed inset-0 z-[9998] flex items-center justify-center bg-background/20 backdrop-blur-sm transition-opacity animate-in fade-in duration-300 pointer-events-none",children:l.jsx("div",{className:"bg-background/90 p-4 rounded-full shadow-lg flex items-center justify-center border border-border",children:l.jsx(Yn,{className:"h-8 w-8 animate-spin text-primary"})})}),t[5]=a,t[6]=m):m=t[6];let p;return t[7]!==g||t[8]!==m?(p=l.jsxs(l.Fragment,{children:[g,m]}),t[7]=g,t[8]=m,t[9]=p):p=t[9],p}function so(t){return t>=90?t:t+Math.random()*10}function ro(){const t=P.c(64),{t:e,i18n:n}=Ae();let s,r,o,i,a,c,d;if(t[0]!==n.language||t[1]!==e){const A=e("links",{returnObjects:!0});d="bg-primary/5 text-foreground border-t border-border border-opacity-50 overflow-hidden mt-auto",c="container mx-auto px-6 lg:px-8 py-16 md:py-20 max-w-7xl",i="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-12 lg:gap-8";let R;t[9]===Symbol.for("react.memo_cache_sentinel")?(R=l.jsx("span",{className:"text-2xl font-bold tracking-widest text-primary uppercase font-sans leading-none",children:"EL YUNQUE"}),t[9]=R):R=t[9];const T=n.language==="en"?"field guide":"guía de campo";let D;t[10]!==T?(D=l.jsxs($,{to:"/",className:"inline-flex flex-col hover:opacity-80 transition-opacity",children:[R,l.jsx("span",{className:"text-xl font-serif italic leading-none text-stone-600 mt-0.5",children:T})]}),t[10]=T,t[11]=D):D=t[11];let I;t[12]!==e?(I=e("footerDescription","A guide to the natural wonders and history of Puerto Rico's El Yunque National Forest."),t[12]=e,t[13]=I):I=t[13];let L;t[14]!==I?(L=l.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed mt-4 font-serif max-w-sm",children:I}),t[14]=I,t[15]=L):L=t[15],t[16]!==L||t[17]!==D?(a=l.jsxs("div",{className:"col-span-1 md:col-span-2 lg:col-span-2 flex flex-col space-y-4",children:[D,L]}
1),t[16]=L,t[17]=D,t[18]=a):a=t[18];let k;t[19]!==e?(k=e("explore","Explore"),t[19]=e,t[20]=k):k=t[20],t[21]!==k?(o=l.jsx("h3",{className:"font-bold text-primary tracking-widest uppercase text-xs mb-6",children:k}),t[21]=k,t[22]=o):o=t[22],s="space-y-3",r=Array.isArray(A)&&A.filter(io).slice(0,5).map(oo),t[0]=n.language,t[1]=e,t[2]=s,t[3]=r,t[4]=o,t[5]=i,t[6]=a,t[7]=c,t[8]=d}else s=t[2],r=t[3],o=t[4],i=t[5],a=t[6],c=t[7],d=t[8];let u;t[23]!==s||t[24]!==r?(u=l.jsx("ul",{className:s,children:r}),t[23]=s,t[24]=r,t[25]=u):u=t[25];let f;t[26]!==o||t[27]!==u?(f=l.jsxs("div",{children:[o,u]}),t[26]=o,t[27]=u,t[28]=f):f=t[28];let g;t[29]!==e?(g=e("about","About"),t[29]=e,t[30]=g):g=t[30];let m;t[31]!==g?(m=l.jsx("h3",{className:"font-bold text-primary tracking-widest uppercase text-xs mb-6",children:g}),t[31]=g,t[32]=m):m=t[32];let p;t[33]!==e?(p=e("aboutUs","About Us"),t[33]=e,t[34]=p):p=t[34];let v;t[35]!==p?(v=l.jsx("li",{children:l.jsx($,{to:"/about",className:"text-sm text-foreground/70 hover:text-primary transition-colors font-medium",children:p})}),t[35]=p,t[36]=v):v=t[36];let x;t[37]!==e?(x=e("photoCredits","Photo Credits"),t[37]=e,t[38]=x):x=t[38];let y;t[39]!==x?(y=l.jsx("li",{children:l.jsx($,{to:"/photo-credits",className:"text-sm text-foreground/70 hover:text-primary transition-colors font-medium",children:x})}),t[39]=x,t[40]=y):y=t[40];let N;t[41]!==v||t[42]!==y?(N=l.jsxs("ul",{className:"space-y-3",children:[v,y]}),t[41]=v,t[42]=y,t[43]=N):N=t[43];let b;t[44]!==m||t[45]!==N?(b=l.jsxs("div",{children:[m,N]}),t[44]=m,t[45]=N,t[46]=b):b=t[46];let w;t[47]!==b||t[48]!==i||t[49]!==a||t[50]!==f?(w=l.jsxs("div",{className:i,children:[a,f,b]}),t[47]=b,t[48]=i,t[49]=a,t[50]=f,t[51]=w):w=t[51];let j;t[52]===Symbol.for("react.memo_cache_sentinel")?(j=new Date().getFullYear(),t[52]=j):j=t[52];let E;t[53]!==e?(E=e("allRightsReserved","All rights reserved."),t[53]=e,t[54]=E):E=t[54];let _;t[55]!==E?(_=l.jsx("div",{className:"mt-16 pt-8 border-t border-border border-opacity-40 flex flex-col md:flex-row justify-center items-center gap-4",children:l.jsxs("p",{className:"text-xs text-muted-foreground font-medium tracking-wide text-center",children:["© ",j," El Yunque Field Guide."," ",E]})}),t[55]=E,t[56]=_):_=t[56];let M;t[57]!==w||t[58]!==_||t[59]!==c?(M=l.jsxs("div",{className:c,children:[w,_]}),t[57]=w,t[58]=_,t[59]=c,t[60]=M):M=t[60];let C;return t[61]!==M||t[62]!==d?(C=l.jsx("footer",{className:d,children:M}),t[61]=M,t[62]=d,t[63]=C):C=t[63],C}function oo(t,e){return l.jsx("li",{children:l.jsx($,{to:t.href,className:"text-sm text-foreground/70 hover:text-primary transition-colors font-medium",children:t.title})},e)}function io(t){return t.href!=="/apoyar"}function ao(){const t=P.c(16),{locale:e}=He(),n=_e(),[s,r]=h.useState(!1),[o,i]=h.useState(!1);let a,c;t[0]!==e?(a=()=>{if(e==="es"){const b=navigator.language||navigator.userLanguage,w=b&&b.toLowerCase().startsWith("en"),j=localStorage.getItem("languageBannerDismissed");w&&!j&&(i(!0),setTimeout(()=>r(!0),50))}},c=[e],t[0]=e,t[1]=a,t[2]=c):(a=t[1],c=t[2]),h.useEffect(a,c);let d;t[3]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{localStorage.setItem("languageBannerDismissed","true"),r(!1),setTimeout(()=>i(!1),300)},t[3]=d):d=t[3];const u=d;let f;t[4]!==e||t[5]!==n.pathname?(f=()=>{localStorage.setItem("languageBannerDismissed","true"),document.cookie="cfremix_locale=en; path=/; max-age=31536000; SameSite=Lax";const b=jt(e,n.pathname),w=b.length?`/${b.join("/")}`:"/";window.location.href=_t("en",w)},t[4]=e,t[5]=n.pathname,t[6]=f):f=t[6];const g=f;if(!o)return null;const m=`fixed bottom-0 left-0 z-[100] w-full transition-transform duration-300 ease-in-out ${s?"translate-y-0":"translate-y-full"}`;let p;t[7]===Symbol.for("react.memo_cache_sentinel")?(p=l.jsx("p",{className:"text-sm font-semibold tracking-wide md:text-base",children:"Read this guide in English?"}),t[7]=p):p=t[7];let v;t[8]!==g?(v=l.jsx("button",{onClick:g,className:"whitespace-nowrap rounded-full bg-white px-4 py-2 text-xs font-bold text-[#1e4b34] shadow-sm transition hover:bg-stone-100 hover:scale-105 active:scale-95 md:text-sm",children:"Switch Language"}),t[8]=g,t[9]=v):v=t[9];let x;t[10]===Symbol.for("react.memo_cache_sentinel")?(x=l.jsx("button",{onClick:u,className:"rounded-full p-1.5 text-white/70 transition hover:bg-white/10 hover:text-white","aria-label":"Dismiss language banner",children:l.jsx(on,{className:"h-5 w-5 md:h-6 md:w-6"})}),t[10]=x):x=t[10];let y;t[11]!==v?(y=l.jsx("div",{className:"bg-[#1e4b34] text-white shadow-[0_-8px_30px_rgba(0,0,0,0.15)] pb-safe",children:l.jsxs("div",{className:"mx-auto flex max-w-7xl items-center justify-between gap-4 px-4 py-4 md:px-6",children:[p,l.jsxs("div",{className:"flex shrink-0 items-center gap-2 md:gap-4",children:[v,x]})]})}),t[11]=v,t[12]=y):y=t[12];let N;return t[13]!==m||t[14]!==y?(N=l.jsx("div",{className:m,children:y}),t[13]=m,t[14]=y,t[15]=N):N=t[15],N}const Eo={i18n:"common"},jo=()=>
1[{rel:"preconnect",href:"https://fonts.googleapis.com"},{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"},{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Lora:ital,wght@0,400..700;1,400..700&display=swap"}];function _o(t){const e=P.c(57),{children:n}=t,{locale:s}=He(),{i18n:r}=Ae();r.language!==s&&r.changeLanguage(s);const[o,i]=Rn();let a;e[0]!==o?(a=o.get("search"),e[0]=o,e[1]=a):a=e[1];const c=a==="true";let d;e[2]!==i?(d=()=>{i(uo,{preventScrollReset:!0})},e[2]=i,e[3]=d):d=e[3];const u=d;let f;e[4]!==i?(f=()=>{i(lo,{preventScrollReset:!0})},e[4]=i,e[5]=f):f=e[5];const g=f,[m,p]=h.useState(!1),v=_e();let x;e[6]===Symbol.for("react.memo_cache_sentinel")?(x=()=>{p(!1),document.body.style.overflow=""},e[6]=x):x=e[6];let y;e[7]!==v.key?(y=[v.key],e[7]=v.key,e[8]=y):y=e[8],h.useEffect(x,y);let N;e[9]!==m?(N=()=>{p(co),m?document.body.style.overflow="":document.body.style.overflow="hidden"},e[9]=m,e[10]=N):N=e[10];const b=N;let w;e[11]===Symbol.for("react.memo_cache_sentinel")?(w=()=>{p(!1),document.body.style.overflow=""},e[11]=w):w=e[11];const j=w,E=s==="es"?"es-PR":"en";let _;e[12]!==r?(_=r.dir(),e[12]=r,e[13]=_):_=e[13];let M;e[14]===Symbol.for("react.memo_cache_sentinel")?(M=l.jsxs("head",{children:[l.jsx("meta",{charSet:"utf-8"}),l.jsx("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),l.jsx("link",{rel:"icon",type:"image/png",href:"/favicon-96x96.png",sizes:"96x96"}),l.jsx("link",{rel:"icon",type:"image/svg+xml",href:"/favicon.svg"}),l.jsx("link",{rel:"shortcut icon",href:"/favicon.ico"}),l.jsx("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/apple-touch-icon.png"}),l.jsx("link",{rel:"manifest",href:"/site.webmanifest"}),l.jsx(In,{}),l.jsx(Dn,{})]}),e[14]=M):M=e[14];let C;e[15]===Symbol.for("react.memo_cache_sentinel")?(C=l.jsx(no,{}),e[15]=C):C=e[15];let A;e[16]===Symbol.for("react.memo_cache_sentinel")?(A=l.jsx("img",{src:"/elyunque_logo.svg",alt:"El Yunque Logo",className:"h-12 md:h-14 w-auto object-contain"}),e[16]=A):A=e[16];let R;e[17]===Symbol.for("react.memo_cache_sentinel")?(R=l.jsx("span",{className:"text-2xl font-bold tracking-widest text-primary uppercase font-sans leading-none",children:"EL YUNQUE"}),e[17]=R):R=e[17];const T=s==="en"?"field guide":"guía de campo";let D;e[18]!==T?(D=l.jsxs($,{className:"flex items-center gap-3 -ml-2 lg:-ml-4 hover:opacity-80 transition-opacity py-4 md:py-6 -my-4 md:-my-6 pr-4",to:"/",children:[A,l.jsxs("div",{className:"flex flex-col justify-center whitespace-nowrap",children:[R,l.jsx("span",{className:"text-xl font-serif italic leading-none text-stone-600 mt-0.5",children:T})]})]}),e[18]=T,e[19]=D):D=e[19];let I;e[20]===Symbol.for("react.memo_cache_sentinel")?(I=l.jsx(lr,{className:"h-7 w-7"}),e[20]=I):I=e[20];let L;e[21]!==b?(L=l.jsx("button",{className:"lg:hidden p-2 text-foreground",onClick:b,"aria-label":"Toggle navigation menu",children:I}),e[21]=b,e[22]=L):L=e[22];let k;e[23]===Symbol.for("react.memo_cache_sentinel")?(k=l.jsx("div",{className:"pl-4 hidden lg:block flex-1",children:l.jsx(Js,{})}),e[23]=k):k=e[23];let G;e[24]===Symbol.for("react.memo_cache_sentinel")?(G=l.jsx(be,{className:"w-5 h-5"}),e[24]=G):G=e[24];let Y;e[25]!==u?(Y=l.jsx("button",{onClick:u,className:"p-2 text-muted-foreground hover:text-foreground hover:bg-muted/50 rounded-full transition-colors","aria-label":"Open search",children:G}),e[25]=u,e[26]=Y):Y=e[26];let le;e[27]===Symbol.for("react.memo_cache_sentinel")?(le=l.jsx(it,{}),e[27]=le):le=e[27];let ee;e[28]!==Y?(ee=l.jsxs("div",{className:"hidden lg:flex ml-auto items-center space-x-4",children:[Y,le]}),e[28]=Y,e[29]=ee):ee=e[29];let te;e[30]!==D||e[31]!==L||e[32]!==ee?(te=l.jsx("header",{className:"sticky top-0 z-40 w-full border-b backdrop-blur supports-[backdrop-filter]:bg-background/80 py-4 md:py-6 shadow-sm",children:l.jsxs("div",{className:"mx-auto flex w-full max-w-7xl items-center justify-between px-4 md:px-6 lg:px-8 min-h-[48px] md:min-h-[50px]",children:[D,L,k,ee]})}),e[30]=D,e[31]=L,e[32]=ee,e[33]=te):te=e[33];let ne;e[34]!==s||e[35]!==m||e[36]!==u?(ne=m&&l.jsxs("div",{className:"lg:hidden fixed inset-0 w-full h-[100dvh] bg-background z-[200] flex flex-col overflow-hidden",children:[l.jsxs("div",{className:"flex justify-between items-center px-4 py-4 min-h-[72px] mt-1 shadow-sm relative z-10",children:[l.jsxs($,{className:"flex items-center gap-3 pl-1",to:"/",onClick:j,children:[l.jsx("img",{src:"/elyunque_logo.svg",alt:"El Yunque Logo",className:"h-12 md:h-14 w-auto object-contain"}),l.jsxs("div",{className:"flex flex-col justify-center whitespace-nowrap",children:[l.jsx("span",{className:"text-2xl font-bold tracking-widest text-primary uppercase font-sans leading-none",children:"EL YUNQUE"}),l.jsx("span",{className:"text-xl font-serif italic leading-none text-stone-600 mt-0.5",children:s==="en"?"field guide":"guía de campo"})]})]}),l.jsxs("div",{className:"flex items-center gap-1",children:[l.jsx("button",{onClick:()=>{u()},className:"p-2 text-muted-foreground hover:text-foreground hover:bg-muted/50 rounded-full transition-colors","aria-label":"Open search",children:l.jsx(be,{className:"w-6 h-6"})}),l.jsx("button",{onClick:j,"aria-label":"Close navigation menu",className:"p-2 text-foreground mr-1",children:l.jsx(ur,{className:"h-7 w-7"})})]})]}),l.jsx("div",{className:"flex-1 overflow-y-auto py-2",children:l.jsx(qs,{closeMenu:j})}),l.jsx("div",{className:"border-t border-border mt-auto bg-muted/20 p-2",children:l.jsxs("div",{className:"flex justify-between items-center bg-card p-2 px-3 rounded-xl border border-border shadow-sm",children:[l.jsx("span",{className:"text-[10px] font-bold uppercase tracking-widest text-muted-foreground ml-1",children:s==="en"?"Language":"Idioma"}),l.jsx(it,{})]})})]}
1),e[34]=s,e[35]=m,e[36]=u,e[37]=ne):ne=e[37];let se;e[38]!==n?(se=l.jsx("main",{className:"flex-1 flex flex-col w-full",children:n}),e[38]=n,e[39]=se):se=e[39];let ue,de;e[40]===Symbol.for("react.memo_cache_sentinel")?(ue=l.jsx(ro,{}),de=l.jsx(ao,{}),e[40]=ue,e[41]=de):(ue=e[40],de=e[41]);let re;e[42]!==g||e[43]!==c||e[44]!==s?(re=l.jsx(Zr,{isOpen:c,onClose:g,locale:s}),e[42]=g,e[43]=c,e[44]=s,e[45]=re):re=e[45];let fe,he;e[46]===Symbol.for("react.memo_cache_sentinel")?(fe=l.jsx(kn,{}),he=l.jsx(Tn,{}),e[46]=fe,e[47]=he):(fe=e[46],he=e[47]);let oe;e[48]!==te||e[49]!==ne||e[50]!==se||e[51]!==re?(oe=l.jsxs("body",{className:"min-h-[100dvh] flex flex-col",children:[C,te,ne,se,ue,de,re,fe,he]}),e[48]=te,e[49]=ne,e[50]=se,e[51]=re,e[52]=oe):oe=e[52];let me;return e[53]!==oe||e[54]!==E||e[55]!==_?(me=l.jsxs("html",{lang:E,dir:_,children:[M,oe]}),e[53]=oe,e[54]=E,e[55]=_,e[56]=me):me=e[56],me}function co(t){return!t}function lo(t){return t.delete("search"),t}function uo(t){return t.set("search","true"),t}const Ao=Sn(function(){const e=P.c(1);let n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n=l.jsx(On,{}),e[0]=n):n=e[0],n}),So=Mn(function(){const e=P.c(32),n=Pn(),r=_e().pathname.startsWith("/en")?"en":"es";if(Fn(n)&&n.status===404){let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=l.jsxs("div",{className:"absolute inset-0 z-0",children:[l.jsx("img",{src:"/images/hero/rainforest-main.jpg",alt:"Rainforest",className:"w-full h-full object-cover opacity-60"}),l.jsx("div",{className:"absolute inset-0 bg-background/70 backdrop-blur-sm"})]}),e[0]=m):m=e[0];const p=r==="en"?"Lost in the Forest?":"¿Perdido en el bosque?";let v;e[1]!==p?(v=l.jsx("h1",{className:"text-4xl md:text-6xl font-serif font-bold text-primary drop-shadow-sm",children:p}),e[1]=p,e[2]=v):v=e[2];const x=r==="en"?"Looks like this trail is overgrown.":"Parece que este vereda está cubierto de vegetación.";let y;e[3]!==x?(y=l.jsx("p",{className:"text-xl md:text-2xl text-foreground font-medium drop-shadow-sm",children:x}),e[3]=x,e[4]=y):y=e[4];const N=r==="en"?"The old elYunque.com has been completely rebuilt. The page you're looking for might have moved or no longer exists.":"El antiguo elYunque.com ha sido completamente reconstruido. La página que buscas podría haberse movido o ya no existir.";let b;e[5]!==N?(b=l.jsx("p",{className:"text-muted-foreground text-lg mb-8 max-w-xl mx-auto drop-shadow-sm bg-background/50 p-4 rounded-xl backdrop-blur-md",children:N}),e[5]=N,e[6]=b):b=e[6];let w;e[7]===Symbol.for("react.memo_cache_sentinel")?(w=l.jsx(ft,{className:"mr-2 w-5 h-5"}),e[7]=w):w=e[7];const j=r==="en"?"Return to Trailhead":"Volver al inicio de la vereda";let E;e[8]!==j?(E=l.jsx(Se,{asChild:!0,size:"lg",className:"rounded-full shadow-lg",children:l.jsxs($,{to:"/",children:[w,j]})}),e[8]=j,e[9]=E):E=e[9];let _;e[10]===Symbol.for("react.memo_cache_sentinel")?(_=l.jsx(be,{className:"mr-2 w-5 h-5"}),e[10]=_):_=e[10];const M=r==="en"?"Search the Field Guide":"Buscar en la Guía de Campo";let C;e[11]!==M?(C=l.jsx(Se,{asChild:!0,variant:"outline",size:"lg",className:"rounded-full bg-background/60 backdrop-blur shadow-lg border-primary/20 hover:bg-primary/10",children:l.jsxs(Ln,{to:"?search=true",children:[_,M]})}),e[11]=M,e[12]=C):C=e[12];let A;e[13]!==C||e[14]!==E?(A=l.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-4 mt-8",children:[E,C]}),e[13]=C,e[14]=E,e[15]=A):A=e[15];let R;return e[16]!==A||e[17]!==v||e[18]!==y||e[19]!==b?(R=l.jsxs("div",{className:"relative flex-1 flex flex-col items-center justify-center min-h-[70vh] py-16 px-4 overflow-hidden w-full",children:[m,l.jsxs("div",{className:"relative z-10 max-w-2xl text-center space-y-6",children:[v,y,b,A]})]}),e[16]=A,e[17]=v,e[18]=y,e[19]=b,e[20]=R):R=e[20],R}const o=r==="en"?"Something went wrong":"Algo salió mal";let i;e[21]!==o?(i=l.jsx("h1",{className:"text-3xl font-bold text-destructive mb-4",children:o}),e[21]=o,e[22]=i):i=e[22];const a=r==="en"?"An unexpected error occurred. Please try again later.":"Ocurrió un error inesperado. Por favor, inténtalo de nuevo más tarde.";let c;e[23]!==a?(c=l.jsx("p",{className:"text-muted-foreground mb-6",children:a}),e[23]=a,e[24]=c):c=e[24];let d;e[25]===Symbol.for("react.memo_cache_sentinel")?(d=l.jsx(ft,{className:"mr-2 w-4 h-4"}),e[25]=d):d=e[25];const u=r==="en"?"Go Home":"Ir al Inicio";let f;e[26]!==u?(f=l.jsx(Se,{asChild:!0,children:l.jsxs($,{to:"/",children:[d,u]})}),e[26]=u,e[27]=f):f=e[27];let g;return e[28]!==i||e[29]!==c||e[30]!==f?(g=l.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center min-h-[50vh] p-8 text-center",children:[i,c,f]}),e[28]=i,e[29]=c,e[30]=f,e[31]=g):g=e[31],g});export{So as ErrorBoundary,_o as Layout,Ao as default,Eo as handle,jo as links};

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.