1import{r as e}from"./rolldown-runtime-B0Z9INg1.js";import{d as t}from"./site-BE111Axk.js";import{n}from"./appShell-CVrY4tb3.js";import{a as r,i,n as a,r as o}from"./botDetection-BPthuPUv.js";function s(e){let n=(e??(typeof window>`u`?``:window.location.hostname)).toLowerCase();if(!n)return!1;let r=`www.igeeksblog.com`;try{r=new URL(t.siteUrl).hostname.toLowerCase()}catch{}return n===r||n===r.replace(/^www\./,``)}var c=`__IGB_AD_PREVIEW__`,l=!1;function u(e){typeof window>`u`||(l=e)}function d(){return l?!0:typeof window>`u`?!1:window[c]===!0}function f(e){return s(e)||d()}var p=`G-6GSSMZ8PNN`,m=`https://www.googletagmanager.com/gtag/js?id=${p}`,h=`__igbGaEarly`,g=`__igbGaEarlyPageView`,_=`__igbGaEarlyPending`,v=`(function(w,d){try{ 2var h=location.hostname;if(h!=="www.igeeksblog.com"&&w[${JSON.stringify(c)}]!==true)return; 3var ua=(navigator.userAgent||"").toLowerCase(); 4var ver=${JSON.stringify(o)}.some(function(b){return ua.indexOf(b)>-1}); 5if(!ver&&(new RegExp(${JSON.stringify(i)}).test(ua)||new RegExp(${JSON.stringify(r)}).test(ua)))return; 6if(typeof w.gtag==="function")return; 7w.dataLayer=w.dataLayer||[];w.gtag=function(){w.dataLayer.push(arguments)}; 8w.gtag("js",new Date()); 9w.gtag("config",${JSON.stringify(p)},{send_page_view:false,page_changes_history:false}); 10w.__gaConfigCount=(w.__gaConfigCount||0)+1;(w.__gaConfigSources=w.__gaConfigSources||[]).push("head"); 11w[${JSON.stringify(h)}]=true; 12var app=ua.indexOf("despia")>-1||/[?&]app=1(&|$)/.test(location.search);try{app=app||w.localStorage.getItem("igb_in_app")==="1"}catch(_){} 13w.gtag("set","user_properties",{app_shell:app?(ua.indexOf("despia")>-1&&ua.indexOf("android")>-1?"despia-android":"despia-ios"):"web"}); 14w[${JSON.stringify(_)}]=true; 15var t=d.title;if(t){var c=d.querySelector('link[rel="canonical"]'); 16w.gtag("event","page_view",{page_title:t,page_location:(c&&c.href)||location.href}); 17w[${JSON.stringify(g)}]=true;} 18}catch(_){}})(window,document);`;function y(e){return typeof window>`u`?!1:window[e]===!0}var b=()=>y(h),x=()=>y(g),S=e({initGA:()=>O,setDefaultConsent:()=>E,trackEvent:()=>A,trackPageView:()=>k,updateConsent:()=>D}),C=`G-6GSSMZ8PNN`,w=!1;function T(e){if(typeof window>`u`)return;let t=window;t.__gaConfigCount=(t.__gaConfigCount??0)+1,(t.__gaConfigSources??=[]).push(e),t.__gaConfigCount>1&&console.warn(`[Analytics] gtag config applied ${t.__gaConfigCount}Ã for ${C}`,t.__gaConfigSources)}function E(e){if(typeof window>`u`)return;window.dataLayer=window.dataLayer||[],window.gtag||(window.gtag=function(){window.dataLayer.push(arguments)});let t={ad_storage:`denied`,ad_user_data:`denied`,ad_personalization:`denied`,analytics_storage:`denied`,wait_for_update:500,...e};window.gtag(`consent`,`default`,t),console.log(`[Analytics] Consent defaults set`)}function D(e){typeof window>`u`||!window.gtag||(window.gtag(`consent`,`update`,e),console.log(`[Analytics] Consent updated`,e))}function O(){if(w||typeof window>`u`||a()||!f())return;if(b()){w=!0;return}if(typeof window.gtag==`function`){w=!0,window.gtag(`config`,C,{send_page_view:!1,page_changes_history:!1}),T(`pre-existing-gtag`),console.log(`[Analytics] gtag already present â applied config`);return}if(document.querySelector(`script[src*="googletagmanager.com/gtag/js?id=${C}"]`)){let e=0,t=setInterval(()=>{typeof window.gtag==`function`&&(window.gtag(`config`,C,{send_page_view:!1,page_changes_history:!1}),T(`late-gtag`),console.log(`[Analytics] gtag became available â applied config`),clearInterval(t)),++e>10&&(console.warn(`[Analytics] gtag did not become available after 3s`),clearInterval(t))},300);w=!0;return}window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},window.gtag(`js`,new Date),window.gtag(`config`,C,{send_page_view:!1,page_changes_history:!1}),T(`bootstrap`);let e=document.createElement(`script`);e.async=!0,e.crossOrigin=`anonymous`,e.src=`https://www.googletagmanager.com/gtag/js?id=${C}`,e.onerror=()=>{console.warn(`[Analytics] Failed to load gtag.js â ad blocker or network issue`)},document.head.appendChild(e);try{window.gtag(`set`,`user_properties`,{app_shell:n()})}catch{}w=!0,console.log(`[Analytics] GA4 initialised`)}function k(e){if(!w||typeof window>`u`)return;let t=e?.page_title||document.title||``,n=document.querySelector(`link[rel="canonical"]`),r=e?.page_location||n?.href||window.location.href;t&&window.gtag(`event`,`page_view`,{page_title:t,page_location:r})}function A(e,t){!w||typeof window>`u`||window.gtag(`event`,e,t)}export{v as a,x as c,c as d,k as i,f as l,O as n,_ as o,A as r,m as s,S as t,u};
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.