Poppy Playtime Chapter 4: Safe Haven — Yandex Games
Loading
window.fontDownloadInline = function pr(e) { function t(e, t) { return e.weight === t.weight && e.url === t.url; } function a(e) { if (e.ok || (e.status >= 200 && e.status < 300)) return e; throw new Error(e.statusText); } function s(e) { let t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; let a = new Uint8Array(256); for (let e = 0; e < 64; e++) { a[t.charCodeAt(e)] = e; } let s, r = new Uint8Array(e), o = r.length, n = ""; for (s = 0; s < o; s += 3) { n += t[r[s] >> 2]; n += t[(3 & r[s]) << 4 | r[s + 1] >> 4]; n += t[(15 & r[s + 1]) << 2 | r[s + 2] >> 6]; n += t[63 & r[s + 2]]; } if (o % 3 == 2) n = n.substring(0, n.length - 1) + "="; if (o % 3 == 1) n = n.substring(0, n.length - 2) + "=="; return n; } function r(e) { return function (e) { const t = e.url; return window.fetch(t, { method: "GET", mode: "cors", credentials: "same-origin", redirect: "follow" }).then(a).then((e => e.arrayBuffer())) }({ url: e.url }).then((t => ({ weight: e.weight, url: e.url, base64: s(t), family: e.family, format: e.format, style: e.style }))).catch(() => null); } window.addEventListener("load", function () { let a = window.getLocalStorage("fonts") || []; let s = (n = e, function () { if ("FontFace" in window) { const e = new FontFace("t", 'url( "data:application/font-woff2;base64,d09GMgABAAAAAADcAAoAAAAAAggAAACWAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABk4ALAoUNAE2AiQDCAsGAAQgBSAHIBtvAcieB3aD8wURQ+TZazbRE9HvF5vde4KCYGhiCgq/NKPF0i6UIsZynbP+Xi9Ng+XLbNlmNz/xIBBqq61FIQRJhC/+QA/08PJQJ3sK5TZFMlWzC/iK5GUN40psgqvxwBjBOg6JUSJ7ewyKE2AAaXZrfUB4v+hze37ugJ9d+DeYqiDwVgCawviwVFGnuttkLqIMGivmDg" ) format( "woff2" )', {}); return e.load().catch(() => { }), "loading" === e.status || "loaded" === e.status; } return !1; }() ? n.filter((e => "woff2" === e.format)) : n.filter((e => "woff" === e.format))); let o = []; var n; s.forEach((e => { let t = Object.keys(e.urls).map((t => ({ weight: t, url: e.urls[t], base64: "", family: e.family, format: e.format, style: e.style }))); o = [...o, ...t]; })); const i = o.reduce(((e, s) => { const r = a.find((e => Boolean(t(e, s) && e.base64))); return r && e.push(r), e; }), []); if (i.length !== o.length) { Promise.all(o.filter((e => !i.some((a => Boolean(t(a, e) && a.base64))))).map(r)).then((e => { var t, a, s, r, o, n; t = "fonts"; a = e = e.filter((e => null !== e)).concat(i); if (window.isLocalStorageAvailable()) { if (/^[a-z_\d]+$/.test(t)) { window.trySetLocalStorage("yandexGames_" + t, JSON.stringify(a)) || null == (r = null == (s = null == window ? void 0 : window.Ya) ? void 0 : s.Rum) || r.logError({ level: "warn", message: "FONTS: failed to set an element from LocalStorage", sourceMethod: "setLocalStorage" }); } else { null == (n = null == (o = null == window ? void 0 : window.Ya) ? void 0 : o.Rum) || n.logError({ level: "warn", sourceMethod: "setLocalStorage", message: `FONTS: invalid localStorage key name: ${t}` }); } } function (e) { const t = window.document.querySelector("#inline-font"); t && t.parentNode && t.parentNode.removeChild(t); const a = window.document.createElement("style"); a.innerHTML = e.map(window.createInlineFontFace).join(""); window.document.head.appendChild(a); }(e); function (e) { const t = window.document.createElement("div"); e.forEach((e => { const a = window.document.createElement("span"); a.innerHTML = "i"; a.style.fontFamily = e.family; a.style.fontWeight = e.weight; a.style.fontStyle = e.style; t.appendChild(a); })); t.style.position = "absolute"; t.style.left = "-10000px"; window.document.body.appendChild(t); function (e) { setTimeout((() => { var t; window.document.body.classList.add("font_loaded"); null == (t = e.parentNode) || t.removeChild(e); }), 100); }(t); }(e); })) } }) } window.fontDownloadInline([ { "family": "YS Text", "format": "woff", "style": "normal", "urls": { "400": "//yastatic.net/s3/home/fonts/ys/1/text-regular.woff", "500": "//yastatic.net/s3/home/fonts/ys/1/text-medium.woff", "700": "//yastatic.net/s3/home/fonts/ys/1/text-bold.woff" } }, { "family": "YS Text", "format": "woff2", "style": "normal", "urls": { "400": "//yastatic.net/s3/home/fonts/ys/1/text-regular.woff2", "500": "//yastatic.net/s3/home/fonts/ys/1/text-medium.woff2", "700": "//yastatic.net/s3/home/fonts/ys/1/text-bold.woff2" } } ]);