1import{o as e}from"./chunk-CMxvf4Kt.js";import{n as t}from"./axios-fEECnNIR.js";import{n}from"./defineProperty-BSOEKPCK.js";import{t as r}from"./ready-oVdrxDjP.js";import{m as i}from"./initial_state-Bw8LfuSU.js";var a=e(n()),o=e=>{let t=e.headers.link;return t?a.default.parse(t):new a.default},s=e=>`id`in e&&`retry`in e,c=e=>{let t=e.headers[`mastodon-async-refresh`];if(!t)return null;let n={};return t.split(/,\s*/).forEach(e=>{let[t,r]=e.split(`=`,2),i;t&&[`id`,`retry`].includes(t)&&r&&(i=r.startsWith(`"`)?r.slice(1,-1):parseInt(r),n[t]=i)}),s(n)?n:null},l={};r(()=>{let e=document.querySelector(`meta[name=csrf-token]`);e&&(l[`X-CSRF-Token`]=e.content)});var u=()=>{let e=i();return e?{Authorization:`Bearer ${e}`}:{}};function d(e=!0){return t.create({transitional:{clarifyTimeoutError:!0},headers:{...l,...e?u():{}},transformResponse:[function(e){try{return JSON.parse(e)}catch{return e}}]})}async function f(e,t,n={}){let{data:r}=await d().request({method:e,url:`/api/`+t,...n});return r}async function p(e,t,n={}){return f(`GET`,e,{params:t,...n})}async function m(e,t){return f(`POST`,e,{data:t})}async function h(e,t){return f(`PUT`,e,{data:t})}async function g(e,t){return f(`DELETE`,e,{params:t})}async function _(e,t){return f(`PATCH`,e,{data:t})}export{_ as a,c,p as i,o as l,f as n,m as o,g as r,h as s,d as t}; 2//# sourceMappingURL=api-B38Gpbea.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.