1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 2!function(t){function e(t,i){if(null==t)return t;var a=t;if(null==t.length)for(var n in a=[],t)a.push(t[n]);for(var o=0;o<a.length;o++)void 0!==a[o]&&void 0!==a[o][i]&&(a[o][i]=e(a[o][i],i));return a}function i(e,i,n){var o=t('<div class="outline-node">').data("prefix",i),s=t('<div class="outline-wrapper">'),l=t("<label></label>").html(n.title+" : ("+n.dest+")"),d=t("<input name="+i+'[title]" dtype="title" placeholder="Name of outline"/>').val(n.title),p=t("<input name="+i+'[dest]" dtype="dest" placeholder="pagenumber or url"/>').val(n.dest),r=t('<div class="outline-nodes">'),c=t('<div class="outline-collapse dashicons dashicons-arrow-down-alt2">'),h=t('<ul class="dflip-outline-actions">'),f=t('<li class="dflip-outline-add-action dashicons dashicons-plus" title="Add Outline">'),u=t('<li class="dflip-outline-remove-action dashicons dashicons-trash" title="Remove Outline">');return s.append(l).append(d).append(p).appendTo(o),o.append(s).append(r).append(c).appendTo(e),h.append(f).append(u).appendTo(s),void 0!==n.items&&(o.addClass("outline-haschild"),a(r,n.items,i+"[items]")),o}function a(t,e,a){if(void 0!==e&&e.length>0)for(var n=0;n<e.length;n++)i(t,a+"["+n+"]",e[n]);return this}t(document).ready((function(){var n="dflip-page-item",o="dflip-empty-page",d="dflip-page-thumb",p="dflip-active",r=t("#dflip_page_list"),c=t("#dflip_pages_box"),h=t("#dflip_outline_box"),f="dflip-tabs-list";function u(e){var i=t("#post").attr("action");i&&(i=i.split("#")[0],t("#post").attr("action",i+e))}if(t("#content").val(t("#dflip_settings").val()),t(document).on("click","."+f+" a",(function(e){e.preventDefault();var i=t(this).parent();if(!i.hasClass(p)){var a=t(this).attr("href").replace("!",""),n=t(this).closest(".dflip-tabs").find(a),o="LI"==i[0].nodeName?i:t(this),s=p;if(o.hasClass("nav-tab")&&(s+=" nav-tab-active"),o.siblings().removeClass(s),o.addClass(s),n.siblings().removeClass(s),n.addClass(s),i.hasClass("dflip-update-hash")){var l=this.hash.split("#").join("#!");window.location.hash=l,u(l)}}})),window.location.hash&&window.location.hash.indexOf("!dflip-tab-")>=0&&(t("."+f).find('a[href="'+window.location.hash.replace("!","")+'"]').trigger("click"),u(window.location.hash)),r.length>0&&r.sortable){r.sortable({containment:c,items:"> ."+n});var v=r.find("."+n).length;r.find("."+n).each((function(e){t(this).attr("index",e)})),r.append(m({},v))}function g(t){var e=t.title||"Select File",i=t.text||"Send to dFlip",a=t.target,n=1==t.multiple&&"add",o=wp.media({multiple:n,title:e,button:{text:i},library:{type:t.type}}).on("select",(function(){var e=o.state().get("selection");if(0==n){var i=e.models[0].attributes.url;a.val(i),t.callback&&t.callback(i)}else t.callback&&t.callback(e)})).open()}function m(e,i){e.src,e.title,e.content,e.hotspot;var a=t('<li class="dflip-empty-page" index="'+i+'">'),n=(e=t('<div class="dflip-page-options">'),t('<img class="dflip-page-thumb">')),o=t('<input type="text" name="_dflip[pages]['+i+'][url]" id="dflip-page-'+i+'-url"/>');return a.append(n).append(e),e.append(o),_(a),a}function _(e){var i=t('<ul class="dflip-page-actions">'),a=t('<li class="dflip-page-image-action dashicons dashicons-format-image" title="Change Image">'),n=t('<li class="dflip-page-edit-action dashicons dashicons-edit" title="Edit HotSpots">'),o=t('<li class="dflip-page-remove-action dashicons dashicons-trash" title="Remove Page">');
2i.append(a).append(n).append(o).appendTo(e)}function b(){t('.dflip-box[id^="dflip_"][data-condition]').each((function(){var e,i=function(t){for(var e,i=/(.+?):(is|not|contains|less_than|less_than_or_equal_to|greater_than|greater_than_or_equal_to)\((.*?)\),?/g,a=[];e=i.exec(t);)a.push({check:e[1],rule:e[2],value:e[3]||""});return a}(t(this).data("condition")),a=(t(this).data("operator")||"and").toLowerCase();i.length>0&&(t.each(i,(function(i,n){var o=t("#"+n.check);if(o.length){var s,l=o.length?o.val().toString():"",d=n.value.toString();switch(n.rule){case"less_than":s=parseInt(l)<parseInt(d);break;case"less_than_or_equal_to":s=parseInt(l)<=parseInt(d);break;case"greater_than":s=parseInt(l)>parseInt(d);break;case"greater_than_or_equal_to":s=parseInt(l)>=parseInt(d);break;case"contains":s=-1!==l.indexOf(d);break;case"is":s=l==d;break;case"not":s=l!=d}switch(void 0===e&&(e=s),a){case"or":e=e||s;break;case"and":default:e=e&&s}}})),e?t(this).animate({opacity:"show",height:"show"},200):t(this).animate({opacity:"hide",height:"hide"},200)),delete e}))}function w(t){var e=t.data("global"),i=t.val().trim();i==e||null==e&&""==i?t.addClass("dflip-global-active").removeClass("dflip-global-inactive"):t.addClass("dflip-global-inactive").removeClass("dflip-global-active")}if(v++,t(document).on("click","#dflip_upload_pdf_source",(function(e){e.preventDefault(),g({target:t(this).parent().find("input"),type:"application/pdf"})})),t(document).on("click","#dflip_upload_pdf_thumb,#dflip_upload_bg_image",(function(e){e.preventDefault(),g({target:t(this).parent().find("input"),type:"image"})})),t(document).on("click",".dflip-page-list-add",(function(t){t.preventDefault();var e=r.find(".dflip-empty-page");g({target:e.find("input"),type:"image",multiple:!0,callback:function(t){for(var i=0;i<t.length;i++){e=r.find(".dflip-empty-page").removeClass(o).addClass(n);var a=t.models[i].attributes.url;e.find("input").val(a),e.find("."+d).attr("src",a),r.append(m({},v)),v++}}})})),t(document).on("click",".dflip-page-remove-action",(function(){1==confirm("Delete the page!")&&t(this).closest("."+n).remove()})),t(document).on("click",".dflip-page-edit-action",(function(){l(t(this).closest("."+n))})),t(document).on("click",".dflip-outline-remove-action",(function(){1==confirm("Delete outline and its children!")&&(0==t(this).closest(".outline-node").siblings(".outline-node").length&&t(this).closest(".outline-node").closest(".outline-node").removeClass("outline-haschild"),t(this).closest(".outline-node").remove())})),t(document).on("click",".dflip-outline-add-action",(function(e){var a=t(this).closest(".outline-node"),n=a.find(">.outline-nodes"),o=a.data("prefix")+"[items]["+n.find(".outline-node").length+"]";i(n,o,{title:"",dest:""}),a.addClass("outline-haschild"),e.stopPropagation()})),t(document).on("click",".outline-wrapper",(function(){var e=t(".outline-active"),i=e.find(">.outline-wrapper > input[dtype='title']").val(),a=e.find(">.outline-wrapper > input[dtype='dest']").val();e.find(">.outline-wrapper > label").html(i+" : ("+a+")");e.removeClass("outline-active"),t(this).closest(".outline-node").addClass("outline-active")})),t(document).on("click",".outline-collapse",(function(){t(this).closest(".outline-node").toggleClass("outline-collapsed")})),t(document).on("click",".dflip-page-image-action",(function(){var e=t(this).closest("."+n);g({target:e.find("input"),type:"image",callback:function(t){e.find("."+d).attr("src",t)}})})),t(".dflip-box .dflip-option >:input").on("change",(function(){b(),w(t(this))})),_(t("."+n)),b(),t('.dflip-box .dflip-option >:input[id^="dflip_"][data-global]').each((function(){w(t(this))})),t("#dflip_outline").length>0){var y=JSON.parse(t("#dflip_outline").val());null!=(y=e(y,"items")).length&&0!=y.length||(y=[]),s=y.length;t('<div class="add-outline-btn button button-primary">Add New Outline</div>').appendTo(h).on("click",(function(){i(h,"_dflip[outline]["+s+"]",{title:"",dest:""}),s++}));a(h,y,"_dflip[outline]"),function(e,i){var a,n,o,l,d,p,r,c,h=t('<div class="drag-helper">').appendTo(e).hide(),f="",u=!1,v=!1;function g(t){if(null!=r){var e=t.pageY-r.offset().top;document.title=e.toString();var i=e<5?"before":e>27?"after":"over";i!==f&&(f=i,r.removeClass("has-drag-over has-drag-before has-drag-after").addClass("has-drag-"+f)),h.html("Insert "+f+" "+r.find("label").html())}}function m(t){t.find(".outline-node").length>0?t.addClass("outline-haschild"):t.removeClass("outline-haschild")}function _(e,i){var a;null==i?0==(a=e.parents(".outline-node").first()).length?(s++,i="_dflip[outline]["+s+"]",(a=e).data("prefix",i)):i=a.data("prefix"):(a=e).data("prefix",i),a.find(" >.outline-wrapper >input").each((function(){var e=t(this),a=(e.attr("name"),e.attr("dtype"));e.attr("name",i+"["+a+"]")}));var n=0;a.find(" >.outline-nodes > .outline-node").each((function(){_(t(this),i+"[items]["+n+"]"),n++}))}function b(){if(void 0!==c&&void 0!==r&&""!==f){var t=c.closest(".outline-node"),e=r.closest(".outline-node"),i=t.parents(".outline-node");if(t.has(e).length>0||t.is(e))return void alert("Can't drop into child");"before"==f?t.insertBefore(e):"over"==f?r.siblings(".outline-nodes").append(t):"after"==f&&t.insertAfter(e),m(i),m(t),m(e),_(t)}}e.on("mousedown",(function(e){"INPUT"!=e.target.nodeName&&(c=t(e.target).closest(i),0===e.button&&0!=c.length&&(d=e.pageX-t(this).offset().left,p=e.pageY-t
2(this).offset().top,u=!0))})).on("mousemove",(function(i){v||1!=u||(o=i.pageX-t(this).offset().left-d,l=i.pageY-t(this).offset().top-p,(Math.abs(o)>5||Math.abs(l)>5)&&(v=!0,h.show(),e.addClass("has-dragging"),c.addClass("is-drag-source"))),v&&(a=i.pageX-t(this).offset().left,n=i.pageY-t(this).offset().top,h.css({left:a-20,top:n+15}),g(i))})),t(window).on("mouseup",(function(t){e.removeClass("has-dragging"),c&&c.removeClass("is-drag-source"),r&&1==v&&(r.removeClass("has-drag-over has-drag-before has-drag-after"),b()),v=!1,u=!1,h.hide(),r=null,c=null})),e.on("mouseover",i,(function(e){1==u&&(r&&r.removeClass("has-drag-over has-drag-before has-drag-after"),r=t(this)),1==v&&r&&(g(e),r.addClass("has-drag-over"))}))}(h,".outline-wrapper")}}));var n,o,s=0;function l(e){if(null==n){n=t('<div class="dflip-page-modal media-modal">');var i=t('<div class="media-modal-content edit-attachment-frame ">'),a=t('<div class="media-frame-content">'),s=t('<div class="edit-media-header">'),p=t('<div class="page-modal-next right dashicons">'),c=t('<div class="page-modal-prev left dashicons">'),h=t('<div class="page-modal-close media-modal-close"><span class="media-modal-icon"></span></div>'),f=t('<div class="dflip-hotspot-header">'),u=t('<div class="dflip-add-hotspot button button-primary">Add Hot-Spot</div>'),v=t('<div class="dflip-remove-hotspot button button-secondary">Remove Hot-Spot</div>'),g=t('<input class="dflip-hotspot-dest" placeholder="Enter page number or url with http:\\\\"></div>'),m=t('<div class="page-modal-image-wrapper">'),_=t('<img class="page-modal-image">'),b=t('<input class="page-modal-html" >');n.divImage=m,n.image=_,n.content=b,n.dest=g,p.on("click",(function(){var t=o.next();t.length>0&&t.hasClass("dflip-page-item")&&l(t)})),c.on("click",(function(){var t=o.prev();t.length>0&&t.hasClass("dflip-page-item")&&l(t)})),h.on("click",(function(){n.hide()})),g.on("change",(function(){void 0!==r._hotspot&&(r._hotspot.dest=t(this).val(),r._hotspot.update())})),v.on("click",(function(){1==confirm("Delete hotspot?")&&(r._hotspot.dispose(!0),r.detach()),g.val("")})),u.on("click",(function(){o.find(".dflip-hotspot-input");var e=o.attr("hotspots");null==e&&(e=o.find(".dflip-hotspot-input").length);var i,a,s=(i=e,(a=t('<input class="dflip-hotspot-input" name="_dflip[pages]['+o.attr("index")+"][hotspots]["+i+']" />')).val("[30,30,30,30,]"),a);e++,o.attr("hotspots",e),o.find(".dflip-page-options").append(s);var l=new d([40,40,20,20,""],n.divImage);l.activate(r),l.target=s})),m.append(_),f.append(u).append(g).append(v),a.append(f).append(m),s.append(c).append(p),i.append(s).append(a),n.append(h).append(i).appendTo(t("#dflip_pages_box"))}n.show(),n.dest.val("");var w=e.find(".dflip-page-thumb").attr("src");if(n.image.attr("src",w),null!=o&&null!=o.hotspots)for(var y=0;y<o.hotspots.length;y++)o.hotspots[y].dispose();o=e,null==e.hotspots&&(e.hotspots=[]),void 0!==r&&r._el.hide(),n.find(".dflip-hotspot").remove();var k=[];e.find(".dflip-hotspot-input").each((function(i){k[i]=t(this).val().substr(1).slice(0,-1).split(",");var a=new d(k[i],n.divImage);a.target=t(this),e.hotspots[i]=a}))}var d=function(e,i){var a=this;a.left=e[0],a.top=e[1],a.width=e[2],a.height=e[3],a.dest=e[4],a.ref=i.find("img.page-modal-image"),a._el=t('<div class="dflip-hotspot">'),i.append(a._el),a.update(),a._el.on("click",(function(){a.activate(r)}))};d.prototype.activate=function(t){t.attach(this),n.dest.val(this.dest)},d.prototype.deactivate=function(t){},d.prototype.dispose=function(t){this._el.off(),this._el.remove(),1==t&&void 0!==this.target&&this.target.remove()},d.prototype.updateSize=function(t){this.width=Math.round(1e4*t.width/this.ref.width())/100,this.height=Math.round(1e4*t.height/this.ref.height())/100},d.prototype.updatePosition=function(t){this.left=Math.round(1e4*t.left/this.ref.width())/100,this.top=Math.round(1e4*t.top/this.ref.height())/100,this.update()},d.prototype.update=function(){this._el.css({left:this.left+"%",top:this.top+"%",width:this.width+"%",height:this.height+"%"}),void 0!==this.target&&this.target.val("["+this.left+","+this.top+","+this.width+","+this.height+","+this.dest+"]")};var p=function(){var e=this;e.initialized=!1,e._hotspot=void 0,t.fn.draggable?e._el=t('<div class="dflip-hotspot-helper">').draggable({containment:"parent",drag:function(t,i){e._hotspot.updatePosition(i.position)}}):e._el=void 0};p.prototype.attach=function(t){var e=this;void 0!==e._hotspot&&e._hotspot.deactivate(),e._hotspot=t,e.container=t._el.parent(),e.container.append(e._el),1!=e.initialized&&(e._el.resizable({handles:"ne, se, sw, nw",resize:function(t,i){e._hotspot.updateSize(i.size),e._hotspot.updatePosition(i.position)}}),e.initialized=!0),e._el.css({left:t._el[0].style.left,top:t._el[0].style.top,width:t._el[0].style.width,height:t._el[0].style.height,display:"block"})},p.prototype.detach=function(t){void 0!==this._hotspot&&this._hotspot.deactivate(),this._el.hide()};var r=new p}(jQuery);; 3((o,e)=>{e.behaviors.dflip_reader={attach:function(e,a){o(once("pdf-reader","[data-document-pdf-reader]",e)).each(function(){this.addEventListener("click",function(){var e=o(this).attr("data-document-pdf-reader"),a=(o("#pdfReader").length||o("body").append('<div id="pdfReader"></div>'),o("body").css("overflow-y","hidden"),{soundEnable:!0,height:"100%",duration:800,backgroundColor:"rgba(0, 0, 0, 0.9)",text:{toggleSound:"Activer/désactiver le son",toggleThumbnails:"Afficher les miniatures",toggleOutline:"Afficher les ancres",previousPage:"Page précédente",nextPage:"Page suivante",toggleFullscreen:"Plein écran",zoomIn:"Zoomer",zoomOut:"Dézoomer",toggleHelp:"Activer l'aide",singlePageMode:"Une page",doublePageMode:"Double page",downloadPDFFile:"Télécharger le PDF",gotoFirstPage:"Première page",gotoLastPage:"Dernière page",share:"Partager"},onCreateUI:function(){o("#pdfReader").append('<div class="df-close-btn df-ui-btn ti-close"></div>'),o(".df-close-btn").on("click",function(){o("#pdfReader").remove(),o("body").css("overflow-y","auto")})}});o("#pdfReader").flipBook(e,a)})})}}})(jQuery,Drupal,drupalSettings); 4 5; 6window.addEventListener("DOMContentLoaded",function(){var e;(e=document.querySelectorAll(".figure-container")||null)&&e.forEach(function(e){var o=e.querySelector("figure").offsetHeight+e.querySelector("figure").offsetTop,e=e.querySelector(".figure-description ul")||null;e&&(e.nextSibling.style.float="left",e.nextSibling.style.marginTop="15p
6x",e.querySelectorAll("li").forEach(function(e){var t=e.offsetTop;o<t&&(e.style.width="100%")}))})}); 7 8; 9var __assign=this&&this.__assign||function(){return(__assign=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function offsetTop(e,t){return void 0===t&&(t=0),e.offsetParent?offsetTop(e.offsetParent,t+e.offsetTop):t+e.offsetTop}var Parallax=(()=>{function t(e){this.element=e,this.options=this.parseAttribute(),this.onScroll=this.onScroll.bind(this),this.onIntersection=this.onIntersection.bind(this),this.onResize=this.onResize.bind(this),this.elementY=offsetTop(this.element)+this.element.offsetHeight/2,new IntersectionObserver(this.onIntersection).observe(e),this.onScroll()}return t.prototype.parseAttribute=function(){var e={y:.4,variable:!1};return this.element.dataset.parallax.startsWith("{")?__assign(__assign({},e),JSON.parse(this.element.dataset.parallax)):__assign(__assign({},e),{y:parseFloat(this.element.dataset.parallax)})},t.prototype.onIntersection=function(e){for(var t=0,n=e;t<n.length;t++)n[t].isIntersecting?(document.addEventListener("scroll",this.onScroll),window.addEventListener("resize",this.onResize),this.elementY=offsetTop(this.element)+this.element.offsetHeight/2):(document.removeEventListener("scroll",this.onScroll),window.removeEventListener("resize",this.onResize))},t.prototype.onResize=function(){this.elementY=offsetTop(this.element)+this.element.offsetHeight/2,this.onScroll()},t.prototype.onScroll=function(){var t=this;window.requestAnimationFrame(function(){var e=window.scrollY+window.innerHeight/2,e=-1*(t.elementY-e)*t.options.y;t.options.variable?t.element.style.setProperty("--parallaxY","".concat(e,"px")):t.element.style.setProperty("transform","translateY(".concat(e,"px)"))})},t.bind=function(){Array.from(document.querySelectorAll("[data-parallax")).map(function(e){return new t(e)})},t})();Parallax.bind(); 10 11; 12(()=>{function t(){return window.getComputedStyle(document.body,":before").content.replace(/\"/g,"")}function e(){document.querySelectorAll(".js-form-type-number").forEach(function(n){n.querySelectorAll("input").forEach(function(t){var e=t.getAttribute("id")||null;t.insertAdjacentHTML("afterend",'<div class="custom__input-number">\n \t\t\t<button class="custom__input-number__button--less" aria-describedby="'.concat(e,'">\n\t\t\t \t\t\t\t<span aria-hidden="true">-</span>\n\t\t\t\t\t\t\t<span class="sr-only">').concat(ModuloTS.Decrease,'</span>\n\t\t\t \t\t\t</button>\n \t\t\t<span class="custom__input-number__data">').concat(t.outerHTML,'</span>\n \t\t\t<button class="custom__input-number__button--plus" aria-describedby="').concat(e,'">\n\t\t\t\t\t\t\t<span aria-hidden="true">+</span>\n\t\t\t\t\t\t\t<span class="sr-only">').concat(ModuloTS.Increase,"</span>\n\t\t\t \t\t\t</button>\n \t\t\t </div>")),t.remove()}),n.querySelectorAll("button").forEach(function(e){e.addEventListener("click",function(t){t.preventDefault(),n.querySelectorAll("input").forEach(function(t){"custom__input-number__button--plus"===e.getAttribute("class")?t.value++:t.value--,t.dispatchEvent(new Event("change"))})})}),n.querySelectorAll("input").forEach(function(e){function t(){var t=Number(e.value);e.hasAttribute("max")&&t>Number(e.getAttribute("max"))&&(e.value=e.getAttribute("max")),e.hasAttribute("min")&&t<Number(e.getAttribute("min"))&&(e.value=e.getAttribute("min"))}e.addEventListener("input",t),e.addEventListener("change",t)})})}function n(){var c=new RegExp("(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[^A-Za-z0-9])(?=.{8,})"),i=new RegExp("((?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[^A-Za-z0-9])(?=.{6,}))|((?=.*[a-z])(?=.*[A-Z])(?=.*[^A-Za-z0-9])(?=.{8,}))");document.querySelectorAll(".inputPassShow .password-field").forEach(function(t){t.insertAdjacentHTML("afterend",'<div class=\'password-status\'>\n <div class="password-status__bars"></div>\n <div class="password-status__bars"></div>\n <div class="password-status__bars"></div>
12\n <span aria-live="polite" aria-atomic="true" class="password-strength__text js-password-strength__text password-test__message" id="passStrength"></span>\n </div>');function n(t){document.querySelector(".password-status div:nth-child(".concat(t,")")).classList.remove("password-status__bars--lvl".concat(t))}function r(t){document.querySelector(".password-status div:nth-child(".concat(t,")")).classList.add("password-status__bars--lvl".concat(t))}var o={attributes:!0,childList:!0,subtree:!0},a=document.getElementById("passStrength");document.querySelectorAll(".inputPassShow .password-field").forEach(function(t){t.addEventListener("input",function(e){c.test(t.value)?a.innerHTML="Fort":i.test(t.value)?a.innerHTML="Correct":a.innerHTML="Faible",new MutationObserver(function(t){t.forEach(function(t){""===e.target.value&&(t.target.innerText="",n(1),n(2),n(3)),"Faible"===t.target.innerText&&(r(1),n(2),n(3)),"Correct"!==t.target.innerText&&"Bien"!==t.target.innerText||(r(1),r(2),n(3)),"Fort"===t.target.innerText&&(r(1),r(2),r(3))})}).observe(a,o)})})})}function r(){var t,e;document.body.contains(document.querySelector(".webform-progress")&&document.querySelector(".page-summary-card"))&&(t=document.querySelector(".webform-progress"),(e=document.querySelector(".page-summary-card")).parentNode.insertBefore(t,e.nextSibling),t.classList.add("side"))}var o={allInputFile:document.querySelectorAll("input[type=file]"),allInputRange:document.querySelectorAll("input[type=range]:not([data-plyr])"),allSelect:document.querySelectorAll("select"),allLikertInput:document.querySelectorAll(".webform-likert-table-wrapper input[type=radio]"),allLikertWrapper:document.querySelectorAll(".webform-likert-table-wrapper table")},l=function(t,e,n,r,o){t.parentNode.lastElementChild.innerHTML="".concat(t.value," ").concat(e,"<hr>");var e=t.parentNode.lastElementChild.offsetWidth/2==0?30:t.parentNode.lastElementChild.offsetWidth/2,a=t.offsetWidth,c=a/2,r=(t.value-n)/(r-n),n=(r=isNaN(r)?0:r)*a,r=n-e-10*((n-c)/c);t.parentNode.lastElementChild.setAttribute("style","width: ".concat(o,"px; left: ").concat(r,"px; top:50px;"))},a=function(){document.querySelectorAll(".form__item-intervalle").forEach(function(t){var n=t.querySelector('input[type="range"]'),e=n.getAttribute("id")||null,r=t.querySelector('input[type="range"]').valueAsNumber,r='\n\t\t\t<div class="form__item-intervalle__input-container">\n\t\t\t<div class="visually-hidden" aria-live="polite">'.concat(r,"</div>\n\t\t\t<button ").concat(e?'aria-describedby="'.concat(e,'"'):"",' data-btn-range-decrease>\n\t\t\t<span aria-hidden="true">-</span>\n\t\t\t<span class="sr-only">').concat(ModuloTS.Decrease,'</span>\n\t\t\t</button>\n\t\t\t<p data-range-value class="form__item-intervalle__input-number">').concat(r,"</p>\n\t\t\t<button ").concat(e?'aria-describedby="'.concat(e,'"'):"",'data-btn-range-increase>\n\t\t\t<span aria-hidden="true">+</span>\n\t\t\t<span class="sr-only">').concat(ModuloTS.Increase,"</span>\n\t\t\t</button>\n\t\t\t</div>"),o=(t.insertAdjacentHTML("beforeend",r),n.getAttribute("min")),a=n.getAttribute("max");document.querySelector(".form__item-intervalle__input-container").querySelectorAll("button").forEach(function(e){e.addEventListener("click",function(t){t.preventDefault(),null!=e.getAttribute("data-btn-range-decrease")?n.stepDown():n.stepUp(),document.querySelector("[data-range-value]").innerHTML=n.value,l(n,"â¬",o,a,60)})})})},s=function(t){t.parentNode.parentNode.querySelector('input[type="number"]').value=t.value},c=function(){var t=document.querySelector("#edit-fichier-upload")||null,e=document.querySelector("#edit-fichier--description")||null;e&&t&&t.setAttribute("aria-describedby",e.id)},i=function(){var t=document.querySelectorAll(".js-form-item-telephone .iti__selected-flag")||null;t&&t.forEach(function(t){t.insertAdjacentHTML("beforeend",'<span class="sr-only"> '.concat(ModuloTS["Telephone code"]," <span>"))})};polyfillsIE();for(var u=document.querySelectorAll(".webform-progress"),d=0;d<u.length;d+=1)for(var p=u[d].parentNode.children,f=0;f<p.length;f+=1)p[f].classList.contains("webform-elements")&&p[f].classList.add("col-lg-8","offset-lg-1","col-sm-12"),p[f].classList.contains("form-actions")&&p[f].classList.add("col-lg-9","col-sm-12");document.querySelectorAll(".webform-submission-form").forEach(function(t){t.querySelectorAll("[required]").forEach(function(n){n.addEventListener("invalid",function(t){t.preventDefault();var e,t=n.closest(".form-group");
12t&&((e=t.querySelector(".invalid-feedback"))||((e=document.createElement("div")).classList.add("invalid-feedback"),t.appendChild(e)),e.textContent="",e.style.display="none",n.setCustomValidity(""),n.value.trim()?"number"===n.type&&isNaN(n.value)&&(e.textContent=ModuloTS["Please enter a valid number"],e.style.display="block",n.setCustomValidity(ModuloTS["Please enter a valid number"])):(t=ModuloTS["Fields followed by * are required"],e.textContent=t,e.style.display="block",n.setCustomValidity(t)))})})}),a(),o.allInputRange.forEach(function(t){var e=t.getAttribute("min"),n=t.getAttribute("max"),r=document.querySelector("[data-range-value]")||null,o=(t.setAttribute("step",1),document.querySelector(".field-suffix .field-suffix")||null),a="â¬",o=(o&&(a=document.querySelector(".field-suffix .field-suffix").innerText),document.createElement("div")),c=(o.classList.add("range-interval","d-flex","justify-content-between"),o.innerHTML="<div>".concat(e," ").concat(a,"</div><div>").concat(n," ").concat(a,"</div>"),'<span class="sticky-range">'.concat(n," ").concat(a,"</span>")),i=(t.parentNode.insertBefore(o,t),t.insertAdjacentHTML("afterend",c),t.parentNode.lastElementChild.offsetWidth);t.parentNode.lastElementChild.setAttribute("style","display: none;"),t.addEventListener("input",function(){l(t,a,e,n,i),r.innerHTML=t.value,s(t)}),t.addEventListener("focusout",function(){})}),document.querySelectorAll("input[type=password]").forEach(function(t){var e=t.classList.contains("password-confirm")?"confirmation password":"password";t.insertAdjacentHTML("afterend",'<div class="inputPassShow">\n\t\t\t\t\t\t<button type="button" data-pwd="show"><i data-icon="password" aria-hidden="true"> </i>'.concat(ModuloTS["Show ".concat(e)],"</button>\n\t\t\t\t\t\t").concat(t.outerHTML,"\n\t\t\t\t\t</div>")),t.remove()}),document.querySelectorAll(".inputPassShow").forEach(function(o){o.querySelector("button").addEventListener("click",function(t){t.stopImmediatePropagation(),t.preventDefault();var t=o.querySelector("input"),e=o.querySelector("button"),n=e.getAttribute("data-pwd"),r=t.classList.contains("password-confirm")?"confirmation password":"password";"show"===n?(e.innerHTML='<i data-icon="password" aria-hidden="true"> </i> '.concat(ModuloTS["Hide ".concat(r)]),t.setAttribute("type","text"),e.setAttribute("data-pwd","hide")):(e.innerHTML='<i data-icon="password" aria-hidden="true"> </i> '.concat(ModuloTS["Show ".concat(r)]),t.setAttribute("type","password"),e.setAttribute("data-pwd","show"))}),document.body.contains(document.querySelector(".user-login-form"))&&o.querySelector("input").addEventListener("keyup",function(t){13===t.keyCode&&document.querySelector(".user-login-form").submit()})}),o.allLikertWrapper.forEach(function(t){t.querySelectorAll("thead th").forEach(function(t){t.setAttribute("scope","col")}),t.querySelectorAll("tbody th").forEach(function(t){t.setAttribute("scope","row")})}),e(),document.querySelectorAll(".container-inline").forEach(function(t){t.querySelectorAll(".form__label").forEach(function(t){t.remove()})}),document.querySelectorAll(".js-form-type-radio .form__label").forEach(function(t){t.classList.add("custom__label")}),document.querySelectorAll(".js-form-type-checkbox .form__label").forEach(function(t){t.classList.add("custom__label")}),document.querySelectorAll("input[type=text]").forEach(function(t){t.getAttribute("placeholder")==="".concat(ModuloTS["Type an other value"],"...")&&(t.classList.add("custom__other-value"),t.setAttribute("title","".concat(ModuloTS["Type an other value"],"...")))}),document.querySelectorAll(".form__label__helper").forEach(function(t){var e='<div class="custom__help-box">',n=t.getAttribute("data-webform-help");t.insertAdjacentHTML("beforebegin",e+n+"</div>")}),n(),document.querySelectorAll(".range-interval").forEach(function(t){t.insertAdjacentHTML("afterbegin",'<div class="custom__range__max-value-cursor"></div>')}),document.querySelectorAll("fieldset legend").forEach(function(e){e.querySelectorAll(".visually-hidden").forEach(function(t){null!==t&&(t.classList.add("content-hiddden"),e.classList.add("content-hiddden"))})}),null!=(a=document.querySelector(".webform-button--next"))&&(a.insertAdjacentHTML("afterend",'<div class="step-button">'.concat(a.outerHTML,"</div>")),a.remove(),document.querySelector(".step-button").insertAdjacentHTML("afterbegin",'<i data-icon="arrow" aria-hidden="true"></i>')),a=document.querySelector(".user-login-form"),o=document.querySelector(".banner > div > div > div > div > h1")||null,document.body.contains(a)&&(a.classList.add("module"),o&&(o.style.textAlign="center",o.style.borderBottom="1px solid #EFF3F8"),window.matchMedia("(min-width: 500px)").matches?o.style.paddingBottom="50px":o.style.paddingBottom="30px"),a=document.querySelector(".user-form__title"),o=document.querySelector(".user-login-form"),a&&o.insertAdjacentElement("afterbegin",a),document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll(".webform-submission-form").forEach(function(t){var e='<p class="msg-required">'.concat(ModuloTS["Fields followed by * are required"],"</p>");t.insertAdjacentHTML("afterbegin",e)}),document.querySelectorAll(".webform-element-description").forEach(function(t){var e=t.innerHTML,e="<p>".concat(e,"</p>");t.innerHTML=e}),c(),i(),bsBreakpoints.init(),"xLarge"!==t&&"large"!==t||(r(),window.onresize=function(){r()})})})(); 13 14; 15(()=>{function t(){var t;n.submit&&void 0!==n.submit&&n.submit.forEach(function(t){t.classList.remove("form-control-lg","form-control"),t.classList.add("btn","btn-primary")}),(t=document.querySelectorAll(".facets-links--title")||null)&&t.forEach(function(t){var e,o=t.querySelector("p")||null;o&&(e=void 0,"content_type"===(o=o.getAttribute("data-picto"))?e="doc":"date"===o?e="calendar":"keywords"===o&&(e="keyword"),t.insertAdjacentHTML("afterbegin",'<div class="view-filters__fieldset__icon"><i data-icon="'.concat(e,'" aria-hidden="true"></i></div>')))}),n.input&&void 0!==n.input&&n.input.forEach(function(t){t.setAttribute("placeholder",ModuloTS["I search"])})}var e,o,n={root:document.querySelector("#facets .views-exposed-form"),submit:document.querySelectorAll("input[type=submit]"),input:document.querySelectorAll("#facets .views-exposed-form input[type=text]"),title:document.querySelectorAll(".facets-links--title"),categ:document.querySelector("#views-exposed-form-news-solr-block-news-solr")};window.addEventListener("load",function(){document.body.contains(n.root)&&t()}),document.body.contains(n.categ)&&(e=window.XMLHttpRequest,window.XMLHttpRequest=function(){var t=new e;return t.addEventListener("readystatechange",function(){4===t.readyState&&200===t.status&&o()},!1),t},o=function(){""!==window.location.search?document.body.classList.add("actus-categ"):document.body.classList.remove("actus-categ")})})(); 16 17; 18(()=>{function t(){var t;window.screen.width<=540&&((t=document.querySelector("[".concat(n,"]"))||null)||e.querySelector("[".concat(o,"]")))&&e.appendChild(t)}var e=document.querySelector("[data-js-document]"),n="data-js-document-actions",o="data-js-document-col-right";e&&window.addEventListener("resize",function(){t()}),e&&(document.querySelectorAll("[data-js-document-toggle]").forEach(function(t){var e=t.parentNode.parentNode.querySelector("[data-js-document-transcription]");e&&t.addEventListener("click",function(){t.classList.toggle("active"),e.classList.toggle("active")})}
18),t()),(r=document.querySelectorAll(".media-content")).forEach(function(o){null==r&&o.querySelector("[data-js-dropdown-toggle]").addEventListener("click",function(){setTimeout(function(){var t=o.querySelector(".media-content-transcription"),e=o.querySelector(".media-content-transcription p"),n=o.querySelector(".media-content-transcription .btn");t.classList.contains("active")&&57<e.offsetHeight?(t.insertAdjacentHTML("beforeend",'<button class="btn btn-primary">'+ModuloTS["Show more"]+"</button>"),e.classList.add("document__transcription__show-more"),e.setAttribute("style","height: 57px;"),t.setAttribute("style","margin-bottom: 50px"),o.querySelector(".media-content-transcription .btn").addEventListener("click",function(){e.setAttribute("style","height: max-content;")})):(n.remove(),e.classList.remove("document__transcription__show"),e.removeAttribute("style"),t.removeAttribute("style"))})},500)}),document.querySelectorAll(".rte-item.document.module.shadow").forEach(function(t){var e=t.querySelector(".document__transcription__btn");null!=e&&t.querySelector(".document__infos").classList.add("document__infos__bordered")});var r,c=document.querySelectorAll(".document__description h2"),i=document.querySelectorAll(".document__transcription h2");if(c)for(var a=0;a<c.length;a++)c[a].outerHTML="<h4>"+c[a].innerHTML+"</h4>";if(i)for(a=0;a<i.length;a++)i[a].outerHTML="<h4>"+i[a].innerHTML+"</h4>"})(); 19 20; 21(()=>{var e,o=document.querySelector(".content-404");o&&(document.querySelector(".content-404 .button").classList.remove("form-control","form-control-lg"),document.querySelector(".content-404 .button").classList.add("btn","btn-primary"),document.querySelector(".breadcrumbs-block").remove(),null!=(e=document.querySelector("#block-spe-banner"))&&e.remove(),e=".form-autocomplete",o.querySelector("".concat(e)))&&(o.querySelector("".concat(e)).placeholder=ModuloTS["I search"]+"...")})(); 22 23; 24(()=>{var e=document.querySelector(".share"),t=document.querySelectorAll(".share"),o=function(){Array.from(t).forEach(function(e){var t=document.createElement("div");t.className="share__wrapper",e.parentNode.insertBefore(t,e),t.appendChild(e)});var e=document.createElement("button");e.className="share__toggle btn btn-icon",e.setAttribute("data-js-btn-toggle-all",""),e.setAttribute("data-icon","share"),document.querySelector(".share__wrapper").appendChild(e),document.body.contains(document.querySelector(".share__toggle"))&&n()},r=function(){document.body.contains(document.querySelector(".share__wrapper"))&&(Array.from(t).forEach(function(e){var t=e.parentNode;t!==document.body&&(t.parentNode.insertBefore(e,t),t.parentNode.removeChild(t))}),document.body.contains(document.querySelector(".share > button"))&&document.querySelector(".share__toggle").remove(),e.classList.remove("show"))},n=function(){document.querySelector(".share__toggle").addEventListener("click",function(){this.classList.toggle("active"),e.classList.toggle("show")})};document.body.contains(e)&&(document.addEventListener("DOMContentLoaded",function(){bsBreakpoints.init();var e=bsBreakpoints.getCurrentBreakpoint();("xSmall"===e||"small"===e?o:r)()}),window.addEventListener("resize",function(e){var t=bsBreakpoints.getCurrentBreakpoint();"xSmall"===t||"small"===t?document.body.contains(document.querySelector(".share__wrapper"))||o():r()}))})(); 25 26; 27(()=>{var t=bsBreakpoints.detectBreakpoint(),e=document.querySelectorAll("[data-tablette-uri]")||null,a=document.querySelectorAll("[data-mobile-uri]")||null;"xSmall"===t&&a?a.forEach(function(t){t.style.backgroundImage="url(\n\t\t\t\t".concat(t.getAttribute("data-mobile-uri"),"\n\t\t\t)")}):"medium"===t&&e&&e.forEach(function(t){t.style.backgroundImage="url(\n\t\t\t\t".concat(t.getAttribute("data-tablette-uri"),"\n\t\t\t)")})})(); 28 29; 30(()=>{function e(){d.querySelector("[".concat(y.toggle,"]")).addEventListener("click",function(){var e=d.querySelector("[".concat(y.content,"]")),t=d.querySelector("[".concat(y.toggle,"]"));"active"===t.getAttribute("data-toggle-status")?(t.setAttribute("data-toggle-status","inactive"),t.setAttribute("aria-expanded",!1),e.classList.remove("active"),e.style.display="none","small"!==bsBreakpoints.detectBreakpoint()&&"xSmall"!==bsBreakpoints.detectBreakpoint()||(d.classList.remove("open"),document.querySelector("body").classList.remove("fixed"))):(t.setAttribute("data-toggle-status","active"),e.classList.add("active"),e.style.display="block",t.setAttribute("aria-expanded",!0),"small"!==bsBreakpoints.detectBreakpoint()&&"xSmall"!==bsBreakpoints.detectBreakpoint()||(d.classList.add("open"),document.querySelector("body").classList.add("fixed")))})}function t(){"xLarge"===bsBreakpoints.detectBreakpoint()||"large"===bsBreakpoints.detectBreakpoint()?(d.getBoundingClientRect().height,d.classList.add("page-summary--sticky"),d.addEventListener("click",function(){var e=d.getBoundingClientRect();e.height})):(d.classList.remove("page-summary--sticky"),document.querySelector(".a-edito").setAttribute("style","")),document.body.contains(p)&&(d.classList.remove("col-lg-3"),d.classList.add("page-summary--hasCalendar"),d.parentElement.classList.remove("row"),document.querySelector(".a-edito").setAttribute("style",""))}function a(){var c=d.querySelector("[".concat(y.toggle,"]")),r=d.querySelector("[".concat(y.content,"]"));document.querySelectorAll('a[href^="#"]').forEach(function(i){i.addEventListener("click",function(e){"small"!==bsBreakpoints.detectBreakpoint()&&"xSmall"!==bsBreakpoints.detectBreakpoint()||(c.setAttribute("data-toggle-status","inactive"),c.setAttribute("aria-expanded",!1),r.classList.remove("active"),r.style.display="none","small"!==bsBreakpoints.detectBreakpoint()&&"xSmall"!==bsBreakpoints.detectBreakpoint())||(d.classList.remove("open"),document.querySelector("body").classList.remove("fixed")),e.preventDefault();var t,a,n,e=document.querySelector(i.getAttribute("href")),o=(e&&(e.tabIndex=0,e.focus()),document.querySelector("[data-js-header]")),e=e.getBoundingClientRect().top+window.pageYOffset-150;t=o.getBoundingClientRect(),a=window.innerHeight||document.documentElement.clientHeight,n=window.innerWidth||document.documentElement.clientWidth,0<=t.top&&0<=t.left&&t.bottom<=a&&t.right<=n&&(e=e-o.offsetHeight+20),window.scrollTo({top:e,behavior:"smooth"})})})}var o,n,i,c,r,l,s,d=document.querySelector("[data-selector-page-summary]")||null,u=document.querySelector(".page-job")||null,m=document.querySelector(".page-event")||null,u=u?u.querySelectorAll("h2"):m?document.querySelectorAll(".a-edito h2, .module h2"):document.querySelector(".a-edito").querySelectorAll("h2"),m=!0,p=(0===u.length&&(m=!1,d)&&(d.style.display="none"),document.querySelector("#event-calendar")),y={toggle:"data-page-summary-title",content:"data-page-summary-content",figcaption:"data-js-figcaption"},g=function(e){return e.replace(/[\p{Extended_Pictographic}\p{So}\p{Sk}\p{Sm}\p{Sc}]/gu,"")},h=function(e){return e.replace(/\s+/g," ").trim()},_=function(e){var a=document.createDocumentFragment();
30return e.childNodes.forEach(function(e){var t;e.nodeType===Node.TEXT_NODE?(t=h(g(e.textContent||"")))&&a.appendChild(document.createTextNode(t+" ")):e.nodeType===Node.ELEMENT_NODE&&("sub"===(t=e.nodeName.toLowerCase())||"sup"===t?(a.appendChild(e.cloneNode(!0)),a.appendChild(document.createTextNode(" "))):a.appendChild(document.createTextNode(h(g(e.textContent||""))+" ")))}),a},f=!1;if(window.addEventListener("scroll",function(e){d&&(o=window.scrollY,f||window.requestAnimationFrame(function(){var t,e,a,n;t=o,(e=d.querySelectorAll(".page-summary__content__link")).forEach(function(e){e.getAttribute("data-position")<=t?e.classList.add("active"):e.classList.remove("active")}),window.innerHeight+window.scrollY>=document.body.offsetHeight&&e.forEach(function(e){e.classList.contains("active")||e.classList.add("active")}),a=o,d.querySelectorAll(".page-summary__content__link").forEach(function(e){e.getAttribute("data-position")!=a&&n&&e.querySelector(".page-summary__content__link--link").removeAttribute("aria-current"),e.classList.contains("active")&&(e=d.querySelectorAll(".page-summary__content__link.active"),n=e[e.length-1]),void 0!==n&&n.querySelector(".page-summary__content__link--link").removeAttribute("aria-current")}),void 0!==n&&n.querySelector(".page-summary__content__link--link").setAttribute("aria-current",!0),f=!1}),f=!0)}),m&&d){if(d){document.body.classList.add("hasSummary"),d.parentElement.classList.add("row","content");for(var v=document.querySelector(".row.content").children,b=0;b<v.length;b++){var k=v[b];k.classList.contains("a-edito")&&k.classList.add("col-lg-9")}null!==document.querySelector("[data-js-figcaption]")&&document.querySelector("[data-js-figcaption]").classList.add("hasSummary"),m=u,r=1,l=document.querySelector(".a-edito.field-content").getBoundingClientRect().top,m.forEach(function(e){e.id="h2-".concat(r),e.setAttribute("data-title-position",e.getBoundingClientRect().top-l),r++}),i=[],(m=u).forEach(function(e){e=e.innerHTML,e=(new DOMParser).parseFromString(e,"text/html"),e=_(e.body);e.lastChild&&e.lastChild.nodeType===Node.TEXT_NODE&&(e.lastChild.nodeValue=h(e.lastChild.nodeValue)),i.push(e)}),c='<div class="page-summary-card card" role="dialog" aria-label="'.concat(ModuloTS["Table of contents"],'" aria-modal="true">\n <button type="button" class="page-summary__title card-header" data-toggle-status="active" data-page-summary-title aria-expanded="true">\n ').concat(ModuloTS["Table of contents"],'<i data-icon="chevron" aria-hidden="true"></i>\n </button>\n <ul class="page-summary__content card-body active" data-page-summary-content role="document">'),m.forEach(function(e){c+='\n <li class="page-summary__content__link" data-position="'.concat(e.getAttribute("data-title-position"),'">\n <div class="page-summary__content__section">\n <span class="page-summary__content__link__puce"></span>\n <a class="stretched-link page-summary__content__link--link" href="#').concat(e.id,'" data-dot="3"></a>\n </div>\n <div class="page-summary__content__separate"></div>\n </li>')}),c+="</ul></div>",d.innerHTML=c,d.querySelectorAll(".page-summary__content__link--link").forEach(function(e,t){e.textContent="",e.appendChild(i[t].cloneNode(!0)),e.lastChild&&e.lastChild.nodeType===Node.TEXT_NODE&&(e.lastChild.nodeValue=e.lastChild.nodeValue.trimEnd())}),"medium"!==bsBreakpoints.detectBreakpoint()&&"small"!==bsBreakpoints.detectBreakpoint()&&"xSmall"!==bsBreakpoints.detectBreakpoint()||(document.querySelector("[data-page-summary-title]").setAttribute("data-toggle-status","inactive"),document.querySelector("[data-page-summary-title]").setAttribute("aria-expanded","false"),document.querySelector("[data-page-summary-content]").classList.remove("active")),m=document.querySelector(".page-summary-card"),550<window.innerWidth||m&&(n=m.querySelector("[data-page-summary-title]"),(m=m.querySelectorAll(".page-summary__content__link--link"))[m.length-1].addEventListener("keydown",function(e){"Tab"!==e.key||e.shiftKey||(e.preventDefault(),n.focus())}))}document.body.contains(d)&&(s=screen.width,1<u.length&&window.addEventListener("resize",function(){s!==screen.width&&(t(),e())}),document.addEventListener("DOMContentLoaded",function(){t(),e()})),a()}})(); 31 32; 33(()=>{var e=document.querySelectorAll("table");document.body.contains(document.querySelector("table"))&&e.forEach(function(e){e.classList.add("table","table-bordered"),e.hasAttribute("cellpadding")&&e.removeAttribute("cellpadding"),e.hasAttribute("cellspacing")&&e.removeAttribute("cellspacing");var t=document.createElement("div");t.classList.add("table-responsive"),e.parentNode.insertBefore(t,e),t.appendChild(e)})})(); 34 35; 36(()=>{var n,e,a,r,l,c,t,o={close:ModuloTS.Close,previous:ModuloTS["Previous slide"],next:ModuloTS["
36Next slide"]},d=document.querySelector(".field-content"),i=d&&d.querySelectorAll("[data-src-full]"),u=i&&i.length,u='<div id="modalZoom" class="modal" aria-hidden="true" aria-modal="true" role="dialog" aria-label="Menu principal">\n <p class="modal__count">\n <span id="photo-id"></span>/<span id="photo-total">'.concat(u,'</span>\n </p>\n <div class="modal__content" role="document">\n <button title="').concat(o.close,'" class="close"><i data-icon="cross" aria-hidden="true"></i><span class="sr-only">').concat(o.close,' la fenêtre</span></button>\n <button class="prec" id="zoom-prec" data-icon="arrow" data-set-prev>').concat(o.previous,'</button>\n <button class="next" id="zoom-next" data-icon="arrow" data-set-next>').concat(o.next,"</button>\n </div>\n </div>"),s=function(t,e,o){void 0===t&&(t=0),void 0===e&&(e="");var n=document.querySelector("#modalZoom"),a=n.querySelector("#zoom-prec"),r=n.querySelector("#zoom-next"),l=t-1,c=t+1,i=(null==(i=null==(i=d.querySelector('[data-src-full="'.concat(e,'"]')))?void 0:i.querySelector("img"))?void 0:i.getAttribute("alt"))||"",e='<img id="img-full" class="modal__img" src="'.concat(e,'" alt="').concat(i,'" />');n.setAttribute("aria-hidden",!1),n.querySelector("#photo-id").innerHTML="".concat(t),n.querySelector("#img-full")&&n.querySelector(".modal__content").removeChild(n.querySelector("#img-full")),n.querySelector("#zoom-prec").insertAdjacentHTML("afterend",e),a.setAttribute("data-set-prev",l),r.setAttribute("data-set-next",c),p(o),f(o),m(n,o),y(n)},y=function(e){var t=e.querySelector(".modal__img");t&&t.addEventListener("keydown",function(t){"Tab"!==t.key||t.shiftKey||(t.preventDefault(),e.querySelector(".close").focus())})},m=function(t,e){var o=t.querySelector("#zoom-prec"),t=t.querySelector("#zoom-next"),n=parseInt(o.getAttribute(["data-set-prev"])),a=parseInt(t.getAttribute(["data-set-next"]));0===n?("none"===t.style.display&&(t.style.display="block"),o.style.display="none"):a>e.length?("none"===o.style.display&&(o.style.display="block"),t.style.display="none"):(o.style.display="block",t.style.display="block"),1===e.length&&(o.style.display="none",t.style.display="none")},p=function(t){var e=document.getElementById("modalZoom"),o=e.querySelector("#zoom-prec"),n=parseInt(o.getAttribute(["data-set-prev"]));o&&o.addEventListener("click",function(){s(n,t.find(function(t,e){return t?e===n-1:null}),t),keyboardNavigation(e)})},f=function(t){var e=document.getElementById("modalZoom"),o=e.querySelector("#zoom-next"),n=parseInt(o.getAttribute(["data-set-next"]));o&&o.addEventListener("click",function(){s(n,t.find(function(t,e){return t?e===n-1:null}),t),keyboardNavigation(e)})},o=function(t){t.querySelector("button.close").addEventListener("click",function(){t.setAttribute("data-active",!1),t.setAttribute("aria-hidden",!0),n.focus()})};t=(()=>{var e=[];if(i)return i.forEach(function(t){e.push(t.getAttribute("data-src-full"))}),e})(),i&&d.insertAdjacentHTML("beforeend",u),i&&(e=1,i.forEach(function(t){t.setAttribute("data-set",e),e++})),a=t,(c=document.getElementById("modalZoom"))&&i&&(i.forEach(function(t){var e=t.querySelector("button.open-figure-modal")||null;e&&e.addEventListener("click",function(){n=e;var o=parseInt(t.getAttribute("data-set"));c.setAttribute("data-active",!0),r=a.find(function(t,e){return t?e+1===o:"truc"}),l=a.findIndex(function(t,e){return t?e+1===o:"truc"}),s(l+1,r,a),keyboardNavigation(c)})}),o(c))})(); 37 38; 39"use strict";(function(Drupal,drupalSettings,navigator,window){'use strict';if('serviceWorker' in navigator)window.addEventListener('load',function(){let scope=drupalSettings.path.baseUrl;if(typeof drupalSettings.pwa_service_worker.scope!=="undefined"&&drupalSettings.pwa_service_worker.scope!==null)scope=drupalSettings.pwa_service_worker.scope;navigator.serviceWorker.register(drupalSettings.pwa_service_worker.installPath,{scope}).then(function(registration){console.log("Service Worker registered! Scope: ".concat(registration.scope));}).catch(function(err){console.log("Service Worker registration failed: ".concat(err));});});})(Drupal,drupalSettings,navigator,window);; 40(function($,Drupal){Drupal.theme.progressBar=function(id){const escapedId=Drupal.checkPlain(id);return (`<div id="${escapedId}
vendor: 3,483 bytes, lines 40-42
40" class="progress" aria-live="polite">`+'<div class="progress__label"> </div>'+'<div class="progress__track"><div class="progress__bar"></div></div>'+'<div class="progress__percentage"></div>'+'<div class="progress__description"> </div>'+'</div>');};Drupal.ProgressBar=function(id,updateCallback,method,errorCallback){this.id=id;this.method=method||'GET';this.updateCallback=updateCallback;this.errorCallback=errorCallback;this.element=$(Drupal.theme('progressBar',id));};$.extend(Drupal.ProgressBar.prototype,{setProgress(percentage,message,label){if(percentage>=0&&percentage<=100){$(this.element).find('div.progress__bar').each(function(){this.style.width=`${percentage}%`;});$(this.element).find('div.progress__percentage').html(`${percentage}%`);}$('div.progress__description',this.element).html(message);$('div.progress__label',this.element).html(label);if(this.updateCallback)this.updateCallback(percentage,message,this);},startMonitoring(uri,delay){this.delay=delay;this.uri=uri;this.sendPing();},stopMonitoring(){clearTimeout(this.timer);this.uri=null;},sendPing(){if(this.timer)clearTimeout(this.timer);if(this.uri){const pb=this;let uri=this.uri;if(!uri.includes('?'))uri+='?';else uri+='&';uri+='_format=json';$.ajax({type:this.method,url:uri,data:'',dataType:'json',success(progress){if(progress.status===0){pb.displayError(progress.data);return;}pb.setProgress(progress.percentage,progress.message,progress.label);pb.timer=setTimeout(()=>{pb.sendPing();},pb.delay);},error(xmlhttp){const e=new Drupal.AjaxError(xmlhttp,pb.uri);pb.displayError(`<pre>${e.message}</pre>`);}});}},displayError(string){const error=$('<div class="messages messages--error"></div>').html(string);$(this.element).before(error).hide();if(this.errorCallback)this.errorCallback(this);}});})(jQuery,Drupal);; 41/* @license MIT https://raw.githubusercontent.com/muicss/loadjs/4.3.0/LICENSE.txt */ 42loadjs=function(){var h=function(){},o={},c={},f={};function u(e,n){if(e){var t=f[e];if(c[e]=n,t)for(;t.length;)t[0](e,n),t.splice(0,1)}}function l(e,n){e.call&&(e={success:e}),n.length?(e.error||h)(n):(e.success||h)(e)}function p(t,r,i,s){var o,e,u,n=document,c=i.async,f=(i.numRetries||0)+1,l=i.before||h,a=t.replace(/[\?|#].*$/,""),d=t.replace(/^(css|img|module|nomodule)!/,"");if(s=s||0,/(^css!|\.css$)/.test(a))(u=n.createElement("link")).rel="stylesheet",u.href=d,(o="hideFocus"in u)&&u.relList&&(o=0,u.rel="preload",u.as="style");else if(/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(a))(u=n.createElement("img")).src=d;else if((u=n.createElement("script")).src=d,u.async=void 0===c||c,e="noModule"in u,/^module!/.test(a)){if(!e)return r(t,"l");u.type="module"}else if(/^nomodule!/.test(a)&&e)return r(t,"l");!(u.onload=u.onerror=u.onbeforeload=function(e){var n=e.type[0];if(o)try{u.sheet.cssText.length||(n="e")}catch(e){18!=e.code&&(n="e")}if("e"==n){if((s+=1)<f)return p(t,r,i,s)}else if("preload"==u.rel&&"style"==u.as)return u.rel="stylesheet";r(t,n,e.defaultPrevented)})!==l(t,u)&&n.head.appendChild(u)}function t(e,n,t){var r,i;if(n&&n.trim&&(r=n),i=(r?t:n)||{},r){if(r in o)throw"LoadJS";o[r]=!0}function s(n,t){!function(e,r,n){var t,i,s=(e=e.push?e:[e]).length,o=s,u=[];for(t=function(e,n,t){if("e"==n&&u.push(e),"b"==n){if(!t)return;u.push(e)}--s||r(u)},i=0;i<o;i++)p(e[i],t,n)}(e,function(e){l(i,e),n&&l({success:n,error:t},e),u(r,e)},i)}if(i.returnPromise)return new Promise(s);s()}return t.ready=function(e,n){return function(e,t){e=e.push?e:[e];var n,r,i,s=[],o=e.length,u=o;
42for(n=function(e,n){n.length&&s.push(e),--u||t(s)};o--;)r=e[o],(i=c[r])?n(r,i):(f[r]=f[r]||[]).push(n)}(e,function(e){l(n,e)}),t},t.done=function(e){u(e,[])},t.reset=function(){o={},c={},f={}},t.isDefined=function(e){return e in o},t}();; 43/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 44Drupal.debounce=function(func,wait,immediate){let timeout;let result;return function(...args){const context=this;const later=function(){timeout=null;if(!immediate)result=func.apply(context,args);};const callNow=immediate&&!timeout;clearTimeout(timeout);timeout=setTimeout(later,wait);if(callNow)result=func.apply(context,args);return result;};};; 45(function(Drupal,debounce){let liveElement;const announcements=[];Drupal.behaviors.drupalAnnounce={attach(context){if(!liveElement){liveElement=document.createElement('div');liveElement.id='drupal-live-announce';liveElement.className='visually-hidden';liveElement.setAttribute('aria-live','polite');liveElement.setAttribute('aria-busy','false');document.body.appendChild(liveElement);}}};function announce(){const text=[];let priority='polite';let announcement;const il=announcements.length;for(let i=0;i<il;i++){announcement=announcements.pop();text.unshift(announcement.text);if(announcement.priority==='assertive')priority='assertive';}if(text.length){liveElement.innerHTML='';liveElement.setAttribute('aria-busy','true');liveElement.setAttribute('aria-live',priority);liveElement.innerHTML=text.join('\n');liveElement.setAttribute('aria-busy','false');}}Drupal.announce=function(text,priority){announcements.push({text,priority});return debounce(announce,200)();};})(Drupal,Drupal.debounce);; 46((Drupal)=>{Drupal.Message=class{constructor(messageWrapper=null){if(!messageWrapper)this.messageWrapper=Drupal.Message.defaultWrapper();else this.messageWrapper=messageWrapper;}static defaultWrapper(){let wrapper=document.querySelector('[data-drupal-messages]')||document.querySelector('[data-drupal-messages-fallback]');if(!wrapper){wrapper=document.createElement('div');document.body.appendChild(wrapper);}if(wrapper.hasAttribute('data-drupal-messages-fallback')){wrapper.removeAttribute('data-drupal-messages-fallback');wrapper.classList.remove('hidden');}wrapper.setAttribute('data-drupal-messages','');return wrapper.innerHTML===''?Drupal.Message.messageInternalWrapper(wrapper):wrapper.firstElementChild;}static getMessageTypeLabels(){return {status:Drupal.t('Status message'),error:Drupal.t('Error message'),warning:Drupal.t('Warning message')};}add(message,options={}){if(!options.hasOwnProperty('type'))options.type='status';if(typeof message!=='string')throw new Error('Message must be a string.');Drupal.Message.announce(message,options);options.id=options.id?String(options.id):`${options.type}-${Math.random().toFixed(15).replace('0.','')}`;if(!Drupal.Message.getMessageTypeLabels().hasOwnProperty(options.type)){const {type}=options;throw new Error(`The message type, ${type}, is not present in Drupal.Message.getMessageTypeLabels().`);}this.messageWrapper.appendChild(Drupal.theme('message',{text:message},options));return options.id;}select(id){return this.messageWrapper.querySelector(`[data-drupal-message-id^="${id}"]`);}remove(id){return this.messageWrapper.removeChild(this.select(id));}clear(){this.messageWrapper.querySelectorAll('[data-drupal-message-id]').forEach((message)=>{this.messageWrapper.removeChild(message);});}static announce(message,options){if(!options.priority&&(options.type==='warning'||options.type==='error'))options.priority='assertive';if(options.announce!=='')Drupal.announce(options.announce||message,options.priority);}static messageInternalWrapper(messageWrapper){const innerWrapper=document.createElement('div');innerWrapper.setAttribute('class','messages__wrapper');messageWrapper.insertAdjacentElement('afterbegin',innerWrapper);return innerWrapper;}};Drupal.theme.message=({text},{type,id})=>{const messagesTypes=Drupal.Message.getMessageTypeLabels();const messageWrapper=document.createElement('div');messageWrapper.setAttribute('class',`messages messages--${type}`);messageWrapper.setAttribute('role',type==='error'||type==='warning'?'alert':'status');messageWrapper.setAttribute('data-drupal-message-id',id);messageWrapper.setAttribute('data-drupal-message-type',type);messageWrapper.setAttribute('aria-label',messagesTypes[type]);messageWrapper.innerHTML=`${text}`;return messageWrapper;};})(Drupal);; 47(function($,window,Drupal,drupalSettings,loadjs,{isFocusable,tabbable}){Drupal.behaviors.AJAX={attach(context,settings){function loadAjaxBehavior(base){const elementSettings=settings.ajax[base];if(typeof elementSettings.selector==='undefined')elementSettings.selector=`#${base}`;
47once('drupal-ajax',$(elementSettings.selector)).forEach((el)=>{elementSettings.element=el;elementSettings.base=base;Drupal.ajax(elementSettings);});}Object.keys(settings.ajax||{}).forEach(loadAjaxBehavior);Drupal.ajax.bindAjaxLinks(document.body);once('ajax','.use-ajax-submit').forEach((el)=>{const elementSettings={url:$(el.form).attr('action'),setClick:true,event:'click',progress:{type:'throbber'},base:el.id,element:el};Drupal.ajax(elementSettings);});},detach(context,settings,trigger){if(trigger==='unload')Drupal.ajax.expired().forEach((instance)=>{Drupal.ajax.instances[instance.instanceIndex]=null;});}};Drupal.AjaxError=function(xmlhttp,uri,customMessage){let statusCode;let statusText;let responseText;if(xmlhttp.status)statusCode=`\n${Drupal.t('An AJAX HTTP error occurred.')}\n${Drupal.t('HTTP Result Code: !status',{'!status':xmlhttp.status})}`;else statusCode=`\n${Drupal.t('An AJAX HTTP request terminated abnormally.')}`;statusCode+=`\n${Drupal.t('Debugging information follows.')}`;const pathText=`\n${Drupal.t('Path: !uri',{'!uri':uri})}`;statusText='';try{statusText=`\n${Drupal.t('StatusText: !statusText',{'!statusText':xmlhttp.statusText.trim()})}`;}catch(e){}responseText='';try{responseText=`\n${Drupal.t('ResponseText: !responseText',{'!responseText':xmlhttp.responseText.trim()})}`;}catch(e){}responseText=responseText.replace(/<("[^"]*"|'[^']*'|[^'">])*>/gi,'');responseText=responseText.replace(/[\n]+\s+/g,'\n');const readyStateText=xmlhttp.status===0?`\n${Drupal.t('ReadyState: !readyState',{'!readyState':xmlhttp.readyState})}`:'';customMessage=customMessage?`\n${Drupal.t('CustomMessage: !customMessage',{'!customMessage':customMessage})}`:'';this.message=statusCode+pathText+statusText+customMessage+responseText+readyStateText;this.name='AjaxError';if(!Drupal.AjaxError.messages)Drupal.AjaxError.messages=new Drupal.Message();Drupal.AjaxError.messages.add(Drupal.t("Oops, something went wrong. Check your browser's developer console for more details."),{type:'error'});};Drupal.AjaxError.prototype=new Error();Drupal.AjaxError.prototype.constructor=Drupal.AjaxError;Drupal.ajax=function(settings){if(arguments.length!==1)throw new Error('Drupal.ajax() function must be called with one configuration object only');const base=settings.base||false;const element=settings.element||false;delete settings.base;delete settings.element;if(!settings.progress&&!element)settings.progress=false;const ajax=new Drupal.Ajax(base,element,settings);ajax.instanceIndex=Drupal.ajax.instances.length;Drupal.ajax.instances.push(ajax);return ajax;};Drupal.ajax.instances=[];Drupal.ajax.expired=function(){return Drupal.ajax.instances.filter((instance)=>instance&&instance.element!==false&&!document.body.contains(instance.element));};Drupal.ajax.bindAjaxLinks=(element)=>{once('ajax','.use-ajax',element).forEach((ajaxLink)=>{const $linkElement=$(ajaxLink);const elementSettings={progress:{type:'throbber'},dialogType:$linkElement.data('dialog-type'),dialog:$linkElement.data('dialog-options'),dialogRenderer:$linkElement.data('dialog-renderer'),base:$linkElement.attr('id'),element:ajaxLink};const href=$linkElement.attr('href');if(href){elementSettings.url=href;elementSettings.event='click';}const httpMethod=$linkElement.data('ajax-http-method');if(httpMethod)elementSettings.httpMethod=httpMethod;Drupal.ajax(elementSettings);});};Drupal.Ajax=function(base,element,elementSettings){const defaults={httpMethod:'POST',event:element?'mousedown':null,keypress:true,selector:base?`#${base}`:null,effect:'none',speed:'none',method:'replaceWith',progress:{type:'throbber',message:Drupal.t('Processing...')},submit:{js:true}};$.extend(this,defaults,elementSettings);this.commands=new Drupal.AjaxCommands();this.instanceIndex=false;if(this.wrapper)this.wrapper=`#${this.wrapper}`;this.element=element;this.preCommandsFocusedElementSelector=null;this.elementSettings=elementSettings;if(this.element?.form)this.$form=$(this.element.form);if(!this.url){const $element=$(this.element);if(this.element.tagName==='A')this.url=$element.attr('href');else{if(this.element&&element.form)this.url=this.$form.attr('action');}}const originalUrl=this.url;this.url=this.url.replace(/\/nojs(\/|$|\?|#)/,'/ajax$1');if(drupalSettings.ajaxTrustedUrl[originalUrl])drupalSettings.ajaxTrustedUrl[this.url]=true;const ajax=this;ajax.options={url:ajax.url,data:ajax.submit,isInProgress(){return ajax.ajaxing;},beforeSerialize(elementSettings,options){return ajax.beforeSerialize(elementSettings,options);},beforeSubmit(formValues,elementSettings,options){ajax.ajaxing=true;ajax.preCommandsFocusedElementSelector=null;return ajax.beforeSubmit(formValues,elementSettings,options);},beforeSend(xmlhttprequest,options){ajax.ajaxing=true;return ajax.beforeSend(xmlhttprequest,options);},success(response,status,xmlhttprequest){ajax.preCommandsFocusedElementSelector=document.activeElement.getAttribute('data-drupal-selector');if(typeof response==='string')response=JSON.parse(response);if(response!==null&&!drupalSettings.ajaxTrustedUrl[ajax.url])if(xmlhttprequest.getResponseHeader('X-Drupal-Ajax-Token')!=='1'){const customMessage=Drupal.t('The response failed verification so will not be processed.');return ajax.error(xmlhttprequest,ajax.url,customMessage);}return (Promise.resolve(ajax.success(response,status)).then(()=>{ajax.ajaxing=false;
47$(document).trigger('ajaxSuccess',[xmlhttprequest,this]);$(document).trigger('ajaxComplete',[xmlhttprequest,this]);if(--$.active===0)$(document).trigger('ajaxStop');}));},error(xmlhttprequest,status,error){ajax.ajaxing=false;},complete(xmlhttprequest,status){if(status==='error'||status==='parsererror')return ajax.error(xmlhttprequest,ajax.url);},dataType:'json',jsonp:false,method:ajax.httpMethod};if(elementSettings.dialog)ajax.options.data.dialogOptions=elementSettings.dialog;if(!ajax.options.url.includes('?'))ajax.options.url+='?';else ajax.options.url+='&';let wrapper=`drupal_${elementSettings.dialogType||'ajax'}`;if(elementSettings.dialogRenderer)wrapper+=`.${elementSettings.dialogRenderer}`;ajax.options.url+=`${Drupal.ajax.WRAPPER_FORMAT}=${wrapper}`;$(ajax.element).on(elementSettings.event,function(event){if(!drupalSettings.ajaxTrustedUrl[ajax.url]&&!Drupal.url.isLocal(ajax.url))throw new Error(Drupal.t('The callback URL is not local and not trusted: !url',{'!url':ajax.url}));return ajax.eventResponse(this,event);});if(elementSettings.keypress)$(ajax.element).on('keypress',function(event){return ajax.keypressResponse(this,event);});if(elementSettings.prevent)$(ajax.element).on(elementSettings.prevent,false);};Drupal.ajax.WRAPPER_FORMAT='_wrapper_format';Drupal.Ajax.AJAX_REQUEST_PARAMETER='_drupal_ajax';Drupal.Ajax.prototype.execute=function(){if(this.ajaxing)return;try{this.beforeSerialize(this.element,this.options);return $.ajax(this.options);}catch(e){this.ajaxing=false;window.alert(`An error occurred while attempting to process ${this.options.url}: ${e.message}`);return $.Deferred().reject();}};Drupal.Ajax.prototype.keypressResponse=function(element,event){const ajax=this;if(event.which===13||(event.which===32&&element.type!=='text'&&element.type!=='textarea'&&element.type!=='tel'&&element.type!=='number')){event.preventDefault();event.stopPropagation();$(element).trigger(ajax.elementSettings.event);}};Drupal.Ajax.prototype.eventResponse=function(element,event){event.preventDefault();event.stopPropagation();const ajax=this;if(ajax.ajaxing)return;try{if(ajax.$form){if(ajax.setClick)element.form.clk=element;if(event.which!='3'||(event.which=='3'&&!element.getAttribute('name').endsWith('_remove_button')))ajax.$form.ajaxSubmit(ajax.options);}else{ajax.beforeSerialize(ajax.element,ajax.options);$.ajax(ajax.options);}}catch(e){ajax.ajaxing=false;window.alert(`An error occurred while attempting to process ${ajax.options.url}: ${e.message}`);}};Drupal.Ajax.prototype.beforeSerialize=function(element,options){if(this.$form&&document.body.contains(this.$form.get(0))){const settings=this.settings||drupalSettings;Drupal.detachBehaviors(this.$form.get(0),settings,'serialize');}options.data[Drupal.Ajax.AJAX_REQUEST_PARAMETER]=1;const pageState=drupalSettings.ajaxPageState;options.data['ajax_page_state[theme]']=pageState.theme;options.data['ajax_page_state[theme_token]']=pageState.theme_token;options.data['ajax_page_state[libraries]']=pageState.libraries;};Drupal.Ajax.prototype.beforeSubmit=function(formValues,element,options){};Drupal.Ajax.prototype.beforeSend=function(xmlhttprequest,options){if(this.$form){options.extraData=options.extraData||{};options.extraData.ajax_iframe_upload='1';const v=$.fieldValue(this.element);if(v!==null)options.extraData[this.element.name]=v;}$(this.element).prop('disabled',true);if(!this.progress||!this.progress.type)return;const progressIndicatorMethod=`setProgressIndicator${this.progress.type.slice(0,1).toUpperCase()}${this.progress.type.slice(1).toLowerCase()}`;if(progressIndicatorMethod in this&&typeof this[progressIndicatorMethod]==='function')this[progressIndicatorMethod].call(this);};Drupal.theme.ajaxProgressThrobber=(message)=>{const messageMarkup=typeof message==='string'?Drupal.theme('ajaxProgressMessage',message):'';const throbber='<div class="throbber"> </div>';return `<div class="ajax-progress ajax-progress-throbber">${throbber}${messageMarkup}</div>`;};Drupal.theme.ajaxProgressIndicatorFullscreen=()=>'<div class="ajax-progress ajax-progress-fullscreen"> </div>';Drupal.theme.ajaxProgressMessage=(message)=>`<div class="message">${message}</div>`;Drupal.theme.ajaxProgressBar=($element)=>$('<div class="ajax-progress ajax-progress-bar"></div>').append($element);Drupal.Ajax.prototype.setProgressIndicatorBar=function(){const progressBar=new Drupal.ProgressBar(`ajax-progress-${this.element.i
47d}`,$.noop,this.progress.method,$.noop);if(this.progress.message)progressBar.setProgress(-1,this.progress.message);if(this.progress.url)progressBar.startMonitoring(this.progress.url,this.progress.interval||1500);this.progress.element=$(Drupal.theme('ajaxProgressBar',progressBar.element));this.progress.object=progressBar;$(this.element).after(this.progress.element);};Drupal.Ajax.prototype.setProgressIndicatorThrobber=function(){this.progress.element=$(Drupal.theme('ajaxProgressThrobber',this.progress.message));if($(this.element).closest('[data-drupal-ajax-container]').length)$(this.element).closest('[data-drupal-ajax-container]').after(this.progress.element);else $(this.element).after(this.progress.element);};Drupal.Ajax.prototype.setProgressIndicatorFullscreen=function(){this.progress.element=$(Drupal.theme('ajaxProgressIndicatorFullscreen'));$('body').append(this.progress.element);};Drupal.Ajax.prototype.commandExecutionQueue=function(response,status){const ajaxCommands=this.commands;return Object.keys(response||{}).reduce((executionQueue,key)=>executionQueue.then(()=>{const {command}=response[key];if(command&&ajaxCommands[command])return ajaxCommands[command](this,response[key],status);}),Promise.resolve());};Drupal.Ajax.prototype.success=function(response,status){if(this.progress.element)$(this.progress.element).remove();if(this.progress.object)this.progress.object.stopMonitoring();$(this.element).prop('disabled',false);const elementParents=$(this.element).parents('[data-drupal-selector]').addBack().toArray();const focusChanged=Object.keys(response||{}).some((key)=>{const {command,method}=response[key];return (command==='focusFirst'||command==='openDialog'||(command==='invoke'&&method==='focus'));});return (this.commandExecutionQueue(response,status).then(()=>{if(!focusChanged){let target=false;if(this.element){if($(this.element).data('refocus-blur')&&this.preCommandsFocusedElementSelector)target=document.querySelector(`[data-drupal-selector="${this.preCommandsFocusedElementSelector}"]`);if(!target&&!$(this.element).data('disable-refocus')){for(let n=elementParents.length-1;!target&&n>=0;n--)target=document.querySelector(`[data-drupal-selector="${elementParents[n].getAttribute('data-drupal-selector')}"]`);}}if(target)$(target).trigger('focus');}if(this.$form&&document.body.contains(this.$form.get(0))){const settings=this.settings||drupalSettings;Drupal.attachBehaviors(this.$form.get(0),settings);}this.settings=null;}).catch((error)=>console.error(Drupal.t('An error occurred during the execution of the Ajax response: !error',{'!error':error}))));};Drupal.Ajax.prototype.getEffect=function(response){const type=response.effect||this.effect;const speed=response.speed||this.speed;const effect={};if(type==='none'){effect.showEffect='show';effect.hideEffect='hide';effect.showSpeed='';}else if(type==='fade'){effect.showEffect='fadeIn';effect.hideEffect='fadeOut';effect.showSpeed=speed;}else{effect.showEffect=`${type}Toggle`;effect.hideEffect=`${type}Toggle`;effect.showSpeed=speed;}return effect;};Drupal.Ajax.prototype.error=function(xmlhttprequest,uri,customMessage){if(this.progress.element)$(this.progress.element).remove();if(this.progress.object)this.progress.object.stopMonitoring();$(this.wrapper).show();$(this.element).prop('disabled',false);if(this.$form&&document.body.contains(this.$form.get(0))){const settings=this.settings||drupalSettings;Drupal.attachBehaviors(this.$form.get(0),settings);}throw new Drupal.AjaxError(xmlhttprequest,uri,customMessage);};Drupal.theme.ajaxWrapperNewContent=($newContent,ajax,response)=>(response.effect||ajax.effect)!=='none'&&$newContent.filter((i)=>!(($newContent[i].nodeName==='#comment'||($newContent[i].nodeName==='#text'&&/^(\s|\n|\r)*$/.test($newContent[i].textContent))))).length>1?Drupal.theme('ajaxWrapperMultipleRootElements',$newContent):$newContent;Drupal.theme.ajaxWrapperMultipleRootElements=($elements)=>$('<div></div>').append($elements);Drupal.AjaxCommands=function(){};Drupal.AjaxCommands.prototype={insert(ajax,response){const $wrapper=response.selector?$(response.selector):$(ajax.wrapper);const method=response.method||ajax.method;const effect=ajax.getEffect(response);const settings=response.settings||ajax.settings||drupalSettings;const parseHTML=(htmlString)=>{const fragment=document.createDocumentFragment();const template=fragment.appendChild(document.createElement('template'));template.innerHTML=htmlString;return template.content.childNodes;};let $newContent=$(parseHTML(response.data));
47$newContent=Drupal.theme('ajaxWrapperNewContent',$newContent,ajax,response);switch(method){case 'html':case 'replaceWith':case 'replaceAll':case 'empty':case 'remove':Drupal.detachBehaviors($wrapper.get(0),settings);break;default:break;}$wrapper[method]($newContent);if(effect.showEffect!=='show')$newContent.hide();const $ajaxNewContent=$newContent.find('.ajax-new-content');if($ajaxNewContent.length){$ajaxNewContent.hide();$newContent.show();$ajaxNewContent[effect.showEffect](effect.showSpeed);}else{if(effect.showEffect!=='show')$newContent[effect.showEffect](effect.showSpeed);}$newContent.each((index,element)=>{if(element.nodeType===Node.ELEMENT_NODE&&document.documentElement.contains(element))Drupal.attachBehaviors(element,settings);});},remove(ajax,response,status){const settings=response.settings||ajax.settings||drupalSettings;$(response.selector).each(function(){Drupal.detachBehaviors(this,settings);}).remove();},changed(ajax,response,status){const $element=$(response.selector);if(!$element.hasClass('ajax-changed')){$element.addClass('ajax-changed');if(response.asterisk)$element.find(response.asterisk).append(` <abbr class="ajax-changed" title="${Drupal.t('Changed')}">*</abbr> `);}},alert(ajax,response,status){window.alert(response.text);},announce(ajax,response){if(response.priority)Drupal.announce(response.text,response.priority);else Drupal.announce(response.text);},redirect(ajax,response,status){window.location=response.url;},css(ajax,response,status){$(response.selector).css(response.argument);},settings(ajax,response,status){const ajaxSettings=drupalSettings.ajax;if(ajaxSettings)Drupal.ajax.expired().forEach((instance)=>{if(instance.selector){const selector=instance.selector.replace('#','');if(selector in ajaxSettings)delete ajaxSettings[selector];}});if(response.merge)$.extend(true,drupalSettings,response.settings);else ajax.settings=response.settings;},data(ajax,response,status){$(response.selector).data(response.name,response.value);},focusFirst(ajax,response,status){let focusChanged=false;const container=document.querySelector(response.selector);if(container){const tabbableElements=tabbable(container);if(tabbableElements.length){tabbableElements[0].focus();focusChanged=true;}else{if(isFocusable(container)){container.focus();focusChanged=true;}}}if(ajax.hasOwnProperty('element')&&!focusChanged)ajax.element.focus();},invoke(ajax,response,status){const $element=$(response.selector);$element[response.method](...response.args);},restripe(ajax,response,status){$(response.selector).find('> tbody > tr:visible, > tr:visible').removeClass('odd even').filter(':even').addClass('odd').end().filter(':odd').addClass('even');},update_build_id(ajax,response,status){document.querySelectorAll(`input[name="form_build_id"][value="${response.old}"]`).forEach((item)=>{item.value=response.new;});},add_css(ajax,response,status){const allUniqueBundleIds=response.data.map(function(style){const uniqueBundleId=style.href;if(!loadjs.isDefined(uniqueBundleId))loadjs(`css!${style.href}`,uniqueBundleId,{before(path,styleEl){Object.keys(style).forEach((attributeKey)=>{styleEl.setAttribute(attributeKey,style[attributeKey]);});}});return uniqueBundleId;});return new Promise((resolve,reject)=>{loadjs.ready(allUniqueBundleIds,{success(){resolve();},error(depsNotFound){const message=Drupal.t(`The following files could not be loaded: @dependencies`,{'@dependencies':depsNotFound.join(', ')});reject(message);}});});},message(ajax,response){const messages=new Drupal.Message(document.querySelector(response.messageWrapperQuerySelector));if(response.clearPrevious)messages.clear();messages.add(response.message,response.messageOptions);},add_js(ajax,response,status){const parentEl=document.querySelector(response.selector||'body');const settings=ajax.settings||drupalSettings;const allUniqueBundleIds=response.data.map((script)=>{const uniqueBundleId=script.src;if(!loadjs.isDefined(uniqueBundleId))loadjs(script.src,uniqueBundleId,{async:false,before(path,scriptEl){Object.keys(script).forEach((attributeKey)=>{scriptEl.setAttribute(attributeKey,script[attributeKey]);});parentEl.appendChild(scriptEl);return false;}});return uniqueBundleId;});return new Promise((resolve,reject)=>{loadjs.ready(allUniqueBundleIds,{success(){Drupal.attachBehaviors(parentEl,settings);resolve();},error(depsNotFound){const message=Drupal.t(`The following files could not be loaded: @dependencies`,{'@dependencies':depsNotFound.join(', ')});reject(message);}});});},scrollTop(ajax,response){document.querySelector(response.selector)?.scrollIntoView();}};const stopEvent=(xhr,settings)=>{return (xhr.getResponseHeader('X-Drupal-Ajax-Token')==='1'&&typeof settings.isInProgress==='function'&&settings.isInProgress());};$.extend(true,$.event.special,{ajaxSuccess:{trigger(event,xhr,settings){if(stopEvent(xhr,settings))return false;}},ajaxComplete:{trigger(event,xhr,settings){if(stopEvent(xhr,settings)){$.active++;return false;}}}});})(jQuery,window,Drupal,drupalSettings,loadjs,window.tabbable);; 48(($)=>{let cachedScrollbarWidth=null;const {max,abs}=Math;const regexHorizontal=/left|center|right/;const regexVertical=/top|center|bottom/;const regexOffset=/[+-]\d+(\.[\d]+)?%?/;const regexPosition=/^\w+/;const _position=$.fn.position;function getOffsets(offsets,width,height){return [parseFloat(offsets[0])*(typeof offsets[0]==='string'&&offsets[0].endsWith('%')?width/100:1),parseFloat(offsets[1])*(typeof offsets[1]==='string'&&offsets[1].endsWith('%')?height/100:1)];}function parseCss(element,property){return parseInt(window.getComputedStyle(element)[property],10)||0;}function getDimensions(elem){const raw=elem[0];if(raw.nodeType===Node.DOCUMENT_NODE)return {width:elem.width(),height:elem.height(),offset:{top:0,left:0}};if(!!raw&&raw===raw.window)return {width:elem.width(),height:elem.height(),offset:{top:elem.scrollTop(),left:elem.scrollLeft()}};if(raw.preventDefault)return {width:0,height:0,offset:{top:raw.pageY,left:raw.pageX}};return {width:elem.outerWidth(),height:elem.outerHeight(),offset:elem.offset()};}const collisions={fit:{left(position,data){const {within}=data;const withinOffset=within.isWindow?within.scrollLeft:within.offset.left;const outerWidth=within.width;const collisionPosLeft=position.left-data.collisionPosition.marginLeft;const overLeft=withinOffset-collisionPosLeft;const overRight=collisionPosLeft+data.collisionWidth-outerWidth-withinOffset;let newOverRight;if(data.collisionWidth>outerWidth)if(overLeft>0&&overRight<=0){newOverRight=position.left+overLeft+data.collisionWidth-outerWidth-withinOffset;position.left+=overLeft-newOverRight;}else if(overRight>
480&&overLeft<=0)position.left=withinOffset;else if(overLeft>overRight)position.left=withinOffset+outerWidth-data.collisionWidth;else position.left=withinOffset;else if(overLeft>0)position.left+=overLeft;else if(overRight>0)position.left-=overRight;else position.left=max(position.left-collisionPosLeft,position.left);},top(position,data){const {within}=data;const withinOffset=within.isWindow?within.scrollTop:within.offset.top;const outerHeight=data.within.height;const collisionPosTop=position.top-data.collisionPosition.marginTop;const overTop=withinOffset-collisionPosTop;const overBottom=collisionPosTop+data.collisionHeight-outerHeight-withinOffset;let newOverBottom;if(data.collisionHeight>outerHeight)if(overTop>0&&overBottom<=0){newOverBottom=position.top+overTop+data.collisionHeight-outerHeight-withinOffset;position.top+=overTop-newOverBottom;}else if(overBottom>0&&overTop<=0)position.top=withinOffset;else if(overTop>overBottom)position.top=withinOffset+outerHeight-data.collisionHeight;else position.top=withinOffset;else if(overTop>0)position.top+=overTop;else if(overBottom>0)position.top-=overBottom;else position.top=max(position.top-collisionPosTop,position.top);}},flip:{left(position,data){const {within}=data;const withinOffset=within.offset.left+within.scrollLeft;const outerWidth=within.width;const offsetLeft=within.isWindow?within.scrollLeft:within.offset.left;const collisionPosLeft=position.left-data.collisionPosition.marginLeft;const overLeft=collisionPosLeft-offsetLeft;const overRight=collisionPosLeft+data.collisionWidth-outerWidth-offsetLeft;const myOffset=data.my[0]==='left'?-data.elemWidth:data.my[0]==='right'?data.elemWidth:0;const atOffset=data.at[0]==='left'?data.targetWidth:data.at[0]==='right'?-data.targetWidth:0;const offset=-2*data.offset[0];let newOverRight;let newOverLeft;if(overLeft<0){newOverRight=position.left+myOffset+atOffset+offset+data.collisionWidth-outerWidth-withinOffset;if(newOverRight<0||newOverRight<abs(overLeft))position.left+=myOffset+atOffset+offset;}else{if(overRight>0){newOverLeft=position.left-data.collisionPosition.marginLeft+myOffset+atOffset+offset-offsetLeft;if(newOverLeft>0||abs(newOverLeft)<overRight)position.left+=myOffset+atOffset+offset;}}},top(position,data){const {within}=data;const withinOffset=within.offset.top+within.scrollTop;const outerHeight=within.height;const offsetTop=within.isWindow?within.scrollTop:within.offset.top;const collisionPosTop=position.top-data.collisionPosition.marginTop;const overTop=collisionPosTop-offsetTop;const overBottom=collisionPosTop+data.collisionHeight-outerHeight-offsetTop;const top=data.my[1]==='top';const myOffset=top?-data.elemHeight:data.my[1]==='bottom'?data.elemHeight:0;const atOffset=data.at[1]==='top'?data.targetHeight:data.at[1]==='bottom'?-data.targetHeight:0;const offset=-2*data.offset[1];let newOverTop;let newOverBottom;if(overTop<0){newOverBottom=position.top+myOffset+atOffset+offset+data.collisionHeight-outerHeight-withinOffset;if(newOverBottom<0||newOverBottom<abs(overTop))position.top+=myOffset+atOffset+offset;}else{if(overBottom>0){newOverTop=position.top-data.collisionPosition.marginTop+myOffset+atOffset+offset-offsetTop;if(newOverTop>0||abs(newOverTop)<overBottom)position.top+=myOffset+atOffset+offset;}}}},flipfit:{left(...args){collisions.flip.left.apply(this,args);collisions.fit.left.apply(this,args);},top(...args){collisions.flip.top.apply(this,args);collisions.fit.top.apply(this,args);}}};$.position={scrollbarWidth(){if(cachedScrollbarWidth!==undefined)return cachedScrollbarWidth;const div=$('<div '+"style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'>"+"<div style='height:100px;width:auto;'></div></div>");const innerDiv=div.children()[0];$('body').append(div);const w1=innerDiv.offsetWidth;div[0].style.overflow='scroll';let w2=innerDiv.offsetWidth;if(w1===w2)w2=div[0].clientWidth;div.remove();cachedScrollbarWidth=w1-w2;return cachedScrollbarWidth;},getScrollInfo(within){const overflowX=within.isWindow||within.isDocument?'':window.getComputedStyle(within.element[0])['overflow-x'];const overflowY=within.isWindow||within.isDocument?'':window.getComputedStyle(within.element[0])['overflow-y'];const hasOverflowX=overflowX==='scroll'||(overflowX==='auto'&&within.width<within.element[0].scrollWidth);const hasOverflowY=overflowY==='scroll'||(overflowY==='auto'&&within.height<within.element[0].scrollHeight);return {width:hasOverflowY?$.position.scrollbarWidth():0,height:hasOverflowX?$.position.scrollbarWidth():0};},getWithinInfo(element){const withinElement=$(element||window);const isWindow=!!withinElement[0]&&withinElement[0]===withinElement[0].window;const isDocument=!!withinElement[0]&&withinElement[0].nodeType===Node.DOCUMENT_NODE;const hasOffset=!isWindow&&!isDocument;return {element:withinElement,isWindow,isDocument,offset:hasOffset?$(element).offset():{left:0,top:0},scrollLeft:withinElement.scrollLeft(),scrollTop:withinElement.scrollTop(),width:withinElement.outerWidth(),height:withinElement.outerHeight()};}};$.fn.position=function(options){if(!options||!options.of)return _position.apply(this,arguments);options=$.extend({},options);const within=$.position.getWithinInfo(options.within);const scrollInfo=$.position.getScrollInfo(within);const collision=(options.collision||'flip').split(' ');const offsets={};const target=typeof options.of==='string'?$(document).find(options.of):$(options.of);const dimensions=getDimensions(target);const targetWidth=dimensions.width;const targetHeight=dimensions.height;const targetOffset=dimensions.offset;if(target[0].preventDefault)options.at='left top';const basePosition=$.extend({},targetOffset);$.each(['my','at'],function(){let pos=(options[this]||'').split(' ');
48if(pos.length===1)pos=regexHorizontal.test(pos[0])?pos.concat(['center']):regexVertical.test(pos[0])?['center'].concat(pos):['center','center'];pos[0]=regexHorizontal.test(pos[0])?pos[0]:'center';pos[1]=regexVertical.test(pos[1])?pos[1]:'center';const horizontalOffset=regexOffset.exec(pos[0]);const verticalOffset=regexOffset.exec(pos[1]);offsets[this]=[horizontalOffset?horizontalOffset[0]:0,verticalOffset?verticalOffset[0]:0];options[this]=[regexPosition.exec(pos[0])[0],regexPosition.exec(pos[1])[0]];});if(collision.length===1)collision[1]=collision[0];if(options.at[0]==='right')basePosition.left+=targetWidth;else{if(options.at[0]==='center')basePosition.left+=targetWidth/2;}if(options.at[1]==='bottom')basePosition.top+=targetHeight;else{if(options.at[1]==='center')basePosition.top+=targetHeight/2;}const atOffset=getOffsets(offsets.at,targetWidth,targetHeight);basePosition.left+=atOffset[0];basePosition.top+=atOffset[1];return this.each(function(){let using;const elem=$(this);const elemWidth=elem.outerWidth();const elemHeight=elem.outerHeight();const marginLeft=parseCss(this,'marginLeft');const marginTop=parseCss(this,'marginTop');const collisionWidth=elemWidth+marginLeft+parseCss(this,'marginRight')+scrollInfo.width;const collisionHeight=elemHeight+marginTop+parseCss(this,'marginBottom')+scrollInfo.height;const position=$.extend({},basePosition);const myOffset=getOffsets(offsets.my,elem.outerWidth(),elem.outerHeight());if(options.my[0]==='right')position.left-=elemWidth;else{if(options.my[0]==='center')position.left-=elemWidth/2;}if(options.my[1]==='bottom')position.top-=elemHeight;else{if(options.my[1]==='center')position.top-=elemHeight/2;}position.left+=myOffset[0];position.top+=myOffset[1];const collisionPosition={marginLeft,marginTop};$.each(['left','top'],function(i,dir){if(collisions[collision[i]])collisions[collision[i]][dir](position,{targetWidth,targetHeight,elemWidth,elemHeight,collisionPosition,collisionWidth,collisionHeight,offset:[atOffset[0]+myOffset[0],atOffset[1]+myOffset[1]],my:options.my,at:options.at,within,elem});});if(options.using)using=function(props){const left=targetOffset.left-position.left;const right=left+targetWidth-elemWidth;const top=targetOffset.top-position.top;const bottom=top+targetHeight-elemHeight;const feedback={target:{element:target,left:targetOffset.left,top:targetOffset.top,width:targetWidth,height:targetHeight},element:{element:elem,left:position.left,top:position.top,width:elemWidth,height:elemHeight},horizontal:right<0?'left':left>0?'right':'center',vertical:bottom<0?'top':top>0?'bottom':'middle'};if(targetWidth<elemWidth&&abs(left+right)<targetWidth)feedback.horizontal='center';if(targetHeight<elemHeight&&abs(top+bottom)<targetHeight)feedback.vertical='middle';if(max(abs(left),abs(right))>max(abs(top),abs(bottom)))feedback.important='horizontal';else feedback.important='vertical';options.using.call(this,props,feedback);};elem.offset($.extend(position,{using}));});};if(!$.hasOwnProperty('ui'))$.ui={};$.ui.position=collisions;})(jQuery);; 49(function($,Drupal,drupalSettings){'use strict';if(!Drupal.autocomplete)return;var autocomplete={};autocomplete.getSettings=function(input,globalSettings){globalSettings=globalSettings||drupalSettings||{};var settings={auto_submit:false,delay:0,min_length:1,selector:':submit'};var search=$(input).data('search-api-autocomplete-search');if(search&&globalSettings.search_api_autocomplete&&globalSettings.search_api_autocomplete[search])$.extend(settings,globalSettings.search_api_autocomplete[search]);return settings;};Drupal.behaviors.searchApiAutocomplete={attach:function(context,settings){$(once('search-api-autocomplete','.ui-autocomplete-input[data-search-api-autocomplete-search]',context)).each(function(){var uiAutocomplete=$(this).data('ui-autocomplete');if(!uiAutocomplete)return;const classAutocomplete=$(this).attr('data-search-api-autocomplete-search');var $element=uiAutocomplete.menu.element;$element.addClass('search-api-autocomplete-search');$element.addClass(`autocomplete-type-${classAutocomplete}`);var elementSettings=autocomplete.getSettings(this,settings);if(elementSettings['delay'])uiAutocomplete.options['delay']=elementSettings['delay'];if(elementSettings['min_length'])uiAutocomplete.options['minLength']=elementSettings['min_length'];var oldSelect=uiAutocomplete.options.select;uiAutocomplete.options.select=function(event,ui){if(ui.item.url){location.href=ui.item.url;return false;}var ret=oldSelect.apply(this,arguments);if(elementSettings['auto_submit']&&elementSettings['selector'])$(elementSettings['selector'],this.form).trigger('click');return ret;};});}};Drupal.SearchApiAutocomplete=autocomplete;})(jQuery,Drupal,drupalSettings);; 50((Drupal,$)=>{Drupal.behaviors.spamspan={attach:(context)=>{$("span.spamspan",context).each(function(){if($("span.o",this).length)$("span.o",this).replaceWith(".");const _mail=`${$("span.u",this).text()}@${$("span.d",this).text()}`.replace(/\s+/g,"");let _mailto=`mailto:${_mail}`;
50if($("span.h",this).length){const _headerText=$("span.h",this).text().replace(/^ ?\((.*)\) ?$/,"$1");const _headers=$.map(_headerText.split(/, /),(n)=>n.replace(/: /,"="));const _headerString=_headers.join("&");if(_headerString)_mailto+=`?${_headerString}`;}let _anchorContent=$("span.t",this).html();if(_anchorContent){_anchorContent=_anchorContent.replace(/^ ?\(([^]*)\) ?$/,"$1");_anchorContent=_anchorContent.replaceAll("[at]","@").replaceAll("[dot]",".");}let _attributes='';$.each(this.attributes,function(){if(this.specified&&this.name.startsWith("data-spamspan-")){const sanitizedValue=Drupal.checkPlain(this.value);_attributes+=`${this.name.substring("data-spamspan-".length)}="${sanitizedValue}" `;}});let _tag="<a></a>";if(_attributes){_attributes=_attributes.replace(/on\w+=".*?"/g,'');_tag=`<a ${_attributes}></a>`;}$(this).after($(_tag).attr("href",_mailto).html(_anchorContent||_mail).addClass("spamspan")).remove();});}};})(Drupal,jQuery);; 51var detectBlocInfos=function(){var t=document.querySelector(".hp-infos"),e=document.querySelector(".hp-shortcuts");t&&null!=e&&e.classList.add("shortcuts-translates");};window.addEventListener("load",function(){detectBlocInfos();});; 52var toggleSearch=function(){var t=document.querySelector("[data-js-header-search-toggle]"),a=document.querySelector("[data-js-header-menu-desktop]"),r=document.querySelectorAll(".header__menu__submenu"),n=document.querySelector("[data-toggle-menu]");null!=t&&t.addEventListener("click",function(){var e=document.querySelector(".header__search");"true"===t.getAttribute("aria-expanded")?t.setAttribute("aria-expanded","false"):t.setAttribute("aria-expanded","true"),null!=e&&e.classList.toggle("search-active"),a.classList.remove("menu-open"),r.forEach(function(e){return e.classList.remove("active");}),n.classList.remove("btn-open");});};window.addEventListener("DOMContentLoaded",function(){toggleSearch();});; 53var htmlRoot=document.querySelector("html"),header=document.querySelector(".header"),menu=header.querySelector("[data-js-header-menu-desktop]"),previousBtns=document.querySelectorAll(".header__menu__previous"),submenus=document.querySelectorAll(".header__menu__submenu"),w=window.innerWidth;function toggleClasses(e,n){if(e.length!==n.length)console.error("Il manque un élement ou une classe teubé.");else for(var r=0;r<e.length;r++)e[r].classList.toggle(n[r]);}var stickyHeader=function(){40<window.pageYOffset&&w<1135?header.classList.add("scrolled"):header.classList.remove("scrolled");},triggerMenu=function(){var e=header.querySelector("[data-toggle-menu]"),n=document.querySelectorAll("[data-js-header-menu-expanded]");null!=e&&e.addEventListener("click",function(){toggleClasses([e,menu,htmlRoot],["btn-open","menu-open","overflow-hidden"]),submenus.forEach(function(e){return e.classList.remove("active");}),header.classList.contains("scrolled")&&window.pageYOffset<40&&w<1135?header.classList.remove("scrolled"):header.classList.add("scrolled");}),n.forEach(function(n){n.addEventListener("click",function(){var e=null==(e=n.parentNode)?void 0:e.querySelector(".header__menu__submenu");null!=e&&e.classList.add("active");});}),handlePrevious();},handlePrevious=function(){w<1135&&previousBtns.forEach(function(e){var n=e.parentNode,n=null==(n=null==(n=null==(n=null==n?void 0:n.parentNode)?void 0:n.parentNode)?void 0:n.querySelector("a"))?void 0:n.innerHTML;e.innerHTML=n;});};window.addEventListener("load",function(){header&&(stickyHeader(),triggerMenu()),document.onscroll=function(){stickyHeader();};});; 54(()=>{function q(e,t){return void 0===t&&(t=1),e.getBoundingClientRect().top<=(window.innerHeight||document.documentElement.clientHeight)/t;}function y(e,t){setTimeout(function(){e&&e.classList.add("fadeIn");},t);}function e(){for(var t,e=document.querySelector(".header"),o=document.querySelector(".hp-highlights"),l=document.querySelector(".hp-shortcuts"),n=document.querySelectorAll(".hp-title"),r=document.querySelector(".hp-news-events__filters"),c=document.querySelector(".hp-news-events__list"),i=document.querySelector(".socials__links"),u=document.querySelector(".social_wall_listing"),s=document.querySelector(".hp-throwback__link"),d=document.querySelectorAll(".media-bloc"),f=document.querySelector(".kiosk__list__item"),h=[e,o,l].filter(
54Boolean),m=0;m<h.length;m++)y(h[m],300);if(l&&(t=l.querySelectorAll(".shortcut-item"),setTimeout(function(){for(var e=0;e<t.length;e++)y(t[e],200*e);},600)),n)for(m=0;m<n.length;m++)q(n[m],1.2)&&y(n[m],200);if(r){if(q(r,1.2)&&r.classList.add("scrolled"),c)for(var a=c.querySelectorAll(".hp-news-events__item"),m=0;m<a.length;m++)q(a[m],1)&&y(a[m],200*m);if(i)for(var _=i.querySelectorAll("a"),m=0;m<_.length;m++)q(_[m],1)&&y(_[m],200*m);if(u){a=u.querySelectorAll(".social-item");if(q(u,1)){y(u,200);for(m=0;m<a.length;m++)y(a[m],100*m);}}if(s&&q(s,1.2)&&y(s,200),d)for(m=0;m<d.length;m++)q(d[m],1.2)&&y(d[m],200*m);f&&q(f,1.2)&&y(f,200);}}e(),window.addEventListener("scroll",function(){e();});})();;
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.