import{a as e}from"./rolldown-runtime-CNC7AqOf.js";import{n as t,r as n,t as r}from"./compiler-runtime-BUESly0A.js";import{n as i,t as a}from"./typed-query-DE230XJj.js";import{p as o,u as s}from"./index-BnZjJvcS.js";import{n as c}from"./clsx-CIqcJ5es.js";var l=c(`star`,[[`path`,{d:`M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z`,key:`r04s7s`}]]),u=r(),d=t();function f(){let e=(0,u.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,d.jsxs)(`a`,{href:`https://github.com/conao3/rust-sa`,target:`_blank`,rel:`noreferrer`,className:`inline-flex items-center gap-1.5 text-mute hover:text-ink font-mono text-xs flex-shrink-0`,children:[(0,d.jsx)(l,{size:14,"aria-hidden":`true`}),`GitHub`]}),e[0]=t):t=e[0],t}var p=e(n(),1);function m(e,t){let n=(0,u.c)(9),[r,i]=(0,p.useState)(t),a,o;n[0]===e?(a=n[1],o=n[2]):(a=()=>{if(typeof window>`u`)return;let t=window.localStorage.getItem(e);t&&i(t)},o=[e],n[0]=e,n[1]=a,n[2]=o),(0,p.useEffect)(a,o);let s,c;n[3]!==e||n[4]!==r?(s=()=>{typeof window>`u`||window.localStorage.setItem(e,r)},c=[e,r],n[3]=e,n[4]=r,n[5]=s,n[6]=c):(s=n[5],c=n[6]),(0,p.useEffect)(s,c);let l;return n[7]===r?l=n[8]:(l=[r,i],n[7]=r,n[8]=l),l}function h(e,t){let n=(0,u.c)(4),r,i;n[0]!==e||n[1]!==t?(r=()=>{let n=document.documentElement;return n.setAttribute(e,t),()=>n.removeAttribute(e)},i=[e,t],n[0]=e,n[1]=t,n[2]=r,n[3]=i):(r=n[2],i=n[3]),(0,p.useEffect)(r,i)}function g(e){return e===`dark`?`dark`:`light`}function _(){let e=(0,u.c)(9),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={fetchPolicy:`cache-first`},e[0]=t):t=e[0];let{data:n}=i(s,t),r;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(r={refetchQueries:[{query:s}],awaitRefetchQueries:!0},e[1]=r):r=e[1];let[c]=a(o,r),l=n?.preferences.theme,d;e[2]===l?d=e[3]:(d=g(l),e[2]=l,e[3]=d);let f=d,p;e[4]===c?p=e[5]:(p=e=>{c({variables:{theme:e}})},e[4]=c,e[5]=p);let m=p,h;return e[6]!==m||e[7]!==f?(h=[f,m],e[6]=m,e[7]=f,e[8]=h):h=e[8],h}export{f as i,m as n,h as r,_ as t};