1import{c as u}from"./chunk-DIGPPQJE.js";import{h as g}from"./chunk-KAJMKXZ6.js";import{d as c}from"./chunk-SRTXE2HR.js";import{F as l,Fa as p,W as f,Z as h,da as s,l as i,s as n,y as d}from"./chunk-NTTV6FWH.js";var m="1790925119833";var v=class o{platformId=s(p);http=s(g);translate=s(u);loaded=new Map;constructor(){this.markLoaded(this.currentLang,"shared"),this.translate.onLangChange.subscribe(t=>{this.reloadChunks(t.lang)})}ensure(t){let r=this.currentLang;return this.isLoaded(r,t)?i(!0):c(this.platformId)?(this.markLoaded(r,t),i(!0)):this.fetchAndMerge(r,t)}fetchAndMerge(t,r){return this.http.get(`/assets/i18n/${t}/${r}.json?v=${m}`).pipe(f(e=>{this.translate.setTranslation(t,e,!0),this.markLoaded(t,r)}),n(()=>!0),l(e=>(console.warn(`[i18n] Failed to load chunk "${r}" for "${t}"`,e),i(!1))))}reloadChunks(t){let r=new Set;if(this.loaded.forEach(a=>a.forEach(b=>r.add(b))),r.delete("shared"),r.size===0)return;let e=[];r.forEach(a=>{this.isLoaded(t,a)||e.push(this.fetchAndMerge(t,a))}),e.length&&d(e).subscribe()}isLoaded(t,r){return this.loaded.get(t)?.has(r)??!1}markLoaded(t,r){this.loaded.has(t)||this.loaded.set(t,new Set),this.loaded.get(t).add(r)}get currentLang(){return this.translate.currentLang||this.translate.defaultLang||"fr"}static \u0275fac=function(r){return new(r||o)};static \u0275prov=h({token:o,factory:o.\u0275fac,providedIn:"root"})};export{m as a,v as b};
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.