PageSourceSearch

https://cdn.forbes.ru/_nuxt/1kWrGCv_.js

js forbes.ru collected 2026-10-01 06:20:19 UTC 2,060 bytes, 1 lines download raw bytes

1import{cB as d,cC as f,bJ as c,cD as u}from"./EBpBARSw.js";import{i as l}from"./Fv6MJwKN.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new s.Error().stack;e&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[e]="3be2c959-4f89-4d2f-894b-4f6e269fe783",s._sentryDebugIdIdentifier="sentry-dbid-3be2c959-4f89-4d2f-894b-4f6e269fe783")}catch{}})();const E=l(),g=["basic","education","sport"];let o;const t=c({items:[],mode:"",fetchStatus:"PENDING",status:"PENDING"});function m(s){const{base:e,fixed:r}=s.data;t.items=e;for(const i of r)t.items.splice(i.index,0,i);t.fetchStatus="IDLE",t.status="READY"}function D(s){const{data:e=[]}=s;if(!e.length){t.fetchStatus="DONE";return}t.items=[...t.items,...e],t.fetchStatus="IDLE",t.status="READY"}function I(s){const{base:e,fixed:r}=s.data;for(const i in e.add){const n=e.add[i];t.items.splice(n.index,0,n.article)}for(const i of e.update){const n=t.items.findIndex(a=>a.id===i.id);n!==-1&&t.items.splice(n,1,i)}for(const i of e.remove){const n=t.items.findIndex(a=>a.id===i.id);n!==-1&&t.items.splice(n,1)}for(const i in r){const n=r[i],a=n.index?1:0;t.items.splice(n.index,a,n)}}function b(){const s={get isError(){return t.status==="ERROR"},get isPending(){return t.status==="PENDING"},get isReady(){return t.status==="READY"},async fetch(){t.fetchStatus==="PENDING"||E||(t.fetchStatus="PENDING",o.send("more"))},fetchStatus:{get isDone(){return t.fetchStatus==="DONE"},get isError(){return t.fetchStatus==="ERROR"},get isIdle(){return t.fetchStatus==="IDLE"},get isPending(){return t.fetchStatus==="PENDING"}},async setMode(e){!g.includes(e)||t.mode===e||(t.status="PENDING",t.items=[],t.mode=e,o.send(e))},state:u(t)};return o||(o=new d("wss://waterfall.forbes.ru/ws")),o.onerror=()=>{t.status="ERROR"},o.onmessage=e=>{if(!e.data)return;const r=f(e.data);switch(r.event){case"init":return m(r);case"more":return D(r);case"refresh":return I(r);default:console.info(r)}},o.onopen=()=>{t.status="READY"},s}export{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.