PageSourceSearch

https://private.ai/assets/posthogClient-C_cUNe_Y.js

js private.ai collected 2026-10-05 12:26:57 UTC 7,262 bytes, 1 lines download raw bytes

1import{y as $,W as h,z as W,b as z,A as X}from"./Spinner-l5zQ3ZvN.js";const G=[{slug:"night",theme:"dark",live:!0},{slug:"calm",theme:"light",live:!0},{slug:"product",theme:"dark",live:!0},{slug:"switch",theme:"light",live:!0},{slug:"health",theme:"light",live:!0},{slug:"ask",theme:"light",live:!0},{slug:"contained",theme:"light",live:!0},{slug:"defend",theme:"light",live:!0},{slug:"no-cloud",theme:"dark",live:!0},{slug:"no-trace",theme:"dark",live:!0},{slug:"no-profile",theme:"dark",live:!0},{slug:"legal",theme:"light",live:!0},{slug:"clinical",theme:"light",live:!0}],J=G.map(t=>t.slug),L="night",Z=G,D=new Map(Z.map(t=>[t.slug,t])),Q=t=>t?D.get(t):void 0,C=D.get(L);if(!C)throw new Error(`lp-slugs.mjs: CHAMPION_SLUG '${L}' is not one of ${J.join(", ")}`);const q=()=>C,tt=t=>{if(t==="/lp"||t==="/lp/")return O();const e=t.match(/^\/lp\/([^/]+)\/?$/);if(!e)return null;const n=Q(e[1]);return n?.live?n:O()},O=()=>q(),I=["utm_source","utm_medium","utm_campaign","utm_term","utm_content"],k=["gclid","fbclid","msclkid","gbraid","wbraid","ttclid","twclid"],et=["ft_utm_source","ft_utm_medium","ft_utm_campaign","ft_utm_term","ft_utm_content","ft_lp_variant"],E="strongwall_utm_params",v="strongwall_utm_timestamp",nt=30,N=200,rt=/^[A-Za-z0-9_.-]+$/,ot=/^[A-Za-z0-9_-]{3,16}$/;let d=null;const st=()=>{try{localStorage.removeItem(E),localStorage.removeItem(v)}catch{}},at=()=>{try{const t=localStorage.getItem(E),e=localStorage.getItem(v);if(!t||!e)return null;const n=parseInt(e,10);return!Number.isFinite(n)||Date.now()-n>nt*24*60*60*1e3?(st(),null):{value:JSON.parse(t),at:n}}catch{return null}},it=t=>{try{localStorage.setItem(E,JSON.stringify(t.value)),localStorage.setItem(v,String(t.at))}catch{}},m=()=>d??at(),p=(t,e)=>{d={value:t,at:e},it(d)},Y=()=>m()?.value??null,Lt=t=>{const e=new URLSearchParams(t),n={};for(const r of I){const o=e.get(r)?.trim();o&&(n[r]=o.slice(0,N))}for(const r of k){const o=e.get(r)?.trim();o&&o.length<=N&&rt.test(o)&&(n[r]=o)}return n},ct=t=>{if(!t)return null;const e={};for(const n of et)t[n]&&(e[n]=t[n]);return Object.keys(e).some(n=>n!=="ft_lp_variant")?e:null},lt=t=>{const e={};for(const n of I)t[n]&&(e[`ft_${n}`]=t[n]);return e},Dt=t=>{if(Object.keys(t).length===0)return;const e=Y(),n={...t};e?.lp_variant&&(n.lp_variant=e.lp_variant),e?.ft_lp_variant&&(n.ft_lp_variant=e.ft_lp_variant),e?.promo_code&&(n.promo_code=e.promo_code),e?.referral_code&&(n.referral_code=e.referral_code),Object.assign(n,ct(e)??lt(t)),p(n,Date.now())},Ct=t=>{const e=m();e?.value.promo_code!==t&&p({...e?.value??{},promo_code:t},e?.at??Date.now())},kt=t=>{if(!t)return null;const e=t.trim();return ot.test(e)?e:null},Yt=t=>{const e=m();e?.value.referral_code!==t&&p({...e?.value??{},referral_code:t},e?.at??Date.now())},Ft=t=>{const e=m();e&&e.value.lp_variant===t&&e.value.ft_lp_variant||p({...e?.value??{},lp_variant:t,ft_lp_variant:e?.value.ft_lp_variant??t},e?.at??Date.now())},F="phc_rZddHQWaNiyVpuPP235mB3ddRiUC2B3thBrkoFhG9HPa",u="https://ph.strongwall.ai".replace(/\/$/,""),ut=W,w="ph_mini_session_id",y="ph_mini_lp_variant",H="ph_mini_lp_exposed",f="ph_mini_referrer",_="ph_mini_signup_step",P="ph_mini_signup_done",g="ph_mini_signup_handoff",_t=null,mt=t=>null;let s=!1;const b=()=>typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,12)}`,pt=t=>{try{let e=sessionStorage.getItem(t);return e||(e=b(),sessionStorage.setItem(t,e)),e}catch{return b()}},gt=()=>h+X(),Ht=()=>{const t=$();return t?h+t:null},dt=/^\/r\/[^/]+/,S=t=>t.replace(dt,"/r/:code"),ft=new Set([...I,...k]),V=t=>{if(!t)return"";const e=new URLSearchParams;new URLSearchParams(t).forEach((r,o)=>{ft.has(o)&&e.append(o,r)});const n=e.toString();return n?`?${n}`:""},K=()=>Y()??{},St=()=>Object.fromEntries(Object.entries(K()).filter(([t])=>t.startsWith("utm_"))),ht=()=>{const t=K().lp_variant;if(t)return t;try{return sessionStorage.getItem(y)}catch{return null}},It=()=>{const t=ht();return t?{lp_variant:t}:{}},i="$direct",Et=()=>{try{const e=sessionStorage.getItem(f);if(e)return e}catch{}let t=i;try{const e=document.referrer;e&&new URL(e).host!==window.location.host&&(t=e)}catch{}try{sessionStorage.setItem(f,t)}catch{}return t},vt=()=>{const t=Et();if(t===i)return{$referrer:i,$referring_domain:i};try{return{$referrer:t,$referring_domain:new URL(t).hostname}}catch{return{$referrer:t,$referring_domain:i}}},M=()=>({...vt(),...St(),...It()}),l=(t,e,n={})=>
1{if(!u)return;const{identity:r}=n,o={api_key:F,event:t,distinct_id:r?r.distinctId:gt(),timestamp:new Date().toISOString(),properties:{brand:z.id,$session_id:r?r.sessionId:pt(w),$current_url:window.location.origin+S(window.location.pathname)+V(window.location.search),$pathname:S(window.location.pathname),$lib:"sw-mini-web",...r?r.context:M(),...e}},R=`${u}/e/`,T=JSON.stringify(o);if(n.beacon)try{if(typeof navigator<"u"&&typeof navigator.sendBeacon=="function"&&navigator.sendBeacon(R,new Blob([T],{type:"text/plain"})))return}catch{}fetch(R,{method:"POST",headers:{"Content-Type":"application/json"},body:T,keepalive:!0}).catch(()=>{})},wt={"/signup":"account_type","/signup/email-password":"email_password","/signup/plans":"plans","/signup/payment":"payment","/signup/manual-payment":"manual_payment"},x="/signup/success",yt=["signup_completed","signup_manual_payment_created"],A=t=>wt[t.replace(/\/+$/,"")||"/"]??null,B=()=>{try{sessionStorage.setItem(P,"1")}catch{}},Vt=()=>{if(s)try{sessionStorage.setItem(g,"1")}catch{}},j=()=>{try{sessionStorage.removeItem(g)}catch{}},Pt=t=>{if(t.replace(/\/+$/,"")===x){B();return}const e=A(t);if(e){j();try{const n=sessionStorage.getItem(_);sessionStorage.setItem(_,e),n||l("signup_started",{step:e})}catch{}}},At=()=>{if(!s)return;const t=A(window.location.pathname);if(t){try{if(!sessionStorage.getItem(_)||sessionStorage.getItem(P)||sessionStorage.getItem(g))return}catch{return}l("signup_abandoned",{last_step:t},{beacon:!0})}},Rt=t=>{t.persisted&&A(window.location.pathname)&&j()};let U=!1;const Tt=()=>{U||(U=!0,window.addEventListener("pagehide",At),window.addEventListener("pageshow",Rt))};let c=null;const Kt=()=>{if(!(s||typeof window>"u"||!F||!u)&&(s=!0,a=null,Tt(),c)){const{pathname:t,search:e}=c;c=null,$t(t,e)}},Ot=new Set(["signup_account_created","signup_completed","signup_manual_payment_created"]),Nt=1e4;let a=null;const bt=()=>{if(a=null,!!u)try{const t=$(),e=sessionStorage.getItem(w);if(!t||!e)return;a={distinctId:h+t,sessionId:e,context:M(),until:Date.now()+Nt}}catch{}},Mt=()=>{s&&bt(),s=!1,c=null;try{sessionStorage.removeItem(ut),sessionStorage.removeItem(w),sessionStorage.removeItem(y),sessionStorage.removeItem(H),sessionStorage.removeItem(f),sessionStorage.removeItem(_),sessionStorage.removeItem(P),sessionStorage.removeItem(g)}catch{}},Ut=t=>tt(t)?.slug??null,$t=(t,e="")=>{if(!s){c={pathname:t,search:e};return}const n=Ut(t);if(n)try{sessionStorage.setItem(y,n);const r=mt(n);_t&&r&&sessionStorage.getItem(H)}catch{}t.replace(/\/+$/,"")!==x&&l("$pageview",{path:S(t)+V(e)}),Pt(t)},xt=(t,e)=>{if(!s){a&&Date.now()<a.until&&Ot.has(t)&&l(t,e??{},{beacon:!0,identity:a});return}yt.includes(t)&&B(),l(t,e??{})};export{L as C,Ft as a,Dt as b,xt as c,Ct as d,Yt as e,$t as f,Ht as g,Q as h,Kt as i,tt as l,Vt as m,kt as n,Lt as p,Y as r,Mt as s};

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.