PageSourceSearch

https://archivi.ng/_nuxt/DHqfhrjH.js

js archivi.ng collected 2026-10-02 17:03:29 UTC 2,126 bytes, 1 lines download raw bytes

1(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"b1d507726365c2fa65bdc507ac9080512e92ee9c"};var n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="69e1113f-3ada-41a1-b294-ac2e8783456b",e._sentryDebugIdIdentifier="sentry-dbid-69e1113f-3ada-41a1-b294-ac2e8783456b")}catch{}})();const i=["January","February","March","April","May","June","July","August","September","October","November","December"];function u(e){const n=e;return typeof n=="object"&&n!==null&&typeof n.number=="number"&&typeof n.id=="string"&&n.id!==""}function b(e){try{const n=JSON.parse(e);return Array.isArray(n)?n.filter(u):[]}catch{return[]}}function l(e){const n=/^(\d{4})[-/](\d{1,2})[-/](\d{1,2})$/.exec(e??"");if(!n)return e;const[,r,t,s]=n,a=i[Number(t)-1];return a?`${Number(s)} ${a} ${r}`:e}function p(e){const n=[e.publication,l(e.date)];return e.page!==null&&e.page!==void 0&&n.push(`page ${e.page}`),n.filter(Boolean).join(", ")}function d(e){return e.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function f(e,n){const r=new Map(n.map(t=>[t.number,t]));return e.replace(/\[(\d+)\]/g,(t,s)=>{const a=r.get(Number(s));if(!a)return t;const o=`/search/${encodeURIComponent(a.id)}`,c=d(`Source ${a.number}: ${p(a)}`);return`<a class="chat-citation" href="${o}" target="_blank" rel="noopener" aria-label="${c}">${a.number}</a>`})}function g(e,n){const r=new Set([...e.matchAll(/\[(\d+)\]/g)].map(t=>Number(t[1])));return n.filter(t=>r.has(t.number))}function m(e){return(e??"").replace(/^Summary:[^\n]*(\n|$)/,"").split(/\n…\n/).map(n=>n.replace(/\s*\n\s*/g," ").trim()).filter(Boolean)}function y(e,n){const r=`[${n}]`,t=e.split(r).length-1;return t?{sentence:(e.split(/\n+/).flatMap(c=>c.replace(/^\s*(?:[-*]|\d+\.)\s+/,"").split(new RegExp("(?<=[.!?])\\s+"))).find(c=>c.includes(r))??"").replace(/\[\d+\]/g,"").replace(/[*_`#]/g,"").replace(/\s+([.,;:!?])/g,"$1").replace(/\s{2,}/g," ").trim(),count:t}:null}export{i as M,m as a,y as b,g as c,f as l,b as p,p 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.