PageSourceSearch

https://starter-storefront-lut65.netlify.app/~partytown/debug/partytown.js

js starter-storefront-lut65.netlify.app collected 2026-10-03 11:27:25 UTC 3,522 bytes, 75 lines download raw bytes

1/* Partytown 0.8.0 - MIT builder.io */
2!function(win, doc, nav, top, useAtomics, config, libPath, timeout, scripts, sandbox, mainForwardFn, isReady) {
3    function ready() {
4        if (!isReady) {
5            isReady = 1;
6            libPath = (config.lib || "/~partytown/") + (false !== config.debug ? "debug/" : "");
7            if ("/" == libPath[0]) {
8                scripts = doc.querySelectorAll('script[type="text/partytown"]');
9                if (top != win) {
10                    top.dispatchEvent(new CustomEvent("pt1", {
11                        detail: win
12                    }));
13                } else {
14                    timeout = setTimeout(fallback, 1e4);
15                    doc.addEventListener("pt0", clearFallback);
16                    useAtomics ? loadSandbox(1) : nav.serviceWorker ? nav.serviceWorker.register(libPath + (config.swPath || "partytown-sw.js"), {
17                        scope: libPath
18                    }).then((function(swRegistration) {
19                        if (swRegistration.active) {
20                            loadSandbox();
21                        } else if (swRegistration.installing) {
22                            swRegistration.installing.addEventListener("statechange", (function(ev) {
23                                "activated" == ev.target.state && loadSandbox();
24                            }));
25                        } else {
26                            console.warn(swRegistration);
27                        }
28                    }), console.error) : fallback();
29                }
30            } else {
31                console.warn('Partytown config.lib url must start with "/"');
32            }
33        }
34    }
35    function loadSandbox(isAtomics) {
36        sandbox = doc.createElement(isAtomics ? "script" : "iframe");
37        if (!isAtomics) {
38            sandbox.setAttribute("style", "display:block;width:0;height:0;border:0;visibility:hidden");
39            sandbox.setAttribute("aria-hidden", !0);
40        }
41        sandbox.src = libPath + "partytown-" + (isAtomics ? "atomics.js?v=0.8.0" : "sandbox-sw.html?" + Date.now());
42        doc.querySelector(config.sandboxParent || "body").appendChild(sandbox);
43    }
44    function fallback(i, script) {
45        console.warn("Partytown script fallback");
46        clearFallback();
47        top == win && (config.forward || []).map((function(forwardProps) {
48            delete win[forwardProps.split(".")[0]];
49        }));
50        for (i = 0; i < scripts.length; i++) {
51            script = doc.createElement("script");
52            script.innerHTML = scripts[i].innerHTML;
53            doc.head.appendChild(script);
54        }
55        sandbox && sandbox.parentNode.removeChild(sandbox);
56    }
57    function clearFallback() {
58        clearTimeout(timeout);
59    }
60    config = win.partytown || {};
61    top == win && (config.forward || []).map((function(forwardProps) {
62        mainForwardFn = win;
63        forwardProps.split(".").map((function(_, i, forwardPropsArr) {
64            mainForwardFn = mainForwardFn[forwardPropsArr[i]] = i + 1 < forwardPropsArr.length ? "push" == forwardPropsArr[i + 1] ? [] : mainForwardFn[forwardPropsArr[i]] || {} : function() {
65                (win._ptf = win._ptf || []).push(forwardPropsArr, arguments);
66            };
67        }));
68    }));
69    if ("complete" == doc.readyState) {
70        ready();
71    } else {
72        win.addEventListener("DOMContentLoaded", ready);
73        win.addEventListener("load", ready);
74    }
75}(window, document, navigator, top, window.crossOriginIsolated);

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.