text: /*! DSFR v1.2.1 | SPDX-License-Identifier: MIT | License-Filename: LICENSE.md | restricted use (see terms and conditions) */
  const e=new class{constructor(){this.modules={}}create(e){const t=new e;this.modules[t.type]=t}getModule(e){return this.modules[e]}add(e,t){this.modules[e].add(t)}remove(e,t){this.modules[e].remove(t)}get isActive(){return this._isActive}set isActive(e){if(e===this._isActive)return;this._isActive=e;const t=Object.keys(this.modules).map((e=>this.modules[e]));if(e)for(const e of t)e.activate();else for(const e of t)e.deactivate()}get isLegacy(){return this._isLegacy}set isLegacy(e){e!==this._isLegacy&&(this._isLegacy=e)}},t="fr",s="dsfr",i="1.2.1";class n{constructor(e,t,s,i){switch(this.level=e,this.light=t,this.dark=s,i){case"warn":this.logger=console.warn;break;case"error":this.logger=console.error;break;default:this.logger=console.log}}log(...e){const t=new r(s);for(const s of e)t.add(s);this.print(t)}print(e){e.setColor(this.color),this.logger.apply(console,e.getMessage())}get color(){return window.matchMedia("(prefers-color-scheme: dark)").matches?this.dark:this.light}}class r{constructor(e){this.inputs=["%c"],this.styles=["font-family:Marianne","line-height: 1.5"],this.objects=[],e&&this.add(`${e} :`)}add(e){switch(typeof e){case"object":case"function":this.inputs.push("%o "),this.objects.push(e);break;default:this.inputs.push(`${e} `)}}setColor(e){this.styles.push(`color:${e}`)}getMessage(){return[this.inputs.join(""),this.styles.join(";"),...this.objects]}}const o={trace:new n(0,"#616161","#989898"),debug:new n(1,"#000091","#8B8BFF"),info:new n(2,"#007c3b","#00ed70"),warn:new n(3,"#ba4500","#fa5c00","warn"),error:new n(4,"#D80600","#FF4641","error")};const a=new class{constructor(){this.level=2;for(const e in o){const t=o[e];this[e]=(...e)=>{this.level<=t.level&&t.log.apply(t,e)},this[e].print=t.print.bind(t)}}state(){const t=new r;t.add(e),this.trace.print(t)}tree(){const t=e.getModule("stage");if(!t)return;const s=new r;this._branch(t.root,0,s),this.trace.print(s)}_branch(e,t,s){let i="";if(t>0){let e="";for(let s=0;s<t;s++)e+="    ";i+=e+"└─ "}i+=`[${e.id}] ${e.html}`,s.add(i),s.add({"@":e}),s.add("\n");for(const n of e.children)i+=this._branch(n,t+1,s)}},c=e=>{"loading"!==document.readyState?window.requestAnimationFrame(e):document.addEventListener("DOMContentLoaded",e)},h={AUTO:"auto",MANUAL:"manual",RUNTIME:"runtime",LOADED:"loaded",VUE:"vue",ANGULAR:"angular",REACT:"react"};const l=new class{constructor(){this._mode=h.AUTO,this.isStarted=!1,this.starting=this.start.bind(this),this.preventManipulation=!1}configure(e={},t){this.startCallback=t,!0===e.verbose&&(a.level=0),this.mode=e.mode||h.AUTO}set mode(e){switch(e){case h.AUTO:this.preventManipulation=!1,t=this.starting,c(t);break;case h.LOADED:this.preventManipulation=!1,c(this.starting);break;case h.RUNTIME:this.preventManipulation=!1,this.start();break;case h.MANUAL:this.preventManipulation=!1;break;case h.VUE:case h.ANGULAR:case h.REACT:this.preventManipulation=!0;break;default:return void a.error("Illegal mode")}var t;this._mode=e,a.info(`mode set to ${e}`)}get mode(){return this._mode}start(){a.info("start"),this.startCallback()}};class d{constructor(){this._collection=[]}forEach(e){this._collection.forEach(e)}map(e){return this._collection.map(e)}get length(){return this._collection.length}add(e){return!(this._collection.indexOf(e)>-1)&&(this._collection.push(e),this.onAdd&&this.onAdd(),this.onPopulate&&1===this._collection.length&&this.onPopulate(),!0)}remove(e){const t=this._collection.indexOf(e);if(-1===t)return!1;this._collection.splice(t,1),this.onRemove&&this.onRemove(),this.onEmpty&&0===this._collection.length&&this.onEmpty()}execute(...e){for(const t of this._collection)t&&t.apply(null,e)}clear(){this._collection.length=0}clone(){const e=new d;return e._collection=this._collection.slice(),e}get collection(){return this._collection}}class u extends d{constructor(e){super(),this.type=e,this.isActive=!1}activate(){}deactivate(){}}const g=e=>`${t}-${e}`;g.selector=(e,t)=>(void 0===t&&(t="."),`${t}${g(e)}`),(g.attr=e=>`data-${g(e)}`).selector=(e,t)=>{let s=g.attr(e);return void 0!==t&&(s+=`="${t}"`),`[${s}]`},g.event=e=>`${s}.${e}`,g.emission=(e,t)=>`emission:${e}.${t}`;const m=(e,t)=>Array.prototype.slice.call(e.querySelectorAll(t)),p=(e,t)=>{const s=e.parentElement;return s.matches(t)?s:s===document.documentElement?null:p(s,t)};class b{constructor(e,t,s){this.selector=e,this.InstanceClass=t,this.creator=s,this.instances=new d,this.isIntroduced=!1,this._instanceClassName=this.InstanceClass.instanceClassName,this._instanceClassNames=this.getInstanceClassNames(this.InstanceClass),this._property=this._instanceClassName.substring(0,1).toLowerCase()+this._instanceClassName.substring(1);const i=this._instanceClassName.replace(/[^a-zA-Z0-9]+/g,"-").replace(/([A-Z]+)([A-Z][a-z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/([0-9])([^0-9])/g,"$1-$2").replace(/([^0-9])([0-9])/g,"$1-$2").toLowerCase();this._attribute=g.attr(`js-${i}`)}getInstanceClassNames(e){const t=Object.getPrototypeOf(e);return t&&"Instance"!==t.instanceClassName?[...this.getInstanceClassNames(t),e.instanceClassName]:[e.instanceClassName]}hasInstanceClassName(e){return this._instanceClassNames.indexOf(e)>-1}introduce(){this.isIntroduced||(this.isIntroduced=!0,e.getModule("stage").parse(document.documentElement,this))}parse(e,t){const s=[];return e.matches&&e.matches(this.selector)&&s.push(e),!t&&e.querySelectorAll&&e.querySelector(this.selector)&&s.push.apply(s,m(e,this.selector)),s}create(e){if(!e.node.matches(this.selector))return;const t=new this.InstanceClass;return this.instances.add(t),t}remove(e){this.instances.remove(e)}dispose(){const e=this.instances.collection;for(let t=e.length-1;t>-1;t--)e[t]._dispose();this.creator=null}get instanceClassName(){return this._instanceClassName}get instanceClassNames(){return this._instanceClassNames}get property(){return this._property}get attribute(){return this._attribute}}class f extends u{constructor(){super("register")}register(t,s,i){const n=new b(t,s,i);return this.add(n),e.isActive&&n.introduce(),n}activate(){for(const e of this.collection)e.introduce()}remove(e){e.dispose(),super.remove(e)}}let _=0;class E{constructor(e,t){t?this.id=t:(_++,this.id=_),this.node=e,this.attributeNames=[],this.instances=[],this._children=[],this._parent=null,this._projects=[]}get proxy(){const e=this;if(!this._proxy){this._proxy={id:this.id,get parent(){return e.parent?e.parent.proxy:null},get children(){return e.children.map((e=>e.proxy))}};for(const e of this.instances)this._proxy[e.registration.property]=e.proxy}return this._proxy}get html(){const e=this.node.outerHTML.indexOf(">");return this.node.outerHTML.substring(0,e+1)}project(e){-1===this._projects.indexOf(e)&&this._projects.push(e)}populate(){const e=this._projects.slice();this._projects.length=0;for(const t of e)this.create(t)}create(e){if(this.hasInstance(e.instanceClassName))return;a.debug(`create instance of ${e.instanceClassName} on element [${this.id}]`);const t=e.create(this);this.instances.push(t),t._config(this,e),this._proxy&&(this._proxy[e.property]=t.proxy)}remove(e){const t=this.instances.indexOf(e);t>-1&&this.instances.splice(t,1),this._proxy&&delete this._proxy[e.registration.property]}get parent(){return this._parent}get ascendants(){return[this.parent,...this.parent.ascendants]}get children(){return this._children}get descendants(){const e=[...this._children];return this._children.forEach((t=>e.push(...t.descendants))),e}addChild(e,t){return this._children.indexOf(e)>-1?null:(e._parent=this,!isNaN(t)&&t>-1&&t<this._children.length?this._children.splice(t,0,e):this._children.push(e),e)}removeChild(e){const t=this._children.indexOf(e);if(-1===t)return null;e._parent=null,this._children.splice(t,1)}emit(t,s){const i=e.getModule("stage").collection,n=[];for(const e of i)n.push(...e._emit(t,s));return n}_emit(e,t){const s=[];for(const i of this.instances)s.push(...i._emitter.emit(e,t));return s}ascend(e,t){return this._parent?this._parent._ascend(e,t):[]}_ascend(e,t){const s=[];for(const i of this.instances)s.push(...i._ascent.emit(e,t));return this._parent&&s.push(...this._parent._ascend(e,t)),s}descend(e,t){const s=[];for(const i of this._children)s.push(...i._descend(e,t));return s}_descend(e,t){const s=[];for(const i of this.instances)s.push(...i._descent.emit(e,t));for(const i of this._children)s.push(...i._descend(e,t));return s}getInstance(e){for(const t of this.instances)if(t.registration.hasInstanceClassName(e))return t;return null}hasInstance(e){return null!==this.getInstance(e)}getDescendantInstances(e,t,s){if(!e)return[];const i=[];for(const n of this._children){const r=n.getInstance(e);r&&(i.push(r),s)||(t&&n.hasInstance(t)||!n.children.length||i.push.apply(i,n.getDescendantInstances(e,t,s)))}return i}getAscendantInstance(e,t){if(!e||!this._parent)return null;const s=this._parent.getInstance(e);return s||(t&&this._parent.hasInstance(t)?null:this._parent.getAscendantInstance(e,t))}dispose(){for(const e of this.instances)e._dispose();this.instances.length=0,e.remove("stage",this),this.parent.removeChild(this),this._children.length=0,a.debug(`remove element [${this.id}] ${this.html}`)}prepare(e){-1===this.attributeNames.indexOf(e)&&this.attributeNames.push(e)}examine(){const e=this.attributeNames.slice();this.attributeNames.length=0;for(let t=this.instances.length-1;t>-1;t--)this.instances[t].examine(e)}}class y extends E{constructor(){super(document.documentElement,"root"),this.node.setAttribute(g.attr("js"),!0)}}class A extends u{constructor(){super("stage"),this.root=new y,super.add(this.root),this.observer=new MutationObserver(this.mutate.bind(this)),this.modifications=[],this.willModify=!1,this.modifying=this.modify.bind(this)}hasElement(e){for(const t of this.collection)if(t.node===e)return!0;return!1}getElement(e){for(const t of this.collection)if(t.node===e)return t;const t=new E(e);return this.add(t),a.debug(`add element [${t.id}] ${t.html}`),t}getProxy(e){if(!this.hasElement(e))return null;return this.getElement(e).proxy}add(e){super.add(e),this.put(e,this.root)}put(e,t){let s=0;for(let i=t.children.length-1;i>-1;i--){const n=t.children[i],r=e.node.compareDocumentPosition(n.node);if(r&Node.DOCUMENT_POSITION_CONTAINS)return void this.put(e,n);if(r&Node.DOCUMENT_POSITION_CONTAINED_BY)t.removeChild(n),e.addChild(n,0);else if(r&Node.DOCUMENT_POSITION_PRECEDING){s=i+1;break}}t.addChild(e,s)}activate(){this.observer.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0})}deactivate(){this.observer.disconnect()}mutate(e){const t=[];e.forEach((e=>{switch(e.type){case"childList":e.removedNodes.forEach((e=>this.dispose(e))),e.addedNodes.forEach((e=>this.parse(e)));break;case"attributes":if(this.hasElement(e.target)){const s=this.getElement(e.target);s.prepare(e.attributeName),-1===t.indexOf(s)&&t.push(s);for(const e of s.descendants)-1===t.indexOf(e)&&t.push(e)}-1===this.modifications.indexOf(e.target)&&this.modifications.push(e.target)}})),t.forEach((e=>e.examine())),this.modifications.length&&!this.willModify&&(this.willModify=!0,window.requestAnimationFrame(this.modifying))}modify(){this.willModify=!1;const e=this.modifications.slice();this.modifications.length=0;for(const t of e)document.documentElement.contains(t)&&this.parse(t)}dispose(e){const t=[];this.forEach((s=>{e.contains(s.node)&&t.push(s)}));for(const e of t)e.dispose(),this.remove(e)}parse(t,s,i){const n=s?[s]:e.getModule("register").collection,r=[];for(const e of n){const s=e.parse(t,i);for(const t of s){const s=this.getElement(t);s.project(e),-1===r.indexOf(s)&&r.push(s)}}for(const e of r)e.populate()}}class S extends u{constructor(){super("render"),this.rendering=this.render.bind(this),this.nexts=new d}activate(){window.requestAnimationFrame(this.rendering)}request(e){this.nexts.add(e)}render(){if(!e.isActive)return;if(window.requestAnimationFrame(this.rendering),this.forEach((e=>e.render())),!this.nexts.length)return;const t=this.nexts.clone();this.nexts.clear(),t.forEach((e=>e.next()))}}class C extends u{constructor(){super("resize"),this.requireResize=!1,this.resizing=this.resize.bind(this);const e=this.request.bind(this);document.fonts&&document.fonts.ready.then(e),window.addEventListener("resize",e),window.addEventListener("orientationchange",e)}activate(){this.request()}request(){this.requireResize||(this.requireResize=!0,window.requestAnimationFrame(this.resizing))}resize(){this.requireResize&&(this.forEach((e=>e.resize())),this.requireResize=!1)}}class v extends u{constructor(){super("lock"),this._isLocked=!1,this._scrollY=0,this.onPopulate=this.lock.bind(this),this.onEmpty=this.unlock.bind(this)}get isLocked(){return this._isLocked}lock(){this._isLocked||(this._isLocked=!0,this._scrollY=window.scrollY,document.body.style.top=-1*this._scrollY+"px",document.documentElement.setAttribute(g.attr("scrolling"),"false"))}unlock(){this._isLocked&&(this._isLocked=!1,document.documentElement.removeAttribute(g.attr("scrolling")),document.body.style.top="",window.scroll(0,this._scrollY))}}class T extends u{constructor(){super("load"),this.loading=this.load.bind(this)}activate(){window.addEventListener("load",this.loading)}load(){this.forEach((e=>e.load()))}}const L=new class{constructor(){e.create(f),e.create(A),e.create(S),e.create(C),e.create(v),e.create(T);const t=e.getModule("register");this.register=t.register.bind(t)}get isActive(){return e.isActive}start(){a.debug("START"),e.isActive=!0}stop(){a.debug("STOP"),e.isActive=!1}},I=e=>"."===e.charAt(0)?e.substr(1):e,x=e=>e.className?e.className.split(" "):[],N=(e,t,s)=>{t=I(t);const i=x(e),n=i.indexOf(t);!0===s?n>-1&&i.splice(n,1):-1===n&&i.push(t),e.className=i.join(" ")},O=(e,t)=>N(e,t),D=(e,t)=>N(e,t,!0),w=(e,t)=>x(e).indexOf(I(t))>-1,R={};R.addClass=O,R.hasClass=w,R.removeClass=D,R.queryParentSelector=p,R.querySelectorAllArray=m;const k={supportLocalStorage:()=>{try{return"localStorage"in window&&null!==window.localStorage}catch(e){return!1}}},M=(e,...t)=>(t.forEach((t=>{const s=Object.keys(t).reduce(((e,s)=>(e[s]=Object.getOwnPropertyDescriptor(t,s),e)),{});Object.getOwnPropertySymbols(t).forEach((e=>{const i=Object.getOwnPropertyDescriptor(t,e);i.enumerable&&(s[e]=i)})),Object.defineProperties(e,s)})),e),H={};H.completeAssign=M;const P={},G={};Object.defineProperty(G,"isLegacy",{get:()=>e.isLegacy}),G.setLegacy=()=>{e.isLegacy=!0},P.legacy=G,P.dom=R,P.support=k,P.property=H,P.ns=g,P.register=L.register,Object.defineProperty(P,"preventManipulation",{get:()=>l.preventManipulation}),a.info(`version ${i}`);const $=t=>e.getModule("stage").getProxy(t);$.Modes=h,Object.defineProperty($,"mode",{set:e=>{l.mode=e},get:()=>l.mode}),$.internals=P,$.start=L.start,$.stop=L.stop,$.inspector=a,l.configure(window[s],$.start),window[s]=$;class B{constructor(){this.emissions={}}add(e,t){if("function"!=typeof t)throw new Error("closure must be a function");this.emissions[e]||(this.emissions[e]=[]),this.emissions[e].push(t)}remove(e,t){if(this.emissions[e])if(t){const s=this.emissions[e].indexOf(t);s>-1&&this.emissions[e].splice(s)}else delete this.emissions[e]}emit(e,t){if(!this.emissions[e])return[];const s=[];for(const i of this.emissions[e])i&&s.push(i(t));return s}dispose(){this.emissions=null}}class z{constructor(e,t){this.id=e,this.minWidth=t}test(){return window.matchMedia(`(min-width: ${this.minWidth}em)`).matches}}const q={XS:new z("xs",0),SM:new z("sm",36),MD:new z("md",48),LG:new z("lg",62),XL:new z("xl",78)};class U{constructor(e=!0){this.jsAttribute=e,this._isRendering=!1,this._isResizing=!1,this._isScrollLocked=!1,this._isLoading=!1,this._listeners={},this._keyListenerTypes=[],this._keys=[],this.handlingKey=this.handleKey.bind(this),this._emitter=new B,this._ascent=new B,this._descent=new B,this._registrations=[],this._nexts=[]}static get instanceClassName(){return"Instance"}_config(e,t){this.element=e,this.registration=t,this.node=e.node,this.id=e.node.id,this.jsAttribute&&this.setAttribute(t.attribute,!0),this.init()}init(){}get proxy(){const e=this;return{render:()=>e.render(),resize:()=>e.resize()}}register(t,s){const i=e.getModule("register").register(t,s,this);this._registrations.push(i)}getRegisteredInstances(e){for(const t of this._registrations)if(t.hasInstanceClassName(e))return t.instances.collection;return[]}dispatch(e,t,s,i){const n=new CustomEvent(e,{detail:t,bubble:!0===s,cancelable:!0===i});this.node.dispatchEvent(n)}listen(e,t,s){this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].indexOf(t)>-1||(this._listeners[e].push(t),this.node.addEventListener(e,t,s))}unlisten(e,t){if(e)if(t){if(!this._listeners[e])return;const s=this._listeners[e].indexOf(t);s>-1&&this._listeners[e].splice(s,1),this.node.removeEventListener(e,t)}else{if(!this._listeners[e])return;for(const t of this._listeners[e])this.node.removeEventListener(e,t);this._listeners[e].length=0}else for(const e in this._listeners)this.unlisten(e)}listenKey(e,t,s=!1,i=!1,n="down"){-1===this._keyListenerTypes.indexOf(n)&&(this.listen(`key${n}`,this.handlingKey),this._keyListenerTypes.push(n)),this._keys.push(new j(n,e,t,s,i))}unlistenKey(e,t){this._keys=this._keys.filter((s=>s.code!==e||s.closure!==t)),this._keyListenerTypes.forEach((e=>{this._keys.some((t=>t.type===e))||this.unlisten(`key${e}`,this.handlingKey)}))}handleKey(e){for(const t of this._keys)t.handle(e)}get isRendering(){return this._isRendering}set isRendering(t){this._isRendering!==t&&(t?e.add("render",this):e.remove("render",this),this._isRendering=t)}render(){}request(t){this._nexts.push(t),e.getModule("render").request(this)}next(){const e=this._nexts.slice();this._nexts.length=0;for(const t of e)t&&t()}get isResizing(){return this._isResizing}set isResizing(t){this._isResizing!==t&&(t?(e.add("resize",this),this.resize()):e.remove("resize",this),this._isResizing=t)}resize(){}isBreakpoint(e){return!0==("string"==typeof e)?q[e.toUpperCase()].test():e.test()}get isScrollLocked(){return this._isScrollLocked}set isScrollLocked(t){this._isScrollLocked!==t&&(t?e.add("lock",this):e.remove("lock",this),this._isScrollLocked=t)}get isLoading(){return this._isLoading}set isLoading(t){this._isLoading!==t&&(t?e.add("load",this):e.remove("load",this),this._isLoading=t)}load(){}examine(e){this.node.matches(this.registration.selector)?this.mutate(e):this._dispose()}mutate(e){}_dispose(){a.debug(`dispose instance of ${this.registration.instanceClassName} on element [${this.element.id}]`),this.removeAttribute(this.registration.attribute),this.unlisten(),this._keys=null,this.isRendering=!1,this.isResizing=!1,this._nexts=null,e.getModule("render").nexts.remove(this),this.isScrollLocked=!1,this.isLoading=!1,this._emitter.dispose(),this._emitter=null,this._ascent.dispose(),this._ascent=null,this._descent.dispose(),this._descent=null,this.element.remove(this);for(const t of this._registrations)e.remove("register",t);this._registrations=null,this.registration.remove(this),this.dispose()}dispose(){}emit(e,t){return this.element.emit(e,t)}addEmission(e,t){this._emitter.add(e,t)}removeEmission(e,t){this._emitter.remove(e,t)}ascend(e,t){return this.element.ascend(e,t)}addAscent(e,t){this._ascent.add(e,t)}removeAscent(e,t){this._ascent.remove(e,t)}descend(e,t){return this.element.descend(e,t)}addDescent(e,t){this._descent.add(e,t)}removeDescent(e,t){this._descent.remove(e,t)}get style(){return this.node.style}addClass(e){O(this.node,e)}removeClass(e){D(this.node,e)}hasClass(e){return w(this.node,e)}setAttribute(e,t){this.node.setAttribute(e,t)}getAttribute(e){return this.node.getAttribute(e)}hasAttribute(e){return this.node.hasAttribute(e)}removeAttribute(e){this.node.removeAttribute(e)}setProperty(e,t){this.node.style.setProperty(e,t)}removeProperty(e){this.node.style.removeProperty(e)}focus(){this.node.focus()}get hasFocus(){return this.node===document.activeElement}matches(e){return this.node.matches(e)}querySelector(e){return this.node.querySelector(e)}querySelectorAll(e){return m(this.node,e)}queryParentSelector(e){return p(this.node,e)}getRect(){return this.node.getBoundingClientRect()}get isLegacy(){return e.isLegacy}}class j{constructor(e,t,s,i,n){this.type=e,this.eventType=`key${e}`,this.code=t,this.closure=s,this.preventDefault=!0===i,this.stopPropagation=!0===n}handle(e){e.type===this.eventType&&e.keyCode===this.code&&(this.closure(e),this.preventDefault&&e.preventDefault(),this.stopPropagation&&e.stopPropagation())}}const F={DISCLOSE:g.event("disclose"),CONCEAL:g.event("conceal")},K={RESET:g.emission("disclosure","reset"),ADDED:g.emission("disclosure","added"),REMOVED:g.emission("disclosure","removed"),GROUP:g.emission("disclosure","group"),UNGROUP:g.emission("disclosure","ungroup")};class W extends U{constructor(e,t,s,i){super(),this.type=e,this._selector=t,this.DisclosureButtonInstanceClass=s,this.disclosuresGroupInstanceClassName=i,this.modifier=this._selector+"--"+this.type.id,this.pristine=!0}static get instanceClassName(){return"Disclosure"}init(){this.addDescent(K.RESET,this.reset.bind(this)),this.addDescent(K.GROUP,this.update.bind(this)),this.addDescent(K.UNGROUP,this.update.bind(this)),this.register(`[aria-controls="${this.id}"]`,this.DisclosureButtonInstanceClass),this.ascend(K.ADDED),this.update()}get proxy(){const e=this,t=Object.assign(super.proxy,{disclose:e.disclose.bind(e),focus:e.focus.bind(e)});this.type.canConceal&&(t.conceal=e.conceal.bind(e));return M(t,{get buttons(){return e.buttons.map((e=>e.proxy))},get group(){const t=e.group;return t?t.proxy:null}})}get buttons(){return this.getRegisteredInstances(this.DisclosureButtonInstanceClass.instanceClassName)}update(){this.getGroup()}getGroup(){if(!this.disclosuresGroupInstanceClassName)return void(this._group=null);const e=this.element.getAscendantInstance(this.disclosuresGroupInstanceClassName,this.constructor.instanceClassName);e&&e.validate(this)?this._group=e:this._group=null}get group(){return this._group}disclose(e){return!this.disclosed&&(this.pristine=!1,this.disclosed=!0,!e&&this.group&&(this.group.current=this),!0)}conceal(e,t){return!!this.disclosed&&(!(!this.type.canConceal&&this.group&&this.group.current===this)&&(this.pristine=!1,this.disclosed=!1,!e&&this.group&&this.group.current===this&&(this.group.current=null),t||this.focus(),this.descend(K.RESET),!0))}get disclosed(){return this._disclosed}set disclosed(e){if(this._disclosed!==e){this.dispatch(e?F.DISCLOSE:F.CONCEAL,this.type),this._disclosed=e,e?this.addClass(this.modifier):this.removeClass(this.modifier);for(let t=0;t<this.buttons.length;t++)this.buttons[t].apply(e)}}reset(){}toggle(e){if(this.type.canConceal)switch(!0){case!e:case this.disclosed:this.conceal();break;default:this.disclose()}else this.disclose()}get buttonHasFocus(){return!!this.buttons.some((e=>e.hasFocus))}get hasFocus(){return!!super.hasFocus||(!!this.buttonHasFocus||this.querySelectorAll(":focus").length>0)}focus(){for(let e=0;e<this.buttons.length;e++){const t=this.buttons[e];if(t.isPrimary)return void t.focus()}}dispose(){this._group=null,super.dispose(),this.ascend(K.REMOVED)}}class Y extends U{constructor(e){super(),this.type=e,this.attributeName=e.ariaState?"aria-"+e.id:g.attr(e.id)}static get instanceClassName(){return"DisclosureButton"}init(){this.controlsId=this.getAttribute("aria-controls"),this.isPrimary=this.hasAttribute(this.attributeName),this.isPrimary&&this.disclosed&&this.registration.creator.pristine&&this.registration.creator.disclose(),this.listen("click",this.click.bind(this))}get proxy(){return Object.assign(super.proxy,{focus:this.focus.bind(this)})}click(e){this.registration.creator&&this.registration.creator.toggle(this.isPrimary)}mutate(e){this.isPrimary&&e.indexOf(this.attributeName)>-1&&this.registration.creator&&(this.disclosed?this.registration.creator.disclose():this.type.canConceal&&this.registration.creator.conceal())}apply(e){this.isPrimary&&this.setAttribute(this.attributeName,e)}get disclosed(){return"true"===this.getAttribute(this.attributeName)}}class V extends U{constructor(e,t){super(t),this.disclosureInstanceClassName=e,this._index=-1}static get instanceClassName(){return"DisclosuresGroup"}init(){this.addAscent(K.ADDED,this.update.bind(this)),this.addAscent(K.REMOVED,this.update.bind(this)),this.descend(K.GROUP),this.update()}get proxy(){const e=this,t={set index(t){e.index=t},get index(){return e.index},get length(){return e.length},get current(){const t=e.current;return t?t.proxy:null},get members(){return e.members.map((e=>e.proxy))},get hasFocus(){return e.hasFocus}};return M(super.proxy,t)}validate(e){return!0}getMembers(){const e=this.element.getDescendantInstances(this.disclosureInstanceClassName,this.constructor.instanceClassName,!0);this._members=e.filter(this.validate.bind(this))}update(){this.getMembers(),this.getIndex()}get members(){return this._members}get length(){return this.members.length}getIndex(){this._index=-1;for(let e=0;e<this.length;e++)this.index>-1?this.members[e].conceal(!0,!0):this.members[e].disclosed&&(this.index=e)}get index(){return this._index}set index(e){if(!(e<-1||e>=this.length||e===this._index)){this._index=e;for(let t=0;t<this.length;t++){const s=this.members[t];e===t?s.disclose(!0):s.conceal(!0,!0)}this.apply()}}get current(){return-1===this._index?null:this.members[this._index]}set current(e){this.index=this.members.indexOf(e)}get hasFocus(){const e=this.current;return!!e&&e.hasFocus}apply(){}dispose(){super.dispose(),this.descend(K.UNGROUP),this._members=null}}const Q={EXPAND:{id:"expanded",ariaState:!0,ariaControls:!0,canConceal:!0},SELECT:{id:"selected",ariaState:!0,ariaControls:!0,canConceal:!1},OPENED:{id:"opened",ariaState:!1,ariaControls:!0,canConceal:!0}};class Z extends Y{constructor(){super(Q.EXPAND)}static get instanceClassName(){return"CollapseButton"}}const X={COLLAPSE:g.selector("collapse")};const J={CHANGE:g("equisized")};const ee={TOGGLE:g.event("toggle")};const te={INJECT_SVG:`[${g.attr("inject-svg")}]`};$.core={Instance:U,Breakpoints:q,KeyCodes:{TAB:9,ESCAPE:27,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40},Disclosure:W,DisclosureButton:Y,DisclosuresGroup:V,DisclosureType:Q,DisclosureEvent:F,DisclosureEmission:K,Collapse:class extends W{constructor(){super(Q.EXPAND,X.COLLAPSE,Z,"CollapsesGroup")}static get instanceClassName(){return"Collapse"}init(){super.init(),this.listen("transitionend",this.transitionend.bind(this))}transitionend(e){this.disclosed||(this.style.maxHeight="")}unbound(){this.style.maxHeight="none"}disclose(e){this.disclosed||(this.unbound(),this.adjust(),this.request((()=>{super.disclose(e)})))}conceal(e,t){this.disclosed&&(this.adjust(),this.request((()=>{super.conceal(e,t)})))}adjust(){this.setProperty("--collapser","none");const e=this.node.offsetHeight;this.setProperty("--collapse",-e+"px"),this.setProperty("--collapser","")}reset(){this.pristine||(this.disclosed=!1)}},CollapseButton:Z,CollapsesGroup:class extends V{constructor(){super("Collapse")}static get instanceClassName(){return"CollapsesGroup"}},CollapseSelector:X,RootSelector:{ROOT:":root"},Equisized:class extends U{static get instanceClassName(){return"Equisized"}init(){this.ascend(J.CHANGE)}measure(){return this.style.width="auto",this.getRect().width}adjust(e){this.style.width=`${e}px`}dispose(){this.ascend(J.CHANGE)}},EquisizedEmission:J,Toggle:class extends U{static get instanceClassName(){return"Toggle"}init(){this.pressed="true"===this.pressed,this.listen("click",this.toggle.bind(this))}toggle(){this.pressed="true"!==this.pressed}get pressed(){return this.getAttribute("aria-pressed")}set pressed(e){this.setAttribute("aria-pressed",e?"true":"false"),this.dispatch(ee.TOGGLE,e)}get proxy(){const e=this,t=Object.assign(super.proxy,{toggle:e.toggle.bind(e)});return M(t,{get pressed(){return e.pressed},set pressed(t){e.pressed=t}})}},EquisizedsGroup:class extends U{static get instanceClassName(){return"EquisizedsGroup"}init(){this.isResizing=!0,this.isLoading=!0,this.addAscent(J.CHANGE,this.resize.bind(this))}load(){this.resize()}resize(){const e=this.element.getDescendantInstances("Equisized"),t=Math.max(...e.map((e=>e.measure())));e.forEach((e=>e.adjust(t)))}},InjectSvg:class extends U{static get instanceClassName(){return"InjectSvg"}init(){this.node&&(this.img=this.node.querySelector("img")),this.isLegacy||this.replace()}get proxy(){const e=this;return Object.assign(super.proxy,{replace:e.replace.bind(e),restore:e.restore.bind(e)})}fetch(){this.img&&(this.imgID=this.img.getAttribute("id"),this.imgClass=this.img.getAttribute("class"),this.imgURL=this.img.getAttribute("src"),fetch(this.imgURL).then((e=>e.text())).then((e=>{const t=(new DOMParser).parseFromString(e,"text/html");this.svg=t.querySelector("svg"),this.svg&&this.replace()})))}replace(){if(!this.svg)return void this.fetch();this.imgID&&void 0!==this.imgID&&this.svg.setAttribute("id",this.imgID),this.imgClass&&void 0!==this.imgClass&&this.svg.setAttribute("class",this.imgClass),this.svg.hasAttribute("xmlns:a")&&this.svg.removeAttribute("xmlns:a"),this.node.setAttribute("data-fr-inject-svg",!0);var e,t;e=this.svg,t={"aria-hidden":!0,focusable:!1},Object.keys(t).forEach((s=>e.setAttribute(s,t[s]))),this.node.replaceChild(this.svg,this.img)}restore(){this.img&&this.svg&&(this.node.setAttribute("data-fr-inject-svg",!1),this.node.replaceChild(this.img,this.svg))}},InjectSvgSelector:te},$.internals.register($.core.CollapseSelector.COLLAPSE,$.core.Collapse),$.internals.register($.core.InjectSvgSelector.INJECT_SVG,$.core.InjectSvg);const se=window[s],ie={SYSTEM:"system",LIGHT:"light",DARK:"dark"},ne={THEME:se.internals.ns.attr("theme"),SCHEME:se.internals.ns.attr("scheme"),TRANSITION:se.internals.ns.attr("transition")},re={LIGHT:"light",DARK:"dark"},oe={SCHEME:se.internals.ns.emission("scheme","scheme"),THEME:se.internals.ns.emission("scheme","theme"),ASK:se.internals.ns.emission("scheme","ask")};class ae extends se.core.Instance{constructor(){super(!1)}static get instanceClassName(){return"Scheme"}init(){this.changing=this.change.bind(this),this.hasAttribute(ne.TRANSITION)&&(this.removeAttribute(ne.TRANSITION),this.request(this.restoreTransition.bind(this)));const e=se.internals.support.supportLocalStorage()?localStorage.getItem("scheme"):"",t=this.getAttribute(ne.SCHEME);switch(e){case ie.DARK:case ie.LIGHT:case ie.SYSTEM:this.scheme=e;break;default:switch(t){case ie.DARK:this.scheme=ie.DARK;break;case ie.LIGHT:this.scheme=ie.LIGHT;break;default:this.scheme=ie.SYSTEM}}this.addAscent(oe.ASK,this.ask.bind(this)),this.addAscent(oe.SCHEME,this.apply.bind(this))}get proxy(){const e=this,t={get scheme(){return e.scheme},set scheme(t){e.scheme=t}};return se.internals.property.completeAssign(super.proxy,t)}restoreTransition(){this.setAttribute(ne.TRANSITION,"")}ask(){this.descend(oe.SCHEME,this.scheme)}apply(e){this.scheme=e}get scheme(){return this._scheme}set scheme(e){if(this._scheme!==e){switch(this._scheme=e,e){case ie.SYSTEM:this.listenPreferences();break;case ie.DARK:this.unlistenPreferences(),this.theme=re.DARK;break;case ie.LIGHT:this.unlistenPreferences(),this.theme=re.LIGHT;break;default:return void(this.scheme=ie.SYSTEM)}this.descend(oe.SCHEME,e),se.internals.support.supportLocalStorage()&&localStorage.setItem("scheme",e),this.setAttribute(ne.SCHEME,e)}}get theme(){return this._theme}set theme(e){if(this._theme!==e)switch(e){case re.LIGHT:case re.DARK:this._theme=e,this.setAttribute(ne.THEME,e),this.descend(oe.THEME,e)}}listenPreferences(){this.isListening||(this.isListening=!0,this.mediaQuery=window.matchMedia("(prefers-color-scheme: dark)"),this.mediaQuery.addEventListener("change",this.changing),this.change())}unlistenPreferences(){this.isListening&&(this.isListening=!1,this.mediaQuery.removeEventListener("change",this.changing),this.mediaQuery=null)}change(){this.isListening&&(this.theme=this.mediaQuery.matches?re.DARK:re.LIGHT)}mutate(e){e.indexOf(ne.SCHEME)>-1&&(this.scheme=this.getAttribute(ne.SCHEME)),e.indexOf(ne.THEME)>-1&&(this.theme=this.getAttribute(ne.THEME))}dispose(){this.unlistenPreferences()}}const ce={SCHEME:`:root${se.internals.ns.attr.selector("theme")}, :root${se.internals.ns.attr.selector("scheme")}`,SWITCH_THEME:se.internals.ns.selector("switch-theme"),RADIO_BUTTONS:`input[name="${se.internals.ns("radios-theme")}"]`};se.scheme={Scheme:ae,SchemeValue:ie,SchemeSelector:ce,SchemeEmission:oe,SchemeTheme:re},se.internals.register(se.scheme.SchemeSelector.SCHEME,se.scheme.Scheme);const he={GROUP:se.internals.ns.selector("accordions-group"),COLLAPSE:`${se.internals.ns.selector("accordion")} > ${se.internals.ns.selector("collapse")}`};class le extends se.core.CollapsesGroup{static get instanceClassName(){return"AccordionsGroup"}validate(e){return e.node.matches(he.COLLAPSE)}}se.accordion={AccordionSelector:he,AccordionsGroup:le},se.internals.register(se.accordion.AccordionSelector.GROUP,se.accordion.AccordionsGroup);const de={EQUISIZED_BUTTON:`${se.internals.ns.selector("btns-group--equisized")} ${se.internals.ns.selector("btn")}`,EQUISIZED_GROUP:se.internals.ns.selector("btns-group--equisized")};se.button={ButtonSelector:de},se.internals.register(se.button.ButtonSelector.EQUISIZED_BUTTON,se.core.Equisized),se.internals.register(se.button.ButtonSelector.EQUISIZED_GROUP,se.core.EquisizedsGroup);class ue extends se.core.Instance{constructor(){super(),this.count=0,this.focusing=this.focus.bind(this)}static get instanceClassName(){return"Breadcrumb"}init(){this.getCollapse(),this.isResizing=!0}get proxy(){const e=this;return Object.assign(super.proxy,{focus:e.focus.bind(e),disclose:e.collapse.disclose.bind(e.collapse)})}getCollapse(){const e=this.collapse;e?e.listen(se.core.DisclosureEvent.DISCLOSE,this.focusing):this.addAscent(se.core.DisclosureEmission.ADDED,this.getCollapse.bind(this))}resize(){const e=this.collapse,t=this.links;e&&t.length&&(this.isBreakpoint(se.core.Breakpoints.MD)?e.buttonHasFocus&&t[0].focus():t.indexOf(document.activeElement)>-1&&e.focus())}get links(){return[...this.querySelectorAll("a[href]")]}get collapse(){return this.element.getDescendantInstances(se.core.Collapse.instanceClassName,null,!0)[0]}focus(){this.count=0,this._focus()}_focus(){const e=this.links[0];e&&(e.focus(),this.request(this.verify.bind(this)))}verify(){if(this.count++,this.count>100)return;const e=this.links[0];e&&document.activeElement!==e&&this._focus()}}const ge={BREADCRUMB:se.internals.ns.selector("breadcrumb")};se.breadcrumb={BreadcrumbSelector:ge,Breadcrumb:ue},se.internals.register(se.breadcrumb.BreadcrumbSelector.BREADCRUMB,se.breadcrumb.Breadcrumb);class me extends se.core.Instance{static get instanceClassName(){return"ToggleInput"}get isChecked(){return this.getAttribute("checked")}}class pe extends se.core.Instance{static get instanceClassName(){return"ToggleStatusLabel"}init(){this.register(`input[id="${this.getAttribute("for")}"]`,me),this.update()}get proxy(){return Object.assign(super.proxy,{update:this.update.bind(this)})}get input(){return this.getRegisteredInstances("ToggleInput")[0]}update(){const e=this.input.isChecked,t=getComputedStyle(this.node,"before");let s=parseInt(t.width);this.input.node.checked=!e;const i=getComputedStyle(this.node,"before"),n=parseInt(i.width);n>s&&(s=n),this.input.node.checked=e,this.node.style="--toggle-status-width:"+s/16+"rem"}}const be={STATUS_LABEL:`${se.internals.ns.selector("toggle__label")}${se.internals.ns.attr.selector("checked-label")}${se.internals.ns.attr.selector("unchecked-label")}`};se.toggle={ToggleStatusLabel:pe,ToggleSelector:be},se.internals.register(se.toggle.ToggleSelector.STATUS_LABEL,se.toggle.ToggleStatusLabel);const fe={LIST:se.internals.ns.selector("sidemenu__list"),COLLAPSE:`${se.internals.ns.selector("sidemenu__item")} > ${se.internals.ns.selector("collapse")}`};class _e extends se.core.CollapsesGroup{static get instanceClassName(){return"SidemenuList"}validate(e){return e.node.matches(fe.COLLAPSE)}}se.sidemenu={SidemenuList:_e,SidemenuSelector:fe},se.internals.register(se.sidemenu.SidemenuSelector.LIST,se.sidemenu.SidemenuList);const Ee={MODAL:se.internals.ns.selector("modal"),SCROLL_SHADOW:se.internals.ns.selector("scroll-shadow"),BODY:se.internals.ns.selector("modal__body")};class ye extends se.core.DisclosureButton{constructor(){super(se.core.DisclosureType.OPENED)}static get instanceClassName(){return"ModalButton"}}const Ae={CONCEALING_BACKDROP:se.internals.ns.attr("concealing-backdrop")};class Se extends se.core.Disclosure{constructor(){super(se.core.DisclosureType.OPENED,Ee.MODAL,ye,"ModalsGroup"),this.scrolling=this.resize.bind(this,!1),this.resizing=this.resize.bind(this,!0)}static get instanceClassName(){return"Modal"}init(){super.init(),this.listen("click",this.click.bind(this)),this.listenKey(se.core.KeyCodes.ESCAPE,this.conceal.bind(this,!1,!1),!0,!0)}get body(){return this.element.getDescendantInstances("ModalBody","Modal")[0]}click(e){e.target===this.node&&"false"!==this.getAttribute(Ae.CONCEALING_BACKDROP)&&this.conceal()}disclose(e){return!!super.disclose(e)&&(this.body&&this.body.activate(),this.isScrollLocked=!0,this.setAttribute("aria-modal","true"),!0)}conceal(e,t){return!!super.conceal(e,t)&&(this.isScrollLocked=!1,this.removeAttribute("aria-modal"),this.body&&this.body.deactivate(),!0)}}const Ce=['[tabindex="0"]',"a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details","iframe"].join(),ve=['[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'].join(),Te=(e,t)=>{if(!(e instanceof Element))return!1;const s=window.getComputedStyle(e);if(!s)return!1;if("hidden"===s.visibility)return!1;for(void 0===t&&(t=e);t.contains(e);){if("none"===s.display)return!1;e=e.parentElement}return!0};class Le{constructor(e,t){this.element=null,this.activeElement=null,this.onTrap=e,this.onUntrap=t,this.waiting=this.wait.bind(this),this.handling=this.handle.bind(this),this.focusing=this.maintainFocus.bind(this),this.current=null}get trapped(){return null!==this.element}trap(e){this.trapped&&this.untrap(),this.element=e,this.isTrapping=!0,this.wait(),this.onTrap&&this.onTrap()}wait(){Te(this.element)?this.trapping():window.requestAnimationFrame(this.waiting)}trapping(){if(!this.isTrapping)return;this.isTrapping=!1;const e=this.focusables;e.length&&e[0].focus(),this.element.setAttribute("aria-modal",!0),window.addEventListener("keydown",this.handling),document.body.addEventListener("focus",this.focusing,!0)}stun(e){for(const t of e.children)t!==this.element&&(t.contains(this.element)?this.stun(t):this.stunneds.push(new Ie(t)))}maintainFocus(e){if(!this.element.contains(e.target)){const t=this.focusables;if(0===t.length)return;const s=t[0];e.preventDefault(),s.focus()}}handle(e){if(9!==e.keyCode)return;const t=this.focusables;if(0===t.length)return;const s=t[0],i=t[t.length-1],n=t.indexOf(document.activeElement);e.shiftKey?!this.element.contains(document.activeElement)||n<1?(e.preventDefault(),i.focus()):(document.activeElement.tabIndex>0||t[n-1].tabIndex>0)&&(e.preventDefault(),t[n-1].focus()):this.element.contains(document.activeElement)&&n!==t.length-1&&-1!==n?document.activeElement.tabIndex>0&&(e.preventDefault(),t[n+1].focus()):(e.preventDefault(),s.focus())}get focusables(){let e=se.internals.dom.querySelectorAllArray(this.element,Ce);const t=se.internals.dom.querySelectorAllArray(document.documentElement,'input[type="radio"]');if(t.length){const s={};for(const e of t){const t=e.getAttribute("name");void 0===s[t]&&(s[t]=new xe(t)),s[t].push(e)}e=e.filter((e=>{if("input"!==e.tagName.toLowerCase()||"radio"!==e.getAttribute("type").toLowerCase())return!0;const t=e.getAttribute("name");return s[t].keep(e)}))}const s=se.internals.dom.querySelectorAllArray(this.element,ve);s.sort(((e,t)=>e.tabIndex-t.tabIndex));const i=e.filter((e=>-1===s.indexOf(e)));return s.concat(i).filter((e=>"-1"!==e.tabIndex&&Te(e,this.element)))}untrap(){this.trapped&&(this.isTrapping=!1,this.element.removeAttribute("aria-modal"),window.removeEventListener("keydown",this.handling),document.body.removeEventListener("focus",this.focusing,!0),this.element=null,this.onUntrap&&this.onUntrap())}dispose(){this.untrap()}}class Ie{constructor(e){this.element=e,this.inert=e.getAttribute("inert"),this.element.setAttribute("inert","")}unstun(){null===this.inert?this.element.removeAttribute("inert"):this.element.setAttribute("inert",this.inert)}}class xe{constructor(e){this.name=e,this.buttons=[]}push(e){this.buttons.push(e),(e===document.activeElement||e.checked||void 0===this.selected)&&(this.selected=e)}keep(e){return this.selected===e}}class Ne extends se.core.DisclosuresGroup{constructor(){super("Modal",!1),this.focusTrap=new Le}static get instanceClassName(){return"ModalsGroup"}apply(e,t){super.apply(e,t),null===this.current?this.focusTrap.untrap():this.focusTrap.trap(this.current.node)}}class Oe extends se.core.Instance{static get instanceClassName(){return"ModalBody"}init(){this.listen("scroll",this.shade.bind(this))}activate(){this.isResizing=!0,this.resize()}deactivate(){this.isResizing=!1}shade(){this.node.scrollHeight>this.node.clientHeight?this.node.offsetHeight+this.node.scrollTop>=this.node.scrollHeight?this.removeClass(Ee.SCROLL_SHADOW):this.addClass(Ee.SCROLL_SHADOW):this.removeClass(Ee.SCROLL_SHADOW)}resize(){this.adjust(),this.request(this.adjust.bind(this))}adjust(){const e=32*(this.isBreakpoint(se.core.Breakpoints.MD)?2:1);this.style.maxHeight=window.innerHeight-e+"px",this.shade()}}se.modal={Modal:Se,ModalButton:ye,ModalBody:Oe,ModalsGroup:Ne,ModalSelector:Ee},se.internals.register(se.modal.ModalSelector.MODAL,se.modal.Modal),se.internals.register(se.modal.ModalSelector.BODY,se.modal.ModalBody),se.internals.register(se.core.RootSelector.ROOT,se.modal.ModalsGroup);const De={NAVIGATION:se.internals.ns.selector("nav"),COLLAPSE:`${se.internals.ns.selector("nav__item")} > ${se.internals.ns.selector("collapse")}`,ITEM:se.internals.ns.selector("nav__item"),ITEM_RIGHT:se.internals.ns("nav__item--align-right"),MENU:se.internals.ns.selector("menu")};class we extends se.core.Instance{constructor(){super(),this._isRightAligned=!1}static get instanceClassName(){return"NavigationItem"}init(){this.addAscent(se.core.DisclosureEmission.ADDED,this.calculate.bind(this)),this.addAscent(se.core.DisclosureEmission.REMOVED,this.calculate.bind(this)),this.isResizing=!0,this.calculate()}resize(){this.calculate()}calculate(){const e=this.element.getDescendantInstances(se.core.Collapse.instanceClassName,null,!0)[0];if(e&&this.isBreakpoint(se.core.Breakpoints.LG)&&e.element.node.matches(De.MENU)){const t=this.element.node.parentElement.getBoundingClientRect().right,s=e.element.node.getBoundingClientRect().width,i=this.element.node.getBoundingClientRect().left;this.isRightAligned=i+s>t}else this.isRightAligned=!1}get isRightAligned(){return this._isRightAligned}set isRightAligned(e){this._isRightAligned!==e&&(this._isRightAligned=e,e?se.internals.dom.addClass(this.element.node,De.ITEM_RIGHT):se.internals.dom.removeClass(this.element.node,De.ITEM_RIGHT))}}const Re={NONE:-1,INSIDE:0,OUTSIDE:1};class ke extends se.core.CollapsesGroup{static get instanceClassName(){return"Navigation"}init(){super.init(),this.clicked=!1,this.out=!1,this.listen("focusout",this.focusOut.bind(this)),this.listen("mousedown",this.down.bind(this))}validate(e){return e.element.node.matches(De.COLLAPSE)}down(e){this.isBreakpoint(se.core.Breakpoints.LG)&&-1!==this.index&&this.current&&(this.position=this.current.element.node.contains(e.target)?Re.INSIDE:Re.OUTSIDE,this.request(this.getPosition.bind(this)))}focusOut(e){this.isBreakpoint(se.core.Breakpoints.LG)&&(this.out=!0,this.request(this.getPosition.bind(this)))}getPosition(){if(this.out)switch(this.position){case Re.OUTSIDE:this.index=-1;break;case Re.INSIDE:this.current&&this.current.focus();break;default:this.index>-1&&!this.current.hasFocus&&(this.index=-1)}this.position=Re.NONE,this.out=!1}get index(){return super.index}set index(e){-1===e&&null!==this.current&&this.current.hasFocus&&this.current.focus(),super.index=e}}se.navigation={Navigation:ke,NavigationItem:we,NavigationMousePosition:Re,NavigationSelector:De},se.internals.register(se.navigation.NavigationSelector.NAVIGATION,se.navigation.Navigation),se.internals.register(se.navigation.NavigationSelector.ITEM,se.navigation.NavigationItem);class Me extends se.core.DisclosureButton{constructor(){super(se.core.DisclosureType.SELECT)}static get instanceClassName(){return"TabButton"}apply(e){super.apply(e),this.isPrimary&&(this.setAttribute("tabindex",e?"0":"-1"),e&&this.list&&this.list.focalize(this))}get list(){return this.element.getAscendantInstance("TabsList","TabsGroup")}}const He={TAB:se.internals.ns.selector("tabs__tab"),GROUP:se.internals.ns.selector("tabs"),PANEL:se.internals.ns.selector("tabs__panel"),LIST:se.internals.ns.selector("tabs__list"),SHADOW:se.internals.ns.selector("tabs__shadow"),SHADOW_LEFT:se.internals.ns.selector("tabs__shadow--left"),SHADOW_RIGHT:se.internals.ns.selector("tabs__shadow--right")};class Pe extends se.core.Disclosure{constructor(){super(se.core.DisclosureType.SELECT,He.PANEL,Me,"TabsGroup")}static get instanceClassName(){return"TabPanel"}translate(e,t){this.style.transition=t?"none":"",this.style.transform=`translate(${100*e}%)`}reset(){this.group.index=0}}class Ge extends se.core.DisclosuresGroup{constructor(){super("TabPanel")}static get instanceClassName(){return"TabsGroup"}init(){super.init(),this.listen("transitionend",this.transitionend.bind(this)),this.listenKey(se.core.KeyCodes.RIGHT,this.pressRight.bind(this),!0,!0),this.listenKey(se.core.KeyCodes.LEFT,this.pressLeft.bind(this),!0,!0),this.listenKey(se.core.KeyCodes.HOME,this.pressHome.bind(this),!0,!0),this.listenKey(se.core.KeyCodes.END,this.pressEnd.bind(this),!0,!0),this.isRendering=!0,this.list&&this.list.apply()}get list(){return this.element.getDescendantInstances("TabsList","TabsGroup",!0)[0]}transitionend(e){this.style.transition="none"}get buttonHasFocus(){return this.members.some((e=>e.buttonHasFocus))}pressRight(){this.buttonHasFocus&&(this.index<this.length-1?this.index++:this.index=0,this.focus())}pressLeft(){this.buttonHasFocus&&(this.index>0?this.index--:this.index=this.length-1,this.focus())}pressHome(){this.buttonHasFocus&&(this.index=0,this.focus())}pressEnd(){this.buttonHasFocus&&(this.index=this.length-1,this.focus())}focus(){this.current&&this.current.focus()}apply(){for(let e=0;e<this._index;e++)this.members[e].translate(-1);this.current.style.transition="",this.current.style.transform="";for(let e=this._index+1;e<this.length;e++)this.members[e].translate(1);this.style.transition=""}render(){if(null===this.current)return;const e=Math.round(this.current.node.offsetHeight);if(this.panelHeight===e)return;this.panelHeight=e;let t=0;this.list&&(t=this.list.node.offsetHeight),this.style.height=this.panelHeight+t+"px"}}class $e extends se.core.Instance{static get instanceClassName(){return"TabsList"}init(){this.listen("scroll",this.scroll.bind(this)),this.isResizing=!0}get group(){return this.element.getAscendantInstance("TabsGroup","TabsList")}focalize(e){const t=e.getRect(),s=this.getRect(),i=this.node.scrollLeft;t.left<s.left?this.node.scrollTo(i-s.left+t.left-16,0):t.right>s.right&&this.node.scrollTo(i-s.right+t.right+16,0)}get isScrolling(){return this._isScrolling}set isScrolling(e){this._isScrolling!==e&&(this._isScrolling=e,this.apply())}apply(){this.group&&(this._isScrolling?(this.group.addClass(He.SHADOW),this.scroll()):(this.group.removeClass(He.SHADOW_RIGHT),this.group.removeClass(He.SHADOW_LEFT),this.group.removeClass(He.SHADOW)))}scroll(){if(!this.group)return;const e=this.node.scrollLeft,t=e<=16,s=this.node.scrollWidth-this.node.clientWidth-16,i=Math.abs(e)>=s,n="rtl"===document.documentElement.getAttribute("dir"),r=n?He.SHADOW_RIGHT:He.SHADOW_LEFT,o=n?He.SHADOW_LEFT:He.SHADOW_RIGHT;t?this.group.removeClass(r):this.group.addClass(r),i?this.group.removeClass(o):this.group.addClass(o)}resize(){this.isScrolling=this.node.scrollWidth>this.node.clientWidth+16}dispose(){this.isScrolling=!1}}se.tab={TabPanel:Pe,TabButton:Me,TabsGroup:Ge,TabsList:$e,TabSelector:He},se.internals.register(se.tab.TabSelector.PANEL,se.tab.TabPanel),se.internals.register(se.tab.TabSelector.GROUP,se.tab.TabsGroup),se.internals.register(se.tab.TabSelector.LIST,se.tab.TabsList);const Be={SCROLLABLE:se.internals.ns.emission("table","scrollable"),CHANGE:se.internals.ns.emission("table","change"),CAPTION_HEIGHT:se.internals.ns.emission("table","captionheight")};class ze extends se.core.Instance{static get instanceClassName(){return"Table"}init(){this.addAscent(Be.CAPTION_HEIGHT,this.setCaptionHeight.bind(this))}setCaptionHeight(e){this.setProperty("--table-offset",`calc(${e}px + 1rem)`)}}const qe={TABLE:se.internals.ns.selector("table"),SHADOW:se.internals.ns.selector("table__shadow"),SHADOW_LEFT:se.internals.ns.selector("table__shadow--left"),SHADOW_RIGHT:se.internals.ns.selector("table__shadow--right"),ELEMENT:`${se.internals.ns.selector("table")}:not(${se.internals.ns.selector("table--no-scroll")}) table`,CAPTION:`${se.internals.ns.selector("table")} table caption`};class Ue extends se.core.Instance{static get instanceClassName(){return"TableElement"}init(){this.listen("scroll",this.scroll.bind(this)),this.content=this.querySelector("tbody"),this.isResizing=!0}get isScrolling(){return this._isScrolling}set isScrolling(e){this._isScrolling!==e&&(this._isScrolling=e,e?(this.addClass(qe.SHADOW),this.scroll()):(this.removeClass(qe.SHADOW),this.removeClass(qe.SHADOW_LEFT),this.removeClass(qe.SHADOW_RIGHT)))}scroll(){const e=this.node.scrollLeft<=8,t=this.content.offsetWidth-this.node.offsetWidth-8,s=Math.abs(this.node.scrollLeft)>=t,i="rtl"===document.documentElement.getAttribute("dir"),n=i?qe.SHADOW_RIGHT:qe.SHADOW_LEFT,r=i?qe.SHADOW_LEFT:qe.SHADOW_RIGHT;e?this.removeClass(n):this.addClass(n),s?this.removeClass(r):this.addClass(r)}resize(){this.isScrolling=this.content.offsetWidth>this.node.offsetWidth}dispose(){this.isScrolling=!1}}class je extends se.core.Instance{static get instanceClassName(){return"TableCaption"}init(){this.height=0,this.isResizing=!0}resize(){const e=this.getRect().height;this.height!==e&&(this.height=e,this.ascend(Be.CAPTION_HEIGHT,e))}}se.table={Table:ze,TableElement:Ue,TableCaption:je,TableSelector:qe},se.internals.register(se.table.TableSelector.TABLE,se.table.Table),se.internals.register(se.table.TableSelector.ELEMENT,se.table.TableElement),se.internals.register(se.table.TableSelector.CAPTION,se.table.TableCaption);const Fe={TAG_PRESSABLE:`${se.internals.ns.selector("tag")}[aria-pressed]`};se.tag={TagSelector:Fe},se.internals.register(se.tag.TagSelector.TAG_PRESSABLE,se.core.Toggle);const Ke={HEADER:se.internals.ns.selector("header"),TOOLS_LINKS:se.internals.ns.selector("header__tools-links"),MENU_LINKS:se.internals.ns.selector("header__menu-links"),LINKS:`${se.internals.ns.selector("header__tools-links")} ${se.internals.ns.selector("links-group")}`,MODALS:`${se.internals.ns.selector("header__search")}${se.internals.ns.selector("modal")}, ${se.internals.ns.selector("header__menu")}${se.internals.ns.selector("modal")}`};class We extends se.core.Instance{static get instanceClassName(){return"HeaderLinks"}init(){const e=this.queryParentSelector(Ke.HEADER);this.toolsLinks=e.querySelector(Ke.TOOLS_LINKS),this.menuLinks=e.querySelector(Ke.MENU_LINKS);if(this.toolsLinks.innerHTML.replace(/  +/g," ")!==this.menuLinks.innerHTML.replace(/  +/g," "))switch(se.mode){case se.Modes.ANGULAR:case se.Modes.REACT:case se.Modes.VUE:se.inspector.warn(`header__tools-links content is different from header__menu-links content.\nAs you're using a dynamic framework, you should handle duplication of this content yourself, please refer to documentation: \n${se.header.doc}`);break;default:this.menuLinks.innerHTML=this.toolsLinks.innerHTML}}}class Ye extends se.core.Instance{static get instanceClassName(){return"HeaderModal"}init(){this.isResizing=!0}resize(){this.isBreakpoint(se.core.Breakpoints.LG)?this.unqualify():this.qualify()}qualify(){this.setAttribute("role","dialog");const e=this.element.getInstance("Modal");if(!e)return;const t=e.buttons;let s="";for(const e of t)if(s=e.id||s,e.isPrimary&&s)break;this.setAttribute("aria-labelledby",s)}unqualify(){const e=this.element.getInstance("Modal");e&&e.conceal(),this.removeAttribute("role"),this.removeAttribute("aria-labelledby")}}se.header={HeaderLinks:We,HeaderModal:Ye,HeaderSelector:Ke,doc:"https://gouvfr.atlassian.net/wiki/spaces/DB/pages/222789846/En-t+te+-+Header"},se.internals.register(se.header.HeaderSelector.LINKS,se.header.HeaderLinks),se.internals.register(se.header.HeaderSelector.MODALS,se.header.HeaderModal);const Ve={DISPLAY:se.internals.ns.selector("display"),RADIO_BUTTONS:`input[name="${se.internals.ns("radios-theme")}"]`,FIELDSET:se.internals.ns.selector("fieldset")};class Qe extends se.core.Instance{static get instanceClassName(){return"Display"}init(){if(this.radios=this.querySelectorAll(Ve.RADIO_BUTTONS),se.scheme){this.changing=this.change.bind(this);for(const e of this.radios)e.addEventListener("change",this.changing);this.addDescent(se.scheme.SchemeEmission.SCHEME,this.apply.bind(this)),this.ascend(se.scheme.SchemeEmission.ASK)}else this.querySelector(Ve.FIELDSET).setAttribute("disabled","")}get scheme(){return this._scheme}set scheme(e){if(this._scheme!==e&&se.scheme)switch(e){case se.scheme.SchemeValue.SYSTEM:case se.scheme.SchemeValue.LIGHT:case se.scheme.SchemeValue.DARK:this._scheme=e;for(const t of this.radios)t.checked=t.value===e;this.ascend(se.scheme.SchemeEmission.SCHEME,e)}}change(){for(const e of this.radios)if(e.checked)return void(this.scheme=e.value)}apply(e){this.scheme=e}dispose(){for(const e of this.radios)e.removeEventListener("change",this.changing)}}se.display={Display:Qe,DisplaySelector:Ve},se.internals.register(se.display.DisplaySelector.DISPLAY,se.display.Display);
  //# sourceMappingURL=dsfr.module.min.js.map
  