PageSourceSearch

https://lassecash.pages.dev/_app/immutable/chunks/B9L1Za3Y.js

js lassecash.pages.dev collected 2026-10-03 05:21:53 UTC 5,368 bytes, 13 lines download raw bytes

1function $(l){return l.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}function u(l){const n=l.trim();return/^https?:\/\/[^\s<>"'\\]+$/i.test(n)?n:null}const f=String.raw`((?:\\.|[^)\s])+)`;function m(l){return l.replace(/\\([!-\/:-@\[-`{-~])/g,"$1")}function E(l){const n=l.match(/(?:youtube\.com\/(?:watch\?(?:.*&)?v=|embed\/|shorts\/)|youtu\.be\/)([A-Za-z0-9_-]{11})/);return(n==null?void 0:n[1])??null}function q(l){const n=l.match(new RegExp(String.raw`!\[[^\]]*\]\(`+f+String.raw`\)`));if(n!=null&&n[1])return u(m(n[1]));const t=l.match(/https?:\/\/\S+\.(?:png|jpe?g|gif|webp|avif)(?:\?\S*)?/i);if(t!=null&&t[0])return u(m(t[0]));const i=l.match(/\S*(?:youtube\.com|youtu\.be)\/\S+/);if(i!=null&&i[0]){const o=E(i[0]);if(o)return`https://img.youtube.com/vi/${o}/hqdefault.jpg`}return null}function C(l,n=180){const t=l.replace(/<!--[\s\S]*?-->/g," ").replace(/<[^>]*>/g," ").replace(/!\[[^\]]*\]\((?:\\.|[^)])*\)/g,"").replace(/\[([^\]]*)\]\((?:\\.|[^)])*\)/g,"$1").replace(/https?:\/\/\S+/g,"").replace(/[#*>`_~-]/g,"").replace(/\s+/g," ").trim();return t.length>n?t.slice(0,n).trimEnd()+"…":t}const x=new Set(["b","strong","i","em","u","s","sup","sub","small","mark","p","br","hr","div","span","center","blockquote","pre","code","h1","h2","h3","h4","h5","h6","ul","ol","li","table","thead","tbody","tfoot","tr","td","th","a","img"]),S=new Set(["br","hr","img"]);function y(l,n){const t=[new RegExp(`${n}\\s*=\\s*&quot;([\\s\\S]*?)&quot;`,"i"),new RegExp(`${n}\\s*=\\s*'([^']*)'`,"i"),new RegExp(`${n}\\s*=\\s*([^\\s]+)`,"i")];for(const i of t){const o=l.match(i);if(o!=null&&o[1])return o[1].replace(/&amp;/g,"&").replace(/&amp;/g,"&")}return null}function z(l){return l.replace(/&lt;(\/?)\s*([a-zA-Z][a-zA-Z0-9]*)([\s\S]*?)&gt;/g,(n,t,i,o)=>{const p=i.toLowerCase();if(!x.has(p))return"";if(t)return S.has(p)?"":`</${p}>`;if(p==="a"){const g=y(o,"href"),r=g?u(g):null;return r?`<a href="${$(r)}" rel="nofollow noopener ugc" target="_blank">`:""}if(p==="img"){const g=y(o,"src"),r=g?u(g):null;return r?`<img src="${$(r)}" alt="" loading="lazy" />`:""}return S.has(p)?`<${p} />`:`<${p}>`})}function O(l){if(!l.trim())return"";const n=[];let t=l.replace(/```[\w-]*\n?([\s\S]*?)```/g,(r,e)=>(n.push(`<pre><code>${$(e.replace(/\n$/,""))}</code></pre>`),` @@CODE${n.length-1}@@ `));t=$(t);const i=[],o=r=>(i.push(r),`
2
3 @@BLOCK${i.length-1}@@ 
4
5`);t=t.replace(new RegExp(String.raw`!\[([^\]]*)\]\(`+f+String.raw`\)`,"g"),(r,e,a)=>{const s=u(m(a));return s?o(`<img src="${s}" alt="${e}" loading="lazy" />`):r}),t=t.replace(/https?:\/\/\S*(?:youtube\.com|youtu\.be)\/\S+/gi,r=>{const e=E(r);return e?o(`<div class="embed"><iframe src="https://www.youtube.com/embed/${e}" title="YouTube video" frameborder="0" loading="lazy" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></div>`):r});function p(r){return r.toLowerCase().replace(/&[a-z]+;/g," ").replace(/<[^>]*>/g," ").replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,60)}t=t.replace(/^[ \t]*(https?:\/\/\S+\.(?:png|jpe?g|gif|webp|avif)(?:\?\S*)?)[ \t]*$/gim,(r,e)=>{const a=u(m(e));return a?o(`<img src="${a}" alt="" loading="lazy" />`):r}),t=t.replace(/^###### (.*)$/gm,"<h6>$1</h6>").replace(/^##### (.*)$/gm,"<h5>$1</h5>").replace(/^#### (.*)$/gm,"<h4>$1</h4>").replace(/^### (.*)$/gm,(r,e)=>`<h3 id="${p(e)}">${e}</h3>`).replace(/^## (.*)$/gm,(r,e)=>`<h2 id="${p(e)}">${e}</h2>`).replace(/^# (.*)$/gm,"<h1>$1</h1>").replace(/^&gt; ?(.*)$/gm,"<blockquote>$1</blockquote>").replace(/^---+$/gm,"<hr />").replace(/\*\*([^*]+)\*\*/g,"<strong>$1</strong>").replace(/(^|[^*])\*([^*\n]+)\*/g,"$1<em>$2</em>").replace(/`([^`\n]+)`/g,"<code>$1</code>"),t=t.replace(new RegExp(String.raw`\[([^\]]+)\]\(`+f+String.raw`\)`,"g"),(r,e,a)=>{const s=u(m(a));return s?`<a href="${s}" target="_blank" rel="noopener noreferrer nofollow">${e}</a>`:r}),t=t.replace(/(^|[\s(])(https?:\/\/[^\s<)]+)/g,(r,e,a)=>{const s=u(a);return s?`${e}<a href="${s}" target="_blank" rel="noopener noreferrer nofollow">${s}</a>`:r}),t=t.replace(/(?:^[ \t]*\|.*\|[ \t]*(?:\n|$)){2,}/gm,r=>{const e=r.trim().split(`
6`).map(c=>c.trim()),a=c=>c.replace(/^\|/,"").replace(/\|$/,"").split(new RegExp("(?<!\\\\)\\|")).map(h=>h.replace(/\\\|/g,"|").trim()),s=a(e[1]??"");if(!(s.length>0&&s.every(c=>/^:?-{1,}:?$/.test(c))))return r;const d=s.map(c=>c.startsWith(":")&&c.endsWith(":")?"center":c.endsWith(":")?"right":c.startsWith(":")?"left":""),b=(c,h)=>h.map((k,w)=>`<${c}${d[w]?` style="text-align:${d[w]}"`:""}>${k}</${c}>`).join(""),v=`<thead><tr>${b("th",a(e[0]))}</tr></thead>`,_=e.slice(2).map(c=>`<tr>${b("td",a(c))}</tr>`).join("");return`
7
8<table>${v}<tbody>${_}</tbody></table>
9
10`}),t=t.replace(/(?:^[ \t]*[-+*] .*(?:\n|$))+/gm,r=>`<ul>${r.trim().split(`
11`).map(a=>`<li>${a.replace(/^[ \t]*[-+*] /,"")}</li>`).join("")}</ul>`),t=t.replace(/(?:^[ \t]*\d+\. .*(?:\n|$))+/gm,r=>`<ol>${r.trim().split(`
12`).map(a=>`<li>${a.replace(/^[ \t]*\d+\. /,"")}</li>`).join("")}</ol>`);const g=t.split(/\n{2,}/).map(r=>{const e=r.trim();return e?/^@@(?:BLOCK|CODE)\d+@@$/.test(e)||/^<(?:h[1-6]|ul|ol|blockquote|pre|hr|div|table)/.test(e)?e:`<p>${e.replace(/\n/g,"<br />")}</p>`:""}).join(`
13`);return z(g).replace(/@@BLOCK(\d+)@@/g,(r,e)=>i[Number(e)]??"").replace(/@@CODE(\d+)@@/g,(r,e)=>n[Number(e)]??"")}export{q as c,C as e,O as r};

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.