PageSourceSearch

https://astrologia.kobieta.pl/assets/bundles/publishercore/js/configReader-Cdt1lQE.js

js kobieta.pl collected 2026-10-02 10:40:30 UTC 1,236 bytes, 1 lines download raw bytes

1import{createLogger}from"publishercore/logger";const log=createLogger("configReader"),cache=new Map;export function readConfig(e,t={}){const{silent:n=!1,noCache:i=!1}=t;if(!i&&cache.has(e))return cache.get(e);if(typeof document=="undefined")return log.debug("No document available"),null;const s=document.getElementById(e);if(!s)return n||log.debug(`Missing config element #${e}`),cache.set(e,null),null;const o=(s.textContent||"").trim();if(!o)return n||log.warn(`Empty config in #${e}`),cache.set(e,null),null;try{const t=JSON.parse(o);return t===null||typeof t!="object"||Array.isArray(t)?(n||log.warn(`Config #${e} is not an object`),cache.set(e,null),null):(cache.set(e,t),t)}catch(t){return n||log.error(`Invalid JSON in #${e}`,t),cache.set(e,null),null}}export function readConfigAny(e,t={}){const{silent:o=!1}=t;if(typeof document=="undefined")return null;const n=document.getElementById(e);if(!n)return null;const s=(n.textContent||"").trim();if(!s)return null;try{return JSON.parse(s)}catch(t){return o||log.error(`Invalid JSON in #${e}`,t),null}}export function clearConfigCache(){cache.clear(),log.debug("Config cache cleared")}
1export function invalidateConfig(e){cache.delete(e),log.debug(`Config cache invalidated: ${e}`)}

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.