1import{r as c}from"./index-CtZS8l_c.js";import{r as d,d as u,b as w,c as h,m as l,w as y}from"./platform-channel-B-PyzZeB.js";function v(){const[f,p]=c.useState(()=>typeof window>"u"?"":window.location.pathname);return c.useEffect(()=>{if(typeof window>"u")return;const o=()=>p(window.location.pathname);window.addEventListener("popstate",o);const t=window.history.pushState;return window.history.pushState=function(...n){const r=t.apply(this,n);return window.dispatchEvent(new Event("popstate")),r},()=>{window.removeEventListener("popstate",o),window.history.pushState=t}},[]),c.useEffect(()=>{if(!(typeof window>"u"))try{const o=new URL(window.location.href),t=d(),s=u(o.searchParams),n=w(document.referrer||null),r=h(o.pathname),i=Date.now(),a=[];s&&a.push({platform:s,source:"utm",ts:i}),n&&a.push({platform:n,source:"referrer",ts:i}),r&&a.push({platform:r,source:"path",ts:i});let e=t;for(const m of a)e=l(e,m);e&&(!t||t.platform!==e.platform||t.source!==e.source)&&y(e)}catch{}},[f]),null}export{v as PlatformChannelDetector}; 2//# sourceMappingURL=PlatformChannelDetector-Cm_rEcpE.js.map
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.