PageSourceSearch

https://ghostfol.io/en/chunk-Cy8M3DFp.js

js ghostfol.io collected 2026-10-04 00:23:56 UTC 2,890 bytes, 1 lines download raw bytes

1import{t as A}from"./chunk-JAOQM8Cn.js";function p(t){B??=new TextEncoder;let e=B.encode(t),n=new DataView(e.buffer,e.byteOffset,e.byteLength),i=U(n,e.length,0),r=U(n,e.length,102072);return i==0&&(r==0||r==1)&&(i=i^319790063,r=r^-1801410264),BigInt.asUintN(32,BigInt(i))<<BigInt(32)|BigInt.asUintN(32,BigInt(r))}function M(t,e=``){let n=p(t);return e&&(n=BigInt.asUintN(64,n<<BigInt(1))|n>>BigInt(63)&BigInt(1),n+=p(e)),BigInt.asUintN(63,n).toString()}function U(t,e,n){let i=2654435769,r=2654435769,o=0,c=e-12;for(;o<=c;o+=12){i+=t.getUint32(o,!0),r+=t.getUint32(o+4,!0),n+=t.getUint32(o+8,!0);let s=h(i,r,n);i=s[0],r=s[1],n=s[2]}let l=e-o;return n+=e,l>=4?(i+=t.getUint32(o,!0),o+=4,l>=8?(r+=t.getUint32(o,!0),o+=4,l>=9&&(n+=t.getUint8(o++)<<8),l>=10&&(n+=t.getUint8(o++)<<16),l===11&&(n+=t.getUint8(o++)<<24)):(l>=5&&(r+=t.getUint8(o++)),l>=6&&(r+=t.getUint8(o++)<<8),l===7&&(r+=t.getUint8(o++)<<16))):(l>=1&&(i+=t.getUint8(o++)),l>=2&&(i+=t.getUint8(o++)<<8),l===3&&(i+=t.getUint8(o++)<<16)),h(i,r,n)[2]}function h(t,e,n){return t-=e,t-=n,t^=n>>>13,e-=n,e-=t,e^=t<<8,n-=t,n-=e,n^=e>>>13,t-=e,t-=n,t^=n>>>12,e-=n,e-=t,e^=t<<16,n-=t,n-=e,n^=e>>>5,t-=e,t-=n,t^=n>>>3,e-=n,e-=t,e^=t<<10,n-=t,n-=e,n^=e>>>15,[t,e,n]}function S(t,e,n,i,r=[]){let o={},c={},l={},s=L(t[0],t.raw[0]),u=[s.text],I=[],g=s.text;for(let f=1;f<t.length;f++){let{messagePart:A,placeholderName:d=K(f),associatedMessageId:R}=D(t[f],t.raw[f]);g+=`{$${d}}${A}`,e!==void 0&&(o[d]=e[f-1],c[d]=r[f-1]),I.push(d),R!==void 0&&(l[d]=R),u.push(A)}let a=s.customId||M(g,s.meaning||``);return{id:a,legacyIds:s.legacyIds?s.legacyIds.filter(f=>f!==a):[],substitutions:o,substitutionLocations:c,text:g,customId:s.customId,meaning:s.meaning||``,description:s.description||``,messageParts:u,messagePartLocations:i,placeholderNames:I,associatedMessageIds:l,location:n}}function L(t,e){let{text:n,block:i}=E(t,e);if(i===void 0)return{text:n};{let[r,...o]=i.split(`␟`),[c,l]=r.split(`@@`,2),[s,u]=c.split(`|`,2);return u===void 0&&(u=s,s=void 0),u===``&&(u=void 0),{text:n,meaning:s,description:u,customId:l,legacyIds:o}}}function D(t,e){let{text:n,block:i}=E(t,e);if(i===void 0)return{messagePart:n};{let[r,o]=i.split(`@@`);return{messagePart:n,placeholderName:r,associatedMessageId:o}}}function E(t,e){if(e.charAt(0)!==`:`)return{text:t};{let n=O(t,e);return{block:t.substring(1,n),text:t.substring(n+1)}}}function K(t){return t===1?`PH`:`PH_${t-1}`}function O(t,e){for(let n=1,i=1;n<t.length;n++,i++)if(e[i]===`\\`)i++;else if(t[n]===`:`)return n;throw new Error(`Unterminated $localize metadata block in "${e}".`)}function x(t,e){return e.charAt(0)===$?t.substring(O(t,e)+1):t}var B;var m;var $;var C=A(()=>{m=function(t,...e){if(m.translate){let i=m.translate(t,e);t=i[0],e=i[1]}let n=x(t[0],t.raw[0]);for(let i=1;i<t.length;i++)n+=e[i-1]+x(t[i],t.raw[i]);return n},$=`:`});export{O as a,M as i,E as n,S as o,L as r,m as s,C as t};

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.