1import{c as e,n as t,t as n}from"./jsx-runtime-CfjKz_hj.js";import{i as r}from"./navigation-p0Ojy-zr.js";import{t as i}from"./app-context-BjAijLOB.js";import{t as a}from"./dist-CBkF7Hph.js";import{t as o}from"./use-swr-emll9s78-DFTfnjA5.js";import{n as s,t as c}from"./posthog-provider-zkoVlfzI.js";import{n as l}from"./api-Bm8GMrGn.js";import{t as u}from"./user-context-pa2mUzkz.js";var d=e(t());function f(e={}){let{nonce:t,onScriptLoadSuccess:n,onScriptLoadError:r}=e,[i,a]=(0,d.useState)(!1),o=(0,d.useRef)(n);o.current=n;let s=(0,d.useRef)(r);return s.current=r,(0,d.useEffect)(()=>{let e=document.createElement(`script`);return e.src=`https://accounts.google.com/gsi/client`,e.async=!0,e.defer=!0,e.nonce=t,e.onload=()=>{var e;a(!0),(e=o.current)==null||e.call(o)},e.onerror=()=>{var e;a(!1),(e=s.current)==null||e.call(s)},document.body.appendChild(e),()=>{document.body.removeChild(e)}},[t]),i}var p=(0,d.createContext)(null);function m({clientId:e,nonce:t,onScriptLoadSuccess:n,onScriptLoadError:r,children:i}){let a=f({nonce:t,onScriptLoadSuccess:n,onScriptLoadError:r}),o=(0,d.useMemo)(()=>({clientId:e,scriptLoadedSuccessfully:a}),[e,a]);return d.createElement(p.Provider,{value:o},i)}var h=n();function g({children:e,locale:t,kind:n=`APP`,host:o=``}){let l=r().startsWith(`/gl/`);return(0,h.jsx)(s,{children:(0,h.jsx)(i,{value:{kind:n,locale:t,host:o,isGlobal:l},children:(0,h.jsx)(m,{clientId:`665130478154-4072qf8ic3c2uoodc3vgpo47sorjd9so.apps.googleusercontent.com`,children:(0,h.jsxs)(_,{children:[(0,h.jsx)(a,{containerStyle:{zIndex:999999999},toastOptions:{className:`!bg-background !border !border-secondary !text-foreground !text-sm`}}),(0,h.jsxs)(u,{children:[(0,h.jsx)(c,{}),e]})]})})})})}function _({children:e}){let t=l();return(0,h.jsx)(o,{value:{revalidateOnFocus:!0,revalidateOnMount:!0,refreshWhenHidden:!1,fetcher:async e=>await t.get(e)},children:e})}export{g as t};
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.