1const e="new_yasno_ref",t="yasnorefs",n=()=>JSON.parse(localStorage.getItem(t)||"[]"),o=()=>{var o,r,i;if("therapist"===(null==(r=null==(o=window.App)?void 0:o.user)?void 0:r.role))return;if(0===document.referrer.lastIndexOf("https://yasno.live",0)||0===document.referrer.lastIndexOf("https://beta.yasno.live",0)||0===document.referrer.lastIndexOf("https://demo.yasno.live",0)||0===document.referrer.lastIndexOf("http://localhost",0))return;let l=document.referrer;if(!l&&!new URLSearchParams(document.location.search).get("utm_source"))return;if(l.includes("new.yasno.live")){const t=null==(i=document.cookie.split("; ").find(t=>t.startsWith(e)))?void 0:i.split("=")[1];t&&(l=t,document.cookie=`${e}=; path=/; max-age=0;`)}const s=n();s.push({d:Math.round((new Date).getTime()/1e3),u:document.location.href,r:l}),s.length>200&&s.shift(),localStorage.setItem(t,JSON.stringify(s))},r=()=>{var e;if(!(()=>{var e,t,n,o;return(null==(t=null==(e=window.App)?void 0:e.user)?void 0:t.id)&&(null==(o=null==(n=window.App)?void 0:n.user)?void 0:o.role)&&"0"!==window.App.user.id&&"client"===window.App.user.role})())return;const o=n();o.length&&fetch("/trails",{method:"POST",headers:{"Content-Type":"application/json","X-CSRF-Token":(null==(e=document.querySelector('meta[name="csrf-token"]'))?void 0:e.getAttribute("content"))||""},body:JSON.stringify({trails:o})}).then(e=>{e.ok&&localStorage.setItem(t,JSON.stringify([]))}).catch(()=>{})};document.addEventListener("DOMContentLoaded",()=>{o(),r()}); 2//# sourceMappingURL=trails-Dx_yhHZW.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.