PageSourceSearch

https://www.arabnews.fr/_next/static/chunks/0892le66rt8gd.js

js arabnews.fr collected 2026-10-02 07:57:13 UTC 89,223 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,23580,e=>{"use strict";var t=e.i(43476),s=e.i(3303),i=e.i(71645),r=e.i(18566);function n(){let e=window.googletag||={cmd:[]};return e.cmd&&"function"==typeof e.cmd.push||(e.cmd=[]),e}function a({config:e,reserveSpace:s}){let r=e.lazyLoad??!0,o=(0,i.useRef)(null),l=(0,i.useRef)(null),[c,u]=(0,i.useState)(!r),h=(0,i.useCallback)(e=>{e[0]?.isIntersecting&&u(!0)},[]);(0,i.useEffect)(()=>{if(!r||c)return;let e=o.current;if(!e)return;let t=new IntersectionObserver(h,{rootMargin:"200px"});return t.observe(e),()=>t.disconnect()},[r,c,h]),(0,i.useEffect)(()=>{if(!c)return;let t=n();return t.cmd.push(()=>{let s=t.defineSlot(e.adUnitPath,e.sizes,e.id);if(!s)return;let i=e.sizes.filter(([e])=>e<=320),r=t.sizeMapping().addSize([992,0],e.sizes).addSize([0,0],i.length?i:[[1,1]]).build();s.defineSizeMapping(r).addService(t.pubads()),t.display(e.id),l.current=s}),()=>{l.current&&window.googletag&&window.googletag.cmd.push(()=>{l.current&&(window.googletag.destroySlots([l.current]),l.current=null)})}},[c,e]);let d=e.sizes.some(([e,t])=>1===e&&1===t),p=s&&null!=e.minHeight?"number"==typeof e.minHeight?`${e.minHeight}px`:e.minHeight:null;return(0,t.jsx)("div",{ref:o,id:e.id,className:d?"size-px overflow-hidden":"ad-slot mx-auto max-w-full",style:p?{minHeight:p,overflow:"hidden",contentVisibility:"auto",containIntrinsicSize:`auto ${p}`}:void 0})}e.s(["AdManager",0,function({enabled:e,slots:o,collapseEmptyDivs:l}){let c=(0,r.usePathname)(),u=c.split("/").filter(Boolean).length>=2?"article":"/"===c?"home":null,h=(0,i.useMemo)(()=>u?o.filter(e=>e.id===`${u}-tracking`||e.id===`${u}-leaderboard`):[],[u,o]),d="before_fetch"===l||!0===l,p="disabled"===l||!1===l;return((0,i.useEffect)(()=>{if(!e||!h.length)return;let t=n();t.cmd.push(()=>{d?t.pubads().collapseEmptyDivs(!0):p||t.pubads().collapseEmptyDivs(),t.pubads().enableSingleRequest(),t.pubads().enableLazyLoad({fetchMarginPercent:200,renderMarginPercent:100}),t.enableServices()})},[e,h,d,p]),e&&h.length)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.default,{src:"https://securepubads.g.doubleclick.net/tag/js/gpt.js",strategy:"lazyOnload"}),(0,t.jsx)("div",{className:"ad-slots text-center","aria-label":"Publicité",children:h.map(e=>(0,t.jsx)(a,{config:e,reserveSpace:!d},e.id))})]}):null},"AdPlacement",0,function({data:e}){let s=e.config??{},i=s.adUnitPath,r=s.adSizes??[];if(!i||0===r.length)return null;let n=s.slotId||e.id||`ad-${e.componentType}`,o=s.minHeight??s.height;return(0,t.jsx)(a,{config:{id:n,adUnitPath:i,sizes:r,lazyLoad:s.lazyLoad??!0,minHeight:o},reserveSpace:null!=o})}])},1932,(e,t,s)=>{t.exports=JSON.parse('[{"id":"dummy-1","slug":"exemple-sommet-riyad","title":"Riyad accueille un sommet diplomatique sur la stabilité régionale","subtitle":"Des délégations de plusieurs capitales se réunissent pour examiner les dossiers de sécurité et de développement.","summary":"Le sommet de Riyad réunit des responsables politiques autour des enjeux de sécurité, d’énergie et de coopération économique.","body":"<p>Contenu de démonstration. Riyad accueille cette semaine un sommet diplomatique consacré à la stabilité régionale, avec des discussions sur la sécurité maritime, l’énergie et les corridors commerciaux.</p><p>Les délégations ont souligné la nécessité d’une coordination plus étroite, tout en rappelant que les décisions définitives relèvent encore des négociations bilatérales.</p>","featuredImage":"/dummy/1.svg","thumbnail":"/dummy/1.svg","heroImage":"/dummy/1.svg","heroCaption":"Vue de Riyad — image de démonstration.","publishedAt":"2026-08-20T08:30:00.000Z","updatedAt":"2026-08-20T11:00:00.000Z","section":{"name":"Monde arabe","slug":"monde-arabe"},"label":{"id":"dummy-label-analyse","name":"Analyse","slug":"analyse","color":"#d85229"},"authors":[{"name":"AFP","slug":"afp"}],"author":{"name":"AFP","slug":"afp"},"tags":[{"name":"Arabie saoudite","slug":"arabie-saoudite"},{"name":"Diplomatie","slug":"diplomatie"}],"shortUrl":"https://arab.news/ex1"},{"id":"dummy-2","slug":"exemple-reforme-education-caire","title":"Le Caire lance un programme de réforme de l’enseignement supérieur","subtitle":"Universités et entreprises partenaires veulent rapprocher formation et marché du travail.","summary":"Un plan pluriannuel vise à moderniser les filières scientifiques et à renforcer les échanges universitaires.","body":"<p>Contenu de démonstration. Les autorités égyptiennes ont présenté un programme de réforme de l’enseignement supérieur, avec un accent sur les sciences, les langues et les stages en entreprise.</p><p>Le calendrier s’étale sur plusieurs années et reste soumis à l’évaluation des établissements pilotes.</p>","featuredImage":"/dummy/2.svg","thumbnail":"/dummy/2.svg","heroImage":"/dummy/2.svg","heroCaption":"Campus universitaire — image de démonstration.","publishedAt":"2026-08-19T14:15:00.000Z","section":{"name":"Monde arabe","slug":"monde-arabe"},"label":{"id":"dummy-label-education","name":"Éducation","slug":"education","color":"#344651"},"authors":[{"name":"Reuters","slug":"reuters"}],"author":{"name":"Reuters","slug":"reuters"},"tags":[{"name":"Égypte","slug":"egypte"}]},{"id":"dummy-3","slug":"exemple-paris-climat-transports","title":"Paris accélère le plan de transports bas carbone","subtitle":"Nouvelles lignes, bus électriques et restrictions de circulation au centre-ville.","summary":"La municipalité présente un calendrier de déploiement des bus électriques et d’extension des pistes cyclables.","body":"<p>Contenu de démonstration. Paris a détaillé un plan de transports bas carbone, combinant bus électriques, extension du réseau cyclable et zones de circulation apaisée.</p><p>Les riverains et les commerçants demandent davantage de concertation sur le calendrier des travaux.<
1/p>","featuredImage":"/dummy/3.svg","thumbnail":"/dummy/3.svg","heroImage":"/dummy/3.svg","heroCaption":"Transports parisiens — image de démonstration.","publishedAt":"2026-08-18T07:45:00.000Z","section":{"name":"France","slug":"france"},"label":{"id":"dummy-label-france","name":"France","slug":"france","color":"#d85229"},"authors":[{"name":"AFP","slug":"afp"}],"author":{"name":"AFP","slug":"afp"},"tags":[{"name":"Climat","slug":"climat"},{"name":"Transports","slug":"transports"}]},{"id":"dummy-4","slug":"exemple-lyon-industrie-culturelle","title":"Lyon mise sur les industries culturelles pour l’emploi local","subtitle":"Studios, festivals et formation professionnelle reçoivent un nouvel appui régional.","summary":"Un fonds régional soutient les studios, l’édition et les festivals afin de retenir les talents.","body":"<p>Contenu de démonstration. La région lyonnaise annonce un fonds destiné aux industries culturelles, de la production audiovisuelle à l’édition.</p><p>L’objectif affiché est de créer des emplois stables et de limiter la fuite des talents vers d’autres métropoles.</p>","featuredImage":"/dummy/4.svg","thumbnail":"/dummy/4.svg","heroImage":"/dummy/4.svg","publishedAt":"2026-08-17T16:00:00.000Z","section":{"name":"France","slug":"france"},"authors":[{"name":"AP","slug":"ap"}],"author":{"name":"AP","slug":"ap"},"tags":[{"name":"Culture","slug":"culture"}]},{"id":"dummy-5","slug":"exemple-negociations-commerce-mondial","title":"Les négociations commerciales mondiales reprennent à Genève","subtitle":"Droits de douane, normes agricoles et technologies de pointe au menu.","summary":"Les délégations tentent de débloquer plusieurs dossiers tarifaires avant la prochaine session ministérielle.","body":"<p>Contenu de démonstration. Les négociations commerciales ont repris à Genève, avec des discussions sur les droits de douane, l’agriculture et les technologies numériques.</p><p>Aucun accord global n’est attendu à court terme, mais des avancées sectorielles restent possibles.</p>","featuredImage":"/dummy/5.svg","thumbnail":"/dummy/5.svg","heroImage":"/dummy/5.svg","publishedAt":"2026-08-16T09:20:00.000Z","section":{"name":"International","slug":"international"},"label":{"id":"dummy-label-monde","name":"Monde","slug":"monde","color":"#344651"},"authors":[{"name":"Reuters","slug":"reuters"}],"author":{"name":"Reuters","slug":"reuters"},"tags":[{"name":"Diplomatie","slug":"diplomatie"},{"name":"Commerce","slug":"commerce"}]},{"id":"dummy-6","slug":"exemple-marches-energie-transition","title":"Les marchés de l’énergie s’adaptent à la transition","subtitle":"Pétrole, gaz et renouvelables : les investisseurs rééquilibrent leurs portefeuilles.","summary":"Les cours restent volatils tandis que les investissements dans les renouvelables continuent de progresser.","body":"<p>Contenu de démonstration. Les marchés de l’énergie restent marqués par une volatilité élevée, alors que les investissements dans les renouvelables accélèrent.</p><p>Les analystes évoquent un rééquilibrage progressif plutôt qu’une rupture brutale des approvisionnements.</p>","featuredImage":"/dummy/6.svg","thumbnail":"/dummy/6.svg","heroImage":"/dummy/6.svg","publishedAt":"2026-08-15T12:10:00.000Z","section":{"name":"Économie","slug":"economie"},"label":{"id":"dummy-label-economie","name":"Économie","slug":"economie","color":"#d85229"},"authors":[{"name":"SPA","slug":"spa"}],"author":{"name":"SPA","slug":"spa"},"tags":[{"name":"Énergie","slug":"energie"}]},{"id":"dummy-7","slug":"exemple-festival-cinema-mediterranee","title":"Un festival de cinéma met à l’honneur les récits méditerranéens","subtitle":"Documentaires, fictions et coproductions attirent un public international.","summary":"La sélection mêle documentaires, premières œuvres et coproductions entre rives nord et sud.","body":"<p>Contenu de démonstration. Un festival consacré aux récits méditerranéens ouvre ses portes avec une sélection de fictions et de documentaires.</p><p>Les organisateurs insistent sur les coproductions et la circulation des œuvres entre les rives nord et sud.</p>","featuredImage":"/dummy/7.svg","thumbnail":"/dummy/7.svg","heroImage":"/dummy/7.svg","publishedAt":"2026-08-14T18:40:00.000Z","section":{"name":"Culture","slug":"culture"},"label":{"id":"dummy-label-culture","name":"Culture","slug":"culture","color":"#344651"},"authors":[{"name":"AFP","slug":"afp"}],"author":{"name":"AFP","slug":"afp"}
1,"tags":[{"name":"Cinéma","slug":"cinema"}]},{"id":"dummy-8","slug":"exemple-tribune-gouvernance-numerique","title":"La gouvernance numérique exige des règles plus lisibles","subtitle":"Une tribune plaide pour des normes claires sur les données, l’IA et la responsabilité des plateformes.","summary":"L’auteur estime que la régulation doit protéger les citoyens sans étouffer l’innovation.","body":"<p>Contenu de démonstration. Cette tribune argue que la gouvernance numérique a besoin de règles plus lisibles, notamment sur les données personnelles et l’intelligence artificielle.</p><p>L’auteur appelle à un équilibre entre protection des citoyens et capacité d’innovation des entreprises.</p>","featuredImage":"/dummy/8.svg","thumbnail":"/dummy/8.svg","heroImage":"/dummy/8.svg","publishedAt":"2026-08-13T10:05:00.000Z","section":{"name":"Point de vue","slug":"point-de-vue"},"label":{"id":"dummy-label-opinion","name":"Opinion","slug":"opinion","color":"#d85229"},"authors":[{"name":"AFP","slug":"afp"}],"author":{"name":"AFP","slug":"afp"},"tags":[{"name":"Technologie","slug":"technologie"}]},{"id":"dummy-9","slug":"exemple-voyage-al-ula","title":"AlUla, destination culturelle au cœur du désert","subtitle":"Sites archéologiques, festivals et nouveaux hôtels redessinent l’offre touristique.","summary":"Le site d’AlUla combine patrimoine nabatéen, programmation culturelle et infrastructures d’accueil.","body":"<p>Contenu de démonstration. AlUla attire un public croissant grâce à son patrimoine, ses festivals et de nouvelles infrastructures d’accueil.</p><p>Les autorités locales mettent en avant un tourisme culturel, avec une attention portée à la préservation des sites.</p>","featuredImage":"/dummy/9.svg","thumbnail":"/dummy/9.svg","heroImage":"/dummy/9.svg","heroCaption":"Paysage d’AlUla — image de démonstration.","publishedAt":"2026-08-12T08:00:00.000Z","section":{"name":"Voyage","slug":"voyage"},"authors":[{"name":"SPA","slug":"spa"}],"author":{"name":"SPA","slug":"spa"},"tags":[{"name":"Tourisme","slug":"tourisme"}]},{"id":"dummy-10","slug":"exemple-forum-investissement-riyad","title":"Un forum d’investissement rassemble fonds souverains et entreprises","subtitle":"Infrastructure, santé et technologies de l’information dominent les échanges.","summary":"Le forum met en relation investisseurs institutionnels et projets d’infrastructure à long terme.","body":"<p>Contenu de démonstration. Un forum d’investissement réunit à Riyad des fonds souverains et des entreprises autour de l’infrastructure, de la santé et du numérique.</p><p>Plusieurs lettres d’intention ont été évoquées, sans que les montants définitifs soient encore publics.</p>","featuredImage":"/dummy/10.svg","thumbnail":"/dummy/10.svg","heroImage":"/dummy/10.svg","publishedAt":"2026-08-11T13:25:00.000Z","section":{"name":"Événement","slug":"evenement"},"venue":"King Abdullah Financial District, Riyad","eventTime":"09h00","label":{"id":"dummy-label-evenement","name":"Événement","slug":"evenement","color":"#e0d102"},"authors":[{"name":"SPA","slug":"spa"}],"author":{"name":"SPA","slug":"spa"},"tags":[{"name":"Investissement","slug":"investissement"}]},{"id":"dummy-11","slug":"exemple-enquete-ressources-hydriques","title":"Enquête : la pression sur les ressources hydriques s’intensifie","subtitle":"Agriculture, villes et industrie se disputent une ressource de plus en plus contrainte.","summary":"L’enquête documente les tensions autour de l’eau, des nappes phréatiques aux grands transferts interbassins.","body":"<p>Contenu de démonstration. Cette enquête examine la pression croissante sur les ressources hydriques, entre agriculture irriguée, croissance urbaine et besoins industriels.</p><p>Les experts interrogés insistent sur la mesure des consommations et sur la rénovation des réseaux.</p>","featuredImage":"/dummy/11.svg","thumbnail":"/dummy/11.svg","heroImage":"/dummy/11.svg","publishedAt":"2026-08-10T06:50:00.000Z","section":{"name":"Enquêtes","slug":"enquetes"},"label":{"id":"dummy-label-enquete","name":"Enquête","slug":"enquete","color":"#d85229"},"authors":[{"name":"Reuters","slug":"reuters"}],"author":{"name":"Reuters","slug":"reuters"},"tags":[{"name":"Environnement","slug":"environnement"}]},{"id":"dummy-12","slug":"exemple-tribune-cooperation-sud","title":"Coopération Sud-Sud : un levier encore sous-exploité","subtitle":"Échanges universitaires, santé publique et logistique pourraient aller plus loin.","summary":"Une tribune estime que les partenariats Sud-Sud restent en deçà de leur potentiel économique et scientifique.","body":"<p>Contenu de démonstration. Cette tribune estime que la coopération Sud-Sud reste en deçà de son potentiel, notamment dans la santé, la logistique et la recherche.</p><p>L’auteur propose des mécanismes plus simples pour financer des projets conjoints.</p>","featuredImage":"/dummy/12.svg","thumbnail":"/dummy/12.svg","heroImage":"/dummy/12.svg","publishedAt":"2026-08-09T15:30:00.000Z","section":{"name":"Tribune","slug":"tribune"},"authors":[{"name":"AP","slug":"ap","image":"/dummy/1.svg"}],"author":{"name":"AP","slug":"ap","image":"/dummy/1.svg"},"tags":[{"name":"Diplomatie","slug":"diplomatie"}]},{"id":"dummy-13","slug":"exemple-mosaique-photographes-jeddah","title":"Mosaïque : photographes émergents de Jeddah","subtitle":"Une exposition collective croise archives familiales et scènes urbaines contemporaines.","summary":"La sélection réunit des regards sur la ville, le littoral et la mémoire familiale.","body":"<p>Contenu de démonstration. Une exposition collective à Jeddah met en avant des photographes émergents, entre archives familiales et scènes urbaines.</p><p>Le commissariat insiste sur la diversité des formats, du tirage argentique à l’image numérique.</p>","featuredImage":"/dummy/13.svg","thumbnail":"/dummy/13.svg","heroImage":"/dummy/13.svg","publishedAt":"2026-08-08T11:15:00.000Z","section":{"name":"Mosaïque","slug":"mosaique"},"source":{"name":"Aleqtesadiyah","country":"Arabie saoudite","image":"/dummy/1.svg"},"authors":[{"name":"SPA","slug":"spa"}],"author":{"name":"SPA","slug":"spa"},"tags":[{"name":"Photographie","slug":"photographie"}]},{"id":"dummy-14","slug":"exemple-video-patrimoine-najd","title":"Vidéo : le patrimoine architectural du Najd","subtitle":"Un reportage parcourt palais d’argile, routes caravanières et restaurations récentes.","summary":"Le reportage documente les techniques de construction en terre et les chantiers de restauration.","body":"<p>Contenu de démonstration. Ce reportage vidéo parcourt le patrimoine architectural du Najd, des palais d’argile aux chantiers de restauration.</p><p>Les artisans interrogés décrivent les techniques traditionnelles encore utilisées sur les sites protégés.</p>","featuredImage":"/dummy/14.svg","thumbnail":"/dummy/14.svg","heroImage":"/dummy/14.svg","publishedAt":"2026-08-07T17:55:00.000Z","section":{"name":"Vidéos","slug":"videos"},"label":{"id":"dummy-label-video","name":"Vidéo","slug":"video","color":"#d85229"},"authors":[{"name":"AFP","slug":"afp"}],"author":{"name":"AFP","slug":"afp"}
1,"tags":[{"name":"Patrimoine","slug":"patrimoine"}]},{"id":"dummy-15","slug":"exemple-mosaique-expo-riyad","title":"Riyad accueille une mosaïque de regards sur l’Expo 2030","summary":"Des rédactions partenaires couvrent les préparatifs de l’exposition universelle.","body":"<p>Contenu de démonstration.</p>","featuredImage":"/dummy/15.svg","thumbnail":"/dummy/15.svg","heroImage":"/dummy/15.svg","publishedAt":"2026-08-06T09:00:00.000Z","section":{"name":"Mosaïque","slug":"mosaique"},"source":{"name":"Akhbaar 24","country":"Arabie saoudite","image":"/dummy/1.svg"},"authors":[{"name":"SPA","slug":"spa"}],"author":{"name":"SPA","slug":"spa"}},{"id":"dummy-16","slug":"exemple-tribune-energie-golfe","title":"L’énergie du Golfe au service d’un nouvel équilibre","summary":"Une tribune sur la transition énergétique et la diplomatie régionale.","body":"<p>Contenu de démonstration.</p>","featuredImage":"/dummy/16.svg","thumbnail":"/dummy/16.svg","heroImage":"/dummy/16.svg","publishedAt":"2026-08-05T12:00:00.000Z","section":{"name":"Tribune","slug":"tribune"},"authors":[{"name":"Ali Shihabi","slug":"ali-shihabi","image":"/dummy/1.svg"}],"author":{"name":"Ali Shihabi","slug":"ali-shihabi","image":"/dummy/1.svg"}},{"id":"dummy-17","slug":"exemple-video-diplomatie-doha","title":"Vidéo : les médiations de Doha expliquées","summary":"Un reportage revient sur le rôle diplomatique du Qatar.","body":"<p>Contenu de démonstration.</p>","featuredImage":"/dummy/17.svg","thumbnail":"/dummy/17.svg","heroImage":"/dummy/17.svg","publishedAt":"2026-08-04T16:20:00.000Z","section":{"name":"Vidéos","slug":"videos"},"label":{"id":"dummy-label-video","name":"Vidéo","slug":"video","color":"#d85229"},"authors":[{"name":"AFP","slug":"afp"}],"author":{"name":"AFP","slug":"afp"}}]')},52029,(e,t,s)=>{t.exports={header:{id:"dummy-header",slug:"header",location:"header",title:"Navigation principale",items:[{id:"nav-monde-arabe",labels:{fr:"Monde arabe"},itemType:"section",target:"monde-arabe",sortOrder:0,children:[]},{id:"nav-france",labels:{fr:"France"},itemType:"section",target:"france",sortOrder:1,children:[]},{id:"nav-international",labels:{fr:"International"},itemType:"section",target:"international",sortOrder:2,children:[]},{id:"nav-economie",labels:{fr:"Économie"},itemType:"section",target:"economie",sortOrder:3,children:[]},{id:"nav-culture",labels:{fr:"Culture"},itemType:"section",target:"culture",sortOrder:4,children:[]},{id:"nav-point-de-vue",labels:{fr:"Point de vue"},itemType:"section",target:"point-de-vue",sortOrder:5,children:[]},{id:"nav-voyage",labels:{fr:"Voyage"},itemType:"section",target:"voyage",sortOrder:6,children:[]},{id:"nav-evenement",labels:{fr:"Événement"},itemType:"section",target:"evenement",sortOrder:7,children:[]},{id:"nav-enquetes",labels:{fr:"Enquêtes"},itemType:"section",target:"shorthand-deep-dive",sortOrder:8,children:[]},{id:"nav-tribune",labels:{fr:"Tribune"},itemType:"section",target:"tribune",sortOrder:9,children:[]},{id:"nav-mosaique",labels:{fr:"Mosaïque"},itemType:"section",target:"mosaique",sortOrder:10,children:[]}]},footer_main:{id:"dummy-footer-main",slug:"footer_main",location:"footer",title:"Pied de page",items:[{id:"footer-monde-arabe",labels:{fr:"Monde arabe"},itemType:"section",target:"monde-arabe",sortOrder:0,children:[]},{id:"footer-france",labels:{fr:"France"},itemType:"section",target:"france",sortOrder:1,children:[]},{id:"footer-international",labels:{fr:"International"},itemType:"section",target:"international",sortOrder:2,children:[]},{id:"footer-economie",labels:{fr:"Économie"},itemType:"section",target:"economie",sortOrder:3,children:[]},{id:"footer-culture",labels:{fr:"Culture"},itemType:"section",target:"culture",sortOrder:4,children:[]},{id:"footer-enquetes",labels:{fr:"Enquêtes"},itemType:"section",target:"shorthand-deep-dive",sortOrder:5,children:[]},{id:"footer-tribune",labels:{fr:"Tribune"},itemType:"section",target:"tribune",sortOrder:6,children:[]},{id:"footer-mosaique",labels:{fr:"Mosaïque"},itemType:"section",target:"mosaique",sortOrder:7,children:[]},{id:"footer-videos",labels:{fr:"Vidéos"},itemType:"section",target:"videos",sortOrder:8,children:[]}]}
1,footer_legal:{id:"dummy-footer-legal",slug:"footer_legal",location:"footer",title:"Liens légaux",items:[{id:"legal-contact",labels:{fr:"Contactez-nous"},itemType:"external_url",target:"/contact/contactez_nous",sortOrder:0,children:[]},{id:"legal-publicite",labels:{fr:"Publicité"},itemType:"external_url",target:"/contact/contactez_nous#publicity",sortOrder:1,children:[]},{id:"legal-mentions",labels:{fr:"Mentions légales"},itemType:"external_url",target:"/contact/contactez_nous#faq",sortOrder:2,children:[]}]}}},60166,e=>{"use strict";let t,s,i,r;var n,a,o,l=e.i(43476),c=e.i(22016),u=e.i(18566),h=e.i(39843),d=e.i(57561),p=e.i(59878),m=e.i(17449);function g({title:e="LES DERNIÈRES NEWS",articles:t,sticky:s=!1}){if(!t.length)return null;let i=(0,l.jsxs)("div",{className:"block-wrapper",children:[(0,l.jsx)("div",{className:"block-title text-center",children:(0,l.jsx)("h3",{children:e})}),(0,l.jsx)("div",{className:"block-content block-custom-bg padding-1",children:(0,l.jsx)("div",{className:"objects-list",children:t.map(e=>{let t=(0,m.articleHref)(e),s=(0,m.articleImage)(e);return t?(0,l.jsx)("div",{className:"object-item",role:"article",children:(0,l.jsxs)("div",{className:"media-object align-top",children:[s&&(0,l.jsx)("div",{className:"media-object-section",children:(0,l.jsx)("div",{className:"media-object-img",children:(0,l.jsx)(c.default,{href:t,"aria-label":e.title,children:(0,l.jsx)("img",{src:s,alt:"",width:100,loading:"lazy"})})})}),(0,l.jsx)("div",{className:"media-object-section",children:(0,l.jsx)("h6",{children:(0,l.jsx)(c.default,{href:t,children:e.title})})})]})},e.id):null})})})]});return s?(0,l.jsx)("div",{id:"sticky-block",children:i}):i}var f=e.i(47167);let y=Object.create(null);y.open="0",y.close="1",y.ping="2",y.pong="3",y.message="4",y.upgrade="5",y.noop="6";let b=Object.create(null);Object.keys(y).forEach(e=>{b[y[e]]=e});let v={type:"error",data:"parser error"},w="function"==typeof Blob||"u">typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),_="function"==typeof ArrayBuffer,x=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,A=({type:e,data:t},s,i)=>{if(w&&t instanceof Blob)if(s)return i(t);else return S(t,i);if(_&&(t instanceof ArrayBuffer||x(t)))if(s)return i(t);else return S(new Blob([t]),i);return i(y[e]+(t||""))},S=(e,t)=>{let s=new FileReader;return s.onload=function(){t("b"+(s.result.split(",")[1]||""))},s.readAsDataURL(e)};function T(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",C="u"<typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e<k.length;
1e++)C[k.charCodeAt(e)]=e;let j="function"==typeof ArrayBuffer,E=(e,t)=>{if("string"!=typeof e)return{type:"message",data:R(e,t)};let s=e.charAt(0);return"b"===s?{type:"message",data:N(e.substring(1),t)}:b[s]?e.length>1?{type:b[s],data:e.substring(1)}:{type:b[s]}:v},N=(e,t)=>j?R((e=>{let t=.75*e.length,s=e.length,i,r=0,n,a,o,l;"="===e[e.length-1]&&(t--,"="===e[e.length-2]&&t--);let c=new ArrayBuffer(t),u=new Uint8Array(c);for(i=0;i<s;i+=4)n=C[e.charCodeAt(i)],a=C[e.charCodeAt(i+1)],o=C[e.charCodeAt(i+2)],l=C[e.charCodeAt(i+3)],u[r++]=n<<2|a>>4,u[r++]=(15&a)<<4|o>>2,u[r++]=(3&o)<<6|63&l;return c})(e),t):{base64:!0,data:e},R=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer;function O(e){return e.reduce((e,t)=>e+t.length,0)}function q(e,t){if(e[0].length===t)return e.shift();let s=new Uint8Array(t),i=0;for(let r=0;r<t;r++)s[r]=e[0][i++],i===e[0].length&&(e.shift(),i=0);return e.length&&i<e[0].length&&(e[0]=e[0].slice(i)),s}function L(e){if(e){var t=e;for(var s in L.prototype)t[s]=L.prototype[s];return t}}L.prototype.on=L.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},L.prototype.once=function(e,t){function s(){this.off(e,s),t.apply(this,arguments)}return s.fn=t,this.on(e,s),this},L.prototype.off=L.prototype.removeListener=L.prototype.removeAllListeners=L.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var s,i=this._callbacks["$"+e];if(!i)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var r=0;r<i.length;r++)if((s=i[r])===t||s.fn===t){i.splice(r,1);break}return 0===i.length&&delete this._callbacks["$"+e],this},L.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=Array(arguments.length-1),s=this._callbacks["$"+e],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(s){s=s.slice(0);for(var i=0,r=s.length;i<r;++i)s[i].apply(this,t)}return this},L.prototype.emitReserved=L.prototype.emit,L.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},L.prototype.hasListeners=function(e){return!!this.listeners(e).length};let P="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),I="u">typeof self?self:"u">typeof window?window:Function("return this")();function B(e,...t){return t.reduce((t,s)=>(e.hasOwnProperty(s)&&(t[s]=e[s]),t),{})}let U=I.setTimeout,$=I.clearTimeout;function M(e,t){t.useNativeTimers?(e.setTimeoutFn=U.bind(I),e.clearTimeoutFn=$.bind(I)):(e.setTimeoutFn=I.setTimeout.bind(I),e.clearTimeoutFn=I.clearTimeout.bind(I))}function F(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}class D extends Error{constructor(e,t,s){super(e),this.description=t,this.context=s,this.type="TransportError"}}class V extends L{constructor(e){super(),this.writable=!1,M(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,s){return super.emitReserved("error",new D(e,t,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return("opening"===this.readyState||"open"===this.readyState)&&(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){let t=E(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){let e=this.opts.hostname;return -1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&443!==Number(this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){let t=function(e){let t="";for(let s in e)e.hasOwnProperty(s)&&(t.length&&(t+="&"),t+=encodeURIComponent(s)+"="+encodeURIComponent(e[s]));return t}(e);return t.length?"?"+t:""}}class z extends V{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}
1doOpen(){this._poll()}pause(e){this.readyState="pausing";let t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let e=0;this._polling&&(e++,this.once("pollComplete",function(){--e||t()})),this.writable||(e++,this.once("drain",function(){--e||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){let t=e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)};((e,t)=>{let s=e.split("\x1e"),i=[];for(let e=0;e<s.length;e++){let r=E(s[e],t);if(i.push(r),"error"===r.type)break}return i})(e,this.socket.binaryType).forEach(t),"closed"!==this.readyState&&(this._polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this._poll())}doClose(){let e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){var t;let s,i,r;this.writable=!1,t=e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved("drain")})},i=Array(s=e.length),r=0,e.forEach((e,n)=>{A(e,!1,e=>{i[n]=e,++r===s&&t(i.join("\x1e"))})})}uri(){let e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=F()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}}let H=!1;try{H="u">typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}let K=H;function W(){}class Y extends z{constructor(e){if(super(e),"u">typeof location){const t="https:"===location.protocol;let s=location.port;s||(s=t?"443":"80"),this.xd="u">typeof location&&e.hostname!==location.hostname||s!==e.port}}doWrite(e,t){let s=this.request({method:"POST",data:e});s.on("success",t),s.on("error",(e,t)=>{this.onError("xhr post error",e,t)})}doPoll(){let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(e,t)=>{this.onError("xhr poll error",e,t)}),this.pollXhr=e}}class J extends L{constructor(e,t,s){super(),this.createRequest=e,M(this,s),this._opts=s,this._method=s.method||"GET",this._uri=t,this._data=void 0!==s.data?s.data:null,this._create()}_create(){var e;let t=B(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;let s=this._xhr=this.createRequest(t);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders)for(let e in s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0),this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(e)&&s.setRequestHeader(e,this._opts.extraHeaders[e])}catch(e){}if("POST"===this._method)try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{s.setRequestHeader("Accept","*/*")}catch(e){}null==(e=this._opts.cookieJar)||e.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var e;3===s.readyState&&(null==(e=this._opts.cookieJar)||e.parseCookies(s.getResponseHeader("set-cookie"))),4===s.readyState&&(200===s.status||1223===s.status?this._onLoad():this.setTimeoutFn(()=>{this._onError("number"==typeof s.status?s.status:0)},0))},s.send(this._data)}catch(e){this.setTimeoutFn(()=>{this._onError(e)},0);return}"u">typeof document&&(this._index=J.requestsCount++,J.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(void 0!==this._xhr&&null!==this._xhr){if(this._xhr.onreadystatechange=W,e)try{this._xhr.abort()}catch(e){}"u">typeof document&&delete J.requests[this._index],this._xhr=null}}_onLoad(){let e=this._xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}function Z(){for(let e in J.requests)J.requests.hasOwnProperty(e)&&J.requests[e].abort()}J.requestsCount=0,J.requests={},"u">typeof document&&("function"==typeof attachEvent?attachEvent("onunload",Z):"function"==typeof addEventListener&&addEventListener("onpagehide"in I?"pagehide":"unload",Z,!1));let G=(i=X({xdomain:!1}))&&null!==i.responseType;function X(e){let t=e.xdomain;try{if("u">typeof XMLHttpRequest&&(!t||K))return new XMLHttpRequest}catch(e){}if(!t)try{return new I[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(e){}}let Q="u">typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class ee extends V{get name(){return"websocket"}doOpen(){let e=this.uri(),t=this.opts.protocols,s=Q?{}:B(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,s)}catch(e){return this.emitReserved("error",e)}
1this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let s=e[t],i=t===e.length-1;A(s,this.supportsBinary,e=>{try{this.doWrite(s,e)}catch(e){}i&&P(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){void 0!==this.ws&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=F()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}let et=I.WebSocket||I.MozWebSocket,es={websocket:class extends ee{createSocket(e,t,s){return Q?new et(e,t,s):t?new et(e,t):new et(e)}doWrite(e,t){this.ws.send(t)}},webtransport:class extends V{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{var i,r;let n,a,o,l,c=(i=Number.MAX_SAFE_INTEGER,r=this.socket.binaryType,s||(s=new TextDecoder),n=[],a=0,o=-1,l=!1,new TransformStream({transform(e,t){for(n.push(e);;){if(0===a){if(1>O(n))break;let e=q(n,1);l=(128&e[0])==128,a=(o=127&e[0])<126?3:126===o?1:2}else if(1===a){if(2>O(n))break;let e=q(n,2);o=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),a=3}else if(2===a){if(8>O(n))break;let e=q(n,8),s=new DataView(e.buffer,e.byteOffset,e.length),i=s.getUint32(0);if(i>2097151){t.enqueue(v);break}o=0x100000000*i+s.getUint32(4),a=3}else{if(O(n)<o)break;let e=q(n,o);t.enqueue(E(l?e:s.decode(e),r)),a=0}if(0===o||o>i){t.enqueue(v);break}}}})),u=e.readable.pipeThrough(c).getReader(),h=new TransformStream({transform(e,s){var i;i=t=>{let i,r=t.length;if(r<126)new DataView((i=new Uint8Array(1)).buffer).setUint8(0,r);else if(r<65536){let e=new DataView((i=new Uint8Array(3)).buffer);e.setUint8(0,126),e.setUint16(1,r)}else{let e=new DataView((i=new Uint8Array(9)).buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(r))}e.data&&"string"!=typeof e.data&&(i[0]|=128),s.enqueue(i),s.enqueue(t)},w&&e.data instanceof Blob?e.data.arrayBuffer().then(T).then(i):_&&(e.data instanceof ArrayBuffer||x(e.data))?i(T(e.data)):A(e,!1,e=>{t||(t=new TextEncoder),i(t.encode(e))})}});h.readable.pipeTo(e.writable),this._writer=h.writable.getWriter();let d=()=>{u.read().then(({done:e,value:t})=>{e||(this.onPacket(t),d())}).catch(e=>{})};d();let p={type:"open"};this.query.sid&&(p.data=`{"sid":"${this.query.sid}"}`),this._writer.write(p).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let s=e[t],i=t===e.length-1;this._writer.write(s).then(()=>{i&&P(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;null==(e=this._transport)||e.close()}},polling:class extends Y{constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=G&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new J(X,this.uri(),e)}}},ei=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,er=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function en(e){var t,s;let i,r;if(e.length>8e3)throw"URI too long";let n=e,a=e.indexOf("["),o=e.indexOf("]");-1!=a&&-1!=o&&(e=e.substring(0,a)+e.substring(a,o).replace(/:/g,";")+e.substring(o,e.length));let l=ei.exec(e||""),c={},u=14;for(;u--;)c[er[u]]=l[u]||"";return -1!=a&&-1!=o&&(c.source=n,c.host=c.host.substring(1,c.host.length-1).replace(/;/g,":"),c.authority=c.authority.replace("[","").replace("]","").replace(/;/g,":"),c.ipv6uri=!0),i=(t=c.path).replace(/\/{2,9}/g,"/").split("/"),("/"==t.slice(0,1)||0===t.length)&&i.splice(0,1),"/"==t.slice(-1)&&i.splice(i.length-1,1),c.pathNames=i,s=c.query,r={},s.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(e,t,s){t&&(r[t]=s)}),c.queryKey=r,c}let ea="function"==typeof addEventListener&&"function"==typeof removeEventListener,eo=[];ea&&addEventListener("offline",()=>
1{eo.forEach(e=>e())},!1);class el extends L{constructor(e,t){if(super(),this.binaryType="arraybuffer",this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&"object"==typeof e&&(t=e,e=null),e){const s=en(e);t.hostname=s.host,t.secure="https"===s.protocol||"wss"===s.protocol,t.port=s.port,s.query&&(t.query=s.query)}else t.host&&(t.hostname=en(t.host).host);M(this,t),this.secure=null!=t.secure?t.secure:"u">typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("u">typeof location?location.hostname:"localhost"),this.port=t.port||("u">typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},t.transports.forEach(e=>{let t=e.prototype.name;this.transports.push(t),this._transportsByName[t]=e}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=function(e){let t={},s=e.split("&");for(let e=0,i=s.length;e<i;e++){let i=s[e].split("=");
1t[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return t}(this.opts.query)),ea&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},eo.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);let s=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](s)}_open(){if(0===this.transports.length)return void this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);let e=this.opts.rememberUpgrade&&el.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket")?"websocket":this.transports[0];this.readyState="opening";let t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",e=>this._onClose("transport close",e))}onOpen(){this.readyState="open",el.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush()}_onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let t=Error("server error");t.code=e.data,this._onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let t=0;t<this.writeBuffer.length;t++){let s=this.writeBuffer[t].data;if(s&&(e+="string"==typeof s?function(e){let t=0,s=0;for(let i=0,r=e.length;i<r;i++)(t=e.charCodeAt(i))<128?s+=1:t<2048?s+=2:t<55296||t>=57344?s+=3:(i++,s+=4);return s}(s):Math.ceil(1.33*(s.byteLength||s.size))),t>0&&e>this._maxPayload)return this.writeBuffer.slice(0,t);e+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,P(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,t,s){return this._sendPacket("message",e,t,s),this}send(e,t,s){return this._sendPacket("message",e,t,s),this}_sendPacket(e,t,s,i){if("function"==typeof t&&(i=t,t=void 0),"function"==typeof s&&(i=s,s=null),"closing"===this.readyState||"closed"===this.readyState)return;(s=s||{}).compress=!1!==s.compress;let r={type:e,data:t,options:s};this.emitReserved("packetCreate",r),this.writeBuffer.push(r),i&&this.once("flush",i),this.flush()}close(){let e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},s=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return("opening"===this.readyState||"open"===this.readyState)&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():e()}):this.upgrading?s():e()),this}_onError(e){if(el.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&"opening"===this.readyState)return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),ea&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let e=eo.indexOf(this._offlineEventListener);-1!==e&&eo.splice(e,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}}el.protocol=4;class ec extends el{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),"open"===this.readyState&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),s=!1;el.priorWebsocketSuccess=!1;let i=()=>{s||(t.send([{type:"ping",data:"probe"}]),t.once("packet",e=>{if(!s)if("pong"===e.type&&"probe"===e.data){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;el.priorWebsocketSuccess="websocket"===t.name,this.transport.pause(()=>{s||"closed"!==this.readyState&&(c(),this.setTransport(t),t.send([{type:"upgrade"}
1]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{let e=Error("probe error");e.transport=t.name,this.emitReserved("upgradeError",e)}}))};function r(){s||(s=!0,c(),t.close(),t=null)}let n=e=>{let s=Error("probe error: "+e);s.transport=t.name,r(),this.emitReserved("upgradeError",s)};function a(){n("transport closed")}function o(){n("socket closed")}function l(e){t&&e.name!==t.name&&r()}let c=()=>{t.removeListener("open",i),t.removeListener("error",n),t.removeListener("close",a),this.off("close",o),this.off("upgrading",l)};t.once("open",i),t.once("error",n),t.once("close",a),this.once("close",o),this.once("upgrading",l),-1!==this._upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn(()=>{s||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let t=[];for(let s=0;s<e.length;s++)~this.transports.indexOf(e[s])&&t.push(e[s]);return t}}class eu extends ec{constructor(e,t={}){const s="object"==typeof e,i=s?{...e}:{...t};(!i.transports||i.transports&&"string"==typeof i.transports[0])&&(i.transports=(i.transports||["polling","websocket","webtransport"]).map(e=>es[e]).filter(e=>!!e)),super(s?i:e,i)}}eu.protocol;let eh="function"==typeof ArrayBuffer,ed=Object.prototype.toString,ep="function"==typeof Blob||"u">typeof Blob&&"[object BlobConstructor]"===ed.call(Blob),em="function"==typeof File||"u">typeof File&&"[object FileConstructor]"===ed.call(File);function eg(e){return eh&&(e instanceof ArrayBuffer||("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer))||ep&&e instanceof Blob||em&&e instanceof File}let ef=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];(n=o||(o={}))[n.CONNECT=0]="CONNECT",n[n.DISCONNECT=1]="DISCONNECT",n[n.EVENT=2]="EVENT",n[n.ACK=3]="ACK",n[n.CONNECT_ERROR=4]="CONNECT_ERROR",n[n.BINARY_EVENT=5]="BINARY_EVENT",n[n.BINARY_ACK=6]="BINARY_ACK";class ey extends L{constructor(e){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},"function"==typeof e?{reviver:e}:e)}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw Error("got plaintext data when reconstructing a packet");let s=(t=this.decodeString(e)).type===o.BINARY_EVENT;s||t.type===o.BINARY_ACK?(t.type=s?o.EVENT:o.ACK,this.reconstructor=new eb(t)):super.emitReserved("decoded",t)}else if(eg(e)||e.base64)if(this.reconstructor)(t=this.reconstructor.takeBinaryData(e))&&(this.reconstructor=null,super.emitReserved("decoded",t));else throw Error("got binary data when not reconstructing a packet");else throw Error("Unknown type: "+e)}decodeString(e){let t=0,s={type:Number(e.charAt(0))};if(void 0===o[s.type])throw Error("unknown packet type "+s.type);if(s.type===o.BINARY_EVENT||s.type===o.BINARY_ACK){let i=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);let r=e.substring(i,t);if(r!=Number(r)||"-"!==e.charAt(t))throw Error("Illegal attachments");let n=Number(r);if(!ev(n)||n<1)throw Error("Illegal attachments");if(n>this.opts.maxAttachments)throw Error("too many attachments");s.attachments=n}if("/"===e.charAt(t+1)){let i=t+1;for(;++t&&","!==e.charAt(t)&&t!==e.length;);s.nsp=e.substring(i,t)}else s.nsp="/";let i=e.charAt(t+1);if(""!==i&&Number(i)==i){let i=t+1;for(;++t;){let s=e.charAt(t);if(null==s||Number(s)!=s){--t;break}if(t===e.length)break}s.id=Number(e.substring(i,t+1))}if(e.charAt(++t)){let i=this.tryParse(e.substr(t));if(ey.isPayloadValid(s.type,i))s.data=i;else throw Error("invalid payload")}return s}tryParse(e){try{return JSON.parse(e,this.opts.reviver)}catch(e){return!1}}static isPayloadValid(e,t){switch(e){case o.CONNECT:return ew(t);case o.DISCONNECT:return void 0===t;case o.CONNECT_ERROR:return"string"==typeof t||ew(t);case o.EVENT:case o.BINARY_EVENT:return Array.isArray(t)&&("number"==typeof t[0]||"string"==typeof t[0]&&-1===ef.indexOf(t[0]));case o.ACK:case o.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class eb{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){var t,s;let e=(t=this.reconPack,s=this.buffers,t.data=function e(t,s){if(!t)return t;if(t&&!0===t._placeholder){if("number"==typeof t.num&&t.num>=0&&t.num<s.length)return s[t.num];throw Error("illegal attachments")}if(Array.isArray(t))for(let i=0;i<t.length;i++)t[i]=e(t[i],s);else if("object"==typeof t)for(let i in t)Object.prototype.hasOwnProperty.call(t,i)&&(t[i]=e(t[i],s));return t}(t.data,s),delete t.attachments,t);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}let ev=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e};function ew(e){return"[object Object]"===Object.prototype.toString.call(e)}
1function e_(e,t,s){return e.on(t,s),function(){e.off(t,s)}}e.s(["Decoder",0,ey,"Encoder",0,class{constructor(e){this.replacer=e}encode(e){return(e.type===o.EVENT||e.type===o.ACK)&&function e(t,s){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t)){for(let s=0,i=t.length;s<i;s++)if(e(t[s]))return!0;return!1}if(eg(t))return!0;if(t.toJSON&&"function"==typeof t.toJSON&&1==arguments.length)return e(t.toJSON(),!0);for(let s in t)if(Object.prototype.hasOwnProperty.call(t,s)&&e(t[s]))return!0;return!1}(e)?this.encodeAsBinary({type:e.type===o.EVENT?o.BINARY_EVENT:o.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===o.BINARY_EVENT||e.type===o.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){let t,s,i=(t=[],s=e.data,e.data=function e(t,s,i){if(!t)return t;if(eg(t)){let e={_placeholder:!0,num:s.length};return s.push(t),e}if(Array.isArray(t)){let i=Array(t.length);for(let r=0;r<t.length;r++)i[r]=e(t[r],s);return i}if("object"==typeof t&&!(t instanceof Date)){if(t.toJSON&&"function"==typeof t.toJSON&&!i)return e(t.toJSON(),s,!0);let r={};for(let i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=e(t[i],s));return r}return t}(s,t),e.attachments=t.length,{packet:e,buffers:t}),r=this.encodeAsString(i.packet),n=i.buffers;return n.unshift(r),n}},"PacketType",0,o,"isPacketValid",0,function(e){var t;return"string"==typeof e.nsp&&(void 0===(t=e.id)||ev(t))&&function(e,t){switch(e){case o.CONNECT:return void 0===t||ew(t);case o.DISCONNECT:return void 0===t;case o.EVENT:return Array.isArray(t)&&("number"==typeof t[0]||"string"==typeof t[0]&&-1===ef.indexOf(t[0]));case o.ACK:return Array.isArray(t);case o.CONNECT_ERROR:return"string"==typeof t||ew(t);default:return!1}}(e.type,e.data)},"protocol",0,5],51890);let ex=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class eA extends L{constructor(e,t,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[e_(e,"open",this.onopen.bind(this)),e_(e,"packet",this.onpacket.bind(this)),e_(e,"error",this.onerror.bind(this)),e_(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){var s,i,r;if(ex.hasOwnProperty(e))throw Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;let n={type:o.EVENT,data:t};if(n.options={},n.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){let e=this.ids++,s=t.pop();this._registerAckCallback(e,s),n.id=e}let a=null==(i=null==(s=this.io.engine)?void 0:s.transport)?void 0:i.writable,l=this.connected&&!(null==(r=this.io.engine)?void 0:r._hasPingExpired());return this.flags.volatile&&!a||(l?(this.notifyOutgoingListeners(n),this.packet(n)):this.sendBuffer.push(n)),this.flags={},this}_registerAckCallback(e,t){var s;let i=null!=(s=this.flags.timeout)?s:this._opts.ackTimeout;if(void 0===i){this.acks[e]=t;return}let r=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,Error("operation has timed out"))},i),n=(...e)=>{this.io.clearTimeoutFn(r),t.apply(this,e)};n.withError=!0,this.acks[e]=n}emitWithAck(e,...t){return new Promise((s,i)=>{let r=(e,t)=>e?i(e):s(t);r.withError=!0,t.push(r),this.emit(e,...t)})}_addToQueue(e){let t;"function"==typeof e[e.length-1]&&(t=e.pop());let s={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((e,...i)=>(this._queue[0],null!==e?s.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)):(this._queue.shift(),t&&t(null,...i)),s.pe
1nding=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||0===this._queue.length)return;let t=this._queue[0];(!t.pending||e)&&(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:o.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(t=>String(t.id)===e)){let t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case o.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case o.EVENT:case o.BINARY_EVENT:this.onevent(e);break;case o.ACK:case o.BINARY_ACK:this.onack(e);break;case o.DISCONNECT:this.ondisconnect();break;case o.CONNECT_ERROR:this.destroy();let t=Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){let t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length)for(let t of this._anyListeners.slice())t.apply(this,e);super.emit.apply(this,e),this._pid&&e.length&&"string"==typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){let t=this,s=!1;return function(...i){s||(s=!0,t.packet({type:o.ACK,id:e,data:i}))}}onack(e){let t=this.acks[e.id];"function"==typeof t&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:o.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let t=this._anyListeners;for(let s=0;s<t.length;s++)if(e===t[s]){t.splice(s,1);break}}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let t=this._anyOutgoingListeners;for(let s=0;s<t.length;s++)if(e===t[s]){t.splice(s,1);break}}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length)for(let t of this._anyOutgoingListeners.slice())t.apply(this,e.data)}}var eS=e.i(51890);function eT(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}eT.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),s=Math.floor(t*this.jitter*e);e=(1&Math.floor(10*t))==0?e-s:e+s}return 0|Math.min(e,this.max)},eT.prototype.reset=function(){this.attempts=0},eT.prototype.setMin=function(e){this.ms=e},eT.prototype.setMax=function(e){this.max=e},eT.prototype.setJitter=function(e){this.jitter=e};class ek extends L{constructor(e,t){var s;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,M(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!=(s=t.randomizationFactor)?s:.5),this.backoff=new eT({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;const i=t.parser||eS;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null==(t=this.backoff)||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null==(t=this.backoff)||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null==(t=this.backoff)||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new eu(this.uri,this.opts);let t=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;let i=e_(t,"open",function(){s.onopen(),e&&e()}),r=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},n=e_(t,"error",r);if(!1!==this._timeout){let e=this._timeout,s=this.setTimeoutFn(()=>{i(),r(Error("timeout")),t.close()},e);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}return this.subs.push(i),this.subs.push(n),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let e=this.engine;this.subs.push(e_(e,"ping",this.onping.bind(this)),e_(e,"data",this.ondata.bind(this)),e_(e,"error",this.onerror.bind(this)),e_(e,"close",this.onclose.bind(this)),e_(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose("parse error",e)}}ondecoded(e){P(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let s=this.nsps[e];return s?this._autoConnect&&!s.active&&s.connect():(s=new eA(this,e,t),this.nsps[e]=s),s}_destroy(e){for(let e of Object.keys(this.nsps))if(this.nsps[e].active)return;this._close()}_packet(e){let t=this.encoder.encode(e);for(let s=0;s<t.length;
1s++)this.engine.write(t[s],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var s;this.cleanup(),null==(s=this.engine)||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let t=this.backoff.duration();this._reconnecting=!0;let s=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open(t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()}))},t);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}let eC={};function ej(e,t){let s;"object"==typeof e&&(t=e,e=void 0);let i=function(e,t="",s){let i=e;s=s||"u">typeof location&&location,null==e&&(e=s.protocol+"//"+s.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?s.protocol+e:s.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==s?s.protocol+"//"+e:"https://"+e),i=en(e)),!i.port&&(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";let r=-1!==i.host.indexOf(":")?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+r+":"+i.port+t,i.href=i.protocol+"://"+r+(s&&s.port===i.port?"":":"+i.port),i}(e,(t=t||{}).path||"/socket.io"),r=i.source,n=i.id,a=i.path,o=eC[n]&&a in eC[n].nsps;return t.forceNew||t["force new connection"]||!1===t.multiplex||o?s=new ek(r,t):(eC[n]||(eC[n]=new ek(r,t)),s=eC[n]),i.query&&!t.query&&(t.query=i.queryKey),s.socket(i.path,t)}Object.assign(ej,{Manager:ek,Socket:eA,io:ej,connect:ej});var eE=class{constructor(e={}){this.failures=0,this.openUntil=0,this.threshold=e.threshold??5,this.cooldownMs=e.cooldownMs??3e4}get isOpen(){return!(this.failures<this.threshold)&&(!(Date.now()>=this.openUntil)||(this.failures=this.threshold-1,!1))}get failureCount(){return this.failures}recordSuccess(){this.failures=0}recordFailure(){this.failures++,this.openUntil=Date.now()+this.cooldownMs}reset(){this.failures=0,this.openUntil=0}},eN=class{constructor(e=500){this.cache=new Map,this.maxSize=e}async has(e){let t=this.cache.get(e);return!!t&&(!(Date.now()>t)||(this.cache.delete(e),!1))}async set(e,t){if(this.cache.size>=this.maxSize){let e=this.cache.keys().next().value;e&&this.cache.delete(e)}this.cache.set(e,Date.now()+1e3*t)}async delete(e){this.cache.delete(e)}get size(){return this.cache.size}clear(){this.cache.clear()}};function eR(e){if(e.length<=256)return e;let t=0;for(let s=0;s<e.length;s++)t=(t<<5)-t+e.charCodeAt(s)|0;let s=Math.abs(t).toString(36);return e.slice(0,256-s.length-1)+"_"+s}function eO(e){try{return encodeURIComponent(decodeURIComponent(e))}catch{return encodeURIComponent(e)}}var eq=class extends Error{constructor(e,t,s){super(e),this.status=t,this.path=s,this.name="MaestroApiError"}get isNotFound(){return 404===this.status}get isUnauthorized(){return 401===this.status}get isForbidden(){return 403===this.status}};async function eL(e,t,s,i){let{baseUrl:r,tenantSlug:n,apiKey:a,surface:o}=e,l=e.maxRetries??2,c=e.retryDelays??[0,500],u=e.timeout??1e4,h=i?.circuitBreaker;if(h?.isOpen)throw new eq(`Circuit open \u2014 failing fast for ${t}`,503,t);let d=`${r}/api/v1/${n}${t}`,p={"Content-Type":"application/json"};a&&(p["X-API-Key"]=a),o&&(p["X-Surface"]=o);let m=null;for(let e=0;e<l;e++){e>0&&c[e]&&await new Promise(t=>setTimeout(t,c[e]));try{let e={headers:p,signal:AbortSignal.timeout(u)};(s?.revalidate!==void 0||s?.tags)&&(e.next={revalidate:s?.revalidate,tags:s?.tags?.map(eR)});let i=await fetch(d,e);if(!i.ok){if(i.status>=400&&i.status<500)throw new eq(`Maestro API ${i.status} ${i.statusText} \u2014 ${t}`,i.status,t);m=new eq(`Maestro API ${i.status} ${i.statusText} \u2014 ${t}`,i.status,t);continue}return h?.recordSuccess(),i.json()}catch(e){if(e instanceof eq&&e.status>=400&&e.status<500)throw e;m=e instanceof Error?e:Error(String(e))}}throw h?.recordFailure(),console.error(`[MaestroSDK] All ${l} attempts failed for ${t}:`,m?.message),m??new eq(`Fetch failed after ${l} retries \u2014 ${t}`,503,t)}async function eP(e,t,s){let{baseUrl:i,tenantSlug:r,apiKey:n,surface:a}=e,o=e.timeout??1e4,l=`${i}/api/v1/${r}${t}`,c={"Content-Type":"application/json"};n&&(c["X-API-Key"]=n),a&&(c["X-Surface"]=a);let u=await fetch(l,{method:"POST",headers:c,body:JSON.stringify(s),signal:AbortSignal.timeout(o)});if(!u.ok)throw new eq(`Maestro API ${u.status} ${u.statusText} \u2014 POST ${t}`,u.status,t);return u.json()}async function eI(e,t){let{baseUrl:s,tenantSlug:i,apiKey:r}=e,n=e.timeout??1e4,a=`${s}/api/v1/${i}${t}`,o={};return r&&(o["X-API-Key"]=r),fetch(a,{headers:o,signal:AbortSignal.timeout(n),cache:"no-store"})}var eB=new Set(["homepage","sport24-home"]),eU=class{constructor(e){if(!e.baseUrl)throw Error("MaestroClient: baseUrl is required");if(!e.tenantSlug)throw Error("MaestroClient: tenantSlug is required");this.config=e,!1!==e.circuitBreaker&&(this.circuitBreaker=new eE("object"==typeof e.circuitBreaker?e.circuitBreaker:void 0)),!1===e.negativeCache?this.negativeCache=void 0:e.negativeCache?this.negativeCache=e.negativeCache:this.negativeCache=new eN,this.negativeCacheTtl=e.negativeCacheTtl??300}fetch(e,t){return eL(this.config,e,t,{circuitBreaker:this.circuitBreaker})}resetCircuitBreaker(){this.circuitBreaker?.reset()}async getHomepage(e=1,t){return this.fetch(`/render/page?role=homepage&page=${e}`,t??{revalidate:60,tags:["page","homepage"]})}async getRenderedPage(e,t=1,s){let i=`page:${e}`;if(this.negativeCache&&await this.negativeCache.has(i))throw new eq(`404 (negative cache) \u2014 /render/page/${e}`,404,`/render/page/${e}`);try{return await this.fetch(`/render/page/${eO(e)}?page=${t}`,s??{revalidate:60,tags:["page",e]})}catch(t){throw this.negativeCache&&t instanceof eq&&t.isNotFound&&!eB.has(e)&&await this.negativeCache.set(i,this.negativeCacheTtl),t}}async getRenderedSection(e,t=1,s){let i=`section:${e}`;if(this.negativeCache&&await this.negativeCache.has(i))throw new eq(`404 (negative cache) \u2014 /render/section/${e}`,404,`/render/section/${e}`);try{return await this.fetch(`/render/section/${eO(e)}?page=${t}`,s??{revalidate:60,tags:["section",e]}
1)}catch(e){throw this.negativeCache&&e instanceof eq&&e.isNotFound&&await this.negativeCache.set(i,this.negativeCacheTtl),e}}async getRenderedTag(e,t=1,s){return this.fetch(`/render/tag/${eO(e)}?page=${t}`,s??{revalidate:60,tags:["tag",e]})}async getRenderedLabel(e,t=1,s){return this.fetch(`/render/label/${eO(e)}?page=${t}`,s??{revalidate:60,tags:["label",e]})}async getRenderedAuthor(e,t=1,s){return this.fetch(`/render/author/${eO(e)}?page=${t}`,s??{revalidate:60,tags:["author",e]})}async getRenderedArticle(e,t){return this.fetch(`/render/article/${eO(e)}`,t??{revalidate:300,tags:["article",e]})}async getArticleById(e,t){try{return(await this.fetch(`/render/article/id/${encodeURIComponent(e)}`,t??{revalidate:120,tags:["article",e]})).article??null}catch{return null}}async getArticlePageById(e,t){try{return await this.fetch(`/render/article/id/${encodeURIComponent(e)}`,t??{revalidate:120,tags:["article",e]})}catch{return null}}async getArticleByNumber(e,t){return this.fetch(`/render/article/number/${e}`,t??{revalidate:60,tags:["article",String(e)]})}async getArticlesByIds(e,t){return(await Promise.allSettled(e.map(e=>this.getArticleById(e,t)))).filter(e=>"fulfilled"===e.status).map(e=>e.value).filter(e=>null!==e)}async getSearchResults(e,t=1,s,i){let r="string"==typeof s?{section:s}:s||{},n=new URLSearchParams;return n.set("q",e),n.set("page",String(t)),r.section&&n.set("section",r.section),r.author&&n.set("author",r.author),r.sort&&"relevancy"!==r.sort&&n.set("sort",r.sort),this.fetch(`/render/search?${n.toString()}`,i??{revalidate:30,tags:["search"]})}async getSearchSuggestions(e){return!e||e.trim().length<2?[]:(await this.fetch(`/render/search/suggestions?q=${encodeURIComponent(e.trim())}`,{revalidate:0})).suggestions||[]}async getBreakingNews(e){return this.fetch("/render/breaking-news",e??{revalidate:15,tags:["breaking-news"]})}async getWeatherArticles(e=1,t){return this.fetch(`/render/weather-articles?page=${e}`,t??{revalidate:120,tags:["weather-articles"]})}async getExclusiveArticles(e=1,t){return this.fetch(`/render/exclusive-articles?page=${e}`,t??{revalidate:60,tags:["exclusive-articles"]})}async getNavigation(e,t){try{return await this.fetch(`/navigation/${e}`,t??{revalidate:300,tags:["navigation",e]})}catch{return null}}async getAllNavigationMenus(e){try{return await this.fetch("/navigation",e??{revalidate:300,tags:["navigation"]})}catch{return[]}}async getSiteSettings(e){try{return await this.fetch("/site-settings",e??{revalidate:600,tags:["site-settings"]})}catch{return null}}async getAllRoutes(e){return this.fetch("/routes",e??{revalidate:300,tags:["routes"]})}async loadComponent(e,t,s){let i=new URLSearchParams;t?.entityType&&i.set("entity_type",t.entityType),t?.entitySlug&&i.set("entity_slug",t.entitySlug),t?.page&&i.set("page",String(t.page)),t?.limit&&i.set("limit",String(t.limit));let r=i.toString();return this.fetch(`/components/${e}${r?`?${r}`:""}`,s??{revalidate:0})}async submitForm(e,t){return eP(this.config,`/pages/${eO(e)}/submit`,t)}async resolvePath(e,t=1,s){return this.fetch(`/render/resolve?path=${encodeURIComponent(e)}&page=${t}`,s??{revalidate:60,tags:["resolve",e]})}async resolveLegacyPath(e,t,s){let i=`/render/resolve-legacy?path=${encodeURIComponent(e)}`;t&&(i+=`&sibling=${encodeURIComponent(t)}`);try{return await this.fetch(i,s??{revalidate:3600,tags:["legacy-resolve"]})}catch{return{match:null}}}async getPrintEditions(e,t){let s=new URLSearchParams;e?.from&&s.set("from",e.from),e?.to&&s.set("to",e.to),e?.page&&s.set("page",String(e.page)),e?.limit&&s.set("limit",String(e.limit));let i=s.toString();return this.fetch(`/print-editions${i?`?${i}`:""}`,t??{revalidate:300,tags:["print-editions"]})}async getArchivedArticle(e,t){try{return await this.fetch(`/archive/article/${encodeURIComponent(e)}`,t??{revalidate:3600,tags:["archive",e]})}catch(e){if(e instanceof eq&&e.isNotFound)return null;throw e}}async getPreviewSnapshot(e){let t=`${this.config.baseUrl}/api/v1/preview/${encodeURIComponent(e)}`,s=await fetch(t,{headers:{"Content-Type":"application/json"},cache:"no-store"});if(!s.ok)throw new eq(`${s.status} \u2014 /preview/${e}`,s.status,`/preview/${e}`);return s.json()}getPreviewUrl(e){return`${this.config.baseUrl}/api/v1/preview/${encodeURIComponent(e)}`}async proxyRaw(e){return eI(this.config,e)}},e$=e.i(1932),eM=e.i(52029);let eF=new Set(["site-header","site-footer"]),eD={"point-de-vue":"Point de vue","monde-arabe":"Monde arabe",france:"France",voyage:"Voyage",evenement:"Événement",international:"International",economie:"Économie",culture:"Culture",enquetes:"Enquêtes",tribune:"Tribune",mosaique:"Mosaïque",videos:"Vidéos"},eV=e$.default,ez=eM.default;function eH(e){if(e)return{id:e.id,name:e.name,slug:e.slug,color:e.color}}function eK(e){if(e?.length)return e.map(e=>({name:e.name,slug:e.slug}))}function eW(e){return"breaking-ticker"===e?1:"hero-article-6"===e?11:"opinion-strip"===e?4:"video-showcase"===e?6:"article-grid"===e?20:6}function eY(e,t={}){if(eF.has(e.componentType))return e;let s="string"==typeof e.config?.sectionSlug?e.config.sectionSlug:t.sectionSlug,i=Array.isArray(e.content)?e.content:[],r=eW(e.componentType),n="article-grid"===e.componentType&&!!t.sectionSlug;if(i.length>=r||i.length>0&&!n)return{...e,config:{...e.config,...s&&!e.config?.sectionSlug?{sectionSlug:s}:{}}};let a=function(e){let t=e.offset??0,s=new Set(e.excludeIds??[]),i=eV.filter(e=>!s.has(e.id)),r=e.sectionSlug?i.filter(t=>t.section?.slug===e.sectionSlug):i,n=r.length<e.count&&e.sectionSlug?[...r,...i.filter(e=>!r.includes(e))]:r.length?r:i;if(!n.length)return[];let a=Math.min(e.count,n.length),o=new Set,l=[];for(let e=0;l.length<a&&e<2*n.length;e+=1){let s=n[(t+e)%n.length];!o.has(s.id)&&(o.add(s.id),l.push({id:s.id,title:s.title,slug:s.slug,subtitle:s.subtitle,summary:s.summary,body:s.body,featuredImage:s.featuredImage,thumbnail:s.thumbnail,publishedAt:s.publishedAt,updatedAt:s.updatedAt,section:s.section?{id:s.section.slug,name:s.section.name,slug:s.section.slug,sortOrder:0,isActive:!0}:void 0,author:s.author,tags:eK(s.tags),label:eH(s.label),source:s.source,venue:s.venue,eventTime:s.eventTime}))}return l}({sectionSlug:s,count:r-i.length,offset:t.offset,excludeIds:[...t.excludeIds??[],...i.map(e=>String(e.id||""))]});return{...e,config:{...e.config,...s&&!e.config?.sectionSlug?{sectionSlug:s}:{}},content:[...i,...a],pagination:e.pagination||{page:1,totalPages:1,hasMore:!1}}}function eJ(e,t={}){if(!e?.length)return e??[];let s=0;return e.map(e=>{if(eF.has(e.componentType))return e;let i=eY(e,{...t,offset:s});return s+=eW(e.componentType),i})}function eZ(e,t={}){let s={...e,components:eJ(e.components,t)};return"static"!==e.pageType&&"form"!==e.pageType||e.content||(s.content="<p>Contenu de démonstration. Cette page n’est pas encore publiée dans Maestro.</p>"),s}function eG(e){return{...e,componentsAbove:eJ(e.componentsAbove),componentsBelow:eJ(e.componentsBelow),componentsSidebar:eJ(e.componentsSidebar)}}function eX(e){let t=eV.find(t=>t.slug===e);
1return t?{pageType:"template:article",article:{id:t.id,title:t.title,slug:t.slug,subtitle:t.subtitle,summary:t.summary,body:t.body,heroImage:t.heroImage||t.featuredImage,heroCaption:t.heroCaption,section:t.section,tags:eK(t.tags),publishedAt:t.publishedAt,updatedAt:t.updatedAt,author:t.author??null,authors:t.authors,label:eH(t.label),shortUrl:t.shortUrl??null},componentsAbove:[],componentsBelow:eJ([{id:`dummy-related-${t.id}`,componentType:"article-grid",config:{title:"À lire aussi",sectionSlug:t.section?.slug}}],{sectionSlug:t.section?.slug,excludeIds:[t.id]}),componentsSidebar:[],metadata:{seoTitle:t.title,seoDescription:t.summary}}:null}function eQ(e){return eZ({title:e.title,slug:e.slug,pageType:e.pageType,components:[{id:`dummy-listing-${e.slug}`,componentType:"article-grid",config:{title:e.title,sectionSlug:e.sectionSlug}}]},{sectionSlug:e.sectionSlug})}function e0(e){return"string"==typeof e[0]?e[0]:""}let e1=new eN;function e2({cartoon:e,variant:t="listing"}){let s=function(e){if(!e)return"";let t=new Date(e);if(Number.isNaN(t.getTime()))return"";let s=t.getUTCFullYear(),i=String(t.getUTCDate()).padStart(2,"0"),r=String(t.getUTCMonth()+1).padStart(2,"0");return`${s}${i}${r}`}(e.publishedAt),i=(0,l.jsx)("img",{src:e.image,alt:e.caption||"Cartoon",width:"rail"===t?480:670,height:"rail"===t?292:395,loading:"lazy"});return"rail"===t?(0,l.jsx)("div",{className:"block-wrapper",children:(0,l.jsx)("div",{className:"block-content",children:(0,l.jsx)("div",{className:"node--type-quote node--view-mode-teaser",role:"article",children:(0,l.jsx)("div",{className:"field field--name-field-image",children:e.href?(0,l.jsx)("a",{href:e.href,children:i}):i})})})}):(0,l.jsxs)("div",{className:"section-wrapper",children:[(0,l.jsx)("div",{className:"section-title first-letter-style text-center",children:(0,l.jsx)("h5",{className:"ft-sz-28",children:"Cartoon"})}),(0,l.jsx)("div",{className:"section-content",children:(0,l.jsxs)("div",{className:"article-item opinion-drawing-item node--type-cartoon node--view-mode-teaser",role:"article",children:[(0,l.jsx)("div",{className:"article-item-img border-gray-around",children:e.href?(0,l.jsx)("a",{href:e.href,children:i}):i}),(0,l.jsx)("div",{className:"article-item-title text-center style-v2",children:(0,l.jsxs)("h6",{children:["Cartoon",s&&e.publishedAt&&(0,l.jsxs)(l.Fragment,{children:[" ",(0,l.jsx)("time",{dateTime:e.publishedAt,children:s})]})]})})]})})]})}function e4(e){let t=Array.isArray(e.content)?e.content:[],s=Array.isArray(e.articles)?e.articles:[];return t.length?t:s}function e6({data:e}){let t=e4(e);if(!t.length)return(0,l.jsx)(h.EmptyState,{children:"Le contenu principal est en attente de publication dans Maestro."});let[s,...i]=t.slice(0,(0,m.widgetMaxArticles)(e.config,1)),r=e.config?.sectionSlug,n=(0,m.widgetGridColumns)(e.config,i.length);return(0,l.jsxs)("div",{className:"homepage-hero",children:[(0,l.jsx)(p.SplashCard,{article:s,fallbackSection:r,dateOnly:!0}),!!i.length&&(0,l.jsx)("div",{className:`grid-items grid-x grid-margin-x small-up-1 medium-up-${Math.min(n,2)} large-up-${n}`,children:i.map(e=>(0,l.jsx)(p.GridCard,{article:e,fallbackSection:r,dateOnly:!0},e.id))})]})}function e3({data:e}){let t,s=(0,u.usePathname)(),i=e4(e),r=String(e.config?.title||""),n=(0,m.listingSectionFromPath)(s),a=e.config?.sectionSlug||("tag"===n||"author"===n||"search"===n?void 0:n)||(0,m.homeSectionSlug)(r),o=(0,m.listingVariantFor)(s,a);if("home"!==o)return(0,l.jsx)(d.SectionListing,{data:{...e,config:{...e.config,sectionSlug:a,...s.startsWith("/tag")?{apiUnscoped:!0}:null}},variant:o});let g=(t=`${a||""} ${r}`.toLowerCase()).includes("mosa")?"mosaic":t.includes("vidéo")||t.includes("video")?"video":"news",f=a?`/${a}`:void 0,y=a&&m.SECTION_LISTING_TITLES[a]||r,b="mosaic"===g?4:(0,m.widgetMaxArticles)(e.config,"news"===g?3:4),v=i.slice(0,b),w="news"===g&&!r.trim()&&!a&&v.length>2,_="news"===g?(0,m.widgetGridColumns)(e.config,v.length):4,x="mosaic"===g?"grid-items grid-items-round grid-x gutters-1x small-up-1 medium-up-2 large-up-4":"video"===g?"grid-items grid-x gutters-1x small-up-1 medium-up-2 large-up-4 text-center":w?"objects-grid grid-x grid-margin-x small-up-1 medium-up-2 large-up-2":`grid-items grid-x grid-margin-x small-up-1 medium-up-${Math.min(_,2)} large-up-${_}`;return(0,l.jsxs)("div",{className:"section-wrapper","data-vr-zone":a||r||void 0,children:[y&&(0,l.jsx)("div",{className:"monde-arabe"===a?"section-title style-v3":"section-title first-letter-style style-v3",children:(0,l.jsx)("h4",{children:(0,l.jsx)("span",{children:f?(0,l.jsx)(c.default,{href:f,children:y}):y})})}),(0,l.jsxs)("div",{className:"section-content",children:[v.length?(0,l.jsx)("div",{className:x,children:v.map(e=>"mosaic"===g?(0,l.jsx)(p.MosaicHomeCard,{article:e,fallbackSection:a},e.id):"video"===g?(0,l.jsx)(p.VideoHomeCard,{article:e,fallbackSection:a},e.id):w?(0,l.jsx)(p.HomeTeaserCell,{article:e,fallbackSection:a},e.id):(0,l.jsx)(p.GridCard,{article:e,fallbackSection:a,play:!1,bordered:!0,dateOnly:!0},e.id))}):(0,l.jsx)(h.EmptyState,{children:"Cette sélection est en attente de contenu Maestro."}),f&&(0,l.jsx)("div",{className:"btns-area text-center",children:(0,l.jsx)(c.default,{href:f,className:"button gray clear",children:"Voir la suite"})})]})]})}function e8({data:e}){let t=e4(e);if(!t.length)return null;let s=(0,m.articleHref)(t[0])||"/",i=t[0].title;return(0,l.jsx)("div",{className:"callout alert breaking-news-area","data-closable":!0,role:"status","aria-label":"Flash info",children:(0,l.jsx)("div",{className:"grid-container",children:(0,l.jsx)("div",{className:"grid-x",children:(0,l.jsx)("div",{className:"cell",children:(0,l.jsxs)("h6",{className:"font-secondary uppercase no-spacer",children:[(0,l.jsxs)("span",{className:"label uppercase live",children:[(0,l.jsx)("i",{className:"circle blink","aria-hidden":"true"})," ","Live"]}),(0,l.jsx)("span",{children:(0,l.jsx)(c.default,{href:s,children:i})})]})})})})})}function e5({data:e}){let t=e4(e);if(!t.length)return null;let s=String(e.config?.title||"Tribune"),i=`/${(0,m.homeSectionSlug)(s,"tribune")}`;return(0,l.jsxs)("div",{className:"block-wrapper","data-vr-zone":"tribune",children:[(0,l.jsx)("div",{className:"block-title text-center",children:(0,l.jsx)("h3",{className:"font-alt-normal",children:(0,l.jsx)(c.default,{href:i,children:s})})}),(0,l.jsx)("div",{className:"block-content block-custom-bg",children:(0,l.jsx)("div",{className:"objects-list has-separator vertical-tiny-slider",children:t.slice(0,4).map(e=>(0,l.jsx)(p.TribuneSidebarRow,{article:e,fallbackSection:"tribune"},e.id))})}),(0,l.jsx)("div",{className:"btns-area text-right white-bg",children:(0,l.jsx)(c.default,{href:i,className:"button clear small gray no-spacer tribune-more",children:"Voir la suite >"})})]})}function e9({data:e}){let t=e4(e);if(!t.length)return null;let s=String(e.config?.title||"Vidéos");return(0,l.jsxs)("div",{className:"section-wrapper","data-vr-zone":"video",children:[(0,l.jsx)("div",{className:"section-title first-letter-style style-v3",children:(0,l.jsx)("h4",{children:(0,l.jsx)("span",{children:(0,l.jsx)(c.default,{href:"/videos",children:s})})})}),(0,l.jsxs)("div",{className:"section-content",children:[(0,l.jsx)("div",{className:"grid-items grid-x gutters-1x small-up-1 medium-up-2 large-up-4 text-center",children:t.slice(0,4).map(e=>(0,l.jsx)(p.VideoHomeCard,{article:e,fallbackSection:"videos"},e.id))}),(0,l.jsx)("div",{className:"btns-area text-center",children:(0,l.jsx)(c.default,{href:"/videos",className:"button gray clear",children:"Voir la suite"})})]})]})}function e7({data:e}){let t=(0,u.usePathname)(),s=String(e.config?.contentTypeSlug||"").toLowerCase(),i=String(e.config?.title||"").trim(),r
1=String(e.config?.sectionSlug||"").toLowerCase();if("mosaique"===r||i.toLowerCase().includes("mosa"))return(0,l.jsx)(e3,{data:{...e,config:{...e.config,title:i||"Mosaïque",sectionSlug:"mosaique"}}});let n="/tribune"===t||"/tribune/"===t||"/tribunes"===t||"/tribunes/"===t;return t.startsWith("/author")&&"opinion"===s?null:"opinion"===s||n?(0,l.jsx)(d.SectionListing,{data:{...e,config:{...e.config,sectionSlug:e.config?.sectionSlug||"tribune"}},variant:"tribune"}):"point-de-vue"===r||i.toLowerCase().includes("point de vue")?(0,l.jsx)(d.SectionListing,{data:{...e,config:{...e.config,sectionSlug:"point-de-vue"}},variant:"pdv"}):(0,l.jsx)(g,{articles:e4(e),title:i||"LES DERNIÈRES NEWS",sticky:!!e.config?.sticky})}function te({data:e}){let t=e4(e)[0],s=String(e.config?.imageUrl||"")||(t?(0,m.articleImage)(t):"");if(!s)return null;let i=t&&(0,m.articleHref)(t,t.section?.slug||"tribune")||("string"==typeof e.config?.href?e.config.href:void 0),r=String(e.config?.zone||"").toLowerCase();return(0,l.jsx)(e2,{cartoon:{image:s,href:i||void 0,publishedAt:t?.publishedAt,caption:t?.title||String(e.config?.title||"Cartoon")},variant:"sidebar"===r||"rail"===r?"rail":"listing"})}function tt(){return null}function ts({data:e}){let t=e4(e),s=String(e.config?.title||"Articles connexes");return t.length?(0,l.jsxs)("div",{className:"block-wrapper",children:[(0,l.jsx)("div",{className:"block-title text-center first-letter-style",children:(0,l.jsx)("h3",{children:s})}),(0,l.jsx)("div",{className:"block-content block-custom-bg padding-1",children:(0,l.jsx)("div",{className:"objects-list",children:t.map(e=>{let t="opinion"===String(e.contentType||"").toLowerCase(),s=(0,m.articleHref)(e,t?"tribune":void 0);if(!s)return null;let i=e.thumbnail||e.featuredImage;return(0,l.jsx)("article",{className:`object-item ${t?"node--type-opinion":"node--type-article"} node--view-mode-object-list`,children:(0,l.jsxs)("div",{className:"media-object align-top",children:[i&&(0,l.jsx)("div",{className:"media-object-section",children:(0,l.jsx)("div",{className:"media-object-img",children:(0,l.jsx)(c.default,{href:s,children:(0,l.jsx)("img",{src:i,alt:e.title,width:100,height:59,loading:"lazy"})})})}),(0,l.jsx)("div",{className:"media-object-section",children:(0,l.jsx)("h6",{children:(0,l.jsx)(c.default,{href:s,children:e.title})})})]})},e.id)})})})]}):null}a=new eU({baseUrl:f.default.env.MAESTRO_PUBLIC_API_URL||"http://localhost:3003",tenantSlug:f.default.env.MAESTRO_TENANT_SLUG||"default",apiKey:f.default.env.MAESTRO_API_KEY||void 0,surface:"website",negativeCache:e1,negativeCacheTtl:300}),"true"!==(r=f.default.env.LOAD_DUMMY?.trim().toLowerCase())&&"1"!==r||new Proxy(a,{get(e,t,s){let i=Reflect.get(e,t,s);if("function"!=typeof i)return i;let r=i.bind(e);switch(t){case"getHomepage":return async(...e)=>{try{return eZ(await r(...e))}catch(e){throw e}};case"getRenderedSection":return async(...e)=>{let t=e0(e);try{return eZ(await r(...e),{sectionSlug:t})}catch{let e;return eZ({title:e=eD[t]||t,slug:t,pageType:"template:section",components:[{componentType:"site-header",config:{}},{id:`dummy-section-grid-${t}`,componentType:"article-grid",config:{title:e,sectionSlug:t}},{componentType:"site-footer",config:{}}]},{sectionSlug:t})}};case"getRenderedPage":return async(...e)=>{let t=e0(e);try{return eZ(await r(...e))}catch{return eQ({title:t,slug:t,pageType:"static"})}};case"getRenderedTag":return async(...e)=>{let t=e0(e);try{return eZ(await r(...e))}catch{return eQ({title:t,slug:t,pageType:"template:tag"})}};case"getRenderedAuthor":return async(...e)=>{let t=e0(e);try{return eZ(await r(...e))}catch{return eQ({title:t.toUpperCase(),slug:t,pageType:"template:author"})}};case"getSearchResults":return async(...e)=>{let t=e0(e),s="string"==typeof e[2]?e[2]:void 0;try{return eZ(await r(...e),{sectionSlug:s})}catch{return eQ({title:`Recherche : ${t}`,slug:"_search",pageType:"template:search",sectionSlug:s})}};case"getRenderedArticle":return async(...e)=>{let t=e0(e);try{let s=await r(...e);if(s.article.title?.trim()||s.article.body?.trim())return eG(s);return eX(t)??eG(s)}catch(s){let e=eX(t);if(e)return e;throw s}};case"loadComponent":return async(...e)=>{let t=e0(e),s=e[1],i=s?.page??1;try{let t=await r(...e),n=Array.isArray(t.content)&&t.content.length>0||Array.isArray(t.articles)&&t.articles.length>0;if(i>1){if(n)return t;return{...t,pagination:{page:i,totalPages:t.pagination?.totalPages??i,hasMore:!1}}}return eY(t,{sectionSlug:s?.entitySlug})}catch{if(i>1){var n;return{componentType:(n={id:t,componentType:"article-grid"}).componentType||"article-grid",config:n.config||{},id:n.id,content:[],pagination:{page:i,totalPages:i,hasMore:!1}}}return eY({id:t,componentType:"article-grid",config:{sectionSlug:s?.entitySlug}},{sectionSlug:s?.entitySlug})}};case"getNavigation":return async(...e)=>{let t=e0(e);try{let s=await r(...e);if(s?.items?.length)return s;return ez[t]??null??s}catch{return ez[t]??null}};default:return r}}}),e.s(["ArticleGrid",0,e3,"BreakingTicker",0,e8,"CartoonBlock",0,te,"CompactList",0,e7,"HeroArticle",0,e6,"OpinionStrip",0,e5,"RelatedArticles",0,ts,"ShellOwnedComponent",0,tt,"VideoShowcase",0,e9],84405),e.i(84405),e.s(["ArticleGrid",0,e3,"BreakingTicker",0,e8,"CartoonBlock",0,te,"CompactList",0,e7,"HeroArticle",0,e6,"OpinionStrip",0,e5,"RelatedArticles",0,ts,"ShellOwnedComponent",0,tt,"VideoShowcase",0,e9,"articleHref",()=>m.articleHref],60166)},3303,(e,t,s)=>{t.exports=e.r(79520)}]);

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.