PageSourceSearch

https://app.feedspace.io/_next/static/chunks/6142-ad1563f347973841.js

js feedspace.io collected 2026-09-24 18:52:40 UTC 8,493 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6142],{29143:(e,t,r)=>{r.d(t,{M4:()=>o,Ri:()=>a,TV:()=>n,Yj:()=>i,ym:()=>s});let o=31536e3,s={ACCESS_TOKEN:"fs3_access_token",REFRESH_TOKEN:"fs3_refresh_token",LOGGED_IN_USER:"fs3_logged_in_user",SELECTED_WORKSPACE_PREFIX:"fs3_selected_ws_id",INVITE_TOKEN_PREFIX:"fs3_invite_token_",USER_NAME:"fs3_user_name",USER_EMAIL:"fs3_user_email"},n=(e,t,r=o,s)=>{if("u"<typeof document)return;let n=s?`; domain=${s}`:"";document.cookie=`${e}=${t}; path=/; max-age=${r}; samesite=lax; secure${n}`},a=e=>{if("u"<typeof document)return null;let t=document.cookie.match(RegExp(`(^| )${e}=([^;]+)`));return t?t[2]:null},i=e=>{"u">typeof document&&(document.cookie=`${e}=; path=/; max-age=0`)}},39412:(e,t,r)=>{r.d(t,{J:()=>a,y:()=>i});let o="93126efa-4630-45e4-98e9-b01276b86ab9",s="nzzXsRcDc2kNERPUnSMFJUW9MmXaN74ipjzkMDOl";async function n(e,t={}){try{let r=await fetch(`https://api.feedspace.io/v3${e}`,{...t,headers:{"Content-Type":"application/json","X-FRAME-OPTIONS":"SAMEORIGIN",...t.headers}}),o=await r.json();if(!r.ok)return{error:o.message||o.error||"Request failed"};return{data:o}}catch(e){return{error:e instanceof Error?e.message:"Network error"}}}async function a(e){return(await n("/oauth/token",{method:"POST",body:JSON.stringify({grant_type:"refresh_token",refresh_token:e,client_id:o,client_secret:s})})).data??null}let i={sendOTP:async(e,t)=>n("/oauth/otp/send",{method:"POST",body:JSON.stringify({email:e,is_app_register:1,...t&&{referred_by:t}})}),verifyOTP:async(e,t)=>n("/oauth/token",{method:"POST",body:JSON.stringify({username:e,password:t,grant_type:"password",client_id:o,client_secret:s,is_otp:!0})}),passwordLogin:async(e,t)=>n("/oauth/token",{method:"POST",body:JSON.stringify({username:e,password:t,grant_type:"password",client_id:o,client_secret:s})}),socialLogin:async(e,t,r)=>n("/oauth/token",{method:"POST",body:JSON.stringify({access_token:e,grant_type:"social",provider:t,client_id:o,client_secret:s,...r&&{referred_by:r}})}),logout:async()=>n("/oauth/logout",{method:"GET"})}},56142:(e,t,r)=>{r.d(t,{Ec:()=>l,Xz:()=>_,c6:()=>p,mO:()=>I});var o=r(66609),s=r(50931),n=r(29143),a=r(39412);let i="https://api.feedspace.io/v3",u=()=>(0,n.Ri)(n.ym.ACCESS_TOKEN),c="fs3_tab_ws_id",d=()=>{let e=(0,n.Ri)(n.ym.LOGGED_IN_USER);return`${n.ym.SELECTED_WORKSPACE_PREFIX}${e?"_"+e:""}`},p=()=>{let e=sessionStorage.getItem(c);if(e)return e;let t=(0,n.Ri)(d());return t?(sessionStorage.setItem(c,t),t):null},l=e=>{sessionStorage.setItem(c,e),(0,n.TV)(d(),e)},_=()=>{sessionStorage.removeItem(c),(0,n.Yj)(d())},E={AUTH_ERROR:3,RATE_LIMIT:3,NETWORK_ERROR:3,NON_GET_REQUEST:1},h=e=>new Promise(t=>setTimeout(t,e)),f=null;async function m(){return f||(f=(async()=>{let e=(0,n.Ri)(n.ym.REFRESH_TOKEN);if(!e)return!1;let t=await (0,a.J)(e);return!!t&&((0,n.TV)(n.ym.ACCESS_TOKEN,t.access_token),t.refresh_token&&(0,n.TV)(n.ym.REFRESH_TOKEN,t.refresh_token),!0)})().finally(()=>{f=null}))}function R(e,t){return 429===e?2e3:Math.round(Math.min(1e3*Math.pow(2,t-1),5e3)*(1+.2*Math.random()))}function y(){return"u">typeof navigator&&!navigator.onLine}function S(e,t){let n=e&&y()?"common:httpErrors.offline":"common:httpErrors.serverError",a=s.Ay.t(n);o.oR.error(a,{id:"http-retry-exhausted"}),t&&Promise.all([r.e(8229),r.e(8097)]).then(r.bind(r,8097)).then(({trackErrorDisplayed:e})=>{e({status:t.status,message:a,api_endpoint:t.endpoint,api_method:t.method})}).catch(()=>{})}function T(e){let t=i?.endsWith("/")?i.slice(0,-1):i,r=e.startsWith("/")?e:`/${e}`;return`${t}${r}`}async function w(){(0,n.Yj)(n.ym.ACCESS_TOKEN),(0,n.Yj)(n.ym.REFRESH_TOKEN);let{useAuthStore:e}=await Promise.all([r.e(8229),r.e(1704),r.e(2208)]).then(r.bind(r,21704));(0,e.getState().logout)(),window.location.href="/signin";let t=Error(s.Ay.t("common:httpErrors.sessionExpired"));throw t.status=401,t}async function O(e,t,o){if(t?.has_show_viewer_popup||t?.has_show_contact_owner_popup){e.is_open_access_popup=!0;let{useAccessDeniedStore:t}=await r.e(4840).then(r.bind(r,84840));t.getState().show()}else if(t?.has_show_upgrade_popup){e.is_open_upgrade_popup=!0;let{useUpgradeModalStore:s}=await r.e(2922).then(r.bind(r,82922)),n=o??t.upgrade_context??void 0;s.getState().show(n)}}async function g(e,t,r,o){let s=Error(t?.message||"Request failed");return s.status=e.status,s.data=t,403===e.status&&(r||await O(s,t,o),(s.is_open_upgrade_popup||s.is_open_access_popup)&&(s.stack="")),s}async function N(e){let t=e.headers.get("content-type");if(!t||!t.includes("application/json"))return{};let r=await e.json(),o=r?.data?.error;if("string"==typeof o&&o){let t=Error(o);throw t.status=e.status,t.data={message:o},t}return r}async function k(e,t,r){let{method:o,endpoint:n,disableRetry:a,skipAccessDeniedModal:i,upgradeContext:u}=r,c=1;for(;;)try{var d;let r,s=await e();if(s.ok)return await t(s);if(401===s.status){if(!a&&c<E.AUTH_ERROR)try{if(await m()){await h(R(401,c)),c++;continue}}catch{}return w()}let p=(d=s.status,401===d?"AUTH_ERROR":d>=500&&d<600?"NON_GET_REQUEST":429===d&&"GET"===o?"RATE_LIMIT":"NON_GET_REQUEST");if(!a&&c<E[p]){await h(R(s.status,c)),c++;continue}try{r=await s.json()}catch{r={message:s.statusText}}c>1&&429===s.status&&S(!1,{endpoint:n,method:o,status:s.status});let l=await g(s,r,i,u);
1throw l.api_endpoint=n,l.api_method=o,l}catch(i){if(i.status||i instanceof Error&&"AbortError"===i.name)throw i;let e="GET"===o?E.NETWORK_ERROR:E.NON_GET_REQUEST;if(!a&&c<e){await h(R(void 0,c)),c++;continue}let t=c>1;t&&S(!0,{endpoint:n,method:o});let r=Error(s.Ay.t(y()?"common:httpErrors.offline":"common:httpErrors.serverError"));throw r.is_network_error=!0,r.api_endpoint=n,r.api_method=o,t&&(r._retry_exhausted_tracked=!0),r}}async function A(e,t={}){let{method:r="GET",data:o,signal:s,skipWorkspaceHeader:n=!1,skipAccessDeniedModal:a=!1,upgradeContext:i,workspaceId:c,disableRetry:d=!1}=t,l=T(e);return k(()=>{let e=u(),t=c??p(),a={"Content-Type":"application/json","X-FRAME-OPTIONS":"SAMEORIGIN","X-Request-Source":"web"};e&&(a.Authorization=`Bearer ${e}`),t&&!n&&(a["fs-workspace-id"]=t),a["X-Current-Url"]=window.location.href;let i={method:r,headers:a,signal:s};return o&&(i.body=JSON.stringify(o)),fetch(l,i)},N,{method:r,endpoint:e,disableRetry:d,skipAccessDeniedModal:a,upgradeContext:i})}let I={get:(e,t)=>A(e,{...t,method:"GET"}),post:(e,t,r)=>A(e,{...r,method:"POST",data:t}),put:(e,t,r)=>A(e,{...r,method:"PUT",data:t}),delete:(e,t,r)=>A(e,{...r,method:"DELETE",data:t}),postFormData:async(e,t,r)=>{let o=T(e);return k(()=>{let e=u(),s=r?.workspaceId??p(),n={"X-FRAME-OPTIONS":"SAMEORIGIN","X-Request-Source":"web"};return e&&(n.Authorization=`Bearer ${e}`),s&&(n["fs-workspace-id"]=s),fetch(o,{method:"POST",headers:n,body:t})},N,{method:"POST",endpoint:e,disableRetry:!1,skipAccessDeniedModal:r?.skipAccessDeniedModal??!1,upgradeContext:r?.upgradeContext})},postFormDataBlob:async(e,t,r)=>{let o=T(e);return k(()=>{let e=u(),s=r?.workspaceId??p(),n={"X-FRAME-OPTIONS":"SAMEORIGIN","X-Request-Source":"web"};return e&&(n.Authorization=`Bearer ${e}`),s&&(n["fs-workspace-id"]=s),n["X-Current-Url"]=window.location.href,fetch(o,{method:"POST",headers:n,body:t})},e=>e.blob(),{method:"POST",endpoint:e,disableRetry:!1,skipAccessDeniedModal:r?.skipAccessDeniedModal??!1,upgradeContext:r?.upgradeContext})},getBlob:async(e,t)=>{let r=T(e);return k(()=>{let e=u(),o=t?.workspaceId??p(),s={"X-FRAME-OPTIONS":"SAMEORIGIN","X-Request-Source":"web"};return e&&(s.Authorization=`Bearer ${e}`),o&&(s["fs-workspace-id"]=o),fetch(r,{method:"GET",headers:s,signal:t?.signal})},e=>e.blob(),{method:"GET",endpoint:e,disableRetry:t?.disableRetry??!1,skipAccessDeniedModal:t?.skipAccessDeniedModal??!1,upgradeContext:t?.upgradeContext})},postFormDataWithProgress:(e,t,r,o)=>{let s=T(e),n=u(),a=o?.workspaceId??p();return new Promise((e,o)=>{let i=new XMLHttpRequest;i.open("POST",s),i.setRequestHeader("X-FRAME-OPTIONS","SAMEORIGIN"),i.setRequestHeader("X-Request-Source","web"),n&&i.setRequestHeader("Authorization",`Bearer ${n}`),a&&i.setRequestHeader("fs-workspace-id",a),i.setRequestHeader("X-Current-Url",window.location.href),r&&(i.upload.onprogress=e=>{e.lengthComputable&&r(e.loaded/e.total)}),i.onload=()=>{if(i.status>=200&&i.status<300)try{e(i.responseText?JSON.parse(i.responseText):{})}catch{o(Error("Invalid server response"))}else{let e=`Request failed (${i.status})`;try{let t=JSON.parse(i.responseText);t?.message&&(e=t.message)}catch{}o(Error(e))}},i.onerror=()=>o(Error("Network error")),i.send(t)})}}}}]);

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.