1import{bn as u,cK as p}from"./BHCwa4Bn.js";function g(){const{t:e}=u(),o={NOT_FOUND:{statusCode:404,statusMessage:e("app.error.notFound.statusMessage"),message:e("app.error.notFound.message"),fatal:!0,retryable:!1},SERVER_ERROR:{statusCode:500,statusMessage:e("app.error.server.statusMessage"),message:e("app.error.server.message"),fatal:!0,retryable:!1},API_UNAVAILABLE:{statusCode:503,statusMessage:e("app.error.apiUnavailable.statusMessage"),message:e("app.error.apiUnavailable.message"),fatal:!0,retryable:!0},API_RATE_LIMIT:{statusCode:429,statusMessage:e("app.error.apiRateLimit.statusMessage"),message:e("app.error.apiRateLimit.message"),fatal:!1,retryable:!0}},s=(a,r)=>{const t=o[a];throw p({...t,message:r||t.message})};return{throwError:s,handleApiError:(a,r)=>{switch(console.error(`Failed to fetch ${r||"data"}:`,a),a?.response?.status){case 404:s("NOT_FOUND");break;case 429:s("API_RATE_LIMIT");break;case 500:s("SERVER_ERROR");break;default:s("API_UNAVAILABLE",a?.message)}}}}export{g 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.