PageSourceSearch

https://augmentable.ai/_app/immutable/chunks/D0oU3RRJ.js

js augmentable.ai collected 2026-10-05 12:57:03 UTC 1,615 bytes, 1 lines download raw bytes

1import{g as s}from"./B89fvkVq.js";import{a as u,o as l}from"./NnV39TzZ.js";import{w,g as c}from"./p-0ImWIs.js";function p(){return u==="hifi-wp"}function T(){return u!=="hifi-wp"}function f(){return u}const o=w(null);let i=null;function A(){i||(i=setInterval(async()=>{try{const e=await s();e.currentUser&&await e.currentUser.getIdToken(!0)}catch{console.error("❌ Failed to refresh token")}},3e3*1e3))}function m(){i&&(clearInterval(i),i=null)}const d=120;function k(e){try{const n=e.split(".")[1];if(!n)return!0;const r=JSON.parse(atob(n.replace(/-/g,"+").replace(/_/g,"/")));return r.exp?Date.now()/1e3>=r.exp-d:!0}catch{return!0}}async function E(){try{const e=await s();if(!(e!=null&&e.currentUser))return!1;const n=await e.currentUser.getIdToken(!0);return o.set(n),!0}catch{return!1}}async function y(e={}){const{forceRefresh:n=!1}=e;if(n){const t=await s();if(!t.currentUser)throw new Error("Firebase authentication required");const a=await t.currentUser.getIdToken(!0);return o.set(a),{Authorization:`Bearer ${a}`,"X-Account-ID":f()}}let r=c(o);if(r&&k(r))try{const t=await s();t.currentUser&&(r=await t.currentUser.getIdToken(!0),o.set(r))}catch{}if(!r){const t=await s();let a=0;for(;!t.currentUser&&a<30&&(await new Promise(h=>setTimeout(h,100)),r=c(o),!r);)a+=1;if(!t.currentUser&&!r)throw new Error("Firebase authentication required");r||(r=await t.currentUser.getIdToken())}return{Authorization:`Bearer ${r}`,"X-Account-ID":f()}}function _(){const e=String(l).trim().toLowerCase();return e?!(e==="false"||e==="0"||e==="no"):!0}export{T as a,y as b,_ as c,m as d,o as f,f as g,p as i,E as r,A as s};

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.