PageSourceSearch

https://laconote.com/assets/errorReporter-COJLX4wI.js

js laconote.com collected 2026-10-02 01:34:08 UTC 1,124 bytes, 1 lines download raw bytes

1import{x as f}from"./workspace-D4nuKkeG.js";import{e as E,i as m}from"./chunkErrors-wZlRLLOm.js";const S="/api/v1/client-errors",p=4e3,_=500,h=10,d=new Set;let u=0;function o(n,t){return n.length>t?`${n.slice(0,t)}…`:n}const l=/^[a-z][a-z-]{0,23}$/,A=new Set(["s","shared","p"]);function g(n){const t=n.split("/");return t.map((e,r)=>{var a;return e===""?e:A.has((a=t[r-1])==null?void 0:a.toLowerCase())?":id":l.test(e)?e:":id"}).join("/")}function T(n,t){var c;if(typeof window>"u"||u>=h)return;const e=n instanceof Error?n:new Error(E(n)),r=`${e.name}:${e.message}`;if(d.has(r))return;d.add(r),u++;const a={name:e.name,message:o(e.message,_),stack:e.stack?o(e.stack,p):void 0,component_stack:t!=null&&t.componentStack?o(t.componentStack,p):void 0,pathname:g(window.location.pathname),app_version:"1.0.0+90178e53",user_agent:navigator.userAgent,is_chunk_error:m(n)},s=`${f()}${S}`,i=JSON.stringify(a);try{if((c=navigator.sendBeacon)!=null&&c.call(navigator,s,new Blob([i],{type:"text/plain"})))return}catch{}fetch(s,{method:"POST",body:i,headers:{"Content-Type":"text/plain"},keepalive:!0}).catch(()=>{})}export{T 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.