252[redacted]"
}.VITE_LOCAL_CDN_HOST || "http://localhost:5173",
dev: "https://sdk-cdn.dev.0hash.com",
cert: "https://sdk-cdn.cert.zerohash.com",
prod: "https://sdk-cdn.zerohash.com",
"eu-cert": "https://sdk-cdn.cert.zerohash.eu",
"eu-prod": "https://sdk-cdn.zerohash.eu"
}, m = "https://sdk-cdn.gating.0hash.com", h = (e, t, n = {}) => {
let { eu: r = !1, legacyAliases: i = !1, local: a = p.local } = n, o = (n) => `${n}/${e}/${t}`, s = {
local: o(a),
dev: o(p.dev),
gating: o(m),
cert: o(p.cert),
prod: o(p.prod)
};
return i && (s.s
LowAi Review Evidence
dist/index.js uses Zerohash SDK CDN hosts and maps diagnostic collectors to Zerohash hosts.
dist/index.jsView on unpkg · L252 40= globalThis.__ZH_WEB_SDK_VERSION__, i = {};
return e.claims.participantCode && (i.participant_code = e.claims.participantCode), e.claims.platformName && (i.platform_name = e.claims.platformName), e.claims.platformCode && (i.platform_code = e.claims.platformCode), e.claims.region && (i.region = e.claims.region), r && (i.zh_web_sdk_version = r), {
sessionId: n,
payload: {
meta: {
app: {
name: e.appName,
version: t ?? "unknown",
environment: e.env
},
session: {
id: n,
att
LowAi Review Evidence
The loader reports script failures; its JSON diagnostics include selected JWT claims and are posted to the configured collector.
dist/index.jsView on unpkg · L40 63riptUrl,
reason: e.reason,
tried_fallback: String(e.triedFallback),
elapsed_ms: String(e.elapsedMs)
}
}]
}
};
}, l = (e, t, n) => {
if (!e || typeof fetch > "u") return;
let { sessionId: r, payload: i } = c(t, n);
try {
fetch(e, {
method: "POST",
headers: {
"Content-Type": "application/json",
"x-faro-session-id": r
},
body: JSON.stringify(i),
keepalive: !0
}).catch(() => void 0);
} catch {}
}, u = (e) => {
let { webComponentTag: t, appName: n, appVersion: s, scriptUrls: c, fallbackScriptUrls: u, collectorUrl
LowAi Review Evidence
The loader reports script failures; its JSON diagnostics include selected JWT claims and are posted to the configured collector.
dist/index.jsView on unpkg · L63 86: n, appVersion: s, scriptUrls: c, fallbackScriptUrls: u, collectorUrls: d, env: f, jwt: p, timeoutMs: m = 15e3, onLoad: h, onError: g } = e;
if (typeof document > "u") return o;
let _ = `${t}-script-${f}`;
if (customElements.get(t) || document.getElementById(_)) return o;
let v = r(p), y = e.report ?? ((e) => l(d && a(d, f, p), e, s)), b = !1, x = 0, S, C = () => {
S !== void 0 && clearTimeout(S);
}, w = (e, r, a) => {
if (b) return;
let o = Math.round(performance.now() - x), s = {
webComponentTag: t,
appName: n,
env: f,
scriptUrl: r,
re
LowAi Review Evidence
The loader reports script failures; its JSON diagnostics include selected JWT claims and are posted to the configured collector.
dist/index.jsView on unpkg · L86 111= (e, n) => {
C(), x = performance.now();
let r = document.createElement("script");
r.id = _, r.src = e, r.type = "module", r.async = !0, r.onload = () => {
setTimeout(() => {
b || (customElements.get(t) ? (b = !0, C(), h?.()) : w("not-defined", e, n));
}, 0);
}, r.onerror = () =>
LowAi Review Evidence
The loader reports script failures; its JSON diagnostics include selected JWT claims and are posted to the configured collector.
dist/index.jsView on unpkg · L111 95nentTag: t,
appName: n,
env: f,
scriptUrl: r,
reason: e,
triedFallback: a,
elapsedMs: o,
claims: v
};
y(s);
let c = a ? void 0 : i(u ?? {}, f, p);
if (c && c !== r) {
T(c, !0);
return;
}
b = !0, C(), document.getElementById(_)?.remove(), g?.(s);
}, T
LowAi Review Evidence
The loader reports script failures; its JSON diagnostics include selected JWT claims and are posted to the configured collector.
dist/index.jsView on unpkg · L95