PageSourceSearch

https://web-assets.ifttt.com/builds/assets/sse_client-DEgUlHJf.js

js ifttt.com collected 2026-09-24 06:36:36 UTC 1,298 bytes, 6 lines download raw bytes

1function e(e){let t=window.App?.ifeHost??``;return e.startsWith(`/`)?`${t}${e}`:`${t}/${e}`}function t(e){let t=`message`,n=[];for(let r of e.split(`
2`))r.startsWith(`event:`)?t=r.slice(6).trim():r.startsWith(`data:`)&&n.push(r.slice(5).trim());return n.length===0?null:{event:t,data:n.join(`
3`)}}async function*n(e){let{url:n,body:r,token:i,signal:a,onStateChange:o}=e,s=e=>{o?.(e)};s(`connecting`);let c;try{c=await fetch(n,{method:`POST`,headers:{"Content-Type":`application/json`,Authorization:`Token jwt="${i}"`},body:JSON.stringify(r),signal:a})}catch(e){if(e instanceof DOMException&&e.name===`AbortError`){s(`done`);return}throw s(`error`),e}if(!c.ok)throw s(`error`),Error(`SSE request failed: ${c.status}`);if(!c.body)throw s(`error`),Error(`Response body is null`);s(`streaming`);let l=c.body.getReader(),u=new TextDecoder,d=``;try{for(;;){let e;try{e=await l.read()}catch(e){if(e instanceof DOMException&&e.name===`AbortError`){s(`done`);return}throw e instanceof TypeError,s(`error`),e}if(e.done)break;d+=u.decode(e.value,{stream:!0});let n=d.split(`
4
5`);d=n.pop();for(let e of n){let n=e.trim();if(!n)continue;let r=t(n);r&&(yield r)}}if(d.trim()){let e=t(d.trim());e&&(yield e)}s(`done`)}finally{l.releaseLock()}}export{e as n,n as t};
6//# sourceMappingURL=sse_client-DEgUlHJf.js.map

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.