import{d as A,i as p,o,c as s,r as y,j as _,m as T,f,b as u,B as V,k,l as b,q as Z,y as H,e as v,p as B,D as E,x as C,_ as M,C as L}from"./kxFIDuEf.js";import{F as x}from"./GFcQmIrK.js";const F=["width","height","fill","transform"],S={key:0},I=u("path",{d:"M140,80v41.21l34.17,20.5a12,12,0,1,1-12.34,20.58l-40-24A12,12,0,0,1,116,128V80a12,12,0,0,1,24,0ZM128,28A99.38,99.38,0,0,0,57.24,57.34c-4.69,4.74-9,9.37-13.24,14V64a12,12,0,0,0-24,0v40a12,12,0,0,0,12,12H72a12,12,0,0,0,0-24H57.77C63,86,68.37,80.22,74.26,74.26a76,76,0,1,1,1.58,109,12,12,0,0,0-16.48,17.46A100,100,0,1,0,128,28Z"},null,-1),z=[I],D={key:1},N=u("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"},null,-1),j=u("path",{d:"M136,80v43.47l36.12,21.67a8,8,0,0,1-8.24,13.72l-40-24A8,8,0,0,1,120,128V80a8,8,0,0,1,16,0Zm-8-48A95.44,95.44,0,0,0,60.08,60.15C52.81,67.51,46.35,74.59,40,82V64a8,8,0,0,0-16,0v40a8,8,0,0,0,8,8H72a8,8,0,0,0,0-16H49c7.15-8.42,14.27-16.35,22.39-24.57a80,80,0,1,1,1.66,114.75,8,8,0,1,0-11,11.64A96,96,0,1,0,128,32Z"},null,-1),q=[N,j],U={key:2},$=u("path",{d:"M224,128A96,96,0,0,1,62.11,197.82a8,8,0,1,1,11-11.64A80,80,0,1,0,71.43,71.43C67.9,75,64.58,78.51,61.35,82L77.66,98.34A8,8,0,0,1,72,112H32a8,8,0,0,1-8-8V64a8,8,0,0,1,13.66-5.66L50,70.7c3.22-3.49,6.54-7,10.06-10.55A96,96,0,0,1,224,128ZM128,72a8,8,0,0,0-8,8v48a8,8,0,0,0,3.88,6.86l40,24a8,8,0,1,0,8.24-13.72L136,123.47V80A8,8,0,0,0,128,72Z"},null,-1),P=[$],R={key:3},O=u("path",{d:"M134,80v44.6l37.09,22.25a6,6,0,0,1-6.18,10.3l-40-24A6,6,0,0,1,122,128V80a6,6,0,0,1,12,0Zm-6-46A93.4,93.4,0,0,0,61.51,61.56c-8.58,8.68-16,17-23.51,25.8V64a6,6,0,0,0-12,0v40a6,6,0,0,0,6,6H72a6,6,0,0,0,0-12H44.73C52.86,88.29,60.79,79.35,70,70a82,82,0,1,1,1.7,117.62,6,6,0,1,0-8.24,8.72A94,94,0,1,0,128,34Z"},null,-1),W=[O],Y={key:4},G=u("path",{d:"M136,80v43.47l36.12,21.67a8,8,0,0,1-8.24,13.72l-40-24A8,8,0,0,1,120,128V80a8,8,0,0,1,16,0Zm-8-48A95.44,95.44,0,0,0,60.08,60.15C52.81,67.51,46.35,74.59,40,82V64a8,8,0,0,0-16,0v40a8,8,0,0,0,8,8H72a8,8,0,0,0,0-16H49c7.15-8.42,14.27-16.35,22.39-24.57a80,80,0,1,1,1.66,114.75,8,8,0,1,0-11,11.64A96,96,0,1,0,128,32Z"},null,-1),J=[G],K={key:5},Q=u("path",{d:"M132,80v45.74l38.06,22.83a4,4,0,0,1-4.12,6.86l-40-24A4,4,0,0,1,124,128V80a4,4,0,0,1,8,0Zm-4-44A91.42,91.42,0,0,0,62.93,63C53.05,73,44.66,82.47,36,92.86V64a4,4,0,0,0-8,0v40a4,4,0,0,0,4,4H72a4,4,0,0,0,0-8H40.47C49.61,89,58.3,79,68.6,68.6a84,84,0,1,1,1.75,120.49,4,4,0,1,0-5.5,5.82A92,92,0,1,0,128,36Z"},null,-1),X=[Q],ee={name:"PhClockCounterClockwise"},le=A({...ee,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(r){const n=r,c=p("weight","regular"),e=p("size","1em"),d=p("color","currentColor"),l=p("mirrored",!1),t=f(()=>n.weight??c),a=f(()=>n.size??e),i=f(()=>n.color??d),w=f(()=>n.mirrored!==void 0?n.mirrored?"scale(-1, 1)":void 0:l?"scale(-1, 1)":void 0);return(m,h)=>(o(),s("svg",T({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:a.value,height:a.value,fill:i.value,transform:w.value},m.$attrs),[y(m.$slots,"default"),t.value==="bold"?(o(),s("g",S,z)):t.value==="duotone"?(o(),s("g",D,q)):t.value==="fill"?(o(),s("g",U,P)):t.value==="light"?(o(),s("g",R,W)):t.value==="regular"?(o(),s("g",Y,J)):t.value==="thin"?(o(),s("g",K,X)):_("",!0)],16,F))}}),te=["aria-label","title"],ae=900,ne=A({__name:"BackToTop",setup(r){const{t:n}=V(),c=C(!1);let e=0;function d(){e=0,c.value=window.scrollY>ae}function l(){e||(e=requestAnimationFrame(d))}function t(){const a=window.matchMedia("(prefers-reduced-motion: reduce)").matches;window.scrollTo({top:0,behavior:a?"auto":"smooth"});const i=document.getElementById("main-content");i&&(i.setAttribute("tabindex","-1"),i.focus({preventScroll:!0}))}return k(()=>{window.addEventListener("scroll",l,{passive:!0}),d()}),b(()=>{e&&cancelAnimationFrame(e),window.removeEventListener("scroll",l)}),(a,i)=>(o(),Z(E,{name:"back-to-top"},{default:H(()=>[v(c)?(o(),s("button",{key:0,type:"button",class:"back-to-top","aria-label":v(n)("legalDoc.backToTop"),title:v(n)("legalDoc.backToTop"),onClick:t},[B(v(x),{size:20,weight:"bold","aria-hidden":"true"})],8,te)):_("",!0)]),_:1}))}}),ie=Object.assign(M(ne,[["__scopeId","data-v-cd6ed6e2"]]),{__name:"InstitutionalBackToTop"});function se(r){return r?new Intl.DateTimeFormat("fr-FR",{day:"numeric",month:"long",year:"numeric",timeZone:"UTC"}).format(new Date(`${r}T00:00:00Z`)):""}function ce(r,n={}){const c=C(null);let e=0;function d(){const a=r.value;if(a.length===0)return null;const i=document.documentElement.scrollHeight-2;if(window.scrollY+window.innerHeight>=i)return a[a.length-1]??null;const w=n.offset?.()??96;let m=a[0]??null;for(const h of a){const g=document.getElementById(h);if(g){if(g.getBoundingClientRect().top>w)break;m=h}}return m}function l(){e=0,c.value=d()}function t(){e||(e=requestAnimationFrame(l))}return k(()=>{window.addEventListener("scroll",t,{passive:!0}),window.addEventListener("resize",t,{passive:!0}),l()}),b(()=>{e&&cancelAnimationFrame(e),window.removeEventListener("scroll",t),window.removeEventListener("resize",t)}),L(r,l),{activeId:c}}export{le as G,ie as _,se as f,ce as u};