import{b as s}from"./Cu5ilWky.js";import{e as f}from"./92N1comP.js";function i(a){const e=a??{};return{overrides:e.overrides??[],fallback:e.fallback??{}}}async function u(){return s.get("/config")}async function p(a){const{data:e,meta:t,headers:r}=await s.requestRaw("GET",`/config/${a}`);return{data:e,etag:f(r),...i(t)}}async function m(a,e,t){const r={};t&&(r["If-Match"]=`"${t}"`);const{data:n,meta:o,headers:c}=await s.requestRaw("POST",`/config/${a}/revert`,{body:e,headers:r});return{data:n,etag:c.get("etag")?.replace(/"/g,"")??"",...i(o)}}async function h(a,e,t){const r={};t&&(r["If-Match"]=`"${t}"`);const{data:n,meta:o,headers:c}=await s.requestRaw("PATCH",`/config/${a}`,{body:e,headers:r});return{data:n,etag:c.get("etag")?.replace(/"/g,"")??"",...i(o)}}export{u as a,m as b,p as g,i as r,h as s};