1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[768],{4992:(e,t,i)=>{i.d(t,{Z:()=>p});var s,n,a,r,o=i(1146),l=i(1029),c=i(8022),d=i(7652);const u=new l.Z("Carousel"),h={modules:[c.bi,c.W_],slidesPerView:"auto",spaceBetween:0,slidesPerGroup:1,breakpoints:{668:{slidesPerGroup:3}}};let p=(s=(0,o.QM)("Carousel"),n=(0,o.sy)(u),s((r=class extends o.wc{constructor(e,t){super(),this.block=e,this.sliderOptions=t}async initialize(){if(this.block.querySelector(".swiper")?.matches(".swiper-initialized"))return void u.warn("Carousel already initialized");const e=this.block.querySelector(".swiper"),t=this.block.querySelector(".next"),i=this.block.querySelector(".prev");null!==t&&null!==i&&(h.navigation={nextEl:t,prevEl:i});const s={...h,...this.sliderOptions};this.slides=this.block.querySelectorAll(".swiper-slide"),this.slider=new d.Z(e,s),this.initListeners()}initListeners(){for(const e of this.slides){const t=e.querySelector("video");if(!t)return;e.addEventListener("mouseenter",(e=>t.play())),e.addEventListener("mouseleave",(e=>t.load()))}}},m=r.prototype,g="initialize",b=[n],f=Object.getOwnPropertyDescriptor(r.prototype,"initialize"),y=r.prototype,w={},Object.keys(f).forEach((function(e){w[e]=f[e]})),w.enumerable=!!w.enumerable,w.configurable=!!w.configurable,("value"in w||w.initializer)&&(w.writable=!0),w=b.slice().reverse().reduce((function(e,t){return t(m,g,e)||e}),w),y&&void 0!==w.initializer&&(w.value=w.initializer?w.initializer.call(y):void 0,w.initializer=void 0),void 0===w.initializer&&(Object.defineProperty(m,g,w),w=null),a=r))||a);var m,g,b,f,y,w},4702:(e,t,i)=>{i.d(t,{Z:()=>u});var s,n,a,r,o=i(1146),l=i(1029),c=i(9647);const d=new l.Z("Snap Carousel");let u=(s=(0,o.QM)("Snap Carousel"),n=(0,o.sy)(d),s((r=class extends o.wc{carousel=null;prevButton=null;nextButton=null;slides=null;constructor(e){super(),this.block=e}async initialize(){await(0,c.qQ)(),this.carousel=(0,c.cw)(".snap-carousel-container",this.block),this.prevButton=(0,c.cw)(".nav-button.prev",this.block),this.nextButton=(0,c.cw)(".nav-button.next",this.block),this.slides=(0,c.$3)(".carousel-item",this.block),this.initListeners(),this.updateButtons()}updateButtons(){const e=this.carousel.scrollWidth-this.carousel.clientWidth;this.prevButton&&this.nextButton&&(this.prevButton.disabled=this.carousel.scrollLeft<=5,this.nextButton.disabled=this.carousel.scrollLeft>=e-5)}getScrollAmount(){const e=this.block.querySelector(".carousel-item");if(d.log(e),!e)return 200;return e.offsetWidth+15}initListeners(){let e=window.matchMedia("(min-width: 1024px)").matches;this.prevButton?.addEventListener("click",(()=>{this.carousel.scrollBy({left:-this.getScrollAmount(),behavior:"smooth"}),setTimeout((()=>this.updateButtons()),300)})),this.nextButton?.addEventListener("click",(()=>{this.carousel.scrollBy({left:this.getScrollAmount(),behavior:"smooth"}),setTimeout((()=>this.updateButtons()),300)})),this.block.addEventListener("scroll",(()=>this.updateButtons())),(0,c.EJ)(this.carousel,(()=>this.updateButtons())),this.slides&&e&&this.slides.forEach((e=>{const t=e.querySelector("video");t&&(e.addEventListener("mouseenter",(()=>t.play())),e.addEventListener("mouseleave",(()=>t.load())))}))}},h=r.prototype,p="initialize",m=[n],g=Object.getOwnPropertyDescriptor(r.prototype,"initialize"),b=r.prototype,f={},Object.keys(g).forEach((function(e){f[e]=g[e]})),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=m.slice().reverse().reduce((function(e,t){return t(h,p,e)||e}),f),b&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(b):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(h,p,f),f=null),a=r))||a);var h,p,m,g,b,f},5335:(e,t,i)=>{i.d(t,{Z:()=>l});var s=i(213),n=i(1029),a=i(9407),r=i(5143);const o=new n.Z("Benefits");class l{static isAdsfree(e){try{if(e.subscriptionsData.benefits.includes("adsfree"))return o.log("User has adsfree benefits without tag restriction"),!0;if(e.subscriptionsData.benefits.includes("adsfree.tags")){if(e.subscriptionsData.tags.includes("all"))return o.log("User has adsfree benefits and include all"),!0;if(this.userHasMatchingTag(e.subscriptionsData.tags))return o.log("User has adsfree benefits with tag restriction"),!0}}catch(e){o.error("Failed on read adsfree benefits",e)}return o.log("User has no adsfree benefits"),!1}static canAppUserReadPaywallArticle(){return r.Z.isWebview()&&"true"===(0,a.eY)("isEligible")}static canReadPaywallArticle(e){try{if(this.canAppUserReadPaywallArticle())return o.log("User is eligible for read article in app."),!0;if(!1===e.subscriptionsData?.benefits.includes("articles"))return o.log("User has no articles benefits."),!1;const t=e.subscriptionsData?.tags;if(!Array.isArray(t)||0===t.length||t?.includes("all"))return o.log("User has article benef
1its without tag restrictions.",t),!0;if(this.userHasMatchingTag(t))return o.log("User has article benefits with tag restrictions",t),!0}catch(e){o.error("Failed on read article benefits",e)}return!1}static userHasMatchingTag(e){const t=s.Z.getAll("gsoi:tag");return e.filter((e=>t.includes(e))).length>0}}},2784:(e,t,i)=>{i.d(t,{Z:()=>b,v:()=>k});var s=i(1146),n=i(5335),a=i(1029),r=i(9647),o=i(9407),l=i(5778),c=i(5143);const d=JSON.parse('{"desktopAdsFree":"01322572","desktopDefault":"01136982","mobileAdsFree":"01932357","mobileDefault":"01636866","zoneDefault":1,"zoneEnTete":8}');var u,h,p,m;const g=new a.Z("Digiteka");let b=(u=(0,s.QM)("Digiteka"),h=(0,s.sy)(g),u((m=class extends s.wc{mdtk=null;sticky=!1;async initialize(){const[e]=await Promise.all([(0,s.r9)(l.Z),(0,s.r9)(c.Z),(0,r.qQ)()]);if(c.Z.isWebview())return void this.setMdtk(d.mobileAdsFree);const t=await Promise.race([e.onUserLoaded(),e.onUserFailed()]);null===t||"object"!=typeof t?this.setMdtk((0,o.s2)()?d.mobileAdsFree:d.desktopAdsFree):(0,o.s2)()?this.setMdtk(n.Z.isAdsfree(t)?d.mobileAdsFree:d.mobileDefault):this.setMdtk(n.Z.isAdsfree(t)?d.desktopAdsFree:d.desktopDefault)}setMdtk(e){this.mdtk=e,e===d.mobileDefault&&(this.sticky=!0),g.log(`mdtk = "${this.mdtk}"`,d)}getSimplePlayerUrl(e,t=!1,i=!1){const s=i?d.zoneEnTete:d.zoneDefault;try{0!==/www\.ultimedia\.com(.*)mdtk\/(\d+)\/(.*)zone\/(\d+)/.exec(e).length?e=e.replace(/mdtk\/(\d+)/,`mdtk/${this.mdtk}`).replace(/zone\/(\d+)/,`zone/${s}`):0!==/www\.ultimedia\.com(.*)iframe\/(\d+)\/(\d+)/.exec(e).length&&(e=e.replace(/iframe\/(\d+)\/(\d+)/,`iframe/${this.mdtk}/${s}`)),t&&(e=e.replace(/(\/?)$/,"/visible/yes"))}catch(e){g.error("Error while rewriting digiteka url",e)}return e}},f=m.prototype,y="initialize",w=[h],v=Object.getOwnPropertyDescriptor(m.prototype,"initialize"),E=m.prototype,S={},Object.keys(v).forEach((function(e){S[e]=v[e]})),S.enumerable=!!S.enumerable,S.configurable=!!S.configurable,("value"in S||S.initializer)&&(S.writable=!0),S=w.slice().reverse().reduce((function(e,t){return t(f,y,e)||e}),S),E&&void 0!==S.initializer&&(S.value=S.initializer?S.initializer.call(E):void 0,S.initializer=void 0),void 0===S.initializer&&(Object.defineProperty(f,y,S),S=null),p=m))||p);var f,y,w,v,E,S;const k=(e,t)=>{if(!t.sticky)return;new MutationObserver((e=>{e.filter((e=>"IFRAME"===e.target.nodeName)).forEach((e=>{"fixed"===e.target.style.position?(0,r.sb)("auto-promo-sticky")?.classList.add("cover"):(0,r.sb)("auto-promo-sticky")?.classList.remove("cover")}))})).observe(e,{attributes:!0,subtree:!0,attributeFilter:["style"]})}},5143:(e,t,i)=>{i.d(t,{Z:()=>p});var s,n,a,r,o=i(1146),l=i(1029),c=i(5547),d=i(9407);const u=new l.Z("Webview"),h=(0,c.$)();let p=(s=(0,o.QM)("Webview"),n=(0,o.sy)(u),s((r=class extends o.wc{async initialize(){if("true"===(0,d.eY)("webview")){const e=h.set("webview","true",{expires:1/24});u.log("Set webview cookie.",e)}}static isWebview(){return document.body.classList.contains("webview")}},m=r.prototype,g="initialize",b=[n],f=Object.getOwnPropertyDescriptor(r.prototype,"initialize"),y=r.prototype,w={},Object.keys(f).forEach((function(e){w[e]=f[e]})),w.enumerable=!!w.enumerable,w.configurable=!!w.configurable,("value"in w||w.initializer)&&(w.writable=!0),w=b.slice().reverse().reduce((function(e,t){return t(m,g,e)||e}),w),y&&void 0!==w.initializer&&(w.value=w.initializer?w.initializer.call(y):void 0,w.initializer=void 0),void 0===w.initializer&&(Object.defineProperty(m,g,w),w=null),a=r))||a);var m,g,b,f,y,w},4312:(e,t,i)=>{var s=i(9647);(0,s.qQ)().then((()=>{document.querySelectorAll(".read-more-wrapper > a.show-more").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault();const t=e.target;t.closest(".read-more-wrapper").querySelector(".read-more-content").classList.add("open"),t.remove()}))}))}));var n=i(5335),a=i(9543),r=i(1029),o=i(3679),l=i(1146),c=i(9407),d=i(213);const u=JSON.parse('{"g":"https://alloy.prod.gsoi.fr/collect","e":0.1}');var h,p,m=i(4788),g=i(4010),b=i(139),f=i(8032),y=i(6658),w=i(7647),v=i(4463),E=i(3243);const S=new r.Z("Observability");let k=(h=(0,l.sy)(S),p=class extends l.wc{async initialize(){if(!E.Z.isEnabled(m.l.GRAFANA_FARO))return void S.log("Faro is disabled.");
1if(window.faro)return void S.log("Faro is already initialized.");const e={name:"newho-cl",version:"2026.09-24-07",environment:"prod"};S.debug("Initializing Faro",e),(0,g.p)({instrumentations:[new b.w,new f.P,new y.J({disabledLevels:[w.in.TRACE,w.in.LOG,w.in.INFO,w.in.DEBUG]}),new v.p],url:u.g,app:e,sessionTracking:{enabled:!0,samplingRate:u.e}})}sendCustomEvent(e,t){window.faro?.api.pushEvent(e,t)}},P=p.prototype,L="initialize",z=[h],O=Object.getOwnPropertyDescriptor(p.prototype,"initialize"),A=p.prototype,C={},Object.keys(O).forEach((function(e){C[e]=O[e]})),C.enumerable=!!C.enumerable,C.configurable=!!C.configurable,("value"in C||C.initializer)&&(C.writable=!0),C=z.slice().reverse().reduce((function(e,t){return t(P,L,e)||e}),C),A&&void 0!==C.initializer&&(C.value=C.initializer?C.initializer.call(A):void 0,C.initializer=void 0),void 0===C.initializer&&(Object.defineProperty(P,L,C),C=null),p);var P,L,z,O,A,C;var D,I,T,_;const U=new r.Z("Article.ContentAnalyzer");let M=(D=(0,l.QM)("Article.ContentAnalyzer"),I=(0,l.sy)(U),D((function(e,t,i,s,n){var a={};Object.keys(s).forEach((function(e){a[e]=s[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce((function(i,s){return s(e,t,i)||i}),a),n&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(n):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null)}((_=class extends l.wc{contents=[];async initialize(){await(0,s.qQ)();const e=[];for(let t of(0,s.$3)(".article-content .full-content > *")){U.log("Content",t);const i=t.tagName.toLowerCase();if("p"!==i&&"blockquote"!==i)if("div"===i&&t.classList.contains("encart")){const i=(t.offsetHeight-80)/26;e.push({type:"text",tag:"encart",lines:Math.floor(i+1)})}else if("ul"!==i&&"ol"!==i)t.classList.contains("pub")?e.push({type:"pub",tag:i}):e.push({type:"other",tag:i});else{const s=(t.offsetHeight-10*(t.children.length-1))/26;e.push({type:"text",tag:i,lines:Math.floor(s)})}else{const s=t.offsetHeight/26;e.push({type:"text",tag:i,lines:Math.floor(s)})}}U.log("Article contents",e),this.contents=e}getContents(){return this.contents}}).prototype,"initialize",[I],Object.getOwnPropertyDescriptor(_.prototype,"initialize"),_.prototype),T=_))||T);var q,H,N,R;const x=new r.Z("Outbrain");let F=(q=(0,l.QM)("Outbrain"),H=(0,l.sy)(x),q((function(e,t,i,s,n){var a={};Object.keys(s).forEach((function(e){a[e]=s[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce((function(i,s){return s(e,t,i)||i}),a),n&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(n):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null)}((R=class extends l.wc{compliance=!1;async initialize(){const[e]=await Promise.all([(0,l.r9)(M),(0,s.qQ)()]);if(x.log("DOM is ready, calculate compliance"),this.compliance=!1,"true"===d.Z.get("gsoi:article-premium"))return void x.warn("Premium article: no compliance to be applied.");let t=0;for(const i of e.getContents().reverse()){if("text"!==i.type){x.log("Stop compliance check at content",i);break}t+=i.lines}x.log("lineCount for compliance is ",t),t>=3&&(this.compliance=!0)}isCompliance(){return this.compliance}}).prototype,"initialize",[H],Object.getOwnPropertyDescriptor(R.prototype,"initialize"),R.prototype),N=R))||N);var B=i(5778),j=i(7812);const Z=new r.Z("OutbrainDynamicWidgets"),$=e=>{const t=(0,s.$3)(".outbrain-dynamic-widget");Z.debug("Dynamic widgets:",t);const i=t.map((t=>((e,t)=>{Z.log("Init widget",e);const i=document.createElement("div");i.classList.add("outbrain-container");const s=document.createElement("div");s.classList.add("OUTBRAIN"),s.setAttribute("data-src",e.dataset.src),i.appendChild(s);let n=e.dataset.defaultWidget;return t?.isCompliance()&&void 0!==e.dataset.complianceWidget&&(n=e.dataset.complianceWidget),void 0!==n&&("info_video"===d.Z.get("gsoi:article-type")&&(n=n.replace(/_(\d+)/,"_22")),Z.log("Set widget identifier",n),s.setAttribute("data-widget-id",n)),""!=s.dataset.widgetId&&""!=s.dataset.src&&(Z.log("Widget created",i),e.replaceWith(i),!0)})(t,e)));return i.some(Boolean)},Q=async(e,t,i)=>{if(!await e.hasConsentedForVendor(o.Kj.OUTBRAIN))return void Z.log("Outbrain script not loaded: no consent");const a=await Promise.race([t.onUserLoaded(),(0,j.X_)(6e3)]);a&&n.Z.isAdsfree(a)?Z.log("Outbrain script not loaded: user is ads-free"):$(i)?(await(async()=>{const e=await(0,l.r9)(k);(0,s.$3)(".OUTBRAIN").forEach((t=>{Z.log("Send custom event",t.dataset.widgetId),e.sendCustomEvent("outbrain_widget_loaded",{widget:t.dataset.widgetId,src:t.dataset.src})}))})(),await(async()=>{try{const e=await(0,c.SH)("//widgets.outbrain.com/outbrain.js?i=fac452bc",!0);Z.debug("Outbrain script loaded.",e)}
1catch(e){Z.error("Outbrain script not loaded.",e)}})()):Z.log("Outbrain not loaded: no widget created")};Promise.all([(0,l.r9)(F),(0,l.r9)(a.ZP),(0,l.r9)(B.Z),(0,s.qQ)()]).then((async([e,t,i])=>{if(t.hasUserResponded())return Z.log("Loading Outbrain (user consent status already collected)."),void await Q(t,i,e);t.on("consent.changed",(async s=>{Z.log("Loading Outbrain (consent changed)."),await Q(t,i,e)}))}));var W=i(2784);const G=new r.Z("Digiteka.SmartPlayer");Promise.all([(0,l.r9)(W.Z),(0,s.qQ)()]).then((([e])=>(async e=>{const t=(0,s.sb)("ultimedia-smart-player");if(null===t)return void G.debug("Ultimedia Smart Player not loaded: div not found.");window.ULTIMEDIA_target="ultimedia_content",window.ULTIMEDIA_async=void 0!==t?.dataset?.async,window.ULTIMEDIA_mdtk=e.mdtk,window.ULTIMEDIA_zone=parseInt(t?.dataset?.zone||"10");const i=1e3*parseInt(t?.dataset?.timeout||"7");G.debug("Ultimedia Smart Player configuration.",{ULTIMEDIA_target:window.ULTIMEDIA_target,ULTIMEDIA_async:window.ULTIMEDIA_async,ULTIMEDIA_mdtk:window.ULTIMEDIA_mdtk,ULTIMEDIA_zone:window.ULTIMEDIA_zone}),(0,W.v)(t,e),await(0,j.X_)(i),G.log(`Smart Player loaded after promo ${i}ms of ads.`),await(0,c.SH)("//www.ultimedia.com/js/common/smart.js"),G.log(`Ultimedia Smart Player loaded with mdtk ${e.mdtk}.`)})(e))).catch((e=>G.error(e)));var K=i(6737);const V=JSON.parse('{"J":"67a41a56-dbdc-45c2-81ef-74d7f2d3e493","r":"gso_charentelibre"}');var Y,X,J,ee;const te=new r.Z("Ads");let ie=(Y=(0,l.QM)("Ads"),X=(0,l.sy)(te),Y((function(e,t,i,s,n){var a={};Object.keys(s).forEach((function(e){a[e]=s[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce((function(i,s){return s(e,t,i)||i}),a),n&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(n):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null)}((ee=class extends l.wc{adsElements=[];stickyAdsElements=[];adsTimelineElementsAlreadyHidden=!1;alwaysDisplayedIds=["pub_dfp_publi_info_dep","pub_dfp_pave_haut","pub_dfp_inread_premium"];async initialize(){if(/\/carte\//.exec(window.location.pathname))return void te.log("Do not load Pubstack script on map page.");[this.consentManager,this.sessionManager]=await Promise.all([(0,l.r9)(a.ZP),(0,l.r9)(B.Z),(0,s.qQ)()]),this.updatePubstackSiteNameMetadata();let e=!1;const t=this.sessionManager.onUserFailed(),i=this.sessionManager.onUserLoaded();if(this.removeDuplicateAds(),this.selectStickyAdsElements(),t.then((()=>{e||this.toggleZenMode(!0),this.updateTopForStickyAds(),this.updatePubstackIsAbonneMetadata(!0)})),i.then((async t=>{e=!0,this.toggleZenMode(n.Z.isAdsfree(t)),this.updatePubstackDeviceMetadata(),this.updatePubstackIsAbonneMetadata(t.subscriptionsData.isPremium),this.updateTopForStickyAds()})),await Promise.race([t,i]),!E.Z.isEnabled(m.l.PUBSTACK)||!this.consentManager.hasConsented())return te.debug("Pubstack disabled.",E.Z.isEnabled(m.l.PUBSTACK),this.consentManager.hasConsented()),void(this.consentManager.hasConsented()||this.notConsentedUserCase());(this.consentManager.hasConsented()||await this.consentManager.hasConsentedForAll())&&(te.debug("Pubstack enabled."),this.observeSkinAd(),await(0,c.SH)(`https://boot.pbstck.com/v1/adm/${V.J}`),te.debug("Pubstack script inserted in DOM."))}toggleZenMode(e){0===this.adsElements.length&&this.selectAdsElements(),this.adsElements.forEach((t=>{e&&!this.isAlwaysDisplayed(t)?t.classList.add("hide"):t.classList.remove("hide")})),e?(this.disableStickyAds(),te.debug("Zen mode activated")):te.debug("Zen mode deactivated")}addTimelineAdsToZenMode(){if(!1===this.adsTimelineElementsAlreadyHidden){const e=Array.from(document.querySelectorAll(".timeline-ad"));te.debug("Timeline Ads selected.",e),this.adsElements.push(...e),this.adsTimelineElementsAlreadyHidden=!0}}disableStickyAds(){te.debug("Disable sticky ads");const e=document.querySelector(".header-mobile-sticky-margin");this.adsElements.forEach((t=>{if(t.classList.contains("sticky-ad")){if(t.classList.add("hide"),!e)return;e.classList.add("hide")}}));for(const e of this.stickyAdsElements){const t=e.querySelector(".pub");t&&!this.isAlwaysDisplayed(t)&&t.classList.add("hide")}}selectAdsElements(){[".pub",".ob-smartfeed-wrapper",".outbrain-container","#auto-promo-sticky"].forEach((e=>{const t=Array.from(document.querySelectorAll(e));this.adsElements.push(...t)}));const e=document.getElementById("l_i_g_a_t_u_s_placeholder_article_end"),t=document.getElementById("l_i_g_a_t_u_s_placeholder_side");e?.parentElement&&this.adsElements.push(e.parentElement),t?.parentElement&&this.adsElements.push(t.parentElement),te.debug("Ads selected.",this.adsElements)}selectStickyAdsElements(){[".aside-container"].forEach((e=>{const t=(0,s.$3)(e);this.stickyAdsElements.push(...t)}))}updateTopForStickyAds(){const e=document.querySelector(".header-mobile-sticky");
1this.stickyAdsElements.forEach((t=>{let i=t.querySelector(".pub");null!==e&&null!=i&&i.classList.contains("sticky")&&(i.style.top=`${e.offsetHeight}px`)}));const t=(0,s.sb)("auto-promo-item"),i=(0,s.sb)("auto-promo-sticky"),n=1e3*parseInt(t?.dataset?.timeout||"7");(0,j.X_)(n).then((()=>{t&&i&&t.classList.contains("hidden")&&(te.log("block autopromo: "+t?.innerHTML),(0,s.yG)(i,t.innerHTML),te.log(`Block Auto Promo loaded after ${n}ms of ads`))}))}removeDuplicateAds(){const e=(0,c.s2)()?".downfrom-desktop":".upto-tablet";document.querySelectorAll('.pub_dfp[id^="pub_dfp_"]'+e).forEach((e=>e.remove())),document.querySelectorAll('.pub_dfp[id^="inread_repeat_"]'+e).forEach((e=>e.remove()))}updatePubstackDeviceMetadata(){const e=document.querySelector('[name="pbstck_context:device"]');e?.setAttribute("content",(0,c.s2)()?"webmobile":"webdesktop")}updatePubstackSiteNameMetadata(){const e=document.querySelector('[name="pbstck_context:site_name"]');e?.setAttribute("content",V.r)}updatePubstackIsAbonneMetadata(e){if(K.x)return;const t=document.querySelector('[name="pbstck_context:is_abonne"]');t?.setAttribute("content",e?"yes":"no");const i=document.querySelector('[name="ad:gso_isabonne"]');i?.setAttribute("content",e?"yes":"no")}isAlwaysDisplayed(e){return this.alwaysDisplayedIds.includes(e.id)}notConsentedUserCase(){if(te.log("User not consented"),(0,c.s2)()){this.adsElements.push(...this.stickyAdsElements);let e=document.getElementById("pub_dfp_publi_info_dep");e&&this.adsElements.push(e)}this.alwaysDisplayedIds=[],this.toggleZenMode(!0)}observeSkinAd(){if("page-large"!==document.body.id||window.innerWidth<1e3)return;const e=(0,s.sb)("pub_dfp_banniere_haute");new MutationObserver((t=>{for(let i of t)i.target===e&&(e.classList.contains("adm-ad-skin-resizable")||e.classList.contains("adm-ad-skin"))&&(te.log("banner ad is skin resizable, reducing body width"),document.body.classList.add("w-1000"))})).observe(e,{attributes:!0})}}).prototype,"initialize",[X],Object.getOwnPropertyDescriptor(ee.prototype,"initialize"),ee.prototype),J=ee))||J);var se,ne,ae,re,oe=i(4702);const le=new r.Z("AmpStoryPlayer"),ce="https://cdn.ampproject.org/amp-story-player-v0.js";let de=(se=(0,l.QM)("AmpStoryPlayer"),ne=(0,l.sy)(le),se((function(e,t,i,s,n){var a={};Object.keys(s).forEach((function(e){a[e]=s[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce((function(i,s){return s(e,t,i)||i}),a),n&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(n):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null)}((re=class extends l.wc{constructor(e){super(),this.wrapper=e}async initialize(){await Promise.all([(0,s.qQ)(),this.loadScript()]);const e=this.wrapper.querySelector("amp-story-player");null!==e?(await(0,l.XU)(".snap-carousel-wrapper",(e=>new oe.Z(e))),this.player=e,this.storyLinks=(0,s.$3)(".story-link"),this.stories=this.player.getStories(),this.player.isReady&&(this.initNavButtons(),le.debug("Initialized navigational buttons.")),le.debug("Stories:",this.stories),this.initListeners()):le.log("No player element found.")}async loadScript(){try{const e=await(0,c.SH)(ce,!0);le.debug("Story player script loaded.",ce,e)}catch(e){le.error("Story player scripts not loaded",e)}}initNavButtons(){this.btnPrev=this.wrapper.querySelector(".story-player-nav-prev"),this.btnNext=this.wrapper.querySelector(".story-player-nav-next")}initListeners(){this.openPlayerListener(),this.closePlayerListener(),this.touchPlayerListener(),this.navPlayerListener()}touchPlayerListener(){let e=0;this.player.addEventListener("amp-story-player-touchstart",(t=>{e=t.detail.touches[0].pageY})),this.player.addEventListener("amp-story-player-touchend",(e=>{this.wrapper.style.top="0"})),this.player.addEventListener("amp-story-player-touchmove",(t=>{!1===t.detail.isNavigationalSwipe&&this.closePlayerOnSwipeDown(t,e)}))}closePlayerListener(){this.player.addEventListener("amp-story-player-close",(()=>{this.closePlayer()}))}openPlayerListener(){this.storyLinks.forEach((e=>{e.addEventListener("click",(t=>{t.preventDefault();const i=e.dataset.storyId;this.player.show(this.stories[i].href),this.openPlayer(),this.showNavButton(this.btnPrev),this.showNavButton(this.btnNext)}))}))}navPlayerListener(){this.btnPrev?.addEventListener("click",(()=>{this.player.go(-1)})),this.btnNext?.addEventListener("click",(()=>{this.player.go(1)})),this.player.addEventListener("navigation",(e=>{0===e.detail.remaining?(le.log("Disable next button, no more stories to show"),this.hideNavButton(this.btnNext)):this.showNavButton(this.btnNext)}))}closePlayer(){this.wrapper.classList.add("closed"),this.player.mute()}closePlayerOnSwipeDown(e,t){const i=e.detail.touches[0].pageY;let s=0;if(t<i){if(s=i-t,s>0&&s<150)return this.wrapper.classList.add("animate"),void(this.wrapper.style.top=`${s}px`);this.closePlayer()}}openPlayer(){this.wrapper.classList.remove("closed","animate")}showNavButton(e){e?.classList.contains("desktop-visible")||e?.classList.add("desktop-visible")}hideNavButton(e){e?.classList.contains("desktop-visible")&&e?.classList.remove("desktop-visible")}}).prototype,"initialize",[ne],Object.getOwnPropertyDescriptor(re.prototype,"initialize"),re.prototype),ae=re))||ae);const ue=new r.Z("Batch");class he extends l.wc{config={apiKey:null,authKey:null,bannerText:null,btnSub:null,domain:null,icon:null,serviceWorkerPathOverride:"/batchsdk-wor
1ker-loader.js",subdomain:null,themeColor:null,vapidPublicKey:null,websitePushId:null};isValidConfig(e){return e?0==Object.keys(e.dataset).length?(ue.error("Batch config is empty"),!1):!!(e.dataset.apiKey&&e.dataset.authKey&&e.dataset.subdomain&&e.dataset.vapidPublicKey&&e.dataset.bannerText&&e.dataset.btnSub&&e.dataset.themeColor&&e.dataset.domain&&e.dataset.websitePushId)||(ue.error("Batch widget is not well configured"),!1):(ue.error("Batch widget not found"),!1)}initBatchConfig(){const e=document.getElementById("batch-widget");if(this.isValidConfig(e))return this.config.apiKey=e.dataset.apiKey,this.config.authKey=e.dataset.authKey.replace("\\/","/"),this.config.bannerText=e.dataset.bannerText,this.config.btnSub=e.dataset.btnSub,this.config.domain=e.dataset.domain,this.config.icon=e.dataset.icon||"",this.config.subdomain=e.dataset.subdomain,this.config.themeColor=e.dataset.themeColor,this.config.vapidPublicKey=e.dataset.vapidPublicKey.replace(/\\\//g,"/"),this.config.websitePushId=e.dataset.websitePushId,ue.debug("Batch config",this.config),this.config}async loadBatchScript(){try{const e=await(0,c.SH)("https://via.batch.com/v3/bootstrap.min.js");ue.debug("Batch script loaded",e)}catch(e){ue.error("Batch script not loaded",e)}}async initBatchSDK(){await this.loadBatchScript();try{window.batchSDK=window.batchSDK||function(){(window.batchSDK.q=window.batchSDK.q||[]).push(arguments)};let e={native:{}};(-1!==navigator.userAgent.indexOf("Firefox")||-1!==navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome"))&&(e={banner:{text:this.config.bannerText,icon:this.config.icon,btnSub:this.config.btnSub,btnBackgroundColor:this.config.themeColor}}),window.batchSDK("setup",{apiKey:this.config.apiKey,subdomain:this.config.subdomain,authKey:this.config.authKey,vapidPublicKey:this.config.vapidPublicKey,ui:e,serviceWorkerPathOverride:this.config.serviceWorkerPathOverride,safari:{[this.config.domain]:this.config.websitePushId}}),ue.debug("Batch setup")}catch(e){ue.error("Batch not setup",e)}}async onDidomiLoaded(){return new Promise((e=>{this.didomi.getLibrary()?e():this.didomi.onReady((()=>{e()}))}))}hasConsent(){const e=[o.XC.COOKIES,o.XC.USE_GEOLOCATION_DATA,o.XC.SELECT_PERSONALISED_CONTENT,o.XC.CREATE_CONTENT_PROFILE,o.XC.ACTIVELY_SCAN_DEVICE_CHARACTERISTICS_FOR_IDENTIFICATION];if(0===this.didomi.getLibrary().getUserStatus().purposes.consent.enabled.length)return ue.debug("Not display Batch banner : none consent"),!1;return!!e.every((e=>this.didomi.getLibrary().getUserStatus().purposes.consent.enabled.includes(e)))||(ue.warn("Not display Batch banner : missing consent"),!1)}async initialize(){[this.didomi]=await Promise.all([(0,l.r9)(o.ZP),(0,s.qQ)()]),this.initBatchConfig()||ue.error("Batch config is undefined"),await this.onDidomiLoaded(),this.hasConsent()&&await this.initBatchSDK()}}var pe,me,ge,be,fe=i(4992),ye=i(4943);const we=new r.Z("CookieWall");let ve=(pe=(0,l.QM)("CookieWall"),me=(0,l.sy)(we),pe((function(e,t,i,s,n){var a={};Object.keys(s).forEach((function(e){a[e]=s[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce((function(i,s){return s(e,t,i)||i}),a),n&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(n):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null)}((be=class extends l.wc{constructor(e){super(),this.cssSelector=e}async initialize(){if([this.consentManager,this.didomi,this.sessionManager]=await Promise.all([(0,l.r9)(a.ZP),(0,l.r9)(o.ZP),(0,l.r9)(B.Z),(0,s.qQ)()]),this.initializeElements(),!this.containerEl)throw new ye.Z("Container not found.",r.i.Verbose);this.initializeListeners(),this.initializeElementsListeners(),this.sessionManager.isFromProfile()||this.handleDisplay(),this.sessionManager.onUserChanged().then((()=>this.handleDisplay()))}handleDisplay(){this.didomi?.getLibrary().notice.isVisible()?this.hide():this.consentManager.hasConsentedForCookies().then((e=>{e||this.isUserPremium()||this.didomi.getLibrary().notice.isVisible()?this.hide():(we.debug("User has not consented to cookies, nor is premium: showing cookie wall."),this.show())}))}hide(){this.containerEl?(0,s.pn)(this.containerEl)&&(this.containerEl.classList.add("hidden"),delete document.body.style.marginBottom,we.debug("Hidden.")):we.log("Container element does not exist.")}show(){this.containerEl?(0,s.pn)(this.containerEl)||(this.containerEl.classList.remove("hidden"),document.body.style.marginBottom=this.containerEl.offsetHeight+"px",we.debug("Shown.")):we.warn("Container element does not exist.")}initializeElements(){this.containerEl=document.querySelector(this.cssSelector),this.containerEl&&(this.agreeBtnEl=this.containerEl.querySelector(".button-agree"))}initializeElementsListeners(){this.agreeBtnEl?.addEventListener("click",(e=>{e.preventDefault(),this.didomi.getLibrary().setUserAgreeToAll(),this.hide()}))}initializeListeners(){this.didomi.on(o.H_.NOTICE_SHOWN,(()=>{this.hide()})),this.didomi.on(o.H_.NOTICE_HIDDEN,(async()=>{await(0,j.X_)(5),this.handleDisplay()})),this.didomi.on(o.H_.CONSENT_CHANGED,(()=>{this.handleDisplay()}))}isUserPremium(){return!0===this.sessionManager.getUser()?.subscriptionsData?.isPremium}}).prototype,"initialize",[me],Object.getOwnPropertyDescriptor(be.prototype,"initialize"),be.prototype),ge=be))||ge);var Ee,Se,ke,Pe;const Le=new r.Z("DrawerMenu"),ze=":popover-open, .\\:popover-open";function Oe(e){return!e.hidden&&"none"!==window.getComputedStyle(e).display}let Ae=(Ee=(0,l.QM)("DrawerMenu"),Se=(0,l.sy)(Le),Ee((function(e,t,i,s,n){var a={};
1Object.keys(s).forEach((function(e){a[e]=s[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce((function(i,s){return s(e,t,i)||i}),a),n&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(n):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null)}((Pe=class extends l.wc{panelStack=[];async initialize(){const[e]=await Promise.all([(0,l.r9)(B.Z),(0,s.qQ)()]);this.initializeElements(),void 0!==this.elements?(this.elements.drawer.tabIndex=-1,this.syncTriggerExpanded(this.elements.drawer.matches(ze)?"open":"closed"),this.resetPanels(),this.listen(),e.onUser((()=>this.hideEmptySubMenus()),(()=>this.hideEmptySubMenus()))):Le.debug("No drawer menu on this page.")}initializeElements(){const e=(0,s.cw)(".drawer-menu[popover]");if(null===e)return;const t=[],i=(0,s.$3)(".drawer-menu-item--sub_menu [data-drawer-panel]",e).reverse();for(const e of i){const i=e.closest(".drawer-menu-item"),n=e.dataset.drawerPanel,a=void 0===n?null:(0,s.sb)(n);null!==i&&t.push({item:i,leafItems:null===a?[]:(0,s.$3)(".drawer-menu-item:not(.drawer-menu-item--group)",a),panel:a,trigger:e})}this.elements={drawer:e,panels:(0,s.$3)(".drawer-menu-panel",e),rootPanel:(0,s.cw)(".drawer-menu-panel--root",e),subMenus:t,trigger:""===e.id?null:(0,s.cw)(`[popovertarget="${CSS.escape(e.id)}"]`)}}syncTriggerExpanded(e){this.elements.trigger?.setAttribute("aria-expanded","open"===e?"true":"false")}listen(){const{drawer:e}=this.elements;e.addEventListener("beforetoggle",(e=>{"open"===e.newState&&this.resetPanels()})),e.addEventListener("toggle",(e=>{this.syncTriggerExpanded(e.newState),"open"===e.newState&&(this.hideEmptySubMenus(),this.focusPanel(this.activePanel()))})),e.addEventListener("click",(e=>this.onClick(e))),document.addEventListener("keydown",(e=>this.onKeyDown(e)),!0)}onClick(e){if(!(e.target instanceof Element))return;const t=e.target.closest("[data-drawer-panel]");return null!==t?(e.preventDefault(),void this.pushPanel(this.subMenuFor(t)?.panel??null)):null!==e.target.closest("[data-drawer-back]")?(e.preventDefault(),void this.popPanel()):void(null!==e.target.closest("a[href]")&&this.elements.drawer.hidePopover())}onKeyDown(e){if(this.elements.drawer.matches(ze))return"Escape"===e.key&&this.panelStack.length>1?(e.preventDefault(),e.stopPropagation(),void this.popPanel()):void("Tab"===e.key&&this.trapFocus(e))}trapFocus(e){const{drawer:t}=this.elements,i=this.focusableElements(t),s=i[0],n=i[i.length-1];return void 0===s?(e.preventDefault(),void t.focus()):!e.shiftKey||document.activeElement!==s&&document.activeElement!==t?void(e.shiftKey||document.activeElement!==n||(e.preventDefault(),s.focus())):(e.preventDefault(),void n.focus())}pushPanel(e){null===e||this.panelStack.includes(e)||(this.panelStack.push(e),this.settlePanels(),this.focusPanel(e))}popPanel(){if(this.panelStack.length<2)return;const e=this.panelStack.pop();this.settlePanels(),this.focusPanel(this.activePanel(),this.triggerFor(e))}resetPanels(){const{rootPanel:e}=this.elements;this.panelStack=null===e?[]:[e],this.settlePanels()}settlePanels(){const e=this.activePanel();for(const s of this.elements.panels)s.classList.toggle("is-active",s===e),s.classList.toggle("is-stacked-left",s!==e&&this.panelStack.includes(s)),i=s!==e,(t=s).toggleAttribute("inert",i),i?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden");var t,i}activePanel(){return this.panelStack[this.panelStack.length-1]??null}focusPanel(e,t=null){if(null===e)return;(null!==t&&e.contains(t)?t:this.focusableElements(e)[0]??e).focus({preventScroll:!0})}focusableElements(e){return(0,s.$3)('a[href], button, input, select, textarea, [tabindex]:not([tabindex="-1"])',e).filter((e=>e.tabIndex>=0&&!e.matches(":disabled")&&null===e.closest("[inert]")&&(0,s.pn)(e)))}hideEmptySubMenus(){for(const e of this.elements.subMenus)e.item.hidden=null===e.panel||!e.leafItems.some(Oe)}subMenuFor(e){return this.elements.subMenus.find((t=>t.trigger===e))}triggerFor(e){return this.elements.subMenus.find((t=>t.panel===e))?.trigger??null}}).prototype,"initialize",[Se],Object.getOwnPropertyDescriptor(Pe.prototype,"initialize"),Pe.prototype),ke=Pe))||ke);var Ce=i(5547);const De=JSON.parse('{"s":"https://cdn.first-id.fr/sdk/loader/loader.min.js"}');var Ie,Te,_e,Ue,Me;const qe="csnt",He=new r.Z("FirstId"),Ne=window.location.hostname.replace(/^www\./,""),Re=(0,Ce.$)(Ne);let xe=(Ie=(0,l.QM)("FirstId"),Te=(0,l.Lm)(E.l.FIRST_ID),_e=(0,l.sy)(He),Ie(Ue=Te(Ue=(0,l.$v)((function(e,t,i,s,n){var a={};
1Object.keys(s).forEach((function(e){a[e]=s[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce((function(i,s){return s(e,t,i)||i}),a),n&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(n):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null)}((Me=class extends l.wc{sdkConfig={callbacks:[],cookieDomain:Ne,cookieName:"firstid",emailCookieName:"fid_email_hashed",cookieNameTTLInMinute:259200,debug:De.debug??!1,emailHashed:null,refreshCookieName:"firstid_refresh"};firstIdValue=null;async initialize(){if(E.Z.isEnabled(E.l.FIRST_ID))if([this.consentManager,this.sessionManager]=await Promise.all([(0,l.r9)(a.ZP),(0,l.r9)(B.Z)]),window.addEventListener(a.Rk.RELOAD_AFTER_CONSENT,(e=>{E.Z.isEnabled(E.l.FIRST_ID)&&this.consentManager.hasConsented()&&this.consentManager.isFirstSession()&&(He.debug(`Reloading page with "${qe}" query param appended.`),e.detail.url.searchParams.set(qe,(new Date).getTime().toString(16)))})),this.consentManager.hasConsented()&&!await!this.consentManager.hasConsentedForCookies())if(Re.get(this.sdkConfig.cookieName))try{this.sdk=await this.loadScript(),He.debug(`First-id value is "${this.getFirstIdValue()}".`)}catch(e){He.error("Can't load script.",{error:e})}else He.warn(`Script will not be loaded because "${this.sdkConfig.cookieName}" cookie was not found.`);else He.warn("Script will not be loaded because user has not consented to cookies.");else He.log("First-id feature is disabled.")}getFirstIdValue(){if(!this.firstIdValue)try{this.firstIdValue=this.sdk?.getId()}catch(e){"FirstIdCookieNotFound"===e.code?He.error("Cookie not found.",e):"FirstIdEmptyValue"===e.code?He.error("Cookie was found, but the value is empty.",e):He.error("Unknown error.",e)}return this.firstIdValue}async loadScript(){const{promise:e,resolve:t,reject:i}=(0,j.Bw)();this.sdkConfig.callbacks.unshift((()=>{t(new window.FirstIdSdk),He.debug("SDK initialized.")})),this.sdkConfig.callbacks.unshift((()=>{He.debug("SDK script loaded.")})),window.firstId={...window.firstId||{},...this.sdkConfig};try{await(0,c.SH)(De.s),He.debug("Loader script loaded.")}catch(e){He.error(e),i(new Error("Loader script can't be loaded."))}return e}async handleEmail(e){const t=await this.hashEmail(e);this.sdkConfig.emailHashed===t||Re.get(this.sdkConfig.emailCookieName)===t||this.sdk&&this.sdk.getEmailHashed()===t?He.debug("Hashed email is already set."):(He.debug(`Hashed email is "${t}"`),this.setCookie(this.sdkConfig.emailCookieName,t),this.sdk?(await this.sdk.setEmailHashed(t),He.debug(`First-id value is "${this.getFirstIdValue()}".`)):this.sdkConfig.emailHashed=t)}async hashEmail(e){const t=(new TextEncoder).encode(e),i=await crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(i)).map((e=>e.toString(16).padStart(2,"0"))).join("")}setCookie(e,t){He.debug(`Setting cookie "${e}" to "${t}".`),Re.set(e,t,{path:"/",domain:this.sdkConfig.cookieDomain,secure:"https"===window.location.protocol,expires:180})}}).prototype,"initialize",[_e],Object.getOwnPropertyDescriptor(Me.prototype,"initialize"),Me.prototype),Ue=Me))||Ue)||Ue)||Ue);var Fe=i(6121),Be=i(8111);let je=function(e){return e[e.STOPPED=0]="STOPPED",e[e.RUNNING=1]="RUNNING",e[e.PAUSED=2]="PAUSED",e}({});class Ze{constructor(e,t){if(this.start=e,this.end=t,e>t)throw new Error(`The start date "${e.toISOString()}" must be before the end date "${t.toISOString()}".`)}getDuration(){return this.end.getTime()-this.start.getTime()}}class $e{current=null;eventEmitter=new Fe.Z;status=je.STOPPED;timeRanges=[];getCumulatedDuration(){return this.timeRanges.reduce(((e,t)=>e+t.getDuration()),0)}getStatus(){return this.status}getTimeRanges(){return this.timeRanges}on(e,t){return this.eventEmitter.on(e,t),this}pause(){if(this.status!==je.RUNNING)return;const e=new Ze(this.current,new Date);this.status=je.PAUSED,this.timeRanges.push(e),this.current=null,this.eventEmitter.emit("pause",e)}reset(){this.status===je.RUNNING&&this.timeRanges.push(new Ze(this.current,new Date));const e=this.timeRanges;this.current=null,this.timeRanges=[],this.status=je.STOPPED,this.eventEmitter.emit("reset",e)}
1start(){this.status!==je.RUNNING&&(this.current=new Date,this.status=je.RUNNING,this.eventEmitter.emit("start",this.current))}stop(){this.status!==je.STOPPED&&(this.status===je.RUNNING&&this.timeRanges.push(new Ze(this.current,new Date)),this.current=null,this.status=je.STOPPED,this.eventEmitter.emit("stop",(0,Be.at)(this.timeRanges,-1)))}}function Qe(e){let t=new Date;t.setHours(0,0,0,0);let i=new Date(t.getTime()-24*e*60*60*1e3);return Math.floor(i.getTime()/1e3)}function We(e){window.dataLayer=window.dataLayer||[],window.dataLayer.push(e)}function Ge(e,t){We({...t,event:e})}var Ke,Ve,Ye,Xe;const Je=new r.Z("PageDurationTracking");let et=(Ke=(0,l.QM)("PageDurationTracking"),Ve=(0,l.sy)(Je),Ke((function(e,t,i,s,n){var a={};Object.keys(s).forEach((function(e){a[e]=s[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce((function(i,s){return s(e,t,i)||i}),a),n&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(n):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null)}((Xe=class extends l.wc{stopWatch=new $e;async initialize(){E.Z.isEnabled(E.l.PAGE_DURATION_TRACKING)?(this.initializeStopWatchListeners(),this.initializeWindowListeners()):Je.log("Page duration tracking feature is disabled.")}initializeStopWatchListeners(){this.stopWatch.on("start",(e=>{Je.debug("Page in foreground.")})).on("pause",(e=>{Je.debug("Page sent to background.","Duration time: "+(e.getDuration()/1e3).toFixed(1)+"s"),Ge("unloadPage",{cumulatedTimeOnPage:this.stopWatch.getCumulatedDuration(),timeOnPage:e.getDuration(),typeUnload:"hidden"})})).on("stop",(e=>{Je.debug("Page unload.","Duration time: "+(e.getDuration()/1e3).toFixed(1)+"s"),Ge("unloadPage",{cumulatedTimeOnPage:this.stopWatch.getCumulatedDuration(),timeOnPage:e.getDuration(),typeUnload:"beforeunload"})}))}initializeWindowListeners(){window.addEventListener("visibilitychange",(e=>{"visible"===document.visibilityState?this.stopWatch.start():this.stopWatch.pause()})),window.addEventListener("beforeunload",(e=>{je.STOPPED!==this.stopWatch.getStatus()||0!==this.stopWatch.getTimeRanges().length?this.stopWatch.stop():Ge("unloadPage",{cumulatedTimeOnPage:0,timeOnPage:0,typeUnload:"beforeunload"})})),"visible"===document.visibilityState&&this.stopWatch.start()}}).prototype,"initialize",[Ve],Object.getOwnPropertyDescriptor(Xe.prototype,"initialize"),Xe.prototype),Ye=Xe))||Ye);var tt=i(9018);let it=function(e){return e.ANONYMOUS="anonyme",e.SUBSCRIBED="inscrit",e.PREMIUM="abonné",e}({});var st,nt,at,rt,ot=i(5143);const lt=new r.Z("Typeform");let ct=(st=(0,l.QM)("Typeform"),nt=(0,l.sy)(lt),st((function(e,t,i,s,n){var a={};Object.keys(s).forEach((function(e){a[e]=s[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce((function(i,s){return s(e,t,i)||i}),a),n&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(n):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null)}((rt=class extends l.wc{customPopupHiddenFieldsOption={};async initialize(){[this.sessionManager]=await Promise.all([(0,l.r9)(B.Z),(0,s.qQ)()]),this.popupContainer=(0,s.sb)("typeformEmbed"),this.container=(0,s.sb)("custom-typeform"),null!==this.container&&null!==this.popupContainer?(this.configuration={...this.configuration,...this.buildConfigFromDataAttributes()},await this.configureHiddenFieldsOption(),void 0===this.configuration.retryHours&&0===this.configuration.retryHours||this.checkUserHasNotAnsweredAndClosedTypeform(),this.checkUserHasAlreadyAnswered()||(this.openPopupButton=this.container.querySelector(".custom-typeform-button"),this.openPopupButton?.classList.remove("hidden"),this.initializeListeners(),this.configurePopup(this.configuration.typeformId))):lt.warn("Typeform container or popup container not found.")}initializeListeners(){this.linkOpenTypeform=this.container.querySelector(".custom-typeform-text"),this.closeTypeformButton=this.container.querySelector(".custom-typeform-close"),this.linkOpenTypeform?.addEventListener("click",(()=>this.openTypeformPopup())),this.closeTypeformButton?.addEventListener("click",(()=>this.closeTypeform()))}checkUserHasNotAnsweredAndClosedTypeform(){let e=localStorage.getItem("typeform-"+this.configuration.typeformId+"-closed-at");
1if(e){let t=new Date(e);((new Date).getTime()-t.getTime())/36e5>=this.configuration.retryHours&&(localStorage.removeItem("typeform-"+this.configuration.typeformId+"-closed-at"),localStorage.removeItem("typeform-answered-"+this.configuration.typeformId))}}async setUserType(){let e=it.ANONYMOUS;const t=this.sessionManager.onUserLoaded();t.then((async t=>{t.subscriptionsData.isPremium?e=it.PREMIUM:!0===t.activeSession&&(e=it.SUBSCRIBED)})),await Promise.race([this.sessionManager.onUserFailed(),t]),this.customPopupHiddenFieldsOption={user_type:e}}async configureHiddenFieldsOption(){void 0!==this.configuration.hiddenFields&&null!==this.configuration.hiddenFields.length&&(this.configuration.hiddenFields.includes("user_type")&&await this.setUserType(),this.configuration.hiddenFields.includes("is_app")&&this.setIsApp(),this.configuration.hiddenFields.includes("is_webmobile")&&this.setIsWebMobile(),this.configuration.hiddenFields.includes("current_url")&&this.setCurrentUrl())}setIsApp(){this.customPopupHiddenFieldsOption={...this.customPopupHiddenFieldsOption,is_app:ot.Z.isWebview()?"yes":"no"}}setIsWebMobile(){this.customPopupHiddenFieldsOption={...this.customPopupHiddenFieldsOption,is_webmobile:(0,c.s2)()?"yes":"no"}}setCurrentUrl(){this.customPopupHiddenFieldsOption={...this.customPopupHiddenFieldsOption,current_url:window.location.href}}configurePopup(e="DfMKD4DE"){const t={container:this.popupContainer,hideHeaders:!0,hidden:this.customPopupHiddenFieldsOption,onSubmit:()=>this.onSubmitTypeform()};this.popup=(0,tt.createPopup)(this.configuration.typeformId,t)}openTypeformPopup=()=>{this.popup.open(),this.popupContainer.classList.add("open"),this.openPopupButton.classList.add("hidden"),this.writeUserAnsweredInLocalStorage()};closeTypeform(){this.openPopupButton.classList.add("hidden"),this.writeUserAnsweredInLocalStorage(),this.writeUserCloseDate(),this.popupContainer.classList.remove("open"),this.popup.close()}async onSubmitTypeform(){await(0,j.X_)(1e3),this.popupContainer.classList.remove("open"),this.popup.close()}checkUserHasAlreadyAnswered(){return"true"===localStorage.getItem("typeform-answered-"+this.configuration.typeformId)}writeUserAnsweredInLocalStorage(){localStorage.setItem("typeform-answered-"+this.configuration.typeformId,"true")}writeUserCloseDate(){localStorage.setItem("typeform-"+this.configuration.typeformId+"-closed-at",(new Date).toISOString())}buildConfigFromDataAttributes(){const e={},t=(0,s.sb)("custom-typeform");return void 0===t?.dataset?(lt.warn("No data attributes found on container."),e):("typeformId"in t.dataset&&(e.typeformId=t.dataset.typeformId),"hiddenFields"in t.dataset&&(e.hiddenFields=t.dataset.hiddenFields),"retryHours"in t.dataset&&(e.retryHours=Number.parseInt(t.dataset.retryHours)),e)}}).prototype,"initialize",[nt],Object.getOwnPropertyDescriptor(rt.prototype,"initialize"),rt.prototype),at=rt))||at),dt=function(e){return e[e.SUGGESTION=0]="SUGGESTION",e[e.HISTORY=1]="HISTORY",e}({}),ut=function(e){return e.CLEAR="clear",e.DO_SEARCH="do_search",e.SEARCH="search",e.SEARCH_RESULTS="search_results",e}({});function ht(e,t,i={}){const s=gt("li"),n=gt("p");switch(s.classList.add("suggestion-item"),s.setAttribute("data-value",e),n.classList.add("suggestion-label"),n.innerHTML=t,i.type){case dt.HISTORY:mt(s,pt("history")),s.classList.add("history-item");break;case dt.SUGGESTION:mt(s,pt("search"))}if(mt(s,n),i.deleteAction){const t=function(e,t,i){const s=gt("button");return s.classList.add("action",`action-${e}`,"ico",`ico-${t}`),s.title=i,s.setAttribute("aria-label",i),s}("delete","cross","Supprimer de l'historique");t.addEventListener("click",(t=>{t.stopPropagation(),t.preventDefault(),s.dispatchEvent(new CustomEvent("action.delete",{detail:{value:e}}))})),mt(s,t)}return s}function pt(e,...t){const i=gt("span");return i.classList.add("ico",`ico-${e}`,...t),i}function mt(e,t){e.insertAdjacentElement("beforeend",t)}function gt(e){return document.createElement(e)}var bt=i(1488);const ft={page:1,page_size:20,query:""};function yt(e){const t=(0,s.cw)(".hot-tags",e);t&&(0,l.s8)(oe.Z,t)}function wt(e){return null!=e&&"filtersOpened"in e&&"params"in e}function vt(e,t){if(!e.trim().length)return t;const i=(0,bt._U)(e),s=new RegExp(`(${i})`,"gi");return t.match(s)?t.replace(s,'<span class="highlight">$1</span>'):t}var Et=i(9225),St=i(9642),kt=i(2226);const Pt=new r.Z("Client.Search");const Lt=new class{pendingRequests=new Map;async autocomplete(e){return await(0,St.P2)(kt.Z.SEARCH_AUTOCOMPLETE_URL,{method:"GET",params:{query:e.query},signal:e.signal})}async searchAll(e){return await this.sendRequest(kt.Z.RENDER_SEARCH_ALL,e)}async searchArticles(e){return await this.sendRequest(kt.Z.RENDER_SEARCH_ARTICLES,e)}async searchPages(e){return await this.sendRequest(kt.Z.RENDER_SEARCH_PAGES,e)}async sendRequest(e,t){const i=e.replace(/^gsoi_render_search_/,"");await this.waitExistingRequestAborted(i);const s=new AbortController;this.pendingRequests.set(i,s),Pt.debug(`Calling "search ${i}"â¦`,{route:e,options:{method:"GET",params:t,signal:s.signal}});try{return await(0,St.P2)(e,{headers:{Accept:"text/html"},method:"GET",params:t,signal:s.signal})}catch(e){if("AbortError"===e.name)return Pt.log("Search request was aborted."),this.pendingRequests.delete(i),null;throw Pt.error(`Error while searching ${i}:`,e),e}}async waitExistingRequestAborted(e){const{promise:t,resolve:i}=(0,j.Bw)();if(!this.pendingRequests.has(e))return Pt.debug(`No previous request "${e}" to wait for.`),void i();const s=this.pendingRequests.get(e);return s.signal.addEventListener("abort",(()=>{this.pendingRequests.delete(e),i()}),{once:!0}),s.abort(`New request "${e}" was perfomed before its completion, aborting the previous one.`),t}},zt=i.g.localStorage;class Ot{constructor(e,t){this.name=e,this.maxSize=t}add(e){let t=this.retrieve();return t[e]=new Date,this.maxSize&&Object.keys(t).length>this.maxSize&&(t=Object.fromEntries(Object.entries(At(t)).slice(0,this.maxSize))),this.persist(t),this}clear(){return zt.removeItem(this.name),this}find(e,t=!0){const i=new RegExp(`(${(0,bt._U)(e)})`,"gi");return Object.keys(this.retrieve()).filter((s=>t?e===s:s.match(i)))}has(e,t=!0){const i=new RegExp(`(${(0,bt._U)(e)})`,"gi");return t?e in this.retrieve():Object.keys(this.retrieve()).some((e=>e.match(i)))}isEmpty(){return 0===Object.keys(this.retrieve()).length}list(){return Object.keys(this.retrieve())}remove(e){const t=this.retrieve();return delete t[e],this.persist(t),this}getLasts(e=1){return Object.keys(this.retrieve()).slice(0,Math.max(1,e))}retrieve(){return At((e=JSON.parse(zt.getItem(this.name)??"{}"),Object.fromEntries(Object.entries(e).map((([e,t])=>[e,new Date(t)])))));var e}persist(e){zt.setItem(this.name,JSON.stringify(function(e){return Object.fromEntries(Object.entries(e).map((([e,t])=>[e,t.getTime()])))}(At(e))))}}function At(e){return Object.fromEntries(Object.entries(e).sort((([,e],[,t])=>t.getTime()-e.getTime())))}const Ct=new r.Z("SearchBlock.Autocomplete");class Dt{abortable=null;elements=null;lastRenderHash="";offset=-1;suggestions=[];constructor(e,t=new Map,i=new Ot("search-history",8),n=10){this.cache=t,this.history=i,this.maxSuggestions=n,this.elements={actions:{clear:(0,s.cw)(".clear-button",e),return:(0,s.cw)(".return-button",e)},container:(0,s.cw)(".autocomplete",e),input:(0,s.cw)(".search-input",e),searchBlock:e,suggestions:{container:(0,s.cw)(".autocomplete-suggestions",e),list:[]}},this.initializeListeners()}async autocomplete(){const e=(0,c.Ds)(this.render.bind(this),100);this.suggestions=this.getHistorySuggestions(),e(),this.suggestions=[...this.suggestions,...await this.getApiSuggestions()],e()}clear(){this.offset=-1,this.suggestions=[],this.lastRenderHash="",this.elements.suggestions.container.innerHTML="",this.elements.suggestions.list=[]}
1dispatch(e,t){this.elements.searchBlock.dispatchEvent(new CustomEvent(e,{detail:t}))}async expand(){const{actions:e,container:t,input:i,searchBlock:s}=this.elements;e.clear.classList.toggle("hidden",0===i.value.trim().length),e.return.classList.remove("hidden"),t.classList.add("expanded"),s.classList.add("mobile-focus"),await this.autocomplete()}initializeListeners(){const{actions:e,container:t,input:i,searchBlock:s}=this.elements,n=(0,c.Ds)((()=>{i.readOnly||this.expand()}),100);i.addEventListener("keydown",(async e=>{const s=t.classList.contains("expanded"),{suggestions:{list:n}}=this.elements;switch(e.key){case"Tab":case"ArrowDown":case"ArrowUp":if(e.preventDefault(),s||this.expand(),0===this.suggestions.length)return;"Tab"===e.key&&e.shiftKey||"ArrowUp"===e.key?this.offset-=1:this.offset+=1,this.offset<-1?this.offset=n.length-1:this.offset>=n.length&&(this.offset=-1),n.forEach((e=>e.classList.remove("selected"))),this.offset>-1&&n[this.offset].classList.add("selected");break;case"Enter":e.preventDefault(),s&&this.offset>-1&&(i.value=n[this.offset].dataset.value);break;case"Escape":this.collapse()}})),i.addEventListener("input",(0,c.Ds)(n,300)),i.addEventListener("click",n),i.addEventListener("focus",n),i.addEventListener("blur",(e=>{e.relatedTarget&&!t.contains(e.relatedTarget)&&this.collapse()})),e.return.addEventListener("click",this.collapse.bind(this,!1)),document.addEventListener("click",(e=>{t.contains(e.target)||this.collapse()})),s.addEventListener(ut.CLEAR,(()=>{this.collapse(!0),this.elements.input.focus()})),s.addEventListener(ut.SEARCH,this.collapse.bind(this,!1)),s.addEventListener(ut.SEARCH_RESULTS,(e=>{this.clear(),this.history.add(e.detail.query)}))}collapse(e=!1){const{actions:t,container:i,searchBlock:s}=this.elements;this.abortable?.abort("Search input is empty or loose focus."),this.abortable=null,this.clear(),e||(s.classList.remove("mobile-focus"),i.classList.remove("expanded"),t.return.classList.add("hidden"))}async getApiSuggestions(){const e=this.elements.input.value.trim();if(!e.length)return[];if(this.abortable?.abort("Newer autocompletion request has been sent."),!this.cache.has(e))try{this.abortable=new AbortController;const{suggestions:t}=await Lt.autocomplete({query:e,signal:this.abortable.signal});this.cache.set(e,t)}catch(t){t instanceof Et.i?Ct.warn(t.message):(Ct.error("An error occured during fetching autocomplete suggestions from API.",t),this.cache.set(e,[]))}return(this.cache.get(e)??[]).filter((e=>!this.history.has(e,!1))).slice(0,this.maxSuggestions-this.suggestions.length).map((e=>({type:dt.SUGGESTION,value:e})))}getHistorySuggestions(){const e=this.elements.input.value.trim();return(e.length?this.history.find(e,!1).slice(0,3):this.history.list()).map((e=>({type:dt.HISTORY,value:e})))}render(){const e=this.getUniqueHash();if(e===this.lastRenderHash)return void Ct.debug("Same suggestions have already been rendered, canceling current render callâ¦");this.offset=-1;const{container:t}=this.elements.suggestions,i=this.suggestions.some((e=>dt.HISTORY===e.type));if(this.elements.suggestions.list=this.suggestions.map((e=>this.buildSuggestionItem(e))),t.replaceChildren(...this.elements.suggestions.list),i){const e=function(e){const t=gt("li"),i=gt("button");return t.classList.add("suggestion-item","delete-history-item"),i.textContent=e,i.ariaLabel="Supprime tout l'historique locale de recherche.",i.title="Supprime tout l'historique locale de recherche.",mt(t,i),t}("supprimer l'historique");(0,s.cw)("button",e).addEventListener("click",(()=>{this.history.clear(),this.autocomplete()})),t.append(e)}this.lastRenderHash=e,Ct.debug("Suggestions rendered.",this.suggestions)}buildSuggestionItem(e){let t;const i=this.elements.input.value.trim();switch(e.type){default:case dt.SUGGESTION:t=ht(e.value,vt(i,e.value),{type:dt.SUGGESTION});break;case dt.HISTORY:t=ht(e.value,vt(i,e.value),{deleteAction:!0,type:dt.HISTORY}),t.addEventListener("action.delete",(e=>{this.history.remove(e.detail.value),t.remove(),this.autocomplete()}))}const s=()=>{this.elements.input.value=(t.dataset.value??"").trim(),this.collapse(),this.clear(),this.dispatch(ut.DO_SEARCH)};
1return t.addEventListener("click",s),t.addEventListener("keydown",(e=>{"Enter"===e.key&&(e.preventDefault(),e.stopPropagation(),s())})),t}getUniqueHash(){return this.suggestions.map((e=>`${e.type===dt.HISTORY?"h":"s"}:${e.value}`)).sort().join("|")}}function It(e,t,i=!1){(i?window.history.replaceState.bind(window.history):window.history.pushState.bind(window.history))(e,"",t)}var Tt,_t,Ut,Mt;const qt=new r.Z("SearchBlock");let Ht=(Tt=(0,l.QM)("SearchBlock"),_t=(0,l.sy)(qt),Tt((function(e,t,i,s,n){var a={};Object.keys(s).forEach((function(e){a[e]=s[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce((function(i,s){return s(e,t,i)||i}),a),n&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(n):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null)}((Mt=class extends l.wc{isSearching=!1;async initialize(){await(0,s.qQ)();const e=(0,s.sb)("search-block");null!==e&&(new Dt(e),this.elements={block:e,loadingLogo:(0,s.sb)("loading-logo"),searchBar:{input:(0,s.cw)("#search-input",e),actions:{clear:(0,s.cw)(".clear-button",e),return:(0,s.cw)(".return-button",e),search:(0,s.cw)(".search-button",e)}},results:(0,s.cw)(".search-results",e),filters:{button:(0,s.sb)("search-filters-button"),container:(0,s.sb)("search-filters")},initialContents:(0,s.$3)(".initial-search-content",e.parentElement)},this.searchFilters=[{id:"filter-by",html:(0,s.sb)("filter-by"),isOpened:!1},{id:"filter-date",html:(0,s.sb)("filter-date"),isOpened:!1}],this.searchParameters=ft,this.initializeListeners(),new URL(window.location.href).searchParams.has("query")&&(this.searchParameters=function(){const e=new URL(window.location.href).searchParams;return{from_date:e.get("from_date")??void 0,order:e.get("order")??void 0,page:parseInt(e.get("search_page")??ft.page.toString()),page_size:parseInt(e.get("search_page_size")??ft.page_size.toString()),query:e.get("query")??""??void 0,sort:e.get("sort")??void 0,to_date:e.get("to_date")??void 0}}(),this.search(!0)))}initializeListeners(){this.elements.block.addEventListener(ut.DO_SEARCH,this.handleSearch.bind(this)),this.elements.searchBar.actions.clear.addEventListener("click",this.clear.bind(this)),this.elements.searchBar.actions.search.addEventListener("click",this.handleSearch.bind(this)),this.elements.searchBar.input.addEventListener("keydown",(e=>{"Enter"===e.key&&(e.preventDefault(),this.handleSearch())})),this.elements.filters.button.addEventListener("click",(()=>{this.elements.filters.container.classList.toggle("hidden"),this.elements.filters.button.classList.toggle("active")})),document.addEventListener("click",(e=>{let t=e.target;t.closest(".custom-select")||(this.searchFilters.forEach((e=>{e.isOpened&&this.closeFilter(e)})),t.querySelectorAll(".custom-select").forEach((e=>{e.querySelector(".select-toggle").checked=!1})))}));for(const e of this.searchFilters)(0,s.cw)(".selected",e.html).addEventListener("click",(t=>{this.closeAllFilters(e.id),e.isOpened=!e.isOpened,t.target.parentElement.classList.toggle("open"),qt.debug("Filters:",this.searchFilters)}));this.searchFilters.forEach((e=>{this.setupFilterEvent(e.html,this.callBackFilter(e.id))})),window.addEventListener("popstate",this.onStateChanged.bind(this)),window.addEventListener("load",(()=>{wt(history.state)&&!this.isSearching&&(qt.log("History state found on load.",history.state),this.onStateChanged(new PopStateEvent("popstate",{state:history.state})))}))}async closeAllFilters(e){this.searchFilters.forEach((t=>{t.id!==e&&t.isOpened&&this.closeFilter(t)}))}async closeFilter(e){const t=e.html.querySelector(".select-toggle");e.html.classList.remove("open"),t.checked=!1,e.isOpened=!1}callBackFilter(e){return async t=>{const i=new Date;switch(e){case"filter-by":switch(t){case"pertinence":delete this.searchParameters.sort,delete this.searchParameters.order;break;case"updated_at":this.searchParameters.sort="updated_at",this.searchParameters.order="desc";break;default:this.searchParameters.sort=t,this.searchParameters.order="desc"}break;case"filter-date":switch(t){case"all":delete this.searchParameters.from_date;break;case"latest_24h":qt.log(Qe(1).toString()),this.searchParameters.from_date=Qe(1).toString();break;case"this_week":const e=i.getDay(),t=0===e?6:e-1;this.searchParameters.from_date=Qe(t).toString();break;case"this_month":const s=new Date(i.getFullYear(),i.getMonth(),1),n=Math.floor((i.getTime()-s.getTime())/864e5);this.searchParameters.from_date=Qe(n).toString();break;case"this_year":const a=new Date(i.getFullYear(),0,1),r=Math.floor((i.getTime()-a.getTime())/864e5);this.searchParameters.from_date=Qe(r).toString()}}this.checkSearchInputIsValid()&&await this.search(),qt.debug("Search parameters updated: ",this.searchParameters)}}setupFilterEvent(e,t){e.querySelectorAll(".options li").forEach((i=>{i.addEventListener("click",(function(){const i=this.closest(".custom-select");"filter-by"===i.id?i.querySelector(".selected").textContent="Trier par "+this.textContent.toLowerCase():i.querySelector(".selected").textContent=this.textContent,i.classList.remove("open"),e.querySelector(".select-toggle").
1checked=!1;const s=this.getAttribute("data-value");t(s)}))}))}async handleSearch(){this.checkSearchInputIsValid()&&(this.toggleActions(!0),this.updateSearchParameters("query",this.elements.searchBar.input.value.trim()),await this.search())}async search(e=!1){if(!this.checkSearchInputIsValid())return void qt.log("Search input is not valid.",this.elements.searchBar.input.value);const t=this.buildSearchUrl(),i={filtersOpened:!this.elements.filters.container.classList.contains("hidden")??!1,params:this.searchParameters};It(i,t,e),this.toggleActions(!0),this.updateSearchStatus(!0),this.elements.block.dispatchEvent(new CustomEvent(ut.SEARCH));try{const e=await Lt.searchAll(this.searchParameters);if(null===e)return;this.elements.results.innerHTML=e,function(e,t){if(e.trim().length)for(let i of t)"string"==typeof i?i=vt(e,i):i instanceof HTMLElement&&(i.innerHTML=vt(e,i.innerHTML))}(this.searchParameters.query,(0,s.$3)(".article-card-title, .article-card-lead, .hot-tag-element",this.elements.results)),i.resultHtml=this.elements.results.innerHTML,It(i,t,!0),yt(this.elements.results),this.elements.block.dispatchEvent(new CustomEvent(ut.SEARCH_RESULTS,{detail:{query:this.searchParameters.query}}))}catch(e){qt.error("Error while searching.",e),this.elements.results.innerHTML='<h2 class="error-title">Une erreur est survenue lors de votre recherche. Veuillez réessayer ultérieurement.</h2>',this.toggleInitialContents(!0)}finally{this.updateSearchStatus(!1)}}updateSearchStatus(e){this.isSearching=e,this.toggleResults(),e&&this.toggleInitialContents(!1),this.elements.searchBar.input.readOnly=e,this.elements.loadingLogo.classList.toggle("hidden",!e)}clear(){this.updateSearchParameters("query",""),this.elements.results.innerHTML="",this.elements.searchBar.input.value="",this.updateSearchStatus(!1),this.toggleInitialContents(!0),this.toggleActions(!1);const e=new URL(window.location.href);e.search="",It({filtersOpened:!1,params:this.searchParameters,resultHtml:""},e),this.elements.block.dispatchEvent(new CustomEvent(ut.CLEAR))}checkSearchInputIsValid(){const e=this.elements.searchBar.input.value.trim();return""!==e&&e.length>=3}updateSearchParameters(e,t){this.searchParameters[e]=t,qt.debug("Search parameters updated: ",this.searchParameters)}toggleActions(e){const{actions:t}=this.elements.searchBar;t.clear.classList.toggle("hidden",!e),t.return.classList.toggle("hidden",!e)}toggleResults(e){this.elements.results.classList.toggle("hidden",e??this.isSearching),this.elements.loadingLogo.classList.toggle("hidden",!e??!this.isSearching)}toggleInitialContents(e){const{block:t,initialContents:i}=this.elements;t.style.minHeight=e?"0px":"600px";for(const t of i)t.classList.toggle("hidden",!e)}buildSearchUrl(){const e=new URL(window.location.href);return e.hash="",e.search=function(e){const t=new URLSearchParams(Object.entries({from_date:e.from_date,order:e.order,query:e.query??ft.query,search_page:(e.page??ft.page).toString(),search_page_size:(e.page_size??ft.page_size).toString(),sort:e.sort,to_date:e.to_date}).filter((([e,t])=>void 0!==t)));return t.sort(),t}(this.searchParameters).toString(),e}onStateChanged(e){if(!wt(e.state))return;const t=e.state;qt.debug("Retrieving stateâ¦",t),this.searchParameters=t.params,this.elements.searchBar.input.value=this.searchParameters.query,this.elements.filters.container.classList.toggle("hidden",!t.filtersOpened),this.elements.filters.button.classList.toggle("active",t.filtersOpened),void 0!==t.resultHtml?(this.elements.results.innerHTML=t.resultHtml,yt(this.elements.results)):this.isSearching||this.search(!0)}}).prototype,"initialize",[_t],Object.getOwnPropertyDescriptor(Mt.prototype,"initialize"),Mt.prototype),Ut=Mt))||Ut);var Nt,Rt,xt,Ft;const Bt=new r.Z("Header");let jt=(Nt=(0,l.QM)("Header"),Rt=(0,l.sy)(Bt),Nt((function(e,t,i,s,n){var a={};Object.keys(s).forEach((function(e){a[e]=s[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce((function(i,s){return s(e,t,i)||i}),a),n&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(n):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null)}((Ft=class extends l.wc{async initialize(){const[e]=await Promise.all([(0,l.r9)(B.Z),(0,s.qQ)()]);if(this.elements={block:null,actions:{},submenu:null},this.initHeaderElement(),null===this.elements.block)return void Bt.debug("New Header is not present");this.initSubmenuElement(),null===this.elements.submenu?Bt.debug("New Submenu is not present"):this.initSubHeaderDropdowns(),this.defaultAccountUrl=this.elements.actions.account.element?.href,this.elements.actions.account.element.href=this.addSSOContext(this.defaultAccountUrl,"login");const t=await Promise.race([e.onUserLoaded(),e.onUserFailed()]);t?this.updateUserServices(t):Bt.error("no profile")}initHeaderElement(){const e=(0,s.sb)("main-header");if(null===e)return;const t={};(0,s.$3)(".header-items .header-action",e).forEach((e=>{t[e.id]={element:e,label:(0,s.cw)("span.action-label",e),premium:e.classList.contains("only-premium"),hideToPremium:e.classList.contains("hide-to-premium")}})),this.elements.block=e,this.elements.actions=t}initSubmenuElement(){const e=(0,s.sb)("main-sub-header");if(null===e)return;const t=(0,s.$3)(".sub-header-action",e),i=[];t.forEach((e=>{i.push({element:e,label:null,premium:e.classList.contains("only-premium"),hideToPremium:e.classList.contains("hide-to-premium")})})),this.elements.submenu={block:e,items:i}}updateUserServices(e){let t=[...Object.values(this.elements.actions)];null!==this.elements.submenu&&(t=[...t,...this.elements.submenu.items]),e.activeSession&&(this.elements.actions.account.label.innerHTML="Mon Compte",this.elements.actions.account.element.href=this.addSSOContext(this.defaultAccountUrl,"account"),e.subscriptionsData.isPremium&&t.forEach((e=>{e.premium&&e.element.classList.remove("hide"),e.hideToPremium&&e.element.classList.add("hide")})))}addSSOContext(e,t){let i=new URL(`${e}${t}`);return i.searchParams.set("SSO_Context",window.location.href),i.toString()}initSubHeaderDropdowns(){const e=(0,s.$3)(".header-dropdown",this.elements.submenu.block);e.length&&(e.forEach((t=>{const i=t.querySelector(".header-dropdown-content"),s=e.filter((e=>e!==t));i&&t.addEventListener("toggle",(()=>{t.open?(s.forEach((e=>{e.open=!1})),this.elements.submenu.block.insertAdjacentElement("afterend",i)):t.appendChild(i)}))})),Bt.debug("DropDowns are ready.",e))}}).prototype,"initialize",[Rt],Object.getOwnPropertyDescriptor(Ft.prototype,"initialize"),Ft.prototype),xt=Ft))||xt);var Zt,$t,Qt,Wt;const Gt=new r.Z("Footer");let Kt=(Zt=(0,l.QM)("Footer"),$t=(0,l.sy)(Gt),Zt((function(e,t,i,s,n){var a={};
1Object.keys(s).forEach((function(e){a[e]=s[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce((function(i,s){return s(e,t,i)||i}),a),n&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(n):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null)}((Wt=class extends l.wc{async initialize(){await Promise.all([(0,s.qQ)()]),this.elements={block:null,logo:null,categories:null},this.initFooterElement(),null!==this.elements.block?(await this.initCookiesChoicesLink(),this.toggleCategories(),window.addEventListener("resize",(()=>this.toggleCategories()))):Gt.debug("New Footer is not present")}initFooterElement(){const e=(0,s.sb)("main-footer");if(null===e)return;const t=(0,s.$3)(".footer-container .footer-column .footer-category",e);this.elements.block=e,this.elements.logo=null,this.elements.categories=t}toggleCategories(){let e=window.matchMedia("(min-width: 1024px)").matches;this.elements.categories.forEach((t=>{t.open=e}))}async initCookiesChoicesLink(){const e=(0,s.sb)("footer-links-cookies-choices");if(!e)return;let t;try{t=await(0,l.r9)(a.ZP)}catch(e){return void Gt.warn("ConsentManager could not be initialized for footer.",e)}e.setAttribute("href","#"),e.addEventListener("click",(e=>{e.preventDefault(),t.changeConsent()})),Gt.debug("Cookies choices link enabled.")}}).prototype,"initialize",[$t],Object.getOwnPropertyDescriptor(Wt.prototype,"initialize"),Wt.prototype),Qt=Wt))||Qt);const Vt=JSON.parse('{"H":"https://utiq.charentelibre.fr/utiqLoader.js","d":"https://utiq.charentelibre.fr"}');var Yt,Xt,Jt,ei,ti;const ii=new r.Z("Utiq");let si=(Yt=(0,l.QM)("Utiq"),Xt=(0,l.Lm)(m.l.UTIQ),Jt=(0,l.sy)(ii),Yt(ei=Xt(ei=(0,l.$v)((function(e,t,i,s,n){var a={};Object.keys(s).forEach((function(e){a[e]=s[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce((function(i,s){return s(e,t,i)||i}),a),n&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(n):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null)}((ti=class extends l.wc{constructor(){super(),this.initConfig()}async initialize(){if([this.consentManager]=await Promise.all([(0,l.r9)(a.ZP),(0,s.qQ)()]),this.elements={activeButton:(0,s.sb)("active-utiq-consent"),consentMessage:(0,s.sb)("consent-utiq-message"),content:(0,s.cw)(".utiq-content"),withdrawButton:(0,s.sb)("withdraw-utiq-consent")},this.elements.content)window.Utiq.config.CMP="none",ii.log("Script will be loaded even without user consent to CMP: we are on the Utiq page.");else{if(!this.consentManager.hasConsented()&&!await this.consentManager.hasConsentedForAll())return void ii.log("Script will not be loaded because user has not consented for cookies.");if(this.consentManager.isFirstSession())return void ii.log("Script will not be loaded because of first user session after its consent.")}this.initializeListeners(),await(0,c.SH)(Vt.H)}initializeListeners(){this.elements.withdrawButton?.addEventListener("click",(e=>{e.preventDefault(),ii.debug("Consent rejected."),this.elements.consentMessage?.classList.remove("hidden"),window.Utiq.API.handleConsentChange(!1)})),this.elements.activeButton?.addEventListener("click",(e=>{e.preventDefault(),this.showPopin()}))}showPopin(){ii.debug("Displaying consent managerâ¦");const e=()=>{window.Utiq.API.showConsentManager()};void 0===window.Utiq.API?this.pushInQueue(e):e()}initConfig(){window.Utiq||={},window.Utiq.config={...window.Utiq.config||{},customUtiqHost:Vt.d,customizationOptions:{language:"fr",websiteLogoUrl:(0,c.OW)(Vt.logoInline??!1,!0)},logLevel:Vt.logLevel||"error"},window.Utiq.queue||=[]}on(e,t){const i=e;void 0===window.Utiq?.API?this.pushInQueue((()=>window.Utiq.API.addEventListener(i,t))):window.Utiq.API.addEventListener(i,t)}pushInQueue(e){window.Utiq.queue.push(e)}}).prototype,"initialize",[Jt],Object.getOwnPropertyDescriptor(ti.prototype,"initialize"),ti.prototype),ei=ti))||ei)||ei)||ei);var ni=i(246);const ai=JSON.parse('{"Jy":"tQZXmGUmPtLUFfpZ0TI9Tow2gmY6CE8e13RztEwoolnAPC4UDOgjtpcsUZRNRoys","v1":{"jm":"https://assets.poool.fr/engage.min.js"}}');var ri,oi,li,ci,di;const ui=new r.Z("Poool.Engage");let hi=(ri=(0,l.QM)("Poool.Engage"),oi=(0,l.Lm)(m.l.POOOL_ENGAGE,!0),li=(0,l.sy)(ui),ri(ci=oi(ci=(0,l.$v)((function(e,t,i,s,n){var a={};
1Object.keys(s).forEach((function(e){a[e]=s[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce((function(i,s){return s(e,t,i)||i}),a),n&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(n):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null)}((di=class extends l.wc{options={filters:[]};variables={nom:"",prenom:""};async initialize(){if(await(0,c.SH)(ai.v1.jm),void 0===window.Engage)return void ui.error('Global "Engage" object is not available after loading the Poool Engage script.');this.engage=window.Engage,[this.sessionManager]=await Promise.all([(0,l.r9)(B.Z),(0,s.qQ)()]),this.engage.init(ai.Jy),this.engage.config("pianoAutoTrackingEnabled",!0);const e=this.sessionManager.getUser()?.userData;this.variables={nom:e?.lastName??this.variables.nom,prenom:e?.firstName??this.variables.prenom},this.cardHasExpiredFilter(),this.userSubscriptionStatusFilters(),e&&await this.segmentationFilters(e.id),We(this.variables),We(this.options),this.engage.variables(this.variables),await this.engage.autoCreate(this.options),ui.debug("Poool Engage initialized with ",{options:this.options,variables:this.variables})}cardHasExpiredFilter(){const e=this.sessionManager.getUser()?.userData?.cb?.dateFin;if(!e)return;const t=new Date;t.setHours(0,0,0,0);const i=new Date(e);if(i.setHours(0,0,0,0),isNaN(i.getTime()))return void ui.error("Date d'expiration de la carte invalide :",e);if(i<t)return void this.options.filters.push("cb_expiree");const s=i.getTime()-t.getTime();Math.ceil(s/864e5)<=30&&this.options.filters.push("cb_bientot_expiree")}userSubscriptionStatusFilters(){const e=this.sessionManager.getUser()?.subscriptionsData;if(!e)return void ui.warn("User subscriptions data is not available for Poool Engage.");const{isSubscriber:t,isPremium:i}=e;t&&this.options.filters.push("inscrit"),i&&this.options.filters.push("abonne")}async segmentationFilters(e){const t=await ni.N.getSegmentByUserId(e);t&&t.SEGMENT_IDS?this.options.filters=this.options.filters.concat(t.SEGMENT_IDS.map((e=>`segment_${e}`))):ui.warn("No segmentation data available for user:",e)}}).prototype,"initialize",[li],Object.getOwnPropertyDescriptor(di.prototype,"initialize"),di.prototype),ci=di))||ci)||ci)||ci);new he;(0,l.XU)(".story-player-wrapper",(e=>new de(e))),(0,l.XU)(".block-carousel",(e=>new fe.Z(e))),(0,l.r9)(ie),(0,l.r9)(ve,"#cookie-wall"),(0,l.r9)(o.ZP),(0,l.r9)(W.Z),(0,l.r9)(Ae),(0,l.r9)(xe),(0,l.r9)(hi),(0,l.r9)(et),(0,l.r9)(B.Z),(0,l.r9)(ct),(0,l.r9)(ot.Z),(0,l.r9)(he),(0,l.r9)(k),(0,l.r9)(Ht),(0,l.r9)(jt),(0,l.r9)(Kt),(0,l.r9)(si),(0,l.XU)(".snap-carousel-wrapper",(e=>new oe.Z(e)))},8111:(e,t,i)=>{function s(e,t){return t<0&&(t=e.length+t),e[t]||void 0}i.d(t,{at:()=>s})},213:(e,t,i)=>{i.d(t,{Z:()=>s});class s{static get(e){return document.querySelector(`meta[name="${e}"]`)?.getAttribute("content")||null}static getAll(e){const t=[];return document.querySelectorAll(`meta[name="${e}"]`).forEach((e=>t.push(e.getAttribute("content")))),t}}}},e=>{e.O(0,[752,652,22,738,721,99,543],(()=>{return t=4312,e(e.s=t);var t}));e.O()}]);
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.