1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="4e7357b5-345b-4f0b-bf85-9a77a22702d7",e._sentryDebugIdIdentifier="sentry-dbid-4e7357b5-345b-4f0b-bf85-9a77a22702d7")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[190,272,465,741,4345,4720,5108,6458,7454,8414,9179,9622,9978],{2824:(e,n,a)=>{"use strict";a.d(n,{MobileNavToggle:()=>c});var t=a(5155),i=a(2115),s=a(2619),r=a.n(s),l=a(6769),o=a(4947);function c(e){let{locale:n,links:a}=e,[s,c]=(0,i.useState)(!1);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{type:"button","aria-label":"Menu","aria-expanded":s,onClick:()=>c(e=>!e),className:"flex h-10 w-10 items-center justify-center rounded-full hover:bg-surface-container-high md:hidden",children:(0,t.jsx)("span",{className:"material-symbols-outlined",children:s?"close":"menu"})}),s&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"fixed inset-0 top-nav-height z-30 bg-black/20 md:hidden","aria-hidden":!0,onClick:()=>c(!1)}),(0,t.jsx)("div",{className:"fixed inset-x-0 top-nav-height z-40 border-b border-outline-variant bg-surface md:hidden",children:(0,t.jsxs)("nav",{className:"mx-auto flex max-w-md flex-col gap-sm px-margin-mobile py-md",children:[a.map(e=>(0,t.jsx)(r(),{href:e.href,onClick:()=>c(!1),className:"rounded-xl px-md py-sm text-body-lg text-on-surface hover:bg-pastel-mint",children:e.label},e.href)),(0,t.jsx)("div",{className:"my-sm h-px bg-outline-variant"}),(0,t.jsx)("div",{onClick:()=>c(!1),children:(0,t.jsx)(o.HeaderAuth,{locale:n,variant:"mobile"})}),(0,t.jsx)("div",{className:"mt-sm flex justify-center",children:(0,t.jsx)(l.LanguageSwitcher,{current:n,onAfterChange:()=>c(!1)})})]})})]})]})}},4947:(e,n,a)=>{"use strict";a.d(n,{HeaderAuth:()=>c});var t=a(5155),i=a(2619),s=a.n(i),r=a(2115),l=a(4359),o=a(8564);function c(e){let{locale:n,variant:a}=e,[i,c]=(0,r.useState)("anon");if((0,r.useEffect)(()=>{let e;try{e=(0,l.k)("https://avpzfqhrcylkdhkeowyy.supabase.co","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImF2cHpmcWhyY3lsa2Roa2Vvd3l5Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3ODM4NTM5NTgsImV4cCI6MjA5OTQyOTk1OH0.PV8EvrLmcDvVrHcqb859c_Tb8fYbrXBQwW3Q4-G2B3M")}catch(e){return}let n=!0;async function a(){try{let{data:{user:a}}=await e.auth.getUser();if(!n)return;if(!a)return void c("anon");let{data:t}=await e.from("profiles").select("is_admin").eq("id",a.id).maybeSingle();if(!n)return;c((null==t?void 0:t.is_admin)?"admin":"user")}catch(e){n&&c("anon")}}a();let{data:t}=e.auth.onAuthStateChange(()=>a());return()=>{n=!1,t.subscription.unsubscribe()}},[]),"anon"===i)return null;let d="admin"===i,u=d?"/admin":"/app",m=d?(0,o.t)(n,"nav.admin"):(0,o.t)(n,"nav.account");return"mobile"===a?(0,t.jsx)(s(),{href:u,className:"ui-button-ghost",children:m}):(0,t.jsx)(s(),{href:u,className:"ui-button-ghost !min-h-[42px] !px-md !text-label-sm",children:m})}},6769:(e,n,a)=>{"use strict";a.d(n,{LanguageSwitcher:()=>o});var t=a(5155),i=a(63),s=a(2115),r=a(8564);let l=["/blog","/resources","/tags","/p","/sign-in","/sign-up",""];function o(e){var n;let{current:a,variant:o="default",onAfterChange:c}=e,d=(0,i.useRouter)(),u=null!=(n=(0,i.usePathname)())?n:"/",[,m]=(0,s.useTransition)(),h="onDark"===o;return(0,t.jsxs)("div",{className:"flex items-center gap-xs","aria-label":"Language",children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"material-symbols-outlined text-[18px] ".concat(h?"text-on-primary/70":"text-on-surface-variant"),children:"language"}),(0,t.jsx)("select",{name:"locale",value:a,onChange:e=>(function(e){if(!(0,r.Zd)(e)||e===a){null==c||c();return}document.cookie="linen_locale=".concat(e,"; path=/; max-age=").concat(31536e3,"; samesite=lax");let n=u.split("/").filter(Boolean),t=u;n.length>0&&(0,r.Zd)(n[0])?(n[0]=e,t="/"+n.join("/")):l.some(e=>""===e?"/"===u:u.startsWith(e))&&(t="/".concat(e).concat("/"===u?"":u)),m(()=>{d.replace(t),d.refresh()}),null==c||c()})(e.target.value),className:"rounded-full border px-sm py-1 text-label-sm focus:outline-none focus:ring-2 focus:ring-accent/40 ".concat(h?"border-on-primary/25 bg-primary text-on-primary [&>option]:text-on-surface":"border-outline-variant bg-surface text-on-surface"),children:r.YZ.map(e=>(0,t.jsx)("option",{value:e,children:r.vK[e]},e))})]})}},7674:(e,n,a)=>{Promise.resolve().then(a.t.bind(a,2619,23)),Promise.resolve().then(a.bind(a,4947)),Promise.resolve().then(a.bind(a,6769)),Promise.resolve().then(a.bind(a,2824))}},e=>{e.O(0,[5730,2619,4360,8564,5449,8441,2432,7358],()=>e(e.s=7674)),_N_E=e.O()}]);
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.