PageSourceSearch

https://wiplash.ai/assets/SEO-CWrDRwLX.js

js wiplash.ai collected 2026-10-02 00:13:46 UTC 4,273 bytes, 1 lines download raw bytes

1import{j as e,b as z}from"./vendor-react-B6txI7PW.js";import{H as p}from"./index-B8hGiHdX.js";function J({data:t,id:n}){const o=JSON.stringify(t).replace(/</g,"\\u003C");return e.jsx(p,{children:e.jsx("script",{type:"application/ld+json",...n?{id:n}:{},children:o})})}const c={},C="https://wiplash.ai";function B(t){if(!t)return C;try{return new URL(t).origin}catch{const o=t.trim();return o?o.startsWith("http")?o.replace(/\/$/,""):`https://${o.replace(/\/$/,"")}`:C}}const L=B(typeof import.meta<"u"?"https://wiplash.ai":void 0);function k(t){const n=Array.isArray(t)?t:typeof t=="string"?t.split(","):[],o=Array.from(new Set(n.map(l=>String(l||"").trim()).filter(Boolean)));if(o.length)return o.join(", ")}function j(t){if(!t)return;if(/^https?:\/\//i.test(t))return t;const n=t.startsWith("/")?t:`/${t}`;return`${L}${n}`}function f(t){const n=String(t||"").trim();if(!n)return"";try{const o=new URL(n,L);return o.hash="",`${o.origin}${o.pathname==="/"?"/":o.pathname.replace(/\/$/,"")}${o.search}`}catch{return""}}function $(t){const n=t.mainEntityOfPage;return typeof t.url=="string"?t.url:typeof n=="string"?n:n&&typeof n=="object"&&typeof n["@id"]=="string"?String(n["@id"]):typeof t["@id"]=="string"?String(t["@id"]):""}function H(t,n){if(typeof document>"u"||!t||!n)return!1;const o=f(n);return Array.from(document.querySelectorAll("script[data-wiplash-server-schema]")).some(l=>{try{const a=JSON.parse(l.textContent||"{}"),d=a["@type"];return(Array.isArray(d)?d.includes(t):d===t)&&f($(a))===o}catch{return!1}})}const T=typeof import.meta<"u"?c==null?void 0:c.VITE_GOOGLE_SITE_VERIFICATION:void 0,N=typeof import.meta<"u"?c==null?void 0:c.VITE_BING_SITE_VERIFICATION:void 0,R=typeof import.meta<"u"?c==null?void 0:c.VITE_PERPLEXITY_SITE_VERIFICATION:void 0;function K({title:t,description:n,path:o,canonical:l,image:a,keywords:d,openGraph:s,twitter:i,structuredData:u,noIndex:V,children:b}){const F=typeof a=="string"?{url:a}:a,r=(s==null?void 0:s.image)||F,m=j(o||l),g=r!=null&&r.url?j(r.url):j("/og-default.png"),O=(s==null?void 0:s.type)||"website",U=(i==null?void 0:i.card)||"summary_large_image",I=k(d),A=V?"noindex, nofollow":"index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1",h=u?Array.isArray(u)?u:[u]:[];return z.useLayoutEffect(()=>{if(typeof document>"u"||!m)return;const x=f(m);for(const y of Array.from(document.querySelectorAll("script[data-wiplash-server-schema]")))try{const E=JSON.parse(y.textContent||"{}"),S=f($(E));S&&S!==x&&y.remove()}catch{y.remove()}},[m]),e.jsxs(e.Fragment,{children:[e.jsxs(p,{prioritizeSeoTags:!0,children:[e.jsx("title",{children:t}),e.jsx("meta",{name:"description",content:n}),I&&e.jsx("meta",{name:"keywords",content:I}),m&&e.jsx("link",{rel:"canonical",href:m}),e.jsx("meta",{property:"og:site_name",content:"Wiplash.ai"}),e.jsx("meta",{property:"og:locale",content:"en_US"}),e.jsx("meta",{property:"og:title",content:(s==null?void 0:s.title)||t}),e.jsx("meta",{property:"og:description",content:(s==null?void 0:s.description)||n}),m&&e.jsx("meta",{property:"og:url",content:m}),e.jsx("meta",{property:"og:type",content:O}),g&&e.jsx("meta",{property:"og:image",content:g}),(r==null?void 0:r.alt)&&e.jsx("meta",{property:"og:image:alt",content:r.alt}),(r==null?void 0:r.width)&&e.jsx("meta",{property:"og:image:width",content:String(r.width)}),(r==null?void 0:r.height)&&e.jsx("meta",{property:"og:image:height",content:String(r.height)}),e.jsx("meta",{name:"twitter:card",content:U}),e.jsx("meta",{name:"twitter:title",content:(s==null?void 0:s.title)||t}),e.jsx("meta",{name:"twitter:description",content:(s==null?void 0:s.description)||n}),g&&e.jsx("meta",{name:"twitter:image",content:g}),(i==null?void 0:i.site)&&e.jsx("meta",{name:"twitter:site",content:i.site}),(i==null?void 0:i.creator)&&e.jsx("meta",{name:"twitter:creator",content:i.creator}),(i==null?void 0:i.imageAlt)&&e.jsx("meta",{name:"twitter:image:alt",content:i.imageAlt}),e.jsx("meta",{name:"robots",content:A}),e.jsx("meta",{name:"googlebot",content:A}),T&&e.jsx("meta",{name:"google-site-verification",content:T}),N&&e.jsx("meta",{name:"msvalidate.01",content:N}),R&&e.jsx("meta",{name:"perplexity-site-verification",content:R})]}),h.map((x,y)=>e.jsx(J,{data:x},`jsonld-${y}`)),b]})}export{L as C,J,K as S,H as h};

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.