1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 2(function($,Drupal,drupalSettings,once){"use strict";Drupal.behaviors.eulerian_service={attach:function(context){if(typeof tarteaucitron=="undefined")return;once('eulerian_service_init','body',context).forEach(function(){window.eulerian_has_pushed=false;tarteaucitron.services["eulerian-analytics"]={"key":"eulerian-analytics","type":"analytic","name":"Eulerian Analytics","needConsent":drupalSettings.eulerian_service.needConsent,"readmoreLink":"https://tarteaucitron.io/service/eulerian","cookies":["etuix"],"uri":"https://eulerian.com/vie-privee","js":function(){"use strict";(function(x,w){if(!x._ld){x._ld=1;let ff=function(){if(x._f)x._f('tac',tarteaucitron,1);};w.__eaGenericCmpApi=function(f){x._f=f;ff();};w.addEventListener("tac.close_alert",ff);w.addEventListener("tac.close_panel",ff);}})(this,window);ECall();},"fallback":function(){this.js();}};});}};function ECall(){var settings=drupalSettings.eulerian_service;window.EA_datalayer=[];var useApiAnalytics=false;if(drupalSettings.eulerian_service.use_analytics!=undefined)useApiAnalytics=drupalSettings.eulerian_service.use_analytics;if(useApiAnalytics&&window.dsfr.analytics.opt.isDisabled)return;var propNames=["site_entity","site_environment","site_language","site_target","site_type","content_id","content_name","content_type","content_date","page_name"];propNames.forEach((name)=>{if(settings.hasOwnProperty(name)&&settings[name]!="")if(useApiAnalytics){let propertyName=name.replace('site_','');window.dsfr.analytics.site[propertyName]=settings[name];}else window.EA_datalayer.push(name,settings[name]);});if($.fn.hasOwnProperty("custom_eulerian_service"))$.fn.custom_eulerian_service();var useOptoutBlock=drupalSettings.eulerian_service.optout_block;if(useOptoutBlock)$("form#optout-form input.tarteaucitron-optout-checkbox").each(function(){if(window._EA_disabled()||(useApiAnalytics&&window.dsfr.analytics.opt.isDisabled)){$(this).prop("checked",true);$(this).siblings('label').text(Drupal.t("Vous n'êtes actuellement pas suivi(e). Décochez cette case pour ne plus être exclu(e)."));}else{$(this).prop("checked",false);$(this).siblings('label').text(Drupal.t("Vous n'êtes pas exclu(e). Cochez cette case pour vous exclure."));}this.addEventListener("click",function(e){if(useApiAnalytics)window.dsfr.analytics.opt.toggle();else window._EA_toggle();location.reload();});});if(window.eulerian_has_pushed==false){if(useApiAnalytics)window.dsfr.analytics.collect();else window.EA_push(window.EA_datalayer);window.eulerian_has_pushed=true;}}})(jQuery,Drupal,drupalSettings,once);; 3(function($,Drupal,drupalSettings){'use strict';Drupal.behaviors.sdpToggleModal={attach:function(context){once('filters-hr','.sdp-filters-hr').forEach(function(e){const filtersOpen=e.querySelector('.sdp-filters-hr__button-open');const filtersClose=e.querySelector('.sdp-filters-hr__button-hide');const filtersContent=e.querySelector('.sdp-filters-hr__filters');const openedClass='sdp-filters-hr__filters--opened';if(!filtersOpen||!filtersContent||!filtersClose)return;filtersOpen.addEventListener('click',function(){filtersContent.classList.add(openedClass);document.body.style.overflow="hidden";});filtersClose.addEventListener('click',function(){filtersContent.classList.remove(openedClass);document.body.style.overflow="initial";});});}};Drupal.behaviors.sdpFiltersDropdown={attach:function(context){once('filters-dropdown','.sdp-filters-dropdown').forEach(function(e){const dropDownButton=e.querySelector('.sdp-filters-dropdown__open');const dropDownContent=e.querySelector('.sdp-filters-dropdown__content');const buttonActiveClass='sdp-filters-dropdown__open--active';const calcHeightClass='sdp-filters-dropdown__content--calc-height';const checkboxesInput=e.querySelectorAll('input[type=checkbox]');if(!dropDownButton||!dropDownContent)return;checkboxesInput.forEach((element)=>{element.setAttribute('tabindex',-1);});dropDownButton.addEventListener('click',function(event){event.preventDefault();let ariaExpandedStatus=dropDownButton.getAttribute('aria-expanded');if(ariaExpandedStatus=="false"&&!dropDownButton.classList.contains(buttonActiveClass)){dropDownButton.setAttribute('aria-expanded',true);dropDownContent.style.width=dropDownButton.offsetWidth+'px';dropDownButton.classList.add(buttonActiveClass);dropDownContent.classList.add(calcHeightClass);dropDownContent.style.height='';const dropDownContentHeight=dropDownContent.offsetHeight;dropDownContent.classList.remove(calcHeightClass);checkboxesInput.forEach((element)=>{element.setAttribute('tabindex',0);});setTimeout(function(){dropDownContent.style.height=dropDownContentHeight+'px';},0);}else{dropDownButton.setAttribute('aria-expanded',false);dropDownButton.classList.remove(buttonActiveClass);dropDownContent.style.width='';dropDownContent.style.height=0;checkboxesInput.forEach((element)=>{element.setAttribute('tabindex',-1);});}});});}};Drupal.behaviors.sdpHandleFocus={attach:function(context){let allActiveElements=[];once('li-button','li.active > button').forEach(function(element){allActiveElements.push(element);element.addEventListener('click',function name(event){event.preventDefault();const index=allActiveElements.indexOf(element);allActiveElements.splice(index,1);if(allActiveElements.length>0)allActiveElements[0].focus();else $('.sdp-filters-dropdown__open').focus();});});}};Drupal.behaviors.sdpHandleMobileDevices={attach:function(context){once('sdpHandleMobileDevices','header .fr-modal',context).forEach(function(e){function handleDevice(){if(!mobileDeviceDetection()){e.classList.remove('fr-modal');return;}else{e.classList.add("fr-modal");const blockFilters=document.querySelector('#block-filters');const showFiltersButton=document.querySelector('#show-filters');blockFilters.setAttribute('role','dialog');blockFilters.setAttribute('aria-labelledby','filters-section-title');showFiltersButton.addEventListener('click',function(event){if(!blockFilters.classList.contains('sdp-filters-hr__filters--opened'))return;const focusableElements=getKeyboardFocusableElements(blockFilters);const firstFocusable=focusableElements[0];const lastFocusable=focusableElements[focusableElements.length-1];const closeButton=document.querySelector('#hide-filters');blockFilters.setAttribute('aria-modal','true');closeButton.setAttribute('aria-label',"Fermer la fenêtre de filtres");firstFocusable.focus();firstFocusable.addEventListener('keydown',function name(event){if(event.key==="Tab"&&event.shiftKey){event.preventDefault();lastFocusable.focus();}});lastFocusable.addEventListener('keydown',function name(event){if(event.key==="Tab"&&!event.shiftKey){event.preventDefault();firstFocusable.focus();}});const closeModal=function(){blockFilters.classList.remove("sdp-filters-hr__filters--opened");blockFilters.setAttribute('aria-modal','false');
3showFiltersButton.focus();};closeButton.addEventListener('click',function(event){closeModal();});blockFilters.addEventListener('keydown',function(event){if(["Escape","Esc"].includes(event.key))closeModal();});});}}handleDevice();window.addEventListener("resize",handleDevice);});}};function mobileDeviceDetection(){let windowWidth=window.innerWidth;return windowWidth<=992;}function getKeyboardFocusableElements(element=document){return [...element.querySelectorAll('a[href], button, input, textarea, select, details,[tabindex]:not([tabindex="-1"])')].filter((el)=>!el.hasAttribute('disabled')&&!el.getAttribute('aria-hidden'));}})(jQuery,Drupal,drupalSettings);; 4(function(Drupal,once){function enhanceDateInput(input){const message=Drupal.t('Veuillez saisir une date valide. Exemple : 17/03/2025');input.addEventListener('invalid',function(){this.setCustomValidity('');if(!this.validity.valid)this.setCustomValidity(message);});input.addEventListener('input',function(){this.setCustomValidity('');});}Drupal.behaviors.sdpDateError={attach(context){const inputs=once('sdp-date-error','input[type="date"].form-date',context);inputs.forEach(enhanceDateInput);}};})(Drupal,once);; 5(function(Drupal,once){function closeWhenPressEscape(){document.addEventListener('keydown',function(event){if(event.key!=='Escape'&&event.key!=='Esc')return;if(typeof dsfr!=='function')return;const modals=document.querySelectorAll('.fr-modal.sdp-modal-filter');if(!modals||modals.length===0)return;modals.forEach((modal)=>{let openModalButton=document.querySelector('[aria-controls="'+modal.id+'"]');let modalApi=dsfr(modal).modal;if(modalApi&&modalApi.isDisclosed){modalApi.conceal();openModalButton.focus();}});});}Drupal.behaviors.sdpRgaaModal={attach(context){once('sdp-rgaa-modal','html',context).forEach(()=>{closeWhenPressEscape();});}};})(Drupal,once);; 6(function($,Drupal,drupalSettings,once){function initESF(){tarteaucitron.services.embed_social_post_flickr={"key":"embed_social_post_flickr","type":"social","name":"Flickr","uri":"https://www.flickr.com/help/cookies","needConsent":true,"cookies":[],"js":function(){"use strict";tarteaucitron.fallback(['tac_embed_flickr'],function(x){const link=document.createElement('a');link.setAttribute('data-flickr-embed',x.getAttribute('data-flickr-embed'));link.setAttribute('href',x.getAttribute('data-href'));link.setAttribute('title',x.getAttribute('title'));const img=document.createElement('img');img.setAttribute('src',x.getAttribute('data-src'));img.setAttribute('title',x.getAttribute('title'));link.appendChild(img);tarteaucitron.addScript('//embedr.flickr.com/assets/client-code.js');return link.outerHTML;});},"fallback":function(){"use strict";var id='embed_social_post_flickr';tarteaucitron.fallback(['tac_embed_flickr'],function(elem){return tarteaucitron.engage(id);});}};}Drupal.behaviors.embed_social_post_flickr={attach:function(context){if(typeof tarteaucitron=="undefined")return;once('embed_social_post_flickr_init','body',context).forEach(function(){initESF();$.fn.updateTTJobs();});}};})(jQuery,Drupal,drupalSettings,once);; 7(function($,Drupal,drupalSettings,once){function initESLI(){tarteaucitron.services.embed_social_post_linked_in={"key":"embed_social_post_linked_in","type":"social","name":"LinkedIn","uri":"https://www.linkedin.com/legal/cookie-policy","needConsent":true,"cookies":[],"js":function(){"use strict";tarteaucitron.fallback(['tac_embed_linkedin'],function(x){const title=tarteaucitron.fixSelfXSS(x.getAttribute("data-title")||x.getAttribute("title")||'LinkedIn iframe'),src=x.getAttribute("data-src"),frame=document.createElement('iframe'),allowfullscreen=x.getAttribute("allowfullscreen"),frameborder=x.getAttribute("frameborder"),height=x.getAttribute("height"),width=x.getAttribute("width");if(src===undefined)return "";frame.setAttribute('title',title);frame.setAttribute('src',src);frame.setAttribute('frameborder',frameborder);frame.setAttribute('allowfullscreen',allowfullscreen);frame.setAttribute('height',height);frame.setAttribute('width',width);tarteaucitron.addScript('//platform.linkedin.com/in.js');return frame.outerHTML;});},"fallback":function(){"use strict";var id='embed_social_post_linked_in';tarteaucitron.fallback(['tac_embed_linkedin'],function(elem){return tarteaucitron.engage(id);});}};}Drupal.behaviors.embed_social_post_linked_in={attach:function(context){if(typeof tarteaucitron=="undefined")return;once('embed_social_post_linked_in_init','body',context).forEach(function(){initESLI();$.fn.updateTTJobs();});}};})(jQuery,Drupal,drupalSettings,once);; 8(function($,Drupal,drupalSettings,once){function initESP(){tarteaucitron.services.embed_social_post_podcastics={"key":"embed_social_post_podcastics","type":"social","name":"Podcastics","uri":"https://www.podcastics.com/privacy/","needConsent":true,"cookies":[],"js":function(){"use strict";tarteaucitron.fallback(['tac_embed_podcastics'],function(x){const src=x.getAttribute("data-src"),script_tag=document.createElement('script'),eId=x.getAttribute("data-eId"),pId=x.getAttribute("data-pId"),format=x.getAttribute("data-format");
8if(src===undefined)return "";script_tag.setAttribute('src',src);script_tag.setAttribute('data-eId',eId);script_tag.setAttribute('data-pId',pId);script_tag.setAttribute('data-format',format);script_tag.src=src;script_tag.async='true';setTimeout(()=>{x.appendChild(script_tag);},100);return '';});},"fallback":function(){"use strict";var id='embed_social_post_podcastics';tarteaucitron.fallback(['tac_embed_podcastics'],function(elem){return tarteaucitron.engage(id);});}};}Drupal.behaviors.embed_social_post_podcastics={attach:function(context){if(typeof tarteaucitron=="undefined")return;once('embed_social_post_podcastics_init','body',context).forEach(function(){initESP();$.fn.updateTTJobs();});}};})(jQuery,Drupal,drupalSettings,once);; 9(function(Drupal,once,drupalSettings){Drupal.behaviors.clipCoordinates={attach:function(context,settings){const buttons=once('clipcoordinates','.js-copy-coordonnees-to-clipboard-button',context);buttons.forEach((button)=>{button.addEventListener('click',(event)=>{event.preventDefault();const latLonValues=drupalSettings.poste_coordonnees;const textToCopy=`${latLonValues[0]}, ${latLonValues[1]}`;if(window.navigator.clipboard)window.navigator.clipboard.writeText(textToCopy).then(()=>{const textAlert=document.querySelector('.sdp-alerte');textAlert.classList.remove('visually-hidden');}).catch((err)=>{console.error('Failed to copy coordinates: ',err);});else console.log(textToCopy);});});}};})(Drupal,once,drupalSettings);; 10(function($,Drupal,drupalSettings,once){function initDM(){tarteaucitron.services.video_embed_dailymotion={"key":"video_embed_dailymotion","type":"video","name":"Dailymotion","uri":"https://www.dailymotion.com/legal/privacy","needConsent":true,"cookies":['ts','dmvk','hist','v1st','s_vi'],"js":function(){"use strict";tarteaucitron.fallback(['dailymotion_player'],function(x){$(x).parent().addClass("video-embed-field-responsive-video");var frame_title=tarteaucitron.fixSelfXSS('Vidéo Dailymotion - '+(x.getAttribute("data-title")||x.getAttribute("title")||'Erreur lors de la récupération du titre.')),video_id=x.getAttribute("videoID"),video_frame,video_allowfullscreen=x.getAttribute("allowfullscreen"),params='info='+x.getAttribute("showinfo")+'&autoPlay='+x.getAttribute("autoplay");if(video_id===undefined)return "";$(x).removeAttr("title");$(x).removeAttr("allowfullscreen");video_frame='<iframe '+'class="fr-responsive-vid__player" title="'+frame_title+'" '+'src="//www.dailymotion.com/embed/video/'+video_id+'?'+params+'"'+(video_allowfullscreen=='0'?'':' webkitallowfullscreen mozallowfullscreen allowfullscreen')+'></iframe>';return video_frame;});},"fallback":function(){"use strict";var id='video_embed_dailymotion';tarteaucitron.fallback(['dailymotion_player'],function(elem){$(elem).parent().removeClass("video-embed-field-responsive-video");return tarteaucitron.engage(id);});}};}Drupal.behaviors.video_embed_dailymotion={attach:function(context){if(typeof tarteaucitron=="undefined")return;once('video_embed_dailymotion_init','body',context).forEach(function(){initDM();$.fn.updateTTJobs();});}};})(jQuery,Drupal,drupalSettings,once);; 11(function($,Drupal,drupalSettings,once){function initVimeo(){tarteaucitron.services.video_embed_vimeo={"key":"video_embed_vimeo","type":"video","name":"Vimeo","uri":"https://www.vimeo.com/privacy","needConsent":true,"cookies":['ts','dmvk','hist','v1st','s_vi'],"js":function(){"use strict";tarteaucitron.fallback(['vimeo_player'],function(x){$(x).parent().addClass("video-embed-field-responsive-video");var frame_title=tarteaucitron.fixSelfXSS('Vidéo Vimeo - '+(x.getAttribute("data-title")||x.getAttribute("title")||'Erreur lors de la récupération du titre.')),video_id=x.getAttribute("data-videoID")||x.getAttribute("videoID"),video_allowfullscreen=x.getAttribute("data-allowfullscreen"),video_autopause=x.getAttribute("data-autopause")||'',video_autoplay=x.getAttribute("data-autoplay")||x.getAttribute("autoplay")||'',video_background=x.getAttribute("data-background")||'',video_byline=x.getAttribute("data-byline")||x.getAttribute("byline")||'',video_color=x.getAttribute("data-color")||'',video_controls=x.getAttribute("data-controls")||'',video_loop=x.getAttribute("data-loop")||x.getAttribute("loop")||'',video_maxheight=x.getAttribute("data-maxheight")||'',video_maxwidth=x.getAttribute("data-maxwidth")||'',video_muted=x.getAttribute("data-muted")||'',video_playsinline=x.getAttribute("data-playsinline")||'',video_portrait=x.getAttribute("data-portrait")||x.getAttribute("portrait")||'',video_speed=x.getAttribute("data-speed")||'',video_title=x.getAttribute("data-title")||x.getAttribute("title")||'',video_transparent=x.getAttribute("data-transparent")||'',video_frame;
11if(video_id===undefined)return "";var video_qs="?";if(video_title.length>0)video_qs+="title="+video_title;if(video_byline.length>0){if(video_qs.length>0)video_qs+="&";video_qs+="byline="+video_byline;}if(video_portrait.length>0){if(video_qs.length>0)video_qs+="&";video_qs+="portrait="+video_portrait;}if(video_loop.length>0){if(video_qs.length>0)video_qs+="&";video_qs+="loop="+video_loop;}if(video_autoplay.length>0){if(video_qs.length>0)video_qs+="&";video_qs+="autoplay="+video_autoplay;}if(video_autopause.length>0){if(video_qs.length>0)video_qs+="&";video_qs+="autopause="+video_autopause;}if(video_background.length>0){if(video_qs.length>0)video_qs+="&";video_qs+="background="+video_background;}if(video_color.length>0){if(video_qs.length>0)video_qs+="&";video_qs+="color="+video_color;}if(video_controls.length>0){if(video_qs.length>0)video_qs+="&";video_qs+="controls="+video_controls;}if(video_maxheight.length>0){if(video_qs.length>0)video_qs+="&";video_qs+="maxheight="+video_maxheight;}if(video_maxwidth.length>0){if(video_qs.length>0)video_qs+="&";video_qs+="maxwidth="+video_maxwidth;}if(video_muted.length>0){if(video_qs.length>0)video_qs+="&";video_qs+="muted="+video_muted;}if(video_playsinline.length>0){if(video_qs.length>0)video_qs+="&";video_qs+="playsinline="+video_playsinline;}if(video_speed.length>0){if(video_qs.length>0)video_qs+="&";video_qs+="speed="+video_speed;}if(video_transparent.length>0){if(video_qs.length>0)video_qs+="&";video_qs+="transparent="+video_transparent;}if(video_qs==="?")video_qs="";$(x).removeAttr("title");$(x).removeAttr("allowfullscreen");video_frame='<iframe '+'class="fr-responsive-vid__player" title="'+frame_title+'" '+'src="//player.vimeo.com/video/'+video_id+video_qs+'" '+(video_allowfullscreen=='0'?'':' webkitallowfullscreen mozallowfullscreen allowfullscreen')+'></iframe>';return video_frame;});},"fallback":function(){"use strict";var id='video_embed_vimeo';tarteaucitron.fallback(['vimeo_player'],function(elem){$(elem).parent().removeClass("video-embed-field-responsive-video");return tarteaucitron.engage(id);});}};}Drupal.behaviors.video_embed_vimeo={attach:function(context){if(typeof tarteaucitron=="undefined")return;once('video_embed_vimeo_init','body',context).forEach(function(){initVimeo();$.fn.updateTTJobs();});}};})(jQuery,Drupal,drupalSettings,once);; 12(function($,Drupal,drupalSettings,once){function initYT(){tarteaucitron.services.video_embed_youtube={"key":"video_embed_youtube","type":"video","name":"YouTube","uri":"https://policies.google.com/privacy","needConsent":true,"cookies":['VISITOR_INFO1_LIVE','YSC','PREF','GEUP'],"js":function(){"use strict";tarteaucitron.fallback(['youtube_player'],function(x){$(x).parent().addClass("video-embed-field-responsive-video");var frame_title=tarteaucitron.fixSelfXSS('Vidéo YouTube - '+(x.getAttribute("data-title")||x.getAttribute("title")||'Erreur lors de la récupération du titre.')),video_id=x.getAttribute("videoID"),video_frame,video_allowfullscreen=x.getAttribute("allowfullscreen"),params='theme='+x.getAttribute("theme")+'&rel='+x.getAttribute("rel")+'&controls='+x.getAttribute("controls")+'&showinfo='+x.getAttribute("showinfo")+'&autoplay='+x.getAttribute("autoplay")+'&mute='+x.getAttribute("mute");if(video_id===undefined)return "";$(x).removeAttr("title");$(x).removeAttr("allowfullscreen");video_frame='<iframe '+'class="fr-responsive-vid__player" title="'+frame_title+'" '+'src="//www.youtube-nocookie.com/embed/'+video_id+'?'+params+'"'+(video_allowfullscreen=='0'?'':' webkitallowfullscreen mozallowfullscreen allowfullscreen')+' referrerpolicy="strict-origin-when-cross-origin"'+'></iframe>';return video_frame;});},"fallback":function(){"use strict";var id='video_embed_youtube';tarteaucitron.fallback(['youtube_player'],function(elem){$(elem).parent().removeClass("video-embed-field-responsive-video");return tarteaucitron.engage(id);});}};}Drupal.behaviors.video_embed_youtube={attach:function(context){if(typeof tarteaucitron=="undefined")return;once('video_embed_youtube_init','body',context).forEach(function(){initYT();$.fn.updateTTJobs();});}};})(jQuery,Drupal,drupalSettings,once);; 13(function($,Drupal,drupalSettings,once){function initVFG(){tarteaucitron.services.video_finance_gouv_exempted={"key":"video_finance_gouv_exempted","type":"video","name":"Video.finances.gouv.fr","uri":"https://policies.google.com/privacy","
13needConsent":false,"cookies":['PHPSESSID','GA'],"js":function(){"use strict";tarteaucitron.fallback(['video_finance_gouv_player'],function(x){$(x).parent().addClass("video-embed-field-responsive-video");var frame_title=tarteaucitron.fixSelfXSS('Vidéo Finance Gouvernement - '+(x.getAttribute("data-title")||x.getAttribute("title")||'Erreur lors de la récupération du titre.')),video_id=x.getAttribute("videoID"),public_key=x.getAttribute("pubKey"),video_theme=x.getAttribute("theme"),video_preload=x.getAttribute("preload"),video_frame,video_allowfullscreen=x.getAttribute("allowfullscreen");if(video_id===undefined)return "";$(x).removeAttr("title");$(x).removeAttr("allowfullscreen");video_frame='<iframe '+'class="fr-responsive-vid__player" title="'+frame_title+'" '+'src="//video.finances.gouv.fr/watch/player/player/pubkey/'+public_key+'/id/'+video_id+'/viewcode/default?preload='+video_preload+(video_theme!=null?'&theme='+video_theme:'')+'"'+(video_allowfullscreen=='0'?'':' webkitallowfullscreen mozallowfullscreen allowfullscreen')+'></iframe>';return video_frame;});},"fallback":function(){this.js();}};}Drupal.behaviors.video_finance_gouv={attach:function(context){if(typeof tarteaucitron=="undefined")return;once('video_finance_gouv_init','body',context).forEach(function(){initVFG();$.fn.updateTTJobs();});}};})(jQuery,Drupal,drupalSettings,once);;
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.