1import{i as e}from"./rolldown-runtime-aKtaBQYM.js";import{i as t,r as n}from"./framework-dolv6-nz.js";import{$ as r,tt as i}from"./vinext-LwwJGGFw.js";import a from"./script-CwKXOkFr.js";var o=e(t(),1);function s(e,t){if(typeof t!=`string`||t.trim().length===0)throw Error(`${e} requires a non-empty CSP nonce; received value: ${String(t)}`);return t}var c=n(),l=`G-6FMX5JSNNX`,u=!!l;function d({nonce:e}={}){let t=r(),n=i(),d=(0,o.useRef)(!1),f=n.toString();(0,o.useEffect)(()=>{if(!u||!t)return;if(!d.current){d.current=!0;return}if(typeof window.gtag!=`function`)return;let e=f?`${t}?${f}`:t;window.gtag(`config`,l,{page_path:e})},[t,f]);let p=e===void 0?void 0:s(`GoogleAnalytics`,e);return u?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(a,{src:`https://www.googletagmanager.com/gtag/js?id=${l}`,strategy:`afterInteractive`,nonce:p}),(0,c.jsx)(a,{id:`google-analytics`,strategy:`afterInteractive`,nonce:p,children:` 2 window.dataLayer = window.dataLayer || []; 3 function gtag(){window.dataLayer.push(arguments);} 4 window.gtag = gtag; 5 if (!window.__tokenMakerGtagConfigured) { 6 window.__tokenMakerGtagConfigured = true; 7 gtag('js', new Date()); 8 gtag('config', '${l}'); 9 } 10 `})]}):null}export{d as GoogleAnalytics};
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.