PageSourceSearch

https://www.ucv.edu.pe/chunk-OGVDGPNJ.js

js ucv.edu.pe collected 2026-10-02 04:21:59 UTC 3,082 bytes, 1 lines download raw bytes

1import{a as o}from"./chunk-XS6OYBCG.js";import{b as d,c as h}from"./chunk-MRCLTOLR.js";import{Z as m,cd as p,da as r}from"./chunk-P6F3PPPU.js";var u=class s{document=r(p);meta=r(d);titlePage=r(h);updateCanonicalUrl(t=""){let e=this.document.querySelector("link[rel='canonical']")||null;e||(e=this.document.createElement("link")),e.setAttribute("rel","canonical"),t?e.setAttribute("href",t):e.setAttribute("href",this.document.URL.replace("http:","https:")),this.document.head.appendChild(e)}setUpMetaTags(t,e,a,n){if(t){let i="";t.canonical&&(i=t.canonical);let c=this.esVariantePorSede();!i&&c&&(i=this.urlSinQuery());let f=i||this.document.URL.replace("http:","https:");if(this.updateCanonicalUrl(i),this.titlePage.setTitle(t.title),this.meta.updateTag({name:"description",content:t.description}),this.document.location.hostname.includes("portalwebdesarrollo.ucv.edu.pe")?this.meta.updateTag({name:"robots",content:"noindex,nofollow"}):c?this.meta.updateTag({name:"robots",content:"noindex,follow"}):this.meta.updateTag({name:"robots",content:t.robots}),e&&(this.document.documentElement.lang=e),this.meta.updateTag({property:"og:title",content:t.og_title}),this.meta.updateTag({property:"og:description",content:t.og_description}),this.meta.updateTag({property:"og:url",content:t.og_url||f}),this.meta.updateTag({property:"og:image:secure_url",content:t.og_image}),this.meta.updateTag({property:"og:image",content:t.og_image}),this.meta.updateTag({property:"og:image:width",content:"1200"}),this.meta.updateTag({name:"twitter:card",content:"summary_large_image"}),this.meta.updateTag({name:"twitter:title",content:t.og_title}),this.meta.updateTag({name:"twitter:description",content:t.og_description}),this.meta.updateTag({name:"twitter:image",content:t.og_image}),n){if(n.es){let l=n.es.replace(/\/home$/,"");this.updateHrefLang("es",l),this.updateHrefLang("x-default",l)}else this.updateHrefLang("es",o.SITE_HREFLANG_ES+this.document.location.pathname),this.updateHrefLang("x-default",o.SITE_HREFLANG_ES+this.document.location.pathname);n.en?this.updateHrefLang("en",n.en.replace(/\/home$/,"")):this.updateHrefLang("en",o.SITE_HREFLANG_EN)}this.moveMetasUp()}}updateHrefLang(t,e){let a=`link[rel="alternate"][hreflang="${t}"]`,n=this.document.head.querySelector(a);n||(n=this.document.createElement("link"),n.setAttribute("rel","alternate"),n.setAttribute("hreflang",t),this.document.head.appendChild(n)),n.setAttribute("href",e)}setHtmlLang(t){t===""&&(t="es"),this.document.documentElement.setAttribute("lang",t)}esVariantePorSede(){let{pathname:t,search:e}=this.document.location;return t.replace(/\/$/,"")==="/alfa"&&new URLSearchParams(e).has("sede")}urlSinQuery(){let{origin:t,pathname:e}=this.document.location;return`${t}${e}`.replace("http:","https:")}moveMetasUp(){let t=this.document.head;if(!t)return;Array.from(t.querySelectorAll("title, meta")).reverse().forEach(a=>{t.firstChild?t.insertBefore(a,t.firstChild):t.appendChild(a)})}static \u0275fac=function(e){return new(e||s)};static \u0275prov=m({token:s,factory:s.\u0275fac,providedIn:"root"})};export{u as a};

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.