1import{a as u}from"./chunk-CG65MUSR.js";import{d as i}from"./chunk-NE2NOTW3.js";import{R as a,W as n}from"./chunk-PFD3P3UK.js";import{a as t}from"./chunk-7E5YLL2G.js";var C="/cursos";function m(s){let r=s.trim();if(!r)return"";let e=r;try{e=new URL(r).pathname}catch{e=r}return e=e.split(/[?#]/,1)[0].replace(/^\/+|\/+$/g,"").replace(/^(?:cursos|courses)\//i,"").trim(),!e||!/^[a-z0-9][a-z0-9-_]*$/i.test(e)?"":e.toLowerCase()}function c(s){return`${C}/${m(s)}`}var p=class s{#e=n(i);#r=u.API_URL;getCourses({pn:r,cl:e,qh:o}){return this.#e.post(`${this.#r}/courses/getCourses`,t(t({pn:r,rbp:9},e?.length?{cl:e}:{}),o?.trim()?{qh:o.trim()}:{}),{transferCache:!0})}getTotalCoursesCount(){return this.#e.get(`${this.#r}/courses/getTotalCourses`)}getCoursesCategory(){return this.#e.post(`${this.#r}/courses/getCategories`,{},{transferCache:!0})}getCourse(r){return this.#e.post(`${this.#r}/courses/getCourse`,{path:r},{transferCache:!0})}getCourseProgram(r){return this.#e.post(`${this.#r}/courses/getProgram`,{cid:r},{transferCache:!0})}static \u0275fac=function(e){return new(e||s)};static \u0275prov=a({token:s,factory:s.\u0275fac,providedIn:"root"})};export{m as a,c as b,p as c};
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.