PageSourceSearch

https://cssstudio.ai/assets/preload-helper-BqwDjHwv.js

js cssstudio.ai collected 2026-10-04 21:07:34 UTC 1,324 bytes, 1 lines download raw bytes

1import{a as p}from"./chunk-6CSD65Y2-B9EdUb7a.js";import{a0 as E,a1 as v,a2 as P}from"./react-B8LPdxm0.js";function b(){!E.current&&v();const[i]=p.useState(P.current);return i}const y="modulepreload",R=function(i){return"/"+i},d={},k=function(f,c,S){let a=Promise.resolve();if(c&&c.length>0){let n=function(t){return Promise.all(t.map(o=>Promise.resolve(o).then(s=>({status:"fulfilled",value:s}),s=>({status:"rejected",reason:s}))))};document.getElementsByTagName("link");const e=document.querySelector("meta[property=csp-nonce]"),u=(e==null?void 0:e.nonce)||(e==null?void 0:e.getAttribute("nonce"));a=n(c.map(t=>{if(t=R(t),t in d)return;d[t]=!0;const o=t.endsWith(".css"),s=o?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${t}"]${s}`))return;const r=document.createElement("link");if(r.rel=o?"stylesheet":y,o||(r.as="script"),r.crossOrigin="",r.href=t,u&&r.setAttribute("nonce",u),document.head.appendChild(r),o)return new Promise((m,h)=>{r.addEventListener("load",m),r.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${t}`)))})}))}function l(n){const e=new Event("vite:preloadError",{cancelable:!0});if(e.payload=n,window.dispatchEvent(e),!e.defaultPrevented)throw n}return a.then(n=>{for(const e of n||[])e.status==="rejected"&&l(e.reason);return f().catch(l)})};export{k as _,b as u};

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.